xmpi-2.2.3b8/0000777000076500007650000000000007725267023006516 5xmpi-2.2.3b8/config/0000777000076500007650000000000007725267021007761 5xmpi-2.2.3b8/config/Makefile.options0000444000076500007650000000113607721666337013037 # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.options,v 1.1 2003/08/23 13:32:15 jsquyres Exp $ # AUTOMAKE_OPTIONS = foreign dist-bzip2 xmpi-2.2.3b8/config/Makefile.am0000444000076500007650000000151007725266655011740 # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.5 2003/09/03 04:27:25 jsquyres Exp $ # include $(top_srcdir)/config/Makefile.options EXTRA_DIST = \ buildrpm.sh \ cxx_find_template_repository.m4 \ cxx_have_broken_getline.m4 \ cxx_have_stl.m4 \ distscript.csh \ lsc_find_motif.m4 \ mpi_check_mpi_h.m4 \ mpi_check_trillium.m4 \ xmpi.spec xmpi-2.2.3b8/config/Makefile.in0000664000076500007650000002175407725267021011755 # Makefile.in generated by automake 1.7.6 from Makefile.am. # @configure_input@ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.5 2003/09/03 04:27:25 jsquyres Exp $ # # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.options,v 1.1 2003/08/23 13:32:15 jsquyres Exp $ # srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_triplet = @host@ ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLEANFILES = @CLEANFILES@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBXMPI = @LIBXMPI@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ RM = @RM@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHELL_CMD = @SHELL_CMD@ STRIP = @STRIP@ VERSION = @VERSION@ WANT_LAM_XMPI_FALSE = @WANT_LAM_XMPI_FALSE@ WANT_LAM_XMPI_TRUE = @WANT_LAM_XMPI_TRUE@ XMPI_VERSION = @XMPI_VERSION@ X_CFLAGS = @X_CFLAGS@ X_CXXFLAGS = @X_CXXFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign dist-bzip2 EXTRA_DIST = \ buildrpm.sh \ cxx_find_template_repository.m4 \ cxx_have_broken_getline.m4 \ cxx_have_stl.m4 \ distscript.csh \ lsc_find_motif.m4 \ mpi_check_mpi_h.m4 \ mpi_check_trillium.m4 \ xmpi.spec subdir = config ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = $(top_builddir)/src/xmpi/xmpi_config.h CONFIG_CLEAN_FILES = DIST_SOURCES = DIST_COMMON = $(top_srcdir)/config/Makefile.options Makefile.am \ Makefile.in config.guess config.sub depcomp install-sh \ ltmain.sh missing mkinstalldirs all: all-am .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/config/Makefile.options $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --foreign config/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = .. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) $(mkinstalldirs) $(distdir)/../config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xmpi-2.2.3b8/config/config.guess0000755000076500007650000012062207725260232012215 #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2003-02-22' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit 0 ;; --version | -v ) echo "$version" ; exit 0 ;; --help | --h* | -h ) echo "$usage"; exit 0 ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit 0 ;; amiga:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; arc:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; hp300:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mac68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; macppc:OpenBSD:*:*) echo powerpc-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme88k:OpenBSD:*:*) echo m88k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvmeppc:OpenBSD:*:*) echo powerpc-unknown-openbsd${UNAME_RELEASE} exit 0 ;; pmax:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sgi:OpenBSD:*:*) echo mipseb-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sun3:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; wgrisc:OpenBSD:*:*) echo mipsel-unknown-openbsd${UNAME_RELEASE} exit 0 ;; *:OpenBSD:*:*) echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} exit 0 ;; alpha:OSF1:*:*) if test $UNAME_RELEASE = "V4.0"; then UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` fi # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit 0 ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit 0 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit 0 ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit 0;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit 0 ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit 0 ;; *:OS/390:*:*) echo i370-ibm-openedition exit 0 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit 0;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit 0;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit 0 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit 0 ;; DRS?6000:UNIX_SV:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7 && exit 0 ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit 0 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit 0 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit 0 ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit 0 ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit 0 ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit 0 ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit 0 ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit 0 ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit 0 ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit 0 ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit 0 ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c \ && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ && exit 0 echo mips-mips-riscos${UNAME_RELEASE} exit 0 ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit 0 ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit 0 ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit 0 ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit 0 ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit 0 ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit 0 ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit 0 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit 0 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit 0 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit 0 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit 0 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit 0 ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit 0 ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit 0 ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 echo rs6000-ibm-aix3.2.5 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit 0 ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:*:*) echo rs6000-ibm-aix exit 0 ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit 0 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit 0 ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit 0 ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit 0 ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit 0 ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit 0 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then # avoid double evaluation of $set_cc_for_build test -n "$CC_FOR_BUILD" || eval $set_cc_for_build if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit 0 ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 echo unknown-hitachi-hiuxwe2 exit 0 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit 0 ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit 0 ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit 0 ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit 0 ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit 0 ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit 0 ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit 0 ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit 0 ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit 0 ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit 0 ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit 0 ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; *:UNICOS/mp:*:*) echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit 0 ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit 0 ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:FreeBSD:*:*) # Determine whether the default compiler uses glibc. eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #if __GLIBC__ >= 2 LIBC=gnu #else LIBC= #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} exit 0 ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit 0 ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit 0 ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit 0 ;; x86:Interix*:3*) echo i586-pc-interix3 exit 0 ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit 0 ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit 0 ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit 0 ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit 0 ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; *:GNU:*:*) echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit 0 ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit 0 ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit 0 ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit 0 ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit 0 ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit 0 ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit 0 ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit 0 ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit 0 ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit 0 ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit 0 ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit 0 ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #ifdef __INTEL_COMPILER LIBC=gnu #else LIBC=gnuaout #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit 0 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit 0 ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit 0 ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit 0 ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit 0 ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit 0 ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit 0 ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit 0 ;; i*86:*:5:[78]*) case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit 0 ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit 0 ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit 0 ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit 0 ;; paragon:*:*:*) echo i860-intel-osf1 exit 0 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit 0 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit 0 ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit 0 ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit 0 ;; M68*:*:R3V[567]*:*) test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4.3${OS_REL} && exit 0 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4 && exit 0 ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit 0 ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit 0 ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit 0 ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit 0 ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit 0 ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit 0 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit 0 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit 0 ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit 0 ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit 0 ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit 0 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit 0 ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit 0 ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit 0 ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit 0 ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit 0 ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit 0 ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit 0 ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Darwin:*:*) case `uname -p` in *86) UNAME_PROCESSOR=i686 ;; powerpc) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit 0 ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit 0 ;; *:QNX:*:4*) echo i386-pc-qnx exit 0 ;; NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit 0 ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit 0 ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit 0 ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit 0 ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit 0 ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit 0 ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit 0 ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit 0 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit 0 ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit 0 ;; *:ITS:*:*) echo pdp10-unknown-its exit 0 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit 0 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; c34*) echo c34-convex-bsd exit 0 ;; c38*) echo c38-convex-bsd exit 0 ;; c4*) echo c4-convex-bsd exit 0 ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: xmpi-2.2.3b8/config/config.sub0000755000076500007650000007242507725260232011667 #! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. timestamp='2003-02-22' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit 0 ;; --version | -v ) echo "$version" ; exit 0 ;; --help | --h* | -h ) echo "$usage"; exit 0 ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit 0;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k \ | m32r | m68000 | m68k | m88k | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | msp430 \ | ns16k | ns32k \ | openrisc | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* \ | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* \ | m32r-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | msp430-* \ | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ | xtensa-* \ | ymp-* \ | z8k-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; crds | unos) basic_machine=m68k-crds ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; mmix*) basic_machine=mmix-knuth os=-mmixware ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nv1) basic_machine=nv1-cray os=-unicosmp ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; or32 | or32-*) basic_machine=or32-unknown os=-coff ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2) basic_machine=i686-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic4x | c4x*) basic_machine=tic4x-unknown os=-coff ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sh64) basic_machine=sh64-unknown ;; sparc | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-ibm) os=-aix ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -ptx*) vendor=sequent ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: xmpi-2.2.3b8/config/depcomp0000755000076500007650000003256107725260236011262 #! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # `libtool' can also be set to `yes' or `no'. if test -z "$depfile"; then base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` dir=`echo "$object" | sed 's,/.*$,/,'` if test "$dir" = "$object"; then dir= fi # FIXME: should be _deps on DOS. depfile="$dir.deps/$base" fi tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. This file always lives in the current directory. # Also, the AIX compiler puts `$object:' at the start of each line; # $object doesn't have directory information. stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" outname="$stripped.o" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1="$dir.libs/$base.lo.d" tmpdepfile2="$dir.libs/$base.d" "$@" -Wc,-MD else tmpdepfile1="$dir$base.o.d" tmpdepfile2="$dir$base.d" "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi if test -f "$tmpdepfile1"; then tmpdepfile="$tmpdepfile1" else tmpdepfile="$tmpdepfile2" fi if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a space and a tab in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the proprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 xmpi-2.2.3b8/config/install-sh0000755000076500007650000001572207725260233011706 #!/bin/sh # # install - install a program, script, or datafile # # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd=$cpprog shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "$0: no input file specified" >&2 exit 1 else : fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d "$dst" ]; then instcmd=: chmodcmd="" else instcmd=$mkdirprog fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f "$src" ] || [ -d "$src" ] then : else echo "$0: $src does not exist" >&2 exit 1 fi if [ x"$dst" = x ] then echo "$0: no destination specified" >&2 exit 1 else : fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d "$dst" ] then dst=$dst/`basename "$src"` else : fi fi ## this sed command emulates the dirname command dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` IFS=$oIFS pathcomp='' while [ $# -ne 0 ] ; do pathcomp=$pathcomp$1 shift if [ ! -d "$pathcomp" ] ; then $mkdirprog "$pathcomp" else : fi pathcomp=$pathcomp/ done fi if [ x"$dir_arg" != x ] then $doit $instcmd "$dst" && if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename "$dst"` else dstfile=`basename "$dst" $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename "$dst"` else : fi # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up temp files at exit. trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 # Move or copy the file name to the temp name $doit $instcmd "$src" "$dsttmp" && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi && # Now remove or move aside any old file at destination location. We try this # two ways since rm can't unlink itself on some systems and the destination # file might be busy for other reasons. In this case, the final cleanup # might fail but the new file should still install successfully. { if [ -f "$dstdir/$dstfile" ] then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" fi && # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit } xmpi-2.2.3b8/config/ltmain.sh0000644000076500007650000053772607725260232011536 # ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit 1 fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" ##################################### # Shell function definitions: # This seems to be the best place for them # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` if test "X$win32_nmres" = "Ximport" ; then win32_libid_type="x86 archive import" else win32_libid_type="x86 archive static" fi fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # End of Shell function definitions ##################################### # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit 1 ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" $echo $echo "Copyright (C) 2003 Free Software Foundation, Inc." $echo "This is free software; see the source for copying conditions. There is NO" $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit 0 ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0 # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$0" done exit 0 ;; --debug) $echo "$progname: enabling shell trace mode" set -x ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit 0 ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: ;; --tag) prevopt="--tag" prev=tag ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit 1 ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit 1 fi # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit 1 fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_output= arg_mode=normal libobj= for arg do case "$arg_mode" in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit 1 fi arg_mode=target continue ;; -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit 1 ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit 1 ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.f90) xform=f90 ;; *.for) xform=for ;; *.java) xform=java ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit 1 ;; esac # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. if test -n "$available_tags" && test -z "$tagname"; then case $base_compile in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`" case "$base_compile " in "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit 1 # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit 1 fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit 1" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit 1" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$0" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit 1 fi $echo $srcfile > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit 1 fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit 1 fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi else if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi fi build_libtool_libs=no build_old_libs=yes prefer_static_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" base_compile="$base_compile $arg" shift case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit 1 fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit 1 fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit 1 else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit 1 fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit 1 ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit 1 fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 exit 1 fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-mingw* | *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; -module) module=yes continue ;; # gcc -m* arguments should be passed to the linker via $compiler_flags # in order to pass architecture information to the linker # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo # but this is not reliable with gcc because gcc may use -mfoo to # select a different linker, different libraries, etc, while # -Wl,-mfoo simply passes -mfoo to the linker. -m*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" if test "$with_gcc" = "yes" ; then compiler_flags="$compiler_flags $arg" fi continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # The PATH hackery in wrapper scripts is required on Windows # in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit 1 ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit 1 fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit 1 else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit 1 fi # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base link # command doesn't match the default compiler. if test -n "$available_tags" && test -z "$tagname"; then case $base_compile in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`" case $base_compile in "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) # The compiler in $compile_command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit 1 # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir status=$? if test "$status" -ne 0 && test ! -d "$output_objdir"; then exit $status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit 1 ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplcations in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit 1 ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do # Search the libtool library lib="$searchdir/lib${name}.la" if test -f "$lib"; then found=yes break fi done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) if test "$deplibs_check_method" != pass_all; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib'" 1>&2 exit 1 fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit 1 fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit 1 fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit 1 fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit 1 fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit 1 fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit 1 fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var"; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $dir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically if test -n "$library_names" && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' eval cmds=\"$extract_expsyms_cmds\" for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' eval cmds=\"$old_archive_from_expsyms_cmds\" for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5* ) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against it, someone # is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | grep "bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case "$libdir" in [\\/]*) add_dir="-L$inst_prefix_dir$libdir $add_dir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit 1 fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case "$libdir" in [\\/]*) add_dir="-L$inst_prefix_dir$libdir $add_dir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else convenience="$convenience $dir/$old_library" old_convenience="$old_convenience $dir/$old_library" deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit 1 fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" fi newlib_search_path="$newlib_search_path $path" path="" fi ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$deplibs $depdepl" ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$deplibs $path" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit 1 fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit 1 else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit 1 fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor - 1` age="$number_minor" revision="$number_minor" ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit 1 ;; esac case $revision in 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit 1 ;; esac case $age in 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit 1 ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit 1 fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) major=`expr $current - $age + 1` case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit 1 ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. for path in $notinst_path; do lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'` deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'` dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name="`expr $a_deplib : '-l\(.*\)'`" # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols eval cmds=\"$export_symbols_cmds\" save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" status=$? if test "$status" -ne 0 && test ! -d "$gentop"; then exit $status fi generated="$generated $gentop" for xlib in $convenience; do # Extract the objects. case $xlib in [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; *) xabs=`pwd`"/$xlib" ;; esac xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` xdir="$gentop/$xlib" $show "${rm}r $xdir" $run ${rm}r "$xdir" $show "$mkdir $xdir" $run $mkdir "$xdir" status=$? if test "$status" -ne 0 && test ! -d "$xdir"; then exit $status fi # We will extract separately just the conflicting names and we will no # longer touch any unique names. It is faster to leave these extract # automatically by $AR in one run. $show "(cd $xdir && $AR x $xabs)" $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 $AR t "$xabs" | sort | uniq -cd | while read -r count name do i=1 while test "$i" -le "$count" do # Put our $i before any first dot (extension) # Never overwrite any file name_to="$name" while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" do name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` done $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? i=`expr $i + 1` done done fi libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval cmds=\"$module_expsym_cmds\" else eval cmds=\"$module_cmds\" fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval cmds=\"$archive_expsym_cmds\" else eval cmds=\"$archive_cmds\" fi fi if test "X$skipped_export" != "X:" && len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$save_output-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*"` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$save_output-${k}.$objext k=`expr $k + 1` output=$output_objdir/$save_output-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadale object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$save_output-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval cmds=\"$archive_expsym_cmds\" else eval cmds=\"$archive_cmds\" fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? exit 0 fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit 1 fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" else gentop="$output_objdir/${obj}x" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" status=$? if test "$status" -ne 0 && test ! -d "$gentop"; then exit $status fi generated="$generated $gentop" for xlib in $convenience; do # Extract the objects. case $xlib in [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; *) xabs=`pwd`"/$xlib" ;; esac xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` xdir="$gentop/$xlib" $show "${rm}r $xdir" $run ${rm}r "$xdir" $show "$mkdir $xdir" $run $mkdir "$xdir" status=$? if test "$status" -ne 0 && test ! -d "$xdir"; then exit $status fi # We will extract separately just the conflicting names and we will no # longer touch any unique names. It is faster to leave these extract # automatically by $AR in one run. $show "(cd $xdir && $AR x $xabs)" $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 $AR t "$xabs" | sort | uniq -cd | while read -r count name do i=1 while test "$i" -le "$count" do # Put our $i before any first dot (extension) # Never overwrite any file name_to="$name" while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" do name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` done $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? i=`expr $i + 1` done done fi reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" eval cmds=\"$reload_cmds\" save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit 0 fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit 0 fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" eval cmds=\"$reload_cmds\" save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit 0 ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$output.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' else $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit 1 ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit 0 fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $0 --fallback-echo"; then case $0 in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";; *) qecho="$SHELL `pwd`/$0 --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) cwrappersource=`$echo ${objdir}/lt-${output}.c` cwrapper=`$echo ${output}.exe` $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit 1" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR #define DIR_SEPARATOR '/' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) #define HAVE_DOS_BASED_FILE_SYSTEM #ifndef DIR_SEPARATOR_2 #define DIR_SEPARATOR_2 '\\' #endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); char * basename (const char *name); char * fnqualify(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup ((char *) basename (argv[0])); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = fnqualify(argv[0]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } char * basename (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha (name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return (char *) base; } char * fnqualify(const char *path) { size_t size; char *p; char tmp[LT_PATHMAX + 1]; assert(path != NULL); /* Is it qualified already? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha (path[0]) && path[1] == ':') return xstrdup (path); #endif if (IS_DIR_SEPARATOR (path[0])) return xstrdup (path); /* prepend the current directory */ /* doesn't handle '~' */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */ p = XMALLOC(char, size); sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path); return p; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit 1" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit 1 fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \$progdir\\\\\$program \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \$progdir/\$program \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" exit 1 fi else # The program doesn't exist. \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " chmod +x $output fi exit 0 ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" status=$? if test "$status" -ne 0 && test ! -d "$gentop"; then exit $status fi generated="$generated $gentop" # Add in members from convenience archives. for xlib in $addlibs; do # Extract the objects. case $xlib in [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; *) xabs=`pwd`"/$xlib" ;; esac xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` xdir="$gentop/$xlib" $show "${rm}r $xdir" $run ${rm}r "$xdir" $show "$mkdir $xdir" $run $mkdir "$xdir" status=$? if test "$status" -ne 0 && test ! -d "$xdir"; then exit $status fi # We will extract separately just the conflicting names and we will no # longer touch any unique names. It is faster to leave these extract # automatically by $AR in one run. $show "(cd $xdir && $AR x $xabs)" $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: warning: object name conflicts; renaming object files" 1>&2 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2 $AR t "$xabs" | sort | uniq -cd | while read -r count name do i=1 while test "$i" -le "$count" do # Put our $i before any first dot (extension) # Never overwrite any file name_to="$name" while test "X$name_to" = "X$name" || test -f "$xdir/$name_to" do name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"` done $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')" $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $? i=`expr $i + 1` done done fi oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP` done fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then eval cmds=\"$old_archive_from_new_cmds\" else eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # GNU ar 2.10+ was changed to match POSIX; thus no paths are # encoded into archives. This makes 'ar r' malfunction in # this piecewise linking case whenever conflicting object # names appear in distinct ar calls; check, warn and compensate. if (for obj in $save_oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2 $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2 AR_FLAGS=cq fi # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*"` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit 1 fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit 1 fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit 1 fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit 0 ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg="$nonopt" fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest="$arg" continue fi case $arg in -d) isdir=yes ;; -f) prev="-f" ;; -g) prev="-g" ;; -m) prev="-m" ;; -o) prev="-o" ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest="$arg" continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit 1 fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit 1 fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit 1 fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit 1 fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit 1 ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit 1 fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit 1 fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit 1 fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" eval cmds=\"$postinstall_cmds\" save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit 1 ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit 0 ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # To insure that "foo" is sourced, and not "foo.exe", # finese the cygwin/MSYS system by explicitly sourcing "foo." # which disallows the automatic-append-.exe behavior. case $build in *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; *) wrapperdot=${wrapper} ;; esac # If there is no directory component, then add one. case $file in */* | *\\*) . ${wrapperdot} ;; *) . ./${wrapperdot} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit 1 fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # To insure that "foo" is sourced, and not "foo.exe", # finese the cygwin/MSYS system by explicitly sourcing "foo." # which disallows the automatic-append-.exe behavior. case $build in *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; *) wrapperdot=${wrapper} ;; esac # If there is no directory component, then add one. case $file in */* | *\\*) . ${wrapperdot} ;; *) . ./${wrapperdot} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir="/tmp" test -n "$TMPDIR" && tmpdir="$TMPDIR" tmpdir="$tmpdir/libtool-$$" if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : else $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 continue fi file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyways case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. eval cmds=\"$old_postinstall_cmds\" save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $0 --finish$current_libdirs' else exit 0 fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. eval cmds=\"$finish_cmds\" save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit 0 $echo "----------------------------------------------------------------------" $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "----------------------------------------------------------------------" exit 0 ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit 1 fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit 1 fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit 1 fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit 1 fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables if test "${save_LC_ALL+set}" = set; then LC_ALL="$save_LC_ALL"; export LC_ALL fi if test "${save_LANG+set}" = set; then LANG="$save_LANG"; export LANG fi # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit 0 fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit 1 fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" if test "$mode" = uninstall; then if test -n "$library_names"; then # Do each command in the postuninstall commands. eval cmds=\"$postuninstall_cmds\" save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. eval cmds=\"$old_postuninstall_cmds\" save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. fi fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit 1 ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit 1 fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit 1 fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit 0 ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit 1 ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit 0 # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: xmpi-2.2.3b8/config/missing0000755000076500007650000002403607725260233011277 #! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch]" ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing 0.4 - GNU automake" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. You can get \`$1Help2man' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then # We have makeinfo, but it failed. exit 1 fi echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; tar) shift if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 fi # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequirements for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 xmpi-2.2.3b8/config/mkinstalldirs0000755000076500007650000000370407725260233012505 #! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" 1>&2 exit 0 ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac case $dirmode in '') if mkdir -p -- . 2>/dev/null; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" fi ;; *) if mkdir -m "$dirmode" -p -- . 2>/dev/null; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr="" chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp="$pathcomp/" done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # End: # mkinstalldirs ends here xmpi-2.2.3b8/config/buildrpm.sh0000555000076500007650000000655707722033602012056 #!/bin/sh -f # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # any temporary files needed by the rpm build process are # kept in this directory: mytmpdir="/tmp/xmpirpm$$" mkdir $mytmpdir || exit 1 # this is the directory where "make rpm" was invoked from rpmbuilddir="`pwd`" # if we fail somewhere along the line, we want to clean out all # the cruft we've left along the way... # Get the version of LAM that we're installing VERSIONFILE=xmpi.h LIBVERSIONFILE=libxmpi/lam_libxmpi.h if test -d /usr/src/RPM; then rpmtopdir="/usr/src/RPM" else rpmtopdir="/usr/src/redhat" fi cat $VERSIONFILE | grep XMPI_VERSION | cut -d\" -f2 > ver.$$ ver="`cat ver.$$`" rm -f ver.$$ cat $LIBVERSIONFILE | grep LAM_LIBXMPI_VERSION | cut -d\" -f2 > ver.$$ libver="`cat ver.$$`" rm -f ver.$$ # rpm names don't like extra dashes shortlibver=`echo $libver | sed -e 's/-//g'` rev=$shortlibver # make sure the tarball is out there if test ! -f xmpi-$ver-$shortlibver.tar.gz; then make dist fi # make sure we have write access to the directories we need if test ! -w $rpmtopdir/SOURCES -o ! -w /usr/local; then echo "Problem creating rpms: You do not have a $rpmtopdir directory" echo "tree, you do not have write access to the $rpmtopdir directory" echo "tree, or you do not have write access to /usr/local directory to" echo "create the xmpi-$ver tree. Please remedy and try again." exit 1 fi # move the tarball and spec file to the rpm directory, # replace the version string, and insert the copyright dealy... cp xmpi-$ver-$shortlibver.tar.gz $rpmtopdir/SOURCES/. sed -e 's/\$COPYRIGHT\$//g' config/xmpi.spec > $mytmpdir/xmpi-copyright.spec sed -e 's/XMPIVERSION/'$ver'/g' $mytmpdir/xmpi-copyright.spec > $mytmpdir/xmpi-$ver.spec.tmp$$ sed -e 's/SHORTLIBVERSION/'$shortlibver'/g' $mytmpdir/xmpi-$ver.spec.tmp$$ > $mytmpdir/xmpi-$ver.spec.tmp sed -e 's/XMPIREVISION/'$rev'/g' $mytmpdir/xmpi-$ver.spec.tmp > $mytmpdir/xmpi-$ver-$rev.spec.tmp sed -e 's/LIBVERSION/'$libver'/g' $mytmpdir/xmpi-$ver-$rev.spec.tmp > $rpmtopdir/SPECS/xmpi-$ver.spec cp xmpi-$ver-$shortlibver.tar.gz $rpmtopdir/SOURCES cd $rpmtopdir/SPECS rpm -ba xmpi-$ver.spec FILE=$rpmtopdir/RPMS/i386/xmpi-$ver-$rev.i386.rpm mv $FILE $rpmbuilddir cat < conftest.h < class foo { public: foo(T yow) : data(yow) { yow.member(3); }; void member(int i); private: T data; }; class bar { public: bar(int i) { data = i; }; void member(int j) { data = data * j; }; private: int data; }; EOF cat > conftest2.C < var1(6); foo< foo > var2(var1); } EOF cat > conftest1.C < void foo::member(int i) { i += 2; } int main(int argc, char *argv[]) { foo var1(6); foo< foo > var2(var1); some_other_function(); return 0; } EOF lsc_template_failed= echo configure:__oline__: $CXX $CXXFLAGS -c conftest1.C >&5 $CXX $CXXFLAGS -c conftest1.C >&5 2>&5 if test ! -f conftest1.o ; then AC_MSG_RESULT([templates not supported?]) echo configure:__oline__: here is the program that failed: >&5 cat conftest1.C >&5 echo configure:__oline__: here is conftest.h: >&5 cat conftest.h >&5 lsc_template_failed=1 else echo configure:__oline__: $CXX $CXXFLAGS -c conftest2.C >&5 $CXX $CXXFLAGS -c conftest2.C >&5 2>&5 if test ! -f conftest2.o ; then AC_MSG_RESULT([unknown error]) echo configure:__oline__: here is the program that failed: >&5 cat conftest2.C >&5 echo configure:__oline__: here is conftest.h: >&5 cat conftest.h >&5 else rm -rf conftest* for lsc_file in `ls` do if test "$lsc_file" != "." -a "$lsc_file" != ".."; then # Is it a directory? if test -d "$lsc_file"; then lsc_template_dir="$lsc_file $lsc_template_dir" # Or is it a file? else name="`echo $lsc_file | cut -d. -f1`" temp_mask= if test "$name" = "main" -o "$name" = "other"; then temp_mask="`echo $lsc_file | cut -d. -f2`" if test "$lsc_template_filemask" = ""; then lsc_template_filemask="$temp_mask"; elif test "`echo $lsc_template_filemask | grep $temp_mask`" = ""; then lsc_template_filemask="$lsc_template_filemask $temp_mask" fi fi fi fi done if test "$lsc_template_filemask" != ""; then temp_mask= for mask in $lsc_template_filemask do temp_mask="*.$mask $temp_mask" done lsc_template_filemask=$temp_mask fi fi fi LSC_CXX_TEMPLATE_REPOSITORY="$lsc_template_dir $lsc_template_filemask" if test "`echo $LSC_CXX_TEMPLATE_REPOSITORY`" != ""; then AC_MSG_RESULT([$LSC_CXX_TEMPLATE_REPOSITORY]) else AC_MSG_RESULT([not used]) fi cd .. rm -rf conf_tmp_$$ # Set the result lsc_name="${lsc_prefix}_CXX_TEMPLATE_REPOSITORY" lsc_str="${lsc_name}=\"$LSC_CXX_TEMPLATE_REPOSITORY\"" eval $lsc_str # Clean up unset lsc_prefix lsc_file lsc_template_failed lsc_template_dir \ lsc_name lsc_str])dnl xmpi-2.2.3b8/config/cxx_have_broken_getline.m40000444000076500007650000000565207722033602015012 dnl -*- shell-script -*- dnl dnl Copyright (c) 2001-2003 The Trustees of Indiana University. dnl All rights reserved. dnl Copyright (c) 1998-2001 University of Notre Dame. dnl All rights reserved. dnl Copyright (c) 1994-1998 The Ohio State University. dnl All rights reserved. dnl dnl This file is part of the XMPI software package. For license dnl information, see the LICENSE file in the top level directory of the dnl XMPI source distribution. dnl dnl $Id: cxx_have_broken_getline.m4,v 1.4 2003/08/23 13:34:12 jsquyres Exp $ dnl define([LSC_CXX_HAVE_BROKEN_GETLINE],[ # # Arguments: prefix (optional) # # Dependencies: # # Tests whether the getline in std::string is broken # # Sets prefix_GETLINE to prefix_getline if broken, getline otherwise # Must call AC_SUBST manually. # # Figure out what prefix to use lsc_cxx_prefix="$1" if test "$lsc_cxx_prefix" = ""; then lsc_cxx_prefix="LSC" fi # First we need to see if we need to check for STL if test "$LSC_CXX_STL" = ""; then LSC_CXX_HAVE_STL($lsc_cxx_prefix) fi # Check for the repository if test "$LSC_CXX_TEMPLATE_REPOSITORY" = ""; then LSC_CXX_FIND_TEMPLATE_REPOSITORY fi AC_MSG_CHECKING([for broken getline]) rm -f conftest.cc conftest.o conftest.txt cat > conftest.txt < conftest.cc < #include #include using namespace std; int main(int agrc, char* argv[]) { bool good, bad, fstr, fstr_eof; bool result = true; fstream input_file; string tmp; input_file.open("conftest.txt", ios::in); for (int i = 0 ; i < 3 ; ++i) { getline(input_file, tmp); fstr = input_file; good = input_file.good(); bad = input_file.bad(); fstr_eof = input_file.eof(); result &= fstr && good && !bad && !fstr_eof; } getline(input_file, tmp); fstr = input_file; good = input_file.good(); bad = input_file.bad(); fstr_eof = input_file.eof(); result &= !fstr && !good && !bad && fstr_eof; return result ? 1 : 0; } EOF echo configure:__oline__: $CXX $CXXFLAGS conftest.cc -o conftest >&5 $CXX $CXXFLAGS conftest.cc -o conftest >&5 2>&5 if (test -f conftest); then echo configure:__oline__: Running getline test program >&5 if (conftest) < /dev/null > /dev/null 2>&1; then echo configure:__oline__: Failed >&5 lsc_result="1" AC_MSG_RESULT([yes]) else echo configure:__oline__: Success >&5 lsc_result="0" AC_MSG_RESULT([no]) fi else echo configure:__oline__: here is the program that failed: >&5 cat conftest.cc >&5 lsc_result="1" AC_MSG_RESULT([yes]) fi # Set the results lsc_name="${lsc_cxx_prefix}_HAVE_BROKEN_GETLINE" lsc_str="${lsc_name}=$lsc_result" eval $lsc_str AC_DEFINE_UNQUOTED($lsc_name, $lsc_result, [whether we have a broken C++ getline or not]) # Clean up /bin/rm -rf conftest* $LSC_CXX_TEMPLATE_REPOSITORY unset lsc_cxx_prefix lsc_name lsc_str lsc_result])dnl xmpi-2.2.3b8/config/cxx_have_stl.m40000444000076500007650000000240007722033602012611 dnl -*- shell-script -*- dnl dnl Copyright (c) 2001-2003 The Trustees of Indiana University. dnl All rights reserved. dnl Copyright (c) 1998-2001 University of Notre Dame. dnl All rights reserved. dnl Copyright (c) 1994-1998 The Ohio State University. dnl All rights reserved. dnl dnl This file is part of the XMPI software package. For license dnl information, see the LICENSE file in the top level directory of the dnl XMPI source distribution. dnl dnl $Id: cxx_have_stl.m4,v 1.2 2003/08/23 13:34:42 jsquyres Exp $ dnl define([LSC_CXX_HAVE_STL],[ # # Arguments: prefix (optional) # # Dependencies: None # # See if the C++ compiler has STL # # Set prefix_CXX_STL and LSC_CXX_STL to 1 if so, 0 if not # AC_DEFINE prefix_CXX_STL to 1 if so, 0 if not # # Figure out what prefix to use lsc_prefix="$1" if test "$lsc_prefix" = ""; then lsc_prefix="LSC" fi # Do the test AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CHECK_HEADER(map, LSC_CXX_STL=1, LSC_CXX_STL=0) # Set the result lsc_name="${lsc_prefix}_CXX_STL" lsc_str="${lsc_name}=$LSC_CXX_STL" eval $lsc_str AC_DEFINE_UNQUOTED($lsc_name, $LSC_CXX_STL, [whether we have C++ STL or not]) # Clean up AC_LANG_RESTORE unset lsc_prefix lsc_str lsc_name])dnl xmpi-2.2.3b8/config/distscript.csh0000555000076500007650000000615607722033602012566 #! /bin/csh -f # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: distscript.csh,v 1.11 2003/08/23 15:07:03 jsquyres Exp $ # set distdir="$1" set config_guess="/l/osl/Students/lamteam/nightly-tarball/config.guess" set config_sub="/l/osl/Students/lamteam/nightly-tarball/config.sub" set start=`date` cat < out-1.$$ sed -e "s/LAMRV/$lamver/" out-1.$$ > out-2.$$ mv -f out-2.$$ $file rm out-1.$$ endif end # # Set social Unix perms # echo "*** Setting social Unix permissions..." chmod +x config/config.guess config/config.sub \ config/install-sh \ config/missing config/mkinstalldirs cat <],[int a;], [ # Xm/Xm.h is in the standard search path. lsc_cv_motif_includes= ], [ # Xm/Xm.h is not in the standard search path. # Locate it and put its directory in `motif_includes' # # /usr/include/Motif* are used on HP-UX (Motif). # /usr/include/X11* are used on HP-UX (X and Athena). # /usr/dt is used on Solaris (Motif). # /usr/openwin is used on Solaris (X and Athena). # Other directories are just guesses. for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ /usr/dt/include /usr/openwin/include \ /usr/dt/*/include /opt/*/include /usr/include/Motif* \ /usr/*/include/X11R6 /usr/*/include/X11R5 /usr/*/include/X11R4 \ "${prefix}"/*/include /usr/*/include /usr/local/*/include \ "${prefix}"/include/* /usr/include/* /usr/local/include/*; do if test -f "$dir/Xm/Xm.h"; then lsc_cv_motif_includes="$dir" break fi done if test "$lsc_cv_motif_includes" = "/usr/include"; then lsc_cv_motif_includes= fi ]) LIBS="$lsc_motif_save_LIBS" CFLAGS="$lsc_motif_save_CFLAGS" CPPFLAGS="$lsc_motif_save_CPPFLAGS" LDFLAGS="$lsc_motif_save_LDFLAGS" ]) motif_includes="$lsc_cv_motif_includes" fi # # Now for the libraries. # if test "$motif_libraries" = ""; then AC_CACHE_VAL(lsc_cv_motif_libraries, [ lsc_motif_save_LIBS="$LIBS" lsc_motif_save_CFLAGS="$CFLAGS" lsc_motif_save_CPPFLAGS="$CPPFLAGS" lsc_motif_save_LDFLAGS="$LDFLAGS" # LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" CFLAGS="$X_CFLAGS $CFLAGS" CPPFLAGS="$X_CFLAGS $CPPFLAGS" LDFLAGS="$X_LIBS $LDFLAGS" # # We use XtToolkitInitialize() here since it takes no arguments # and thus also works with a C++ compiler. AC_TRY_LINK([ #include #include ],[XtToolkitInitialize();], [ # libXm.a is in the standard search path. lsc_cv_motif_libraries= ], [ # libXm.a is not in the standard search path. # Locate it and put its directory in `motif_libraries' # # /usr/lib/Motif* are used on HP-UX (Motif). # /usr/lib/X11* are used on HP-UX (X and Athena). # /usr/dt is used on Solaris (Motif). # /usr/lesstif is used on Linux (Lesstif). # /usr/openwin is used on Solaris (X and Athena). # Other directories are just guesses. for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ /usr/dt/lib /usr/openwin/lib \ /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ /usr/lesstif*/lib /usr/lib/Lesstif* \ /usr/*/lib/X11R6 /usr/*/lib/X11R5 /usr/*/lib/X11R4 /usr/*/lib/X11 \ "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then lsc_cv_motif_libraries="$dir" break fi done if test "$lsc_cv_motif_libraries" = ""; then lsc_cv_motif_libraries=no fi ]) # LIBS="$lsc_motif_save_LIBS" CFLAGS="$lsc_motif_save_CFLAGS" CPPFLAGS="$lsc_motif_save_CPPFLAGS" LDFLAGS="$lsc_motif_save_LDFLAGS" ]) # motif_libraries="$lsc_cv_motif_libraries" fi # # Add Motif definitions to X flags # if test "$motif_includes" != "" && test "$motif_includes" != "$x_includes" && test "$motif_includes" != "no" then X_CFLAGS="-I$motif_includes $X_CFLAGS" fi if test "$motif_libraries" != "" && test "$motif_libraries" != "$x_libraries" && test "$motif_libraries" != "no" then case "$X_LIBS" in *-R\ *) X_LIBS="-L$motif_libraries -R $motif_libraries $X_LIBS";; *-R*) X_LIBS="-L$motif_libraries -R$motif_libraries $X_LIBS";; *) X_LIBS="-L$motif_libraries $X_LIBS";; esac fi # # motif_libraries_result="$motif_libraries" motif_includes_result="$motif_includes" test "$motif_libraries_result" = "" && motif_libraries_result="in default path" test "$motif_includes_result" = "" && motif_includes_result="in default path" test "$motif_libraries_result" = "no" && motif_libraries_result="(none)" test "$motif_includes_result" = "no" && motif_includes_result="(none)" AC_MSG_RESULT( [libraries $motif_libraries_result, headers $motif_includes_result]) ])dnl xmpi-2.2.3b8/config/mpi_check_mpi_h.m40000444000076500007650000000252307722033602013226 dnl -*- shell-script -*- dnl dnl Copyright (c) 2001-2003 The Trustees of Indiana University. dnl All rights reserved. dnl Copyright (c) 1998-2001 University of Notre Dame. dnl All rights reserved. dnl Copyright (c) 1994-1998 The Ohio State University. dnl All rights reserved. dnl dnl This file is part of the XMPI software package. For license dnl information, see the LICENSE file in the top level directory of the dnl XMPI source distribution. dnl dnl $Id: mpi_check_mpi_h.m4,v 1.2 2003/08/23 13:36:00 jsquyres Exp $ dnl define([LSC_MPI_CHECK_MPI_H],[ # # Arguments: None # # Dependencies: None # # Aborts if we cannot #include # AC_MSG_CHECKING([for mpi.h]) # See if we can find touch conftest.o conftest.lo rm -f conftest.o conftest.lo cat > conftest.$ac_ext < int main(int argc, char* argv[]) { return 0; } EOF echo configure:__oline__: $ac_compile >&5 (eval $ac_compile) 2>&5 if test -f conftest.o -o -f conftest.lo ; then AC_MSG_RESULT([yes]) else echo configure:__oline__: here is the program that failed: >&5 cat conftest.$ac_ext >&5 AC_MSG_RESULT([no]) AC_MSG_ERROR([cannot continue -- cannot find ]) fi # Kill all temporaries rm -f conftest* # Be social; clean up all variables used unset lsc_prefix])dnl xmpi-2.2.3b8/config/mpi_check_trillium.m40000444000076500007650000000315407722033602013774 dnl -*- shell-script -*- dnl dnl Copyright (c) 2001-2003 The Trustees of Indiana University. dnl All rights reserved. dnl Copyright (c) 1998-2001 University of Notre Dame. dnl All rights reserved. dnl Copyright (c) 1994-1998 The Ohio State University. dnl All rights reserved. dnl dnl This file is part of the XMPI software package. For license dnl information, see the LICENSE file in the top level directory of the dnl XMPI source distribution. dnl dnl $Id: mpi_check_trillium.m4,v 1.2 2003/08/23 13:35:48 jsquyres Exp $ dnl define([LSC_MPI_CHECK_TRILLIUM],[ # # Arguments: None # # Dependencies: None # # Aborts if we cannot #include # lam.h is ONLY installed if trilium header files are present # AC_MSG_CHECKING([for Trillium header files]) # See if we can find touch conftest.o conftest.lo rm -f conftest.o conftest.lo cat > conftest.$ac_ext < int main(int argc, char* argv[]) { return 0; } EOF echo configure:__oline__: $ac_compile >&5 (eval $ac_compile) 2>&5 if test -f conftest.o -o -f conftest.lo ; then AC_MSG_RESULT([yes]) else echo configure:__oline__: here is the program that failed: >&5 cat conftest.$ac_ext >&5 AC_MSG_RESULT([no]) AC_MSG_WARN(Can not find Trillium header files.) AC_MSG_WARN(LAM/MPI must be configured with the '--with-trillium') AC_MSG_WARN(option in order to build this application) AC_MSG_ERROR([cannot continue -- cannot find Trillium header files]) fi # Kill all temporaries rm -f conftest* # Be social; clean up all variables used unset lsc_prefix])dnl xmpi-2.2.3b8/config/xmpi.spec0000444000076500007650000001043207722033602011515 # -*- shell-script -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: xmpi.spec,v 1.5 2003/08/23 13:35:48 jsquyres Exp $ # # spec file for XMPI rpm # Summary: XMPI is an X/Motif based graphical user interface for running, debugging and visualizing MPI programs. Extensive MPI information is extracted from a running application on demand, or from a cummulative log of communication. Both sources are tightly integrated with an application overview window and any number of single process focus windows. Name: xmpi %define version XMPIVERSION %define shortlibver SHORTLIBVERSION %define revision XMPIREVISION %define libversion LIBVERSION Version: %{version} Release: %{revision} Copyright: University of Notre Dame/LAM Team (Open Source) Group: Development/Applications Source: http://www.mpi.nd.edu/lam/download/xmpi-%{version}-%{shortlibver}.tar.gz URL: http://www.mpi.nd.edu/lam/software/xmpi/ Vendor: University of Notre Dame/LAM Team Packager: LAM Team Requires: lam = %{libversion} %description XMPI is an X/Motif based graphical user interface for running, debugging and visualizing MPI programs. Extensive MPI information is extracted from a running application on demand, or from a cummulative log of communication. Both sources are tightly integrated with an application overview window and any number of single process focus windows. XMPI can acquire and display extensive detail on an application's MPI communication, including the following: o process synchronization status: running, system or blocked o message queue contents o source, destination, root ranks o MPI function name o communicator o datatype o message count o tag The above information is acquired from on-demand snapshots of application status using debugging hooks in the MPI implementation or from a trace log of communication activity. XMPI is a great tool for teaching MPI in a hands-on setting. Students run example code and can see and verify each MPI operation. XMPI has an application "wizard" to help assemble programs and assign processors to MIMD and SPMD applications. Furthermore, it is not tedious to generate, acquire and display information. A typical development cycle begins by assembling an application and continues in the following manner. o press the snapshot button to see what's going on now o popup focus windows for a few interesting processes o press the snapshot button a few (or a few dozen!) more times o see the application completed, hung, deadlocked, etc... o press the trace button once and the timeline window is displayed o review the previous execution with trace log snapshots o make application changes and press the rerun button No recompiles or special libraries are required to snapshot the application or obtain a trace log. %prep rm -rf $RPM_BUILD_DIR/xmpi-%{version} zcat $RPM_SOURCE_DIR/xmpi-%{version}-%{shortlibver}.tar.gz | tar -xvvf - mv $RPM_BUILD_DIR/xmpi-%{version}-%{shortlibver} $RPM_BUILD_DIR/xmpi-%{version} cd $RPM_BUILD_DIR/xmpi-%{version} chown -R root:root . ./configure --with-lam --prefix=/usr/local/lam-%{libversion} # build xmpi %build cd $RPM_BUILD_DIR/xmpi-%{version} make # install xmpi (into default prefix /usr/local/) %install cd $RPM_BUILD_DIR/xmpi-%{version} make install # as part of the install, make some symlinks ln -s /usr/local/lam-%{libversion}/bin/xmpi /usr/bin/. ln -s /usr/local/lam-%{libversion}/man/man1/xmpi.1 /usr/man/man1/. %files # xmpi documentation (to be installed in /usr/doc/xmpi-ver} %doc $RPM_BUILD_DIR/xmpi-%{version}/INSTALL %doc $RPM_BUILD_DIR/xmpi-%{version}/LICENSE %doc $RPM_BUILD_DIR/xmpi-%{version}/README %doc $RPM_BUILD_DIR/xmpi-%{version}/ /usr/local/lam-%{libversion}/app-defaults/XMPI /usr/local/lam-%{libversion}/bin/xmpi /usr/local/lam-%{libversion}/man/man1/xmpi.1 /usr/bin/xmpi /usr/man/man1/. xmpi-2.2.3b8/README0000644000076500007650000000513007725267023007311 Copyright (c) 2001-2003 The Trustees of Indiana University. All rights reserved. Copyright (c) 1998-2001 University of Notre Dame. All rights reserved. Copyright (c) 1994-1998 The Ohio State University. All rights reserved. This file is part of the XMPI software package. For license information, see the LICENSE file in the top level directory of the XMPI source distribution. This is the source for XMPI 2.2.3b8, a graphical user interface for MPI program development. The contents of directories at this level are: src/Bitmaps -- X11 bitmaps used by XMPI src/Pixmaps -- XPM format pixmaps used by XMPI app-defaults -- resource files for supported machines src/libxmpi -- modules to build libxmpi for the LAM MPI implementation Please refer to the file INSTALL for a list of supported platforms and for installation instructions. -=- XMPI can acquire and display extensive detail on an application's MPI communication, including the following: o process synchronization status: running, system or blocked o message queue contents o source, destination, root ranks o MPI function name o communicator o datatype o message count o tag The above information is acquired from on-demand snapshots of application status using debugging hooks in the MPI implementation or from a trace log of communication activity. -=- XMPI is a great tool for teaching MPI in a hands-on setting. Students run example code and can see and verify each MPI operation. XMPI has an application "wizard" to help assemble programs and assign processors to MIMD and SPMD applications. Furthermore, it is not tedious to generate, acquire and display information. A typical development cycle begins by assembling an application and continues in the following manner. o press the snapshot button to see what's going on now o popup focus windows for a few interesting processes o press the snapshot button a few (or a few dozen!) more times o see the application completed, hung, deadlocked, etc... o press the trace button once and the timeline window is displayed o review the previous execution with trace log snapshots o make application changes and press the rerun button No recompiles or special libraries are required to snapshot the application or obtain a trace log. -=- A longer, illustrated description of the XMPI 2.2.3b8 can be found at http://www.lam-mpi.org/software/xmpi/ -=- XMPI 2.2.3b8 can be obtained from http://www.lam-mpi.org/download/ XMPI 2.2.3b8 is an X11/Motif application that requires either Motif or Lesstif libraries. xmpi-2.2.3b8/AUTHORS0000444000076500007650000000156707721665563007520 XMPI Authors ============ The IDs in parentieses are those used in CVS commit notices Current Authors --------------- Indiana University: - Brian Barrett (brbarret) - Andrew Lumsdaine (lums) - Jeff Squyres (jsquyres) Previous Authors ---------------- LAM/MPI was originally developed at the Ohio Supercomputing Center at Ohio State University. In 1998, the project moved to the Laboratory for Scientific Computing at the University of Notre Dame, under the supervision of Dr. Andrew Lumsdaine. In 2001, the project moved with Dr. Lumsdaine to the Open Systems Laboratory at Indiana University. Notre Dame: - Brian Barrett (bbarrett) - Andrew Lumsdaine (lums) - Arun Rodrigues (arodrig6) - Jeff Squyres (jsquyres) Ohio State University: - Greg Burns - Raja Daoud - Vibha Dixit - Raghu Machiraju - Nick Nevin - Vibha Radiya - Jim Vaigl xmpi-2.2.3b8/INSTALL0000644000076500007650000001611307725267023007465 Copyright (c) 2001-2003 The Trustees of Indiana University. All rights reserved. Copyright (c) 1998-2001 University of Notre Dame. All rights reserved. Copyright (c) 1994-1998 The Ohio State University. All rights reserved. This file is part of the XMPI software package. For license information, see the LICENSE file in the top level directory of the XMPI source distribution. Installation instructions for XMPI 2.2.3b8 ========================================= XMPI 2.2.3b8 will only work with LAM/MPI 6.5.9 and 7.0.x. It may not work with any version of LAM/MPI prior to LAM/MPI 6.5.9. NOTE THAT THIS IS A BETA RELEASE OF XMPI. Some things are bound to be broken. This file contains the installation instructions for XMPI 2.2.3b8 Here's a brief table of contents: * For the impatient * Unpacking the distribution * Configuration * Building XMPI * Using XMPI - Typical usage * Troubleshooting - Problems with building XMPI - Sending mail to the XMPI mailing list NOTE: In LAM/MPI 6.5, the build process was changed significantly. Many of the header files that XMPI relies on are now not installed by default. You must add the option '--with-trillium' when running LAM/MPI's configure script in order to successfully build XMPI for LAM/MPI. For the impatient ----------------- If you don't want to read the rest of the instructions, the following should do the trick for most situations: % gunzip -c xmpi-2.2.3b8.tar.gz | tar xf - % cd xmpi-2.2.3b8.tar.gz % ./configure --prefix=/path/to/install/in [...lots of output...] % make [...lots of output...] % make install If you do not specify a prefix, XMPI install under /usr/local/. Now go read the Announce file; it contains all the information about the new features of this release of XMPI. Unpacking the distribution -------------------------- The XMPI distribution is available from the main LAM/MPI web site: http://www.lam-mpi.org/ Uncompress the archive and extract the sources. % gunzip -c xmpi-2.2.3b8.tar.gz | tar xf - or % uncompress -c xmpi-2.2.3b8.tar.Z | tar xf - Configuration ------------- LAM/MPI uses a GNU configure script to perform site and architecture specific configuration. Change directory to the top level LAM directory (xmpi-2.2.3b8-LAMLIBRV) and run the configure script. % ./configure {options} or % sh ./configure {options} NOTE: Unlike most configure scripts, XMPI's configure does not follow the CC environmental variable. If you wish to specify a compiler, you MUST use --with-cc. By default the configure script sets the XMPI install directory to /usr/local/. This can be overridden with the --prefix option (see below). The configure script will create several configuration files: config.log and Makefile. You may wish to inspect these files for a sanity check, but ./configure usually guesses correctly. The configure script recognizes the following options (shown here in alphabetical order): --enable-echo Will echo all of the commands that configure executes. This is usually for debugging purposes only, and is not recommended for end users. --prefix=PREFIX Sets the installation location LAMHOME for the LAM binaries, libs, etc., to directory PREFIX. PREFIX must be specified as an absolute directory name. --with-cc=CC Use the C compiler CC. --with-cflags=CFLAGS Use the C compiler flags CFLAGS. The flags passed to the C compiler can also be selected by setting the "CFLAGS" environment variable before running configure. --with-cxx=CXX Use the C++ compiler CXX. --with-cflags=CFLAGS Use the C compiler flags CFLAGS. The flags passed to the C compiler can also be selected by setting the "CFLAGS" environment variable before running configure. --with-ldflags=LDFLAGS Use the LD linker flags LDFLAGS. If this flag is not set on the ./configure command line, the value for CFLAGS is used. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. Building XMPI ------------ Once the configuration step has completed, build XMPI by doing: % make in the top level XMPI directory. This will build the XMPI binaries and libraries. You should test the binary to make sure that the build completed normally. To install the binaries, libraries, and man pages, enter: % make install Note that you must have write permission in the install directory for this command to work. Using XMPI --------- --- Typical usage Generally, XMPI is used to launch MPI programs and then review the communication history at the completion of the program. In general, there will be little difference in the process used to run an MPI program using XMPI in place of a command-line interface. On some implimentations of MPI (most notably LAM), you may have to launch a daemon on each of the nodes before running an MPI process. XMPI does not launch the daemon. You MUST launch the daemon on the command line before running the MPI program in XMPI. Troubleshooting --------------- --- Problems with building XMPI It is highly recommended that you execute the following steps *in order*. Many people have similar problems with configuration and initial setup of XMPI, and most common problems have already been answered in one way or another. 1. Check the mailing list archives. Use the "search" features to check old posts and see if others have asked the same question and had it answered: http://www.lam-mpi.org/MailArchives/xmpi/ 2. If you do not find a solution to your problem in the above resources, and your problem specifically has to do with *building* XMPI, send the following information to the XMPI mailing list (see the next section below about sending mail to the XMPI mailing list): a. The output of "uname -a" c. The config.log file (in the top level XMPI build directory) d. The output from when you ran "./configure" e. The output from when you ran "make" To capture the output of the configure and make steps you can use the script command or the following technique if using a csh style shell: % ./configure {options} |& tee config.LOG % make install |& tee make.LOG or if using a Bourne style shell: % ./configure {options} 2>&1 | tee config.LOG % make install 2>&1 | tee make.LOG --- Sending mail to the XMPI mailing list In order to post to the XMPI mailing list, you must subscribe to the list. This can be done using the MailMan web interface at: http://www.lam-mpi.org/mailman/listinfo.cgi/xmpi Messages can be posted to the list by sending an e-mail to xmpi@lam-mpi.org xmpi-2.2.3b8/Makefile.am0000444000076500007650000000163007722033602010453 # -*- Makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.8 2003/08/23 13:39:49 jsquyres Exp $ # include $(top_srcdir)/config/Makefile.options SUBDIRS = src man DIST_SUBDIRS = $(SUBDIRS) app-defaults config EXTRA_DIST = LICENSE INSTALL NEWS README VERSION AUTHORS # This will work on Solaris ND machines; 'cause that's where we move # often make distributions from. :-) TAR = gtar dist-hook: csh -f config/distscript.csh $(DESTDIR)$(distdir) xmpi-2.2.3b8/Makefile.in0000664000076500007650000004421207725260237010504 # Makefile.in generated by automake 1.7.6 from Makefile.am. # @configure_input@ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- Makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.8 2003/08/23 13:39:49 jsquyres Exp $ # # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.options,v 1.1 2003/08/23 13:32:15 jsquyres Exp $ # srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_triplet = @host@ ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLEANFILES = @CLEANFILES@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBXMPI = @LIBXMPI@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ RM = @RM@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHELL_CMD = @SHELL_CMD@ STRIP = @STRIP@ VERSION = @VERSION@ WANT_LAM_XMPI_FALSE = @WANT_LAM_XMPI_FALSE@ WANT_LAM_XMPI_TRUE = @WANT_LAM_XMPI_TRUE@ XMPI_VERSION = @XMPI_VERSION@ X_CFLAGS = @X_CFLAGS@ X_CXXFLAGS = @X_CXXFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign dist-bzip2 SUBDIRS = src man DIST_SUBDIRS = $(SUBDIRS) app-defaults config EXTRA_DIST = LICENSE INSTALL NEWS README VERSION AUTHORS # This will work on Solaris ND machines; 'cause that's where we move # often make distributions from. :-) TAR = gtar subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = $(top_builddir)/src/xmpi/xmpi_config.h CONFIG_CLEAN_FILES = DIST_SOURCES = RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ ps-recursive install-info-recursive uninstall-info-recursive \ all-recursive install-data-recursive install-exec-recursive \ installdirs-recursive install-recursive uninstall-recursive \ check-recursive installcheck-recursive DIST_COMMON = README $(top_srcdir)/config/Makefile.options AUTHORS \ INSTALL Makefile.am Makefile.in NEWS acinclude.m4 aclocal.m4 \ configure configure.in all: all-recursive .SUFFIXES: am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/config/Makefile.options $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe) $(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): configure.in acinclude.m4 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @set fnord $$MAKEFLAGS; amf=$$2; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @set fnord $$MAKEFLAGS; amf=$$2; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ETAGS = etags ETAGSFLAGS = CTAGS = ctags CTAGSFLAGS = tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if (etags --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ else \ include_option=--include; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -f $$subdir/TAGS && \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$tags$$unique" \ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = . distdir = $(PACKAGE)-$(VERSION) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) $(mkinstalldirs) $(distdir)/./config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d $(distdir)/$$subdir \ || mkdir $(distdir)/$$subdir \ || exit 1; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" \ distdir=../$(distdir)/$$subdir \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist dist-all: distdir $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist $(am__remove_distdir) GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ && rm -f $(distdir).tar.gz \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @echo "$(distdir).tar.gz is ready for distribution" | \ sed 'h;s/./=/g;p;x;p;x' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: info: info-recursive info-am: install-data-am: install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ clean-generic clean-libtool clean-recursive ctags \ ctags-recursive dist dist-all dist-bzip2 dist-gzip distcheck \ distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am dvi-recursive info info-am \ info-recursive install install-am install-data install-data-am \ install-data-recursive install-exec install-exec-am \ install-exec-recursive install-info install-info-am \ install-info-recursive install-man install-recursive \ install-strip installcheck installcheck-am installdirs \ installdirs-am installdirs-recursive maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive mostlyclean \ mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ pdf pdf-am pdf-recursive ps ps-am ps-recursive tags \ tags-recursive uninstall uninstall-am uninstall-info-am \ uninstall-info-recursive uninstall-recursive dist-hook: csh -f config/distscript.csh $(DESTDIR)$(distdir) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xmpi-2.2.3b8/NEWS0000444000076500007650000000453207722033602007122 -*- text -*- Copyright (c) 2001-2003 The Trustees of Indiana University. All rights reserved. Copyright (c) 1998-2001 University of Notre Dame. All rights reserved. Copyright (c) 1994-1998 The Ohio State University. All rights reserved. This file is part of the XMPI software package. For license information, see the LICENSE file in the top level directory of the XMPI source distribution. 2.2.3b7 ------- * Converted to using newer GNU Auto* tools * Fixed some name conflict problems with internal LAM functions * Applied IU license to all files and new AUTHORS file * Added check to figure out if HOST2COMP or HOST2COMPNODE should be used (LAM constant) 2.2.3b6 ------- * A problem with loading app schema files from pre-2.2.3 XMPI and XMPI not automatically turning on tracing was fixed * Believe the problem reported on the XMPI list with configure not doing the right thing when the motif include path is specified has been fixed 2.2.3b5 ------- * A problem with a Segmentation Fault in xpm.cc was fixed. 2.2.3b4 ------- * A problem was reported on the LAM list with XMPI_getline. It appears I wasn't including the XMPI_getline headerfile in the cases where it was actually needed. * Attempt at fixing a bug on IA64 with xmpi_atexit() reported on the LAM list. 2.2.3b3 ------- * Configure now checks to make sure LAM/MPI Trillium header files are installed, and gives a useful error message if they are not. * Motif check re-written so that it will have more luck finding the "right" files to use * Removed useless errno string from some error message box contents * Fixed issue with loading app schema files from pre-2.2.3 XMPI 2.2.3b2 ------- * Fixed build issues on IRIX * Fixed logic error that would lead to seg faults if initial kinit() failed 2.2.3b1 ------- * Added enhanced build and run window for finer-grained control over SPMD and MPMD applications * Added "buoys": markers in user code that appear in trace windows - See http://www.lam-mpi.org/software/xmpi/lam.php for information on using Buoys in LAM/MPI * Added support for MPI-2 MPI_COMM_set_name() when used with LAM/MPI 6.5 * Fixed small Lesstif bugs with mouse-over hints * Converted to C++ 2.2 --- * Updated to work with LAM 6.3.2 * Fixed small build problem on certain architectures xmpi-2.2.3b8/acinclude.m40000444000076500007650000000176207722033602010616 dnl -*- shell-script -*- dnl dnl Copyright (c) 2001-2003 The Trustees of Indiana University. dnl All rights reserved. dnl Copyright (c) 1998-2001 University of Notre Dame. dnl All rights reserved. dnl Copyright (c) 1994-1998 The Ohio State University. dnl All rights reserved. dnl dnl This file is part of the XMPI software package. For license dnl information, see the LICENSE file in the top level directory of the dnl XMPI source distribution. dnl dnl $Id: acinclude.m4,v 1.6 2003/08/23 13:28:29 jsquyres Exp $ dnl # Get all the respective tests; these are from the LSC standard m4 # repository # # C++ tests # sinclude(config/cxx_find_template_repository.m4) sinclude(config/cxx_have_stl.m4) sinclude(config/cxx_have_broken_getline.m4) # # MPI tests # sinclude(config/mpi_check_mpi_h.m4) sinclude(config/mpi_check_trillium.m4) sinclude(config/lam_check_constants.m4) # # Motif tests # sinclude(config/lsc_find_motif.m4) xmpi-2.2.3b8/aclocal.m40000664000076500007650000072253407725260220010301 # generated automatically by aclocal 1.7.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 # Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. dnl -*- shell-script -*- dnl dnl Copyright (c) 2001-2003 The Trustees of Indiana University. dnl All rights reserved. dnl Copyright (c) 1998-2001 University of Notre Dame. dnl All rights reserved. dnl Copyright (c) 1994-1998 The Ohio State University. dnl All rights reserved. dnl dnl This file is part of the XMPI software package. For license dnl information, see the LICENSE file in the top level directory of the dnl XMPI source distribution. dnl dnl $Id: acinclude.m4,v 1.6 2003/08/23 13:28:29 jsquyres Exp $ dnl # Get all the respective tests; these are from the LSC standard m4 # repository # # C++ tests # sinclude(config/cxx_find_template_repository.m4) sinclude(config/cxx_have_stl.m4) sinclude(config/cxx_have_broken_getline.m4) # # MPI tests # sinclude(config/mpi_check_mpi_h.m4) sinclude(config/mpi_check_trillium.m4) sinclude(config/lam_check_constants.m4) # # Motif tests # sinclude(config/lsc_find_motif.m4) # Do all the work for Automake. -*- Autoconf -*- # This macro actually does too much some checks are only needed if # your package does certain things. But this isn't really a big deal. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 10 AC_PREREQ([2.54]) # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow # the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_MISSING_PROG(AMTAR, tar) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright 2002 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.7.6])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright 2001, 2002 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 2 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # # Check to make sure that the build environment is sane. # # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 3 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # -*- Autoconf -*- # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 3 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # AM_AUX_DIR_EXPAND # Copyright 2001 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. # Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50]) AC_DEFUN([AM_AUX_DIR_EXPAND], [ # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. # Copyright 2001 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # AM_PROG_INSTALL_STRIP # Copyright 2001 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # -*- Autoconf -*- # Copyright (C) 2003 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 1 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # serial 5 -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c : > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # (even with -Werror). So we grep stderr for any message # that says an option was ignored. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking Speeds up one-time builds --enable-dependency-tracking Do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. #serial 2 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue # Extract the definition of DEP_FILES from the Makefile without # running `make'. DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` test -z "$DEPDIR" && continue # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n -e '/^U = / s///p' < "$mf"` test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" # We invoke sed twice because it is the simplest approach to # changing $(DEPDIR) to its actual value in the expansion. for file in `sed -n -e ' /^DEP_FILES = .*\\\\$/ { s/^DEP_FILES = // :loop s/\\\\$// p n /\\\\$/ b loop p } /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 2 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright 1997, 2000, 2001 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # serial 5 AC_PREREQ(2.52) # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE]) AC_SUBST([$1_FALSE]) if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]) fi])]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # serial 47 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) # ----------------------------------------------------------- # If this macro is not defined by Autoconf, define it here. m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ])]) dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ])])# AC_PROG_LIBTOOL # _AC_PROG_LIBTOOL # ---------------- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ])# _AC_PROG_LIBTOOL # AC_LIBTOOL_SETUP # ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl AC_LIBTOOL_SYS_MAX_CMD_LEN AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE AC_LIBTOOL_OBJDIR AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e s/^X//' [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] # Same as above, but do not quote variable references. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except M$VC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" AC_CHECK_TOOL(AR, ar, false) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" ;; *) old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes AC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_AC_SYS_COMPILER # ------------------- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_AC_SYS_COMPILER # _LT_AC_SYS_LIBPATH_AIX # ---------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX # _LT_AC_SHELL_INIT(ARG) # ---------------------- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_AC_SHELL_INIT # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null && echo_test_string="`eval $cmd`" && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) ])])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_LOCK # ----------- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case "`/usr/bin/file conftest.o`" in *32-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; ]) esac need_locks="$enable_libtool_lock" ])# _LT_AC_LOCK # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_CACHE_CHECK([$1], [$2], [$2=no ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s conftest.err; then $2=yes fi fi $rm conftest* ]) if test x"[$]$2" = xyes; then ifelse([$5], , :, [$5]) else ifelse([$6], , :, [$6]) fi ])# AC_LIBTOOL_COMPILER_OPTION # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ------------------------------------------------------------ # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD else $2=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then ifelse([$4], , :, [$4]) else ifelse([$5], , :, [$5]) fi ])# AC_LIBTOOL_LINKER_OPTION # AC_LIBTOOL_SYS_MAX_CMD_LEN # -------------------------- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 testring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; *) # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ = "XX$testring") >/dev/null 2>&1 && new_result=`expr "X$testring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` testring=$testring$testring done testring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi ])# AC_LIBTOOL_SYS_MAX_CMD_LEN # _LT_AC_CHECK_DLFCN # -------------------- AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl ])# _LT_AC_CHECK_DLFCN # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ------------------------------------------------------------------ AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); }] EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_unknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi ])# AC_LIBTOOL_DLOPEN_SELF # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) # --------------------------------- # Check to see if options -c and -o are simultaneously supported by compiler AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext # According to Tom Tromey, Ian Lance Taylor reported there are C compilers # that will create temporary files in the current directory regardless of # the output directory. Thus, making CWD read-only will cause this test # to fail, enabling locking or at least warning the user not to do parallel # builds. chmod -w . lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s out/conftest.err; then _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . $rm conftest* out/* rmdir out cd .. rmdir conftest $rm conftest* ]) ])# AC_LIBTOOL_PROG_CC_C_O # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) # ----------------------------------------- # Check to see if we can do hard links to lock some files if needed AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl hard_links="nottested" if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS # AC_LIBTOOL_OBJDIR # ----------------- AC_DEFUN([AC_LIBTOOL_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir ])# AC_LIBTOOL_OBJDIR # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) # ---------------------------------------------- # Check hardcoding attributes. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_AC_TAGVAR(hardcode_action, $1)= if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then # We can hardcode non-existant directories. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH # AC_LIBTOOL_SYS_LIB_STRIP # ------------------------ AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi ])# AC_LIBTOOL_SYS_LIB_STRIP # AC_LIBTOOL_SYS_DYNAMIC_LINKER # ----------------------------- # PORTME Fill in your ld.so characteristics AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_MSG_CHECKING([dynamic linker characteristics]) library_names_spec= libname_spec='lib$name' soname_spec= shrext=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext='$(test .$module = .yes && echo .so || echo .dylib)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case "$host_cpu" in ia64*) shrext='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER # _LT_AC_TAGCONFIG # ---------------- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_ARG_WITH([tags], [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], [include additional configurations @<:@automatic@:>@])], [tagnames="$withval"]) if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then AC_MSG_WARN([output file `$ofile' does not exist]) fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && test "X$CXX" != "Xno"; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 dll's AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- #- set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognise shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognise a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the path to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case "$host_cpu" in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; irix5* | irix6* | nonstopux*) case $host_os in irix5* | nonstopux*) # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" ;; *) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" ;; esac lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux*) case $host_cpu in alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) lt_cv_deplibs_check_method=pass_all ;; *) # glibc up to 2.1.1 does not perform some relocations on ARM lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; esac lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx) lt_cv_deplibs_check_method=unknown ;; openbsd*) lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' else lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' fi ;; osf3* | osf4* | osf5*) # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' lt_cv_file_magic_test_file=/shlib/libc.so lt_cv_deplibs_check_method=pass_all ;; sco3.2v5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_test_file=/lib/libc.so ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the path to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/${ac_tool_prefix}nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac esac fi done IFS="$lt_save_ifs" test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac ])# AC_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and # top_srcdir appropriately in the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that LIBLTDL # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If # DIRECTORY is not provided and an installed libltdl is not found, it is # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single # quotes!). If your package is not flat and you're not using automake, # define top_builddir and top_srcdir appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`]) ])# _LT_AC_LANG_CXX # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # -------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' _LT_AC_SYS_COMPILER # # Check for any special shared library compilation flags. # _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= if test "$GCC" = no; then case $host_os in sco3.2v5*) _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' ;; esac fi if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : else AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no fi fi # # Check to make sure the static flag actually works. # AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_DLOPEN_SELF($1) # Report which librarie types wil actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case "$host_os" in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; darwin* | rhapsody*) if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no case "$host_os" in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' ;; *) # Darwin 1.3 on test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' ;; esac # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. Also zsh mangles # `"' quotes if we put them in here... so don't! output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= # Source file extension for C++ test sources. ac_ext=cc # Object file extension for compiled C++ test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) _LT_AC_TAGVAR(always_export_symbols, $1)=yes # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds it's shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no case "$host_os" in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' ;; *) # Darwin 1.3 on test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' ;; esac lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes fi ;; dgux*) case $cc_basename in ec++) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then case "$host_cpu" in hppa*64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; *) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case "$host_cpu" in hppa*64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC) case "$host_cpu" in hppa*64*|ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case "$host_cpu" in ia64*|hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; irix5* | irix6*) case $cc_basename in CC) # SGI C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc) # Intel C++ with_gnu_ld=yes _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; cxx) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; osf3*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ $rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sco*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no case $cc_basename in CC) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; sunos4*) case $cc_basename in CC) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx) # Green Hills C++ Compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' fi ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; tandem*) case $cc_basename in NCC) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_DLOPEN_SELF($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) # ------------------------ # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext='$shrext' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation ? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. test -f Makefile && make "$ltmain" fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Transform the above into a raw symbol and a C symbol. symxfrm='\1 \2\3 \3' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris* | sysv5*) symcode='[[BDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGISTW]]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux*) case $cc_basename in KCC) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; cxx) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx) # Digital/Compaq C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; sco*) case $cc_basename in CC) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; *) ;; esac ;; solaris*) case $cc_basename in CC) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; unixware*) ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux*) case $CC in icc|ecc) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; ccc) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; sco3.2v5*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=yes else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) _LT_AC_TAGVAR(always_export_symbols, $1)=yes # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds it's shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi4*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext=".dll" # FIXME: Setting linknames here is a bad hack. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no case "$host_os" in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' ;; *) # Darwin 1.3 on test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' ;; esac # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. Also zsh mangles # `"' quotes if we put them in here... so don't! lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; *) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; sco3.2v5*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4.2uw2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv5*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && break cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done SED=$lt_cv_path_SED ]) AC_MSG_RESULT([$SED]) ]) # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. AC_PREREQ([2.52]) # serial 6 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) xmpi-2.2.3b8/configure0000775000076500007650000272305007725260232010347 #! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.57. # # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 # Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" # Sed expression to map a string onto a valid variable name. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac echo=${ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null && echo_test_string="`eval $cmd`" && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` tagnames=`echo "$tagnames,F77" | sed 's/^,//'` # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local ac_config_libobj_dir=. cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="src/xmpi/xmpi.cc" ac_default_prefix=/usr/local # Factoring default headers for most tests. ac_includes_default="\ #include #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #endif #if HAVE_STRINGS_H # include #endif #if HAVE_INTTYPES_H # include #else # if HAVE_STDINT_H # include # endif #endif #if HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS XMPI_VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE WANT_LAM_XMPI_TRUE WANT_LAM_XMPI_FALSE LIBXMPI CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_CXXFLAGS CXXCPP RM SHELL_CMD EGREP CLEANFILES LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 { (exit 1); exit 1; }; } srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias ac_env_CXX_set=${CXX+set} ac_env_CXX_value=$CXX ac_cv_env_CXX_set=${CXX+set} ac_cv_env_CXX_value=$CXX ac_env_CXXFLAGS_set=${CXXFLAGS+set} ac_env_CXXFLAGS_value=$CXXFLAGS ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} ac_cv_env_CXXFLAGS_value=$CXXFLAGS ac_env_LDFLAGS_set=${LDFLAGS+set} ac_env_LDFLAGS_value=$LDFLAGS ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ac_cv_env_LDFLAGS_value=$LDFLAGS ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS ac_env_CC_set=${CC+set} ac_env_CC_value=$CC ac_cv_env_CC_set=${CC+set} ac_cv_env_CC_value=$CC ac_env_CFLAGS_set=${CFLAGS+set} ac_env_CFLAGS_value=$CFLAGS ac_cv_env_CFLAGS_set=${CFLAGS+set} ac_cv_env_CFLAGS_value=$CFLAGS ac_env_CPP_set=${CPP+set} ac_env_CPP_value=$CPP ac_cv_env_CPP_set=${CPP+set} ac_cv_env_CPP_value=$CPP ac_env_CXXCPP_set=${CXXCPP+set} ac_env_CXXCPP_value=$CXXCPP ac_cv_env_CXXCPP_set=${CXXCPP+set} ac_cv_env_CXXCPP_value=$CXXCPP ac_env_F77_set=${F77+set} ac_env_F77_value=$F77 ac_cv_env_F77_set=${F77+set} ac_cv_env_F77_value=$F77 ac_env_FFLAGS_set=${FFLAGS+set} ac_env_FFLAGS_value=$FFLAGS ac_cv_env_FFLAGS_set=${FFLAGS+set} ac_cv_env_FFLAGS_value=$FFLAGS # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] _ACEOF cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking Speeds up one-time builds --enable-dependency-tracking Do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=no] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-cc=cc use C compiler cc --with-cflags=CFLAGS use C compiler flags CFLAGS --with-cxx=CC use C++ compiler CC --with-cxxflags=CXXFLAGS use C++ compiler flags CXXFLAGS --with-x use the X Window System --with-motif=DIR Motif files are in DIR/include and DIR/lib --with-motif-includes=DIR Motif include files are in DIR --with-motif-libs=DIR Motif libraries are in DIR --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CC C compiler command CFLAGS C compiler flags CPP C preprocessor CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be # absolute. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then echo $SHELL $ac_srcdir/configure.gnu --help=recursive elif test -f $ac_srcdir/configure; then echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi cd $ac_popdir done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit 0 fi exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.57. Invocation command line was $ $0 $@ _ACEOF { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------- ## ## Output files. ## ## ------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core core.* *.core && rm -rf conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in config $srcdir/config; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f $ac_dir/shtool; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} { (exit 1); exit 1; }; } fi ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # # Init automake # XMPI_VERSION=`cat $srcdir/VERSION` echo "Configuring XMPI version $XMPI_VERSION" # The third argument to AM_INIT_AUTOMAKE surpresses the PACKAGE and # VERSION macors am__api_version="1.7" # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 test "$program_prefix" != NONE && program_transform_name="s,^,$program_prefix,;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s,\$,$program_suffix,;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$AWK" && break done echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=xmpi VERSION=$XMPI_VERSION # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} AMTAR=${AMTAR-"${am_missing_run}tar"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi STRIP=$ac_ct_STRIP else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. cat >>confdefs.h <<_ACEOF #define XMPI_VERSION "$XMPI_VERSION" _ACEOF # Get our host type... # Make sure we can run config.sub. $ac_config_sub sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 echo "$as_me: error: cannot run $ac_config_sub" >&2;} { (exit 1); exit 1; }; } echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6 if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_build_alias=$build_alias test -z "$ac_cv_build_alias" && ac_cv_build_alias=`$ac_config_guess` test -z "$ac_cv_build_alias" && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6 build=$ac_cv_build build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6 if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_host_alias=$host_alias test -z "$ac_cv_host_alias" && ac_cv_host_alias=$ac_cv_build_alias ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6 host=$ac_cv_host host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` cat >>confdefs.h <<_ACEOF #define XMPI_ARCH "$host" _ACEOF # check for specification of C++ compiler # overrules default mpiCC with lam CXX=mpiCC CC=mpicc # Check whether --with-cc or --without-cc was given. if test "${with_cc+set}" = set; then withval="$with_cc" fi; # Check whether --with-cflags or --without-cflags was given. if test "${with_cflags+set}" = set; then withval="$with_cflags" fi; # Check whether --with-cxx or --without-cxx was given. if test "${with_cxx+set}" = set; then withval="$with_cxx" fi; # Check whether --with-cxxflags or --without-cxxflags was given. if test "${with_cxxflags+set}" = set; then withval="$with_cxxflags" fi; if test -n "$with_cxx"; then if test $with_cxx = yes; then { { echo "$as_me:$LINENO: error: the --with-cxx option requires the compiler name" >&5 echo "$as_me: error: the --with-cxx option requires the compiler name" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: WARNING: *** You are not using the mpiCC compiler recommended" >&5 echo "$as_me: WARNING: *** You are not using the mpiCC compiler recommended" >&2;} { echo "$as_me:$LINENO: WARNING: *** for building the LAM libxmpi. Be sure to set" >&5 echo "$as_me: WARNING: *** for building the LAM libxmpi. Be sure to set" >&2;} { echo "$as_me:$LINENO: WARNING: *** the approprate include paths to the needed files" >&5 echo "$as_me: WARNING: *** the approprate include paths to the needed files" >&2;} CXX="$with_cxx" fi if test -n "$with_cxxflags"; then if test $with_cxxflags = yes; then { { echo "$as_me:$LINENO: error: the --with-cxxflags option requires some option" >&5 echo "$as_me: error: the --with-cxxflags option requires some option" >&2;} { (exit 1); exit 1; }; } fi CXXFLAGS="$with_cxxflags" fi if test -n "$with_cc"; then if test $with_cc = yes; then { { echo "$as_me:$LINENO: error: the --with-cc option requires the compiler name" >&5 echo "$as_me: error: the --with-cc option requires the compiler name" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: WARNING: *** You are not using the mpicc compiler recommended" >&5 echo "$as_me: WARNING: *** You are not using the mpicc compiler recommended" >&2;} { echo "$as_me:$LINENO: WARNING: *** for building the LAM libxmpi. Be sure to set" >&5 echo "$as_me: WARNING: *** for building the LAM libxmpi. Be sure to set" >&2;} { echo "$as_me:$LINENO: WARNING: *** the approprate include paths to the needed files" >&5 echo "$as_me: WARNING: *** the approprate include paths to the needed files" >&2;} CC="$with_cc" fi if test -n "$with_cflags"; then if test $with_cflags = yes; then { { echo "$as_me:$LINENO: error: the --with-cflags option requires some option" >&5 echo "$as_me: error: the --with-cflags option requires some option" >&2;} { (exit 1); exit 1; }; } fi CFLAGS="$with_cflags" fi # # In theory, we have a working compiler set now. # Tell everyone C++ is our primary language and get our # copmilers. We need C++ 'cuz that's what our code is in # and C 'cuz that is what libtool wants... # ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CXX" && break done test -n "$ac_ct_CXX" || ac_ct_CXX="g++" CXX=$ac_ct_CXX fi # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last # resort. # Be careful to initialize this variable, since it used to be cached. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ac_cv_exeext= # b.out is created by i960 compilers. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; conftest.$ac_ext ) # This is the source file. ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` # FIXME: I believe we export ac_cv_exeext for Libtool, # but it would be cool to find out if it's true. Does anybody # maintain Libtool? --akim. export ac_cv_exeext break;; * ) break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C++ compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6 # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6 echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext ac_objext=$OBJEXT echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS CXXFLAGS="-g" echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cxx_g=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi for ac_declaration in \ ''\ '#include ' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6 rm -f confinc confmf # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval="$enable_dependency_tracking" fi; if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CXX" am_compiler_list= echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c : > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # (even with -Werror). So we grep stderr for any message # that says an option was ignored. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CC" && break done CC=$ac_ct_CC fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cc_g=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ ''\ '#include ' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c : > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # (even with -Werror). So we grep stderr for any message # that says an option was ignored. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi if test -z "$CXXFLAGS"; then lam_cxxflags_save="$CXXFLAGS" if test "$GCC" = yes; then CXXFLAGS=-O else case "$host_os" in solaris) CXXFLAGS=-fast;; *) CXXFLAGS=-O;; esac fi fi # BWB: There was a time when XMPI worked with MPI implementations # other than LAM. This is no longer the case. Since most of the code # to make that work (build wise) bit-rotted into uselessness long ago, # it has been removed. It is believed (although not tested) that to # make it work again, all you have to do is set LIBXMPI to the vendor # name and set LDFLAGS to the right place so that it can find -lxmpi # # The AM_CONDITIONAL is so that we can decide whether to buld the # included libxmpi that works with LAM. So don't set LIBXMPI to # lib-lam unless you want to buld the LAM libxmpi LIBXMPI=lib-lam if test "$LIBXMPI"="lib-lam"; then WANT_LAM_XMPI_TRUE= WANT_LAM_XMPI_FALSE='#' else WANT_LAM_XMPI_TRUE='#' WANT_LAM_XMPI_FALSE= fi # Take care of some specific compiler options. # Force use of ANSI C under HP-UX. if test "$ac_cv_c_compiler_gnu" = no; then us=`(uname -s) 2>/dev/null` || us=unknown case "$us" in HP-UX) CXXFLAGS="$CXXFLAGS -Ae" ;; *) ;; esac fi # # Check for X11 and Motif libraries.. # ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6 ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking for X" >&5 echo $ECHO_N "checking for X... $ECHO_C" >&6 # Check whether --with-x or --without-x was given. if test "${with_x+set}" = set; then withval="$with_x" fi; # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then # Both variables are already set. have_x=yes else if test "${ac_cv_have_x+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -fr conftest.dir if mkdir conftest.dir; then cd conftest.dir # Make sure to not put "make" in the Imakefile rules, since we grep it out. cat >Imakefile <<'_ACEOF' acfindx: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' _ACEOF if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl; do if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && test -f $ac_im_libdir/libX11.$ac_extension; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /lib) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -fr conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Intrinsic.h. # First, try using that file with no special directory specified. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # We can compile using X headers with no special include directory. ac_x_includes= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Intrinsic.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lXt $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { XtMalloc (0) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LIBS=$ac_save_LIBS for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl; do if test -r $ac_dir/libXt.$ac_extension; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then # Didn't find X anywhere. Cache the known absence of X. ac_cv_have_x="have_x=no" else # Record where we found X for the cache. ac_cv_have_x="have_x=yes \ ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" fi fi fi eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then echo "$as_me:$LINENO: result: $have_x" >&5 echo "${ECHO_T}$have_x" >&6 no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes \ ac_x_includes=$x_includes ac_x_libraries=$x_libraries" echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. cat >>confdefs.h <<\_ACEOF #define X_DISPLAY_MISSING 1 _ACEOF X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . case `(uname -sr) 2>/dev/null` in "SunOS 5"*) echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_R_nospace=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_R_nospace=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext if test $ac_R_nospace = yes; then echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_R_space=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_R_space=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext if test $ac_R_space = yes; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 X_LIBS="$X_LIBS -R $x_libraries" else echo "$as_me:$LINENO: result: neither works" >&5 echo "${ECHO_T}neither works" >&6 fi fi LIBS=$ac_xsave_LIBS esac fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char XOpenDisplay (); int main () { XOpenDisplay (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dnet_ntoa (); int main () { dnet_ntoa (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dnet_dnet_ntoa=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dnet_dnet_ntoa=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dnet_ntoa (); int main () { dnet_ntoa (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dnet_stub_dnet_ntoa=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. echo "$as_me:$LINENO: checking for gethostbyname" >&5 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 if test "${ac_cv_func_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char gethostbyname (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) choke me #else char (*f) () = gethostbyname; #endif #ifdef __cplusplus } #endif int main () { return f != gethostbyname; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_gethostbyname=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 if test $ac_cv_func_gethostbyname = no; then echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname (); int main () { gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_nsl_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_nsl_gethostbyname=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 if test $ac_cv_lib_nsl_gethostbyname = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname (); int main () { gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_bsd_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_bsd_gethostbyname=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 if test $ac_cv_lib_bsd_gethostbyname = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. echo "$as_me:$LINENO: checking for connect" >&5 echo $ECHO_N "checking for connect... $ECHO_C" >&6 if test "${ac_cv_func_connect+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char connect (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char connect (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_connect) || defined (__stub___connect) choke me #else char (*f) () = connect; #endif #ifdef __cplusplus } #endif int main () { return f != connect; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_connect=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_connect=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 echo "${ECHO_T}$ac_cv_func_connect" >&6 if test $ac_cv_func_connect = no; then echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 if test "${ac_cv_lib_socket_connect+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char connect (); int main () { connect (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_socket_connect=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_socket_connect=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 if test $ac_cv_lib_socket_connect = yes; then X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. echo "$as_me:$LINENO: checking for remove" >&5 echo $ECHO_N "checking for remove... $ECHO_C" >&6 if test "${ac_cv_func_remove+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char remove (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char remove (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_remove) || defined (__stub___remove) choke me #else char (*f) () = remove; #endif #ifdef __cplusplus } #endif int main () { return f != remove; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_remove=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_remove=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 echo "${ECHO_T}$ac_cv_func_remove" >&6 if test $ac_cv_func_remove = no; then echo "$as_me:$LINENO: checking for remove in -lposix" >&5 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 if test "${ac_cv_lib_posix_remove+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char remove (); int main () { remove (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_posix_remove=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_posix_remove=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 if test $ac_cv_lib_posix_remove = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. echo "$as_me:$LINENO: checking for shmat" >&5 echo $ECHO_N "checking for shmat... $ECHO_C" >&6 if test "${ac_cv_func_shmat+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shmat (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shmat (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_shmat) || defined (__stub___shmat) choke me #else char (*f) () = shmat; #endif #ifdef __cplusplus } #endif int main () { return f != shmat; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shmat=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shmat=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 echo "${ECHO_T}$ac_cv_func_shmat" >&6 if test $ac_cv_func_shmat = no; then echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 if test "${ac_cv_lib_ipc_shmat+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shmat (); int main () { shmat (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_ipc_shmat=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ipc_shmat=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 if test $ac_cv_lib_ipc_shmat = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char IceConnectionNumber (); int main () { IceConnectionNumber (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_ICE_IceConnectionNumber=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi if test "$no_x" = yes; then { { echo "$as_me:$LINENO: error: Could not find X includes or libs. Cannot continue." >&5 echo "$as_me: error: Could not find X includes or libs. Cannot continue." >&2;} { (exit 1); exit 1; }; } fi motif_includes= motif_libraries= # Check whether --with-motif or --without-motif was given. if test "${with_motif+set}" = set; then withval="$with_motif" motif_includes="$withval/include" ; motif_libraries="$withval/lib" fi; # Check whether --with-motif-includes or --without-motif-includes was given. if test "${with_motif_includes+set}" = set; then withval="$with_motif_includes" motif_includes="$withval" fi; # Check whether --with-motif-libs or --without-motif-libs was given. if test "${with_motif_libs+set}" = set; then withval="$with_motif_libs" motif_libraries="$withval" fi; echo "$as_me:$LINENO: checking for Motif" >&5 echo $ECHO_N "checking for Motif... $ECHO_C" >&6 # # # Search the include files. # if test "$motif_includes" = ""; then if test "${ice_cv_motif_includes+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lsc_motif_save_LIBS="$LIBS" lsc_motif_save_CFLAGS="$CFLAGS" lsc_motif_save_CPPFLAGS="$CPPFLAGS" lsc_motif_save_LDFLAGS="$LDFLAGS" LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" CFLAGS="$X_CFLAGS $CFLAGS" CPPFLAGS="$X_CFLAGS $CPPFLAGS" LDFLAGS="$X_LIBS $LDFLAGS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { int a; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then # Xm/Xm.h is in the standard search path. lsc_cv_motif_includes= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Xm/Xm.h is not in the standard search path. # Locate it and put its directory in `motif_includes' # # /usr/include/Motif* are used on HP-UX (Motif). # /usr/include/X11* are used on HP-UX (X and Athena). # /usr/dt is used on Solaris (Motif). # /usr/openwin is used on Solaris (X and Athena). # Other directories are just guesses. for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ /usr/dt/include /usr/openwin/include \ /usr/dt/*/include /opt/*/include /usr/include/Motif* \ /usr/*/include/X11R6 /usr/*/include/X11R5 /usr/*/include/X11R4 \ "${prefix}"/*/include /usr/*/include /usr/local/*/include \ "${prefix}"/include/* /usr/include/* /usr/local/include/*; do if test -f "$dir/Xm/Xm.h"; then lsc_cv_motif_includes="$dir" break fi done if test "$lsc_cv_motif_includes" = "/usr/include"; then lsc_cv_motif_includes= fi fi rm -f conftest.$ac_objext conftest.$ac_ext LIBS="$lsc_motif_save_LIBS" CFLAGS="$lsc_motif_save_CFLAGS" CPPFLAGS="$lsc_motif_save_CPPFLAGS" LDFLAGS="$lsc_motif_save_LDFLAGS" fi motif_includes="$lsc_cv_motif_includes" fi # # Now for the libraries. # if test "$motif_libraries" = ""; then if test "${lsc_cv_motif_libraries+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lsc_motif_save_LIBS="$LIBS" lsc_motif_save_CFLAGS="$CFLAGS" lsc_motif_save_CPPFLAGS="$CPPFLAGS" lsc_motif_save_LDFLAGS="$LDFLAGS" # LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" CFLAGS="$X_CFLAGS $CFLAGS" CPPFLAGS="$X_CFLAGS $CPPFLAGS" LDFLAGS="$X_LIBS $LDFLAGS" # # We use XtToolkitInitialize() here since it takes no arguments # and thus also works with a C++ compiler. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { XtToolkitInitialize(); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then # libXm.a is in the standard search path. lsc_cv_motif_libraries= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # libXm.a is not in the standard search path. # Locate it and put its directory in `motif_libraries' # # /usr/lib/Motif* are used on HP-UX (Motif). # /usr/lib/X11* are used on HP-UX (X and Athena). # /usr/dt is used on Solaris (Motif). # /usr/lesstif is used on Linux (Lesstif). # /usr/openwin is used on Solaris (X and Athena). # Other directories are just guesses. for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ /usr/dt/lib /usr/openwin/lib \ /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ /usr/lesstif*/lib /usr/lib/Lesstif* \ /usr/*/lib/X11R6 /usr/*/lib/X11R5 /usr/*/lib/X11R4 /usr/*/lib/X11 \ "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then lsc_cv_motif_libraries="$dir" break fi done if test "$lsc_cv_motif_libraries" = ""; then lsc_cv_motif_libraries=no fi fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext # LIBS="$lsc_motif_save_LIBS" CFLAGS="$lsc_motif_save_CFLAGS" CPPFLAGS="$lsc_motif_save_CPPFLAGS" LDFLAGS="$lsc_motif_save_LDFLAGS" fi # motif_libraries="$lsc_cv_motif_libraries" fi # # Add Motif definitions to X flags # if test "$motif_includes" != "" && test "$motif_includes" != "$x_includes" && test "$motif_includes" != "no" then X_CFLAGS="-I$motif_includes $X_CFLAGS" fi if test "$motif_libraries" != "" && test "$motif_libraries" != "$x_libraries" && test "$motif_libraries" != "no" then case "$X_LIBS" in *-R\ *) X_LIBS="-L$motif_libraries -R $motif_libraries $X_LIBS";; *-R*) X_LIBS="-L$motif_libraries -R$motif_libraries $X_LIBS";; *) X_LIBS="-L$motif_libraries $X_LIBS";; esac fi # # motif_libraries_result="$motif_libraries" motif_includes_result="$motif_includes" test "$motif_libraries_result" = "" && motif_libraries_result="in default path" test "$motif_includes_result" = "" && motif_includes_result="in default path" test "$motif_libraries_result" = "no" && motif_libraries_result="(none)" test "$motif_includes_result" = "no" && motif_includes_result="(none)" echo "$as_me:$LINENO: result: libraries $motif_libraries_result, headers $motif_includes_result" >&5 echo "${ECHO_T}libraries $motif_libraries_result, headers $motif_includes_result" >&6 if test "$motif_libraries_result" = "(none)" -o \ "$motif_includes_result" = "(none)"; then { { echo "$as_me:$LINENO: error: Could not find Motif includes or libs. Cannot continue." >&5 echo "$as_me: error: Could not find Motif includes or libs. Cannot continue." >&2;} { (exit 1); exit 1; }; } fi X_CXXFLAGS="$X_CFLAGS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # # Make sure that we have the LAM header files. # Only do this if compiling for use with LAM # # # Arguments: None # # Dependencies: None # # Aborts if we cannot #include # lam.h is ONLY installed if trilium header files are present # echo "$as_me:$LINENO: checking for Trillium header files" >&5 echo $ECHO_N "checking for Trillium header files... $ECHO_C" >&6 # See if we can find touch conftest.o conftest.lo rm -f conftest.o conftest.lo cat > conftest.$ac_ext < int main(int argc, char* argv) { return 0; } EOF echo configure:5308: $ac_compile >&5 (eval $ac_compile) 2>&5 if test -f conftest.o -o -f conftest.lo ; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo configure:5314: here is the program that failed: >&5 cat conftest.$ac_ext >&5 echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 { echo "$as_me:$LINENO: WARNING: Can not find Trillium header files." >&5 echo "$as_me: WARNING: Can not find Trillium header files." >&2;} { echo "$as_me:$LINENO: WARNING: LAM/MPI must be configured with the '--with-trillium'" >&5 echo "$as_me: WARNING: LAM/MPI must be configured with the '--with-trillium'" >&2;} { echo "$as_me:$LINENO: WARNING: option in order to build this application" >&5 echo "$as_me: WARNING: option in order to build this application" >&2;} { { echo "$as_me:$LINENO: error: cannot continue -- cannot find Trillium header files" >&5 echo "$as_me: error: cannot continue -- cannot find Trillium header files" >&2;} { (exit 1); exit 1; }; } fi # Kill all temporaries rm -f conftest* # Be social; clean up all variables used unset lsc_prefix # # Some constants changed in the LAM header files # Run this test to figure out which ones we should use # # # Arguments: None # # Dependencies: None # # Check to see if we should use HOST2COMP or HOST2COMPNODE # echo "$as_me:$LINENO: checking for HOST2COMP*" >&5 echo $ECHO_N "checking for HOST2COMP*... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { int i = HOST2COMP; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then HAVE_HOST2COMP=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 HAVE_HOST2COMP=no fi rm -f conftest.$ac_objext conftest.$ac_ext if test "$HAVE_HOST2COMP" = "yes"; then cat >>confdefs.h <<\_ACEOF #define LAM_HOST2COMP HOST2COMP _ACEOF echo "$as_me:$LINENO: result: HOST2COMP" >&5 echo "${ECHO_T}HOST2COMP" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { int i = HOST2COMPNODE; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then HAPPY=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 HAPPY=no fi rm -f conftest.$ac_objext conftest.$ac_ext if test "$HAPPY" = "yes"; then cat >>confdefs.h <<\_ACEOF #define LAM_HOST2COMP HOST2COMPNODE _ACEOF echo "$as_me:$LINENO: result: HOST2COMPNODE" >&5 echo "${ECHO_T}HOST2COMPNODE" >&6 else echo "$as_me:$LINENO: result: could not find!" >&5 echo "${ECHO_T}could not find!" >&6 { { echo "$as_me:$LINENO: error: *** Cannot continue" >&5 echo "$as_me: error: *** Cannot continue" >&2;} { (exit 1); exit 1; }; } fi fi # Check for programs. # Abort if we cannot find one of them ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6 ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$CXXCPP" = ""; then { { echo "$as_me:$LINENO: error: Could not find C preprocessor. Cannot continue." >&5 echo "$as_me: error: Could not find C preprocessor. Cannot continue." >&2;} { (exit 1); exit 1; }; } fi # Extract the first word of "rm", so it can be a program name with args. set dummy rm; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_RM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $RM in [\\/]* | ?:[\\/]*) ac_cv_path_RM="$RM" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done ;; esac fi RM=$ac_cv_path_RM if test -n "$RM"; then echo "$as_me:$LINENO: result: $RM" >&5 echo "${ECHO_T}$RM" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "$RM" = ""; then { { echo "$as_me:$LINENO: error: Could not find rm. Cannot continue." >&5 echo "$as_me: error: Could not find rm. Cannot continue." >&2;} { (exit 1); exit 1; }; } fi # Extract the first word of "sh", so it can be a program name with args. set dummy sh; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_SHELL_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $SHELL_CMD in [\\/]* | ?:[\\/]*) ac_cv_path_SHELL_CMD="$SHELL_CMD" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_SHELL_CMD="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done ;; esac fi SHELL_CMD=$ac_cv_path_SHELL_CMD if test -n "$SHELL_CMD"; then echo "$as_me:$LINENO: result: $SHELL_CMD" >&5 echo "${ECHO_T}$SHELL_CMD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "$SHELL_CMD" = ""; then { { echo "$as_me:$LINENO: error: Could not find Bourne shell. Cannot continue." >&5 echo "$as_me: error: Could not find Bourne shell. Cannot continue." >&2;} { (exit 1); exit 1; }; } fi # Used to Check for typedefs, structures, and compiler characteristics. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 if test "${ac_cv_c_bigendian+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # See if sys/param.h defines the BYTE_ORDER macro. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN bogus endian macros #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then # It does; now see whether it defined to BIG_ENDIAN or not. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_bigendian=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_bigendian=no fi rm -f conftest.$ac_objext conftest.$ac_ext else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # It does not; compile a test program. if test "$cross_compiling" = yes; then # try to guess the endianness by grepping values into an object file ac_cv_c_bigendian=unknown cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } int main () { _ascii (); _ebcdic (); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest.$ac_ext else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long l; char c[sizeof (long)]; } u; u.l = 1; exit (u.c[sizeof (long) - 1] == 1); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_bigendian=no else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_c_bigendian=yes fi rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 echo "${ECHO_T}$ac_cv_c_bigendian" >&6 case $ac_cv_c_bigendian in yes) cat >>confdefs.h <<\_ACEOF #define WORDS_BIGENDIAN 1 _ACEOF ;; no) ;; *) { { echo "$as_me:$LINENO: error: unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" >&5 echo "$as_me: error: unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} { (exit 1); exit 1; }; } ;; esac # Check for library functions. for ac_func in atexit getcwd do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { fd_set s; FD_ZERO(&s); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then lam_cv_need_sys_select_h=no else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lam_cv_need_sys_select_h=yes fi rm -f conftest.$ac_objext conftest.$ac_ext] if test $lam_cv_need_sys_select_h = yes; then value=1 else value=0 fi cat >>confdefs.h <<_ACEOF #define NEED_SYS_SELECT $value _ACEOF echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 if test "${ac_cv_prog_egrep+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi fi echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 EGREP=$ac_cv_prog_egrep echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done echo "$as_me:$LINENO: checking for short" >&5 echo $ECHO_N "checking for short... $ECHO_C" >&6 if test "${ac_cv_type_short+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((short *) 0) return 0; if (sizeof (short)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_short=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_short=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 echo "${ECHO_T}$ac_cv_type_short" >&6 echo "$as_me:$LINENO: checking size of short" >&5 echo $ECHO_N "checking size of short... $ECHO_C" >&6 if test "${ac_cv_sizeof_short+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$ac_cv_type_short" = yes; then # The cast to unsigned long works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_short=$ac_lo;; '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (short), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } ;; esac else if test "$cross_compiling" = yes; then { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default long longval () { return (long) (sizeof (short)); } unsigned long ulongval () { return (long) (sizeof (short)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) exit (1); if (((long) (sizeof (short))) < 0) { long i = longval (); if (i != ((long) (sizeof (short)))) exit (1); fprintf (f, "%ld\n", i); } else { unsigned long i = ulongval (); if (i != ((long) (sizeof (short)))) exit (1); fprintf (f, "%lu\n", i); } exit (ferror (f) || fclose (f) != 0); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_short=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (short), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi rm -f conftest.val else ac_cv_sizeof_short=0 fi fi echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 cat >>confdefs.h <<_ACEOF #define SIZEOF_SHORT $ac_cv_sizeof_short _ACEOF echo "$as_me:$LINENO: checking for int" >&5 echo $ECHO_N "checking for int... $ECHO_C" >&6 if test "${ac_cv_type_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((int *) 0) return 0; if (sizeof (int)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_int=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_int=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 echo "${ECHO_T}$ac_cv_type_int" >&6 echo "$as_me:$LINENO: checking size of int" >&5 echo $ECHO_N "checking size of int... $ECHO_C" >&6 if test "${ac_cv_sizeof_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$ac_cv_type_int" = yes; then # The cast to unsigned long works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_int=$ac_lo;; '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (int), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } ;; esac else if test "$cross_compiling" = yes; then { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default long longval () { return (long) (sizeof (int)); } unsigned long ulongval () { return (long) (sizeof (int)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) exit (1); if (((long) (sizeof (int))) < 0) { long i = longval (); if (i != ((long) (sizeof (int)))) exit (1); fprintf (f, "%ld\n", i); } else { unsigned long i = ulongval (); if (i != ((long) (sizeof (int)))) exit (1); fprintf (f, "%lu\n", i); } exit (ferror (f) || fclose (f) != 0); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_int=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (int), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi rm -f conftest.val else ac_cv_sizeof_int=0 fi fi echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 cat >>confdefs.h <<_ACEOF #define SIZEOF_INT $ac_cv_sizeof_int _ACEOF echo "$as_me:$LINENO: checking for long" >&5 echo $ECHO_N "checking for long... $ECHO_C" >&6 if test "${ac_cv_type_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((long *) 0) return 0; if (sizeof (long)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_long=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 echo "${ECHO_T}$ac_cv_type_long" >&6 echo "$as_me:$LINENO: checking size of long" >&5 echo $ECHO_N "checking size of long... $ECHO_C" >&6 if test "${ac_cv_sizeof_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$ac_cv_type_long" = yes; then # The cast to unsigned long works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_long=$ac_lo;; '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (long), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } ;; esac else if test "$cross_compiling" = yes; then { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default long longval () { return (long) (sizeof (long)); } unsigned long ulongval () { return (long) (sizeof (long)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) exit (1); if (((long) (sizeof (long))) < 0) { long i = longval (); if (i != ((long) (sizeof (long)))) exit (1); fprintf (f, "%ld\n", i); } else { unsigned long i = ulongval (); if (i != ((long) (sizeof (long)))) exit (1); fprintf (f, "%lu\n", i); } exit (ferror (f) || fclose (f) != 0); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_long=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (long), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi rm -f conftest.val else ac_cv_sizeof_long=0 fi fi echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG $ac_cv_sizeof_long _ACEOF echo "$as_me:$LINENO: checking for float" >&5 echo $ECHO_N "checking for float... $ECHO_C" >&6 if test "${ac_cv_type_float+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((float *) 0) return 0; if (sizeof (float)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_float=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_float=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 echo "${ECHO_T}$ac_cv_type_float" >&6 echo "$as_me:$LINENO: checking size of float" >&5 echo $ECHO_N "checking size of float... $ECHO_C" >&6 if test "${ac_cv_sizeof_float+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$ac_cv_type_float" = yes; then # The cast to unsigned long works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_float=$ac_lo;; '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (float), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } ;; esac else if test "$cross_compiling" = yes; then { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default long longval () { return (long) (sizeof (float)); } unsigned long ulongval () { return (long) (sizeof (float)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) exit (1); if (((long) (sizeof (float))) < 0) { long i = longval (); if (i != ((long) (sizeof (float)))) exit (1); fprintf (f, "%ld\n", i); } else { unsigned long i = ulongval (); if (i != ((long) (sizeof (float)))) exit (1); fprintf (f, "%lu\n", i); } exit (ferror (f) || fclose (f) != 0); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_float=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (float), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi rm -f conftest.val else ac_cv_sizeof_float=0 fi fi echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 echo "${ECHO_T}$ac_cv_sizeof_float" >&6 cat >>confdefs.h <<_ACEOF #define SIZEOF_FLOAT $ac_cv_sizeof_float _ACEOF echo "$as_me:$LINENO: checking for double" >&5 echo $ECHO_N "checking for double... $ECHO_C" >&6 if test "${ac_cv_type_double+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((double *) 0) return 0; if (sizeof (double)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_double=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_double=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 echo "${ECHO_T}$ac_cv_type_double" >&6 echo "$as_me:$LINENO: checking size of double" >&5 echo $ECHO_N "checking size of double... $ECHO_C" >&6 if test "${ac_cv_sizeof_double+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$ac_cv_type_double" = yes; then # The cast to unsigned long works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_double=$ac_lo;; '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (double), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } ;; esac else if test "$cross_compiling" = yes; then { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default long longval () { return (long) (sizeof (double)); } unsigned long ulongval () { return (long) (sizeof (double)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) exit (1); if (((long) (sizeof (double))) < 0) { long i = longval (); if (i != ((long) (sizeof (double)))) exit (1); fprintf (f, "%ld\n", i); } else { unsigned long i = ulongval (); if (i != ((long) (sizeof (double)))) exit (1); fprintf (f, "%lu\n", i); } exit (ferror (f) || fclose (f) != 0); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_double=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (double), 77 See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi rm -f conftest.val else ac_cv_sizeof_double=0 fi fi echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 echo "${ECHO_T}$ac_cv_sizeof_double" >&6 cat >>confdefs.h <<_ACEOF #define SIZEOF_DOUBLE $ac_cv_sizeof_double _ACEOF # Checks for header files echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # # Arguments: None # # Dependencies: None # # Aborts if we cannot #include # echo "$as_me:$LINENO: checking for mpi.h" >&5 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 # See if we can find touch conftest.o conftest.lo rm -f conftest.o conftest.lo cat > conftest.$ac_ext < int main(int argc, char* argv) { return 0; } EOF echo configure:8347: $ac_compile >&5 (eval $ac_compile) 2>&5 if test -f conftest.o -o -f conftest.lo ; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo configure:8353: here is the program that failed: >&5 cat conftest.$ac_ext >&5 echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 { { echo "$as_me:$LINENO: error: cannot continue -- cannot find " >&5 echo "$as_me: error: cannot continue -- cannot find " >&2;} { (exit 1); exit 1; }; } fi # Kill all temporaries rm -f conftest* # Be social; clean up all variables used unset lsc_prefix # # Find the template repository for our C++ compiler. # This is used for make clean # # # Arguments: prefix (optional) # # Dependencies: None # # See if the compiler makes template repository directories # Warning: this is a really screwy example! -JMS # # Sets prefix_CXX_TEMPLATE_REPOSITORY and LSC_CXX_TEMPLATE_REPOSITORY # to the template repository, or blank. # Must call AC_SUBST manually # # Figure out what prefix to use lsc_prefix="XMPI" if test "$lsc_prefix" = ""; then lsc_prefix="LSC" fi # Find the repository echo "$as_me:$LINENO: checking for C++ template repository directory" >&5 echo $ECHO_N "checking for C++ template repository directory... $ECHO_C" >&6 mkdir conf_tmp_$$ cd conf_tmp_$$ cat > conftest.h < class foo { public: foo(T yow) : data(yow) { yow.member(3); }; void member(int i); private: T data; }; class bar { public: bar(int i) { data = i; }; void member(int j) { data = data * j; }; private: int data; }; EOF cat > conftest2.C < var1(6); foo< foo > var2(var1); } EOF cat > conftest1.C < void foo::member(int i) { i += 2; } int main(int argc, char *argv) { foo var1(6); foo< foo > var2(var1); some_other_function(); return 0; } EOF lsc_template_failed= echo configure:8451: $CXX $CXXFLAGS -c conftest1.C >&5 $CXX $CXXFLAGS -c conftest1.C >&5 2>&5 if test ! -f conftest1.o ; then echo "$as_me:$LINENO: result: templates not supported?" >&5 echo "${ECHO_T}templates not supported?" >&6 echo configure:8456: here is the program that failed: >&5 cat conftest1.C >&5 echo configure:8458: here is conftest.h: >&5 cat conftest.h >&5 lsc_template_failed=1 else echo configure:8462: $CXX $CXXFLAGS -c conftest2.C >&5 $CXX $CXXFLAGS -c conftest2.C >&5 2>&5 if test ! -f conftest2.o ; then echo "$as_me:$LINENO: result: unknown error" >&5 echo "${ECHO_T}unknown error" >&6 echo configure:8467: here is the program that failed: >&5 cat conftest2.C >&5 echo configure:8469: here is conftest.h: >&5 cat conftest.h >&5 else rm -rf conftest* for lsc_file in `ls` do if test "$lsc_file" != "." -a "$lsc_file" != ".."; then # Is it a directory? if test -d "$lsc_file"; then lsc_template_dir="$lsc_file $lsc_template_dir" # Or is it a file? else name="`echo $lsc_file | cut -d. -f1`" temp_mask= if test "$name" = "main" -o "$name" = "other"; then temp_mask="`echo $lsc_file | cut -d. -f2`" if test "$lsc_template_filemask" = ""; then lsc_template_filemask="$temp_mask"; elif test "`echo $lsc_template_filemask | grep $temp_mask`" = ""; then lsc_template_filemask="$lsc_template_filemask $temp_mask" fi fi fi fi done if test "$lsc_template_filemask" != ""; then temp_mask= for mask in $lsc_template_filemask do temp_mask="*.$mask $temp_mask" done lsc_template_filemask=$temp_mask fi fi fi LSC_CXX_TEMPLATE_REPOSITORY="$lsc_template_dir $lsc_template_filemask" if test "`echo $LSC_CXX_TEMPLATE_REPOSITORY`" != ""; then echo "$as_me:$LINENO: result: $LSC_CXX_TEMPLATE_REPOSITORY" >&5 echo "${ECHO_T}$LSC_CXX_TEMPLATE_REPOSITORY" >&6 else echo "$as_me:$LINENO: result: not used" >&5 echo "${ECHO_T}not used" >&6 fi cd .. rm -rf conf_tmp_$$ # Set the result lsc_name="${lsc_prefix}_CXX_TEMPLATE_REPOSITORY" lsc_str="${lsc_name}=\"$LSC_CXX_TEMPLATE_REPOSITORY\"" eval $lsc_str # Clean up unset lsc_prefix lsc_file lsc_template_failed lsc_template_dir \ lsc_name lsc_str # # Make automake clean emacs ~ files for "make clean" # CLEANFILES="-r *~ $XMPI_CXX_TEMPLATE_REPOSITORY" # # ARGH! Some Sun Solaris Workshop 5.0 compilers appear to have a # broken version of getline. I hate Sun. I hate Sun. I hate Sun. # But they do make bcheck... # # # Arguments: prefix (optional) # # Dependencies: # # Tests whether the getline in std::string is broken # # Sets prefix_GETLINE to prefix_getline if broken, getline otherwise # Must call AC_SUBST manually. # # Figure out what prefix to use lsc_cxx_prefix="XMPI" if test "$lsc_cxx_prefix" = ""; then lsc_cxx_prefix="LSC" fi # First we need to see if we need to check for STL if test "$LSC_CXX_STL" = ""; then # # Arguments: prefix (optional) # # Dependencies: None # # See if the C++ compiler has STL # # Set prefix_CXX_STL and LSC_CXX_STL to 1 if so, 0 if not # AC_DEFINE prefix_CXX_STL to 1 if so, 0 if not # # Figure out what prefix to use lsc_prefix="$lsc_cxx_prefix" if test "$lsc_prefix" = ""; then lsc_prefix="LSC" fi # Do the test ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "${ac_cv_header_map+set}" = set; then echo "$as_me:$LINENO: checking for map" >&5 echo $ECHO_N "checking for map... $ECHO_C" >&6 if test "${ac_cv_header_map+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: $ac_cv_header_map" >&5 echo "${ECHO_T}$ac_cv_header_map" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking map usability" >&5 echo $ECHO_N "checking map usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking map presence" >&5 echo $ECHO_N "checking map presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc in yes:no ) { echo "$as_me:$LINENO: WARNING: map: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: map: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: map: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: map: proceeding with the preprocessor's result" >&2;} ( cat <<\_ASBOX ## ------------------------------------ ## ## Report this to bug-autoconf@gnu.org. ## ## ------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; no:yes ) { echo "$as_me:$LINENO: WARNING: map: present but cannot be compiled" >&5 echo "$as_me: WARNING: map: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: map: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: map: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: map: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: map: proceeding with the preprocessor's result" >&2;} ( cat <<\_ASBOX ## ------------------------------------ ## ## Report this to bug-autoconf@gnu.org. ## ## ------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for map" >&5 echo $ECHO_N "checking for map... $ECHO_C" >&6 if test "${ac_cv_header_map+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_map=$ac_header_preproc fi echo "$as_me:$LINENO: result: $ac_cv_header_map" >&5 echo "${ECHO_T}$ac_cv_header_map" >&6 fi if test $ac_cv_header_map = yes; then LSC_CXX_STL=1 else LSC_CXX_STL=0 fi # Set the result lsc_name="${lsc_prefix}_CXX_STL" lsc_str="${lsc_name}=$LSC_CXX_STL" eval $lsc_str cat >>confdefs.h <<_ACEOF #define $lsc_name $LSC_CXX_STL _ACEOF # Clean up ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu unset lsc_prefix lsc_str lsc_name fi # Check for the repository if test "$LSC_CXX_TEMPLATE_REPOSITORY" = ""; then # # Arguments: prefix (optional) # # Dependencies: None # # See if the compiler makes template repository directories # Warning: this is a really screwy example! -JMS # # Sets prefix_CXX_TEMPLATE_REPOSITORY and LSC_CXX_TEMPLATE_REPOSITORY # to the template repository, or blank. # Must call AC_SUBST manually # # Figure out what prefix to use lsc_prefix="" if test "$lsc_prefix" = ""; then lsc_prefix="LSC" fi # Find the repository echo "$as_me:$LINENO: checking for C++ template repository directory" >&5 echo $ECHO_N "checking for C++ template repository directory... $ECHO_C" >&6 mkdir conf_tmp_$$ cd conf_tmp_$$ cat > conftest.h < class foo { public: foo(T yow) : data(yow) { yow.member(3); }; void member(int i); private: T data; }; class bar { public: bar(int i) { data = i; }; void member(int j) { data = data * j; }; private: int data; }; EOF cat > conftest2.C < var1(6); foo< foo > var2(var1); } EOF cat > conftest1.C < void foo::member(int i) { i += 2; } int main(int argc, char *argv) { foo var1(6); foo< foo > var2(var1); some_other_function(); return 0; } EOF lsc_template_failed= echo configure:8829: $CXX $CXXFLAGS -c conftest1.C >&5 $CXX $CXXFLAGS -c conftest1.C >&5 2>&5 if test ! -f conftest1.o ; then echo "$as_me:$LINENO: result: templates not supported?" >&5 echo "${ECHO_T}templates not supported?" >&6 echo configure:8834: here is the program that failed: >&5 cat conftest1.C >&5 echo configure:8836: here is conftest.h: >&5 cat conftest.h >&5 lsc_template_failed=1 else echo configure:8840: $CXX $CXXFLAGS -c conftest2.C >&5 $CXX $CXXFLAGS -c conftest2.C >&5 2>&5 if test ! -f conftest2.o ; then echo "$as_me:$LINENO: result: unknown error" >&5 echo "${ECHO_T}unknown error" >&6 echo configure:8845: here is the program that failed: >&5 cat conftest2.C >&5 echo configure:8847: here is conftest.h: >&5 cat conftest.h >&5 else rm -rf conftest* for lsc_file in `ls` do if test "$lsc_file" != "." -a "$lsc_file" != ".."; then # Is it a directory? if test -d "$lsc_file"; then lsc_template_dir="$lsc_file $lsc_template_dir" # Or is it a file? else name="`echo $lsc_file | cut -d. -f1`" temp_mask= if test "$name" = "main" -o "$name" = "other"; then temp_mask="`echo $lsc_file | cut -d. -f2`" if test "$lsc_template_filemask" = ""; then lsc_template_filemask="$temp_mask"; elif test "`echo $lsc_template_filemask | grep $temp_mask`" = ""; then lsc_template_filemask="$lsc_template_filemask $temp_mask" fi fi fi fi done if test "$lsc_template_filemask" != ""; then temp_mask= for mask in $lsc_template_filemask do temp_mask="*.$mask $temp_mask" done lsc_template_filemask=$temp_mask fi fi fi LSC_CXX_TEMPLATE_REPOSITORY="$lsc_template_dir $lsc_template_filemask" if test "`echo $LSC_CXX_TEMPLATE_REPOSITORY`" != ""; then echo "$as_me:$LINENO: result: $LSC_CXX_TEMPLATE_REPOSITORY" >&5 echo "${ECHO_T}$LSC_CXX_TEMPLATE_REPOSITORY" >&6 else echo "$as_me:$LINENO: result: not used" >&5 echo "${ECHO_T}not used" >&6 fi cd .. rm -rf conf_tmp_$$ # Set the result lsc_name="${lsc_prefix}_CXX_TEMPLATE_REPOSITORY" lsc_str="${lsc_name}=\"$LSC_CXX_TEMPLATE_REPOSITORY\"" eval $lsc_str # Clean up unset lsc_prefix lsc_file lsc_template_failed lsc_template_dir \ lsc_name lsc_str fi echo "$as_me:$LINENO: checking for broken getline" >&5 echo $ECHO_N "checking for broken getline... $ECHO_C" >&6 rm -f conftest.cc conftest.o conftest.txt cat > conftest.txt < conftest.cc < #include #include using namespace std; int main(int agrc, char* argv) { bool good, bad, fstr, fstr_eof; bool result = true; fstream input_file; string tmp; input_file.open("conftest.txt", ios::in); for (int i = 0 ; i < 3 ; ++i) { getline(input_file, tmp); fstr = input_file; good = input_file.good(); bad = input_file.bad(); fstr_eof = input_file.eof(); result &= fstr && good && !bad && !fstr_eof; } getline(input_file, tmp); fstr = input_file; good = input_file.good(); bad = input_file.bad(); fstr_eof = input_file.eof(); result &= !fstr && !good && !bad && fstr_eof; return result ? 1 : 0; } EOF echo configure:8954: $CXX $CXXFLAGS conftest.cc -o conftest >&5 $CXX $CXXFLAGS conftest.cc -o conftest >&5 2>&5 if (test -f conftest); then echo configure:8957: Running getline test program >&5 if (conftest) < /dev/null > /dev/null 2>&1; then echo configure:8959: Failed >&5 lsc_result="1" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo configure:8964: Success >&5 lsc_result="0" echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi else echo configure:8970: here is the program that failed: >&5 cat conftest.cc >&5 lsc_result="1" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 fi # Set the results lsc_name="${lsc_cxx_prefix}_HAVE_BROKEN_GETLINE" lsc_str="${lsc_name}=$lsc_result" eval $lsc_str cat >>confdefs.h <<_ACEOF #define $lsc_name $lsc_result _ACEOF # Clean up /bin/rm -rf conftest* $LSC_CXX_TEMPLATE_REPOSITORY unset lsc_cxx_prefix lsc_name lsc_str lsc_result # # Libtool magic # Disable the shared build default (users can override this, though) # # Check whether --enable-shared or --disable-shared was given. if test "${enable_shared+set}" = set; then enableval="$enable_shared" p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=no fi; # Check whether --enable-static or --disable-static was given. if test "${enable_static+set}" = set; then enableval="$enable_static" p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi; # Check whether --enable-fast-install or --disable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval="$enable_fast_install" p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi; echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 if test "${lt_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && break cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done SED=$lt_cv_path_SED fi echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6 # Check whether --with-gnu-ld or --without-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval="$with_gnu_ld" test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi; ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 else echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `"$LD" -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 with_gnu_ld=$lt_cv_prog_gnu_ld echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/${ac_tool_prefix}nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac esac fi done IFS="$lt_save_ifs" test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6 NM="$lt_cv_path_NM" echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6 fi echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix4* | aix5*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi4*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin* | mingw* | pw32*) # win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='win32_libid' ;; darwin* | rhapsody*) # this will be overwritten by pass_all, but leave it in just in case lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' lt_cv_file_magic_cmd='/usr/bin/file -L' case "$host_os" in rhapsody* | darwin1.[012]) lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` ;; *) # Darwin 1.3 on lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' ;; esac lt_cv_deplibs_check_method=pass_all ;; freebsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case "$host_cpu" in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; irix5* | irix6* | nonstopux*) case $host_os in irix5* | nonstopux*) # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" ;; *) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" ;; esac lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux*) case $host_cpu in alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) lt_cv_deplibs_check_method=pass_all ;; *) # glibc up to 2.1.1 does not perform some relocations on ARM lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; esac lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx) lt_cv_deplibs_check_method=unknown ;; openbsd*) lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' else lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' fi ;; osf3* | osf4* | osf5*) # this will be overridden with pass_all, but let us keep it just in case lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' lt_cv_file_magic_test_file=/shlib/libc.so lt_cv_deplibs_check_method=pass_all ;; sco3.2v5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_test_file=/lib/libc.so ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Check whether --enable-libtool-lock or --disable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval="$enable_libtool_lock" fi; test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 9552 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case "`/usr/bin/file conftest.o`" in *32-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; esac need_locks="$enable_libtool_lock" for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 else # Is the header compilable? echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 # Is the header present? echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? case $ac_header_compiler:$ac_header_preproc in yes:no ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ( cat <<\_ASBOX ## ------------------------------------ ## ## Report this to bug-autoconf@gnu.org. ## ## ------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; no:yes ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} ( cat <<\_ASBOX ## ------------------------------------ ## ## Report this to bug-autoconf@gnu.org. ## ## ------------------------------------ ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then echo "$as_me:$LINENO: result: $F77" >&5 echo "${ECHO_T}$F77" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_F77="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 echo "${ECHO_T}$ac_ct_F77" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_F77" && break done F77=$ac_ct_F77 fi # Provide some information about the compiler. echo "$as_me:9938:" \ "checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } # If we don't use `.F' as extension, the preprocessor is not run on the # input file. ac_save_ext=$ac_ext ac_ext=F echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 if test "${ac_cv_f77_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 ac_ext=$ac_save_ext G77=`test $ac_compiler_gnu = yes && echo yes` ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_f77_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_f77_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "$G77" = yes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "$G77" = yes; then FFLAGS="-O2" else FFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else i=0 testring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; *) # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ = "XX$testring") >/dev/null 2>&1 && new_result=`expr "X$testring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` testring=$testring$testring done testring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 else echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6 fi # Check for command to grab the raw symbol name followed by C symbol from nm. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform the above into a raw symbol and a C symbol. symxfrm='\1 \2\3 \3' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris* | sysv5*) symcode='[BDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGISTW]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6 else echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6 fi echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6 objdir=$lt_cv_objdir case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e s/^X//' sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except M$VC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi AR=$ac_ct_AR else AR="$ac_cv_prog_AR" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi RANLIB=$ac_ct_RANLIB else RANLIB="$ac_cv_prog_RANLIB" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi STRIP=$ac_ct_STRIP else STRIP="$ac_cv_prog_STRIP" fi old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" ;; *) old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi else MAGIC_CMD=: fi fi fi ;; esac enable_dlopen=no enable_win32_dll=no # Check whether --enable-libtool-lock or --disable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval="$enable_libtool_lock" fi; test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Check whether --with-pic or --without-pic was given. if test "${with_pic+set}" = set; then withval="$with_pic" pic_mode="$withval" else pic_mode=default fi; test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}\n' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # # Check for any special shared library compilation flags. # lt_prog_cc_shlib= if test "$GCC" = no; then case $host_os in sco3.2v5*) lt_prog_cc_shlib='-belf' ;; esac fi if test -n "$lt_prog_cc_shlib"; then { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : else { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} lt_cv_prog_cc_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_prog_compiler_static" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 else lt_prog_compiler_static_works=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 if test x"$lt_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:10943: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:10947: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s conftest.err; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux*) case $CC in icc|ecc) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; ccc) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; sco3.2v5*) lt_prog_compiler_pic='-Kpic' lt_prog_compiler_static='-dn' ;; solaris*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:11175: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:11179: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s conftest.err; then lt_prog_compiler_pic_works=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 if test x"$lt_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext # According to Tom Tromey, Ian Lance Taylor reported there are C compilers # that will create temporary files in the current directory regardless of # the output directory. Thus, making CWD read-only will cause this test # to fail, enabling locking or at least warning the user not to do parallel # builds. chmod -w . lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:11242: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:11246: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s out/conftest.err; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . $rm conftest* out/* rmdir out cd .. rmdir conftest $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = yes; then runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_libdir_separator=':' link_all_deplibs=yes if test "$GCC" = yes; then case $host_os in aix4.012|aix4.012.*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi esac shared_flag='-shared' else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec=' ' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi4*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then archive_cmds_need_lc=no case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag='-undefined suppress' ;; *) # Darwin 1.3 on test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' ;; esac # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. Also zsh mangles # `"' quotes if we put them in here... so don't! lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='-all_load $convenience' link_all_deplibs=yes fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_libdir_separator=: hardcode_direct=no hardcode_shlibpath_var=no ;; ia64*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=no hardcode_shlibpath_var=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; *) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; openbsd*) hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; sco3.2v5*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4.2uw2*) archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=no hardcode_shlibpath_var=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) no_undefined_flag='${wl}-z ${wl}text' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv5*) no_undefined_flag=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' hardcode_libdir_flag_spec= hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac fi echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6 test "$ld_shlibs" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var " || \ test "X$hardcode_automatic"="Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6 if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi ;; *) echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 ;; esac fi echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext='$(test .$module = .yes && echo .so || echo .dylib)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.01* | freebsdelf3.01*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case "$host_cpu" in ia64*) shrext='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_shl_load) || defined (__stub___shl_load) choke me #else char (*f) () = shl_load; #endif #ifdef __cplusplus } #endif int main () { return f != shl_load; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); int main () { shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_dlopen) || defined (__stub___dlopen) choke me #else char (*f) () = dlopen; #endif #ifdef __cplusplus } #endif int main () { return f != dlopen; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dld_link (); int main () { dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # Report which librarie types wil actually be built echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case "$host_os" in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; darwin* | rhapsody*) if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then archive_cmds_need_lc=no case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag='-undefined suppress' ;; *) # Darwin 1.3 on test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' ;; esac # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. Also zsh mangles # `"' quotes if we put them in here... so don't! output_verbose_link_cmd='echo' archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='-all_load $convenience' link_all_deplibs=yes fi ;; esac echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { echo "$as_me:$LINENO: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext='$shrext' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation ? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. test -f Makefile && make "$ltmain" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" # Check whether --with-tags or --without-tags was given. if test "${with_tags+set}" = set; then withval="$with_tags" tagnames="$withval" fi; if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && test "X$CXX" != "Xno"; then ac_ext=cc ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= # Source file extension for C++ test sources. ac_ext=cc # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;\n" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *) { return(0); }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld or --without-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval="$with_gnu_ld" test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi; ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 else echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `"$LD" -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes if test "$GXX" = yes; then case $host_os in aix4.012|aix4.012.*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_CXX=yes else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols_CXX=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX=' ' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then archive_cmds_need_lc_CXX=no case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='-undefined suppress' ;; *) # Darwin 1.3 on test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' ;; esac lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='-all_load $convenience' link_all_deplibs_CXX=yes fi ;; dgux*) case $cc_basename in ec++) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd12*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_CXX='+b $libdir' hardcode_libdir_separator_CXX=: ;; ia64*) hardcode_libdir_flag_spec_CXX='-L$libdir' ;; *) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case "$host_cpu" in hppa*64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC) case "$host_cpu" in hppa*64*|ia64*) archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case "$host_cpu" in ia64*|hppa*64*) archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; irix5* | irix6*) case $cc_basename in CC) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc) # Intel C++ with_gnu_ld=yes archive_cmds_need_lc_CXX=no archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; cxx) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; osf3*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ $rm $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sco*) archive_cmds_need_lc_CXX=no case $cc_basename in CC) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; sunos4*) case $cc_basename in CC) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC) # Sun C++ 4.2, 5.x and Centerline C++ no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.0-5 | solaris2.0-5.*) ;; *) # The C++ compiler is used as linker so we must use $wl # flag to pass the commands to the underlying system # linker. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac link_all_deplibs_CXX=yes # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' fi ;; esac ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) archive_cmds_need_lc_CXX=no ;; tandem*) case $cc_basename in NCC) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6 test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux*) case $cc_basename in KCC) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; cxx) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; sco*) case $cc_basename in CC) lt_prog_compiler_pic_CXX='-fPIC' ;; *) ;; esac ;; solaris*) case $cc_basename in CC) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; unixware*) ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15484: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:15488: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s conftest.err; then lt_prog_compiler_pic_works_CXX=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext # According to Tom Tromey, Ian Lance Taylor reported there are C compilers # that will create temporary files in the current directory regardless of # the output directory. Thus, making CWD read-only will cause this test # to fail, enabling locking or at least warning the user not to do parallel # builds. chmod -w . lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15551: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:15555: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s out/conftest.err; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . $rm conftest* out/* rmdir out cd .. rmdir conftest $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6 test "$ld_shlibs_CXX" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var CXX" || \ test "X$hardcode_automatic_CXX"="Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6 if test "$hardcode_action_CXX" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi ;; *) echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 ;; esac fi echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext='$(test .$module = .yes && echo .so || echo .dylib)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.01* | freebsdelf3.01*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case "$host_cpu" in ia64*) shrext='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_shl_load) || defined (__stub___shl_load) choke me #else char (*f) () = shl_load; #endif #ifdef __cplusplus } #endif int main () { return f != shl_load; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); int main () { shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_dlopen) || defined (__stub___dlopen) choke me #else char (*f) () = dlopen; #endif #ifdef __cplusplus } #endif int main () { return f != dlopen; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dld_link (); int main () { dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext='$shrext' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation ? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_CXX" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. test -f Makefile && make "$ltmain" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # Code to be used in simple compile tests lt_simple_compile_test_code=" subroutine t\n return\n end\n" # Code to be used in simple link tests lt_simple_link_test_code=" program t\n end\n" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case "$host_os" in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4*) test "$enable_shared" = yes && enable_static=no ;; esac echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6 test "$ld_shlibs_F77" = no && can_build_shared=no GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux*) case $CC in icc|ecc) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; ccc) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; sco3.2v5*) lt_prog_compiler_pic_F77='-Kpic' lt_prog_compiler_static_F77='-dn' ;; solaris*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:17714: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:17718: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s conftest.err; then lt_prog_compiler_pic_works_F77=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_F77=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext # According to Tom Tromey, Ian Lance Taylor reported there are C compilers # that will create temporary files in the current directory regardless of # the output directory. Thus, making CWD read-only will cause this test # to fail, enabling locking or at least warning the user not to do parallel # builds. chmod -w . lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:17781: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:17785: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s out/conftest.err; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . $rm conftest* out/* rmdir out cd .. rmdir conftest $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_F77=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_F77=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = yes; then runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_F77=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes if test "$GCC" = yes; then case $host_os in aix4.012|aix4.012.*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_F77=yes else # We have old collect2 hardcode_direct_F77=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi esac shared_flag='-shared' else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_F77=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols_F77=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77=' ' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi4*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then archive_cmds_need_lc_F77=no case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='-undefined suppress' ;; *) # Darwin 1.3 on test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' ;; esac # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. Also zsh mangles # `"' quotes if we put them in here... so don't! lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='-all_load $convenience' link_all_deplibs_F77=yes fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd*) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; ia64*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; *) hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; sco3.2v5*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4.2uw2*) archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) no_undefined_flag_F77='${wl}-z ${wl}text' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv5*) no_undefined_flag_F77=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' hardcode_libdir_flag_spec_F77= hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 echo "${ECHO_T}$ld_shlibs_F77" >&6 test "$ld_shlibs_F77" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var F77" || \ test "X$hardcode_automatic_F77"="Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 echo "${ECHO_T}$hardcode_action_F77" >&6 if test "$hardcode_action_F77" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi ;; *) echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 ;; esac fi echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext='$(test .$module = .yes && echo .so || echo .dylib)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.01* | freebsdelf3.01*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case "$host_cpu" in ia64*) shrext='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext='$shrext' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation ? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_F77" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. test -f Makefile && make "$ltmain" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}\n" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:19721: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:19725: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s conftest.err; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case "$host_cpu" in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux*) case $CC in icc|ecc) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; ccc) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; sco3.2v5*) lt_prog_compiler_pic_GCJ='-Kpic' lt_prog_compiler_static_GCJ='-dn' ;; solaris*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:19953: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:19957: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s conftest.err; then lt_prog_compiler_pic_works_GCJ=yes fi fi $rm conftest* fi echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case "$host_os" in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_GCJ=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out printf "$lt_simple_compile_test_code" > conftest.$ac_ext # According to Tom Tromey, Ian Lance Taylor reported there are C compilers # that will create temporary files in the current directory regardless of # the output directory. Thus, making CWD read-only will cause this test # to fail, enabling locking or at least warning the user not to do parallel # builds. chmod -w . lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:20020: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:20024: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test ! -s out/conftest.err; then lt_cv_prog_compiler_c_o_GCJ=yes fi fi chmod u+w . $rm conftest* out/* rmdir out cd .. rmdir conftest $rm conftest* fi echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6 if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_GCJ=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = yes; then runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_GCJ=yes if test "$GCC" = yes && test -z "$link_static_flag"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_GCJ=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes if test "$GCC" = yes; then case $host_os in aix4.012|aix4.012.*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct_GCJ=yes else # We have old collect2 hardcode_direct_GCJ=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= fi esac shared_flag='-shared' else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_GCJ=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # -bexpall does not export symbols beginning with underscore (_) always_export_symbols_GCJ=yes # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ=' ' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds it's shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi4*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then archive_cmds_need_lc_GCJ=no case "$host_os" in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='-undefined suppress' ;; *) # Darwin 1.3 on test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' ;; esac # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. Also zsh mangles # `"' quotes if we put them in here... so don't! lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='-all_load $convenience' link_all_deplibs_GCJ=yes fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd*) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10* | hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*|ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case "$host_cpu" in hppa*64*|ia64*) archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' ;; *) archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; esac fi if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; ia64*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; *) hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; sco3.2v5*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_GCJ=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4.2uw2*) archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_runpath_var=yes runpath_var=LD_RUN_PATH ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) no_undefined_flag_GCJ='${wl}-z ${wl}text' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' fi runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv5*) no_undefined_flag_GCJ=' -z text' # $CC -shared without GNU ld will not create a library from C++ # object files and a static libstdc++, better avoid it by now archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' hardcode_libdir_flag_spec_GCJ= hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 test "$ld_shlibs_GCJ" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 $rm conftest* printf "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 ;; esac fi ;; esac echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var GCJ" || \ test "X$hardcode_automatic_GCJ"="Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6 if test "$hardcode_action_GCJ" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi ;; *) echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 ;; esac fi echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi4*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext='$(test .$module = .yes && echo .so || echo .dylib)' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` fi sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd*) objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.01* | freebsdelf3.01*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case "$host_cpu" in ia64*) shrext='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; sco3.2v5*) version_type=osf soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_shl_load) || defined (__stub___shl_load) choke me #else char (*f) () = shl_load; #endif #ifdef __cplusplus } #endif int main () { return f != shl_load; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shl_load (); int main () { shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_dlopen) || defined (__stub___dlopen) choke me #else char (*f) () = dlopen; #endif #ifdef __cplusplus } #endif int main () { return f != dlopen; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen (); int main () { dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dld_link (); int main () { dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 if test "x$lt_cv_dlopen_self" = xyes; then LDFLAGS="$LDFLAGS $link_static_flag" echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext='$shrext' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation ? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_GCJ" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. test -f Makefile && make "$ltmain" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # Allow CC to be a program name with arguments. compiler=$CC # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC lt_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext='$shrext' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation ? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path="$fix_srcfile_path_RC" # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. test -f Makefile && make "$ltmain" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ;; *) { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion # # All done. Party on. # ac_config_headers="$ac_config_headers src/xmpi/xmpi_config.h" ac_config_files="$ac_config_files Makefile app-defaults/Makefile config/Makefile man/Makefile man/man1/Makefile src/Makefile src/Bitmaps/Makefile src/Pixmaps/Makefile src/libxmpi/Makefile src/xmpi/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${WANT_LAM_XMPI_TRUE}" && test -z "${WANT_LAM_XMPI_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"WANT_LAM_XMPI\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"WANT_LAM_XMPI\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" # Sed expression to map a string onto a valid variable name. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by $as_me, which was generated by GNU Autoconf 2.57. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.57, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir INSTALL="$INSTALL" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS section. # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "app-defaults/Makefile" ) CONFIG_FILES="$CONFIG_FILES app-defaults/Makefile" ;; "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; "man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;; "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/Bitmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Bitmaps/Makefile" ;; "src/Pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Pixmaps/Makefile" ;; "src/libxmpi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libxmpi/Makefile" ;; "src/xmpi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/xmpi/Makefile" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "src/xmpi/xmpi_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/xmpi/xmpi_config.h" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@XMPI_VERSION@,$XMPI_VERSION,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@CYGPATH_W@,$CYGPATH_W,;t t s,@PACKAGE@,$PACKAGE,;t t s,@VERSION@,$VERSION,;t t s,@ACLOCAL@,$ACLOCAL,;t t s,@AUTOCONF@,$AUTOCONF,;t t s,@AUTOMAKE@,$AUTOMAKE,;t t s,@AUTOHEADER@,$AUTOHEADER,;t t s,@MAKEINFO@,$MAKEINFO,;t t s,@AMTAR@,$AMTAR,;t t s,@install_sh@,$install_sh,;t t s,@STRIP@,$STRIP,;t t s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t s,@AWK@,$AWK,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@am__leading_dot@,$am__leading_dot,;t t s,@build@,$build,;t t s,@build_cpu@,$build_cpu,;t t s,@build_vendor@,$build_vendor,;t t s,@build_os@,$build_os,;t t s,@host@,$host,;t t s,@host_cpu@,$host_cpu,;t t s,@host_vendor@,$host_vendor,;t t s,@host_os@,$host_os,;t t s,@CXX@,$CXX,;t t s,@CXXFLAGS@,$CXXFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CXX@,$ac_ct_CXX,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@DEPDIR@,$DEPDIR,;t t s,@am__include@,$am__include,;t t s,@am__quote@,$am__quote,;t t s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t s,@CXXDEPMODE@,$CXXDEPMODE,;t t s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@CCDEPMODE@,$CCDEPMODE,;t t s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t s,@WANT_LAM_XMPI_TRUE@,$WANT_LAM_XMPI_TRUE,;t t s,@WANT_LAM_XMPI_FALSE@,$WANT_LAM_XMPI_FALSE,;t t s,@LIBXMPI@,$LIBXMPI,;t t s,@CPP@,$CPP,;t t s,@X_CFLAGS@,$X_CFLAGS,;t t s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t s,@X_LIBS@,$X_LIBS,;t t s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t s,@X_CXXFLAGS@,$X_CXXFLAGS,;t t s,@CXXCPP@,$CXXCPP,;t t s,@RM@,$RM,;t t s,@SHELL_CMD@,$SHELL_CMD,;t t s,@EGREP@,$EGREP,;t t s,@CLEANFILES@,$CLEANFILES,;t t s,@LN_S@,$LN_S,;t t s,@ECHO@,$ECHO,;t t s,@AR@,$AR,;t t s,@ac_ct_AR@,$ac_ct_AR,;t t s,@RANLIB@,$RANLIB,;t t s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t s,@F77@,$F77,;t t s,@FFLAGS@,$FFLAGS,;t t s,@ac_ct_F77@,$ac_ct_F77,;t t s,@LIBTOOL@,$LIBTOOL,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be # absolute. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; *) # Relative if test -f "$f"; then # Build tree echo $f elif test -f "$srcdir/$f"; then # Source tree echo $srcdir/$f else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; *) # Relative if test -f "$f"; then # Build tree echo $f elif test -f "$srcdir/$f"; then # Source tree echo $srcdir/$f else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in _ACEOF # Transform confdefs.h into two sed scripts, `conftest.defines' and # `conftest.undefs', that substitutes the proper values into # config.h.in to produce config.h. The first handles `#define' # templates, and the second `#undef' templates. # And first: Protect against being on the right side of a sed subst in # config.status. Protect against being in an unquoted here document # in config.status. rm -f conftest.defines conftest.undefs # Using a here document instead of a string reduces the quoting nightmare. # Putting comments in sed scripts is not portable. # # `end' is used to avoid that the second main sed command (meant for # 0-ary CPP macros) applies to n-ary macro definitions. # See the Autoconf documentation for `clear'. cat >confdef2sed.sed <<\_ACEOF s/[\\&,]/\\&/g s,[\\$`],\\&,g t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp t end s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp : end _ACEOF # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC-DEFINE to be honored. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs rm -f confdef2sed.sed # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >>conftest.undefs <<\_ACEOF s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, _ACEOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do # Write a limited-size here document to $tmp/defines.sed. echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines echo ' fi # grep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS # Break up conftest.undefs because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do # Write a limited-size here document to $tmp/undefs.sed. echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#undef' echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail rm -f conftest.undefs mv conftest.tail conftest.undefs done rm -f conftest.undefs cat >>$CONFIG_STATUS <<\_ACEOF # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then echo "/* Generated by configure. */" >$tmp/config.h else echo "/* $ac_file. Generated by configure. */" >$tmp/config.h fi cat $tmp/in >>$tmp/config.h rm -f $tmp/in if test x"$ac_file" != x-; then if diff $ac_file $tmp/config.h >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } rm -f $ac_file mv $tmp/config.h $ac_file fi else cat $tmp/config.h rm -f $tmp/config.h fi # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'`/stamp-h$_am_stamp_count done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_COMMANDS section. # for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_dir=`(dirname "$ac_dest") 2>/dev/null || $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_dest" : 'X\(//\)[^/]' \| \ X"$ac_dest" : 'X\(//\)$' \| \ X"$ac_dest" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_dest" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be # absolute. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 echo "$as_me: executing $ac_dest commands" >&6;} case $ac_dest in depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`(dirname "$mf") 2>/dev/null || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` else continue fi grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue # Extract the definition of DEP_FILES from the Makefile without # running `make'. DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` test -z "$DEPDIR" && continue # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n -e '/^U = / s///p' < "$mf"` test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" # We invoke sed twice because it is the simplest approach to # changing $(DEPDIR) to its actual value in the expansion. for file in `sed -n -e ' /^DEP_FILES = .*\\\\$/ { s/^DEP_FILES = // :loop s/\\\\$// p n /\\\\$/ b loop p } /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`(dirname "$file") 2>/dev/null || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p $dirpart/$fdir else as_dir=$dirpart/$fdir as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi xmpi-2.2.3b8/configure.in0000444000076500007650000001635507722033602010742 # -*- shell-script -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: configure.in,v 1.34 2003/08/23 13:30:46 jsquyres Exp $ # # # Init autoconf # AC_INIT(src/xmpi/xmpi.cc) AC_CONFIG_AUX_DIR(config) # # Init automake # XMPI_VERSION=`cat $srcdir/VERSION` AC_SUBST(XMPI_VERSION) echo "Configuring XMPI version $XMPI_VERSION" # The third argument to AM_INIT_AUTOMAKE surpresses the PACKAGE and # VERSION macors AM_INIT_AUTOMAKE(xmpi, $XMPI_VERSION, 'no') AH_TOP([/* -*- c -*- * * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * Function: - OS, CPU and compiler dependent configuration */ #ifndef XMPI_CONFIG_H #define XMPI_CONFIG_H ]) AH_BOTTOM([#endif /* XMPI_CONFIG_H */]) AC_DEFINE_UNQUOTED(XMPI_VERSION, "$XMPI_VERSION", [Version of XMPI]) # Get our host type... AC_CANONICAL_HOST AC_DEFINE_UNQUOTED(XMPI_ARCH, "$host", [Architecture]) AC_PREFIX_DEFAULT(/usr/local) # check for specification of C++ compiler # overrules default mpiCC with lam CXX=mpiCC CC=mpicc AC_ARG_WITH(cc, AC_HELP_STRING([--with-cc=cc], [use C compiler cc])) AC_ARG_WITH(cflags, AC_HELP_STRING([--with-cflags=CFLAGS], [use C compiler flags CFLAGS])) AC_ARG_WITH(cxx, AC_HELP_STRING([--with-cxx=CC], [use C++ compiler CC])) AC_ARG_WITH(cxxflags, AC_HELP_STRING([--with-cxxflags=CXXFLAGS], [use C++ compiler flags CXXFLAGS])) if test -n "$with_cxx"; then if test $with_cxx = yes; then AC_MSG_ERROR(the --with-cxx option requires the compiler name) fi AC_MSG_WARN(*** You are not using the mpiCC compiler recommended) AC_MSG_WARN(*** for building the LAM libxmpi. Be sure to set) AC_MSG_WARN(*** the approprate include paths to the needed files) CXX="$with_cxx" fi if test -n "$with_cxxflags"; then if test $with_cxxflags = yes; then AC_MSG_ERROR(the --with-cxxflags option requires some option) fi CXXFLAGS="$with_cxxflags" fi if test -n "$with_cc"; then if test $with_cc = yes; then AC_MSG_ERROR(the --with-cc option requires the compiler name) fi AC_MSG_WARN(*** You are not using the mpicc compiler recommended) AC_MSG_WARN(*** for building the LAM libxmpi. Be sure to set) AC_MSG_WARN(*** the approprate include paths to the needed files) CC="$with_cc" fi if test -n "$with_cflags"; then if test $with_cflags = yes; then AC_MSG_ERROR(the --with-cflags option requires some option) fi CFLAGS="$with_cflags" fi # # In theory, we have a working compiler set now. # Tell everyone C++ is our primary language and get our # copmilers. We need C++ 'cuz that's what our code is in # and C 'cuz that is what libtool wants... # AC_LANG_C AC_PROG_CXX AC_PROG_CC if test -z "$CXXFLAGS"; then lam_cxxflags_save="$CXXFLAGS" if test "$GCC" = yes; then CXXFLAGS=-O else case "$host_os" in solaris) CXXFLAGS=-fast;; *) CXXFLAGS=-O;; esac fi fi # BWB: There was a time when XMPI worked with MPI implementations # other than LAM. This is no longer the case. Since most of the code # to make that work (build wise) bit-rotted into uselessness long ago, # it has been removed. It is believed (although not tested) that to # make it work again, all you have to do is set LIBXMPI to the vendor # name and set LDFLAGS to the right place so that it can find -lxmpi # # The AM_CONDITIONAL is so that we can decide whether to buld the # included libxmpi that works with LAM. So don't set LIBXMPI to # lib-lam unless you want to buld the LAM libxmpi LIBXMPI=lib-lam AM_CONDITIONAL(WANT_LAM_XMPI,test "$LIBXMPI"="lib-lam") AC_SUBST(LIBXMPI) # Take care of some specific compiler options. # Force use of ANSI C under HP-UX. if test "$ac_cv_prog_gcc" = no; then us=`(uname -s) 2>/dev/null` || us=unknown case "$us" in HP-UX) CXXFLAGS="$CXXFLAGS -Ae" ;; *) ;; esac fi AC_SUBST(CXXFLAGS) # # Check for X11 and Motif libraries.. # AC_LANG_SAVE AC_LANG_C AC_PATH_XTRA if test "$no_x" = yes; then AC_MSG_ERROR([Could not find X includes or libs. Cannot continue.]) fi LSC_FIND_MOTIF if test "$motif_libraries_result" = "(none)" -o \ "$motif_includes_result" = "(none)"; then AC_MSG_ERROR([Could not find Motif includes or libs. Cannot continue.]) fi X_CXXFLAGS="$X_CFLAGS" AC_SUBST(X_CXXFLAGS) AC_SUBST(X_LIBS) AC_LANG_RESTORE # # Make sure that we have the LAM header files. # Only do this if compiling for use with LAM # LSC_MPI_CHECK_TRILLIUM # # Some constants changed in the LAM header files # Run this test to figure out which ones we should use # LAM_CHECK_CONSTANTS # Check for programs. # Abort if we cannot find one of them AC_PROG_CXXCPP if test "$CXXCPP" = ""; then AC_MSG_ERROR([Could not find C preprocessor. Cannot continue.]) fi AC_PATH_PROG(RM,rm) if test "$RM" = ""; then AC_MSG_ERROR([Could not find rm. Cannot continue.]) fi AC_PATH_PROG(SHELL_CMD, sh) if test "$SHELL_CMD" = ""; then AC_MSG_ERROR([Could not find Bourne shell. Cannot continue.]) fi # Used to Check for typedefs, structures, and compiler characteristics. AC_C_BIGENDIAN # Check for library functions. AC_CHECK_FUNCS(atexit getcwd) AC_TRY_COMPILE([#include #include ], [fd_set s; FD_ZERO(&s);], lam_cv_need_sys_select_h=no, lam_cv_need_sys_select_h=yes)] if test $lam_cv_need_sys_select_h = yes; then value=1 else value=0 fi AC_DEFINE_UNQUOTED(NEED_SYS_SELECT, $value, [Whether we need or not]) AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(int, 4) AC_CHECK_SIZEOF(long, 4) AC_CHECK_SIZEOF(float, 4) AC_CHECK_SIZEOF(double, 4) # Checks for header files AC_HEADER_STDC LSC_MPI_CHECK_MPI_H # # Find the template repository for our C++ compiler. # This is used for make clean # LSC_CXX_FIND_TEMPLATE_REPOSITORY(XMPI) # # Make automake clean emacs ~ files for "make clean" # CLEANFILES="-r *~ $XMPI_CXX_TEMPLATE_REPOSITORY" AC_SUBST(CLEANFILES) # # ARGH! Some Sun Solaris Workshop 5.0 compilers appear to have a # broken version of getline. I hate Sun. I hate Sun. I hate Sun. # But they do make bcheck... # LSC_CXX_HAVE_BROKEN_GETLINE(XMPI) # # Libtool magic # Disable the shared build default (users can override this, though) # AM_DISABLE_SHARED AM_PROG_LIBTOOL # # All done. Party on. # AM_CONFIG_HEADER([src/xmpi/xmpi_config.h]) AC_CONFIG_FILES([ Makefile app-defaults/Makefile config/Makefile man/Makefile man/man1/Makefile src/Makefile src/Bitmaps/Makefile src/Pixmaps/Makefile src/libxmpi/Makefile src/xmpi/Makefile ]) AC_OUTPUT xmpi-2.2.3b8/LICENSE0000444000076500007650000000631407722033602007430 Software License for XMPI Copyright (c) 2001-2003 The Trustees of Indiana University. All rights reserved. Copyright (c) 1998-2001 University of Notre Dame. All rights reserved. Copyright (c) 1994-1998 The Ohio State University. All rights reserved. Indiana University has the exclusive rights to license this product under the following license. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1) All redistributions of source code must retain the above copyright notice, the list of authors in the original source code, this list of conditions and the disclaimer listed in this license; 2) All redistributions in binary form must reproduce the above copyright notice, this list of conditions and the disclaimer listed in this license in the documentation and/or other materials provided with the distribution; 3) Any documentation included with all redistributions must include the following acknowledgement: "This product includes software developed at the Ohio Supercomputer Center at The Ohio State University, the University of Notre Dame and the Pervasive Technology Labs at Indiana University with original ideas contributed from Cornell University. For technical information contact Andrew Lumsdaine at the Pervasive Technology Labs at Indiana University. For administrative and license questions contact the Advanced Research and Technology Institute at 1100 Waterway Blvd. Indianapolis, Indiana 46202, phone 317-274-5905, fax 317-274-5902." Alternatively, this acknowledgement may appear in the software itself, and wherever such third-party acknowledgments normally appear. 4) The name "XMPI" shall not be used to endorse or promote products derived from this software without prior written permission from Indiana University. For written permission, please contact Indiana University Advanced Research & Technology Institute. 5) Products derived from this software may not be called "XMPI", nor may "XMPI" appear in their name, without prior written permission of Indiana University Advanced Research & Technology Institute. Indiana University provides no reassurances that the source code provided does not infringe the patent or any other intellectual property rights of any other entity. Indiana University disclaims any liability to any recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR OTHER PROPRIETARY RIGHTS. INDIANA UNIVERSITY MAKES NO WARRANTIES THAT SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP DOORS", "WORMS", OR OTHER HARMFUL CODE. LICENSEE ASSUMES THE ENTIRE RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS, AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING SOFTWARE. Indiana University has the exclusive rights to license this product under this license. xmpi-2.2.3b8/VERSION0000444000076500007650000000001007722033602007456 2.2.3b8 xmpi-2.2.3b8/src/0000777000076500007650000000000007725267017007310 5xmpi-2.2.3b8/src/Makefile.am0000664000076500007650000000153507722033602011252 # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.6 2003/08/23 13:38:20 jsquyres Exp $ # include $(top_srcdir)/config/Makefile.options # arg... Must do a little bit of work to decide whether we want # libxmpi or not.... if WANT_LAM_XMPI libxmpi_dir = libxmpi else libxmpi_dir = endif dirs = xmpi Bitmaps Pixmaps SUBDIRS = $(libxmpi_dir) $(dirs) DIST_SUBDIRS = libxmpi $(dirs) xmpi-2.2.3b8/src/Makefile.in0000664000076500007650000003413607725260240011271 # Makefile.in generated by automake 1.7.6 from Makefile.am. # @configure_input@ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.6 2003/08/23 13:38:20 jsquyres Exp $ # # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.options,v 1.1 2003/08/23 13:32:15 jsquyres Exp $ # srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_triplet = @host@ ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLEANFILES = @CLEANFILES@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBXMPI = @LIBXMPI@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ RM = @RM@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHELL_CMD = @SHELL_CMD@ STRIP = @STRIP@ VERSION = @VERSION@ WANT_LAM_XMPI_FALSE = @WANT_LAM_XMPI_FALSE@ WANT_LAM_XMPI_TRUE = @WANT_LAM_XMPI_TRUE@ XMPI_VERSION = @XMPI_VERSION@ X_CFLAGS = @X_CFLAGS@ X_CXXFLAGS = @X_CXXFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign dist-bzip2 @WANT_LAM_XMPI_FALSE@libxmpi_dir = # arg... Must do a little bit of work to decide whether we want # libxmpi or not.... @WANT_LAM_XMPI_TRUE@libxmpi_dir = libxmpi dirs = xmpi Bitmaps Pixmaps SUBDIRS = $(libxmpi_dir) $(dirs) DIST_SUBDIRS = libxmpi $(dirs) subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = $(top_builddir)/src/xmpi/xmpi_config.h CONFIG_CLEAN_FILES = DIST_SOURCES = RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ ps-recursive install-info-recursive uninstall-info-recursive \ all-recursive install-data-recursive install-exec-recursive \ installdirs-recursive install-recursive uninstall-recursive \ check-recursive installcheck-recursive DIST_COMMON = $(top_srcdir)/config/Makefile.options Makefile.am \ Makefile.in all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/config/Makefile.options $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @set fnord $$MAKEFLAGS; amf=$$2; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @set fnord $$MAKEFLAGS; amf=$$2; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ETAGS = etags ETAGSFLAGS = CTAGS = ctags CTAGSFLAGS = tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if (etags --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ else \ include_option=--include; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -f $$subdir/TAGS && \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$tags$$unique" \ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = .. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) $(mkinstalldirs) $(distdir)/../config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d $(distdir)/$$subdir \ || mkdir $(distdir)/$$subdir \ || exit 1; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" \ distdir=../$(distdir)/$$subdir \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: info: info-recursive info-am: install-data-am: install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ clean-generic clean-libtool clean-recursive ctags \ ctags-recursive distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am \ dvi-recursive info info-am info-recursive install install-am \ install-data install-data-am install-data-recursive \ install-exec install-exec-am install-exec-recursive \ install-info install-info-am install-info-recursive install-man \ install-recursive install-strip installcheck installcheck-am \ installdirs installdirs-am installdirs-recursive \ maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-generic \ mostlyclean-libtool mostlyclean-recursive pdf pdf-am \ pdf-recursive ps ps-am ps-recursive tags tags-recursive \ uninstall uninstall-am uninstall-info-am \ uninstall-info-recursive uninstall-recursive # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xmpi-2.2.3b8/src/libxmpi/0000777000076500007650000000000007725267013010750 5xmpi-2.2.3b8/src/libxmpi/bhostparse.h0000444000076500007650000000133707722033602013201 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $Id: bhostparse.h,v 1.3 2003/08/23 13:48:35 jsquyres Exp $ * * Function: - boot schema parser * - host file syntax version */ #ifndef _BHOSTPARSE_H_ #define _BHOSTPARSE_H_ int bhostparse(FILE*, struct lamnode**, int*); #endif xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.h0000664000076500007650000000140707722033603014027 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * Function: - parse an application schema */ #ifndef _XMPI_ASC_PARSE_H_ #define _XMPI_ASC_PARSE_H_ #include #include int xmpi_asc_parse(const char*, int4*, LIST**); void xmpi_asc_free(LIST*); OPT* xmpi_get_options(const char*); #endif xmpi-2.2.3b8/src/libxmpi/xmpi_mpitr_com.h0000444000076500007650000000146407721667534014076 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_mpitr_com.h,v 1.1 2003/08/23 13:42:52 jsquyres Exp $ * * Function: - MPI communicator trace access functions */ #ifndef XMPI_MPITR_COM_H_ #define XMPI_MPITR_COM_H_ /* * global functions */ int xmpi_mpitr_comget(int4, int4, int4, char**); void xmpi_mpitr_comprint(int, char*, int); #endif xmpi-2.2.3b8/src/libxmpi/xmpi_trdrain.h0000444000076500007650000000162307721667534013545 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_trdrain.h,v 1.1 2003/08/23 13:42:52 jsquyres Exp $ * * Function: - unloads trace data for one MPI world * Accepts: - trace file desc. opened for append * - GPS array of world * - GPS array length * - get/forget flag * - delay period in secs after flush signal */ #ifndef XMPI_TRDRAIN_H_ #define XMPI_TRDRAIN_H_ int xmpi_trdrain_mpi(int, struct _gps*, int, int, int); #endif xmpi-2.2.3b8/src/libxmpi/Makefile.am0000444000076500007650000000202407722033602012704 # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.7 2003/08/23 13:41:34 jsquyres Exp $ # include $(top_srcdir)/config/Makefile.options AM_CPPFLAGS = -I$(top_srcdir)/src $(X_CXXFLAGS) lib_LTLIBRARIES = libxmpi.la libxmpi_la_SOURCES = \ app_mgmt.cc \ bhostparse.cc \ build_run.cc \ mpitr_com.cc \ mpitr_dtype.cc \ ndi_resolve.cc \ nodeslist.cc \ trdrain_mpi.cc \ xmpi_asc_parse.cc \ xmpi_sys_snapshot.lam.cc \ xmpi_sys.lam.cc noinst_HEADERS = \ bhostparse.h \ xmpi_asc_parse.h \ xmpi_mpitr_com.h \ xmpi_trdrain.h xmpi-2.2.3b8/src/libxmpi/Makefile.in0000664000076500007650000004120107725260241012725 # Makefile.in generated by automake 1.7.6 from Makefile.am. # @configure_input@ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.7 2003/08/23 13:41:34 jsquyres Exp $ # # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.options,v 1.1 2003/08/23 13:32:15 jsquyres Exp $ # srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_triplet = @host@ ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLEANFILES = @CLEANFILES@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBXMPI = @LIBXMPI@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ RM = @RM@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHELL_CMD = @SHELL_CMD@ STRIP = @STRIP@ VERSION = @VERSION@ WANT_LAM_XMPI_FALSE = @WANT_LAM_XMPI_FALSE@ WANT_LAM_XMPI_TRUE = @WANT_LAM_XMPI_TRUE@ XMPI_VERSION = @XMPI_VERSION@ X_CFLAGS = @X_CFLAGS@ X_CXXFLAGS = @X_CXXFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign dist-bzip2 AM_CPPFLAGS = -I$(top_srcdir)/src $(X_CXXFLAGS) lib_LTLIBRARIES = libxmpi.la libxmpi_la_SOURCES = \ app_mgmt.cc \ bhostparse.cc \ build_run.cc \ mpitr_com.cc \ mpitr_dtype.cc \ ndi_resolve.cc \ nodeslist.cc \ trdrain_mpi.cc \ xmpi_asc_parse.cc \ xmpi_sys_snapshot.lam.cc \ xmpi_sys.lam.cc noinst_HEADERS = \ bhostparse.h \ xmpi_asc_parse.h \ xmpi_mpitr_com.h \ xmpi_trdrain.h subdir = src/libxmpi ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = $(top_builddir)/src/xmpi/xmpi_config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(lib_LTLIBRARIES) libxmpi_la_LDFLAGS = libxmpi_la_LIBADD = am_libxmpi_la_OBJECTS = app_mgmt.lo bhostparse.lo build_run.lo \ mpitr_com.lo mpitr_dtype.lo ndi_resolve.lo nodeslist.lo \ trdrain_mpi.lo xmpi_asc_parse.lo xmpi_sys_snapshot.lam.lo \ xmpi_sys.lam.lo libxmpi_la_OBJECTS = $(am_libxmpi_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src/xmpi depcomp = $(SHELL) $(top_srcdir)/config/depcomp am__depfiles_maybe = depfiles @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/app_mgmt.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/bhostparse.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/build_run.Plo ./$(DEPDIR)/mpitr_com.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/mpitr_dtype.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/ndi_resolve.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/nodeslist.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/trdrain_mpi.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_asc_parse.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_sys.lam.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_sys_snapshot.lam.Plo CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ DIST_SOURCES = $(libxmpi_la_SOURCES) HEADERS = $(noinst_HEADERS) DIST_COMMON = $(noinst_HEADERS) $(top_srcdir)/config/Makefile.options \ Makefile.am Makefile.in SOURCES = $(libxmpi_la_SOURCES) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/config/Makefile.options $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/libxmpi/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) libLTLIBRARIES_INSTALL = $(INSTALL) install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(libdir) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \ $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" = "$$p" && dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libxmpi.la: $(libxmpi_la_OBJECTS) $(libxmpi_la_DEPENDENCIES) $(CXXLINK) -rpath $(libdir) $(libxmpi_la_LDFLAGS) $(libxmpi_la_OBJECTS) $(libxmpi_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) core *.core distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/app_mgmt.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bhostparse.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/build_run.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpitr_com.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpitr_dtype.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ndi_resolve.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nodeslist.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/trdrain_mpi.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_asc_parse.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_sys.lam.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_sys_snapshot.lam.Plo@am__quote@ distclean-depend: -rm -rf ./$(DEPDIR) .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ @am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCXX_TRUE@ fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCXX_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ @am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCXX_TRUE@ fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ @am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCXX_TRUE@ fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ETAGS = etags ETAGSFLAGS = CTAGS = ctags CTAGSFLAGS = tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$tags$$unique" \ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = ../.. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) $(mkinstalldirs) $(distdir)/../../config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: $(mkinstalldirs) $(DESTDIR)$(libdir) install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am distclean-am: clean-am distclean-compile distclean-depend \ distclean-generic distclean-libtool distclean-tags dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-depend distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am info \ info-am install install-am install-data install-data-am \ install-exec install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-libLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xmpi-2.2.3b8/src/libxmpi/app_mgmt.cc0000444000076500007650000000363207722033602012771 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $Id: app_mgmt.cc,v 1.2 2003/08/23 13:48:35 jsquyres Exp $ * * Function: - application execution and management */ #include #include #include #include #include /* * public functions */ int app_doom(); int app_sendprocs(); /* * app_sendprocs * * Function: - send GPS array to all processes in the array * Accepts: - number of processes in GPS array * - GPS array * Returns: - 0 or LAMERROR */ int app_sendprocs(int nprocs, struct _gps *pgps) { struct nmsg nhead; /* network msg header */ struct _gps *p; /* ptr GPS entry */ int i; /* favourite index */ /* * Set up the message. */ nhead.nh_type = 0; nhead.nh_flags = DINT4MSG; nhead.nh_msg = (char *) pgps; nhead.nh_length = nprocs * sizeof(struct _gps); /* * Loop sending to each process. */ for (i = 0, p = pgps; i < nprocs; i++, p++) { nhead.nh_node = p->gps_node; nhead.nh_event = (-p->gps_pid) & 0xBFFFFFFF; if (nsend(&nhead)) return (LAMERROR); } return (0); } /* * app_doom * * Function: - kill running application processes * Accepts: - GPS array length * - application GPS array * Returns: - 0 or ERROR */ int app_doom(int app_n, struct _gps * app, int sig) { int i; for (i = 0; i < app_n; i++) { if (app[i].gps_pid == 0) { break; } rpdoom(app[i].gps_node, SELECT_PID, app[i].gps_pid, sig); } return (0); } xmpi-2.2.3b8/src/libxmpi/bhostparse.cc0000444000076500007650000001021507722033602013332 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $Id: bhostparse.cc,v 1.3 2003/08/23 13:48:35 jsquyres Exp $ * * Function: - boot schema parser * - host file syntax version */ #include #include #include #include #include #include #include #include "bhostparse.h" /* * constants */ #define MAXLINE 256 /* input line size */ #define LNDBLOCK 10 /* array allocation block */ /* * static variables */ static char linebuf[MAXLINE]; /* * static functions */ static void parseline(char **, char**); /* * parse_host * * Function: - parse a host file * - fill the network description * - node IDs are [0, N-1] * Accepts: - input file stream * - node description array (value returned) * - array size (value returned) */ int bhostparse(FILE *fp, struct lamnode **plamnet, int *pnlamnet) { char *host; /* host machine name */ char *user; /* user name */ int nlndalloc; /* current allocation size */ int node; /* current node ID */ struct lamnode *lamnet; /* current node desc. array */ /* * Loop till EOF reading and parsing line-by-line. */ lamnet = 0; nlndalloc = 0; node = 0; while (!feof(fp)) { if (fgets(linebuf, MAXLINE, fp) == 0) break; /* * Parse the line for hostname and username. */ parseline(&host, &user); /* * If a machine name is found, add the node to the network. */ if (!host) { continue; } /* * Allocate initial node description array. */ if (lamnet == 0) { lamnet = (struct lamnode *) malloc((unsigned) LNDBLOCK * sizeof(struct lamnode)); if (lamnet == 0) return (LAMERROR); nlndalloc = LNDBLOCK; } /* * Extend node description array. */ if (nlndalloc <= node) { nlndalloc += LNDBLOCK; lamnet = (struct lamnode *) realloc((char *) lamnet, (unsigned) nlndalloc * sizeof(struct lamnode)); if (lamnet == 0) return (LAMERROR); } lamnet[node].lnd_nodeid = node; lamnet[node].lnd_type = NT_BOOT; /* * Set host name. */ lamnet[node].lnd_hname = (char*) malloc((unsigned) strlen(host) + 1); if (lamnet[node].lnd_hname == 0) return (LAMERROR); strcpy(lamnet[node].lnd_hname, host); /* * Set optional user name. */ lamnet[node].lnd_uname = 0; if (user) { lamnet[node].lnd_uname = (char*) malloc((unsigned) strlen(user) + 1); if (lamnet[node].lnd_uname == 0) return (LAMERROR); strcpy(lamnet[node].lnd_uname, user); } node++; } *pnlamnet = node; *plamnet = lamnet; return (0); } /* * parseline * * Function: - parses the line buffer for hostname and username * - Format: hostname [username] * - skip comments: everything after a # character * - fills hostname/username or NULL * Accepts: - host name (returned value) * - user name (returned value) */ static void parseline(char **phost, char **puser) { char *p; /* favourite pointer */ *phost = 0; *puser = 0; linebuf[MAXLINE - 1] = '\0'; /* * Skip comments by replacing the first '#' with a NULL. */ for (p = linebuf; *p; ++p) { if (*p == '#') { *p = '\0'; break; } } /* * Find beginning and end of hostname and null-terminate it. */ for (p = linebuf; *p; ++p) { if (!isspace((int) *p)) { *phost = p; break; } } for (; *p; ++p) { if (isspace((int) *p)) { *p++ = '\0'; break; } } /* * Find beginning and end of username and null-terminate it. */ for (; *p; ++p) { if (!isspace((int) *p)) { *puser = p; break; } } for (; *p; ++p) { if (isspace((int) *p)) { *p++ = '\0'; break; } } } xmpi-2.2.3b8/src/libxmpi/build_run.cc0000444000076500007650000003674607722033603013165 // // Copyright (c) 2001-2003 The Trustees of Indiana University. // All rights reserved. // Copyright (c) 1998-2001 University of Notre Dame. // All rights reserved. // Copyright (c) 1994-1998 The Ohio State University. // All rights reserved. // // This file is part of the XMPI software package. For license // information, see the LICENSE file in the top level directory of the // XMPI source distribution. // // $Id: build_run.cc,v 1.5 2003/08/23 13:48:35 jsquyres Exp $ // // Function: - provides option menu for build-run window // - parses schema for build-run window // - adds schema for build-run window // #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "xmpi/xmpi_sys.h" #include "xmpi_asc_parse.h" using namespace std; // function in nodeslist.cc. Only used here, so I am doing this... extern int get_node_names(char ***, int *); extern int get_nodes_list(xmpi_node*, int, char**); extern int fill_nodes(LIST*, xmpi_node**, int*); static int get_args(char**, char**, int*, struct aschema*); // XMPI_SYS_OPTIONS // // PURPOSE: provide the description of the vendor pane of the // build run window // int xmpi_sys_get_vendor_info(xmpi_menu_item **run_options, int *run_options_length, xmpi_menu_item **schema_options, int *schema_options_length, xmpi_node **nodes, int *nodes_length) { xmpi_menu_item *tmp_menu_item; // // Create the run_options menu... // *run_options_length = 10; tmp_menu_item = (xmpi_menu_item*) malloc((sizeof(xmpi_menu_item) * *run_options_length)); // -c2c or not to C2C tmp_menu_item[0].xmpi_type = XMPI_MENU_TOGGLE; tmp_menu_item[0].current_val.xmpi_toggle = 1; tmp_menu_item[0].default_val.xmpi_toggle = 1; tmp_menu_item[0].xmpi_label = strdup("Client to Client mode"); // -f use default I/O file descriptors tmp_menu_item[1].xmpi_type = XMPI_MENU_TOGGLE; tmp_menu_item[1].current_val.xmpi_toggle = 0; tmp_menu_item[1].default_val.xmpi_toggle = 0; tmp_menu_item[1].xmpi_label = strdup("Use default I/O file descriptors"); // -O homogeneous lam tmp_menu_item[2].xmpi_type = XMPI_MENU_TOGGLE; tmp_menu_item[2].current_val.xmpi_toggle = 0; tmp_menu_item[2].default_val.xmpi_toggle = 0; tmp_menu_item[2].xmpi_label = strdup("Homogeneous LAM"); // -D use location of binary as location of cwd tmp_menu_item[3].xmpi_type = XMPI_MENU_TOGGLE; tmp_menu_item[3].current_val.xmpi_toggle = 0; tmp_menu_item[3].default_val.xmpi_toggle = 0; tmp_menu_item[3].xmpi_label = strdup("Set CWD to location of binary"); // -ger enable Guaranteed Envelope Resources tmp_menu_item[4].xmpi_type = XMPI_MENU_TOGGLE; tmp_menu_item[4].current_val.xmpi_toggle = 0; tmp_menu_item[4].default_val.xmpi_toggle = 0; tmp_menu_item[4].xmpi_label = strdup("Use GER"); // -nsigs Have lam catch signals tmp_menu_item[5].xmpi_type = XMPI_MENU_TOGGLE; tmp_menu_item[5].current_val.xmpi_toggle = 1; tmp_menu_item[5].default_val.xmpi_toggle = 1; tmp_menu_item[5].xmpi_label = strdup("LAM catches signals"); // -nx tmp_menu_item[6].xmpi_type = XMPI_MENU_TOGGLE; tmp_menu_item[6].current_val.xmpi_toggle = 1; tmp_menu_item[6].default_val.xmpi_toggle = 1; tmp_menu_item[6].xmpi_label = strdup("Export LAM env. variables"); // -pty tmp_menu_item[7].xmpi_type = XMPI_MENU_TOGGLE; tmp_menu_item[7].current_val.xmpi_toggle = 1; tmp_menu_item[7].default_val.xmpi_toggle = 1; tmp_menu_item[7].xmpi_label = strdup("Enable pseudo-tty support"); // -tracing on / off at all tmp_menu_item[8].xmpi_type = XMPI_MENU_TOGGLE; tmp_menu_item[8].current_val.xmpi_toggle = 1; tmp_menu_item[8].default_val.xmpi_toggle = 1; tmp_menu_item[8].xmpi_label = strdup("LAM Tracing Enabled"); // tracing on / off initially tmp_menu_item[9].xmpi_type = XMPI_MENU_TOGGLE; tmp_menu_item[9].current_val.xmpi_toggle = 1; tmp_menu_item[9].default_val.xmpi_toggle = 1; tmp_menu_item[9].xmpi_label = strdup("LAM Tracing Initially On"); *run_options = tmp_menu_item; // // Now create the individual schema line options... // *schema_options_length = 2; tmp_menu_item = (xmpi_menu_item*) malloc((sizeof(xmpi_menu_item) * *schema_options_length)); tmp_menu_item[0].xmpi_type = XMPI_MENU_TEXTBOX; tmp_menu_item[0].current_val.xmpi_text = NULL; tmp_menu_item[0].default_val.xmpi_text = NULL; tmp_menu_item[0].xmpi_label = strdup("Source Node: "); tmp_menu_item[1].xmpi_type = XMPI_MENU_TEXTBOX; tmp_menu_item[1].current_val.xmpi_text = NULL; tmp_menu_item[1].default_val.xmpi_text = NULL; tmp_menu_item[1].xmpi_label = strdup("Working Directory: "); *schema_options = tmp_menu_item; // // create the nodes listsing. // char ** node_names = 0; int node_names_length = 0; if (get_node_names(&node_names, &node_names_length) != 0) { return 1; } *nodes_length = node_names_length + 2; if ((*nodes) != 0) free(*nodes); *nodes = (xmpi_node*) malloc (sizeof(xmpi_node) * (*nodes_length)); // set up the ALL and LOCAL things... (*nodes)[0].name = strdup("ALL NODES"); (*nodes)[0].exclusive = 1; (*nodes)[0].default_sel = 1; (*nodes)[0].selected = 1; (*nodes)[1].name = strdup("LOCAL NODES"); (*nodes)[1].exclusive = 1; (*nodes)[1].default_sel = 0; (*nodes)[1].selected = 0; // now copy over the nodes listing... for (int i = 0 ; i < node_names_length ; ++i) { (*nodes)[(i + 2)].name = node_names[i]; (*nodes)[(i + 2)].exclusive = 0; (*nodes)[(i + 2)].default_sel = 0; (*nodes)[(i + 2)].selected = 0; } free(node_names); return 0; } // xmpi_sys_get_schema_line // // INPUT: prog name of program to launch // copy number of copies to launch // args contents of the args field // nodes the listing of nodes to launch on // nodes_length number of struct node in nodes // schema_options array of xmpi_menu_item // schema_options_length length of the above array // // OUTPUT: app_schema_entry pointer to the char* to hold new // schema entry // // RETURNS: 0 -> success // LAMERROR -> otherwise // // DESCRIPTION: This takes all the information from the build and run // window and creates an application schema entry based on the // information. int xmpi_sys_get_schema_line(char *prog, int copy, char *args, xmpi_node *nodes, int nodes_length, xmpi_menu_item *schema_options, int schema_options_length, char** app_schema_entry) { string output; // sanity check... if (schema_options_length != 2) return LAMERROR; // get the nodes listing char *node_list; if (get_nodes_list(nodes, nodes_length, &node_list) != 0) return LAMERROR; output += node_list; free(node_list); // convert the copy thing to a char*... if (copy != 0) { char *copy_string = 0; copy_string = (char*) malloc(sizeof(char) * (sizeof(int) * 8 + 1)); if (copy_string == 0) return LAMERROR; sprintf(copy_string, "%d", copy); output = output + " -c " + copy_string; free(copy_string); } // do we have anything in the -s field? if (schema_options[0].current_val.xmpi_text != NULL) if (strlen(schema_options[0].current_val.xmpi_text) != 0) output = output + " -s " + schema_options[0].current_val.xmpi_text; // do we have anything in the -wd field? if (schema_options[1].current_val.xmpi_text != NULL) if (strlen(schema_options[1].current_val.xmpi_text) != 0) output = output + " -wd " + schema_options[1].current_val.xmpi_text; // time to add the program output = output + " " + prog; // and the arguments to the program if (strlen(args) != 0) output = output + " " + args; *app_schema_entry = (char*) malloc(sizeof(char) * (output.size() + 1)); if (*app_schema_entry == 0) return LAMERROR; strcpy(*app_schema_entry, output.c_str()); return 0; } // xmpi_sys_parse_schema_line // // INPUT: app_schema_entry pointer to the char* to hold new // schema entry // // OUTPUT: prog name of program to launch // copy number of copies to launch // args contents of the args field // nodes the listing of nodes to launch on // nodes_length number of struct node in nodes // schema_options array of xmpi_menu_item // schema_options_length length of the above array // // // RETURNS: 0 -> success // LAMERROR -> otherwise // // DESCRIPTION: Takes an app_schema_entry and fills in all the // information for the build and run window. int xmpi_sys_parse_schema_line(char** prog, int *copy, char **args, xmpi_node **nodes, int *nodes_length, xmpi_menu_item **schema_options, int schema_options_length, char* app_schema_entry) { LIST *app; // this should be the parsed app schema (i hope) int result; struct aschema *schema; if (schema_options_length != 2) return LAMERROR; app = asc_bufparse(app_schema_entry, strlen(app_schema_entry), &result, NULL); if (app == NULL) { return LAMERROR; } schema = (struct aschema*) al_top(app); if (get_args(prog, args, copy, schema) != 0) { return LAMERROR; } // update the nodes structure if (fill_nodes(schema->asc_nodelist, nodes, nodes_length) != 0) { return LAMERROR; } // I can't see how this would happen, but just in case... if (schema_options_length != 2) return LAMERROR; // schema[0] is source node if ((*schema_options)[0].current_val.xmpi_text != NULL) free((*schema_options)[0].current_val.xmpi_text); (*schema_options)[0].current_val.xmpi_text = NULL; if (schema->asc_srcnode >= 0) { char* tmp; tmp = (char*) malloc(sizeof(char) * (sizeof(int4) * 8 + 1)); sprintf(tmp, "n%d", schema->asc_srcnode); (*schema_options)[0].current_val.xmpi_text = tmp; } // schema[1] is working dir if ((*schema_options)[1].current_val.xmpi_text != NULL) free((*schema_options)[1].current_val.xmpi_text); if (schema->asc_env->ape_wrkdir != NULL) { (*schema_options)[1].current_val.xmpi_text = strdup(schema->asc_env->ape_wrkdir); } else { (*schema_options)[1].current_val.xmpi_text = NULL; } al_free(app); return 0; } // xmpi_sys_verify_schema_line // // INPUT: app_schema_entry // // RETURNS: 0 -> verify // 1 -> not verify int xmpi_sys_verify_schema_line(char* app_schema_entry, char** message) { LIST *app; int result; app = asc_bufparse(app_schema_entry, strlen(app_schema_entry), &result, NULL); if (app == NULL) { *message = strdup("Error parsing schema line options"); return 1; } return 0; } int xmpi_sys_get_run_options(xmpi_menu_item *run_options, int run_options_length, char **run_list) { string output; // sanity check... if (run_options_length != 10) return LAMERROR; output += string("# This file automatically generated by XMPI\n"); output += string("# Please do not modify.\n\n"); output += string("# To run this schema, use the command:\n"); // add the mpirun command output += "# mpirun"; // are we using c2c mode or lamd? if (run_options[0].current_val.xmpi_toggle == 0) output = output + " -lamd"; else output = output + " -c2c"; // add -f flag? if (run_options[1].current_val.xmpi_toggle != 0) output = output + " -f"; // add -O flag? if (run_options[2].current_val.xmpi_toggle != 0) output = output + " -O"; // -D if (run_options[3].current_val.xmpi_toggle != 0) output = output + " -D"; // -ger if (run_options[4].current_val.xmpi_toggle != 0) output = output + " -ger"; else output = output + " -nger"; // -nsigs if (run_options[5].current_val.xmpi_toggle == 0) output = output + " -nsigs"; // -nx if (run_options[6].current_val.xmpi_toggle == 0) output = output + " -nx"; // -pty if (run_options[7].current_val.xmpi_toggle != 0) output = output + " -pty"; if (run_options[8].current_val.xmpi_toggle != 0) { if (run_options[9].current_val.xmpi_toggle != 0) output = output + " -ton"; else output = output + " -toff"; } *run_list = (char*) malloc(sizeof(char) * (output.size() + 1)); if (*run_list == NULL) return LAMERROR; strcpy(*run_list, output.c_str()); return 0; } int xmpi_sys_parse_run_options(xmpi_menu_item **run_options, int *, char *run_list) { // thank God for the STL string args(run_list); OPT *ad; args.erase(0, args.find("# mpirun") + 8); if ((ad = xmpi_get_options((char*) args.c_str())) == 0) return LAMERROR; if (!ao_taken(ad, (char*) "lamd")) (*run_options)[0].current_val.xmpi_toggle = 1; else (*run_options)[0].current_val.xmpi_toggle = 0; if (!ao_taken(ad, (char*) "f")) (*run_options)[1].current_val.xmpi_toggle = 0; else (*run_options)[1].current_val.xmpi_toggle = 1; if (ao_taken(ad, (char*) "O")) (*run_options)[2].current_val.xmpi_toggle = 1; else (*run_options)[2].current_val.xmpi_toggle = 0; if (ao_taken(ad, (char*) "D")) (*run_options)[3].current_val.xmpi_toggle = 1; else (*run_options)[3].current_val.xmpi_toggle = 0; if (ao_taken(ad,(char*) "ger")) (*run_options)[4].current_val.xmpi_toggle = 1; else (*run_options)[4].current_val.xmpi_toggle = 0; if (!ao_taken(ad,(char*) "nsigs")) (*run_options)[5].current_val.xmpi_toggle = 0; else (*run_options)[5].current_val.xmpi_toggle = 1; if (ao_taken(ad, (char*) "nx")) (*run_options)[6].current_val.xmpi_toggle = 0; else (*run_options)[6].current_val.xmpi_toggle = 1; if (ao_taken(ad, (char*) "pty")) (*run_options)[7].current_val.xmpi_toggle = 1; else (*run_options)[7].current_val.xmpi_toggle = 0; if (ao_taken(ad, (char*) "ton") || ao_taken(ad, (char*) "t") || ao_taken(ad, (char*) "toff")) (*run_options)[8].current_val.xmpi_toggle = 1; else (*run_options)[8].current_val.xmpi_toggle = 0; if (ao_taken(ad, (char*) "ton") || ao_taken(ad, (char*) "t")) (*run_options)[9].current_val.xmpi_toggle = 1; else (*run_options)[9].current_val.xmpi_toggle = 0; ao_free(ad); return 0; } // get_args // // DESCRIPTION: "little" helper function to parse out the schema // struct that LAM builds // // INPUT: schema a single application schema struct // // OUTPUT: prog program name // args arguments to the program // copies number of copies to launch // // RETURNS: 0 Life rocks // LAMERROR Life does not rock // int get_args(char** prog, char** args, int* copies, struct aschema* schema) { *copies = schema->asc_proc_cnt; if (schema->asc_args->apa_argc <= 0) return LAMERROR; if (*prog != NULL) free(*prog); *prog = strdup((schema->asc_args->apa_argv)[0]); string tmp; for (int i = 1 ; i < schema->asc_args->apa_argc; ++ i) tmp = tmp + schema->asc_args->apa_argv[i] + " "; if (*(tmp.end()) == ' ') tmp.erase(tmp.end()); if (*args != NULL) free(*args); *args = (char*) malloc(sizeof(char) * (tmp.size() + 1)); strcpy(*args, tmp.c_str()); return 0; } xmpi-2.2.3b8/src/libxmpi/mpitr_com.cc0000444000076500007650000000777007722033603013166 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $Id: mpitr_com.cc,v 1.2 2003/08/23 13:43:46 jsquyres Exp $ * * Function: - MPI communicator trace access functions */ #include #include #include #include #include #include #include #include #include #include #include /* * mpitr_comget * * Function: - get MPI communicator trace * - specified by context ID and member process * Accepts: - process node * - process pid * - context ID * - ptr trace communicator buffer (returned value) * Returns: - 0 or ERROR */ int xmpi_mpitr_comget(int4 nodeid, int4 pid, int4 contextid, char **ptrcom) { struct trcid *ptrc; /* ptr cid trace */ int trlen; /* trace buffer length */ int len; /* buffer length */ char *p; /* favourite pointer */ char *trbuf; /* communicator traces buffer */ *ptrcom = 0; contextid = lam_coll2pt(contextid); /* * Get the trace communicator representation. */ trlen = lam_rtrget(nodeid, (int4) TRCOMM, pid, &trbuf); if (trlen < 0) { return (LAMERROR); } /* * Locate the communicator buffer with given contextid. */ p = trbuf; while (trlen > 0) { ptrc = (struct trcid *) (p + sizeof(struct trsrc)); mttoli4((int4 *) ptrc, sizeof(struct trcid) / sizeof(int4)); len = sizeof(struct trsrc) + sizeof(struct trcid) + (sizeof(struct _gps) * (ptrc->trc_nlg + ptrc->trc_nrg)); if (ptrc->trc_cid == contextid) { len -= sizeof(struct trsrc); *ptrcom = (char*) malloc((unsigned) len); if (*ptrcom == 0) { free(trbuf); return (LAMERROR); } mttoli4((int4 *) (p + sizeof(struct trsrc) + sizeof(struct trcid)), (len - sizeof(struct trcid)) / sizeof(int4)); memcpy(*ptrcom, (char *) ptrc, len); free(trbuf); return (0); } trlen -= len; p += len; } free(trbuf); errno = EINVAL; return (LAMERROR); } /* * mpitr_comprint * * Function: - print MPI communicator trace * Accepts: - context ID * - trace communicator buffer * - flag, on means show in GPS form */ void xmpi_mpitr_comprint(int cid, char *trcom, int showgps) { int collective; /* is it a collective comm? */ int4 lsize; /* size of 1st group */ int4 rsize; /* size of 2nd group */ struct _gps *p; /* ptr to group members */ struct trcid *t; /* ptr cid trace */ collective = (cid < 0); cid = lam_coll2pt(cid); t = (struct trcid *) trcom; if (cid == 0) { printf("INTRACOMM:\tMPI_COMM_WORLD"); } else if (cid == 1) { printf("INTRACOMM:\tMPI_COMM_SELF"); return; } else { printf("%s:\t", (t->trc_nrg == 0) ? "INTRACOMM" : "INTERCOMM"); printf("<%d>", cid); } if (collective) printf("*"); printf("\n"); lsize = t->trc_nlg; rsize = t->trc_nrg; printf("%s%d\n", ((rsize == 0) ? "SIZE:\t\t" : "LOCAL SIZE:\t"), lsize); /* * Print global ranks of local processes. */ p = (struct _gps *) (t + 1); printf("%s", (rsize == 0) ? "GROUP:\t\t" : "LOCAL GROUP:\t"); for (; lsize > 0; --lsize, ++p) { if (showgps) { printf("n%d,i%d ", p->gps_node, p->gps_idx); } else { printf("%d ", p->gps_grank); } } printf("\n"); /* * Print global ranks of remote processes. */ if (rsize > 0) { printf("REMOTE GROUP:\t"); for (; rsize > 0; --rsize, ++p) { if (showgps) { printf("n%d,i%d ", p->gps_node, p->gps_idx); } else { printf("%d ", p->gps_grank); } } printf("\n"); } } xmpi-2.2.3b8/src/libxmpi/mpitr_dtype.cc0000444000076500007650000000561007722033603013524 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $Id: mpitr_dtype.cc,v 1.2 2003/08/23 13:48:35 jsquyres Exp $ * * Function: - MPI datatype trace access functions */ #include #include #include #include #include #include #include #include /* * global functions */ int mpitr_dtypeget(int4, int4, int4, char**); /* * mpitr_dtypeget * * Function: - get datatype trace * Accepts: - process node * - process pid * - datatype label * - ptr trace datatype buffer (returned value) * Returns: - 0 or LAMERROR */ int mpitr_dtypeget(int4 nodeid, int4 pid, int4 dtlabel, char **ptrdtype) { int trlen; /* trace buffer length */ char *p; /* favourite pointer */ char *trbuf; /* datatype trace buffer */ struct trdtype *ptrdt; /* ptr into datatype trace */ *ptrdtype = 0; if (dtlabel < 0) { errno = EINVAL; return (LAMERROR); } if (dtlabel <= TRDTMAX) { /* * Allocate datatype description. */ trlen = 2 * sizeof(struct trdtype); *ptrdtype = (char*) malloc((unsigned) trlen); if (*ptrdtype == 0) return (LAMERROR); ptrdt = (struct trdtype *) * ptrdtype; ptrdt->trd_dtype = dtlabel; ptrdt->trd_length = trlen; ptrdt++; ptrdt->trd_dtype = dtlabel; ptrdt->trd_count = 1; return (0); } /* * It's a constructed datatype, get its trace representation. */ trlen = lam_rtrget(nodeid, (int4) TRDTYPE, pid, &trbuf); if (trlen < 0) return (LAMERROR); /* * Locate the datatype buffer with given number. */ *ptrdtype = 0; p = trbuf; while (trlen > 0) { ptrdt = (struct trdtype *) (p + sizeof(struct trsrc)); mttoli4((int4 *) ptrdt, sizeof(struct trdtype) / sizeof(int4)); if (ptrdt->trd_dtype == dtlabel) { *ptrdtype = (char *) ptrdt; break; } trlen -= (ptrdt->trd_length + sizeof(struct trsrc)); p += (ptrdt->trd_length + sizeof(struct trsrc)); } if (*ptrdtype == 0) { free((char *) trbuf); errno = EINVAL; return (LAMERROR); } /* * Copy datatype record. */ *ptrdtype = (char*) malloc((unsigned) (ptrdt->trd_length)); if (*ptrdtype == 0) { free((char *) trbuf); return (LAMERROR); } mttoli4((int4 *) (((char *) ptrdt) + sizeof(struct trdtype)), (ptrdt->trd_length - sizeof(struct trdtype)) / sizeof(int4)); memcpy(*ptrdtype, (char *) ptrdt, ptrdt->trd_length); free((char *) trbuf); return (0); } xmpi-2.2.3b8/src/libxmpi/ndi_resolve.cc0000444000076500007650000000643407722033603013502 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: ndi_resolve.cc,v 1.2 2003/08/23 13:45:02 jsquyres Exp $ * * Function: - node identifier resolution */ #include #include #include #include #include #include #include /* * local functions */ static int ndi_cast(LIST*, int4, int4, int*); /* * ndi_resolve * * Function: - node identifier resolution * - expands "special" node identifiers into * multiple specific node identifiers * Accepts: - node ID list * Returns: - resolved node ID list or null */ LIST * ndi_resolve(LIST *nodelist) { struct ndi newnode; /* new list element */ struct ndi *p; /* current list element */ LIST *newnodelist; /* resolved node ID list */ int4 index; /* index counter */ /* * Initialize the new list. */ newnodelist = al_init(sizeof(struct ndi), 0); if (newnodelist == 0) return (0); /* * Resolve each entry in the given list. */ index = 0; p = (struct ndi *) al_top(nodelist); while (p) { if (p->ndi_node == HOST2OTB) { if (ndi_cast(newnodelist, 0, NT_ITB | NT_CAST, &index)) { al_free(newnodelist); return (0); } } else if (p->ndi_node == HOST2ALL) { if (ndi_cast(newnodelist, 0, NT_CAST, &index)) { al_free(newnodelist); return (0); } } else if (p->ndi_node == LAM_HOST2COMP) { if (ndi_cast(newnodelist, 0, NT_WASTE | NT_CAST, &index)) { al_free(newnodelist); return (0); } } else { newnode.ndi_node = p->ndi_node; newnode.ndi_flags = p->ndi_flags; newnode.ndi_count = p->ndi_count; newnode.ndi_index = index++; if (al_append(newnodelist, &newnode) == 0) { al_free(newnodelist); return (0); } } p = (struct ndi *) al_next(nodelist, p); } return (newnodelist); } /* * ndi_cast * * Function: - expands a cast of nodes * Accepts: - node type * - node mask * - current index ptr * Returns: - 0 or ERROR */ static int ndi_cast(LIST *nodelist, int4 type, int4 mask, int* ixp) { int4 nnodes; /* node array size */ int4 *pnodes; /* node array */ int i; struct ndi newnode; /* new list element */ nnodes = getntype(type, mask); if (nnodes < 0) return (LAMERROR); if (nnodes == 0) return (0); pnodes = (int4 *) malloc((unsigned) (nnodes * sizeof(int4))); if (pnodes == 0) return (LAMERROR); if (getnodes(pnodes, nnodes, type, mask)) { free((char *) pnodes); return (LAMERROR); } for (i = 0; i < nnodes; ++i) { newnode.ndi_node = pnodes[i]; newnode.ndi_flags = 0; newnode.ndi_count = 1; newnode.ndi_index = (*ixp)++; if (al_append(nodelist, &newnode) == 0) { free((char *) pnodes); return (LAMERROR); } } free((char *) pnodes); return (0); } xmpi-2.2.3b8/src/libxmpi/nodeslist.cc0000444000076500007650000001273307722033603013174 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: nodeslist.cc,v 1.5 2003/08/23 13:45:02 jsquyres Exp $ * * Function: - retrieve hostnames from LAM nx nomenclature */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "xmpi/xmpi_error.h" #include "xmpi/xmpi_sys.h" using namespace std; /* * Local variables */ static char name[1024]; static int4 nlinks; static struct dolink *links; extern int local_initialize(); static void nodename(int node, int want_name) { struct hostent *hent; if (node < 0 || node >= nlinks || links[node].dol_link == NOTLINKID) { strcpy(name, "invalid node"); } else { hent = gethostbyaddr((char *)&links[node].dol_addr.sin_addr, sizeof(struct in_addr), AF_INET); if (hent && want_name) strncpy(name, hent->h_name, sizeof(name)); else sprintf(name, "%s", inet_ntoa(links[node].dol_addr.sin_addr)); } endhostent(); } int get_node_names(char ***nodes_list, int *nodes_list_length) { int4 node; int *pnodes; struct route r; int count = 0; if( local_initialize()) return LAMERROR; if (ldogetlinks(&links, &nlinks)) lamfail((char*)"lamnodes (ldogetlinks)"); pnodes = (int4 *) malloc((unsigned) (nlinks * sizeof(int4))); if (pnodes == 0) lamfail((char*)"lamnodes (malloc)"); if (getnodes(pnodes, nlinks, 0, NT_CAST)) lamfail((char*)"lamnodes (getnodes)"); // This may have to get larger. Start with the base, which is the // number of nodes we have... *nodes_list = (char **) malloc(nlinks * sizeof(char*)); if (*nodes_list == 0) lamfail((char*)"lamnodes (malloc)"); *nodes_list_length = nlinks; for (node = 0; node < nlinks; node++) { nodename(node, 1); r.r_nodeid = getnodeid(); getrent(&r); // If r_ncpus is greater than 1, we need more space ;-( if (r.r_ncpus > 1) { *nodes_list_length = *nodes_list_length + r.r_ncpus - 1; *nodes_list = (char **) realloc((void *) *nodes_list, *nodes_list_length * sizeof(char*)); if (*nodes_list == 0) lamfail((char*)"nodelist (realloc)"); } // time to grab some memory for the name stuff.... // 5 -> number, 1 -> p, 1-> \0, 3 -> spaces 5-> (cpu numb) for (int i = 0 ; i < r.r_ncpus ; ++i) { (*nodes_list)[count] = (char*) malloc(sizeof(char) * (strlen(name) + 15 + sizeof(int) * 8)); if ((*nodes_list)[count] == 0) lamfail((char*)"lamnodes (malloc)"); sprintf((*nodes_list)[count], "c%-3d %s (cpu %d)", count, name, i); ++count; } } free(pnodes); return 0; } int get_nodes_list(xmpi_node* nodes, int nodes_length, char** output) { if (nodes_length < 2) return LAMERROR; // special cases... The ALL NODES or LOCAL NODES is selected... if (nodes[0].selected != 0) { *output = strdup("C"); return 0; } if (nodes[1].selected != 0) { *output = strdup("h"); return 0; } // now build up the fun nodes... string tmp; // STUPID G++ NOT HAVING STRING STREAMS char* number; number = (char*) malloc(sizeof(char) * (sizeof(int) * 8 + 1)); if (number == 0) { return LAMERROR; } int j; for (int i = 2 ; i < nodes_length ; ++i) { if (nodes[i].selected != 0) { sprintf(number, "%d", i - 2); tmp = tmp + "c" + number; for (j = i + 1 ; j < nodes_length && nodes[j].selected != 0 ; ++j); if (i + 1 == j) tmp = tmp + " "; else { sprintf(number, "%d", j - 3); tmp = tmp + "-" + number + " "; i = j; } } } // it is possible that there will be a trailing space. Remove. if (*(tmp.end()) == ' ') tmp.erase(tmp.end()); *output = (char*) malloc(sizeof(char) * (tmp.size() + 1)); if (*output == 0) { return LAMERROR; } strcpy(*output, tmp.c_str()); return 0; } // fill_nodes() // // DESCRIPTION: takes a list of nodes from the aschema and filles in // the xmpi_nodes structure. // // INPUT: nodes_list a LIST from the aschema struct of all nodes that // should be selected. // // OUTPUT: nodes xmpi_node list of all nodes lambooted // nodes_length number of structs in the xmpi_node array // // RETURNS 0 -> SUCCESS // LAMERROR -> failure // int fill_nodes(LIST* nodes_list, xmpi_node** nodes, int* nodes_length) { ndi* node_desc; // clear all the nodes... for (int i = 0 ; i < *nodes_length ; ++i) (*nodes)[i].selected = 0; for (node_desc = (struct ndi*) al_top(nodes_list); node_desc; node_desc = (struct ndi*) al_next(nodes_list, node_desc)) { if (node_desc->ndi_node == LOCAL) { (*nodes)[1].selected = 1; return 0; } else if (node_desc->ndi_node == LAM_HOST2COMP) { (*nodes)[0].selected = 1; return 0; } else (*nodes)[node_desc->ndi_node+2].selected = 1; } return 0; } xmpi-2.2.3b8/src/libxmpi/trdrain_mpi.cc0000444000076500007650000000433707722033603013501 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: trdrain_mpi.cc,v 1.3 2003/08/23 13:46:18 jsquyres Exp $ * * Function: - unloads trace data for one MPI world * Accepts: - trace file desc. opened for append * - GPS array of world * - GPS array length * - get/forget flag * - delay period in secs after flush signal */ #include #include #include #include #include #include #include #include extern "C" { typedef int (*drain_funct) (int4, int4, int4, int4); } int xmpi_trdrain_mpi(int fd, struct _gps *world, int nworld, int keep, int flush_delay) { int i; drain_funct drain; drain = keep ? lam_rtrfget : lam_rtrfforget; /* * Signal everybody to flush in-process trace buffers to the daemon. */ if (flush_delay >= 0) { for (i = 0; i < nworld; i++) { rpdoom(world[i].gps_node, SELECT_PID, world[i].gps_pid, LAM_SIGTRACE); } if (flush_delay > 0) { sleep((unsigned) flush_delay); } } /* * Drain the init/on/off traces. */ for (i = 0; i < nworld; i++) { if ((*drain) (world[i].gps_node, TRONOFF, world[i].gps_pid, fd) < 0) return (LAMERROR); } /* * Drain the communicator traces. */ for (i = 0; i < nworld; i++) { if ((*drain) (world[i].gps_node, TRCOMM, world[i].gps_pid, fd) < 0) return (LAMERROR); } /* * Drain the datatype traces. */ for (i = 0; i < nworld; i++) { if ((*drain) (world[i].gps_node, TRDTYPE, world[i].gps_pid, fd) < 0) return (LAMERROR); } /* * Drain the runtime traces. */ for (i = 0; i < nworld; i++) { if ((*drain) (world[i].gps_node, TRRUNTIME, world[i].gps_pid, fd) < 0) return (LAMERROR); } return (0); } xmpi-2.2.3b8/src/libxmpi/xmpi_asc_parse.cc0000664000076500007650000001665007722033603014173 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_asc_parse.cc,v 1.9 2003/08/23 13:46:45 jsquyres Exp $ * * Function: - parse an application schema */ #include using namespace std; #include #include #include #include #include #include #include #include #include #include #include "app_schema.h" #include "lam.h" #include "xmpi.h" #include "xmpi_asc_parse.h" #include "xmpi_error.h" #define LAM_PTY_IS_DEFAULT 1 static void xmpi_asc_build_rtf(OPT*, int4*); int xmpi_asc_parse(const char *appfile, int4 *rtf, LIST **ret_appd) { struct stat fileinfo; /* file information */ LIST *appd; /* app. schema desc. */ int lineno = 0; /* line number */ char ebuf[1024]; /* formatting buffer */ int bufsize; int fd; char *filebuf; char **env = NULL; int nbytes; int plineno; OPT *ad; /* * Check that the application schema is an existing regular file. */ if (stat(appfile, &fileinfo)) { sprintf(ebuf, "Application schema \"%s\"\n", appfile); xmpi_error(0, ebuf); return (0); } if (!S_ISREG(fileinfo.st_mode)) { sprintf(ebuf, "Application schema \"%s\"\n: Is not a regular file", appfile); errno = 0; xmpi_error(0, ebuf); return (0); } /* * Get file info. */ if (stat(appfile, &fileinfo)) return(0); bufsize = (int) fileinfo.st_size; if (bufsize <= 0) return(0); /* * Allocate a file buffer. */ filebuf = (char*) malloc((unsigned) bufsize); if (filebuf == 0) return(0); /* * Open and read the file. */ fd = open(appfile, O_RDONLY, 0); if (fd < 0) { free(filebuf); return 0; } nbytes = read(fd, filebuf, bufsize); close(fd); if (nbytes < bufsize) { if (nbytes >= 0) errno = EIO; free(filebuf); return 0; } // // Get the mpirun line from the buffer. // // dooh... filebuf might not end in \0. Needed for creating string char* tmp_string; tmp_string = (char*) malloc(sizeof(char) * (bufsize + 1)); (void) memcpy(tmp_string, filebuf, bufsize); tmp_string[bufsize] = '\0'; string args(tmp_string); free(tmp_string); if (args.find("# mpirun") == string::npos) { // make it empty... args.erase(); } else { args.erase(0, args.find("# mpirun") + 8); args.erase(args.find("\n"), args.size()); } // If our app schema doesn't have info on how to run this // application, we can get away with using the defaults just about // everywhere. However, we are going to explicitly turn on tracing, // as that isn't a default - and making it default would be kinda // complicated - there is no flag to mpirun to explicitly disable // tracing. -toff turns it off, but not disables it. So, we add // -ton, so that tracing can occur. if (args.length() == 0) { args = "-ton"; } if ((ad = xmpi_get_options((char*) args.c_str())) == 0) { free(filebuf); return 0; } // add then environment, if needed... if (asc_environment(!ao_taken(ad, (char*) "nx"), ao_taken(ad, (char*) "x") ? ao_param(ad, (char*) "x", 0, 0) : 0, &env)) { free(filebuf); ao_free(ad); return 0; } // build the rtf bitmap xmpi_asc_build_rtf(ad, rtf); /* * Parse the app. schema buffer. (for everything but the mpirun line) */ appd = asc_bufparse(filebuf, bufsize, &plineno, env); free(filebuf); if (appd == 0) { if (lineno > 0) { sprintf(ebuf, "Parsing application schema \"%s\"\nline %d", appfile, lineno); } else { sprintf(ebuf, "Parsing application schema \"%s\"\n", appfile); } xmpi_error(0, ebuf); ao_free(ad); return (0); } // assign variables and stuff. ao_free(ad); *ret_appd = appd; return (1); } /* * xmpi_asc_free * * Function: - free an application schema descriptor * Accepts: - app. schema desc. */ void xmpi_asc_free(LIST *appd) { asc_free(appd); } static void xmpi_asc_build_rtf(OPT* ad, int4* rtf) { *rtf = RTF_MPIRUN; if (!ao_taken(ad, (char*) "nsigs")) *rtf |= RTF_MPISIGS; if (ao_taken(ad, (char*) "D")) *rtf |= RTF_APPWD; if (ao_taken(ad, (char*) "O")) *rtf |= RTF_HOMOG; if (!ao_taken(ad, (char*) "lamd")) *rtf |= RTF_MPIC2C; if (ao_taken(ad, (char*) "ger") || (ao_taken(ad, (char*) "lamd") && !ao_taken(ad, (char*) "nger"))) *rtf |= RTF_MPIGER; if (ao_taken(ad, (char*) "t") || ao_taken(ad, (char*) "ton") || ao_taken(ad, (char*) "toff")) *rtf |= RTF_TRACE; if (!ao_taken(ad, (char*) "toff")) *rtf |= RTF_TRSWITCH; if (isatty(1)) *rtf |= RTF_TTYOUT; if (!ao_taken(ad, (char*) "f")) *rtf |= RTF_IO; #if LAM_HAVE_PTYS #if LAM_PTY_IS_DEFAULT if (!ao_taken(ad, (char*) "npty")) *rtf |= RTF_PTYS; #else if (ao_taken(ad, (char*) "pty")) *rtf |= RTF_PTYS; #endif #else /* For those systems that do not have pty support */ if (ao_taken(ad, (char*) "pty")) fprintf(stderr, "Your system does not appear to include pty support. -pty ignored.\n"); *rtf &= ~RTF_PTYS; #endif } OPT* xmpi_get_options(const char* run_options) { char* cmdline; char** cmdv; int cmdc; OPT *ad; /* argument descriptor */ /* * Allocate one extra char for terminator and 2 extra so we can put a fake * argv[0] at the start and then use the usual parsing routines. */ cmdline = (char*) malloc(sizeof(char) * (strlen(run_options) + 3)); if (cmdline == 0) return (OPT*) 0; /* * Insert the fake argv[0] and then copy the line. */ strcpy(cmdline,(char*) "x "); strcat(cmdline, run_options); /* * Split it into a command line argv. */ cmdv = sfh_argv_break_quoted(cmdline, ' ', (char*) "\\'\""); free(cmdline); if (cmdv == 0) return 0; cmdc = sfh_argv_count(cmdv); ad = ao_init(); if (ad == 0) { sfh_argv_free(cmdv); return 0; } ao_setopt1(ad,(char*) "fhtvDO", 0, 0, 0); ao_setopt(ad,(char*) "client", 0, 2, 0); ao_setopt(ad,(char*) "server", 0, 1, 0); ao_setopt(ad,(char*) "s", 0, 1, 0); ao_setopt(ad,(char*) "c", 0, 1, AOINT); ao_setopt(ad,(char*) "np",(char*) "c", 1, AOINT); ao_setopt(ad,(char*) "c2c", 0, 0, 0); ao_setopt(ad,(char*) "lamd",(char*) "c2c", 0, 0); ao_setopt(ad,(char*) "ger", 0, 0, 0); ao_setopt(ad,(char*) "nger",(char*) "ger", 0, 0); ao_setopt(ad,(char*) "w", 0, 0, 0); ao_setopt(ad,(char*) "nw",(char*) "w", 0, 0); ao_setopt(ad,(char*) "toff", 0, 0, 0); ao_setopt(ad,(char*) "ton",(char*) "toff", 0, 0); ao_setopt(ad,(char*) "nsigs", 0, 0, 0); ao_setopt(ad,(char*) "x", 0, 1, 0); ao_setopt(ad,(char*) "nx", 0, 0, 0); ao_setopt(ad,(char*) "wd",(char*) "D", 1, 0); ao_setopt(ad,(char*) "pty", 0, 0, 0); ao_setopt(ad,(char*) "npty",(char*) "pty", 0, 0); if (asc_compat(&cmdc, &cmdv, ad)) { sfh_argv_free(cmdv); return 0; } if (ao_parse(ad, &cmdc, cmdv)) { sfh_argv_free(cmdv); ao_free(ad); return 0; } // I think we can do this. Time to find out... sfh_argv_free(cmdv); return ad; } xmpi-2.2.3b8/src/libxmpi/xmpi_sys_snapshot.lam.cc0000444000076500007650000002744707722033603015542 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * Function: - get LAM state info. for all MPI processes */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "xmpi.h" #include "xmpi_misc.h" #include "xmpi_ctl.h" /* * global functions */ int xmpi_sys_snapshot(struct _gps*, int, struct xmproc*); /* * local functions */ static void getstateinfo(struct _gps*, int, struct xmproc*, int); static void getmesginfo(struct _gps*, int, struct xmproc *, int); static int addmesg(struct xmproc*, int); static int settables(int); static void setprocinfo(struct xmproc*, struct pstate*); static void unpack_fyi(struct _fyiproc*, int*, int*, int*, int*, int*, int*, int*, int*, int*, int*, int*, int*); /* * local macros and defines */ #define global_rank(p) ((p) >> 16) #define local_rank(p) ((p) & 0xffff) /* * local variables */ static int nentries = 0; /* # table entries */ static int bfsize = 0; /* size of msg table */ static int bfsmax = XMPI_VWBFSMAX; /* max size of msg table */ static struct pstate *proctbl = 0; /* process state table */ static struct bfstatus *msgtbl = 0; /* message state table */ static char buf[128]; /* formatting buffer */ /* * xmpi_sys_snapshot * * Function: - gets state information on processes * - abort if LAM error * Accepts: - GPS array * - # of processes * - XMPI process array */ int xmpi_sys_snapshot(struct _gps *app, int app_n, struct xmproc *procs) { int i; /* favourite index */ struct xmproc *p; /* favourite pointer */ xmpi_busy(); /* * Set the process and message tables. */ if (settables(app_n)) xmpi_fail((char*) "xmpi (xmpi_sys_snap)"); /* * Reset the processes state */ for (i = 0, p = procs; i < app_n; ++i, ++p) p->xmp_state = XMPI_SUNDEF; /* * Loop over the processes skipping the initialized ones. */ for (i = 0, p = procs; i < app_n; ++i, ++p) { if (p->xmp_state == XMPI_SUNDEF) { sprintf(buf, "Probing node n%d", app[i].gps_node); xmpi_ctl_setinfo(buf); /* * Get LAM state information for the node of the current process. */ getstateinfo(app, app_n, procs, i); /* * Get message information for all processes on that node. */ getmesginfo(app, app_n, procs, i); } } xmpi_ctl_resetinfo(); xmpi_unbusy(); return (0); } /* * getstateinfo * * Function: - get process state info for a node * - abort if LAM error * Accepts: - GPS array * - # processes * - XMPI process array * - process index (global rank) */ static void getstateinfo(struct _gps *app, int app_n, struct xmproc *parray, int index) { int np; /* # processes on node */ int i, j; /* favourite indices */ struct pstate *pstat; /* pointer to state table */ struct _gps *pproc; /* process pointer */ struct _gps *p; /* favourite pointer */ /* * Get LAM information. */ pproc = app + index; np = rpstate(pproc->gps_node, SELECT_MPI, INT4_NIL, proctbl, (int4) nentries); if (np < 0) xmpi_fail((char*) "xmpi (getstateinfo)"); /* * Loop over remaining MPI processes skipping those on a different node. */ for (i = index, p = pproc; i < app_n; ++i, ++p) { if (p->gps_node != pproc->gps_node) continue; /* * Find the process in the tables. */ for (j = 0, pstat = proctbl; j < np; ++j, ++pstat) { /* * Fill the proces state information. */ if (pstat->ps_pid == p->gps_pid) { setprocinfo(parray + i, pstat); break; } } } } /* * getmesginfo * * Function: - get message info for a node * - abort if LAM error * Accepts: - GPS array * - # processes * - XMPI process array * - process index */ static void getmesginfo(struct _gps *app, int app_n, struct xmproc *parray, int index) { struct xmproc *pproc; /* process pointer */ struct xmproc *p; /* favourite pointer */ int i, j; /* favourite indices */ int size; /* # of return blocks */ int limit; /* # of blocks to print */ int tag; /* message tag */ int cid; /* message cid */ int ignore; /* ignored return parameter */ struct bfstatus *bp; /* buffered message */ struct bfparms parms; /* buffer parameters */ struct _fyimsg *fyi; /* message FYI */ /* * Get message information. */ pproc = parray + index; size = rbfstate(app[index].gps_node, msgtbl, bfsmax, &parms); if (size < 0) xmpi_fail((char*) "xmpi (getmesginfo)"); limit = (size < bfsmax) ? size : bfsmax; /* * Loop over remaining MPI processes skipping those on a different node. */ for (i = index, p = pproc; i < app_n; ++i, ++p) { if (app[i].gps_node != app[index].gps_node) continue; /* * Delete all previous messages. */ if (p->xmp_msgs) { al_free(p->xmp_msgs); p->xmp_msgs = 0; p->xmp_nmsg = 0; p->xmp_curmsg = 0; } p->xmp_more = 0; /* * Collect all messages for that process. */ for (j = 0, bp = msgtbl; j < limit; ++j, ++bp) { if ((bp->bfs_flags & KSYNCSQL) && !(bp->bfs_flags & N2ND) && !(bp->bfs_event & 0x10000)) { fyi = (struct _fyimsg *) & bp->bfs_data[4]; if (global_rank(fyi->fym_dest) != i) continue; lam_unsyncsql(bp->bfs_event, bp->bfs_type, &tag, &cid, &ignore, &ignore, &ignore, &ignore); /* * Skip collective call messages and GER messages. */ if ((cid < 0) || (tag == MPI_GER_TAG)) continue; if (addmesg(p, j)) xmpi_fail((char*) "xmpi (getmesginfo)"); } } /* * Add "more messages" entry if needed. */ if (size > bfsmax) { if (addmesg(p, -1)) xmpi_fail((char*)"xmpi (getmesginfo)"); p->xmp_more = 1; } /* * Reset the message pointer. */ if (p->xmp_msgs) p->xmp_curmsg = (xmmsg*) al_top(p->xmp_msgs); } } /* * addmesg * * Function: - add message to process entry * Accepts: - ptr to process * - message index (or -1 for "more messages") * - message length * Returns: - 0 or LAMERROR */ static int addmesg(struct xmproc *pproc, int msgidx) { struct xmmsg newelem; /* new list element */ struct xmmsg *p; /* favourite pointer */ struct bfstatus *pmsg; /* ptr to message entry */ int cid; /* context ID */ int tag; /* tag */ int lsrc; /* local source rank */ int gsrc; /* global source rank */ int dtype; /* datatype */ int ack; /* message ack field */ int dest_idx; /* destination index */ int src_node; /* source node */ int src_idx; /* source process index */ struct _fyimsg *fyi; /* message FYI */ /* * Create the message list if needed. */ if (pproc->xmp_msgs == 0) { pproc->xmp_msgs = al_init((int4) sizeof(struct xmmsg), 0); if (pproc->xmp_msgs == 0) return (LAMERROR); } /* * Locate a previous message of the same type. * If found, increment its count. */ if (msgidx >= 0) { pmsg = msgtbl + msgidx; fyi = (struct _fyimsg *) & pmsg->bfs_data[4]; lam_unsyncsql(pmsg->bfs_event, pmsg->bfs_type, &tag, &cid, &ack, &dest_idx, &src_node, &src_idx); cid = lam_coll2pt(cid); gsrc = global_rank(fyi->fym_src); lsrc = local_rank(fyi->fym_src); dtype = fyi->fym_dtpid >> 16; p = (xmmsg*) al_top(pproc->xmp_msgs); while (p) { if ((p->xmm_cid == cid) && (p->xmm_tag == tag) && (p->xmm_gsrc == gsrc) && (p->xmm_cnt == fyi->fym_count) && (p->xmm_dtype == dtype)) { ++(p->xmm_nmsg); ++(pproc->xmp_nmsg); return (0); } p = (xmmsg*) al_next(pproc->xmp_msgs, p); } } /* * No previous message found (or it's "more messages"), add a new entry. */ if (msgidx < 0) { newelem.xmm_nmsg = -1; } else { ++(pproc->xmp_nmsg); newelem.xmm_nmsg = 1; newelem.xmm_cid = cid; newelem.xmm_tag = tag; newelem.xmm_gsrc = gsrc; newelem.xmm_lsrc = lsrc; newelem.xmm_cnt = fyi->fym_count; newelem.xmm_dtype = dtype; } if (al_append(pproc->xmp_msgs, (char *) &newelem) == 0) return (LAMERROR); return (0); } /* * settables * * Function: - allocate/expand process & message tables * Accepts: - # of processes * Returns: - 0 or LAMERROR */ static int settables(int nprocs) { /* * Handle the process tables. */ if (proctbl == 0) { proctbl = (struct pstate *) malloc((unsigned) nprocs * sizeof(struct pstate)); if (proctbl == 0) return (LAMERROR); } else if (nprocs > nentries) { proctbl = (struct pstate *) realloc((char *) proctbl, (unsigned) nprocs * sizeof(struct pstate)); if (proctbl == 0) return (LAMERROR); } nentries = nprocs; /* * Handle the message table. */ if (msgtbl == 0) { bfsize = bfsmax; msgtbl = (struct bfstatus *) malloc((unsigned) bfsize * sizeof(struct bfstatus)); if (msgtbl == 0) return (LAMERROR); } else if (bfsmax > bfsize) { bfsize = bfsmax; msgtbl = (struct bfstatus *) realloc((char *) msgtbl, (unsigned) bfsize * sizeof(struct bfstatus)); if (msgtbl == 0) return (LAMERROR); } return (0); } /* * setprocinfo * * Function: - fill a processes entry from its state * Accepts: - ptr to process * - ptr to process state */ static void setprocinfo(struct xmproc *pproc, struct pstate *pstate) { struct _fyiproc *fyi; /* ptr process FYI */ int psglobal; /* process global rank */ int peernode; /* peer node */ int peeridx; /* peer process index */ int rootnode; /* root node */ int rootidx; /* root process index */ pproc->xmp_state = ((pstate->ps_kernel.ks_state == 0) || (pstate->ps_kernel.ks_state == 3)) ? XMPI_SRUN : XMPI_SBLOCK; fyi = (struct _fyiproc *) pstate->ps_kernel.ks_fyi; mttoli4((int4 *) fyi, sizeof(struct _fyiproc) / sizeof(int4)); unpack_fyi(fyi, &psglobal, &pproc->xmp_lrank, &peernode, &peeridx, &pproc->xmp_gpeer, &pproc->xmp_lpeer, &rootnode, &rootidx, &pproc->xmp_groot, &pproc->xmp_lroot, &pproc->xmp_cid, &pproc->xmp_tag); pproc->xmp_func = fyi->fyp_func; pproc->xmp_wfunc = 0; pproc->xmp_cnt = fyi->fyp_count; pproc->xmp_dtype = fyi->fyp_dtype; } /* * unpack_fyi * * Function: - unpack process FYI into constituent elements * Accepts: - ptr process FYI * - ptrs to locations to unpack fyi into */ static void unpack_fyi(struct _fyiproc *fyi, int *psglobal, int *pslocal, int *peernode, int *peeridx, int *peerglobal, int *peerlocal, int *rootnode, int *rootidx, int *rootglobal, int *rootlocal, int *cid, int *tag) { *psglobal = fyi->fyp_me >> 16; *pslocal = fyi->fyp_me & 0xFFFF; *peernode = fyi->fyp_peergps >> 16; *peeridx = fyi->fyp_peergps & 0xFFFF; *peerglobal = fyi->fyp_peer >> 16; *peerlocal = fyi->fyp_peer & 0xFFFF; *rootnode = fyi->fyp_rootgps >> 16; *rootidx = fyi->fyp_rootgps & 0xFFFF; *rootglobal = fyi->fyp_root >> 16; *rootlocal = fyi->fyp_root & 0xFFFF; *cid = fyi->fyp_cidtag >> 16; *tag = fyi->fyp_cidtag & 0xFFFF; /* * Sign extend. */ if (*cid & 0x8000) *cid |= 0xFFFF0000; if (*tag & 0x8000) *tag |= 0xFFFF0000; if (*peerglobal & 0x8000) *peerglobal |= 0xFFFF0000; if (*peerlocal & 0x8000) *peerlocal |= 0xFFFF0000; } xmpi-2.2.3b8/src/libxmpi/xmpi_sys.lam.cc0000444000076500007650000002753007722033603013614 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_sys.lam.cc,v 1.13 2003/08/23 13:48:01 jsquyres Exp $ * * Function: - xmpi -> MPI system interface * - LAM version */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "xmpi.h" #include "bhostparse.h" #include "xmpi_error.h" #include "xmpi_asc_parse.h" #include "xmpi_mpitr_com.h" #include "xmpi_trdrain.h" #include "xmpi_sys.h" #include "all_list.h" #include "all_opt.h" #include "app_mgmt.h" #include "app_schema.h" #include "args.h" #include "events.h" #include "freq.h" #include "kio.h" #include "laminternal.h" #include "ndi.h" #include "net.h" #include "portable.h" #include "priority.h" #include "preq.h" #include "terror.h" #include "typical.h" #include "sfh.h" /* * extern functions */ extern "C" { extern void lam_kexit(int); extern int _lam_few(char**); } /* * private functions */ int local_initialize(); static int set_stdio(); static void reset_stdio(); static void report_run_error(LIST*); static int get_mpi_world(int4, struct _gps *, struct _gps *); static void error_cleanup(void); /* * private variables */ static char version[] = "LAM-libxmpi 6.5.3"; /* * external variables */ extern struct kio_t _kio; /* kernel I/O block */ extern struct fclient _ufd[FUMAX]; /* user file desc. */ /* * xmpi_sys_init * * Function: - initializes the MPI implementation interface * Accepts: - command line info string * Returns: - 0 or -1 (error) */ int xmpi_sys_init() { return (0); } /* * xmpi_sys_finalize * * Function: - finalizes the MPI implementation interface */ void xmpi_sys_finalize() { lam_kexit(0); } /* * xmpi_sys_run * * Function: - runs the parsed application schema * Accepts: - application schema (list) * - application GPS array (returned) * - length of application GPS array (returned) * Returns: - 0 or -1 (error) */ int xmpi_sys_run(char *aschema, struct _gps **app_procs, int *app_nprocs) { int4 rtf = 0; /* runtime flags */ LIST *appd; /* parsed schema */ LIST *appd_sched; /* scheduled app schema */ struct _gps *world; /* world GPS array */ struct _gps *mpiworld; /* MPI world GPS array */ int world_n; /* size of world */ if (local_initialize()) return (-1); if (xmpi_asc_parse(aschema, &rtf, &appd) == 0) { xmpi_error(0, (char*) "Parsing application"); return (-1); } if ((appd_sched = asc_schedule(appd)) == 0) { asc_free(appd); xmpi_error(0, (char*) "Scheduling application"); return (-1); } asc_free(appd); /* * Get the process table, store it for XMPI and send it to MPI processes. */ world_n = al_count(appd_sched); mpiworld = (struct _gps *) malloc(world_n * sizeof(struct _gps)); world = (struct _gps *) malloc(world_n * sizeof(struct _gps)); if (world == 0 || mpiworld == 0) { asc_free(appd_sched); xmpi_error(0, (char*) "malloc"); return (-1); } if (set_stdio()) { asc_free(appd_sched); xmpi_error(0, (char*) "set_stdio"); return (-1); } if (asc_run(appd_sched, 0, rtf, 0, TRUE, world)) { reset_stdio(); report_run_error(appd_sched); asc_free(appd_sched); free(mpiworld); free(world); return (-1); } reset_stdio(); asc_free(appd_sched); /* * Read pids and indices from MPI processes. */ if (get_mpi_world(world_n, world, mpiworld)) { app_doom(world_n, mpiworld, SIGUDIE); app_doom(world_n, world, -15); error_cleanup(); xmpi_error(0, (char*) "get_mpi_world"); return (-1); } /* * Send process table to all processes. */ if (app_sendprocs(world_n, mpiworld)) { app_doom(world_n, mpiworld, SIGUDIE); app_doom(world_n, world, -15); error_cleanup(); xmpi_error(0, (char*) "app_sendprocs"); return (-1); } *app_nprocs = world_n; *app_procs = mpiworld; free(world); return (0); } /* * xmpi_sys_kill * * Function: - kills the running application * Accepts: - GPS array (unused) * - GPS array length (unused) * Returns: - 0 or -1 (error) */ int xmpi_sys_kill(struct _gps *, int) { char **av; /* cmd line args */ int ac; /* # cmd line args */ int r; /* result of lamclean */ av = 0; ac = 0; sfh_argv_add(&ac, &av, "lamclean"); r = _lam_few(av); sfh_argv_free(av); if (r < 0) { return (-1); } else if (r > 0) { errno = r; return (-1); } return (0); } /* * xmpi_sys_comm * * Function: - fetch MPI communicator trace specified by member * process and context ID * - space is allocated to hold the trace * Accepts: - process GPS * - context ID * Returns: - trace or 0 */ void * xmpi_sys_comm(struct _gps *proc, int cid) { void *trace; if (xmpi_mpitr_comget(proc->gps_node, proc->gps_pid, cid, (char **) &trace)) { return (0); } else { return (trace); } } /* * xmpi_sys_dtype * * Function: - fetch MPI datatype trace specified by creator * process and datatype label * - space is allocated to hold the trace * - null trace may be returned for basic datatypes * Accepts: - process GPS * - datatype label * Returns: - trace or -1 (error) */ void * xmpi_sys_dtype(struct _gps *proc, int dtype) { char *trace = 0; if (mpitr_dtypeget(proc->gps_node, proc->gps_pid, dtype, &trace)) { return ((void *) -1); } else { return (trace); } } /* * xmpi_sys_trace * * Function: - fetches communication traces from MPI implementation * Accepts: - open file handle * - GPS array * - GPS array length * Returns: - 0 or -1 (error) */ int xmpi_sys_trace(int fd, struct _gps *app_procs, int app_nprocs) { struct _gps *proc; /* first process in world */ /* * We already have the GPS array but go and get the world trace anyway * as a sanity check. */ proc = app_procs; if (lam_rtrfget(proc->gps_node, TRWORLD, proc->gps_pid, fd) <= 0) { return (-1); } if (xmpi_trdrain_mpi(fd, app_procs, app_nprocs, 1, XMPI_FLUSHDELAY)) { return (-1); } return (0); } /* * xmpi_sys_errorstr * * Function: - format system error message * Accepts: - error number * Returns: - pointer to static system error string * else 0 */ char * xmpi_sys_errorstr(int err) { static char errstring[256]; /* error string */ int errsave; /* save value of errno */ errstring[0] = 0; if (err == LAM_EEXIT) { strcpy(errstring, "LAM error"); } else { errsave = errno; errno = err; lam_errorstr(errstring, 255); errno = errsave; } return (errstring); } /* * xmpi_sys_version * * Function: - get library version * Returns: - library version string */ char * xmpi_sys_version() { return (version); } /* * xmpi_sys_logo * * Function: - get vendor specific logo * Returns: - XPM format vendor logo */ char ** xmpi_sys_logo() { return (0); } /* * initialize * * Function: - one time initialization * Returns: - 0 or -1 (error) */ int local_initialize() { char *cwd; /* current working directory */ static int first = 1; /* * Become a LAM process if not already one. */ if (first == 0) return 0; first = 0; if (kinit(PRCMD)) { if (errno == ENOKERNEL) { first = 1; xmpi_error(0, (char*) "Please boot LAM"); } else { xmpi_error(0, (char*) "Attaching to daemon"); } return (-1); } /* * Change local working directory. */ if ((cwd = getworkdir()) == 0) { first = 1; xmpi_error(0, (char*) "getworkdir"); return (-1); } if (lam_rfchdir(LOCAL, cwd)) { first = 1; xmpi_error(0, (char*) "lam_rfchdir"); free(cwd); return (-1); } free(cwd); /* * Set job identifier to be inherited by the applications. */ _kio.ki_jobid.jid_node = getnodeid(); _kio.ki_jobid.jid_pid = getpid(); return (0); } /* * set_stdio * * Function: - set up application stdio * Returns: - 0 or -1 (error) */ static int set_stdio() { #if (LAM_HAVE_BSD43_FD_PASSING || LAM_HAVE_BSD44_FD_PASSING || LAM_HAVE_SYSV_FD_PASSING) char server[LAM_PATH_MAX]; /* fd server socket name */ /* * Pass stdin, stdout and stderr to filed. */ if (lam_mktmpid((int) getpid(), server, sizeof(server))) { return (-1); } if (lam_lfopenfd(server)) { return (-1); } /* * Set LAM file descriptors to the passed file descriptors. The call to * lam_lfopenfd() takes care of the case when stdin is a tty. */ _kio.ki_stdin = _ufd[0].fu_tfd; _kio.ki_stdout = _ufd[1].fu_tfd; _kio.ki_stderr = _ufd[2].fu_tfd; #endif return (0); } /* * reset_stdio * * Function: - reset stdio so rfatexit will clean it up * Returns: - 0 or -1 (error) */ static void reset_stdio() { _kio.ki_stdin = 0; _kio.ki_stdout = 1; _kio.ki_stderr = 2; } /* * report_run_error * * Function: - nice error message when application startup fails * Accepts: - application descriptor */ static void report_run_error(LIST *appd) { int i; struct aschema *pp; /* ptr process entry */ char buf[512]; errno = 0; pp = (struct aschema *) al_top(appd); for (i = 0; pp; ++i, pp = (struct aschema *) al_next(appd, pp)) { if (pp->asc_errno) { errno = pp->asc_errno; break; } } if (errno == ENOENT) { sprintf(buf, "Cannot start \"%s\"", pp->asc_args->apa_argv[0]); xmpi_error(0, buf); } else { xmpi_error(0, (char*) "Starting application"); } } /* * get_mpi_world * * Function: - get MPI world * Accepts: - size of world * - initial process world * - MPI process world (out) * Returns: - 0 or LAMERROR */ static int get_mpi_world(int4 world_n, struct _gps * world, struct _gps * mpiworld) { struct nmsg msg; int i; int j; memcpy(mpiworld, world, world_n * sizeof(struct _gps)); for (i = 0; i < world_n; i++) { mpiworld[i].gps_pid = 0; } LAM_ZERO_ME(msg); msg.nh_event = -getpid() & 0xBFFFFFFF; msg.nh_length = 0; msg.nh_flags = DINT4DATA; for (i = 0; i < world_n; i++) { msg.nh_type = 3; if (nrecv(&msg)) { return (LAMERROR); } if (msg.nh_type == 1) { return (LAMERROR); } /* * Set the MPI process pid and index. */ j = msg.nh_data[0]; if (j < 0 || j >= world_n) { errno = EIMPOSSIBLE; return (LAMERROR); } mpiworld[j].gps_pid = msg.nh_data[1]; mpiworld[j].gps_idx = msg.nh_data[2]; } return (0); } /* * error_cleanup * * Function: - try to clean up init and wait messages * - this is not foolproof but better than nothing */ static void error_cleanup(void) { struct nmsg msg; /* * Wait a little while. */ sleep(1); LAM_ZERO_ME(msg); msg.nh_event = (-getpid()) & 0xBFFFFFFF; msg.nh_length = 0; msg.nh_flags = DINT4DATA; /* * Loop trying to receive init messages and wait messages. */ while (1) { msg.nh_type = 3; if (ntry_recv(&msg)) break; } } #ifdef HPUX /* * These functions implement the "build and run" and "option setting" * dialogs when XMPI is built for running on a HP machine and uses the * LAM libxmpi. They are to be removed once the HP "bypass" becomes * unnecessary. */ void xmpi_hp_run_dialog(Widget parent) { xmpi_run_dialog(parent); } void xmpi_hp_options_set(Widget parent) { xmpi_options_set(parent); } #endif /* HPUX */ xmpi-2.2.3b8/src/xmpi/0000777000076500007650000000000007725267016010264 5xmpi-2.2.3b8/src/xmpi/Makefile.am0000664000076500007650000000437607725267004012245 # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.8 2003/09/03 04:28:52 jsquyres Exp $ # include $(top_srcdir)/config/Makefile.options bin_PROGRAMS = xmpi xmpi_SOURCES = \ xmpi_config.h \ lamtr_util.cc \ xmpi.cc \ xmpi_about.cc \ xmpi_aschema.cc \ xmpi_browse.cc \ xmpi_copies.cc \ xmpi_ctl.cc \ xmpi_dbase.cc \ xmpi_db_int.cc \ xmpi_db_parse.cc \ xmpi_dtprint.cc \ xmpi_dtype.cc \ xmpi_error.cc \ xmpi_focus.cc \ xmpi_help.cc \ xmpi_kiviat.cc \ xmpi_matrix.cc \ xmpi_misc.cc \ xmpi_nodes.cc \ xmpi_pophelp.cc \ xmpi_run.cc \ xmpi_trace.cc \ xmpi_tr_dump.cc \ xmpi_tr_file.cc \ xmpi_tr_segment.cc \ xmpi_view.cc \ xmpi_vendor.cc \ xpm.cc \ xmpi_all_list.h \ app_mgmt.h \ args.h \ lam.h \ lamtr_util.h \ lamtrace.h \ mpitrace.h \ xmpi.h \ xmpi_about.h \ xmpi_aschema.h \ xmpi_browse.h \ xmpi_copies.h \ xmpi_ctl.h \ xmpi_config.h \ xmpi_dbase.h \ xmpi_db_int.h \ xmpi_db_parse.h \ xmpi_dtprint.h \ xmpi_dtype.h \ xmpi_error.h \ xmpi_focus.h \ xmpi_getline.h \ xmpi_help.h \ xmpi_kiviat.h \ xmpi_matrix.h \ xmpi_misc.h \ xmpi_nodes.h \ xmpi_pophelp.h \ xmpi_run.h \ xmpi_sys.h \ xmpi_tr_dump.h \ xmpi_tr_file.h \ xmpi_tr_segment.h \ xmpi_trace.h \ xmpi_view.h \ xmpi_vendor.h \ xpm.h AM_CPPFLAGS = -I$(top_srcdir)/src $(X_CXXFLAGS) # We need to do things a little differently if we are not using LAM, # as the libxmpi must already be around somewhere.... if WANT_LAM_XMPI libxmpi = $(top_builddir)/src/libxmpi/libxmpi.la libxmpi_depend = $(libxmpi) else libxmpi = -lxmpi libxmpi_depend = endif xmpi_LDADD = $(libxmpi) $(X_LIBS) $(X_PRE_LIBS) -lXm -lXt -lX11 $(X_EXTRA_LIBS) -lm xmpi_DEPENDENCIES = $(libxmpi_depend) xmpi-2.2.3b8/src/xmpi/Makefile.in0000664000076500007650000005150207725267015012251 # Makefile.in generated by automake 1.7.6 from Makefile.am. # @configure_input@ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.8 2003/09/03 04:28:52 jsquyres Exp $ # # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.options,v 1.1 2003/08/23 13:32:15 jsquyres Exp $ # srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_triplet = @host@ ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLEANFILES = @CLEANFILES@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBXMPI = @LIBXMPI@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ RM = @RM@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHELL_CMD = @SHELL_CMD@ STRIP = @STRIP@ VERSION = @VERSION@ WANT_LAM_XMPI_FALSE = @WANT_LAM_XMPI_FALSE@ WANT_LAM_XMPI_TRUE = @WANT_LAM_XMPI_TRUE@ XMPI_VERSION = @XMPI_VERSION@ X_CFLAGS = @X_CFLAGS@ X_CXXFLAGS = @X_CXXFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign dist-bzip2 bin_PROGRAMS = xmpi xmpi_SOURCES = \ xmpi_config.h \ lamtr_util.cc \ xmpi.cc \ xmpi_about.cc \ xmpi_aschema.cc \ xmpi_browse.cc \ xmpi_copies.cc \ xmpi_ctl.cc \ xmpi_dbase.cc \ xmpi_db_int.cc \ xmpi_db_parse.cc \ xmpi_dtprint.cc \ xmpi_dtype.cc \ xmpi_error.cc \ xmpi_focus.cc \ xmpi_help.cc \ xmpi_kiviat.cc \ xmpi_matrix.cc \ xmpi_misc.cc \ xmpi_nodes.cc \ xmpi_pophelp.cc \ xmpi_run.cc \ xmpi_trace.cc \ xmpi_tr_dump.cc \ xmpi_tr_file.cc \ xmpi_tr_segment.cc \ xmpi_view.cc \ xmpi_vendor.cc \ xpm.cc \ xmpi_all_list.h \ app_mgmt.h \ args.h \ lam.h \ lamtr_util.h \ lamtrace.h \ mpitrace.h \ xmpi.h \ xmpi_about.h \ xmpi_aschema.h \ xmpi_browse.h \ xmpi_copies.h \ xmpi_ctl.h \ xmpi_config.h \ xmpi_dbase.h \ xmpi_db_int.h \ xmpi_db_parse.h \ xmpi_dtprint.h \ xmpi_dtype.h \ xmpi_error.h \ xmpi_focus.h \ xmpi_getline.h \ xmpi_help.h \ xmpi_kiviat.h \ xmpi_matrix.h \ xmpi_misc.h \ xmpi_nodes.h \ xmpi_pophelp.h \ xmpi_run.h \ xmpi_sys.h \ xmpi_tr_dump.h \ xmpi_tr_file.h \ xmpi_tr_segment.h \ xmpi_trace.h \ xmpi_view.h \ xmpi_vendor.h \ xpm.h AM_CPPFLAGS = -I$(top_srcdir)/src $(X_CXXFLAGS) @WANT_LAM_XMPI_FALSE@libxmpi = -lxmpi # We need to do things a little differently if we are not using LAM, # as the libxmpi must already be around somewhere.... @WANT_LAM_XMPI_TRUE@libxmpi = $(top_builddir)/src/libxmpi/libxmpi.la @WANT_LAM_XMPI_FALSE@libxmpi_depend = @WANT_LAM_XMPI_TRUE@libxmpi_depend = $(libxmpi) xmpi_LDADD = $(libxmpi) $(X_LIBS) $(X_PRE_LIBS) -lXm -lXt -lX11 $(X_EXTRA_LIBS) -lm xmpi_DEPENDENCIES = $(libxmpi_depend) subdir = src/xmpi ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = xmpi_config.h CONFIG_CLEAN_FILES = bin_PROGRAMS = xmpi$(EXEEXT) PROGRAMS = $(bin_PROGRAMS) am_xmpi_OBJECTS = lamtr_util.$(OBJEXT) xmpi.$(OBJEXT) \ xmpi_about.$(OBJEXT) xmpi_aschema.$(OBJEXT) \ xmpi_browse.$(OBJEXT) xmpi_copies.$(OBJEXT) xmpi_ctl.$(OBJEXT) \ xmpi_dbase.$(OBJEXT) xmpi_db_int.$(OBJEXT) \ xmpi_db_parse.$(OBJEXT) xmpi_dtprint.$(OBJEXT) \ xmpi_dtype.$(OBJEXT) xmpi_error.$(OBJEXT) xmpi_focus.$(OBJEXT) \ xmpi_help.$(OBJEXT) xmpi_kiviat.$(OBJEXT) xmpi_matrix.$(OBJEXT) \ xmpi_misc.$(OBJEXT) xmpi_nodes.$(OBJEXT) xmpi_pophelp.$(OBJEXT) \ xmpi_run.$(OBJEXT) xmpi_trace.$(OBJEXT) xmpi_tr_dump.$(OBJEXT) \ xmpi_tr_file.$(OBJEXT) xmpi_tr_segment.$(OBJEXT) \ xmpi_view.$(OBJEXT) xmpi_vendor.$(OBJEXT) xpm.$(OBJEXT) xmpi_OBJECTS = $(am_xmpi_OBJECTS) xmpi_LDFLAGS = DEFAULT_INCLUDES = -I. -I$(srcdir) -I. depcomp = $(SHELL) $(top_srcdir)/config/depcomp am__depfiles_maybe = depfiles @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/lamtr_util.Po ./$(DEPDIR)/xmpi.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_about.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_aschema.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_browse.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_copies.Po ./$(DEPDIR)/xmpi_ctl.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_db_int.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_db_parse.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_dbase.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_dtprint.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_dtype.Po ./$(DEPDIR)/xmpi_error.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_focus.Po ./$(DEPDIR)/xmpi_help.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_kiviat.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_matrix.Po ./$(DEPDIR)/xmpi_misc.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_nodes.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_pophelp.Po ./$(DEPDIR)/xmpi_run.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_tr_dump.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_tr_file.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_tr_segment.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_trace.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xmpi_vendor.Po ./$(DEPDIR)/xmpi_view.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/xpm.Po CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ DIST_SOURCES = $(xmpi_SOURCES) DIST_COMMON = $(top_srcdir)/config/Makefile.options Makefile.am \ Makefile.in xmpi_config.h.in SOURCES = $(xmpi_SOURCES) all: xmpi_config.h $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/config/Makefile.options $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/xmpi/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) xmpi_config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/xmpi_config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status src/xmpi/xmpi_config.h $(srcdir)/xmpi_config.h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOHEADER) touch $(srcdir)/xmpi_config.h.in distclean-hdr: -rm -f xmpi_config.h stamp-h1 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ rm -f $(DESTDIR)$(bindir)/$$f; \ done clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done xmpi$(EXEEXT): $(xmpi_OBJECTS) $(xmpi_DEPENDENCIES) @rm -f xmpi$(EXEEXT) $(CXXLINK) $(xmpi_LDFLAGS) $(xmpi_OBJECTS) $(xmpi_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) core *.core distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lamtr_util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_about.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_aschema.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_browse.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_copies.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_ctl.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_db_int.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_db_parse.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_dbase.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_dtprint.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_dtype.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_error.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_focus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_help.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_kiviat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_matrix.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_misc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_nodes.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_pophelp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_run.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_tr_dump.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_tr_file.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_tr_segment.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_trace.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_vendor.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmpi_view.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xpm.Po@am__quote@ distclean-depend: -rm -rf ./$(DEPDIR) .cc.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ @am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCXX_TRUE@ fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< .cc.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCXX_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ @am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCXX_TRUE@ fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` .cc.lo: @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ @am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCXX_TRUE@ fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ETAGS = etags ETAGSFLAGS = CTAGS = ctags CTAGSFLAGS = tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique TAGS: $(HEADERS) $(SOURCES) xmpi_config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) xmpi_config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$tags$$unique" \ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) xmpi_config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) xmpi_config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = ../.. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) $(mkinstalldirs) $(distdir)/../../config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) xmpi_config.h installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am distclean-am: clean-am distclean-compile distclean-depend \ distclean-generic distclean-hdr distclean-libtool \ distclean-tags dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-depend distclean-generic distclean-hdr \ distclean-libtool distclean-tags distdir dvi dvi-am info \ info-am install install-am install-binPROGRAMS install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-binPROGRAMS \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xmpi-2.2.3b8/src/xmpi/xmpi_config.h.in0000664000076500007650000000570007725260227013261 /* src/xmpi/xmpi_config.h.in. Generated from configure.in by autoheader. */ /* -*- c -*- * * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * Function: - OS, CPU and compiler dependent configuration */ #ifndef XMPI_CONFIG_H #define XMPI_CONFIG_H /* Define to 1 if you have the `atexit' function. */ #undef HAVE_ATEXIT /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* What symbolic constant to use for HOST2COMP* */ #undef LAM_HOST2COMP /* Whether we need or not */ #undef NEED_SYS_SELECT /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* The size of a `double', as computed by sizeof. */ #undef SIZEOF_DOUBLE /* The size of a `float', as computed by sizeof. */ #undef SIZEOF_FLOAT /* The size of a `int', as computed by sizeof. */ #undef SIZEOF_INT /* The size of a `long', as computed by sizeof. */ #undef SIZEOF_LONG /* The size of a `short', as computed by sizeof. */ #undef SIZEOF_SHORT /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ #undef WORDS_BIGENDIAN /* Architecture */ #undef XMPI_ARCH /* Version of XMPI */ #undef XMPI_VERSION /* Define to 1 if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING #endif /* XMPI_CONFIG_H */ xmpi-2.2.3b8/src/xmpi/xmpi_config.h0000664000076500007650000000617107725260334012656 /* src/xmpi/xmpi_config.h. Generated by configure. */ /* src/xmpi/xmpi_config.h.in. Generated from configure.in by autoheader. */ /* -*- c -*- * * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * Function: - OS, CPU and compiler dependent configuration */ #ifndef XMPI_CONFIG_H #define XMPI_CONFIG_H /* Define to 1 if you have the `atexit' function. */ #define HAVE_ATEXIT 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you have the `getcwd' function. */ #define HAVE_GETCWD 1 /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* What symbolic constant to use for HOST2COMP* */ #define LAM_HOST2COMP HOST2COMPNODE /* Whether we need or not */ #define NEED_SYS_SELECT 0 /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "" /* Define to the full name of this package. */ #define PACKAGE_NAME "" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "" /* Define to the version of this package. */ #define PACKAGE_VERSION "" /* The size of a `double', as computed by sizeof. */ #define SIZEOF_DOUBLE 8 /* The size of a `float', as computed by sizeof. */ #define SIZEOF_FLOAT 4 /* The size of a `int', as computed by sizeof. */ #define SIZEOF_INT 4 /* The size of a `long', as computed by sizeof. */ #define SIZEOF_LONG 4 /* The size of a `short', as computed by sizeof. */ #define SIZEOF_SHORT 2 /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ /* #undef WORDS_BIGENDIAN */ /* Architecture */ #define XMPI_ARCH "i686-pc-linux-gnu" /* Version of XMPI */ #define XMPI_VERSION "2.2.3b8" /* Define to 1 if the X Window System is missing or not being used. */ /* #undef X_DISPLAY_MISSING */ #endif /* XMPI_CONFIG_H */ xmpi-2.2.3b8/src/xmpi/lamtr_util.cc0000664000076500007650000001677607725267005012704 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: lamtr_util.cc,v 1.2 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - trace parsing utilities */ #include #include #include #include #include "app_mgmt.h" #include "lam.h" #include "lamtrace.h" #include "mpitrace.h" #include "lamtr_util.h" /* * local variables */ static FILE *trace_stream = 0; /* * lamtr_set_stream * * Function: - set trace input stream * Accepts: - open stream */ void lamtr_set_stream(FILE *traces) { if (trace_stream) { fclose(trace_stream); } trace_stream = traces; } /* * lamtr_open_file * * Function: - open a trace file * Accepts: - file name * Returns: - 0 or LAMERROR */ int lamtr_open_file(char *tracefile) { FILE *traces; if ((traces = fopen(tracefile, "r")) == 0) { return (LAMERROR); } lamtr_set_stream(traces); return (0); } /* * lamtr_read * * Function: - read from the trace stream * Accepts: - buffer to put data read * - size of an element * - number of elements to read * Returns: - 0 for success, 1 on eof, else -1 */ int lamtr_read(void *ptr, size_t size, size_t count) { size_t nread; /* number of elements read */ if (trace_stream == 0) { return (-1); } nread = fread((char *) ptr, size, count, trace_stream); if (nread == 0 && ferror(trace_stream)) { return (LAMERROR); } else if (nread != count) { return (1); } else { return (0); } } /* * lamtr_parse_world * * Function: - parse world trace * - storage is allocated to hold the GPS array * - values are returned in local byte order * Accepts: - size of world (out) * - world GPS array (out) * Returns: - 0 or LAMERROR */ int lamtr_parse_world(int4 *np, struct _gps **world) { int magic; /* magic number */ /* * Check the magic number. */ if (lamtr_read(&magic, sizeof(int4), 1)) { return (LAMERROR); } ttoli4((int4 *) & magic, (int4 *) & magic); if (magic != LAM_TRMAGIC) { errno = EMAGIC; return (LAMERROR); } /* * Get the size of the world. */ if (lamtr_read(np, sizeof(int4), 1)) { return (LAMERROR); } ttoli4(np, np); if (*np <= 0) { errno = EINVAL; return (LAMERROR); } /* * Allocate and read in GPS array. */ *world = (struct _gps *) malloc((*np) * sizeof(struct _gps)); if (*world == 0) return (LAMERROR); if (lamtr_read(*world, sizeof(struct _gps), (size_t) * np)) { return (LAMERROR); } mttoli4((int4 *) * world, (*np) * sizeof(struct _gps) / sizeof(int4)); return (0); } /* * lamtr_raw_world * * Function: - get raw world trace * - storage is allocated to hold the GPS array * - values are returned in LAM byte order * Accepts: - size of world (out) * - world GPS array (out) * Returns: - 0 or LAMERROR */ int lamtr_raw_world(int4 *np, char **world) { int4 n; /* size of world */ if (lamtr_read(np, sizeof(int4), 1)) { return (LAMERROR); } ttoli4(np, &n); *world = (char *) malloc(n * sizeof(struct _gps)); if (*world == 0) return (LAMERROR); if (lamtr_read(*world, sizeof(struct _gps), (size_t) n)) { return (LAMERROR); } return (0); } /* * lamtr_parse_comm * * Function: - parse a communicator trace * - storage is allocated to hold the GPS array * Accepts: - context ID (out) * - size local group (out) * - size remote group (out) * - groups GPS array (out) * Returns: - 0 or LAMERROR */ int lamtr_parse_comm(int4 *cid, int4 *nlocal, int4 *nremote, struct _gps **grps) { struct trcid cid_hdr; /* cid trace head */ size_t nbytes; /* size of GPS array */ /* * Read the trace head. */ if (lamtr_read(&cid_hdr, sizeof(struct trcid), 1)) { return (LAMERROR); } mttoli4((int4 *) & cid_hdr, sizeof(struct trcid) / sizeof(int4)); /* * Extract communicator id and group sizes. */ *cid = cid_hdr.trc_cid; *nlocal = cid_hdr.trc_nlg; *nremote = cid_hdr.trc_nrg; nbytes = (*nlocal + *nremote) * sizeof(struct _gps); /* * Allocate the group GPS array and read it in. */ if ((*grps = (struct _gps *) malloc(nbytes)) == 0) { return (LAMERROR); } if (lamtr_read(*grps, nbytes, 1)) { free(*grps); return (LAMERROR); } mttoli4(*grps, nbytes / sizeof(int4)); return (0); } /* * lamtr_raw_comm * * Function: - get raw communicator trace * - storage is allocated for the groups GPS array * - values are unconverted * Accepts: - communicator trace header (out) * - groups GPS array (out) * Returns: - 0 or LAMERROR */ int lamtr_raw_comm(char *cid, struct _gps **grps) { size_t nbytes; /* size of GPS array */ int4 nlocal; /* local group size */ int4 nremote; /* remote group size */ /* * Read the communicator trace header. */ if (lamtr_raw_cid_m(*cid)) { return (LAMERROR); } /* * Extract the group sizes. */ ttoli4(&((struct trcid *) cid)->trc_nlg, &nlocal); ttoli4(&((struct trcid *) cid)->trc_nrg, &nremote); nbytes = (nlocal + nremote) * sizeof(struct _gps); /* * Allocate the group GPS array and read it in. */ if ((*grps = (struct _gps *) malloc((size_t) nbytes)) == 0) { return (LAMERROR); } if (lamtr_read(*grps, nbytes, 1)) { free(*grps); return (LAMERROR); } return (0); } /* * lamtr_raw_dtype * * Function: - get raw datatype trace * - values are unconverted * - storage is allocated for the trace * Accepts: - raw datatype trace (out) * Returns: - 0 or LAMERROR */ int lamtr_raw_dtype(char **dtype) { struct trdtype dttr; /* datatype trace head */ int4 len; /* trace length */ /* * Read the trace head. */ if (lamtr_read(&dttr, sizeof(struct trdtype), 1)) { return (LAMERROR); } ttoli4(&dttr.trd_length, &len); /* * Allocate the datatype buffer (flattened type map) and read it in. */ if ((*dtype = (char *) malloc((size_t) len)) == 0) { return (LAMERROR); } if (lamtr_read((*dtype) + sizeof(struct trdtype), len - sizeof(struct trdtype), 1)) { free(*dtype); return (LAMERROR); } memcpy(*dtype, (char *) &dttr, sizeof(struct trdtype)); return (0); } /* * lamtr_parse_dtype * * Function: - parse a datatype trace * - values are returned in local byte order * - storage is allocated for the trace * Accepts: - datatype label (out) * - datatype trace (out) * Returns: - 0 or LAMERROR */ int lamtr_parse_dtype(int4 *dtype, char **dtbuf) { int len; /* trace length */ if (lamtr_raw_dtype(dtbuf)) { return (LAMERROR); } ttoli4(&((struct trdtype *) * dtbuf)->trd_length, &len); mttoli4((int4 *) * dtbuf, len / sizeof(int4)); len = len; *dtype = ((struct trdtype *) * dtbuf)->trd_dtype; return (0); } /* * lamtr_find_rank * * Function: - finds global rank corresponding to node and pid * Accepts: - size of world * - world GPS array * - node * - pid * Returns: - global rank corresponding to node and pid, else (-1) */ int lamtr_find_rank(int np, struct _gps *world, int node, int pid) { int i; for (i = 0; i < np; i++, world++) { if (world->gps_node == node && world->gps_pid == pid) { return (i); } } return (-1); } xmpi-2.2.3b8/src/xmpi/xmpi.cc0000664000076500007650000002514207725267005011470 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi.cc,v 1.7 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - MPI GUI * - Motif */ #include #include #include #include #include #include #include #include "xmpi.h" #include "xmpi_run.h" #include "xmpi_ctl.h" #include "xmpi_trace.h" #include "xmpi_dtype.h" #include "xmpi_misc.h" #include "xmpi_view.h" #include "xmpi_tr_dump.h" #include "xmpi_aschema.h" #include "xmpi_focus.h" #include "xmpi_kiviat.h" #include "xmpi_vendor.h" /* * external functions */ extern void _XEditResCheckMessages(); extern char *_path_find(); /* * local functions */ static void help(); /* * global variables */ XtAppContext app; /* application context */ AppData app_res; /* application resources */ Widget xmpi_shell; /* toplevel shell */ char xmpi_info[XMPI_PATHMAX]; /* information string */ /* * local variables */ static Widget xmpitop; /* toplevel manager */ static int hinitmin = -1; /* ini. drawable min height */ static int winitmin = -1; /* init. drawable min width */ static int hinitmax = -1; /* init. drawable max height */ static int winitmax = -1; /* init. drawable max width */ static int hsetup = -1; /* height setup overhead */ static int wsetup = -1; /* width setup overhead */ static XrmOptionDescRec cmdoptions[] = { {(char*) "-h", (char*) "*help", XrmoptionNoArg, (XPointer) "TRUE"} }; static XtResource resources[] = { { (char*) XtNhelp, (char*) XtCHelp, XmRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, ap_help), XmRImmediate, (caddr_t) False }, { (char*) XtNrankFont, (char*) XtCRankFont, XmRFontStruct, sizeof(XFontStruct *), XtOffset(AppDataPtr, ap_rankfont), XmRString, (void*) XMPI_RANKFONT }, { (char*) XtNrankFont, (char*) XtCRankFont, XmRFontStruct, sizeof(XFontStruct *), XtOffset(AppDataPtr, ap_rankfont), XmRString, (void*) XMPI_RANKFONT }, { (char*) XtNmsgFont, (char*) XtCMsgFont, XmRFontStruct, sizeof(XFontStruct *), XtOffset(AppDataPtr, ap_msgfont), XmRString, (void*) XMPI_MSGFONT }, { (char*) XtNlcomCol, (char*) XtCLcomCol, XtRPixel, sizeof(Pixel), XtOffset(AppDataPtr, ap_lcomcol), XmRString, (void*) XMPI_LCOMCOLOUR }, { (char*) XtNrcomCol, (char*) XtCRcomCol, XtRPixel, sizeof(Pixel), XtOffset(AppDataPtr, ap_rcomcol), XmRString, (void*) XMPI_RCOMCOLOUR }, { (char*) XtNbandCol, (char*) XtCBandCol, XtRPixel, sizeof(Pixel), XtOffset(AppDataPtr, ap_bandcol), XmRString, (void*) XMPI_BANDCOLOUR }, { (char*) XtNbandDash, (char*) XtCBandDash, XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, ap_banddash), XmRImmediate, (caddr_t) XMPI_BANDDASH }, { (char*) XtNbandWidth, (char*) XtCBandWidth, XtRInt, sizeof(int), XtOffset(AppDataPtr, ap_bandwidth), XmRImmediate, (caddr_t) XMPI_BANDWIDTH }, { (char*) XtNhelpCmd, (char*) XtCHelpCmd, XtRString, sizeof(String), XtOffset(AppDataPtr, ap_helpcmd), XmRString, (void*) XMPI_HELPCMD }, { (char*) XtNinfoLabel, (char*) XtCInfoLabel, XtRString, sizeof(String), XtOffset(AppDataPtr, ap_infolbl), XmRString, (void*) XMPI_INFOLABEL }, }; static XtActionsRec actions[] = { { (char*) "xmpi_run_delete", (XtActionProc) xmpi_run_delete } }; /* * fallback resources */ const _XtString fallbacks[] = { "*Title: XMPI", "*IconName: XMPI", "*multiClickTime: 500", "*background: gray", "*fontList: -*-helvetica-bold-r-normal--*-120-*-*-*-*-*-*", "*fo_func.fontList: -*-helvetica-bold-o-normal--*-120-*-*-*-*-*-*", "*dt_dtype.fontList: -*-helvetica-medium-r-normal--*-100-*-*-*-*-*-*", "*ctl_bar.topShadowColor: lightslateblue", "*ctl_bar.bottomShadowColor: darkslateblue", "*ctl_bar.background: slateblue", "*ctl_bar.foreground: white", "*banner.background: slateblue", "*banner.foreground: white", "*trace_banner.background: white", "*trace_banner.foreground: slateblue", "*app_list.visibleItemCount: 8", "*aschema_list.visibleItemCount: 20", "*aschema_text.columns: 24", "*prog_mgr*columns: 16", "*label_frame.XmLabel.background: #D3B5B5", "*XmToggleButtonGadget.selectColor: red", "*XmToggleButton.selectColor: red", "*trace_selector.dirMask: *.lamtr", "*popup_help.background: white", "*popup_help.foreground: black", /* * Workaround for problem with HP-VUE. */ #ifdef HPUX "*view_draw.background: gray", "*view_draw.foreground: black", "*trace_draw.background: gray", "*trace_draw.foreground: black", "*kiviat_draw.background: gray", "*kiviat_draw.foreground: black", "*matrix_draw.background: gray", "*matrix_draw.foreground: black", #endif NULL }; /* * main */ int main(int argc, char *argv[]) { Widget w1, w2; char *info = 0; int i; xmpi_shell = XtVaAppInitialize(&app, strdup("XMPI"), cmdoptions, XtNumber(cmdoptions), &argc, argv, (String*) fallbacks, NULL); /* * Enabling this lets "editres" work with XMPI. Might have to link with * -lXmu as well. */ #ifdef DEBUG XtAddEventHandler(xmpi_shell, (EventMask) 0, True, _XEditResCheckMessages, NULL); #endif /* * Read in and check resources. */ XtGetApplicationResources(xmpi_shell, &app_res, resources, XtNumber(resources), NULL, 0); if (app_res.ap_help) { help(); exit(0); } if (app_res.ap_bandwidth < 0) { app_res.ap_bandwidth = XMPI_BANDWIDTH; } /* * Look for information string. */ for (i = 1; i < argc; ++i) { if ((*argv[i] == '-') || (info)) { fprintf(stderr, "xmpi (usage): xmpi [-h] []\n"); exit(EUSAGE); } else { info = argv[i]; } } if (info) { strncpy(xmpi_info, info, XMPI_PATHMAX); } else { xmpi_info[0] = 0; } XtAppAddActions(app, actions, XtNumber(actions)); xmpitop = XtVaCreateWidget("top_mgr", xmFormWidgetClass, xmpi_shell, XmNmarginHeight, 2, XmNmarginWidth, 2, NULL); /* * Create main application view. */ w1 = xmpi_ctl_build(xmpitop); XtVaSetValues(w1, XmNtopAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); w2 = xmpi_vw_create(xmpitop); XtVaSetValues(w2, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, w1, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); XtManageChild(xmpitop); XSetIOErrorHandler((XIOErrorHandler) xmpi_bail); xmpi_atexit(xmpi_cleanup); XtRealizeWidget(xmpi_shell); if (xmpi_sys_init()) { perror("xmpi: system specific initialization"); exit(errno); } xmpi_setminmax(winitmin, hinitmin, winitmax, hinitmax); XtAppMainLoop(app); return (0); } /* * xmpi_cleanup * * Function: - calls cleanup routines from all modules */ void xmpi_cleanup() { xmpi_run_cleanup(); xmpi_vendor_cleanup(); xmpi_tr_cleanup(); xmpi_sys_finalize(); } /* * xmpi_bail * * Function: - exits gracefully with 0 status */ void xmpi_bail() { xmpi_cleanup(); _exit(0); } /* * xmpi_busy * * Function: - make all windows in XMPI app. have busy cursors */ void xmpi_busy() { xmpi_busy_widget(xmpi_shell); xmpi_aschema_busy(); xmpi_run_busy(); xmpi_fo_busy(); xmpi_kv_busy(); xmpi_dt_busy(); xmpi_tr_busy(); } /* * xmpi_unbusy * * Function: - make all windows in XMPI app. have normal cursors */ void xmpi_unbusy() { xmpi_unbusy_widget(xmpi_shell); xmpi_aschema_unbusy(); xmpi_run_unbusy(); xmpi_fo_unbusy(); xmpi_kv_unbusy(); xmpi_dt_unbusy(); xmpi_tr_unbusy(); } /* * help * * Function: - prints helpful information on this command */ static void help() { printf("\nSynopsis:\txmpi [] []\n"); printf("\nDescription:\tRun and monitor MPI programs.\n"); printf("\nOptions: -h\tPrint this help message.\n"); } /* * xmpi_wmshell * * Function: - returns the first WMShell ancestor * Accepts: - widget * Returns: - window manager shell */ Widget xmpi_wmshell(Widget w) { while ((w) && (!XtIsWMShell(w))) { w = XtParent(w); } return (w); } /* * xmpi_setminmax * * Function: - set min/max toplevel shell size * Accepts: - min width * - min height * - max width * - max height */ void xmpi_setminmax(int wmin, int hmin, int wmax, int hmax) { Dimension height; Dimension width; /* * The first time around, just store the drawable sizes. */ if (winitmin < 0) { winitmin = wmin; hinitmin = hmin; winitmax = wmax; hinitmax = hmax; } else { /* * The second time around, compute the width/height window overhead. */ if (wsetup < 0) { XtVaGetValues(xmpi_shell, XmNwidth, &width, XmNheight, &height, NULL); wsetup = width - wmax; hsetup = height - hmax; } /* * Set the size boundaries. */ XtVaSetValues(xmpi_shell, XmNminWidth, wsetup + wmin, XmNminHeight, hsetup + hmin, XmNmaxWidth, wsetup + wmax, XmNmaxHeight, hsetup + hmax, NULL); } } /* * xmpi_setsize * * Function: - set toplevel shell size * Accepts: - width * - height */ void xmpi_setsize(int width, int height) { XResizeWindow(XtDisplay(xmpi_shell), XtWindow(xmpi_shell), (unsigned) wsetup + width, (unsigned) hsetup + height); } /* * xmpi_seticon * * Function: - set the tool icon * Accepts: - icon pixmap */ void xmpi_seticon(Pixmap iconpix) { Window win; Window root; Display *disp; int x, y; unsigned int width, height, bwidth, depth; disp = XtDisplay(xmpi_shell); XtVaGetValues(xmpi_shell, XmNiconWindow, &win, NULL); if (!win) { if (!XGetGeometry(disp, iconpix, &root, &x, &y, &width, &height, &bwidth, &depth) || !(win = XCreateSimpleWindow(disp, root, 0, 0, width, height, (unsigned int) 0, CopyFromParent, CopyFromParent))) { XtVaSetValues(xmpi_shell, XmNiconPixmap, iconpix, NULL); return; } XtVaSetValues(xmpi_shell, XmNiconWindow, win, NULL); } XSetWindowBackgroundPixmap(disp, win, iconpix); XClearWindow(disp, win); } xmpi-2.2.3b8/src/xmpi/xmpi_about.cc0000664000076500007650000000375507725267005012670 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_about.cc,v 1.3 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - about XMPI */ #include #include "xmpi.h" #include "xmpi_about.h" /* * private functions */ static void ok_cb(Widget); /* * external functions */ extern Widget xmpi_wmshell(); /* * private data */ static char copyright[] = "\nCopyright (C) 1999, University of Notre Dame\n"; static char promotion[] = "\nFor more information see "; /* * xmpi_about * * Function: - display about XMPI information * Accepts: - parent widget */ void xmpi_about(Widget parent) { Widget dialog; XmString xstr; char buf[1024]; char *version; strcpy(buf, "Version: XMPI " XMPI_VERSION); version = xmpi_sys_version(); if (version) { strcat(buf, " / "); strcat(buf, version); } strcat(buf, "\n"); strcat(buf, copyright); strcat(buf, promotion); dialog = XmCreateInformationDialog(parent, (char*) "message", NULL, 0); XtUnmanageChild(XmMessageBoxGetChild(dialog, XmDIALOG_CANCEL_BUTTON)); XtUnmanageChild(XmMessageBoxGetChild(dialog, XmDIALOG_HELP_BUTTON)); xstr = XmStringCreateLtoR(buf, XmSTRING_DEFAULT_CHARSET); XtVaSetValues(dialog, XmNmessageString, xstr, NULL); XmStringFree(xstr); XtAddCallback(dialog, XmNokCallback, (XtCallbackProc) ok_cb, NULL); XtManageChild(dialog); } /* * ok_cb * * Function: - about dialog OK callback * Accepts: - dialog widget */ static void ok_cb(Widget dialog) { XtDestroyWidget(dialog); } xmpi-2.2.3b8/src/xmpi/xmpi_aschema.cc0000664000076500007650000000565607725267005013161 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_aschema.cc,v 1.4 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - dialog window for browsing application schemata */ #include #include #include #include #include #include "xmpi.h" #include "xmpi_aschema.h" #include "xmpi_run.h" #include "xmpi_ctl.h" #include "xmpi_misc.h" /* * local functions */ static void runapp(Widget, caddr_t, XmFileSelectionBoxCallbackStruct*); /* * local variables */ static Widget appdialog = 0; /* file selection dialog */ /* * xmpi_aschema_dialog * * Function: - pops up application selection dialog * Accepts: - parent widget */ void xmpi_aschema_dialog(Widget parent) { Arg args[2]; XmString oklabel; XmString title; Widget help_btn; if (appdialog == 0) { title = XmStringCreateSimple((char*) "XMPI Application Browser"); oklabel = XmStringCreateSimple((char*) "Run"); XtSetArg(args[0], XmNdialogTitle, title); XtSetArg(args[1], XmNokLabelString, oklabel); appdialog = XmCreateFileSelectionDialog(parent, (char*) "app_browser", args, 2); XtAddCallback(appdialog, XmNokCallback, (XtCallbackProc) runapp, NULL); XtAddCallback(appdialog, XmNcancelCallback, (XtCallbackProc) XtUnmanageChild, NULL); help_btn = XmFileSelectionBoxGetChild(appdialog, XmDIALOG_HELP_BUTTON); XtUnmanageChild(help_btn); XmStringFree(title); XmStringFree(oklabel); } else { XtMapWidget(xmpi_wmshell(appdialog)); XmFileSelectionDoSearch(appdialog, 0); } XtManageChild(appdialog); XtPopup(XtParent(appdialog), XtGrabNone); } /* * runapp * * Function: - run selected application (OK callback) * Accepts: - callback data */ static void runapp(Widget w, caddr_t, XmFileSelectionBoxCallbackStruct *cbs) { char *appname; /* app. file name */ int r; if (!XmStringGetLtoR(cbs->value, XmSTRING_DEFAULT_CHARSET, &appname)) return; XtUnmapWidget(xmpi_wmshell(w)); r = xmpi_run(appname, xmpi_wmshell(w)); if (r == 0) { xmpi_ctl_setapp(appname); } XtFree(appname); } /* * xmpi_aschema_busy * * Function: - set the busy cursor in the schema browsing window */ void xmpi_aschema_busy() { if (appdialog) xmpi_busy_widget(appdialog); } /* * xmpi_aschema_unbusy * * Function: - reset the busy cursor in the schema browsing window */ void xmpi_aschema_unbusy() { if (appdialog) xmpi_unbusy_widget(appdialog); } xmpi-2.2.3b8/src/xmpi/xmpi_browse.cc0000664000076500007650000001763107725267005013055 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_browse.cc,v 1.4 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - program browser panel in builder dialog */ #include #include #include #include #include #include #include #include #include #include #include #include "xmpi_all_list.h" #include "lam.h" #include "xmpi.h" #include "xmpi_misc.h" #include "xmpi_browse.h" #include "xmpi_error.h" #include "xmpi_run.h" /* * local functions */ static void browse_dir_cb(Widget, XtPointer, XmAnyCallbackStruct*); static void browse_select_cb(Widget, XtPointer, XmListCallbackStruct*); extern "C"{ static int fnamecmp(void*, void*); } /* * local variables */ static Widget list_w = 0; /* directory contents list */ static Widget text_w = 0; /* current directory text field */ /* * xmpi_browse_build * * Function: - builds file browse panel * Accepts: - parent widget */ void xmpi_browse_build(Widget parent_w) { Widget mgr_w; char *cwd; XmString xstr; mgr_w = XtVaCreateWidget("browse_mgr", xmPanedWindowWidgetClass, parent_w, XmNsashWidth, 1, XmNsashHeight, 1, XmNseparatorOn, False, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 1, XmNleftOffset, 5, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 2, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); xstr = XmStringCreateSimple((char*) "Browse Programs"); XtVaCreateManagedWidget("banner", xmLabelWidgetClass, mgr_w, XmNlabelString, xstr, NULL); XmStringFree(xstr); text_w = XtVaCreateManagedWidget("browse_text", xmTextFieldWidgetClass, mgr_w, NULL); XtAddCallback(text_w, XmNactivateCallback, (XtCallbackProc) browse_dir_cb, NULL); list_w = XmCreateScrolledList(mgr_w, (char*) "browse_list", NULL, 0); XtVaSetValues(list_w, XmNscrollBarDisplayPolicy, XmSTATIC, XmNscrollHorizontal, False, XmNselectionPolicy, XmBROWSE_SELECT, NULL); XtAddCallback(list_w, XmNdefaultActionCallback, (XtCallbackProc) browse_select_cb, NULL); XtAddCallback(list_w, XmNbrowseSelectionCallback, (XtCallbackProc) browse_select_cb, NULL); XtManageChild(list_w); /* * Initialize the text field to the current directory. * Fill the list with the current directory contents. */ if ((cwd = getworkdir())) { XmTextFieldSetString(text_w, cwd); XmTextFieldSetInsertionPosition(text_w, strlen(cwd)); xmpi_run_set_prog((char*) "", cwd); free(cwd); xmpi_browse_fill(list_w); } xmpi_nosash(mgr_w); XtManageChild(mgr_w); } /* * browse_dir_cb * * Function: - take action on the selected directory * Accepts: - widget * - client data * - callback ptr */ static void browse_dir_cb(Widget w, XtPointer, XmAnyCallbackStruct*) { char *dirpath; dirpath = XmTextFieldGetString(w); if ((dirpath == 0) || (*dirpath == '\0')) { XtFree(dirpath); return; } /* * Change to new directory. */ if (chdir(dirpath)) { xmpi_error(w, dirpath); XtFree(dirpath); return; } xmpi_run_set_prog((char*) "", dirpath); xmpi_browse_fill(list_w); XtFree(dirpath); } /* * browse_select_cb * * Function: - selects a program or new directory * Accepts: - widget * - client data * - callback ptr */ static void browse_select_cb(Widget w, XtPointer, XmListCallbackStruct *cbs) { char *filename; char *p; struct stat fileinfo; XmStringGetLtoR(cbs->item, XmSTRING_DEFAULT_CHARSET, &filename); if (lstat(filename, &fileinfo)) { xmpi_error(w, filename); XtFree(filename); return; } /* * If the file is a sym-link, stat() the real file. */ if (S_ISLNK(fileinfo.st_mode)) { if (stat(filename, &fileinfo)) { xmpi_error(w, filename); XtFree(filename); return; } } /* * If the file is a directory, change to it. */ if (S_ISDIR(fileinfo.st_mode) && (cbs->reason == (int) XmCR_DEFAULT_ACTION)) { if (chdir(filename)) { xmpi_error(w, filename); XtFree(filename); return; } if ((p = getworkdir()) == 0) { xmpi_error(w, (char*) "Cannot get current directory"); XtFree(filename); return; } XmTextFieldSetString(text_w, p); XmTextFieldSetInsertionPosition(text_w, strlen(p)); xmpi_run_set_prog((char*) "", p); xmpi_browse_fill(list_w); free(p); } /* * Write the selected file into the program text area. */ else if (!S_ISDIR(fileinfo.st_mode)) { if ((p = getworkdir()) == 0) { xmpi_error(w, (char*) "Cannot get current directory"); XtFree(filename); return; } xmpi_run_set_prog(filename, p); free(p); } XtFree(filename); } /* * xmpi_browse_fill * * Function: - fills a list with the contents of the * current directory * Accepts: - list widget */ void xmpi_browse_fill(Widget w) { DIR *pdir; /* opened directory */ struct dirent *pfile; /* directory entry ptr */ XmString xstr; /* Motif string */ struct stat fileinfo; /* file status info */ LIST *sortlist; /* list of sorted filenames */ int fnamelen; /* filename length */ char *fname; /* filename */ char **p; /* favourite pointer */ /* * Delete all current list entries. */ XmListDeselectAllItems(w); XmListDeleteAllItems(w); /* * Open the directory. */ if ((pdir = opendir(".")) == 0) xmpi_fail((char*) "xmpi (opendir)"); /* * Initialize the list used for sorting. */ sortlist = al_init((int4) sizeof(char *), fnamecmp); if (sortlist == 0) xmpi_fail((char*) "xmpi (al_init)"); /* * Fill the list with the directory's files. */ for (pfile = readdir(pdir); pfile; pfile = readdir(pdir)) { /* * Insert the file in the sorted list. * Add a path delimiter if the file is a directory. */ if (lstat(pfile->d_name, &fileinfo)) { xmpi_error(w, pfile->d_name); continue; } /* * If a sym-link, stat() the real file. * Ignore any error and accept the link anyway. */ if (S_ISLNK(fileinfo.st_mode)) { stat(pfile->d_name, &fileinfo); } fnamelen = strlen(pfile->d_name); if (S_ISDIR(fileinfo.st_mode)) { ++fnamelen; } fname = (char*) malloc((unsigned) fnamelen + 1); if (fname == 0) xmpi_fail((char*) "xmpi (malloc)"); strcpy(fname, pfile->d_name); if (S_ISDIR(fileinfo.st_mode)) { strcat(fname, STRSDIR); } if (!al_insert(sortlist, (char *) &fname)) xmpi_fail((char*) "xmpi (al_insert)"); } /* * Loop adding the sorted files to the scrolled list. */ p = (char **) al_top(sortlist); while (p) { xstr = XmStringCreateSimple(*p); XmListAddItem(w, xstr, 0); XmStringFree(xstr); free(*p); p = (char **) al_next(sortlist, (char *) p); } al_free(sortlist); closedir(pdir); } /* * fnamecmp * * Function: - compare two filename entries in the sorted list * - special cases: "./" is first, "../" is second * Accepts: - ptr to the two filenames * Returns: - -ve/0/+ve (the usual <, ==, > comparison) */ static int fnamecmp(void *f1, void *f2) { int ret; if (strcmp(*((char**) f1), "./") == 0) { ret = -1; } else if (strcmp(*((char**) f2), "./") == 0) { ret = 1; } else if (strcmp(*((char**) f1), "../") == 0) { ret = -1; } else if (strcmp(*((char**) f2), "../") == 0) { ret = 1; } else { ret = strcmp(*((char**) f1), *((char**) f2)); } return (ret); } xmpi-2.2.3b8/src/xmpi/xmpi_copies.cc0000664000076500007650000001234707725267005013035 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_copies.cc,v 1.4 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - widgets for setting number of application copies */ #include #include #include #include #include #include #include "xmpi_copies.h" #include "xmpi_error.h" #include "xmpi_run.h" #include "lam.h" /* * local definitions */ #define XMPI_UPARROW ((XtPointer) 1) #define XMPI_DOWNARROW ((XtPointer) 2) /* * local functions */ static void do_arrow(Widget, XtPointer, XmArrowButtonCallbackStruct*); static void verify(Widget, XtPointer, XmTextVerifyCallbackStruct*); static void change(Widget, XtPointer, XmTextVerifyCallbackStruct*); /* * local variables */ static int copies = 0; /* counter as value */ static Widget text_w; /* counter as text */ static Widget sc_w = 0; /* container */ /* * xmpi_copies_get * * Function: - copy counter accessor * Returns: - copy counter text */ char * xmpi_copies_get() { char *s; XtVaGetValues(text_w, XmNvalue, &s, NULL); return (s); } // // xmpi_copies_set // // Function: - set the copy counter // Input; - copies // Returns: - void // void xmpi_copies_set(int numb) { char *numb_text = NULL; numb_text = (char*) malloc(sizeof(char) * (sizeof(int) * 8 + 1)); if (numb_text == NULL) { xmpi_error(0, (char*) "Error: malloc()"); return; } if (numb > 0) sprintf(numb_text, "%d", numb); else numb_text[0] = 0; XtVaSetValues(text_w, XmNvalue, numb_text, NULL); copies = numb; } /* * xmpi_copies_create * * Function: - create the widget for setting the copy counter * Accepts: - parent widget * Returns: - copy counter setting widget */ Widget xmpi_copies_create(Widget parent_w) { Widget up_w; /* up arrow */ Widget down_w; /* down arrow */ Dimension height; if (sc_w != 0) return (sc_w); sc_w = XtVaCreateWidget("setcopies", xmFormWidgetClass, parent_w, NULL); /* * Create the text field. */ text_w = XtVaCreateManagedWidget("text", xmTextFieldWidgetClass, sc_w, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, NULL); XtVaGetValues(text_w, XmNheight, &height, NULL); XtAddCallback(text_w, XmNmodifyVerifyCallback, (XtCallbackProc) verify, NULL); XtAddCallback(text_w, XmNvalueChangedCallback, (XtCallbackProc) change, NULL); /* * Create the up arrow. */ up_w = XtVaCreateManagedWidget("uparrow", xmArrowButtonGadgetClass, sc_w, XmNarrowDirection, XmARROW_UP, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNborderWidth, 0, NULL); XtAddCallback(up_w, XmNactivateCallback, (XtCallbackProc) do_arrow, XMPI_UPARROW); /* * Create the down arrow. */ down_w = XtVaCreateManagedWidget("downarrow", xmArrowButtonGadgetClass, sc_w, XmNarrowDirection, XmARROW_DOWN, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, up_w, NULL); XtAddCallback(down_w, XmNactivateCallback, (XtCallbackProc) do_arrow, XMPI_DOWNARROW); XtVaSetValues(text_w, XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, down_w, NULL); return (sc_w); } /* * do_arrow * * Function: - manage arrows of copy counter * - increment/decrement copy counter * Accepts: - callback parameters */ static void do_arrow(Widget, XtPointer data, XmArrowButtonCallbackStruct *cbs) { char fbuf[16]; /* small formatting buffer */ int inc; inc = (cbs->event->xbutton.state & ShiftMask) ? 10 : 1; if (data == XMPI_UPARROW) { copies += inc; } else { copies -= inc; } if (copies < 0) copies = 0; if (copies > 0) { sprintf(fbuf, "%d", copies); } else { fbuf[0] = 0; } XtVaSetValues(text_w, XmNvalue, fbuf, NULL); } /* * verify * * Function: - verify numeric input for copy counter * Accepts: - callback parameters */ static void verify(Widget, XtPointer, XmTextVerifyCallbackStruct *cbs) { int i; if (cbs->event == NULL || cbs->text->ptr == NULL) return; for (i = 0; i < cbs->text->length; i++) { if (!isdigit((int) cbs->text->ptr[i])) { cbs->doit = False; return; } } } /* * change * * Function: - update counter to reflect text change * Accepts: - callback parameters */ static void change(Widget, XtPointer, XmTextVerifyCallbackStruct *cbs) { char *s; if (cbs->event != NULL) { XtVaGetValues(text_w, XmNvalue, &s, NULL); if (s == 0 || *s == 0) { copies = 0; } else { copies = (int) stoi((unsigned char *) s); } } xmpi_run_update(); } xmpi-2.2.3b8/src/xmpi/xmpi_ctl.cc0000664000076500007650000004374107725267005012337 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_ctl.cc,v 1.5 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - control panel for main window */ #include #include #include #include #include #include #include #include "xmpi.h" #include "xmpi_misc.h" #include "xmpi_pophelp.h" #include "xmpi_ctl.h" #include "xmpi_view.h" #include "xmpi_error.h" #include "xmpi_run.h" #include "xmpi_tr_file.h" #include "xmpi_tr_dump.h" #include "xmpi_kiviat.h" #include "xmpi_matrix.h" #include "xmpi_aschema.h" #include "xmpi_about.h" #include "xmpi_help.h" #include "xmpi_dtype.h" #include "Pixmaps/wiper.xpm" #include "Pixmaps/camera.xpm" #include "Pixmaps/kiviat.xpm" #include "Pixmaps/matrix.xpm" #include "Pixmaps/trace.xpm" #include "Pixmaps/rerun.xpm" /* * local functions */ static void ctl_snap_cb(Widget, XtPointer, XtPointer); static void ctl_rerun_cb(Widget, XtPointer, XtPointer); static void ctl_trview_cb(Widget, XtPointer, XtPointer); static void ctl_trdump_cb(Widget, XtPointer, XtPointer); static void ctl_trexpress_cb(Widget, XtPointer, XtPointer); static void ctl_kiv_cb(Widget, XtPointer, XtPointer); static void ctl_clean_cb(Widget, XtPointer, XtPointer); static void ctl_matrix_cb(Widget, XtPointer, XtPointer); static void ctl_app_cb(Widget, int); static void ctl_trace_cb(Widget, int); static void ctl_help_cb(Widget, int); static Widget ctl_create_buttons(Widget); /* * external variables */ extern int xmpi_do_rerun; /* re-running application? */ extern int xmpi_is_express; /* current appl. trace view? */ extern int xmpi_do_express; /* creating current app view */ extern int xmpi_app_nprocs; /* number of procs in appl. */ extern struct _gps *xmpi_app_procs; /* appl. GPS array */ /* * local variables */ static Widget info_w; /* information label */ static Widget snap_b; /* snapshot button */ static Widget rerun_b; /* rerun button */ static Widget express_b; /* trace express button */ static Widget kiv_b; /* kiviat view button */ static Widget clean_b; /* clean button */ static Widget matrix_b; /* matrix button */ static Widget matrix_m; /* matrix menu widget */ static Widget snap_m; /* snap menu widget */ static Widget rerun_m; /* rerun menu widget */ static Widget dump_m; /* trace dump menu widget */ static Widget express_m; /* trace express menu widget */ static Widget kiv_m; /* kiviat menu widget */ static Widget clean_m; /* clean menu widget */ static char appschema[XMPI_PATHMAX] = ""; /* application schema */ /* * button info messages */ const char *snap_msg = "Take a system snap-shot"; const char *rerun_msg = "Re-run current application"; const char *exp_msg = "Dump and view trace information"; const char *kiv_msg = "View Kiviat information"; const char *clean_msg = "Clean the system"; const char *matrix_msg = "View message sources"; /* * xmpi_ctl_build * * Function: - creates widgets for xmpi control panel * Accepts: - parent widget * Returns: - created widget */ Widget xmpi_ctl_build(Widget parent_w) { Widget menubar_w; /* menu bar */ Widget mgr_w; /* control area manager */ Widget rc_w; /* buttons row column */ Widget w; /* favourite widget */ XmString str0, str1, str2, str3; /* various strings */ XmString str4, str5; /* various strings */ mgr_w = XtVaCreateWidget("ctl_mgr", xmFormWidgetClass, parent_w, NULL); /* * Create the menu bar. */ str0 = XmStringCreateSimple((char*) "Application"); str1 = XmStringCreateSimple((char*) "Trace"); str3 = XmStringCreateSimple((char*) "Help"); menubar_w = XmVaCreateSimpleMenuBar(mgr_w, (char*) "ctl_bar", XmVaCASCADEBUTTON, str0, 'A', XmVaCASCADEBUTTON, str1, 'T', XmVaCASCADEBUTTON, str3, 'H', XmNtopAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); XmStringFree(str0); XmStringFree(str1); XmStringFree(str3); w = XtNameToWidget(menubar_w, "button_2"); if (w) XtVaSetValues(menubar_w, XmNmenuHelpWidget, w, NULL); /* * Create the pulldown menu for "Application". */ str0 = XmStringCreateSimple((char*) "Build&Run..."); str1 = XmStringCreateSimple((char*) "Browse&Run..."); str2 = XmStringCreateSimple((char*) "Snapshot"); str3 = XmStringCreateSimple((char*) "Rerun"); str4 = XmStringCreateSimple((char*) "Clean"); str5 = XmStringCreateSimple((char*) "Quit"); w = XmVaCreateSimplePulldownMenu(menubar_w, (char*) "App_menu", 0, (XtCallbackProc) ctl_app_cb, XmVaPUSHBUTTON, str0, 'B', NULL, NULL, XmVaPUSHBUTTON, str1, 'o', NULL, NULL, XmVaPUSHBUTTON, str2, 'S', NULL, NULL, XmVaPUSHBUTTON, str3, 'R', NULL, NULL, XmVaPUSHBUTTON, str4, 'C', NULL, NULL, XmVaSEPARATOR, XmVaPUSHBUTTON, str5, 'Q', NULL, NULL, NULL); snap_m = XtNameToWidget(w, "button_2"); rerun_m = XtNameToWidget(w, "button_3"); clean_m = XtNameToWidget(w, "button_4"); /* * XmVaSEPARATOR seems buggy. It makes following buttons forget labels. */ w = XtNameToWidget(w, "button_5"); if (w) XtVaSetValues(w, XmNlabelString, str5, XmNmnemonic, 'Q', NULL); XmStringFree(str0); XmStringFree(str1); XmStringFree(str2); XmStringFree(str3); XmStringFree(str4); XmStringFree(str5); /* * Create the pulldown menu for "Trace". */ str0 = XmStringCreateSimple((char*) "Dump..."); str1 = XmStringCreateSimple((char*) "View..."); str2 = XmStringCreateSimple((char*) "Express"); str3 = XmStringCreateSimple((char*) "Kiviat"); str4 = XmStringCreateSimple((char*) "Matrix"); w = XmVaCreateSimplePulldownMenu(menubar_w, (char*) "Trace_menu", 1, (XtCallbackProc) ctl_trace_cb, XmVaPUSHBUTTON, str0, 'D', NULL, NULL, XmVaPUSHBUTTON, str1, 'V', NULL, NULL, XmVaPUSHBUTTON, str2, 'E', NULL, NULL, XmVaPUSHBUTTON, str3, 'K', NULL, NULL, XmVaPUSHBUTTON, str4, 'M', NULL, NULL, NULL); dump_m = XtNameToWidget(w, "button_0"); XtNameToWidget(w, "button_1"); express_m = XtNameToWidget(w, "button_2"); kiv_m = XtNameToWidget(w, "button_3"); matrix_m = XtNameToWidget(w, "button_4"); XmStringFree(str0); XmStringFree(str1); XmStringFree(str2); XmStringFree(str3); XmStringFree(str4); /* * Create the pulldown menu for "Help". */ str0 = XmStringCreateSimple((char*) "About XMPI"); str1 = XmStringCreateSimple((char*) "Help"); w = XmVaCreateSimplePulldownMenu(menubar_w, (char*) "Help_menu", 2, (XtCallbackProc) ctl_help_cb, XmVaPUSHBUTTON, str0, 'A', NULL, NULL, XmVaPUSHBUTTON, str1, 'H', NULL, NULL, NULL); w = XtNameToWidget(w, "button_1"); if (strlen(app_res.ap_helpcmd) == 0) { XtSetSensitive(w, False); } XmStringFree(str0); XmStringFree(str1); XtManageChild(menubar_w); /* * Create the row of control buttons. */ rc_w = ctl_create_buttons(mgr_w); XtVaSetValues(rc_w, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, menubar_w, XmNtopOffset, 2, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); xmpi_add_pophelp(snap_b, (char*) snap_msg); xmpi_add_pophelp(express_b, (char*) exp_msg); xmpi_add_pophelp(kiv_b, (char*) kiv_msg); xmpi_add_pophelp(matrix_b, (char*) matrix_msg); xmpi_add_pophelp(rerun_b, (char*) rerun_msg); xmpi_add_pophelp(clean_b, (char*) clean_msg); xmpi_ctl_setsensitive(XMPI_BSNAPSHOT, False); xmpi_ctl_setsensitive(XMPI_BTRACE, False); xmpi_ctl_setsensitive(XMPI_BKIVIAT, False); xmpi_ctl_setsensitive(XMPI_BMATRIX, False); xmpi_ctl_setsensitive(XMPI_BRERUN, False); XtManageChild(rc_w); /* * Build the information area. */ info_w = xmpi_mklabel(mgr_w, (char*) "info_lbl", XmALIGNMENT_BEGINNING, False); XtVaSetValues(info_w, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, rc_w, XmNbottomAttachment, XmATTACH_FORM, XmNbottomOffset, 2, NULL); xmpi_ctl_resetinfo(); XtManageChild(mgr_w); return (mgr_w); } /* * ctl_snap_cb * * Function: - takes a snapshot of current application state * - invokes LAM functions */ static void ctl_snap_cb(Widget, XtPointer, XtPointer) { xmpi_vw_update(1); } /* * ctl_rerun_cb * * Function: - rerun current application * Accepts: - widget */ static void ctl_rerun_cb(Widget w, XtPointer, XtPointer) { if (strcmp(appschema, "") == 0) { errno = 0; xmpi_error(w, (char*) "No previous application."); } else if (strcmp(appschema, "") == 0) { xmpi_run_rerun(); } else { xmpi_do_rerun = 1; xmpi_run(appschema, (Widget) 0); } } /* * ctl_trview_cb * * Function: - activate trace viewing * Accepts: - widget */ static void ctl_trview_cb(Widget w, XtPointer, XtPointer) { xmpi_do_express = 0; xmpi_tr_file(xmpi_wmshell(w)); } /* * ctl_trdump_cb * * Function: - activate trace dump * Accepts: - widget */ static void ctl_trdump_cb(Widget w, XtPointer, XtPointer) { xmpi_tr_dump(xmpi_wmshell(w)); } /* * ctl_trexpress_cb * * Function: - activate express trace dump and view * Accepts: - widget */ static void ctl_trexpress_cb(Widget w, XtPointer, XtPointer) { xmpi_do_express = 1; xmpi_tr_express(xmpi_wmshell(w)); } /* * ctl_kiv_cb * * Function: - activate kiviat viewing * Accepts: - widget */ static void ctl_kiv_cb(Widget, XtPointer, XtPointer) { xmpi_kv_popup(); } /* * ctl_clean_cb * * Function: - clean system * Accepts: - widget */ static void ctl_clean_cb(Widget, XtPointer, XtPointer) { xmpi_ctl_clean(); } /* * ctl_matrix_cb * * Function: - activate message matrix viewing * Accepts: - widget */ static void ctl_matrix_cb(Widget, XtPointer, XtPointer) { xmpi_mat_popup(); } /* * ctl_app_cb * * Function: - invokes items from the Application menu * Accepts: - menu widget * - selected menu item */ static void ctl_app_cb(Widget w, int item) { switch (item) { case 0: #ifdef HPUX xmpi_hp_run_dialog(xmpi_wmshell(w)); #else xmpi_run_dialog(xmpi_wmshell(w)); #endif break; case 1: xmpi_aschema_dialog(xmpi_wmshell(w)); break; case 2: ctl_snap_cb(w, NULL, NULL); break; case 3: ctl_rerun_cb(w, NULL, NULL); xmpi_ctl_resetinfo(); break; case 4: ctl_clean_cb(w, NULL, NULL); break; case 5: xmpi_bail(); break; } } /* * ctl_trace_cb * * Function: - invokes items from the Trace menu * Accepts: - menu widget * - selected menu item */ static void ctl_trace_cb(Widget w, int item) { switch (item) { case 0: ctl_trdump_cb(w, NULL, NULL); break; case 1: ctl_trview_cb(w, NULL, NULL); break; case 2: ctl_trexpress_cb(w, NULL, NULL); break; case 3: ctl_kiv_cb(w, NULL, NULL); break; case 4: ctl_matrix_cb(w, NULL, NULL); break; } } /* * ctl_help_cb * * Function: - invokes items from the Help menu */ static void ctl_help_cb(Widget w, int item) { switch (item) { case 0: xmpi_about(xmpi_wmshell(w)); break; case 1: xmpi_help(); break; } } /* * xmpi_ctl_clean * * Function: - kills the application and cleans up the debris */ void xmpi_ctl_clean() { /* * In database mode we don't clear the view window etc. but only * run lamclean to blow away traces and so on. */ xmpi_ctl_setinfo((char*) "Cleaning the system..."); xmpi_flush(); xmpi_busy(); if (xmpi_sys_kill(xmpi_app_procs, xmpi_app_nprocs)) { xmpi_error(xmpi_shell, (char*) "Killing application"); } if (!xmpi_vw_dbmode()) { if (!xmpi_do_rerun) { xmpi_ctl_setsensitive(XMPI_BSNAPSHOT, False); xmpi_ctl_setsensitive(XMPI_BMATRIX, False); xmpi_mat_destroy(); xmpi_dt_clear(); xmpi_vw_clear(); } } if (xmpi_app_procs) { free((char *) xmpi_app_procs); xmpi_app_procs = 0; xmpi_app_nprocs = 0; } xmpi_ctl_setsensitive(XMPI_BTRACE, False); xmpi_ctl_resetinfo(); xmpi_unbusy(); } /* * xmpi_ctl_setinfo * * Function: - set info label * Accepts: - string */ void xmpi_ctl_setinfo(char *info) { xmpi_setlabel(info_w, info); XmUpdateDisplay(info_w); } /* * xmpi_ctl_resetinfo * * Function: - reset info label */ void xmpi_ctl_resetinfo() { char fmtbuf[80]; char *app; const char *info = ""; /* * Strip paths. */ if (xmpi_info[0]) { info = strrchr(xmpi_info, STRDIR); info = info ? info + 1 : xmpi_info; } app = strrchr(appschema, STRDIR); app = app ? app + 1 : appschema; sprintf(fmtbuf, "%s: %s App: %s", app_res.ap_infolbl, info, app); xmpi_setlabel(info_w, fmtbuf); XmUpdateDisplay(info_w); } /* * xmpi_ctl_setapp * * Function: - set application schema * Accepts: - string */ void xmpi_ctl_setapp(char *string) { strcpy(appschema, string); xmpi_ctl_resetinfo(); } /* * xmpi_ctl_setsensitive * * Function: - set button/menu sensitivity for an action * Accepts: - action * - state to set to */ void xmpi_ctl_setsensitive(int button, Boolean state) { switch (button) { case XMPI_BSNAPSHOT: XtSetSensitive(snap_b, state); XtSetSensitive(snap_m, state); break; case XMPI_BRERUN: XtSetSensitive(rerun_b, state); XtSetSensitive(rerun_m, state); break; case XMPI_BTRACE: XtSetSensitive(dump_m, state); XtSetSensitive(express_b, state); XtSetSensitive(express_m, state); break; case XMPI_BKIVIAT: XtSetSensitive(kiv_b, state); XtSetSensitive(kiv_m, state); break; case XMPI_BCLEAN: XtSetSensitive(clean_b, state); XtSetSensitive(clean_m, state); break; case XMPI_BMATRIX: XtSetSensitive(matrix_b, state); XtSetSensitive(matrix_m, state); break; } } /* * free_button_pixmaps * * Function: - free buttons pixmap resources * Accepts: - button */ static void free_button_pixmaps(Widget button) { Pixmap pix; /* pixmap */ Pixmap ipix; /* insensitive pixmap */ if (button) { XtVaGetValues(button, XmNlabelPixmap, &pix, XmNlabelInsensitivePixmap, &ipix, NULL); if (pix) { XFreePixmap(XtDisplay(button), pix); } if (ipix) { XFreePixmap(XtDisplay(button), ipix); } } } /* * ctl_create_buttons * * Function: - create control buttons * Accepts: - parent widget * Returns: - row column widget containing the buttons */ static Widget ctl_create_buttons(Widget parent_w) { XmString xstr; Widget rc_w; rc_w = XtVaCreateWidget("ctl_brc", xmRowColumnWidgetClass, parent_w, XmNorientation, XmHORIZONTAL, XmNnumColumns, 1, NULL); snap_b = xmpi_mkcolpixbutton(rc_w, ctl_snap_cb, NULL, NULL, (char*) snap_msg, NULL, (char*) snap_msg, camera_xpm, True); express_b = xmpi_mkcolpixbutton(rc_w, ctl_trexpress_cb, NULL, NULL, (char*) exp_msg, NULL, (char*) exp_msg, trace_xpm, True); kiv_b = xmpi_mkcolpixbutton(rc_w, ctl_kiv_cb, NULL, NULL, (char*) kiv_msg, NULL, (char*) kiv_msg, kiviat_xpm, True); matrix_b = xmpi_mkcolpixbutton(rc_w, ctl_matrix_cb, NULL, NULL, (char*) matrix_msg, NULL, (char*) matrix_msg, matrix_xpm, True); rerun_b = xmpi_mkcolpixbutton(rc_w, ctl_rerun_cb, NULL, NULL, (char*) rerun_msg, NULL, (char*) rerun_msg, rerun_xpm, True); clean_b = xmpi_mkcolpixbutton(rc_w, ctl_clean_cb, NULL, NULL, (char*) clean_msg, NULL, (char*) clean_msg, wiper_xpm, True); if (snap_b && express_b && kiv_b && matrix_b && rerun_b && clean_b) { return (rc_w); } /* * Couldn't create one of the pixmaps. Free everything created above and * start over using text buttons. */ free_button_pixmaps(snap_b); free_button_pixmaps(express_b); free_button_pixmaps(kiv_b); free_button_pixmaps(matrix_b); free_button_pixmaps(rerun_b); free_button_pixmaps(clean_b); XtDestroyWidget(rc_w); rc_w = XtVaCreateWidget("ctl_brc", xmRowColumnWidgetClass, parent_w, XmNorientation, XmHORIZONTAL, XmNnumColumns, 1, NULL); snap_b = xmpi_mkpixbutton(rc_w, ctl_snap_cb, NULL, NULL, (char*) snap_msg, NULL, (char*) snap_msg, (unsigned char*) 0, 0, 0, True); express_b = xmpi_mkpixbutton(rc_w, ctl_trexpress_cb, NULL, NULL, (char*) exp_msg, NULL, (char*) exp_msg, (unsigned char*) 0, 0, 0, True); kiv_b = xmpi_mkpixbutton(rc_w, ctl_kiv_cb, NULL, NULL, (char*) kiv_msg, NULL, (char*) kiv_msg, (unsigned char*) 0, 0, 0, True); matrix_b = xmpi_mkpixbutton(rc_w, ctl_matrix_cb, NULL, NULL, (char*) matrix_msg, NULL, (char*) matrix_msg, (unsigned char*) 0, 0, 0, True); rerun_b = xmpi_mkpixbutton(rc_w, ctl_rerun_cb, NULL, NULL, (char*) rerun_msg, NULL, (char*) rerun_msg, (unsigned char*) 0, 0, 0, True); clean_b = xmpi_mkpixbutton(rc_w, ctl_clean_cb, NULL, NULL, (char*) clean_msg, NULL, (char*) clean_msg, (unsigned char*) 0, 0, 0, True); xstr = XmStringCreateSimple((char*) "Snapshot"); XtVaSetValues(snap_b, XmNlabelString, xstr, NULL); XmStringFree(xstr); xstr = XmStringCreateSimple((char*) "Trace"); XtVaSetValues(express_b, XmNlabelString, xstr, NULL); XmStringFree(xstr); xstr = XmStringCreateSimple((char*) "Kiviat"); XtVaSetValues(kiv_b, XmNlabelString, xstr, NULL); XmStringFree(xstr); xstr = XmStringCreateSimple((char*) "Matrix"); XtVaSetValues(matrix_b, XmNlabelString, xstr, NULL); XmStringFree(xstr); xstr = XmStringCreateSimple((char*) "Rerun"); XtVaSetValues(rerun_b, XmNlabelString, xstr, NULL); XmStringFree(xstr); xstr = XmStringCreateSimple((char*) "Clean"); XtVaSetValues(clean_b, XmNlabelString, xstr, NULL); XmStringFree(xstr); return (rc_w); } xmpi-2.2.3b8/src/xmpi/xmpi_dbase.cc0000664000076500007650000005370607725267006012636 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_dbase.cc,v 1.4 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - process/trace information database */ #include #include #include "xmpi_all_list.h" #include "lam.h" #include "xmpi.h" #include "xmpi_dbase.h" #include "xmpi_misc.h" /* * local functions */ static int group_index(int, struct _gps*, int); static void fillmsgstat(struct xmproc*, struct xmdbproc*); static int addmesg(struct xmproc*, struct xmmsg*); static struct xmdbtr *db_findtrace(double, struct xmdbproc*); /* * global variables */ struct xmdb dbase = {0, 0, 0, 0.0, 0.0, 0.0}; /* the database */ /* * xmpi_db_getnprocs * * Function: - get the # processes * Returns: - # processes */ int xmpi_db_getnprocs() { return (dbase.xdb_nprocs); } /* * xmpi_db_getmintime * * Function: - get the min (start) time * Returns: - start time */ double xmpi_db_getmintime() { return (dbase.xdb_mintime); } /* * xmpi_db_getmaxtime * * Function: - get the max (end) time * Returns: - end time */ double xmpi_db_getmaxtime() { return (dbase.xdb_maxtime); } /* * xmpi_db_getminlapse * * Function: - get the min lapse time * Returns: - lapse time */ double xmpi_db_getminlapse() { return (dbase.xdb_minlapse); } /* * xmpi_db_getmaxtraces * * Function: - get the maximum number of traces for any process * Returns: - number of traces */ int xmpi_db_getmaxtraces() { struct xmdbproc *p; /* favourite pointer */ int i; /* favourite index */ int trmax = 0; /* max traces */ for (i = 0, p = dbase.xdb_procs; i < dbase.xdb_nprocs; ++i, ++p) { if (al_count(p->xdbp_traces) > trmax) { trmax = al_count(p->xdbp_traces); } } return (trmax); } /* * xmpi_db_getload * * Function: - get blocking & system load (percentages) * Accepts: - size of arrays (# entries) * - array of percent block load (out) * - array of percent system load (out) * Returns: - # entries filled */ int xmpi_db_getload(int size, double *block, double *system) { int n; /* # entries to fill */ int i; /* favourite index */ double tottime; /* total time */ double delta; /* time difference */ struct xmdbproc *p; /* favourite pointer */ struct xmdbtr *ptrace; /* ptr trace */ n = dbase.xdb_nprocs; if (size < n) n = size; tottime = dbase.xdb_curtime - dbase.xdb_mintime; /* * Fill the arrays. */ p = dbase.xdb_procs; for (i = 0; i < n; ++i, ++p) { ptrace = p->xdbp_curtrace; if (ptrace == 0) { block[i] = system[i] = -1.0; continue; } if (tottime <= 0.0) { block[i] = system[i] = 0.0; continue; } block[i] = ptrace->xdbt_blktotal; system[i] = ptrace->xdbt_systotal; delta = dbase.xdb_curtime - ptrace->xdbt_time; if (ptrace->xdbt_state == XMPI_SBLOCK) { block[i] += (delta > ptrace->xdbt_lapse) ? ptrace->xdbt_lapse : delta; } else if (ptrace->xdbt_state == XMPI_SSYSTEM) { system[i] += (delta > ptrace->xdbt_lapse) ? ptrace->xdbt_lapse : delta; } block[i] /= tottime - ((delta > ptrace->xdbt_lapse) ? (delta - ptrace->xdbt_lapse) : 0.0); system[i] /= tottime - ((delta > ptrace->xdbt_lapse) ? (delta - ptrace->xdbt_lapse) : 0.0); } return (n); } /* * xmpi_db_gettraces * * Function: - get traces for a time period * - array of traces malloc'ed by the function * - it is up to the caller to free the array * Accepts: - time period start * - time period end * - trace array (out) * Returns: - # array entries or LAMERROR */ int xmpi_db_gettraces(double t1, double t2, struct xmtrace **ptraces) { int n; /* # traces filled */ int i; /* favourite index */ int size; /* size of array */ unsigned esz; /* array expansion size */ double curtime; /* current time */ struct xmtrace *traces; /* trace array */ struct xmtrace *etraces; /* expanded trace array */ struct xmdbproc *proc; /* ptr process */ struct xmdbtr *p; /* favourite pointer */ LIST *trlist; /* trace list */ /* * Move to the start time. */ curtime = dbase.xdb_curtime; xmpi_db_settime(t1); n = 0; size = XMPI_DBNTRACES; traces = (struct xmtrace *) malloc((unsigned) size * sizeof(struct xmtrace)); if (traces == 0) { xmpi_db_settime(curtime); return (LAMERROR); } /* * Loop over the processes. */ proc = dbase.xdb_procs; for (i = 0; i < dbase.xdb_nprocs; ++i, ++proc) { trlist = proc->xdbp_traces; /* * Loop adding process traces in the time period. */ p = proc->xdbp_curtrace; for (; p && (p->xdbt_time <= t2); p = (struct xmdbtr *) al_next(trlist, (char *) p)) { /* * Expand the trace array if needed. */ if (n == size) { esz = 2 * size * sizeof(struct xmtrace); etraces = (struct xmtrace *) realloc((char *) traces, esz); if (etraces == 0) { xmpi_db_settime(curtime); free((char *) traces); return (LAMERROR); } size += size; traces = etraces; } /* * Append the trace to the array. */ traces[n].xmt_rank = p->xdbt_grank; traces[n].xmt_state = p->xdbt_state; traces[n].xmt_time = p->xdbt_time; traces[n].xmt_lapse = p->xdbt_lapse; ++n; } } *ptraces = traces; xmpi_db_settime(curtime); return (n); } /* * xmpi_db_getbuoys * * Function: - get buoys * - array of traces malloc'ed by the function * - it is up to the caller to free the array * Accepts: * * - buoy array (out) * Returns: - # array entries or LAMERROR */ int xmpi_db_getbuoys(struct xmbuoy ** pbuoys) { int n; /* # traces filled */ int i; int size; /* size of array */ struct xmbuoy *buoys; /* trace array */ struct xmdbproc proc; /* ptr process */ struct xmdbbuoy *p; /* favourite pointer */ LIST *buoylist; /* buoy list */ /* Move to the start time. */ n = 0; size = 0; for (i = 0; i < dbase.xdb_nprocs; ++i) { proc = dbase.xdb_procs[i]; buoylist = proc.xdbp_buoys; size += buoylist->al_nelem; } if (size == 0) return (0); buoys = (struct xmbuoy *) malloc((unsigned) size * sizeof(struct xmbuoy)); if (buoys == 0) { return (LAMERROR); } /* Loop over the processes. */ for (i = 0; i < dbase.xdb_nprocs; ++i) { proc = dbase.xdb_procs[i]; buoylist = proc.xdbp_buoys; /* Loop adding process traces in the time period. */ for (p = (struct xmdbbuoy *) al_top(buoylist); p; p = (struct xmdbbuoy *) al_next(buoylist, (char *) p)) { /* Append the trace to the array. */ buoys[n].xmb_rank = i; buoys[n].xmb_time = p->xdbb_time; strcpy(buoys[n].xmb_name, p->xdbb_name); ++n; } } *pbuoys = buoys; return (n); } /* * xmpi_db_getarrows * * Function: - get arrows for a time period * - array of arrows malloc'ed by the function * - it is up to the caller to free the array * Accepts: - time period start * - time period end * - arrow array (out) * Returns: - # array entries or LAMERROR */ int xmpi_db_getarrows(double t1, double t2, struct xmarrow **parrows) { int n; /* # arrows filled */ int i; /* favourite index */ int size; /* size of array */ unsigned esz; /* array expansion size */ double curtime; /* current time */ struct xmarrow *arrows; /* arrow array */ struct xmarrow *earrows; /* expanded arrow array */ struct xmdbproc *proc; /* ptr process */ struct xmdbtr *p; /* favourite pointer */ struct xmdbtr *snd, *rcv; /* send/recv traces */ LIST *trlist; /* trace list */ /* * Move to the start time. */ curtime = dbase.xdb_curtime; xmpi_db_settime(t1); n = 0; size = XMPI_DBNARROWS; arrows = (struct xmarrow *) malloc((unsigned) size * sizeof(struct xmarrow)); if (arrows == 0) { xmpi_db_settime(curtime); return (LAMERROR); } /* * Loop over the processes. */ proc = dbase.xdb_procs; for (i = 0; i < dbase.xdb_nprocs; ++i, ++proc) { trlist = proc->xdbp_traces; /* * Loop adding arrows affecting the time period. */ p = proc->xdbp_curtrace; for (; p && (p->xdbt_time <= t2); p = (struct xmdbtr *) al_next(trlist, (char *) p)) { if (p->xdbt_arrowdir == XMPI_DBNA) continue; /* * Expand the arrow array if needed. */ if (n == size) { esz = 2 * size * sizeof(struct xmarrow); earrows = (struct xmarrow *) realloc((char *) arrows, esz); if (earrows == 0) { xmpi_db_settime(curtime); free((char *) arrows); return (LAMERROR); } size += size; arrows = earrows; } /* * Append the arrow to the array. */ if (p->xdbt_arrowdir == XMPI_DBOUT) { snd = p; rcv = p->xdbt_arrow; } else { rcv = p; snd = p->xdbt_arrow; } if (snd) { arrows[n].xma_srank = snd->xdbt_grank; arrows[n].xma_stime = snd->xdbt_time; if (snd->xdbt_arrowloc == XMPI_DBEND) arrows[n].xma_stime += snd->xdbt_lapse; } else { arrows[n].xma_srank = -1; } if (rcv) { arrows[n].xma_rrank = rcv->xdbt_grank; arrows[n].xma_rtime = rcv->xdbt_time; if (rcv->xdbt_arrowloc == XMPI_DBEND) arrows[n].xma_rtime += rcv->xdbt_lapse; } else { arrows[n].xma_rrank = -1; } ++n; } } *parrows = arrows; xmpi_db_settime(curtime); return (n); } /* * xmpi_db_getstat * * Function: - get current status of processes * Accepts: - # of processes * - ptr process status array (filled) * Returns: - true iff process view data changed */ int xmpi_db_getstat(int nprocs, struct xmproc *procstat) { int i; /* favourite index */ struct xmproc *p; /* favourite pointer */ struct xmdbproc *pproc; /* ptr dbase process */ struct xmdbtr *ptrace; /* ptr trace */ double t1, t2; /* trace end-times */ int laststate; /* last state */ int lastnmsg; /* last number of messages */ int unchanged = 1; /* view data unchanged? */ /* * Loop over the processes. */ p = procstat; pproc = dbase.xdb_procs; for (i = 0; i < nprocs; ++i, ++p, ++pproc) { laststate = p->xmp_state; lastnmsg = p->xmp_nmsg; ptrace = pproc->xdbp_curtrace; if (ptrace == 0) { p->xmp_state = XMPI_SUNDEF; unchanged &= (laststate == p->xmp_state); continue; } t1 = ptrace->xdbt_time; t2 = t1 + ptrace->xdbt_lapse; if ((t1 > dbase.xdb_curtime) || (t2 < dbase.xdb_curtime)) { p->xmp_state = XMPI_SUNDEF; unchanged &= (laststate == p->xmp_state); continue; } p->xmp_state = (ptrace->xdbt_state == XMPI_SMISSING) ? XMPI_SUNDEF : ptrace->xdbt_state; p->xmp_func = ptrace->xdbt_envelop.xdbe_func; p->xmp_wfunc = ptrace->xdbt_envelop.xdbe_wfunc; p->xmp_cid = ptrace->xdbt_envelop.xdbe_cid; p->xmp_commname = ptrace->xdbt_envelop.xdbe_commname; p->xmp_tag = ptrace->xdbt_envelop.xdbe_tag; p->xmp_lpeer = ptrace->xdbt_envelop.xdbe_lpeer; p->xmp_gpeer = (p->xmp_lpeer >= 0) ? xmpi_db_getgpeer(p->xmp_cid, i, p->xmp_lpeer) : -1; p->xmp_lrank = xmpi_db_getlpeer(p->xmp_cid, i, i); p->xmp_cnt = ptrace->xdbt_envelop.xdbe_count; p->xmp_dtype = ptrace->xdbt_envelop.xdbe_dtype; strcpy(p->xmp_prog, pproc->xdbp_prog); p->xmp_lroot = p->xmp_lpeer; p->xmp_groot = p->xmp_gpeer; fillmsgstat(p, pproc); unchanged &= (laststate == p->xmp_state) && (lastnmsg == p->xmp_nmsg); } return (!unchanged); } /* * fillmsgstat * * Function: - fill the process buffered messages list * Accepts: - ptr process status entry * - ptr process database entry */ static void fillmsgstat(struct xmproc *pstat, struct xmdbproc *pproc) { LIST *list; struct xmdbtr *ptrace; struct xmdbtr **p; struct xmdbtr *snd, *rcv; struct xmmsg msgelem; struct xmdbenv *env; double sndtime, rcvtime; if (pstat->xmp_msgs) al_free(pstat->xmp_msgs); pstat->xmp_msgs = 0; pstat->xmp_nmsg = 0; pstat->xmp_more = 0; pstat->xmp_curmsg = 0; ptrace = pproc->xdbp_curtrace; if (ptrace == 0) return; p = ptrace->xdbt_senders; if (p == 0) return; list = pproc->xdbp_msgsnd; pstat->xmp_msgs = al_init(sizeof(struct xmmsg), 0); for (; p; p = (struct xmdbtr **) al_next(list, (char *) p)) { snd = *p; if (!(rcv = snd->xdbt_arrow)) continue; sndtime = snd->xdbt_time; if (snd->xdbt_arrowloc == XMPI_DBEND) sndtime += snd->xdbt_lapse; rcvtime = rcv->xdbt_time; if (rcv->xdbt_arrowloc == XMPI_DBEND) rcvtime += rcv->xdbt_lapse; if ((sndtime < dbase.xdb_curtime) && (rcvtime > dbase.xdb_curtime)) { env = &snd->xdbt_envelop; msgelem.xmm_tag = env->xdbe_tag; msgelem.xmm_lsrc = xmpi_db_getlpeer(env->xdbe_cid, rcv->xdbt_grank, snd->xdbt_grank); msgelem.xmm_gsrc = snd->xdbt_grank; msgelem.xmm_cid = env->xdbe_cid; msgelem.xmm_commname = env->xdbe_commname; msgelem.xmm_cnt = env->xdbe_count; msgelem.xmm_dtype = env->xdbe_dtype; msgelem.xmm_nmsg = 1; if (addmesg(pstat, &msgelem)) { xmpi_fail((char*) "xmpi (addmesg)"); } } } pstat->xmp_curmsg = (xmmsg*) al_top(pstat->xmp_msgs); } /* * addmesg * * Function: - add message to process entry * Accepts: - process entry * - message * Returns: - 0 or LAMERROR */ static int addmesg(struct xmproc *proc, struct xmmsg *msg) { struct xmmsg *p; proc->xmp_nmsg++; /* * Try to locate a message aggregate of the same type. * If found, increment its count. */ p = (xmmsg*) al_top(proc->xmp_msgs); while (p) { if ((p->xmm_cid == msg->xmm_cid) && (p->xmm_tag == msg->xmm_tag) && (p->xmm_gsrc == msg->xmm_gsrc) && (p->xmm_cnt == msg->xmm_cnt) && (p->xmm_dtype == msg->xmm_dtype)) { p->xmm_nmsg++; return (0); } p = (xmmsg*) al_next(proc->xmp_msgs, p); } /* * No matching message aggregate found. Add a new one. */ return ((al_append(proc->xmp_msgs, msg) == 0) ? LAMERROR : 0); } /* * xmpi_db_settime * * Function: - set current time to given time * - find first trace at that time */ void xmpi_db_settime(double time) { int i; /* favourite index */ struct xmdbproc *p; /* favourite pointer */ /* * If current time setting is ok, do nothing. */ if (time == dbase.xdb_curtime) return; /* * Adjust each process' current trace to given time. */ p = dbase.xdb_procs; for (i = 0; i < dbase.xdb_nprocs; ++i, ++p) p->xdbp_curtrace = db_findtrace(time, p); dbase.xdb_curtime = time; } /* * xmpi_db_getlpeer * * Function: - return peer local rank * Accepts: - context ID * - my global rank * - peer global rank (may be me) * Returns: - peer local rank or LAMERROR */ int xmpi_db_getlpeer(int cid, int grank, int gpeer) { struct xmdbcid *p; /* favourite pointer */ LIST *list; /* list of cids */ int i; /* favourite index */ /* * Find a matching context ID entry. */ list = dbase.xdb_cids; for (p = (struct xmdbcid *) al_top(list); p; p = (struct xmdbcid *) al_next(list, (char *) p)) { if (p->xdbc_cid != cid) continue; if (p->xdbc_nrprocs <= 0) { /* * Match found and it is an intracommunicator. */ i = group_index(grank, p->xdbc_lgrp, p->xdbc_nlprocs); if (i >= 0) { if (grank == gpeer) { return (i); } else { return (group_index(gpeer, p->xdbc_lgrp, p->xdbc_nlprocs)); } } } else { /* * Match found and it is an intercommunicator. */ i = group_index(grank, p->xdbc_lgrp, p->xdbc_nlprocs); if (i >= 0) { if (grank == gpeer) { return (i); } else { return (group_index(gpeer, p->xdbc_rgrp, p->xdbc_nrprocs)); } } i = group_index(grank, p->xdbc_rgrp, p->xdbc_nrprocs); if (i >= 0) { if (grank == gpeer) { return (i); } else { return (group_index(gpeer, p->xdbc_lgrp, p->xdbc_nlprocs)); } } } } return (LAMERROR); } /* * xmpi_db_getgpeer * * Function: - return peer global rank * Accepts: - context ID * - my global rank * - peer local rank * Returns: - peer global rank or LAMERROR */ int xmpi_db_getgpeer(int cid, int grank, int lpeer) { struct xmdbcid *p; /* favourite pointer */ int i; /* favourite index */ LIST *list; /* list of cids */ /* * Find a matching context ID entry. */ list = dbase.xdb_cids; for (p = (struct xmdbcid *) al_top(list); p; p = (struct xmdbcid *) al_next(list, (char *) p)) { if (p->xdbc_cid != cid) continue; if (p->xdbc_nrprocs == 0) { /* * Intracommunicator. */ if (lpeer >= p->xdbc_nlprocs) continue; /* * Check if my global rank is in it. */ i = group_index(grank, p->xdbc_lgrp, p->xdbc_nlprocs); if (i >= 0) return (p->xdbc_lgrp[lpeer].gps_grank); } else { /* * Intercommunicator. First check if my global rank is in local group. */ i = group_index(grank, p->xdbc_lgrp, p->xdbc_nlprocs); if (i >= 0) { if (lpeer < p->xdbc_nrprocs) return (p->xdbc_rgrp[lpeer].gps_grank); else return (LAMERROR); } /* * Not in local group. Check if my global rank is in remote group. */ i = group_index(grank, p->xdbc_rgrp, p->xdbc_nrprocs); if (i >= 0) { if (lpeer < p->xdbc_nlprocs) return (p->xdbc_lgrp[lpeer].gps_grank); else return (LAMERROR); } } } return (LAMERROR); } /* * group_index * * Function: - find index of process in a group * Accepts: - global rank of process * - ptr group GPS * - size of group * Returns: - index in group or if not present LAMERROR */ static int group_index(int rank, struct _gps *group, int n) { int i; struct _gps *pg; for (i = 0, pg = group; i < n; ++i, ++pg) { if (pg->gps_grank == rank) return (i); } return (LAMERROR); } /* * xmpi_db_getcomm * * Function: - get communicator processes * Accepts: - context ID * - member global rank * - array of GPS (out) * - num processes local group (out) * - num processes remote group (out) * - local/remote flag (out) * * If no matching communicator processes can be found the number * of processes in the local group is returned as zero. * In case of an intra-comm the number of processes in the group * is returned in the num processes local group parameter and 0 * is returned for the num processes remote group parameter. In * case of an inter-comm flag is returned as 1 if member global * rank is in the local group and 0 if in the remote group. */ void xmpi_db_getcomm(int cid, int grank, struct _gps **pgps, int *nlocal, int *nremote, int *islocal) { struct xmdbcid *p; /* favourite pointer */ int i; /* favourite index */ LIST *list; /* list of cids */ /* * Find a matching context ID entry. */ list = dbase.xdb_cids; cid = xmpi_coll2pt(cid); for (p = (struct xmdbcid *) al_top(list); p; p = (struct xmdbcid *) al_next(list, (char *) p)) { if (p->xdbc_cid != cid) continue; if (p->xdbc_nrprocs == 0) { /* * Intracommunicator. Check if my global rank is in it. */ i = group_index(grank, p->xdbc_lgrp, p->xdbc_nlprocs); if (i >= 0) { *pgps = p->xdbc_lgrp; *nlocal = p->xdbc_nlprocs; *nremote = 0; *islocal = 1; return; } } else { /* * Intercommunicator. First check if member global rank is in local group. */ i = group_index(grank, p->xdbc_lgrp, p->xdbc_nlprocs); if (i >= 0) { *pgps = p->xdbc_lgrp; *nlocal = p->xdbc_nlprocs; *nremote = p->xdbc_nrprocs; *islocal = 1; return; } /* * Not in local group. Check if member global rank is in remote group. */ i = group_index(grank, p->xdbc_rgrp, p->xdbc_nrprocs); if (i >= 0) { *pgps = p->xdbc_lgrp; *nlocal = p->xdbc_nlprocs; *nremote = p->xdbc_nrprocs; *islocal = 0; return; } } } *nlocal = 0; } /* * xmpi_db_getdtype * * Function: - get datatype description for a process * Accepts: - process global rank * - datatype index * Returns: - datatype trace if found, else 0 if dtype is * in range of all known basic types, else -1 */ void * xmpi_db_getdtype(int rank, int dtype) { struct xmdbdt dtelem; /* datatype element */ struct xmdbdt *p; /* favourite pointer */ LIST *list; /* list of datatypes */ void *trace = 0; /* datatype trace */ list = dbase.xdb_procs[rank].xdbp_dtypes; if (list) { dtelem.xdbd_dtype = dtype; if ((p = (struct xmdbdt *) al_find(list, (char *) &dtelem))) { trace = p->xdbd_dtbuf; } } if (!trace && (dtype > XMPI_MAX_BASIC_TYPE)) { return ((void *) -1); } else { return (trace); } } /* * db_findtrace * * Function: - locate process trace at given time * Accepts: - time * - ptr process entry * Returns: - ptr trace or NULL */ static struct xmdbtr * db_findtrace(double time, struct xmdbproc *proc) { struct xmdbtr *p; /* favourite pointer */ LIST *trlist; /* list of traces */ /* * Set current trace. */ trlist = proc->xdbp_traces; p = proc->xdbp_curtrace; if (p == 0) { if (dbase.xdb_curtime <= ((dbase.xdb_mintime + dbase.xdb_maxtime) / 2)) { p = (struct xmdbtr *) al_top(trlist); } else { p = (struct xmdbtr *) al_bottom(trlist); } if (p == 0) return (p); } /* * Loop (forward or backward) finding the valid trace. */ while (p) { if ((time >= p->xdbt_time) && (time <= (p->xdbt_time + p->xdbt_lapse))) { break; } else if (time < p->xdbt_time) { p = (struct xmdbtr *) al_prev(trlist, (char *) p); } else { p = (struct xmdbtr *) al_next(trlist, (char *) p); } } if (p == 0) p = (struct xmdbtr *) al_bottom(trlist); return (p); } xmpi-2.2.3b8/src/xmpi/xmpi_db_int.cc0000664000076500007650000003676707725267005013026 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_db_int.cc,v 1.5 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - set up the internal structure of the database */ #include #include #include #include "xmpi_all_list.h" #include "lam.h" #include "xmpi.h" #include "xmpi_dbase.h" #include "xmpi_db_int.h" /* * local functions */ static double find_maxtime(); static double find_mintime(); static int normalize_times(int, double, double); static int sender_lists(); static void link_to_senders(); static int link_and_adjust(); static struct xmdbtr *find_send(int, struct xmdbenv*, struct xmdbtr**); static void settachyon(struct xmdbtr *, struct xmdbtr*, double*, int*, int*, int); static int detachyon(double*, int*, int*, int); static void make_nodelist(int*, int*, int*); extern "C" { static int trtime_cmp(const void *, const void *); } /* * external variables */ extern struct xmdb dbase; /* database */ extern struct dbparse *dbp; /* array parsing state */ /* * xmpi_db_internals * * Function: - set up the database internal structures * Returns: - 0 or LAMERROR */ int xmpi_db_internals() { struct xmdbproc *proc; /* process in database */ int i; /* * The current trace for each process starts out as the first one. */ for (i = dbase.xdb_nprocs, proc = dbase.xdb_procs; i > 0; i--, proc++) { proc->xdbp_curtrace = (xmdbtr *) al_top(proc->xdbp_traces); } /* * Connect the sends/receives with arrows and adjust times. */ if (link_and_adjust()) { return (LAMERROR); } dbase.xdb_mintime = find_mintime(); dbase.xdb_maxtime = find_maxtime(); /* * Set up the back linked lists of senders and make links from the traces to * these sender lists. */ if (sender_lists()) { return (LAMERROR); } link_to_senders(); return (0); } /* * find_maxtime * * Function: - find maximum time in database * Returns: - maximum end time over all traces */ static double find_maxtime() { struct xmdbproc *proc; /* process in database */ struct xmdbtr *p; double tmax; /* maximum time */ int i; tmax = 0.0; proc = dbase.xdb_procs; for (i = 0; i < dbase.xdb_nprocs; i++, proc++) { p = (xmdbtr *) al_bottom(proc->xdbp_traces); if (p->xdbt_time + p->xdbt_lapse > tmax) { tmax = p->xdbt_time + p->xdbt_lapse; } } return (tmax); } /* * find_mintime * * Function: - find minimum time in database * Returns: - minimum end time over all traces */ static double find_mintime() { struct xmdbproc *proc; /* process in database */ struct xmdbtr *p; double tmin; /* minimum time */ int i; proc = dbase.xdb_procs; p = (xmdbtr *) al_top(proc->xdbp_traces); tmin = p->xdbt_time; for (i = 1, proc++; i < dbase.xdb_nprocs; i++, proc++) { p = (xmdbtr *) al_top(proc->xdbp_traces); if (p->xdbt_time < tmin) { tmin = p->xdbt_time; } } return (tmin); } /* * normalize_times * * Function: - normalize all times for a process * - updates the minimum trace lapse * Accepts: - rank of process * - time to adjust by * - min start time of segment (already adjusted) * Returns: - 0 or LAMERROR */ static int normalize_times(int rank, double adjtime, double mintime) { struct xmdbtr xtr; /* database runtime trace */ struct xmdbproc *proc; /* process in database */ struct xmdbtr *p, *q; struct xmdbbuoy *buoy; /* pointer to (soon) array of buoys */ double minlapse; /* minimum trace lapse */ memset(&xtr, 0, sizeof(xtr)); proc = dbase.xdb_procs + rank; if ((p = (xmdbtr *) al_top(proc->xdbp_traces)) == 0) { errno = EIMPOSSIBLE; return (LAMERROR); } p->xdbt_time += adjtime; minlapse = p->xdbt_lapse; if (p->xdbt_time > mintime) { /* * Insert undefined trace at start of trace list. */ xtr.xdbt_state = XMPI_SUNDEF; xtr.xdbt_time = mintime; xtr.xdbt_lapse = p->xdbt_time - mintime; xtr.xdbt_arrow = 0; xtr.xdbt_arrowdir = XMPI_DBNA; xtr.xdbt_senders = 0; xtr.xdbt_grank = rank; xtr.xdbt_systotal = 0.0; xtr.xdbt_blktotal = 0.0; if (al_insert(proc->xdbp_traces, &xtr) == 0) { return (LAMERROR); } } /* * Normalize all traces for process. */ q = p; p = (xmdbtr *) al_next(proc->xdbp_traces, p); while (p) { p->xdbt_time += adjtime; if (p->xdbt_lapse < minlapse) { minlapse = p->xdbt_lapse; } /* * Ensure that there are no time black holes. This step is necessary * because FP arithmetic may not be commutative, i.e. if a + b == c then * it does not necessarily follow that (a - x) + b == c - x. */ q->xdbt_lapse = p->xdbt_time - q->xdbt_time; q = p; p = (xmdbtr *) al_next(proc->xdbp_traces, p); } /* * Update database minimum lapse time. */ if (minlapse < dbase.xdb_minlapse) { dbase.xdb_minlapse = minlapse; } // buoy time corrections if ((buoy = (xmdbbuoy*) al_top(proc->xdbp_buoys))) { while (buoy) { buoy->xdbb_time += adjtime; buoy = (xmdbbuoy*) al_next(proc->xdbp_buoys, buoy); } } return (0); } /* * sender_lists * * Function: - create the back linked lists of senders to each * process * Returns: - 0 or LAMERROR */ static int sender_lists() { struct xmdbtr **p; struct xmdbtr **sp; struct xmdbtr **senders; /* array pointers to senders */ struct dbparse *pp; /* parsing state */ int smax; /* maximum number of senders */ int n; /* number of senders */ int i; int j; /* * Find maximum number of senders to any one process. */ smax = 0; for (i = 0, pp = dbp; i < dbase.xdb_nprocs; i++, pp++) { if ((n = al_count(pp->dbp_senders)) > smax) { smax = n; } } if (smax == 0) { return (0); } senders = (struct xmdbtr **) malloc(smax * sizeof(struct xmdbtr *)); if (senders == 0) return (LAMERROR); /* * Loop through processes. */ for (i = 0, pp = dbp; i < dbase.xdb_nprocs; i++, pp++) { /* * Make array of pointers to traces that are sends to current process (i). */ p = (xmdbtr **) al_top(pp->dbp_senders); sp = senders; /* * Loop through traces. Add to the array a pointer to each trace that is * a send to destination process i. */ while (p) { *(sp++) = *p; p = (xmdbtr **) al_next(pp->dbp_senders, p); } /* * Sort the sender array and then make the backwards linked list of senders * and put it in the database. */ n = al_count(pp->dbp_senders); qsort((char *) senders, n, sizeof(struct xmdbtr *), trtime_cmp); p = senders + n - 1; for (j = n; j > 0; j--, p--) { if (al_append(dbase.xdb_procs[i].xdbp_msgsnd, p) == 0) { free((char *) senders); return (LAMERROR); } } } free((char *) senders); return (0); } /* * trtime_cmp * * Function: - compare trace times * Accepts: - ptr to ptr to trace * - ptr to ptr to trace * Returns: - returns -1/0/1 comparison */ static int trtime_cmp(const void *a, const void *b) { struct xmdbtr **aa = (struct xmdbtr **) a; struct xmdbtr **bb = (struct xmdbtr **) b; return (((*aa)->xdbt_time < (*bb)->xdbt_time) ? -1 : ((*aa)->xdbt_time == (*bb)->xdbt_time) ? 0 : 1); } /* * link_to_senders * * Function: - sets the link from each trace into the list of * senders */ static void link_to_senders() { struct xmdbproc *proc; /* process in database */ struct xmdbtr **s; /* sender */ struct xmdbtr *p; int i; /* * Loop through processes. */ for (i = 0, proc = dbase.xdb_procs; i < dbase.xdb_nprocs; proc++, i++) { /* * Loop through traces setting link for each trace. Links must previously * have been initialized to null. */ s = (xmdbtr**) al_top(proc->xdbp_msgsnd); p = (xmdbtr*) al_bottom(proc->xdbp_traces); while (s != 0 && p != 0) { if (p->xdbt_time + p->xdbt_lapse >= (*s)->xdbt_time) { p->xdbt_senders = s; } else { s = (xmdbtr**) al_next(proc->xdbp_msgsnd, s); while (s != 0 && ((p->xdbt_time + p->xdbt_lapse) < (*s)->xdbt_time)) { s = (xmdbtr**) al_next(proc->xdbp_msgsnd, s); } p->xdbt_senders = s; } p = (xmdbtr*) al_prev(proc->xdbp_traces, p); } } } /* * link_and_adjust * * Function: - make arrow connections between sends and receives, * de-tachyon and normalize database times. * Returns: - 0 or LAMERROR */ static int link_and_adjust() { struct xmdbproc *proc; /* process in database */ struct xmdbtr *r; /* receiver trace */ struct xmdbtr *s; /* sender trace */ struct xmdbtr **last; /* last sender trace */ struct dbparse *pp; /* parsing state */ double *tachyons; /* tachyons */ int *istach; /* tachyon flags */ int nnodes; /* number of nodes */ int *nodes; /* array of nodes */ int *nodei; /* array of indices */ int nprocs; /* number of processes */ int *p; int i; nprocs = dbase.xdb_nprocs; if ((nodes = (int *) malloc(nprocs * sizeof(int))) == 0) { return (LAMERROR); } if ((nodei = (int *) malloc(nprocs * sizeof(int))) == 0) { free((char *) nodes); return (LAMERROR); } /* * Create an array of nodeid's and of index of each process in this array. */ make_nodelist(nodei, nodes, &nnodes); tachyons = (double *) malloc(nnodes * nnodes * sizeof(double)); if (tachyons == 0) { free((char *) nodes); free((char *) nodei); return (LAMERROR); } if ((istach = (int *) malloc(nnodes * nnodes * sizeof(int))) == 0) { free((char *) nodes); free((char *) nodei); free((char *) tachyons); return (LAMERROR); } for (i = 0, p = istach; i < nnodes * nnodes; i++, p++) { *p = 0; } /* * Link arrows recording tachyons. */ proc = dbase.xdb_procs; pp = dbp; for (i = 0; i < dbase.xdb_nprocs; i++, proc++, pp++) { last = (xmdbtr **) al_bottom(pp->dbp_senders); r = (xmdbtr *) al_bottom(proc->xdbp_traces); while (r != 0) { if (r->xdbt_arrowdir == XMPI_DBIN) { s = (xmdbtr *) find_send(i, &r->xdbt_envelop, last); if (s != 0) { r->xdbt_arrow = s; s->xdbt_arrow = r; settachyon(r, s, tachyons, istach, nodei, nnodes); } } r = (xmdbtr *) al_prev(proc->xdbp_traces, r); } } /* * De-tachyon the database. */ detachyon(tachyons, istach, nodei, nnodes); free((char *) tachyons); free((char *) istach); free((char *) nodei); free((char *) nodes); return (0); } /* * find_send * * Function: - find the send corresponding to a receive * Accepts: - rank of process doing the receive * - received message envelope * - last send trace */ static struct xmdbtr * find_send(int rank, struct xmdbenv *env, struct xmdbtr **s) { struct dbparse *pp; /* parsing state */ int gpeer; /* peer global rank */ pp = dbp + rank; gpeer = xmpi_db_getgpeer(env->xdbe_cid, rank, (env->xdbe_lpeer == -1) ? env->xdbe_mlpeer : env->xdbe_lpeer); while (s != 0) { if (((*s)->xdbt_arrow == 0) && ((*s)->xdbt_envelop.xdbe_seqnum == env->xdbe_seqnum) && ((*s)->xdbt_grank == gpeer)) { return (*s); } s = (xmdbtr **) al_prev(pp->dbp_senders, s); } return (0); } /* * settachyon * * Function: - record a tachyon * Accepts: - receive trace * - send trace * - tachyon array * - tachyon is recorded array * - array indexing processes to nodes * - number of nodes */ static void settachyon(struct xmdbtr *recv, struct xmdbtr *send, double *tachyons, int *istach, int *nodei, int nnodes) { double diff; /* time difference */ double *t; /* ptr in tachyon array */ int *it; /* ptr in tach. rec. array */ int r; /* rank of receiver */ int s; /* rank of sender */ r = recv->xdbt_grank; s = send->xdbt_grank; if (nodei[r] == nodei[s]) { return; } it = istach + nodei[r] * nnodes + nodei[s]; t = tachyons + nodei[r] * nnodes + nodei[s]; diff = send->xdbt_time - (recv->xdbt_time + recv->xdbt_lapse); if (*it) { if (diff > *t) { *t = diff; } } else { *t = diff; *it = 1; } } /* * detachyon * * Function: - detachyon and adjust times in the database * - all processes set to start at time 0. * Accepts: - tachyon array * - tachyon is recorded array * - array indexing processes to nodes * - number of nodes * Returns: - 0 or LAMERROR */ static int detachyon(double *tachyon, int *istachyon, int *nodei, int nn) #define istach(r,s) (*(istachyon + (nn * (r)) + (s))) #define tach(r,s) (*(tachyon + (nn * (r)) + (s))) { struct dbparse *pp; /* parsing state */ double t; /* time */ double tmin; /* overall minimum time */ double segtmin; /* segment minimum time */ double *adjust; /* array of time adjustments */ int advance; /* backard/forward tachyon? */ int i, j, k; /* favourite indices */ if ((adjust = (double *) malloc(nn * sizeof(double))) == 0) { return (LAMERROR); } adjust[0] = 0.0; for (i = 1; i < nn; i++) { adjust[i] = 0.0; advance = 0; /* * Determine adjustment to clock of node i relative to nodes 0...(i-1). */ for (k = 0; k < i; k++) { if (istach(i, k) && advance != -1) { t = tach(i, k); if (t > adjust[i]) { adjust[i] = t; advance = 1; } } else if (istach(k, i) && advance != 1) { t = tach(k, i); if (t > adjust[i]) { adjust[i] = t; advance = -1; } } } /* * Update tachyons of nodes (i+1)...n relative to node i. */ if (advance) { adjust[i] *= advance; for (j = i + 1; j < nn; j++) { if (istach(j, i)) tach(j, i) += adjust[i]; if (istach(i, j)) tach(i, j) -= adjust[i]; } } } /* * Find application start time taking into account adjustments. */ pp = dbp; tmin = pp->dbp_start + adjust[nodei[0]]; for (i = 1, pp++; i < dbase.xdb_nprocs; i++, pp++) { t = pp->dbp_start + adjust[nodei[i]]; if (t < tmin) { tmin = t; } } /* * Find segment start time taking into account normalization. */ pp = dbp; segtmin = pp->dbp_curseg->oo_ontime + adjust[nodei[0]] - tmin; for (i = 1, pp++; i < dbase.xdb_nprocs; i++, pp++) { t = pp->dbp_curseg->oo_ontime + adjust[nodei[i]] - tmin; if (t < segtmin) { segtmin = t; } } /* * Adjust all the times in the database. */ for (i = 0; i < dbase.xdb_nprocs; i++) { if (normalize_times(i, adjust[nodei[i]] - tmin, segtmin)) { free((char *) adjust); return (LAMERROR); } } free((char *) adjust); return (0); } /* * make_nodelist * * Function: - make array of nodes and index processes into it * Accepts: - array of indices (out) * - array of nodes (out) * - number of nodes (out) */ static void make_nodelist(int *indices, int *nodes, int *numnodes) { struct xmdbproc *p; int done; /* node already in array? */ int i, j; *numnodes = 0; for (i = 0, p = dbase.xdb_procs; i < dbase.xdb_nprocs; i++, p++) { for (j = 0, done = 0; j < *numnodes && !done; j++) { done = (p->xdbp_node == nodes[j]); } if (!done) { *(nodes + *numnodes) = p->xdbp_node; indices[i] = *numnodes; (*numnodes)++; } else { indices[i] = j - 1; } } } xmpi-2.2.3b8/src/xmpi/xmpi_db_parse.cc0000664000076500007650000007337107725267005013336 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_db_parse.cc,v 1.10 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - parse a trace file into the database and view it */ #include #include #include #include #include #include #include #include using namespace std; #include "xmpi_all_list.h" #include "lam.h" #include "lamtrace.h" #include "xmpi.h" #include "xmpi_dbase.h" #include "xmpi_db_parse.h" #include "xmpi_ctl.h" #include "xmpi_error.h" #include "xmpi_dtype.h" #include "xmpi_tr_segment.h" #include "xmpi_kiviat.h" #include "xmpi_trace.h" #include "xmpi_matrix.h" #include "xmpi_view.h" #include "xmpi_db_int.h" /* * private functions */ static int parse_beginning(); static int missing_traces(int, struct dbparse*); static int parse_comm(); static int parse_dtype(int); static int parse_iof(int); static int parse_rtime(int); static int append_substrate(int, double); static int db_find_rank(int, int); static int db_init(int, struct _gps*); static void free_commnames(); static void free_cids(LIST*); static void free_dtypes(LIST*); static int add_cid(struct xmdbcid*); static void free_parse_structs(); static struct dbparse *create_parse_structs(); static char* db_parse_get_commname(int, int4); extern "C" { static int dtype_cmp(void*, void*); static int buoy_cmp(void*, void*); static int tr_cmp(void*, void*); static int cid_cmp(void*, void*); static int onoff_cmp(void*, void*); } /* * public variables */ struct dbparse *dbp = 0; /* array parsing state */ int xmpi_is_express = 0; /* current appl. trace view? */ int xmpi_do_express = 0; /* creating current app view */ /* * external variables */ extern struct xmdb dbase; /* database */ extern FILE *trace_stream; /* * private variables */ static struct trsrc src; /* src trace */ static vector< map > *curr_commname(0); static vector used_commnames; static bool printed_color_warning(false); /* * xmpi_parse_tracefile * * Function: - parse a trace file into the database * Accepts: - open stream to trace file */ void xmpi_parse_tracefile(FILE *file) { int maxsegs = 0; /* maximum # of segments */ int nsegs; /* number of segments */ struct dbparse *pp; /* parsing state */ int i; lamtr_set_stream(file); /* * Parse up to end of trace segment on/off traces. */ xmpi_ctl_setinfo((char*) "Parsing trace file..."); xmpi_busy(); if (parse_beginning()) { xmpi_db_free(); xmpi_ctl_resetinfo(); xmpi_unbusy(); return; } /* * Check that we have at least one segment. */ for (i = 0, pp = dbp; i < dbase.xdb_nprocs; i++, pp++) { if ((nsegs = al_count(pp->dbp_segs)) > maxsegs) maxsegs = nsegs; } if (maxsegs == 0) { xmpi_db_free(); errno = 0; xmpi_error(0, (char*) "No segments found in trace file."); xmpi_ctl_resetinfo(); xmpi_unbusy(); return; } /* * Select, parse and view a segment. */ xmpi_tr_select_segment(maxsegs); } /* * parse_beginning * * Function: - parse beginning of trace file up to segment selection * Returns: - 0 or LAMERROR */ static int parse_beginning() { struct _gps *world; /* GPS array */ int4 nprocs; /* number of processes */ int rank; /* rank of process */ int err; /* file read error status */ printed_color_warning = false; /* * Read the size of the world and the process GPS array. */ if (lamtr_parse_world(&nprocs, &world)) { if (errno == EINVAL) { errno = 0; xmpi_error(0, (char*) "Bad world trace in trace file."); } else { xmpi_error(0, (char*) "Parsing world trace"); } return (LAMERROR); } // so that I can do all the vector stuff... if (curr_commname) delete curr_commname; curr_commname = new vector< map >(nprocs); /* * Initialize the database with the world information. */ if (db_init((int) nprocs, world)) { xmpi_error(0, (char*) "Initialiazing database"); return (LAMERROR); } free((char *) world); /* * Create the parsing state data structures. */ if (create_parse_structs() == 0) { xmpi_error(0, (char*) "Creating parsing state data structures"); return (LAMERROR); } /* * Read and parse the init/on/off traces. */ while ((err = lamtr_raw_src_m(src)) == 0) { mttoli4((int4 *) & src, sizeof(struct trsrc) / sizeof(int4)); rank = db_find_rank(src.trs_node, src.trs_pid); if (rank < 0) { errno = 0; xmpi_error(0, (char*) "Invalid trace."); return (LAMERROR); } if (src.trs_listno == TRONOFF) { if (parse_iof(rank)) { return (LAMERROR); } } else if (src.trs_listno == TRCOMM || src.trs_listno == TRDTYPE || src.trs_listno == TRRUNTIME) { /* * At end of init/on/off traces. */ break; } else { errno = 0; xmpi_error(0, (char*) "Invalid trace."); return (LAMERROR); } } if (err == 1) { errno = 0; xmpi_error(0, (char*) "Unexpected EOF parsing trace file."); } else if (err < 0) { xmpi_error(0, (char*) "Parsing trace file"); } return ((err == 0) ? 0 : LAMERROR); } /* * xmpi_db_view * * Function: - view the current database */ void xmpi_db_view() { /* * Clear the old application or trace. */ xmpi_dt_clear(); xmpi_kv_popdown(); xmpi_tr_destroy(); if (!xmpi_do_express) { xmpi_mat_destroy(); xmpi_vw_clear(); } XmUpdateDisplay(xmpi_shell); /* * View the current trace. */ xmpi_tr_create(); xmpi_vw_dbsetmode(1); xmpi_is_express = xmpi_do_express; if (xmpi_do_express && xmpi_vw_getprocs()) { xmpi_vw_update(1); } else { xmpi_vw_init(); } xmpi_do_express = 0; xmpi_ctl_setsensitive(XMPI_BSNAPSHOT, False); xmpi_ctl_setsensitive(XMPI_BKIVIAT, True); xmpi_ctl_setsensitive(XMPI_BMATRIX, True); xmpi_ctl_resetinfo(); } /* * xmpi_db_parse_segment * * Function: - parse a trace segment * - src header of first run-time trace has been read * Accepts: - segment to parse * Returns: - 0 or LAMERROR */ int xmpi_db_parse_segment(int seg) { struct dbparse *pp; /* parsing state */ struct onoff ooelem; /* onoff search element */ int rank; /* rank of process */ int err; /* error status */ int i; /* * Set the segment for each process and initialize. */ ooelem.oo_segment = seg; for (i = 0, pp = dbp; i < dbase.xdb_nprocs; i++, pp++) { if ((pp->dbp_curseg = (onoff*) al_find(pp->dbp_segs, &ooelem))) { pp->dbp_curseg->oo_rton = 0; pp->dbp_curseg->oo_rtoff = 0; pp->dbp_end = pp->dbp_curseg->oo_ontime; } else { errno = 0; xmpi_error(0, (char*) "No segment found for process."); return (LAMERROR); } } /* * Parse the communicator, datatype and runtime traces. */ do { rank = db_find_rank(src.trs_node, src.trs_pid); if (rank < 0) { errno = 0; xmpi_error(0, (char*) "Invalid trace."); return (LAMERROR); } switch (src.trs_listno) { case TRCOMM: if (parse_comm()) { return (LAMERROR); } break; case TRDTYPE: if (parse_dtype(rank)) { return (LAMERROR); } break; case TRRUNTIME: if (parse_rtime(rank)) { return (LAMERROR); } break; default: errno = 0; xmpi_error(0, (char*) "Invalid trace."); return (LAMERROR); } /* * Read in the next trace src header. */ err = lamtr_raw_src_m(src); if (err == 1) { break; /* eof */ } else if (err) { xmpi_error(0, (char*) "Parsing trace file"); return (LAMERROR); } mttoli4((int4 *) & src, sizeof(struct trsrc) / sizeof(int4)); } while (1); /* * Handle cases of missing traces for each process. */ for (i = 0, pp = dbp; i < dbase.xdb_nprocs; i++, pp++) { if (missing_traces(i, pp)) { xmpi_error(0, (char*) "Parsing trace file"); return (LAMERROR); } } /* * All traces have been read. Set up the database internal structures. */ if (xmpi_db_internals()) { xmpi_error(0, (char*) "Internal database error"); return (LAMERROR); } /* * Done with parsing state. */ free_parse_structs(); return (0); } /* * missing_traces * * Function: - make sure database traces are consistent in case of * missing traces * Accepts: - process rank * - parsing state */ static int missing_traces(int rank, struct dbparse *pp) { if (!pp->dbp_curseg->oo_inoff) { if (pp->dbp_curseg->oo_rtoff) { /* * No initial off trace found but a run-time off trace found. * Report an error as this should not happen. */ errno = 0; xmpi_error(0, (char*) "Invalid trace file."); return (LAMERROR); } else if (!al_top(dbase.xdb_procs[rank].xdbp_traces)) { /* * There are traces at all. Insert a short running trace. Since there * was no initial off trace we cannot deduce that traces were dropped at * the end. */ pp->dbp_sub = XMPI_SRUN; if (append_substrate(rank, pp->dbp_curseg->oo_ontime + 1.0)) { xmpi_error(0, (char*) "While parsing"); return (LAMERROR); } pp->dbp_end = pp->dbp_curseg->oo_ontime + 1.0; } } else if (!pp->dbp_curseg->oo_rtoff) { /* * No runtime off trace was found hence runtime traces are missing at the end. */ pp->dbp_sub = XMPI_SMISSING; if (append_substrate(rank, pp->dbp_curseg->oo_offtime)) { xmpi_error(0, (char*) "while parsing"); return (LAMERROR); } pp->dbp_end = pp->dbp_curseg->oo_offtime; } return (0); } /* * parse_comm * * Function: - parse a communicator trace * Returns: - 0 or LAMERROR */ static int parse_comm() { struct xmdbcid xmcid; /* cid database entry */ struct _gps *grps; /* group GPS */ /* * Read the communicator trace. */ if (lamtr_parse_comm(&xmcid.xdbc_cid, &xmcid.xdbc_nlprocs, &xmcid.xdbc_nrprocs, &grps)) { return (LAMERROR); } xmcid.xdbc_lgrp = grps; xmcid.xdbc_rgrp = grps + xmcid.xdbc_nlprocs; /* * Add the cid to the database. */ if (add_cid(&xmcid)) { free((char *) grps); return (LAMERROR); } return (0); } /* * parse_dtype * * Function: - parse a datatype trace * Accepts: - rank of process that generated the trace * Returns: - 0 or LAMERROR */ static int parse_dtype(int rank) { struct xmdbdt xmdt; /* datatype database entry */ /* * Read the datatype trace. */ if (lamtr_parse_dtype(&xmdt.xdbd_dtype, &xmdt.xdbd_dtbuf)) { return (LAMERROR); } /* * Add the datatype to the database. */ if (al_append(dbase.xdb_procs[rank].xdbp_dtypes, &xmdt) == 0) { return (LAMERROR); } return (0); } /* * parse_iof * * Function: - parse a init/on/off trace * Accepts: - rank of process that generated the trace * Returns: - 0 or LAMERROR */ static int parse_iof(int rank) { struct trrthdr rthdr; /* run-time header */ struct tronoff onoff; /* onoff trace data */ struct trinit init; /* init data */ struct onoff ooelem; /* onoff list element */ struct onoff *pelem; /* matched onoff list element */ struct dbparse *pp; /* parsing state */ float8 trtime; /* trace time */ float8 skew; /* cloack skew */ int4 type; /* trace type */ int4 segment; /* trace segment number */ char *name; /* program name */ /* * Read the run-time header. */ if (lamtr_raw_rthdr_m(rthdr)) { return (LAMERROR); } lamtr_xt_rt_time_m(&rthdr, &trtime); lamtr_xt_rt_type_m(&rthdr, &type); /* * Parse according to the type of trace. */ pp = dbp + rank; switch (type) { case TRTINIT: if (lamtr_raw_init_m(init)) { return (LAMERROR); } lamtr_xt_init_skew_m(&init, &skew); lamtr_xt_init_prog_m(&init, name); strncpy(dbase.xdb_procs[rank].xdbp_prog, name, TRDPROGMAX); pp->dbp_skew = skew; pp->dbp_start = trtime + skew; break; case TRTRON: case TRTROFF: if (lamtr_raw_onoff_m(onoff)) { return (LAMERROR); } lamtr_xt_onoff_num_m(&onoff, &segment); memset(&ooelem, 0, sizeof(ooelem)); ooelem.oo_segment = segment; if (type == TRTRON) { /* * Add a new segment description to the segment list for the current process. */ ooelem.oo_inoff = 0; ooelem.oo_ontime = trtime + pp->dbp_skew; if (al_insert(pp->dbp_segs, &ooelem) == 0) { return (LAMERROR); } } else { /* * It's a tracing off trace. Find the segment description and update it. */ if ((pelem = ((struct onoff*) al_find(pp->dbp_segs, &ooelem)))) { pelem->oo_inoff = 1; pelem->oo_offtime = trtime + pp->dbp_skew; } else { errno = 0; xmpi_error(0, (char*) "On/off trace mismatch."); return (LAMERROR); } } } return (0); } /* * parse_rtime * * Function: - parse a run-time trace * Accepts: - rank of process that generated the trace * Returns: - 0 or LAMERROR */ static int parse_rtime(int rank) { struct dbparse *pp; /* ptr parsing state */ struct onoff *oo; /* current seg. onoff data */ struct trrthdr rthdr; /* run-time header */ struct trmsg msg; /* message trace data */ struct tronoff onoff; /* onoff trace data */ struct trxchg xchg; /* substrate change data */ struct trbuoy buoy; /* buoy trace data */ struct trcommname commname; /* commname trace data */ struct trcolor color; /* color trace data */ struct xmdbbuoy xmbuoy1; /* buoy database */ struct xmdbtr xtrace; /* new database trace */ struct xmdbtr *dbtr; /* ptr to trace in database */ struct xmdbtr *sendtr; /* send trace */ int dest; /* destination process */ float8 trtime; /* trace time */ int4 type; /* trace type */ int4 segment; /* trace segment number */ char* tmpstring; memset(&xtrace, 0, sizeof(xtrace)); pp = dbp + rank; oo = pp->dbp_curseg; /* * Read the run-time header and adjust the trace time. */ if (lamtr_raw_rthdr_m(rthdr)) { return (LAMERROR); } lamtr_xt_rt_time_m(&rthdr, &trtime); lamtr_xt_rt_type_m(&rthdr, &type); trtime += pp->dbp_skew; /* * Parse according to the type of run-time trace. */ switch (type) { case TRTRON: case TRTROFF: if (lamtr_raw_onoff_m(onoff)) { return (LAMERROR); } lamtr_xt_onoff_num_m(&onoff, &segment); if (segment == oo->oo_segment) { if (type == TRTRON) { pp->dbp_sub = XMPI_SRUN; oo->oo_rton = 1; } else { if (append_substrate(rank, trtime)) { return (LAMERROR); } pp->dbp_end = trtime; oo->oo_rtoff = 1; } } break; case TRTSUBCHG: if (lamtr_raw_xchg_m(xchg)) { return (LAMERROR); } if ((trtime < oo->oo_ontime) || (oo->oo_inoff && (trtime > oo->oo_offtime))) { return (0); } if (append_substrate(rank, trtime)) { return (LAMERROR); } /* * Save the information for the new substrate. */ pp->dbp_end = trtime; lamtr_xt_xchg_m(&xchg, &pp->dbp_top, &pp->dbp_sub); if (pp->dbp_sub == XMPI_SRUN) { pp->dbp_top = 0; } break; case TRTINPUT: case TRTOUTPUT: case TRTNOIO: if (lamtr_raw_msg_m(msg)) { return (LAMERROR); } if ((trtime < oo->oo_ontime) || (oo->oo_inoff && (trtime > oo->oo_offtime))) { return (0); } /* * Add a substrate trace from the end of the last trace up until the start * of this one. */ if (append_substrate(rank, trtime)) { return (LAMERROR); } /* * Create and append a system time trace. */ mttoli4((int4 *) & msg, sizeof(struct trmsg) / sizeof(int4)); if (msg.trm_syst < 0 || msg.trm_blkt < 0) { errno = 0; xmpi_error(0, (char*) "Invalid trace: duration < 0."); return (LAMERROR); } if (msg.trm_syst == 0 && msg.trm_blkt == 0) { msg.trm_syst = 1; } xtrace.xdbt_envelop.xdbe_func = msg.trm_topfunc; xtrace.xdbt_envelop.xdbe_wfunc = msg.trm_wrapfunc; xtrace.xdbt_envelop.xdbe_seqnum = msg.trm_seqnum; xtrace.xdbt_envelop.xdbe_lpeer = msg.trm_peer; xtrace.xdbt_envelop.xdbe_mlpeer = msg.trm_mrank; xtrace.xdbt_envelop.xdbe_tag = msg.trm_tag; xtrace.xdbt_envelop.xdbe_cid = msg.trm_cid; xtrace.xdbt_envelop.xdbe_commname = db_parse_get_commname(rank, msg.trm_cid); xtrace.xdbt_envelop.xdbe_dtype = msg.trm_dtype; xtrace.xdbt_envelop.xdbe_count = msg.trm_count; xtrace.xdbt_envelop.xdbe_mtag = msg.trm_mtag; xtrace.xdbt_grank = rank; xtrace.xdbt_senders = 0; xtrace.xdbt_arrow = 0; if (msg.trm_syst > 0) { xtrace.xdbt_state = XMPI_SSYSTEM; xtrace.xdbt_time = trtime; xtrace.xdbt_lapse = (double) msg.trm_syst / 1000000.0; xtrace.xdbt_blktotal = pp->dbp_blktot; xtrace.xdbt_systotal = pp->dbp_systot; if (type == TRTNOIO) { xtrace.xdbt_arrowdir = XMPI_DBNA; } else if (type == TRTOUTPUT) { xtrace.xdbt_arrowdir = XMPI_DBOUT; xtrace.xdbt_arrowloc = XMPI_DBSTART; } else if (msg.trm_blkt == 0) { /* * It is an input and no blocking occurred so the input arrow must * go to the end of the system trace as there will be no blocking trace. */ xtrace.xdbt_arrowdir = XMPI_DBIN; xtrace.xdbt_arrowloc = XMPI_DBEND; } else { xtrace.xdbt_arrowdir = XMPI_DBNA; } dbtr = (xmdbtr*) al_append(dbase.xdb_procs[rank].xdbp_traces, &xtrace); if (dbtr == 0) return (LAMERROR); if (xtrace.xdbt_arrowdir == XMPI_DBOUT) { sendtr = dbtr; } pp->dbp_systot += xtrace.xdbt_lapse; pp->dbp_end = xtrace.xdbt_time + xtrace.xdbt_lapse; } if (msg.trm_blkt > 0) { /* * Add a blocking trace since some blocking occurred. */ xtrace.xdbt_state = XMPI_SBLOCK; xtrace.xdbt_time = (msg.trm_syst == 0) ? trtime : pp->dbp_end; xtrace.xdbt_lapse = (double) msg.trm_blkt / 1000000.0; xtrace.xdbt_blktotal = pp->dbp_blktot; xtrace.xdbt_systotal = pp->dbp_systot; if (type == TRTNOIO) { xtrace.xdbt_arrowdir = XMPI_DBNA; } else if (type == TRTINPUT) { xtrace.xdbt_arrowloc = XMPI_DBEND; xtrace.xdbt_arrowdir = XMPI_DBIN; } else if (msg.trm_syst == 0) { /* * It is an output and there was no system trace. */ xtrace.xdbt_arrowloc = XMPI_DBSTART; xtrace.xdbt_arrowdir = XMPI_DBOUT; } else { xtrace.xdbt_arrowdir = XMPI_DBNA; } dbtr = (xmdbtr*) al_append(dbase.xdb_procs[rank].xdbp_traces, &xtrace); if (dbtr == 0) return (LAMERROR); if (xtrace.xdbt_arrowdir == XMPI_DBOUT) { sendtr = dbtr; } pp->dbp_blktot += xtrace.xdbt_lapse; pp->dbp_end += xtrace.xdbt_lapse; } if (type == TRTOUTPUT) { /* * This is a send so append to the list of senders to the destination process. */ dest = xmpi_db_getgpeer(msg.trm_cid, rank, msg.trm_peer); if (dest >= 0) { if (al_append(dbp[dest].dbp_senders, &sendtr) == 0) { return (LAMERROR); } } } break; case TRTBUOY: if (lamtr_raw_buoy_m(buoy)) return (LAMERROR); strcpy(xmbuoy1.xdbb_name, buoy.trb_name); xmbuoy1.xdbb_time = trtime; if (al_insert(dbase.xdb_procs[rank].xdbp_buoys, &xmbuoy1) == 0) return (LAMERROR); break; case TRCOLORON: case TRCOLOROFF: // BWB: Not yet implemented. (for later release) Removed so that // all is well... if (lamtr_raw_color_m(color)) return (LAMERROR); if (!printed_color_warning) { printf("A COLORON/COLOROFF trace was found. " " These traces are the result of calls to either\n" "XMPI_Coloron() or XMPI_Coloroff() in your MPI program.\n\n" " At this time, these functions are not implemented in XMPI,\n" "and are only in LAM for release timing reasons. Please \n" "check the XMPI homepage for the next release of XMPI.\n\n"); printed_color_warning = true; } break; case TRCOMMNAME: if (lamtr_raw_commname_m(commname)) return (LAMERROR); if (strlen(commname.comm_name) != 0) { tmpstring = strdup(commname.comm_name); ((*curr_commname)[rank])[commname.cid] = tmpstring; used_commnames.push_back(tmpstring); } else (void) ((*curr_commname)[rank]).erase(commname.cid); break; default: errno = 0; xmpi_error(0, (char*) "Invalid trace."); return (LAMERROR); } return (0); } /* * append_substrate * * Function: - insert substrate trace before last trace and next * trace if required * Accepts: - process rank * - start time of next trace * Returns: - 0 or LAMERROR */ static int append_substrate(int rank, double nexttime) { struct xmdbtr xtr; /* database runtime trace */ struct dbparse *pp; /* parsing state */ pp = dbp + rank; /* * If start time of new trace is greater than the end time of the last trace * then add a substrate trace that goes between them. */ memset(&xtr, 0, sizeof(xtr)); if (nexttime > pp->dbp_end) { xtr.xdbt_envelop.xdbe_func = pp->dbp_top; xtr.xdbt_envelop.xdbe_wfunc = 0; xtr.xdbt_envelop.xdbe_lpeer = -1; xtr.xdbt_state = pp->dbp_sub; xtr.xdbt_arrow = 0; xtr.xdbt_arrowdir = XMPI_DBNA; xtr.xdbt_senders = 0; xtr.xdbt_time = pp->dbp_end; xtr.xdbt_lapse = nexttime - pp->dbp_end; xtr.xdbt_grank = rank; xtr.xdbt_systotal = pp->dbp_systot; xtr.xdbt_blktotal = pp->dbp_blktot; if (xtr.xdbt_state == XMPI_SSYSTEM) { pp->dbp_systot += xtr.xdbt_lapse; } else if (xtr.xdbt_state == XMPI_SBLOCK) { pp->dbp_blktot += xtr.xdbt_lapse; } if (al_append(dbase.xdb_procs[rank].xdbp_traces, &xtr) == 0) { return (LAMERROR); } } return (0); } /* * db_find_rank * * Function: - finds global rank corresponding to node and pid * Accepts: - node * - pid * Returns: - global rank corresponding to node and pid, else (-1) */ static int db_find_rank(int node, int pid) { struct xmdbproc *proc; /* process */ int i; proc = dbase.xdb_procs; for (i = 0; i < dbase.xdb_nprocs; i++, proc++) { if (proc->xdbp_node == node && proc->xdbp_pid == pid) { return (i); } } return (-1); } /* * db_init * * Function: - initialize the database with process info * Accepts: - number of processes * - array of GPS * Returns: - 0 or LAMERROR */ static int db_init(int nprocs, struct _gps *pgps) { struct xmdbproc *proc; /* process in database */ int i; /* * Free current database if any. */ if (dbase.xdb_nprocs != 0) { xmpi_db_free(); } dbase.xdb_procs = (struct xmdbproc *) malloc(nprocs * sizeof(struct xmdbproc)); if (dbase.xdb_procs == 0) { return (LAMERROR); } dbase.xdb_cids = al_init(sizeof(struct xmdbcid), cid_cmp); if (dbase.xdb_cids == 0) { free((char *) dbase.xdb_procs); return (LAMERROR); } dbase.xdb_nprocs = nprocs; dbase.xdb_mintime = 0.0; dbase.xdb_maxtime = 0.0; dbase.xdb_curtime = 0.0; dbase.xdb_minlapse = DBL_MAX; for (i = 0, proc = dbase.xdb_procs; i < nprocs; i++, proc++, pgps++) { proc->xdbp_node = pgps->gps_node; proc->xdbp_pid = pgps->gps_pid; proc->xdbp_prog[0] = 0; proc->xdbp_traces = 0; proc->xdbp_curtrace = 0; proc->xdbp_msgsnd = 0; proc->xdbp_dtypes = 0; } for (i = 0, proc = dbase.xdb_procs; i < nprocs; i++, proc++, pgps++) { proc->xdbp_traces = al_init(sizeof(struct xmdbtr), tr_cmp); proc->xdbp_dtypes = al_init(sizeof(struct xmdbdt), dtype_cmp); proc->xdbp_msgsnd = al_init(sizeof(struct xmdbtr *), 0); proc->xdbp_buoys = al_init(sizeof(struct xmdbbuoy), buoy_cmp); if (proc->xdbp_traces == 0 || proc->xdbp_dtypes == 0 || proc->xdbp_msgsnd == 0) { xmpi_db_free(); return (LAMERROR); } } return (0); } /* * xmpi_db_free * * Function: - frees the database */ void xmpi_db_free() { struct xmdbproc *proc; /* process in database */ int i; free_parse_structs(); if (dbase.xdb_nprocs == 0) { return; } proc = dbase.xdb_procs; for (i = 0; i < dbase.xdb_nprocs; i++, proc++) { if (proc->xdbp_dtypes) { free_dtypes(proc->xdbp_dtypes); } if (proc->xdbp_traces) { al_free(proc->xdbp_traces); } if (proc->xdbp_msgsnd) { al_free(proc->xdbp_msgsnd); } if (proc->xdbp_buoys) al_free(proc->xdbp_buoys); } free_cids(dbase.xdb_cids); free((char *) dbase.xdb_procs); dbase.xdb_nprocs = 0; free_commnames(); } // free_commnames // // Free all the commnames used in the tracefile... // static void free_commnames() { for (unsigned int i = 0 ; i < used_commnames.size() ; ++i) { free(used_commnames.back()); used_commnames.pop_back(); } } /* * free_cids * * Function: - frees a context ID list * Accepts: - context ID list */ static void free_cids(LIST *cids) { struct xmdbcid *cid; /* ptr context ID entry */ cid = (xmdbcid *) al_top(cids); while (cid) { free((char *) cid->xdbc_lgrp); cid = (xmdbcid *) al_next(cids, cid); } al_free(cids); } /* * free_dtypes * * Function: - frees a datatype list * Accepts: - datatype list */ static void free_dtypes(LIST *dtypes) { struct xmdbdt *dt; /* ptr datatype entry */ dt = (xmdbdt*) al_top(dtypes); while (dt) { free(dt->xdbd_dtbuf); dt = (xmdbdt*) al_next(dtypes, dt); } al_free(dtypes); } /* * dtype_cmp * * Function: - compare two datatype entries * Accepts: - ptr to two entries * Returns: - -1/0/+1 comparison */ static int dtype_cmp(void *a, void *b) { struct xmdbdt *dt1 = (struct xmdbdt *) a; struct xmdbdt *dt2 = (struct xmdbdt *) b; return ((dt1->xdbd_dtype < dt2->xdbd_dtype) ? -1 : ((dt1->xdbd_dtype > dt2->xdbd_dtype) ? 1 : 0)); } /* * buoy_cmp * * Function: - compare two buoy entries * Accepts: - ptr to two entries * Returns: - -1/0/+1 comparison */ static int buoy_cmp(void *a, void *b) { struct xmdbbuoy * dt1 = (struct xmdbbuoy *) a; struct xmdbbuoy * dt2 = (struct xmdbbuoy *) b; if (dt1->xdbb_time < dt2->xdbb_time) return (-1); else if (dt1->xdbb_time > dt2->xdbb_time) return (1); else return (0); } /* * tr_cmp * * Function: - compare two traces * Accepts: - ptr to two entries * Returns: - -1/0/+1 comparison */ static int tr_cmp(void *in_t1, void *in_t2) { struct xmdbtr *t1 = (struct xmdbtr *) in_t1; struct xmdbtr *t2 = (struct xmdbtr *) in_t2; return ((t1->xdbt_time < t2->xdbt_time) ? -1 : ((t1->xdbt_time > t2->xdbt_time) ? 1 : 0)); } /* * add_cid * * Function: - add a new cid to the database if not already present * Accepts: - ptr to cid entry */ static int add_cid(struct xmdbcid *pcid) { if (al_find(dbase.xdb_cids, pcid)) { free((char *) pcid->xdbc_lgrp); return (0); } return ((al_insert(dbase.xdb_cids, pcid)) ? 0 : LAMERROR); } /* * cid_cmp * * Function: - compare two cids * - cids are ordered by context ID and then by * the global rank of the first process in local group * Accepts: - ptr to two entries * Returns: - -1/0/1 comparison */ static int cid_cmp(void *in_a, void *in_b) { struct xmdbcid *a = (struct xmdbcid *) in_a; struct xmdbcid *b = (struct xmdbcid *) in_b; if (a->xdbc_cid < b->xdbc_cid) return (-1); else if (a->xdbc_cid > b->xdbc_cid) return (1); else if (a->xdbc_lgrp->gps_grank < b->xdbc_lgrp->gps_grank) return (-1); else if (a->xdbc_lgrp->gps_grank == b->xdbc_lgrp->gps_grank) return (0); else return (-1); } /* * onoff_cmp * * Function: - compare two onoff list elements * - they are ordered by segment number * Accepts: - ptr to two entries * Returns: - -1/0/1 comparison */ static int onoff_cmp(void *in_a, void *in_b) { struct onoff *a = (struct onoff *) in_a; struct onoff *b = (struct onoff *) in_b; return ((a->oo_segment < b->oo_segment) ? -1 : ((a->oo_segment > b->oo_segment) ? 1 : 0)); } /* * create_parse_structs * * Function: - create new initial parsing state * Returns: - initial parsing state or 0 (error) */ static struct dbparse * create_parse_structs() { int i; dbp = (struct dbparse *) malloc(dbase.xdb_nprocs * sizeof(struct dbparse)); if (dbp == 0) { return (0); } for (i = 0; i < dbase.xdb_nprocs; i++) { dbp[i].dbp_sub = XMPI_SMISSING; dbp[i].dbp_top = 0; dbp[i].dbp_curseg = 0; dbp[i].dbp_systot = dbp[i].dbp_blktot = 0.0; dbp[i].dbp_segs = dbp[i].dbp_senders = 0; } for (i = 0; i < dbase.xdb_nprocs; i++) { dbp[i].dbp_segs = al_init(sizeof(struct onoff), onoff_cmp); dbp[i].dbp_senders = al_init(sizeof(struct xmdbtr *), 0); if (dbp[i].dbp_segs == 0 || dbp[i].dbp_senders == 0) { free_parse_structs(); return (0); } } return (dbp); } /* * free_parse_structs * * Function: - free the current parsing state */ static void free_parse_structs() { int i; if (dbp == 0) { return; } for (i = 0; i < dbase.xdb_nprocs; i++) { if (dbp[i].dbp_segs) { al_free(dbp[i].dbp_segs); } if (dbp[i].dbp_senders) { al_free(dbp[i].dbp_senders); } } free((char *) dbp); dbp = 0; } // // db_parse_get_commname // // Function: get the commname associated with a cid on a specific rank. // If one is not in the map, make one out of the cid. // static char* db_parse_get_commname(int rank, int4 cid) { char *tmp; if (((*curr_commname)[rank]).find(cid) == ((*curr_commname)[rank]).end()) { // MPI_COMM_WORLD, we will assume if (cid == 0) tmp = strdup("MPI_COMM_WORLD"); // We no longer assume any of the other MPI_COMM defaults, as they // are not true in IMPI and the like. else { tmp = (char*) malloc(sizeof(char) * (sizeof(int4) * 8 * strlen("COMM "))); if (tmp == 0) return NULL; sprintf(tmp, "%d", cid); } } else tmp = ((*curr_commname)[rank])[cid]; return tmp; } xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.cc0000664000076500007650000002174607725267006013243 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_dtprint.cc,v 1.3 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - print MPI datatype */ #include #include #include #include "lam.h" #include "mpitrace.h" #include "xmpi.h" #include "xmpi_dtprint.h" /* * constants and macros */ #define DISP(f, x) ((f) ? ((x) & 0xFFFF) : (x)) /* * local functions */ static void indent(int); static void print_basic(int, struct trdtype**, int); static void print_datatype(struct trdtype**, int); static void print_contig(struct trdtype **, int); static void print_hvector(int, struct trdtype **, int, int); static void print_hindexed(int, struct trdtype**, int, int); static void print_struct(struct trdtype **, int); /* * local variables */ static int colcount; /* print column count */ static int nlifconst; /* newline if contructor */ static char fmtbuf[80]; /* formatting buffer */ static char *prefix; /* prefix for each line */ static char *obuf; /* output buffer or NULL */ static int identchar; /* # chars per indent level */ /* * basic datatypes */ const char *dtbasic[] = { "MPI_CONTIG", "MPI_VECTOR", "MPI_HVECTOR", "MPI_INDEX", "MPI_HINDEX", "MPI_STRUCT", "MPI_BYTE", "MPI_CHAR", "MPI_UNSIGNED_CHAR", "MPI_SHORT", "MPI_UNSIGNED_SHORT", "MPI_INT", "MPI_UNSIGNED", "MPI_LOGICAL", "MPI_LONG", "MPI_UNSIGNED_LONG", "MPI_FLOAT", "MPI_DOUBLE", "MPI_COMPLEX", "MPI_UB", "MPI_LB", "MPI_PACKED", "MPI_2INT", "MPI_2FLOAT", "MPI_2DOUBLE", "MPI_FLOAT_INT", "MPI_DOUBLE_INT", "MPI_LONG_INT", "MPI_SHORT_INT", "MPI_LONG_DOUBLE", "MPI_LONG_DOUBLE_INT", "MPI_INTEGER", "MPI_CHARACTER", "MPI_REAL", "MPI_DOUBLE_PRECISION", "MPI_DOUBLE_COMPLEX", "MPI_2INTEGER", "MPI_2REAL", "MPI_2DOUBLE_PRECISION", "MPI_LONG_LONG_INT", "MPI_INTEGER1", "MPI_INTEGER2", "MPI_INTEGER4", "MPI_INTEGER8", "MPI_REAL4", "MPI_REAL8", "MPI_REAL16", }; /* * xmpi_dtypeprint * * Function: - print datatype trace * Accepts: - datatype index * - trace datatype buffer (may be NULL if basic datatype) * - number of chars to indent by * - string prefix for each output line * - output buffer (NULL means output to stdout) */ void xmpi_dtypeprint(int4 dtype, char *buf, int4 indent, char *pfix, char *outbuf) { struct trdtype *p; /* datatype trace */ identchar = indent; prefix = pfix; obuf = outbuf; /* * Recursively (depth-first) print datatype if trace buffer is non-NULL. */ if (buf) { p = (struct trdtype *) buf; p++; colcount = 0; nlifconst = 0; if (obuf) *obuf = '\0'; print_datatype(&p, 0); } /* * Check for illegal datatype. */ else if (dtype < 0) { if (obuf) { sprintf(obuf, "%sinvalid datatype: %d", prefix, dtype); } else { printf("%sinvalid datatype: %d\n", prefix, dtype); } } /* * Handle basic datatypes. */ else { if (obuf) { strcpy(obuf, prefix); strcat(obuf, dtbasic[dtype]); } else { printf("%s%s\n", prefix, dtbasic[dtype]); } } } /* * print_datatype * * Function: - print current datatype * - recursive function * Accepts: - trace record (inout) * - nesting level */ static void print_datatype(struct trdtype **dtrbuf, int level) { int format; /* datatype format */ format = (*dtrbuf)->trd_dtype; switch (format) { case XMPI_BYTE: case XMPI_CHAR: case XMPI_UCHAR: case XMPI_SHORT: case XMPI_USHORT: case XMPI_INT: case XMPI_UINT: case XMPI_LOGICAL: case XMPI_LONG: case XMPI_ULONG: case XMPI_FLOAT: case XMPI_DOUBLE: case XMPI_COMPLEX: case XMPI_UB: case XMPI_LB: case XMPI_PACKED: case XMPI_2INT: case XMPI_2FLOAT: case XMPI_2DOUBLE: case XMPI_FLOAT_INT: case XMPI_DOUBLE_INT: case XMPI_LONG_INT: case XMPI_SHORT_INT: case XMPI_LONG_DOUBLE: case XMPI_LONG_DOUBLE_INT: case XMPI_INTEGER: case XMPI_CHARACTER: case XMPI_REAL: case XMPI_DOUBLE_PRECISION: case XMPI_DOUBLE_COMPLEX: case XMPI_2INTEGER: case XMPI_2REAL: case XMPI_2DOUBLE_PRECISION: case XMPI_LONG_LONG_INT: case XMPI_INTEGER1: case XMPI_INTEGER2: case XMPI_INTEGER4: case XMPI_INTEGER8: case XMPI_REAL4: case XMPI_REAL8: case XMPI_REAL16: print_basic(format, dtrbuf, level); break; case XMPI_CONTIG: print_contig(dtrbuf, level); break; case XMPI_VECTOR: print_hvector(format, dtrbuf, level, 1); break; case XMPI_HVECTOR: print_hvector(format, dtrbuf, level, 0); break; case XMPI_INDEXED: print_hindexed(format, dtrbuf, level, 1); break; case XMPI_HINDEXED: print_hindexed(format, dtrbuf, level, 0); break; case XMPI_STRUCT: print_struct(dtrbuf, level); break; default: break; } } /* * print_basic * * Function: - print basic datatype record * Accepts: - datatype label * - trace record (inout) * - nesting level */ static void print_basic(int dtype, struct trdtype **dtrace, int nlev) { nlifconst = 0; indent(nlev); if (obuf) { sprintf(fmtbuf, "%s\n", dtbasic[dtype]); strcat(obuf, fmtbuf); } else { printf("%s\n", dtbasic[dtype]); } colcount = 0; ++(*dtrace); } /* * print_contig * * Function: - print contiguous datatype record * Accepts: - trace record (inout) * - nesting level */ static void print_contig(struct trdtype **dtrace, int nlev) { indent(nlev); sprintf(fmtbuf, "%s (%d)", dtbasic[XMPI_CONTIG], (*dtrace)->trd_count); if (obuf) strcat(obuf, fmtbuf); else printf("%s", fmtbuf); colcount += strlen(fmtbuf); nlifconst = 1; ++(*dtrace); print_datatype(dtrace, nlev + 1); } /* * print_hvector * * Function: - print vector or hvector datatype record * Accepts: - datatype label * - trace record (inout) * - nesting level * - vector flag */ static void print_hvector(int dtype, struct trdtype **dtrace, int nlev, int fl_vec) { indent(nlev); sprintf(fmtbuf, "%s (%d x %d, %d)", dtbasic[dtype], (*dtrace)->trd_count, (*dtrace + 1)->trd_length, DISP(fl_vec, (*dtrace + 1)->trd_stride)); if (obuf) strcat(obuf, fmtbuf); else printf("%s", fmtbuf); colcount += strlen(fmtbuf); nlifconst = 1; *dtrace += 2; print_datatype(dtrace, nlev + 1); } /* * print_hindexed * * Function: - print indexed or hindexed datatype record * Accepts: - datatype label * - trace record (inout) * - nesting level * - indexed flag */ static void print_hindexed(int dtype, struct trdtype **dtrace, int nlev, int fl_idx) { int i; /* favourite index */ int count; /* datatype count */ indent(nlev); count = (*dtrace)->trd_count; ++(*dtrace); sprintf(fmtbuf, "%s (%d)", dtbasic[dtype], count); if (obuf) strcat(obuf, fmtbuf); else printf("%s", fmtbuf); colcount += strlen(fmtbuf); for (i = 0; i < count; ++i) { sprintf(fmtbuf, " (%d, %d)", (*dtrace)->trd_length, DISP(fl_idx, (*dtrace)->trd_disp)); if (obuf) strcat(obuf, fmtbuf); else printf("%s", fmtbuf); colcount += strlen(fmtbuf); ++(*dtrace); } nlifconst = 1; print_datatype(dtrace, nlev + 1); } /* * print_struct * * Function: - print struct datatype record * Accepts: - trace record (inout) * - nesting level */ static void print_struct(struct trdtype **dtrace, int nlev) { int i; /* favourite index */ int count; /* datatype count */ indent(nlev); count = (*dtrace)->trd_count; ++(*dtrace); sprintf(fmtbuf, "%s (%d)\n", dtbasic[XMPI_STRUCT], count); if (obuf) strcat(obuf, fmtbuf); else printf("%s", fmtbuf); colcount = 0; nlifconst = 0; for (i = 0; i < count; ++i) { indent(nlev + 1); sprintf(fmtbuf, "(%d, %d)", (*dtrace)->trd_length, (*dtrace)->trd_disp); if (obuf) strcat(obuf, fmtbuf); else printf("%s", fmtbuf); colcount += strlen(fmtbuf); ++(*dtrace); print_datatype(dtrace, nlev + 2); } } /* * indent * * Function: - indent line according to level * Accepts: - indentation level */ static void indent(int lev) { lev *= identchar; if (nlifconst) { if (obuf) strcat(obuf, "\n"); else printf("\n"); nlifconst = 0; colcount = 0; } if (obuf) { if (colcount == 0) strcat(obuf, prefix); if (colcount < lev) { for (; colcount < lev; ++colcount) strcat(obuf, " "); } else if (colcount > 0) { strcat(obuf, " "); } } else { if (colcount == 0) printf("%s", prefix); if (colcount < lev) { for (; colcount < lev; ++colcount) printf(" "); } else if (colcount > 0) { printf(" "); } } } xmpi-2.2.3b8/src/xmpi/xmpi_dtype.cc0000664000076500007650000002654007725267006012701 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_dtype.cc,v 1.4 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - Datatype subwindow */ #define XMPI_NORANK (-1) /* indicates no process */ #include #include #include #include #include #include "mpitrace.h" #include "xmpi.h" #include "xmpi_dbase.h" #include "xmpi_dtype.h" #include "xmpi_misc.h" #include "xmpi_pophelp.h" #include "xmpi_dtprint.h" #include "Bitmaps/blank.xbm" #include "Bitmaps/light.xbm" #include "Bitmaps/tack.xbm" #include "Bitmaps/mesg.xbm" /* * private functions */ static void createpixlabels(Widget); static void tack_cb(Widget, XtPointer, XtPointer); static void print_type(int, int, char*); /* * external variables */ extern int fl_dbase; /* driven by dbase flag */ extern struct _gps *xmpi_app_procs; /* application GPS array */ /* * local variables */ static int dt_proc = -1; /* process rank */ static int dt_dtype = -1; /* datatype label */ static char fmtbuf[2048]; /* large buffer */ static Pixmap blankpix = XmUNSPECIFIED_PIXMAP; static Pixmap trafficpix = XmUNSPECIFIED_PIXMAP; static Pixmap mesgpix = XmUNSPECIFIED_PIXMAP; static Pixmap tackpix = XmUNSPECIFIED_PIXMAP; static Pixmap armtackpix = XmUNSPECIFIED_PIXMAP; static Widget dtw = 0; static Widget dtw_form; static Widget dtw_dtype; static Widget dtw_hdr; static Widget dtw_pix; static int dtw_rank = XMPI_NORANK; static int dtw_show = XMPI_SHOWNONE; /* * xmpi_dt_msg * * Function: - set the message datatype * Accepts: - process global rank * - focus entry * - ignore cache flag (1 => ignore cache) */ void xmpi_dt_msg(int rank, struct xmfocus *pfocus, int nocache) { struct xmmsg *pmsg; /* message entry */ if (dtw_show != XMPI_SHOWMESG || dtw_rank != rank) return; /* * If no messages, blank the datatype. */ pmsg = pfocus->xmf_proc->xmp_curmsg; if (pmsg == 0 || pmsg->xmm_dtype == 0) { dt_dtype = -1; XmTextSetString(dtw_dtype, (char*) " "); } /* * If the datatype is not in the cache, fetch it and display it. */ else if (nocache || pmsg->xmm_dtype != dt_dtype || pmsg->xmm_gsrc != dt_proc) { dt_dtype = pmsg->xmm_dtype; dt_proc = pmsg->xmm_gsrc; print_type(dt_proc, dt_dtype, fmtbuf); XmTextSetString(dtw_dtype, fmtbuf); } } /* * xmpi_dt_proc * * Function: - set the process datatype * Accepts: - process global rank * - focus entry * - ignore cache flag (1 => ignore cache) */ void xmpi_dt_proc(int rank, struct xmfocus *pfocus, int nocache) { struct xmproc *pproc; /* process entry */ if (dtw_show != XMPI_SHOWPROC || dtw_rank != rank) return; /* * If process running or done, blank the datatype. */ pproc = pfocus->xmf_proc; if (pproc->xmp_state == XMPI_SRUN || pproc->xmp_state == XMPI_SUNDEF || pproc->xmp_dtype == 0) { dt_dtype = -1; XmTextSetString(dtw_dtype, (char*) " "); } /* * If datatype not in cache, fetch it and display it. */ else if (nocache || pproc->xmp_dtype != dt_dtype || rank != dt_proc) { dt_dtype = pproc->xmp_dtype; dt_proc = rank; print_type(dt_proc, dt_dtype, fmtbuf); XmTextSetString(dtw_dtype, fmtbuf); } } /* * xmpi_dt_create * * Function: - create and initialize Datatype subwindow * Accepts: - parent window */ void xmpi_dt_create(Widget parent_w) { Widget lbl_w; Widget w; if (dtw != 0) return; /* * Create the Datatype window. */ dtw = XtVaCreatePopupShell("dt_win", xmDialogShellWidgetClass, parent_w, XmNdefaultPosition, False, XmNmappedWhenManaged, False, XmNdeleteResponse, XmUNMAP, XmNtitle, "XMPI Datatype", NULL); /* * Create the high-level form. */ dtw_form = XtVaCreateWidget("dt_mgr", xmFormWidgetClass, dtw, XmNmarginHeight, 2, XmNmarginWidth, 2, XmNverticalSpacing, 2, NULL); /* * Create the label area window. */ lbl_w = XtVaCreateWidget("dt_label", xmFormWidgetClass, dtw_form, XmNtopAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * tack button (cache and re-use pixmaps) */ if (tackpix == XmUNSPECIFIED_PIXMAP) { w = xmpi_mkpixbutton(lbl_w, tack_cb, NULL, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, tack_bits, tack_width, tack_height, False); XtVaGetValues(w, XmNlabelPixmap, &tackpix, XmNarmPixmap, &armtackpix, NULL); } else { w = xmpi_mkpixbutton(lbl_w, tack_cb, NULL, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, NULL, 0, 0, False); XtVaSetValues(w, XmNlabelType, XmPIXMAP, XmNlabelPixmap, tackpix, XmNarmPixmap, armtackpix, NULL); } XtVaSetValues(w, XmNtopAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); xmpi_add_pophelp(w, (char*) "Dismiss datatype window"); /* * header label */ dtw_hdr = xmpi_mklabel(lbl_w, (char*) "banner", XmALIGNMENT_CENTER, False); XtVaSetValues(dtw_hdr, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, w, XmNleftOffset, 3, NULL); sprintf(fmtbuf, "%s", "DT Test"); xmpi_setlabel(dtw_hdr, fmtbuf); XtManageChild(lbl_w); /* * Create the pixmaps and datatype pixmap window. */ createpixlabels(dtw_form); dtw_pix = xmpi_mklabel(dtw_form, (char*) "traffic_lbl", XmALIGNMENT_CENTER, False); XtVaSetValues(dtw_pix, XmNlabelType, XmPIXMAP, XmNlabelPixmap, blankpix, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, lbl_w, XmNbottomAttachment, XmATTACH_FORM, XmNbottomOffset, 2, XmNleftAttachment, XmATTACH_FORM, XmNleftOffset, 2, NULL); /* * Create the datatype scrolled window. */ dtw_dtype = XtVaCreateManagedWidget("dt_dtype", xmTextWidgetClass, dtw_form, XmNeditable, False, XmNeditMode, XmMULTI_LINE_EDIT, XmNautoShowCursorPosition, False, XmNcursorPositionVisible, False, XmNcolumns, 32, XmNrows, 8, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, lbl_w, XmNbottomAttachment, XmATTACH_FORM, XmNbottomOffset, 2, XmNrightAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, dtw_pix, XmNleftOffset, 2, NULL); XtManageChild(dtw_form); #ifdef AIX /* * AIX Motif 1.2 does not seem to honor the alignment resource * of child labels unless we force a resize!? */ { Dimension w; XtVaGetValues(dtw, XmNwidth, &w, NULL); XtVaSetValues(dtw, XmNwidth, w + 2, NULL); } #endif } /* * xmpi_dt_update * * Function: - updates the datatype display window * Accepts: - rank * - focus entry * - show process or message type */ void xmpi_dt_update(int rank, struct xmfocus *pfocus, int show) { int nocache; /* set on if cache is no good */ struct xmproc *pproc; /* process entry */ /* * Update the rank in the header. Keep the format consistent with * xmpi_fo_update(). */ if (rank != dtw_rank) { pproc = pfocus->xmf_proc; if ((pproc->xmp_state == XMPI_SRUN) || (pproc->xmp_state == XMPI_SUNDEF)) { sprintf(fmtbuf, "%d %s", rank, pproc->xmp_prog); } else { sprintf(fmtbuf, "%d / %d %s", rank, pproc->xmp_lrank, pproc->xmp_prog); } xmpi_setlabel(dtw_hdr, fmtbuf); } /* * Update the pixmap. */ if (show != dtw_show) { if (show == XMPI_SHOWMESG) { XtVaSetValues(dtw_pix, XmNlabelPixmap, mesgpix, NULL); } else if (show == XMPI_SHOWPROC) { XtVaSetValues(dtw_pix, XmNlabelPixmap, trafficpix, NULL); } else { XtVaSetValues(dtw_pix, XmNlabelPixmap, blankpix, NULL); } } /* * Update state. Must be done before text update. */ nocache = (dtw_rank != rank || dtw_show != show); dtw_show = show; dtw_rank = rank; /* * Update the data type text. */ if (show == XMPI_SHOWMESG) { xmpi_dt_msg(rank, pfocus, nocache); } else if (show == XMPI_SHOWPROC) { xmpi_dt_proc(rank, pfocus, nocache); } XtPopup(dtw, XtGrabNone); XtManageChild(dtw_form); } /* * xmpi_dt_clear * * Function: - clear and pop down Datatype window */ void xmpi_dt_clear() { if (dtw == 0) return; dtw_rank = -1; dtw_show = -1; xmpi_setlabel(dtw_hdr, (char*) ""); XmTextSetString(dtw_dtype, (char*) ""); XtVaSetValues(dtw_pix, XmNlabelPixmap, blankpix, NULL); XtPopdown(dtw); } /* * xmpi_dt_setrank * * Function: - set rank in Datatype window header * Accepts: - rank * - text form of rank */ void xmpi_dt_setrank(int rank, char *text) { if (dtw_rank == rank) xmpi_setlabel(dtw_hdr, text); } /* * xmpi_dt_popdown * * Function: - unmap the Datatype window */ void xmpi_dt_popdown() { if (dtw) XtPopdown(dtw); } /* * tack_cb * * Function: - callback to unmap the Datatype window */ static void tack_cb(Widget, XtPointer, XtPointer) { XtPopdown(dtw); } /* * createpixlabels * * Function: - create pixmaps for labels * - blank, traffic light & message * Accepts: - parent widget */ static void createpixlabels(Widget w) { unsigned int depth; /* screen depth */ Display *disp; /* display */ Drawable root; /* root window */ Pixel fg, bg; /* fore/background colours */ if (blankpix != XmUNSPECIFIED_PIXMAP) return; disp = XtDisplay(w); root = RootWindowOfScreen(XtScreen(w)), depth = DefaultDepthOfScreen(XtScreen(w)); XtVaGetValues(w, XmNforeground, &fg, XmNbackground, &bg, NULL); /* * Create the static pixmaps. */ trafficpix = XCreatePixmapFromBitmapData(disp, root, (char *) light_bits, light_width, light_height, fg, bg, depth); mesgpix = XCreatePixmapFromBitmapData(disp, root, (char *) mesg_bits, mesg_width, mesg_height, fg, bg, depth); blankpix = XCreatePixmapFromBitmapData(disp, root, (char *) blank_bits, blank_width, blank_height, fg, bg, depth); } /* * xmpi_dt_busy * * Function: - set the busy cursor for the Datatype window */ void xmpi_dt_busy() { if (dtw) xmpi_busy_widget(dtw); } /* * xmpi_dt_unbusy * * Function: - set the normal cursor for the Datatype window */ void xmpi_dt_unbusy() { if (dtw) xmpi_unbusy_widget(dtw); } /* * print_type * * Function: - textual representation of a datatype * Accepts: - process which defined the datatype * - datatype label * - textual representation (out) */ static void print_type(int proc, int dtype, char *buf) { void *trace; if (dtype < 0) { sprintf(buf, "invalid datatype: %d", dtype); } else { trace = (fl_dbase) ? xmpi_db_getdtype(proc, dtype) : xmpi_sys_dtype(xmpi_app_procs + proc, dtype); if (trace == (void *) -1) { sprintf(buf, "unknown datatype: %d", dtype); } else { xmpi_dtypeprint(dtype, (char*) trace, XMPI_DTINDENT, (char*) "", buf); if (!fl_dbase && trace) free((char *) trace); } } } xmpi-2.2.3b8/src/xmpi/xmpi_error.cc0000664000076500007650000000702107725267006012676 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_error.cc,v 1.5 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - error dialog */ #include #include #include #include #include #include #include #include #include "lam.h" #include "xmpi.h" #include "xmpi_error.h" #include /* * local functions */ static char *errorstr(char*); /* * local variables */ #define BUFLEN 1024 #define MAXERRMSGLEN 64 static char buffer[BUFLEN]; /* complete message */ const char *errmsg[] = { "improper command invocation", /* EUSAGE */ "delete from list failed", /* EDELETE */ "bad magic number", /* EMAGIC */ "invalid ID specification", /* EBADIDSPEC */ "impossible, ergo a bug", /* EIMPOSSIBLE */ }; /* * xmpi_error * * Function: - widget child of the desired centering shell * displays error message in dialog * - displays appended user and system error message * System Error only displayed if 3rd argument true * Accepts: - parent widget (or NULL) * - user error message */ void xmpi_error(Widget w, const char *usrmsg, bool DisplaySystem) { Widget dialog_w; XmString str; Arg args[3]; w = (w == 0) ? xmpi_shell : xmpi_wmshell(w); char *tmpmsg = strdup(usrmsg); if (DisplaySystem) str = XmStringCreateLtoR(errorstr(tmpmsg), XmSTRING_DEFAULT_CHARSET); else str = XmStringCreateLtoR(tmpmsg, XmSTRING_DEFAULT_CHARSET); XtSetArg(args[0], XmNmessageString, str); XtSetArg(args[1], XmNdialogStyle, XmDIALOG_PRIMARY_APPLICATION_MODAL); XtSetArg(args[2], XmNautoUnmanage, False); dialog_w = XmCreateErrorDialog(w, (char*) "error_pop", args, 3); XmStringFree(str); XtAddCallback(dialog_w, XmNokCallback, (XtCallbackProc) XtDestroyWidget, NULL); XtUnmanageChild(XmMessageBoxGetChild(dialog_w, XmDIALOG_HELP_BUTTON)); XtUnmanageChild(XmMessageBoxGetChild(dialog_w, XmDIALOG_CANCEL_BUTTON)); XtManageChild(dialog_w); XtPopup(XtParent(dialog_w), XtGrabNone); } /* * errorstr * * Function: - forms XMPI error message * - uses system dependent and UNIX error message tables * - returned message is stored in a static buffer * Accepts: - user's error message * Returns: - extended error message */ static char * errorstr(char *msg) { char anum[16]; /* ascii error code */ char *syserr; /* system dep. error string */ buffer[0] = '\0'; /* * Check for specific XMPI errors first. */ if (msg && *msg) { strncpy(buffer, msg, BUFLEN - MAXERRMSGLEN); } if (XMPI_ERR_LOW <= errno && errno <= XMPI_ERR_HIGH) { strcat(buffer, ": "); strcat(buffer, errmsg[errno - XMPI_ERR_LOW]); } /* * Pass through to system dependent error message routine. */ else { syserr = xmpi_sys_errorstr(errno); if (syserr) { strcat(buffer, ": "); strcat(buffer, syserr); } else { if (errno != 0) { strcat(buffer, ": Unknown error "); sfh_itoa(errno, anum); strcat(buffer, anum); } } } return (buffer); } xmpi-2.2.3b8/src/xmpi/xmpi_focus.cc0000664000076500007650000011276207725267006012675 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_focus.cc,v 1.6 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - process focus dialog */ #include #include #include #include #include #include #include #include #include #include #include "blktype.h" #include "xmpi.h" #include "xmpi_focus.h" #include "xmpi_misc.h" #include "xmpi_view.h" #include "xmpi_dtype.h" #include "xmpi_pophelp.h" #include "xmpi_dbase.h" #include "Bitmaps/light.xbm" #include "Bitmaps/red.xbm" #include "Bitmaps/yellow.xbm" #include "Bitmaps/green.xbm" #include "Bitmaps/mesg.xbm" #include "Bitmaps/tack.xbm" #include "Bitmaps/comm.xbm" #include "Bitmaps/next.xbm" #include "Bitmaps/data.xbm" /* * external functions */ extern void _XEditResCheckMessages(); /* * local functions */ static void focusbuild(Widget, int); static void focusmsgfill(int, struct xmfocus*); static void destroy_cb(Widget, XtPointer, XtPointer); static void showproccomm_cb(Widget, XtPointer, XtPointer); static void showdt_cb(Widget, XtPointer, XtPointer); static void showmsgdt_cb(Widget, XtPointer, XtPointer); static void showmsgcomm_cb(Widget, XtPointer, XtPointer); static void showcomm(int, int); static void msgflip_cb(Widget, XtPointer, XtPointer); static void position_cb(Widget, XtPointer, XtPointer); static void createpixlabels(Widget); static void setmsgcnt(struct xmfocus*); static void getcomm(int, int, struct _gps*, int*, int*, int*, char**); static int group_index(int, struct _gps*, int); static void mpiblk_state_out(int, struct xmproc*); static void formatproc(int4, int4, char*); static void formattag(int, char*); /* * local constants and macros */ #define nullify(s) ((s)[0] = 0) /* * external variables */ extern int fl_dbase; /* driven by dbase flag */ extern struct _gps *xmpi_app_procs; /* appl. GPS array */ /* * local variables */ static struct xmfocus *fo_procs = 0; /* array of process info */ static int fo_nprocs = 0; /* # processes */ static int yfocus = 0; /* focus vert. pos. */ static char fmtbuf[130]; /* formatting buffer */ static char task_str[32]; /* task formatting buffer */ static char func_str[64]; /* function formatting buf */ static char peer_str[32]; /* peer formatting buffer */ static char root_str[32]; /* root formatting buffer */ static char tag_str[16]; /* tag formatting buffer */ static char cid_str[130]; /* cid formatting buffer */ static char count_str[16]; /* count formatting buffer */ static Pixmap blkpix = XmUNSPECIFIED_PIXMAP; static Pixmap runpix = XmUNSPECIFIED_PIXMAP; static Pixmap syspix = XmUNSPECIFIED_PIXMAP; static Pixmap undefpix = XmUNSPECIFIED_PIXMAP; static Pixmap mesgpix = XmUNSPECIFIED_PIXMAP; static Pixmap tackpix = XmUNSPECIFIED_PIXMAP; static Pixmap armtackpix = XmUNSPECIFIED_PIXMAP; static Pixmap commpix = XmUNSPECIFIED_PIXMAP; static Pixmap armcommpix = XmUNSPECIFIED_PIXMAP; static Pixmap offcommpix = XmUNSPECIFIED_PIXMAP; static Pixmap nextpix = XmUNSPECIFIED_PIXMAP; static Pixmap armnextpix = XmUNSPECIFIED_PIXMAP; static Pixmap offnextpix = XmUNSPECIFIED_PIXMAP; static Pixmap datapix = XmUNSPECIFIED_PIXMAP; static Pixmap armdatapix = XmUNSPECIFIED_PIXMAP; static Pixmap offdatapix = XmUNSPECIFIED_PIXMAP; /* * xmpi_fo_toggle * * Function: - toggle a focus window (build or destroy) * Accepts: - parent widget * - process rank * - process entry */ void xmpi_fo_toggle(Widget parent_w, int rank, struct xmproc *pproc) { int i; /* favourite index */ struct xmfocus *p; /* favourite pointer */ /* * Allocate process array if needed. */ if (fo_procs == 0) { fo_nprocs = xmpi_vw_getnprocs(); fo_procs = (struct xmfocus *) malloc((unsigned) fo_nprocs * sizeof(struct xmfocus)); if (fo_procs == 0) xmpi_fail((char*) "xmpi (malloc)"); memset(fo_procs, 0, sizeof((unsigned) fo_nprocs * sizeof(struct xmfocus))); for (i = 0, p = fo_procs; i < fo_nprocs; ++i, ++p) { p->xmf_myrank = i; p->xmf_window = 0; } } /* * Toggle process focus window. */ p = fo_procs + rank; if (p->xmf_window) { xmpi_fo_destroy(rank); } else { p->xmf_proc = pproc; focusbuild(parent_w, rank); } } /* * focusbuild * * Function: - creates process focus subwindow * Accepts: - parent widget * - process rank */ static void focusbuild(Widget parent_w, int rank) { Widget focus_w; /* focus widget */ Widget form_w; /* form window widget */ Widget lbl_w; /* label widget */ Widget main_w; /* main focus widget */ Widget area_w; /* area widget */ Widget w; /* favourite widget */ Pixmap pix; /* traffic light pixmap */ Dimension width, height; /* focus widget dimensions */ struct xmproc *proc; /* process entry */ struct xmfocus *p; /* favourite pointer */ /* * Set up datatype subwindow. */ xmpi_dt_create(parent_w); p = fo_procs + rank; proc = p->xmf_proc; /* * Create a focus window. */ focus_w = XtVaCreatePopupShell("focus", xmDialogShellWidgetClass, parent_w, XmNdefaultPosition, False, XmNmappedWhenManaged, True, XmNdeleteResponse, XmDESTROY, XmNtitle, "XMPI Focus", NULL); XtAddCallback(focus_w, XmNpopupCallback, (XtCallbackProc) position_cb, NULL); XtAddCallback(focus_w, XmNdestroyCallback, (XtCallbackProc) destroy_cb, (void *) &p->xmf_myrank); #ifdef DEBUG XtAddEventHandler(focus_w, (EventMask) 0, True, _XEditResCheckMessages, NULL); #endif p->xmf_window = focus_w; /* * Create the high-level form. */ form_w = XtVaCreateWidget("focus_mgr", xmFormWidgetClass, focus_w, XmNmarginHeight, 2, XmNmarginWidth, 2, XmNverticalSpacing, 2, NULL); /* * Create the label area window. */ lbl_w = XtVaCreateWidget("focus_label", xmFormWidgetClass, form_w, XmNtopAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * tack button (cache and re-use pixmaps) */ if (tackpix == XmUNSPECIFIED_PIXMAP) { w = xmpi_mkpixbutton(lbl_w, destroy_cb, (char *) &p->xmf_myrank, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, tack_bits, tack_width, tack_height, False); XtVaGetValues(w, XmNlabelPixmap, &tackpix, XmNarmPixmap, &armtackpix, NULL); } else { w = xmpi_mkpixbutton(lbl_w, destroy_cb, (char *) &p->xmf_myrank, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, NULL, 0, 0, False); XtVaSetValues(w, XmNlabelType, XmPIXMAP, XmNlabelPixmap, tackpix, XmNarmPixmap, armtackpix, NULL); } XtVaSetValues(w, XmNtopAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); xmpi_add_pophelp(w, (char*) "Dismiss focus window"); /* * header label */ p->xmf_rank = xmpi_mklabel(lbl_w, (char*) "banner", XmALIGNMENT_CENTER, False); XtVaSetValues(p->xmf_rank, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, w, XmNleftOffset, 3, NULL); sprintf(fmtbuf, "%d", rank); xmpi_setlabel(p->xmf_rank, fmtbuf); XtManageChild(lbl_w); /* * Create the main focus window. */ main_w = XtVaCreateWidget("focus_main", xmFormWidgetClass, form_w, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, lbl_w, NULL); /* * function label */ p->xmf_func = xmpi_mklabel(main_w, (char*) "fo_func", XmALIGNMENT_CENTER, False); XtVaSetValues(p->xmf_func, XmNtopAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * Create the traffic light area. */ area_w = XtVaCreateWidget("traffic_mgr", xmFormWidgetClass, main_w, XmNfractionBase, 24, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, p->xmf_func, NULL); createpixlabels(area_w); switch (proc->xmp_state) { case XMPI_SRUN: pix = runpix; break; case XMPI_SBLOCK: pix = blkpix; break; case XMPI_SSYSTEM: pix = syspix; break; default: pix = undefpix; break; } p->xmf_light = xmpi_mklabel(area_w, (char*) "traffic_lbl", XmALIGNMENT_CENTER, False); xmpi_formattach(p->xmf_light, 0, 24, 0, 4); XtVaSetValues(p->xmf_light, XmNlabelType, XmPIXMAP, XmNlabelPixmap, pix, NULL); /* * Create the traffic light labels. */ p->xmf_pr_rt = xmpi_mklabel(area_w, (char*) "peer", XmALIGNMENT_END, False); xmpi_formattach(p->xmf_pr_rt, 0, 8, 4, 8); p->xmf_peer = xmpi_mklabel(area_w, (char*) " ", XmALIGNMENT_CENTER, True); xmpi_formattach(XtParent(p->xmf_peer), 0, 8, 8, 24); w = xmpi_mklabel(area_w, (char*) "comm", XmALIGNMENT_END, False); xmpi_formattach(w, 8, 16, 4, 8); p->xmf_com = xmpi_mklabel(area_w, (char*) " ", XmALIGNMENT_CENTER, True); xmpi_formattach(XtParent(p->xmf_com), 8, 16, 8, -1); w = xmpi_mklabel(area_w, (char*) "tag", XmALIGNMENT_END, False); xmpi_formattach(w, 16, 24, 4, 8); p->xmf_tag = xmpi_mklabel(area_w, (char*) " ", XmALIGNMENT_CENTER, True); xmpi_formattach(XtParent(p->xmf_tag), 16, 24, 8, 13); w = xmpi_mklabel(area_w, (char*) "cnt", XmALIGNMENT_END, False); xmpi_formattach(w, 16, 24, 13, 16); p->xmf_cnt = xmpi_mklabel(area_w, (char*) " ", XmALIGNMENT_CENTER, True); xmpi_formattach(XtParent(p->xmf_cnt), 16, 24, 16, -1); /* * Create the communicator button. */ if (commpix == XmUNSPECIFIED_PIXMAP) { p->xmf_compb = xmpi_mkpixbutton(area_w, showproccomm_cb, (char *) &p->xmf_myrank, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, comm_bits, comm_width, comm_height, True); XtVaGetValues(p->xmf_compb, XmNlabelPixmap, &commpix, XmNlabelInsensitivePixmap, &offcommpix, XmNarmPixmap, &armcommpix, NULL); } else { p->xmf_compb = xmpi_mkpixbutton(area_w, showproccomm_cb, (char *) &p->xmf_myrank, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, NULL, 0, 0, False); XtVaSetValues(p->xmf_compb, XmNlabelType, XmPIXMAP, XmNlabelPixmap, commpix, XmNlabelInsensitivePixmap, offcommpix, XmNarmPixmap, armcommpix, NULL); } xmpi_formattach(p->xmf_compb, 8, 16, -1, 24); XtVaSetValues(XtParent(p->xmf_com), XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, p->xmf_compb, NULL); xmpi_add_pophelp(p->xmf_compb, (char*) "Show communicator"); /* * Create the datatype button. */ if (datapix == XmUNSPECIFIED_PIXMAP) { p->xmf_dtb = xmpi_mkpixbutton(area_w, showdt_cb, (char *) &p->xmf_myrank, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, data_bits, data_width, data_height, True); XtVaGetValues(p->xmf_dtb, XmNlabelPixmap, &datapix, XmNlabelInsensitivePixmap, &offdatapix, XmNarmPixmap, &armdatapix, NULL); } else { p->xmf_dtb = xmpi_mkpixbutton(area_w, showdt_cb, (char *) &p->xmf_myrank, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, NULL, 0, 0, False); XtVaSetValues(p->xmf_dtb, XmNlabelType, XmPIXMAP, XmNlabelPixmap, datapix, XmNlabelInsensitivePixmap, offdatapix, XmNarmPixmap, armdatapix, NULL); } XtVaSetValues(p->xmf_dtb, XmNnavigationType, XmTAB_GROUP, NULL); xmpi_formattach(p->xmf_dtb, 16, 24, -1, 24); XtVaSetValues(XtParent(p->xmf_cnt), XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, p->xmf_dtb, NULL); xmpi_add_pophelp(p->xmf_dtb, (char*) "Show datatype"); XtManageChild(area_w); /* * Add a separator. */ area_w = XtVaCreateManagedWidget("focus_sep", xmSeparatorGadgetClass, main_w, XmNseparatorType, XmSHADOW_ETCHED_OUT, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, area_w, XmNtopOffset, 4, NULL); /* * Create the message area. */ area_w = XtVaCreateWidget("message_mgr", xmFormWidgetClass, main_w, XmNfractionBase, 24, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNbottomOffset, 2, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, area_w, XmNtopOffset, 4, NULL); w = xmpi_mklabel(area_w, (char*) "mesg_lbl", XmALIGNMENT_CENTER, False); xmpi_formattach(w, 0, 24, 0, 4); XtVaSetValues(w, XmNlabelType, XmPIXMAP, XmNlabelPixmap, mesgpix, NULL); /* * Create the message labels. */ w = xmpi_mklabel(area_w, (char*) "src", XmALIGNMENT_END, False); xmpi_formattach(w, 0, 6, 4, 8); p->xmf_msgsrc = xmpi_mklabel(area_w, (char*) " ", XmALIGNMENT_CENTER, True); xmpi_formattach(XtParent(p->xmf_msgsrc), 0, 6, 8, 24); w = xmpi_mklabel(area_w, (char*) "comm", XmALIGNMENT_END, False); xmpi_formattach(w, 6, 12, 4, 8); p->xmf_msgcom = xmpi_mklabel(area_w, (char*) " ", XmALIGNMENT_CENTER, True); xmpi_formattach(XtParent(p->xmf_msgcom), 6, 12, 8, -1); w = xmpi_mklabel(area_w, (char*) "tag", XmALIGNMENT_END, False); xmpi_formattach(w, 12, 18, 4, 8); p->xmf_msgtag = xmpi_mklabel(area_w, (char*) " ", XmALIGNMENT_CENTER, True); xmpi_formattach(XtParent(p->xmf_msgtag), 12, 18, 8, 13); w = xmpi_mklabel(area_w, (char*) "cnt", XmALIGNMENT_END, False); xmpi_formattach(w, 12, 18, 13, 16); p->xmf_msgcnt = xmpi_mklabel(area_w, (char*) " ", XmALIGNMENT_CENTER, True); xmpi_formattach(XtParent(p->xmf_msgcnt), 12, 18, 16, -1); w = xmpi_mklabel(area_w, (char*) "copy", XmALIGNMENT_END, False); xmpi_formattach(w, 18, 24, 4, 8); p->xmf_nmsg = xmpi_mklabel(area_w, (char*) " ", XmALIGNMENT_CENTER, True); xmpi_formattach(XtParent(p->xmf_nmsg), 18, 24, 8, -1); /* * Create the communicator button. */ p->xmf_msgcompb = xmpi_mkpixbutton(area_w, showmsgcomm_cb, (char *) &p->xmf_myrank, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, NULL, 0, 0, False); XtVaSetValues(p->xmf_msgcompb, XmNlabelType, XmPIXMAP, XmNlabelPixmap, commpix, XmNlabelInsensitivePixmap, offcommpix, XmNarmPixmap, armcommpix, NULL); xmpi_formattach(p->xmf_msgcompb, 6, 12, -1, 24); XtVaSetValues(XtParent(p->xmf_msgcom), XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, p->xmf_msgcompb, NULL); xmpi_add_pophelp(p->xmf_msgcompb, (char*) "Show communicator"); /* * Create the message count button. */ if (nextpix == XmUNSPECIFIED_PIXMAP) { p->xmf_nmsgpb = xmpi_mkpixbutton(area_w, msgflip_cb, (char *) &p->xmf_myrank, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, next_bits, next_width, next_height, True); XtVaGetValues(p->xmf_nmsgpb, XmNlabelPixmap, &nextpix, XmNlabelInsensitivePixmap, &offnextpix, XmNarmPixmap, &armnextpix, NULL); } else { p->xmf_nmsgpb = xmpi_mkpixbutton(area_w, msgflip_cb, (char *) &p->xmf_myrank, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, NULL, 0, 0, False); XtVaSetValues(p->xmf_nmsgpb, XmNlabelType, XmPIXMAP, XmNlabelPixmap, nextpix, XmNlabelInsensitivePixmap, offnextpix, XmNarmPixmap, armnextpix, NULL); } XtVaSetValues(p->xmf_nmsgpb, XmNnavigationType, XmTAB_GROUP, NULL); xmpi_formattach(p->xmf_nmsgpb, 18, 24, -1, 24); xmpi_add_pophelp(p->xmf_nmsgpb, (char*) "Next message aggregate"); XtVaSetValues(XtParent(p->xmf_nmsg), XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, p->xmf_nmsgpb, NULL); setmsgcnt(p); /* * Create the datatype button. */ p->xmf_msgdtb = xmpi_mkpixbutton(area_w, showmsgdt_cb, (char *) &p->xmf_myrank, (XtCallbackProc) NULL, NULL, (XtCallbackProc) NULL, NULL, NULL, 0, 0, False); XtVaSetValues(p->xmf_msgdtb, XmNlabelType, XmPIXMAP, XmNlabelPixmap, datapix, XmNlabelInsensitivePixmap, offdatapix, XmNarmPixmap, armdatapix, NULL); XtVaSetValues(p->xmf_msgdtb, XmNnavigationType, XmTAB_GROUP, NULL); xmpi_formattach(p->xmf_msgdtb, 12, 18, -1, 24); xmpi_add_pophelp(p->xmf_msgdtb, (char*) "Show datatype"); XtVaSetValues(XtParent(p->xmf_msgcnt), XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, p->xmf_msgdtb, NULL); XtManageChild(area_w); XtManageChild(main_w); XtManageChild(form_w); #ifdef AIX /* * AIX Motif 1.2 does not seem to honor the alignment resource * of child labels unless the we force a resize!? */ { Dimension w; XtVaGetValues(focus_w, XmNwidth, &w, NULL); XtVaSetValues(focus_w, XmNwidth, w + 2, NULL); } #endif XtPopup(focus_w, XtGrabNone); XtVaGetValues(focus_w, XmNwidth, &width, XmNheight, &height, NULL); XtVaSetValues(focus_w, XmNminWidth, width, XmNminHeight, height, XmNmaxHeight, height, NULL); } /* * xmpi_fo_update * * Function: - update focus window * Accepts: - process rank */ void xmpi_fo_update(int rank) { Pixmap pix; /* favourite pixmap */ struct xmproc *pproc; /* process entry */ struct xmfocus *pfocus; /* focus entry */ if (fo_procs == 0) return; pfocus = fo_procs + rank; pproc = pfocus->xmf_proc; if (pfocus->xmf_window == 0) return; /* * If the process is running or undefined, show blanks. */ if ((pproc->xmp_state == XMPI_SRUN) || (pproc->xmp_state == XMPI_SUNDEF)) { pix = (pproc->xmp_state == XMPI_SRUN) ? runpix : undefpix; XtVaSetValues(pfocus->xmf_light, XmNlabelPixmap, pix, NULL); sprintf(fmtbuf, "%d %s", rank, pproc->xmp_prog); xmpi_setlabel(pfocus->xmf_rank, fmtbuf); xmpi_dt_setrank(rank, fmtbuf); strcpy(fmtbuf, " "); xmpi_setlabel(pfocus->xmf_peer, fmtbuf); xmpi_setlabel(pfocus->xmf_pr_rt, fmtbuf); xmpi_setlabel(pfocus->xmf_com, fmtbuf); xmpi_setlabel(pfocus->xmf_tag, fmtbuf); xmpi_setlabel(pfocus->xmf_cnt, fmtbuf); xmpi_setlabel(pfocus->xmf_func, fmtbuf); XtVaSetValues(pfocus->xmf_compb, XmNsensitive, False, NULL); XtVaSetValues(pfocus->xmf_dtb, XmNsensitive, False, NULL); } /* * The process is blocked or in system overhead. */ else { pix = (pproc->xmp_state == XMPI_SBLOCK) ? blkpix : syspix; XtVaSetValues(pfocus->xmf_light, XmNlabelPixmap, pix, NULL); if (blktype(pproc->xmp_func)) { mpiblk_state_out(rank, pproc); xmpi_setlabel(pfocus->xmf_rank, task_str); xmpi_dt_setrank(rank, task_str); if (*root_str == 0) { xmpi_setlabel(pfocus->xmf_peer, peer_str); xmpi_setlabel(pfocus->xmf_pr_rt, (char*) "peer"); } else { xmpi_setlabel(pfocus->xmf_root, root_str); xmpi_setlabel(pfocus->xmf_pr_rt, (char*) "root"); } xmpi_setlabel(pfocus->xmf_tag, tag_str); xmpi_setlabel(pfocus->xmf_func, func_str); xmpi_setlabel(pfocus->xmf_com, cid_str); xmpi_setlabel(pfocus->xmf_cnt, count_str); XtVaSetValues(pfocus->xmf_compb, XmNsensitive, (*cid_str) ? True : False, NULL); XtVaSetValues(pfocus->xmf_dtb, XmNsensitive, (pproc->xmp_dtype != 0) ? True : False, NULL); } else { sprintf(fmtbuf, "%d %s", rank, pproc->xmp_prog); xmpi_setlabel(pfocus->xmf_rank, fmtbuf); xmpi_dt_setrank(rank, fmtbuf); strcpy(fmtbuf, " "); xmpi_setlabel(pfocus->xmf_peer, fmtbuf); xmpi_setlabel(pfocus->xmf_pr_rt, fmtbuf); xmpi_setlabel(pfocus->xmf_com, fmtbuf); xmpi_setlabel(pfocus->xmf_tag, fmtbuf); xmpi_setlabel(pfocus->xmf_cnt, fmtbuf); xmpi_setlabel(pfocus->xmf_func, fmtbuf); XtVaSetValues(pfocus->xmf_compb, XmNsensitive, False, NULL); XtVaSetValues(pfocus->xmf_dtb, XmNsensitive, False, NULL); } } /* * Update the datatype window and fill the message area. */ xmpi_dt_proc(rank, pfocus, 0); focusmsgfill(rank, pfocus); } /* * focusmsgfill * * Function: - fill the focus message area * Accepts: - process global rank * - focus entry */ static void focusmsgfill(int rank, struct xmfocus *pfocus) { struct xmproc *pproc; /* process entry */ struct xmmsg *pmsg; /* message entry */ int fl_empty = 1; /* empty flag */ int nmsg = -1; /* # messages */ pproc = pfocus->xmf_proc; if (pproc->xmp_msgs && (al_count(pproc->xmp_msgs) > 0)) { fl_empty = 0; pmsg = pproc->xmp_curmsg; nmsg = pmsg->xmm_nmsg; } if (fl_empty || (nmsg < 0)) { strcpy(fmtbuf, " "); xmpi_setlabel(pfocus->xmf_msgsrc, fmtbuf); xmpi_setlabel(pfocus->xmf_msgcom, fmtbuf); xmpi_setlabel(pfocus->xmf_msgtag, fmtbuf); xmpi_setlabel(pfocus->xmf_msgcnt, fmtbuf); XtVaSetValues(pfocus->xmf_msgcompb, XmNsensitive, False, NULL); XtVaSetValues(pfocus->xmf_msgdtb, XmNsensitive, False, NULL); } else { sprintf(fmtbuf, "%d / %d", pmsg->xmm_gsrc, pmsg->xmm_lsrc); xmpi_setlabel(pfocus->xmf_msgsrc, fmtbuf); sprintf(fmtbuf, "%d", pmsg->xmm_tag); xmpi_setlabel(pfocus->xmf_msgtag, fmtbuf); sprintf(fmtbuf, "%d", pmsg->xmm_cnt); xmpi_setlabel(pfocus->xmf_msgcnt, fmtbuf); strcpy(fmtbuf, pmsg->xmm_commname); xmpi_setlabel(pfocus->xmf_msgcom, fmtbuf); XtVaSetValues(pfocus->xmf_msgcompb, XmNsensitive, True, NULL); XtVaSetValues(pfocus->xmf_msgdtb, XmNsensitive, True, NULL); } setmsgcnt(pfocus); xmpi_dt_msg(rank, pfocus, 0); } /* * xmpi_fo_destroy * * Function: - destroy a process focus window * Accepts: - process rank */ void xmpi_fo_destroy(int rank) { struct xmfocus *p; /* favourite pointer */ if (fo_procs) { p = fo_procs + rank; if (p->xmf_window) { XtUnmapWidget(p->xmf_window); XtDestroyWidget(p->xmf_window); p->xmf_window = 0; } } } /* * xmpi_fo_destroy_all * * Function: - destroy all process focus windows */ void xmpi_fo_destroy_all() { int i; /* favourite index */ if (fo_procs == 0) return; for (i = 0; i < fo_nprocs; i++) xmpi_fo_destroy(i); free((char *) fo_procs); fo_procs = 0; fo_nprocs = 0; } /* * destroy_cb * * Function: - callback to destroy a focus window * Accepts: - focus widget * - client data (process rank) */ static void destroy_cb(Widget, XtPointer cdata, XtPointer) { xmpi_fo_destroy(*((int *) cdata)); } /* * showproccomm_cb * * Function: - show the process' communicator * Accepts: - focus widget * - client data (process rank) */ static void showproccomm_cb(Widget, XtPointer cdata, XtPointer) { int rank; struct xmfocus *pfocus; rank = *((int *) cdata); pfocus = fo_procs + rank; showcomm(pfocus->xmf_proc->xmp_cid, rank); } /* * showdt_cb * * Function: - show the process datatype * Accepts: - focus widget * - client data (process rank) */ static void showdt_cb(Widget, XtPointer cdata, XtPointer) { int rank; struct xmfocus *pfocus; /* focus entry */ rank = *((int *) cdata); pfocus = fo_procs + rank; xmpi_dt_update(rank, pfocus, XMPI_SHOWPROC); } /* * showmsgdt_cb * * Function: - show the message datatype * Accepts: - focus widget * - client data (process rank) */ static void showmsgdt_cb(Widget, XtPointer cdata, XtPointer) { int rank; struct xmfocus *pfocus; /* focus entry */ rank = *((int *) cdata); pfocus = fo_procs + rank; xmpi_dt_update(rank, pfocus, XMPI_SHOWMESG); } /* * showmsgcomm_cb * * Function: - show the message's communicator * Accepts: - focus widget * - client data (process rank) */ static void showmsgcomm_cb(Widget, XtPointer cdata, XtPointer) { int rank; struct xmfocus *pfocus; rank = *((int *) cdata); pfocus = fo_procs + rank; if (pfocus->xmf_proc->xmp_curmsg) { showcomm(pfocus->xmf_proc->xmp_curmsg->xmm_cid, rank); } } /* * showcomm * * Function: - show communicator processes * Accepts: - context ID * - member global rank */ static void showcomm(int cid, int rank) { struct _gps *group; /* GPS */ int lsize; /* size local group */ int rsize; /* size remote group */ int islocal; /* rank is in local group */ char *trace; /* cid trace */ trace = 0; if (fl_dbase) { xmpi_db_getcomm(cid, rank, &group, &lsize, &rsize, &islocal); } else { getcomm(cid, rank, group, &lsize, &rsize, &islocal, &trace); } if (lsize > 0) xmpi_vw_commplot(group, lsize, rsize, islocal); if (trace) free(trace); } /* * msgflip_cb * * Function: - callback to flip messages * Accepts: - focus widget * - client data (process rank) */ static void msgflip_cb(Widget, XtPointer cdata, XtPointer) { int rank; /* process rank */ struct xmproc *pproc; /* process entry */ struct xmfocus *pfocus; /* focus entry */ rank = *((int *) cdata); pfocus = fo_procs + rank; pproc = pfocus->xmf_proc; if (pproc->xmp_msgs) { if (al_count(pproc->xmp_msgs) > 1) { pproc->xmp_curmsg = (xmmsg*) al_next(pproc->xmp_msgs, (char *) pproc->xmp_curmsg); if (pproc->xmp_curmsg == 0 || pproc->xmp_curmsg->xmm_nmsg < 0) { pproc->xmp_curmsg = (xmmsg*) al_top(pproc->xmp_msgs); } } focusmsgfill(rank, pfocus); } } /* * position_cb * * Function: - callback to center focus window position * Accepts: - focus widget */ static void position_cb(Widget focus_w, XtPointer, XtPointer) { Dimension pwidth, pheight; /* parent dimensions */ Dimension width, height; /* focus dimensions */ Dimension swidth, sheight; /* screen dimensions */ Position px, py; /* parent coordinates */ Position x, y; /* focus coordinates */ Widget w; /* favourite widget */ /* * Get the size/coordinates of the top parent and the focus window. * Get the size of the screen. */ w = focus_w; while (!XtIsTopLevelShell(w)) w = XtParent(w); XtVaGetValues(w, XmNx, &px, XmNy, &py, XmNwidth, &pwidth, XmNheight, &pheight, NULL); XtVaGetValues(focus_w, XmNwidth, &width, XmNheight, &height, NULL); swidth = WidthOfScreen(XtScreen(focus_w)); sheight = HeightOfScreen(XtScreen(focus_w)); /* * Position the focus window. */ pwidth += 2 * XMPI_FOBORDER; pheight += XMPI_FOTITLE + XMPI_FOBORDER; px -= XMPI_FOBORDER; py -= XMPI_FOTITLE; width += 2 * XMPI_FOBORDER; height += XMPI_FOTITLE + XMPI_FOBORDER; x = px + pwidth; y = py + yfocus; yfocus += height; if ((yfocus + (height / 2)) > pheight) yfocus = 0; if (x < 0) x = 0; else if ((x + width) > swidth) x = swidth - width; if (y < 0) y = 0; else if ((y + height) > sheight) y = sheight - height; XtVaSetValues(focus_w, XmNx, x, XmNy, y, NULL); } /* * xmpi_fo_reset * * Function: - reset focus position */ void xmpi_fo_reset() { yfocus = 0; } /* * xmpi_fo_busy * * Function: - set busy cursor for focus windows */ void xmpi_fo_busy() { int i; /* favourite index */ struct xmfocus *p; /* favourite pointer */ if (fo_procs) { for (i = 0, p = fo_procs; i < fo_nprocs; ++i, ++p) { if (p->xmf_window) xmpi_busy_widget(p->xmf_window); } } } /* * xmpi_fo_unbusy * * Function: - reset busy cursor for focus windows */ void xmpi_fo_unbusy() { int i; /* favourite index */ struct xmfocus *p; /* favourite pointer */ if (fo_procs) { for (i = 0, p = fo_procs; i < fo_nprocs; ++i, ++p) { if (p->xmf_window) xmpi_unbusy_widget(p->xmf_window); } } } /* * createpixlabels * * Function: - create pixmaps for labels * - 3 traffic lights & 1 message * Accepts: - parent widget */ static void createpixlabels(Widget w) { Pixel fg, bg; /* fore/background colours */ GC pen; /* graphic context */ XGCValues gcvalues; /* graphic context info */ XColor col_def; /* colour definition */ XColor dev_null; /* unused functionality */ Pixmap blkbm; /* blocked bitmap */ Pixmap sysbm; /* system bitmap */ Pixmap runbm; /* running bitmap */ unsigned int depth; /* screen depth */ Display *disp; /* display */ Drawable root; /* root window */ if (blkpix != XmUNSPECIFIED_PIXMAP) { return; } disp = XtDisplay(w); root = RootWindowOfScreen(XtScreen(w)), depth = DefaultDepthOfScreen(XtScreen(w)); XtVaGetValues(w, XmNforeground, &fg, XmNbackground, &bg, NULL); /* * Create the static pixmaps. */ blkpix = XCreatePixmapFromBitmapData(disp, root, (char *) light_bits, light_width, light_height, fg, bg, depth); syspix = XCreatePixmapFromBitmapData(disp, root, (char *) light_bits, light_width, light_height, fg, bg, depth); runpix = XCreatePixmapFromBitmapData(disp, root, (char *) light_bits, light_width, light_height, fg, bg, depth); undefpix = XCreatePixmapFromBitmapData(disp, root, (char *) light_bits, light_width, light_height, fg, bg, depth); mesgpix = XCreatePixmapFromBitmapData(disp, root, (char *) mesg_bits, mesg_width, mesg_height, fg, bg, depth); /* * Create the light bitmaps. */ blkbm = XCreatePixmapFromBitmapData(disp, root, (char *) red_bits, red_width, red_height, (Pixel) 1, (Pixel) 0, 1); sysbm = XCreatePixmapFromBitmapData(disp, root, (char *) yellow_bits, yellow_width, yellow_height, (Pixel) 1, (Pixel) 0, 1); runbm = XCreatePixmapFromBitmapData(disp, root, (char *) green_bits, green_width, green_height, (Pixel) 1, (Pixel) 0, 1); /* * Overlay the coloured lights on top of the traffic light. */ XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(w)), XMPI_BLKCOLOUR, &col_def, &dev_null); gcvalues.foreground = col_def.pixel; gcvalues.background = bg; gcvalues.clip_mask = blkbm; pen = XCreateGC(disp, root, (GCForeground | GCBackground | GCClipMask), &gcvalues); XCopyPlane(disp, blkbm, blkpix, pen, 0, 0, red_width, red_height, 0, 0, (unsigned long) 1); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(w)), XMPI_SYSCOLOUR, &col_def, &dev_null); gcvalues.foreground = col_def.pixel; gcvalues.clip_mask = sysbm; XChangeGC(disp, pen, (GCForeground | GCClipMask), &gcvalues); XCopyPlane(disp, sysbm, syspix, pen, 0, 0, yellow_width, yellow_height, 0, 0, (unsigned long) 1); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(w)), XMPI_RUNCOLOUR, &col_def, &dev_null); gcvalues.foreground = col_def.pixel; gcvalues.clip_mask = runbm; XChangeGC(disp, pen, (GCForeground | GCClipMask), &gcvalues); XCopyPlane(disp, runbm, runpix, pen, 0, 0, green_width, green_height, 0, 0, (unsigned long) 1); /* * Free the light bitmaps and the pen. */ XFreePixmap(disp, blkbm); XFreePixmap(disp, sysbm); XFreePixmap(disp, runbm); XFreeGC(disp, pen); } /* * setmsgcnt * * Function: - set message count * Accepts: - focus entry */ static void setmsgcnt(struct xmfocus *pfocus) { int ncopies; /* # copies */ int nmsg; /* # messages */ int flag; /* sensitivity flag */ struct xmproc *pproc; /* process entry */ strcpy(fmtbuf, " "); flag = False; pproc = pfocus->xmf_proc; if (pproc->xmp_msgs && pproc->xmp_curmsg) { ncopies = pproc->xmp_curmsg->xmm_nmsg; nmsg = pproc->xmp_nmsg; if ((ncopies < 0) && (al_count(pproc->xmp_msgs) == 1)) { strcpy(fmtbuf, "?"); } else { flag = True; sprintf(fmtbuf, "%d%s of %d", ncopies, (pproc->xmp_more) ? "+" : " ", nmsg); } } xmpi_setlabel(pfocus->xmf_nmsg, fmtbuf); XtVaSetValues(pfocus->xmf_nmsgpb, XmNsensitive, flag, NULL); } /* * getcomm * * Function: - get communicator processes * Accepts: - context ID * - member global rank * - array of GPS (out) * - size local group (out) * - size remote group (out) * - local/remote flag (out) * - trace buffer (out) * * If no matching communicator processes can be found the size of the * local group is returned as zero. * In case of an intra-comm the size of the group * is returned in the local group size parameter and 0 * is returned for the size of the remote group parameter. In * case of an inter-comm flag is returned as 1 if member global * rank is in the local group and 0 if in the remote group. */ static void getcomm(int cid, int grank, struct _gps *pgps, int *lsize, int *rsize, int *islocal, char **trace) { struct trcid *t; /* cid trace */ int i; /* favourite index */ if ((*trace = (char*) xmpi_sys_comm(xmpi_app_procs + grank, cid)) == 0) { *lsize = 0; return; } t = (struct trcid *) * trace; *lsize = t->trc_nlg; *rsize = t->trc_nrg; pgps = (struct _gps *) (t + 1); i = group_index(grank, pgps, *lsize); *islocal = (i >= 0); } /* * group_index * * Function: - find index of process in a group * Accepts: - global rank of process * - group GPS * - size of group * Returns: - index in group or -1 if not in group */ static int group_index(int rank, struct _gps *group, int n) { int i; struct _gps *pg; for (i = 0, pg = group; i < n; ++i, ++pg) { if (pg->gps_grank == rank) return (i); } return (-1); } /* * mpiblk_format * * Function: - format state of a process blocked in MPI * Accepts: - process global rank * - process */ static void mpiblk_state_out(int rank, struct xmproc *p) { formatproc(rank, p->xmp_lrank, task_str); strcat(task_str, " "); strcat(task_str, p->xmp_prog); sprintf(func_str, "%s", blktype(p->xmp_func)); nullify(peer_str); nullify(root_str); nullify(tag_str); nullify(cid_str); nullify(count_str); /* * Format according to the function blocked upon. */ switch (p->xmp_func) { /* * These functions show peer/tag/contextid/count. */ case BLKMPIRECV: case BLKMPISEND: case BLKMPISSEND: case BLKMPIRSEND: case BLKMPIBSEND: case BLKMPIIRECV: case BLKMPIISEND: case BLKMPIISSEND: case BLKMPIIRSEND: case BLKMPIIBSEND: formatproc(p->xmp_gpeer, p->xmp_lpeer, peer_str); formattag(p->xmp_tag, tag_str); (void) strcpy(cid_str, p->xmp_commname); sprintf(count_str, "%d", p->xmp_cnt); break; /* * These functions show peer/tag/contextid. */ case BLKMPIPROBE: case BLKMPIIPROBE: sprintf(func_str, "%s", blktype(p->xmp_func)); formatproc(p->xmp_gpeer, p->xmp_lpeer, peer_str); formattag(p->xmp_tag, tag_str); (void) strcpy(cid_str, p->xmp_commname); break; /* * These functions show peer/contextid. */ case BLKMPIICOMMCREATE: formatproc(p->xmp_gpeer, p->xmp_lpeer, peer_str); (void) strcpy(cid_str, p->xmp_commname); break; /* * These functions show root/contextid/count. */ case BLKMPIBCAST: case BLKMPIGATHER: case BLKMPIGATHERV: case BLKMPISCATTER: case BLKMPISCATTERV: case BLKMPIREDUCE: formatproc(p->xmp_groot, p->xmp_lroot, root_str); sprintf(count_str, "%d", p->xmp_cnt); (void) strcpy(cid_str, p->xmp_commname); break; /* * These functions show contextid/count. */ case BLKMPIALLGATHER: case BLKMPIALLGATHERV: case BLKMPIALLTOALL: case BLKMPIALLREDUCE: case BLKMPISCAN: case BLKMPIREDUCESCATTER: (void) strcpy(cid_str, p->xmp_commname); sprintf(count_str, "%d", p->xmp_cnt); break; /* * These functions show contextid/root. */ case BLKMPILSPAWN: case BLKMPICOMMSPAWN: case BLKMPICOMMSPAWNMULT: case BLKMPICOMMCONNECT: case BLKMPICOMMACCEPT: formatproc(p->xmp_groot, p->xmp_lroot, root_str); (void) strcpy(cid_str, p->xmp_commname); break; /* * These functions show contextid. */ case BLKMPIALLTOALLV: case BLKMPIBARRIER: case BLKMPICOMMCREATE: case BLKMPIICOMMMERGE: case BLKMPICOMMSPLIT: case BLKMPICOMMDUP: case BLKMPICARTCREATE: case BLKMPICARTSUB: case BLKMPIGRAPHCREATE: case BLKMPILTRACEON: case BLKMPILTRACEOFF: (void) strcpy(cid_str, p->xmp_commname); break; /* * These are oddballs. In the send/recv parts the top function * is the send/recv so we don't get here. We get here inside sendrecv but * outside the send/recv. */ case BLKMPISENDRECV: case BLKMPISENDRECVREP: p->xmp_dtype = 0; break; /* * MPI_Init shows only the function. We also clear some process information * since the FYI in this case is not accurate. */ case BLKMPIINIT: p->xmp_wfunc = 0; p->xmp_dtype = 0; break; } /* * Add the wrapper function if any. */ if (p->xmp_wfunc != 0) { sprintf(fmtbuf, " (%s)", blktype(p->xmp_wfunc)); strcat(func_str, fmtbuf); } } /* * formatproc * * Function: - formats a processes task * Accepts: - process global rank * - process local rank * - buffer to format into (out) */ static void formatproc(int4 global, int4 local, char *buf) { if (global == XMPI_ANY_SOURCE) strcpy(buf, "MPI_ANY_SOURCE"); else if (local == -1) sprintf(buf, "%d", global); else sprintf(buf, "%d / %d", global, local); } /* * formattag * * Function: - formats a tag for output * Accepts: - tag * - buffer to format into (out) */ static void formattag(int tag, char *str) { if (tag == XMPI_ANY_TAG) { strcpy(str, "ANY"); } else { sprintf(str, "%d", tag); } } xmpi-2.2.3b8/src/xmpi/xmpi_help.cc0000664000076500007650000000403207722033603012463 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_help.cc,v 1.4 2003/08/23 13:49:37 jsquyres Exp $ * * Function: - XMPI help */ #include #include #include #include #include #include #include #include #include #include #include /* * private functions */ extern "C" { static void childtrap(int); } /* * private variables */ static int help_pid = 0; /* * xmpi_help * * Function: - fork-exec help */ void xmpi_help() { char errbuf[512]; char **argv; int pid; struct sigaction chld; /* SIGCHLD action */ if (help_pid > 0) return; if (app_res.ap_helpcmd == 0 || strlen(app_res.ap_helpcmd) == 0) { return; } argv = sfh_argv_break(app_res.ap_helpcmd, ' '); if (argv == 0) { xmpi_error(0, (char*) "xmpi_help (argvbreak)"); } else { chld.sa_handler = childtrap; chld.sa_flags = SA_NOCLDSTOP; sigemptyset(&chld.sa_mask); sigaction(SIGCHLD, &chld, (struct sigaction *) 0); if ((pid = fork()) < 0) { xmpi_error(0, (char*) "xmpi_help (fork)"); } else if (pid == 0) { execvp(argv[0], argv); sprintf(errbuf, "xmpi: ERROR in help command \"%s\"", app_res.ap_helpcmd); perror(errbuf); exit(errno); } else { help_pid = pid; } } } /* * childtrap * * Function: - traps child process termination */ static void childtrap(int) { int status; if (help_pid > 0) { if (waitpid(help_pid, &status, WNOHANG) > 0) { help_pid = 0; } } } xmpi-2.2.3b8/src/xmpi/xmpi_kiviat.cc0000664000076500007650000002642507725267006013045 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_kiviat.cc,v 1.3 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - Kiviat subwindow management functions */ #include #include #include #include #include #include "xmpi.h" #include "xmpi_kiviat.h" #include "xmpi_dbase.h" #include "xmpi_misc.h" /* * local functions */ static void kv_create(); static void popdown_cb(Widget, XtPointer, XtPointer); static void popup_cb(Widget, XtPointer, XtPointer); static void expose_resize_cb(Widget, XtPointer, XmDrawingAreaCallbackStruct *); static void resize(); static void gcinit(); static void plot(); /* * local variables */ static Widget kiviat_w = 0; /* kiviat window */ static Widget draw_w; /* kiviat drawing area */ static Pixmap pixmap; /* kiviat pixmap */ static Dimension drawsize; /* drawing area size */ static Dimension kv_xheight; /* extra height pixels */ static Dimension kv_xwidth; /* extra width pixels */ static GC fgpen = 0; /* foreground pen */ static GC bgpen = 0; /* background pen */ static GC blkpen = 0; /* blocked process pen */ static GC syspen = 0; /* system overhead pen */ static GC runpen = 0; /* running process pen */ static Display *disp; /* drawing area display */ static Drawable root; /* root window */ static unsigned int depth; /* screen depth */ static int fl_position = 1; /* kiviat position flag */ static int fl_up = 0; /* kiviat popped up flag */ static int kv_nprocs = -1; /* # processes */ static double *kv_cosine = 0; /* processes cos(angle) */ static double *kv_sine = 0; /* processes sin(angle) */ static double *kv_block = 0; /* % blocking times */ static double *kv_system = 0; /* % sys. overhead times */ /* * xmpi_kv_popup * * Function: - popup the Kiviat diagram window * - create it if necessary */ void xmpi_kv_popup() { /* * If Kiviat already created pop it up else create it. */ if (!kiviat_w) { kv_create(); } XtPopup(kiviat_w, XtGrabNone); } /* * xmpi_kv_popdown * * Function: - popdown the Kiviat diagram window */ void xmpi_kv_popdown() { if (kiviat_w) { XtPopdown(kiviat_w); } } /* * kv_create * * Function: - create the Kiviat diagram window */ static void kv_create() { Dimension height, width; /* popup dimensions */ /* * Create the Kiviat window. */ kiviat_w = XtVaCreatePopupShell("kiviat_pop", xmDialogShellWidgetClass, xmpi_shell, XmNtitle, "XMPI Kiviat", XmNallowShellResize, True, XmNdeleteResponse, XmUNMAP, XmNmappedWhenManaged, False, NULL); /* * Set Kiviat window callbacks. */ XtAddCallback(kiviat_w, XmNpopupCallback, popup_cb, NULL); XtAddCallback(kiviat_w, XmNpopdownCallback, popdown_cb, NULL); /* * Create the Kiviat drawing area. */ drawsize = XMPI_KVDEFSIZE; draw_w = XtVaCreateManagedWidget("kiviat_draw", xmDrawingAreaWidgetClass, kiviat_w, XmNwidth, drawsize, XmNheight, drawsize, NULL); XtAddCallback(draw_w, XmNexposeCallback, (XtCallbackProc) expose_resize_cb, NULL); XtAddCallback(draw_w, XmNresizeCallback, (XtCallbackProc) expose_resize_cb, NULL); /* * Initialize graphic contexts. */ gcinit(); /* * Create the Kiviat pixmap. */ pixmap = XCreatePixmap(disp, root, drawsize, drawsize, depth); /* * Compute the extra pixels between drawing area and popup. * These are used when resizing. */ XtVaGetValues(kiviat_w, XmNheight, &height, XmNwidth, &width, NULL); kv_xheight = height - drawsize; kv_xwidth = width - drawsize; } /* * popdown_cb * * Function: - Kiviat popup/unmap callback */ static void popdown_cb(Widget, XtPointer, XtPointer) { fl_up = 0; } /* * popup_cb * * Function: - Kiviat popup positioning callback * - center window only after its creation * Accepts: - widget */ static void popup_cb(Widget w, XtPointer, XtPointer) { Position x, y; /* parent coordinates */ Dimension width, height; /* parent dimensions */ Dimension ww, wh; /* widget dimensions */ fl_up = 1; xmpi_kv_update(); XtManageChild(draw_w); if (!fl_position) return; XtVaGetValues(w, XmNwidth, &ww, XmNheight, &wh, NULL); XtVaGetValues(XtParent(w), XmNx, &x, XmNy, &y, XmNwidth, &width, XmNheight, &height, NULL); XtVaSetValues(w, XmNx, x + ((width - ww) / 2), XmNy, y + ((height - wh) / 2), NULL); fl_position = 0; } /* * expose_resize_cb * * Function: - callback function for expose/resize events * Accepts: - widget * - client data * - ptr callback struct */ static void expose_resize_cb(Widget, XtPointer, XmDrawingAreaCallbackStruct *p_callback) { XEvent *event; event = p_callback->event; if (p_callback->reason == XmCR_EXPOSE) { XCopyArea(event->xany.display, pixmap, event->xany.window, fgpen, 0, 0, drawsize, drawsize, 0, 0); } else if (p_callback->reason == XmCR_RESIZE) { resize(); } } /* * resize * * Function: - resize the Kiviat window */ static void resize() { Dimension height, width; /* window sizes */ /* * Force it to be a square of the smallest dimension. */ XtVaGetValues(draw_w, XmNheight, &height, XmNwidth, &width, NULL); drawsize = (width > height) ? height : width; /* * Change the popup dimensions to match. */ XtVaSetValues(kiviat_w, XmNheight, drawsize + kv_xheight, XmNwidth, drawsize + kv_xwidth, NULL); /* * Create a new pixmap and re-plot. */ XFreePixmap(disp, pixmap); pixmap = XCreatePixmap(disp, root, drawsize, drawsize, depth); plot(); } /* * gcinit * * Function: - allocate graphic contexts */ static void gcinit() { Pixel fg; /* foreground colour */ XGCValues gcval; /* graphic context info */ XColor col_def; /* colour definition */ XColor dev_null; /* unused functionality */ if (fgpen) return; disp = XtDisplay(draw_w); root = RootWindowOfScreen(XtScreen(draw_w)); depth = DefaultDepthOfScreen(XtScreen(draw_w)); /* * Create foreground pen. */ XtVaGetValues(draw_w, XmNforeground, &fg, NULL); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), XMPI_LBLCOLOUR, &col_def, &dev_null); gcval.foreground = col_def.pixel; gcval.background = fg; gcval.font = app_res.ap_rankfont->fid; fgpen = XCreateGC(disp, root, (GCFont | GCForeground | GCBackground), &gcval); /* * Create background pen. */ gcval.foreground = fg; bgpen = XCreateGC(disp, root, GCForeground, &gcval); /* * Create system overhead pen. */ XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), XMPI_SYSCOLOUR, &col_def, &dev_null); gcval.foreground = col_def.pixel; syspen = XCreateGC(disp, root, GCForeground, &gcval); /* * Create blocked process pen. */ XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), XMPI_BLKCOLOUR, &col_def, &dev_null); gcval.foreground = col_def.pixel; blkpen = XCreateGC(disp, root, GCForeground, &gcval); /* * Create running process pen. */ XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), XMPI_RUNCOLOUR, &col_def, &dev_null); gcval.foreground = col_def.pixel; runpen = XCreateGC(disp, root, GCForeground, &gcval); } /* * xmpi_kv_update * * Function: - get Kiviat info from dbase and plot it */ void xmpi_kv_update() { int i; /* favourite index */ int n; /* # processes */ double angle; /* text angle position */ double delta; /* angle increment */ if (!fl_up) return; /* * If # processes changed, reallocate information storage space. */ n = xmpi_db_getnprocs(); if (n == 0) return; if (n != kv_nprocs) { kv_nprocs = n; if (kv_block) free((char *) kv_block); kv_block = (double *) malloc((unsigned) 4 * kv_nprocs * sizeof(double)); if (kv_block == 0) { kv_nprocs = 0; return; } kv_system = kv_block + kv_nprocs; kv_cosine = kv_system + kv_nprocs; kv_sine = kv_cosine + kv_nprocs; /* * Compute sin/cos of angles (location is mid-slices). */ delta = (2.0 * PI) / kv_nprocs; angle = delta / 2.0; for (i = 0; i < kv_nprocs; ++i, angle += delta) { kv_cosine[i] = cos(angle); kv_sine[i] = sin(angle); } } /* * Get load information from database and plot Kiviat. */ xmpi_db_getload(kv_nprocs, kv_block, kv_system); plot(); } /* * plot * * Function: - plot current Kiviat info */ static void plot() { int center; /* circle center */ int radius; /* circle radius */ int spoke; /* spoke length */ int x, y; /* coordinates */ int i; /* favourite index */ int dir; /* string direction */ int ascent; /* font ascent */ int descent; /* font descent */ int fmtlen; /* string length */ char fmtbuf[8]; /* formatting buffer */ XCharStruct fmtinfo; /* string font info */ if (!fl_up) return; /* * Determine circle center and radius. * Clear the screen. */ center = drawsize / 2; radius = center - XMPI_KVBORDER; XFillRectangle(disp, pixmap, bgpen, 0, 0, drawsize, drawsize); /* * Plot the process ranks. */ spoke = radius + XMPI_KVTEXT; for (i = 0; i < kv_nprocs; ++i) { x = center + (int) (spoke * kv_cosine[i]); y = center - (int) (spoke * kv_sine[i]); sprintf(fmtbuf, "%d", i); fmtlen = strlen(fmtbuf); XTextExtents(app_res.ap_rankfont, fmtbuf, fmtlen, &dir, &ascent, &descent, &fmtinfo); XDrawString(disp, pixmap, fgpen, x - (fmtinfo.width / 2), y + (fmtinfo.ascent / 2), fmtbuf, fmtlen); } /* * Loop over processes plotting the pie slices. * Angles are in 1/64th of a degree (i.e. 23040 = 360 * 64). */ x = 0; y = 23040 / kv_nprocs; for (i = 0; i < kv_nprocs; ++i, x += y) { if (kv_block[i] < 0) continue; /* * Plot blocked slice. */ XFillArc(disp, pixmap, blkpen, center - radius, center - radius, radius + radius, radius + radius, x, y); /* * Plot system slice. */ spoke = (int) ((double) radius * (1.0 - kv_block[i])); XFillArc(disp, pixmap, syspen, center - spoke, center - spoke, spoke + spoke, spoke + spoke, x, y); /* * Plot user slice. */ spoke = (int) ((double) radius * (1.0 - kv_block[i] - kv_system[i])); XFillArc(disp, pixmap, runpen, center - spoke, center - spoke, spoke + spoke, spoke + spoke, x, y); } /* * Refresh the screen. */ XCopyArea(disp, pixmap, XtWindow(draw_w), fgpen, 0, 0, drawsize, drawsize, 0, 0); } /* * xmpi_kv_busy * * Function: - set the busy cursor for the Kiviat window */ void xmpi_kv_busy() { if (kiviat_w) xmpi_busy_widget(kiviat_w); } /* * xmpi_kv_unbusy * * Function: - set the normal cursor for the Kiviat window */ void xmpi_kv_unbusy() { if (kiviat_w) xmpi_unbusy_widget(kiviat_w); } xmpi-2.2.3b8/src/xmpi/xmpi_matrix.cc0000664000076500007650000003374507725267006013065 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_matrix.cc,v 1.5 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - message matrix subwindow management functions */ #include #include #include #include #include #include #include "xmpi.h" #include "xmpi_view.h" #include "xmpi_misc.h" #include "xmpi_matrix.h" #include "Bitmaps/src1.xbm" #include "Bitmaps/src2.xbm" #include "Bitmaps/src3.xbm" #include "Bitmaps/src4.xbm" #include "Bitmaps/src5.xbm" #include "Bitmaps/src6.xbm" #include "Bitmaps/src7.xbm" #include "Bitmaps/srcx.xbm" /* * external variables */ extern struct _gps *xmpi_app_procs; /* appl. GPS array */ /* * local functions */ static void destroy_cb(); static void expose_cb(Widget, XtPointer, XmDrawingAreaCallbackStruct*); static void gcinit(); static void mat_clear(); static void mat_create(); static void mat_plot_grid(); static void popdown_cb(Widget); static void popup_cb(Widget); /* * local variables */ static Widget draw_w; /* matrix drawing area */ static Widget matrix_w = 0; /* matrix window */ static Widget mgr_w; /* matrix manager */ static Widget scroll_w; /* scrolled window */ static Pixmap pixmap; /* matrix pixmap */ static Pixmap src_pix[XMPI_MTCNTMAX + 1]; /* msg source count pixmaps */ static Dimension bordersize; /* space around grid */ static Dimension drawsize; /* drawing area size */ static GC lblpen = 0; /* labelling pen */ static GC bgpen = 0; /* background pen */ static GC gridpen = 0; /* grid line pen */ static Display *disp; /* drawing area display */ static Drawable root; /* root window */ static unsigned int depth; /* screen depth */ static int fl_up = 0; /* matrix popped up flag */ static int mat_nprocs = 0; /* # processes */ static int *mat_src; /* message source count */ const char *src_colours[XMPI_MTCNTMAX + 1] = { XMPI_RUNCOLOUR, XMPI_SYSCOLOUR, XMPI_BLKCOLOUR, XMPI_RCOMCOLOUR, XMPI_LCOMCOLOUR, XMPI_SYSCOLOUR, XMPI_RCOMCOLOUR, XMPI_LBLCOLOUR }; static unsigned char *src_bits[XMPI_MTCNTMAX + 1] = { src1_bits, src2_bits, src3_bits, src4_bits, src5_bits, src6_bits, src7_bits, srcx_bits }; /* * xmpi_mat_popup * * Function: - popup the message matrix window * - creates it if necessary */ void xmpi_mat_popup() { struct xmproc *mat_procs; /* process status array */ /* * If matrix already created pop it up else create it. */ if (!matrix_w) { mat_nprocs = xmpi_vw_getnprocs(); mat_procs = xmpi_vw_getprocs(); if (mat_nprocs <= 0) return; mat_src = (int *) malloc((unsigned) (mat_nprocs * sizeof(int))); if (mat_src == 0) xmpi_fail((char*) "xmpi (malloc)"); mat_create(); fl_up = 1; xmpi_mat_update(mat_procs); } XtPopup(matrix_w, XtGrabNone); } /* * mat_create * * Function: - creates the message matrix window */ static void mat_create() { Dimension minscrollsize; /* min scroller resize */ Dimension scrollsize; /* initial scroller size */ if (mat_nprocs < XMPI_MTMINPROC) { bordersize = (Dimension) (((XMPI_MTMINPROC - mat_nprocs) / 2.0) * XMPI_MTCELLSIZE) + XMPI_MTCELLSIZE; } else { bordersize = 2 * XMPI_MTCELLSIZE; } drawsize = (mat_nprocs * XMPI_MTCELLSIZE) + (2 * bordersize); minscrollsize = (XMPI_MTMINPROC * XMPI_MTCELLSIZE) + (2 * XMPI_MTCELLSIZE) + XMPI_VWXWIDTH; scrollsize = (((XMPI_MTMAXPROC < mat_nprocs) ? XMPI_MTMAXPROC : mat_nprocs) * XMPI_MTCELLSIZE) + (2 * bordersize) + XMPI_VWXWIDTH; /* * Create the matrix window. */ matrix_w = XtVaCreatePopupShell("matrix_pop", xmDialogShellWidgetClass, xmpi_shell, XmNtitle, "XMPI Message Matrix", XmNmappedWhenManaged, False, XmNmaxWidth, drawsize + XMPI_VWXWIDTH, XmNmaxHeight, drawsize + XMPI_VWXHEIGHT, XmNminWidth, minscrollsize, XmNminHeight, minscrollsize, NULL); /* * Set matrix window callbacks. */ XtAddCallback(matrix_w, XmNpopupCallback, (XtCallbackProc) popup_cb, NULL); XtAddCallback(matrix_w, XmNpopdownCallback, (XtCallbackProc) popdown_cb, NULL); XtAddCallback(matrix_w, XmNdestroyCallback, (XtCallbackProc) destroy_cb, NULL); mgr_w = XtVaCreateWidget("matrix_mgr", xmFormWidgetClass, matrix_w, NULL); /* * Build the scrolled window. */ scroll_w = XtVaCreateManagedWidget("matrix_view", xmScrolledWindowWidgetClass, mgr_w, XmNscrollingPolicy, XmAUTOMATIC, XmNheight, scrollsize, XmNwidth, scrollsize, XmNspacing, 0, XmNrightAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); /* * Create the matrix drawing area. */ draw_w = XtVaCreateManagedWidget("matrix_draw", xmDrawingAreaWidgetClass, scroll_w, XmNwidth, drawsize, XmNheight, drawsize, NULL); XtAddCallback(draw_w, XmNexposeCallback, (XtCallbackProc) expose_cb, NULL); XtManageChild(mgr_w); /* * Initialize graphic contexts. */ gcinit(); /* * Create the matrix pixmap. */ pixmap = XCreatePixmap(disp, root, drawsize, drawsize, depth); } /* * xmpi_mat_destroy * * Function: - destroys matrix window */ void xmpi_mat_destroy() { Widget w; if (matrix_w) { XtUnmapWidget(matrix_w); w = matrix_w; mat_clear(); XtDestroyWidget(w); fl_up = 0; } } /* * destroy_cb * * Function: - matrix window destroy callback */ static void destroy_cb() { mat_clear(); } /* * mat_clear * * Function: - cleans up resources associated with matrix window */ static void mat_clear() { int i; if (!matrix_w) return; /* * Flushing the dispay here eliminates a BadGC (invalid GC parameter) * error that occurs in some cases. I am not quite sure what the exact * cause of the error is but I suspect it is some attempt to update the * matrix window after the GCs have been freed. */ XmUpdateDisplay(matrix_w); matrix_w = 0; /* * Free information storage space. */ free(mat_src); /* * Destroy pixmaps and pens. */ for (i = 0; i <= XMPI_MTCNTMAX; ++i) { XFreePixmap(disp, src_pix[i]); } XFreePixmap(disp, pixmap); XFreeGC(disp, lblpen); XFreeGC(disp, bgpen); XFreeGC(disp, gridpen); } /* * popup_cb * * Function: - matrix popup callback * Accepts: - widget */ static void popup_cb(Widget) { fl_up = 1; XtManageChild(mgr_w); } /* * popdown_cb * * Function: - matrix popdown callback * Accepts: - widget */ static void popdown_cb(Widget) { fl_up = 0; } /* * expose_cb * * Function: - callback function for expose events * Accepts: - widget * - client data * - ptr callback struct */ static void expose_cb(Widget, XtPointer, XmDrawingAreaCallbackStruct *p_callback) { XEvent *event; event = p_callback->event; XCopyArea(event->xany.display, pixmap, event->xany.window, lblpen, 0, 0, drawsize, drawsize, 0, 0); } /* * gcinit * * Function: - allocate graphic contexts */ static void gcinit() { Pixel fg, bg; /* fore/background colours */ XGCValues gcval; /* graphic context info */ XColor col_def; /* colour definition */ XColor dev_null; /* unused functionality */ Pixmap bm; /* source count bitmap */ GC pen; /* src cnt bitmap GC */ int i; disp = XtDisplay(draw_w); root = RootWindowOfScreen(XtScreen(draw_w)); depth = DefaultDepthOfScreen(XtScreen(draw_w)); XtVaGetValues(draw_w, XmNforeground, &fg, XmNbackground, &bg, NULL); /* * Create the label, grid and background pens. */ gcval.line_width = XMPI_MTLNWIDTH; gcval.foreground = bg; gcval.background = fg; gridpen = XCreateGC(disp, root, GCLineWidth | GCForeground | GCBackground, &gcval); gcval.foreground = fg; bgpen = XCreateGC(disp, root, GCForeground, &gcval); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), XMPI_LBLCOLOUR, &col_def, &dev_null); gcval.foreground = col_def.pixel; gcval.background = fg; gcval.font = app_res.ap_rankfont->fid; lblpen = XCreateGC(disp, root, GCFont | GCForeground | GCBackground, &gcval); /* * Create the source message count pixmaps. */ for (i = 0; i <= XMPI_MTCNTMAX; ++i) { bm = XCreateBitmapFromData(disp, root, (const char *) src_bits[i], src1_width, src1_height); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), src_colours[i], &col_def, &dev_null); gcval.foreground = col_def.pixel; gcval.background = fg; gcval.clip_mask = bm; pen = XCreateGC(disp, root, GCForeground | GCBackground | GCClipMask, &gcval); src_pix[i] = XCreatePixmapFromBitmapData(disp, root, (char *) src_bits[i], src1_width, src1_height, bg, fg, depth); XCopyPlane(disp, bm, src_pix[i], pen, 0, 0, src1_width, src1_height, 0, 0, (unsigned long) 1); XFreePixmap(disp, bm); XFreeGC(disp, pen); } } /* * xmpi_mat_update * * Function: - get matrix info from dbase and plot it * Accepts: - process status information */ void xmpi_mat_update(struct xmproc *mat_procs) { int i, j; Dimension x, y; /* coordinates */ Pixmap pix; /* source count pixmap */ struct xmmsg *p; /* message aggregate */ if (!fl_up) return; /* * Clear the screen. */ XFillRectangle(disp, pixmap, bgpen, 0, 0, drawsize, drawsize); mat_plot_grid(); y = bordersize; for (i = 0; i < mat_nprocs; ++i) { if (!mat_procs[i].xmp_msgs) { y += XMPI_MTCELLSIZE; continue; } for (j = 0; j < mat_nprocs; ++j) { mat_src[j] = 0; } p = (xmmsg*) al_top(mat_procs[i].xmp_msgs); while (p) { if (p->xmm_nmsg > 0) { mat_src[p->xmm_gsrc] += p->xmm_nmsg; } p = (xmmsg*) al_next(mat_procs[i].xmp_msgs, p); } x = bordersize; for (j = 0; j < mat_nprocs; ++j) { if (mat_src[j] == 0) { x += XMPI_MTCELLSIZE; continue; } if (mat_src[j] > XMPI_MTCNTMAX) { pix = src_pix[XMPI_MTCNTMAX]; } pix = src_pix[mat_src[j] - 1]; XCopyArea(disp, pix, pixmap, bgpen, 0, 0, src1_width, src1_height, x + XMPI_MTCNTINSET, y + XMPI_MTCNTINSET); x += XMPI_MTCELLSIZE; } y += XMPI_MTCELLSIZE; } XCopyArea(disp, pixmap, XtWindow(draw_w), bgpen, 0, 0, drawsize, drawsize, 0, 0); } /* * mat_plot_grid * * Function: - plots the matrix outline and labels */ static void mat_plot_grid() { int i; int x, y; /* coordinates */ int w, h; /* width and height */ int dir; /* string direction */ int ascent; /* font ascent */ int descent; /* font descent */ int fmtlen; /* string length */ char *destxt, *srctxt; /* labels */ char fmtbuf[8]; /* formatting buffer */ XCharStruct fmtinfo; /* string font info */ XFontStruct *finfo; /* font information */ /* * Clear the screen. */ XFillRectangle(disp, pixmap, bgpen, 0, 0, drawsize, drawsize); /* * Plot the horizontal grid lines. */ x = bordersize; y = bordersize; for (i = 0; i <= mat_nprocs; ++i) { XDrawLine(disp, pixmap, gridpen, x, y, x + (XMPI_MTCELLSIZE * mat_nprocs), y); y += XMPI_MTCELLSIZE; } /* * Plot the vertical grid lines. */ x = bordersize; y = bordersize; for (i = 0; i <= mat_nprocs; ++i) { XDrawLine(disp, pixmap, lblpen, x, y, x, y + (XMPI_MTCELLSIZE * mat_nprocs)); x += XMPI_MTCELLSIZE; } /* * Plot the process rank labels. */ for (i = 0; i < mat_nprocs; ++i) { sprintf(fmtbuf, "%d", i); fmtlen = strlen(fmtbuf); XTextExtents(app_res.ap_rankfont, fmtbuf, fmtlen, &dir, &ascent, &descent, &fmtinfo); x = bordersize - ((XMPI_MTLNWIDTH / 2) + 1); y = bordersize + (XMPI_MTCELLSIZE * i) + (XMPI_MTCELLSIZE / 2); XDrawString(disp, pixmap, lblpen, x - fmtinfo.width, y + (fmtinfo.ascent / 2), fmtbuf, fmtlen); x = bordersize + (XMPI_MTCELLSIZE * i) + (XMPI_MTCELLSIZE / 2); y = bordersize - ((XMPI_MTLNWIDTH / 2) + 2); XDrawString(disp, pixmap, lblpen, x - (fmtinfo.width / 2), y, fmtbuf, fmtlen); } if (mat_nprocs > 1) { if (mat_nprocs > 3) { srctxt = (char*) "source"; destxt = (char*) "destination"; } else { srctxt = (char*) "src"; destxt = (char*) "des"; } /* * Plot the source ranks label. */ finfo = XQueryFont(disp, app_res.ap_rankfont->fid); XTextExtents(app_res.ap_rankfont, srctxt, strlen(srctxt), &dir, &ascent, &descent, &fmtinfo); x = drawsize / 2 - (fmtinfo.width / 2); y = bordersize - ((XMPI_MTLNWIDTH / 2) + 4) - 2 * (finfo->max_bounds.descent + finfo->max_bounds.descent); XDrawString(disp, pixmap, lblpen, x, y, srctxt, strlen(srctxt)); /* * Plot the destination ranks label. */ xmpi_vstr_extent(destxt, *app_res.ap_rankfont, &w, &h); x = bordersize - ((XMPI_MTLNWIDTH / 2) + 2) - finfo->max_bounds.width - w; y = (drawsize - h) / 2; xmpi_vstr_draw(disp, pixmap, lblpen, x, y, destxt, *app_res.ap_rankfont); XFreeFontInfo((char **) 0, finfo, 1); } /* * Refresh the screen. */ XCopyArea(disp, pixmap, XtWindow(draw_w), gridpen, 0, 0, drawsize, drawsize, 0, 0); } /* * xmpi_mat_busy * * Function: - set the busy cursor for the matrix window */ void xmpi_mat_busy() { if (matrix_w) xmpi_busy_widget(matrix_w); } /* * xmpi_mat_unbusy * * Function: - set the normal cursor for the matrix window */ void xmpi_mat_unbusy() { if (matrix_w) xmpi_unbusy_widget(matrix_w); } xmpi-2.2.3b8/src/xmpi/xmpi_misc.cc0000664000076500007650000004156207725267006012510 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_misc.cc,v 1.5 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - miscellaneous XMPI functions */ #include #include #include #include #include #include #include #include #include #include #include "xmpi.h" #include "xmpi_misc.h" #include "xpm.h" #include "Bitmaps/stipple.xbm" /* * local functions */ static Pixmap make_stippled(Display*, Drawable, Widget, Pixel, Pixmap); static void wait_cb(Widget, int*, XmAnyCallbackStruct*); /* * local variables */ static Cursor busycursor = 0; /* busy cursor */ /* * local macros and defines */ #define YES 1 #define NO 2 /* * xmpi_atexit * * Function: - wrapper for atexit() */ void xmpi_atexit(xmpi_atexit_funct funct) { #if HAVE_ATEXIT atexit(funct); #else on_exit((int ((*) ())) funct, (char *) 0); #endif } /* * xmpi_fail * * Function: - print error message and exit * Accepts: - error message */ void xmpi_fail(char *msg) { perror(msg); exit(errno); } /* * xmpi_coll2pt * * Function: - change context ID from collective to pt2pt * Accepts: - collective context ID * Returns: - pt2pt context ID */ int xmpi_coll2pt(int cid) { return ((cid >= 0) ? cid : -(cid + 1)); } /* * xmpi_flush * * Function: - flush and update display */ void xmpi_flush() { XFlush(XtDisplay(xmpi_shell)); XmUpdateDisplay(xmpi_shell); } /* * xmpi_busy_widget * * Function: - switches windows cursor to a busy indicator * Accepts: - any widget in the window */ void xmpi_busy_widget(Widget w) { if (busycursor == 0) { busycursor = XCreateFontCursor(XtDisplay(w), XC_watch); } XDefineCursor(XtDisplay(w), XtWindow(w), busycursor); xmpi_flush(); } /* * xmpi_unbusy_widget * * Function: - switches windoews cursor back to normal value * Accepts: - any widget in the window */ void xmpi_unbusy_widget(Widget w) { XUndefineCursor(XtDisplay(w), XtWindow(w)); } /* * xmpi_vstr_extent * * Function: - get extent of vertical text * Accepts: - text string * - text font * - text width (out) * - text height (out) * Returns: - */ void xmpi_vstr_extent(char *str, XFontStruct font, int *width, int *height) { int dir; /* string direction */ int ascent; /* font ascent */ int descent; /* font descent */ XCharStruct fmtinfo; /* string font info */ XTextExtents(&font, str, strlen(str), &dir, &ascent, &descent, &fmtinfo); *height = fmtinfo.width; *width = fmtinfo.ascent + fmtinfo.descent; } /* * xmpi_vstr_draw * * Function: - draw vertical text * Accepts: - display * - drawable text is to be drawn into * - graphics context to draw with * - x position of text in drawable * - y position of text on drawable * - text string * - text font (must be that in the GC) */ void xmpi_vstr_draw(Display *disp, Drawable draw, GC gc, int x, int y, char *str, XFontStruct font) { XImage *hori, *vert; int xp, yp; Pixmap pix; int w, h; int dir; /* string direction */ int ascent; /* font ascent */ int descent; /* font descent */ XCharStruct fmtinfo; /* string font info */ XGCValues gcval; /* graphic context info */ Pixel fg; /* foreground */ unsigned long pixel; unsigned int depth; memset(&gcval, 0, sizeof(gcval)); depth = DefaultDepth(disp, DefaultScreen(disp)); XTextExtents(&font, str, strlen(str), &dir, &ascent, &descent, &fmtinfo); w = fmtinfo.width; h = fmtinfo.ascent + fmtinfo.descent; pix = XCreatePixmap(disp, draw, w, h, depth); XGetGCValues(disp, gc, GCForeground, &gcval); fg = gcval.foreground; gcval.foreground = gcval.background; XChangeGC(disp, gc, GCForeground, &gcval); XFillRectangle(disp, pix, gc, 0, 0, w, h); gcval.foreground = fg; XChangeGC(disp, gc, GCForeground, &gcval); XDrawImageString(disp, pix, gc, 0, fmtinfo.ascent, str, strlen(str)); hori = XCreateImage(disp, DefaultVisual(disp, DefaultScreen(disp)), depth, XYPixmap, 0, XtMalloc(((w + 7) / 8) * (h + 1) * depth), w, h, 8, 0); XGetSubImage(disp, pix, 0, 0, w, h, AllPlanes, XYPixmap, hori, 0, 0); vert = XCreateImage(disp, DefaultVisual(disp, DefaultScreen(disp)), depth, XYPixmap, 0, XtMalloc(((h + 7) / 8) * (w + 1) * depth), h, w, 8, 0); for (xp = 0; xp < w; xp++) { for (yp = 0; yp < h; yp++) { pixel = XGetPixel(hori, xp, yp); XPutPixel(vert, yp, w - 1 - xp, pixel); } } XPutImage(disp, draw, gc, vert, 0, 0, x, y, h, w); XDestroyImage(hori); XDestroyImage(vert); XFreePixmap(disp, pix); } /* * xmpi_mkpixbutton * * Function: - make a button with pixmap * - creates pixmaps for the regular and armed * button, and for "insensitive" mode if needed * - pixmaps are not created if "bits" is NULL * Accepts: - parent widget * - activate callback function (or NULL) * - activate argument (or NULL) * - arm callback function (or NULL) * - arm argument (or NULL) * - disarm callback function (or NULL) * - disarm argument (or NULL) * - pixmap bits * - pixmap width * - pixmap height * - insensitive flag * Returns: - button widget */ Widget xmpi_mkpixbutton(Widget parent_w, void (*act_cb) (Widget, XtPointer, XtPointer), char *act_arg, void (*arm_cb) (Widget, XtPointer, XtPointer), char *arm_arg, void (*dis_cb) (Widget, XtPointer, XtPointer), char *dis_arg, unsigned char *pixbits, int pixwidth, int pixheight, int fl_insensitive) { Widget w; /* favourite widget */ Pixmap pix; /* button pixmap */ Pixmap clipmask; /* clipmask bitmap */ Pixmap stipple; /* stipple bitmap */ Pixel fg, bg, ag; /* button colours */ GC pen; /* stipple pen */ XGCValues val; /* pen values */ Display *display; /* display pointer */ Drawable root; /* root of screen */ unsigned int depth; /* depth of screen */ /* * Create the button. */ w = XtVaCreateManagedWidget("ctl_btn", xmPushButtonWidgetClass, parent_w, NULL); /* * Set the callback functions. */ if (act_cb) XtAddCallback(w, XmNactivateCallback, act_cb, act_arg); if (arm_cb) XtAddCallback(w, XmNarmCallback, arm_cb, arm_arg); if (dis_cb) XtAddCallback(w, XmNdisarmCallback, dis_cb, dis_arg); /* * If needed, create/attach the pixmap. */ if (pixbits) { XtVaGetValues(parent_w, XmNforeground, &fg, XmNbackground, &bg, NULL); display = XtDisplay(parent_w); root = RootWindowOfScreen(XtScreen(parent_w)); depth = DefaultDepthOfScreen(XtScreen(parent_w)); pix = XCreatePixmapFromBitmapData(display, root, (char *) pixbits, pixwidth, pixheight, fg, bg, depth); XtVaSetValues(w, XmNlabelType, XmPIXMAP, XmNlabelPixmap, pix, NULL); /* * Create the armed-mode pixmap. */ XtVaGetValues(w, XmNarmColor, &ag, NULL); pix = XCreatePixmapFromBitmapData(display, root, (char *) pixbits, pixwidth, pixheight, fg, ag, depth); XtVaSetValues(w, XmNarmPixmap, pix, NULL); /* * Create the insensitive-mode pixmap if needed. */ if (fl_insensitive) { pix = XCreatePixmap(display, root, (int) pixwidth, pixheight, depth); val.foreground = bg; pen = XCreateGC(display, pix, GCForeground, &val); XFillRectangle(display, pix, pen, 0, 0, pixwidth, pixheight); clipmask = XCreateBitmapFromData(display, root, (char *) pixbits, pixwidth, pixheight); stipple = XCreateBitmapFromData(display, root, (char *) stipple_bits, stipple_width, stipple_height); val.foreground = fg; val.background = bg; val.fill_style = FillStippled; val.stipple = stipple; val.clip_mask = clipmask; XChangeGC(display, pen, GCForeground | GCBackground | GCFillStyle | GCStipple | GCClipMask, &val); XFillRectangle(display, pix, pen, 0, 0, pixwidth, pixheight); XtVaSetValues(w, XmNlabelInsensitivePixmap, pix, NULL); XFreeGC(display, pen); XFreePixmap(display, stipple); XFreePixmap(display, clipmask); } } return (w); } /* * xmpi_mkcolpixbutton * * Function: - make a button with coloured pixmap * - creates pixmaps for the regular and armed * button, and for "insensitive" mode if needed * Accepts: - parent widget * - activate callback function (or NULL) * - activate argument (or NULL) * - arm callback function (or NULL) * - arm argument (or NULL) * - disarm callback function (or NULL) * - disarm argument (or NULL) * - pixmap xpm * - insensitive flag * Returns: - button widget or 0 if pixmap could not be created */ Widget xmpi_mkcolpixbutton(Widget parent_w, void (*act_cb) (Widget, XtPointer, XtPointer), char *act_arg, void (*arm_cb) (Widget, XtPointer, XtPointer), char *arm_arg, void (*dis_cb) (Widget, XtPointer, XtPointer), char *dis_arg, const char *xpm[], int fl_insensitive) { Widget w; /* favourite widget */ Pixmap pix; /* button pixmap */ Pixel fg, bg; /* button colours */ Display *display; /* display pointer */ Drawable root; /* root of screen */ int width; /* width of button pixmap */ int height; /* height of button pixmap */ /* * Create the button. */ w = XtVaCreateManagedWidget("ctl_btn", xmPushButtonWidgetClass, parent_w, NULL); /* * Set the callback functions. */ if (act_cb) XtAddCallback(w, XmNactivateCallback, act_cb, act_arg); if (arm_cb) XtAddCallback(w, XmNarmCallback, arm_cb, arm_arg); if (dis_cb) XtAddCallback(w, XmNdisarmCallback, dis_cb, dis_arg); /* * Create/attach the pixmap. */ display = XtDisplay(parent_w); root = RootWindowOfScreen(XtScreen(parent_w)); XtVaGetValues(parent_w, XmNforeground, &fg, XmNbackground, &bg, NULL); xpm_build(w, xpm, bg, &pix, &width, &height); /* * Destroy the widget and bail out if the pixmap couldn't be made. */ if (pix == XmUNSPECIFIED_PIXMAP) { XtDestroyWidget(w); return (0); } XtVaSetValues(w, XmNlabelType, XmPIXMAP, XmNlabelPixmap, pix, XmNhighlightColor, bg, NULL); /* * Create the insensitive-mode pixmap if needed. */ if (fl_insensitive) { pix = make_stippled(display, root, w, bg, pix); XtVaSetValues(w, XmNlabelInsensitivePixmap, pix, NULL); } return (w); } /* * xmpi_formattach * * Function: - attach widget to Form (fractionBase) positions * - work around SUN SDK Motif bug * - negative positions are not attached * Accepts: - widget * - top/bottom/left/right positions */ void xmpi_formattach(Widget w, int top, int bottom, int left, int right) { int frac; /* Form fractionBase */ XtVaGetValues(XtParent(w), XmNfractionBase, &frac, NULL); if (top == 0) { XtVaSetValues(w, XmNtopAttachment, XmATTACH_FORM, NULL); } else if (top > 0) { XtVaSetValues(w, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, top, NULL); } if (left == 0) { XtVaSetValues(w, XmNleftAttachment, XmATTACH_FORM, NULL); } else if (left > 0) { XtVaSetValues(w, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, left, NULL); } if (bottom == frac) { XtVaSetValues(w, XmNbottomAttachment, XmATTACH_FORM, NULL); } else if (bottom > 0) { XtVaSetValues(w, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, bottom, NULL); } if (right == frac) { XtVaSetValues(w, XmNrightAttachment, XmATTACH_FORM, NULL); } else if (right > 0) { XtVaSetValues(w, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, right, NULL); } } /* * xmpi_mklabel * * Function: - create a label with or without a frame * Accepts: - parent widget * - label string * - label alignment * - frame flag * Returns: - label widget */ Widget xmpi_mklabel(Widget parent_w, char *string, int align, int fl_frame) { Widget lbl_w; /* label widget */ Widget frm_w; /* frame widget */ if (string == 0) string = (char*) " "; if (fl_frame) { frm_w = XtVaCreateManagedWidget("label_frame", xmFrameWidgetClass, parent_w, XmNshadowType, XmSHADOW_IN, XmNshadowThickness, 2, NULL); parent_w = frm_w; } lbl_w = XtVaCreateManagedWidget(string, xmLabelWidgetClass, parent_w, XmNalignment, align, NULL); return (lbl_w); } /* * xmpi_setlabel * * Function: - set the contents of a label * Accepts: - label widget * - string */ void xmpi_setlabel( Widget lbl_w, char *string) { XtVaSetValues(lbl_w, XtVaTypedArg, XmNlabelString, XmRString, string, strlen(string) + 1, NULL); } /* * make_stippled * * Function: - create a stippled version of a pixmap * Accepts: - X display * - root drawable * - pushbutton on which pixmap is to be used * - background colour * - pixmap to be stippled * Returns: - stippled pixmap */ static Pixmap make_stippled(Display *display, Drawable root, Widget pushbutton, Pixel bg, Pixmap pix) { static unsigned char stipplebitmap[8] = {0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA}; Pixmap stipple; Pixmap inspix; GC gc; XGCValues gcvalues; Window rootwindow; int x, y; unsigned int width, height; unsigned int border; unsigned int depth; stipple = XCreateBitmapFromData(display, root, (char *) stipplebitmap, 8, 8); gcvalues.foreground = bg; gcvalues.fill_style = FillStippled; gcvalues.stipple = stipple; gc = XtGetGC(pushbutton, GCForeground | GCFillStyle | GCStipple, &gcvalues); XGetGeometry(display, pix, &rootwindow, &x, &y, &width, &height, &border, &depth); inspix = XCreatePixmap(display, root, width, height, depth); XCopyArea(display, pix, inspix, gc, 0, 0, width, height, 0, 0); XFillRectangle(display, inspix, gc, 0, 0, width, height); XtReleaseGC(pushbutton, gc); XFreePixmap(display, stipple); return (inspix); } /* * xmpi_nosash * * Function: - removes sashes from paned manager * Accepts: - paned widget */ void xmpi_nosash(Widget paned) { Widget *pchildren; /* children of paned mgr */ int nchildren; /* # paned children */ /* * Remove separators and make sashes microscopic. */ #if 0 XtVaSetValues(paned, XmNsashWidth, 1, XmNsashHeight, 1, XmNseparatorOn, False, NULL); #endif /* * Remove the sashes from tab traversal. */ XtVaGetValues(paned, XmNchildren, &pchildren, XmNnumChildren, &nchildren, NULL); while (nchildren-- > 0) { if (XmIsSash(pchildren[nchildren])) { XtVaSetValues(pchildren[nchildren], XmNtraversalOn, False, NULL); } } } /* * xmpi_yesno * * Function: - pop up dialog asking a yes/no type question, wait * for and return the users response * Accepts: - parent widget * - text of the question * Returns: - 1 if user responds YES, else 0 */ int xmpi_yesno(Widget parent, char *question) { Widget dialog_w; /* question dialog */ XmString str1, str2, str3; /* various strings */ Arg args[5]; int response = 0; /* response to question */ str1 = XmStringCreateSimple(question); str2 = XmStringCreateSimple((char*) "Yes"); str3 = XmStringCreateSimple((char*) "No"); XtSetArg(args[0], XmNmessageString, str1); XtSetArg(args[1], XmNdialogStyle, XmDIALOG_FULL_APPLICATION_MODAL); XtSetArg(args[2], XmNautoUnmanage, False); XtSetArg(args[3], XmNokLabelString, str2); XtSetArg(args[4], XmNcancelLabelString, str3); dialog_w = XmCreateQuestionDialog(xmpi_wmshell(parent), (char*) "wait_pop", args, 5); XmStringFree(str1); XmStringFree(str2); XmStringFree(str3); XtAddCallback(dialog_w, XmNokCallback, (XtCallbackProc) wait_cb, &response); XtAddCallback(dialog_w, XmNcancelCallback, (XtCallbackProc) wait_cb, &response); XtUnmanageChild(XmMessageBoxGetChild(dialog_w, XmDIALOG_HELP_BUTTON)); XtManageChild(dialog_w); XtPopup(XtParent(dialog_w), XtGrabNone); /* * Wait until a response has been selected. */ while (!response) { XtAppProcessEvent(XtWidgetToApplicationContext(parent), XtIMAll); } return (response == YES); } /* * wait_cb * * Function: - set users response * callback for xmpi_yesno * Accepts: - callback parms */ static void wait_cb(Widget w, int *answer, XmAnyCallbackStruct *cbs) { switch (cbs->reason) { case XmCR_OK: *answer = YES; break; default: *answer = NO; } XtDestroyWidget(w); } xmpi-2.2.3b8/src/xmpi/xmpi_nodes.cc0000664000076500007650000001423707725267006012664 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_nodes.cc,v 1.5 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - node list panel in builder dialog * - only understands host file syntax */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include // Extern variables extern struct xmpi_node *nodes; extern int nodes_length; /* * local functions */ static void nodes_fill(); static void nodes_select_cb(Widget, XtPointer, XmListCallbackStruct*); /* * local variables */ #define MAXLINE 80 static Widget list_w; /* * xmpi_nodes_build * * Function: - builds node panel * Accepts: - parent widget */ void xmpi_nodes_build(Widget parent_w) { Widget mgr_w; XmString xstr; mgr_w = XtVaCreateWidget("nodes_mgr", xmPanedWindowWidgetClass, parent_w, XmNsashWidth, 1, XmNsashHeight, 1, XmNseparatorOn, False, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 1, XmNleftOffset, 5, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 2, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); xstr = XmStringCreateSimple((char*) "Select Nodes"); XtVaCreateManagedWidget("banner", xmLabelWidgetClass, mgr_w, XmNlabelString, xstr, NULL); XmStringFree(xstr); list_w = XmCreateScrolledList(mgr_w, (char*) "nodes_list", NULL, 0); XtVaSetValues(list_w, XmNscrollBarDisplayPolicy, XmSTATIC, XmNscrollHorizontal, False, XmNselectionPolicy, XmEXTENDED_SELECT, NULL); XtAddCallback(list_w, XmNdefaultActionCallback, (XtCallbackProc) nodes_select_cb, NULL); XtAddCallback(list_w, XmNextendedSelectionCallback, (XtCallbackProc) nodes_select_cb, NULL); XtManageChild(list_w); /* * Fill the list. */ nodes_fill(); xmpi_nosash(mgr_w); XtManageChild(mgr_w); } void xmpi_nodes_update() { XtVaSetValues(list_w, XmNselectionPolicy, XmMULTIPLE_SELECT, NULL); for (int i = 0 ; i < nodes_length ; ++i) if (nodes[i].selected != 0) { XmListDeselectPos(list_w, i + 1); XmListSelectPos(list_w, i + 1, False); } else XmListDeselectPos(list_w, i + 1); // switch back into the EXTENDED mode XtVaSetValues(list_w, XmNselectionPolicy, XmEXTENDED_SELECT, NULL); } void xmpi_nodes_update_default() { XtVaSetValues(list_w, XmNselectionPolicy, XmMULTIPLE_SELECT, NULL); for (int i = 0 ; i < nodes_length ; ++i) if (nodes[i].default_sel != 0) { XmListDeselectPos(list_w, i + 1); XmListSelectPos(list_w, i + 1, False); } else XmListDeselectPos(list_w, i + 1); // switch back into the EXTENDED mode XtVaSetValues(list_w, XmNselectionPolicy, XmEXTENDED_SELECT, NULL); } /* * nodes_select_cb * * Function: - update the nodes structure with the current state. * if a exclusive is just selected, unselect everything * else. If an exclusive is selected, and something * else is just clicked, unselect the exlusive. * Accepts: - widget * - client data * - ptr callback struct */ static void nodes_select_cb(Widget w, XtPointer, XmListCallbackStruct*) { int pos; int *sel_pos; int num_sel_pos; // *&#%@*&$# Lesstif. After a while, the callback struct seems to // hose itself. Let's try this to fix. // First, deal with the exclusives if (XmListGetSelectedPos(list_w, &sel_pos, &num_sel_pos)) { for (int i = 0 ; i < num_sel_pos ; ++i) { pos = sel_pos[i]; if ((nodes[pos - 1].exclusive != 0) && (nodes[pos - 1].selected == 0)) { // an exclusive was just selected. Even if something else was // selected, we are going to take this as what the user wanted // to do. XmListDeselectAllItems(w); XmListSelectPos(w, pos, False); // we don't really want to go throught the rest of the nodes. break; } else if (nodes[pos - 1].exclusive != 0) { // an exclusive is selected, but was before. Something else was // selected, so we should remove this exclusive. XmListDeselectPos(w, pos); } } } for (int i = 0 ; i < nodes_length ; ++i) nodes[i].selected = 0; // we changed a boatload above. Get the new values. if (XmListGetSelectedPos(list_w, &sel_pos, &num_sel_pos)) for (int i = 0 ; i < num_sel_pos ; ++i) { // positions are indexed from 1. C++ arrays from 0. Deal. pos = sel_pos[i]; nodes[pos - 1].selected = 1; } // update the schema line xmpi_run_update(); } /* * nodes_fill * * Function: - fills list with node names and numbers */ static void nodes_fill() { XmString xstr; /* * Delete all current list entries. */ XmListDeselectAllItems(list_w); XmListDeleteAllItems(list_w); for (int i = 0; i < nodes_length ; ++i) { xstr = XmStringCreateSimple(nodes[i].name); XmListAddItem(list_w, xstr, 0); XmStringFree(xstr); // now figure out which should be selected. We do not yet // care about the exclusive. If it says default, we // go with it. Set selected to match what is actually there. if (nodes[i].default_sel == 1) { // set the current to on... nodes[i].selected = 1; // switch into MUTLIPLE mode on the listbox XtVaSetValues(list_w, XmNselectionPolicy, XmMULTIPLE_SELECT, NULL); // select this item XmListSelectPos(list_w, i, False); // switch back into the EXTENDED mode XtVaSetValues(list_w, XmNselectionPolicy, XmEXTENDED_SELECT, NULL); } else { // not selected. Set selected. nodes[i].selected = 0; } } } xmpi-2.2.3b8/src/xmpi/xmpi_pophelp.cc0000664000076500007650000002010407725267006013211 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_pophelp.cc,v 1.5 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - popup help for buttons * * - When the cursor enters a button with attached help, * after a short delay a help message will be popped up. * If the button is pressed or the cursor leaves the * button before the help message is popped up the * popup is cancelled. * Once help for a button is popped up it stays up * until the cursor leaves the button or the button * is pressed. */ #include #include #include #include #include #include #define LABEL_MAX 127 /* max. length of help msg. */ #define POPHELP_DELAY (1000L) /* delay popup for 1 sec. */ /* * Private functions. */ extern "C" { static void pophelp(Widget, void*, XEvent*, Boolean*); static void popup(struct pophelp *); static void create_popup(struct pophelp *); static void destroy_cb(Widget); static void arm_cb(Widget, struct pophelp*); static int pophelp_cmp(void*, void*); /* * Private variables. */ struct pophelp { Widget ph_button; /* button help attached to */ Widget ph_shell; /* popup help message shell */ XtIntervalId ph_timerid; /* delay timer for popping up */ char ph_text[LABEL_MAX + 1]; /* help message text */ int ph_up; /* help currently popped up? */ }; static LIST *help = 0; /* list of popup helps */ static Pixel black; /* black colour */ } /* * xmpi_add_pophelp * * Function: - add popup help for a button * - replaces previous help if any * Accepts: - button * - help message */ void xmpi_add_pophelp(Widget button, char *msg) { // Lesstif seems to cause strange warnings. Disable popups #ifndef LESSTIF_VERSION struct pophelp newpop; struct pophelp *pop; /* * Initialize application help list and colours if necessary. */ memset(&newpop, 0, sizeof(newpop)); if (help == 0) { help = al_init(sizeof(struct pophelp), pophelp_cmp); if (help == 0) return; black = BlackPixel(XtDisplay(button), DefaultScreen(XtDisplay(button))); } /* * Check if button already has help. */ newpop.ph_button = button; if ((pop = (struct pophelp*) al_find(help, &newpop))) { /* * Is the new help different to the old? */ if (strcmp(pop->ph_text, msg)) { /* * Set new message text and destroy the old help popup if any. A new * popup shell will be created when the help is triggered if ever. */ strncpy(pop->ph_text, msg, LABEL_MAX); if (pop->ph_shell) { if (pop->ph_timerid) { XtRemoveTimeOut(pop->ph_timerid); pop->ph_timerid = 0; } XtDestroyWidget(pop->ph_shell); pop->ph_shell = 0; pop->ph_up = 0; } } } else { /* * Add a new entry to the help list. The popup help shell will be * created when the help is triggered if ever. */ newpop.ph_shell = 0; newpop.ph_timerid = 0; newpop.ph_up = 0; strncpy(newpop.ph_text, msg, LABEL_MAX); pop = (struct pophelp*) al_append(help, &newpop); if (pop == 0) return; /* * Add callbacks for removing the help when the button is destroyed and * for canceling help when it is pressed. */ XtAddCallback(button, XmNdestroyCallback, (XtCallbackProc) destroy_cb, NULL); XtAddCallback(button, XmNarmCallback, (XtCallbackProc) arm_cb, (XtPointer) pop); /* * Set up the button to generate enter/leave events. */ XtAddEventHandler(button, EnterWindowMask | LeaveWindowMask, False, (XtEventHandler) pophelp, (XtPointer) pop); } #endif // LESSTIFVERSION } /* * pophelp * * Function: - handler for button enter and leave events * Accepts: - button * - handler data * - event */ static void pophelp(Widget, void *data, XEvent *event, Boolean *) { struct pophelp *pop = (struct pophelp*) data; if (event->type == EnterNotify) { if (event->xcrossing.subwindow || event->xcrossing.mode == NotifyUngrab) { return; } /* * Create the popup if necessary and pop it up. */ if (pop->ph_shell == 0) { create_popup(pop); } pop->ph_timerid = XtAppAddTimeOut( XtWidgetToApplicationContext(pop->ph_button), POPHELP_DELAY, (XtTimerCallbackProc) popup, (XtPointer) pop); } else if (event->type == LeaveNotify) { /* * Cancel pending popup if any. */ if (pop->ph_timerid) { XtRemoveTimeOut(pop->ph_timerid); } if (pop->ph_up) { XtPopdown(pop->ph_shell); pop->ph_up = 0; } } } /* * create_popup * * Function: - create a popup help shell and message * Accepts: - popup help */ static void create_popup(struct pophelp *pop) { Widget frame; XmString xstr; pop->ph_shell = XtVaAppCreateShell("help_widget", "XMPI", applicationShellWidgetClass, XtDisplayOfObject(pop->ph_button), XmNoverrideRedirect, True, NULL); xstr = XmStringCreateSimple(pop->ph_text); /* * We want a simple black line edge around the label. */ frame = XtVaCreateManagedWidget("popup_help", xmFrameWidgetClass, pop->ph_shell, XmNmarginWidth, 1, XmNmarginHeight, 1, XmNbottomShadowColor, black, XmNtopShadowColor, black, XmNshadowType, XmSHADOW_ETCHED_OUT, XmNshadowThickness, 1, NULL); XtVaCreateManagedWidget("popup_help_label", xmLabelGadgetClass, frame, XmNlabelString, xstr, NULL); XmStringFree(xstr); } /* * popup * * Function: - pops up help message * - this is only ever invoked by the help timer firing * Accepts: - popup help */ static void popup(struct pophelp *pop) { Position x, y; /* button position in root */ Dimension border, width, height; /* button sizes */ pop->ph_timerid = 0; /* * Find the position of the button in the root window and the button's * border size, width and height. These are recalculated each time * because the button may change size or position. */ XtTranslateCoords(pop->ph_button, (Position) 0, (Position) 0, &x, &y); XtVaGetValues(pop->ph_button, XmNborderWidth, &border, XmNheight, &height, XmNwidth, &width, NULL); /* * Set the popup's position to have the top left corner half way along * and just below the button. */ XtVaSetValues(pop->ph_shell, XmNx, x + border + width / 2, XmNy, y + 2 * border + height, NULL); pop->ph_up = 1; XtPopup(pop->ph_shell, XtGrabExclusive); } /* * pophelp_cmp * * Function: - compare two buttons * Accepts: - ptr to two entries * Returns: - 0 if same button else 1 */ static int pophelp_cmp(void *tmp_p1, void *tmp_p2) { struct pophelp *p1 = (struct pophelp *) tmp_p1; struct pophelp *p2 = (struct pophelp *) tmp_p2; return (p1->ph_button != p2->ph_button); } /* * destroy_cb * * Function: - button destroy callback * - cleans up any help associated with the button * Accepts: - button being destroyed */ static void destroy_cb(Widget button) { struct pophelp newpop; struct pophelp *pop; /* * Find the help entry for the button, destroy the popup shell if any * and then delete the help entry. */ newpop.ph_button = button; pop = (struct pophelp*) al_find(help, &newpop); if (pop->ph_timerid) { XtRemoveTimeOut(pop->ph_timerid); } if (pop->ph_shell) { XtDestroyWidget(pop->ph_shell); } al_delete(help, pop); } /* * arm_cb * * Function: - button arm callback * - cancel any pending or popped up help * Accepts: - button * - popup help */ static void arm_cb(Widget, struct pophelp *pop) { if (pop->ph_up) { XtPopdown(pop->ph_shell); pop->ph_up = 0; } else if (pop->ph_timerid) { XtRemoveTimeOut(pop->ph_timerid); pop->ph_timerid = 0; } } xmpi-2.2.3b8/src/xmpi/xmpi_run.cc0000664000076500007650000011023707725267006012355 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_run.cc,v 1.13 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - application specification panel in * the builder dialog */ #include #include using namespace std; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "xmpi_all_list.h" #include "app_mgmt.h" #include "lam.h" #include "xmpi.h" #include "xmpi_run.h" #include "xmpi_copies.h" #include "xmpi_misc.h" #include "xmpi_error.h" #include "xmpi_ctl.h" #include "xmpi_getline.h" #include "xmpi_view.h" #include "xmpi_browse.h" #include "xmpi_nodes.h" #include "xmpi_matrix.h" #include "xmpi_kiviat.h" #include "xmpi_trace.h" #include "xmpi_vendor.h" #include "xmpi_sys.h" /* * private functions */ static void run_run_cb(Widget); static int run_save(char *); static void run_change_cb(Widget, XtPointer, XtPointer); static void run_cancel_cb(); static void run_save_cb(Widget); static void run_save_ok_cb(Widget, XtPointer, XmSelectionBoxCallbackStruct*); static void browse_prog_cb(Widget, XtPointer, XmFileSelectionBoxCallbackStruct*); static void run_load_cb(Widget, XtPointer, XtPointer); static void load_prog_cb(Widget, XtPointer, XmFileSelectionBoxCallbackStruct*); static void run_new_cb(Widget, XtPointer, XtPointer); static void run_copy_cb(Widget, XtPointer, XtPointer); static void run_delete_cb(Widget, XtPointer, XtPointer); static void run_select_cb(Widget, XtPointer, XmListCallbackStruct*); void xmpi_run_file(); // to enable/disable the input btns static void run_enable_btns(); static void run_disable_btns(); // helper to update the status bar static void run_status_change(char*); // update the left-most pane static void run_update(char*, int, char*); /* * public variables */ int xmpi_do_rerun = 0; /* re-running application? */ int xmpi_app_nprocs = 0; /* number of procs in appl. */ struct _gps *xmpi_app_procs = 0; /* appl. GPS array */ Widget xmpi_run_w = 0; /* run dialog shell */ // Stuff for the vendor pane struct xmpi_menu_item *run_options; int run_options_length; Widget *run_options_widgets = 0; struct xmpi_menu_item *schema_options; int schema_options_length; Widget *schema_options_widgets = 0; struct xmpi_node *nodes; int nodes_length; extern int xmpi_trinit; /* * private variables */ static char *custom = 0; /* custom aschema filename */ static char prog_dir[XMPI_PATHMAX] = ""; /* dir. selected prog. */ static char tempfile[32]; static Widget args_w; static Widget fullpath_w; static Widget prog_w; static Widget copies_w; static Widget list_w; static Widget xmpi_run_wrap_w; // Frame widget to sit in xmpi_run_w static Widget btn_new_w; static Widget btn_copy_w; static Widget btn_delete_w; static Widget btn_load_w; static Widget btn_save_w; static Widget btn_run_w; static Widget btn_cancel_w; static Widget status_w; static char delete_trans[] = "#override\n\ osfDelete: xmpi_run_delete()\n\ osfBackSpace: xmpi_run_delete()"; static Widget fdialog = 0; /* file selection dialog */ static Widget load_fdialog = 0; static bool update = true; /* * xmpi_run_dialog * * Function: - creates widgets for mpirun dialog window * - pops up dialog * Accepts: - parent widget * - initial boot schema */ void xmpi_run_dialog(Widget parent_w) { Widget dialog_mgr_w; /* manager for three horiz panes */ Widget status_frame_w; // frame for the status label Widget mgr_w; /* prog/app pane manager (left pane) */ Widget prog_mgr_frame_w; // outline for program area mgr Widget prog_mgr_w; // program area manager Widget current_app_lbl_w; Widget list_action_mgr_w; // buttons to control prog list Widget action_mgr_w; /* action area manager */ Widget w; // generic list... Dimension width; /* alignment of labels */ Dimension height; XmString xstr; Arg args[1]; int numb_horz_panes = 0; // needed because we might only have 2... if (xmpi_run_w) { /* * Dialog window already created, just pop it on the screen. */ XtMapWidget(xmpi_wmshell(xmpi_run_w)); XtManageChild(xmpi_run_wrap_w); XtPopup(xmpi_run_w, XtGrabNone); return; } if (getcwd(prog_dir, XMPI_PATHMAX) == NULL) strcpy(prog_dir, ""); // start by getting the vendor information. This determines the // size window about to be drawn. if (xmpi_sys_get_vendor_info(&run_options, &run_options_length, &schema_options, &schema_options_length, &nodes, &nodes_length) != 0) { // we hit an error. Hopefully, the vendor threw an error message return; } // if we received any menu items, need to make sure to create space. if ((run_options_length == 0) && (schema_options_length == 0)) numb_horz_panes = 2; else numb_horz_panes = 3; /* * Create the dialog window. */ xmpi_run_w = XtVaCreatePopupShell("buildrun_pop", xmDialogShellWidgetClass, xmpi_wmshell(parent_w), XmNdeleteResponse, XmUNMAP, XmNtitle, "XMPI Application Builder", XmNminHeight, 300, NULL); xmpi_run_wrap_w = XtVaCreateWidget("xmpi_run_wrap_w", xmFormWidgetClass, xmpi_run_w, XmNmaxWidth, 50, NULL); // The status bar on the bottom. Frame provides the depth status_frame_w = XtVaCreateManagedWidget("status_frame_w", xmFormWidgetClass, xmpi_run_wrap_w, XmNmarginHeight, 1, XmNmarginWidth, 1, XmNshadowThickness, 5, XmNshadowType, XmSHADOW_ETCHED_IN, XmNrightAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); status_w = XtVaCreateManagedWidget("status", xmLabelWidgetClass, status_frame_w, XmNtopAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNalignment, XmALIGNMENT_BEGINNING, NULL); // jump through hopes to get the label to be the right size... XtVaGetValues(status_w, XmNheight, &height, NULL); xstr = XmStringCreateSimple((char*) ""); XtVaSetValues(status_w, XmNlabelString, xstr, NULL); XmStringFree(xstr); XtVaSetValues(status_w, XmNheight, height, XmNrecomputeSize, False, NULL); // The three-paned horizontal frame holding everything but the // status bar dialog_mgr_w = XtVaCreateWidget("build_run_mgr", xmFormWidgetClass, xmpi_run_wrap_w, XmNfractionBase, numb_horz_panes, XmNtopAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_WIDGET, XmNbottomWidget, status_frame_w, NULL); // // // LEFT MOST PANE: PROGRAM NAME/ARGS AND SCHEMA CONTROLS / LIST // // mgr_w = XtVaCreateWidget("app_mgr", xmPanedWindowWidgetClass, dialog_mgr_w, XmNsashWidth, 1, XmNsashHeight, 1, XmNseparatorOn, False, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 1, XmNrightOffset, 5, XmNleftOffset, 1, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); prog_mgr_frame_w = XtVaCreateWidget("prog_frame", xmFrameWidgetClass, mgr_w, XmNmarginHeight, 3, XmNmarginWidth, 3, XmNshadowThickness, 2, NULL); prog_mgr_w = XtVaCreateWidget("prog_mgr", xmFormWidgetClass, prog_mgr_frame_w, XmNfractionBase, 4, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); // Build the number of copies entry area. // This is out of order so that we can get the width of the // widest line (which is copy) w = XtVaCreateManagedWidget("Copy:", xmLabelGadgetClass, prog_mgr_w, XmNalignment, XmALIGNMENT_BEGINNING, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 2, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 3, XmNleftAttachment, XmATTACH_FORM, NULL); copies_w = xmpi_copies_create(prog_mgr_w); XtVaSetValues(copies_w, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 2, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 3, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, w, XmNrightAttachment, XmATTACH_FORM, NULL); XtManageChild(copies_w); XtVaGetValues(w, XmNwidth, &width, NULL); /* * Build the program name entry area. */ w = XtVaCreateManagedWidget("Prog:", xmLabelGadgetClass, prog_mgr_w, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 1, XmNleftAttachment, XmATTACH_FORM, XmNwidth, width, NULL); Widget browse_w; browse_w = XtVaCreateManagedWidget("Browse", xmPushButtonGadgetClass, prog_mgr_w, XmNdefaultButtonShadowThickness, 0, XmNrightAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 1, NULL); prog_w = XtVaCreateManagedWidget("prog_text", xmTextFieldWidgetClass, prog_mgr_w, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, w, XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, browse_w, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 1, NULL); XtAddCallback(prog_w, XmNvalueChangedCallback, run_change_cb, xmpi_run_w); XtAddCallback(browse_w, XmNactivateCallback, (XtCallbackProc) xmpi_run_file , xmpi_run_w); /* * Build the program arguments entry area. */ w = XtVaCreateManagedWidget("Args:", xmLabelGadgetClass, prog_mgr_w, XmNalignment, XmALIGNMENT_BEGINNING, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 1, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 2, XmNleftAttachment, XmATTACH_FORM, XmNwidth, width, NULL); args_w = XtVaCreateManagedWidget("args_text", xmTextFieldWidgetClass, prog_mgr_w, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 1, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 2, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, w, XmNrightAttachment, XmATTACH_FORM, NULL); XtAddCallback(args_w, XmNvalueChangedCallback, run_change_cb, xmpi_run_w); /* * Build the "Use Full Pathname" toggle button. */ xstr = XmStringCreateSimple((char*) "Use Full Pathname"); fullpath_w = XtVaCreateManagedWidget("fullpath_toggle", xmToggleButtonWidgetClass, prog_mgr_w, XmNalignment, XmALIGNMENT_BEGINNING, XmNnavigationType, XmTAB_GROUP, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 3, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 4, XmNleftAttachment, XmATTACH_FORM, XmNlabelString, xstr, NULL); XtAddCallback(fullpath_w, XmNvalueChangedCallback, run_change_cb, xmpi_run_w); XmStringFree(xstr); XtManageChild(prog_mgr_w); XtManageChild(prog_mgr_frame_w); xstr = XmStringCreateSimple((char*) "Current Application"); current_app_lbl_w = XtVaCreateManagedWidget("banner", xmLabelWidgetClass, mgr_w, XmNlabelString, xstr, NULL); XmStringFree(xstr); // add row for copy, new, delete list_action_mgr_w = XtVaCreateManagedWidget("action_mgr_schema", xmFormWidgetClass, mgr_w, XmNfractionBase, 3, NULL); btn_new_w = XtVaCreateManagedWidget("New", xmPushButtonGadgetClass, list_action_mgr_w, XmNdefaultButtonShadowThickness, 1, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 3, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 1, NULL); XtAddCallback(btn_new_w, XmNactivateCallback, run_new_cb, NULL); btn_copy_w = XtVaCreateManagedWidget("Copy", xmPushButtonGadgetClass, list_action_mgr_w, XmNdefaultButtonShadowThickness, 1, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 3, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 1, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 2, NULL); XtAddCallback(btn_copy_w, XmNactivateCallback, run_copy_cb, NULL); btn_delete_w = XtVaCreateManagedWidget("Delete", xmPushButtonGadgetClass, list_action_mgr_w, XmNdefaultButtonShadowThickness, 1, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 3, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 2, XmNrightAttachment, XmATTACH_FORM, NULL); XtAddCallback(btn_delete_w, XmNactivateCallback, run_delete_cb, NULL); /* * Build the application scrolled list. */ XtSetArg(args[0], XmNlistSizePolicy, XmCONSTANT); list_w = XmCreateScrolledList(mgr_w, (char*) "app_list", args, 1); XtVaSetValues(list_w, XmNselectionPolicy, XmSINGLE_SELECT, XmNscrollBarDisplayPolicy, XmSTATIC, NULL); XtOverrideTranslations(list_w, XtParseTranslationTable(delete_trans)); XtAddCallback(list_w, XmNsingleSelectionCallback, (XtCallbackProc) run_select_cb, NULL); // Add the line, and select. xstr = XmStringCreateSimple((char*) ""); XmListAddItem(list_w, xstr, 0); XmListSelectItem(list_w, xstr, False); XmStringFree(xstr); // Create the dialog action area. // action_mgr_schema is the schema control row // action_mgr_program is the program (run/cancel) row action_mgr_w = XtVaCreateManagedWidget("action_mgr_schema", xmFormWidgetClass, mgr_w, XmNfractionBase, 2, NULL); // Create the "Load" button. btn_load_w = XtVaCreateManagedWidget("Load", xmPushButtonGadgetClass, action_mgr_w, XmNdefaultButtonShadowThickness, 1, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 1, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 1, NULL); XtAddCallback(btn_load_w, XmNactivateCallback, (XtCallbackProc) run_load_cb, xmpi_run_w); /* * Create the "Save" button. */ btn_save_w = XtVaCreateManagedWidget("Save", xmPushButtonGadgetClass, action_mgr_w, XmNdefaultButtonShadowThickness, 1, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 0, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 1, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 1, XmNrightAttachment, XmATTACH_FORM, NULL); XtAddCallback(btn_save_w, XmNactivateCallback, (XtCallbackProc) run_save_cb, xmpi_run_w); /* * Create the "Run" button. */ btn_run_w= XtVaCreateManagedWidget("Run", xmPushButtonGadgetClass, action_mgr_w, XmNdefaultButtonShadowThickness, 1, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 1, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 2, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 1, NULL); XtAddCallback(btn_run_w, XmNactivateCallback, (XtCallbackProc) run_run_cb, xmpi_run_w); /* * Create the "Cancel" button. */ btn_cancel_w = XtVaCreateManagedWidget("Cancel", xmPushButtonGadgetClass, action_mgr_w, XmNdefaultButtonShadowThickness, 1, XmNtopAttachment, XmATTACH_POSITION, XmNtopPosition, 1, XmNbottomAttachment, XmATTACH_POSITION, XmNbottomPosition, 2, XmNleftAttachment,XmATTACH_POSITION, XmNleftPosition, 1, XmNrightAttachment,XmATTACH_FORM, NULL); XtAddCallback(btn_cancel_w, XmNactivateCallback, (XtCallbackProc) run_cancel_cb, xmpi_run_w); XtManageChild(list_w); xmpi_nosash(mgr_w); XtManageChild(mgr_w); /* * Build node browser. */ xmpi_nodes_build(dialog_mgr_w); // build the vendor window if (numb_horz_panes == 3) xmpi_vendor_build(dialog_mgr_w); XtManageChild(dialog_mgr_w); XtManageChild(xmpi_run_wrap_w); XtManageChild(xmpi_run_w); // the schema will not initially be valid. Disable btns run_disable_btns(); // Argh. I hate lesstif. It takes way too much space to draw this // screen on a Lesstif setup. Force to width of screen to make life // doable. #ifdef LESSTIF_VERSION int win_width = 0; int screen_width = 0; XtVaGetValues(xmpi_run_w, XmNwidth, &win_width, NULL); screen_width = WidthOfScreen(XtScreen(xmpi_run_w)); screen_width -= 20; if (screen_width < win_width) XtVaSetValues(xmpi_run_w, XmNwidth, screen_width, NULL); #endif // LESSTIF_VERSION /* * Pop up the window. */ XtPopup(xmpi_run_w, XtGrabNone); } /* * xmpi_run * * Function: - runs the supplied application schema * Accepts: - application schema * - popup widget invoking the run if any * Returns: - 0 or LAMERROR */ int xmpi_run(char* aschema, Widget w) { /* * Clean away existing application and trace windows. */ xmpi_ctl_setsensitive(XMPI_BKIVIAT, False); if (!xmpi_do_rerun) { xmpi_mat_destroy(); } xmpi_kv_popdown(); xmpi_tr_destroy(); xmpi_vw_dbsetmode(0); xmpi_ctl_clean(); xmpi_busy(); if (w) { XtPopdown(w); } /* * Run the application. */ xmpi_ctl_setinfo((char*) "Starting application..."); xmpi_flush(); if (xmpi_sys_run(aschema, &xmpi_app_procs, &xmpi_app_nprocs)) { xmpi_do_rerun = 0; xmpi_unbusy(); xmpi_ctl_resetinfo(); return (LAMERROR); } /* * Initialize and update the view window. */ if (xmpi_do_rerun && xmpi_vw_getprocs()) { xmpi_vw_update(1); } else { xmpi_vw_init(); } xmpi_do_rerun = 0; xmpi_ctl_setsensitive(XMPI_BTRACE, True); xmpi_ctl_setsensitive(XMPI_BSNAPSHOT, True); xmpi_ctl_setsensitive(XMPI_BRERUN, True); xmpi_ctl_setsensitive(XMPI_BMATRIX, True); xmpi_ctl_resetinfo(); xmpi_unbusy(); return (0); } /* * xmpi_run_set_prog * * Function: - sets the prog text field * - has side effect of changing base directory * Accepts: - program filename * - program directory */ void xmpi_run_set_prog(char* prog, char* dir) { strcpy(prog_dir, dir); (void) chdir(prog_dir); if (prog && *prog) { XmTextFieldSetString(prog_w, prog); } } /* * xmpi_run_delete * * Function: - deletes all selected programs */ void xmpi_run_delete() { int *pposn; /* item position array */ int nposn; /* # positions */ while (XmListGetSelectedPos(list_w, &pposn, &nposn)) { XmListDeletePos(list_w, pposn[0]); XtFree((char *) pposn); } } /* * xmpi_run_rerun * * Function: - reruns previous application schema */ void xmpi_run_rerun() { if (custom) { xmpi_do_rerun = 1; xmpi_run(custom, (Widget) 0); } } /* * xmpi_run_cleanup * * Function: - removes custom app schema file, if any * - tells the vendor to clean up... */ void xmpi_run_cleanup() { if (custom) { unlink(custom); custom = 0; } } /* * run_run_cb * * Function: - creates application schema from appl list * - runs the application * Accepts: - parent widget */ static void run_run_cb(Widget w) { xmpi_run_cleanup(); strcpy(tempfile, "/tmp/xmpiXXXXXX"); mkstemp(tempfile); custom = tempfile; if (!run_save(custom)) { XtUnmapWidget(xmpi_wmshell(w)); if (!xmpi_run(custom, xmpi_run_w)) { xmpi_ctl_setapp((char*) ""); } } } /* * run_save * * Function: - saves appl list contents to a file * Accepts: - save filename * Returns: - 0 or LAMERROR */ static int run_save(char *filename) { int fd; int i; int nitems; /* # appl list items */ XmString *items; /* appl list items */ char *progline; /* one line in appl schema */ char* header; XtVaGetValues(list_w, XmNitemCount, &nitems, XmNitems, &items, NULL); if (nitems <= 0) { xmpi_error(xmpi_run_w, (char*) "No programs specified.", false); return (LAMERROR); } fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644); if (fd < 0) { xmpi_error(xmpi_run_w, filename); return (LAMERROR); } if (xmpi_sys_get_run_options(run_options, run_options_length, &header)) { xmpi_error(xmpi_run_w, (char*) "Error getting vendor options", false); return LAMERROR; } write(fd, header, strlen(header)); write(fd, "\n", 1); for (i = 0; i < nitems; ++i) { XmStringGetLtoR(items[i], XmSTRING_DEFAULT_CHARSET, &progline); write(fd, progline, strlen(progline)); write(fd, "\n", 1); XtFree(progline); } free(header); close(fd); return (0); } // run_change_cb // // DESCRIPTION: update schema list on a change // // INPUT: W the client Widget // client_data // call_cata // static void run_change_cb(Widget, XtPointer, XtPointer) { xmpi_run_update(); } /* * run_update * * Function: - update a line in the application schema * - grey / ungrey buttons... * * NOTE: THIS FUNCTION ONLY RUNS IF UPDATE IS TRUE!!! */ void xmpi_run_update() { if (!update) return; int result; XmString xstr; char *args; char *copies; char *prog; char *linebuf; int ncopy = 0; char *full_prog; bool valid = true; // Retrieve program name. prog = XmTextFieldGetString(prog_w); if ((prog == 0) || (*prog == '\0')) { run_status_change((char*) "Program Name Not Specified"); valid = false; } // Retrieve target copies. Add extra room for -c. copies = xmpi_copies_get(); if ((copies != 0) && (*copies != '\0')) { ncopy = stoi((unsigned char *) copies); } // Retrieve arguments. args = XmTextFieldGetString(args_w); // need to leave space for the possible / in path. full_prog = (char*) malloc(sizeof(char) * (strlen(prog_dir) + strlen(prog) + + 2)); if (full_prog == NULL) { xmpi_error(xmpi_run_w, (char*) "malloc()"); return; } // Retrieve fullpath toggle. if (XmToggleButtonGetState(fullpath_w)) { strcpy(full_prog, ""); if (prog[0] != STRDIR && prog_dir[0]) { strcpy(full_prog, prog_dir); if (prog_dir[strlen(prog_dir) - 1] != STRDIR) { strcat(full_prog, STRSDIR); } } strcat(full_prog, prog); } else strcpy(full_prog, prog); // call the libxmpi side of things... result = xmpi_sys_get_schema_line(full_prog, ncopy, args, nodes, nodes_length, schema_options, schema_options_length, &linebuf); if (result != 0) { char* error_code = NULL; error_code = (char*) malloc(sizeof(char) * (strlen("Error in vendor library: ") + sizeof(int) * 8 + 1)); if (error_code == NULL) { xmpi_error(xmpi_run_w, (char*) "malloc()"); return; } xmpi_error(xmpi_run_w, error_code); return; } // Add full program line to application list. int total_selected; int *selected_pos; int selected_count; int total_count; xstr = XmStringCreateSimple(linebuf); XtVaGetValues(list_w, XmNitemCount, &total_count, XmNselectedItemCount, &total_selected, NULL); if ((total_count <= 0) || (total_selected <= 0)) { XmListAddItem(list_w, xstr, 0); XmListSelectPos(list_w, total_count + 1, False); } else { if (!(XmListGetSelectedPos(list_w, &selected_pos, &selected_count))) { xmpi_error(xmpi_run_w, (char*) "No schema line selected.", false); return; } // just replace the first one ;-) XmListReplacePositions(list_w, selected_pos, &xstr, 1); XmListSelectPos(list_w, selected_pos[0], False); } XmStringFree(xstr); char* message = NULL; result = xmpi_sys_verify_schema_line(linebuf, &message); if (result != 0) { if ((message != NULL) && (valid)) { run_status_change(message); free(message); } valid = false; } // Free things free(linebuf); XtFree(prog); XtFree(args); if (valid) { run_enable_btns(); run_status_change((char*)""); } else run_disable_btns(); } /* * run_cancel_cb * * Function: - cancels the dialog with no processing */ static void run_cancel_cb() { XtPopdown(xmpi_run_w); } /* * run_save_cb * * Function: - pops up prompt dialog for appl schema filename * Accepts: - called back from which widget */ static void run_save_cb(Widget from_w) { Widget w; XmString str1, str2; Arg args[2]; char *cwd; char cwdir[XMPI_PATHMAX]; cwd = getworkdir(); if (cwd) { strcpy(cwdir, cwd); strcat(cwdir, "/"); free(cwd); } else { cwdir[0] = 0; } str1 = XmStringCreateSimple((char*) "Application Schema filename:"); str2 = XmStringCreateSimple(cwdir); XtSetArg(args[0], XmNselectionLabelString, str1); XtSetArg(args[1], XmNtextString, str2); w = XmCreatePromptDialog(xmpi_wmshell(from_w), (char*) "save_dialog", args, 2); XmStringFree(str1); XmStringFree(str2); XtAddCallback(w, XmNcancelCallback, (XtCallbackProc) XtDestroyWidget, NULL); XtAddCallback(w, XmNokCallback, (XtCallbackProc) run_save_ok_cb, NULL); XtUnmanageChild(XmSelectionBoxGetChild(w, XmDIALOG_HELP_BUTTON)); XtManageChild(w); XtPopup(XtParent(w), XtGrabNone); } /* * run_save_ok_cb * * Function: - extracts selected filename * - saves current appl schema into filename * Accepts: - selection dialog callback parameters */ static void run_save_ok_cb(Widget parent_w, XtPointer, XmSelectionBoxCallbackStruct *cbs) { struct stat finfo; /* file information */ char *filename; /* appl schema filename */ int exists = 1; XmStringGetLtoR(cbs->value, XmSTRING_DEFAULT_CHARSET, &filename); if (!filename || (*filename == '\0')) return; /* * Check if file already exists and if so ask user if they want to overwrite * it or not. */ if (stat(filename, &finfo)) { if (errno != ENOENT) { xmpi_error(parent_w, filename); XtFree(filename); return; } exists = 0; } if (exists && !xmpi_yesno(parent_w, (char*) "File exists. Overwrite?")) { XtFree(filename); return; } (void) run_save(filename); XtFree(filename); XtDestroyWidget(parent_w); } /* * xmpi_run_busy * * Function: - set the busy cursor for the Build&Run window */ void xmpi_run_busy() { if (xmpi_run_w) xmpi_busy_widget(xmpi_run_w); } /* * xmpi_run_unbusy * * Function: - reset the busy cursor for the Build&Run window */ void xmpi_run_unbusy() { if (xmpi_run_w) xmpi_unbusy_widget(xmpi_run_w); } /* * xmpi_run_file * * Function: - selects program file */ void xmpi_run_file() { Arg args[2]; XmString oklabel; XmString title; Widget help_btn; if (fdialog == 0) { title = XmStringCreateSimple((char*) "Program Selection"); oklabel = XmStringCreateSimple((char*) "Ok"); XtSetArg(args[0], XmNdialogTitle, title); XtSetArg(args[1], XmNokLabelString, oklabel); fdialog = XmCreateFileSelectionDialog(xmpi_run_w, (char*) "browse_selector", args, 2); XtAddCallback(fdialog, XmNokCallback, (XtCallbackProc) browse_prog_cb, NULL); XtAddCallback(fdialog, XmNcancelCallback, (XtCallbackProc) XtUnmanageChild, NULL); help_btn = XmFileSelectionBoxGetChild(fdialog, XmDIALOG_HELP_BUTTON); XtUnmanageChild(help_btn); XmStringFree(title); XmStringFree(oklabel); } else { XmFileSelectionDoSearch(fdialog, 0); } XtManageChild(fdialog); } // browse_prog_cb // // FUNCTION: callback for the build window. Sets the file name // in the program line of the build window. static void browse_prog_cb(Widget parent_w, XtPointer, XmFileSelectionBoxCallbackStruct *cbs) { char *name; /* file name */ char *dir; XmStringGetLtoR(cbs->value, XmSTRING_DEFAULT_CHARSET, &name); XmStringGetLtoR(cbs->dir, XmSTRING_DEFAULT_CHARSET, &dir); xmpi_run_set_prog(name + strlen(dir), dir); XtUnmanageChild(parent_w); } static void run_load_cb(Widget, XtPointer, XtPointer) { Arg args[2]; XmString oklabel; XmString title; Widget help_btn; if (load_fdialog == 0) { title = XmStringCreateSimple((char*) "Schema Selection"); oklabel = XmStringCreateSimple((char*) "Ok"); XtSetArg(args[0], XmNdialogTitle, title); XtSetArg(args[1], XmNokLabelString, oklabel); load_fdialog = XmCreateFileSelectionDialog(xmpi_run_w, (char*) "load_selector", args, 2); XtAddCallback(load_fdialog, XmNokCallback, (XtCallbackProc) load_prog_cb, NULL); XtAddCallback(load_fdialog, XmNcancelCallback, (XtCallbackProc) XtUnmanageChild, NULL); help_btn = XmFileSelectionBoxGetChild(load_fdialog, XmDIALOG_HELP_BUTTON); XtUnmanageChild(help_btn); XmStringFree(title); XmStringFree(oklabel); } else { XmFileSelectionDoSearch(load_fdialog, 0); } XtManageChild(load_fdialog); } static void crop(string& parse_string) { std::string::size_type start = parse_string.find_first_not_of(" \t\n"); std::string::size_type end = parse_string.find_last_not_of(" \t\n") - start + 1; if (start < end) { std::string tmp = parse_string.substr(start, end); parse_string = tmp; } } static void load_prog_cb(Widget parent_w, XtPointer cdata, XmFileSelectionBoxCallbackStruct *cbs) { char *name; /* file name */ string line; char* message; bool cleared = false; bool run_options_found = false; XmString xstr; XmStringGetLtoR(cbs->value, XmSTRING_DEFAULT_CHARSET, &name); fstream input_file; input_file.open(name, ios::in); if (!input_file) { xmpi_error(xmpi_run_w, (char*) "Error opening schema file", false); return; } while (XMPI_GETLINE(input_file, line, '\n')) { if (line.find("# mpirun") != std::string::npos) if(xmpi_sys_parse_run_options(&run_options, &run_options_length, (char*) line.c_str()) != 0) { xmpi_error(xmpi_run_w, (char*) "Error opening schema file", false); XmListDeleteAllItems(list_w); return; } else run_options_found = true; crop(line); if (line[0] != '#' && line.size() != 0) { if (xmpi_sys_verify_schema_line((char*) line.c_str(), &message) != 0) { free(message); xmpi_error(xmpi_run_w, (char*) "Error opening schema file", false); XmListDeleteAllItems(list_w); return; } else { xstr = XmStringCreateSimple((char*) line.c_str()); if (!cleared) { XmListDeleteAllItems(list_w); cleared = true; } XmListAddItemUnselected(list_w, xstr, 0); XmStringFree(xstr); } } } if (run_options_found) { xmpi_vendor_update_run(); } XmListSelectPos(list_w, 0, True); XtUnmanageChild(parent_w); free(name); } // run_new_cb // // FUNCTION: add an entry to the list if one does not // already exist. // void run_new_cb(Widget, XtPointer, XtPointer) { XmString xstr; xstr = XmStringCreateSimple((char*) ""); if (! XmListItemExists(list_w, xstr) ) { XmListAddItem(list_w, xstr, 0); XmListDeselectAllItems(list_w); XmListSelectItem(list_w, xstr, True); } XmStringFree(xstr); } static void run_copy_cb(Widget, XtPointer, XtPointer) { int selected_count; XmString *selected_string; XtVaGetValues(list_w, XmNselectedItemCount, &selected_count, XmNselectedItems, &selected_string, NULL); if (selected_count <= 0) { xmpi_error(xmpi_run_w, (char*) "No schema line selected.", false); return; } XmListDeselectAllItems(list_w); XmListAddItemUnselected(list_w, selected_string[0], 0); XmListSelectPos(list_w, 0, True); } static void run_delete_cb(Widget, XtPointer, XtPointer) { int selected_count; int *selected_positions; int total_count; if (! (XmListGetSelectedPos(list_w, &selected_positions, &selected_count))) { xmpi_error(xmpi_run_w, (char*) "No schema line selected.", false); return; } XmListDeletePositions(list_w, selected_positions, selected_count); XtVaGetValues(list_w, XmNitemCount, &total_count, NULL); if (total_count > 0) if (selected_positions[selected_count - 1] < total_count) XmListSelectPos(list_w, selected_positions[selected_count - 1], True); else XmListSelectPos(list_w, total_count, True); XtVaGetValues(list_w, XmNitemCount, &total_count, NULL); if (total_count <= 0) { // Add the line, and select. XmString xstr = XmStringCreateSimple((char*) ""); XmListAddItem(list_w, xstr, 0); XmListSelectItem(list_w, xstr, True); XmStringFree(xstr); } } void run_select_cb(Widget, XtPointer, XmListCallbackStruct* cb_struct) { char* prog = NULL; int copy = 0; char* args = NULL; int result = 0; int selected_count; int *selected_positions; if (! (XmListGetSelectedPos(list_w, &selected_positions, &selected_count))) { XmListSelectPos(list_w, cb_struct->item_position, False); return; } XmString *items; int items_count; char *linebuf; XtVaGetValues(list_w, XmNitemCount, &items_count, XmNitems, &items, NULL); XmStringGetLtoR(items[(selected_positions[0]) - 1], XmSTRING_DEFAULT_CHARSET, &linebuf); if (strcmp(linebuf, "")) { xmpi_vendor_clean_options(schema_options, schema_options_length, false); result = xmpi_sys_parse_schema_line(&prog, ©, &args, &nodes, &nodes_length, &schema_options, schema_options_length, linebuf); if (result != 0) { run_status_change((char*) "error parsing schema line"); return; } if (prog == NULL) prog = strdup(""); if (args == NULL) args = strdup(""); update = false; run_update(prog, copy, args); xmpi_nodes_update(); xmpi_vendor_update_schema(); update = true; XmListSelectPos(list_w, selected_positions[0], False); } else { prog = strdup(""); args = strdup(""); copy = 0; update = false; run_update(prog, copy, args); xmpi_vendor_update_schema_default(); xmpi_nodes_update_default(); update = true; XmListSelectPos(list_w, selected_positions[0], False); } XtFree(linebuf); XtFree((char*) selected_positions); free(prog); free(args); } static void run_enable_btns() { XtVaSetValues(btn_new_w, XmNsensitive, True, NULL); XtVaSetValues(btn_copy_w, XmNsensitive, True, NULL); XtVaSetValues(btn_save_w, XmNsensitive, True, NULL); XtVaSetValues(btn_run_w, XmNsensitive, True, NULL); } static void run_disable_btns() { XtVaSetValues(btn_new_w, XmNsensitive, False, NULL); XtVaSetValues(btn_copy_w, XmNsensitive, False, NULL); XtVaSetValues(btn_save_w, XmNsensitive, False, NULL); XtVaSetValues(btn_run_w, XmNsensitive, False, NULL); } static void run_status_change(char* message) { XmString xstr; xstr = XmStringCreateSimple(message); XtVaSetValues(status_w, XmNlabelString, xstr, NULL); XmStringFree(xstr); } static void run_update(char* prog, int copy, char* args) { XtVaSetValues(prog_w, XmNvalue, prog, NULL); XtVaSetValues(args_w, XmNvalue, args, NULL); xmpi_copies_set(copy); } xmpi-2.2.3b8/src/xmpi/xmpi_trace.cc0000664000076500007650000013300607725267006012646 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_trace.cc,v 1.7 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - tracing subwindow */ #include #include #include #include #include #include #include #include #include #include #include #include "lam.h" #include "xmpi.h" #include "xmpi_trace.h" #include "xmpi_misc.h" #include "xmpi_dbase.h" #include "xmpi_view.h" #include "xmpi_pophelp.h" #include "xmpi_kiviat.h" #include "xmpi_matrix.h" #include "xmpi_dtype.h" #include "xmpi_ctl.h" #include "xmpi_db_parse.h" #include "Bitmaps/tack.xbm" #include "Bitmaps/zoom.xbm" #include "Bitmaps/unzoom.xbm" #include "Bitmaps/vcrbwd.xbm" #include "Bitmaps/vcrend.xbm" #include "Bitmaps/vcrfwd.xbm" #include "Bitmaps/vcrplay.xbm" #include "Bitmaps/vcrrev.xbm" #include "Bitmaps/vcrrew.xbm" #include "Bitmaps/vcrstop.xbm" /* * local functions */ static void tr_fill(); static void tr_draw(); static void zoom_cb(); static void unzoom_cb(); static void tack_cb(); static void destroy_cb(); static void tr_clear(); static void draw_cb(Widget, XtPointer, XmDrawingAreaCallbackStruct*); static void movedial(int, int); static void resize_cb(Widget, XtPointer, XmDrawingAreaCallbackStruct*); static void hscroll_cb(Widget, XtPointer, XmScrollBarCallbackStruct*); static void vscroll_cb(Widget, XtPointer, XmScrollBarCallbackStruct*); static void arm_cb(Widget, char*); // actions for the VCR buttons... static void vcrbwd_cb(Widget, XtPointer, XtPointer); static void vcrend_cb(Widget, XtPointer, XtPointer); static void vcrfwd_cb(Widget, XtPointer, XtPointer); static void vcrplay_cb(Widget, XtPointer, XtPointer); static void vcrrev_cb(Widget, XtPointer, XtPointer); static void vcrrew_cb(Widget, XtPointer, XtPointer); static void vcrstop_cb(Widget, XtPointer, XtPointer); static void vcradvance(); static void redraw(); static void gcinit(); static int initparams(); static void showtime(); static void showscale(); static void showlabel(); static void setupdial(); static void rubber(Widget, XButtonEvent*, String*, int*); static void dragged_zoom(int, int); /* * local macros and constants */ #define XMPI_DIALWIDTH 20 #define XMPI_EPSSCALE 0.001 /* * global variables */ char tracefile[XMPI_PATHMAX]; /* trace filename */ /* * external variables */ extern struct _gps *xmpi_app_procs; /* appl. GPS array */ extern int xmpi_do_rerun; /* re-running application? */ extern int xmpi_is_express; /* current appl. trace view? */ extern int xmpi_do_express; /* creating current app view */ /* * local variables */ static Widget trace_w = 0; /* trace shell */ static Widget banner_w; /* trace label banner */ static Widget scale_w; /* scale label */ static Widget tleft_w; /* left time label */ static Widget tright_w; /* right time label */ static Widget tdial_w; /* dial time label */ static Widget scroll_w; /* scrolled window manager */ static Widget draw_w; /* trace drawing area */ static Widget zoom_w; /* zoom button */ static Widget unzoom_w; /* unzoom button */ static Widget hsb_w; /* horizontal scrollbar */ static Widget vsb_w; /* vertical scrollbar */ static Pixmap pixmap; /* trace pixmap */ static Pixmap savedial; /* saved dial pixmap */ static Pixmap dial; /* dial pixmap */ static Pixmap mask; /* dial mask */ static GC dialpen = 0; /* for drawing the dial */ static GC fgpen = 0; /* foreground pen */ static GC bgpen = 0; /* background pen */ static GC misspen = 0; /* missing pen */ static GC blkpen = 0; /* blocked pen */ static GC syspen = 0; /* system pen */ static GC runpen = 0; /* running pen */ static GC arwpen = 0; /* arrow pen */ static GC rubpen = 0; /* rubber band pen */ static Display *disp; /* drawing area display */ static Drawable root; /* root window */ static unsigned int depth; /* screen depth */ static XtIntervalId vcrtimer; /* VCR timeout timer */ static int maxwidth; /* max width */ static int pixwidth; /* pixmap width */ static int pixheight; /* pixmap height */ static int drawwidth; /* drawing width */ static int drawheight; /* drawing height */ static int wextra; /* extra width pixels */ static int hextra; /* extra height pixels */ static int xdrawpos = 0; /* horiz. drawing pos. */ static int ydrawpos = 0; /* vert. drawing pos. */ static int xpix; /* pixmap x position */ static int xdial = -1; /* dial x position */ static int narrows; /* # arrows */ static int nprocs; /* # processes */ static int ntraces; /* # traces */ static int fl_band = 0; /* rubber banding flag */ static int fl_resize = 0; /* resize flag */ static int fl_power2; /* scale is power of 2 flag */ static int fl_vcron = 0; /* VCR on flag */ static int fl_zoom; /* zoom is sensitive flag */ static int vcrincr; /* VCR pixel increment */ static unsigned long vcrdelay; /* VCR timer delay, msec */ static double zoomhi; /* high zoom factor */ static double zoomlo; /* low zoom factor */ static double scale; /* scale factor, pix/sec */ static double onescale; /* one to one scale */ static double minscale; /* min scale factor, pix/sec */ static double maxscale; /* max scale factor, pix/sec */ static double tmin; /* min traces time */ static double tmax; /* max traces time */ static struct xmarrow *arrows = 0; /* array of arrows */ static struct xmtrace *traces = 0; /* array of traces */ static char fmtbuf[80]; /* formatting buffer */ static int actionsinit = 0; /* actions initialized? */ static int nbuoys; /* number of buoys */ static struct xmbuoy *buoys = 0; /* array of buoys */ static XtActionsRec actions[] = { { (char*) "rubber", (XtActionProc) rubber } }; const char *trans = /* translation table */ ": DrawingAreaInput()\n\ : DrawingAreaInput()\n\ : DrawingAreaInput()\n\ : rubber(down)\n\ : rubber(up)\n\ : rubber(motion)"; /* * button info messages */ const char *quit_msg = "Quit trace window"; const char *zoom_msg = "Zoom trace view"; const char *unzoom_msg = "Un-zoom trace view"; const char *vcrbwd_msg = "Play VCR backward at faster speed"; const char *vcrend_msg = "Advance VCR to end"; const char *vcrfwd_msg = "Play VCR at faster speed"; const char *vcrplay_msg = "Play VCR"; const char *vcrrev_msg = "Play VCR backward"; const char *vcrrew_msg = "Rewind VCR to beginning"; const char *vcrstop_msg = "Stop VCR playback"; /* * xmpi_tr_destroy * * Function: - destroys trace window */ void xmpi_tr_destroy() { Widget w; if (trace_w) { /* * Remove destroy callback since we may create a new trace widget * before the current event dispatch is complete. */ XtRemoveCallback(trace_w, XmNdestroyCallback, (XtCallbackProc) destroy_cb, NULL); XtUnmapWidget(trace_w); w = trace_w; tr_clear(); XtDestroyWidget(w); } } /* * xmpi_tr_create * * Function: - creates widgets for trace window */ void xmpi_tr_create() { Widget trace_mgr_w; /* trace manager */ Widget mgr_w; /* prog/appl panel manager */ Widget lbl_w; /* label */ Widget rc_w; /* row of buttons */ Widget w; Dimension width, height; /* window dimensions */ Dimension hsbsize; /* horiz. scrollbar size */ Dimension vsbsize; /* vert. scrollbar size */ /* * Initialize. */ if (initparams()) return; if (!actionsinit) { XtAppAddActions(app, actions, 1); actionsinit = 1; } tr_fill(); nbuoys = xmpi_db_getbuoys(&buoys); /* * Create the trace window. */ trace_w = XtVaCreatePopupShell("trace_pop", xmDialogShellWidgetClass, xmpi_shell, XmNdeleteResponse, XmDESTROY, XmNmappedWhenManaged, False, XmNtitle, "XMPI Trace", NULL); XtAddCallback(trace_w, XmNdestroyCallback, (XtCallbackProc) destroy_cb, NULL); trace_mgr_w = XtVaCreateWidget("trace_mgr", xmFormWidgetClass, trace_w, XmNmarginHeight, 2, XmNmarginWidth, 2, NULL); /* * Build the control area. */ mgr_w = XtVaCreateWidget("trace_ctl_mgr", xmFormWidgetClass, trace_mgr_w, XmNtopAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); lbl_w = XtVaCreateWidget("trace_lbl", xmFormWidgetClass, mgr_w, XmNtopAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, NULL); w = xmpi_mkpixbutton(lbl_w, (XtCallbackProc) tack_cb, NULL, (XtCallbackProc) arm_cb, (char*) quit_msg, (XtCallbackProc) showscale, NULL, tack_bits, tack_width, tack_height, False); XtVaSetValues(w, XmNtopAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); xmpi_add_pophelp(w, (char*) quit_msg); banner_w = xmpi_mklabel(lbl_w, (char*) "banner", XmALIGNMENT_CENTER, False); XtVaSetValues(banner_w, XmNtopAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, w, XmNleftOffset, 3, NULL); showlabel(); XtManageChild(lbl_w); /* * Create the row of control buttons. */ rc_w = XtVaCreateWidget("trace_ctl_buttons", xmRowColumnWidgetClass, mgr_w, XmNorientation, XmHORIZONTAL, XmNnumColumns, 1, XmNleftAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, lbl_w, NULL); zoom_w = xmpi_mkpixbutton(rc_w, (XtCallbackProc) zoom_cb, NULL, (XtCallbackProc) arm_cb, (char*) zoom_msg, (XtCallbackProc) showscale, NULL, zoom_bits, zoom_width, zoom_height, True); xmpi_add_pophelp(zoom_w, (char*) zoom_msg); unzoom_w = xmpi_mkpixbutton(rc_w, (XtCallbackProc) unzoom_cb, NULL, (XtCallbackProc) arm_cb, (char*) unzoom_msg, (XtCallbackProc) showscale, NULL, unzoom_bits, unzoom_width, unzoom_height, True); xmpi_add_pophelp(unzoom_w, (char*) unzoom_msg); // Move to beginning of time w = xmpi_mkpixbutton(rc_w, vcrrew_cb, NULL, (XtCallbackProc) arm_cb, (char*) vcrrew_msg, (XtCallbackProc) showscale, NULL, vcrrew_bits, vcrrew_width, vcrrew_height, False); xmpi_add_pophelp(w, (char*) vcrrew_msg); // play backward faster w = xmpi_mkpixbutton(rc_w, vcrbwd_cb, NULL, (XtCallbackProc) arm_cb, (char*) vcrbwd_msg, (XtCallbackProc) showscale, NULL, vcrbwd_bits, vcrbwd_width, vcrbwd_height, False); xmpi_add_pophelp(w, (char*) vcrbwd_msg); // play backward w = xmpi_mkpixbutton(rc_w, vcrrev_cb, NULL, (XtCallbackProc) arm_cb, (char*) vcrrev_msg, (XtCallbackProc) showscale, NULL, vcrrev_bits, vcrrev_width, vcrrev_height, False); xmpi_add_pophelp(w, (char*) vcrrev_msg); // stop the playback w = xmpi_mkpixbutton(rc_w, (XtCallbackProc) vcrstop_cb, NULL, (XtCallbackProc) arm_cb, (char*) vcrstop_msg, (XtCallbackProc) showscale, NULL, vcrstop_bits, vcrstop_width, vcrstop_height, False); xmpi_add_pophelp(w, (char*) vcrstop_msg); // Play forward w = xmpi_mkpixbutton(rc_w, (XtCallbackProc) vcrplay_cb, NULL, (XtCallbackProc) arm_cb, (char*) vcrplay_msg, (XtCallbackProc) showscale, NULL, vcrplay_bits, vcrplay_width, vcrplay_height, False); xmpi_add_pophelp(w, (char*) vcrplay_msg); // Play forward faster w = xmpi_mkpixbutton(rc_w, (XtCallbackProc) vcrfwd_cb, NULL, (XtCallbackProc) arm_cb, (char*) vcrfwd_msg, (XtCallbackProc) showscale, NULL, vcrfwd_bits, vcrfwd_width, vcrfwd_height, False); xmpi_add_pophelp(w, (char*) vcrfwd_msg); // Move to end of time w = xmpi_mkpixbutton(rc_w, vcrend_cb, NULL, (XtCallbackProc) arm_cb, (char*) vcrend_msg, (XtCallbackProc) showscale, NULL, vcrend_bits, vcrend_width, vcrend_height, False); xmpi_add_pophelp(w, (char*) vcrfwd_msg); XtManageChild(rc_w); /* * Create scale label. */ scale_w = xmpi_mklabel(mgr_w, (char*) " ", XmALIGNMENT_BEGINNING, False); XtVaSetValues(scale_w, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, lbl_w, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, rc_w, XmNleftOffset, 10, XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET, XmNbottomWidget, rc_w, NULL); /* * Create the time labels. */ w = XtVaCreateWidget("ts_labels", xmFormWidgetClass, mgr_w, XmNfractionBase, 3, XmNleftAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, rc_w, XmNrightAttachment, XmATTACH_FORM, NULL); tleft_w = xmpi_mklabel(w, (char*) " ", XmALIGNMENT_BEGINNING, False); xmpi_formattach(tleft_w, 0, 3, 0, 1); tright_w = xmpi_mklabel(w, (char*) " ", XmALIGNMENT_END, False); xmpi_formattach(tright_w, 0, 3, 2, 3); tdial_w = xmpi_mklabel(w, (char*) " ", XmALIGNMENT_CENTER, False); xmpi_formattach(tdial_w, 0, 3, 1, 2); XtManageChild(w); XtManageChild(mgr_w); /* * Add a separator. */ mgr_w = XtVaCreateManagedWidget("focus_sep", xmSeparatorGadgetClass, trace_mgr_w, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, mgr_w, XmNleftAttachment, XmATTACH_FORM, XmNleftOffset, 1, XmNrightAttachment, XmATTACH_FORM, XmNrightOffset, 1, NULL); /* * Build the trace viewing area. */ mgr_w = XtVaCreateWidget("trace_view_mgr", xmFormWidgetClass, trace_mgr_w, XmNleftAttachment, XmATTACH_FORM, XmNleftOffset, 1, XmNrightAttachment, XmATTACH_FORM, XmNrightOffset, 1, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, mgr_w, XmNtopOffset, 1, XmNbottomAttachment, XmATTACH_FORM, NULL); /* * Build the scrolled window. */ scroll_w = XtVaCreateManagedWidget("trace_view", xmScrolledWindowWidgetClass, mgr_w, XmNscrollingPolicy, XmAPPLICATION_DEFINED, XmNvisualPolicy, XmVARIABLE, XmNscrolledWindowMarginHeight, 4, XmNscrolledWindowMarginWidth, 4, XmNtraversalOn, False, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); /* * Build the drawing area. */ draw_w = XtVaCreateManagedWidget("trace_draw", xmDrawingAreaWidgetClass, scroll_w, XmNtranslations, XtParseTranslationTable(trans), XmNwidth, drawwidth, XmNheight, drawheight, XmNshadowThickness, 2, XmNtopShadowPixmap, NULL, XmNbottomShadowPixmap, NULL, NULL); XtAddCallback(draw_w, XmNinputCallback, (XtCallbackProc) draw_cb, NULL); XtAddCallback(draw_w, XmNexposeCallback, (XtCallbackProc) draw_cb, NULL); XtAddCallback(draw_w, XmNresizeCallback, (XtCallbackProc) resize_cb, NULL); XtManageChild(draw_w); /* * Build the scrollbars. */ vsb_w = XtVaCreateManagedWidget("vertscrollbar", xmScrollBarWidgetClass, scroll_w, XmNorientation, XmVERTICAL, XmNminimum, 0, XmNmaximum, pixheight, XmNsliderSize, drawheight, XmNpageIncrement, drawheight - 1, XmNincrement, 1, NULL); hsb_w = XtVaCreateManagedWidget("horizscrollbar", xmScrollBarWidgetClass, scroll_w, XmNorientation, XmHORIZONTAL, XmNminimum, 0, XmNmaximum, maxwidth, XmNsliderSize, drawwidth, XmNpageIncrement, drawwidth - 1, XmNincrement, 1, NULL); XmScrolledWindowSetAreas(scroll_w, hsb_w, vsb_w, draw_w); XtAddCallback(vsb_w, XmNvalueChangedCallback, (XtCallbackProc) vscroll_cb, NULL); XtAddCallback(vsb_w, XmNdragCallback, (XtCallbackProc) vscroll_cb, NULL); XtAddCallback(hsb_w, XmNvalueChangedCallback, (XtCallbackProc) hscroll_cb, NULL); XtAddCallback(hsb_w, XmNdragCallback, (XtCallbackProc) hscroll_cb, NULL); XtManageChild(scroll_w); XtManageChild(mgr_w); XtManageChild(trace_mgr_w); /* * Initialize graphic contexts. */ gcinit(); /* * Create the trace drawing area and the dial pixmaps. */ pixmap = XCreatePixmap(disp, root, pixwidth, pixheight, depth); setupdial(); tr_draw(); /* * Pop up the window. */ XtPopup(trace_w, XtGrabNone); /* * Set the scrolled window dimensions. */ XtVaGetValues(hsb_w, XmNheight, &hsbsize, NULL); XtVaGetValues(vsb_w, XmNwidth, &vsbsize, NULL); XtVaSetValues(scroll_w, XmNwidth, drawwidth + vsbsize, XmNheight, drawheight + hsbsize, NULL); /* * Compute the extra pixels between drawing area and popup. * Set the max/min window sizes. */ XtVaGetValues(trace_w, XmNheight, &height, XmNwidth, &width, NULL); hextra = height - drawheight; wextra = width - drawwidth; XtVaSetValues(trace_w, XmNminHeight, XMPI_TRDISP + hextra, XmNmaxHeight, pixheight + hextra, XmNminWidth, XMPI_TRMINWIDTH + wextra, XmNmaxWidth, maxwidth + wextra, NULL); fl_resize = 1; } /* * xmpi_tr_vcron * * Function: - vcr forward motion state * Returns: - 1 if vcr is in play or ffwd mode, else 0 */ int xmpi_tr_vcron() { return (fl_vcron); } /* * tr_fill * * Function: - fill the tracing information from the database */ static void tr_fill() { double t1, t2; /* * Get the trace information. */ if (traces) free((char *) traces); if (arrows) free((char *) arrows); t1 = tmin + (xpix / scale); if (t1 < tmin) t1 = tmin; t2 = tmin + ((xpix + pixwidth) / scale); if (t2 > tmax) t2 = tmax; ntraces = xmpi_db_gettraces(t1, t2, &traces); narrows = xmpi_db_getarrows(t1, t2, &arrows); } /* * tr_draw * * Function: - draw the tracing information */ static void tr_draw() { int maxrank; /* max. rank */ int x, y; /* coordinates */ int x2, y2; /* other coordinates */ int width; /* rectangle width */ int i; /* favourite index */ GC pen; /* colouring pen */ struct xmtrace *ptrace; /* ptr trace */ struct xmarrow *parrow; /* ptr arrow */ struct xmbuoy *pbuoy; int yfactor = 1; /* Set the zoom/unzoom button sensitivity. */ fl_zoom = scale < maxscale; XtVaSetValues(zoom_w, XmNsensitive, (fl_zoom) ? True : False, NULL); XtVaSetValues(unzoom_w, XmNsensitive, ((drawwidth == maxwidth) || (scale < minscale)) ? False : True, NULL); maxrank = xmpi_db_getnprocs() - 1; XFillRectangle(disp, pixmap, bgpen, 0, 0, pixwidth, pixheight); /* Loop drawing the traces. */ for (i = 0, ptrace = traces; i < ntraces; ++i, ++ptrace) { if (ptrace->xmt_state == XMPI_SUNDEF) continue; y = ((ptrace->xmt_rank + 1) * XMPI_TRDISP) - XMPI_TRHEIGHT; x = (int) ((ptrace->xmt_time - tmin) * scale) - xpix; width = (int) (ptrace->xmt_lapse * scale) + 1; if (x < 0) { width += x; if (width <= 0) continue; x = 0; } width = min(width, pixwidth); switch (ptrace->xmt_state) { case XMPI_SMISSING: pen = misspen; break; case XMPI_SRUN: pen = runpen; break; case XMPI_SBLOCK: pen = blkpen; break; case XMPI_SSYSTEM: pen = syspen; break; } XFillRectangle(disp, pixmap, pen, x, y, width, XMPI_TRHEIGHT); } /* Loop drawing the buoys. */ if (nbuoys > 0) { for (i = 0, pbuoy = buoys; i < nbuoys; ++i, ++pbuoy) { y = ((pbuoy->xmb_rank + 1) * yfactor * XMPI_TRDISP) - XMPI_TRHEIGHT; x = (int) ((pbuoy->xmb_time - tmin) * scale) - xpix; XDrawLine(disp, pixmap, syspen, x, y, x, y - 10); XDrawArc(disp, pixmap, syspen, x - strlen(pbuoy->xmb_name) * 4, y - 30, strlen(pbuoy->xmb_name) * 8, 20, 0, 360 * 64); XDrawString(disp, pixmap, arwpen, x - strlen(pbuoy->xmb_name) * 3, y - 15, pbuoy->xmb_name, strlen(pbuoy->xmb_name)); } } /* * Loop drawing the arrows. */ for (i = 0, parrow = arrows; i < narrows; ++i, ++parrow) { if (parrow->xma_srank == -1) { /* * Unmatched receive, draw a stub. */ x = (int) ((parrow->xma_rtime - tmin) * scale) - xpix; y = (parrow->xma_rrank + 1) * XMPI_TRDISP; if (parrow->xma_rrank == maxrank) { y -= XMPI_TRHEIGHT; y2 = y - XMPI_TRHEIGHT; } else { --y; y2 = y + XMPI_TRHEIGHT; } XDrawLine(disp, pixmap, arwpen, x, y, x - XMPI_TRHEIGHT, y2); } else if (parrow->xma_rrank == -1) { /* * Unmatched send, draw a stub. */ x = (int) ((parrow->xma_stime - tmin) * scale) - xpix; y = (parrow->xma_srank + 1) * XMPI_TRDISP + 1; if (parrow->xma_srank == maxrank) { y -= XMPI_TRHEIGHT; y2 = y - XMPI_TRHEIGHT; } else { --y; y2 = y + XMPI_TRHEIGHT; } XDrawLine(disp, pixmap, arwpen, x, y, x + XMPI_TRHEIGHT, y2); } else { /* * Matched send and receive. */ x = (int) ((parrow->xma_stime - tmin) * scale) - xpix; x2 = (int) ((parrow->xma_rtime - tmin) * scale) - xpix; y = (parrow->xma_srank + 1) * XMPI_TRDISP; y2 = (parrow->xma_rrank + 1) * XMPI_TRDISP; /* * If same sender/receiver, draw a half-ellipse * (Angle is in 1/64th of a degree, i.e. 11520 = 180 * 64). */ if (parrow->xma_srank == parrow->xma_rrank) { XDrawArc(disp, pixmap, arwpen, x, y - 2 * XMPI_TRHEIGHT - 1, x2 - x, 2 * XMPI_TRHEIGHT, 0, 11520); } /* * Different processes, draw a straight line. */ else { if (parrow->xma_rrank > parrow->xma_srank) { ++y; y2 -= XMPI_TRHEIGHT + 1; } else { y -= XMPI_TRHEIGHT + 1; ++y2; } XDrawLine(disp, pixmap, arwpen, x, y, x2, y2); } } } /* * Draw the dial, first saving what is under it. */ if ((xdial >= xpix) && (xdial < (xpix + pixwidth))) { XCopyArea(disp, pixmap, savedial, fgpen, xdial - xpix, 0, XMPI_DIALWIDTH, pixheight, 0, 0); XSetClipOrigin(disp, dialpen, xdial - xpix, 0); XCopyArea(disp, dial, pixmap, dialpen, 0, 0, XMPI_DIALWIDTH, pixheight, xdial - xpix, 0); } showtime(); showscale(); redraw(); } /* * zoom_cb * * Function: - trace zooming callback */ static void zoom_cb() { int xdraw; /* draw position */ double newscale; /* new scale */ double tdial; /* dial time */ /* * If dial is outside view, center it. */ xdraw = xpix + xdrawpos; if ((xdial < xdraw) || (xdial >= (xdraw + drawwidth))) { xdial = xdraw + (drawwidth / 2); showtime(); xmpi_vw_update(!fl_vcron); xmpi_kv_update(); } tdial = tmin + xdial / scale; /* * Zoom around dial location. */ if (fl_power2) { if (zoomhi > 1.0 || zoomlo == 1.0) { zoomhi *= 2.0; newscale = onescale * zoomhi; } else { zoomlo /= 2.0; newscale = onescale / zoomlo; } } else { if (scale > onescale) { zoomhi = pow(2.0, ceil(log(scale / onescale) / log(2.0))); zoomlo = 1.0; newscale = onescale * zoomhi; } else { zoomlo = pow(2.0, floor(log(onescale / scale) / log(2.0))); zoomhi = 1.0; newscale = onescale / zoomlo; } fl_power2 = 1; } if (newscale > maxscale + XMPI_EPSSCALE) { scale = maxscale; fl_power2 = 0; zoomhi = maxscale / onescale; zoomlo = 1.0; } else { scale = newscale; } xdial = (int) ((tdial - tmin) * scale); maxwidth = (int) ((scale * (tmax - tmin)) + 0.5); xdrawpos = (pixwidth - drawwidth) / 2; xpix = xdial - pixwidth / 2; if (xpix < 0) { xdrawpos = max(xdrawpos + xpix, 0); xpix = 0; } if ((xpix + xdrawpos + drawwidth) > maxwidth) { xdrawpos = 0; xpix = maxwidth - drawwidth; } if ((xpix + xdrawpos) < 0) { xpix = xdrawpos = 0; } XtVaSetValues(hsb_w, XmNvalue, xpix + xdrawpos, XmNmaximum, max(maxwidth, drawwidth), NULL); /* * Set the new max width. */ XtVaSetValues(trace_w, XmNmaxWidth, max(maxwidth, drawwidth) + wextra, NULL); /* * Refresh screen. */ tr_fill(); tr_draw(); movedial(xdial, 1); } /* * unzoom_cb * * Function: - trace unzooming callback */ static void unzoom_cb() { int xdraw; /* draw position */ double newscale; /* new scale */ double tdial; /* dial time */ /* * If dial is outside view, center it. */ xdraw = xpix + xdrawpos; if ((xdial < xdraw) || (xdial >= (xdraw + drawwidth))) { xdial = xdraw + (drawwidth / 2); showtime(); xmpi_vw_update(!fl_vcron); xmpi_kv_update(); } tdial = tmin + xdial / scale; /* * Unzoom around dial location. */ if (fl_power2) { if (zoomlo > 1.0 || zoomhi == 1.0) { zoomlo *= 2.0; newscale = onescale / zoomlo; } else { zoomhi /= 2.0; newscale = onescale * zoomhi; } } else { if (scale > onescale) { zoomhi = pow(2.0, floor(log(scale / onescale) / log(2.0))); zoomlo = 1.0; newscale = onescale * zoomhi; } else { zoomlo = pow(2.0, ceil(log(onescale / scale) / log(2.0))); zoomhi = 1.0; newscale = onescale / zoomlo; } fl_power2 = 1; } if (newscale < minscale - XMPI_EPSSCALE) { scale = minscale; fl_power2 = 0; zoomhi = 1.0; zoomlo = onescale / minscale; } else { scale = newscale; } xdial = (int) ((tdial - tmin) * scale); maxwidth = (int) ((scale * (tmax - tmin)) + 0.5); xdrawpos = (pixwidth - drawwidth) / 2; xpix = xdial - pixwidth / 2; if (xpix < 0) { xdrawpos = max(xdrawpos + xpix, 0); xpix = 0; } if ((xpix + xdrawpos + drawwidth) > maxwidth) { xdrawpos = 0; xpix = maxwidth - drawwidth; } if ((xpix + xdrawpos) < 0) { xpix = xdrawpos = 0; } XtVaSetValues(hsb_w, XmNvalue, xpix + xdrawpos, XmNmaximum, max(maxwidth, drawwidth), NULL); /* * Set the new max width. */ XtVaSetValues(trace_w, XmNmaxWidth, max(maxwidth, drawwidth) + wextra, NULL); /* * Refresh screen. */ tr_fill(); tr_draw(); movedial(xdial, 1); } /* * tack_cb * * Function: - tack button callback */ static void tack_cb() { Widget w; XtRemoveCallback(trace_w, XmNdestroyCallback, (XtCallbackProc) destroy_cb, NULL); XtUnmapWidget(trace_w); w = trace_w; tr_clear(); XtDestroyWidget(w); xmpi_db_free(); } /* * destroy_cb * * Function: - trace window destroy callback */ static void destroy_cb() { tr_clear(); xmpi_db_free(); } /* * tr_clear * * Function: - clear trace and associated windows * - freeing data structures */ static void tr_clear() { Widget w; if (!trace_w) return; w = trace_w; trace_w = 0; /* * Stop the VCR. */ if (fl_vcron) { XtRemoveTimeOut(vcrtimer); fl_vcron = 0; } /* * Free information storage space. */ if (traces) free((char *) traces); if (arrows) free((char *) arrows); traces = 0; arrows = 0; fl_resize = 0; /* * Clear the current display. */ xmpi_ctl_setsensitive(XMPI_BSNAPSHOT, False); xmpi_ctl_setsensitive(XMPI_BKIVIAT, False); xmpi_ctl_setsensitive(XMPI_BMATRIX, False); xmpi_dt_clear(); xmpi_kv_popdown(); if (xmpi_app_procs) { /* * A process is running (may have finalized). */ if (xmpi_is_express) { if (!xmpi_do_rerun && !xmpi_do_express) { xmpi_vw_dbsetmode(0); xmpi_vw_update(1); } } else { xmpi_mat_destroy(); xmpi_vw_dbsetmode(0); xmpi_vw_init(); } xmpi_ctl_setsensitive(XMPI_BSNAPSHOT, True); } else { xmpi_mat_destroy(); xmpi_vw_clear(); } /* * Destroy pixmaps and dial pen. */ XmUpdateDisplay(w); XFreePixmap(disp, pixmap); XFreePixmap(disp, savedial); XFreePixmap(disp, dial); XFreePixmap(disp, mask); XFreeGC(disp, dialpen); } /* * draw_cb * * Function: - callback function for drawing traces * - handles mouse clicks and expose events * Accepts: - widget * - client data * - ptr callback struct */ static void draw_cb(Widget, XtPointer, XmDrawingAreaCallbackStruct *p_callback) { int x, y; /* mouse position */ XEvent *event; /* activating event */ if (!trace_w || fl_band) return; event = p_callback->event; /* * Move the dial and update views. */ if (p_callback->reason == XmCR_INPUT) { x = event->xbutton.x; y = event->xbutton.y; /* * If mouse inside window, move the dial. * Update views if button is released. */ if ((x >= 0) && (x < drawwidth) && (y >= 0) && (y < drawheight)) { movedial(x + xdrawpos + xpix, event->xany.type == ButtonRelease); } } /* * Handle the expose event. */ else if (p_callback->reason == XmCR_EXPOSE) { redraw(); } } /* * movedial * * Function: - move dial to a given position * - update all view if needed * Accepts: - new dial x position * - update views flag */ static void movedial(int x, int fl_update) { /* * If still in the same pixmap, restore previous dial location. */ if ((xdial >= xpix) && (xdial < (xpix + pixwidth))) { XCopyArea(disp, savedial, pixmap, fgpen, 0, 0, XMPI_DIALWIDTH, pixheight, xdial - xpix, 0); } /* * Draw new dial, first saving what is under it. */ XCopyArea(disp, pixmap, savedial, fgpen, x - xpix, 0, XMPI_DIALWIDTH, pixheight, 0, 0); XSetClipOrigin(disp, dialpen, x - xpix, 0); XCopyArea(disp, dial, pixmap, dialpen, 0, 0, XMPI_DIALWIDTH, pixheight, x - xpix, 0); xdial = x; showtime(); redraw(); /* * Update views if needed. */ if (fl_update) { xmpi_vw_update(!fl_vcron); xmpi_kv_update(); } } /* * resize_cb * * Function: - callback function for resizing trace view * Accepts: - widget * - client data * - ptr callback struct */ static void resize_cb(Widget, XtPointer, XmDrawingAreaCallbackStruct*) { Dimension width, height; /* drawing area dimensions */ if (!fl_resize) return; /* * Determine new dimensions and parameters. */ XtVaGetValues(draw_w, XmNwidth, &width, XmNheight, &height, NULL); drawwidth = width; drawheight = height; pixwidth = drawwidth * XMPI_TRNVIEW; maxwidth = (int) ((scale * (tmax - tmin)) + 0.5); /* * Allocate new pixmap. */ if (pixmap) XFreePixmap(disp, pixmap); pixmap = XCreatePixmap(disp, root, pixwidth, pixheight, depth); /* * Change the vertical scrollbar parameters. */ if ((ydrawpos + drawheight) > pixheight) { ydrawpos = pixheight - drawheight; } if (ydrawpos < 0) ydrawpos = 0; XtVaSetValues(vsb_w, XmNvalue, ydrawpos, XmNsliderSize, drawheight, XmNpageIncrement, drawheight - 1, NULL); /* * Change the horizontal scrollbar parameters. */ if ((xpix + xdrawpos + drawwidth) > maxwidth) { xdrawpos = 0; xpix = maxwidth - drawwidth; } if ((xpix + xdrawpos) < 0) xpix = xdrawpos = 0; if ((xdrawpos + drawwidth) > pixwidth) xdrawpos = pixwidth - drawwidth; XtVaSetValues(hsb_w, XmNvalue, xpix + xdrawpos, XmNsliderSize, drawwidth, XmNpageIncrement, drawwidth - 1, NULL); /* * Refresh screen. */ tr_fill(); tr_draw(); } /* * hscroll_cb * * Function: - callback function for horizontal scrollbar * Accepts: - widget * - client data * - ptr callback struct */ static void hscroll_cb(Widget, XtPointer, XmScrollBarCallbackStruct *p_callback) { int x; x = p_callback->value; /* * If the view moved outside pixmap cache, refill and center the view. */ if ((x < xpix) || ((x + drawwidth) > (xpix + pixwidth))) { xpix = x - drawwidth; if (xpix < 0) { xpix = 0; xdrawpos = x; } else { xdrawpos = drawwidth; } tr_fill(); tr_draw(); } /* * Otherwise just set view offset and redraw. */ else { xdrawpos = x - xpix; showtime(); redraw(); } } /* * vscroll_cb * * Function: - callback function for vertical scrollbar * Accepts: - widget * - client data * - ptr callback struct */ static void vscroll_cb(Widget, XtPointer, XmScrollBarCallbackStruct *p_callback) { ydrawpos = p_callback->value; redraw(); } /* * arm_cb * * Function: - print armed button info message * Accepts: - widget * - info message */ static void arm_cb(Widget, char *) { /* xmpi_setlabel(scale_w, mesg); XmUpdateDisplay(scale_w); */ } /* * vcrrew_cb * * Function: - rewind VCR */ static void vcrrew_cb(Widget w, XtPointer p1, XtPointer p2) { vcrstop_cb(w, p1, p2); xpix = xdrawpos = 0; XtVaSetValues(hsb_w, XmNvalue, 0, NULL); movedial(0, 1); tr_fill(); tr_draw(); } /* * vcrstop_cb * * Function: - stop VCR and do a final update */ static void vcrstop_cb(Widget, XtPointer, XtPointer) { if (fl_vcron) { XtRemoveTimeOut(vcrtimer); fl_vcron = 0; XtMapWidget(tleft_w); XtMapWidget(tright_w); movedial(xdial, 1); } } /* * vcrplay_cb * * Function: - play VCR */ static void vcrplay_cb(Widget, XtPointer, XtPointer) { vcrdelay = XMPI_TRVCRPLAY; vcrincr = 1; if (!fl_vcron) { vcrtimer = XtAppAddTimeOut(app, vcrdelay, (XtTimerCallbackProc) vcradvance, NULL); fl_vcron = 1; XtUnmapWidget(tleft_w); XtUnmapWidget(tright_w); } } /* * vcrfwd_cb * * Function: - play VCR faster */ static void vcrfwd_cb(Widget, XtPointer, XtPointer) { vcrdelay = XMPI_TRVCRFWD; vcrincr = 2; if (!fl_vcron) { vcrtimer = XtAppAddTimeOut(app, vcrdelay, (XtTimerCallbackProc) vcradvance, NULL); fl_vcron = 1; XtUnmapWidget(tleft_w); XtUnmapWidget(tright_w); } } // // vcrbwd_cb // // Function: play VCR backwards quickly... // static void vcrbwd_cb(Widget, XtPointer, XtPointer) { vcrdelay = XMPI_TRVCRFWD; vcrincr = -2; if (!fl_vcron) { vcrtimer = XtAppAddTimeOut(app, vcrdelay, (XtTimerCallbackProc) vcradvance, NULL); fl_vcron = 1; XtUnmapWidget(tleft_w); XtUnmapWidget(tright_w); } } static void vcrend_cb(Widget w, XtPointer p1, XtPointer p2) { int val; int size; int inc; int pinc; vcrstop_cb(w, p1, p2); // we need to get size... XmScrollBarGetValues(hsb_w, &val, &size, &inc, &pinc); xpix = maxwidth - 2 * size; xdrawpos = size; XtVaSetValues(hsb_w, XmNvalue, maxwidth - size, NULL); movedial(maxwidth, 1); tr_fill(); tr_draw(); } static void vcrrev_cb(Widget, XtPointer, XtPointer) { vcrdelay = XMPI_TRVCRPLAY; vcrincr = -1; if (!fl_vcron) { vcrtimer = XtAppAddTimeOut(app, vcrdelay, (XtTimerCallbackProc) vcradvance, NULL); fl_vcron = 1; XtUnmapWidget(tleft_w); XtUnmapWidget(tright_w); } } /* * vcradvance * * Function: - move VCR by inc frames */ static void vcradvance() { int val; int size; int inc; int pinc; int x; // stop if going forward and hit maxwidth or going backward // and hit 0 if (((xdial >= maxwidth) && (vcrincr >= 0)) || ((xdial <= 0) && vcrincr <= 0)) { // These are all pointers. Xt won't dereference them (it smart // that way). This is not nearly as bad as it appears. vcrstop_cb((Widget) 0, (XtPointer) 0, (XtPointer) 0); return; } x = xdial + vcrincr; if (x > maxwidth) x = maxwidth; if (x < 0) x = 0; // move the traces if there is trace file data to display in the // direction we are going... if ((x > (drawwidth / 2)) && (x < maxwidth - ((drawwidth / 2)))) { XmScrollBarGetValues(hsb_w, &val, &size, &inc, &pinc); val += vcrincr; if (val > (maxwidth - size)) { val = maxwidth - size; } XmScrollBarSetValues(hsb_w, val, size, inc, pinc, True); } movedial(x, 1); vcrtimer = XtAppAddTimeOut(app, vcrdelay, (XtTimerCallbackProc) vcradvance, NULL); } /* * redraw * * Function: - redraw the trace view */ static void redraw() { XCopyArea(disp, pixmap, XtWindow(draw_w), fgpen, xdrawpos, ydrawpos, drawwidth, drawheight, 0, 0); } /* * gcinit * * Function: - allocate coloured pens */ static void gcinit() { Pixel fg, bg; /* drawing area colours */ XGCValues gcval; /* graphic context info */ XColor col_def; /* colour definition */ XColor dev_null; /* unused functionality */ if (fgpen) return; disp = XtDisplay(draw_w); root = RootWindowOfScreen(XtScreen(draw_w)); depth = DefaultDepthOfScreen(XtScreen(draw_w)); /* * Create the graphic contexts. */ XtVaGetValues(draw_w, XmNforeground, &fg, XmNbackground, &bg, NULL); gcval.foreground = bg; gcval.background = fg; gcval.font = app_res.ap_rankfont->fid; fgpen = XCreateGC(disp, root, (GCFont | GCForeground | GCBackground), &gcval); gcval.foreground = fg; gcval.background = bg; bgpen = XCreateGC(disp, root, GCForeground, &gcval); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), "yellow", &col_def, &dev_null); gcval.foreground = col_def.pixel; syspen = XCreateGC(disp, root, GCForeground, &gcval); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), "red", &col_def, &dev_null); gcval.foreground = col_def.pixel; blkpen = XCreateGC(disp, root, GCForeground, &gcval); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), "green", &col_def, &dev_null); gcval.foreground = col_def.pixel; runpen = XCreateGC(disp, root, GCForeground, &gcval); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), "white", &col_def, &dev_null); gcval.foreground = col_def.pixel; arwpen = XCreateGC(disp, root, GCForeground, &gcval); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), "gray", &col_def, &dev_null); gcval.foreground = col_def.pixel; misspen = XCreateGC(disp, root, GCForeground, &gcval); gcval.foreground = app_res.ap_bandcol; gcval.line_width = app_res.ap_bandwidth; gcval.line_style = (app_res.ap_banddash) ? LineOnOffDash : LineSolid; rubpen = XCreateGC(disp, root, (GCForeground | GCLineStyle | GCLineWidth), &gcval); } /* * initparams * * Function: - initialize trace viewing parameters */ static int initparams() { int n; /* * Get the # processes and min/max times. */ nprocs = xmpi_db_getnprocs(); if (nprocs == 0) return (LAMERROR); tmin = xmpi_db_getmintime(); tmax = xmpi_db_getmaxtime(); tmax *= 1.05; /* * Determine the view sizes and scaling factor. */ drawwidth = XMPI_TRWIDTH; pixwidth = drawwidth * XMPI_TRNVIEW; n = ((nprocs > XMPI_TRNPROCS) ? XMPI_TRNPROCS : nprocs); drawheight = ((n + 1) * XMPI_TRDISP) - XMPI_TRHEIGHT; pixheight = ((nprocs + 1) * XMPI_TRDISP) - XMPI_TRHEIGHT; minscale = drawwidth / (tmax - tmin); maxscale = 20.0 / xmpi_db_getminlapse(); if (maxscale < minscale) { maxscale = minscale; } n = xmpi_db_getmaxtraces(); scale = minscale * max(n / 20.0, 1.0); if (scale > maxscale) { scale = maxscale; } onescale = scale; zoomhi = zoomlo = 1.0; fl_power2 = 1; maxwidth = (int) ((scale * (tmax - tmin)) + 0.5); xdrawpos = ydrawpos = 0; xpix = 0; xdial = drawwidth / 2; return (0); } /* * showtime * * Function: - show time information */ static void showtime() { static double tleft = -1.0; static double tright = -1.0; double newleft; double newright; xmpi_db_settime(tmin + (xdial / scale)); sprintf(fmtbuf, "%.6f", tmin + (xdial / scale)); xmpi_setlabel(tdial_w, fmtbuf); newleft = tmin + ((xpix + xdrawpos) / scale); newright = tmin + ((xpix + xdrawpos + drawwidth) / scale); if (newleft != tleft) { tleft = newleft; sprintf(fmtbuf, "%.6f", tleft); xmpi_setlabel(tleft_w, fmtbuf); } if (newright != tright) { tright = newright; sprintf(fmtbuf, "%.6f", tright); xmpi_setlabel(tright_w, fmtbuf); } } /* * showscale * * Function: - show scale information */ static void showscale() { sprintf(fmtbuf, "Scale: %-.4g x %-.4g", zoomhi, zoomlo); xmpi_setlabel(scale_w, fmtbuf); } /* * showlabel * * Function: - show the label information */ static void showlabel() { const char *label = ""; if (*tracefile) { label = strrchr(tracefile, STRDIR); label = label ? label + 1 : tracefile; } sprintf(fmtbuf, "Timeline (%s)", label); xmpi_setlabel(banner_w, fmtbuf); } /* * setupdial * * Function: - set up the dial pixmap and its save pixmap */ static void setupdial() #define XMPI_DTXTOFF 3 #define XMPI_DPROCOFF 18 { Pixel fg, bg; /* drawing area colours */ XGCValues gcval; /* graphic context info */ int i, y; char numstr[8]; GC maskgc; /* used in creating the mask */ XtVaGetValues(draw_w, XmNforeground, &fg, XmNbackground, &bg, NULL); dial = XCreatePixmap(disp, root, XMPI_DIALWIDTH, pixheight, depth); savedial = XCreatePixmap(disp, root, XMPI_DIALWIDTH, pixheight, depth); mask = XCreatePixmap(disp, root, XMPI_DIALWIDTH, pixheight, 1); gcval.foreground = 0; gcval.background = 0; gcval.font = app_res.ap_rankfont->fid; maskgc = XCreateGC(disp, mask, (GCFont | GCForeground | GCBackground), &gcval); XFillRectangle(disp, mask, maskgc, 0, 0, XMPI_DIALWIDTH, pixheight); XSetForeground(disp, maskgc, 1); /* * Draw process numbers into the dial and mask. */ y = XMPI_DPROCOFF; for (i = 0; i < nprocs; i++) { sprintf(numstr, "%d", i); XDrawString(disp, dial, fgpen, XMPI_DTXTOFF, y, numstr, strlen(numstr)); XDrawString(disp, mask, maskgc, XMPI_DTXTOFF, y, numstr, strlen(numstr)); y += XMPI_TRDISP; } /* * Draw the dial 'cursor'. */ XDrawLine(disp, dial, fgpen, 0, 0, 0, pixheight); XDrawLine(disp, mask, maskgc, 0, 0, 0, pixheight); XFreeGC(disp, maskgc); gcval.foreground = fg; gcval.background = bg; gcval.clip_mask = mask; dialpen = XCreateGC(disp, root, (GCForeground | GCBackground | GCClipMask), &gcval); } /* * xmpi_tr_busy * * Function: - set the busy cursor for the Trace window */ void xmpi_tr_busy() { if (trace_w) xmpi_busy_widget(trace_w); } /* * xmpi_tr_unbusy * * Function: - set the normal cursor for the Trace window */ void xmpi_tr_unbusy() { if (trace_w) xmpi_unbusy_widget(trace_w); } #define RUBBER_MARGIN 3 /* * rubber * * Function: - zoom selection rubber banding action * Accepts: - Xt action parameters */ static void rubber(Widget, XButtonEvent *event, String *args, int *) { static Position init_x; /* x start of selection */ static Position x; /* current x position */ static unint w; /* width */ static int erase = 0; /* 1 if box drawn, else 0 */ if (!fl_zoom || fl_vcron) return; if (strcmp(args[0], "down") == 0) { x = init_x = event->x; w = 0; erase = 0; fl_band = 1; } else { if (erase) { erase = 0; redraw(); } if (event->x < 0) { event->x = 0; } else if (event->x >= drawwidth) { event->x = drawwidth - 1; } if (event->x < init_x) { w = init_x - event->x; x = event->x; } else { w = event->x - x; x = init_x; } if (strcmp(args[0], "motion") == 0) { if (w > 1 && event->y >= 0 && event->y <= drawheight) { erase = 1; XDrawRectangle(disp, XtWindow(draw_w), rubpen, x, RUBBER_MARGIN, w, drawheight - 2 * RUBBER_MARGIN - 1); } } else { /* * button up */ fl_band = 0; if (w > 1 && event->y >= 0 && event->y <= drawheight) { dragged_zoom(x, (int) w); } } } } /* * dragged_zoom * * Function: - zoom of selected timeline segment * Accepts: - x offset in window of left side of segment * - width of segment */ static void dragged_zoom(int x, int w) { double t; /* time at selection leftside */ double factor; /* scale factor */ double power2; /* powers of 2 */ if (!fl_zoom) return; if (xpix + x >= maxwidth) return; if (xpix + x + w > maxwidth) { w = maxwidth - xpix - x; } t = ((double) (xpix + xdrawpos + x)) / scale + tmin; scale *= (double) drawwidth / (double) w; if (scale > maxscale) { scale = maxscale; } /* * If scale is close enough to a power of two then use that. */ factor = scale / onescale; power2 = pow(2.0, floor(log(factor) / log(2.0))); if (factor > power2 - XMPI_EPSSCALE && factor < power2 + XMPI_EPSSCALE) { fl_power2 = 1; if (power2 >= 1.0) { zoomhi = power2; zoomlo = 1.0; scale = onescale * power2; } else { zoomlo = 1.0 / power2; zoomhi = 1.0; scale = onescale / zoomlo; } } else { power2 = pow(2.0, ceil(log(factor) / log(2.0))); if (factor > power2 - XMPI_EPSSCALE && factor < power2 + XMPI_EPSSCALE) { fl_power2 = 1; if (power2 >= 1.0) { zoomhi = power2; zoomlo = 1.0; scale = onescale * power2; } else { zoomlo = 1.0 / power2; zoomhi = 1.0; scale = onescale / zoomlo; } } else { fl_power2 = 0; if (scale >= onescale) { zoomhi = scale / onescale; zoomlo = 1.0; } else { zoomlo = onescale / scale; zoomhi = 1.0; } } } /* * Determine new drawing positions. */ maxwidth = (int) ((scale * (tmax - tmin)) + 0.5); xdrawpos = (pixwidth - drawwidth) / 2; xpix = ((int) ((t - tmin) * scale)) - xdrawpos; if (xpix < 0) { xdrawpos = max(xdrawpos + xpix, 0); xpix = 0; } if ((xpix + xdrawpos + drawwidth) > maxwidth) { xdrawpos = 0; xpix = maxwidth - drawwidth; } if ((xpix + xdrawpos) < 0) { xpix = xdrawpos = 0; } /* * Center the dial. */ xdial = xpix + xdrawpos + drawwidth / 2; XtVaSetValues(hsb_w, XmNvalue, xpix + xdrawpos, XmNmaximum, max(maxwidth, drawwidth), NULL); XtVaSetValues(trace_w, XmNmaxWidth, max(maxwidth, drawwidth), NULL); tr_fill(); tr_draw(); } xmpi-2.2.3b8/src/xmpi/xmpi_tr_dump.cc0000664000076500007650000001136707725267006013227 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_tr_dump.cc,v 1.6 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - dump traces into a trace file */ #include #include #include #include #include #include #include #include #include #include "lam.h" #include "xmpi.h" #include "xmpi_tr_dump.h" #include "xmpi_error.h" #include "xmpi_misc.h" #include "xmpi_ctl.h" #include "xmpi_db_parse.h" /* * local functions */ static void dump_cb(Widget, XtPointer, XmSelectionBoxCallbackStruct*); static int dump(char*); /* * extern variables */ extern int xmpi_app_nprocs; /* number of procs in appl. */ extern struct _gps *xmpi_app_procs; /* appl. GPS array */ extern char tracefile[]; /* name of trace file */ /* * local variables */ static char tempfile[XMPI_PATHMAX]; /* * xmpi_tr_dump * * Function: - dump current application's traces into a file * Accepts: - parent widget */ void xmpi_tr_dump(Widget parent) { Widget dialog_w; /* file name prompt dialog */ XmString str1, str2; /* various strings */ Arg args[3]; if (xmpi_app_procs == 0) { errno = 0; xmpi_error(parent, (char*) "No application for which to dump traces."); return; } str1 = XmStringCreateSimple((char*) "Enter trace file name."); if (!tempfile[0]) { sprintf(tempfile, "/tmp/lam-xmpi%d.lamtr", (int) getpid()); } str2 = XmStringCreateSimple(tempfile); XtSetArg(args[0], XmNselectionLabelString, str1); XtSetArg(args[1], XmNautoUnmanage, False); XtSetArg(args[2], XmNtextString, str2); dialog_w = XmCreatePromptDialog(parent, (char*) "prompt_pop", args, 3); XmStringFree(str1); XmStringFree(str2); XtUnmanageChild(XmSelectionBoxGetChild(dialog_w, XmDIALOG_HELP_BUTTON)); XtAddCallback(dialog_w, XmNokCallback, (XtCallbackProc) dump_cb, NULL); XtAddCallback(dialog_w, XmNcancelCallback, (XtCallbackProc) XtDestroyWidget, NULL); XtManageChild(dialog_w); XtPopup(XtParent(dialog_w), XtGrabNone); } /* * dump_cb * * Function: - dumps traces (callback) * Accepts: - callback data */ static void dump_cb(Widget w, XtPointer, XmSelectionBoxCallbackStruct *cbs) { struct stat finfo; /* file information */ char *fname; /* file name */ int exists = 1; /* file exists? */ XmStringGetLtoR(cbs->value, XmSTRING_DEFAULT_CHARSET, &fname); if (!(fname && *fname)) { errno = 0; xmpi_error(w, (char*) "No filename specified."); return; } /* * Check if file already exists and if so ask user if they want to overwrite * it or not. */ if (stat(fname, &finfo)) { if (errno != ENOENT) { xmpi_error(w, fname); XtFree(fname); return; } exists = 0; } if (exists && !xmpi_yesno(w, (char*) "File exists. Overwrite?")) { XtFree(fname); return; } (void) dump(fname); XtFree(fname); XtDestroyWidget(w); } /* * dump * * Function: - dumps traces * Accepts: - file name * Returns - 0 else LAMERROR */ static int dump(char *file) { int fd; /* trace file descriptor */ /* * Open the file and dump the traces into it. */ fd = open(file, O_WRONLY | O_CREAT | O_TRUNC, 0644); if (fd < 0) { xmpi_error(0, file); return (LAMERROR); } xmpi_busy(); xmpi_ctl_setinfo((char*) "Collecting traces..."); if (xmpi_sys_trace(fd, xmpi_app_procs, xmpi_app_nprocs)) { xmpi_ctl_resetinfo(); xmpi_unbusy(); xmpi_error(0, (char*) "Collecting traces"); close(fd); return (LAMERROR); } xmpi_ctl_resetinfo(); xmpi_unbusy(); close(fd); return (0); } /* * xmpi_tr_express * * Function: - dumps traces and views them * Accepts: - parent widget */ void xmpi_tr_express(Widget) { FILE *dbfs; /* trace file stream */ if (!tempfile[0]) { sprintf(tempfile, "/tmp/lam-xmpi%d.lamtr", (int) getpid()); } if (dump(tempfile)) return; strncpy(tracefile, tempfile, XMPI_PATHMAX); dbfs = fopen(tracefile, "r"); if (dbfs == 0) { xmpi_error(0, tracefile); } else { xmpi_parse_tracefile(dbfs); } } /* * xmpi_tr_cleanup * * Function: - removes temporary trace file, if any * Accepts: - parent widget */ void xmpi_tr_cleanup() { if (tempfile[0]) { unlink(tempfile); tempfile[0] = 0; } } xmpi-2.2.3b8/src/xmpi/xmpi_tr_file.cc0000664000076500007650000000530107725267006013170 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_tr_file.cc,v 1.4 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - select a trace file */ #include #include #include #include #include "xmpi.h" #include "xmpi_tr_file.h" #include "xmpi_error.h" #include "xmpi_db_parse.h" /* * local functions */ static void parse(Widget, caddr_t, XmFileSelectionBoxCallbackStruct*); /* * external variables */ extern char tracefile[]; /* name of trace file */ /* * local variables */ static Widget fsdialog = 0; /* file selection dialog */ /* * xmpi_tr_file * * Function: - selects trace file via a dialog and parses it * Accepts: - parent widget */ void xmpi_tr_file(Widget parent) { Arg args[2]; XmString oklabel; XmString title; Widget help_btn; if (fsdialog == 0) { title = XmStringCreateSimple((char*) "XMPI Trace Selection"); oklabel = XmStringCreateSimple((char*) "View"); XtSetArg(args[0], XmNdialogTitle, title); XtSetArg(args[1], XmNokLabelString, oklabel); /* * The trace file extension is the "dirMask" resource and may be set * in the application defaults file. It defaults to ".lamtr". */ fsdialog = XmCreateFileSelectionDialog(parent, (char*) "trace_selector", args, 2); XtAddCallback(fsdialog, XmNokCallback, (XtCallbackProc) parse, NULL); XtAddCallback(fsdialog, XmNcancelCallback, (XtCallbackProc) XtUnmanageChild, NULL); help_btn = XmFileSelectionBoxGetChild(fsdialog, XmDIALOG_HELP_BUTTON); XtUnmanageChild(help_btn); XmStringFree(title); XmStringFree(oklabel); } else { XmFileSelectionDoSearch(fsdialog, 0); } XtManageChild(fsdialog); } /* * parse * * Function: - parse selected trace file (OK callback) * Accepts: - callback data */ static void parse(Widget w, caddr_t, XmFileSelectionBoxCallbackStruct *cbs) { char *name; /* file name */ FILE *trfs; /* trace file stream */ if (XmStringGetLtoR(cbs->value, XmSTRING_DEFAULT_CHARSET, &name)) strncpy(tracefile, name, XMPI_PATHMAX); XtFree(name); trfs = fopen(tracefile, "r"); if (trfs == 0) { xmpi_error(0, tracefile); } else { XtUnmanageChild(w); xmpi_parse_tracefile(trfs); } } xmpi-2.2.3b8/src/xmpi/xmpi_tr_segment.cc0000664000076500007650000000610207725267006013713 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_tr_segment.cc,v 1.6 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - select and view a trace segment */ #include #include "lam.h" #include "xmpi.h" #include "xmpi_db_parse.h" #include "xmpi_ctl.h" /* * private functions */ static void selcancel_cb(Widget, XtPointer, XmSelectionBoxCallbackStruct*); static void selseg_cb(Widget, XtPointer, XmSelectionBoxCallbackStruct*); /* * xmpi_tr_select_segment * * Function: - select, parse and view a trace segment * Accepts: - maximum segment number */ void xmpi_tr_select_segment(int maxseg) { Widget dialog_w; /* dialog to select segment */ XmString str1, str2; /* various strings */ Arg args[3]; char buf[32]; /* formatting buffer */ /* * If there is only a single segment then no selection is necessary. */ if (maxseg == 1) { if (xmpi_db_parse_segment(0)) { xmpi_db_free(); xmpi_ctl_resetinfo(); } else { xmpi_db_view(); } xmpi_unbusy(); return; } /* * Pop up a dialog to choose a segment number. The OK callback will * parse and view the selected segment. */ sprintf(buf, "Enter segment to display (0-%d)", maxseg - 1); str1 = XmStringCreateSimple(buf); str2 = XmStringCreateSimple((char*) "0"); XtSetArg(args[0], XmNselectionLabelString, str1); XtSetArg(args[1], XmNautoUnmanage, False); XtSetArg(args[2], XmNtextString, str2); dialog_w = XmCreatePromptDialog(xmpi_shell, (char*) "prompt_pop", args, 3); XmStringFree(str1); XmStringFree(str2); XtAddCallback(dialog_w, XmNokCallback, (XtCallbackProc) selseg_cb, NULL); XtAddCallback(dialog_w, XmNcancelCallback, (XtCallbackProc) selcancel_cb, NULL); XtSetSensitive(XmSelectionBoxGetChild(dialog_w, XmDIALOG_HELP_BUTTON), False); XtManageChild(dialog_w); XtPopup(XtParent(dialog_w), XtGrabNone); } /* * selseg_cb * * Function: - segment selection callback, parses and views * the selected segment * Accepts: - callback parms */ static void selseg_cb(Widget w, XtPointer, XmSelectionBoxCallbackStruct *cbs) { char *s; int segment; /* segment number */ XmStringGetLtoR(cbs->value, XmSTRING_DEFAULT_CHARSET, &s); segment = (s && *s) ? stoi((unsigned char *)s) : 0; XtFree(s); XtDestroyWidget(w); if (xmpi_db_parse_segment(segment)) { xmpi_db_free(); xmpi_ctl_resetinfo(); } else { xmpi_db_view(); } xmpi_unbusy(); } /* * selcancel_cb * * Function: - segment selection cancel callback * Accepts: - callback parms */ static void selcancel_cb(Widget w, XtPointer, XmSelectionBoxCallbackStruct *) { xmpi_ctl_resetinfo(); XtDestroyWidget(w); } xmpi-2.2.3b8/src/xmpi/xmpi_view.cc0000664000076500007650000005567507725267006012541 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_view.cc,v 1.6 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - XMPI main view */ #include #include #include #include #include #include #include #include #include "lam.h" #include "xmpi.h" #include "xmpi_view.h" #include "xpm.h" #include "xmpi_focus.h" #include "xmpi_trace.h" #include "xmpi_misc.h" #include "xmpi_trace.h" #include "xmpi_dbase.h" #include "xmpi_matrix.h" extern "C" { #include "Pixmaps/lamlogo.xpm" #include "Pixmaps/lam-logo.xpm" #include "Bitmaps/light.xbm" #include "Bitmaps/red.xbm" #include "Bitmaps/yellow.xbm" #include "Bitmaps/green.xbm" #include "Bitmaps/mesg.xbm" } /* * private functions */ static void gcinit(); static void draw_cb(Widget, XtPointer, XmDrawingAreaCallbackStruct*); static void placeprocs(int, struct _gps*); static void plotproc(int, int, int); static void plotprocinfo(int); static void drawclear(); static void setlogo(); static int xy2rank(int, int); /* * local macros and defines */ #define DRAWWIDTH(x) ((int) ((2 * XMPI_VWXMARGIN) + \ ((3 * (x) + 1) * XMPI_VWRADIUS / 2))) #define DRAWHEIGHT(y) ((int) ((2 * XMPI_VWYMARGIN) + \ ((2 * (y) + 1) * ((SQRT3 * XMPI_VWRADIUS / 2) + 0.5)))) /* * global variables */ int fl_dbase = 0; /* driven by dbase flag */ /* * external variables */ extern int xmpi_app_nprocs; /* number of procs in appl. */ extern struct _gps *xmpi_app_procs; /* appl. GPS array */ /* * local variables */ static int vw_nprocs = 0; /* # of processes */ static struct xmproc *vw_procs = 0; /* array of processes */ static int vw_nxprocs; /* # procs horizontally */ static int vw_nyprocs; /* # procs vertically */ static int drawwidth; /* drawing area width */ static int drawheight; /* drawing area height */ static int fl_replotcomm = 0; /* comm. clear/replot flag */ static int logowidth; /* logo pixmap width */ static int logoheight; /* logo pixmap height */ static char **vendor_xpm; /* vendor logo XPM format */ static int vendorwidth; /* vendor pixmap width */ static int vendorheight; /* vendor pixmap height */ static char fmtbuf[40]; /* formatting buffer */ static unsigned int depth; /* screen depth */ static Widget draw_w; /* drawing area widget */ static Display *disp; /* drawing area display */ static Drawable root; /* root window */ static GC fgpen; /* foreground pen */ static GC bgpen; /* background pen */ static GC whitepen; /* white pen */ static GC boldpen; /* bold pen */ static GC lcompen; /* communicator pen (local) */ static GC rcompen; /* communicator pen (remote) */ static Pixmap pixmap; /* copy of drawing area */ static Pixmap blkpix = XmUNSPECIFIED_PIXMAP; static Pixmap syspix = XmUNSPECIFIED_PIXMAP; static Pixmap runpix = XmUNSPECIFIED_PIXMAP; static Pixmap mesgpix = XmUNSPECIFIED_PIXMAP; static Pixmap logopix = XmUNSPECIFIED_PIXMAP; static Pixmap vendorpix = XmUNSPECIFIED_PIXMAP; /* * xmpi_vw_create * * Function: - create process viewing subwindow * Accepts: - parent widget * Returns: - created widget */ Widget xmpi_vw_create(Widget parent_w) { Widget view_w; /* subwindow widget */ Widget scroll_w; /* scrolled window widget */ view_w = XtVaCreateWidget("view_mgr", xmFormWidgetClass, parent_w, NULL); /* * Build the scrolled window. */ vw_nxprocs = XMPI_VWXNPROCS; vw_nyprocs = XMPI_VWYNPROCS; drawwidth = DRAWWIDTH(vw_nxprocs); drawheight = DRAWHEIGHT(vw_nyprocs); scroll_w = XtVaCreateManagedWidget("view_scrwin", xmScrolledWindowWidgetClass, view_w, XmNwidth, drawwidth + XMPI_VWXWIDTH, XmNheight, drawheight + XMPI_VWXHEIGHT, XmNscrollingPolicy, XmAUTOMATIC, XmNspacing, 0, XmNtraversalOn, False, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); xmpi_setminmax(DRAWWIDTH(1), DRAWHEIGHT(1), drawwidth, drawheight); /* * Build the drawing area. */ draw_w = XtVaCreateManagedWidget("view_draw", xmDrawingAreaWidgetClass, scroll_w, XmNwidth, drawwidth, XmNheight, drawheight, NULL); XtAddCallback(draw_w, XmNinputCallback, (XtCallbackProc) draw_cb, NULL); XtAddCallback(draw_w, XmNexposeCallback, (XtCallbackProc) draw_cb, NULL); XtManageChild(draw_w); XtManageChild(scroll_w); XtManageChild(view_w); /* * Create the graphic contexts. */ gcinit(); /* * Create the LAM logo and the vendor logo. * White out the background just for the LAM logo. It's good to be the * king. :-) */ xpm_build(draw_w, NDlamlogo, (Pixel) 1, &logopix, &logowidth, &logoheight); if ((vendor_xpm = xmpi_sys_logo())) { xpm_build(draw_w, (const char**) vendor_xpm, (Pixel) 1, &vendorpix, &vendorwidth, &vendorheight); } setlogo(); if (logopix != XmUNSPECIFIED_PIXMAP) { xmpi_seticon(logopix); } return (view_w); } /* * xmpi_vw_clear * * Function: - clean up the view and focus windows */ void xmpi_vw_clear() { int i; struct xmproc *p; /* * Destroy focus windows and message lists. */ xmpi_fo_destroy_all(); for (i = 0, p = vw_procs; i < vw_nprocs; ++i, ++p) { if (p->xmp_msgs) { al_free(p->xmp_msgs); } } /* * Reset the view. */ drawclear(); setlogo(); XCopyArea(disp, pixmap, XtWindow(draw_w), fgpen, 0, 0, drawwidth, drawheight, 0, 0); fl_replotcomm = 0; vw_nprocs = 0; if (vw_procs) { free((char *) vw_procs); vw_procs = 0; } } /* * gcinit * * Function: - create graphic contexts */ static void gcinit() { Pixel fg, bg; /* fore/background colours */ GC pen; /* temporary pen */ XGCValues gcval; /* graphic context info */ XColor col_def; /* colour definition */ XColor dev_null; /* unused functionality */ Pixmap blkbm; /* blocked process bitmap */ Pixmap sysbm; /* system overhead bitmap */ Pixmap runbm; /* running process bitmap */ disp = XtDisplay(draw_w); root = RootWindowOfScreen(XtScreen(draw_w)); depth = DefaultDepthOfScreen(XtScreen(draw_w)); XtVaGetValues(draw_w, XmNforeground, &fg, XmNbackground, &bg, NULL); /* * Create the foreground, background, and bold pens. */ gcval.line_width = XMPI_VWLNWIDTH; gcval.foreground = bg; gcval.background = fg; gcval.font = app_res.ap_msgfont->fid; fgpen = XCreateGC(disp, root, GCFont | GCLineWidth | GCForeground | GCBackground, &gcval); gcval.foreground = fg; bgpen = XCreateGC(disp, root, GCForeground, &gcval); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), XMPI_LBLCOLOUR, &col_def, &dev_null); gcval.foreground = col_def.pixel; gcval.font = app_res.ap_rankfont->fid; boldpen = XCreateGC(disp, root, GCFont | GCForeground | GCBackground, &gcval); /* * Create a white pen so that we can display the white-backed LAM logo nicely */ gcval.foreground = ~0; whitepen = XCreateGC(disp, root, GCForeground, &gcval); /* * Create the communicator local group pen. */ gcval.foreground = app_res.ap_lcomcol; lcompen = XCreateGC(disp, root, GCFont | GCLineWidth | GCForeground | GCBackground, &gcval); /* * Create the communicator remote group pen. */ gcval.foreground = app_res.ap_rcomcol; rcompen = XCreateGC(disp, root, GCFont | GCLineWidth | GCForeground | GCBackground, &gcval); /* * Create the blocked process (red) traffic light pixmap. */ blkbm = XCreateBitmapFromData(disp, root, (const char *) red_bits, red_width, red_height); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), XMPI_BLKCOLOUR, &col_def, &dev_null); gcval.foreground = col_def.pixel; gcval.background = fg; gcval.clip_mask = blkbm; pen = XCreateGC(disp, root, GCForeground | GCBackground | GCClipMask, &gcval); blkpix = XCreatePixmapFromBitmapData(disp, root, (char *) light_bits, light_width, light_height, bg, fg, depth); XCopyPlane(disp, blkbm, blkpix, pen, 0, 0, red_width, red_height, 0, 0, (unsigned long) 1); XFreePixmap(disp, blkbm); /* * Create the system overhead (yellow) traffic light pixmap. */ sysbm = XCreateBitmapFromData(disp, root, (const char *) yellow_bits, yellow_width, yellow_height); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), XMPI_SYSCOLOUR, &col_def, &dev_null); gcval.foreground = col_def.pixel; gcval.clip_mask = sysbm; XChangeGC(disp, pen, GCForeground | GCClipMask, &gcval); syspix = XCreatePixmapFromBitmapData(disp, root, (char *) light_bits, light_width, light_height, bg, fg, depth); XCopyPlane(disp, sysbm, syspix, pen, 0, 0, yellow_width, yellow_height, 0, 0, (unsigned long) 1); XFreePixmap(disp, sysbm); /* * Create the running process (yellow) traffic light pixmap. */ runbm = XCreateBitmapFromData(disp, root, (const char *) green_bits, green_width, green_height); XAllocNamedColor(disp, DefaultColormapOfScreen(XtScreen(draw_w)), XMPI_RUNCOLOUR, &col_def, &dev_null); gcval.foreground = col_def.pixel; gcval.clip_mask = runbm; XChangeGC(disp, pen, GCForeground | GCClipMask, &gcval); runpix = XCreatePixmapFromBitmapData(disp, root, (char *) light_bits, light_width, light_height, bg, fg, depth); XCopyPlane(disp, runbm, runpix, pen, 0, 0, green_width, green_height, 0, 0, (unsigned long) 1); XFreePixmap(disp, runbm); XFreeGC(disp, pen); /* * Create the message pixmap. */ mesgpix = XCreatePixmapFromBitmapData(disp, root, (char *) mesg_bits, mesg_width, mesg_height, bg, fg, depth); /* * Create the drawing pixmap. */ pixmap = XCreatePixmap(disp, root, drawwidth, drawheight, depth); } /* * draw_cb * * Function: - callback for drawing area input/expose events * Accepts: - widget * - client data * - ptr callback struct */ static void draw_cb(Widget w, XtPointer, XmDrawingAreaCallbackStruct *p_callback) { XEvent *event; /* activating event */ int rank; /* process rank */ struct xmproc *proc; /* ptr process entry */ event = p_callback->event; /* * Toggle the process focus window. */ if ((p_callback->reason == XmCR_INPUT) && (event->xany.type == ButtonRelease)) { rank = xy2rank(event->xbutton.x, event->xbutton.y); if (rank >= 0) { proc = vw_procs + rank; xmpi_fo_toggle(w, rank, proc); xmpi_fo_update(rank); } } /* * Handle the expose event. */ else if (p_callback->reason == XmCR_EXPOSE) { XCopyArea(event->xany.display, pixmap, event->xany.window, fgpen, 0, 0, drawwidth, drawheight, 0, 0); } } /* * xmpi_vw_update * * Function: - update the process view * Accepts: - update focus flag */ void xmpi_vw_update(int fl_focus) { int i; /* favourite index */ int changed = 1; /* process info changed? */ if (vw_nprocs == 0) return; /* * Get process status information and plot it. */ if (fl_dbase) { changed = xmpi_db_getstat(vw_nprocs, vw_procs); } else { xmpi_sys_snapshot(xmpi_app_procs, vw_nprocs, vw_procs); } if ((!xmpi_tr_vcron()) || changed) { drawclear(); fl_replotcomm = 0; for (i = 0; i < vw_nprocs; ++i) { plotproc(i, -1, 0); } for (i = 0; i < vw_nprocs; ++i) { plotprocinfo(i); } XCopyArea(disp, pixmap, XtWindow(draw_w), fgpen, 0, 0, drawwidth, drawheight, 0, 0); /* * Update all focus windows if needed. */ if (fl_focus) { for (i = 0; i < vw_nprocs; ++i) { xmpi_fo_update(i); } } /* * Update matrix window. */ xmpi_mat_update(vw_procs); } } /* * xmpi_vw_dbsetmode * * Function: - set the database control mode * Accepts: - dbase flag */ void xmpi_vw_dbsetmode(int dbflag) { fl_dbase = dbflag; } /* * xmpi_vw_dbmode * * Function: - query the database control mode * Returns: - database control modedbase */ int xmpi_vw_dbmode() { return (fl_dbase); } /* * xmpi_vw_getnprocs * * Function: - get number of processes * Returns: - number of processes in view window */ int xmpi_vw_getnprocs() { if (fl_dbase) return (xmpi_db_getnprocs()); else return (vw_nprocs); } /* * xmpi_vw_getprocs * * Function: - gets process status information * Returns: - process status array */ struct xmproc * xmpi_vw_getprocs() { return (vw_procs); } /* * xmpi_vw_init * * Function: - initialize the view window */ void xmpi_vw_init() { int nprocs; /* # processes */ struct _gps *procs; /* gps array */ int i; /* favourite index */ /* * Clean out old view data. */ xmpi_vw_clear(); /* * Load process information. */ if (fl_dbase) { nprocs = xmpi_db_getnprocs(); procs = (struct _gps *) malloc(nprocs * sizeof(struct _gps)); if (procs == 0) xmpi_fail((char*) "xmpi (malloc)"); for (i = 0; i < nprocs; ++i) { procs[i].gps_grank = i; } } else { nprocs = xmpi_app_nprocs; procs = xmpi_app_procs; } /* * Fill the viewing subwindow. */ placeprocs(nprocs, procs); xmpi_vw_update(0); /* * When not in database mode we keep the GPS array in case the user * later decides to dump traces. */ if (fl_dbase) free((char *) procs); } /* * xmpi_vw_commplot * * Function: - plot a communicator group * Accepts: - array of GPS * - # processes in local group * - # processes in remote group * - local/remote is main highlight * */ void xmpi_vw_commplot(struct _gps *group, int nlocal, int nremote, int islocal) { int i; /* favourite index */ struct _gps *p; /* favourite pointer */ /* * If a communicator is already set, turn off processes. */ if (fl_replotcomm) { for (i = 0; i < vw_nprocs; ++i) { plotproc(i, -1, 0); } } /* * Loop plotting the communicator's "remote" then "local" group processes. */ if (islocal) { for (i = 0, p = group + nlocal; i < nremote; ++i, ++p) plotproc(p->gps_grank, i, 0); for (i = 0, p = group; i < nlocal; ++i, ++p) plotproc(p->gps_grank, i, 1); } else { for (i = 0, p = group; i < nlocal; ++i, ++p) plotproc(p->gps_grank, i, 0); for (i = 0, p = group + nlocal; i < nremote; ++i, ++p) plotproc(p->gps_grank, i, 1); } XCopyArea(disp, pixmap, XtWindow(draw_w), fgpen, 0, 0, drawwidth, drawheight, 0, 0); fl_replotcomm = 1; } /* * placeprocs * * Function: - place the processes in the view * - create the processes data structure * Accepts: - # of processes * - array of process GPS */ static void placeprocs(int nprocs, struct _gps *pgps) { int x, y; /* pixel coordinates */ int startx; /* starting x ordinate */ int side; /* sqrt(3)/2 * radius */ int delta; /* distance between procs */ int i, j; Dimension swidth; /* scrolled window width */ Dimension sheight; /* scrolled window height */ struct xmproc *p; /* * Allocate the process data structure. */ if (vw_procs) free((char *) vw_procs); vw_procs = (struct xmproc *) malloc((unsigned) nprocs * sizeof(struct xmproc)); if (vw_procs == 0) xmpi_fail((char*) "xmpi (malloc)"); vw_nprocs = nprocs; /* * Layout the processes in a "squarish" area. */ for (i = 0, j = 0; j < vw_nprocs; ++i) { j += i + i + 1; } vw_nxprocs = i; vw_nyprocs = (vw_nprocs + vw_nxprocs - 1) / vw_nxprocs; /* * Compute size of new drawing area. */ side = (int) ((SQRT3 * XMPI_VWRADIUS / 2) + 0.5); drawwidth = DRAWWIDTH((vw_nxprocs < XMPI_VWXNPROCS) ? XMPI_VWXNPROCS : vw_nxprocs); drawheight = DRAWHEIGHT((vw_nyprocs < XMPI_VWYNPROCS) ? XMPI_VWYNPROCS : vw_nyprocs); /* * Shrink the scrolled window if needed. * Set the min/max top window sizes. */ XtVaGetValues(XtParent(draw_w), XmNwidth, &swidth, XmNheight, &sheight, NULL); if ((swidth > (drawwidth + XMPI_VWXWIDTH)) || (sheight > (drawheight + XMPI_VWXHEIGHT))) { xmpi_setsize(drawwidth, drawheight); } xmpi_setminmax(DRAWWIDTH(1), DRAWHEIGHT(1), drawwidth, drawheight); /* * Resize the drawing area and its pixmap. */ XtVaSetValues(draw_w, XmNwidth, drawwidth, XmNheight, drawheight, NULL); XFreePixmap(disp, pixmap); pixmap = XCreatePixmap(disp, root, drawwidth, drawheight, depth); /* * Reset the focus position. */ xmpi_fo_reset(); /* * Fill the processes data structure. */ startx = XMPI_VWRADIUS + XMPI_VWXMARGIN; if (vw_nxprocs < XMPI_VWXNPROCS) { startx += (drawwidth - DRAWWIDTH(vw_nxprocs)) / 2; } x = startx; y = side + XMPI_VWYMARGIN; if (vw_nyprocs < XMPI_VWYNPROCS) { y += (drawheight - DRAWHEIGHT(vw_nyprocs)) / 2; } delta = 3 * XMPI_VWRADIUS / 2; for (i = j = 0, p = vw_procs; i < vw_nprocs; ++i, ++p, ++pgps) { p->xmp_cx = x; p->xmp_cy = y + ((j & 1) ? side : 0); p->xmp_state = XMPI_SUNDEF; p->xmp_nmsg = 0; p->xmp_more = 0; p->xmp_msgs = 0; p->xmp_curmsg = 0; p->xmp_prog[0] = '\0'; if (++j == vw_nxprocs) { x = startx; y += side + side; j = 0; } else { x += delta; } } } /* * plotproc * * Function: - plot the process hexagon * Accepts: - process global rank * - process local rank (or -1) * - flag, 1=process in local group, 0=remote */ static void plotproc(int grank, int lrank, int local) { int x, y; /* hexagon center */ int side; /* hexagon size */ int strwidth; /* string width */ int strwidth2 = 0; /* second string width */ int ascent, descent; /* font vert. sizes */ XPoint points[7]; /* hexagon points */ char buf[16]; /* temporary buffer */ /* * Draw the process hexagon. */ x = vw_procs[grank].xmp_cx; y = vw_procs[grank].xmp_cy; side = (int) ((SQRT3 * XMPI_VWRADIUS / 2) + 0.5); points[0].x = x - XMPI_VWRADIUS; points[0].y = y; points[1].x = x - (XMPI_VWRADIUS / 2); points[1].y = y - side; points[2].x = x + (XMPI_VWRADIUS / 2); points[2].y = y - side; points[3].x = x + XMPI_VWRADIUS; points[3].y = y; points[4].x = x + (XMPI_VWRADIUS / 2); points[4].y = y + side; points[5].x = x - (XMPI_VWRADIUS / 2); points[5].y = y + side; points[6].x = x - XMPI_VWRADIUS; points[6].y = y; XDrawLines(disp, pixmap, (lrank < 0) ? fgpen : (local == 1) ? lcompen : rcompen, points, 7, CoordModeOrigin); /* * Compute the width/height of the rank strings. */ sprintf(fmtbuf, "%d", grank); strwidth = XTextWidth(app_res.ap_rankfont, fmtbuf, strlen(fmtbuf)); if (lrank >= 0) { sprintf(buf, "/%d", lrank); strwidth2 = XTextWidth(app_res.ap_rankfont, buf, strlen(buf)); } ascent = app_res.ap_rankfont->ascent; descent = app_res.ap_rankfont->descent; /* * Clear the rank strings region. */ y += side - 6 - descent; XFillRectangle(disp, pixmap, bgpen, x - (XMPI_VWRADIUS / 2), y - ascent, XMPI_VWRADIUS, ascent + descent); /* * Draw the rank strings. */ XDrawString(disp, pixmap, boldpen, x - ((strwidth + strwidth2) / 2), y, fmtbuf, strlen(fmtbuf)); if (lrank >= 0) { XDrawString(disp, pixmap, (local == 1) ? lcompen : rcompen, x + ((strwidth - strwidth2) / 2), y, buf, strlen(buf)); } } /* * plotprocinfo * * Function: - plot process status information * Accepts: - process rank */ static void plotprocinfo(int rank) { int x, y; /* hexagon center */ int nmsg; /* # buffered messages */ int xnum, ynum; /* number coordinates */ int strwidth; /* string width */ Pixmap pix; /* light pixmap */ struct xmproc *p; /* favourite pointer */ p = vw_procs + rank; x = p->xmp_cx; y = p->xmp_cy; /* * Plot the traffic light. */ if (p->xmp_state == XMPI_SUNDEF) return; switch (p->xmp_state) { case XMPI_SRUN: pix = runpix; break; case XMPI_SBLOCK: pix = blkpix; break; case XMPI_SSYSTEM: pix = syspix; break; } XCopyArea(disp, pix, pixmap, fgpen, 0, 0, light_width, light_height, x + XMPI_VWXLIGHT, y + XMPI_VWYLIGHT); /* * Plot the message icon if there are messages. */ if (p->xmp_msgs == 0) return; if (((nmsg = p->xmp_nmsg) <= 0) && (p->xmp_more == 0)) return; XCopyArea(disp, mesgpix, pixmap, fgpen, 0, 0, mesg_width, mesg_height, x + XMPI_VWXMESG, y + XMPI_VWYMESG); /* * Write the number of messages. */ if (nmsg > 99) { strcpy(fmtbuf, "99+"); } else if (nmsg > 0) { sprintf(fmtbuf, "%d", nmsg); if (p->xmp_more) strcat(fmtbuf, "+"); } else { strcpy(fmtbuf, "?"); } xnum = x + XMPI_VWXNMSG; ynum = y + XMPI_VWYNMSG; strwidth = XTextWidth(app_res.ap_msgfont, fmtbuf, strlen(fmtbuf)); xnum -= strwidth / 2; ynum += app_res.ap_msgfont->ascent / 2; XDrawString(disp, pixmap, fgpen, xnum, ynum, fmtbuf, strlen(fmtbuf)); } /* * drawclear * * Function: - clear the drawing area */ static void drawclear() { XFillRectangle(disp, pixmap, bgpen, 0, 0, drawwidth, drawheight); } /* * setlogo * * Function: - copy logo(s) to drawing area */ static void setlogo() { XFillRectangle(disp, pixmap, whitepen, 0, 0, drawwidth, drawheight); if (logopix != XmUNSPECIFIED_PIXMAP) { XCopyArea(disp, logopix, pixmap, fgpen, 0, 0, logowidth, logoheight, (drawwidth - logowidth) / 2, (drawheight - logoheight) / 2); } if (vendorpix != XmUNSPECIFIED_PIXMAP) { XCopyArea(disp, vendorpix, pixmap, fgpen, 0, 0, vendorwidth, vendorheight, 0, drawheight - vendorheight); } } /* * xy2rank * * Function: - map mouse coordinates to process rank * Accepts: - mouse coordinates * Returns: - process rank or LAMERROR */ static int xy2rank(int x, int y) { int i; /* favourite index */ int r2; /* radius squared */ int dx, dy; /* x & y deltas */ int dist; /* distance to hex. center */ int mindist; /* min. distance */ int minrank; /* rank of min. distance */ struct xmproc *p; /* favourite pointer */ /* * Loop finding the closest hexagon center. * Reject all distances greater than the radius. * Reject non-unique minimal distances. */ r2 = XMPI_VWRADIUS * XMPI_VWRADIUS; minrank = LAMERROR; mindist = -1; for (i = 0, p = vw_procs; i < vw_nprocs; ++i, ++p) { dx = x - p->xmp_cx; dy = y - p->xmp_cy; dist = (dx * dx) + (dy * dy); if (dist <= r2) { if ((dist < mindist) || (mindist < 0)) { mindist = dist; minrank = i; } else if (dist == mindist) { minrank = LAMERROR; } } } return (minrank); } xmpi-2.2.3b8/src/xmpi/xmpi_vendor.cc0000664000076500007650000003356207725267006013053 // // Copyright (c) 2001-2003 The Trustees of Indiana University. // All rights reserved. // Copyright (c) 1998-2001 University of Notre Dame. // All rights reserved. // Copyright (c) 1994-1998 The Ohio State University. // All rights reserved. // // This file is part of the XMPI software package. For license // information, see the LICENSE file in the top level directory of the // XMPI source distribution. // // $HEADER$ // // $Id: xmpi_vendor.cc,v 1.4 2003/09/03 04:28:54 jsquyres Exp $ // // xmpi_vendor // // function: builds vendor pane // #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include // for xmpi_run_update() #include extern xmpi_menu_item *run_options; extern int run_options_length; extern Widget *run_options_widgets; extern xmpi_menu_item *schema_options; extern int schema_options_length; extern Widget *schema_options_widgets; extern xmpi_node *nodes; extern int nodes_length; // Private functions... // callback lists static void vendor_schema_toggle_change_cb(Widget, XtPointer, XtPointer); static void vendor_schema_textbox_change_cb(Widget, XtPointer, XtPointer); static void vendor_run_toggle_change_cb(Widget, XtPointer, XtPointer); static void vendor_run_textbox_change_cb(Widget, XtPointer, XtPointer); static int draw_options_box(Widget, xmpi_menu_item*, int, Widget**, XtCallbackProc, XtCallbackProc); void xmpi_vendor_build(Widget parent_w) { Widget mgr_w; // the vendor pane Widget framed_w; // the lower portion, with the frame Widget schema_mgr_w; // the grid for the schema stuff Widget run_mgr_w; // the grid for the run stuff XmString xstr; // label string. Again, never need referenced. mgr_w = XtVaCreateWidget("vendor_mgr", xmPanedWindowWidgetClass, parent_w, XmNsashWidth, 1, XmNsashHeight, 1, XmNseparatorOn, False, XmNleftAttachment, XmATTACH_POSITION, XmNleftPosition, 2, XmNleftOffset, 5, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, 3, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); // create the top pane for the runtime options if (run_options_length != 0) { xstr = XmStringCreateSimple((char*) "Runtime Options"); XtVaCreateManagedWidget("banner", xmLabelWidgetClass, mgr_w, XmNlabelString, xstr, NULL); XmStringFree(xstr); framed_w = XtVaCreateManagedWidget("vendor_frame", xmFrameWidgetClass, mgr_w, XmNmarginHeight, 3, XmNmarginWidth, 3, XmNshadowThickness, 2, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); run_mgr_w = XtVaCreateManagedWidget("run_mgr", xmRowColumnWidgetClass, framed_w, XmNisAligned, True, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); if (draw_options_box(run_mgr_w, run_options, run_options_length, &run_options_widgets, vendor_run_toggle_change_cb, vendor_run_textbox_change_cb) != 0) { char error[] = "Runtime options window could not be drawn"; xmpi_fail(error); } } // create the top pane for the schema options if (schema_options_length != 0) { xstr = XmStringCreateSimple((char*) "Schema Options"); XtVaCreateManagedWidget("banner", xmLabelWidgetClass, mgr_w, XmNlabelString, xstr, NULL); XmStringFree(xstr); framed_w = XtVaCreateManagedWidget("vendor_frame", xmFrameWidgetClass, mgr_w, XmNmarginHeight, 3, XmNmarginWidth, 3, XmNshadowThickness, 2, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); schema_mgr_w = XtVaCreateManagedWidget("schema_mgr", xmRowColumnWidgetClass, framed_w, XmNisAligned, True, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); if (draw_options_box(schema_mgr_w, schema_options, schema_options_length, &schema_options_widgets, vendor_schema_toggle_change_cb, vendor_schema_textbox_change_cb) != 0) { char error[] = "Schema options window could not be drawn"; xmpi_fail(error); } } xmpi_nosash(mgr_w); XtManageChild(mgr_w); } void vendor_schema_toggle_change_cb(Widget, XtPointer client_data, XtPointer call_data) { int which = (int) client_data; XmToggleButtonCallbackStruct *state = (XmToggleButtonCallbackStruct *) call_data; schema_options[which].current_val.xmpi_toggle = state->set; xmpi_run_update(); } void vendor_schema_textbox_change_cb(Widget ch_widget, XtPointer client_data, XtPointer) { int which = (int) client_data; if (! (schema_options[which].current_val.xmpi_text == NULL)) free(schema_options[which].current_val.xmpi_text); char* temp_string; temp_string = XmTextFieldGetString(ch_widget); if (strlen(temp_string) != 0) schema_options[which].current_val.xmpi_text = temp_string; else { schema_options[which].current_val.xmpi_text = NULL; free(temp_string); } xmpi_run_update(); } void vendor_run_toggle_change_cb(Widget, XtPointer client_data, XtPointer call_data) { int which = (int) client_data; XmToggleButtonCallbackStruct *state = (XmToggleButtonCallbackStruct *) call_data; run_options[which].current_val.xmpi_toggle = state->set; xmpi_run_update(); } void vendor_run_textbox_change_cb(Widget ch_widget, XtPointer client_data, XtPointer) { int which = (int) client_data; if (! (run_options[which].current_val.xmpi_text == NULL)) free(run_options[which].current_val.xmpi_text); char* temp_string; temp_string = XmTextFieldGetString(ch_widget); if (strlen(temp_string) != 0) run_options[which].current_val.xmpi_text = temp_string; else { run_options[which].current_val.xmpi_text = NULL; free(temp_string); } xmpi_run_update(); } int draw_options_box(Widget mgr_w, xmpi_menu_item *options, int options_length, Widget **options_widgets, XtCallbackProc toggle, XtCallbackProc text) { // stuff to deal with creating radio boxes Widget tmp_radio_w; int radio_id; Widget tmp_w; // lbl widget. don't need to keep this around Widget h_pane; // a widget to build txt boxes. dont need later XmString xstr; // label string. Again, never need referenced. // need to allocate space for widget array if (*options_widgets == 0) { // have not allocated yet *options_widgets = new Widget[options_length]; } else { delete *options_widgets; *options_widgets = new Widget[options_length]; } // at this point, go through the vendor list and // build all the requested widgets. for (int i = 0 ; i < options_length ; ++i) { switch (options[i].xmpi_type) { case XMPI_MENU_LABEL: h_pane = XtVaCreateManagedWidget("h_pane", xmFormWidgetClass, mgr_w, XmNorientation, XmHORIZONTAL, NULL); xstr = XmStringCreateSimple(options[i].xmpi_label); (*options_widgets)[i] = XtVaCreateManagedWidget("label", xmLabelGadgetClass, h_pane, XmNlabelString, xstr, NULL); XmStringFree(xstr); break; case XMPI_MENU_TEXTBOX: // set the current to match the default value. if (options[i].default_val.xmpi_text != NULL) { options[i].current_val.xmpi_text = (char*) realloc( options[i].current_val.xmpi_text, sizeof(char) * (strlen(options[i].default_val.xmpi_text) + 1)); strcpy(options[i].current_val.xmpi_text, options[i].default_val.xmpi_text); } else { options[i].current_val.xmpi_text = NULL; } h_pane = XtVaCreateManagedWidget("h_pane", xmFormWidgetClass, mgr_w, XmNorientation, XmHORIZONTAL, XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, NULL); tmp_w = XtVaCreateManagedWidget(options[i].xmpi_label, xmLabelGadgetClass, h_pane, XmNalignment, XmALIGNMENT_BEGINNING, XmNleftAttachment, XmATTACH_FORM, NULL); (*options_widgets)[i] = XtVaCreateManagedWidget("text", xmTextFieldWidgetClass, h_pane, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, tmp_w, XmNrightAttachment, XmATTACH_FORM, NULL); XtAddCallback((*options_widgets)[i], XmNvalueChangedCallback, text, (void*) i); if (options[i].current_val.xmpi_text != NULL) XmTextFieldInsert((*options_widgets)[i], 0, options[i].current_val.xmpi_text); break; case XMPI_MENU_TOGGLE: // make sure the current matches the default options[i].current_val.xmpi_toggle = options[i].default_val.xmpi_toggle; xstr = XmStringCreateSimple(options[i].xmpi_label); (*options_widgets)[i]= XtVaCreateManagedWidget("toggle", xmToggleButtonWidgetClass, mgr_w, XmNlabelString, xstr, XmNset,(int) options[i].current_val.xmpi_toggle, NULL); XmStringFree(xstr); XtAddCallback((*options_widgets)[i], XmNvalueChangedCallback, toggle, (void*) i); break; case XMPI_MENU_RADIO: radio_id = options[i].xmpi_radio_id; // create the box to hold radio buttons. this takes // care of the changing which is highlighted for us! tmp_radio_w = XtVaCreateManagedWidget("radio_box", xmRowColumnWidgetClass, mgr_w, XmNisAligned, True, XmNradioBehavior, True, NULL); for (; i < options_length ; ++i) { // make sure we are still on the right radio group and all if ((options[i].xmpi_type == XMPI_MENU_RADIO) && (options[i].xmpi_radio_id == radio_id)) break; // set the current to match what we are about to do options[i].current_val.xmpi_toggle = options[i].default_val.xmpi_toggle; xstr = XmStringCreateSimple(options[i].xmpi_label); (*options_widgets)[i] = XtVaCreateManagedWidget("radio", xmToggleButtonWidgetClass, tmp_radio_w, XmNlabelString, xstr, XmNset, options[i].current_val.xmpi_toggle, NULL); XmStringFree(xstr); XtAddCallback((*options_widgets)[i], XmNvalueChangedCallback, toggle, (void*) i); } --i; // since the for loop is about to increment... break; default: break; } } XtManageChild(mgr_w); return 0; } void xmpi_vendor_update_run() { for (int i = 0 ; i < run_options_length ; ++i) { switch (run_options[i].xmpi_type) { case XMPI_MENU_LABEL: break; case XMPI_MENU_TEXTBOX: if (run_options[i].current_val.xmpi_text != NULL) { XmTextFieldSetString(run_options_widgets[i], run_options[i].current_val.xmpi_text); } else { XmTextFieldSetString(run_options_widgets[i], (char*) ""); } break; case XMPI_MENU_TOGGLE: case XMPI_MENU_RADIO: XtVaSetValues(run_options_widgets[i], XmNset,(int) run_options[i].current_val.xmpi_toggle, NULL); break; default: ; } } } void xmpi_vendor_update_schema() { for (int i = 0 ; i < schema_options_length ; ++i) { switch (schema_options[i].xmpi_type) { case XMPI_MENU_LABEL: break; case XMPI_MENU_TEXTBOX: if (schema_options[i].current_val.xmpi_text != NULL) { XmTextFieldSetString(schema_options_widgets[i], schema_options[i].current_val.xmpi_text); } else { XmTextFieldSetString(schema_options_widgets[i], (char*) ""); } break; case XMPI_MENU_TOGGLE: case XMPI_MENU_RADIO: XtVaSetValues(schema_options_widgets[i], XmNset,(int) schema_options[i].current_val.xmpi_toggle, NULL); break; default: ; } } } void xmpi_vendor_update_schema_default() { char *blank = strdup(""); for (int i = 0 ; i < schema_options_length ; ++i) { switch (schema_options[i].xmpi_type) { case XMPI_MENU_LABEL: break; case XMPI_MENU_TEXTBOX: if (schema_options[i].default_val.xmpi_text != NULL) XmTextFieldSetString(schema_options_widgets[i], schema_options[i].default_val.xmpi_text); else XmTextFieldSetString(schema_options_widgets[i], blank); break; case XMPI_MENU_TOGGLE: case XMPI_MENU_RADIO: XtVaSetValues(schema_options_widgets[i], XmNset,(int) schema_options[i].default_val.xmpi_toggle, NULL); break; default: ; } } } void xmpi_vendor_cleanup() { if (run_options_length != 0) { xmpi_vendor_clean_options(run_options, run_options_length, true); free(run_options); run_options_length = 0; } if (schema_options_length != 0) { xmpi_vendor_clean_options(schema_options, schema_options_length, true); free(schema_options); schema_options_length = 0; } if (nodes_length != 0) { for (int i = 0 ; i < nodes_length ; ++i) if (nodes[i].name != NULL) { free(nodes[i].name); } free(nodes); } } void xmpi_vendor_clean_options(xmpi_menu_item *options, int options_length, bool all) { for (int i = 0 ; i < options_length ; ++i) { if (options[i].xmpi_type == XMPI_MENU_TEXTBOX) { if (options[i].current_val.xmpi_text != NULL) { free(options[i].current_val.xmpi_text); options[i].current_val.xmpi_text = NULL; } if (options[i].default_val.xmpi_text != NULL && all) { free(options[i].default_val.xmpi_text); options[i].default_val.xmpi_text = NULL; } } if (options[i].xmpi_label != NULL && all) { free(options[i].xmpi_label); options[i].xmpi_label = NULL; } } } xmpi-2.2.3b8/src/xmpi/xpm.cc0000664000076500007650000003440607725267006011323 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xpm.cc,v 1.7 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - create a pixmap from an XPM pixmap description */ #include #include #include #include #include #include #include #include "lam.h" #include "xpm.h" /* * local functions */ static int parse_xpm_desc(const char*, int*, int*, int*, int*); static int parse_xpm_color(const char*, char*, char*, int); static int createximage(Display*, Visual*, unsigned int, unsigned int, unsigned int, XImage**); static void setimagepixels(XImage*, unsigned int, unsigned int, Pixel*); static void setimagepixels8(XImage*, unsigned int, unsigned int, Pixel*); int color_hash(char*, int); void xpm_build_error(Pixel** pix2col, Pixel** pixels, Pixmap* p, int* wth, int* hgt) { if (*pix2col != 0) { free(*pix2col); *pix2col = 0; } if (*pixels != 0) { free(*pixels); *pixels = 0; } *p = 0; *wth = 0; *hgt = 0; } /* * xpm_build * * Function: - build pixmap for arbitrary visual */ void xpm_build(Widget w, const char **xpm, Pixel bg, Pixmap *p, int *wth, int *hgt) { Pixmap pix; /* final pixmap */ XImage *img; /* constructed image */ XColor col; /* color specification */ GC gc; /* simply for copying */ Pixel *col2pix; /* quick color lookup table */ Pixel *pixels; /* allocated pixels */ int nalloc; /* number of pixels allocated */ int i, j; /* favourite indices */ char *img_pixels; /* XImage pixels */ Pixel *p_img; /* ptr in img_pixels */ char *p_xpm; /* ptr in xpm_pixels */ char pixel_desc[2]; int width; /* pixmap width */ int height; /* pixmap height */ int ncols; /* num. colors in pixmap */ char c[2]; /* character code for color */ char rgb[64]; /* string specifying color value */ int depth; /* depth of display */ Visual *visual; /* visual being used */ Display *display; /* display being used */ Colormap colormap; /* colormap being used */ int char_pixel; /* Argh - It appears that there is some bug in MacOS X such that if * the ammount of stuff placed on the stack is long enough (such as * the two arrays below), calling the function will result in a * segmentation fault. This sucks. */ col2pix = (Pixel*) malloc(sizeof(Pixel) * 65537); if (col2pix == 0) { xpm_build_error(&col2pix, &pixels, p, wth, hgt); return; } pixels = (Pixel*) malloc(sizeof(Pixel) * 65537); if (pixels == 0){ xpm_build_error(&col2pix, &pixels, p, wth, hgt); return; } *p = XmUNSPECIFIED_PIXMAP; display = XtDisplay(w); depth = XDefaultDepth(display, DefaultScreen(display)); visual = DefaultVisual(display, DefaultScreen(display)); colormap = DefaultColormap(display, DefaultScreen(display)); if (parse_xpm_desc(xpm[0], &width, &height, &ncols, &char_pixel)) { xpm_build_error(&col2pix, &pixels, p, wth, hgt); return; } if ((ncols == 0) || (width == 0) || (height == 0) || (char_pixel == 0)) { xpm_build_error(&col2pix, &pixels, p, wth, hgt); return; } /* This will barf badly if char_pixel > 2. So die now. */ if (char_pixel > 2) { xpm_build_error(&col2pix, &pixels, p, wth, hgt); return; } /* * Parse and allocate colors. */ nalloc = 0; for (i = 1; i <= ncols; ++i) { parse_xpm_color(xpm[i], c, rgb, char_pixel); if (strcmp("None", rgb)) { if (XParseColor(display, colormap, rgb, &col) && XAllocColor(display, colormap, &col)) { col2pix[color_hash(c, char_pixel)] = col.pixel; pixels[nalloc++] = col.pixel; } else { /* * Color allocation failed. Free previously obtained colors and exit. */ if (nalloc) { XFreeColors(display, colormap, pixels, nalloc, 0); } xpm_build_error(&col2pix, &pixels, p, wth, hgt); return; } } else { col2pix[color_hash(c, char_pixel)] = bg; } } img_pixels = (char*) malloc((unsigned) (width * height * sizeof(Pixel))); if (img_pixels == 0) { xpm_build_error(&col2pix, &pixels, p, wth, hgt); return; } p_img = (Pixel *) img_pixels; /* * Parse the image pixel data. */ for (i = ncols + 1; i <= height + ncols; ++i) { p_xpm = (char*) xpm[i]; for (j = 0; j < width; ++j) { strncpy(pixel_desc, p_xpm, char_pixel); *p_img++ = col2pix[color_hash(pixel_desc, char_pixel)]; p_xpm = p_xpm + char_pixel; } } /* * Create an image from the pixel data and then copy it to a pixmap. */ createximage(display, visual, depth, width, height, &img); if (depth == 8) setimagepixels8(img, width, height, (Pixel *) img_pixels); else setimagepixels(img, width, height, (Pixel *) img_pixels); pix = XCreatePixmap(display, RootWindowOfScreen(XtScreen(w)), width, height, depth); gc = XCreateGC(display, RootWindowOfScreen(XtScreen(w)), 0, (Pixmap) 0); XSetFunction(display, gc, GXcopy); XPutImage(display, pix, gc, img, 0, 0, 0, 0, width, height); XFreeGC(display, gc); free(img_pixels); XDestroyImage(img); *wth = width; *hgt = height; *p = pix; free(col2pix); free(pixels); } int color_hash(char *color, int char_pixel) { int big_number; int output; if (char_pixel == 1) { return ((int) color[0]); } else { big_number = ((int) color[1]) * 256; output = (((int) color[0]) + big_number); } return output; } static int parse_xpm_desc(const char *desc, int *width, int *height, int *ncols, int *char_pixel) { char *tok; char buf[80]; strcpy(buf, desc); tok = strtok(buf, " \t"); *width = (int) stoi((unsigned char *) tok); tok = strtok(0, " \t"); *height = (int) stoi((unsigned char *) tok); tok = strtok(0, " \t"); *ncols = (int) stoi((unsigned char *) tok); tok = strtok(0, " \t"); *char_pixel = (int) stoi((unsigned char *) tok); return (0); } static int parse_xpm_color(const char *desc, char *c, char *rgb, int char_pixel) { char *tok; char buf[80]; strcpy(buf, desc + char_pixel); strncpy(c, desc, char_pixel); tok = strtok(buf, " \t"); while (tok && *tok != 'c') { tok = strtok(0, " \t"); tok = strtok(0, " \t"); } tok = strtok(0, " \t"); if (!tok) return (LAMERROR); strcpy(rgb, tok); return (0); } /* * All the code following this comment is a modified version of code * from the XPM library. The copyright below applies to this code only. * * * Copyright (C) 1989-95 GROUPE BULL * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * GROUPE BULL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Except as contained in this notice, the name of GROUPE BULL shall not be * used in advertising or otherwise to promote the sale, use or other dealings * in this Software without prior written authorization from GROUPE BULL. */ #define zindex(x, y, img) ((y) * img->bytes_per_line) + \ (((x) * img->bits_per_pixel) >> 3) #define zindex8(x, y, img) ((y) * img->bytes_per_line) + (x) static int createximage(Display *display, Visual *visual, unsigned int depth, unsigned int width, unsigned int height, XImage **pimg) { int bitmap_pad; if (depth > 16) bitmap_pad = 32; else if (depth > 8) bitmap_pad = 16; else bitmap_pad = 8; /* * Create the XImage with data = 0 and bytes_per_line = 0 */ *pimg = XCreateImage(display, visual, depth, ZPixmap, 0, 0, width, height, bitmap_pad, 0); /* * Now that bytes_per_line must have been set properly allocate data. */ (*pimg)->data = (char *) malloc((*pimg)->bytes_per_line * height); memset((*pimg)->data, 0, (*pimg)->bytes_per_line * height); if ((*pimg)->data == 0) { XDestroyImage(*pimg); *pimg = 0; return (LAMERROR); } return (0); } /* * The functions below are written from X11R5 MIT's code (XImUtil.c) * * The idea is to have faster functions than the standard XPutPixel function * to build the image data. Indeed we can speed up things by suppressing tests * performed for each pixel. We do the same tests but at the image level. * We also assume that we use only ZPixmap images with null offsets. */ static unsigned char reverse_byte[0x100] = { 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, 0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8, 0x18, 0x98, 0x58, 0xd8, 0x38, 0xb8, 0x78, 0xf8, 0x04, 0x84, 0x44, 0xc4, 0x24, 0xa4, 0x64, 0xe4, 0x14, 0x94, 0x54, 0xd4, 0x34, 0xb4, 0x74, 0xf4, 0x0c, 0x8c, 0x4c, 0xcc, 0x2c, 0xac, 0x6c, 0xec, 0x1c, 0x9c, 0x5c, 0xdc, 0x3c, 0xbc, 0x7c, 0xfc, 0x02, 0x82, 0x42, 0xc2, 0x22, 0xa2, 0x62, 0xe2, 0x12, 0x92, 0x52, 0xd2, 0x32, 0xb2, 0x72, 0xf2, 0x0a, 0x8a, 0x4a, 0xca, 0x2a, 0xaa, 0x6a, 0xea, 0x1a, 0x9a, 0x5a, 0xda, 0x3a, 0xba, 0x7a, 0xfa, 0x06, 0x86, 0x46, 0xc6, 0x26, 0xa6, 0x66, 0xe6, 0x16, 0x96, 0x56, 0xd6, 0x36, 0xb6, 0x76, 0xf6, 0x0e, 0x8e, 0x4e, 0xce, 0x2e, 0xae, 0x6e, 0xee, 0x1e, 0x9e, 0x5e, 0xde, 0x3e, 0xbe, 0x7e, 0xfe, 0x01, 0x81, 0x41, 0xc1, 0x21, 0xa1, 0x61, 0xe1, 0x11, 0x91, 0x51, 0xd1, 0x31, 0xb1, 0x71, 0xf1, 0x09, 0x89, 0x49, 0xc9, 0x29, 0xa9, 0x69, 0xe9, 0x19, 0x99, 0x59, 0xd9, 0x39, 0xb9, 0x79, 0xf9, 0x05, 0x85, 0x45, 0xc5, 0x25, 0xa5, 0x65, 0xe5, 0x15, 0x95, 0x55, 0xd5, 0x35, 0xb5, 0x75, 0xf5, 0x0d, 0x8d, 0x4d, 0xcd, 0x2d, 0xad, 0x6d, 0xed, 0x1d, 0x9d, 0x5d, 0xdd, 0x3d, 0xbd, 0x7d, 0xfd, 0x03, 0x83, 0x43, 0xc3, 0x23, 0xa3, 0x63, 0xe3, 0x13, 0x93, 0x53, 0xd3, 0x33, 0xb3, 0x73, 0xf3, 0x0b, 0x8b, 0x4b, 0xcb, 0x2b, 0xab, 0x6b, 0xeb, 0x1b, 0x9b, 0x5b, 0xdb, 0x3b, 0xbb, 0x7b, 0xfb, 0x07, 0x87, 0x47, 0xc7, 0x27, 0xa7, 0x67, 0xe7, 0x17, 0x97, 0x57, 0xd7, 0x37, 0xb7, 0x77, 0xf7, 0x0f, 0x8f, 0x4f, 0xcf, 0x2f, 0xaf, 0x6f, 0xef, 0x1f, 0x9f, 0x5f, 0xdf, 0x3f, 0xbf, 0x7f, 0xff }; static void reverse_bytes(unsigned char *pb, int n) { for (; n > 0; n--, pb++) *pb = reverse_byte[*pb]; } static void znorm(unsigned char *pb, XImage *img) { unsigned char c; switch (img->bits_per_pixel) { case 2: reverse_bytes(pb, 1); break; case 4: *pb = ((*pb >> 4) & 0xF) | ((*pb << 4) & ~0xF); break; case 16: c = *pb; *pb = *(pb + 1); *(pb + 1) = c; break; case 24: c = *(pb + 2); *(pb + 2) = *pb; *pb = c; break; case 32: c = *(pb + 3); *(pb + 3) = *pb; *pb = c; c = *(pb + 2); *(pb + 2) = *(pb + 1); *(pb + 1) = c; break; } } static unsigned char lomask[0x09] = { 0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff}; static unsigned char himask[0x09] = { 0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xe0, 0xc0, 0x80, 0x00}; static void putbits(char *src, int dstoffset, int numbits, char *dst) { unsigned char chlo, chhi; int hibits; dst = dst + (dstoffset >> 3); dstoffset = dstoffset & 7; hibits = 8 - dstoffset; chlo = *dst & lomask[dstoffset]; while (1) { chhi = (*src << dstoffset) & himask[dstoffset]; if (numbits <= hibits) { chhi = chhi & lomask[dstoffset + numbits]; *dst = (*dst & himask[dstoffset + numbits]) | chlo | chhi; break; } *dst = chhi | chlo; dst++; numbits = numbits - hibits; chlo = (unsigned char) (*src & himask[hibits]) >> hibits; src++; if (numbits <= dstoffset) { chlo = chlo & lomask[numbits]; *dst = (*dst & himask[numbits]) | chlo; break; } numbits = numbits - dstoffset; } } /* * Write pixels into an arbitrary depth Z image data structure. */ static void setimagepixels(XImage *image, unsigned int width, unsigned int height, Pixel *pixels) { char *src; char *dst; unsigned int x, y, i; char *data; Pixel pixel, px; int nbytes, depth, ibpp; int j; data = image->data; depth = image->depth; ibpp = image->bits_per_pixel; for (y = 0; y < height; y++) for (x = 0; x < width; x++, pixels++) { pixel = *pixels; if (depth == 4) pixel &= 0xf; for (i = 0, px = pixel; i < sizeof(unsigned long); i++, px >>= 8) ((unsigned char *) &pixel)[i] = px; src = &data[zindex(x, y, image)]; dst = (char *) &px; px = 0; nbytes = (ibpp + 7) >> 3; for (j = 0; j < nbytes; ++j) *dst++ = *src++; if (image->byte_order == MSBFirst) znorm((unsigned char *) &px, image); putbits((char *) &pixel, (x * ibpp) & 7, ibpp, (char *) &px); if (image->byte_order == MSBFirst) znorm((unsigned char *) &px, image); src = (char *) &px; dst = &data[zindex(x, y, image)]; for (j = 0; j < nbytes; ++j) *dst++ = *src++; } } /* * Write pixels into a 8-bits Z image data structure. */ static void setimagepixels8(XImage *image, unsigned int width, unsigned int height, Pixel *pixels) { char *data; unsigned int y; int bpl = image->bytes_per_line; char *data_ptr, *max_data; data = image->data; for (y = 0; y < height; y++) { data_ptr = data; max_data = data_ptr + width; while (data_ptr < max_data) *(data_ptr++) = (char) *pixels++; data += bpl; } } xmpi-2.2.3b8/src/xmpi/xmpi_all_list.h0000664000076500007650000000372707725267005013222 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_all_list.h,v 1.1 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - constants and templates associated with all_list */ #ifndef _ALLLIST #define _ALLLIST #include "lam.h" /* * templates */ struct al_head { struct al_head *al_next; /* next list element */ struct al_head *al_prev; /* previous list element */ }; struct al_desc { int4 al_elemsize; /* element size */ int4 al_nelem; /* # of elements */ struct al_head *al_ltop; /* top of list ptr */ struct al_head *al_lbottom; /* bottom of list ptr */ struct al_head *al_ftop; /* top of free list ptr */ int4 (*al_comp)(void*, void*); /* comparison function */ }; typedef struct al_desc LIST; #define al_body(x) ((x) ? (((char *) (x)) + sizeof(struct al_head)) : 0) #define al_count(x) ((x) ? (x)->al_nelem : 0) #define al_top(x) ((al_count(x) > 0) ? (void *) al_body((x)->al_ltop) : 0) #define al_bottom(x) ((al_count(x) > 0) ? (void *) al_body((x)->al_lbottom) : 0) extern "C" { extern LIST *al_init __ARGS((int4 elemsize, int4 (*comp)(void*, void*))); extern void *al_append __ARGS((LIST *ald, void *unew)); extern void *al_find __ARGS((LIST *ald, void *key)); extern void *al_insert __ARGS((LIST *ald, void *unew)); extern void *al_next __ARGS((LIST *ald, void *old)); extern void *al_prev __ARGS((LIST *ald, void *old)); extern int4 al_delete __ARGS((LIST *ald, void *old)); extern int4 al_free __ARGS((LIST *ald)); } extern "C" { typedef int (*compare_funct) (void*, void*); } #endif xmpi-2.2.3b8/src/xmpi/app_mgmt.h0000664000076500007650000000405307725267004012156 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: app_mgmt.h,v 1.3 2003/09/03 04:28:52 jsquyres Exp $ * * Function: - running application management */ #ifndef _APP_MGMT_H #define _APP_MGMT_H #include "lam.h" /* * LAM constants & macros */ #define LAM_GPSCMP(p1, p2) (((p1)->gps_node < (p2)->gps_node) ? -1 : \ (((p1)->gps_node > (p2)->gps_node) ? 1 : \ (((p1)->gps_idx < (p2)->gps_idx) ? -1 : \ (((p1)->gps_idx > (p2)->gps_idx) ? 1 : \ (((p1)->gps_pid < (p2)->gps_pid) ? -1 : \ (((p1)->gps_pid > (p2)->gps_pid) ? 1 : 0)))))) #define LAM_FULL_GPSCMP(p1, p2) (((p1)->gps_node < (p2)->gps_node) ? -1 : \ (((p1)->gps_node > (p2)->gps_node) ? 1 : \ (((p1)->gps_idx < (p2)->gps_idx) ? -1 : \ (((p1)->gps_idx > (p2)->gps_idx) ? 1 : \ (((p1)->gps_pid < (p2)->gps_pid) ? -1 : \ (((p1)->gps_pid > (p2)->gps_pid) ? 1 : \ (((p1)->gps_grank > (p2)->gps_grank) ? -1 : \ (((p1)->gps_grank < (p2)->gps_grank) ? 1 : 0)))))))) /* * Global Positioning System for running processes */ struct _gps { int4 gps_node; /* node ID */ int4 gps_pid; /* process ID */ int4 gps_idx; /* process index */ int4 gps_grank; /* glob. rank in loc. world */ }; #ifdef __cplusplus extern "C" { #endif extern int app_doom __ARGS((int app_n, struct _gps *app, int sig)); extern int app_sendprocs __ARGS((int np, struct _gps *w)); #ifdef __cplusplus } #endif #endif /* _APP_MGMT_H */ xmpi-2.2.3b8/src/xmpi/args.h0000664000076500007650000000465607722033603011310 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: args.h,v 1.4 2003/08/23 13:49:37 jsquyres Exp $ * * Function: - command line argument parsing */ #ifndef XMPI_ARGS #define XMPI_ARGS #include "lam.h" #ifdef __cplusplus extern "C" { #endif /* * backwards compatible option interfaces */ extern int do_args __ARGS((int *argcp, char **argv)); extern int expand_nodes __ARGS((void)); extern int get_2nd_let __ARGS((int let)); extern int intparam __ARGS((int c, int *p)); extern int opt_chosen __ARGS((int o)); extern int opt_taken __ARGS((int let)); extern int xtoi __ARGS((char **cpp, int *ip)); extern char *getparam __ARGS((int let)); extern void exclusive __ARGS((const char *str)); extern void followed __ARGS((const char *str)); extern void free_nodes __ARGS((void)); extern void twoletter __ARGS((const char *str)); extern void validopts __ARGS((const char *str)); /* * ID parsing package */ extern int nid_parse __ARGS((int *argc, char **argv)); extern int pid_parse __ARGS((int *argc, char **argv)); extern int4 nid_count __ARGS((void)); extern int4 nid_parse1 __ARGS((char *s)); extern char *nid_fmt __ARGS((int4 node)); extern void nid_get __ARGS((int *ixp, int *idp, int *flp)); extern void pid_get __ARGS((int *ixp, int *idp, int *flp)); extern void nid_free __ARGS((void)); extern void pid_free __ARGS((void)); extern void nid_usage __ARGS((void)); /* * backwards compatible ID interfaces */ extern int parse_nodes __ARGS((int *argc, char **argv)); extern int parse_procs __ARGS((int *argc, char **argv)); extern int4 mnnodeid __ARGS((const char *string)); extern char *mnemonic __ARGS((int4 node)); extern void getnode __ARGS((int *ixp, int *idp, int *flagsp)); extern void getproc __ARGS((int *ixp, int *idp, int *flagsp)); extern void mnusage __ARGS((void)); /* * Other things that are in libargs.a, currently for lack of a better * place to put them */ extern void show_help __ARGS((char *program, char *topic, ...)); #ifdef __cplusplus } #endif #endif /* XMPI_ARGS */ xmpi-2.2.3b8/src/xmpi/lam.h0000664000076500007650000000471207725267005011126 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: lam.h,v 1.6 2003/09/03 04:28:53 jsquyres Exp $ * */ #ifndef _LAM_H #define _LAM_H #include "xmpi_config.h" #include #include #include typedef unsigned int unint; /* * errors */ #define XMPI_ERR_LOW 1024 #define EUSAGE 1024 #define EDELETE 1025 #define EMAGIC 1026 #define EBADIDSPEC 1027 #define EIMPOSSIBLE 1028 #define XMPI_ERR_HIGH 1028 /* * Path name separator. */ #ifndef DOS #define STRDIR '/' #define STRSDIR "/" #else #define STRDIR '\\' #define STRSDIR "\\" #endif /* * macros */ #define max(a,b) (((a) > (b)) ? (a) : (b)) #define min(a,b) (((a) < (b)) ? (a) : (b)) /* * Portable datatypes. */ #if SIZEOF_INT == 4 typedef int int4; #elif SIZEOF_SHORT == 4 typedef short int4; #endif #if SIZEOF_FLOAT == 8 typedef float float8; #elif SIZEOF_DOUBLE == 8 typedef double float8; #endif /* * Integer conversions. */ #if WORDS_BIGENDIAN #define ltoti4(x, y) *((int4 *) (y)) = *((int4 *) (x)) #define ttoli4(x, y) *((int4 *) (y)) = *((int4 *) (x)) #define mltoti4(x, l) #define mttoli4(x, l) #else /* not WORDS_BIGENDIAN */ #define ltoti4(x, y) rev4(x, y) #define ttoli4(x, y) rev4(x, y) #define mltoti4(x, l) mrev4(x, l) #define mttoli4(x, l) mrev4(x, l) #endif /* not WORDS_BIGENDIAN */ /* * Floating point conversions. */ #if WORDS_BIGENDIAN #define ltotf8(x, y) *((float8 *) (y)) = *((float8 *) (x)) #define ttolf8(x, y) *((float8 *) (y)) = *((float8 *) (x)) #define mltotf8(x, l) #define mttolf8(x, l) #else /* not WORDS_BIGENDIAN */ #define ltotf8(x, y) rev8(x, y) #define ttolf8(x, y) rev8(x, y) #define mltotf8(x, l) mrev8(x, l) #define mttolf8(x, l) mrev8(x, l) #endif /* not WORDS_BIGENDIAN */ #define __ARGS(a) a /* * prototypes */ #ifdef __cplusplus extern "C" { #endif void rev4(void *src, void *dest); void rev8(void *src, void *dest); void mrev4(void *array, int num); void mrev8(void *array, int num); int4 stoi(unsigned char *); #ifdef __cplusplus } #endif #endif /* _LAM_H */ xmpi-2.2.3b8/src/xmpi/lamtr_util.h0000664000076500007650000000207207725267005012526 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: lamtr_util.h,v 1.2 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - trace parsing utilities header */ #ifndef _LAMTR_UTIL_H_ #define _LAMTR_UTIL_H_ void lamtr_set_stream(FILE); int lamtr_open_file(char*); int lamtr_read(void*, size_t, size_t); int lamtr_parse_world(int4, struct _gps**); int lamtr_raw_world(int4*, char**); int lamtr_parse_comm(int4*, int4*, int4*, struct _gps**); int lamtr_raw_comm(char*, struct _gps**); int lamtr_raw_dtype(char**); int lamtr_parse_dtype(int4*, char**); int lamtr_find_rank(int, struct _gps*, int, int); #endif xmpi-2.2.3b8/src/xmpi/lamtrace.h0000664000076500007650000001010507725267005012136 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: lamtrace.h,v 1.5 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - macros for reading LAM traces and * extracting components */ #ifndef _LAMTRACE_H #define _LAMTRACE_H #include #include "app_mgmt.h" #include "lam.h" #define lamtr_raw_cid_m(c) lamtr_read(&(c), sizeof(struct trcid), 1) #define lamtr_raw_src_m(s) lamtr_read(&(s), sizeof(struct trsrc), 1) #define lamtr_raw_rthdr_m(r) lamtr_read(&(r), sizeof(struct trrthdr), 1) #define lamtr_raw_init_m(i) lamtr_read(&(i), sizeof(struct trinit), 1) #define lamtr_raw_onoff_m(o) lamtr_read(&(o), sizeof(struct tronoff), 1) #define lamtr_raw_xchg_m(x) lamtr_read(&(x), sizeof(struct trxchg), 1) #define lamtr_raw_msg_m(m) lamtr_read(&(m), sizeof(struct trmsg), 1) #define lamtr_raw_dtype_m(d) lamtr_read(&(d), sizeof(struct trdtype), 1) #define lamtr_raw_buoy_m(b) lamtr_read(&(b), sizeof(struct trbuoy), 1) #define lamtr_raw_commname_m(b) lamtr_read(&(b), sizeof(struct trcommname), 1) #define lamtr_raw_color_m(b) lamtr_read(&(b), sizeof(struct trcolor), 1) #define lamtr_xt_magic_m(t, m) ttoli4((int4 *) (t), (int4 *) (m)) #define lamtr_xt_nprocs_m(t, n) ttoli4((int4 *) (t), (int4 *) (n)) #define lamtr_xt_world_m(t, n, w) \ { \ memcpy((char *) (w), (char *) (t), (n) * sizeof(struct _gps)); \ mttoli4((int4 *) (w), (n) * sizeof(struct _gps)/sizeof(int4)); \ } #define lamtr_xt_src_m(t, n, p, l) \ { \ ttoli4(&(t)->trs_node, (int4 *) (n)); \ ttoli4(&(t)->trs_pid, (int4 *) (p)); \ ttoli4(&(t)->trs_listno, (int4 *) (l)); \ } #define lamtr_xt_cid_m(t, c, l, r) \ { \ ttoli4(&(t)->trc_cid, (int4 *) (c)); \ ttoli4(&(t)->trc_nlg, (int4 *) (l)); \ ttoli4(&(t)->trc_nrg, (int4 *) (r)); \ } #define lamtr_xt_dtype_m(t, d, l) \ { \ ttoli4(&(t)->trd_dtype, (int4 *) (d)); \ ttoli4(&(t)->trd_length, (int4 *) (l)); \ } #define lamtr_xt_rt_time_m(t, time) ttolf8(&(t)->trr_time, time) #define lamtr_xt_rt_type_m(t, type) ttoli4(&(t)->trr_type, type) #define lamtr_xt_init_skew_m(t, skew) ttolf8(&(t)->tri_skew, skew) #define lamtr_xt_init_prog_m(t, prog) (prog = &(t)->tri_name[0]) #define lamtr_xt_onoff_num_m(t, n) ttoli4(&(t)->tro_trnum, n) #define lamtr_xt_xchg_m(t, f, s) \ { \ ttoli4(&(t)->trx_topfunc, f); \ ttoli4(&(t)->trx_sub, s); \ } #define lamtr_xt_msg_cid_m(t, c) ttoli4(&(t)->trm_cid, c) #define lamtr_xt_msg_peer_m(t, p) ttoli4(&(t)->trm_peer, m) #define lamtr_xt_msg_msrc_m(t, msrc) ttoli4(&(t)->trm_mrank, msrc) #define lamtr_xt_msg_tag_m(t, tag) ttoli4(&(t)->trm_tag, tag) #define lamtr_xt_msg_mtag_m(t, tag) ttoli4(&(t)->trm_mtag, tag) #define lamtr_xt_msg_dtype_m(t, d) ttoli4(&(t)->trm_dtype, d) #define lamtr_xt_msg_top_m(t, f) ttoli4(&(t)->trm_topfunc, f) #define lamtr_xt_msg_wrap_m(t, w) ttoli4(&(t)->trm_wrapfunc, w) #define lamtr_xt_msg_seq_m(t, s) ttoli4(&(t)->trm_seqnum, s) /* * prototypes */ #ifndef __ARGS #if __STDC__ || defined(c_plusplus) || defined(__cplusplus) #define __ARGS(a) a #else #define __ARGS(a) () #endif #endif #ifdef __cplusplus extern "C" { #endif extern void lamtr_set_stream __ARGS((FILE *)); extern int lamtr_open_file __ARGS((char *)); extern int lamtr_read __ARGS((void *, size_t, size_t)); extern int lamtr_parse_world __ARGS((int4 *, struct _gps **)); extern int lamtr_raw_world __ARGS((int4 *, char **)); extern int lamtr_parse_comm __ARGS((int4 *, int4*, int4*, struct _gps **)); extern int lamtr_raw_comm __ARGS((char *, struct _gps **)); extern int lamtr_raw_dtype __ARGS((char **)); extern int lamtr_parse_dtype __ARGS((int4 *, char **)); extern int lamtr_find_rank __ARGS((int, struct _gps *, int, int)); #ifdef __cplusplus } #endif #endif /* _LAMTRACE_H */ xmpi-2.2.3b8/src/xmpi/mpitrace.h0000664000076500007650000001435307725267005012163 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: mpitrace.h,v 1.6 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - MPI tracing constants and templates */ #ifndef _MPITRACE_H #define _MPITRACE_H #include #include "lam.h" /* * macros */ #define LAM_S2US(time) ((int) ((time) * 1000000.0)) /* * constants */ #define LAM_TRMAGIC 1279348022 /* LAM trace file magic number */ #define TRDTINITBUFSIZE 16 /* initial buffer size */ #define TRDPROGMAX 32 /* max length of program name */ #define TRDTCONTIG ((int4) 0) /* contiguous */ #define TRDTVECTOR ((int4) 1) /* vector */ #define TRDTHVECTOR ((int4) 2) /* hvector */ #define TRDTINDEXED ((int4) 3) /* indexed */ #define TRDTHINDEXED ((int4) 4) /* hindexed */ #define TRDTSTRUCT ((int4) 5) /* structure */ #define TRDTBYTE ((int4) 6) /* byte */ #define TRDTCHAR ((int4) 7) /* C char */ #define TRDTUCHAR ((int4) 8) /* C unsigned character */ #define TRDTSHORT ((int4) 9) /* C short */ #define TRDTUSHORT ((int4) 10) /* C unsigned short */ #define TRDTINT ((int4) 11) /* C int */ #define TRDTUINT ((int4) 12) /* C unsigned integer */ #define TRDTFLOGICAL ((int4) 13) /* F77 logical */ #define TRDTLONG ((int4) 14) /* C long */ #define TRDTULONG ((int4) 15) /* C unsigned long */ #define TRDTFLOAT ((int4) 16) /* C float */ #define TRDTDOUBLE ((int4) 17) /* C double */ #define TRDTFCOMPLEX ((int4) 18) /* F77 complex */ #define TRDTUB ((int4) 19) /* upper bound */ #define TRDTLB ((int4) 20) /* lower bound */ #define TRDTPACKED ((int4) 21) /* packed */ #define TRDT2INT ((int4) 22) /* C 2 ints */ #define TRDTFLOATINT ((int4) 25) /* C float-int */ #define TRDTDOUBLEINT ((int4) 26) /* C double-int */ #define TRDTLONGINT ((int4) 27) /* C long-int */ #define TRDTSHORTINT ((int4) 28) /* C short-int */ #define TRDTLONGDOUBLE ((int4) 29) /* C long double */ #define TRDTLONGDBLINT ((int4) 30) /* C long double-int */ #define TRDTFINTEGER ((int4) 31) /* F77 integer */ #define TRDTFCHARACTER ((int4) 32) /* F77 character */ #define TRDTFREAL ((int4) 33) /* F77 real */ #define TRDTFDBLPREC ((int4) 34) /* F77 double precision */ #define TRDTFDBLCOMPLEX ((int4) 35) /* F77 double complex */ #define TRDTF2INTEGER ((int4) 36) /* F77 2 integers */ #define TRDTF2REAL ((int4) 37) /* F77 2 reals */ #define TRDTF2DBLPREC ((int4) 38) /* F77 2 double precision */ #define TRDTLONGLONG ((int4) 39) /* C long long */ #define TRDTULONGLONG ((int4) 40) /* C unsigned long long */ #define TRDTWCHAR ((int4) 41) /* C wchar_t */ #define TRDTMAX ((int4) 41) /* highest flat datatype */ /* * trace states */ #define TRDTRUN 0 /* running */ #define TRDTBLOCK 1 /* blocked */ #define TRDTSYSTEM 2 /* system overhead */ /* * structures */ struct trsrc { int4 trs_node; /* node of process that made trace */ int4 trs_pid; /* pid of process that made trace */ int4 trs_listno; /* list number of the trace */ #define TRRUNTIME 0 /* runtime trace list */ #define TRCOMM -2 /* communicator trace list */ #define TRDTYPE -3 /* datatype trace list */ #define TRONOFF -4 /* tracing init/on/off trace list */ #define TRWORLD -5 /* world trace list */ int4 trs_pad; /* for alignment */ }; struct trcid { int4 trc_cid; /* cid */ int4 trc_nlg; /* size of local group */ int4 trc_nrg; /* size of remote group */ int4 trc_pad; /* for alignment */ }; struct trdtype { int4 trd_param0; #define trd_dtype trd_param0 /* datatype */ #define trd_disp trd_param0 /* displacement (index/struct) */ #define trd_stride trd_param0 /* stride (vector) */ int4 trd_param1; #define trd_count trd_param1 /* # datatype entries */ #define trd_length trd_param1 /* length of entry */ }; struct trrthdr { float8 trr_time; /* trace time (sec) */ int4 trr_type; /* trace type */ #define TRTINIT ((int4) 0) /* initialize */ #define TRTSUBCHG ((int4) 1) /* substrate change */ #define TRTOUTPUT ((int4) 2) /* output */ #define TRTINPUT ((int4) 3) /* input */ #define TRTNOIO ((int4) 4) /* no IO */ #define TRTRON ((int4) 5) /* tracing on */ #define TRTROFF ((int4) 6) /* tracing off */ #define TRTBUOY ((int4) 7) /* buoy */ #define TRCOLORON ((int4) 8) /* color on */ #define TRCOLOROFF ((int4) 9) /* color off */ #define TRCOMMNAME ((int4) 10) /* communicator name */ int4 trr_pad; /* for alignment */ }; struct tronoff { int4 tro_trnum; /* trace number */ int4 tro_pad; /* for alignment */ }; struct trinit { float8 tri_skew; /* clock skew (sec) */ char tri_name[TRDPROGMAX]; /* application name */ }; struct trmsg { int4 trm_topfunc; /* top-level function */ int4 trm_wrapfunc; /* wrapper function */ int4 trm_syst; /* trace time in system (usec) */ int4 trm_blkt; /* trace time blocked (usec) */ int4 trm_peer; /* peer rank */ int4 trm_tag; /* tag */ int4 trm_cid; /* context ID */ int4 trm_dtype; /* datatype label */ int4 trm_count; /* message count */ int4 trm_mrank; /* src rank matched in case of wcard */ int4 trm_mtag; /* tag matched in case of wcard */ int4 trm_seqnum; /* sequence number */ }; struct trxchg { int4 trx_topfunc; /* top-level function */ int4 trx_sub; /* new substrate */ }; struct trbuoy { char trb_name[32]; /* string name */ }; struct trcolor { int4 col_red; int4 col_green; int4 col_blue; int4 col_pad; }; struct trcommname { char comm_name[128]; int4 cid; }; #ifdef __cplusplus extern "C" { #endif extern void format_proc __ARGS((int, int, int, int, int, char *)); extern void format_cid __ARGS((int, char *)); extern void format_tag __ARGS((int, char*)); extern void format_dtype __ARGS((int, char *, int)); extern void mpitr_dataprint __ARGS((char *, char *, int, int, int)); extern void print_dtype __ARGS((int, int, int, char *)); extern void print_comm __ARGS((int, int, int, int)); extern int mpitr_dtypeget __ARGS((int4, int4, int4, char **)); #ifdef __cplusplus } #endif #endif /* _MPITRACE_H */ xmpi-2.2.3b8/src/xmpi/xmpi.h0000664000076500007650000001740507725267005011335 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi.h,v 1.15 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - XMPI templates and constants */ #ifndef _XMPI_H #define _XMPI_H #include #include #include #include "xmpi_sys.h" /* * application resources */ #define XtNhelp "help" #define XtCHelp "Help" #define XtNbuffers "buffers" #define XtCBuffers "Buffers" #define XtNrankFont "rankFont" #define XtCRankFont "RankFont" #define XtNmsgFont "msgFont" #define XtCMsgFont "MsgFont" #define XtNlcomCol "lcomCol" #define XtCLcomCol "LcomCol" #define XtNrcomCol "rcomCol" #define XtCRcomCol "RcomCol" #define XtNbandCol "bandCol" #define XtCBandCol "BandCol" #define XtNbandDash "bandDash" #define XtCBandDash "BandDash" #define XtNbandWidth "bandWidth" #define XtCBandWidth "BandWidth" #define XtNhelpCmd "helpCmd" #define XtCHelpCmd "HelpCmd" #define XtNinfoLabel "infoLabel" #define XtCInfoLabel "InfoLabel" typedef struct { Boolean ap_help; /* prints help info */ int ap_buffers; /* # msg status buffers */ XFontStruct *ap_rankfont; /* process rank font */ XFontStruct *ap_msgfont; /* message count font */ Pixel ap_lcomcol; /* communicator local group colour */ Pixel ap_rcomcol; /* communicator remote group colour */ Pixel ap_bandcol; /* colour of rubber band */ Boolean ap_banddash; /* use dashed rubber band */ int ap_bandwidth; /* width of rubber band */ char *ap_helpcmd; /* help invocation command line */ char *ap_infolbl; /* label for info string display */ } AppData, *AppDataPtr; /* * resources */ #define XMPI_RANKFONT "-*-helvetica-bold-r-normal--*-140-*-*-*-*-*-*" #define XMPI_MSGFONT "-*-helvetica-medium-r-normal--*-120-*-*-*-*-*-*" #define XMPI_HELPCMD "netscape http://www.mpi.nd.edu/lam/software/xmpi/" #define XMPI_INFOLABEL "Boot" /* * rubber band resources */ #define XMPI_BANDCOLOUR "cyan" /* rubber band colour */ #define XMPI_BANDDASH False /* rubber band line style */ #define XMPI_BANDWIDTH 1 /* rubber band line width */ /* * fixed colours */ #define XMPI_BLKCOLOUR "red" /* blocked process colour */ #define XMPI_SYSCOLOUR "yellow" /* system overhead colour */ #define XMPI_RUNCOLOUR "green" /* running process colour */ #define XMPI_LBLCOLOUR "white" /* plot labeling colour */ #define XMPI_LCOMCOLOUR "cyan" /* communicator local group colour */ #define XMPI_RCOMCOLOUR "plum" /* communicator remote group colour */ /* * constants */ #define XMPI_VWXNPROCS 4 /* def. view # horiz. procs */ #define XMPI_VWYNPROCS 4 /* def. view # vert. procs */ #define XMPI_VWRADIUS 50 /* view hexagon radius */ #define XMPI_VWXMARGIN 20 /* view horizontal margins */ #define XMPI_VWYMARGIN 20 /* view vertical margins */ #define XMPI_VWXWIDTH 4 /* extra view width */ #define XMPI_VWXHEIGHT 4 /* extra view height */ #define XMPI_VWLNWIDTH 2 /* view drawing line width */ #define XMPI_VWXRANK -4 /* view horiz. rank displacement */ #define XMPI_VWYRANK 30 /* view vert. rank displacement */ #define XMPI_VWXLIGHT -30 /* view horiz. light displacement */ #define XMPI_VWYLIGHT -17 /* view vert. light displacement */ #define XMPI_VWXMESG 5 /* view horiz. msg displacement */ #define XMPI_VWYMESG -17 /* view vert. msg displacement */ #define XMPI_VWXNMSG 17 /* view horiz. #msg displacement. */ #define XMPI_VWYNMSG 3 /* view vert. #msg displacement. */ #define XMPI_VWBFSMAX 200 /* message status table size */ #define XMPI_FOTITLE 25 /* focus title bar size */ #define XMPI_FOBORDER 10 /* focus border size */ #define XMPI_SHOWNONE 0 /* showing no datatype */ #define XMPI_SHOWPROC 1 /* showing process datatype */ #define XMPI_SHOWMESG 2 /* showing message datatype */ #define XMPI_DTINDENT 8 /* indentation level for datatypes */ #define XMPI_KVDEFSIZE 200 /* Kiviat def. window size */ #define XMPI_KVBORDER 20 /* Kiviat border size */ #define XMPI_KVTEXT 10 /* Kiviat text size */ #define XMPI_TRNVIEW 3 /* trace # cached views */ #define XMPI_TRWIDTH 400 /* trace width */ #define XMPI_TRHEIGHT 10 /* trace height */ #define XMPI_TRMINWIDTH 500 /* trace min. width */ #define XMPI_TRDISP 50 /* trace displacement */ #define XMPI_TRNPROCS 8 /* # visible trace processes */ #define XMPI_TRSCALE 1024 /* pixels/second scale factor */ #define XMPI_TRVCRPLAY 50 /* VCR play speed timeout */ #define XMPI_TRVCRFWD 5 /* VCR forward speed timeout */ #define XMPI_MTLNWIDTH 2 /* matrix line width */ #define XMPI_MTMINPROC 4 /* matrix default window size */ #define XMPI_MTMAXPROC 16 /* matrix scrollbar threshold */ #define XMPI_MTCELLSIZE 24 /* matrix single cell size */ #define XMPI_MTCNTINSET 4 /* matrix source count inset */ #define XMPI_MTCNTMAX 7 /* matrix max source count */ #define XMPI_FLUSHDELAY 2 #ifdef _POSIX_PATH_MAX #define XMPI_PATHMAX _POSIX_PATH_MAX #else #define XMPI_PATHMAX 255 #endif #define SQRT3 ((double) 1.73205) #ifndef PI #define PI ((double) 3.14159) #endif /* * button/menu actions */ #define XMPI_BSNAPSHOT 1 #define XMPI_BTRACE 2 #define XMPI_BKIVIAT 3 #define XMPI_BMATRIX 4 #define XMPI_BRERUN 5 #define XMPI_BCLEAN 6 /* * efficiency macros */ #define al_prev_m(l,p) \ ((void *) (((struct al_head *) (p) - 1)->al_prev)) #define al_next_m(l,p) \ ((((struct al_head *) (p) - 1)->al_next) ? \ (void *) al_body(((struct al_head *) (p) - 1)->al_next) : \ (void *) 0) struct xmfocus { int xmf_myrank; /* my rank for callback */ Widget xmf_window; /* focus window */ Widget xmf_rank; /* rank label */ Widget xmf_light; /* light label */ Widget xmf_func; /* function label */ Widget xmf_pr_rt; /* peer or root label */ Widget xmf_peer; /* peer (src/dest) label */ #define xmf_root xmf_peer /* root (src/dest) label */ Widget xmf_com; /* communicator label */ Widget xmf_compb; /* communicator push button */ Widget xmf_dtb; /* datatype push button */ Widget xmf_tag; /* tag label */ Widget xmf_cnt; /* count label */ Widget xmf_msgsrc; /* message source label */ Widget xmf_msgcom; /* message comm. label */ Widget xmf_msgcompb; /* message comm. push button */ Widget xmf_msgtag; /* message tag label */ Widget xmf_msgdtb; /* message datatype push button */ Widget xmf_msgcnt; /* message count */ Widget xmf_nmsg; /* # messages label */ Widget xmf_nmsgpb; /* # messages push button */ struct xmproc *xmf_proc; /* ptr process structure */ }; struct xmtrace { int xmt_rank; /* process global rank */ int xmt_state; /* process state */ double xmt_time; /* start time (sec) */ double xmt_lapse; /* time lapse (sec) */ }; struct xmarrow { int xma_srank; /* sender global rank */ int xma_rrank; /* receiver global rank */ double xma_stime; /* sender time */ double xma_rtime; /* receiver time */ }; struct xmbuoy { int xmb_rank; /* process global rank */ double xmb_time; /* start time (sec) */ char xmb_name[32]; /* buoy name */ }; /* * globally used variables */ extern XtAppContext app; /* application context */ extern AppData app_res; /* application resources */ extern Widget xmpi_shell; /* top level app. shell */ extern char xmpi_info[]; /* information string */ /* * global functions */ void xmpi_bail(); void xmpi_busy(); void xmpi_unbusy(); Widget xmpi_wmshell(Widget); void xmpi_setminmax(int, int, int, int); void xmpi_setsize(int, int); void xmpi_seticon(Pixmap); void xmpi_cleanup(); #endif /* _XMPI_H */ xmpi-2.2.3b8/src/xmpi/xmpi_about.h0000664000076500007650000000125507725267005012523 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_about.h,v 1.2 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - about XMPI */ #ifndef _XMPI_ABOUT_H_ #define _XMPI_ABOUT_H_ void xmpi_about(Widget); #endif xmpi-2.2.3b8/src/xmpi/xmpi_aschema.h0000664000076500007650000000143207725267005013007 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_aschema.h,v 1.2 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - dialog window for browsing application schemata */ #ifndef _XMPI_ASCHEMA_H_ #define _XMPI_ASCHEMA_H_ void xmpi_aschema_dialog(Widget); void xmpi_aschema_busy(); void xmpi_aschema_unbusy(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_browse.h0000664000076500007650000000136407725267005012713 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_browse.h,v 1.2 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - program browser panel in builder dialog */ #ifndef _XMPI_BROWSE_H_ #define _XMPI_BROWSE_H_ void xmpi_browse_build(Widget); void xmpi_browse_fill(Widget); #endif xmpi-2.2.3b8/src/xmpi/xmpi_copies.h0000664000076500007650000000142507725267005012672 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_copies.h,v 1.3 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - widgets for setting number of application copies */ #ifndef _XMPI_COPIES_H_ #define _XMPI_COPIES_H_ char *xmpi_copies_get(); void xmpi_copies_set(int); Widget xmpi_copies_create(Widget); #endif xmpi-2.2.3b8/src/xmpi/xmpi_ctl.h0000664000076500007650000000153407725267005012173 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_ctl.h,v 1.2 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - control panel for main window */ #ifndef _XMPI_CTL_H_ #define _XMPI_CTL_H_ void xmpi_ctl_setinfo(char*); void xmpi_ctl_resetinfo(); Widget xmpi_ctl_build(Widget); void xmpi_ctl_clean(); void xmpi_ctl_setapp(char*); void xmpi_ctl_setsensitive(int, Boolean); #endif xmpi-2.2.3b8/src/xmpi/xmpi_dbase.h0000664000076500007650000001134207725267006012466 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_dbase.h,v 1.6 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - database templates and constants */ #ifndef _XMPIDB #define _XMPIDB #include "all_list.h" #include "xmpi.h" #include "mpitrace.h" /* * constants */ #define XMPI_DBNTRACES 64 /* initial # traces */ #define XMPI_DBNARROWS 64 /* initial # arrows */ /* * structures */ struct xmdb { int xdb_nprocs; /* # processes */ struct xmdbproc *xdb_procs; /* process array */ LIST *xdb_cids; /* list of context IDs */ double xdb_mintime; /* min traces time (sec) */ double xdb_maxtime; /* max traces time (sec) */ double xdb_curtime; /* current time (sec) */ double xdb_minlapse; /* mimimum trace lapse (sec) */ }; struct xmdbproc { int xdbp_node; /* process nodeid */ int xdbp_pid; /* process ID */ char xdbp_prog[TRDPROGMAX]; /* program name */ LIST *xdbp_traces; /* list of traces */ LIST *xdbp_dtypes; /* list of datatypes */ LIST *xdbp_msgsnd; /* list of msg senders */ LIST *xdbp_buoys; /* list of buoys */ struct xmdbtr *xdbp_curtrace; /* current trace */ }; struct xmdbcid { int xdbc_cid; /* context ID */ int xdbc_nlprocs; /* # local processes */ int xdbc_nrprocs; /* # remote processes */ struct _gps *xdbc_lgrp; /* ptr local group GPS */ struct _gps *xdbc_rgrp; /* ptr remote group GPS */ }; struct xmdbenv { int xdbe_func; /* function */ int xdbe_lpeer; /* peer local rank */ #define xdbe_lroot xdbe_lpeer /* root local rank */ int xdbe_tag; /* message tag */ int xdbe_cid; /* context ID */ char* xdbe_commname; int xdbe_dtype; /* datatype */ int xdbe_count; /* data count */ int xdbe_mlpeer; /* matched peer local rank */ int xdbe_mtag; /* matched message tag */ int xdbe_seqnum; /* message sequence number */ int xdbe_wfunc; /* wrapper function */ }; struct xmdbtr { double xdbt_time; /* start time (sec) */ double xdbt_lapse; /* time lapse (sec) */ int xdbt_grank; /* process global rank */ int xdbt_state; /* trace state */ struct xmdbenv xdbt_envelop; /* message envelop */ double xdbt_systotal; /* total system time */ double xdbt_blktotal; /* total block time */ int xdbt_arrowdir; /* arrow direction */ #define XMPI_DBNA 0 /* no arrow */ #define XMPI_DBIN 1 /* incoming arrow */ #define XMPI_DBOUT 2 /* outgoing arrow */ int xdbt_arrowloc; /* arrow location */ #define XMPI_DBSTART 0 /* arrow at start time */ #define XMPI_DBEND 1 /* arrow at end time */ struct xmdbtr *xdbt_arrow; /* ptr in/out arrow */ struct xmdbtr **xdbt_senders; /* ptr in senders list */ }; struct xmdbbuoy { char xdbb_name[32]; /* buoy name */ double xdbb_time; /* start time (sec) */ }; struct xmdbdt { int xdbd_dtype; /* datatype number */ char *xdbd_dtbuf; /* datatype buffer */ }; /* * data structures used in parsing */ struct onoff { int oo_segment; /* segment number */ double oo_ontime; /* time switched on */ double oo_offtime; /* time switched off */ int oo_inoff; /* init/on/off lst off found */ int oo_rton; /* runtime trace on found */ int oo_rtoff; /* runtime trace off found */ }; struct dbparse { int dbp_top; /* top-level function */ int dbp_sub; /* substrate */ double dbp_start; /* start time */ double dbp_end; /* current end time */ double dbp_blktot; /* blk time total */ double dbp_systot; /* system time total */ double dbp_skew; /* clock skew */ LIST *dbp_senders; /* sender list */ LIST *dbp_segs; /* segment list */ struct onoff *dbp_curseg; /* current segment */ }; /* * global functions */ int xmpi_db_getarrows(double, double, struct xmarrow**); void xmpi_db_getcomm(int, int, struct _gps**, int*, int*, int*); int xmpi_db_getgpeer(int, int, int); int xmpi_db_getlpeer(int, int, int); int xmpi_db_getload(int, double*, double*); int xmpi_db_getnprocs(); int xmpi_db_gettraces(double, double, struct xmtrace**); void *xmpi_db_getdtype(int, int); double xmpi_db_getmaxtime(); double xmpi_db_getmintime(); double xmpi_db_getminlapse(); int xmpi_db_getmaxtraces(); int xmpi_db_getstat(int, struct xmproc*); void xmpi_db_settime(double); int xmpi_db_getbuoys(struct xmbuoy**); #endif /* _XMPIDB */ xmpi-2.2.3b8/src/xmpi/xmpi_db_int.h0000664000076500007650000000135607725267005012652 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_db_int.h,v 1.2 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - set up the internal structure of the database */ #ifndef _XMPI_DB_INT_H_ #define _XMPI_DB_INT_H_ /* * global functions */ int xmpi_db_internals(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_db_parse.h0000664000076500007650000000151507725267005013167 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_db_parse.h,v 1.2 2003/09/03 04:28:53 jsquyres Exp $ * * Function: - parse a trace file into the database and view it */ #ifndef _XMPI_DB_PARSE_H_ #define _XMPI_DB_PARSE_H_ /* * public functions */ void xmpi_parse_tracefile(FILE*); int xmpi_db_parse_segment(int); void xmpi_db_free(); void xmpi_db_view(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_dtprint.h0000664000076500007650000000136607725267006013101 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_dtprint.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - print MPI datatype */ #ifndef _XMPI_DTPRINT_H_ #define _XMPI_DTPRINT_H_ /* * global functions */ void xmpi_dtypeprint(int4, char*, int4, char*, char*); #endif xmpi-2.2.3b8/src/xmpi/xmpi_dtype.h0000664000076500007650000000174507725267006012543 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_dtype.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - Datatype subwindow */ #ifndef _XMPI_DTYPE_H_ #define _XMPI_DTYPE_H_ /* * public functions */ void xmpi_dt_create(Widget); void xmpi_dt_update(int, struct xmfocus*, int); void xmpi_dt_clear(); void xmpi_dt_msg(int, struct xmfocus*, int); void xmpi_dt_proc(int, struct xmfocus*, int); void xmpi_dt_setrank(int, char*); void xmpi_dt_popdown(); void xmpi_dt_busy(); void xmpi_dt_unbusy(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_error.h0000664000076500007650000000214107725267006012536 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_error.h,v 1.4 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - error dialog */ #ifndef _XMPI_ERROR_H_ #define _XMPI_ERROR_H_ #include #include #include /* * xmpi_error * * Function: - widget child of the desired centering shell * displays error message in dialog * - displays appended user and system error message * System Error only displayed if 3rd argument true * Accepts: - parent widget (or NULL) * - user error message */ void xmpi_error(Widget, const char*, bool DisplaySystem = true); #endif xmpi-2.2.3b8/src/xmpi/xmpi_focus.h0000664000076500007650000000160407725267006012527 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_focus.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - process focus dialog */ #ifndef _XMPI_FOCUS_H_ #define _XMPI_FOCUS_H_ /* * global functions */ void xmpi_fo_toggle(Widget, int, struct xmproc*); void xmpi_fo_update(int); void xmpi_fo_destroy(int); void xmpi_fo_destroy_all(); void xmpi_fo_reset(); void xmpi_fo_busy(); void xmpi_fo_unbusy(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_getline.h0000664000076500007650000000326207725267006013041 // // Copyright (c) 2001-2003 The Trustees of Indiana University. // All rights reserved. // Copyright (c) 1998-2001 University of Notre Dame. // All rights reserved. // Copyright (c) 1994-1998 The Ohio State University. // All rights reserved. // // This file is part of the XMPI software package. For license // information, see the LICENSE file in the top level directory of the // XMPI source distribution. // // $HEADER$ // // $Id: xmpi_getline.h,v 1.4 2003/09/03 04:28:54 jsquyres Exp $ // // FUNCTION: Replacement for std::getline(std::istream&, // std::string&), which is broken in some releases of the Sun Workshop // 5.0 compilers. This is only used when the getline in std::string // is broken. // #ifndef XMPI_GETLINE_H_ #define XMPI_GETLINE_H_ #include "xmpi_config.h" #if XMPI_HAVE_BROKEN_GETLINE #define XMPI_GETLINE XMPI_getline #include #include #include inline std::iostream& XMPI_getline(std::iostream &is, std::string &str, char delim) { // clear the string and all... str.resize(0); char ch; int count = 0; while(1) { ch = is.get(); if (ch == EOF) { if (count == 0) is.setstate(std::ios::failbit|std::ios::eofbit); else is.setstate(std::ios::eofbit); break; } ++count; if (ch == delim) break; str += ch; // do we have space for another char? if not, we need to fail... if (str.length() == str.npos - 1) { is.setstate(std::ios::failbit); break; } } return is; } #else // #if XMPI_HAVE_BROKEN_GETLINE #define XMPI_GETLINE getline #endif #endif // #ifndef XMPI_GETLINE_H_ xmpi-2.2.3b8/src/xmpi/xmpi_help.h0000664000076500007650000000127607725267006012345 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_help.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - XMPI help */ #ifndef _XMPI_HELP_H_ #define _XMPI_HELP_H_ /* * public functions */ void xmpi_help(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_kiviat.h0000664000076500007650000000144707725267006012704 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_kiviat.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - Kiviat subwindow management functions */ #ifndef _XMPI_KIVIAT_H_ #define _XMPI_KIVIAT_H_ void xmpi_kv_popup(); void xmpi_kv_popdown(); void xmpi_kv_update(); void xmpi_kv_busy(); void xmpi_kv_unbusy(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_matrix.h0000664000076500007650000000150407725267006012713 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_matrix.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - message matrix subwindow management functions */ #ifndef _XMPI_MATRIX_H_ #define _XMPI_MATRIX_H_ void xmpi_mat_popup(); void xmpi_mat_update(struct xmproc *); void xmpi_mat_busy(); void xmpi_mat_unbusy(); void xmpi_mat_destroy(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_misc.h0000664000076500007650000000336107725267006012345 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_misc.h,v 1.7 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - miscellaneous XMPI functions */ #ifndef _XMPI_MISC_H_ #define _XMPI_MISC_H_ typedef void (*xmpi_atexit_funct)(void); Widget xmpi_mklabel(Widget, char*, int, int); void xmpi_fail(char*); void xmpi_atexit(xmpi_atexit_funct); void xmpi_busy_widget(Widget); void xmpi_unbusy_widget(Widget); void xmpi_formattach(Widget, int, int, int, int); void xmpi_setlabel(Widget, char*); void xmpi_nosash(Widget); void xmpi_vstr_extent(char*, XFontStruct, int*, int*); void xmpi_vstr_draw(Display*, Drawable, GC, int, int, char*, XFontStruct); Widget xmpi_mkpixbutton(Widget, void (*act_cb) (Widget, XtPointer, XtPointer), char*, void (*arm_cb) (Widget, XtPointer, XtPointer), char *, void (*dis_cb) (Widget, XtPointer, XtPointer), char *, unsigned char*, int, int, int); Widget xmpi_mkcolpixbutton(Widget, void (*act_cb) (Widget, XtPointer, XtPointer), char*, void (*arm_cb) (Widget, XtPointer, XtPointer), char *, void (*dis_cb) (Widget, XtPointer, XtPointer), char *, const char**, int); Widget xmpi_mklabel(Widget, char*, int, int); int xmpi_yesno(Widget, char*); int xmpi_coll2pt(int); void xmpi_flush(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_nodes.h0000664000076500007650000000145707725267006012526 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_nodes.h,v 1.3 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - node list panel in builder dialog * - only understands host file syntax */ #ifndef _XMPI_NODES_H_ #define _XMPI_NODES_H_ void xmpi_nodes_build(Widget); void xmpi_nodes_update(); void xmpi_nodes_update_default(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_pophelp.h0000664000076500007650000000212407725267006013055 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_pophelp.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - popup help for buttons * * - When the cursor enters a button with attached help, * after a short delay a help message will be popped up. * If the button is pressed or the cursor leaves the * button before the help message is popped up the * popup is cancelled. * Once help for a button is popped up it stays up * until the cursor leaves the button or the button * is pressed. */ #ifndef _XMPI_POPHELP_H_ #define _XMPI_POPHELP_H_ void xmpi_add_pophelp(Widget, char*); #endif xmpi-2.2.3b8/src/xmpi/xmpi_run.h0000664000076500007650000000172207725267006012215 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_run.h,v 1.3 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - application specification panel in * the builder dialog */ #ifndef _XMPI_RUN_H_ #define _XMPI_RUN_H_ /* * public functions */ void xmpi_run_dialog(Widget); int xmpi_run(char*, Widget); void xmpi_run_set_prog(char*, char*); void xmpi_run_delete(); void xmpi_run_rerun(); void xmpi_run_cleanup(); void xmpi_run_busy(); void xmpi_run_unbusy(); void xmpi_run_update(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_sys.h0000664000076500007650000001235307725267006012231 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_sys.h,v 1.5 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - XMPI portable definitions */ #ifndef _XMPI_SYS_H #define _XMPI_SYS_H #include "app_schema.h" #include "args.h" #include "blktype.h" #include "mpitrace.h" #include "ndi.h" /* * process, trace and database states */ #define XMPI_SMISSING (-2) /* missing, trace/dbase only */ #define XMPI_SUNDEF (-1) /* undefined */ #define XMPI_SRUN TRDTRUN /* running */ #define XMPI_SBLOCK TRDTBLOCK /* blocked */ #define XMPI_SSYSTEM TRDTSYSTEM /* system overhead */ /* * MPI wildcards */ #define XMPI_ANY_SOURCE (-1) #define XMPI_ANY_TAG (-1) /* * MPI context IDs */ #define XMPI_CID_WORLD 0 #define XMPI_CID_SELF 1 #define XMPI_CID_PARENT 2 /* * MPI datatypes */ #define XMPI_CONTIG 0 #define XMPI_VECTOR 1 #define XMPI_HVECTOR 2 #define XMPI_INDEXED 3 #define XMPI_HINDEXED 4 #define XMPI_STRUCT 5 #define XMPI_BYTE 6 #define XMPI_CHAR 7 #define XMPI_UCHAR 8 #define XMPI_SHORT 9 #define XMPI_USHORT 10 #define XMPI_INT 11 #define XMPI_UINT 12 #define XMPI_LOGICAL 13 #define XMPI_LONG 14 #define XMPI_ULONG 15 #define XMPI_FLOAT 16 #define XMPI_DOUBLE 17 #define XMPI_COMPLEX 18 #define XMPI_UB 19 #define XMPI_LB 20 #define XMPI_PACKED 21 #define XMPI_2INT 22 #define XMPI_2FLOAT 23 #define XMPI_2DOUBLE 24 #define XMPI_FLOAT_INT 25 #define XMPI_DOUBLE_INT 26 #define XMPI_LONG_INT 27 #define XMPI_SHORT_INT 28 #define XMPI_LONG_DOUBLE 29 #define XMPI_LONG_DOUBLE_INT 30 #define XMPI_INTEGER 31 #define XMPI_CHARACTER 32 #define XMPI_REAL 33 #define XMPI_DOUBLE_PRECISION 34 #define XMPI_DOUBLE_COMPLEX 35 #define XMPI_2INTEGER 36 #define XMPI_2REAL 37 #define XMPI_2DOUBLE_PRECISION 38 #define XMPI_LONG_LONG_INT 39 /* non-LAM types start here */ #define XMPI_INTEGER1 40 #define XMPI_INTEGER2 41 #define XMPI_INTEGER4 42 #define XMPI_INTEGER8 43 #define XMPI_REAL4 44 #define XMPI_REAL8 45 #define XMPI_REAL16 46 #define XMPI_MAX_BASIC_TYPE 46 /* all above this are derived */ /* * structures */ struct xmproc { int xmp_cx; /* center x ordinate */ int xmp_cy; /* center y ordinate */ int xmp_state; /* process state */ int xmp_func; /* process function */ int xmp_wfunc; /* process wrapper function */ int xmp_tag; /* process tag */ int xmp_lrank; /* process local rank */ int xmp_lpeer; /* process local peer rank */ int xmp_lroot; /* process local root rank */ int xmp_gpeer; /* process global peer rank */ int xmp_groot; /* process global root rank */ int xmp_cid; /* process context ID */ char* xmp_commname; int xmp_cnt; /* process count */ int xmp_dtype; /* process datatype */ int xmp_nmsg; /* total # of messages */ int xmp_more; /* more messages */ LIST *xmp_msgs; /* list of messages */ struct xmmsg *xmp_curmsg; /* ptr current message */ char xmp_prog[TRDPROGMAX]; /* program name */ }; struct xmmsg { int xmm_tag; /* message tag */ int xmm_lsrc; /* message local source rank */ int xmm_gsrc; /* message global source rank */ int xmm_cid; /* message context ID */ char* xmm_commname; int xmm_cnt; /* message count */ int xmm_dtype; /* message datatype */ int xmm_nmsg; /* # of these messages */ }; typedef enum { XMPI_MENU_LABEL, XMPI_MENU_TEXTBOX, XMPI_MENU_TOGGLE, XMPI_MENU_RADIO } xmpi_widget_type; struct xmpi_menu_item { xmpi_widget_type xmpi_type; union { char *xmpi_text; // for TEXTBOX int xmpi_toggle; // for TOGGLE, RADIO } current_val; union { char *xmpi_text; int xmpi_toggle; } default_val; char *xmpi_label; int xmpi_radio_id; }; struct xmpi_node { char* name; int exclusive; int default_sel; int selected; }; /* * prototypes that make up the API */ #ifdef __cplusplus extern "C" { #endif int xmpi_sys_init(); void xmpi_sys_finalize(void); int xmpi_sys_run(char *, struct _gps **, int *); int xmpi_sys_kill(struct _gps *, int); int xmpi_sys_snapshot(struct _gps *, int, struct xmproc *); void* xmpi_sys_comm(struct _gps *, int); void* xmpi_sys_dtype(struct _gps *, int); int xmpi_sys_trace(int, struct _gps *, int); char* xmpi_sys_errorstr(int); char** xmpi_sys_hosts(void); char** xmpi_sys_logo(void); char* xmpi_sys_version(void); int xmpi_sys_get_vendor_info(xmpi_menu_item**, int*, xmpi_menu_item**, int*, xmpi_node**, int*); int xmpi_sys_get_schema_line(char*, int, char*, xmpi_node*, int, xmpi_menu_item*, int, char**); int xmpi_sys_parse_schema_line(char**, int*, char**, xmpi_node**, int*, xmpi_menu_item**, int, char*); int xmpi_sys_verify_schema_line(char*, char**); int xmpi_sys_get_run_options(xmpi_menu_item*, int, char**); int xmpi_sys_parse_run_options(xmpi_menu_item**, int*, char*); #ifdef __cplusplus } #endif #endif /* _XMPI_SYS_H */ xmpi-2.2.3b8/src/xmpi/xmpi_tr_dump.h0000664000076500007650000000140107725267006013055 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_tr_dump.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - dump traces into a trace file */ #ifndef _XMPI_TR_DUMP_H_ #define _XMPI_TR_DUMP_H_ void xmpi_tr_dump(Widget); void xmpi_tr_express(Widget); void xmpi_tr_cleanup(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_tr_file.h0000664000076500007650000000127607725267006013041 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_tr_file.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - select a trace file */ #ifndef _XMPI_TR_FILE_H_ #define _XMPI_TR_FILE_H_ void xmpi_tr_file(Widget); #endif xmpi-2.2.3b8/src/xmpi/xmpi_tr_segment.h0000664000076500007650000000136507725267006013563 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_tr_segment.h,v 1.3 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - select and view a trace segment */ #ifndef _XMPI_TR_SEGMENT_H_ #define _XMPI_TR_SEGMENT_H_ /* * global functions */ void xmpi_tr_select_segment(int); #endif xmpi-2.2.3b8/src/xmpi/xmpi_trace.h0000664000076500007650000000145207725267006012507 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_trace.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - tracing subwindow */ #ifndef _XMPI_TRACE_H_ #define _XMPI_TRACE_H_ /* * global functions */ void xmpi_tr_destroy(); void xmpi_tr_create(); int xmpi_tr_vcron(); void xmpi_tr_busy(); void xmpi_tr_unbusy(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_view.h0000664000076500007650000000170107725267006012360 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xmpi_view.h,v 1.2 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - XMPI main view */ #ifndef _XMPI_VIEW_H_ #define _XMPI_VIEW_H_ /* * public functions */ Widget xmpi_vw_create(Widget); void xmpi_vw_clear(); void xmpi_vw_update(int); void xmpi_vw_dbsetmode(int); int xmpi_vw_dbmode(); int xmpi_vw_getnprocs(); void xmpi_vw_init(); void xmpi_vw_commplot(struct _gps *, int, int, int); struct xmproc *xmpi_vw_getprocs(); #endif xmpi-2.2.3b8/src/xmpi/xmpi_vendor.h0000664000076500007650000000065107177075252012707 // // xmpi_vendor // // function: builds vendor pane // accepts: parent widget // #ifndef XMPI_VENDOR_H_ #define XMPI_VENDOR_H_ #include "xmpi_sys.h" void xmpi_vendor_build(Widget); // update the schema window void xmpi_vendor_update_schema(); void xmpi_vendor_update_schema_default(); void xmpi_vendor_update_run(); void xmpi_vendor_clean_options(xmpi_menu_item*, int, bool=false); void xmpi_vendor_cleanup(); #endif xmpi-2.2.3b8/src/xmpi/xpm.h0000664000076500007650000000142607725267006011161 /* * Copyright (c) 2001-2003 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 1998-2001 University of Notre Dame. * All rights reserved. * Copyright (c) 1994-1998 The Ohio State University. * All rights reserved. * * This file is part of the XMPI software package. For license * information, see the LICENSE file in the top level directory of the * XMPI source distribution. * * $HEADER$ * * $Id: xpm.h,v 1.4 2003/09/03 04:28:54 jsquyres Exp $ * * Function: - create a pixmap from an XPM pixmap description */ #ifndef _XPM_H_ #define _XPM_H_ #include /* * global functions */ void xpm_build(Widget, const char**, Pixel, Pixmap*, int *wth, int*); #endif xmpi-2.2.3b8/src/Bitmaps/0000777000076500007650000000000007725267017010707 5xmpi-2.2.3b8/src/Bitmaps/blank.xbm0000444000076500007650000000150406755625575012431 #define blank_width 30 #define blank_height 30 static unsigned char blank_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/camera.xbm0000444000076500007650000000241106755625575012570 #define camera_width 48 #define camera_height 32 static unsigned char camera_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x3f, 0x00, 0x00, 0xe0, 0x7f, 0x08, 0x20, 0xfc, 0x0f, 0xa0, 0x7a, 0xe8, 0x2f, 0x54, 0x0f, 0xa0, 0x42, 0x14, 0x50, 0x54, 0x08, 0xfc, 0xff, 0x17, 0xd0, 0xff, 0x7f, 0x14, 0x00, 0x2c, 0x68, 0x00, 0x50, 0x14, 0x00, 0xe4, 0x4f, 0x3c, 0x50, 0x14, 0x00, 0x1a, 0xb0, 0x24, 0x50, 0x14, 0x00, 0xc6, 0xc7, 0x24, 0x50, 0xfc, 0xff, 0xb3, 0x9a, 0xff, 0x7f, 0xf4, 0xff, 0x0d, 0x60, 0xff, 0x5f, 0xf4, 0xff, 0x56, 0xd5, 0xfe, 0x5f, 0xf4, 0x7f, 0x72, 0x80, 0xfc, 0x5f, 0xf4, 0x7f, 0x8b, 0xaa, 0xfd, 0x5f, 0xf4, 0x3f, 0x89, 0x00, 0xf9, 0x5f, 0xf4, 0xbf, 0x55, 0x55, 0xfb, 0x5f, 0xf4, 0xbf, 0x50, 0x00, 0xfa, 0x5f, 0xf4, 0xbf, 0xaa, 0xaa, 0xfa, 0x5f, 0xf4, 0xbf, 0x00, 0x00, 0xfa, 0x5f, 0xf4, 0xbf, 0x55, 0x55, 0xfb, 0x5f, 0xf4, 0x3f, 0x01, 0x00, 0xf9, 0x5f, 0xf4, 0x7f, 0xab, 0xaa, 0xfd, 0x5f, 0xf4, 0x7f, 0x02, 0x80, 0xfc, 0x5f, 0xf4, 0xff, 0x56, 0xd5, 0xfe, 0x5f, 0xf4, 0xff, 0x0d, 0x60, 0xff, 0x5f, 0xfc, 0xff, 0xb3, 0x9a, 0xff, 0x7f, 0x00, 0x00, 0xc4, 0x47, 0x00, 0x00, 0x00, 0x00, 0x18, 0x30, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x0f, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/comm.xbm0000444000076500007650000000035106755625575012274 #define comm_width 12 #define comm_height 12 static unsigned char comm_bits[] = { 0x00, 0x00, 0xf0, 0x00, 0xf0, 0x00, 0xf0, 0x00, 0xfe, 0x07, 0x9e, 0x04, 0x9e, 0x04, 0xfe, 0x07, 0x90, 0x07, 0x90, 0x07, 0xf0, 0x07, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/data.xbm0000444000076500007650000000035106755625575012252 #define data_width 12 #define data_height 12 static unsigned char data_bits[] = { 0x00, 0x00, 0x7e, 0x00, 0xcc, 0x00, 0x8c, 0x01, 0x0c, 0x03, 0x6c, 0x03, 0x6c, 0x03, 0x0c, 0x03, 0x8c, 0x01, 0xcc, 0x00, 0x7e, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/green.xbm0000444000076500007650000000156006755625576012445 #define green_width 30 #define green_height 30 #define green_x_hot 8 #define green_y_hot 8 static unsigned char green_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/kiviat.xbm0000444000076500007650000000157206755625576012637 #define kiviat_width 32 #define kiviat_height 32 static unsigned char kiviat_bits[] = { 0x00, 0xf0, 0x0f, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x80, 0x00, 0x00, 0x01, 0x40, 0xe0, 0x00, 0x02, 0x20, 0xf8, 0x00, 0x04, 0x10, 0xfc, 0x00, 0x08, 0x08, 0xfe, 0x06, 0x10, 0x08, 0xfc, 0x1e, 0x10, 0x04, 0xf8, 0x3e, 0x20, 0x04, 0xf4, 0x1e, 0x20, 0x02, 0xee, 0x0e, 0x40, 0x02, 0xde, 0x16, 0x40, 0x02, 0xbf, 0x3a, 0x40, 0x02, 0x7f, 0x3c, 0x40, 0x02, 0x00, 0x00, 0x40, 0xe2, 0x7f, 0xfc, 0x41, 0xe2, 0xbf, 0xfa, 0x41, 0xe2, 0xdf, 0xf6, 0x40, 0xc4, 0xef, 0xee, 0x20, 0xc4, 0xf7, 0x5e, 0x20, 0x88, 0xfb, 0x3e, 0x10, 0x08, 0xfd, 0x1e, 0x10, 0x10, 0xfe, 0x06, 0x08, 0x20, 0xfc, 0x00, 0x04, 0x40, 0xf8, 0x00, 0x02, 0x80, 0xe0, 0x00, 0x01, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0xf0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/light.xbm0000444000076500007650000000156006755625576012454 #define light_width 30 #define light_height 30 #define light_x_hot 8 #define light_y_hot 8 static unsigned char light_bits[] = { 0x00, 0xfc, 0x1f, 0x00, 0x00, 0xfe, 0x3f, 0x00, 0xf0, 0x03, 0xe0, 0x07, 0x60, 0xe2, 0x23, 0x03, 0x80, 0x13, 0xe4, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x12, 0x24, 0x00, 0xf0, 0xe3, 0xe3, 0x07, 0x60, 0xe2, 0x23, 0x03, 0x80, 0x13, 0xe4, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x12, 0x24, 0x00, 0xf0, 0xe3, 0xe3, 0x07, 0x60, 0xe2, 0x23, 0x03, 0x80, 0x13, 0xe4, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x0a, 0x28, 0x00, 0x00, 0x12, 0x24, 0x00, 0x00, 0xee, 0x3b, 0x00}; xmpi-2.2.3b8/src/Bitmaps/mesg.xbm0000444000076500007650000000155306755625576012302 #define mesg_width 30 #define mesg_height 30 #define mesg_x_hot 8 #define mesg_y_hot 8 static unsigned char mesg_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0x3f, 0x40, 0x00, 0x00, 0x20, 0x40, 0x00, 0x00, 0x20, 0xf8, 0xff, 0xff, 0x27, 0x08, 0x00, 0x00, 0x24, 0x08, 0x00, 0x00, 0x24, 0xff, 0xff, 0xff, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x24, 0x01, 0x00, 0x80, 0x3c, 0x01, 0x00, 0x80, 0x04, 0x01, 0x00, 0x80, 0x04, 0x01, 0x00, 0x80, 0x07, 0x01, 0x00, 0x80, 0x00, 0x01, 0x00, 0x80, 0x00, 0xff, 0xff, 0xff, 0x00}; xmpi-2.2.3b8/src/Bitmaps/next.xbm0000444000076500007650000000035106755625577012321 #define next_width 12 #define next_height 12 static unsigned char next_bits[] = { 0x00, 0x00, 0x00, 0x07, 0x00, 0x07, 0x00, 0x07, 0x20, 0x07, 0x30, 0x07, 0xf8, 0x07, 0xfc, 0x07, 0xf8, 0x03, 0x30, 0x00, 0x20, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/red.xbm0000444000076500007650000000154606755625577012124 #define red_width 30 #define red_height 30 #define red_x_hot 8 #define red_y_hot 8 static unsigned char red_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/run.xbm0000444000076500007650000000156106755625577012153 #define run_width 32 #define run_height 32 static unsigned char run_bits[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x06, 0x7f, 0xff, 0x7f, 0x67, 0xfc, 0xfe, 0xbf, 0xe7, 0xf9, 0xfd, 0xbf, 0xe7, 0xf9, 0xfd, 0xbf, 0xe7, 0xf3, 0xfd, 0xbf, 0xe7, 0xf3, 0xfd, 0xbf, 0xe7, 0xf3, 0xfd, 0xbf, 0xe7, 0xf9, 0xfd, 0xbf, 0xe7, 0xf9, 0xfd, 0xbf, 0x67, 0xfc, 0xfd, 0xbf, 0x07, 0xfe, 0xfd, 0xbf, 0xe7, 0xfc, 0xfd, 0xbf, 0xe7, 0xfc, 0xfd, 0xbf, 0xe7, 0xf9, 0xfd, 0xbf, 0xe7, 0xf9, 0xfd, 0xbf, 0xe7, 0xf3, 0xfd, 0x7f, 0xe7, 0xf3, 0xfe, 0xff, 0xe6, 0x67, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe3, 0x30, 0x6e, 0xd3, 0xdb, 0xbe, 0x6d, 0xd3, 0xdb, 0xbe, 0x6d, 0xd3, 0xdb, 0xb8, 0x6d, 0xd3, 0xe3, 0x3e, 0x6e, 0xcb, 0xf3, 0x3e, 0x6f, 0xcb, 0xeb, 0xbe, 0x6e, 0xcb, 0xdb, 0xb0, 0x0d, 0xcb, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; xmpi-2.2.3b8/src/Bitmaps/src1.xbm0000444000076500007650000000043406755625577012215 #define src1_width 16 #define src1_height 16 static unsigned char src1_bits[] = { 0xc0, 0x03, 0xe0, 0x03, 0xf0, 0x03, 0xf0, 0x03, 0xf0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xf0, 0x0f, 0xf0, 0x0f, 0xf0, 0x0f}; xmpi-2.2.3b8/src/Bitmaps/src2.xbm0000444000076500007650000000043406755625577012216 #define src2_width 16 #define src2_height 16 static unsigned char src2_bits[] = { 0xf8, 0x1f, 0xfc, 0x3f, 0xfe, 0x7f, 0x1f, 0xf8, 0x0f, 0xf0, 0x00, 0xf0, 0x00, 0xf8, 0xf8, 0x7f, 0xfc, 0x3f, 0xfe, 0x1f, 0x1f, 0x00, 0x0f, 0x00, 0x0f, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; xmpi-2.2.3b8/src/Bitmaps/src3.xbm0000444000076500007650000000043406755625600012202 #define src3_width 16 #define src3_height 16 static unsigned char src3_bits[] = { 0xf8, 0x1f, 0xfc, 0x3f, 0xfe, 0x7f, 0x1f, 0xf8, 0x0f, 0xf0, 0x00, 0xf8, 0xf0, 0x7f, 0xf0, 0x3f, 0xf0, 0x7f, 0x00, 0xf8, 0x00, 0xf0, 0x0f, 0xf0, 0x1f, 0xf8, 0xfe, 0x7f, 0xfc, 0x3f, 0xf8, 0x1f}; xmpi-2.2.3b8/src/Bitmaps/src4.xbm0000444000076500007650000000043406755625600012203 #define src4_width 16 #define src4_height 16 static unsigned char src4_bits[] = { 0x00, 0x1e, 0x00, 0x1f, 0x80, 0x1f, 0xc0, 0x1f, 0xe0, 0x1d, 0xf0, 0x1c, 0x78, 0x1c, 0x3c, 0x1c, 0x1e, 0x1c, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x1c, 0x00, 0x1c, 0x00, 0x1c, 0x00, 0x1c}; xmpi-2.2.3b8/src/Bitmaps/src5.xbm0000444000076500007650000000043406755625601012205 #define src5_width 16 #define src5_height 16 static unsigned char src5_bits[] = { 0xff, 0x7f, 0xff, 0x7f, 0xff, 0x7f, 0x07, 0x00, 0x07, 0x00, 0x07, 0x00, 0xff, 0x1f, 0xff, 0x3f, 0xff, 0x7f, 0x00, 0xf0, 0x00, 0xe0, 0x07, 0xe0, 0x0f, 0xf0, 0xfe, 0x7f, 0xfc, 0x3f, 0xf8, 0x1f}; xmpi-2.2.3b8/src/Bitmaps/src6.xbm0000444000076500007650000000043406755625601012206 #define src6_width 16 #define src6_height 16 static unsigned char src6_bits[] = { 0xf8, 0x7f, 0xfc, 0x7f, 0xfe, 0x7f, 0x0f, 0x00, 0x07, 0x00, 0x0f, 0x00, 0xff, 0x1f, 0xff, 0x3f, 0xff, 0x7f, 0x0f, 0xf0, 0x07, 0xe0, 0x07, 0xe0, 0x0f, 0xf0, 0xfe, 0x7f, 0xfc, 0x3f, 0xf8, 0x1f}; xmpi-2.2.3b8/src/Bitmaps/src7.xbm0000444000076500007650000000043406755625601012207 #define src7_width 16 #define src7_height 16 static unsigned char src7_bits[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf0, 0x00, 0x78, 0x00, 0x3c, 0x00, 0x1e, 0x00, 0x0f, 0x80, 0x07, 0xc0, 0x03, 0xe0, 0x01, 0xf0, 0x00, 0x78, 0x00, 0x3c, 0x00, 0x1e, 0x00, 0x0f, 0x00}; xmpi-2.2.3b8/src/Bitmaps/srcx.xbm0000444000076500007650000000043406755625601012310 #define srcx_width 16 #define srcx_height 16 static unsigned char srcx_bits[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xf0, 0x00, 0x78, 0x00, 0x3c, 0x00, 0x1e, 0x00, 0x0f, 0x80, 0x07, 0xc0, 0x03, 0xe0, 0x31, 0xf0, 0x30, 0x78, 0xfc, 0x3c, 0xfc, 0x1e, 0x30, 0x0f, 0x30}; xmpi-2.2.3b8/src/Bitmaps/stipple.xbm0000444000076500007650000000044506755625602013014 #define stipple_width 16 #define stipple_height 16 static unsigned char stipple_bits[] = { 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa}; xmpi-2.2.3b8/src/Bitmaps/tack.xbm0000444000076500007650000000043406755625602012254 #define tack_width 16 #define tack_height 16 static unsigned char tack_bits[] = { 0x00, 0x00, 0xe0, 0x07, 0xe0, 0x07, 0xc0, 0x03, 0x40, 0x02, 0x40, 0x02, 0x40, 0x02, 0xc0, 0x03, 0xe0, 0x07, 0xf0, 0x0f, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/trace.xbm0000444000076500007650000000156706755625602012440 #define trace_width 32 #define trace_height 32 static unsigned char trace_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x81, 0xff, 0xff, 0x81, 0x81, 0xff, 0xff, 0x81, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0x81, 0x80, 0x80, 0xff, 0x81, 0x80, 0x80, 0xff, 0xff, 0xff, 0xff, 0x00, 0x80, 0x80, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x81, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x81, 0x80, 0xff, 0xff, 0x81, 0x80, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/unzoom.xbm0000444000076500007650000000157206755625602012665 #define unzoom_width 32 #define unzoom_height 32 static unsigned char unzoom_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x40, 0x0c, 0x30, 0x02, 0xc0, 0x0c, 0x30, 0x03, 0xc0, 0x0d, 0xb0, 0x03, 0xfe, 0x0f, 0xf0, 0x7f, 0xfe, 0x0f, 0xf0, 0x7f, 0xc0, 0x0d, 0xb0, 0x03, 0xc0, 0x0c, 0x30, 0x03, 0x40, 0x0c, 0x30, 0x02, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/vcrbwd.xbm0000444000076500007650000000157207177076205012623 #define vcrbwd_width 32 #define vcrbwd_height 32 static unsigned char vcrbwd_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0xe0, 0xe0, 0x00, 0x00, 0xf0, 0xf0, 0x00, 0x00, 0xf8, 0xf8, 0x00, 0x00, 0xfe, 0xfe, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xfe, 0xfe, 0x00, 0x00, 0xf8, 0xf8, 0x00, 0x00, 0xf0, 0xf0, 0x00, 0x00, 0xe0, 0xe0, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xa4, 0xd3, 0x05, 0x20, 0x22, 0x10, 0x04, 0x20, 0x22, 0x10, 0x04, 0x20, 0x21, 0x10, 0x04, 0x00, 0x00, 0xc0, 0x05, 0xa0, 0x20, 0x10, 0x00, 0xa0, 0x20, 0x90, 0x00, 0x60, 0x20, 0x10, 0x01, 0x20, 0xa0, 0x13, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/vcrend.xbm0000444000076500007650000000157207177076205012615 #define vcrend_width 32 #define vcrend_height 32 static unsigned char vcrend_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x30, 0x00, 0x00, 0x1e, 0x30, 0x00, 0x00, 0x7e, 0x30, 0x00, 0x00, 0xfe, 0x33, 0x00, 0x00, 0xfe, 0x3f, 0x00, 0x00, 0xfe, 0x3f, 0x00, 0x00, 0xfe, 0x3f, 0x00, 0x00, 0xfe, 0x3f, 0x00, 0x00, 0xfe, 0x33, 0x00, 0x00, 0xfe, 0x30, 0x00, 0x00, 0x1e, 0x30, 0x00, 0x00, 0x06, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xa4, 0xd3, 0x05, 0x20, 0x22, 0x10, 0x04, 0x20, 0x22, 0x10, 0x04, 0x20, 0x21, 0x10, 0x04, 0x00, 0x00, 0xc0, 0x05, 0xa0, 0x20, 0x10, 0x00, 0xa0, 0x20, 0x90, 0x00, 0x60, 0x20, 0x10, 0x01, 0x20, 0xa0, 0x13, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/vcrfwd.xbm0000444000076500007650000000157206755625602012631 #define vcrfwd_width 32 #define vcrfwd_height 32 static unsigned char vcrfwd_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x07, 0x07, 0x00, 0x00, 0x0f, 0x0f, 0x00, 0x00, 0x1f, 0x1f, 0x00, 0x00, 0x7f, 0x7f, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x7f, 0x7f, 0x00, 0x00, 0x1f, 0x1f, 0x00, 0x00, 0x0f, 0x0f, 0x00, 0x00, 0x07, 0x07, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xa4, 0xd3, 0x05, 0x20, 0x22, 0x10, 0x04, 0x20, 0x22, 0x10, 0x04, 0x20, 0x21, 0x10, 0x04, 0x00, 0x00, 0xc0, 0x05, 0xa0, 0x20, 0x10, 0x00, 0xa0, 0x20, 0x90, 0x00, 0x60, 0x20, 0x10, 0x01, 0x20, 0xa0, 0x13, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/vcrplay.xbm0000444000076500007650000000157506755625603013022 #define vcrplay_width 32 #define vcrplay_height 32 static unsigned char vcrplay_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0xfc, 0x01, 0x00, 0x00, 0xfc, 0x07, 0x00, 0x00, 0xfc, 0x1f, 0x00, 0x00, 0xfc, 0x7f, 0x00, 0x00, 0xfc, 0x7f, 0x00, 0x00, 0xfc, 0x1f, 0x00, 0x00, 0xfc, 0x07, 0x00, 0x00, 0xfc, 0x01, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xa4, 0xd3, 0x05, 0x20, 0x22, 0x10, 0x04, 0x20, 0x22, 0x10, 0x04, 0x20, 0x21, 0x10, 0x04, 0x00, 0x00, 0xc0, 0x05, 0xa0, 0x20, 0x10, 0x00, 0xa0, 0x20, 0x90, 0x00, 0x60, 0x20, 0x10, 0x01, 0x20, 0xa0, 0x13, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/vcrrew.xbm0000444000076500007650000000157206755625603012647 #define vcrrew_width 32 #define vcrrew_height 32 static unsigned char vcrrew_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x60, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x00, 0x0c, 0x7e, 0x00, 0x00, 0xcc, 0x7f, 0x00, 0x00, 0xfc, 0x7f, 0x00, 0x00, 0xfc, 0x7f, 0x00, 0x00, 0xfc, 0x7f, 0x00, 0x00, 0xfc, 0x7f, 0x00, 0x00, 0xcc, 0x7f, 0x00, 0x00, 0x0c, 0x7f, 0x00, 0x00, 0x0c, 0x78, 0x00, 0x00, 0x0c, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xa4, 0xd3, 0x05, 0x20, 0x22, 0x10, 0x04, 0x20, 0x22, 0x10, 0x04, 0x20, 0x21, 0x10, 0x04, 0x00, 0x00, 0xc0, 0x05, 0xa0, 0x20, 0x10, 0x00, 0xa0, 0x20, 0x90, 0x00, 0x60, 0x20, 0x10, 0x01, 0x20, 0xa0, 0x13, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/vcrrev.xbm0000444000076500007650000000157207177076205012643 #define vcrrev_width 32 #define vcrrev_height 32 static unsigned char vcrrev_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0xc0, 0x1f, 0x00, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0xfc, 0x1f, 0x00, 0x00, 0xff, 0x1f, 0x00, 0x00, 0xff, 0x1f, 0x00, 0x00, 0xfc, 0x1f, 0x00, 0x00, 0xf0, 0x1f, 0x00, 0x00, 0xc0, 0x1f, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xa4, 0xd3, 0x05, 0x20, 0x22, 0x10, 0x04, 0x20, 0x22, 0x10, 0x04, 0x20, 0x21, 0x10, 0x04, 0x00, 0x00, 0xc0, 0x05, 0xa0, 0x20, 0x10, 0x00, 0xa0, 0x20, 0x90, 0x00, 0x60, 0x20, 0x10, 0x01, 0x20, 0xa0, 0x13, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/vcrstop.xbm0000444000076500007650000000157506755625604013043 #define vcrstop_width 32 #define vcrstop_height 32 static unsigned char vcrstop_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0xfc, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xa4, 0xd3, 0x05, 0x20, 0x22, 0x10, 0x04, 0x20, 0x22, 0x10, 0x04, 0x20, 0x21, 0x10, 0x04, 0x00, 0x00, 0xc0, 0x05, 0xa0, 0x20, 0x10, 0x00, 0xa0, 0x20, 0x90, 0x00, 0x60, 0x20, 0x10, 0x01, 0x20, 0xa0, 0x13, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/wiper.xbm0000444000076500007650000000156706755625604012472 #define wiper_width 32 #define wiper_height 32 static unsigned char wiper_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x84, 0x00, 0x20, 0x84, 0x10, 0x02, 0x84, 0x10, 0x42, 0x08, 0x10, 0xe2, 0x7f, 0x01, 0x42, 0x1e, 0x80, 0x05, 0xe8, 0x01, 0x00, 0x16, 0x70, 0x00, 0x00, 0x40, 0xe4, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0xc8, 0x01, 0x00, 0x00, 0xa0, 0x03, 0x00, 0x00, 0x84, 0x03, 0x00, 0x00, 0x10, 0xe7, 0x0f, 0x00, 0x40, 0x1f, 0x71, 0x00, 0x08, 0x27, 0x84, 0x00, 0x20, 0x86, 0x10, 0x02, 0x80, 0x14, 0x42, 0x08, 0x00, 0x4a, 0x08, 0x01, 0x40, 0x08, 0x21, 0x00, 0x00, 0x31, 0x84, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00}; xmpi-2.2.3b8/src/Bitmaps/yellow.xbm0000444000076500007650000000156506755625604012655 #define yellow_width 30 #define yellow_height 30 #define yellow_x_hot 8 #define yellow_y_hot 8 static unsigned char yellow_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/zoom.xbm0000444000076500007650000000156406755625604012325 #define zoom_width 32 #define zoom_height 32 static unsigned char zoom_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x02, 0x40, 0x0c, 0x30, 0x03, 0xc0, 0x0c, 0xb0, 0x03, 0xc0, 0x0d, 0xf0, 0x7f, 0xfe, 0x0f, 0xf0, 0x7f, 0xfe, 0x0f, 0xb0, 0x03, 0xc0, 0x0d, 0x30, 0x03, 0xc0, 0x0c, 0x30, 0x02, 0x40, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x30, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; xmpi-2.2.3b8/src/Bitmaps/Makefile.am0000444000076500007650000000214007722033602012636 # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.4 2003/08/23 13:40:52 jsquyres Exp $ # include $(top_srcdir)/config/Makefile.options noinst_HEADERS = \ blank.xbm \ camera.xbm \ comm.xbm \ data.xbm \ green.xbm \ kiviat.xbm \ light.xbm \ mesg.xbm \ next.xbm \ red.xbm \ run.xbm \ src1.xbm \ src2.xbm \ src3.xbm \ src4.xbm \ src5.xbm \ src6.xbm \ src7.xbm \ srcx.xbm \ stipple.xbm \ tack.xbm \ trace.xbm \ unzoom.xbm \ vcrbwd.xbm \ vcrend.xbm \ vcrfwd.xbm \ vcrplay.xbm \ vcrrew.xbm \ vcrrev.xbm \ vcrstop.xbm \ wiper.xbm \ yellow.xbm \ zoom.xbm xmpi-2.2.3b8/src/Bitmaps/Makefile.in0000664000076500007650000002542507725260240012671 # Makefile.in generated by automake 1.7.6 from Makefile.am. # @configure_input@ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.4 2003/08/23 13:40:52 jsquyres Exp $ # # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.options,v 1.1 2003/08/23 13:32:15 jsquyres Exp $ # srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_triplet = @host@ ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLEANFILES = @CLEANFILES@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBXMPI = @LIBXMPI@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ RM = @RM@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHELL_CMD = @SHELL_CMD@ STRIP = @STRIP@ VERSION = @VERSION@ WANT_LAM_XMPI_FALSE = @WANT_LAM_XMPI_FALSE@ WANT_LAM_XMPI_TRUE = @WANT_LAM_XMPI_TRUE@ XMPI_VERSION = @XMPI_VERSION@ X_CFLAGS = @X_CFLAGS@ X_CXXFLAGS = @X_CXXFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign dist-bzip2 noinst_HEADERS = \ blank.xbm \ camera.xbm \ comm.xbm \ data.xbm \ green.xbm \ kiviat.xbm \ light.xbm \ mesg.xbm \ next.xbm \ red.xbm \ run.xbm \ src1.xbm \ src2.xbm \ src3.xbm \ src4.xbm \ src5.xbm \ src6.xbm \ src7.xbm \ srcx.xbm \ stipple.xbm \ tack.xbm \ trace.xbm \ unzoom.xbm \ vcrbwd.xbm \ vcrend.xbm \ vcrfwd.xbm \ vcrplay.xbm \ vcrrew.xbm \ vcrrev.xbm \ vcrstop.xbm \ wiper.xbm \ yellow.xbm \ zoom.xbm subdir = src/Bitmaps ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = $(top_builddir)/src/xmpi/xmpi_config.h CONFIG_CLEAN_FILES = DIST_SOURCES = HEADERS = $(noinst_HEADERS) DIST_COMMON = $(noinst_HEADERS) $(top_srcdir)/config/Makefile.options \ Makefile.am Makefile.in all: all-am .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/config/Makefile.options $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Bitmaps/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ETAGS = etags ETAGSFLAGS = CTAGS = ctags CTAGSFLAGS = tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$tags$$unique" \ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = ../.. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) $(mkinstalldirs) $(distdir)/../../config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(HEADERS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool ctags distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am info \ info-am install install-am install-data install-data-am \ install-exec install-exec-am install-info install-info-am \ install-man install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags uninstall uninstall-am uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xmpi-2.2.3b8/src/Pixmaps/0000777000076500007650000000000007725267017010731 5xmpi-2.2.3b8/src/Pixmaps/camera.xpm0000444000076500007650000000241507050270202012600 /* XPM */ const char * camera_xpm[] = { "32 32 6 1", " s None c None", ". c black", "X c gray50", "o c white", "O c gray60", "+ c gray85", " ", " ...........X ", " ...o .XOo.XOo.XOo.X ", " ...o .XOo.XOo.XOo.X ....o ", " X............................X ", " X.o+++++++..........++++++++.X ", " X.o++++++.X.+.+.+.O..+++++++.X ", " X.o+++++.X.+.o.o.oXO..++++++.X ", " X.o+++++..+.o.o.o.oXX.++++++.X ", " X.o++++..+.o.o.o.o.+.XX+++++.X ", " X.o++++.XXo.o.o.o.oX+..+++++.X ", " X.o++++..+.o.o.o.o.+XX.+++++.X ", " X.o++++.XXo.o.o.o.oX+..+++++.X ", " X.o++++..+.o.o.o.o.+.X.+++++.X ", " X.o+++++..+.o.o.o.+XX.++++++.X ", " X.o+++++.X.+.o.o.+XO..++++++.X ", " X.o++++++.X.+.+.+.X..+++++++.X ", " X.o+++++++X..XXXXX..++++++++.X ", " X.o++++++++OO.X.X.O+++++++++.X ", " X............................X ", " XXXXXXXXXXXXXXXXXXXXXXXXXXXX ", " ", " ", " ", " ..X .X..X ...X . ..X ", " .X .X .. .X .X .. .X ", " ..X .X .X ...X .X .X ", " .X .X .X .X .X .X .X ", " .X .X .X .X .X .X ..X .X ", " ..X .X .X ..X.X .X..X ", " .X ", " .X "}; xmpi-2.2.3b8/src/Pixmaps/kiviat.xpm0000444000076500007650000000236207050270203012641 /* XPM */ const char * kiviat_xpm[] = { "32 32 4 1", " s None c None", ". c gray50", "X c black", "o c grey85", " ", " ", " .X.XXXXX. ", " XX. .X. ", " XX. o XX. ", " X. oo X. ", " X. ooo X. ", " X. oooo X. ", " X. ooooo X. ", " X. XXXXXXXXXoooooo .X ", " X. XXXXXXXXooooooo X. ", " X. XXXXXXXooooooo .X ", " X. XXXXXXooooooX X. ", " X. oXXXXXoooooXXX .X ", " X. ooooXXXXooooXXXXX X.", " X. ooooooXXXoooXXXXXXX X.", " X. ooooooooXXooXXXXXXXXX X.", " X. ooooooooooXoXXXXXXXXXXX X.", " X. ooooooooooooXXXXXXXXXXXXX X.", " ", " ", " ", " X. X. X. X. ", " X. X. ", " X. X. X. X. X. X. XXX. XXX. ", " X.X. X. X. X. X. X. X. ", " XX. X. X X. X. XXX. X. ", " X.X. X. X X. X. X. X. X. ", " X. X. X. X. X. X. X. X. ", " X. X. X. X. X. XX X. XX. ", " ", " "}; xmpi-2.2.3b8/src/Pixmaps/lam-logo.xpm0000444000076500007650000011261607050270203013065 /* XPM */ const char *NDlamlogo[] = { /* width height num_colors chars_per_pixel */ " 130 129 255 2", /* colors */ ".. c #060606", ".# c #068707", ".a c #860407", ".b c #928818", ".c c #ecc50b", ".d c #084709", ".e c #490607", ".f c #cd8909", ".g c #885a08", ".h c #052807", ".i c #a4c7ab", ".j c #494949", ".k c #cfc589", ".l c #0a4872", ".m c #eae5be", ".n c #812757", ".o c #888989", ".p c #050565", ".q c #c985a9", ".r c #54875c", ".s c #a7050f", ".t c #c9a60d", ".u c #d0e7d7", ".v c #072863", ".w c #046698", ".x c #f3e9da", ".y c #b64807", ".z c #7f0b3f", ".A c #076908", ".B c #b6a327", ".C c #86a7a2", ".D c #320407", ".E c #07a20a", ".F c #64a66c", ".G c #061871", ".H c #103764", ".I c #294e6c", ".J c #061609", ".K c #c6ba65", ".L c #f7f5df", ".M c #cfcece", ".N c #06499d", ".O c #28863b", ".P c #b08614", ".Q c #067907", ".R c #4486ac", ".S c #e4ab09", ".T c #4c3641", ".U c #c0670b", ".V c #a7a7a7", ".W c #99c7dc", ".X c #8f1717", ".Y c #6d040b", ".Z c #970509", ".0 c #cc8644", ".1 c #976908", ".2 c #ad0443", ".3 c #d29708", ".4 c #81174b", ".5 c #050647", ".6 c #070698", ".7 c #1d7830", ".8 c #b86e68", ".9 c #f6f5f6", "#. c #069609", "## c #272827", "#a c #5c665c", "#b c #a29528", "#c c #073997", "#d c #ccf6cc", "#e c #082999", "#f c #276682", "#g c #88abc1", "#h c #165970", "#i c #caa4ba", "#j c #f1c8d4", "#k c #678ba1", "#l c #dbb407", "#m c #6f142e", "#n c #dd9b09", "#o c #edcc8e", "#p c #071796", "#q c #160609", "#r c #1a862c", "#s c #ac3a04", "#t c #e3e6e5", "#u c #a4d6c4", "#v c #840725", "#w c #324539", "#x c #906a78", "#y c #fcfefc", "#z c #ac1a2c", "#A c #0558a5", "#B c #063707", "#C c #b586a1", "#D c #06067b", "#E c #b50519", "#F c #081642", "#G c #e6b707", "#H c #9e8a1c", "#I c #162c66", "#J c #f0ebee", "#K c #901949", "#L c #6f8476", "#M c #13762b", "#N c #676869", "#O c #8c3962", "#P c #daa707", "#Q c #1f3d6c", "#R c #1c4e5c", "#S c #07297c", "#T c #d2d8d6", "#U c #b59a18", "#V c #700c36", "#W c #050624", "#X c #065806", "#Y c #b8d8b9", "#Z c #a7a446", "#0 c #d977a7", "#1 c #158a18", "#2 c #98063c", "#3 c #8fb696", "#4 c #ba7a0e", "#5 c #377592", "#6 c #ecaed0", "#7 c #ae9934", "#8 c #870b09", "#9 c #181818", "a. c #2f953a", "a# c #79a8bd", "aa c #90476c", "ab c #ccc47a", "ac c #b44674", "ad c #7abf8a", "ae c #525555", "af c #a76785", "ag c #a2486c", "ah c #506490", "ai c #ac2c58", "aj c #8e7811", "ak c #cabb86", "al c #c4c28c", "am c #73af83", "an c #cb97ad", "ao c #e6a964", "ap c #6c3131", "aq c #b67997", "ar c #c2c5c7", "as c #48995c", "at c #d1d5a7", "au c #849694", "av c #e2c45e", "aw c #6e9f79", "ax c #216a1f", "ay c #a5b9b9", "az c #6998b2", "aA c #5797a1", "aB c #89b4c6", "aC c #ac523c", "aD c #275d7f", "aE c #445e94", "aF c #383838", "aG c #12274c", "aH c #103454", "aI c #a27a0e", "aJ c #d7bac0", "aK c #a25781", "aL c #f4e492", "aM c #f2d78a", "aN c #eed7de", "aO c #727572", "aP c #481614", "aQ c #bbb664", "aR c #e195bf", "aS c #0769ae", "aT c #c0d9de", "aU c #bf5709", "aV c #4b7794", "aW c #281824", "aX c #285630", "aY c #885870", "aZ c #644a50", "a0 c #b86c90", "a1 c #bd0753", "a2 c #74badc", "a3 c #e4b84c", "a4 c #b73a69", "a5 c #b7c9b9", "a6 c #5c5c5c", "a7 c #7d7c7c", "a8 c #dfcb96", "a9 c #356989", "b. c #98999a", "b# c #b8b8b9", "ba c #f7ecbe", "bb c #547854", "bc c #ecd66c", "bd c #e4be3c", "be c #174870", "bf c #8d285d", "bg c #97aba7", "bh c #398647", "bi c #5888a4", "bj c #b790a4", "bk c #c97811", "bl c #c87c98", "bm c #e0daaf", "bn c #97b6cb", "bo c #479059", "bp c #e2f4f0", "bq c #789270", "br c #dddcdb", "bs c #365d88", "bt c #e48ab4", "bu c #bbd1d5", "bv c #06ae0c", "bw c #a4d0a8", "bx c #50b660", "by c #a9cfd7", "bz c #c49674", "bA c #f2dab4", "bB c #de992a", "bC c #5a0409", "bD c #cc8a34", "bE c #18241d", "bF c #d2972e", "bG c #247a3e", "bH c #7692a6", "bI c #163a18", "bJ c #643254", "bK c #589b67", "bL c #28693e", "bM c #789daf", "bN c #a47e34", "bO c #f4b8dc", "bP c #98aebc", "bQ c #195616", "bR c #b5a950", "bS c #c76992", "bT c #c4e3d9", "bU c #b7577f", "bV c #106d28", "bW c #0b387c", "bX c #2c4b81", "bY c #175a7e", "bZ c #1b6382", "b0 c #711646", "b1 c #59121c", "b2 c #3c5244", "b3 c #e4b46c", "b4 c #d4cea9", "b5 c #d1e8f3", "b6 c #e1cdd2", "b7 c #bca2b4", "b8 c #daa8be", /* pixels */ "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y.9#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybrbq#y#y.9#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#ybTaea5.9#y.9#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#yay..b.#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybp#yaO..a7#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y.9#y#w.JaO#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#T....au#y.9#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y.9ae....bE#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybpbE.J..aO.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#Y......#9#J#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9bE...J.J#N#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ya5.....J..#9#J.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#w.....h..aO.9.9#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.u....#B#B.Jbbbp.9#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.j...J.d.h.J#L.L#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#yb....J.h.d#B.h.i#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybp.J.J.J.d#X#B.dbu#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#L...J.dbQbQ.haX#y#y.9.9#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.9#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#T.J.J.h#X#X#B.h.C#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.9.m#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9aF...h.d#X.A#B#Ba5#y#y#y#y#y#y.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.Lavba#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9aO...J.d#X.A.A.JbL.9#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybabF#o#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y.9b....h#B#X.Q.A.A.h#3bp#y.9#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.L#yaLbkbk.9#y.xat", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#yar...J#B#X.A.#.Q#B#Bam#y.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#ybabB.U#4.L#ybA.bbm", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y...J.d#X.A.#.Q.Q.haxbp.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#yaL#4.U.3.L#ya8.b.k#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y.9#y.9a7...h.d.Q.Q.#.Q.A.d.F#y#y#y#y.9.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#yaLbD.UbkbFbA#yaQajbR#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#yay..#B#X.A.##.#..##XbQ.u.9.9#y#y#y#y.9#y#y#y.9#y#y.9.9#y#y#y#y.9#y.9#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.9#JbabDaUbk#n.3#obm.b.b#7.L#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#t#9.h.d.A.Q#.#.#..Q.daxala8aMbcbdaobB#n.fbBb3aoaoa8#oaMbAbAbaba.9.9#y.9#y#y#y#y.9#y#y#y.9#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#obB.U.U.f#n.3aj#Z#baI.Bba#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#9.h.d.A.Q#.#.#..#.A#Mbu.9#y.9.L.LbaaLavbd#P#nbk#nbk.fbkbk.fbF.f.3bd#o.mba.L#y.9#y.9#y#y#y#y.9#y#y#y.9#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9#y#y#y#y.9#y#yaM.U#saU.f#P#l#P.1.b#b#H#b.m.9#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#yb2.h#X.A.Q.#.E.E#..A#Mbo.kalbRbR.KbRbR.K.KbRa3.B.t.t#G#G.S#n#n#n#n#n#n#n.f.3bFbBavavaMbAba.x#y#y#y.9#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y.9#y#y#y#y#y#y#y#ybp.L.mb3.0aU.y.U.f#G#l.S#P.1ajaI.b.B.m.9.9#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#yaO.h.d.A.Q#.#..E#..Q.Q.7#T#y.x#t.mb4.kakbR#b.baj#H#H#U.B.t#P#G.c#G.S.S.S#P#P.S#P#n#n#n.3.f.f#nbBaMaM.x.9#y#y.9.9#y.9#y#y#y.9#y.9#y#y#y#y#y#y#y#y.9.xaobk#s#s.ybk.f#G.c#G#G.3.gbN#H.b.bbr.9.9#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.o.J#X#X.Q.##.#.#..##r.7#3bp#y.9#y.9#y#y#y#ybmat.k.K#Z#7#H#U#U.3.t#l#G#P.c#G.S#P#P#P#P.S#G#P.3.3.3.3.f#nbBa3aMbA.L.L#y.L#y#y#y#J#y.9.9.xbabA#ob3.y.y#saUaUbk.f.3#G.c#G#l.f.1aj.b#H#bb4#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybb#B.A.Q.Q.##.#..#.##M#Mbo#y#y#y#y#y.9#y#y#y#y#y.9.9.9#ybmaQ#b#H#b#H#U#l.c#l#G#G#l#l#l#G#l#P#l#P#P#P.S#P#P#n#n#n#n.f.3bBbF.fbD.Ubkbkbk.UaUaUaUaU.Ubkbk#n#P#l.c.c.c.c.t.1.g#b.b.b#b.x.9#y.9#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#yb..J.d.#.#.##..#.#.Q.Q.7.O#y#y#y#y#y.9#y#y.9#y#y#y#y#y#y#y#y.LataQbR#7#b.B.t#l.c.c.S#G#G#G#l#P.S#l#P#P#l#P#G#P#P#P.3#P.3.f.f.f.f.f.fbkbk.f.f.f.f.f.3.3.S#G#G#G#l#G#PaIaj#b#b#b#7br#y#y.9#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybg.J#X.#.##..#.Q.#.Q.A.7bG.9#y.9#y#y#y#y#y#y.9#y#y.9#y#y#y#y#y.9.9#y#yb4bR#H#b#U#P.c#G.c#G.c#G#G#G#l#G#G#G#G#G#P#P#n.S.S.S#n.3.3.S#n#n#n#n#n#n#n.S#P#l#l.c.c#l#l#n.gaj#U#Uaj#Z.x.L#y#y#y#y.9#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybg.J#X.Q.##..#.#.#.Q.QbGbh#J#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.L.9#y#y#y.xab#Z#7#U.t#P#G#G#G#G#G.c.S#G.S.S.S#l.S#P#P#P#n#P#n#n#n#n#n#n.3#n#P#P.S#P#G#l#l#l.3.PaI#H#H#H#b.K#t#y#y.9#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#3.h#X.#.##..Q.Q.Q.Q#M.7bo.9#J#J#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9#y#y#y#y#y.L#y#y#y.Lak#b#H#U.t#G.c#G#G#l#G.c#G.c#G#G.S#P.S.S#P#P#P.S#P.3#n.3.3#n#P#P#l#G#l.S#PaI#H.b#H#b#Zbm#y.9.L.9#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9au.h.A.Q#..#.#.Q.Q.QaxbGam#yaua7#J#J.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9#y.Lal.b#U.B.t.c#l#G#l#G#G#G#G#G#G.S#l.S.S.S.S#P#n#n#n#n#n#P#n#P#G#l.S.f.1#b.b#H.b#Z.L#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybb#B.A.##..#.Q.Q.Q#MbGbh#3bp#aaZar#t#y#y#y#y#y#y.9#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.LbmaQ#b#U#U.t#G.c#G.S#G.S#l#G.S#P.S#P#n#P#n#P.3#P#n.S.S#G.S#P.Paj#b#H#U#7b4.L#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#L.d.Q#.#..#.Q.Q.Q.QbGbobTb##waF.Vbr.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.9#y#J.K#b#H.B.t.t#l#l#l#G#G#G#G#G.S#P#P#n#P#P#P#P#l.S#P.taI#H#b.b.b.bbm#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#w.d.#.E.#.Q.Q.Q.Q#rbo.F#ta7##aWb.br#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y.9#Jbmab#b#H#U.B#P#l#l#G#G.S.S#P#n#P#l#P#G#G#P.t.P#b#H#b#b#7ak.L#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#ybI#X#..E.#.Q.A.A.Q.Oas.ib#ae..aWb.br#y#y#y.9#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9#y.LbmaQ.b.b#b#U.t.t#l#l#G#G#G.S#l.t.faI.b#b#H#H.bbRaL#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#tbI.Q#..E.#.Q.Q.Q.#bKadbg.o.T..##.o.M.9#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.L.L.mabaQ#b#b#H#U.P.t.t#U#U#b.PaC.b.B#H.b#bak.m#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9a5#B.Q#.#..#.Q.A.Qa..F.ib.#a#9....b..M#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9#y#y.9#y#y.L.mak#Z.b#b.b.b#H#HbN#K.b#b.Kat.L#y#y.9#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#ya5#B.Qbv#..#.Q.#.#boadb.aOaF......a7ar#y#y#y#y#y#y#y#y#y#y#y.9.9#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.L#y#y.9.9#y.9.mbmakaQ.KaQbzaiak.k.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y.9bb.d.E.E#..#.Q.#.#as.rae.T#9......aOar#J#y#y#y#y#y.9#y#y#y#y#J.9#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y.9#y#y#y.9#y.L#y#y#6bS#yaJ#J.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#ybI#X#.#..#.Q.Q.#.ObhbLbE..........a6ar#J#y#y#y#y#y#y#y#y.9.9.V.o#y.9#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y.9#y#y#y.9#y#y#yaR.8#yan.x#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.L#B.Q.E.E.#.Q.#.#.7.ObLb2...........Tay#t#y.9#y#y#y#y#y#y#y#yb.aFarbr#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y.9#y#y#y#y#y.9#ybt.8.9#C#J.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybT#B.Q.E#..Q.#.#.QbG.7bobu#9........aFb##t.9#y#y#y#y#y#y#y#y.9.o#q.V.M.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9bS#x#yaf#J.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.9ar#B.#bv.E.Q.#.##1.7#r.C#yae#q......##.V#t#y#y#y.9#y#y.9.9.9#y.j#9.o.M#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#ya4aq.xaK.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#ybg#B.#bv#..#.##1.O.7bG#Y.9ar........#9b.br.9#y#y#y#y#y#y#y#y#yaFaFa7ar.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#J#K.8aNaK.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9bq#X.E.E.#.#.##r.7.7bL#y#y#y#N#q.......obr#y#y#y.9#y#y.9.9#y.9##aeae.M#J#y#y#y#y#y.9#y#y.9#y.9#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y.9#J#v.8aJaa.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybq#X#.#..#.#.Q.ObG.Q.C#y.9#ybr#9......a7.M#y#y#y#y#y.9#y#y#y#taWa7a6br#J#y#y#y#y.9#y.9.9.9#y#y#y#y.9#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#j.Y#Canaa.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybb.A#..#.#.#.#bGbG.Obp.9.9#y.9aF......a6ar.9.9#y#y#y#y#y#y#yar##.V.j#T#J#y#y#y.9#y#yb#ar.9.9#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y.9b8bCbjaqaa#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybpbQ.Q.E#1.#.##1#M#Mad#y.9#y#y.9.o.......jar.9#y#y#y#y#y#y.9#y.V.jb###.M#J.9.9#y#y#yb#.T#N#J#y.9#y#J#J#y.9#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#yanbCaRaKaK#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y.9bQ.#bv.#.Q.##r#MbLbT.9#y#y#y#ybr#9....aFb#br.9#y#y#y#y.9#y#y#Nb.br#Nb##t.9#y.9brb.a6.Ja6#J.9.9#JaO.o#J#y#y#y.9.9#y#y#y#y#y#y#y#y#y#y#y#y#ybS.YblaaaK#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9.u.d.#bv.#.##1.7#rbK#y#y#y#y#y#y#y#N....aFb##t.9#y#y#y#y#y#y#Ja6#y#y.V.V#J#y#y.9.MaFaW..aO#y.9bra7bE..b##J#y#y.V.M#y.9#y#y#y#y#y#y#y#y#y#y#yai.abSbfaf#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9#ya5#Xbv.E#..Q#M.O#Mad#y#y#y#y.9#y#y#t....##b##t#y#y#y#y#y#y.9b#.o#tbr.o#N#t#t.9#y#y##.....V#yb#.j..###9b#.9.9.VaF.jbr#J#y#y#y#y#y#y#y#y#y#ybO.z#8bSbfaf#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.i.A.E.E#.#1.O#r.O.u#y.9#y#y#y#y#y.9#N..#9.V.M#y#y.9#y#y#y#yaO#9......aFarbr#y#y#yb.....a6aF....aF.oaeb##taF##.V#qb##t.9#y#y#y#y#y#y#y#y#y.qbC.Xa0b0a0#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.r.A.E.E.##M.7#Mam#y.9#y#y#y#y#y#y#yb#..##b.b6#y#y#y#y#y#y.o#q...JaF#qaFb##t.9#y#y.M#9.......JaFa6br.V##..aF.ob#bE.o#J.9#y#y#y#y#y#y#y#y.9ac.e#zafb0#C#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#yaX.Q.E.E#..7.7bGbT.9#y#y#y#y#y#y#y#ybr....b.#T#y.9#y#Jb##N#9..aFa6.V.VaFb##J.9#y#y#taF..#q##.j.o.M#y#J...j#Nb#.9#N.j#t.9#y#y#y#y#y#y#y.9#j#2.Y.2.n#2#C#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybQ.##.#.#1bG.7as.9.9#y#y#y#y#y#y#y#y#J....b.#J#y#ybraO##aF..##a6b##J#yaF.M.9#y#y#J#N.J..bEae.o#J#y#y#y##aO.V.9.9b####Tbr.9#y#y#y#y#y.9#y.q.Y.Z#v.z#K#C.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#T.d.#.E#..7.7bV#3#y#y#y#y#y#y#y#y#y#y#yae..#T#y#Jb#bEaW.oae#9#Nb#.9#y#yae.9.9#J.o##.jaW..##b.br#y#y#y#yaeaOar#J#y.M##arbr.9#y#y#y#y#y#y.9bUbC.a#v.4.4b8.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#ya5#B.E.E#1.7.7bGbT#y#y#y#y#y#y#y#y.9#y#yar..br#Jae#qaFb#.V...j.obr#y.9#y#N#t#J.j.Jaeb#.j..aFb##t#y#y.9.9aO.j.M#J#y#J#9b.br.9#y#y#y#y#y#y.9bf.Y.Z#vb0.naN.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9ay#X.E.E#rbGbVaw#y#y.9#y#y#y#y#y#y#y#y#y#J.jae##..aF.V#ya6aWaOar.9.9#y#y.oaW#9aF#N.obr.o...jb##J#y#y#y.9a7aear.9#y#y.j.jbr#J#y.9.9#y.9#y#j.Y.a#E#2.4bf#J#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#3#X.Ebv.7.7.7aT.9#y#y#y#y#y#y#y#y.9.9#y#y#N....aFb.bp.9#9#Nb##y#y#y#y.VaF.Jae#N.obr#y.M...jb##J#y.9.9#y.o.jarbr#y#y.o..ar#t.9#y#y#y#y#y#0bC.a#2.4#K#O.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.Law.A.E.E.O.Obobp#y#y#y#y#y#y#y#y#y#y#y#y.o#9..aFb..9.9.jaF.V#J.9.9ar.o.jaF..aOb.#J#y#J#J...jb##t#y#y#y#yb.##b#br#y#yb#..a7br#y.9#y#y.9#Ja4.Y.a#2.z#KaK.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9.9aw.Q.E.#bG#Mam#y#y.9#y#y.9#y.9#y.9#ybr.j..###9.V.9#ya7...M#y#y#T#N#qae.M#N...oar.9#y.9.9..aear#t#y#y#y#y#NaWb##t#y#ybr.J#w.M.9#y#y#y.9#6#v.Y.Z.s.z#Kaq#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9bK.Q.E.7.ObV#3.9#y.9#y#y#y#y.9#y.9b####9a6a7...M#y#t#Nb##J#J.o#qbEaeb.#J.V..a6.M#y#y#y#y##.jar#J#y#y.9#yb#.oar#t.9.9#taW##ar#t.9#y.9#ybS.Y.Y.Z#2.z.4aq#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9bh.#.#.7#MbGaT#y#y.9#y#y#y#y#y.9.o..aW.jb.ar###t#ta6b#.V##..aF#N#N.Vbr#y.M...Tar#J#y#y#y#N.jar#t.9#y.9.9#J#t#t.9#y#y#J##...obr#y#y.9.9.4bC.a.s#2b0.4an.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#yax#.#1.O.7bK#y#y.9#y#y#y#y#y.9a7..aF.ja7br.9.o.oaeaW##..###aaO.ob##t#J#yar..#9.V#t.9.9#yb..jbr#J#y#y#y#y#y#y#y#y#y.9.9aF#WaF.M#y#y#yb8.Y.a.Z.2#2#K.nb6#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#yax.##rbG#M#3#y#y#y#y#y.9#y.M.j..aF#Nb.br#y#ya7......##.jaO.oar#J#y#y.9.9.M....b.br.9#y#yb#aeb6bp#y.9#y#y#y#y.9#y#y#y#yaeaW...o.9#y.9agbC.Y.s.2.2.4bf#J#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9.A#1a.bV.O.u.9#y#y#y#y.9#t.T..aFa6.Vbr.9#y#yb.aF##aFa6a7b#br#J.9#y.9#y#y.M.....o.M.9.9#yara6.M#J.9#y#y#y#y#y#y#y#y#y#yb..J.J.T.9#yaN#v.Y.Y.a.2#2.4#O#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#d.A#1asbGaw.9#y#y.9#y#y.V##bE.jaOb##J#y#y#y.9br.V.ob.arbr#y.9#y#y#y#y#y#yar#9..#N.M.9#y.9b6aObr#J#y#y#y#y#y#y#y#y#y.9#ybr#qbE..bP#ybS.Y.Y.s.s.2#K.zaK.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9.i.Abx.FbV.i#y.9#y.9.9.V..#9aFa7ar.9#y#y#y#y.9.9#t#t.9#y.9#y#y#y#y#y#y#y#yar#9..#Nar#J#y#y#Tb.#t#J#y.9#y#y#y#y#y#y#y.9#y#J##.J#q##b#bJ.a.Z.s.2a1.z#KaY.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#Y.Aadas#M#u#y.9#y.9.o..##ae.oar.9#y.9#y#y.9#y#y#y#y#y#y#y#y.9#y#y#y#y#y#yar#9..aear#t#y#ybrb.#J.9#y#y#y#y#y#y#y#y#y#y.9.9.j.J....aW#qbC.s.Z#Ea1#K.zaf.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#Y.AbTbh#r#t#y.9.9#y.V.j#N.obr.9#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y.9.9b###..##b##t#y#y#J.V#t.9#y#y#y#y#y#y#y#y#y#y.9#yau....#q.D.D.a.s.s.2#2.4.z#C#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#ya5#Xbpbh.Obp#y.9#y#J.Mb#.V#T.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.V##....b.br#y#y#J#t#J.9#y#y#y#y#y#y#y#y#y#y.9#y.M#q..#q..#q.Z.s.s.2#2.4.4#C.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.ibhbpbGbo.9#y.9#y#y#y#J#y.9#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.V##....a7br.9#y.9#y#y#y#y.9#y#y#y#y#y#y#y#y#y#yb6..#9bE#q.Y.s.s#E.2#vb0.4#i#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.Cam.L.7#3#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y.oaF#q..#N.M.9#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#ybr..#9#q.D.a.s.a.s.2#V.4.naN#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#3ad.9#r.i#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#N##.....jar#J#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#yar#wbJ#q.e.a.Z.s.2#2.4.nbf#J.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.Lbhbw.ubG.u#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9a6aF....bE.Vbr#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9.ub#bJ.e.Z#E#E.s.2#2#V.zaa#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.L.7#Y#Yas#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#J.j##....#qb.#t#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9b8.z.Y.Z#E.s#E.2#2b0.naq.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9#.bu#YbK#y#y.9#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#t.j##.......o.M#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#ybS#V.a.a.Z.Z.sa1#2.4.z.q#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.La..u.i.F#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9araF#9......a7ar#J#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#Jai.a#8.s.s.Z.2.2.z.4.nb6#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9a..u.iay.9.9#y#y.9#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9#y.V.j#9......#Nar.9#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9#y#j#2.a.s.Z#E.s#Ea1.zbfbfaN#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#da..9bwbw.9#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#ya6bE.........jarbr#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#yaR.Y.s.Z.s.s.Z#Ea1.4.4#Obp.9#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.Lbx#y#ubwbp.9.9#y#y.9#y.9#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#t............##.V#t.9#y#y#y#y#y#y#y.9#y#y#y#y#y#y#Jag.a.s#E#E.Z.s.2.2#V.4aK#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybpaAaVaDaH#Q#Q.Ibsbia#bybp#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.9#y#y#J#N##........#qb.br#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9aN#K.a.s.s.Z.Z.a.2.2.4.4aK.9#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#yb5#kaG#W#W.5.5#W#W.5.p.5.5.5bebi.Wb5.9#y#y.9.9#y.9#y#y#y#y#y#y#y#y#y.9#y#y.9#Jar.o.j........aO.M.9#y#y#y#y#y#y#y#y#y#y#y#y#y#yaR.a.s.Z.a.Z.Z.aa1.2b0.4aq#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9bp#gaG#W#W.5.p.5.5#D#D.6.p.p.p.5.p.5.5#QbibyaT.9#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#J.Mb#.VaO##.....j.M#J#y#y#y#y#y#y#y#y#y#y#y.9#y.9bU.a.a.s.Z.Z.a.Z.2#2b0.zaq#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y.9bnaG.J#W#W#D#D#D.p#D.6.6.6.6.p.6.6#D#D.6.6.p.5#FbsaBb5.9#y.9#y#y#y.9#y.9#y#y#y.9.9#y#y.9#tarb.a6..#9.V#t#y.9#y#y#y#y#y#y#y#y#y#y.9#J#K.a.a.s.s.a.Z#Ea1#2b0.4#C.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#yaTbi.....5.5.p#D#D#D.p#D.6#D#D#D.6#D.6.6#p.6.6#D.p.6.p.GbWaz.Wbp.9#y#y.9#y#y#y#y#y.9#y#y#y#y#y#t.Mb#.j...obr.9#y#y#y#y#y#y#y#y.9#y#y#y#j#v.Y.a.Z.Z.Z.Z.s.2.z.nbfaJ.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9#y#y#g#F.....p.6.6#D.p#D.6#D#D.6.p#D.p#D.6.6.6#p#p#p#p.G#p.6.6#D.p#Dbeazb5.9.9#y.9#y.9#y#y.9#y#y#y#y.9#J#T.V.ob#br.9#y#y#y#y#y#y#y#y#y.9#y#y#6#V.a.s#E.Z.a.Z.Za1.z.4bf.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y.9#k....#W.G.G#e#p#D#D#D.6.p.p#D.6.p.6.6.6.6#p.6#p#p#e#p#p#e#p.6.6.6#D.pbWbMb5.9#y#y#y#y#y.9#y.9#y#y#y#y#Jbrarbr.9#y#y#y#y#y#y#y#y#y#y#y#y#ybtbC.a.s.Z.Z.Z.a.a#2.zb0#O.9#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y.9#y#y#yar.I..#W.5.vbW#S#e#p.p.p#D#D#D#p.G#e.G.G#e#e#c#e#c#S#e#e#S#e#e#c#e#e#p.6#D.p#D#SbsaBbu.9.9.9.9#y#y#y.9.9#y#y.9#J#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y.q.Y.Y.Z.Z.Z.a.Z.Z.2#V.4af#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y.9a5#W..#W.G.N#A.N#S.v.G#p.6.G#p#S#c#c.N.N.N#A#A#A#A#A.N#A.N#A.N#c#c#c#c#e#c#e#p.6.6.5.5#Qazb5#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9bSbC.a.Z.Z.Z.a.a.a.Z#Vb0aq#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#Tbs..#W.pbW#A#A#c#S.G#p#D#D.G.G#e#S#e#S#cbW.N#A.N#A#A#AaSaSaSaSaSaS#AaSaS#A.N.N.N.N#e#S.G#D#D.GbsbMaT.9#y#y.9#y#y#y#y.9#y#y.9#y#y#y#y#y#y#y.9#y#y.9a0.Y.a.Z.a.a#8.a.Z.s#m.zaq.9#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y.9#y.9bu#Q....#S.N.w.N#c.G#D.p.p#D#D.G.p.G.v.vaHaH.HbW.H.v.v.vbW#cbW#c.N#AaS#AaSaS.w.w#AaS#A.N#A.N#c#S.p.5.p.Ga9.Wb5.9#y#y#y#y.9#y#y#y#y.9#y#y.9#y#y#y.9#y#yaq.Y.Z.Z.a.Z.a.Z.s.Z.Y#Vaq#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y.9#y#y#y#y#y#y.9#ybn.J..#W.v.N.N#e.G.p.p.5.5#F.H#Q#QbeaDbYbY#h#hbYbZbY#hbe.l.l.H.l.H.lbWbW#S#S#e#c#c.N#A#A#A#A#A#A#A.N.N#S.p.5.p#SbsbiaBb5.9#y.9.9#y.9.9#y#y#y.9#y#y.9#y#y.qbC.Z.a.a.a.a.a.Z.s.Yb0af#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y.9#y#y.9#y#y.9by.....5#c.N#e#p.5.5.5.G#QaD#RbZbZ#h#R#h#haDa9#g#g#g#g#gbg.CaBa##5#fbYbYbY.l.l.H.v.v.G.G#S#e#e#c.N.N.N#A#A.N#A#c.G#D.p.5bW.Ra2b5.9#y#y#y#y#y.9.9.9.9#y#y.9aRbC.a.a.a.a.a.a.a.Z.ab0#O.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y.9#y#y.9aT#W...5#S#S.G.5.5.G.H#R#f#hbZbZa9.RbibHaBbubp#y#y#y#y#y#y#y#y#y#y#J.9bubM.Cazbibia9a9#h.l.H.H.v#S#ebW#S#S#c#c#c#c.N.N#c#e.G.p.G#ca9biaBbybub5bp.9.9#y#y.9.9aN.a.a.Z.Z.a.a.Z.Z.Z.a#m.n.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y.9.9#y.9#yb#..#W.p#p.p.p#WaH#f#h#hbY#h#haV#gbpbp#y#y#y#y#y.L#y.9#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y.L.9a5bna#.R#5#f#hbY.l.l#hbeaHaH.v.G#SbW#S.v#D#D.p.5.p.p.5.v#QbY.R.Ra#aB.Way#V.a.Z.Z.a.a.a.Z.Z.a.4bfaN#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y.9b##F...5.p#D#FaHaD#fbYaDa9bibMbu.9#y#y.9#y#y#y.9#y#y.9#y#y#y#y#y#y#y.9#y#y.9.9.9.9#y#y#y#y.9.9#y.L.L.uay.C#g#k#k.R#5#5bZ#R.l#R.lbe.H#I.H.v.HbWbXahahb.b.bHbHbMa#.Waq.YbC#8.a.a.Z.Z.a.a#m.4b8#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y.9ar#F...p.5#F#RbY#fbY#h#fa#b5#y#y.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y.9.9.9.9#y#y#y#y#y#y#y#y#y#y.9#y.Lbp#tay#gaBaAa9a9#5a9#h#hbZbYbZ#fbiaz#g.WaTbrbp.x.X.Y.Y.a.a.a.a.s.XbCb0aq.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#ybybE..#FaEbX#RbYbZbYaVbMbr.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y.9#y#y#y.9#y#y.9bpbp#T.ibP.C#gbMbMazbibibi#kbi#kbHaY.Y#8.Y.Y.a.Z.a.Z.Yb0aq.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", ".9#y.9bpbE#W#Nbrbu#f#hbZa9#gbp#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.9.9#y#y#y#y#y#y#y.9.9.9#y.9.x#mbC#8.a.Z.a.a.s.a#Vaf#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y.9#yb2#W#N#yb5aDbYbeaVbu#y.9#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9#y#y#y#y#y.9#y#y#y#y.9.9.9#y#y.9b8.YbC.Y.Y.a.a.s.Z#Vbf#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", ".9#y#k.J#t.9bubebeaV.W.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y.9#y.9.9.8.Y.a.a.a.Z.2.sbC.nb6#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#tbs.9#y#JaDbYbH#y#y.9#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9.9bC.YbCbC.a#E.s.Y#V#C#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "b5a5.9.9.9a9biaT.9#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#j.Y.YbC.a#2#2#vbCaK#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y.9#y#k#5bp#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y.9#y.9.9.9.9an.D.e.Y.a.2.Z#vbfb6#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", ".9#y#y#TbP#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y.9#y#ObCbC.a.2.2#v#V#C#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y.9.9#t#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9.L.e.ebC#8.2#2.Yaf#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#JaJ.e.e.Y#E#2.Y#O#J.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9.9#x.D.Y.a.2#v#vb7.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.9.xaZ.D.a.Za1#vag.9#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#JaP.D.a#E.2#van.9#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9b7#q.Y.Z#v#2bU.9.9.9#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y.9#y#y#y#jaP.e.Z#v#K#j#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y.9#y#yb6.DbC.Z#v#x#J.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9#yb6b1.a.Z.z#C#y#y.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#yb6bC.a.a.4#J.9.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9b6b1.Y.a#C#y#y#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y.9.LaNbC.a#KaN#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y.9#y#y#ybjap.Yaa#J.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y.9aNapbCan#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y#y#y#y#y#yaJapb1aJ#y#y.9#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y.9#y#y.9#ybpbpaa#VaN#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y", "#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#ybjbj#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y#y" }; xmpi-2.2.3b8/src/Pixmaps/lamlogo.xpm0000444000076500007650000001465207050270203013011 /* XPM */ const char * lamlogo_xpm[] = { "77 76 24 1", " c black", ". c #4d0008", "X c #77000a", "o c #6b0007", "O c #c70011", "+ c #f90015", "@ c #ff0011", "# c #e20013", "$ c #ce0011", "% c #b9000f", "& c #97000d", "* c #373737", "= c #a8000e", "- c #5d0009", "; c #83000b", ": c #b0000f", "> c #f40014", ", c #8d000c", "< c #d50012", "1 c #a0000d", "2 c #c00010", "3 c #dc0012", "4 c #e80013", "5 c #ee0014", " ", " .XXXo ", " oO+@@@@#$%&o ", " *&$@@@@@@@+$=o ", " -;&=:=&;.*X%#@@@@@@@>%; ", " .,%<>@@@@@@@#%X .1$@@@@@@@@OX ", " X:#@@@@@@@@@@@@@>1 *X%>@@@@@@+2o ", " X2>@@@@@@@@@@@@@@@@& -:#@@@@@@3& ", " X2>@@@@@@@@@@@@@@@@@%* -:3@@@@@+2o ", " -%>@@@@@@@@@@@@@@@@@@%* .%@@@@@@3X ", " ,3@@@@@@@@@@@@@@@@@@#=* *,3@@@@@4& ", " .%+@@@@@@@@@@@@@@@@@@$X o,&&;o ,>@@@@@+= ", " o$@@@@@@@@@@@@@@@@@@O;* ,%O#>@@@@><=X %@@@@@@+= ", " ;3@@@@@@@@@@@@@@@@<:;* -1<@@@@@@@@@@@@#=* o#@@@@@@+: ", " ,5@@@@@@@@@@@@@>O=o. -%5@@@@@@@@@@@@@@@@%* %@@@@@@@+= ", " ,5@@@@@@@@5$O%=&o ;<@@@@@@@@@@@@@@@@@@@: X>@@@@@@@+& ", " ;5@@@@@$=;o. *=>@@@@@@@@@@@@@@@@@@@@#X 2@@@@@@@@5X ", " X3@@@@51* .:@@@@@@@@@@@@@@@@@@@@@@: X5@@@@@@@@<. ", " .$@@@@3X .1O3##$:; &5@@@@@@@@@@@@@@@@@@@@$* 2@@@@@@@@@: ", " %@@@@3X ;$@@@@@@@+$&. ,4@@@@@@@@@@@@@@@@@@@@- X3@@@@@@@@+, ", " ,@@@@3X ,#@@@@@@@@@@@$X ,4@@@@@@@@@@@@@@@@@@@- 1@@@@@@@@@O. ", " .3@@@3X X#@@@@@@@@@@@@@5=. ,4@@@@@@@@@@@@@@@@@@- *O@@@@@@@@@& ", " :@@@5, .$@@@@@@@@@@@@@@@@2. =@@@@@@@@@@@@@@@@@@- o3@@@@@@@@< ", " o5@@5, ,@@@@@@@@@@@@@@@@@@O..O@@@@@@@@@@@@@@@@<* ,@@@@@@@@+X ", " =@@@= O@@@@@@@@@@@@@@@@@@@: -3@@@@@@@@@@@@@@@O &, *%@@@@@@@@% *& ", " .3@@%* o5@@@@@@@@@@@@@@@@@@@@& ,@@@@@@@@@@@@@@@= O>:-o$@@@@@@@< .3. ", " ,@@O.-2o 1@@@@@@@@@@@@@@@@@@@@@3- 2@@@@@@@@@@@@@@; ;>@@$oo<@@@@@@5-;@= ", " %@3-o<@2* %@@@@@@@@@@@@@@@@@@@@@@% o4@@@@@@@@@@@@3. O@@@@@@@@@O-X3@@@@@&1@+X ", " o4, =@@@@% 3@@@@@@@@@@@@@@@@@@@@@@@$..3@@@@@@@@@@#o O@@@@@@@2.X$@@@@&1@@= ", " X, .3@@@@3.-#@@@@@@@@@@@@@@@@@@@@@@@@1 :@@@@@@@@@@1 ;>@@@@@@@@: -%@@+X1@@% ", " . 1@@@@@@Xo@@@@@@@@@@@@@@@@@@@@@@@@@<.o+@@@@@@@@$..$@@@@@@@@@5X *,O< :@@$ ", " O@@@@@@&o>@@@@@@@@@@@@@@@@@@@@@@@@@1 2@@@@@@@3o :@@@@@@@@@@@% . %@@> ", " .5@@@@@@% 3@@@@@@@@@@@@@@@@@@@@@@@@@#-;+@@@@@5; ,>@@@@@@@@@@@5; %@@@X ", " ,@@@@@@@% 3@@@@@@@@@@@@@4$2==,,Xo,,,,o <@@@@@& o<@@@@@@@@@@@@@O O@@@X ", " =@@@@@@@$ $@@@@@@@@@4O=;- -Xo %@@@@:*-<@@@@@@@@@@@@@@5o $@@@X ", " %@@@@@@@< %@@@@@@>O&o -,=2<#>o ,@@@=*-O@@@@@@@@@@@@@@@@1 .5@@@X ", " O@@@@@@@< &@@@@>2X .;=$#@@@@@O .5@=*-2@@@@@@@@@@@@@@@@@2 o@@@@X ", " O@@@@@@@< -#@>2X o=3@@@@@@@@@1 O=*-$@@@@@@@@@@@@@@@@@@$ ;@@@>. ", " O@@@@@@@< 2$, .:#@@@@@@@@@@#. X*X<@@@@@@@@@@@@@@@@@@@# 1@@@> ", " O@@@@@@@< X. o$@@@@@@@@@@@@2 ;<@@@@@@@@@@@@@@@@@@@@# =@@@< ", " O@@@@@@@< ,#@@@@@@@@@@@@@&.. .=#@@@@@@@@@@@@@@@@@@@@@< O@@@% ", " O@@@@@@@< ,>@@@@@@@@@@@@@+X;2- XO@@@@@@@@@@@@@@@@@@@@@@@% -5@@@= ", " %@@@@@@@< ;#@@@@@@@@@@@@@@3 1@. ", " &@@@@@@@% %@@@@@@@@@@@@@@@@= 2@@@@%- X25@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&*$@@@@@#1. X%#@@@@@@@@@@@@@@@@@<; X<@@@@@= ", " .5@@@@@@& %@@@@@@@@@@@@@@@@@X.@@@@@@@@$; o=$+@@@@@@@@@@@@#%- X3@@@@@+X ", " $@@@@@@X 3@@@@@@@@@@@@@@@@+o.@@@@@@@@@@O,. ;:<+@@@@@@#O=- X3@@@@@@$ ", " =@@@@@3.-#@@@@@@@@@@@@@@@@# .@@@@@@@@@@@@<1. o,,,,,X. ;3@@@@@@@& ", " ,@@@@@2 o+@@@@@@@@@@@@@@@@# ;@@@@@@@@@@@@@@#O1X* X#@@@@@@@3. ", " .#@@@@% 3@@@@@@@@@@@@@@@@# ;@@@@@@@@@@@@@@@@@@<2=;;o-. -$@@@@@@@@= ", " %@@@@% %@@@@@@@@@@@@@@@@# ;@@@@@@@@@@@@@@@@@@@@@@@@+X *2@@@@@@@@3. ", " ;@@@@O ;+@@@@@@@@@@@@@@@# ;@@@@@@@@@@@@@@@@@@@@@@@@$ =@@@@@@@@@& ", " <@@@5- 2@@@@@@@@@@@@@@@# X@@@@@@@@@@@@@@@@@@@@@@@@: ,5@@@@@@@@$. ", " =@@@@& o3@@@@@@@@@@@@@@#*.>@@@@@@@@@@@@@@@@@@@@@@@Xo3@@@@@@@@+, ", " .3@@@$. X3@@@@@@@@@@@@@@X O@@@@@@@@@@@@@@@@@@@@@@O.2@@@@@@@@@O ", " =@@@@1 X<@@@@@@@@@@@@@; 1@@@@@@@@@@@@@@@@@@@@@4X,@@@@@@@@@3X ", " .3@@@<. -%>@@@@@@@@@@@1 o>@@@@@@@@@@@@@@@@@@@@=.<@@@@@@@@+& ", " 1@@@@= X%>@@@@@@@@@% 2@@@@@@@@@@@@@@@@@@@<.=@@@@@@@@@: ", " .$@@@#o X%4@@@@@@@< ;>@@@@@@@@@@@@@@@@@#;.<@@@@@@@@2. ", " ;5@@@: .;123@@@+X %@@@@@@@@@@@@@@@@#; &@@@@@@@@2. ", " =+@@5; *X1%%%:1,o.XXXX. X#@@@@@@@@@@@@@@#; 2@@@@@@+:. ", " 2@@@$.;@@@@@@@@@<2,. ,>@@@@@@@@@@@@>1 .3@@@@@#& ", " .$@@@=.<@@@@@@@@@@@#2&. &+@@@@@@@@@@2o ", " -$@@5X1@@@@@@@@@@@@@@#2;* ;3@@@@@@@#:. o@5<=X ", " -$@@O.2@@@@@@@@@@@@@@@@O; -1O45#2=- .X. -,=2, ", " -2@@&-$@@@@@@@@@@@@@@@@@%X .,=O5@@= ", " &43.-2@@@@@@@@@@@@@@@@@@%o *X&=O5@@@@4& ", " X2: .=4@@@@@@@@@@@@@@@@@@O1111%$#@@@@@@@@$X ", " o XO@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@31. ", " X2+@@@@@@@@@@@@@@@@@@@@@@@@@@<=. ", " o=$+@@@@@@@@@@@@@@@@@@@@#%,. ", " o,:O#+@@@@@@@@@@+/dev/null 2>&1; then \ include_option=--etags-include; \ else \ include_option=--include; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -f $$subdir/TAGS && \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$tags$$unique" \ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = .. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) $(mkinstalldirs) $(distdir)/../config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d $(distdir)/$$subdir \ || mkdir $(distdir)/$$subdir \ || exit 1; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" \ distdir=../$(distdir)/$$subdir \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: info: info-recursive info-am: install-data-am: install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ clean-generic clean-libtool clean-recursive ctags \ ctags-recursive distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am \ dvi-recursive info info-am info-recursive install install-am \ install-data install-data-am install-data-recursive \ install-exec install-exec-am install-exec-recursive \ install-info install-info-am install-info-recursive install-man \ install-recursive install-strip installcheck installcheck-am \ installdirs installdirs-am installdirs-recursive \ maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-generic \ mostlyclean-libtool mostlyclean-recursive pdf pdf-am \ pdf-recursive ps ps-am ps-recursive tags tags-recursive \ uninstall uninstall-am uninstall-info-am \ uninstall-info-recursive uninstall-recursive # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xmpi-2.2.3b8/man/man1/0000777000076500007650000000000007725267017010130 5xmpi-2.2.3b8/man/man1/Makefile.am0000664000076500007650000000125007722033602012064 # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.3 2003/08/23 13:37:39 jsquyres Exp $ # include $(top_srcdir)/config/Makefile.options xmpi_man = xmpi.1 man_MANS = $(xmpi_man) EXTRA_DIST = $(xmpi_man) xmpi-2.2.3b8/man/man1/Makefile.in0000664000076500007650000002457307725260240012115 # Makefile.in generated by automake 1.7.6 from Makefile.am. # @configure_input@ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.3 2003/08/23 13:37:39 jsquyres Exp $ # # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.options,v 1.1 2003/08/23 13:32:15 jsquyres Exp $ # srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_triplet = @host@ ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLEANFILES = @CLEANFILES@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBXMPI = @LIBXMPI@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ RM = @RM@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHELL_CMD = @SHELL_CMD@ STRIP = @STRIP@ VERSION = @VERSION@ WANT_LAM_XMPI_FALSE = @WANT_LAM_XMPI_FALSE@ WANT_LAM_XMPI_TRUE = @WANT_LAM_XMPI_TRUE@ XMPI_VERSION = @XMPI_VERSION@ X_CFLAGS = @X_CFLAGS@ X_CXXFLAGS = @X_CXXFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign dist-bzip2 xmpi_man = xmpi.1 man_MANS = $(xmpi_man) EXTRA_DIST = $(xmpi_man) subdir = man/man1 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = $(top_builddir)/src/xmpi/xmpi_config.h CONFIG_CLEAN_FILES = DIST_SOURCES = NROFF = nroff MANS = $(man_MANS) DIST_COMMON = $(top_srcdir)/config/Makefile.options Makefile.am \ Makefile.in all: all-am .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/config/Makefile.options $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --foreign man/man1/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: man1dir = $(mandir)/man1 install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(man1dir) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \ $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \ rm -f $(DESTDIR)$(man1dir)/$$inst; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = ../.. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) $(mkinstalldirs) $(distdir)/../../config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: $(mkinstalldirs) $(DESTDIR)$(man1dir) install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-man install-exec-am: install-info: install-info-am install-man: install-man1 installcheck-am: maintainer-clean: maintainer-clean-am maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-man uninstall-man: uninstall-man1 .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-man1 install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am uninstall-man uninstall-man1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xmpi-2.2.3b8/man/man1/xmpi.10000664000076500007650000004665207011363157011110 .TH XMPI 1 "-RELEASEDATE-" "-RELEASEVERSION-" "LAM X11 TOOLS" .SH NAME XMPI \- X Window MPI user interface .SH SYNTAX xmpi [-h] [] .SH DESCRIPTION .I XMPI is a graphical user interface for running MPI programs, monitoring MPI processes and messages, and viewing execution trace files. It exploits the debugging capabilities of LAM, a parallel computing environment for UNIX clusters. .I XMPI is constructed from the Motif widget set. .PP .I XMPI does not provide an interface for starting a LAM session. This must be accomplished prior to running .IR XMPI , which is itself a LAM program. The boot schema from which LAM was started can (should) be provided to .I XMPI so that it may be presented as an inventory of nodes on which programs may be run. If .I XMPI is to be used only to view trace files then starting LAM is not required. .PP This description assumes a basic knowledge of MPI. .SH TYPICAL USAGE .I XMPI provides a graphical display of the state of the processes within an MPI application. The state information is obtained from one of two sources, a running application started by XMPI or a file containing trace data from a traced MPI application. When .I XMPI is started, its top-level overview window is blank. Once an application is started or a trace file is loaded the overview window fills with a tiled group of hexagons, each representing the state of one MPI process and labeled by the process rank within MPI_COMM_WORLD. A traffic light symbol indicates whether the process is running or blocked. No traffic light is shown for processes which have either finalized or not yet initialized the MPI library. .PP When monitoring a running application the camera "Snap" button or "Snapshot" item in the "Application" menu updates the state information on all processes at any time. When viewing trace data the state information is updated according to the currently selected time point (see "XMPI TRACE FILES"). .PP A mouse click inside a hexagon pops up an additional window containing more detailed information about the process. If the process is blocked, the function name, peer process rank, communicator, message tag and element count are displayed. If unreceived messages are available, their quantity, source process rank, communicator, message tag and element count are displayed. By leaving a few process windows on the screen, a user can focus debugging on a small and manageable collection of misbehaving processes. .PP The "Clean" button or "Clean" item in the "Application" menu terminates an application and the development cycle can be repeated. The previous application can be rerun with the "Rerun" button or "Rerun" item in the "Application" menu. .SH RUNNING AN APPLICATION An application schema specifies an MPI application by listing each process's program name, program location, target processor(s) and optional command line arguments. .PP The "Browse&Run" item in the "Application" menu pops up a simple file browser for choosing and running a pre-written application schema. Alternatively an application schema can be configured with the .I XMPI application builder dialog, invoked by the "Build&Run" item in the "Application" menu. .PP The builder dialog has an area to specify each process and an arrow button to add it to the application schema, which is shown below the arrow button in a scrolled list. The lines in the list show the syntax that would be used in creating the same application with a text editor. Indeed, the "Save" button saves the application schema in a file for later use and/or editing. .PP A specified process does not become part of the application until the arrow (commit) button is pressed. Once it appears in the application scrolled list, a process can be deleted by selecting it and pressing the key. .PP Pressing the "Run" button with anything in the application list causes that application to be run. The overview window is then initialized with the status of the application. .SS Program Specification A file browser in the middle of the builder dialog aids in selecting a program file. The browser only navigates the file space of the node running .IR XMPI . If a program is located on another node outside the file space (outside NFS, etc.) its pathname may need to be typed into the process specification area. Selecting the "Use Full Pathname" toggle button will cause programs to be placed into the application schema as full pathnames. .PP .I XMPI limits the choice of a program source node to either the node running .I XMPI or the process target node. The latter case is the default and is the most efficient because LAM does not need to transfer the program from source to target node. The "Transfer Program" toggle button selects the source node policy. .SS Multiple Program Copies The number of copies of a program to be run can be set in the process specification area. Clicking on the increment or decrement arrow will increment or decrement the count by one. Clicking with the shift key down will increment or decrement by ten. .SS Command-line Arguments Command-line arguments must be typed into the process specification area. .SS Node Specification A boot schema specifies the computers participating as nodes in a LAM multicomputer. If .I XMPI is given a boot schema filename, its contents will appear in a scrolled list on the right side of the builder dialog. .I XMPI will search for the given schema in the local directory. The boot schema filename is displayed above the list of its nodes. Multiple target nodes can be selected from the scrolled list with the corresponding node mnemonic appearing in the process specification area. Selecting multiple target nodes specifies multiple processes with the program name, arguments and source node policy held constant. .PP If no boot schema was specified only the special node selectors "LOCAL" (meaning the node on which .I XMPI is running) and "ALL NODES" are provided. .PP Target node descriptions may also be typed directly into the process specification area. The local node is specified as \fIh\fR. The origin node from which the machine was booted, if not local, can be specified as \fIo\fR. All usable nodes are specified as \fIN\fR. Nodes are generically identified as .I n, where can be a single node identifier or a list of node identifiers. Identifiers can be written in decimal or hexadecimal notation. Examples are .I n1 or .IR n0-7,0x10 . .SS Run-time Options Applications can be run with various run-time options to specify the behaviour of the MPI library. These can be configured from a separate dialog which is activated from the "Runtime" item in the "Options" menu. Options remain in effect until changed. .PP .IP \(bu tracing mode (default enabled) .IP \(bu fast client-to-client communication (default disabled) .IP \(bu GER protocol and error detection (default enabled) .IP \(bu homogeneous LAM node optimization (default disabled) .SH FOCUSING ON A PROCESS More information on a process's state can be obtained by clicking the left mouse button within the process hexagon. This will pop up a focus window. The upper area of the focus window is the process area and displays the current state of the process. The lower area is the message area and displays information on the process's message queue. .PP The focus window banner contains a tack button which can be clicked to dismiss the window and a label containing the process's identity along with the program name. In .I XMPI processes are identified first by their rank in MPI_COMM_WORLD and if the process is communicating, with a slash followed by the process's rank within the current communicator. The focus window can also be dismissed by clicking once again in the process hexagon. .PP The process area describes the current state of the process together with the name of and (where appropriate) arguments to the MPI function currently being executed. The layout is fairly self-explanatory and we describe only the less obvious features. .SS Communicator Identification The "comm" area shows the communicator being used in the current MPI function. Communicators are opaque objects which MPI does not identify in any meaningful, printable way. LAM's MPI implementation adds a simple numerical identifier to communicators, which is displayed in .I XMPI as where \fIx\fR is the identifier. This identifier can be matched to communicator variables in an MPI program with the LAM function, MPIL_Comm_id(2). .SS Group Membership The button to the right of the "comm" area will highlight in the overview window the hexagons of the processes in the communicator. For an intracommunicator, the hexagons will be highlighted in the color specified by the "lcomCol" resource. For an intercommunicator, processes in the local group will be highlighted in the color specified by the "lcomCol" resource and those in the remote group in the color specified by the "rcomCol" resource. For highlighted processes the process identification at the bottom of the hexagon is changed to be the rank in MPI_COMM_WORLD followed by a slash and the rank in the communicator being highlighted. .SS Datatype The datatype button to the right of the "cnt" area will display in the datatype window (see "DATATYPE WINDOW") the type map of the datatype argument to the current MPI function. .PP The message area describes the current state of the queue of messages destined to the process and not yet received. Once again the layout is fairly self-explanatory and we describe only the less obvious features. .SS Message Aggregates Identical undelivered messages are aggregated. The "copy" area shows the number of messages within the visible aggregate, followed by the total number of messages in the queue. The button to the right of the "copy" area cycles through the message aggregates. .SS Source Rank The "src" area shows the rank of the source process within MPI_COMM_WORLD followed by the rank of the source process in the communicator in which the message was sent. .SS Datatype The datatype button to the right of the "cnt" area will display in the datatype window the type map of the message's datatype. .SS Group Membership The button to the right of the "comm" area will highlight the message communicator in the manner previously described. .SH XMPI TRACE FILES .I XMPI can be used to view existing trace files and can be used to create trace files for applications run under .IR XMPI . .PP To load and view an existing trace file select the "View" item in the "Trace" menu. .PP If an application is run under .I XMPI with tracing enabled (the default), LAM will trace the application. Before the trace data can be viewed in .I XMPI it must be dumped to a file. This is done by selecting the "Dump" item from the "Trace" menu. You will be prompted for a file name. By convention .I XMPI trace files have a ".lamtr" suffix. The trace file can be viewed by loading it as described above. As a shortcut select the "Express" item in the "Trace" menu, or equivalently click the "Trace" button in the overview window. This dumps the trace data to a temporary file and then immediately loads the file for viewing. If you decide that you want to save trace data for later viewing then you must dump it using the "Dump" item from the "Trace" menu. Dumping trace data to file does not purge any trace data and a subsequent dump will contain all the trace data from the start of the application up until the time of dumping. Terminating an application via the "Clean" button or menu item purges all trace data. .PP While viewing a trace an application previously launched by XMPI continues to run in the background. Upon the closing of the trace window XMPI will return to snapshot mode if there is a running application. .PP When loading trace files containing multiple segments (see MPIL_Trace_on(2) and MPIL_Trace_off(2)) you will be prompted for the number of the segment you wish to view. If you wish later to view a different segment, simply reload the trace file and specify the new segment number when prompted. Reloading is done via the "View" or "Express" items in the "Trace" menu. .SS Communication Timeline Window Across the top of the timeline window is a control and information area. The trace data is displayed below this on timelines, one per process in the traced application. The state of the application at a particular time is represented by the corresponding traffic light color. Green represents running, red represents blocked waiting on communication and yellow represents time spent inside an MPI function not blocked on communication (we call this system overhead time as it typically represents time doing data conversion, message packing, etc). .PP The dial can be used to select a time point at which the process states are to be displayed. In the overview window the process states at the dial time are displayed in hexagon form. As with snapshot mode more detailed information on a process can be obtained by bringing up its focus window. The dial may be moved by clicking with the left button in the trace view area or via the VCR controls. Below the VCR controls are displayed from left to right, the time of the left edge of the displayed timeline, the current dial time and the time of the right edge of the displayed timeline. .PP To the right of the VCR controls is displayed the current magnification. When a trace file is loaded .I XMPI chooses an initial scaling factor and sets this to be the 1x1 magnification. You can increase and decrease the magnification using the zoom and un-zoom buttons. .PP A segment of the currently displayed timeline can be selected by dragging the right mouse button in the timeline display area. Upon release of the right button the display is zoomed to show the selected segment. To cancel a drag in progress, drag the cursor up or down out of the timeline display area. .SS How Communication Is Represented .IP \fICollective\fR 4 A collective communication is represented for each process by contiguous line segments showing the time spent in system overhead and the time spent blocked waiting for communication. No lines are drawn connecting the processes participating in the collective communication. .IP \fIBlocking point to point\fR 4 For both the send and receive process contiguous line segments are drawn showing the time spent in system overhead and the time spent blocked waiting for the communication to complete. A line is drawn connecting the send to the receive. It originates at the beginning of the send segments and is drawn to the end of the matching receive segments. .IP \fINon-blocking point to point\fR 4 At the time a non-blocking send or receive is initiated a system overhead segment is drawn. When the communication is completed via a wait or test, segments showing system overhead and blocking time are drawn. Lines are drawn between matching sends and receives, except in this case the line is drawn from the segment where the send was initiated to where the corresponding receive completed. .IP \fIWaits and tests\fR 4 If a non-blocking communication is completed inside a wait/test function .I XMPI will show the function name in the focus window as the wait/test function followed in parentheses by the send/receive function being completed. For example, if an MPI_Issend() is completed inside an MPI_Wait(), the function will read \fIMPI_Wait (MPI_Issend)\fR. .IP \fIMissing traces\fR 4 Owing to the use of trace segments or the dropping of overflow traces (see lamtrace(1)) there may be send or receive traces which have no match in the trace data. In these cases a short stub line is drawn out from a send or in to a receive. .SS Kiviat Window When viewing a trace file, the "Kiviat" button or "Kiviat" item from the "Trace" menu brings up the Kiviat window. This window displays, in a segmented pie-chart format, the cumulative time up to the current dial time, spent by each process in the running, overhead and blocked states. .SH MESSAGE SOURCE MATRIX The message source window displays a square matrix of process message queue lengths. For each process it shows the number of queued messages from each other process in the application. It can be brought up while monitoring a running application or while viewing a trace file, by selecting the "Matrix" button or "Matrix" item in the "Trace" menu. .SH DATATYPE WINDOW The datatype window displays a textual representation of the type map of an MPI datatype. This window is associated at any instant with a particular process and mode. The associated process is shown in the window's banner and the mode is indicated by a traffic light or message queue icon shown in the left part of the window. When in process mode the datatype being shown, if any, is the datatype argument of the MPI function the process is executing. When in message mode the datatype is that of the current message aggregate selected in the process focus window. Switching between processes and modes is effected via the datatype buttons in the process focus windows. .PP The type map might not fit completely into the default size window. Simply resize the window to see the whole map. .SH SWITCHING INFORMATION SOURCES .I XMPI will gather and display information from either the currently executing application or a trace file. When an application is launched from .IR XMPI , the information source is the executing application and the "Snap" button is active. Though the application may be producing trace data, the "Snap" button does not use it, but instead acquires information from debugging hooks in the MPI implementation. At any moment, an existing trace file may be loaded into .I XMPI or the currently accumulating trace data may be fetched from the MPI implementation, stored in a file, and loaded. This action changes the information source to the loaded trace file. Information display is now controlled from the dial in the timeline window and not from the "Snap" button, which is now inactive. Though the application may still be running, the timeline dial does not use the runtime debugging hooks, but instead acquires information from the loaded trace file. Upon the closing of the trace window XMPI will return to snapshot mode if there is a running application. .SH RESOURCES .I XMPI defines the following application resources. .PP .TP 20 XMPI.helpCmd command that is run to provide help. The default is typically a command which fires up a Web browser to view a help page. You should change this to invoke your favourite browser. .TP XMPI.rankFont process rank font in hexagon .TP XMPI.msgFont total message count font in hexagon (may need to be adjusted to fit inside message icon) .TP XMPI.lcomCol color used to highlight the processes in an intracommunicator or in the the local group of an intercommunicator .TP XMPI.rcomCol color used to highlight the processes in the remote group of an intercommunicator .TP XMPI.bandCol color used for the zoom selection rubber band .TP XMPI.bandDash if True use a dashed line rubber band to show the zoom selection otherwise use a solid line .TP XMPI.bandWidth width of the zoom selection rubber band .PP .I XMPI gets important default resources from the application defaults file, XMPI. If this file is not installed in the X11 default directory, its directory can be added to the XAPPLRESDIR environment variable. .SH LIMITATIONS An application must be started by .I XMPI to be monitored by it. .PP When using the fast client-to-client communication mode process states in snapshot mode are always shown as running and no useful information is shown in the process focus windows. .PP .I XMPI uses lamclean(1). Errors reported by this tool will still print to standard output. A shorter message will appear in an .I XMPI error dialog. .SH SEE ALSO mpimsg(1), mpirun(1), mpitask(1), lamtrace(1) xmpi-2.2.3b8/app-defaults/0000777000076500007650000000000007725267017011106 5xmpi-2.2.3b8/app-defaults/Makefile.am0000444000076500007650000000117207722033602013041 # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.2 2003/08/23 13:31:39 jsquyres Exp $ # include $(top_srcdir)/config/Makefile.options EXTRA_DIST = \ XMPI xmpi-2.2.3b8/app-defaults/Makefile.in0000664000076500007650000002133407725260237013071 # Makefile.in generated by automake 1.7.6 from Makefile.am. # @configure_input@ # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 # Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.am,v 1.2 2003/08/23 13:31:39 jsquyres Exp $ # # -*- makefile -*- # # Copyright (c) 2001-2003 The Trustees of Indiana University. # All rights reserved. # Copyright (c) 1998-2001 University of Notre Dame. # All rights reserved. # Copyright (c) 1994-1998 The Ohio State University. # All rights reserved. # # This file is part of the XMPI software package. For license # information, see the LICENSE file in the top level directory of the # XMPI source distribution. # # $Id: Makefile.options,v 1.1 2003/08/23 13:32:15 jsquyres Exp $ # srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_triplet = @host@ ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CLEANFILES = @CLEANFILES@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBXMPI = @LIBXMPI@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ RM = @RM@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHELL_CMD = @SHELL_CMD@ STRIP = @STRIP@ VERSION = @VERSION@ WANT_LAM_XMPI_FALSE = @WANT_LAM_XMPI_FALSE@ WANT_LAM_XMPI_TRUE = @WANT_LAM_XMPI_TRUE@ XMPI_VERSION = @XMPI_VERSION@ X_CFLAGS = @X_CFLAGS@ X_CXXFLAGS = @X_CXXFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign dist-bzip2 EXTRA_DIST = \ XMPI subdir = app-defaults ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs CONFIG_HEADER = $(top_builddir)/src/xmpi/xmpi_config.h CONFIG_CLEAN_FILES = DIST_SOURCES = DIST_COMMON = $(top_srcdir)/config/Makefile.options Makefile.am \ Makefile.in all: all-am .SUFFIXES: $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/config/Makefile.options $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --foreign app-defaults/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = .. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) $(mkinstalldirs) $(distdir)/../config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkinstalldirs) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: xmpi-2.2.3b8/app-defaults/XMPI0000444000076500007650000000325207722033602011506 ! Copyright (c) 2001-2003 The Trustees of Indiana University. ! All rights reserved. ! Copyright (c) 1998-2001 University of Notre Dame. ! All rights reserved. ! Copyright (c) 1994-1998 The Ohio State University. ! All rights reserved. ! ! This file is part of the XMPI software package. For license ! information, see the LICENSE file in the top level directory of the ! XMPI source distribution. ! ! XMPI application class resource file ! XMPI*Title: XMPI XMPI*IconName: XMPI XMPI*multiClickTime: 500 XMPI*background: gray XMPI*fontList: -*-helvetica-bold-r-normal--*-120-*-*-*-*-*-* XMPI*rankFont: -*-helvetica-bold-r-normal--*-120-*-*-*-*-*-* XMPI*msgFont: -*-helvetica-medium-r-normal--*-80-*-*-*-*-*-* XMPI*fo_func.fontList: -*-helvetica-bold-o-normal--*-120-*-*-*-*-*-* XMPI*dt_dtype.fontList: -*-helvetica-medium-r-normal--*-100-*-*-*-*-*-* XMPI*ctl_bar.topShadowColor: lightslateblue XMPI*ctl_bar.bottomShadowColor: darkslateblue XMPI*ctl_bar.background: slateblue XMPI*ctl_bar.foreground: white XMPI*banner.background: slateblue XMPI*banner.foreground: white XMPI*app_list.visibleItemCount: 8 XMPI*aschema_list.visibleItemCount: 20 XMPI*aschema_text.columns: 24 XMPI*prog_mgr*columns: 16 XMPI*comCol: cyan XMPI*rcomCol: plum XMPI*label_frame.XmLabel.background: #D3B5B5 XMPI*XmToggleButtonGadget.selectColor: red XMPI*XmToggleButton.selectColor: red XMPI*bandCol: cyan XMPI*bandDash: False XMPI*bandWidth: 1 XMPI*popup_help.background: white XMPI*popup_help.foreground: black XMPI*infoLabel: Boot XMPI*helpCmd: netscape http://www.lam-mpi.org/software/xmpi/help.php