gtkglextmm-1.2.0/0000777000175000001440000000000010400731257010675 500000000000000gtkglextmm-1.2.0/NEWS0000644000175000001440000000035010065240757011315 00000000000000Overview of Changes from gtkglextmm 1.0.x to gtkglextmm 1.1.0 ============================================================= * Requires gtkmm-2.4 * Rewritten Gtk::GL::Widget mixin class * New Gdk::GL::ext() functions are introduced gtkglextmm-1.2.0/TODO0000644000175000001440000000000007515122105011266 00000000000000gtkglextmm-1.2.0/docs/0000777000175000001440000000000010400731256011624 500000000000000gtkglextmm-1.2.0/docs/Makefile.am0000644000175000001440000000011507717143165013606 00000000000000## -*- Makefile -*- ## Makefile.am for gtkglextmm/docs SUBDIRS = reference gtkglextmm-1.2.0/docs/Makefile.in0000644000175000001440000003567010400725441013617 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ SUBDIRS = reference subdir = docs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/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 = $(srcdir)/Makefile.in Makefile.am DIST_SUBDIRS = $(SUBDIRS) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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) @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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 Makefile 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 Makefile 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: gtkglextmm-1.2.0/docs/reference/0000777000175000001440000000000010400731256013562 500000000000000gtkglextmm-1.2.0/docs/reference/html/0000777000175000001440000000000010400731257014527 500000000000000gtkglextmm-1.2.0/docs/reference/html/gears_8cc-example.html0000644000175000001440000010207310400731256020622 00000000000000 gtkglextmm: gears.cc
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Examples

gears.cc

3-D gear wheels demo.

// -*- C++ -*-
/*
 * 3-D gear wheels.  This program is in the public domain.
 *
 * Brian Paul
 */

/* Conversion to gtkglextmm by Naofumi Yasufuku */

#include <iostream>
#include <cstdlib>
#include <cmath>

#include <gtkmm.h>

#include <gtkglmm.h>

#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif

#include <GL/gl.h>
#include <GL/glu.h>


//
// OpenGL frame buffer configuration utilities.
//

struct GLConfigUtil
{
  static void print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                              const char* attrib_str,
                              int attrib,
                              bool is_boolean);

  static void examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig);
};

//
// Print a configuration attribute.
//
void GLConfigUtil::print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                                   const char* attrib_str,
                                   int attrib,
                                   bool is_boolean)
{
  int value;

  if (glconfig->get_attrib(attrib, value))
    {
      std::cout << attrib_str << " = ";
      if (is_boolean)
        std::cout << (value == true ? "true" : "false") << std::endl;
      else
        std::cout << value << std::endl;
    }
  else
    {
      std::cout << "*** Cannot get "
                << attrib_str
                << " attribute value\n";
    }
}

//
// Print configuration attributes.
//
void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig)
{
  std::cout << "\nOpenGL visual configurations :\n\n";

  std::cout << "glconfig->is_rgba() = "
            << (glconfig->is_rgba() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_double_buffered() = "
            << (glconfig->is_double_buffered() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_stereo() = "
            << (glconfig->is_stereo() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_alpha() = "
            << (glconfig->has_alpha() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_depth_buffer() = "
            << (glconfig->has_depth_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_stencil_buffer() = "
            << (glconfig->has_stencil_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_accum_buffer() = "
            << (glconfig->has_accum_buffer() ? "true" : "false")
            << std::endl;

  std::cout << std::endl;

  print_gl_attrib(glconfig, "Gdk::GL::USE_GL",           Gdk::GL::USE_GL,           true);
  print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE",      Gdk::GL::BUFFER_SIZE,      false);
  print_gl_attrib(glconfig, "Gdk::GL::LEVEL",            Gdk::GL::LEVEL,            false);
  print_gl_attrib(glconfig, "Gdk::GL::RGBA",             Gdk::GL::RGBA,             true);
  print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER",     Gdk::GL::DOUBLEBUFFER,     true);
  print_gl_attrib(glconfig, "Gdk::GL::STEREO",           Gdk::GL::STEREO,           true);
  print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS",      Gdk::GL::AUX_BUFFERS,      false);
  print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE",         Gdk::GL::RED_SIZE,         false);
  print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE",       Gdk::GL::GREEN_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE",        Gdk::GL::BLUE_SIZE,        false);
  print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE",       Gdk::GL::ALPHA_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE",       Gdk::GL::DEPTH_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE",     Gdk::GL::STENCIL_SIZE,     false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE",   Gdk::GL::ACCUM_RED_SIZE,   false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE",  Gdk::GL::ACCUM_BLUE_SIZE,  false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false);

  std::cout << std::endl;
}


//
// Gears scene.
//

class GearsScene : public Gtk::GL::DrawingArea
{
public:
  explicit GearsScene(bool is_sync = true);
  virtual ~GearsScene();

protected:
  void gear(GLfloat inner_radius,
            GLfloat outer_radius,
            GLfloat width,
            GLint   teeth,
            GLfloat tooth_depth);

protected:
  // signal handlers:
  virtual void on_realize();
  virtual bool on_configure_event(GdkEventConfigure* event);
  virtual bool on_expose_event(GdkEventExpose* event);
  virtual bool on_map_event(GdkEventAny* event);
  virtual bool on_unmap_event(GdkEventAny* event);
  virtual bool on_visibility_notify_event(GdkEventVisibility* event);
  virtual bool on_idle();

public:
  // Invalidate whole window.
  void invalidate() {
    get_window()->invalidate_rect(get_allocation(), false);
  }

  // Update window synchronously (fast).
  void update()
  { get_window()->process_updates(false); }

protected:
  // idle signal connection:
  sigc::connection m_ConnectionIdle;

public:
  // get & set view rotation values.
  void get_view_rot(GLfloat& x, GLfloat& y, GLfloat& z)
  { x = m_ViewRotX; y = m_ViewRotY; z = m_ViewRotZ; }

  void set_view_rot(GLfloat x, GLfloat y, GLfloat z)
  { m_ViewRotX = x; m_ViewRotY = y; m_ViewRotZ = z; }

protected:
  // OpenGL scene related variables:
  GLint m_Gear1;
  GLint m_Gear2;
  GLint m_Gear3;

  GLfloat m_ViewRotX;
  GLfloat m_ViewRotY;
  GLfloat m_ViewRotZ;

  GLfloat m_Angle;

  bool m_IsSync;

protected:
  // frame rate evaluation stuff:
  Glib::Timer m_Timer;
  int m_Frames;
};

GearsScene::GearsScene(bool is_sync)
  : m_Gear1(0), m_Gear2(0), m_Gear3(0),
    m_ViewRotX(20.0), m_ViewRotY(30.0), m_ViewRotZ(0.0),
    m_Angle(0.0), m_IsSync(is_sync),
    m_Frames(0)
{
  //
  // Configure OpenGL-capable visual.
  //

  Glib::RefPtr<Gdk::GL::Config> glconfig;

  // Try double-buffered visual
  glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB    |
                                     Gdk::GL::MODE_DEPTH  |
                                     Gdk::GL::MODE_DOUBLE);
  if (!glconfig)
    {
      std::cerr << "*** Cannot find the double-buffered visual.\n"
                << "*** Trying single-buffered visual.\n";

      // Try single-buffered visual
      glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB   |
                                         Gdk::GL::MODE_DEPTH);
      if (!glconfig)
        {
          std::cerr << "*** Cannot find any OpenGL-capable visual.\n";
          std::exit(1);
        }
    }

  // print frame buffer attributes.
  GLConfigUtil::examine_gl_attrib(glconfig);

  //
  // Set OpenGL-capability to the widget.
  //

  set_gl_capability(glconfig);

  // Add events.
  add_events(Gdk::VISIBILITY_NOTIFY_MASK);
}

GearsScene::~GearsScene()
{
}

/*
 * Draw a gear wheel.  You'll probably want to call this function when
 * building a display list since we do a lot of trig here.
 *
 * Input:  inner_radius - radius of hole at center
 * outer_radius - radius at center of teeth
 * width - width of gear
 * teeth - number of teeth
 * tooth_depth - depth of tooth
 */

void GearsScene::gear(GLfloat inner_radius,
                      GLfloat outer_radius,
                      GLfloat width,
                      GLint   teeth,
                      GLfloat tooth_depth)
{
  GLint i;
  GLfloat r0, r1, r2;
  GLfloat angle, da;
  GLfloat u, v, len;

  r0 = inner_radius;
  r1 = outer_radius - tooth_depth / 2.0;
  r2 = outer_radius + tooth_depth / 2.0;

  da = 2.0 * G_PI / teeth / 4.0;

  glShadeModel(GL_FLAT);

  glNormal3f(0.0, 0.0, 1.0);

  /* draw front face */
  glBegin(GL_QUAD_STRIP);
  for (i = 0; i <= teeth; i++) {
    angle = i * 2.0 * G_PI / teeth;
    glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5);
    glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5);
    if (i < teeth) {
      glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5);
      glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5);
    }
  }
  glEnd();

  /* draw front sides of teeth */
  glBegin(GL_QUADS);
  da = 2.0 * G_PI / teeth / 4.0;
  for (i = 0; i < teeth; i++) {
    angle = i * 2.0 * G_PI / teeth;

    glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5);
    glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5);
    glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), width * 0.5);
    glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5);
  }
  glEnd();

  glNormal3f(0.0, 0.0, -1.0);

  /* draw back face */
  glBegin(GL_QUAD_STRIP);
  for (i = 0; i <= teeth; i++) {
    angle = i * 2.0 * G_PI / teeth;
    glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5);
    glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5);
    if (i < teeth) {
      glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5);
      glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5);
    }
  }
  glEnd();

  /* draw back sides of teeth */
  glBegin(GL_QUADS);
  da = 2.0 * G_PI / teeth / 4.0;
  for (i = 0; i < teeth; i++) {
    angle = i * 2.0 * G_PI / teeth;

    glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5);
    glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), -width * 0.5);
    glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), -width * 0.5);
    glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5);
  }
  glEnd();

  /* draw outward faces of teeth */
  glBegin(GL_QUAD_STRIP);
  for (i = 0; i < teeth; i++) {
    angle = i * 2.0 * G_PI / teeth;

    glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5);
    glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5);
    u = r2 * cos(angle + da) - r1 * cos(angle);
    v = r2 * sin(angle + da) - r1 * sin(angle);
    len = sqrt(u * u + v * v);
    u /= len;
    v /= len;
    glNormal3f(v, -u, 0.0);
    glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5);
    glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), -width * 0.5);
    glNormal3f(cos(angle), sin(angle), 0.0);
    glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), width * 0.5);
    glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), -width * 0.5);
    u = r1 * cos(angle + 3 * da) - r2 * cos(angle + 2 * da);
    v = r1 * sin(angle + 3 * da) - r2 * sin(angle + 2 * da);
    glNormal3f(v, -u, 0.0);
    glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5);
    glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5);
    glNormal3f(cos(angle), sin(angle), 0.0);
  }

  glVertex3f(r1 * cos(0), r1 * sin(0), width * 0.5);
  glVertex3f(r1 * cos(0), r1 * sin(0), -width * 0.5);

  glEnd();

  glShadeModel(GL_SMOOTH);

  /* draw inside radius cylinder */
  glBegin(GL_QUAD_STRIP);
  for (i = 0; i <= teeth; i++) {
    angle = i * 2.0 * G_PI / teeth;
    glNormal3f(-cos(angle), -sin(angle), 0.0);
    glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5);
    glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5);
  }
  glEnd();

}

void GearsScene::on_realize()
{
  // We need to call the base on_realize()
  Gtk::DrawingArea::on_realize();

  //
  // Get GL::Drawable.
  //

  Glib::RefPtr<Gdk::GL::Drawable> gldrawable = get_gl_drawable();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!gldrawable->gl_begin(get_gl_context()))
    return;

  static GLfloat pos[4] = {5.0, 5.0, 10.0, 0.0};
  static GLfloat red[4] = {0.8, 0.1, 0.0, 1.0};
  static GLfloat green[4] = {0.0, 0.8, 0.2, 1.0};
  static GLfloat blue[4] = {0.2, 0.2, 1.0, 1.0};

  glLightfv(GL_LIGHT0, GL_POSITION, pos);
  glEnable(GL_CULL_FACE);
  glEnable(GL_LIGHTING);
  glEnable(GL_LIGHT0);
  glEnable(GL_DEPTH_TEST);

  // Make the gears.
  m_Gear1 = glGenLists(1);
  glNewList(m_Gear1, GL_COMPILE);
  glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, red);
  gear(1.0, 4.0, 1.0, 20, 0.7);
  glEndList();

  m_Gear2 = glGenLists(1);
  glNewList(m_Gear2, GL_COMPILE);
  glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, green);
  gear(0.5, 2.0, 2.0, 10, 0.7);
  glEndList();

  m_Gear3 = glGenLists(1);
  glNewList(m_Gear3, GL_COMPILE);
  glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, blue);
  gear(1.3, 2.0, 0.5, 10, 0.7);
  glEndList();

  glEnable(GL_NORMALIZE);

  std::cout << "GL_RENDERER   = " << glGetString(GL_RENDERER)   << std::endl;
  std::cout << "GL_VERSION    = " << glGetString(GL_VERSION)    << std::endl;
  std::cout << "GL_VENDOR     = " << glGetString(GL_VENDOR)     << std::endl;
  std::cout << "GL_EXTENSIONS = " << glGetString(GL_EXTENSIONS) << std::endl;
  std::cout << std::endl;

  gldrawable->gl_end();
  // *** OpenGL END ***

  // Start timer.
  m_Timer.start();
}

bool GearsScene::on_configure_event(GdkEventConfigure* event)
{
  //
  // Get GL::Drawable.
  //

  Glib::RefPtr<Gdk::GL::Drawable> gldrawable = get_gl_drawable();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!gldrawable->gl_begin(get_gl_context()))
    return false;

  GLfloat h = (GLfloat)(get_height()) / (GLfloat)(get_width());

  glViewport(0, 0, get_width(), get_height());
  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  glFrustum(-1.0, 1.0, -h, h, 5.0, 60.0);
  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  glTranslatef(0.0, 0.0, -40.0);

  gldrawable->gl_end();
  // *** OpenGL END ***

  return true;
}

bool GearsScene::on_expose_event(GdkEventExpose* event)
{
  //
  // Get GL::Drawable.
  //

  Glib::RefPtr<Gdk::GL::Drawable> gldrawable = get_gl_drawable();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!gldrawable->gl_begin(get_gl_context()))
    return false;

  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  glPushMatrix();
    glRotatef(m_ViewRotX, 1.0, 0.0, 0.0);
    glRotatef(m_ViewRotY, 0.0, 1.0, 0.0);
    glRotatef(m_ViewRotZ, 0.0, 0.0, 1.0);

    glPushMatrix();
      glTranslatef(-3.0, -2.0, 0.0);
      glRotatef(m_Angle, 0.0, 0.0, 1.0);
      glCallList(m_Gear1);
    glPopMatrix();

    glPushMatrix();
      glTranslatef(3.1, -2.0, 0.0);
      glRotatef(-2.0 * m_Angle - 9.0, 0.0, 0.0, 1.0);
      glCallList(m_Gear2);
    glPopMatrix();

    glPushMatrix();
      glTranslatef(-3.1, 4.2, 0.0);
      glRotatef(-2.0 * m_Angle - 25.0, 0.0, 0.0, 1.0);
      glCallList(m_Gear3);
    glPopMatrix();

  glPopMatrix();

  // Swap buffers.
  if (gldrawable->is_double_buffered())
    gldrawable->swap_buffers();
  else
    glFlush();

  gldrawable->gl_end();
  // *** OpenGL END ***

  //
  // Print frame rate.
  //

  ++m_Frames;

  double seconds = m_Timer.elapsed();
  if (seconds >= 5.0)
    {
      // std::cout.setf(std::ios_base::fixed, std::ios_base::floatfield);
      std::cout.setf(std::ios::fixed, std::ios::floatfield);
      std::cout.precision(3);
      std::cout << m_Frames << " frames in "
                << seconds << " seconds = "
                << (m_Frames / seconds) << " FPS\n";
      m_Timer.reset();
      m_Frames = 0;
    }

  return true;
}

bool GearsScene::on_map_event(GdkEventAny* event)
{
  if (!m_ConnectionIdle.connected())
    m_ConnectionIdle = Glib::signal_idle().connect(
      sigc::mem_fun(*this, &GearsScene::on_idle), GDK_PRIORITY_REDRAW);

  return true;
}

bool GearsScene::on_unmap_event(GdkEventAny* event)
{
  if (m_ConnectionIdle.connected())
    m_ConnectionIdle.disconnect();

  return true;
}

bool GearsScene::on_visibility_notify_event(GdkEventVisibility* event)
{
  if (event->state == GDK_VISIBILITY_FULLY_OBSCURED)
    {
      if (m_ConnectionIdle.connected())
        m_ConnectionIdle.disconnect();
    }
  else
    {
      if (!m_ConnectionIdle.connected())
        m_ConnectionIdle = Glib::signal_idle().connect(
          sigc::mem_fun(*this, &GearsScene::on_idle), GDK_PRIORITY_REDRAW);
    }

  return true;
}

bool GearsScene::on_idle()
{
  m_Angle += 2.0;

  // Invalidate the whole window.
  invalidate();

  // Update window synchronously (fast).
  if (m_IsSync)
    update();

  return true;
}


//
// The application class.
//

class Gears : public Gtk::Window
{
public:
  explicit Gears(bool is_sync = true);
  virtual ~Gears();

protected:
  // signal handlers:
  void on_button_quit_clicked();
  virtual bool on_key_press_event(GdkEventKey* event);

protected:
  // member widgets:
  Gtk::VBox m_VBox;
  GearsScene m_GearsScene;
  Gtk::Button m_ButtonQuit;
};

Gears::Gears(bool is_sync)
  : m_VBox(false, 0), m_GearsScene(is_sync), m_ButtonQuit("Quit")
{
  //
  // Top-level window.
  //

  set_title("Gears");

  // Get automatically redrawn if any of their children changed allocation.
  set_reallocate_redraws(true);

  add(m_VBox);

  //
  // Gears scene.
  //

  m_GearsScene.set_size_request(300, 300);

  m_VBox.pack_start(m_GearsScene);

  //
  // Simple quit button.
  //

  m_ButtonQuit.signal_clicked().connect(
    sigc::mem_fun(*this, &Gears::on_button_quit_clicked));

  m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0);

  //
  // Show window.
  //

  show_all();
}

Gears::~Gears()
{
}

void Gears::on_button_quit_clicked()
{
  Gtk::Main::quit();
}

bool Gears::on_key_press_event(GdkEventKey* event)
{
  GLfloat x, y, z;

  m_GearsScene.get_view_rot(x, y, z);

  switch (event->keyval)
    {
    case GDK_z:
      z += 5.0;
      break;
    case GDK_Z:
      z -= 5.0;
      break;
    case GDK_Up:
      x += 5.0;
      break;
    case GDK_Down:
      x -= 5.0;
      break;
    case GDK_Left:
      y += 5.0;
      break;
    case GDK_Right:
      y -= 5.0;
      break;
    case GDK_Escape:
      Gtk::Main::quit();
      break;
    default:
      return true;
    }

  m_GearsScene.set_view_rot(x, y, z);

  m_GearsScene.invalidate();

  return true;
}


//
// Main.
//

int main(int argc, char** argv)
{
  Gtk::Main kit(argc, argv);

  //
  // Init gtkglextmm.
  //

  Gtk::GL::init(argc, argv);

  //
  // Parse arguments.
  //

  bool is_sync = true;

  for (int i = 1; i < argc; ++i) {
    if (std::strcmp(argv[i], "--async") == 0)
      is_sync = false;
  }

  //
  // Instantiate and run the application.
  //

  Gears gears(is_sync);

  kit.run(gears);

  return 0;
}

Generated on Mon Feb 27 18:46:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/drawingarea_8h-source.html0000644000175000001440000001765510400731256021527 00000000000000 gtkglextmm: gtkmm/gl/drawingarea.h Source File
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Examples

drawingarea.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gtkglextmm - C++ Wrapper for GtkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GTKMM_GL_DRAWINGAREA_H
00021 #define _GTKMM_GL_DRAWINGAREA_H
00022 
00023 #include <gtkmm/drawingarea.h>
00024 
00025 #include <gtkmm/gl/widget.h>
00026 
00027 namespace Gtk
00028 {
00029   namespace GL
00030   {
00031 
00037     class DrawingArea : public Gtk::DrawingArea,
00038                         public Gtk::GL::Widget<DrawingArea>
00039     {
00040     private:
00041       // noncopyable
00042       DrawingArea(const DrawingArea&);
00043       DrawingArea& operator=(const DrawingArea&);
00044 
00045     public:
00046       virtual ~DrawingArea();
00047 
00048     public:
00049 
00056       DrawingArea() {}
00057 
00067       DrawingArea(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
00068                   const Glib::RefPtr<const Gdk::GL::Context>& share_list,
00069                   bool direct = true,
00070                   int render_type = Gdk::GL::RGBA_TYPE)
00071       { set_gl_capability(glconfig, share_list, direct, render_type); }
00072 
00081       DrawingArea(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
00082                   bool direct = true,
00083                   int render_type = Gdk::GL::RGBA_TYPE)
00084       { set_gl_capability(glconfig, direct, render_type); }
00085 
00086     };
00087 
00118   } // namespace GL
00119 } // namespace Gtk
00120 
00121 #endif // _GTKMM_GL_DRAWINGAREA_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/font_8h__incl.md50000644000175000001440000000004010400731256017554 0000000000000098ea5a11e3ccab38b28bb79c23932f5cgtkglextmm-1.2.0/docs/reference/html/font_8h__incl.map0000644000175000001440000000010310400731256017644 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 174,56 294,80 gtkglextmm-1.2.0/docs/reference/html/font_8h__incl.png0000644000175000001440000000522510400731256017665 00000000000000‰PNG  IHDRò·]Áˆ$PLTEþÿÿ§§§o???¿¿¿___ßßߟŸŸÿÿÿ«d¨tRNS@æØf IDATxœíMs⸆ç·Pw—åÔLS°œ¾©®x™;©TXÝjÒìå,:ËÌÚ^NWªV÷†ïcý¹Ñ‘l?0$–Œeû]Ø Û)=9’ˆ^ˆPYõé+p2UäåSE^>UäåSäËGI|E‚Ê‚œã]U‘ TEÎã.ŽªÈª"Gºcé¡k޹++eJŽZ¥%Ge$ïvLhíO3çEýUméO“« &Q[ì]*+r»þ@Èë÷“åliê­‹Þ…ü’¹+KeE¾RBn,ï,d"SG®ábrü’¹+KeEŽ) 9f […'ßóâ“Ûõ¾×ϯòQQÉkµÚYtlgÈÍ“ƒàåÒØ}tǪˆäÿ‚—¸µ7ï- ù™×ÚŸÄ{‹D¾ à%œ«ûY g©5uT>r`^Ðaý¨û CN˜ä%ò#üdO_ùâíõ|ÃOoû<'†|q&äÇúÊ/¹`ðü’‹Ï/¹hðÜ’/ß’Ry%òžöîŸÚcÏéݾ‚ÉŇœ%·÷“»ŠM_dE.>ä,9J ÷'‡‘gr`=pkQ{ļ§>¾­Þ£þJÚÖÁ Âäø óœ'îä„Ü#¸4€üyð1ïÄÇ¿|@¿~Â%†kèàòcrpöwÏyâMžEÈ=‚6ÒÜDçÄÔ¯¾!(1ÀæÓÁñÅä†[,r¹2¶ë ¹I:?-1tpù¡ŸgAžEcOŽùŸÈ/ÙÆ< òLB¾íç]ÚÏor¿ŸSrpù7ÙgòèØ¾#_ÏéØNÉal‡“xrá!¯‘_-%øY(äòKMÎxš—ƒßÝrù’ o쬃¿ž×ÞtùÅ‘‹ߘõªwH¹è/<ðüÍR’/èz xîÈ…5vºVª½aÕ&ªLÈç)Ä~y±öU{ÃÚETÂÈÙÆž¼Xž,ïÙZš–‘cÞV=-ùâÝø±âHO*òE$Ö”Gò °OòàÈΡŸ ?ò` JDú0gjYõá Ã‰Î¤nr›ó¬@q#õÍ$òïpÐáDiÇô6IÉÿ%‘7á Ã‰ÒÒ\@YÉÃÃ1­}·cÚjÇ´ì;ÆwzëéÐоd¡îl5Už¦#&Õ]*òÈŸì¤ö`w_}:7­Kƒ±Ä7£ËAÃÐ7#|ÉZß?ôLô²´˜Tw©È#ŸÀ¤ö`}vÐÒœ˜ˆµÊŒ6Ò }màK–k,5LŽ“ê^r°»MŒôü%§ÜÐáäX:ž ˜è—Ï “ð-yt~ºyÇÜÒ†üoDb's„ )KKRò蟛^?ïÓ~nk ù=8å†~vý|¼±6R’ÇL«‚c;bšˆŒíMc»Óá˜ã±^dž-äq^ ©ý¾¤öN¹4äÁT(šñ¹mí͸'8åÒ;ù‚šÂ^kOj?à”ËBêäÔN7?Oa©¯ÔäáNîyâiÌò[ þ ¿ˆÔä!DœÇü|± ½€6–¿fÈ;êä¼³šnT¯ŸòÙIÉŸd¸C?ÿ úy€<1Ï}ߨn^íÈÛs2¶/¡3ÀØŽËÆ¯–zJrÆÄ'c»Ó}Ó6w¯ÿ '湇Èž‡>Ê©žaÀÛ«3&þîÞƒ!ã?ÜڿDZáÖ~‘+rÆÄ?"Ã*lü‡Z;:…-Õ\‘3&þ1î(ô ùy&Ö¸¯ÜÍR3p£¨rGŽbH!Ê#9(à: Q^ÉAÛ•†Ôvx6äïWdéÜ_]ÚWù£´—œÓBÃGäÑ¥>+Š{ɹŠ÷Š¢¿Š,$æ\•~9f1¥¬¼äá®îe‹”<~U¿ä±èLåõЄÊé‘­Üý«ÛâÝ'¤4äqÿ›˜@¾QÈVîþU¿XJò˜„¸òWÄZßr“ÇTr¯¦C] ˜MÛû—9ÖÓt¤?;Qo×=4fòÛe"TþrÐø³ý‡ªÛu‡Ù´ýo—9ÖËvynénëâm£1ùí2‘GƒN*ßFúã]è7»™óý —ar0À—šîàSûµÅä·KE :©¼‰\ÝÀýüÇKÞt Ûù¬èà¾ù±k|Õ٠ͥ"}sÇÜ3äßF+b®,-sWqó¿´äá {ý¼Kú9ºbÈûíçã íçºrc¬:h$+y8èÁ±}ÅlWÿ€‚c»=½ÔÖ2¥%Tþ¾½j÷¢‹–¨ÿKõZ{²¾% ²ÊO~Èï{çå,X.y°¹—c®æ)ôR‘‚^‘¿K²‘š{¹ÈÙ §¶Ã…KŠÝ“„H–³ø«"ç"©š»d»!r”d;`rTEÎI5w)w7æ")w´æ¢Šœ—äiîB¾­@ŠÀóÿ†Š3?m"çñ},f¦€ïà°?€‰øÞ¥,ÓŸß/11—!èúyiÉùî‹ N‚Z»Aò=ŠR]ÐwgÖjy7…}Slšg‘›$Ýàåj‚¼D÷ÕôSwoVS…Éo/yý±5!yí°÷‹A7xé]^¢;2×õ‡\…˜oóÛ An,5Ã1a#Ø¿{·ÙMtG&lWMvÿöBãÞû×’éKw|ÑYò&ä;½Êdy‚‡tLsœ£1ÿ6òb^HòúãõØ&ä°gûnƒšèîõsB>*9Ûon6lß‘?à3Ævü¦¡˜#ß½?zï—‘½÷K1Èû»÷ÇïýRòÌ}ƒ*rîªÈ³}ô ªÈ¹«´+ ùWE^>UäåÓ?…ß2††Û¸IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/font_8h__dep__incl.md50000644000175000001440000000004010400731256020543 00000000000000e90a99a72f928807ff1cedc6c2cfa193gtkglextmm-1.2.0/docs/reference/html/font_8h__dep__incl.map0000644000175000001440000000012310400731256020635 00000000000000base referer rect $gdkglmm_8h.html 174,8 260,32 rect $gtkglmm_8h.html 310,8 393,32 gtkglextmm-1.2.0/docs/reference/html/font_8h__dep__incl.png0000644000175000001440000000153210400731256020651 00000000000000‰PNG  IHDR’'×ÜÓ»!PLTEþÿÿo???¿¿¿___ßßߟŸŸÿÿÿÛ€!tRNS@æØfçIDATX…í–;Ú@…÷/ЦŒ” Ó&±%»A 0.Sl%Ù‡<íŠÂt3îãù•¹36~€€— J|Š FÇçãÎŒ}CÿÝüío¦œäú”“\Ÿr’ëÓ¥HÈ Êî¡ïHìSî{`©Øeg÷ÈIr’œäI–²“dòˆ"ÅpTUfÅVå–õ&ñ›- ‰)$Éý M°¼vº‡;9ì¸<†d.p’¹°ÚhhdYÈN’ìÑ{ ’oŒ=#¦~Bd&IñÐN#YXCÔ°†"it7ø7ÅŸFà }2y6U»¯YBŸÊ0FðHàÓ%a!âRlT×UY¢u<èk’µ@÷¨%•º$ ÔÚ‘¤x<©ÝèùN’±Ir׽팾aQ)«Æt;5ÅfI.¡¥Ü’èÉk÷+Œ!ÞøÅ!á!âRÔ^„Çö/$E£8‚Êz¾Ö¤VuXÅÔ‚¯.Iš†žÔ}§ ó‰ ±7 %±…Tr›"¬#5A’1!Eé ¯ ß…ñ\m*=MhUjbóÖ‚:Õ¨&QÛ@_Ë4 Q´€ƒS„ùD˜Dì“/r¤ ‘¤Ê ÛD. Ñé‰Fm Ã>ù8„[î“èô¨ž€L?<MÂz"@OÔU€äû€÷d3p{r@BiB Ö“[è‰5‹è‰O’æÁV—TŽèI É]wÂ÷ iHúH)÷Mu‹Ü}ÂIæ!–#vø>¡u£ø&™„H’=‰Ññœº%ñÎ.­î“´ ?»Ölñ±³ Æf+…IbŸÏÞÙe¶øÉ ÑöH=„ŠN;¾ƒSmGò‰ì=JMÙ«ä÷®Šw䯱;5ù½kç‘äp°º^£²ÂꪞKR{ùá^Âê*G²óHrØ_]´v²Fç’lHqw=˜âóH<‡ü­>'ÉIþO’ 蔿#»Ç%IÞ_9Éõ)'¹>ýÝ0¾ÀwIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2version_8h__incl.md50000644000175000001440000000004010400731257024314 00000000000000f9031f1b8f8747b8c03da6c5e912fd74gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2version_8h__incl.map0000644000175000001440000000010210400731257024403 00000000000000base referer rect $gtkglext_2gtkmm_2gl_2defs_8h.html 191,8 309,32 gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2version_8h__incl.png0000644000175000001440000000211410400731257024417 00000000000000‰PNG  IHDRÜ'W¯ä¨-PLTEþÿÿooooÃÃÃ;;;???¿¿¿___ßßߟŸŸÿÿÿ*ë.htRNS@æØfÍIDAThí˜ÍnÚ@Çó ~©ÐkÔ ¸¦ˆ’cÔÁ¡= 4ØÇV ‚#m°ìkŠz³+å‚ï3tfmÀØkC¥ÄsØ…ÿzgçÇÌîGìUÙÑßàÏZŽ{È–ã²å¸‡l/ë“§[ŠKûô‰¶Æ}FL¡Ñ4Üg|Ri¸Oô‡órÜ7ÇÍq·MÊŒyKL½/¬Ã~Љp•m sÄ5Þ ž1×÷ŒWŠÅìÅžÚ q¦±§’¸Ra Wó¨– ×¨Ò˜¿$®%Çpg%ŽÇ»µ{âJ[1_Åqoƒ`nÃü³Ý¸œwƒËšé¸SÖ܉Kã¸Ó ›Ó”Þ+Ec¶â¸å ˜ò Wß]FpY:®ö©¸ãÁRï+¤þ¶ãÔ¢ð¶ªBÚÓYÌÙÈ\ô;^Þ³Œ®«7²p¥0f×ݘUê|žË妴=PUêõ¹M]Ò“[r›ËÍ,\)Äí¶-,æá,𦠃]Ìt¯‹Js Ë=âoר´–]£¢4Ê£²´×¨*äz¦M´»Ë¦]r'¾Bn/ßøL̇É2W b>WK:d÷\5ì™my¼}ƒªÒ‡ñEµB¯Õ_÷Ç5À…¡L\‰ã:Å>Ç-Þt¸7­YëÕ~û=·Ø¯à‚/WÒ#þ¶q­’‰¸M¨g*Ó°¢ª!ä¶±$EsI\,nx©À(÷!î/)ŸÿÓ×Àzæ`ëê ªÔÕÛ̦« .ŸµªÃû,—Ë3ãêö÷¦Áfðoμ±Š¬‚«FümãBôˆ{:ŠâÖPUHü¤—ðìÕãï%:Çqïî•] ‚±¼ÉIwªJ±ó,ðq¾;æ{mŸìÂNç¸0wƒ tl­xWøf×\Dp¿tyvg]RüF|b^ ‹³»n!Œ9È.ÕªÜ;Ƴ‹M)ó—Õvã†GUZv›þJYe7ר´—Ô#¸mUe.k@pïúd1 ÷.Œw³q ë˜ÏÕ.â:Wܪ*í°ÍÞ=±q6îú"rŠƒpïÖ7¸«½®‚«ŽÓpñ žBj­7ÜW¸‡æ>ÇCÀ[ŸÌ0¾ÌÄÄŒgd Rû)‚[füd.3<™¤ãëx2[Y¸ÑoU›“yƒ«wƒ“9\WµÒp'²)ø-.V“–ý¹*¼ ÅjljÒ8®­Ç¯ñþÅ\KbˆÕÇâž«_cb565i«b.gMø³- 8Äê#q]RŒ‰ÕØÔ¤…Å<ѳ& üç?sÜ7Çý¯p_ÎþÉ¿Õ_帇l9î!Ûo¨MÑ×L.±IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classes.html0000644000175000001440000001036110400731256016766 00000000000000 gtkglextmm: Alphabetical List

gtkglextmm Class Index

C | D | F | P | W

  C  
  D  
  F  
Pixmap (Gdk::GL)   Widget (Gtk::GL)   
Config (Gdk::GL)   Drawable (Gdk::GL)   Font (Gdk::GL)   PixmapExtProxy (Gdk::GL)   Window (Gdk::GL)   
Context (Gdk::GL)   DrawingArea (Gtk::GL)   
  P  
  W  
WindowExtProxy (Gdk::GL)   

C | D | F | P | W


Generated on Mon Feb 27 18:47:49 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/dir_000000_dep.map0000644000175000001440000000012110400731256017340 00000000000000base referer rect dir_000001.html 29,40 101,88 rect dir_000000.html 18,18 208,98 gtkglextmm-1.2.0/docs/reference/html/dir_000000_dep.png0000644000175000001440000000101710400731256017354 00000000000000‰PNG  IHDRâÅ6îx6PLTEþÿÿ¿¿¿???ßßߟŸŸ___²²¿;;?wwÐÐß””ŸYY_îîÿÿÿÿµ tRNS@æØf‡IDATxœíÚn‚0@aeBkáîý_v·M¶¸lL x/ç$JýKø¤Åh<}¸ï´÷¬DAôDAôDAôDAôÐD±Ý"âd9ˆM¢‰ B4Dˆ&‚ÑD!šâ‰Í~{aâý£"Dˆ!B„"Dˆ!º$†?Ÿöob’ôàÛâ}W¹¼KhE%ß$M1×­¾&æ”ä–%ê]qš ·#¾u!t͈qHisŸú\ˆz‡ºâÔ˨—4nG¼œË,mEÌ} ù¦ceH,”:_Ë ¿‡Û%Ô«FĺçJ+›²‡aÜŸ¸ÎQÔM=Šz£ßXÖâµéZçkQO7»×>£N9îM<‡%ŠK‰ý×Ùå©Ö˜¨]+b¨Ã‹u¢JZu¢ÊðÛÜ…¸4óß4 B„"Dˆ!B„âáˆþÿj0ˆM¢‰ ‡h»%DoAôDAôDAôDAôDAôDAôDAôЈŸ ]ÄQ¿¨IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Window-members.html0000644000175000001440000002171010400731256023227 00000000000000 gtkglextmm: Member List

Gdk::GL::Window Member List

This is the complete list of members for Gdk::GL::Window, including all inherited members.

add_interface(GType gtype_implementer)Gdk::GL::Drawable [static]
create(const Glib::RefPtr< const Config > &glconfig, const Glib::RefPtr< const Gdk::Window > &window, const int *attrib_list=0)Gdk::GL::Window [static]
draw_cone(bool solid, double base, double height, int slices, int stacks)Gdk::GL::Drawable [static]
draw_cube(bool solid, double size)Gdk::GL::Drawable [static]
draw_dodecahedron(bool solid)Gdk::GL::Drawable [static]
draw_icosahedron(bool solid)Gdk::GL::Drawable [static]
draw_octahedron(bool solid)Gdk::GL::Drawable [static]
draw_sphere(bool solid, double radius, int slices, int stacks)Gdk::GL::Drawable [static]
draw_teapot(bool solid, double scale)Gdk::GL::Drawable [static]
draw_tetrahedron(bool solid)Gdk::GL::Drawable [static]
draw_torus(bool solid, double inner_radius, double outer_radius, int nsides, int rings)Gdk::GL::Drawable [static]
get_current()Gdk::GL::Drawable [static]
get_gl_config()Gdk::GL::Drawable
get_gl_config() const Gdk::GL::Drawable
get_size(int &width, int &height)Gdk::GL::Drawable
get_window()Gdk::GL::Window
get_window() const Gdk::GL::Window
gl_begin(const Glib::RefPtr< Context > &glcontext)Gdk::GL::Drawable
gl_end()Gdk::GL::Drawable
gobj()Gdk::GL::Window [inline]
gobj() const Gdk::GL::Window [inline]
gobj_copy()Gdk::GL::Window
is_double_buffered() const Gdk::GL::Drawable
make_current(const Glib::RefPtr< Context > &glcontext)Gdk::GL::Drawable
swap_buffers()Gdk::GL::Drawable
wait_gdk()Gdk::GL::Drawable
wait_gl()Gdk::GL::Drawable
Window(const Glib::RefPtr< const Config > &glconfig, const Glib::RefPtr< const Gdk::Window > &window, const int *attrib_list=0)Gdk::GL::Window [protected]
wrap(GdkGLWindow *object, bool take_copy=false)Gdk::GL::Window [related]
Gdk::GL::Drawable::wrap(GdkGLDrawable *object, bool take_copy=false)Gdk::GL::Drawable [related]
~Drawable()Gdk::GL::Drawable [virtual]
~Window()Gdk::GL::Window [virtual]


Generated on Mon Feb 27 18:47:57 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/widget_8h-source.html0000644000175000001440000004311010400731257020510 00000000000000 gtkglextmm: gtkmm/gl/widget.h Source File

widget.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gtkglextmm - C++ Wrapper for GtkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GTKMM_GL_WIDGET_H
00021 #define _GTKMM_GL_WIDGET_H
00022 
00023 #include <gtkmm/widget.h>
00024 
00025 #include <gdkmm/gl/tokens.h>
00026 #include <gdkmm/gl/config.h>
00027 #include <gdkmm/gl/context.h>
00028 #include <gdkmm/gl/window.h>
00029 
00030 namespace Gtk
00031 {
00032   namespace GL
00033   {
00034 
00047     bool widget_set_gl_capability(Gtk::Widget& widget,
00048                                   const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
00049                                   const Glib::RefPtr<const Gdk::GL::Context>& share_list,
00050                                   bool direct = true,
00051                                   int render_type = Gdk::GL::RGBA_TYPE);
00052 
00064     bool widget_set_gl_capability(Gtk::Widget& widget,
00065                                   const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
00066                                   bool direct = true,
00067                                   int render_type = Gdk::GL::RGBA_TYPE);
00068 
00075     bool widget_is_gl_capable(const Gtk::Widget& widget);
00076 
00082     Glib::RefPtr<Gdk::GL::Config> widget_get_gl_config(const Gtk::Widget& widget);
00083 
00097     Glib::RefPtr<Gdk::GL::Context> widget_create_gl_context(const Gtk::Widget& widget,
00098                                                             const Glib::RefPtr<const Gdk::GL::Context>& share_list,
00099                                                             bool direct = true,
00100                                                             int render_type = Gdk::GL::RGBA_TYPE);
00101 
00114     Glib::RefPtr<Gdk::GL::Context> widget_create_gl_context(const Gtk::Widget& widget,
00115                                                             bool direct = true,
00116                                                             int render_type = Gdk::GL::RGBA_TYPE);
00117 
00127     Glib::RefPtr<Gdk::GL::Context> widget_get_gl_context(const Gtk::Widget& widget);
00128 
00134     Glib::RefPtr<Gdk::GL::Window> widget_get_gl_window(const Gtk::Widget& widget);
00135 
00141     Glib::RefPtr<Gdk::GL::Drawable> widget_get_gl_drawable(const Gtk::Widget& widget);
00142 
00148     template <class T_GtkWidget>
00149     class Widget
00150     {
00151     public:
00152       virtual ~Widget() = 0;
00153 
00154     public:
00155 
00167       bool set_gl_capability(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
00168                              const Glib::RefPtr<const Gdk::GL::Context>& share_list,
00169                              bool direct = true,
00170                              int render_type = Gdk::GL::RGBA_TYPE)
00171       { return widget_set_gl_capability(*static_cast<T_GtkWidget*>(this), glconfig, share_list, direct, render_type); }
00172 
00183       bool set_gl_capability(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
00184                              bool direct = true,
00185                              int render_type = Gdk::GL::RGBA_TYPE)
00186       { return widget_set_gl_capability(*static_cast<T_GtkWidget*>(this), glconfig, direct, render_type); }
00187 
00193       bool is_gl_capable() const
00194       { return widget_is_gl_capable(*static_cast<const T_GtkWidget*>(this)); }
00195 
00200       Glib::RefPtr<Gdk::GL::Config> get_gl_config()
00201       { return widget_get_gl_config(*static_cast<T_GtkWidget*>(this)); }
00202 
00207       Glib::RefPtr<const Gdk::GL::Config> get_gl_config() const
00208       { return widget_get_gl_config(*static_cast<const T_GtkWidget*>(this)); }
00209 
00222       Glib::RefPtr<Gdk::GL::Context> create_gl_context(const Glib::RefPtr<const Gdk::GL::Context>& share_list,
00223                                                        bool direct = true,
00224                                                        int render_type = Gdk::GL::RGBA_TYPE)
00225       { return widget_create_gl_context(*static_cast<T_GtkWidget*>(this), share_list, direct, render_type); }
00226 
00238       Glib::RefPtr<Gdk::GL::Context> create_gl_context(bool direct = true,
00239                                                        int render_type = Gdk::GL::RGBA_TYPE)
00240       { return widget_create_gl_context(*static_cast<T_GtkWidget*>(this), direct, render_type); }
00241 
00250       Glib::RefPtr<Gdk::GL::Context> get_gl_context()
00251       { return widget_get_gl_context(*static_cast<T_GtkWidget*>(this)); }
00252 
00257       Glib::RefPtr<Gdk::GL::Window> get_gl_window()
00258       { return widget_get_gl_window(*static_cast<T_GtkWidget*>(this)); }
00259 
00264       Glib::RefPtr<const Gdk::GL::Window> get_gl_window() const
00265       { return widget_get_gl_window(*static_cast<const T_GtkWidget*>(this)); }
00266 
00271       Glib::RefPtr<Gdk::GL::Drawable> get_gl_drawable()
00272       { return widget_get_gl_drawable(*static_cast<T_GtkWidget*>(this)); }
00273 
00278       Glib::RefPtr<const Gdk::GL::Drawable> get_gl_drawable() const
00279       { return widget_get_gl_drawable(*static_cast<const T_GtkWidget*>(this)); }
00280 
00281     };
00282 
00283     template <class T_GtkWidget>
00284     Widget<T_GtkWidget>::~Widget()
00285     {}
00286 
00299   } // namespace GL
00300 } // namespace Gtk
00301 
00302 #endif // _GTKMM_GL_WIDGET_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2defs_8h-source.html0000644000175000001440000001203210400731256024164 00000000000000 gtkglextmm: gtkmm/gl/defs.h Source File

defs.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gtkglextmm - C++ Wrapper for GtkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GTKMM_GL_DEFS_H
00021 #define _GTKMM_GL_DEFS_H
00022 
00023 #include <glibmmconfig.h>
00024 
00025 #ifdef GTKMM_WIN32
00026 #  ifdef GTKMM_GL_COMPILATION
00027 #    define GTKMM_GL_VAR extern __declspec(dllexport)
00028 #  else
00029 #    define GTKMM_GL_VAR extern __declspec(dllimport)
00030 #  endif
00031 #else
00032 #  define GTKMM_GL_VAR extern
00033 #endif
00034 
00035 #endif // _GTKMM_GL_DEFS_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Window__coll__graph.md50000644000175000001440000000004010400731256024001 000000000000008defc771b97d0bc130d6a7aec980171agtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Window__coll__graph.map0000644000175000001440000000007610400731256024102 00000000000000base referer rect $classGdk_1_1GL_1_1Drawable.html 7,9 141,33 gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Window__coll__graph.png0000644000175000001440000000152710400731256024113 00000000000000‰PNG  IHDR”t‘Ve$PLTEþÿÿoWWW???ßßß___¿¿¿ŸŸŸÿÿÿdA½tRNS@æØfáIDAThíØAoÚ0ð~®ëGر°¶á:Ô)9–Ša'6-9¶ëÖpܤµäHj|„„úùT‘¹Ù&0Ô%k´²®›ì‹ù+Î/ÏÏ Hlñ-MiêQ)<|°ŒÚ@IšúûTl=1!”]T9X|_—Î{Ų˜Píw‡“uJå%õ¡õ—§Þr^]§T^R˜GNyjÈy‹ïÓâû‰•*ò†˜ j6˜ ç~?ª£zúÉïst Ês(õˆé°å£iƒÏù|ñHY•Ç=AÅÁ¸›ÖÝC˵\1cÔhwØm§éäR&´=î"¯2þ±Á8xÌQ‹íU1c„gQíŒälPô gtkglextmm: gdkmm/gl/context.h Source File

context.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GDKMM_GL_CONTEXT_H
00004 #define _GDKMM_GL_CONTEXT_H
00005 
00006 #include <glibmm.h>
00007 
00008 // -*- C++ -*-
00009 /* gdkglextmm - C++ Wrapper for GdkGLExt
00010  * Copyright (C) 2002-2003  Naofumi Yasufuku
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00025  */
00026 
00027 #include <gdkmm/gl/defs.h>
00028 #include <gdkmm/gl/tokens.h>
00029 #include <gdkmm/gl/config.h>
00030 #include <gdkmm/gl/drawable.h>
00031 
00032 #include <GL/gl.h>
00033 
00034 
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _GdkGLContext GdkGLContext;
00037 typedef struct _GdkGLContextClass GdkGLContextClass;
00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00039 
00040 
00041 namespace Gdk
00042 {
00043 
00044 namespace GL
00045 { class Context_Class; } // namespace GL
00046 
00047 } // namespace Gdk
00048 namespace Gdk
00049 {
00050 namespace GL
00051 {
00052 
00053 class Drawable;
00054 
00061 class Context : public Glib::Object
00062 {
00063   
00064 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00065 
00066 public:
00067   typedef Context CppObjectType;
00068   typedef Context_Class CppClassType;
00069   typedef GdkGLContext BaseObjectType;
00070   typedef GdkGLContextClass BaseClassType;
00071 
00072 private:  friend class Context_Class;
00073   static CppClassType context_class_;
00074 
00075 private:
00076   // noncopyable
00077   Context(const Context&);
00078   Context& operator=(const Context&);
00079 
00080 protected:
00081   explicit Context(const Glib::ConstructParams& construct_params);
00082   explicit Context(GdkGLContext* castitem);
00083 
00084 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00085 
00086 public:
00087   virtual ~Context();
00088 
00089 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00090   static GType get_type()      G_GNUC_CONST;
00091   static GType get_base_type() G_GNUC_CONST;
00092 #endif
00093 
00095   GdkGLContext*       gobj()       { return reinterpret_cast<GdkGLContext*>(gobject_); }
00096 
00098   const GdkGLContext* gobj() const { return reinterpret_cast<GdkGLContext*>(gobject_); }
00099 
00101   GdkGLContext* gobj_copy();
00102 
00103 private:
00104 
00105 
00106 protected:
00107 
00108   Context(const Glib::RefPtr<const Drawable>& gldrawable,
00109           const Glib::RefPtr<const Context>& share_list,
00110           bool direct = true,
00111           int render_type = RGBA_TYPE);
00112 
00113   explicit Context(const Glib::RefPtr<const Drawable>& gldrawable,
00114                    bool direct = true,
00115                    int render_type = RGBA_TYPE);
00116 
00117 public:
00118 
00129   static Glib::RefPtr<Context> create(const Glib::RefPtr<const Drawable>& gldrawable,
00130                                       const Glib::RefPtr<const Context>& share_list,
00131                                       bool direct = true,
00132                                       int render_type = RGBA_TYPE);
00133 
00143   static Glib::RefPtr<Context> create(const Glib::RefPtr<const Drawable>& gldrawable,
00144                                       bool direct = true,
00145                                       int render_type = RGBA_TYPE);
00146 
00147 public:
00148 
00159   bool copy(const Glib::RefPtr<const Context>& src,
00160             unsigned long mask = GL_ALL_ATTRIB_BITS);
00161 
00162   
00166   Glib::RefPtr<Drawable> get_gl_drawable();
00167   
00171   Glib::RefPtr<const Drawable> get_gl_drawable() const;
00172 
00173   
00177   Glib::RefPtr<Config> get_gl_config();
00178   
00182   Glib::RefPtr<const Config> get_gl_config() const;
00183 
00184   
00189   Glib::RefPtr<Context> get_share_list();
00190   
00195   Glib::RefPtr<const Context> get_share_list() const;
00196 
00197   
00201   bool is_direct() const;
00202 
00203   
00207   int get_render_type() const;
00208 
00209   
00214   static Glib::RefPtr<Context> get_current();
00215 
00216 
00217 public:
00218 
00219 public:
00220   //C++ methods used to invoke GTK+ virtual functions:
00221 
00222 protected:
00223   //GTK+ Virtual Functions (override these to change behaviour):
00224 
00225   //Default Signal Handlers::
00226 
00227 
00228 };
00229 
00230 } // namespace GL
00231 } // namespace Gdk
00232 
00233 
00234 namespace Glib
00235 {
00241   Glib::RefPtr<Gdk::GL::Context> wrap(GdkGLContext* object, bool take_copy = false);
00242 }
00243 
00244 
00245 #endif /* _GDKMM_GL_CONTEXT_H */
00246 

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/context_8h__dep__incl.md50000644000175000001440000000004010400731256021261 00000000000000ac873295f34c8bdb23069594c6970323gtkglextmm-1.2.0/docs/reference/html/context_8h__dep__incl.map0000644000175000001440000000050010400731256021352 00000000000000base referer rect $gdkglmm_8h.html 785,160 870,184 rect $drawable_8h.html 195,136 342,160 rect $widget_8h.html 591,306 722,330 rect $gtkglmm_8h.html 921,197 1003,221 rect $pixmap_8h.html 391,136 530,160 rect $window_8h.html 391,233 530,257 rect $pixmapext_8h.html 579,160 734,184 rect $windowext_8h.html 578,258 735,282 gtkglextmm-1.2.0/docs/reference/html/context_8h__dep__incl.png0000644000175000001440000001411110400731256021364 00000000000000‰PNG  IHDRôR®Ñ‰‹*PLTEþÿÿ§§§oooÃÃÃo???¿¿¿___ßßߟŸŸÿÿÿ÷pN€tRNS@æØfÍIDATxœíKsÛF¶ÇçƒÍRËx'Ö˜ËÔU9ÒR±â7wjd_‰\¦¦¬’–Ž%XÞ”êZZܪH¢ bG‘Äþ.Ó€lˆÇéºÿSCDÜ à‡sºô9ý7äd©þ¦úœTÉ¡·V½µrè­•Co­zkåÐ[+‡ÞZ9ôÖÊ¡·V½µrè­•Co­zkåÐ[+‡ÞZ9ôÖÊ¡·V½µrè­•Co­zkåÐ[+‡ÞZ9ôÖÊ¡·V½µrè­•Co­zkåÐ[+‡ÞZ9ôÖÊ¡·V½µrè­•Co­zkåÐ[+‡ÞZ9ôÖÊ¡·V½µrè­•Co­zkåÐ[+‡ÞZ9ôÖÊ¡·V½µrè­•Co­zkåÐ[+‡ÞZ9ôÖÊ¡·V½µrè­•Co­zkåÐ[+‡ÞZ9ôÖÊ¡·V½µrè­•åèÇ[i©>™²}‚üÕÊúô°ºµ]² }òü½Û‹ßô5íxÜÚvÀôã†øZ‰ßôc¯ÝºÆ¿íèayµªño3ú¦n^f© ÔZô@n>[­°ýv¢ï—ÇæÃo!zIylºßoz©@ÌöûíB/…ɦß"ôŠ0 ¿5è:_Cý~KÐ+6=#ý~ÐkqáÍ3}óÑksÍM{Ô7½¿^G³IF£×Æà—2¾¹èu51ýnÇ™Š^CƒO4Öó–\“‘èu5øDš^,ћГ6àÍC¯±§çe€×7 ½îžž—ö·¨Iè 1øDº¾1èM2øDzߪ† 7¡k—!­ ßô†yz^û*ýÑ›èéyi{ÛêŽÞ`ƒO¤«××½éŸHÏÛWcô-0øDZ¾®èÛbð‰4¼õDß"ƒO¤Ÿákˆ¾mŸH·ÓÒ½¡/oJI¯SÓ } ==/­¼¾NèÛêéyitk냾åŸh¬ÍYj‚Þƒ¥Ó×½%ŸHöêÑ[dð‰ô8aÅè…f¼ÑWZ°WŠÞNîD:°W‡¾-9ÈêIƒ{^z»¹#-žñT ·°c·®±êÞҎݺ”_Éè÷…”»|™è­oàÓRíò¥¡wÜפØì堗ݱ[ͨšd!QlöÐËéØáàU»qÔ¥Öì…£Ï},ÕTsªO«ì?z`›$}…«PSšNKQöNPzèÑKhßuÄž¡ÜöA©Ù C/aD‚6ƒª(ý8¯òÖ…^¼=š:t7Å^¥ÙC£gç%Òã«e(x´Â^áY£g@Dbaw•‘¾>Ï^¡Ùâ§½¡XØKsMžŠg¯îL@Ñ“¬Ø&x̪XƒqìÕ™=$úñÊËBjßÞÀ‰c¯ìlÑW__À?Ø·…<Ï^™Ù᯽¹ÇTí5©ÞZ²Wu+á_çÂþž ôWz˜B°+QN öªÌž¡‡¸thm¦_jv¬s”ýY¦Ùè—ì™=úܯš`Çš‡½ÌÖ$a¯ÈìA­~E"¬¾Êúj¢èåv$öjÌ^4úW@`ˆÄ£—݇ŒÙ«1{±èÉ™„^þãCÌ^‰Ù EOÁÑ ëæ­õL*ñ«^+c¯ÄìWÑg+J'ä§Ï.vÏ«+ÝèKòã‘E´²Å[¬Zna%÷ð=/½-:§EÄ‹õ£[î.é%$+c›€±Wñ®b#úßú߸UA/þ‹¦èÿ$?Y”F¿áánýË-‚.Pwýè–»Ã>“”¿y{.#ú]†~—[&ègMÑwÈG%Ñ7=ׯ¢bE<å]¦ÕÃiõ³Fæ>d»—Ï¡¿¹œÝû—³ùýEÿtúa:|ößû‡ÃëÇè¼×^ßûW£t7ü/èz»wDoGx¯Ã2èÏN‚iï$§ÇÞÕýÁ}ôØ{ßëFçÏÃkß‹Îñ¦ÐÛù¹÷ñ©ëuçx‰¼«Ìüìs{ìu“’Ö>p5¢†×:ÐÂi=¸-Á5Gá%.å< wü+¶újØ%k0ú«û¸”0û¾Ð&þ”½|—¿D¿s4ûðãölþK¯عî|šÞ¾ÜÎÎ~ù´×ë“ÅÏ£??ýÞÔ {ß>ýüxõ…Z=Þ§úéö—ààÝNîû^w÷|wp?y˜/7ûƒ·¾÷rƒ7…Þëyw÷kg·³‹—¾·}q>Ÿ~9GÞ1.iý3Á²„‹úzô{Ï›nG´pZÿÔ…ߢÛÁÇxÄVßO²£Ç°Rˆs*RÄŸ~…–îò—胷ÃÙåèv6aÿöÂOsŒvöØû2ê÷údñ?øïí>öð ‡ýlTýl/ NÐ$¸°‹ûóAˆ<ûGÈó½go =?BÞïáû`?"+ýÉq8÷'}ÜJ }n‡›nÅE]Ü ]ïÐhá´ÿ”Ô…§¸”ÜÛûÔe«}¼¯Áèñ¬toórýÊ–‚ðË%zÜ‚Ïfåägýþ {ý»¸]ï³MäŸt{ñº2èñõ Lñö þ ÿÌ},¢ÐC/ߟùG¯_ÿƒ,=Ò1ðÈG ’•Thõ¸(ÏÇmý÷ç<ú©9 ;x‡ÿè³Õÿû& k=VŠ´wø™Æ¿%¿¹O[ýlõóþ[ýçµz²øH­žlêÍGÃáï×ÐÛ;ÂVz{úoˆZ=Y`«Gó½¹ÿïð×€,™Õ#äóè »yÄê÷°ÕGwú?n¨Õ?ÞÄVÿ¯s†þ%V/}ö`â-éÍ=ßÖŸ°¶þÞãÐ_~ùtÓë“kë)zÜÖß¶þ¬$úéö%kë§}ý)n ±Ÿ"ÚÖ#oïпîìöÉ·õh[“B_ðp‡‹¢m=:àÐ_ú¤æèÁgmýÓ‡#VýÝ”¶õ/jÐgv*¤³Ïèá¾rèwG´‡ˆõðñ¦»§tu::íí½­¢_?út}äÐwh·Üë ÚÃGÓá~ÞwÉ’öð£³?XAŸû6oÑß}X¢ÿBkŽnëá_¡«¿S«?üø#Y3÷¡G~KrWo‰þ¶7Ìóð#núË(>Ÿµ(˜‰Ÿõ* ¡wÈËZ­âwø9EÅ5¯W¿º†þ)uÄçjÇî•Üæ>åðw³þòéϲèÇYý×Äáw²ªßüVþX‹Ñç×\ }æñ ÔJ›o™ÕóÒËBúˆvJ¢Ï~;ü[?«úçÑvùc-FŸW«™¾ÄOiuM˜ý¾H¬Ò¹ä²ür—ó"Ô”¶pï韛7ý±ÌæÞ ÐJÖüZ×\\cKâ›gõ‰âïõJ’5,k”Èr¨FökJsÐ/ºyò#»–5nIëæÃŽÒÉúüaúåÃ)gúpq‹Ë”¥­d‡­Ñwu˨¦æ!ÉGv©2Ѓ]µ¿r\!dÆòøÏw뢢Ò*TtDÑ7å¤4¯I|)ÁÁoú¼þ¼T<{9«/’´w!Jzß}‘d±Wñ¾Í¡/µF ©â…›ô„´B/!‰U™®Ð*G€ ?AnŽ%Ȫfå“—±k¡©‹f/jÌl‘ÊÅ 4Í+à¸L,¹èee³SÐÏ+GP  L,Áè vúÊÐÇxWÈ›¿ÓÕ/,Ž=Îwü«Ùp¯D,ÁZ5¸äAÈÕÅ… hŠ^°á·^ɸZ&ŽÀÛ¾èzèóÅ;º:Ž#è~¼y>=¢V¿1–`­\2F¿¬‹ нØ,©²°•‹#ðüIßCÙ€Ð8Ž OêRô›c ¶VªÁ%B®..d@_ôB{{¯¤W/GàÑ8‚)B$q£Ñúq[_Êê¹jpÉ«è‘è;}eg¨LAlõoú8Ž ¢(ú×ù úÂnWM†Õ^loO®Ç/GÀÚú.Þ±aà,Ž€´õOH[_"–`­\r ý‹)è…¾\³/G@{ø/ý—ÒÕqº^¡+ÿí^‰X‚µjXY2 ;z ßG°þ&/ïÝ^ñ;|®š‚íÑ túR=~™8(ô\5 ú£×Ó—~CÁåÚ†õ5|i%ª)ˆP0½¨_ªÇwmëILƒïÐCHôì–bØËôø}] éì9ô’0±ö2=¾ôU,$=ü½¶dLbßÙ“Šd”ÿB™u`ŽßU(Ãô|%ù„Ei«òçH1ŠRÐÃ7ømBO®ME724Yzð_íÌï¢+»Eˆñ©²Ð³o ú$<µ:Ä-:Õc#Ë—†–}+Ð/ì¶ÎÙl5ž>XzXöæ7öœÅÖ9™¤ûT"Y‰èAÙž»õ\Øâ_Õ…/=ä¾áèStãÖ«Þ”Tô€ø&£_Í=p.uú{rÑñ7·Ÿ·öPs*Õ=ªdô`ì EŸ•lêŠT…/={#Ñg¿…k»Æ[›_ÿsŸ¤£‡z©k\cŸ7¹ àM\þ##ÙS>z ‡<ÃÐç»cÀÑ={£Ð½o· ={sÐO£Ùi1={Súy›:Þ·°蛳7ýæ'.ûÐ7foúÚ §Á¡gÑ?+Ñbé”>ÊÐ7f¯}c_ê‹ô3_kôMÙë~\r èY,ÐÏ5Gß½ÆèËrGBП½#\.1!ö›Êæ¤}3öº6ö¸CŸÄ"¶úéö2KýäóÙœbôØë‰¾â`IèIRŒþÐ_¦d‰'òå²9©Gß„½Žè+6‡mµ©˜0ìïÏ—‰˜èCÐ7a¯[c_üÖ.[ÐÇVÝeX½Vè°× }½rГTLöÁ2SŒþF3ôõÙëäñkÆCŸÂ¢‡ÿtç¡Ù¯‹DL1ú@7ôµÙkƒ¾~$„ô‹TLESEk‚¾6{-<~~ùᎃ(Š©hªh]Ð×e¯}ÓÀ71?NÅT4U´6èk²Wëñ!fe¾y ùr—V­‹¨=ÔD÷=ªÉ^ǯô¦¶X=Qö*Ìrèã7}öÒÑOºäÐǪqU¥z|øÉ¶€Ñoé‚‘¯êWVžÙ ™d öέz€:¡¯Á^ŠÙCõç×zô•Q+ôÕ_¼Ù œ^ òàk„³é…¾:{h,éòÄÎ¥ ˆ¾N«fè+³‡î)-/¡07¿àSb¢tC_9El{×>–2‹&\tu­’´C_õ< “°Ràr°#@‡eB¥rªÊ®bˆ¤Ãª*§n³¤!úªìÁÒó@$ž­RL1µXGôÙC¥hI7]A ‡Ý G‰–諲¯J>_[&¢orÛ뉾Ú)ÁÌSÊxžãáï9FïÏÉNsÒß~ípée¤¢obôP#L@¿©³ÇÐhîù¸­ÿþœGß!©e¢°ƒŽ^¿þGD2 Ðp?ûé§Ÿn¸#òпjdô`cSŒ@¿át—V¿‡­>ºãÐÿqC­þñý;ü5 èÉNÄ꟧g¾ ôãʳ§þ5ØP3Ðwö’¶þŒ¶õè€Cé“Ô2у®;»}Š>ië_n'Ct£ý«úþp<š!è ü•þìÃýšZ&ºÅ;uç]ŠÞ{øèÿ/P€¾É 0È‘ˆÆ /hðúœÔ1‹Ô2›dzHò¡Ïwú‰ÃÏL³H-³I²Ðë%oú\§;üœÔ1Ij™M¢è%ŒÒ©?ì–¼Yèsœ>Ô—;9cój&oúìÓ‡A/iXfí!ßÐäMCŸÙàY½<ôu ‚“7}–Óuø¢ñ×,ž¼èׯØ(»Èð+mÈ›ˆ~ÍéÏaB0o’ãE?¤ð…þªÇPÄh"úÚ±¥…¢YÍÓ6IC2`Ÿ÷ëy(!M™è¡¦ÃNIÌ|­\໬z1CÑ‹¸9=<õV/¨Ûi,zx§ŸóÄ­½¨sу;ýeÏ.%Õè…=jŒÜðµD/î%ƒÑè ?;ÆZ-z¯—ÌF{i6¢‚•ûà’üxl‘ ȰJP½È”¦£uúØß:ü5ô’-Ð4Þiý̯^ÄK¼…ŒGéôqQëfV„¾C~<¶Xì´Š~^½Pò-@hø™ceɳ“`Ú; Âé1ê‰h€OtNzÑ9äñH$Þ)¼Ó`Ÿ½³‡ÉñK¿w„ÈTÒ¬´*èÅ’oúš3KfèUFëJÑ“žƒw;A¸Ïf…П—›ýÁ[ßà ÉãE÷²SøÛàìó|úåüóŵz2‘4Qô‚É·=¨×_½à=Í‚&Á}€èHßôûLf‹ö½gŸFòx$’ïh‡ûÑþ™Ã'SÊ•G/š|[ÐCzý•¿)zÃà¶þö þ‰„üøÞ¢‘<ØÐGƒ}¼Ñ(œq[_½pòíAæõ3Ñ«?ÂVz{úoˆZý7D#y(ú#fõ4Øcö/ÞÔC/ž|‹Ðƒyý•‹·õ—¬­Ÿö9ô§$äÇ÷Nä¡èã¶žû¶þÒÖ¿TF/|«Ð¥^1ût}äÐwhÈ×a‘<}ÜÃgÁ>gô_ŽŸîØTÒ´œrèeoz˜&?]EŸÃS4[t¦J¡—B¾uè!šü ôy1Qf¯O\[¬Üä‘CÏ)ƒ>¼Ëg5¨7yäЧµ–H e®ƒÉ#‡~]©†ØåÓ¢µ0yäÐgŠ3~Pöä®ÒÄä‘CŸ«„~̾yÎý0/«*9ôùbôûæ3m„µ'<$‡¾P„uÑÍÑÿ%gZ¥òrè7‰9éæè%M¦V^} ó’ðª’C_J[ß5.6v@}95¯çÐ*€>ÀQ€Ê¡/'ýj.­K¶î2Ù–Ú¾L°åЪ%úãUô$>^Ç’âw9ô©Dø½©Z¢VÑwÅÝIþ^lŸ;ômCÿ<¼¾¾ §ÿdéð—Iñ!KŠÿÿ!I—Irh>ÎS‰ðzSÅГô÷Øê÷Y:üh™²¤øAH’ä’Ý>Þ¤á;ô¦Š¡'‰°1qâóÿÒ¤øƒ%ÅßIB|ºÚI%ÂwèMCO’ÛÑí=MŠ?YRüÿ ÜÖ“£Ñ(• Ý¡7U¼Õ‡Þ;=MŠ?YRüAx[}ˆ"‡¾JÚú3‚~zÌ¡§Iñ!KŠÅmýkë_zóµèáûo±Éÿ7‡ž&Å„š?Zôð/G§©Dø½©bè³Ó߯­ÍÜÍ¡7T‰ÃÏJ¿¶6s7‡ÞPÅ?3ýýÚÚÌÝzCå¾ÜY+‡ÞZ9ôÖÊ¡·V½µ‚ˆ¾ÑL½µrè­•Co­zkåÐ[«ÿ®î}å‘B„ÑIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/gdkglmm_8h.html0000644000175000001440000001057410400731256017360 00000000000000 gtkglextmm: gdkglmm.h File Reference

gdkglmm.h File Reference

#include <gdkglextmm-config.h>
#include <gdkmm/gl/defs.h>
#include <gdkmm/gl/version.h>
#include <gdkmm/gl/tokens.h>
#include <gdkmm/gl/init.h>
#include <gdkmm/gl/query.h>
#include <gdkmm/gl/config.h>
#include <gdkmm/gl/context.h>
#include <gdkmm/gl/drawable.h>
#include <gdkmm/gl/pixmap.h>
#include <gdkmm/gl/pixmapext.h>
#include <gdkmm/gl/window.h>
#include <gdkmm/gl/windowext.h>
#include <gdkmm/gl/font.h>
#include <gdkmm/gl/wrap_init.h>

Include dependency graph for gdkglmm.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Generated on Mon Feb 27 18:46:57 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/graph_legend.html0000644000175000001440000001141210400731256017746 00000000000000 gtkglextmm: Graph Legend

Graph Legend

This page explains how to interpret the graphs that are generated by doxygen.

Consider the following example:

/*! Invisible class because of truncation */
class Invisible { };

/*! Truncated class, inheritance relation is hidden */
class Truncated : public Invisible { };

/* Class not documented with doxygen comments */
class Undocumented { };

/*! Class that is inherited using public inheritance */
class PublicBase : public Truncated { };

/*! A template class */
template<class T> class Templ { };

/*! Class that is inherited using protected inheritance */
class ProtectedBase { };

/*! Class that is inherited using private inheritance */
class PrivateBase { };

/*! Class that is used by the Inherited class */
class Used { };

/*! Super class that inherits a number of other classes */
class Inherited : public PublicBase,
                  protected ProtectedBase,
                  private PrivateBase,
                  public Undocumented
                  public Templ<int>
{
  private:
    Used *m_usedClass;
};
If the MAX_DOT_GRAPH_HEIGHT tag in the configuration file is set to 240 this will result in the following graph:

graph_legend.png

The boxes in the above graph have the following meaning:

  • A filled black box represents the struct or class for which the graph is generated.
  • A box with a black border denotes a documented struct or class.
  • A box with a grey border denotes an undocumented struct or class.
  • A box with a red border denotes a documented struct or class forwhich not all inheritance/containment relations are shown. A graph is truncated if it does not fit within the specified boundaries.
The arrows have the following meaning:
  • A dark blue arrow is used to visualize a public inheritance relation between two classes.
  • A dark green arrow is used for protected inheritance.
  • A dark red arrow is used for private inheritance.
  • A purple dashed arrow is used if a class is contained or used by another class. The arrow is labeled with the variable(s) through which the pointed class or struct is accessible.
  • A yellow dashed arrow denotes a relation between a template instance and the template class it was instantiated from. The arrow is labeled with the template parameters of the instance.

Generated on Mon Feb 27 18:48:00 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/namespacemembers_vars.html0000644000175000001440000000372410400731257021701 00000000000000 gtkglextmm: Class Members


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/drawable_8h.html0000644000175000001440000001046510400731256017516 00000000000000 gtkglextmm: gdkmm/gl/drawable.h File Reference

drawable.h File Reference

#include <glibmm.h>
#include <glibmm/interface.h>
#include <gdkmm/gl/defs.h>
#include <gdkmm/gl/config.h>
#include <gdkmm/gl/context.h>
#include <GL/gl.h>

Include dependency graph for drawable.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL
namespace  Glib

Classes

class  Gdk::GL::Drawable


Generated on Mon Feb 27 18:47:12 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/tokens_8h__incl.md50000644000175000001440000000004010400731257020112 00000000000000da4e52a4f7b0f448dc0be7922a83e9a8gtkglextmm-1.2.0/docs/reference/html/tokens_8h__incl.map0000644000175000001440000000010310400731257020202 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 192,56 312,80 gtkglextmm-1.2.0/docs/reference/html/tokens_8h__incl.png0000644000175000001440000000341110400731257020216 00000000000000‰PNG  IHDRolžµR$PLTEþÿÿ§§§o???¿¿¿___ßßߟŸŸÿÿÿ«d¨tRNS@æØf“IDATxœíœMoâ8Çç³ô:Ç™"z]¡Y8¶ƒªÎi%Ú-ɱ‡"82_WH§oÁ¹QBüåÖ¨ I @BÞþ‡8Ä1Å?ü‚ŸÜO$íútîpve2Œ@F #&?÷R)ÄO “À~uËd2Œ@˜šbjŽ™«”@£ˆ„»BTè*D*)(ÄBVG#*ÈJ •X6(›H¢ Ì.XâÛ’NàØã@÷ePÎ¹à€…RAàâ3œ¦~W%‘À… ÀîOþw'Žýþyøl÷œó/,3ÞôÅ‘p§’B`öÞóá;IuݹfüUjð&ï¢tð¬> €À|?b[â›pøx­~öøèäŽÉ|ÿ[½ËŒÀfÏGÑ"plmޮɡå2Œ€“Àذ6kV…ƒÌWÈ++´þ”€Q2EOƒíè†Aë4ÿK$0ÄPgy;“²¾üÊÃ8p~®„Ê~)´æbDÞ§ 4i°ä¼@à³6ðŒy ™Æ,+½ <ÚÀ Y]Y·F…*FŠ@ ‹oú’ÜÅö80R`€¬·‰UWb5pz®-z»æü"(b6ñðÍø…&,‹ÎF$¸: ÌçNæÁ“ð 0œ³=×7:,ì¡pëÎ×â¼&;z#Úø¹àÝ ŠnU»yø7‚X$rÕ v8ô‡q®}%¼ôìsÉ­jSRˆ$ÊÀú ¯’°6´m¨K% 1LfûQ‹Ì6¿”C¿ ÙoQ#z÷‰ÈÁmÔGëwGÂ+àq`Õìä˜÷f0G,žŸžÀ©_‘íz.Û÷/;Èõ`Ç:&heK ð68÷Ü~lâ(³ ‡‚&pÔ7Ê0ã{Aà ’KRLÀ–P ű†3pÐ a9úßæV68“ÀŒrSƒ„åXÜ8O78˜$œ_¿%’ÀbÜCåqO!勿³À>iCèÆÔÚ„fÑ5nCª,¥ª¸Õ A®;ù—Ê/IÑs&‹æ³À>ú a|Sû­Ó,òܹ´Õ/Š[ D B”VŸ•;ˆV©DåỄpM­fÐ,ì"n5H•X ¢ãÀ ‘À„ñM Ť ! Í¿}´Oh%ÚÌ¡@àµÏÚÀ”&´ hĤH1¡®;u6²@  ŒoN0”z¤ŸHë¹À¸}'Ð$l.6´qÍB0¨‰$àÒw„ñÝË­°zkH߯w/´Bê!ýÍ0¾{Ù æ¯âk;¾0;îø)Ò ìf ~vú˜Qä €ÞƒM„ÍbA€‰5‡+s ŇÈv Ž’»=É89&uJ¶ Óê8ÏxKq%p°[¶¥X€cš pe2Så†ÿ"“i{ŸA2 žk­í}É$`yØÚgwõªªKUUÓÙS¥¤>™?.eéoæH¬þÏ‘ï>ƒ˜³¡ü½ j׈í0XÔšçVÉâû Lûÿùî3ˆ94WÉ\©üér ÍåÖ=±Ÿ+6íÿqã»Ï æÀlPé80¸´wÐu„®nè |÷Äœ|ŸÚ4¥ÄÛ!¨u¹Ý|öÄœ˜ lÐe¶ÃƯ0lðÝgs빀ܳ¹À¬O^ååãÛ|÷Äœ€`6ì±ÃÀ.è0(âM@0öØaÀå4(âM@0öÙa@e˜bNàÊd2øˆ•cye2ŒÀÿ½TÀ&e¹ÁIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/dir_000003_000000.html0000644000175000001440000000517310400731256017515 00000000000000 gtkglextmm: gtkmm/gl/ -> gdkmm Relation

gl → gdkmm Relation

File in gtkmm » glIncludes file in gdkmm
widget.hgl / config.h
widget.hgl / context.h
widget.hgl / tokens.h
widget.hgl / window.h

Generated on Mon Feb 27 18:47:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/config_8h-source.html0000644000175000001440000006217410400731256020504 00000000000000 gtkglextmm: gdkmm/gl/config.h Source File

config.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GDKMM_GL_CONFIG_H
00004 #define _GDKMM_GL_CONFIG_H
00005 
00006 #include <glibmm.h>
00007 
00008 // -*- C++ -*-
00009 /* gdkglextmm - C++ Wrapper for GdkGLExt
00010  * Copyright (C) 2002-2003  Naofumi Yasufuku
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00025  */
00026 
00027 #include <gdkmm/gl/defs.h>
00028 
00029 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00030 #include <gdkmm/screen.h>
00031 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00032 #include <gdkmm/visual.h>
00033 #include <gdkmm/colormap.h>
00034 
00035 
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GdkGLConfig GdkGLConfig;
00038 typedef struct _GdkGLConfigClass GdkGLConfigClass;
00039 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00040 
00041 
00042 namespace Gdk
00043 {
00044 
00045 namespace GL
00046 { class Config_Class; } // namespace GL
00047 
00048 } // namespace Gdk
00049 namespace Gdk
00050 {
00051 namespace GL
00052 {
00053 
00067 enum ConfigMode
00068 {
00069   MODE_RGB = 0,
00070   MODE_RGBA = 0,
00071   MODE_INDEX = 1 << 0,
00072   MODE_SINGLE = 0,
00073   MODE_DOUBLE = 1 << 1,
00074   MODE_STEREO = 1 << 2,
00075   MODE_ALPHA = 1 << 3,
00076   MODE_DEPTH = 1 << 4,
00077   MODE_STENCIL = 1 << 5,
00078   MODE_ACCUM = 1 << 6,
00079   MODE_MULTISAMPLE = 1 << 7
00080 };
00081 
00083 inline ConfigMode operator|(ConfigMode lhs, ConfigMode rhs)
00084   { return static_cast<ConfigMode>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00085 
00087 inline ConfigMode operator&(ConfigMode lhs, ConfigMode rhs)
00088   { return static_cast<ConfigMode>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00089 
00091 inline ConfigMode operator^(ConfigMode lhs, ConfigMode rhs)
00092   { return static_cast<ConfigMode>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00093 
00095 inline ConfigMode operator~(ConfigMode flags)
00096   { return static_cast<ConfigMode>(~static_cast<unsigned>(flags)); }
00097 
00099 inline ConfigMode& operator|=(ConfigMode& lhs, ConfigMode rhs)
00100   { return (lhs = static_cast<ConfigMode>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00101 
00103 inline ConfigMode& operator&=(ConfigMode& lhs, ConfigMode rhs)
00104   { return (lhs = static_cast<ConfigMode>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00105 
00107 inline ConfigMode& operator^=(ConfigMode& lhs, ConfigMode rhs)
00108   { return (lhs = static_cast<ConfigMode>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00109 
00110 } // namespace GL
00111 
00112 } // namespace Gdk
00113 
00114 
00115 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00116 namespace Glib
00117 {
00118 
00119 template <>
00120 class Value<Gdk::GL::ConfigMode> : public Glib::Value_Flags<Gdk::GL::ConfigMode>
00121 {
00122 public:
00123   static GType value_type() G_GNUC_CONST;
00124 };
00125 
00126 } // namespace Glib
00127 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00128 
00129 
00130 namespace Gdk
00131 {
00132 
00133 namespace GL
00134 {
00135 
00136 
00143 class Config : public Glib::Object
00144 {
00145   
00146 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00147 
00148 public:
00149   typedef Config CppObjectType;
00150   typedef Config_Class CppClassType;
00151   typedef GdkGLConfig BaseObjectType;
00152   typedef GdkGLConfigClass BaseClassType;
00153 
00154 private:  friend class Config_Class;
00155   static CppClassType config_class_;
00156 
00157 private:
00158   // noncopyable
00159   Config(const Config&);
00160   Config& operator=(const Config&);
00161 
00162 protected:
00163   explicit Config(const Glib::ConstructParams& construct_params);
00164   explicit Config(GdkGLConfig* castitem);
00165 
00166 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00167 
00168 public:
00169   virtual ~Config();
00170 
00171 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00172   static GType get_type()      G_GNUC_CONST;
00173   static GType get_base_type() G_GNUC_CONST;
00174 #endif
00175 
00177   GdkGLConfig*       gobj()       { return reinterpret_cast<GdkGLConfig*>(gobject_); }
00178 
00180   const GdkGLConfig* gobj() const { return reinterpret_cast<GdkGLConfig*>(gobject_); }
00181 
00183   GdkGLConfig* gobj_copy();
00184 
00185 private:
00186 
00187 
00188 protected:
00189 
00190   explicit Config(const int* attrib_list);
00191 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00192   Config(const Glib::RefPtr<const Gdk::Screen>& screen,
00193          const int* attrib_list);
00194 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00195   explicit Config(ConfigMode mode);
00196 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00197   Config(const Glib::RefPtr<const Gdk::Screen>& screen,
00198          ConfigMode mode);
00199 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00200 
00201 public:
00202 
00211   static Glib::RefPtr<Config> create(const int* attrib_list);
00212 
00213 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00214   static Glib::RefPtr<Config> create(const Glib::RefPtr<const Gdk::Screen>& screen,
00215                                      const int* attrib_list);
00216 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00217 
00225   static Glib::RefPtr<Config> create(ConfigMode mode);
00226 
00227 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00228   static Glib::RefPtr<Config> create(const Glib::RefPtr<const Gdk::Screen>& screen,
00229                                      ConfigMode mode);
00230 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00231 
00232 public:
00233 
00234 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00235   
00239   Glib::RefPtr<Gdk::Screen> get_screen();
00240   
00244   Glib::RefPtr<const Gdk::Screen> get_screen() const;
00245 
00246 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00247 
00248   
00254   bool get_attrib(int attribute, int& value) const;
00255 
00256   
00261   Glib::RefPtr<Gdk::Colormap> get_colormap();
00262   
00267   Glib::RefPtr<const Gdk::Colormap> get_colormap() const;
00268 
00269   
00274   Glib::RefPtr<Gdk::Visual> get_visual();
00275   
00280   Glib::RefPtr<const Gdk::Visual> get_visual() const;
00281 
00282   
00286   int get_depth() const;
00287 
00288   
00296   int get_layer_plane() const;
00297 
00298   
00302   int get_n_aux_buffers() const;
00303 
00304   
00308   int get_n_sample_buffers() const;
00309 
00310   
00315   bool is_rgba() const;
00316 
00317   
00322   bool is_double_buffered() const;
00323 
00324   
00328   bool is_stereo() const;
00329 
00330   
00334   bool has_alpha() const;
00335 
00336   
00340   bool has_depth_buffer() const;
00341 
00342   
00346   bool has_stencil_buffer() const;
00347 
00348   
00353   bool has_accum_buffer() const;
00354 
00355 
00356 public:
00357 
00358 public:
00359   //C++ methods used to invoke GTK+ virtual functions:
00360 
00361 protected:
00362   //GTK+ Virtual Functions (override these to change behaviour):
00363 
00364   //Default Signal Handlers::
00365 
00366 
00367 };
00368 
00369 } // namespace GL
00370 } // namespace Gdk
00371 
00372 
00373 namespace Glib
00374 {
00380   Glib::RefPtr<Gdk::GL::Config> wrap(GdkGLConfig* object, bool take_copy = false);
00381 }
00382 
00383 
00384 #endif /* _GDKMM_GL_CONFIG_H */
00385 

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/drawingarea_8h.html0000644000175000001440000000652610400731256020224 00000000000000 gtkglextmm: gtkmm/gl/drawingarea.h File Reference

drawingarea.h File Reference

#include <gtkmm/drawingarea.h>
#include <gtkmm/gl/widget.h>

Include dependency graph for drawingarea.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gtk
namespace  Gtk::GL

Classes

class  Gtk::GL::DrawingArea


Generated on Mon Feb 27 18:47:46 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/namespaceGtk_1_1GL.html0000644000175000001440000010560310400731257020623 00000000000000 gtkglextmm: Gtk::GL Namespace Reference

Gtk::GL Namespace Reference


Classes

class  DrawingArea
class  Widget

Functions

bool init_check (int &argc, char **&argv)
bool init_check (int *argc, char ***argv)
void init (int &argc, char **&argv)
void init (int *argc, char ***argv)
bool widget_set_gl_capability (Gtk::Widget &widget, const Glib::RefPtr< const Gdk::GL::Config > &glconfig, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
bool widget_set_gl_capability (Gtk::Widget &widget, const Glib::RefPtr< const Gdk::GL::Config > &glconfig, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
bool widget_is_gl_capable (const Gtk::Widget &widget)
Glib::RefPtr< Gdk::GL::Configwidget_get_gl_config (const Gtk::Widget &widget)
Glib::RefPtr< Gdk::GL::Contextwidget_create_gl_context (const Gtk::Widget &widget, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
Glib::RefPtr< Gdk::GL::Contextwidget_create_gl_context (const Gtk::Widget &widget, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
Glib::RefPtr< Gdk::GL::Contextwidget_get_gl_context (const Gtk::Widget &widget)
Glib::RefPtr< Gdk::GL::Windowwidget_get_gl_window (const Gtk::Widget &widget)
Glib::RefPtr< Gdk::GL::Drawablewidget_get_gl_drawable (const Gtk::Widget &widget)


Function Documentation

void Gtk::GL::init int *  argc,
char ***  argv
 

Initialize gtkglextmm library.

Call this function before using any other gtkglextmm functions in your applications. It will initialize everything needed to operate the library and parses some standard command line options. argc and argv are adjusted accordingly so your own code will never see those standard arguments.

This function will terminate your program if it was unable to initialize the library for some reason. If you want your program to fall back to a textual interface you want to call Gtk::GL::init_check() instead.

Parameters:
argc Address of the argc parameter of your main() function. Changed if any arguments were handled.
argv Address of the argv parameter of main(). Any parameters understood by Gtk::GL::init() are stripped before return.

void Gtk::GL::init int &  argc,
char **&  argv
 

Initialize gtkglextmm library.

Call this function before using any other gtkglextmm functions in your applications. It will initialize everything needed to operate the library and parses some standard command line options. argc and argv are adjusted accordingly so your own code will never see those standard arguments.

This function will terminate your program if it was unable to initialize the library for some reason. If you want your program to fall back to a textual interface you want to call Gtk::GL::init_check() instead.

Parameters:
argc Reference of the argc parameter of your main() function. Changed if any arguments were handled.
argv Reference of the argv parameter of main(). Any parameters understood by Gtk::GL::init() are stripped before return.
Examples:
font.cc, gears.cc, logo.cc, pixmap-mixed.cc, pixmap.cc, shapes.cc, share-lists.cc, simple-darea.cc, simple-mixed.cc, and simple.cc.

bool Gtk::GL::init_check int *  argc,
char ***  argv
 

Initialize gtkglextmm library.

This function does the same work as Gdk::GL::init() with only a single change: It does not terminate the program if the library can't be initialized. Instead it returns false on failure.

This way the application can fall back to some other means of communication with the user - for example a curses or command line interface.

Parameters:
argc Address of the argc parameter of your main() function. Changed if any arguments were handled.
argv Address of the argv parameter of main(). Any parameters understood by Gtk::GL::init() are stripped before return.
Returns:
true if the library has been successfully initialized, false otherwise.

bool Gtk::GL::init_check int &  argc,
char **&  argv
 

Initialize gtkglextmm library.

This function does the same work as Gdk::GL::init() with only a single change: It does not terminate the program if the library can't be initialized. Instead it returns false on failure.

This way the application can fall back to some other means of communication with the user - for example a curses or command line interface.

Parameters:
argc Reference of the argc parameter of your main() function. Changed if any arguments were handled.
argv Reference of the argv parameter of main(). Any parameters understood by Gtk::GL::init() are stripped before return.
Returns:
true if the library has been successfully initialized, false otherwise.

Glib::RefPtr<Gdk::GL::Context> Gtk::GL::widget_create_gl_context const Gtk::Widget &  widget,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
 

Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

See also get_gl_context().

Parameters:
widget a Gtk::Widget.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
the new Gdk::GL::Context.

Glib::RefPtr<Gdk::GL::Context> Gtk::GL::widget_create_gl_context const Gtk::Widget &  widget,
const Glib::RefPtr< const Gdk::GL::Context > &  share_list,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
 

Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

See also get_gl_context().

Parameters:
widget a Gtk::Widget.
share_list the Gdk::GL::Context which to share display lists.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
the new Gdk::GL::Context.

Glib::RefPtr<Gdk::GL::Config> Gtk::GL::widget_get_gl_config const Gtk::Widget &  widget  ) 
 

Return the Gdk::GL::Config referred by the Gtk::Widget.

Parameters:
widget a Gtk::Widget.
Returns:
the Gdk::GL::Config.

Glib::RefPtr<Gdk::GL::Context> Gtk::GL::widget_get_gl_context const Gtk::Widget &  widget  ) 
 

Return the Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Unlike the GL context returned by create_gl_context(), this context is owned by the widget.

Parameters:
widget a Gtk::Widget.
Returns:
the Gdk::GL::Context.

Glib::RefPtr<Gdk::GL::Drawable> Gtk::GL::widget_get_gl_drawable const Gtk::Widget &  widget  ) 
 

Return the Gdk::GL::Drawable owned by the Gtk::Widget.

Parameters:
widget a Gtk::Widget.
Returns:
the Gdk::GL::Drawable.

Glib::RefPtr<Gdk::GL::Window> Gtk::GL::widget_get_gl_window const Gtk::Widget &  widget  ) 
 

Return the Gdk::GL::Window owned by the Gtk::Widget.

Parameters:
widget a Gtk::Widget.
Returns:
the Gdk::GL::Window.

bool Gtk::GL::widget_is_gl_capable const Gtk::Widget &  widget  ) 
 

Return whether the Gtk::Widget is OpenGL-capable.

Parameters:
widget a Gtk::Widget.
Returns:
true if the Gtk::Widget is OpenGL-capable, false otherwise.

bool Gtk::GL::widget_set_gl_capability Gtk::Widget &  widget,
const Glib::RefPtr< const Gdk::GL::Config > &  glconfig,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
 

Set the OpenGL-capability to the Gtk::Widget. The call setup the callbacks to realize a OpenGL-capable window.

Parameters:
widget the GtkWidget to be used as the rendering area.
glconfig a Gdk::GL::Config.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
true if it is successful, false otherwise.

bool Gtk::GL::widget_set_gl_capability Gtk::Widget &  widget,
const Glib::RefPtr< const Gdk::GL::Config > &  glconfig,
const Glib::RefPtr< const Gdk::GL::Context > &  share_list,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
 

Set the OpenGL-capability to the Gtk::Widget. The call setup the callbacks to realize a OpenGL-capable window.

Parameters:
widget the GtkWidget to be used as the rendering area.
glconfig a Gdk::GL::Config.
share_list the Gdk::GL::Context which to share display lists.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
true if it is successful, false otherwise.


Generated on Mon Feb 27 18:47:57 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/namespacemembers_func.html0000644000175000001440000000703010400731257021653 00000000000000 gtkglextmm: Class Members


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/dir_000002_dep.map0000644000175000001440000000030710400731256017350 00000000000000base referer rect dir_000003.html 29,40 101,88 rect dir_000000.html 29,136 101,184 rect dir_000003_000000.html 0,0 225,201 rect dir_000003_000000.html 61,132 69,140 rect dir_000002.html 18,18 208,98 gtkglextmm-1.2.0/docs/reference/html/dir_000002_dep.png0000644000175000001440000000163010400731256017357 00000000000000‰PNG  IHDRâÊ1l¾?PLTEþÿÿÿ¿¿¿???ßßߟŸŸ___hho¶¶Ã²²¿;;?wwÐÐß””ŸYY_îîÿÿÿÿVÝsætRNS@æØfIDATxœíÜr¢0@á.qW´ØøþϺ âÚÙª¼ ÉåœÙVj; ß‚¿ãä㢾µw ~5QC5QC5QC5QCˆ¶ì‚ˆ_%bA„XD!DˆEbA„XD·H{[,câÏß. "Dˆ!B„"Dˆ!BTI4“6ŸxZú¿R±?©'ÚŒˆ{Û#žmÿiO½ížxìÿØÏÞîËŸº÷ítĦ6¦$»Ó©s‡ðzýOÎs°g÷对o§#¶•?KåˆýÁ¬‘x¼®žôßv:¢5Ã71â°ó7b×3 F=Šîßa}¢¿-î…o‹çDww³>1Ò=êW7¿þ÷êÄÊ„<(†§7žÖÄ!'j-GNÔ.+¢;QmmäˆîDµÝËÓ0=1´â_i@„"Dˆ!B„"ÄÍõ5hÌ8»º4ˆŸŒgW—â“1ãìêÒ n‡Xv!Ä™I=Ä€ ®Ä€ ®Ä€ ®Ä€ ®Ä€®DÓ¾=P¬„ˆ¦Î÷` ëvbÓd|“!VuÎ÷:"ÄfxӤ؉=h(?Šß.2Œ‡þ‰^¼{™O§*@q²íeö%Rï>h@Ì!¢ÈžDëíg7Û JìGÄ N·bé¯4~dCþ(‘æaD¡Y Æ ¢Ð,ãQhˆqƒ(4 ĸAšbÜ Í1n ‰Æ­69NŠ >û…Vâuí¾KÓ—þÃ(­1v×ÚÆ]Õ\¾m¾'q3ˆãj¨M[™ªõDw…s5—ÊîÝ—ù¶ùrœÔÍ Žëh¶;·í¶±·õ ýƸ4ãuóå8©›AWC.üm±®÷Úˆ·£è?æ¢û¡RFWC½ßÝÝ2âÏ{ÔKÛè"¯†:1Nêæž¨!«¡NŒ“ºy'jØj¨Sã$ŽWB³@ŒD¡Y Æ ¢Ð,ãQhˆqƒ(4 ĸAš%g¢T‰4{ÿSÅÙQC5QC5QC5QC5ôÄfr$œIPüIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/simple-mixed_8cc-example.html0000644000175000001440000004744610400731257022133 00000000000000 gtkglextmm: simple-mixed.cc

simple-mixed.cc

Simple gtkglextmm example for mixing OpenGL and GDK rendering.

// -*- C++ -*-
/*
 * simple-mixed.cc:
 * Simple gtkglextmm example for mixing OpenGL and GDK rendering.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#include <iostream>
#include <cstdlib>

#include <gtkmm.h>

#include <gtkglmm.h>

#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif

#include <GL/gl.h>
#include <GL/glu.h>


//
// OpenGL frame buffer configuration utilities.
//

struct GLConfigUtil
{
  static void print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                              const char* attrib_str,
                              int attrib,
                              bool is_boolean);

  static void examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig);
};

//
// Print a configuration attribute.
//
void GLConfigUtil::print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                                   const char* attrib_str,
                                   int attrib,
                                   bool is_boolean)
{
  int value;

  if (glconfig->get_attrib(attrib, value))
    {
      std::cout << attrib_str << " = ";
      if (is_boolean)
        std::cout << (value == true ? "true" : "false") << std::endl;
      else
        std::cout << value << std::endl;
    }
  else
    {
      std::cout << "*** Cannot get "
                << attrib_str
                << " attribute value\n";
    }
}

//
// Print configuration attributes.
//
void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig)
{
  std::cout << "\nOpenGL visual configurations :\n\n";

  std::cout << "glconfig->is_rgba() = "
            << (glconfig->is_rgba() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_double_buffered() = "
            << (glconfig->is_double_buffered() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_stereo() = "
            << (glconfig->is_stereo() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_alpha() = "
            << (glconfig->has_alpha() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_depth_buffer() = "
            << (glconfig->has_depth_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_stencil_buffer() = "
            << (glconfig->has_stencil_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_accum_buffer() = "
            << (glconfig->has_accum_buffer() ? "true" : "false")
            << std::endl;

  std::cout << std::endl;

  print_gl_attrib(glconfig, "Gdk::GL::USE_GL",           Gdk::GL::USE_GL,           true);
  print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE",      Gdk::GL::BUFFER_SIZE,      false);
  print_gl_attrib(glconfig, "Gdk::GL::LEVEL",            Gdk::GL::LEVEL,            false);
  print_gl_attrib(glconfig, "Gdk::GL::RGBA",             Gdk::GL::RGBA,             true);
  print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER",     Gdk::GL::DOUBLEBUFFER,     true);
  print_gl_attrib(glconfig, "Gdk::GL::STEREO",           Gdk::GL::STEREO,           true);
  print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS",      Gdk::GL::AUX_BUFFERS,      false);
  print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE",         Gdk::GL::RED_SIZE,         false);
  print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE",       Gdk::GL::GREEN_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE",        Gdk::GL::BLUE_SIZE,        false);
  print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE",       Gdk::GL::ALPHA_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE",       Gdk::GL::DEPTH_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE",     Gdk::GL::STENCIL_SIZE,     false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE",   Gdk::GL::ACCUM_RED_SIZE,   false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE",  Gdk::GL::ACCUM_BLUE_SIZE,  false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false);

  std::cout << std::endl;
}


//
// Simple OpenGL scene.
//

class SimpleGLScene : public Gtk::DrawingArea,
                      public Gtk::GL::Widget<SimpleGLScene>
{
public:
  SimpleGLScene();
  virtual ~SimpleGLScene();

protected:
  virtual void on_realize();
  virtual bool on_configure_event(GdkEventConfigure* event);
  virtual bool on_expose_event(GdkEventExpose* event);

};

SimpleGLScene::SimpleGLScene()
{
  //
  // Configure OpenGL-capable visual.
  //

  Glib::RefPtr<Gdk::GL::Config> glconfig;

  // Try single-buffered visual
  glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB    |
                                     Gdk::GL::MODE_DEPTH  |
                                     Gdk::GL::MODE_SINGLE);
  if (!glconfig)
    {
      std::cerr << "*** Cannot find any OpenGL-capable visual.\n";
      std::exit(1);
    }

  // print frame buffer attributes.
  GLConfigUtil::examine_gl_attrib(glconfig);

  //
  // Set OpenGL-capability to the widget.
  //

  set_gl_capability(glconfig);
}

SimpleGLScene::~SimpleGLScene()
{
}

void SimpleGLScene::on_realize()
{
  // We need to call the base on_realize()
  Gtk::DrawingArea::on_realize();

  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return;

  GLUquadricObj* qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  glNewList(1, GL_COMPILE);
  gluSphere(qobj, 1.0, 20, 20);
  glEndList();

  static GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0};
  static GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0};
  glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
  glLightfv(GL_LIGHT0, GL_POSITION, light_position);
  glEnable(GL_LIGHTING);
  glEnable(GL_LIGHT0);
  glEnable(GL_DEPTH_TEST);

  glClearColor(1.0, 1.0, 1.0, 1.0);
  glClearDepth(1.0);

  glViewport(0, 0, get_width(), get_height());

  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluPerspective(40.0, 1.0, 1.0, 10.0);

  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  gluLookAt(0.0, 0.0, 3.0,
            0.0, 0.0, 0.0,
            0.0, 1.0, 0.0);
  glTranslatef(0.0, 0.0, -3.0);

  glwindow->gl_end();
  // *** OpenGL END ***
}

bool SimpleGLScene::on_configure_event(GdkEventConfigure* event)
{
  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return false;

  glViewport(0, 0, get_width(), get_height());

  glwindow->gl_end();
  // *** OpenGL END ***

  return true;
}

bool SimpleGLScene::on_expose_event(GdkEventExpose* event)
{
  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return false;

  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  // Sync.
  glwindow->wait_gl();

  // GDK rendering.
  glwindow->draw_rectangle(get_style()->get_fg_gc(get_state()),
                           true,
                           get_width()/10,
                           get_height()/10,
                           get_width()*8/10,
                           get_height()*8/10);

  // Sync.
  glwindow->wait_gdk();

  glCallList(1);

  glFlush();

  glwindow->gl_end();
  // *** OpenGL END ***

  return true;
}


//
// The application class.
//

class Simple : public Gtk::Window
{
public:
  Simple();
  virtual ~Simple();

protected:
  // signal handlers:
  void on_button_quit_clicked();

protected:
  // member widgets:
  Gtk::VBox m_VBox;
  SimpleGLScene m_SimpleGLScene;
  Gtk::Button m_ButtonQuit;
};

Simple::Simple()
  : m_VBox(false, 0), m_ButtonQuit("Quit")
{
  //
  // Top-level window.
  //

  set_title("Simple");

  // Get automatically redrawn if any of their children changed allocation.
  set_reallocate_redraws(true);

  add(m_VBox);

  //
  // Simple OpenGL scene.
  //

  m_SimpleGLScene.set_size_request(200, 200);

  m_VBox.pack_start(m_SimpleGLScene);

  //
  // Simple quit button.
  //

  m_ButtonQuit.signal_clicked().connect(
    sigc::mem_fun(*this, &Simple::on_button_quit_clicked));

  m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0);

  //
  // Show window.
  //

  show_all();
}

Simple::~Simple()
{}

void Simple::on_button_quit_clicked()
{
  Gtk::Main::quit();
}


//
// Main.
//

int main(int argc, char** argv)
{
  Gtk::Main kit(argc, argv);

  //
  // Init gtkglextmm.
  //

  Gtk::GL::init(argc, argv);

  //
  // Query OpenGL extension version.
  //

  int major, minor;
  Gdk::GL::query_version(major, minor);
  std::cout << "OpenGL extension version - "
            << major << "." << minor << std::endl;

  //
  // Instantiate and run the application.
  //

  Simple simple;

  kit.run(simple);

  return 0;
}

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Pixmap-members.html0000644000175000001440000002171010400731256023216 00000000000000 gtkglextmm: Member List

Gdk::GL::Pixmap Member List

This is the complete list of members for Gdk::GL::Pixmap, including all inherited members.

add_interface(GType gtype_implementer)Gdk::GL::Drawable [static]
create(const Glib::RefPtr< const Config > &glconfig, const Glib::RefPtr< const Gdk::Pixmap > &pixmap, const int *attrib_list=0)Gdk::GL::Pixmap [static]
draw_cone(bool solid, double base, double height, int slices, int stacks)Gdk::GL::Drawable [static]
draw_cube(bool solid, double size)Gdk::GL::Drawable [static]
draw_dodecahedron(bool solid)Gdk::GL::Drawable [static]
draw_icosahedron(bool solid)Gdk::GL::Drawable [static]
draw_octahedron(bool solid)Gdk::GL::Drawable [static]
draw_sphere(bool solid, double radius, int slices, int stacks)Gdk::GL::Drawable [static]
draw_teapot(bool solid, double scale)Gdk::GL::Drawable [static]
draw_tetrahedron(bool solid)Gdk::GL::Drawable [static]
draw_torus(bool solid, double inner_radius, double outer_radius, int nsides, int rings)Gdk::GL::Drawable [static]
get_current()Gdk::GL::Drawable [static]
get_gl_config()Gdk::GL::Drawable
get_gl_config() const Gdk::GL::Drawable
get_pixmap()Gdk::GL::Pixmap
get_pixmap() const Gdk::GL::Pixmap
get_size(int &width, int &height)Gdk::GL::Drawable
gl_begin(const Glib::RefPtr< Context > &glcontext)Gdk::GL::Drawable
gl_end()Gdk::GL::Drawable
gobj()Gdk::GL::Pixmap [inline]
gobj() const Gdk::GL::Pixmap [inline]
gobj_copy()Gdk::GL::Pixmap
is_double_buffered() const Gdk::GL::Drawable
make_current(const Glib::RefPtr< Context > &glcontext)Gdk::GL::Drawable
Pixmap(const Glib::RefPtr< const Config > &glconfig, const Glib::RefPtr< const Gdk::Pixmap > &pixmap, const int *attrib_list=0)Gdk::GL::Pixmap [protected]
swap_buffers()Gdk::GL::Drawable
wait_gdk()Gdk::GL::Drawable
wait_gl()Gdk::GL::Drawable
wrap(GdkGLPixmap *object, bool take_copy=false)Gdk::GL::Pixmap [related]
Gdk::GL::Drawable::wrap(GdkGLDrawable *object, bool take_copy=false)Gdk::GL::Drawable [related]
~Drawable()Gdk::GL::Drawable [virtual]
~Pixmap()Gdk::GL::Pixmap [virtual]


Generated on Mon Feb 27 18:47:55 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/pixmap-mixed_8cc-example.html0000644000175000001440000005025310400731257022126 00000000000000 gtkglextmm: pixmap-mixed.cc

pixmap-mixed.cc

Simple offscreen rendering example for mixing OpenGL and GDK rendering.

// -*- C++ -*-
/*
 * pixmap-mixed.cc:
 * Simple off-screen rendering example for mixing OpenGL and GDK rendering.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#include <iostream>
#include <cstdlib>

#include <gtkmm.h>

#include <gtkglmm.h>

#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif

#include <GL/gl.h>
#include <GL/glu.h>


//
// OpenGL frame buffer configuration utilities.
//

struct GLConfigUtil
{
  static void print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                              const char* attrib_str,
                              int attrib,
                              bool is_boolean);

  static void examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig);
};

//
// Print a configuration attribute.
//
void GLConfigUtil::print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                                   const char* attrib_str,
                                   int attrib,
                                   bool is_boolean)
{
  int value;

  if (glconfig->get_attrib(attrib, value))
    {
      std::cout << attrib_str << " = ";
      if (is_boolean)
        std::cout << (value == true ? "true" : "false") << std::endl;
      else
        std::cout << value << std::endl;
    }
  else
    {
      std::cout << "*** Cannot get "
                << attrib_str
                << " attribute value\n";
    }
}

//
// Print configuration attributes.
//
void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig)
{
  std::cout << "\nOpenGL visual configurations :\n\n";

  std::cout << "glconfig->is_rgba() = "
            << (glconfig->is_rgba() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_double_buffered() = "
            << (glconfig->is_double_buffered() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_stereo() = "
            << (glconfig->is_stereo() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_alpha() = "
            << (glconfig->has_alpha() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_depth_buffer() = "
            << (glconfig->has_depth_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_stencil_buffer() = "
            << (glconfig->has_stencil_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_accum_buffer() = "
            << (glconfig->has_accum_buffer() ? "true" : "false")
            << std::endl;

  std::cout << std::endl;

  print_gl_attrib(glconfig, "Gdk::GL::USE_GL",           Gdk::GL::USE_GL,           true);
  print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE",      Gdk::GL::BUFFER_SIZE,      false);
  print_gl_attrib(glconfig, "Gdk::GL::LEVEL",            Gdk::GL::LEVEL,            false);
  print_gl_attrib(glconfig, "Gdk::GL::RGBA",             Gdk::GL::RGBA,             true);
  print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER",     Gdk::GL::DOUBLEBUFFER,     true);
  print_gl_attrib(glconfig, "Gdk::GL::STEREO",           Gdk::GL::STEREO,           true);
  print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS",      Gdk::GL::AUX_BUFFERS,      false);
  print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE",         Gdk::GL::RED_SIZE,         false);
  print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE",       Gdk::GL::GREEN_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE",        Gdk::GL::BLUE_SIZE,        false);
  print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE",       Gdk::GL::ALPHA_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE",       Gdk::GL::DEPTH_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE",     Gdk::GL::STENCIL_SIZE,     false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE",   Gdk::GL::ACCUM_RED_SIZE,   false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE",  Gdk::GL::ACCUM_BLUE_SIZE,  false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false);

  std::cout << std::endl;
}


//
// Simple OpenGL scene using GL::Pixmap.
//

class PixmapGLScene : public Gtk::DrawingArea
{
public:
  PixmapGLScene();
  virtual ~PixmapGLScene();

protected:
  // init OpenGL context
  void init_gl();

protected:
  virtual bool on_configure_event(GdkEventConfigure* event);
  virtual bool on_expose_event(GdkEventExpose* event);

protected:
  // OpenGL rendering stuff:
  Glib::RefPtr<Gdk::GL::Config> m_GLConfig;
  Glib::RefPtr<Gdk::GL::Context> m_GLContext;
  Glib::RefPtr<Gdk::Pixmap> m_Pixmap;
};

PixmapGLScene::PixmapGLScene()
  : m_GLConfig(0), m_GLContext(0), m_Pixmap(0)
{
  //
  // Configure OpenGL-capable visual.
  //

  // Try single-buffered visual
  m_GLConfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB    |
                                       Gdk::GL::MODE_DEPTH  |
                                       Gdk::GL::MODE_SINGLE);
  if (!m_GLConfig)
    {
      std::cerr << "*** Cannot find any OpenGL-capable visual.\n";
      std::exit(1);
    }

  // print frame buffer attributes.
  GLConfigUtil::examine_gl_attrib(m_GLConfig);

  //
  // Set OpenGL-capable colormap.
  //

  set_colormap(m_GLConfig->get_colormap());
}

PixmapGLScene::~PixmapGLScene()
{
}

void PixmapGLScene::init_gl()
{
  GLUquadricObj* qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  glNewList(1, GL_COMPILE);
  gluSphere(qobj, 1.0, 20, 20);
  glEndList();

  static GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0};
  static GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0};
  glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
  glLightfv(GL_LIGHT0, GL_POSITION, light_position);
  glEnable(GL_LIGHTING);
  glEnable(GL_LIGHT0);
  glEnable(GL_DEPTH_TEST);

  glClearColor(1.0, 1.0, 1.0, 1.0);
  glClearDepth(1.0);

  glViewport(0, 0, get_width(), get_height());

  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluPerspective(40.0, 1.0, 1.0, 10.0);

  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  gluLookAt(0.0, 0.0, 3.0,
            0.0, 0.0, 0.0,
            0.0, 1.0, 0.0);
  glTranslatef(0.0, 0.0, -3.0);
}

bool PixmapGLScene::on_configure_event(GdkEventConfigure* event)
{
  //
  // Create an OpenGL off-screen rendering area.
  //

  m_Pixmap = Gdk::Pixmap::create(get_window(),
                                 get_width(), get_height(),
                                 m_GLConfig->get_depth());

  //
  // Set OpenGL-capability to the pixmap (invoke extension method).
  //

  Glib::RefPtr<Gdk::GL::Pixmap> glpixmap =
    Gdk::GL::ext(m_Pixmap).set_gl_capability(m_GLConfig);

  //
  // Create OpenGL rendering context (not direct).
  //

  if (!m_GLContext)
    m_GLContext = Gdk::GL::Context::create(glpixmap, false);

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glpixmap->gl_begin(m_GLContext))
    return false;

  static bool is_initialized = false;
  if (!is_initialized)
    {
      init_gl();
      is_initialized = true;
    }

  glViewport(0, 0, get_width(), get_height());

  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  // Sync.
  glpixmap->wait_gl();

  // GDK rendering.
  glpixmap->draw_rectangle(get_style()->get_fg_gc(get_state()),
                           true,
                           get_width()/10,
                           get_height()/10,
                           get_width()*8/10,
                           get_height()*8/10);

  // Sync.
  glpixmap->wait_gdk();

  glCallList(1);

  glFlush();

  glpixmap->gl_end();
  // *** OpenGL END ***

  return true;
}

bool PixmapGLScene::on_expose_event(GdkEventExpose* event)
{
  if (!m_Pixmap)
    return false;

  get_window()->draw_drawable(get_style()->get_fg_gc(get_state()),
                              m_Pixmap,
                              event->area.x, event->area.y,
                              event->area.x, event->area.y,
                              event->area.width, event->area.height);

  return true;
}


//
// The application class.
//

class Pixmap : public Gtk::Window
{
public:
  Pixmap();
  virtual ~Pixmap();

protected:
  // signal handlers:
  void on_button_quit_clicked();

protected:
  // member widgets:
  Gtk::VBox m_VBox;
  PixmapGLScene m_PixmapGLScene;
  Gtk::Button m_ButtonQuit;
};

Pixmap::Pixmap()
  : m_VBox(false, 0), m_ButtonQuit("Quit")
{
  //
  // Top-level window.
  //

  set_title("Pixmap");

  add(m_VBox);

  //
  // Simple OpenGL scene using GL::Pixmap.
  //

  m_PixmapGLScene.set_size_request(200, 200);

  m_VBox.pack_start(m_PixmapGLScene);

  //
  // Simple quit button.
  //

  m_ButtonQuit.signal_clicked().connect(
    sigc::mem_fun(*this, &Pixmap::on_button_quit_clicked));

  m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0);

  //
  // Show window.
  //

  show_all();
}

Pixmap::~Pixmap()
{}

void Pixmap::on_button_quit_clicked()
{
  Gtk::Main::quit();
}


//
// Main.
//

int main(int argc, char** argv)
{
  Gtk::Main kit(argc, argv);

  //
  // Init gtkglextmm.
  //

  Gtk::GL::init(argc, argv);

  //
  // Query OpenGL extension version.
  //

  int major, minor;
  Gdk::GL::query_version(major, minor);
  std::cout << "OpenGL extension version - "
            << major << "." << minor << std::endl;

  //
  // Instantiate and run the application.
  //

  Pixmap pixmap;

  kit.run(pixmap);

  return 0;
}

Generated on Mon Feb 27 18:46:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/windowext_8h.html0000644000175000001440000000756410400731257017774 00000000000000 gtkglextmm: gdkmm/gl/windowext.h File Reference

windowext.h File Reference

#include <glibmm.h>
#include <gdkmm/gl/defs.h>
#include <gdkmm/gl/window.h>

Include dependency graph for windowext.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL

Classes

class  Gdk::GL::WindowExtProxy

Functions

WindowExtProxy Gdk::GL::ext (const Glib::RefPtr< Gdk::Window > &window)
const WindowExtProxy Gdk::GL::ext (const Glib::RefPtr< const Gdk::Window > &window)


Generated on Mon Feb 27 18:47:41 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/globals_eval.html0000644000175000001440000003006110400731256017762 00000000000000 gtkglextmm: Class Members
a | b | c | d | e | f | g | h | l | m | n | p | r | s | t | u | v | w | x

- a -

- b -

- c -

- d -

- e -

- f -

- g -

- h -

- l -

- m -

- n -

- p -

- r -

- s -

- t -

- u -

- v -

- w -

- x -


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/globals_defs.html0000644000175000001440000000610410400731256017755 00000000000000 gtkglextmm: Class Members


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/functions_rela.html0000644000175000001440000000415210400731256020345 00000000000000 gtkglextmm: Class Members - Related Functions


Generated on Mon Feb 27 18:47:49 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/pixmap_8h.html0000644000175000001440000000743410400731257017236 00000000000000 gtkglextmm: gdkmm/gl/pixmap.h File Reference

pixmap.h File Reference

#include <glibmm.h>
#include <gdkmm/gl/defs.h>
#include <gdkmm/drawable.h>
#include <gdkmm/pixmap.h>
#include <gdkmm/gl/config.h>
#include <gdkmm/gl/drawable.h>

Include dependency graph for pixmap.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL
namespace  Glib

Classes

class  Gdk::GL::Pixmap


Generated on Mon Feb 27 18:47:21 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/dir_000000.html0000644000175000001440000000377610400731256016722 00000000000000 gtkglextmm: gdkmm/ Directory Reference

gdkmm Directory Reference

gdkmm/

Directories

directory  gl

Generated on Mon Feb 27 18:47:50 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1WindowExtProxy.html0000644000175000001440000003353210400731256023327 00000000000000 gtkglextmm: Gdk::GL::WindowExtProxy Class Reference

Gdk::GL::WindowExtProxy Class Reference

#include <windowext.h>

List of all members.

Public Member Functions

Glib::RefPtr< Windowset_gl_capability (const Glib::RefPtr< const Config > &glconfig, const int *attrib_list=0)
void unset_gl_capability ()
bool is_gl_capable () const
Glib::RefPtr< Windowget_gl_window () const
Glib::RefPtr< Gdk::GL::Drawableget_gl_drawable () const

Friends

WindowExtProxy ext (const Glib::RefPtr< Gdk::Window > &)
const WindowExtProxy ext (const Glib::RefPtr< const Gdk::Window > &)


Member Function Documentation

Glib::RefPtr<Gdk::GL::Drawable> Gdk::GL::WindowExtProxy::get_gl_drawable  )  const
 

Returns the Gdk::GL::Drawable held by the Gdk::Window .

Returns:
The Gdk::GL::Drawable.

Glib::RefPtr<Window> Gdk::GL::WindowExtProxy::get_gl_window  )  const
 

Returns the Gdk::GL::Window held by the Gdk::Window .

Returns:
The Gdk::GL::Window.

bool Gdk::GL::WindowExtProxy::is_gl_capable  )  const
 

Returns whether the Gdk::Window is OpenGL-capable.

Returns:
true if the Gdk::Window is OpenGL-capable, false otherwise.

Glib::RefPtr<Window> Gdk::GL::WindowExtProxy::set_gl_capability const Glib::RefPtr< const Config > &  glconfig,
const int *  attrib_list = 0
 

Set the OpenGL-capability to the Gdk::Window. This function creates a new Gdk::GL::Window held by the Gdk::Window. attrib_list is currently unused. This must be set to 0 or empty (first attribute of None).

Parameters:
glconfig A Gdk::GL::Config.
attrib_list This must be set to 0 or empty (first attribute of None).
Returns:
The Gdk::GL::Window used by the window if it is successful, 0 otherwise.

void Gdk::GL::WindowExtProxy::unset_gl_capability  ) 
 

Unset the OpenGL-capability of the Gdk::Window. This function destroys the Gdk::GL::Window held by the Gdk::Window.


Friends And Related Function Documentation

const WindowExtProxy ext const Glib::RefPtr< const Gdk::Window > &  window  )  [friend]
 

OpenGL extension API wrapper. This is a Gdk::Window wrapper to invoke OpenGL extension function. See Gdk::GL::WindowExtProxy for available functions.

Parameters:
window A Gdk::Window.

WindowExtProxy ext const Glib::RefPtr< Gdk::Window > &  window  )  [friend]
 

OpenGL extension API wrapper. This is a Gdk::Window wrapper to invoke OpenGL extension function. See Gdk::GL::WindowExtProxy for available functions.

Here is a simple example:

 Glib::RefPtr<Gdk::Window> window = widget.get_window();
 Glib::RefPtr<Gdk::GL::Window> glwindow =
   Gdk::GL::ext(window).set_gl_capability(glconfig);
 std::cout << "OpenGL-capable? "
           << Gdk::GL::ext(window).is_gl_capable()
           << std::endl;

Parameters:
window A Gdk::Window.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 18:47:57 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gdkglmm_8h__incl.md50000644000175000001440000000004010400731256020230 0000000000000079eb8eb5af80ef9887e96dcd27479db7gtkglextmm-1.2.0/docs/reference/html/gdkglmm_8h__incl.map0000644000175000001440000000106010400731256020323 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 920,340 1040,364 rect $gdkglext_2gdkmm_2gl_2version_8h.html 734,189 870,213 rect $tokens_8h.html 544,288 677,312 rect $gdkglext_2gdkmm_2gl_2init_8h.html 166,733 278,757 rect $query_8h.html 546,240 674,264 rect $config_8h.html 737,474 868,498 rect $context_8h.html 350,386 486,410 rect $drawable_8h.html 537,437 684,461 rect $pixmap_8h.html 349,537 488,561 rect $pixmapext_8h.html 145,586 300,610 rect $window_8h.html 349,688 488,712 rect $windowext_8h.html 144,685 301,709 rect $font_8h.html 744,89 861,113 gtkglextmm-1.2.0/docs/reference/html/gdkglmm_8h__incl.png0000644000175000001440000004372610400731256020351 00000000000000‰PNG  IHDRÚ7Ø «*PLTEþÿÿÃÃÃÿo§§§???¿¿¿___ßßߟŸŸÿÿÿ«û«tRNS@æØf IDATxœíÍrÜH’ç÷AöT}®K§ÙÜü1ªª‹#{L«!êâÈÄÚí°Ê$êX6Ö4ò¨.‘§M¶o+QJ1/㇒ﲈÀG2áˆâ/Sć#üàáÿƒÙÒÿºAR -ÈžmAöh ²§@[=Ú‚ì)ÐdO¶ { ´ÙS -ÈžmAöh ²§@[=Ú‚ì)ÐdO¶ { ´ÙS -ÈžmAöh ²§@[=Ú‚ì)ÐdO¶ { ´ÙS -ÈžmAöh ²§@[=Ú‚ì)ÐdO¶ { ´ÙS -ÈžmAöh ²§@[=Ú‚ì)ÐdOƒÓ6“C&ˆVƒÑ–ä„5M ÜTѶ§$@7F A[RõhÝKæF$û´%½éIr#‘mÚ´± È@viS¡- Èù-«´²–+ ç­,Ò–àÀV«7Ÿ¹/{´%€o3´ û%k´QãÌF#â#5 lÑ‚žºŽÜÐ… ‘ÚP«lÓÐ(}œÚ(ªlP2:gƒ¶^¤¶42Ü,Ð6²#fWã:xô´ëxYר9m£:ZChLš¶„Øþ4"܈i w£n´´ØP4ÜhiRëÓÑXp#¥m,ixÁÐÀ%máM#©’Ò6’#䆯q0 i:ÓÔ(p££-TÚp5ÜÈh •6làˆRÑ6†+Ñ5ù-ˆh °Q†.€©ˆh³—÷×0 mþû|7å;n$´ >ë¨<Ç„6 0Äå7n´×F(¯q£  lò7ÚÂ-­<Æ Ÿ¶G©å/nø´ºÅ š¼Å ¶àÚ,ÈWÜÐilƒfJÚ»ºh&ò7lÚ†qmíLAûJ^÷då'nØ´²½FmÀ…³ÕÄ'ô¼Ä ™6Âðd™„= ÛÒ’¸áÒFG“AϺ³Ôyˆ.m€j9Õ¸{!Ö?ÜPiCumŽÚR‰;Ôy‡*m€cfØÈ©ªÄën˜´!¸6‡"§ªuužá†I˜­žxš¬>®î}mlÐ÷„Pˆ´Å”ÄgÒduB—OþVÛúS¼Â 6ƒ8:ÔÖj¯9…˜´y…m »âøP+•Ô˜Ë*m>á†F›¦kóàæÓXI\söpió74Ú@cd¨­µnF¦Í܆£m„•µ­ÊqæÍܰhëH§ˆkj›‹¢êË3þ³Xž=ß—¦– µÐæ nƒÐ6MÔXù4NòmuÚ8dËÅÃþÇbÊ}¬@›'¸aÑÊKNá¾ M›- uÚnøÏrqÃæÅ”•m~àf›¶ £¶– íë§÷ñÁ§÷;¸ørüÓñaôöêàŠ³Ó—óåâüþÓþùõY:¥´¥C¡vÚ¼À ‰6Å@ò” Úž^<úíèÇÑÝÎòêöóí<:Ü;Û‹ßÝí¼Ni{—ú¶_/~H§Å·¥sÄš´ù€›UÚ¦Z]«KÐvÄ¢7—l/z/)[ó(™«øä~™Òv§°ÇQ¼Êh¿¬›6pC¢ – Ž­ mÎVQœÖÛ¾;“iÛM±JiÛå?¼R—ÓÆThsÿëJ{´ÇVªômû©o[~”hûýRø¶/—¹oëG›óbàжý¢ ŽMR^o;õ6v ÑvßíœÏ—Ÿã¼Þ&h{P¦Íµ¯yë²D[pl²ª÷¤÷ÏÖ´½fâžô´üž4vóq+ÓæxÕ ‡6èžš=ª´=aQÓ¼[~ÓЪ­—µÛ¸Y -ѺòHúkÓ¼4’ùl³íô m{‚膲Hz½Ó8óôCܾæÛarùÚ¦¦-8¶™¼²ýâݺÀp"¦-8¶&½qäsÕ”¶àØšeö~l[È]ÜPhƒæÉÁ±µÈŒ6…ÆMmûÄ¢£-8¶V¾»»ýÀºzèÉhs×/Ó¯—aë¶/1ˆ¨h °J!–})4„A[ÃÎ;º·cl]ÂÍ@C››û:ÁöEœ¼S ¡ ¬µK%ïHhsqGÇ%@ZƲ0hƒÚß6r©87«3´Øè¥T+s7|Úœ¬žŽN ²s§6÷.¨QJñ#7âRô6m6K¥¥à ¶Êeæö‚T¨‹Y2mŽ]K#–jï@ZŠžÂ¥-ÀfO ¶˜S¸¡Ò`³(ÕN—nLhƒbÄ¥ý¿”¶C>‘6§|öª ºƒm6ËR%Îà†F[€Íº€`IZ™Ó–_b`l(¨§@yIW\máÁ¾zsGpâ Œíõ¨/ê†7@¢Í™š Ç²NÜ) ÑÆf‚ú«×5D…è#sÚ ü ²¬^´¹Puá-Ò^šÕº†z­èÀI¡ Œ­LD͉™µsœ÷[iøª m\5îkKÖy-âzøÁqC¡ ŒŒ\Ý •꯵ïe=—ÇmÁµuI‘´bièc»ï‘úNÁ˜¶dø+Æ]õ#M(éÅ[Ÿe…õžË# ¶àÚ•è¦ÆìÓñô5>lÕ 6@(ÆØdÒ¬Ñ'œö¿Ò•MS(І.m§&›Åû›V´L"sÚB ]ˬ­V–j8í¿±!q3§ Já½fÍͶF&Ae)¥…ªðŒÓ6x‹á š`VH‰ •e´ “Ș6@(„wJ()[o–Ñ2¬³†Li³y”çxpYÚi…Ê›8C$SÚ0J±U‰Åsì’¶cDvIdH›…ö©‚–i+@d—DnÓ6iÐ2mÛÝ:Ø ¸ÒtNîÓÈŒ{¤-5cíÐm–Ff´‘=$ >m­î{í0D;ˆm$o§VW×áÐ?àfD[‚ßt“§Ö .Ü@Ûª}ÜŒhlÚú½Ü5!uàúV­ãæmµvµãVmãfB' ÊÁo ðlPÐ{†Š,ãæ máÆ`‹Z¹h›nh–D&´â-°¶]m\´L65K"h ¬)©¥ŠlZs¶‰›mXÝÍÖÕ| ŒïÓ,â68m}¾0šº i¢y«€=Ü hæ×…å¿B”µ“00m¡Õ£—š°Àhñ´`ôiÃè“2DÑžj:Þ€aØÎ™’¶Pe믆CT†ñ¥OðÚB•MG 0EK6*5ÃѪlZÚ¼F7& YF—6m¦iBÕÔõ¿ñ,£Ë6Ð]=À¦­úx–©ÏŠ6m ýöW€Í@µƒ‡ùÒñy†¶›‘ òê ­´µi]ÚŒr©ØÌ”tüel›òä A[€ÍT•#ˆýiáéÑ¥ *ƒ^ °™ ¤qôÏÞ袩}ÚlJZÆ‘¬]]ÚŠ’€öšAF’®Y’OzI Î6máq’ #¹~ÓhJðY’&mPª*À†¥¤a Õ>ôŽaF›o¹HÔ¥Úoàp%„b„¨n’ìžUÚœ‡­?EÊè¡ï{²1‚lŸàj²I›«°¡yª.CøöHiƒ­Ëõ‘mIm¨&ÐÚºh¸Ù?/~w:z'AY] [¤Í©†6;½^J<'Ù¯1´È¬Ce€­ÂMÿ’ö™MÚœih£¨þnѬt s¹£gÕªºÅ2d—6ÐÚ®;.­uÓ3À¤Íð­/59@äô G‡M(A¬´¾Ñª$/i4Ž;›Ë€ImÛÖ°®]Z©¼•¶ì¨†ÉV9Dt,SÑ0ž%Þ¥Õ…KVÇ?ž¶Ò¥Aß, ¿ CmQTµ<ã? 1X/Ô4º6Ì"mËy¶áåöKæîc^Úu¡íѦºšÜDuÒöÀÏÇr!¥î¤åŒ’¶û¸m­Õ~^ðh³ΜEuÒvÖ‹›¶U›hÃíú¸I]´­Úi+æØ§Íju5–ƒòõÓûøàÓûˆ\|9þéø0z{upÅÎÙéËùrq~sÈ>²ÓÏËGÇ/#v~}–ÎO×Ê~K#™ÀmiÉîŽ_Îw/Ò²_,ÒâݾxxuüDñ—â7õÃÇ'Ei"¾Ž\h[´©-…!ÇQc9(O/ývôãèngyuûùvîíÅïîv^§´½{xuûêëÉë“û«Ë½ˆýzñC:?õÑÙ^,ÉVhã%;xòx¾x§e¿X¤Å;ûû›ýÕ…(~¶|·~,J»Š#¾Ž\hmÚ`c¤KÖâ¨ó¨±”#½¹d{Ñó8 Js6ÒȳŠOî÷—)m'ìã×ÃU|ûbÎV—i$š³ÇQÌ#Sö[É”X¡—ì%»_ÍyÙ/iñ^½ù™­.Dñ³à»õ{QÚ”6¾Ž\h;´YŠ£î5v4J€’rÅi½í»3™¶Ýô¼¤gn—ýWz®®¯ÓJÒí_¾Ò%¢HÔƒ"6m¼dó´ÞöáG^ö‹EZ¼ÅݼJÛûsQ¥‹²½‰ø:r¡íЦ²Œ©«·¥óÚh#Žy½í<«·Ý½JËžÕÛ~àõ¶ mE½-£¯ó€@[Ÿw”©ã¨W¨±ú=éý³5m¯ÅßòC:{Á–§ŸÓ3YÞ“f篑¶Ämå=)ûYÜ“¦ÅûýÕË›ÿW¡íëõ‰\Út¹Ð6h ûêò 5–ƒò„EMónc…VúÒH.+´I%k){ʵ½±@é¡ðµ2’þÚ4/=»êFrY¡M*YKÙ7Uß ´†yEùÈZI¯wgž~hmœß4Rˆø0ä‘´,Y[Ù7UÛ]Ú ÙJÝuçkä¸ï€pY¡ Aô´Á¶4åoÞ\|Ú¬Ü% ˆœ6²/aë2®*ø¶¾‚bdM°e¾–|f-ÐÖ_PŒl¡ªóŸ…O†ÉV¡DjÚ {¶Žü¼•„òõ2ÈiiKþe诗¡,JwA5LwË{ÖT9²¤´!W[Œhƒöe(:õ ¬yœð¦4A¾¾éhëœÙ_~ß KŒ6ôoÖÈhÃîÅ¿k[ÓH£d´%Nô¨#] !(°V—Ü*m¦Pцykªôº 4Ûp¤oJØéXÆXáF´IPŒÐÑFÐ{ mh®-°Ö,ù= Ú~*D´µÏé¥ÐèÑ*ȇ„´á/IC’k ¶vI6Õ&œèÁ~ûÇË­3z)8¶.A6 ¤ ÐC m(®-DÑn­{ݲ `[6¡­*Ð*JU!ŠnÑš6ª×ñMRІQÌàØ¶ Š_"Úß$m Wy ¶í‚â—†6 «´™3DQ•}<ÚL›š ÿ¡¡ lКE)¬Øù m$Fñi3,fˆ¢ÊJ¤ÿ$ÆÑ…OèE˜ ŽM]%i@`œÂ&>mFׄ«LLž6Ð.Jˆ¢}t´ÑÜy8D[ˆ¢}•L‰6蘧aµÉ\P— ÚÐðƒ¶¦iJ QTC@Fà›dè´éî·CQôC}k±¬yÏS¥­a’’EÍõ(dJK ­]¸´iî¶SQÔ'Ú*Úˆ^+1éÁ6fhÒ¡(Êå!møžÈ Ú6§l—KQ”Ë'ÚŠ.gÛ®´é”Ñ©(Êh£0˜ •¶ ÛåVå ´QÌ„I›†ks6™–"ýk©sþeƒªÖ™(¬Ò–WCÛ.ºÁLÃÒæ l´ý“ÿDÙ ª@›Š hÛ€ úÚq¶NÚvùO” ªжÊÛ,ºië]D'aËiY§¶i¸³dÖË3ž-Zž¥³<_Ø×ë³èñÿ:cYºÀ¡¼¾%M—6èiÅMØ2Z¤ÔÖ" w–ÒúáòéÅ£8z¸Lg Úþ~ñcôýí«‡Wl)r]—ëÛRIGM["ýÖ&ªË9Øò> -Rjk‘1KÄù5>bQ}ÓY‚6‘ךݦA—Ú¶ 6ègÃ9ØŠ¾-Rjk‰¶žç:Žø`Éi»¸¾¾Žû{JœÈÑ)hk×P´¹[F[Þ‰””ÚZ¢í¾¸o‹â[¦´=þo60mè]jãš+…F[¿:[Näõ¶2µµDÛ ÏÑG'LÔÛöOE½ñÌܗ㢠Ù\)4Ú ç`ËýZI¥ÔÖm»"Gw´Ëø=é]:z~}‰ÌÜó@›Š°hëåÚÜ-™­ÃgÞa» ¥-év™çZž}w&/b—¶uOG˜B6WjÚœ€-YWÒÖSøŸE$ÝmZ«Ìs-Óöf_^$ÐÖ.,Ú@}íáakN ·€´%Ý.ó\/ÏÊi·Ÿ+‹ÚÚe@È“ a±f [{·ìyȯw@h&®¹RÖi£º¹VÙ´R€@›c´•½ë”RÞÛ¡ÞÔUÏÙh mƒÀÖ/;X m,´Ù‡­:SZðóõt¨  —²ÚŽUÚlæ•:ãëekÀÚZe6«.¦qû6¶íß¿ÈuÚ i©š,Â60iE!€|¶YƒÍ Ô„ðEÕ5 Ú6z ƒÆÅ*«l_Cî –‰¸8¶æ5¶. ×P"-Ôdhëõ˜ÔlôaK[øie Úš–ß2ßXø‰[‘•и¸’6T@ü¦6çQËE\ mséι¦òµLؼM‚¶²ïtéïV‘Âæne­E¸G ­aY"9|cС‘·’6Ô£Œi«"zÚÈ€ÀkÿýƒÚÒº!ê³t·d§AÈ´é?Dp±±ú=éý³5m¯EÖÒåÆe÷¤÷‡"?é*NïIW±Ú6Ãé”iƒúbŠþî À] òd£5M¨-kiMÄÙ`ª×%~ó®7´iÔ‰ :“Ò“–iH«jËZZuî¡Êáš mùšqÔ š%aÎ#i‘†´¦–¬¥5Ñgº’X‰%¾ÐK©ÈÇÆ Ú0È·Ðw„t]£Ó[—ÐN ˆ_­Ýu"в2Á<(ßjärë«5nè®`ëÚB¤M+Ž:EE7Ñ9mhï·©åÞÕVy´×#H–aëÚB¤ L­ £¢GrlÚXaÌ-6©¤¬b}w„c¦Qx´i”rø(*u~ŸRüww©œ\#™Å1Ó(œ7Ž@+ŽE«yò{R¢¯—)œ\~È‘¿ñsž6>½M ëØ6Rzd÷ Ä›Ä%.à ™6À1Ó(,Úzïê Q´ñ´Ö±ÖÂÍ[“áVÄ1Œc¥YX´Aßõû®€¦ÖŒS¶²5c¦¼‡±°(&q¬4 ‰¶¾®m¨*[—k!J|Ö(4²9n¨´QVÛ°hƒ~+E·DJ°Ü4N=1Å­~sjfÃH›´i“÷-éWÄA¢èÖ3› r˜W@¥ ÅH›Phƒ^´ EUúàƒÁn\ ïÈËmb¤Š‘6áÐm‹5¬hý”ªL½V,Õ‹CŠI)m=”õ(ªê7Ô–¢”~LÍqà E³ŠBé¿ Ú–Úå(ªÞ‹-í5­*ݘš­6 ÚÔ÷ÒjíuêÔ—$–VLe1Ì·nl¡S´)›°õón¸¶B½oTóf^ë42¶Ð)Ú”Û?ìÁÖ;³Š[´q%}ã´¥ ›ï…ê5e‘6‹ õÐw•Þ+Ø‘òËJ³´Fœ€ñnP_t´)¶X‚M+a”{®M’ p ßídfºîÓ¦øØÊlš÷tZ+YÔÖ šß[˜'×¥•9mjþÛ lÚ-¤€Y uß«¯ÎÕ›3{>Rì[¨¾B M¥Œ`3Èbìt •Ô\yKQ[¢Ÿ³ëµ°ŽŒiSyÛÈÂÓ*£G«ÚVsL•Þ;.pƒÊ_J¢¿èŒó“*Üw“?­2LÎîm¬ñ…ó™üöRîä€õ}6ÑcQMY 6ã×Ò| ¤’jµ¸ê7³ŠÔmb°Y¦´mIœ6S·&l ”cÉ{>«¶Ïf޽pm¤°á¼m‹ac•(%5ÚŠÛ†É]R]Î@¦´Á–R†áÖ„ÇÌ ÊhJ6‚fÿXjÃÃÓFÞGžÒRIV2m dFm)3Ò¶åKR*ØÐÜš0†gj(%u¬ “:…í&¨Ê&‹”6"ذ¿8Ç46Œr¶þ\vñ'iÊŸ¤éí夤6T·&ÈöP¯Ù,ú5™1mÐAlŸ|â[´®™Ôg°¦\¦ Ö´AË"°ÑtLE`s œ¶ŽÏâða#ê7!Ðf¼®²Èhk™¬-²>:€Èî?m-®™ Âþ`€Ì²uœ6h£ üÛPY@hÛ²:òF/ÏøÏ‚Äœ»ÙbMëÒ‰†6̺q’ùUÛºh{Øgœ6>sVûÙbMëÒ‰„6Ä;bÖ&CÛ ÿY.ø £-Kjãm°96rÖFHkù.¾ÿt|½½:¸bç"ÿà✥³Ø×ë³ã£‡ã—)mo¯äu©eD[Ë-iÃ$-Y`m„´=½x$r«Þí,¯n?ßΣý³½øÝÝÎë”¶wwé,žV•§'ç)|ÓYÒºÔÒ£-Ǭ™6¤*½ÖFHÏ}Éö¢ç±œ¥üDä^œÜ§³xæhN[ºp[IªZÈ”¶Íjl–XUµ-#fÎVQœ¥½—hÛM©Jiãƒhy}}½Šoÿò½ôä’ÐiCÍkc¡MÎäË}Û~êÛ–%Ú~¿¾íK:H}Û‚-SÚØž_´ÁæÙÂ8{öX m•L¾§¢ÞÆ$ÚÎã»óùòs,ÕÛöß³KÏhƒÚ ØX¶·m«= ÚÜòWw«÷¤÷ÏÖ´½fâžô÷¤ç×'«˜ß“Î}¡m œ<îgÙrï•v·F%ùý¶',jZä–ß4tÈÚjL‹c½¿qÛÛ#Pù]ä‘ôצ¥ÒHºÛeÅyÚ6nLïìåb)Ö·ˆ¨òþüëƒ,’^ï4.|ú!î²åm†¬ Àš·7 µHÇýî.¨4ÑìÌ Áš´m~¨ÌÊè'D›ÑÂ0¬yH7¾â“”½ñÒ5ÚL`.W) µá>Rþ jÔ´UnIA»¶=äMµa5õêYMˆ6}ï4dvù7Ý©¾˜e*›Bþ\Ž|óÍ7Jß.ó´A1AÛI UaËCn¼Iz˜eJfne/ V3ü*‰6h[²[ƒ&—w*&˜•Ê>*K/gø=¶phÓ½aë2¤xó¹p˜H¤þÚf²Jˆ&]ÚDHáô|ÄЬ O"Ü›A’sëªkÓ£­xŽPP6¸è ¤ ²ÛÉÛ|“8:üQ–eD”ö¶àÂQ†6 SÀ›ˆƒ"”²QÒ½×wÿƒåíÑ9›’à™¨KÏÖž(6§-Úz»WXÛvàl´,¯Ps§9ntÛÔ‘ mIùW9s¬ÒÄFU]‚9Ic³„ÓæL YË€¶"ÁôZÕÖè]›µ[Bž· g)åî-̓I—6(iëå"ºØ]›Õ»Aqý&¹ãµþ~Ä,;9`© ª2¡ ÄÐc=—®5 0j½Õ!§ òë²SãÐE]‘m ÑÖÃE8u °]Û0­[Å!Í_HŠÛGe@Û¬W“SŽ ÓµQßp¶«ÜjÙÌ>ãqÔ­-KŸ¶ü–×qʱa¹¶AŸ I„çEHOÉlã;8—dJ›â®9æØÌ]Ûà…*Gò¯¶‘gƒ5&må^Ò Îƒë¸ÀY)È僤+£€ 2¤Mí¬9Euéw祊Z! ÚÒj›Ã•6fDS¡Í¹(ÚûúwìuŠ ù`æÔ ¢ Ò¡-CMì2l_Ú gP•ò)q 3¡†ÇQù÷ª,UéÓ|¶.‹|ª”¾è@ÈWç f™.ÞuµÍéJÓ¦ ÊìÝBwl(Ÿuq•3®Æ‹wM›ÛÇ\â½ IDATq”˜6‚-m.ƒÆÕ|ñ´Í\wmš´7 йEŒ6×AcíïjA6Hf®»6JÚHÎm€ÆºdƒYþš„ÃÒ¡­|òÛu-µ{àÒæì½À¦ÚEq<Ø=Ú`kµªÝ‹68ãê*êh ;кÙŽ£Ðæg\Ýq¢¤ èKb(-Ú¶UÛŸ¨%ElÔzqù{KÎÑ–"æsÇ[v¹ti몶Qî¶ZRÄR/òá}Üš¯.)¹Ã-)–¶– ²ÁDi#õjIKÍó᪶µ\„N!L@¾¤óíš´uUÛˆŸÁ+%Eü/O?/¿ÞÚ?ý|ûâáÕñ‘zvD—S¹róE`œ´%]7 Ôî\%)âÎ볯;¯Ÿ]ÝÎÙüëÉ볿¿Ù¾­OvD'ªtJЗo‰”¶Ž@J~‚T’"î//Wñí‹9Ÿ•޼zósI{gGLEN1JHß$8/\ÚèwX-)bZG[γY×׋»y^o+hëÅP2L`UþÎ}ü´5R¯M*%E\rß&f­‹ßüX£íO½Û>¬û8õÍÏäÝ~k7“m-Õ6Ú󑣬’1¯·‰Y¼Þö¯·=ȹ8uZÚ‹.®Ïu;rÚ)ñÎæ'[%)âivOÊg=zrúù÷W/n>®b‰6Ý/Yìׯ³˜|YšÛôhM;P™HEs@mšIK}kÐÊAR{n _ÜD‹¶YC ¥¿°)úi&E,õmÖM­~I4×T³ÞsÈ㤵µ@J[ñx L’"–ú–áFèà4z\ËW+mYµ ª“•‘·}¡½ßÆ{¨5+FIjÒ8_e´´Õ«m„°­oå»S}˲ˆe :ozAü&IÇû_Ψ?mÀ»?”ýlµVÕÄ<g)a„›3ä•7]c ~ÇJÛ¬H¡eA5´†åL#—`Š oÚ†ÖŸ÷RQeNr<ÙÒ6ý ˜ÚBáÍÀHIÛ8ÛÛjñÍ•'’½¾‰ÿSK²D‰6„sdÌ›Y2µlã¤-ê=´-ØÏ*ÍÛ wŽW‹QÉ a-hƒ‘Ò6“O‘y!~­g«mŒH¨Ÿ˜ÀøÌÈi«ôHgæì¼?¶ÍÁ¡@„ôã¦m–ÈŒîví¾¨ØÉÒiÒØŒä¿ã¤R(þм x#¶k‹H7:}NëIIÛŸ%$r§ÕýO“ÙãI#uT¬Fœ>á«¥nÔ´ñ@ Åо\ãºCWÒz†ÑÚ •_ïFÛbN[ÂFH["?ÌîuÄÜøjŽ7¥Úfn½qÓ¥GSŽ£}GÒ¨¶óŒ‡ÛvK¨>³5NÚ¤Z›âUê(3Î÷{eË$eMV˜ö¤q·mIöAB6/n šÕIÆ~eÇ‹ôeDÃèhËãh6ÚN ÈÕ]x„bÖJÚ`d´å-2l»µ\Ûp2ÝCjÖÖ´yñŸ2mIöþÔúèyîÖrÁ¶LZDRÖÈÑ8i›‰æ¢òØûïÖ2©<íݺH׊š+«o%ûmIv•BöÇ(ÜZ&…v­Ý- ¥n—ÈhK˜O´]«ËB]Īd’þhû zÖòtûwÓPØ„-¢jä´‹5VÁí4£kKÄÎ Ä6<|¸Oi{¿{xòx¾x‹œÎ"½óÃåÓ‹Gqôp™ÎZD߯÷~ÛÝÛÝK‡q´óædÁs²eº`f°J yµÍ—Wm)N÷÷i½íößS¼uÚ®®ù¶„€`n—g9}ÉnçWs‘cru‘ežŒXG_ãtÖ"Š—,úÇâ§ùÓ%ŸÈs¡òÏiøe´‘¡à/mÜ·½N}Ûêգ߿m¨Ê`Œð Îóœ?Ê´Ýð„ÏqÄËEľ;¾ÿþ_ùPäyŽÒË•‰$•B5Ú¨œdÆo´]=~™ÕÛ®¢¿ýrY¡íó$hËïI¹o;J}Û"Ú—h{Ç„oãƒÔ·±Õþ*þ¯ÅÌù0ómŒÅí´Q± ÌzI[yOzý[vOº¦mq¼¦mrƤ¬(áœE½íî•DÛ OøG'LÔÛX´ÿ<~¿»÷ŠÓzÛ3Qo»l§È¹Aöã!mŽË6¶¿Híkue«ÔÔUvùTïIÙÏm»"ás´ËÄ=)»ûôôÕêpuȇâžtyú9ž·ÓFCþ”ÔGÚÒHº—õ·_þ¹…¶\Éf%Ûg FÚ28·$|î°$‹Ä¹yLÛõåm,¯¿°Çj´Õä;uE$ÝmšÙ’ð¹ÃRE U¢ne6!aÒ¦&£¾R—GÒæ Îm Ÿ;,É¢pnM»@`]¤oùFÍ; ¹ðBÑy} ­"_¨#¥ Ÿ‡Ì` ­E®SGKzj ÌÞ¨iÃhõp•:ZÚ°«n¹9~ƒàm*‚|€ØÈæux84sKÑwýHiËABPÝ-ìÝt%³žß(w|½Ü|³´¥Í1Ò–ã–þÒù"©µÈ6Ò¾qÌm6îfÕM¦ ÆG[~¬fvöÌ:x ö†šèEìê97^Ü"lnËAõëÁ^ü€í÷DÜ%õÇ&Þ¤Þ{Ìl—ñÒ&v)°’Q—ÐÜ­4„Îއ+ ˜6qðfôýDm-6u •çlÄ-1;YÚ†>#jê›1²ÿŽ4Z QG§üƶÊõ“̱’6¾W"ë”E_뚉Ô"­UµÂ|ck[yÈ8iW¸»wºw²”· ¹{+½BØilÌ´ñ[R÷œ[ƒ¤&µ¥®,¢em-1~€"±5nÚxµ”;7@/ ¸£~~6›­6^òèÈio‹ú±{uµq—QŠ½Ú¦A*h›’}~.ü8ýiãwð^„ÒnU¹K,¼j!–÷$ÍÇ5ŸÁ~[)êØiKwзPÚ©™$ ßΟí|+{á„¶Äé»R•m°ÉŒŽ=óêZn¤?ŠG ~œ ÚòD¿€[’!Õòn†ÌžùFfHý_‚üGÞ¸;fÚ²wÜüØA%)°dŽü…´‰¾•ÿ€ñÓÆ²k€Y!Õ+'»6vÙ¶ÞJDèÌ‚ )½—ûFÙR¿å“£‰$k€Y!eZ)“ï,º—¦-듦@›{¨ ̆Ývð²i2mQ­g‘åÿYˆA¡çOê}únЖ0_Î…&m£ ¥èzæªq—vÑö°Ï8VbPè#;Ã@›»¸UT´­Õjë´ÝðŸåâFž–wÑ5iÚDû®'»¸U–^ •}ï îàÓûˆ\ˆ.ËEïåìœ÷·\œ³ƒÏñòô3ï¢üþÓ“E:Qî¯\¦ Š:›§B—¶ëkŽáÕ«ýÃ@ÙÓ‰Œ¶§~;úÇqt·³]–‹ÞËãw¼?óå‚ξî¼~vu;góåU:‘Iý•O¶ìù‰û¸Eô4“ÔÛ*ïÄ÷Í%Û‹žÇ¢?˹è3>á}þ.|p¹Šo_ð.ÊçËOéD&õW.Ѷ~jåÇ™0£mÎÍÖ7ò³„9[EqZoûîL¦m—÷g¾\ð=• Ú®cÎÙº—Õ mi#§m<¡Ôî=kß¶Ÿú¶åG‰¶ß/…oû‡ܷ-dßÖDÍmã§ ˜/;Ù)[4WQo;õ6v ÑvóþÌ—Ÿã¢Þ–Ñv•Nd—Ó¦-»+s„¶òžôþÙš¶×¢?óå‡tÝ“f´‰{Òymyë°ñÓ6I(µ|ž2ÚZ:(oìϼ>±B°)ÑæÇ^vÉò‡ØE$mì ¼±?óúÄ5m0ÚÆRq»›Ë#iKåý™×&N˜6ÿC)ØÝâ; ÅçÀÆOÛXZÜÀîæi©© ŒÍÚ m£¨¸Ù. MO¶^Bûœ¦ ­òŒÍÚmù×å€S¡d›6„ïIó!0©ÊÆfmȈ6àÀ)ÈP[Ê>̾•/üœæ·ò™½¢ô¡-ïd©$ lm(‘â(Æ×ÑPüÚüØÚP"UÚó*\Rý[ÖdB[¾‹€Rdí)i’3KŒaËŽú4h]Ð%Ñ6‚Û[ž™'5‘"§qMÖ¿Pþ8/ÚŠ”W€Rd‰6Ñ;öÚ™%8®mŠ´y]q³SøÚj¼oB ×&fdÍšÌhó¿}ll¤V9ä]Þ"ä¡ú㼌hKü£,l£›ðjqtš´ùìÜ€~UØ0žÀ”ª?ÎËŒ¶Y¶ß€R”!d¡¤¶ Œ 6ÖÍmžœ‚©ÓF¾…ÚÝÆ›Â¥‰Ñ–HŒ^мä³Î? MN¶¬âæJ’µþbû°%µÑ©Ð–”´y²³›RëõŒ(°Áz\ŒN†6£^Šô&a#ó2ÆAª”ÖVacIeHÛ¬8‚~ÆRBÚ6`l¬jCü1%Úª ¾©¨`«ñQƶ`ó/@3N/4Ú,wp€#ÚšŸâÞŽrÉ^­i‹îɘ¶²2â!n ÁIj{ŠQi«Yžmåmó7@?I­¯v TÚÿé×u!ÒænÈ´u½Ø°¡Ã;AÚäýô ·õ$m4xÔ6el韱Æ㤩Ybû¦›iÞB ËÜÊ[Ll(}:eèïÛ®ß@›¸3¤Mù“Pµ¥Z7Ó¶z6½Âœë¢ ­ý9$éÝ0µ{|jDBGÅ$ë“¡­éÒõà^øÞIê÷»Ñ±èØP%„Nš6÷ït]B§– zoCÚX×LÙüDhk}úã8n ~{ž$Î; 8èÞX M–Ó¸õ帿SË:+qmÛȃÉÓæò½BQ—R=Iú=ib ÐsȃéÐÖº§îVÞ ªœ$]§VÝR/)± ò ÐÆœ¦ÉÆH›pºYë·ŠÜIÓÀuÑ–$è¤ =šþ¡Õ/r]e¡ºO’ywóý[?”é´5-‚ëÞÌs[pɹ{šeÞŸô[¼O?[¶F¡âf¶Ä¸—Òµ©^K÷Û*T61Ú¶]Á˜Ñ”˜6<Єõ¦tm‹á¹7:Úp²UŠËéÜõ&Õa MÚyD¦-ZŠ—šIMoZàÕ?—ÚÐxC§ 7vÊR@Ÿr¨'D›Ú®¢ð&ÓÕR³/ÏøÏ"l®»^œÓ†Ž¥[°e>N«q>œm¬m(¼uÑö°Ï8fbÀ7×]/¾vh`\¢6u﫱G…ê0ÐÖ ã¨ÕEÛ ÿY.nÚÖ­ú¶L†ÅiWû1A©%–æaÛæœ’]Úú5`6(£íë§÷ñÁ§÷;¸ørüÓñaôöêàŠ³Ó—óåâ|ùåøl¹x¿Í&¿ýtȧ¤´½½Ê­X ­Ñ°yâ¾BS¥-a}Ï™ÉÏh{zñè·£Gw;Ë«ÛÏ·óèpïl/~w·ó:¥íÝòÃÅÏËÅד£lòÕíœOIiKÿȬÐÓV?ûiÔ*‚Úv&AÛ,û,z®¦ïà2ÚŽXôæ’íEÏãôn`Îæ[Å«øä~™Òv²œ³ÇéÍÂ/‡Ùä8˜NIiKÿȬÓ&·ëâ94I…½@›ÚšzÀe´ÍÙ*ŠÓzÛwg2m»)L)m»é´(ýÿ<Î&ÿ÷s>…×Û¬Ñå=/Í]ïÆK,¶­+kœ‰µoÛO}Ûò£DÛï—·}¹Ì}Ûže´}d…o£§­DŒª¯ØN}d ´ø®g%#³¨·Šz;h;ïvÎçËÏqVo»yv$&_|¼õ¶‰¶ ÓO=ëÊÌÑqVn`R´±™m,s*ëgްvOzÿlMÛk&îI?°ìžô-{û?…o{þó_ø”UÜàÛ6pé§–¢š5•[´iØQ=ÙmOXÔ´Èm,!l>G¨OYGRгDæ×[kÛD m(ûº¹Ì™‘ôצEÒHºË§ÍF¢¶r 6¦8-whË,¶"—Å®<’^ï4®}ú‡Jñ ´¢úRÚßdû&бiЖ Ó–™í_Uê'JÚ,œwé €½­bÈ1ßÖ.Ù·™Š6 qT¾âŠ­M6°L ¿ß†^rÀ6¸¡Š{/67 Ú²ìíÐ ÿmJì’Ó‰ l­¼ŽËÚÄ/6mȾˆ>ŽV+®õWA\—1mÀ,^Y³Ê×Ëd´áZkPÒò'ù†qdJ›¸š­Ð&=BªAòãP÷“¤ÍFݱD Ú"£-¹‡X  Y kC-9¦­&mÒ<5Ú²ýŒ¢t*¡qm˜%§Ž£­¹‡Ø$hK˜=Ú;M(…øÐ ÐL)Û‡·e˜y(¿%œÂt‰6DÚÍ’º}èšé <¡-™%Äï\;c¨E{#n˘6Ñà8…iß(¤.Ó³Œe µ¨ùRƒ·eNÆë”ÛÄíÓt¢€E ÙiQËÎÃÆˆÛ2¥MÜ)X9ÖDÛÀ1KG[`Û|«Òqù@é© #Äq´Í­OŠ6ÈhK¨w–Ô:Šq#­j­CLŒ6È>‚¡MŒ@¥Ái ;î$i#jœÈE¥¬S–°óV|ª´Rq6EÝ´€`ÁD›”«ÑS®ÓFÿ^…Z-o‰Ð0æ´0h£y^^lƒXƬÐ][¯ahsZ´%„´‘Þ~Ó…h’­4Œ9-ÚŠæ¢7ϸèa3¦(Ž*=¨ƒ†1§…@›J/z²›1-€Qˆ ©OhsZ¦´£ ¥6`3¥æÅE«Ð0æ´0h3ìú¿MV`3^ŠÔÈË3ž˜*ZžEo?³èöÅà 1ùáøgƧ|½>{¿½ÿ´Ï3Tfö\§Íè…]¬w aÌmáÒÆ³ 'òVµ7‰"(ÇmfÒ°6k’ÊŠÐ97Ñ5K.(Çmf²ֈ`/AÕR¹”4Žº­‘Ó¦"P_Ô¥Ó:mÚP¿•ÿcßTw„dQrM‹¶™—5‡©—Ý©½ ´y)岓÷ÜK6/¥\v ,DAã¨Û ´)—ݱ}„ÆQ·eB›|øÁ¸$ƒI•" ,DAã¨Û ´©ÒæPS›4Žº-ƒiÑæX6mÎ u©h Ñ_Ð8ê¶mjEw-ŽzÙbDTÿôU*'˽:mÚÜjúì#•“Ô…è­‰Ñ6«ö¹&…‚;G§F[’Ô/xO‰’¶Ÿ,OçÔió·í' è Ñ[°m›;9Ø+úF‚m 8yAã¨ãB¥­W&g[æ»é: qÔqáÒÆ°sÂØÎFÐ8기ió0œB÷lG/hu\ø´y×òsÝŒ£ž>£& Í·h sÓähƒö™>áÖí¼\Ý“‰ÑÓ£Ê['mŽÆQOw©hó(šv,w« S£ÍÓ{¹ u,°UˆÞ ´ÕäI4í8Y_0°mÛ£ŒÑZç¸\|XÚr9ÒP§ m†ÓgÖ£N—³*ÚÔÞ°Ý Ø´Lw÷ G]5mî‡Sè9Ý Aã¨ë"§Íùp Í“Ý.´Ÿ»´m¿)-åt8…Æ©ŽW†mr8œ6cåv¥-жEΆÓfÚÀn!zËÏÆ]k´9Ë[ãÉr³¨’&H[ßýt²úÖ´îŸ@Xº_صti«ä‹T^ÉAÞ`s’ë•66=Ú­ýt7Pšäš qÔy™Ð¦µ£ŽñÖôá˜ýRô4Ž:/ë´9Ö²‰–q4ÐÖG¹7P˜â  qÔy B›Cáê\r¼­ò´ÄŒ6ƒ=u%œBío?NÞähf¸§N¸·úxQi›(mfuÜ[ý\Á…è¯@›††˜Õ?/¢$Ä`°BhÈŒ6ã kèpZݼ7~GÝ×À´ N«å÷¤ÒƦJƾN+´ùÛähË÷%ö Ç[¥ø0P!4å˜7Á_ÈÚ†ã ä2 S-A96 ÚŠ°Hå†7XútÚ|m1¦ ooàM>k`}ëú ´!È:o¾6[ùZncÚpw×róÛzk>UÚmX²ûrH¹-¿`ó¶Äœ6ìŠƒÅæÞdcÄAã¨2¦ ­¹·b;^Ý!pA9æÙuâ mÖÂ)Ô†¾Hòþ¡  £Øa+á´(¸g•¶Jy'G›Î‡¥Ûe¡5ò-‘oW¾>mãB¡$òQ‡Ó¤2ðFÕJ&4/äªhKˆêYÄÕ· 3Š6mëMfTa”7aÚ;تGz‚´ÍÈh£¼]ÈÊTæ‰T;Ó£»6BDE2ã4¶ÉäéG;¥Ìi›ÑÒFÅ0aƒÚ„úß®K“¶„U}íy#€Ùðãëaµ¿½ÛsÚ2ÜŠÓ¶¹‚7À²Þß!°iÒ&p”Òtl0;ÔXÛIÆÛ4iã¸Fa:Å7‘`9ÑÄ¿:OÞƒõBJ›¶Ê®¢QйÍ 5íowMA`»¦Â¡ÍÒ[ih-‰o°5ïuãD—¥O[í;ó?ƒªæÍbµ¶€_°µ\ËÞUÛÐhcßš—EÒÍ“gH­-Cw?ÒOm¥ ´!©™¶¬iÏ7¿<[kiÁb!p¤O[mgmÒfµ¡Ñº›ê¨ƒ½R É+ÚÚ§÷nYIÕó;f9ª@›Ëê¼Õ÷¯ÚfB[uomøê¾™ ´ EQuáåÿYˆA:Ìj°ZÌ ´qm»+¥@•mÕÝí íaŸq’Ä€±Ã|¡ºÉÝ´ÍZ¦ëÈڞ΀…b Ëm7üg¹¸©LÜ m¾…¶Yót9O›J¶‡™¶¯ŸÞÇŸÞGìàâËñOLJÑÛ«ƒ+vÎN_Η‹ó›Ãèpõd‘NdéBËÓÏì‡åûøõúìqüöþÓ>[~9>̬5ÑÆÏ€<½oÀ^³ì6mŠ Š@\ ™ÐV¹ºÄ|zñè·£Gw;Ë«ÛÏ·óèpïl/~w·ó:¥íÝÝîÞîÞr‘Nä }Ýy}øôöÃíâï?~=9¾-]%³ÖH[zºhÛ°½ Mýý ,‘pi;bÑ›K¶=ÓS;góˆ­âU|r¿¿Li;¹]ü4šÒ¯øB«øöÕÞÝóßvçìñò—CAÛœuÓ6ë¢m[Àö€¶} ¤úß%”?¹Äœ³U§|w&Ó¶»ŠYJÛ.;úþûMiËJOÿý_ÿú×ÿ{}}ÍžÇy½-§­xj°!1W+`KqÚMÚúôeõ¿BIDAT½¶TÅ .mÜ·í§¾mùQ¢í÷KáÛ¾\²ÿZüÇ\ÐÆâ¾íëó»ÓxÁ–Ëÿ<«ÒÖíÛ´¶§¤­ï»-^º6dÚž^œ ØDÛy|·s>_~ŽÙûݽW‚¶ƒ‡·ŸXZo»yÆëm—Ûhƒ|ºVÀ–â´c´é¼h0AÚä]®Þ“Þ?[cðš‰÷±ÕáêPÐç!Ž]¥ÿίOÞ²·ñ£ýy7mPN× Ø—’çtˆ6ÝWZ¹v„KÛ“ÆGì6^×ÐÕÔݺ«°Ý£Íàå)?]2mO/~mZ8¤»ýÌw?¹Ò Ø—NÑføš`•îŒh“w:‹¤×;KŸ~ˆû™ï¦M+`Ï¡ åkoÀ(‰}áÒ†¦nÚL6u_í[EûŠÇO™Ñ&íµMÚL6/kÙ¢ýK×SHï·KD[6å%m¦»RÖZC2(—q‹Öv±,®M£[´$3Ú¤‹l,oS6?ÅPµLmCéLÓʶõ~…¶fµ=HÓ¥ÒHÞõ`R 6”o–Ký©å¼Mäý¶Nù ›)mtõÕæPhó6cÚ«MÚüúÌ¿&SÚHoÆ7ì(qÚcÚüúÌ¿.cÚHïú½ò5~YLpH"í¬j#Dò:r Ëç*›1mäíÚÞb4ù$Ìi#ojô=| ÉnZjéÒ&¹4h]K#8ΆJ†x_´YxŽâ 1ÑHPc(´Ùx#aºÑt<¨1Ú$åØª1te 5†C›¥WÆPM¡Æph³örß„âé o“ …6{ï[ó$TeïÕ%ëÒ¦­âРe %–ÞïB#MÈ?Ú2޹dä  áÐ6Ô«Ëã`.ÃN(IŸ¶ a`ZŸ Y=ãjQmN|—aã$%¾WH´¹õ…ãú»©¡K²¡‰b–KŸ¶*`мÌвü5T‡¦Y.,Úœ¥]²ò¡gMk;uÌraÑ&ÿu­©ž½né*!sx2]°Ж´ý¥K%Ú$ÍpÖwÀ3¡Ñ&97h ²+<ÚÖ ;mAÍ2 ­~š’ì%@[P³iK½[ö Z -¨Y˜´ÉÚ‚š…J[þú™DÍr^CèœÿDì\te*:.]÷^h»LhÛhÑM²f€.ÚþÉ"öÏ;ñ×á‹@Û”„OÛ¬“¶]þeVKJh»PiËÛ83jN_ÎïŽ_Îw/DÒ³¥È¶<ã½ÏG˳ˆç8[~ª$% ´]&´mTÜò&uA Oqvðäñ|ñ4IÏ.Dþ³‡Ë§âèá2Z^ÝΗ‹JRÒ@ÛØ…JË‚©˜ÌÓ½d·ó«9É3.D¯ñ‹âèkêÞæ,§­Lvh»ŒhkyñCPÃSœÍS”>ü(ÓvÃ3¢ÅÑ ‹xf–Œ¶E m*"£û¶£Ô·-¢}‰¶wLø¶w¶Iʈ¶–w(ózÛyVo»{%ÑvÂ3¢ÅÑÉš¶Ë@ÛtdF[³s«Þ“²Ÿ%ÚvEF´h· ­’”4Ð6v‘ÑÖ–â¬%#Z¹^ЈeF[s(-"énÓÌ–ŒhåzA#–!mÎ-¤Í)ÎÚ2¢±@ÛøEG[ÚÆ.CÚCi -¨Y¶ {2¥­)”Ú‚šeJ[“s ´5‹‚6Ç¿^LÆ´9ß%C;2¦ÍÕþf‚T -ÈžÌi ¡4HUæ´ç¤ª@[=!ÐBi¢h Î-HQ¶ { -„Ò 5Ú‚ì ƒ¶JƒÔ„B[pnAJ¢ 0ì\(´1˜PVä }áЖ ŸÙ'È¡Ñ(†‚F-ÚB” áÜ%äŒ ¡Ph£ÈP4Báù6À°4j¡Ý%Ú‚¶ ‡6Ûí¿¡ §PA® ‰6ŽÛ-’)Æð,9%,ÚRÜþËT m¬B£%¶ -£ ñM@ÛH…H[¨·mQ -ÈžhhkMKº¹VS¢Ò@ÛHe‰¶"-éæZy¢Òû8Ð6~Y¢m—ÿ¬Ó’njh›€ÐiëNKúÃòŠ}ŒÿûñÏ,zû™/Ÿ%*]I‰Jm#6m[Ò’>½ýp»ˆ¾_îÅÑΛCÆi‰J¹o+•ÚF*lÚ¶¤%Ý»{þÛn/ù_ñí+Æi‰J9me¢Ò@ÛH…MÛ–´¤÷ýë_/#öðÝieµ<½ZVo ´[¾­#-é×çwœ³ÕþjíÛm“~½­3-éÇÛO©Ó‹öŸ¯ëm9m—¶Ñ‹ìž´9-)»JÿEìîÓÓWå=© íæã<Ð6zaÓ¦ž–´5Mi m´"ˆ¤»M37Ó’Ú¦'üHªš–ôœ±½ëëëÝVKA£Sx$ÈžmAöh ²§@[=Ú‚ì “¶ðõrP·i Ú¢@[=Ú‚ì)ÐdO¶ { ´ÙS -ÈžmAöh ²§@[=Ú‚ì)ÐdO¶ { ´ÙS -ÈžmAöôÿ–ìDQ7T-IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/namespaceGdk.html0000644000175000001440000000323210400731257017713 00000000000000 gtkglextmm: Gdk Namespace Reference

Gdk Namespace Reference


Namespaces

namespace  GL


Generated on Mon Feb 27 18:47:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/dir_000001.html0000644000175000001440000001152410400731256016711 00000000000000 gtkglextmm: gdkmm/gl/ Directory Reference

gl Directory Reference

gdkmm/gl/

Files

file  config.h [code]
file  context.h [code]
file  defs.h [code]
file  drawable.h [code]
file  font.h [code]
file  init.h [code]
file  pixmap.h [code]
file  pixmapext.h [code]
file  query.h [code]
file  tokens.h [code]
file  version.h [code]
file  window.h [code]
file  windowext.h [code]

Generated on Mon Feb 27 18:47:51 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/context_8h__incl.md50000644000175000001440000000004010400731256020272 0000000000000069497b841bc6154b3a495276446d0ffbgtkglextmm-1.2.0/docs/reference/html/context_8h__incl.map0000644000175000001440000000026410400731256020372 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 584,304 704,328 rect $tokens_8h.html 393,352 526,376 rect $config_8h.html 394,56 525,80 rect $drawable_8h.html 196,228 342,252 gtkglextmm-1.2.0/docs/reference/html/context_8h__incl.png0000644000175000001440000002003110400731256020373 00000000000000‰PNG  IHDR’²dlæ>$PLTEþÿÿ§§§o???¿¿¿___ßßߟŸŸÿÿÿ«d¨tRNS@æØf£IDATxœíKsÛ¸–Çï瘥jVWËt'žxÙ3©\ké¾®”½šj9ËË®©VIKw"…\ÞTªb­f,Û´¸£%™"¾ÜàAŠàS|à@…*¢DJ ÏHü iµCÛ÷h ’&Ùi’m‘&Ùi’m‘&Ùi’m‘&Y@ÿYG²R“, ^ß.…Åi’¤I¶Ešd[¤I¶Ešd[¤I¶EIÈnrÇ©¿píà&Ù$åܤ۫&ÙLå|Nÿ…&ÙLQ’/·æÙíΦOƒ.Œï÷g÷h‚¾?ÌVƒ¡;ï¿,ÆhôˆðzLòipÁ~«I6I”äéôíçþ_cuäÞ/—–qq2>1 §¥}:}ãÞõþœ¾yÞŒñz¹ø ì·šd“DIö‘ñe†NŒs»N YòLÏ¢'²é«‹× wž¹¼6ðZD?Ri’M%i!Ï0q;ùjÌ“2Lƒ,¾’¬$ý*&IVâ7}G›r[—W7¯|¯÷?„$Íé"ƒ’ Ê=’‚F2(I\y–…Û±»7|M?“Ĭ¦A¤® ––Õ°hciMf›Ì*ÿåÂríå럨w}5¢$Ñ‘6F¿µÉ>¶Ûèq5ýQ›$‹ÏÔ&o“…Hú=ž¬ò—Wǘ$ÂÞÕµ¼žwˆ$Å íúí䄵c«k®¦‡$1«ik'I²rSˆ$YôòÊGgØ»önÝù‹eôΧöæÐH Úö]Ñ%WÓÇ41« Öwe$ÉJÏÜM’¿Ç“Q>a·û®èo8ýdsåI¡ÑO”äÒäoµ„JMÌ[Yä¾kVùy:’bƒfïzœ¶151kle’Yåç©ý$ÍøÞõÎLÛ˜š˜5¶²ÐXHFùyj;Iáq¥zTk?$ÅÇ•j’{! Wª#²öA"®´>Éü³K“LÈúîzGË­I&²ów¹,›$ H¥*ýœ‘\’@ …ÛU¥T’P …t†;Š?ã#“$H1$ÅQJ$ RPÁÝ®Ò(å‘„I<%¤ã(ý4¬4’@~ k&É©ÖUù ui$¡jHà4]â6”E)‹$X $pöj”Ê¢”D.;cW`Òyj”ª¢”C®r‘e3’Š¢”B°jº"[`Ç/KI”RHVŒØ¢}£ôg˜Z4¸d¼Þ\ÛQÒr»¶”@òÜ\ÙÎö`Õš¿‡ž$h£#ºìîö´ë8 Í©EO²:„›»®BR“í7ˆ/œ3JÅP‚“õPâ ‘TÈ¿B“TÌ$¹Þk±tkÍ4IГâ4éFIªc”À$a¯®!ª9t¯"G±%˜$ì) Qº9ùœÎ¿Wܪr¸l©LÄàØ1‹ Ð’°Î¦ô®&™"Xç D2Z¬&I<š¤I&Ü…"-W“Dà& U|W“Œ Ø$¥“4b9Dܱ¿L|3ü¶&™/(’ц2‡äÆßÖz’ÐÑP'Ja’ÏþR“¬)0“Ü¡£HF­³‡[MiRWšßMÐÙ£éŽ]¿ ãݿѵß.ܧÁ˜KòªH“PÉNR"JJ ¹¶‘HÐ+95oL-"™‰ƒZôÀ’¥û³l…$Wš¤E뺨é95‹d'$™Lš­IVw¦òŒtÙ~ØIßîõËÃí{×§Á˜¦ÑviFméé²cR¤Øy±SÐ¥‘<¾%$樂ӄÙSšQ[zºì˜”&)£•Õ w‚Ľ„¤…Þ±”®4S¨ôtÙ1©KRÆ´¾P~ÇBÞ”ö](I¹ ]cR”¤(ŒYmlÉ.ʵIM²¤(Fwr®JÒ½k7L¦ÍÚÉKޤôtÙ1)G2°Æz$—-‰? Ãßãáú®!Iéé²cR‹$gE•IºCßÞ!¿#o(£É´5É\E­¨É¢7âÙ7²3™¶&™-'Ž <ÉD9Šõd»(2>¹3™¶&™%'éK’,ÙÙ|—ÿ¥ ©£Ž%I–¾fá¿®£?)•c’e¼j n—U&àÖ$“ÊàXxÕn!ðô¢?×$«)“cÁ]T½䤾%Ò$«(‡c‘]TìŠà;ðt$s9îÞEuŒ('½Áj*Éwí¢ÇœÇB¬f’ÜÉ1NÝ'¬œÄ›æ „dÍ¿¿Ç<’…~¾ãvï¥qjÉb ²w!bàR“ôUƒdQƒÊw­¾ïPµ\ö †‘¬J× z¹[ª F‘,"mH_Ýì4V "Y DÊ.†Kv# 5Ô’å@$G¹Dæv`¥+e’!YD|P_dürPºR& C²t”ý¾XŽ~éj™d3HVÁÿB¨c¥r¯Ê¨$«€àkY|J2VºZ΄d©“¹Z Ç „Åv¡„öM²öP0D’@óôî›dån[Í Ù5I_…IVïrnoŒ‚Ô·‚ùìaH–ª¿ ÃÑ$}«ÞZ×€þorv*8[ÈþHÖ»ô *ùjøð€B YÄ/Õ¼)|éÞUйî‡dí›2À÷E5I¦\ÿ.)ð}Ñ®‚Îu$Ü%MÜM+O\8ÖX“¤Ê7!ÃO‰»iõc¾5ɤrIŠ~ên_| '©^3 @2‡•È€©H]k’RI ×OÞKÒQѹŠ'™y6 LL†ªÍ'M2¡ ’"Çõ“—{¢I*è\Å“L?›…Ú$»–‡”LÈ“HêœÕœÿÄ}W“L( ™˜ÿ@NÒðC’‰LÈßVäum²O^Äz3I*è\…“L9›EL¥4c!ÉD&äcú¤! –Û¯ÇK`;Ð$ÓHŠŽ`L»F R3!»c²æbÐG£GwÞô7ƒKtöhâ˜äI•–°ý4ɤµ`LíYR©™73ý_Zžù2¼Þõ<Ó»8ù|t3ÆÇÈ¥©’ö{Ð$3¦7H‚1yrP©YW_L²“ôÌå' ¯w‘ñ¥çÎðÇkäÒ´¬a ÁQ«ØáM64œ(µcI9¤fB~Fd IÙ¹XX6^¿y52pc‰?Ò6U“LWtb1!ýnZV¶MþHzM I¯ça›¼ÀMM2[\%Ãpĵœfç~;™’ y$í$!iô΃vr¦If)¬ ŽY;Þw I3’ÏswôHmrõpz=z4ñGÓÒ$³ä×r•”·H¿kL9ìÌ„œ'M’—'ÑÏ ö?Eøìä;3!ç‰'ÙUñ"D(I:lÈ[dòr5œÅcg&äÛ Ý?³N-i’¡:YŽn!Dÿ‡ÿwù]±˜×N‰9wóÔ’"ª:u¦1";±¦ªHIÑ™°œ23šç‰/ì TâHæOÙ(D)sÒ±b#—¤$›” ƒ'™f3Dš¤ %™~=©IJ‘X’©þk’R'ù°ö¢€®ÈË5[¤èaûõÌ]põoÄîq»còb“E|‹½]nÑ$s´“äŒäÜ*kà¿ùR—ä†t]›,4ÉšÚIò„‘<áVÙÉu]’ÏäŵÉB“¬)Žäl²¾7'kïþËõpõaõðbþÓ<¸}rǃë‡Û{óûâ ÝâM óæ Ý †–ûv¿u^„äËíyöpk ³)^¤Œh‚FW–kOÞäÎûß.~vïÑ/Ù€ñËbŒI~¿çK‚—ê$ïßõ×^­½_×çÇ·ÇWw›»õãè×½Á5YücñíãáM{ðãã?ž¾ßP›Äß)Bòtúösÿ¯±:riô" d4¬Žn0É+¼É½ëÝ/­ÓåÝÒÆKìˆþœ¾Á$ñ¹’à¥:IëíÃz²¸[¯ÖØ™Úû£‡I­Ÿ7‹ëÁ5YüŽ?]cŽö¿y˜žS’ëE!’}d|™¡ãܤ! Ð0‡ëž‹I×x“k!ÓµNVçŸñ’VáLÒôä’T2d€#‰[¿õ“Yþƒ'9Ç/öàzî·‰×lùÉÅÀ_Wˆ¤…<ÃÄíä«1Oò3Â$É‚„Ûüëµþå—_fxIƒ]Zl8%¹&™£¨MÞ`›ô®ßr$ÿ\P›$‹Kj“dÓÀ[<<üu[†$±É¶IwΑü:£6ù„Ø&m4GÖËùjdâ%³I¹šdAñíäk'ï Žä÷ůgƒk²`í$%‰ÛÉùi'GEIžNG´Dgɉ¹:šXî£IÛIÛ¯¬ÍÝò,Y°#n'7šd1¥ô]Ÿ9’' ÚwÅ Äú®xÓüù }.†ƒÞÛuI¿çí»®?„$oí»Þ!ÚwµÑùåktÿá%ë»NCÏÔ$ )$y7xˆ]J2½ÆÍf%ËöoÂÒúÏa\šñ§äò¤Iæ(â]OÒýúñ[e’¥ï]SC±w=.~°šdŽxﺤzB望$ãûÌ»f„0ŽîÌÔõ©Ò$s$z,„—?ô¬ÜXÈ¡“”ý¡IæHÛdRšd\¾AªGòУ$òã5I)ª¹Œdµ„þv§ äC'œä!èZœ¢QËp:<’¡5Jbé>-ÍéIrŽUK²Ð'û¶{QNuŸðájUK'x®t/I2ÒÝ®a^릒áõŸº‹Ògɹs°](I§ýÛ1þ Ë%IfŽ­5̘ €8m”|VÄ3ÍäI É2ö%À®–dJ@'›¸Á-|WJ¦V“g %œ“Mr¼«&‰’ V¨`X¦Ö³HÃÔᆙ%¹× ±vò’#´“Œ$I¿‘GÒ‰,„(ÓÉBT5fÉ‘„…ÉNÒDß5$ù²`}WF’ô]¹Äð’Hе—,' ó€ævgÝ̤|bÄÒR3"©âyÅÒÆC“„êù¥&HEwƒ9Àé¢üdÆô}Fªx^±´ñ²HНä4Ãñ~t|’0t„æŒNŠô½kFªx^Ñ´ñÒHBd×LV,„õ»ß¼ÅWPúÖ»–—4’0ö’ðwçËö\„BÜRb¥7–dætŽ9Y€ó% Ù±JÎc³² viq²©•ü¥#e´0þ*¤¼d’„KDÍfr'¥"E“ ÛŸäß+gü¯ÒÎ öQ’ 9Å·õ’ÜIoÇOóëŽûjÏ“aoËÉ9šF.3ñë€&fô+(RIÚ7©KRJúvp’à96i5ÅQŠ#IPÖ")!}1•’ðéR1ÌÀôýž@’e’’¦m"¿.pR ¿S[d¬òkµõu΂R’BRJãN—@ô¯Õ„’¬E£e$¥øzÔïé3’“ÅÐ wŒhDZ8P™¤¯ E»6YÐ-«9ûZÚoaB2-«”æb;Q"%éþþþ¼GHnÈG’´h×& ºÅcçP‹IÊš¬ŠŸóòeŒVÇ„ä3ùTœdÂ¥ä¤E»ö3 H²±Š6“”k•t_ër©MNÈX;!ù4¸`_«@r;ûûÙ”F¢Ò TV´kOÈìïèe1ô7ƒ+.$Uu’©7µ¥ ô9R·5’$N”|\ZìkHžNß~îÿ50VG.D¥A©&-Úµ¬ð&ôçôgz³.$µ•$o÷0ù—á>Éç…EHIL!i¡ê$ûÈø2C'Æ9‰ÀÀ±ÐZ´k×x ‚#$’ÚN’§T¡$I$¥ÅÚÉ"$¾ƒÒ°g˜¸|5æIÒ¢]›, w±XxæòõO\ c[IJ»ãAIâφÜÌ›¬C’ØdÛ¤;çH~¥E»OxmÒF.&‰NZD2{\RRÖ¿ ™~·¼÷Ó‰IâD 4«Eòt:¢í$:ãH²¢ÝG“k'{·hv$¥4–Á›ÅðÈ[,~C¬ïjÕ"¹í»®?„$ohÑî¢}×Éb虤ïjI9eìn],N4Ÿd²i ¿ÍGMö[ÚIeŒd,N´ÉŒpÔDÑi¿•! ’;2¢ƒ£ŒßAƉæ“Ló®á¨ñ¢Ó~+C{! ßXÖ É YQ’¦{#)/·}ºjL9 kŽjmo†øë÷E¸µI²Þ£!vPHÄ8Näý‘k½ÉÈA±(IQ#Í¡q5i†×—áÍøÏ/=åwe±µdœ;'Ï+8ÉšI9ö@s{É‘²@”$ λBKëÞbÙ$=syýåùyëXô‰ìËÉóÚt’Db¯âvÊßà'%If-ÜNÞ½ñ3¼.öÊŠ’¼½ËÍó NRÐé,ÏÕY0¹ãÝñÖ&ûØ&m£Çl!óË›¤Mæäy…')0瑚Œ 6'¨ßNNX;¹º¦^I;ù3i'#$só¼Â“ÜÆ@Ãô3¸ó ëÙ£}WtIû®îèñëõæÓóÿFHææy•@Rø)‡)tì^Ø P’\Àl ¯þcA¶ð$!ÎéHHä%›}¨_¨À»ûŸ dxeŠÙJ SáÍ‘wCI‰ÑŽ2t¯Ù÷®Û€Ù"^Qì7THÂU£)ðîž“°pð|öŠŒ…0Ö†Ð|'~!«Iàꈲ/~Š µHBÏÒ e²ïoI-’°R5v1©H ³¾(FôÁ,fž€’cõn÷*¹Ì þ;UI •’ð~ ‚¤¼ù¶IIðçÑ!Hªf’rHBW IåLRIঀ¤r&)‰$0JŽd£¶Õ„¼l‘ˆ&å>k’ê­òH~#/úFãG “TϹJ# ÚëÉ#yL^ šº®IõLRIÈÊa$øQšz•EŠºc’ÛÊpǃ¾;ztñF„$Ïë÷‡—ð5JRA“”H°©¤$¹¸Qšz•Å‹nf§Ó·¦±™yæËÑͼñex3¼_Zèiis _5É‚CIIrq£ü<Çf¦ñBãD—ŸðF² ¡1OˆOø%© s•IîL§$¹¸QŽä3 "5gòâo\,,²é—ßz\šPM²” z=[›ôãF9’?µÉˆÙ$Þˆ¿L7õˆwM'©¢s•K ¥ßNnãF9’C’—Õ4†Èo'Wפ$›æ{–ARE“”Le´ïŠ.9’Ç4/«qŒžç´ïŠ.ñ‚nÂ}WK“¬.””dV¢Õ‚A¤Üo•t®ÒI‚  ¼ëqÚÆ‚A¤šdi ô½kz¢Õ‚A¤I%ëH ;¢¦Ix”bIªi’{!)¥&‰öDRtF¡$u®{")8 ƒP’Ššä¾HŠ5KO@är@RU“Üɦeõ%i¶(íd“2H†jà!Ô>I6Ð,•õ­{&Ù°$½*ûÖ½“”8ÇM) rÿ$Qƒ`6ä0ª© $ÈL(å¥p#‰Cí/dxû?—ê¨9$©bO›;<‰Ýµâ ›F’i 0¿r…òTd3I–’˜œʃlIªº)·Ðߪ«–$rª»Z¥/?|µˆ$Q%ËlÞMÃ*jÉ*9 [àY‰ZG•½gÔ ƒDí$‰JÜ3j‡g%j)ITl: ÆLÌ&@í%‰vÃlÇ–“D¹0›2#Hm'‰2`BLB¸_I”gÙ÷Œz : ’Tá Jû0¢ƒ"Ùri’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùi’m‘&Ùý?±žJÁß»ÉIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Config-members.html0000644000175000001440000002036410400731256023171 00000000000000 gtkglextmm: Member List

Gdk::GL::Config Member List

This is the complete list of members for Gdk::GL::Config, including all inherited members.

Config(const int *attrib_list)Gdk::GL::Config [explicit, protected]
Config(const Glib::RefPtr< const Gdk::Screen > &screen, const int *attrib_list)Gdk::GL::Config [protected]
Config(ConfigMode mode)Gdk::GL::Config [explicit, protected]
Config(const Glib::RefPtr< const Gdk::Screen > &screen, ConfigMode mode)Gdk::GL::Config [protected]
create(const int *attrib_list)Gdk::GL::Config [static]
create(const Glib::RefPtr< const Gdk::Screen > &screen, const int *attrib_list)Gdk::GL::Config [static]
create(ConfigMode mode)Gdk::GL::Config [static]
create(const Glib::RefPtr< const Gdk::Screen > &screen, ConfigMode mode)Gdk::GL::Config [static]
get_attrib(int attribute, int &value) const Gdk::GL::Config
get_colormap()Gdk::GL::Config
get_colormap() const Gdk::GL::Config
get_depth() const Gdk::GL::Config
get_layer_plane() const Gdk::GL::Config
get_n_aux_buffers() const Gdk::GL::Config
get_n_sample_buffers() const Gdk::GL::Config
get_screen()Gdk::GL::Config
get_screen() const Gdk::GL::Config
get_visual()Gdk::GL::Config
get_visual() const Gdk::GL::Config
gobj()Gdk::GL::Config [inline]
gobj() const Gdk::GL::Config [inline]
gobj_copy()Gdk::GL::Config
has_accum_buffer() const Gdk::GL::Config
has_alpha() const Gdk::GL::Config
has_depth_buffer() const Gdk::GL::Config
has_stencil_buffer() const Gdk::GL::Config
is_double_buffered() const Gdk::GL::Config
is_rgba() const Gdk::GL::Config
is_stereo() const Gdk::GL::Config
wrap(GdkGLConfig *object, bool take_copy=false)Gdk::GL::Config [related]
~Config()Gdk::GL::Config [virtual]


Generated on Mon Feb 27 18:47:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/globals_enum.html0000644000175000001440000000563110400731256020004 00000000000000 gtkglextmm: Class Members


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/dir_000002.html0000644000175000001440000000434610400731256016716 00000000000000 gtkglextmm: gtkmm/ Directory Reference

gtkmm Directory Reference

gtkmm/

Directories

directory  gl

Generated on Mon Feb 27 18:47:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/namespaceGdk_1_1GL.html0000644000175000001440000017701410400731257020610 00000000000000 gtkglextmm: Gdk::GL Namespace Reference

Gdk::GL Namespace Reference


Classes

class  Config
class  Context
class  Drawable
class  Font
class  Pixmap
class  PixmapExtProxy
class  Window
class  WindowExtProxy

Enumerations

enum  ConfigMode {
  MODE_RGB = 0, MODE_RGBA = 0, MODE_INDEX = 1 << 0, MODE_SINGLE = 0,
  MODE_DOUBLE = 1 << 1, MODE_STEREO = 1 << 2, MODE_ALPHA = 1 << 3, MODE_DEPTH = 1 << 4,
  MODE_STENCIL = 1 << 5, MODE_ACCUM = 1 << 6, MODE_MULTISAMPLE = 1 << 7
}
enum  ConfigAttrib {
  USE_GL = 1, BUFFER_SIZE = 2, LEVEL = 3, RGBA = 4,
  DOUBLEBUFFER = 5, STEREO = 6, AUX_BUFFERS = 7, RED_SIZE = 8,
  GREEN_SIZE = 9, BLUE_SIZE = 10, ALPHA_SIZE = 11, DEPTH_SIZE = 12,
  STENCIL_SIZE = 13, ACCUM_RED_SIZE = 14, ACCUM_GREEN_SIZE = 15, ACCUM_BLUE_SIZE = 16,
  ACCUM_ALPHA_SIZE = 17, CONFIG_CAVEAT = 0x20, X_VISUAL_TYPE = 0x22, TRANSPARENT_TYPE = 0x23,
  TRANSPARENT_INDEX_VALUE = 0x24, TRANSPARENT_RED_VALUE = 0x25, TRANSPARENT_GREEN_VALUE = 0x26, TRANSPARENT_BLUE_VALUE = 0x27,
  TRANSPARENT_ALPHA_VALUE = 0x28, DRAWABLE_TYPE = 0x8010, RENDER_TYPE = 0x8011, X_RENDERABLE = 0x8012,
  FBCONFIG_ID = 0x8013, MAX_PBUFFER_WIDTH = 0x8016, MAX_PBUFFER_HEIGHT = 0x8017, MAX_PBUFFER_PIXELS = 0x8018,
  VISUAL_ID = 0x800B, SCREEN = 0x800C, SAMPLE_BUFFERS = 100000, SAMPLES = 100001
}
enum  ConfigCaveat { CONFIG_CAVEAT_DONT_CARE = 0xFFFFFFFF, CONFIG_CAVEAT_NONE = 0x8000, SLOW_CONFIG = 0x8001, NON_CONFORMANT_CONFIG = 0x800D }
enum  VisualType {
  VISUAL_TYPE_DONT_CARE = 0xFFFFFFFF, TRUE_COLOR = 0x8002, DIRECT_COLOR = 0x8003, PSEUDO_COLOR = 0x8004,
  STATIC_COLOR = 0x8005, GRAY_SCALE = 0x8006, STATIC_GRAY = 0x8007
}
enum  TransparentType { TRANSPARENT_NONE = 0x8000, TRANSPARENT_RGB = 0x8008, TRANSPARENT_INDEX = 0x8009 }
enum  DrawableTypeMask { WINDOW_BIT = 1 << 0, PIXMAP_BIT = 1 << 1, PBUFFER_BIT = 1 << 2 }
enum  RenderTypeMask { RGBA_BIT = 1 << 0, COLOR_INDEX_BIT = 1 << 1 }
enum  BufferMask {
  FRONT_LEFT_BUFFER_BIT = 1 << 0, FRONT_RIGHT_BUFFER_BIT = 1 << 1, BACK_LEFT_BUFFER_BIT = 1 << 2, BACK_RIGHT_BUFFER_BIT = 1 << 3,
  AUX_BUFFERS_BIT = 1 << 4, DEPTH_BUFFER_BIT = 1 << 5, STENCIL_BUFFER_BIT = 1 << 6, ACCUM_BUFFER_BIT = 1 << 7
}
enum  ConfigError {
  BAD_SCREEN = 1, BAD_ATTRIBUTE, NO_EXTENSION, BAD_VISUAL,
  BAD_CONTEXT, BAD_VALUE, BAD_ENUM
}
enum  RenderType { RGBA_TYPE = 0x8014, COLOR_INDEX_TYPE = 0x8015 }
enum  DrawableAttrib {
  PRESERVED_CONTENTS = 0x801B, LARGEST_PBUFFER = 0x801C, WIDTH = 0x801D, HEIGHT = 0x801E,
  EVENT_MASK = 0x801F
}
enum  PbufferAttrib { PBUFFER_PRESERVED_CONTENTS = 0x801B, PBUFFER_LARGEST_PBUFFER = 0x801C, PBUFFER_HEIGHT = 0x8040, PBUFFER_WIDTH = 0x8041 }
enum  EventMask { PBUFFER_CLOBBER_MASK = 1 << 27 }
enum  EventType { DAMAGED = 0x8020, SAVED = 0x8021 }
enum  DrawableType { WINDOW = 0x8022, PBUFFER = 0x8023 }

Functions

ConfigMode operator| (ConfigMode lhs, ConfigMode rhs)
ConfigMode operator & (ConfigMode lhs, ConfigMode rhs)
ConfigMode operator^ (ConfigMode lhs, ConfigMode rhs)
ConfigMode operator~ (ConfigMode flags)
ConfigModeoperator|= (ConfigMode &lhs, ConfigMode rhs)
ConfigModeoperator &= (ConfigMode &lhs, ConfigMode rhs)
ConfigModeoperator^= (ConfigMode &lhs, ConfigMode rhs)
bool init_check (int &argc, char **&argv)
bool init_check (int *argc, char ***argv)
void init (int &argc, char **&argv)
void init (int *argc, char ***argv)
PixmapExtProxy ext (const Glib::RefPtr< Gdk::Pixmap > &pixmap)
const PixmapExtProxy ext (const Glib::RefPtr< const Gdk::Pixmap > &pixmap)
bool query_extension ()
bool query_extension (const Glib::RefPtr< const Gdk::Display > &display)
bool query_version (int &major, int &minor)
bool query_version (const Glib::RefPtr< const Gdk::Display > &display, int &major, int &minor)
bool query_gl_extension (const char *extension)
bool query_gl_extension (const Glib::ustring &extension)
GdkGLProc get_proc_address (const char *proc_name)
GdkGLProc get_proc_address (const Glib::ustring &proc_name)
DrawableTypeMask operator| (DrawableTypeMask lhs, DrawableTypeMask rhs)
DrawableTypeMask operator & (DrawableTypeMask lhs, DrawableTypeMask rhs)
DrawableTypeMask operator^ (DrawableTypeMask lhs, DrawableTypeMask rhs)
DrawableTypeMask operator~ (DrawableTypeMask flags)
DrawableTypeMaskoperator|= (DrawableTypeMask &lhs, DrawableTypeMask rhs)
DrawableTypeMaskoperator &= (DrawableTypeMask &lhs, DrawableTypeMask rhs)
DrawableTypeMaskoperator^= (DrawableTypeMask &lhs, DrawableTypeMask rhs)
RenderTypeMask operator| (RenderTypeMask lhs, RenderTypeMask rhs)
RenderTypeMask operator & (RenderTypeMask lhs, RenderTypeMask rhs)
RenderTypeMask operator^ (RenderTypeMask lhs, RenderTypeMask rhs)
RenderTypeMask operator~ (RenderTypeMask flags)
RenderTypeMaskoperator|= (RenderTypeMask &lhs, RenderTypeMask rhs)
RenderTypeMaskoperator &= (RenderTypeMask &lhs, RenderTypeMask rhs)
RenderTypeMaskoperator^= (RenderTypeMask &lhs, RenderTypeMask rhs)
BufferMask operator| (BufferMask lhs, BufferMask rhs)
BufferMask operator & (BufferMask lhs, BufferMask rhs)
BufferMask operator^ (BufferMask lhs, BufferMask rhs)
BufferMask operator~ (BufferMask flags)
BufferMaskoperator|= (BufferMask &lhs, BufferMask rhs)
BufferMaskoperator &= (BufferMask &lhs, BufferMask rhs)
BufferMaskoperator^= (BufferMask &lhs, BufferMask rhs)
EventMask operator| (EventMask lhs, EventMask rhs)
EventMask operator & (EventMask lhs, EventMask rhs)
EventMask operator^ (EventMask lhs, EventMask rhs)
EventMask operator~ (EventMask flags)
EventMaskoperator|= (EventMask &lhs, EventMask rhs)
EventMaskoperator &= (EventMask &lhs, EventMask rhs)
EventMaskoperator^= (EventMask &lhs, EventMask rhs)
WindowExtProxy ext (const Glib::RefPtr< Gdk::Window > &window)
const WindowExtProxy ext (const Glib::RefPtr< const Gdk::Window > &window)

Variables

GDKMM_GL_VAR const int SUCCESS
GDKMM_GL_VAR const int ATTRIB_LIST_NONE
GDKMM_GL_VAR const int DONT_CARE
GDKMM_GL_VAR const int NONE


Function Documentation

const WindowExtProxy Gdk::GL::ext const Glib::RefPtr< const Gdk::Window > &  window  )  [inline]
 

OpenGL extension API wrapper. This is a Gdk::Window wrapper to invoke OpenGL extension function. See Gdk::GL::WindowExtProxy for available functions.

Parameters:
window A Gdk::Window.

WindowExtProxy Gdk::GL::ext const Glib::RefPtr< Gdk::Window > &  window  )  [inline]
 

OpenGL extension API wrapper. This is a Gdk::Window wrapper to invoke OpenGL extension function. See Gdk::GL::WindowExtProxy for available functions.

Here is a simple example:

 Glib::RefPtr<Gdk::Window> window = widget.get_window();
 Glib::RefPtr<Gdk::GL::Window> glwindow =
   Gdk::GL::ext(window).set_gl_capability(glconfig);
 std::cout << "OpenGL-capable? "
           << Gdk::GL::ext(window).is_gl_capable()
           << std::endl;

Parameters:
window A Gdk::Window.

const PixmapExtProxy Gdk::GL::ext const Glib::RefPtr< const Gdk::Pixmap > &  pixmap  )  [inline]
 

OpenGL extension API wrapper. This is a Gdk::Pixmap wrapper to invoke OpenGL extension function. See Gdk::GL::PixmapExtProxy for available functions.

Parameters:
pixmap A Gdk::Pixmap.

PixmapExtProxy Gdk::GL::ext const Glib::RefPtr< Gdk::Pixmap > &  pixmap  )  [inline]
 

OpenGL extension API wrapper. This is a Gdk::Pixmap wrapper to invoke OpenGL extension function. See Gdk::GL::PixmapExtProxy for available functions.

Here is a simple example:

 Glib::RefPtr<Gdk::Pixmap> pixmap =
   Gdk::Pixmap::create(0, width, height, glconfig->get_depth());
 Glib::RefPtr<Gdk::GL::Pixmap> glpixmap =
   Gdk::GL::ext(pixmap).set_gl_capability(glconfig);
 std::cout << "OpenGL-capable? "
           << Gdk::GL::ext(pixmap).is_gl_capable()
           << std::endl;

Parameters:
pixmap A Gdk::Pixmap.
Examples:
pixmap-mixed.cc, and pixmap.cc.

GdkGLProc Gdk::GL::get_proc_address const Glib::ustring &  proc_name  ) 
 

Returns the address of the OpenGL extension functions.

Parameters:
proc_name extension function name.
Returns:
the address of the extension function named by proc_name.

GdkGLProc Gdk::GL::get_proc_address const char *  proc_name  ) 
 

Returns the address of the OpenGL extension functions.

Parameters:
proc_name extension function name.
Returns:
the address of the extension function named by proc_name.

void Gdk::GL::init int *  argc,
char ***  argv
 

Initialize gdkglextmm library.

Call this function before using any other gdkglextmm functions in your applications. It will initialize everything needed to operate the library and parses some standard command line options. argc and argv are adjusted accordingly so your own code will never see those standard arguments.

This function will terminate your program if it was unable to initialize the library for some reason. If you want your program to fall back to a textual interface you want to call Gdk::GL::init_check() instead.

Parameters:
argc Address of the argc parameter of your main() function. Changed if any arguments were handled.
argv Address of the argv parameter of main(). Any parameters understood by Gdk::GL::init() are stripped before return.

void Gdk::GL::init int &  argc,
char **&  argv
 

Initialize gdkglextmm library.

Call this function before using any other gdkglextmm functions in your applications. It will initialize everything needed to operate the library and parses some standard command line options. argc and argv are adjusted accordingly so your own code will never see those standard arguments.

This function will terminate your program if it was unable to initialize the library for some reason. If you want your program to fall back to a textual interface you want to call Gdk::GL::init_check() instead.

Parameters:
argc Reference of the argc parameter of your main() function. Changed if any arguments were handled.
argv Reference of the argv parameter of main(). Any parameters understood by Gdk::GL::init() are stripped before return.

bool Gdk::GL::init_check int *  argc,
char ***  argv
 

Initialize gdkglextmm library.

This function does the same work as Gdk::GL::init() with only a single change: It does not terminate the program if the library can't be initialized. Instead it returns false on failure.

This way the application can fall back to some other means of communication with the user - for example a curses or command line interface.

Parameters:
argc Address of the argc parameter of your main() function. Changed if any arguments were handled.
argv Address of the argv parameter of main(). Any parameters understood by Gdk::GL::init() are stripped before return.
Returns:
true if the library has been successfully initialized, false otherwise.

bool Gdk::GL::init_check int &  argc,
char **&  argv
 

Initialize gdkglextmm library.

This function does the same work as Gdk::GL::init() with only a single change: It does not terminate the program if the library can't be initialized. Instead it returns false on failure.

This way the application can fall back to some other means of communication with the user - for example a curses or command line interface.

Parameters:
argc Reference of the argc parameter of your main() function. Changed if any arguments were handled.
argv Reference of the argv parameter of main(). Any parameters understood by Gdk::GL::init() are stripped before return.
Returns:
true if the library has been successfully initialized, false otherwise.

bool Gdk::GL::query_extension const Glib::RefPtr< const Gdk::Display > &  display  ) 
 

bool Gdk::GL::query_extension  ) 
 

Indicates whether the window system supports the OpenGL extension (GLX, WGL, etc.).

Returns:
true if the OpenGL is supported, false otherwise.

bool Gdk::GL::query_gl_extension const Glib::ustring &  extension  ) 
 

Determines whether a given OpenGL extension is supported.

There must be a valid current Gdk::GL::Drawable to call Gdk::GL::Query::gl_extension().

Gdk::GL::Query::gl_extension() returns information about OpenGL extensions only. This means that window system dependent extensions (for example, GLX extensions) are not reported by Gdk::GL::Query::gl_extension().

Parameters:
extension name of OpenGL extension.
Returns:
false if the OpenGL extension is supported, true if not supported.

bool Gdk::GL::query_gl_extension const char *  extension  ) 
 

Determines whether a given OpenGL extension is supported.

There must be a valid current Gdk::GL::Drawable to call Gdk::GL::Query::gl_extension().

Gdk::GL::Query::gl_extension() returns information about OpenGL extensions only. This means that window system dependent extensions (for example, GLX extensions) are not reported by Gdk::GL::Query::gl_extension().

Parameters:
extension name of OpenGL extension.
Returns:
false if the OpenGL extension is supported, true if not supported.

bool Gdk::GL::query_version const Glib::RefPtr< const Gdk::Display > &  display,
int &  major,
int &  minor
 

bool Gdk::GL::query_version int &  major,
int &  minor
 

Returns the version numbers of the OpenGL extension to the window system.

In the X Window System, it returns the GLX version.

In the Microsoft Windows, it returns the Windows version.

Parameters:
major returns the major version number of the OpenGL extension.
minor returns the minor version number of the OpenGL extension.
Returns:
false if it fails, true otherwise.
Examples:
font.cc, logo.cc, pixmap-mixed.cc, pixmap.cc, shapes.cc, simple-darea.cc, simple-mixed.cc, and simple.cc.


Variable Documentation

GDKMM_GL_VAR const int Gdk::GL::ATTRIB_LIST_NONE
 

GDKMM_GL_VAR const int Gdk::GL::DONT_CARE
 

GDKMM_GL_VAR const int Gdk::GL::NONE
 

GDKMM_GL_VAR const int Gdk::GL::SUCCESS
 


Generated on Mon Feb 27 18:47:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/examples.html0000644000175000001440000000417610400731256017156 00000000000000 gtkglextmm: Examples

gtkglextmm Examples

Here is a list of all examples:
Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/functions_func.html0000644000175000001440000002631710400731256020364 00000000000000 gtkglextmm: Class Members - Functions
a | c | d | g | h | i | m | p | s | u | w | ~

- a -

- c -

- d -

- g -

- h -

- i -

- m -

- p -

- s -

- u -

- w -

- ~ -


Generated on Mon Feb 27 18:47:49 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/hierarchy.html0000644000175000001440000000462510400731257017316 00000000000000 gtkglextmm: Hierarchical Index

gtkglextmm Class Hierarchy

Go to the graphical class hierarchy

This inheritance list is sorted roughly, but not completely, alphabetically:


Generated on Mon Feb 27 18:47:49 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/dir_000003.html0000644000175000001440000000651110400731256016713 00000000000000 gtkglextmm: gtkmm/gl/ Directory Reference

gl Directory Reference

gtkmm/gl/

Files

file  defs.h [code]
file  drawingarea.h [code]
file  init.h [code]
file  version.h [code]
file  widget.h [code]

Generated on Mon Feb 27 18:47:50 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/query_8h-source.html0000644000175000001440000001671010400731257020400 00000000000000 gtkglextmm: gdkmm/gl/query.h Source File

query.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gdkglextmm - C++ Wrapper for GdkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GDKMM_GL_QUERY_H
00021 #define _GDKMM_GL_QUERY_H
00022 
00023 #include <glibmm.h>
00024 
00025 #include <gdkmm/gl/defs.h>
00026 
00027 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00028 #include <gdkmm/display.h>
00029 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00030 
00031 #include <gdk/gdkgltypes.h>
00032 
00033 namespace Gdk
00034 {
00035   namespace GL
00036   {
00037 
00049     bool query_extension();
00050 
00051 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00052     bool query_extension(const Glib::RefPtr<const Gdk::Display>& display);
00053 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00054 
00065     bool query_version(int& major, int& minor);
00066 
00067 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00068     bool query_version(const Glib::RefPtr<const Gdk::Display>& display,
00069                        int& major, int& minor);
00070 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00071 
00085     bool query_gl_extension(const char* extension);
00086 
00100     bool query_gl_extension(const Glib::ustring& extension);
00101 
00107     GdkGLProc get_proc_address(const char* proc_name);
00108 
00114     GdkGLProc get_proc_address(const Glib::ustring& proc_name);
00115 
00116   } // namespace GL
00117 } // namespace Gdk
00118 
00119 #endif // _GDKMM_GL_QUERY_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/doxygen.css0000644000175000001440000001604510400731256016637 00000000000000BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV { font-family: Geneva, Arial, Helvetica, sans-serif; } BODY,TD { font-size: 90%; } H1 { text-align: center; font-size: 160%; } H2 { font-size: 120%; } H3 { font-size: 100%; } CAPTION { font-weight: bold } DIV.qindex { width: 100%; background-color: #eeeeff; border: 1px solid #b0b0b0; text-align: center; margin: 2px; padding: 2px; line-height: 140%; } DIV.nav { width: 100%; background-color: #eeeeff; border: 1px solid #b0b0b0; text-align: center; margin: 2px; padding: 2px; line-height: 140%; } DIV.navtab { background-color: #eeeeff; border: 1px solid #b0b0b0; text-align: center; margin: 2px; margin-right: 15px; padding: 2px; } TD.navtab { font-size: 70%; } A.qindex { text-decoration: none; font-weight: bold; color: #1A419D; } A.qindex:visited { text-decoration: none; font-weight: bold; color: #1A419D } A.qindex:hover { text-decoration: none; background-color: #ddddff; } A.qindexHL { text-decoration: none; font-weight: bold; background-color: #6666cc; color: #ffffff; border: 1px double #9295C2; } A.qindexHL:hover { text-decoration: none; background-color: #6666cc; color: #ffffff; } A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff } A.el { text-decoration: none; font-weight: bold } A.elRef { font-weight: bold } A.code:link { text-decoration: none; font-weight: normal; color: #0000FF} A.code:visited { text-decoration: none; font-weight: normal; color: #0000FF} A.codeRef:link { font-weight: normal; color: #0000FF} A.codeRef:visited { font-weight: normal; color: #0000FF} A:hover { text-decoration: none; background-color: #f2f2ff } DL.el { margin-left: -1cm } .fragment { font-family: Fixed, monospace; font-size: 95%; } PRE.fragment { border: 1px solid #CCCCCC; background-color: #f5f5f5; margin-top: 4px; margin-bottom: 4px; margin-left: 2px; margin-right: 8px; padding-left: 6px; padding-right: 6px; padding-top: 4px; padding-bottom: 4px; } DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } TD.md { background-color: #F4F4FB; font-weight: bold; } TD.mdPrefix { background-color: #F4F4FB; color: #606060; font-size: 80%; } TD.mdname1 { background-color: #F4F4FB; font-weight: bold; color: #602020; } TD.mdname { background-color: #F4F4FB; font-weight: bold; color: #602020; width: 600px; } DIV.groupHeader { margin-left: 16px; margin-top: 12px; margin-bottom: 6px; font-weight: bold; } DIV.groupText { margin-left: 16px; font-style: italic; font-size: 90% } BODY { background: white; color: black; margin-right: 20px; margin-left: 20px; } TD.indexkey { background-color: #eeeeff; font-weight: bold; padding-right : 10px; padding-top : 2px; padding-left : 10px; padding-bottom : 2px; margin-left : 0px; margin-right : 0px; margin-top : 2px; margin-bottom : 2px; border: 1px solid #CCCCCC; } TD.indexvalue { background-color: #eeeeff; font-style: italic; padding-right : 10px; padding-top : 2px; padding-left : 10px; padding-bottom : 2px; margin-left : 0px; margin-right : 0px; margin-top : 2px; margin-bottom : 2px; border: 1px solid #CCCCCC; } TR.memlist { background-color: #f0f0f0; } P.formulaDsp { text-align: center; } IMG.formulaDsp { } IMG.formulaInl { vertical-align: middle; } SPAN.keyword { color: #008000 } SPAN.keywordtype { color: #604020 } SPAN.keywordflow { color: #e08000 } SPAN.comment { color: #800000 } SPAN.preprocessor { color: #806020 } SPAN.stringliteral { color: #002080 } SPAN.charliteral { color: #008080 } .mdTable { border: 1px solid #868686; background-color: #F4F4FB; } .mdRow { padding: 8px 10px; } .mdescLeft { padding: 0px 8px 4px 8px; font-size: 80%; font-style: italic; background-color: #FAFAFA; border-top: 1px none #E0E0E0; border-right: 1px none #E0E0E0; border-bottom: 1px none #E0E0E0; border-left: 1px none #E0E0E0; margin: 0px; } .mdescRight { padding: 0px 8px 4px 8px; font-size: 80%; font-style: italic; background-color: #FAFAFA; border-top: 1px none #E0E0E0; border-right: 1px none #E0E0E0; border-bottom: 1px none #E0E0E0; border-left: 1px none #E0E0E0; margin: 0px; } .memItemLeft { padding: 1px 0px 0px 8px; margin: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #E0E0E0; border-right-color: #E0E0E0; border-bottom-color: #E0E0E0; border-left-color: #E0E0E0; border-top-style: solid; border-right-style: none; border-bottom-style: none; border-left-style: none; background-color: #FAFAFA; font-size: 80%; } .memItemRight { padding: 1px 8px 0px 8px; margin: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #E0E0E0; border-right-color: #E0E0E0; border-bottom-color: #E0E0E0; border-left-color: #E0E0E0; border-top-style: solid; border-right-style: none; border-bottom-style: none; border-left-style: none; background-color: #FAFAFA; font-size: 80%; } .memTemplItemLeft { padding: 1px 0px 0px 8px; margin: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #E0E0E0; border-right-color: #E0E0E0; border-bottom-color: #E0E0E0; border-left-color: #E0E0E0; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; background-color: #FAFAFA; font-size: 80%; } .memTemplItemRight { padding: 1px 8px 0px 8px; margin: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #E0E0E0; border-right-color: #E0E0E0; border-bottom-color: #E0E0E0; border-left-color: #E0E0E0; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; background-color: #FAFAFA; font-size: 80%; } .memTemplParams { padding: 1px 0px 0px 8px; margin: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: #E0E0E0; border-right-color: #E0E0E0; border-bottom-color: #E0E0E0; border-left-color: #E0E0E0; border-top-style: solid; border-right-style: none; border-bottom-style: none; border-left-style: none; color: #606060; background-color: #FAFAFA; font-size: 80%; } .search { color: #003399; font-weight: bold; } FORM.search { margin-bottom: 0px; margin-top: 0px; } INPUT.search { font-size: 75%; color: #000080; font-weight: normal; background-color: #eeeeff; } TD.tiny { font-size: 75%; } a { color: #252E78; } a:visited { color: #3D2185; } .dirtab { padding: 4px; border-collapse: collapse; border: 1px solid #b0b0b0; } TH.dirtab { background: #eeeeff; font-weight: bold; } HR { height: 1px; border: none; border-top: 1px solid black; } gtkglextmm-1.2.0/docs/reference/html/doxygen.png0000644000175000001440000000240110400731256016622 00000000000000‰PNG  IHDRd-ok>ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<]PLTEǾÏ"&©ÈÎï¶»ÖÓÚú“¢Þ ¬à¶Âõ‡§ÕÙêÉÊÎáâæ{ŽÔ¡ëˆ™× ²ø§¬¹ÀÀ±ÝÝÎùùéõõçëëåED9×ÖËhg]_X<@:#mhUÿÿÿÝÀ1tRNSÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÍvÿIDATxÚbC£: d#„„………h` @¡X",***LKˆ.–], ºX@t± €èb @ÑÅ€BµD„6–š%""´° € ˜% ˆ™B:H¢ˆ²Áf@• ˆRPy"K`\PbC(!II!h©…ëƒ(ñ„Ä!ꈬC„Ä…àl!0[X\J\$TMˆ(’>a$S„ Ù@ Ш@R.$‚¬LJBR¢‰AÌG1 ¬ Â(FȃÔPhhÁTÀ¢„%!`€&q°%u P ¹¢ ¬ € ¹CT$B¢à|‚ºW„¤Àl £!B`R$( …Ĉ‘’ž@AÅ%ĤÄ%@,(—ʂڱ%$ÁââRPmB U`1IˆYB  99€\1 yCCCÿf"[N 'Ü=TGÈ’øl8˜^Kû5<êSæRɤ”%î@@ à›Ê b1 qÅAXHˆ¸&ØB’R y n˜P„Ìã–4A €€j¹€€>Ü ˜ t!˜+(.ÈÅWQ±A2ÜÜMUÜ‚’’‚‚â `1 %`19€F< 3cZÄ`óe!\ˆ DÈ+. 83‹³Àä¸!lYYA -6‚EJŠ¢V €@©žXXX 4„å Ê@86Ð`RdB´€4I "Ý "–@xrÊŒ‚H€AÊ`—f ÉȰCŒ"XV0ɲ³C b@2…¬H ¬È“ p)!(ì‚ 0Ž4ˆ)(%RÁÎ ¶$€TÊ€¥Àþb‡b,säÐ@7À üѰ‚Òî?f¥Ö—\PIx!I´¦"”Ȉ’3¨ QY˜ÿt^^ÛØgv- }>WJOAV`$&#”¦8ùøø8€\FF ›SFJ$ÂÆ€ÐƊС䈉ÀÀ 4ª…Èäå -Á§‡ €H²…—ŸŸŸf ?ðâ5„ €k1Âd‰,ŒÃ ³ƒ“€.€"­F™ËË€àñ‚½ÁIÈ€"±Ù4ÉH gx|‚f©m)))9´. aMDƒ& ºX@t± €èb @ÑÅ€¢‹%DKˆ.–], ºX@t± €èb @€d`‚ɽSµOIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/query_8h__dep__incl.md50000644000175000001440000000004010400731257020743 0000000000000067d5d864f5d269c0fa69a55c9ddc3d16gtkglextmm-1.2.0/docs/reference/html/query_8h__dep__incl.map0000644000175000001440000000012310400731257021035 00000000000000base referer rect $gdkglmm_8h.html 185,8 270,32 rect $gtkglmm_8h.html 321,8 403,32 gtkglextmm-1.2.0/docs/reference/html/query_8h__dep__incl.png0000644000175000001440000000160610400731257021053 00000000000000‰PNG  IHDRœ'Éã!PLTEþÿÿo???¿¿¿___ßßߟŸŸÿÿÿÛ€!tRNS@æØfIDATX…í˜KoÚ@Çûø •Zd®-ŠÈ‘„Òp,¡±÷ØC"8"˾V–Šo5v–Ý[°ñ~ÊÎzÁâIˆ‚"Ïa³ÃçÇÌ>à{Wöá­8®Õ8§l5Î)[sÊöª8!9ÜŽ ±Ãy¬yF CyùË5§ƩqN§qœ—häá ” Õ™ó&Œº=‹=N£4” ¯ ›J-ëZ®¡å)$‡àÜKNÔ•â4Ž€SªáëGÀYD) 95–Æyh¼§B#|Î2˜(ý`‚H´Ö/õ+tçõ="sæ;¡L`È ‰O̳šþ%T"à°Ã‰") e,cO‘1õnÖÎ\¥ša÷ì`©\*À1ìk•†2ÔXo+0Ñ2Päá\ŒÎ¯§?td·ÏÚX>ºjÍ[Ê­Ýέ Cgi Wj’;È IA(^sŠ{gmL»zW• ˜AgÒQm÷ÞÅ€3éèµR²ã5]´,ˆtãL º“(Q|D¨BKà†øûT±~ûK_†£Oþk÷Ï,3Û˜ ™Á@Ù„*e˜q=8•€s¥' ºh¡ŠY.ŽO(R`í|™§q:2àðñ÷h‡diø|íÐC²Sb ³ZŸaÞp‡…‡d‡kÀÇI¢ãÐ|ž ²ã¬R8?ÇQvÖÐñì8>%dkÖIã”.cþÍ!;T;ÏÉNŒS©Á"';8#3Z;¤ŸÂ‘»-ûÎF‰ÖÎj­¸³«ãû NÉ&ë5gbíx¨«Ž38› N…è% [³'ÞÙp/Á’hgs ßÙÈ^šÈ1a0‹S|¢ïv6v-v¶GÄ”r-ÓX-4æ‹¶8¸çÙ;r„Y|gÈž3`ßÓ.åw6W†³äœÉºR£DáQ±ýÉÃbë<Âq¦‡ã@¡´¶Ï]õ×ópb…ýbcí<bº¢¤àD­•¹ÂUܨǖ¾}^“æópb…úBSãÔ8œ×²7úÛðýXsÊV㜲ýWLª;ù‘ÂIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2version_8h.html0000644000175000001440000003154310400731257023443 00000000000000 gtkglextmm: gtkmm/gl/version.h File Reference

version.h File Reference

#include <gtkmm/gl/defs.h>

Include dependency graph for version.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GTKGLEXTMM_MAJOR_VERSION   (1)
#define GTKGLEXTMM_MINOR_VERSION   (2)
#define GTKGLEXTMM_MICRO_VERSION   (0)
#define GTKGLEXTMM_INTERFACE_AGE   (0)
#define GTKGLEXTMM_BINARY_AGE   (0)
#define GTKGLEXTMM_CHECK_VERSION(major, minor, micro)

Variables

GTKMM_GL_VAR const int gtkglextmm_major_version
GTKMM_GL_VAR const int gtkglextmm_minor_version
GTKMM_GL_VAR const int gtkglextmm_micro_version
GTKMM_GL_VAR const int gtkglextmm_interface_age
GTKMM_GL_VAR const int gtkglextmm_binary_age


Define Documentation

#define GTKGLEXTMM_BINARY_AGE   (0)
 

#define GTKGLEXTMM_CHECK_VERSION major,
minor,
micro   ) 
 

Value:

(GTKGLEXTMM_MAJOR_VERSION > (major) ||                                         \
  (GTKGLEXTMM_MAJOR_VERSION == (major) && GTKGLEXTMM_MINOR_VERSION > (minor)) || \
  (GTKGLEXTMM_MAJOR_VERSION == (major) && GTKGLEXTMM_MINOR_VERSION == (minor) && \
   GTKGLEXTMM_MICRO_VERSION >= (micro)))

#define GTKGLEXTMM_INTERFACE_AGE   (0)
 

#define GTKGLEXTMM_MAJOR_VERSION   (1)
 

#define GTKGLEXTMM_MICRO_VERSION   (0)
 

#define GTKGLEXTMM_MINOR_VERSION   (2)
 


Variable Documentation

GTKMM_GL_VAR const int gtkglextmm_binary_age
 

GTKMM_GL_VAR const int gtkglextmm_interface_age
 

GTKMM_GL_VAR const int gtkglextmm_major_version
 

GTKMM_GL_VAR const int gtkglextmm_micro_version
 

GTKMM_GL_VAR const int gtkglextmm_minor_version
 


Generated on Mon Feb 27 18:47:35 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/drawable_8h__incl.md50000644000175000001440000000004010400731256020367 000000000000005cacfef7325c6e9caf9655855fef824bgtkglextmm-1.2.0/docs/reference/html/drawable_8h__incl.map0000644000175000001440000000026310400731256020466 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 584,230 704,254 rect $config_8h.html 394,56 525,80 rect $context_8h.html 206,217 342,241 rect $tokens_8h.html 393,205 526,229 gtkglextmm-1.2.0/docs/reference/html/drawable_8h__incl.png0000644000175000001440000001705210400731256020501 00000000000000‰PNG  IHDR’²dlæ>$PLTEþÿÿ§§§o???¿¿¿___ßßߟŸŸÿÿÿ«d¨tRNS@æØf´IDATxœíMs›X—ÇŸÏ1K׳-»;öÄËîòd¬¥Ó®Œ½šj'O"-»¦Úe-݉X>=®Šµš±-cØIFÜ/7÷¤ „àž+.>ÿª ¤#rœs_9ü Ú¡¿íúPŠ„$Û"$Ù!ɶI¶EH²-B’m’,¡_êH×I"ÉêÖøîTÙYl’,!$Ù!ɶI¶EH²-B’m‘DÒ²’‡‚Aæ7/þ I6I$ÙþŠ$›©’ß³¿$›)NòyrkŸNn-r:zêýÚ;·nNÈÜLƳÞepñìÈÕ#¡û)ɧ޹ø.’l’8É“ÑëÏö¬ÙAð0}œ:ÖùñàØþFž¦ÞÉh?¸ëþ1Ú¾¼Ðý6 èÄw‘d“ÄI^ë˘[g6 q,Ú¡}IžØ¡¯ÝCŽB{Ú·è^Âßr!É&‰“tHhÙ´žüa “<$?ÿÖuXŸ®k¹®Çöþ.$Ù$-}²K}2¸—H~“îÔ» Ÿé>!!6’l°¢zòŠ×“äT"9´Éý‚ד‰ëIºŒ$›©dÛuþnEòš°¶ë³{IÑ éëÕ#÷II6Sœäbmú\–d“E×ß«|I6I"ººU¾‹$›$œ i‹d;äïuj|I6Cþú¤é÷:HÒx ’¸rÙ| —ÜõY”’,¯»>‰’B’Eò͉$‹´×1&¶"Éù{¬¢ÜõY”’̓߉_Ì’Ìgèïú,Ê IæÈœ° IfË8H2[æD’™2$’Ì’Aíœ•äº êzHB’k2$’\“¡ ‘dZ¦‚D’) I&eÎÔÇš¤$ßÄ~d,ÃI* †æFV&ÓI* ‡GV&ãI*› 69²2µ€$õ%·¶Š/ˆæ¯‘4ˆd´Š8Soó÷7X/>\yé²¶uËFÜ+XuêÜBaña$YW×› ’¤¶O"I@ùe|-jñ ÉÆ’ôKF̨/$›I²,Æ•ÀHFƒH²‚¶ÇH$'…uÈ^,±‰4»Òx,³yä’'#‘Ì´È'àIv_.ÉŠc6E$ÿb/–ØD »3ñG ’ü„ŠHrÃçÒ$ëoTìN‘9Þì#Ͻð4¬Á€%·²‚Á¬wI†î€¥_í]Xl'¹X™ŠHR”Ý"û?‘ð·è}by±½÷œdl÷%’¬5~ÊIήÓ7GŽwbóÜ«#ž†u1>½¶-¶Ù'¿~béWCÛb;i‰Ž…{’ŒnOϳCŽ/3’áùñÈ“ì¾<’5g9Éy7p>‘©óàžSnÄÓË=ÛIJ-¶ùÊR°²ô«”$ÛIKÜŽmÑX`ܯͳvÿ›‘äù#bq’±ÝG²îp'I Ïqh=v·/—ôw–˜Õ¶Ø†•µ%Ò²Z¯,­¸Ê,ã“yöŸÏÀ›¾ú‘G×®8Iò2IÖŸ˜ZúäõÏêJ%ýpŸd›ÏÜ'‰ì“¥HF-ž<ûÓO‡”$¡Ñ5pÂnørIªXrÕ“CQÍúRI_²Ä¬¶Å6¢ž$ÙÎE)’lÓ-²O>ŒitíÞ÷ÏŽÕ=y‹—IRÉL}²íJÞK%}ȳZt㊶« Év†öf’òOŽ}rEÃ6m»’3z|ròѓ쾒ŠÖ@q’S[jY)31kjg™q×<ûEz1$U­Š£ëaÖÁÌĬ©eHæÙ/ÒK!©l T]ï쬃™‰YS;KÍ…äØ/Ò !©n Îj픤ÂÅlHr‡$•®÷F’»#©v½7’ÜIµë½ë_, É<©]ïíïý+®\Þ IÕ UØ3ú>-¦]TR‰ÁŽá(w@R=H%•®oø=>úIª©¨ù´g6Jí$@*2IÛ¯&£ÔMRuY)$ÉÎÍà»a5“T~Ñ+«&©:“ïP×K z)$é³»(E©•$Df?•Oè–0;!$Aʨ£$wJSQê$ QB¾Ò‚…™(5’iâûJ/ˆ¡‘(õ‘„I«¸Ì£«M–ç¹WéæêJI :G½ÙÎ’žA,äÒDèêVOr^•Žèê’PÍ@õHФAñUI¨°‡×èÞXõ?%-$¡\ÂnФ9N©…$Tq@\…W•³Ø¤ƒ$Ø` È@nâlý½¿W_!¹Tåå²ÛHI°b¸“´ª‚B[H‚¹$ÐH.’̘KÂL†W$¹Ü”’”O®5(Ÿ°‹$cÎò]#$™©‘´R9D‚A´Í¾}sõév„ ®`ƒ¹ Ã$Ñ1$YS;'ù=Ú¾ ’æ×Tã•S`µN'·9ñ¤®<¿+’ÓG;¸z <úB¬£á{o&çÁSo %ymIÀh$OF¯?_üÙ³fOêÊó»Úßf׃çƒëw}9·~{¦Np7z/%yE’;2ì†p Äú2&ÇÖKxæG$¿»œwƒqhOY¦ºiß²Å^;p‡II^[Ar¥¡F’ -›Ö“? d’‡"Elàxô…þ{ÿ¹ï°<²RjP$¹+ÓLŸìRŸ î%’_ÇÔ'ÏW>‘¼'±O¶Š$`pÕIòdtÅëIr*‘ÚÉz2ÊÄ|?ãõäI– IÙt²í:·"yMÈ•Üv|òìý+Öv•’¼¶$d5©“dfŠØ|¥;˜H²PC’í(ºf¤ˆÍW IB®gÒI23El¾âÙ„ h!Éu­“¬)$¹#Û¾\+ I.#›®Hr]f6]“W$Éd,I)˜ I¦6T°p¹+—Û@Ò’„,$™’ÌPÇ´¼LH2CH2-SIªMפIH2Û6’”¢€Iš^‘dŽmãœIæØF’’Œ&i\xE’9¶‘¤$£I^!I‚–8IÓœIæÙF’+™MÒ´ðŠ$smæ”H2ß¶YN‰$óm#ÉX %¡atÞ¬ðŠ$3$¥µ7GH2CKg4)¾"É ­R¼„IfÈÏø«ñB’’ø™SU"É Éž˜ú-UN IfÈÏù›”½1I6Äx‚^2¾"I£Œ'ý0Ie<QùCC¢ ’4ÊxºïÁ(úâ!0HÒ(ãk½HŸ?†ý$’4ÊøúxÀ¢OI6Áxô ¬ÊÙ‰Ÿ²3 }SØ($™”_Ð(ÙÎø¶#Br#9þæË]ÇS·ŸPìD[¬0°·²¾ºÇGüñ× ×"YäŽ\%IVŸ­û*çÊ€ÕH’›ë´RÆ«OZF_3馻&’,ãE›×š,Ù<’ål2^s΋#4 $ ÉJåP–@¡ñ•ìF™˜¸®Q$Ë(0®¢•ÂHšs¬PƒHnãIk$U¸’‰é³ÁHn[ÛEÄ\ªVØ™˜Ò¾!$·¬Ù²«[Úã[BÒ߶ܲ§‚·4R$ó@‘,*Tm7S)-{Ã: \;'Y©‰’þŠâ%“~I®T²,ª5QR+ATÇB|Ö¤rÕdE_JW?ʽg`Ëu·$+ÇDÙ¸úÙ #Ÿ1GrsùÖ¨Û$ã꙼µƒ$—ÚD²VEºã®†•l‰f+’Œµ¡$êµ5Wƺ}ÔO# ’….Y·Ï°4PÞñ©™×äÑO²~ßo¹6C}q™mY†d¾³(èÃÇÆ!@Bº;°´’¬?,)õh¤Pf!«šr‚Zd“*2.¼‚„ªèH¯ •ºÎ$èT…0ž°ºõ•>AãÂ+Éôõ¬tˆ;£ç*0ë¥Þë$9-·²}]²’©BP;Ä-ž ™´ARgxªøɬ;”O·v$!™˜©P=žÆ'*Ò… BRcxm*I©S¦~\´“Õÿ@’‚¤ô(#Ñ´ « $5†×†’\Äk~æå!‘ œ’!{±Äf-%«ôI¦µÊèÚ2S'ÓÏ‹HþÅ^,ò×Ü&[’Ô^›I’·-¡òúÙ»ˆä!{±ÈahɬìêKÍî£Ì\Ë] $ù½1`wç$¯>9³Þ'Ç›}”2!ƒçÉ­mƒÞEpõЃ„nžzçäf2&ü¡ŒÔ^%’ëÙÕ— »3ñ‡’Õù%å::'9;¸vNß9Þ‰-eB^ŒOF¯mk1íçƒëwôàóåõåÃÔ!OS‹IImN)ˆdfWŸõ.ÉÐe{HïÂbqGÊ·žARA9 yyÉÄr¯´m´nDü'I/YÇ¡lîöe’ßY‚dÛúÎ^¢ƒ®ë°C?ÿÖeÐ’™ÙÕOFûä÷ÑOt½-w¤|ë $ýœè E’ÿÖÒ'/¨OzVW"ùpŸüF„OÒƒôÃüPwêm"©+¼ "™™œ/ÈWÂöð˜b±ÿ£”o’äÿíe©I’šêÉ¡¨'g}©$.Y‚dÛº$Q=9ë³z’º_xã $u9¥ ’™]Ýá•§Øc[,îHYºõûäã •C2j ÅmW"ç´>$¼ízH¾ßó¶+yO7üm»:"™ã“ŸI¼gé“ZHŠÂÕ]#Ü'§vv³oc‚äÛLàw©‹’ŠëÉŒìêq=)H²¸³ÐF2»?©˜dì‹â5Ž®‡Y_Ú˜ ¹è; cŽ+‰«~­í*µ½]Ñv$YÜ‘ò­’œÌSK)>±—>ÛLRGúË]«#¢<2Fb¤‚²R> Ø‹Ç7YZ}Ü[{’‡Ôâ!Wwöú—K$H^;AI>p¾3Q "%‚G*îlGòwí÷mHf¨€ä¢KI¾‰õ1Ú²ÑÒÕÇ×]0…™ a‚{.‰|a–©¸³ÉcíŽäwöxßå}q;$´“>™–($³Á’Œ#L]KdÜÉ#9Îìá<|øÒ¿œ½›Mží_í³ÉíS0èõ'·ôPØ?Ø·?ߟõÏ<ºuû— Šp¼ $Ÿí³2$Y3òtrk‘ÓÀàcdÈ¢à É飈AÑù¤{õ8ý¸è÷.äGÈåYWâ“™9îá†Eƒ^x¤Â¹ááèbþîÕÁ<|ÛëŸÞ~˜Ý-îæWo?t{ýÇ+z(ìÿì¾?><>¤Û^ÿèãMøtsqëNèË<½þ|ñg6Á>€ÁÇ2ìolä"ðØfÀú|lPÔ¡½¾Á_ºÜ'—%É^ÖEÒ_&r^µx¶WIçõd>tïæ³9›^ÏûºswþÔ»vû½þS û½‰Ûÿ-üuþvÂvö^ï΢!Ù-E’ö˜¾ŒÉ±ufóŽœ#Zd—¬—xl3ŽEi mÚÿò^D×å#äÀI2ÉmœdóJ•¤«CWLÒë¹ó9…2ý™ä=}ñz}¶™„}÷ñ—qïúçŸÿmû¬Rí³uÓ°I‡„–MëÉ2I6uHIŠ:1pÄ!jkæDõäF’n}I¶W‰¢ÈnÆ•±·Nd øä5õɰÿZ"ù‡Ë}’m¨OºÞk¯÷?áÎÙVø¤ëöJ“d>Ù¥>ÜK$¿Ž¹O>±Í9å>Iˆýe¿$Iñ"F¬êün¢œóåõä'QO>XÉ÷íê~7.¯'ÝþëóÞàøÐb[ZOžòzòª,ɓѯ'É©Drh³‘‹àÑŽëIÑ#¦õäO¬ž\ìˆ$S9dÙÁÉ'–ô– In¥Œ~ðBŠ8òèÊS‡1’ßXf[F’'½e*"if5©™$|)Eýʈäw×a$/YMF’'ócB’[)Ë5= •“ é+'É*KGÔ“%Hš\µ“ÔTNœ$mñ,ÉÅ8öI$YM™E_U2E½Ñ¾ m–ÙÖ"ãR$ ®úIêA)F®Ý˃Ðu#¢íê ÉŠÊA¦ej´.Ù¶ˆ¤¡Áu$u L‘Lg¶E’Û)ÿ+ðÒJ §2Û45¸î†$<Êês!H2C¸ QV'ijpÝIh”HR© EýÕeU&ilpÝI¥Oû]Se’ƺä.IBºeÕ•ËæºäNIjO//s]rÇ$A#lì’»& ÜðÙVͺ®¶Ó®Iªzp³™ì’ Ù –&»d#H6…e#N¢²šA²,Ž­Í!­Š:“R2:¶6‰$מ¼^UÞ‘%•çjzlmÉX~ZJy[Kr %}¸ªô,ƒ”ù$¹üš4ÍÙ’L~õPÛm"ÉTÍ3Û²m$‹ò3ç¥ ÛG’lí˜íÙJ’Û=+¸% [Jr‹ Û°Òêj+IåÙø '¢G-&I6ÂlÖ4wMµ›$)jþlS™ Ö“Ì#Ö2Ž/‚dµÖqÔ™·n§JŽË¶ã‹!É´œ)k#ÇE²åB’m’l‹d[„$Û"$ÙA’lÎÐÀK’l‹d[„$Û"$Ù!ɶ”$vC4 I¶E $1¼j’l‹d[K+J}B’m,I ¯ú„$Û"$Ù“ÄŠR›d[Lë6!ɶš$†W]B’m4I ¯ºNR“d[Në&!ɶž$†W=‚'‰N©GH²-Ò@ëi IÝ^ZH¶*?\S¥ƒd…4Ȩ­¥‰$†Wpé ÙÖ¬TÍ’Ž¶ë®˜õ2¤äÎ}ö2¤Ë'1¼BKS‹I‚KÉ:ÏIB••’ åô—ÚÒrªÆJIŠòïµmLœG‹¥‰$ñ‘$°t‘T0#‚$ ¥d}H²PH²-B’m’l‹ô“´ÏJ .=ùíYW~·ú,’,ÔH’óÉE÷œm>Foï‘dIí‚$I‘ü.6In—O[@eI3É«O‹®7ÁSï×Þ¹uópú@†lÏÃ|Ò}vÖÑѤ{39Ÿõ. }KIÞ<$, r¤—äìàš“<ørù0}œ:ÖùñàØþF÷œÛùc´oýH}òa꜌öÙ[J’~@²€Ê“^’ónÀIÚÓ%æX$´Cû’í )I‡Y6}µç‚|eo)IzD²€Ê“^’ 'IG"yÈöP’뺫'ÿ¹ïÐÊ’½eõ$’,¥øä×qD’x$à$ï õÉÏì-’,-Ýõä0ª'ß­Hí˜$«')Éà~ד $YV;k»®H^Aòuwè^rŸ<{ÿêÙ½$ômh#É’ÒKrJݯžTž´G×ÃzPyÒ]ïìšP9¹¶I¶EH²-B’m’l‹ô‘Ä5è°ÒF,$Ù!ɶI¶EH²-úuŸ‘PŒvhIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/config_8h.html0000644000175000001440000001775010400731256017206 00000000000000 gtkglextmm: gdkmm/gl/config.h File Reference

config.h File Reference

#include <glibmm.h>
#include <gdkmm/gl/defs.h>
#include <gdkmm/screen.h>
#include <gdkmm/visual.h>
#include <gdkmm/colormap.h>

Include dependency graph for config.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL
namespace  Glib

Classes

class  Gdk::GL::Config

Enumerations

enum  Gdk::GL::ConfigMode {
  Gdk::GL::MODE_RGB = 0, Gdk::GL::MODE_RGBA = 0, Gdk::GL::MODE_INDEX = 1 << 0, Gdk::GL::MODE_SINGLE = 0,
  Gdk::GL::MODE_DOUBLE = 1 << 1, Gdk::GL::MODE_STEREO = 1 << 2, Gdk::GL::MODE_ALPHA = 1 << 3, Gdk::GL::MODE_DEPTH = 1 << 4,
  Gdk::GL::MODE_STENCIL = 1 << 5, Gdk::GL::MODE_ACCUM = 1 << 6, Gdk::GL::MODE_MULTISAMPLE = 1 << 7
}

Functions

ConfigMode Gdk::GL::operator| (ConfigMode lhs, ConfigMode rhs)
ConfigMode Gdk::GL::operator & (ConfigMode lhs, ConfigMode rhs)
ConfigMode Gdk::GL::operator^ (ConfigMode lhs, ConfigMode rhs)
ConfigMode Gdk::GL::operator~ (ConfigMode flags)
ConfigModeGdk::GL::operator|= (ConfigMode &lhs, ConfigMode rhs)
ConfigModeGdk::GL::operator &= (ConfigMode &lhs, ConfigMode rhs)
ConfigModeGdk::GL::operator^= (ConfigMode &lhs, ConfigMode rhs)


Generated on Mon Feb 27 18:47:00 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/drawable_8h__dep__incl.md50000644000175000001440000000004010400731256021356 00000000000000c2eb446270dcbf7a78c2a50d371eca6agtkglextmm-1.2.0/docs/reference/html/drawable_8h__dep__incl.map0000644000175000001440000000053610400731256021460 00000000000000base referer rect $gdkglmm_8h.html 637,157 722,181 rect $context_8h.html 206,58 342,82 rect $pixmap_8h.html 205,257 344,281 rect $window_8h.html 205,157 344,181 rect $gtkglmm_8h.html 812,57 894,81 rect $widget_8h.html 405,8 536,32 rect $drawingarea_8h.html 598,8 761,32 rect $pixmapext_8h.html 393,306 548,330 rect $windowext_8h.html 392,157 549,181 gtkglextmm-1.2.0/docs/reference/html/drawable_8h__dep__incl.png0000644000175000001440000001470310400731256021470 00000000000000‰PNG  IHDR‡R³¯·*PLTEþÿÿ§§§oooÃÃÃo???¿¿¿___ßßߟŸŸÿÿÿ÷pN€tRNS@æØfGIDATxœíËrã8–†ûAæQf©eiY»­eNxÜÒÒ™îi3%gØÒ²¢#ÒÒ•–Š\v£ÓZLDÉ’i2¢².ñ. €¤R$Å Lü-V‚4.çã@<üP’]ÿúSÙ5P*,±R+ ±R+ ±R+ *AtÌ¢²’ (œÖSªR çpĦtLN?G‘”‚XºÄ HA¬€Ä ˆÄZònšRÃ" Ú!ëŒÜ´‘¿/°_ÛýN­¥€Ÿ?¹GÑ XXÕ„x6òï›÷wüaêµ¶i-Ä„üÉ=«˜|Äxí!a#76oÃÿ÷n¿†XK1!ÿðž()ˆñr!næOó kõ·×Þ‡^Çv‡0ulÙÃíøkÕ»µ`‚¾1‡½.´éãÌËÁ “!&æs6ž»ÛÞõ[Gë8ÿ÷vPA0Á~î‚Á xœw‚ÒPõ ^ŽÏtè)—ãÙòeiØøw;©c n–Ó¥a]]œ[è°Ïãì‰Ã¦îæ`ÕŽCLÌælL[N§ù¥Ñl45¸×@ÇÄñ´µ¹»„@T^=ˆ] A#ÏPgïw£ÃÔ±µÑ›«ö—Së,-|8Çudzi-Yõ£ùÜ Ø@ûÕú`\j6܇އ cvÝ˾nd bX.Dd,ÞžF~C©cë ¬ß½{÷O šÙB ¦iºc¢“Áó‡9Ø~?л?üðg íEÇı4Ó´þqb ¤ÒðêAt=ÅÒ.#ØS¾‚M{ÍÙõ<Ñv"X…˜˜?ÌBtZŽþw믆ˆŽ‡ "¬Ÿþ ÄDùcâyuCù¥Ž­;°.ç¶7&Ü1q²éâ蘘?¡ËµÚúS£ÙÇÑñ0B„câÝóÊX\ÕƒˆfƒgÐMþ—0ràÙc€˜Ù»Ùéȼ{{vô°MÎNãóG³S ¬æ—}§ãt0DtŠòA„çþ®©%ö¦¤(ÎurµH:ˆƒ ‰È<ݳlƒ¶ 7%EdвA >‘"D¤â ³S” â"Q Þ4 ‚ 3ÿ­dƒÏ‰ iQàŽ}Ö9ª\Aˆö¦Aå}rQû.õ£«Gˆ´žµ%-"î5žCqoÙCônŒú§Áq¤¯à™f¿èþ˜è¸‡câhLŒ¶œ­Ÿ”¬cÅ-õãÝ.õ„O¦p„š®?î!Þ<;Â;;E»Î./¿õ·7Qá=efÂüCŠòÎy7Þ-<ÉIGr݈À©Râ™FŠ<*×= i0ºç¼ïv0Õ“Žäã‰õÄÐËÉg©Â¥Á(Ö]ŒEÝíÅ‚§VHIg) %Á(ĺF„ú36n K€Q(ˆ»ð"A”£H÷.Ä‚(:Æ 3‡HÔE4ˆbc¬¥—9Dâ|¢À3¶)DÒF1t—é pÊ…Řqƒ%Äcf.¶‚BiMDŒYÏO† ÎER[ bÖ¦±ƒ˜Ì°x JzËÙ¢QÌ‹ú0&Èô&G-èCŒCE;°=}“ 1½É³Ebœ%¨[ˆÅE ˜§ ”!ƺý¾Š…Á X:Äø“Á¬‰½K¿Ô(=ÊbìyÌÄ4Œœ¦dйZEb¼²é¤Xõ|åR,â"a!†Ñ@Ãlø*“b¾›¤T &.¥±š,°›ƒ”H±,ˆÇÖ³Y›áD²<ŠùUâÑõlfay5PÚ•F SÜTbõ‰¥¡Ëº^Ìi­Ó¬£1´S;—D‘;ÄTídh ¶f.'ngˆé–³YÎûJ)®˜³ÐœÓ-…²‘9˜˜»+ ±V«3¿Zæ‘»+Rƒ8_;A,·è§6óОþ.i¿AäA¶‚s—wâ/.¯_RC\p SÉÜûS†›.¯fZˆy>ª“C< ÌÙs7‰„8­gúhíÌúw««ùFÿ ·çO¯ö°×Ÿ?Á]NÿôDÿòÜî·-¸5ûw[Ho²…7zÛ‡È)†3/áëŠ4 Îλë?®÷½~»ñÔø´šn§ë—ÁûO­^ÿew9ýwV»qÝl4pÛëŸß<:¯Ý'sô òŠª® îE@4Îæë‘9]¯Ö°£´zÖ'Ç\›ë×Þ½Ùïõ_{p—ÓïÍÍþÏ·õû9JìM«7Õ`lzÿˆúê‹€ù\ì˵?Í_Ñê™ë5ä±ü ñþX½>Ú̾ùò_“Þý»wÿ¶}4€öpИè{bâ'ô¨*ˆ{…<ñz¢Ó?# ~6±'¢ ôDÓ:³zÿçüÏm]O4Í 1ÛÆ"7R>=Ïþ” ÄÙù­;&Î4â£ùþtºG‰fÿ¬Ó6ÚÂ1ñ ‰ƒÄü/’î‘?4W™Åbþ²¢f§æbÓijӦ‰g§æÌ~¯Ym«¶xv:Ÿl{ëÄâknG“Džý)ˆÓ^øBÐÕOè‚0­¨Ž"´ˆÁ©  v§Í(.ï?ý^Ľ˜¼¬Ë±?¥Ô.{Q\^Á¹}-8­&¸â±ÀiÉòÎ>KÕÓ΀ Š_úíAܵ˜õú?ˆÚ ;DïŸìXrëO¿=ˆÑ-fÁ’Ä"._)ˆžWþ²ŠWJ"5-˜ŽP;¥(bA‡¤ ×2ÔC p¹•Ú²HrêOÄ#Gªˆ…ž~0"×o9 ›û©>ý©‚˜^yê&þ3ôc» ×›(#Éo¢øïa¤¯%þ´X,¢,"OdJ‘šo¤ë48¸¢™¾E×5Ž_Ù ÿÚƒ µžQdZ”NùBDv¯Ô°É8¤è/–0€èG·as×™úx4HÑ_-gÑ«“a±ÆüíÕCŽ¢y`Ƚî׊Ë,juö“Ńø.‚‡[aô] oC¿ñI19ÙÃØÅ„èW‹~ãù=#à(v FýzQ78û5=Bû°×L]±p{C¤M‘Ó¬;íÊbxâ?AX}ðk×hº§t»>ƒü«^v%o+ˆûFS59w†n¡u†Ëˆ2f‘êµ †Àm£ri¸8‡`Rü*§ Œ¨‚YEæ¡‘+—/™R›ŠÐþhX¦¢™”MÅ2ì¾)ø%Šå~AétæKœ ‚•G“ã¬H%ó½âÚ጑otÆ(âÁj:§/ˆ•Lãž/§ûÜy|]/R³´ë°–”.\˜A dÕ€ˆ¦©AŒ… Òš+)ˆ‡Jª+²;Ù«Hm¾Ëb°«¨ D÷‚i?K.‘Úaž¬™G”âÖ5aÄ"Ö ˆSÕ6¬PF¡²,2[šk±"@ܶj:ÞÐñÚïAŒXÿI€x,sW7“‡vs¢]© zÙÒý@¯ßÐm½ã .¢î'&@<–¹+# ñøÅîþŒ½Å;Êk?|!næOúÕüIWã×Þ‡^G{œ]ÍÀ n Û½u´ŽsaÁD²/àG{žýÚ븹X1¯PX¹3ߘÃsýq=o¥8én[.öXĪwkX«X‰±…K¶q% DX¢_Kü')>X˜Q !f6nc/Çg_º¿ö´Õ©=[¾, ­Ó6õ¯«Ó{h篫F³Ñ´-˜ˆÚœÞw.—Ó¥lx¤›‹ó¶Ž•;óÏã“Í]{â®'íKÿ~]PWç†u©ÃJŒ-\òWB„•ðjI5˜!¾»@{˜€¦ÖÖaŸcCŽîèwë– í|·´>—Ðκƒrôe¿¹jiÀ~ xæ­Å¨ž;sœÛŸ:â®”ƒ¨¬IB€Š¸Kcf J@ˆ¨ä1®„+áæû«ÆøB4€£épØú~HÚ¹[ íÜÝ~ø³L€‚ƒËúÝ»w€ÅJôÄ<™ÿ-w·uoLÌâ‰^-p»P< ¦'¨aˆÀ‡X«Dä,-è,ö3açß&ØY^'àïÖ_ lgtr–M{5ÐIˆ1ßk°rg;kûçaâñÇ@vuÀíBEt¡'ZZ+ÂwãFôÂâ=&ð°®;ôÕéȰ_tðÔhö±ýak;]ÎÁ„„¸Õƒ”•;s8&¾}Dcâ$ñHàÝ} ð±¨<&®ú°ˆÛD@ñ9!¾wÈõǽïñìΞƒ:NÛY÷&`ÿg!Æ^ìçÊ|dÞ=‚Gý¬e„ &\ì“yÁÙ)¸vg§{ˆŽ‚ÈB !®1ÜÆ^D®•€¥n§k`â²[ÑÌwJ³v8–("¦Xx9þ%ê@Ø5R嘱hæ;%C ö~wêS ¬Š@ܘ§‘G¦zª!Í|§Dˆ†þ4e_D\%*±¨Ê¿‹A0Ä‹=žAI â¡êºcX#¯SJAÄ*âîe¯L1³Ê†ˆ[¸^W3+n…ÄZˆ`Æû‚òC,üDïµøÍ™Óžƒ5³E­^ðáa:b ‘ò;} yèàV‰/†„$Dñc…^‹ ÕF„rA,"vºz0¥„jÄI*ˆøùšÞQÄkáÖä†@2ˆþm(¾½±¯N¦ð+=䂸7ý§bKôèO å†@:ˆdž<(îg Äש8”›M²A$ÅÜœäE„ÿà¶xå†È8HXà:pá%1+­ˆä†ˆÄh„ Íê ‹*,ù!ÒŽ2ù`á놠ݲhŒ¢°.®¶¹~¥)ú¡TZ× AÅ be™â£ »!¨"D¤ÔÏ˧ZaU!º"ß¶ i9}‰B¨ –­¨—œR× {!ÏZ} È9»ìz‘‚˜ Ãµo1¥ ÆjǤÔj¤‚§ý¸© J*òâ^øf(ˆQ ^ ß ñP¡+á{Sñ@+ ¢lŠXèVåRä*©ø­P E¯Æ‰ß q§¸[†â·BAô{¿Iü!QAô_CA”DI7¿uˆ´)ùÞ°g¢‚xì(Qx~FA\iRÅVšGmDoÒ7 1Ýã©b·ÁSˆ"wEiŸ0V……˜þ©|QPˆYéVÅ„˜é©|QDˆ_·± a±…(ÞiœùÕ7Q4ˆ9Þ2TÅ‚˜ë5Q$ä|ËP Äê[˜ûEQaZ ÆéO ¼ë« бÐëÚ ¢ ¾q¯ –oƒÂAÊn@U"…¸ b¹ý)•Ð% b™)EŸQAiF @HA%¹"ÅP "("Õ0^ "o+PŽÔ¯ "ñµõpÒ "Çþ”ÅwD,^f`ÑRAÄâcV­Q±8ô§ì¾W#À þqq€Èüdfùå(ÑSC0þh”‚è‹£0ÿ|›‚苲%vÜ8|¸IA܉ª»xÎÇçã{ âN4!º=(¯Ï`*ˆ;Q4¥Ïïx â^ÔÜf‘ös´ÊãWT~q‚H˼*ˆ¤è¸â"õwehIA$´0i(ýǨ՛cY¹Å ¢C%ËuF*y¥“ ëßòAä,‘‚ÈP b²DB "C)ˆÉR ‘5-¸Ï¢ËÛþíþp1R"@ܶ¢‡7 sø· â‰ñ ýØÖ[Üß–QŠk}Î7ó'ýjþ¤«ñkïC¯£=ήf`·†mì×ÞжÎõG7ùqÞA)âãÌËEAŒ_ˆ—ã³/Ý_{ÚêÔž-_–†Öi›ú×Õé=„øÕžŽ¯mks×u“gK¥@ˆðn. b¤øBìíašZ[‡ptG¿[·lñÎ6À9œß|ê¸É:L„)"ü‡›‹‚)¾ àh:¿’„Ø€iü[w“ÿqb 4&*ˆ‰âï‰-è‰ö3ñ· öÄ׉ç‰?]ˆÏÀ÷D1Y¼ÇÄÁq¤¯NG†ý¢»câÛÇ.N?¯ð˜¸-¢WeÍN×÷ïžN;;}ÿ‰=±}ýJqtñˆøB¼ZÔÎ¥ŽjWkÂ) b¤xw§¿Dí„Ýi(ˆ¹Å¹;5O#÷¦¨¿Ä‹§…SÄH©»I’crª &JA HAd(1Ir ‰ b¢Ä€Jó©­'IzSné?ÆÏÏ=D&rãç‡S9E%ÄWˆ’ ‰²A\_¨QÙhÁ¢,½©t%Ä?вô¦òADAø¸ˆ4Ž(!Dô D.£¢4Ž(!Dl\DÖbM±.Qo*-DÆ~ûlyQ^ˆ ¦Fæ8Ž–¤…ȶ»ã¢£¨ä…ÈtXTy‰9®(ÐÌÙQä¹BKARCdF‘ë ¯â’"+Šr1”"Š’ ‰ÒCdBq!Cù!² (à @d\2†U€ˆ0RyªÕ×’1¬DJÏ—³ÉƒDÖ¹q‚È:7RYçÆA "ëÜ8HAd)ˆ¬sã ÊA´Ð›¨#ô£ù›xíí(ˆ¥( âïèGs7«¸ nÄÒ•±~4w+CA,]®Ù·ÆªwkX«ºØÆÁí! (§ÙCíñhË›í NÞö®JÙ˜Ãsýq=o¡Èr27‰T!ˆ(~ñÕŹa]ê8tñ7ÞN.Çgº¶h§ |~¸ÀÉN§©£”Ïã“Í]{"L%r“I‚ˆ¢¦Þ‚¥13€krÜè] éÚF×ôe_×nN%ÂbõSC4€‚X¦°ÙQüb²˜žßP¸c]{ƒi¶¥•áBÜ~?ÐaŠaš&hëÞ˜¨ –©'v¡'ZZ‹€ø`Oü ñ…;Öµ;àŽ‰?>\¸ár[mL|ûˆÆÄ‰‚X²‚³SpM@làpÇZÏEµmû7œ¼š_öQÊȼ{úYËPK6»¿ø@^¸ãÃÕš¸õ±ùÝi#j§îXA\^w:Õ£vzáŽG;SÈÜ$R• Š™)ˆ¬sã ‘un¤ ²ÎƒDÖ¹qPE R}Ü,»9YU ˆß¸Ä HA¬€Ä HA¬€þõoÄkÇÙ_åIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/font_8h-source.html0000644000175000001440000001634710400731256020206 00000000000000 gtkglextmm: gdkmm/gl/font.h Source File

font.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gdkglextmm - C++ Wrapper for GdkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GDKMM_GL_FONT_H
00021 #define _GDKMM_GL_FONT_H
00022 
00023 #include <glibmm.h>
00024 
00025 #include <gdkmm/gl/defs.h>
00026 
00027 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00028 #include <gdkmm/display.h>
00029 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00030 
00031 #include <pangomm/font.h>
00032 
00033 namespace Gdk
00034 {
00035   namespace GL
00036   {
00037 
00043     class Font
00044     {
00045     public:
00046       virtual ~Font() = 0;
00047 
00048     public:
00049 
00058       static Glib::RefPtr<Pango::Font> use_pango_font(const Pango::FontDescription& desc,
00059                                                       int first,
00060                                                       int count,
00061                                                       int list_base);
00062 
00063 #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT
00064       static Glib::RefPtr<Pango::Font> use_pango_font(const Glib::RefPtr<const Gdk::Display>& display,
00065                                                       const Pango::FontDescription& desc,
00066                                                       int first,
00067                                                       int count,
00068                                                       int list_base);
00069 #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT
00070 
00071     };
00072 
00079   } // namespace GL
00080 } // namespace Gdk
00081 
00082 #endif // _GDKMM_GL_FONT_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/group__GLDrawables.html0000644000175000001440000000352510400731256021037 00000000000000 gtkglextmm: GL Drawables

GL Drawables


Classes

class  Gdk::GL::Pixmap
class  Gdk::GL::Window

Generated on Mon Feb 27 18:47:49 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/functions.html0000644000175000001440000002706610400731256017353 00000000000000 gtkglextmm: Class Members
a | c | d | e | g | h | i | m | p | s | u | w | ~

Here is a list of all class members with links to the classes they belong to:

- a -

- c -

- d -

- e -

- g -

- h -

- i -

- m -

- p -

- s -

- u -

- w -

- ~ -


Generated on Mon Feb 27 18:47:49 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2defs_8h__incl.md50000644000175000001440000000004010400731256023507 0000000000000070a9fac804d493797c2efaff482fb34agtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2defs_8h__incl.map0000644000175000001440000000001510400731256023601 00000000000000base referer gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2defs_8h__incl.png0000644000175000001440000000221210400731256023611 00000000000000‰PNG  IHDRJW8Ç$PLTEþÿÿ§§§o???¿¿¿___ßßߟŸŸÿÿÿ«d¨tRNS@æØfIDAThí™MOÛ0Ç÷Yzå¼Ú㦊µGBã4­tÄ9îJÕhˆ¯ÒÊi*Is+IšÆ_n~)%!k`Á±3)ÿC^[ùéñóDŽÿoÈÿ 7º^¤†RžJyj(å©rÊàCI©¥”1®¡Ì¿­ì¸†2ÿ¶²ãÊìÛb߉ým½Â[G\8¹qL*)Ãí”I?ú)I%\_h¥\zS›Îø9×î‘K/>“\ f- bˆRÒm”v›QÎìoÎIoÔ³Ý` {—|·ßÒ˜@'Ü3ÊQj£‡Q"Òuèì&¶OArEX e¤”Q?f”0ÑG‰HbówR”ˆ'«h¥c”D#å–Xþ -›Xê¤<°-‘—§)ʇ¼”áÞ­ôR¦jü‘r‰E JVã줘²µóø¶ýÇá60ó9UFÙbœ3þý¹îtÆ;©[…””s=ãxïÙþÖ ¦î”R¶Z%G«¡\¬!k»rã€;"–u]_¶Dmg«çßUå"›‡âRe‚Ë+¸“}à•·kðZÊ l½žrQúc£²ê0Ê¡TÀø¿Ršf›²CÂNü‰{/ºÕ‹rÞæ”ìÄŸøí:RÞò€&·d>ÐKyÀq<2ññp ?ÁÏæExbßL"/10}„ïÈŽçpB)/B=”‡Ãþéø+4Ý®ÎV³ÈüÜ™vÀ¹ÛPÊs—>¿†}à[JIi¡cóÌÂóx ŽpdÒÙõÁ5j{”òÑG´uQ²¾Êû& yùaš¦ìQJÉN¦G»ú`¶ÿžå¥&JË6¥wŸ¢üfñX.鉯2Á¥Ä”‡Ãž—ø8Ei·kDÞ ¤ò²=–6ÊM££GÊæ5`^ã¹ö«ñHå;üäS)4cÅT Å”‡ÃŸ£ 3Þ«åéþã&5¢,©ü¯Ä¢†”œ+³9°¿v—¶¾lm‚ZÁ/†ÜU0ê¢ü¶‹J¦õîPé?ܧê“Jv`^·?”S¥”Ò&½JÊÒ;/9UFÉŽu§j(å)E#a>l·t7Êûäú(#˜ï/”÷ÉõQ&Û)s>¹ JË@!0žq÷ŒXóàle‚/Ü.9æ"Ÿ\%ó¼ö»È?€Ü!_^ŒGç—ýDøã1?2˪À'W@É|ZƒÈEÂÕM``^ž’µó#3| |r”ÌóF4/g»k‡c?DYÊé¬Ð'WË¥ïôE, —»ùXøäJòr"ò24¹CÎòò-ËË e¡O®²ÆÉ)¯ñØš_™«³ûßÊBŸ\eÊó~C¾˜õÉÕÌxg}ÿ‡\è‰O®dÆ7ž÷Kròd W³&j(%ª¡”§ºïT †RžJyúëÞ/Á{ÃùKIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/pixmapext_8h__incl.md50000644000175000001440000000004010400731257020626 00000000000000efb0ae56b92311b51528a003d599b89dgtkglextmm-1.2.0/docs/reference/html/pixmapext_8h__incl.map0000644000175000001440000000014710400731257020726 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 400,82 520,106 rect $pixmap_8h.html 213,58 352,82 gtkglextmm-1.2.0/docs/reference/html/pixmapext_8h__incl.png0000644000175000001440000000350510400731257020736 00000000000000‰PNG  IHDRŒ °WÎ*PLTEþÿÿÃÃÃÿo;;;???¿¿¿___ßßߟŸŸÿÿÿ{ PtRNS@æØfÉIDATxœí›KoâV€ç‡tÕ}VYó3ZeÙNQ–ÉD,ËÐÄ^ÎbìšIpíe+¤Àª ØÒ¨Ö€ãøþ—ÞÇ.v줾˜è|R0:~¹/ßcÞ„ñõ;¯ ' E(@ŠP€" E(@ŠP€" E(@ŠP€" E(@ŠP€"¼Jï^DucŸW)¢úü&±­P€"€×%Â+ðŠðŽ l"¼ããcrÈ"Ø |/±ãV·¸fàFNe®¾åIÄR@a‹cÄÕÖ"ùám+ ñ ëÃR ¹±u!HDˆ·ø`÷ Z5fZÇì/ÆôË­NEôưñ^EÄjõn‘Ë3£ÄD ßÍz¥S1ÆóÉ|JEt*–Øxo"²uÀñÄ ø-6ˆÉDLIÙ$¡.™& ÷*ÂË\‚¿Å) Þk˜›"È>ExÙ4 I¤–ˆ}Š€‘¯‚I#Ë3£-Úˆ’ˆÇ}ŠPXä•Ôk¬E„ÖÞD(­ò8âWiÈð$JE(noV5}ÒÖËW5ݹ¿:áa·vª±È}óý¬wÃK¦Š8"ÎŒÒmã‹f.ŠO5ð¬ƒu¿(ÞP÷lŽ1pZ ϧ,"§#²1-Ù~×ú ŸÖWs›!½?¦Ý8º¦Ï4]šºsukó°Í‚4â;EÛ¨q¾"þIÍ×6ˆy7 ³f|‘Ï(Z-¿P-6ëLÛÌf]„-¤9‘½Ws|ŸÞÏü½,bD?\MјêÎØ"&ïølߺmÄ‹JÄ”„¦EÛˆŸ:²ˆSzŸTÄ)ËCпš%½²ˆ< ¯¦DÜÐê%IÄg‡—ˆÏ”ˆ÷B„[ry‰ÛþÒ‰ˆ´¬DTi‰F’ˆ?¼DÌP"~SÏÖˆ,K„Bãòµh#Ʀ$¢çœ7é?¿çˆ6â—«ÖKõe1º`mD;]D,{3£ÍÛr!‰èZ‹bwL,ÑF|»lˆ9øÑ‚·JE¬z çVQqx¯Qá}„>1'ðð887YäšôZNK«–üTü3Òkø—k7„÷C"zéýÀKDíã ‹ÈéˆìE 5;2„œˆe|T™4ÎLb'äæPÆG•ш’ªQyê¾Î›ïRDB¾VS’Î`®=u_3Rf‹ëØŠxä%"’ò í!+ûüacƒhŸ>d4?~x"޲yëEHVg7Eä0EÕ{cd9Z#[æJvàI{9f§ ¡€9€ª²M#šõoDàÁ6o"¿@·~K&"Ȫڪaïsg&Bá‹tK9¬umENË5ªTÀi$)I¾f1›­6ÈV„â$E„”4ákBñF€:jT@•"BJšbŽG¥èÝ2=ž‹HOšºŠ<8­ñ¨]Gr%j^JÏ´;Ñ\DzÒdAW‘ÏÆÛÐ •H®Dáϲ*0ˆà"Ò“&>]E£e&‚Dr%{øO!ƒcÒƒréIº0úTZó“Ÿ#)‚=ü¦k×…Cb§'M|ºŠ¸$ "Heÿ"6®ÿ;xñ|bÅÓ“&RQí“AND¬ø?F<ù®7ö/löO&Mx¯ÑuZ¡ÅziÞD¬HÊGÿíOìV€Æ2=i’HÎD|'›ÝgZÒ$‘W"B,DÕHMš$ò:Dù}úT ŠP€"ä,Ás° E(@ŠP€" E(@ŠP€" E(@ŠP€" E(@ŠP€"€¯ÿ;³ê±Ü?IIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2version_8h.html0000644000175000001440000003165410400731256023405 00000000000000 gtkglextmm: gdkmm/gl/version.h File Reference

version.h File Reference

#include <gdkmm/gl/defs.h>

Include dependency graph for version.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GDKGLEXTMM_MAJOR_VERSION   (1)
#define GDKGLEXTMM_MINOR_VERSION   (2)
#define GDKGLEXTMM_MICRO_VERSION   (0)
#define GDKGLEXTMM_INTERFACE_AGE   (0)
#define GDKGLEXTMM_BINARY_AGE   (0)
#define GDKGLEXTMM_CHECK_VERSION(major, minor, micro)

Variables

GDKMM_GL_VAR const int gdkglextmm_major_version
GDKMM_GL_VAR const int gdkglextmm_minor_version
GDKMM_GL_VAR const int gdkglextmm_micro_version
GDKMM_GL_VAR const int gdkglextmm_interface_age
GDKMM_GL_VAR const int gdkglextmm_binary_age


Define Documentation

#define GDKGLEXTMM_BINARY_AGE   (0)
 

#define GDKGLEXTMM_CHECK_VERSION major,
minor,
micro   ) 
 

Value:

(GDKGLEXTMM_MAJOR_VERSION > (major) ||                                         \
  (GDKGLEXTMM_MAJOR_VERSION == (major) && GDKGLEXTMM_MINOR_VERSION > (minor)) || \
  (GDKGLEXTMM_MAJOR_VERSION == (major) && GDKGLEXTMM_MINOR_VERSION == (minor) && \
   GDKGLEXTMM_MICRO_VERSION >= (micro)))

#define GDKGLEXTMM_INTERFACE_AGE   (0)
 

#define GDKGLEXTMM_MAJOR_VERSION   (1)
 

#define GDKGLEXTMM_MICRO_VERSION   (0)
 

#define GDKGLEXTMM_MINOR_VERSION   (2)
 


Variable Documentation

GDKMM_GL_VAR const int gdkglextmm_binary_age
 

GDKMM_GL_VAR const int gdkglextmm_interface_age
 

GDKMM_GL_VAR const int gdkglextmm_major_version
 

GDKMM_GL_VAR const int gdkglextmm_micro_version
 

GDKMM_GL_VAR const int gdkglextmm_minor_version
 


Generated on Mon Feb 27 18:47:32 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2version_8h__dep__incl.md50000644000175000001440000000004010400731257025303 00000000000000767698a591fca6688ac64b5b984a448dgtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2version_8h__dep__incl.map0000644000175000001440000000006010400731257025375 00000000000000base referer rect $gtkglmm_8h.html 193,8 275,32 gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2version_8h__dep__incl.png0000644000175000001440000000133310400731257025410 00000000000000‰PNG  IHDR'/ê 'PLTEþÿÿo;;;???¿¿¿___ßßߟŸŸÿÿÿRÐ÷×tRNS@æØfbIDATX…í×1Ú0àû üþ„Ží…µE-‘(‚Q­t§ÜH%P²¶H K%^–J!!ÿ¨>;)GÀ¶BÛS‘š78ø9àOÏv€vUqó¯Õh8ºh8ºh8ºxrNµãÀ©ÿUDJN}xÃi8×Ãiýe©ÎB=‘É=ôpŒ NKËqD›U ùØ=ç„Ö gcŠéÅåŠÓÒqR÷bNtÊñ‹jøŠ%ªp~´´œüBÎjžº3ƒçwÉ "Ú)ϘúCˆ·Ì£ñì.³±Ï<GÎÞþâŠcOCkì°þœz‹ÈYý€-˶ÖHÆ :ã«tÈ°íµ­¢½åY·gí|›¼¥;s¿Î |™¼Æq èÃ:-9…FÁIŒYˆÕIŒÞÂDΨ{ßu‹–e›](ã„&圮WdEe»äYK¬Í0ƒ¦°ç‹‡/ ŽöKÎ÷–*ľy—qÎÐ39¸p|éx˲I9øéœóÊ;æty–@¾F¼÷ÊËÏ&Á áã|ïÔªNË9/îC–Ÿr"9§¬8lQ Æ'Èâô&_,^Žv+—ÕÉ|Iuœ 3åq¦Ï’­áøÞÉ!Þ”{Çí GsÐcÎ9¬ß[ØUÎJÅágÈÇÒ„Ï9c‘%xη9§%N8Y8žžpÔOe gtkglextmm: Main Page

gtkglextmm Documentation

1.2.0


Generated on Mon Feb 27 18:46:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/window_8h__incl.md50000644000175000001440000000004010400731257020116 00000000000000f8d908710cae61556b43545c029c6b9cgtkglextmm-1.2.0/docs/reference/html/window_8h__incl.map0000644000175000001440000000022110400731257020207 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 570,160 690,184 rect $config_8h.html 392,160 522,184 rect $drawable_8h.html 196,109 342,133 gtkglextmm-1.2.0/docs/reference/html/window_8h__incl.png0000644000175000001440000001064510400731257020231 00000000000000‰PNG  IHDRºRï,aX$PLTEþÿÿÿo???¿¿¿___ßßߟŸŸÿÿÿ–cNTtRNS@æØf/IDATxœíKwÚHÇû+ÌZ«ñÖËN'ž°tÆ“Kw<X¶ÝòϜøÀÒ6--»Çç$,yX–v ‚úrSU¨BÀ*ù-QÜFg÷ŠîÙïwýáÓÐ6kåVÙâL¼õëæŸnŽÀ*ùQÜÆ¦èZÃ.·¹mò™5tÅ[¿n¾éæ ¬’v6!H*º‚ç]·t³ÿåÚJþ×軹§›S´|élbtöÄÝ÷ÝN¾ézùEv³Õ‡°Ï ÑµsL×Ë_¤]’Nwh…]ÛXå‹nÞц'óÈPJ¬'ºyG+Éžzúu†f×JÜ"?tsk¥æ‡•燅b]#Ë7Û0by§Å»™k¶úwªŸ«mTèæ™mädñT–oŠB7·l½Õëœò£§ÞƒnNÙz±8´¶a´H>Ù®ëu{i gJ×Ë#Û„šÔ½ñ,ézù;wHJs£¨Õètòƒ¶]6A@­Æ¦›y\…uÀ!ÓÍ6.ìÖ£M2a„£ÓÍ0.@Žïƒ2„K73×*U º¸®‡0êÌ)Péâ»®‡r’] ºØ®‹5R Ì*&]\×õðî€7]ì™… 4òo`2²™²çˆtç4À,f4e¥tç 0‹p–÷ âÑ]x€fÎR¢ˆ.¦Š@wÑFÌ$œ¥$vuÐè†m4ÀlÂYJR膇—.4#sïYK¾¸²ˆ®q‹Â5ÏBß Ýi…K²È]ÀN]ÍŒðm”îWùÂ\YÝ¥;|±®_L~ÕÖòF<È©¡Ì}àbë]?j?°>=×[&Ÿ8-A÷±¯[BWèjM4äËeûõ§ëßêæèŒiy#>ËtÌý<«X·ÒÚ—ÃîÐ%ë¶1ùÇö+AW&˜-¡«€t¯¹ù{‡—ͪ¥Ï_¾“Sò™{7«˜Í-f—GÕO%QŠO¦¨x!èÊIú¡%lA^{B¢«7Ñ/6Ÿ™–ˆ»ß·tº%™N‚¹²0Åò?_ÙãóóóŽ(Å'ÓdŽãȸKt—µBWúnEø.ëitÿè(ß}…ð]—÷¸=©Žš–(}ßu9#º«Z¡{Ùnª¸Ë¯4º–L'Áž,w]ÖÙÓîp KwoTÜÝé¿ †|YôÆZVŽ{•N‚u¹ê3¸¼zó’÷ÅŸ(ý>Ãs7³2¦ y3+ºoWR¤)mL'±¤Lf»‘îeû׸zÓI,Éàø9õ@oWáÐ]j¢!_&ÎYlÍMé$–¤,!.$]…–ð]_8÷/A-˜®Ú¸€îR 0³k,Eòå¦Ñ•Âv„ >]ïï`£E¶ˆiœ‹.ìh¯­l¥ û3‰B7tè-í?Ä¿@t!mæ&·oÄ>;XˆB7ø?¡$ƒßÍÞ®=¶ÑÅt¿Ï­œøì“.ÒÙÔ^ß×–N\º‹Ã éjÀÞ67KÐã¹Qébå„Ne4éx*ÝS¬ÑÌ)¿³µ=bèÖbзÑÃK‡“C<à"Ñ=Å£ ‘hg0ø4Dº‡w†…`@D‰.B ÞbºÞR&8ó® |‹‹K6Ç™ °áÑEŸYæqد¡ûˆ@×oc©N`óÈyð3æÑèf1)òttŽl1pJExºžöŠ,°<8ÊX`2ì­§<Ý̇½±8à LB|oXt³I7xY7£ŽˆÃœn†òÖR¤Áââ{+4]îÞÒÊWbœn–Á…³Êä¶4ݬN%滃qÞ˜C ä¸À¡›i‚Bï$õhŸgèîoÚàðt³ Tg/a¹-0ÝŒC Ë@Ãr[ºYg46° ¤1,·¦›å‰Z(Ë@Ãr[ºYç‹6° ¤1,·…¥{˜À€@7¸V–ưÜ–îaÖ¹aª¾õg † Qp©L[Îìȴŵ;Yøvª•U› tƒ¾wÖaËÜ0 õxM•‰t^mù Ý¿ÔîdáÛéÅØ„¤›Ñ µUáÛ„Ü0 O´ß@WâÕ–¯Ð-©ÝÉ·cÇØ„¤›Éö8òeSn˜'‹5ŸØs½6¼uÅBAB|Ð è †VûËEåQýÖvG”M¦Ì³–Ü¡ÉZb•Ë›OãAåqЉØ¤;?'?Ý ¹aÎî[“³û÷ý¡ÍmÖ ]QK3 +˜@¤–K Wo/l÷ÒR6ÛÊü´#vh™ÓŽXåNîî[6º›pt½H™¡ ù²!7L…ufÖðƒ-W±X(öy8Y#å(ÒÂ-Ú}[¥Š˜µ•ù‰%vh™K¬r…冠Ëu›²Qpt!ïGm«­ã´17Œ`#ƒ§¤ëX’ªÐ¥û®´`‹M»¯tº_å-SÌ5ǵùùO•ˆM0ºó¸©ëžh?í›rðšô]W÷Ý tƒåÒµð]׬ht?s廲¾Ë¹eóŠŒ (tÃ1»@·Rp Öï7ä† â®O·/òN2ÝÅriAÅÝQC£{'wh™w<Œ»½©;Å¡ŽÙÍRzxܦé÷|ºªÏ`'ÑÕÏÕæ}~£Ñ-©š%.û ²ð]ÑgðW.¶¢»¸†Ÿ¡ëz‹ßC~Ü%7Lt¡±fÆZ ëw¨o C7œ‡bnóþ=ÑÂã.¹a¢ 5û1ÖZX¿C}[º‹ñAØp—zJ|ùWm§Ü0‘…Æšýë-¬ß¡¶-];è.úŸ«+¢[öÓ:i Ëmè†pfþ%ߘ Öiw³Î@ÃrÛôt1à®uÖxi÷·Î@ÃrÛÔt!áîu!#íŽ×HcXn›š.Ì”ŽtC3Œ4»N0jœ´©èÎíÑo_g(í`5²#FAãRŽɘnx*ºR·2[º0y—2SêÖfB·0ΪɃh2ÝèEèBÉ¿'œ6ý]˜ªƒj5uº¯(ÝFc™Ùà‹|™©B”A%mýb[:ဠÿ ©§èo¢ûôZ!T…ãTè~`—þ©¯›l¢Ûóö–®óÝ‚ Þ=BºÏ¬UÏZ çýÏëUmÜÞœ[§ó0Ìn{ÕFÕ}9 QiЙ:ÿŒœ¯Î`bU¿ º(Ð éþøsåæþ'«Ñ¿ŒºÓî¸Q-})Õ?ö/®Ýýr©\ÌÄBYéùâºúcwØ9Qó ‹óLmî½ÓøÐtJZ]ícgÜpܺ[´_ÝÇîìÝøGA·îÊJn½k–úµ›²35 N±ÏÒ;n£.âî›/:ݲ[wݲs~þ/A7¨$â­ýâÅ‹¦£ê”.~×qÙw_ ß|ÕèþÒT¾;i:ÿ›ýg¬èÊJÒwŸkýN½˜tg&K»w÷ÝÛzÿâv<˜ÖV¹d*ºó¸û4ì2§Y0ºŸ;Æôì«îµ£ú CÇq«nUÑ­}g$þÆE¡{˜ÈîK'ÒÕõÕ­¶;QÎé5…ƒž—ë‘á¯8h"2”·¢ ¯ˆö¢Ú¿/-2ð‹Xja}ºE`#ÿo½ƒ«ËÊüÞD”v*ÞÑï.LCô¾š¯UÞ[+o4£ÊÝoXDSDSðó&H¡çüÞAÎW#¼QÒõÈ{£Éz€‰€ùè,ìSrÞef Øpö Š K‚ÎÜBΫ :ë9¯.ð|d会ˆ.¦Àó@RhПe“œ7|†XrÞP¹£ÉyB KλFVyrÞ¹0è’óÎ…ñ4¢;ʳR(4ByŠÑ „B—BC œç«‘óú¡KÎë ç¹–D×ÒSC)4(!=­™œW ëYØä¼RDSt¡£\\]LaѥР…Aת4†á¢ .9/ǤK΋I—œ‰î³–?!Ò%çE¥K΋I—œ•îÑŸ´¡Ò•Î{Ô³Øpéz§éÿ $ºaÀõPFÈtÓ¥½/¼2 {ÄΛÝãu^ì¸{ø¬U‡T&tOߥ¡ÈÂŽ ~h¨¬¯º­†éMd/tºŠ/Ñ…Täôâwè.½¸@¾ )¢ë‹èbŠèb ‡nôº¹F׌<☵xô©ÇòáÈÁ¢p Ñ µ=Ýi…èîªíé~åDwWÅÑ]<Æþªý\W¯™ý«>àbë]?j?°>=×[&Ÿ8-A÷±˜ º¡âè^¶_ºþ­nŽÎXø4´ÍZ¹U¶>Ä2Ö­ô‡öå°;tEɺí_Lþ±ýJÐ5|D7T¤Ó è^só÷/›UKú6·M>³fÖÝX,c6·˜]U?•D)>]˜¢Æ… +jø&ˆn¨8º6Ÿ™–ˆ»ß·tº%Ï þ|eÏÏÏ;¢ŸL“©”¾²Žo‚è†Zç»Ử§Ñý£3ËÄ‚·'ÕQÓ¥ï».gD7^qt/ÛMwù•F÷ÁRq×e½‘=í²q÷FÅÝ)ÑUÝEŸaü>¤{ÏUŸÁåÕ›—¼/þDé÷œ»™EtcµÜiPtßFûµ;‰èjŠ¡{Ùþ5…A¢«)†îÄ9KaèjŠ¡›NDWÓòÏÑ…ѕ¢»ˆ.°ˆ.ÏŠ.ÅÖQ蟋èb .MøáDWxt)4`Ò%ç%º¸B¤K¡“.9/*]r^¢‹)LºPé½ó¢Ò=zçÅ¥{ì΋K÷Ø™î‘;/2Ý#Ï#M×;êÌ8ØtùQgÆA§{Ô™qÐé™qRÞ¸eeB÷$õˆ¢»F~f¢‹¢ 3ÑEQ‡è"‰èâ*}f¢›¤´çkD7Qf»ËëÔk0!ˆi+Ã9BD7QItÿR¯£`-ÑÝ]ItKú¢»‡|<Í[{T¿µÝÑ•œ©< ¬¥3˜âSM¬uœÖךY›U´ì D7Q ÏèìÞ¾z{a»—–JÎÐVy¦•˜Ádý¡\ëþÚþaT*—Êzv¢›(…g\aö-Ú}[M¯žµÕ|ብ3˜L¼k]›_ Ýwö¥žè&Já¬l[ÄÝî+îW®3È$ j­+V^¿xñ=ÑMÔÂw¯…ïºfE£û™«Ä Šîµï»ü¿î¿m¢»µ‚¸ûàÇÝQC£{Çeb•`dwù—R¹1%ºÛj¹ÏÀo4º%®3(ºAŸÏjâÏ"º[JáZÌÝT1aóâ)ëÈPJ±yñ”qdèZi6/œp&|€Í%¢‹)¢‹)¢‹)¢‹©¬èÒX´ˆ.¦ˆ.¦ˆ.¦ˆ.¦þŽÿs>ˆ½ÇÁIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/pixmap_8h__dep__incl.md50000644000175000001440000000004010400731257021074 000000000000002fcca98c0ed0e0e4bab657f60f985212gtkglextmm-1.2.0/docs/reference/html/pixmap_8h__dep__incl.map0000644000175000001440000000017310400731257021173 00000000000000base referer rect $gdkglmm_8h.html 401,34 486,58 rect $pixmapext_8h.html 195,58 350,82 rect $gtkglmm_8h.html 537,34 619,58 gtkglextmm-1.2.0/docs/reference/html/globals.html0000644000175000001440000004522110400731256016757 00000000000000 gtkglextmm: Class Members
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x

Here is a list of all file members with links to the files they belong to:

- a -

- b -

- c -

- d -

- e -

- f -

- g -

- h -

- i -

- l -

- m -

- n -

- o -

- p -

- q -

- r -

- s -

- t -

- u -

- v -

- w -

- x -


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/pixmap_8h__dep__incl.png0000644000175000001440000000305010400731257021177 00000000000000‰PNG  IHDRtZÃ~Ö“'PLTEþÿÿÃÃÃo;;;???¿¿¿___ßßߟŸŸÿÿÿ>ýstRNS@æØf¯IDATxœí›OoÚHÀûY8ç#ì±Ú ‚ë eáHËFpY©$ìã®Çl²¯RáHpû„ÀÆx>ÔÎcÆÆ&ðJ )ï'Õ./ÎóÌñŒí×~ ÇnÀûÕAu`PTÕAu`PTÕAu`PTÕAu`PTÕAu`PTÕAu`PTÕAu`PTÕAu`PTæ§Qç[»s€$P·ÇY÷oOFø8t÷ìHTÊêÀ9P8ªç@uào¡.·{Ëþê6›úcêT5*IJì6…­Í9uži‹½9B‹:Mhª?8–aýquÏîŒï¬ú+êhsÞ‹º\RSî~uO|èùO›Ò6ÕåÛ“û©Knj˜ÃßOÝ‹×U®½®j]ß.ôÏz]m;׎ղF=×ð[ÆB~^i‹pÛ«³U×vVêr' ®Ó2¥eÚÎÝÂömm0©M¼å³Ò ê“àÐiJSÃJS#µ^˜ˆ-¡™ë#×ê>ÝVn¾èê¤d8ãåØUëÅaQ¹Ÿ”šTݽ1¿ýjø/ƒvÆ.‹PuôƒP—;2¬#NþÁ¬]•L»ªWûÚñF¹[îOæÏs“ªë–uÞïé«9è¨sòë ºØçÙT÷`©w«¨6º¸–«Z¶b+³`Puõòtµè×EX¡A¡êè‡ÓunÅ3[dnNLÒ$í8½ôü¾MLÂÔé¾P·}Ô±T]]_gÐÅ–Î$QkÙªBçºß‡²º25CÕ•iL¥Šÿû‡Ë"l® Õ‰o3O ðnÓî™&íáø’öÑ«#+uiM sPY»ë ¡:;Yu:ꌙ¤îïu‹N0êþ u3k5ê$uÉ+~F„#¦IG­UF¤Ž/é9¨,ï)aÔ¥¨ût;âsu-©k)“RË5–Š˜ëžj<|;›ð¹î9¦îØ·ÄN¾'æ:G­ö;u˘ºÔ[b–ƒÉª­3êFiêÂÖ¬­Õ5-¾ÂÎ-±Â¶­ö/|Ô5¾^±ˆ­ÄÕè KnÄ »V'ú/º-ÇìI#îŸa†@™¦î7+vK'+ü!bóI"á)|ÁÎõðÖëj}—xèë9¶dظ`¿%©£lyGuÙ­°Óx ¼±èƒHµÿOÚooWæØ’!~Á’R’:k4gW$ˆª‹ErÙÝœLsÑOì¬ÁÅ6ÖƒèÂʧýúklcK†C¿9ÉLuu!þÆÏxvfGNð¥S0î.v8Ç4ú=½ouÁëˆéËKþ†Þ¹ºÕlûHw9MÊÈ~ïꤛÈ$´K›ÓV£#©; rŸä¥ïPLSÕíû-'¨þ¿!‡^sSßðfÏÛÿ›“_°ÍöC :0¨ ª“©ºU©*¤Ç6Új—N´u"WÝ7¶ÑÄÎIKp‡êÔÙF»TÌ3W·.JµQ¯»0†ºæuµÁ3ÑæwË;^*7„EV·¤\£+€ž©“ ¤Rmt9ªö º¶iùdžFî¯xØo”u¹ï_.ÚM>ê"Ð!#uRTª,X­S׺¦ÏU<Þð—ÿ¦Ç‚4b’’wÛàê"Ð!#uRTR7cÕR]›Ñ˜gkÄusù±£ÓˆÉëz0×­:©@*©ûNø¨ûN‚Qw)ÔùŸ:›xޗ“ ¤’º6©öék1×ýúxÅÃZ¥¾šëf×l®³:©@*©+¾Âùzª-Õå_<ìU•EzV{@z¡bž³:©@!¨un>I¤=[œŸ:©@!¨u¢ºDâÒA­³·ñƒÍˆœí$À7'`PTÕAu`2P·o-VCÍžŸæ?°gªƒêÀ :0¨Ìÿ´Ø×43~ gtkglextmm: gdkmm/gl/init.h File Reference

init.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL

Functions

bool Gdk::GL::init_check (int &argc, char **&argv)
bool Gdk::GL::init_check (int *argc, char ***argv)
void Gdk::GL::init (int &argc, char **&argv)
void Gdk::GL::init (int *argc, char ***argv)


Generated on Mon Feb 27 18:47:17 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/inherits.html0000644000175000001440000000726610400731257017171 00000000000000 gtkglextmm: Graphical Class Hierarchy

gtkglextmm Graphical Class Hierarchy

Go to the textual class hierarchy


Generated on Mon Feb 27 18:48:05 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Pixmap__inherit__graph.md50000644000175000001440000000004010400731256024501 00000000000000b3a60a2d3b163dc4e45b363df65b199fgtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Pixmap__inherit__graph.map0000644000175000001440000000007610400731256024602 00000000000000base referer rect $classGdk_1_1GL_1_1Drawable.html 7,9 141,33 gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Pixmap__inherit__graph.png0000644000175000001440000000147510400731256024615 00000000000000‰PNG  IHDR”t‘Ve$PLTEþÿÿo;;;???ßßß___¿¿¿ŸŸŸÿÿÿ]§ BtRNS@æØfÇIDAThíØAoÚ0ð~®ëGØqeɵ¨9bØÇ)›ÎS[¸î0‘2„}lfûTA ¿Üž¬ 4]YÇ&ûbžp~yþ;rgãÀP†úCTÌŸ>Ä‚ÚAK†úûTä]÷`Bhñ¥®ƒä3<.î½kaY$6PÍÕñ:¥ë%õ¹ñ ç§>Hy´NézIa9m姆R6d‰ùH–0‚•ºÔ‘j6ç¤?µ‘Ÿ“¾DÝ(/Ì ô-&ÃA“²œËyrKÕUOö€Š‚ëNl·«NÛiÃŒQ¹éŠ[·Öʤ*¼Ù“mdá´Æ« FA #‰âUp3Fx6€ng4cƒyŒ0duÒJë5 .”óOOߨ.~³b÷›è*§õ5u…Œ;1~/^jNº’gPM÷©ª¬dIe¥k<®×uVð0Ô…D ûN›ª²*nÈJF•°†õ ÞÙêuÍ9Ó'Èy›°#Û±­f}‚‘fuõ´a(CýB=øƒù"ïOêÃã0Ï¢\ÔMa?©Ã]Q…=¥ò„õÌÔÍn©Ã½£ …\;|fj—¯³¡ e(CÊP†2”¡ uŸz꿾†úß(Ö›y0QºX¢ë»ty—møs#ƒ|éO×)]/©·—çÜÊM}åüxÒõ’"ÜyÄkœ_òbÔ¢¼H(§I ‹Y eq™¸Ô'<ÄUv‹ýM”Žâªv‰éÕy˜D£ºò¸';cñ÷nZŽïa9£Ù¨º…êÈÇj“´&«Ø/ »ºEa¯àr:ºãå„Ì…Ð3?­É*+eÛ$¡Â³Þ(æt[ì­AºbÓ´þ™b ?¡DElíjÐý†û*+^TYéšLG£$+EKµ„¢{[VœuæC¢O0°Ô êZÊhq‚@¹Ü}©©«è¸¹å9VÏþ^QþΨÕ0ÔïR;†úשÐZq~“‰ÓßIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1PixmapExtProxy.html0000644000175000001440000003360610400731256023320 00000000000000 gtkglextmm: Gdk::GL::PixmapExtProxy Class Reference

Gdk::GL::PixmapExtProxy Class Reference

#include <pixmapext.h>

List of all members.

Public Member Functions

Glib::RefPtr< Pixmapset_gl_capability (const Glib::RefPtr< const Config > &glconfig, const int *attrib_list=0)
void unset_gl_capability ()
bool is_gl_capable () const
Glib::RefPtr< Pixmapget_gl_pixmap () const
Glib::RefPtr< Gdk::GL::Drawableget_gl_drawable () const

Friends

PixmapExtProxy ext (const Glib::RefPtr< Gdk::Pixmap > &)
const PixmapExtProxy ext (const Glib::RefPtr< const Gdk::Pixmap > &)


Member Function Documentation

Glib::RefPtr<Gdk::GL::Drawable> Gdk::GL::PixmapExtProxy::get_gl_drawable  )  const
 

Returns the Gdk::GL::Drawable held by the Gdk::Pixmap .

Returns:
The Gdk::GL::Drawable.

Glib::RefPtr<Pixmap> Gdk::GL::PixmapExtProxy::get_gl_pixmap  )  const
 

Returns the Gdk::GL::Pixmap held by the Gdk::Pixmap .

Returns:
The Gdk::GL::Pixmap.

bool Gdk::GL::PixmapExtProxy::is_gl_capable  )  const
 

Returns whether the Gdk::Pixmap is OpenGL-capable.

Returns:
true if the Gdk::Pixmap is OpenGL-capable, false otherwise.

Glib::RefPtr<Pixmap> Gdk::GL::PixmapExtProxy::set_gl_capability const Glib::RefPtr< const Config > &  glconfig,
const int *  attrib_list = 0
 

Set the OpenGL-capability to the Gdk::Pixmap. This function creates a new Gdk::GL::Pixmap held by the Gdk::Pixmap. attrib_list is currently unused. This must be set to 0 or empty (first attribute of None).

Parameters:
glconfig A Gdk::GL::Config.
attrib_list This must be set to 0 or empty (first attribute of None).
Returns:
The Gdk::GL::Pixmap used by the Gdk::Pixmap if it is successful, 0 otherwise.

void Gdk::GL::PixmapExtProxy::unset_gl_capability  ) 
 

Unset the OpenGL-capability of the Gdk::Pixmap . This function destroys the Gdk::GL::Pixmap held by the Gdk::Pixmap.


Friends And Related Function Documentation

const PixmapExtProxy ext const Glib::RefPtr< const Gdk::Pixmap > &  pixmap  )  [friend]
 

OpenGL extension API wrapper. This is a Gdk::Pixmap wrapper to invoke OpenGL extension function. See Gdk::GL::PixmapExtProxy for available functions.

Parameters:
pixmap A Gdk::Pixmap.

PixmapExtProxy ext const Glib::RefPtr< Gdk::Pixmap > &  pixmap  )  [friend]
 

OpenGL extension API wrapper. This is a Gdk::Pixmap wrapper to invoke OpenGL extension function. See Gdk::GL::PixmapExtProxy for available functions.

Here is a simple example:

 Glib::RefPtr<Gdk::Pixmap> pixmap =
   Gdk::Pixmap::create(0, width, height, glconfig->get_depth());
 Glib::RefPtr<Gdk::GL::Pixmap> glpixmap =
   Gdk::GL::ext(pixmap).set_gl_capability(glconfig);
 std::cout << "OpenGL-capable? "
           << Gdk::GL::ext(pixmap).is_gl_capable()
           << std::endl;

Parameters:
pixmap A Gdk::Pixmap.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 18:47:55 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/pixmapext_8h__dep__incl.md50000644000175000001440000000004010400731257021615 00000000000000319c6ffdb239d61a22f6fcf9d4c53077gtkglextmm-1.2.0/docs/reference/html/pixmapext_8h__dep__incl.map0000644000175000001440000000012310400731257021707 00000000000000base referer rect $gdkglmm_8h.html 214,8 300,32 rect $gtkglmm_8h.html 350,8 433,32 gtkglextmm-1.2.0/docs/reference/html/pixmapext_8h__dep__incl.png0000644000175000001440000000170010400731257021720 00000000000000‰PNG  IHDRº'‹VŸ$PLTEþÿÿo;;;???¿¿¿___ßßߟŸŸÿÿÿ@ø<tRNS@æØfJIDAThí—?oâ0Æû:ßÇ8‰Ca½C-ŒPTÁÚ"°ÇEt;Ê9ë ©0BœÄ™ˆ›Æ_îl'„I€Òr¢Ê;ØÉ‹óðüxmÇ\°¯ÿÛÀ§FFw¾‘Ñodt秤#ÄñvHwÈ÷î%‰l‡w¼FF—Ñet_Œnþíxº£4âè0õÖ½¶E—]ràð9i`~™ê ¡ _à†#¼ÝÁàu…Èí^t>–ìô$´Á&ÝüòxºtևЕ|ºRJÙ¡tÜØÑt;4Ìé¦Cª«CêéØqnüªÞ¨u<±Ü'ñvÞÔÆ@¦ µODÆb“<蘮Bøðú’NKröŠ'j O«©Ý¶‰\ Ü€ë5ÓY ±¤Û¡1ÀW¶ÓZ)ø-§ë±tzñŽÞæòÔ«X/L MG{Өѭ6Ë]XlÕ!yiådÚ®€È¼4¯­qOÖŽg:i,ÉYe¤ôïžròN¾Ç½é ca¢F驤2—_t»4T^»J¥à·œNèÄЙ ¦C¢Q‡ò‰h»éqÓÔ=´‚¤ÕÇ2E’g(ÉãQ]ÒQÐý½LéõŽ¡Á”•P]¥e—{³™ÉLÄ<ÕãtüÒ·6ߥÁét3¢à·œNèÄÐÙ€PÊM.®£t3ÞØÎx{èÔ§3~NÏPñlën¯Ú™ÌC*_wߟ¸M:›íU;®Áé´…ŽÅÓ‰Úõxí<¨D艬Ý# jwíÓÙŠ-k猟'tŒ¥8µ+óÚ¹³˜Ú­èviˆ™‰Š1µK Ó‹mÝé(B7&Õ&/Ó˜øëîW+'ÓPi,×ݬ&Ö]wNxKpVuåºc5'?\§›®Ñ¥k:ç~¥à·o‰tážIúº‘{fIîÐ@Æo™ÖÝ*™6wH”ºA—xÎ÷LÚ;^„ÎÜ KÕP®lv¿Rð[OM¢ÓÞxÕù‘ó(Û甤“Kú9ó*|%-T7qhú9s©‘¦°=3Kqf«Í?IW=·|fÞG·ÔHSØš™ gÖbEѵ·>ØÎìC÷JòËû®¦¾.ÔHQÈþet]F÷it§‰C~¢ã5NMwúÈèÎ72ºóú˜AVÏô»IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/font_8cc-example.html0000644000175000001440000005324710400731256020477 00000000000000 gtkglextmm: font.cc

font.cc

Simple bitmap font rendering example.

// -*- C++ -*-
/*
 * font.cc:
 * Simple bitmap font rendering example.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#include <iostream>
#include <cstdlib>

#include <gtkmm.h>

#include <gtkglmm.h>

#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif

#include <GL/gl.h>
#include <GL/glu.h>


//
// OpenGL frame buffer configuration utilities.
//

struct GLConfigUtil
{
  static void print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                              const char* attrib_str,
                              int attrib,
                              bool is_boolean);

  static void examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig);
};

//
// Print a configuration attribute.
//
void GLConfigUtil::print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                                   const char* attrib_str,
                                   int attrib,
                                   bool is_boolean)
{
  int value;

  if (glconfig->get_attrib(attrib, value))
    {
      std::cout << attrib_str << " = ";
      if (is_boolean)
        std::cout << (value == true ? "true" : "false") << std::endl;
      else
        std::cout << value << std::endl;
    }
  else
    {
      std::cout << "*** Cannot get "
                << attrib_str
                << " attribute value\n";
    }
}

//
// Print configuration attributes.
//
void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig)
{
  std::cout << "\nOpenGL visual configurations :\n\n";

  std::cout << "glconfig->is_rgba() = "
            << (glconfig->is_rgba() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_double_buffered() = "
            << (glconfig->is_double_buffered() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_stereo() = "
            << (glconfig->is_stereo() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_alpha() = "
            << (glconfig->has_alpha() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_depth_buffer() = "
            << (glconfig->has_depth_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_stencil_buffer() = "
            << (glconfig->has_stencil_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_accum_buffer() = "
            << (glconfig->has_accum_buffer() ? "true" : "false")
            << std::endl;

  std::cout << std::endl;

  print_gl_attrib(glconfig, "Gdk::GL::USE_GL",           Gdk::GL::USE_GL,           true);
  print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE",      Gdk::GL::BUFFER_SIZE,      false);
  print_gl_attrib(glconfig, "Gdk::GL::LEVEL",            Gdk::GL::LEVEL,            false);
  print_gl_attrib(glconfig, "Gdk::GL::RGBA",             Gdk::GL::RGBA,             true);
  print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER",     Gdk::GL::DOUBLEBUFFER,     true);
  print_gl_attrib(glconfig, "Gdk::GL::STEREO",           Gdk::GL::STEREO,           true);
  print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS",      Gdk::GL::AUX_BUFFERS,      false);
  print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE",         Gdk::GL::RED_SIZE,         false);
  print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE",       Gdk::GL::GREEN_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE",        Gdk::GL::BLUE_SIZE,        false);
  print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE",       Gdk::GL::ALPHA_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE",       Gdk::GL::DEPTH_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE",     Gdk::GL::STENCIL_SIZE,     false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE",   Gdk::GL::ACCUM_RED_SIZE,   false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE",  Gdk::GL::ACCUM_BLUE_SIZE,  false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false);

  std::cout << std::endl;
}


//
// Simple OpenGL scene using bitmap font.
//

class FontGLScene : public Gtk::DrawingArea,
                    public Gtk::GL::Widget<FontGLScene>
{
public:
  FontGLScene();
  virtual ~FontGLScene();

protected:
  virtual void on_realize();
  virtual bool on_configure_event(GdkEventConfigure* event);
  virtual bool on_expose_event(GdkEventExpose* event);

protected:
  // font rendering stuff:
  static const Glib::ustring m_FontString;
  GLuint m_FontListBase;
  int m_FontHeight;
};

const Glib::ustring FontGLScene::m_FontString = "courier 12";

FontGLScene::FontGLScene()
  : m_FontListBase(0), m_FontHeight(0)
{
  //
  // Configure OpenGL-capable visual.
  //

  Glib::RefPtr<Gdk::GL::Config> glconfig;

  // Try double-buffered visual
  glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB    |
                                     Gdk::GL::MODE_DEPTH  |
                                     Gdk::GL::MODE_DOUBLE);
  if (!glconfig)
    {
      std::cerr << "*** Cannot find the double-buffered visual.\n"
                << "*** Trying single-buffered visual.\n";

      // Try single-buffered visual
      glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB   |
                                         Gdk::GL::MODE_DEPTH);
      if (!glconfig)
        {
          std::cerr << "*** Cannot find any OpenGL-capable visual.\n";
          std::exit(1);
        }
    }

  // print frame buffer attributes.
  GLConfigUtil::examine_gl_attrib(glconfig);

  //
  // Set OpenGL-capability to the widget.
  //

  set_gl_capability(glconfig);
}

FontGLScene::~FontGLScene()
{
}

void FontGLScene::on_realize()
{
  // We need to call the base on_realize()
  Gtk::DrawingArea::on_realize();

  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return;

  //
  // Generate font display lists.
  //

  m_FontListBase = glGenLists (128);

  Pango::FontDescription font_desc(m_FontString);

  Glib::RefPtr<Pango::Font> font =
    Gdk::GL::Font::use_pango_font(font_desc, 0, 128, m_FontListBase);
  if (!font)
    {
      std::cerr << "*** Can't load font "
                << m_FontString
                << std::endl;
      Gtk::Main::quit();
    }

  Pango::FontMetrics font_metrics = font->get_metrics();

  m_FontHeight = font_metrics.get_ascent() + font_metrics.get_descent();
  m_FontHeight = PANGO_PIXELS(m_FontHeight);

  glClearColor(1.0, 1.0, 1.0, 1.0);
  glClearDepth(1.0);

  glViewport(0, 0, get_width(), get_height());

  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  glOrtho(0.0, get_width(),
          0.0, get_height(),
          -1.0, 1.0);

  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();

  glwindow->gl_end();
  // *** OpenGL END ***
}

bool FontGLScene::on_configure_event(GdkEventConfigure* event)
{
  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return false;

  glViewport(0, 0, get_width(), get_height());

  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  glOrtho(0.0, get_width(),
          0.0, get_height(),
          -1.0, 1.0);

  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();

  glwindow->gl_end();
  // *** OpenGL END ***

  return true;
}

bool FontGLScene::on_expose_event(GdkEventExpose* event)
{
  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return false;

  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  //
  // Draw some text.
  //
  glColor3f(0.0, 0.0, 0.0);
  for (int i = 2; i >= -2; --i)
    {
      glRasterPos2f(10.0, 0.5*get_height() + i*m_FontHeight);
      for (int j = ' '; j <= 'Z'; ++j)
        glCallList(m_FontListBase+j);
    }

  //
  // Show font description string.
  //
  glColor3f(1.0, 0.0, 0.0);
  glRasterPos2f(10.0, 10.0);
  glListBase(m_FontListBase);
  glCallLists(m_FontString.length(), GL_UNSIGNED_BYTE, m_FontString.c_str());

  // Swap buffers.
  if (glwindow->is_double_buffered())
    glwindow->swap_buffers();
  else
    glFlush();

  glwindow->gl_end();
  // *** OpenGL END ***

  return true;
}


//
// The application class.
//

class Font : public Gtk::Window
{
public:
  Font();
  virtual ~Font();

protected:
  // signal handlers:
  void on_button_quit_clicked();

protected:
  // member widgets:
  Gtk::VBox m_VBox;
  FontGLScene m_FontGLScene;
  Gtk::Button m_ButtonQuit;

};

Font::Font()
  : m_VBox(false, 0), m_ButtonQuit("Quit")
{
  //
  // Top-level window.
  //

  set_title("Font");

  // Get automatically redrawn if any of their children changed allocation.
  set_reallocate_redraws(true);

  add(m_VBox);

  //
  // Simple OpenGL scene using bitmap font.
  //

  m_FontGLScene.set_size_request(640, 240);

  m_VBox.pack_start(m_FontGLScene);

  //
  // Simple quit button.
  //

  m_ButtonQuit.signal_clicked().connect(
    sigc::mem_fun(*this, &Font::on_button_quit_clicked));

  m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0);

  //
  // Show window.
  //

  show_all();
}

Font::~Font()
{}

void Font::on_button_quit_clicked()
{
  Gtk::Main::quit();
}


//
// Main.
//

int main(int argc, char** argv)
{
  Gtk::Main kit(argc, argv);

  //
  // Init gtkglextmm.
  //

  Gtk::GL::init(argc, argv);

  //
  // Query OpenGL extension version.
  //

  int major, minor;
  Gdk::GL::query_version(major, minor);
  std::cout << "OpenGL extension version - "
            << major << "." << minor << std::endl;

  //
  // Instantiate and run the application.
  //

  Font font;

  kit.run(font);

  return 0;
}

Generated on Mon Feb 27 18:46:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/shapes_8cc-example.html0000644000175000001440000013131010400731257021001 00000000000000 gtkglextmm: shapes.cc

shapes.cc

Geometric object rendering example.

// -*- C++ -*-
/*
 * shapes.cc:
 * shapes demo.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cmath>

#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif

#include <GL/gl.h>
#include <GL/glu.h>

#include "shapes.h"

//
// Trackball utilities.
//
namespace Trackball {
  extern "C" {
    #include "trackball.h"
  }
}

#define DIG_2_RAD (G_PI / 180.0)
#define RAD_2_DIG (180.0 / G_PI)


//
// OpenGL frame buffer configuration utilities.
//

struct GLConfigUtil
{
  static void print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                              const char* attrib_str,
                              int attrib,
                              bool is_boolean);

  static void examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig);
};

//
// Print a configuration attribute.
//
void GLConfigUtil::print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                                   const char* attrib_str,
                                   int attrib,
                                   bool is_boolean)
{
  int value;

  if (glconfig->get_attrib(attrib, value))
    {
      std::cout << attrib_str << " = ";
      if (is_boolean)
        std::cout << (value == true ? "true" : "false") << std::endl;
      else
        std::cout << value << std::endl;
    }
  else
    {
      std::cout << "*** Cannot get "
                << attrib_str
                << " attribute value\n";
    }
}

//
// Print configuration attributes.
//
void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig)
{
  std::cout << "\nOpenGL visual configurations :\n\n";

  std::cout << "glconfig->is_rgba() = "
            << (glconfig->is_rgba() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_double_buffered() = "
            << (glconfig->is_double_buffered() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_stereo() = "
            << (glconfig->is_stereo() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_alpha() = "
            << (glconfig->has_alpha() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_depth_buffer() = "
            << (glconfig->has_depth_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_stencil_buffer() = "
            << (glconfig->has_stencil_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_accum_buffer() = "
            << (glconfig->has_accum_buffer() ? "true" : "false")
            << std::endl;

  std::cout << std::endl;

  print_gl_attrib(glconfig, "Gdk::GL::USE_GL",           Gdk::GL::USE_GL,           true);
  print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE",      Gdk::GL::BUFFER_SIZE,      false);
  print_gl_attrib(glconfig, "Gdk::GL::LEVEL",            Gdk::GL::LEVEL,            false);
  print_gl_attrib(glconfig, "Gdk::GL::RGBA",             Gdk::GL::RGBA,             true);
  print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER",     Gdk::GL::DOUBLEBUFFER,     true);
  print_gl_attrib(glconfig, "Gdk::GL::STEREO",           Gdk::GL::STEREO,           true);
  print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS",      Gdk::GL::AUX_BUFFERS,      false);
  print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE",         Gdk::GL::RED_SIZE,         false);
  print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE",       Gdk::GL::GREEN_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE",        Gdk::GL::BLUE_SIZE,        false);
  print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE",       Gdk::GL::ALPHA_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE",       Gdk::GL::DEPTH_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE",     Gdk::GL::STENCIL_SIZE,     false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE",   Gdk::GL::ACCUM_RED_SIZE,   false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE",  Gdk::GL::ACCUM_BLUE_SIZE,  false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false);

  std::cout << std::endl;
}


//
// Shapes classes.
//

namespace Shapes
{

  //
  // View class implementation.
  //

  const float View::NEAR_CLIP   = 5.0;
  const float View::FAR_CLIP    = 60.0;

  const float View::INIT_POS_X  = 0.0;
  const float View::INIT_POS_Y  = 0.0;
  const float View::INIT_POS_Z  = -10.0;

  const float View::INIT_AXIS_X = 1.0;
  const float View::INIT_AXIS_Y = 0.0;
  const float View::INIT_AXIS_Z = 0.0;
  const float View::INIT_ANGLE  = 0.0;

  const float View::INIT_SCALE  = 1.0;

  const float View::SCALE_MAX   = 2.0;
  const float View::SCALE_MIN   = 0.5;

  const float View::ANIMATE_THRESHOLD = 25.0;

  View::View()
    : m_Scale(INIT_SCALE),
      m_BeginX(0.0), m_BeginY(0.0),
      m_DX(0.0), m_DY(0.0),
      m_Animate(false)
  {
    reset();
  }

  View::~View()
  {
  }

  void View::frustum(int w, int h)
  {
    glViewport(0, 0, w, h);

    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();

    if (w > h) {
      float aspect = static_cast<float>(w) / static_cast<float>(h);
      glFrustum(-aspect, aspect, -1.0, 1.0, NEAR_CLIP, FAR_CLIP);
    } else {
      float aspect = static_cast<float>(h) / static_cast<float>(w);
      glFrustum(-1.0, 1.0, -aspect, aspect, NEAR_CLIP, FAR_CLIP);
    }

    glMatrixMode(GL_MODELVIEW);
  }

  void View::xform()
  {
    glTranslatef(m_Pos[0], m_Pos[1], m_Pos[2]);

    glScalef(m_Scale, m_Scale, m_Scale);

    float m[4][4];
    Trackball::add_quats(m_QuatDiff, m_Quat, m_Quat);
    Trackball::build_rotmatrix(m, m_Quat);
    glMultMatrixf(&m[0][0]);
  }

  void View::reset()
  {
    m_Pos[0] = INIT_POS_X;
    m_Pos[1] = INIT_POS_Y;
    m_Pos[2] = INIT_POS_Z;

    float sine = sin(0.5 * INIT_ANGLE * DIG_2_RAD);
    m_Quat[0] = INIT_AXIS_X * sine;
    m_Quat[1] = INIT_AXIS_Y * sine;
    m_Quat[2] = INIT_AXIS_Z * sine;
    m_Quat[3] = cos(0.5 * INIT_ANGLE * DIG_2_RAD);

    m_Scale = INIT_SCALE;

    m_QuatDiff[0] = 0.0;
    m_QuatDiff[1] = 0.0;
    m_QuatDiff[2] = 0.0;
    m_QuatDiff[3] = 1.0;
  }

  void View::enable_animation()
  {
    m_Animate = true;
  }

  void View::disable_animation()
  {
    m_Animate = false;

    m_QuatDiff[0] = 0.0;
    m_QuatDiff[1] = 0.0;
    m_QuatDiff[2] = 0.0;
    m_QuatDiff[3] = 1.0;
  }

  bool View::on_button_press_event(GdkEventButton* event,
                                   Scene* scene)
  {
    if (is_animate()) {
      if (event->button == 1) {
        disable_animation();
        scene->idle_remove();
        scene->invalidate();
      }
    } else {
      m_QuatDiff[0] = 0.0;
      m_QuatDiff[1] = 0.0;
      m_QuatDiff[2] = 0.0;
      m_QuatDiff[3] = 1.0;
    }

    m_BeginX = event->x;
    m_BeginY = event->y;

    // don't block
    return false;
  }

  bool View::on_button_release_event(GdkEventButton* event,
                                     Scene* scene)
  {
    if (!is_animate()) {
      if (event->button == 1 &&
          ((m_DX*m_DX + m_DY*m_DY) > ANIMATE_THRESHOLD)) {
        enable_animation();
        scene->idle_add();
      }
    }

    m_DX = 0.0;
    m_DY = 0.0;

    // don't block
    return false;
  }

  bool View::on_motion_notify_event(GdkEventMotion* event,
                                    Scene* scene)
  {
    float w = scene->get_width();
    float h = scene->get_height();
    float x = event->x;
    float y = event->y;
    bool redraw = false;

    // Rotation.
    if (event->state & GDK_BUTTON1_MASK) {
      Trackball::trackball(m_QuatDiff,
                           (2.0 * m_BeginX - w) / w,
                           (h - 2.0 * m_BeginY) / h,
                           (2.0 * x - w) / w,
                           (h - 2.0 * y) / h);

      m_DX = x - m_BeginX;
      m_DY = y - m_BeginY;

      redraw = true;
    }

    // Scaling.
    if (event->state & GDK_BUTTON2_MASK) {
      m_Scale = m_Scale * (1.0 + (y - m_BeginY) / h);
      if (m_Scale > SCALE_MAX)
        m_Scale = SCALE_MAX;
      else if (m_Scale < SCALE_MIN)
        m_Scale = SCALE_MIN;

      redraw = true;
    }

    m_BeginX = x;
    m_BeginY = y;

    if (redraw)
      scene->invalidate();

    // don't block
    return false;
  }


  //
  // Model class implementation.
  //

  const unsigned int Model::NUM_SHAPES = 9;

  const Model::ShapeType Model::SHAPE_CUBE         = CUBE;
  const Model::ShapeType Model::SHAPE_SPHERE       = SPHERE;
  const Model::ShapeType Model::SHAPE_CONE         = CONE;
  const Model::ShapeType Model::SHAPE_TORUS        = TORUS;
  const Model::ShapeType Model::SHAPE_TETRAHEDRON  = TETRAHEDRON;
  const Model::ShapeType Model::SHAPE_OCTAHEDRON   = OCTAHEDRON;
  const Model::ShapeType Model::SHAPE_DODECAHEDRON = DODECAHEDRON;
  const Model::ShapeType Model::SHAPE_ICOSAHEDRON  = ICOSAHEDRON;
  const Model::ShapeType Model::SHAPE_TEAPOT       = TEAPOT;

  const Model::MaterialProp Model::MAT_EMERALD = {
    {0.0215, 0.1745, 0.0215, 1.0},
    {0.07568, 0.61424, 0.07568, 1.0},
    {0.633, 0.727811, 0.633, 1.0},
    0.6
  };

  const Model::MaterialProp Model::MAT_JADE = {
    {0.135, 0.2225, 0.1575, 1.0},
    {0.54, 0.89, 0.63, 1.0},
    {0.316228, 0.316228, 0.316228, 1.0},
    0.1
  };

  const Model::MaterialProp Model::MAT_OBSIDIAN = {
    {0.05375, 0.05, 0.06625, 1.0},
    {0.18275, 0.17, 0.22525, 1.0},
    {0.332741, 0.328634, 0.346435, 1.0},
    0.3
  };

  const Model::MaterialProp Model::MAT_PEARL = {
    {0.25, 0.20725, 0.20725, 1.0},
    {1.0, 0.829, 0.829, 1.0},
    {0.296648, 0.296648, 0.296648, 1.0},
    0.088
  };

  const Model::MaterialProp Model::MAT_RUBY = {
    {0.1745, 0.01175, 0.01175, 1.0},
    {0.61424, 0.04136, 0.04136, 1.0},
    {0.727811, 0.626959, 0.626959, 1.0},
    0.6
  };

  const Model::MaterialProp Model::MAT_TURQUOISE = {
    {0.1, 0.18725, 0.1745, 1.0},
    {0.396, 0.74151, 0.69102, 1.0},
    {0.297254, 0.30829, 0.306678, 1.0},
    0.1
  };

  const Model::MaterialProp Model::MAT_BRASS = {
    {0.329412, 0.223529, 0.027451, 1.0},
    {0.780392, 0.568627, 0.113725, 1.0},
    {0.992157, 0.941176, 0.807843, 1.0},
    0.21794872
  };

  const Model::MaterialProp Model::MAT_BRONZE = {
    {0.2125, 0.1275, 0.054, 1.0},
    {0.714, 0.4284, 0.18144, 1.0},
    {0.393548, 0.271906, 0.166721, 1.0},
    0.2
  };

  const Model::MaterialProp Model::MAT_CHROME = {
    {0.25, 0.25, 0.25, 1.0},
    {0.4, 0.4, 0.4, 1.0},
    {0.774597, 0.774597, 0.774597, 1.0},
    0.6
  };

  const Model::MaterialProp Model::MAT_COPPER = {
    {0.19125, 0.0735, 0.0225, 1.0},
    {0.7038, 0.27048, 0.0828, 1.0},
    {0.256777, 0.137622, 0.086014, 1.0},
    0.1
  };

  const Model::MaterialProp Model::MAT_GOLD = {
    {0.24725, 0.1995, 0.0745, 1.0},
    {0.75164, 0.60648, 0.22648, 1.0},
    {0.628281, 0.555802, 0.366065, 1.0},
    0.4
  };

  const Model::MaterialProp Model::MAT_SILVER = {
    {0.19225, 0.19225, 0.19225, 1.0},
    {0.50754, 0.50754, 0.50754, 1.0},
    {0.508273, 0.508273, 0.508273, 1.0},
    0.4
  };

  Model::Model()
    : m_ListBase(0),
      m_CurrentShape(TEAPOT),
      m_CurrentMat(&MAT_SILVER)
  {
  }

  Model::~Model()
  {
  }

  void Model::init_gl(Glib::RefPtr<Gdk::GL::Drawable>& gldrawable)
  {
    /* Shape display lists */
    m_ListBase = glGenLists(NUM_SHAPES);

    /* Cube */
    glNewList(m_ListBase + CUBE, GL_COMPILE);
      gldrawable->draw_cube(true, 1.5);
    glEndList();

    /* Sphere */
    glNewList(m_ListBase + SPHERE, GL_COMPILE);
      gldrawable->draw_sphere(true, 1.0, 30, 30);
    glEndList();

    /* Cone */
    glNewList(m_ListBase + CONE, GL_COMPILE);
      glPushMatrix();
        glTranslatef(0.0, 0.0, -1.0);
        gldrawable->draw_cone(true, 1.0, 2.0, 30, 30);
      glPopMatrix();
    glEndList();

    /* Torus */
    glNewList(m_ListBase + TORUS, GL_COMPILE);
      gldrawable->draw_torus(true, 0.4, 0.8, 30, 30);
    glEndList();

    /* Tetrahedron */
    glNewList(m_ListBase + TETRAHEDRON, GL_COMPILE);
      glPushMatrix();
        glScalef(1.2, 1.2, 1.2);
        gldrawable->draw_tetrahedron(true);
      glPopMatrix();
    glEndList();

    /* Octahedron */
    glNewList(m_ListBase + OCTAHEDRON, GL_COMPILE);
      glPushMatrix();
        glScalef(1.2, 1.2, 1.2);
        gldrawable->draw_octahedron(true);
      glPopMatrix();
    glEndList();

    /* Dodecahedron */
    glNewList(m_ListBase + DODECAHEDRON, GL_COMPILE);
      glPushMatrix();
        glScalef(0.7, 0.7, 0.7);
        gldrawable->draw_dodecahedron(true);
      glPopMatrix();
    glEndList();

    /* Icosahedron */
    glNewList(m_ListBase + ICOSAHEDRON, GL_COMPILE);
      glPushMatrix();
        glScalef(1.2, 1.2, 1.2);
        gldrawable->draw_icosahedron(true);
      glPopMatrix();
    glEndList();

    /* Teapot */
    glNewList(m_ListBase + TEAPOT, GL_COMPILE);
      gldrawable->draw_teapot(true, 1.0);
    glEndList();
  }

  void Model::draw(Glib::RefPtr<Gdk::GL::Drawable>& gldrawable)
  {
    // Init GL context.
    static bool initialized = false;
    if (!initialized) {
      init_gl(gldrawable);
      initialized = true;
    }

    // Render shape
    glMaterialfv(GL_FRONT, GL_AMBIENT, m_CurrentMat->ambient);
    glMaterialfv(GL_FRONT, GL_DIFFUSE, m_CurrentMat->diffuse);
    glMaterialfv(GL_FRONT, GL_SPECULAR, m_CurrentMat->specular);
    glMaterialf(GL_FRONT, GL_SHININESS, m_CurrentMat->shininess * 128.0);
    glCallList(m_ListBase + m_CurrentShape);
  }


  //
  // Scene class implementation.
  //

  const float Scene::CLEAR_COLOR[4] = { 0.5, 0.5, 0.8, 1.0 };
  const float Scene::CLEAR_DEPTH    = 1.0;

  const float Scene::LIGHT0_POSITION[4] = { 0.0, 3.0, 3.0, 0.0 };
  const float Scene::LIGHT0_AMBIENT[4]  = { 0.0, 0.0, 0.0, 1.0 };
  const float Scene::LIGHT0_DIFFUSE[4]  = { 1.0, 1.0, 1.0, 1.0 };

  const float Scene::LIGHT_MODEL_AMBIENT[4]       = { 0.2, 0.2, 0.2, 1.0 };
  const float Scene::LIGHT_MODEL_LOCAL_VIEWER[1]  = { 0.0 };

  Scene::Scene()
    : m_Menu(0)
  {
    //
    // Configure OpenGL-capable visual.
    //

    Glib::RefPtr<Gdk::GL::Config> glconfig;

    // Try double-buffered visual
    glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB    |
                                       Gdk::GL::MODE_DEPTH  |
                                       Gdk::GL::MODE_DOUBLE);
    if (!glconfig) {
      std::cerr << "*** Cannot find the double-buffered visual.\n"
                << "*** Trying single-buffered visual.\n";

      // Try single-buffered visual
      glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB   |
                                         Gdk::GL::MODE_DEPTH);
      if (!glconfig) {
        std::cerr << "*** Cannot find any OpenGL-capable visual.\n";
        std::exit(1);
      }
    }

    // print frame buffer attributes.
    GLConfigUtil::examine_gl_attrib(glconfig);

    //
    // Set OpenGL-capability to the widget.
    //

    set_gl_capability(glconfig);

    //
    // Add events.
    //
    add_events(Gdk::BUTTON1_MOTION_MASK    |
               Gdk::BUTTON2_MOTION_MASK    |
               Gdk::BUTTON_PRESS_MASK      |
               Gdk::BUTTON_RELEASE_MASK    |
               Gdk::VISIBILITY_NOTIFY_MASK);

    // View transformation signals.
    signal_button_press_event().connect(
      sigc::bind(sigc::mem_fun(m_View, &View::on_button_press_event), this));
    signal_button_release_event().connect(
      sigc::bind(sigc::mem_fun(m_View, &View::on_button_release_event), this));
    signal_motion_notify_event().connect(
      sigc::bind(sigc::mem_fun(m_View, &View::on_motion_notify_event), this));

    //
    // Popup menu.
    //

    m_Menu = create_popup_menu();
  }

  Scene::~Scene()
  {
  }

  void Scene::on_realize()
  {
    // We need to call the base on_realize()
    Gtk::DrawingArea::on_realize();

    //
    // Get GL::Drawable.
    //

    Glib::RefPtr<Gdk::GL::Drawable> gldrawable = get_gl_drawable();

    //
    // GL calls.
    //

    // *** OpenGL BEGIN ***
    if (!gldrawable->gl_begin(get_gl_context()))
      return;

    glClearColor(CLEAR_COLOR[0], CLEAR_COLOR[1], CLEAR_COLOR[2], CLEAR_COLOR[3]);
    glClearDepth(CLEAR_DEPTH);

    glLightfv(GL_LIGHT0, GL_POSITION, LIGHT0_POSITION);
    glLightfv(GL_LIGHT0, GL_AMBIENT,  LIGHT0_AMBIENT);
    glLightfv(GL_LIGHT0, GL_DIFFUSE,  LIGHT0_DIFFUSE);
    glLightModelfv(GL_LIGHT_MODEL_AMBIENT, LIGHT_MODEL_AMBIENT);
    glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, LIGHT_MODEL_LOCAL_VIEWER);

    glFrontFace(GL_CW);
    glEnable(GL_LIGHTING);
    glEnable(GL_LIGHT0);
    glEnable(GL_AUTO_NORMAL);
    glEnable(GL_NORMALIZE);
    glEnable(GL_DEPTH_TEST);
    glDepthFunc(GL_LESS);

    gldrawable->gl_end();
    // *** OpenGL END ***
  }

  bool Scene::on_configure_event(GdkEventConfigure* event)
  {
    //
    // Get GL::Drawable.
    //

    Glib::RefPtr<Gdk::GL::Drawable> gldrawable = get_gl_drawable();

    //
    // GL calls.
    //

    // *** OpenGL BEGIN ***
    if (!gldrawable->gl_begin(get_gl_context()))
      return false;

    m_View.frustum(get_width(), get_height());

    gldrawable->gl_end();
    // *** OpenGL END ***

    return true;
  }

  bool Scene::on_expose_event(GdkEventExpose* event)
  {
    //
    // Get GL::Drawable.
    //

    Glib::RefPtr<Gdk::GL::Drawable> gldrawable = get_gl_drawable();

    //
    // GL calls.
    //

    // *** OpenGL BEGIN ***
    if (!gldrawable->gl_begin(get_gl_context()))
      return false;

    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

    glLoadIdentity();

    // View transformation.
    m_View.xform();

    // Logo model.
    m_Model.draw(gldrawable);

    // Swap buffers.
    if (gldrawable->is_double_buffered())
      gldrawable->swap_buffers();
    else
      glFlush();

    gldrawable->gl_end();
    // *** OpenGL END ***

    return true;
  }

  bool Scene::on_button_press_event(GdkEventButton* event)
  {
    if (event->button == 3) {
      m_Menu->popup(event->button, event->time);
      return true;
    }

    // don't block
    return false;
  }

  bool Scene::on_unmap_event(GdkEventAny* event)
  {
    idle_remove();

    return true;
  }

  bool Scene::on_visibility_notify_event(GdkEventVisibility* event)
  {
    if (m_View.is_animate()) {
      if (event->state == GDK_VISIBILITY_FULLY_OBSCURED)
        idle_remove();
      else
        idle_add();
    }

    return true;
  }

  bool Scene::on_idle()
  {
    // Invalidate whole window.
    invalidate();
    // Update window synchronously (fast).
    update();

    return true;
  }

  void Scene::idle_add()
  {
    if (!m_ConnectionIdle.connected())
      m_ConnectionIdle = Glib::signal_idle().connect(
        sigc::mem_fun(*this, &Scene::on_idle), GDK_PRIORITY_REDRAW);
  }

  void Scene::idle_remove()
  {
    if (m_ConnectionIdle.connected())
      m_ConnectionIdle.disconnect();
  }

  void Scene::change_shape(Model::ShapeType shape)
  {
    m_Model.set_shape(shape);
    m_View.reset();
  }

  void Scene::change_material(const Model::MaterialProp* material)
  {
    m_Model.set_material(material);
  }

  Gtk::Menu* Scene::create_popup_menu()
  {

    // Shapes submenu
    Gtk::Menu* shapes_menu = Gtk::manage(new Gtk::Menu());
    {
      Gtk::Menu::MenuList& menu_list = shapes_menu->items();

      // Cube
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Cube",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_shape),
                   Model::SHAPE_CUBE)));

      // Sphere
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Sphere",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_shape),
                   Model::SHAPE_SPHERE)));

      // Cone
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Cone",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_shape),
                   Model::SHAPE_CONE)));

      // Torus
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Torus",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_shape),
                   Model::SHAPE_TORUS)));

      // Tetrahedron
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Tetrahedron",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_shape),
                   Model::SHAPE_TETRAHEDRON)));

      // Octahedron
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Octahedron",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_shape),
                   Model::SHAPE_OCTAHEDRON)));

      // Dodecahedron
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Dodecahedron",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_shape),
                   Model::SHAPE_DODECAHEDRON)));

      // Icosahedron
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Icosahedron",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_shape),
                   Model::SHAPE_ICOSAHEDRON)));

      // Teapot
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Teapot",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_shape),
                   Model::SHAPE_TEAPOT)));

    }

    // Materials submenu
    Gtk::Menu* materials_menu = Gtk::manage(new Gtk::Menu());
    {
      Gtk::Menu::MenuList& menu_list = materials_menu->items();

      // Emerald
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Emerald",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_EMERALD)));

      // Jade
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Jade",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_JADE)));

      // Obsidian
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Obsidian",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_OBSIDIAN)));

      // Pearl
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Pearl",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_PEARL)));

      // Ruby
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Ruby",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_RUBY)));

      // Turquoise
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Turquoise",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_TURQUOISE)));

      // Brass
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Brass",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_BRASS)));

      // Bronze
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Bronze",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_BRONZE)));

      // Chrome
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Chrome",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_CHROME)));

      // Copper
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Copper",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_COPPER)));

      // Gold
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Gold",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_GOLD)));

      // Silver
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Silver",
        sigc::bind(sigc::mem_fun(*this, &Scene::change_material),
                   &Model::MAT_SILVER)));

    }

    // Root popup menu
    Gtk::Menu* menu = Gtk::manage(new Gtk::Menu());
    {
      Gtk::Menu::MenuList& menu_list = menu->items();

      // Shapes submenu
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Shapes",
                                                      *shapes_menu));

      // Materials submenu
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Materials",
                                                      *materials_menu));

      // Quit
      menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Quit",
        sigc::ptr_fun(&Gtk::Main::quit)));
    }

    return menu;
  }


  //
  // Application class implementation.
  //

  const Glib::ustring Application::APP_NAME = "Shapes";

  Application::Application()
    : m_VBox(false, 0), m_ButtonQuit("Quit")
  {
    //
    // Top-level window.
    //

    set_title(APP_NAME);

    // Get automatically redrawn if any of their children changed allocation.
    set_reallocate_redraws(true);

    add(m_VBox);

    //
    // Scene.
    //

    m_Scene.set_size_request(300, 300);

    m_VBox.pack_start(m_Scene);

    //
    // Simple quit button.
    //

    m_ButtonQuit.signal_clicked().connect(
      sigc::mem_fun(*this, &Application::on_button_quit_clicked));

    m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0);

    //
    // Show window.
    //

    show_all();
  }

  Application::~Application()
  {
  }

  void Application::on_button_quit_clicked()
  {
    Gtk::Main::quit();
  }

  bool Application::on_key_press_event(GdkEventKey* event)
  {
    switch (event->keyval) {
    case GDK_Escape:
      Gtk::Main::quit();
      break;
    default:
      return true;
    }

    m_Scene.invalidate();

    return true;
  }


} // namespace Shapes


//
// Main.
//

int main(int argc, char** argv)
{
  Gtk::Main kit(argc, argv);

  //
  // Init gtkglextmm.
  //

  Gtk::GL::init(argc, argv);

  //
  // Query OpenGL extension version.
  //

  int major, minor;
  Gdk::GL::query_version(major, minor);
  std::cout << "OpenGL extension version - "
            << major << "." << minor << std::endl;

  //
  // Instantiate and run the application.
  //

  Shapes::Application application;

  kit.run(application);

  return 0;
}

Generated on Mon Feb 27 18:46:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/namespacemembers_eval.html0000644000175000001440000002770410400731257021661 00000000000000 gtkglextmm: Class Members
a | b | c | d | e | f | g | h | l | m | n | p | r | s | t | u | v | w | x

- a -

- b -

- c -

- d -

- e -

- f -

- g -

- h -

- l -

- m -

- n -

- p -

- r -

- s -

- t -

- u -

- v -

- w -

- x -


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Font-members.html0000644000175000001440000000450210400731256022666 00000000000000 gtkglextmm: Member List

Gdk::GL::Font Member List

This is the complete list of members for Gdk::GL::Font, including all inherited members.

use_pango_font(const Pango::FontDescription &desc, int first, int count, int list_base)Gdk::GL::Font [static]
use_pango_font(const Glib::RefPtr< const Gdk::Display > &display, const Pango::FontDescription &desc, int first, int count, int list_base)Gdk::GL::Font [static]
~Font()=0Gdk::GL::Font [pure virtual]


Generated on Mon Feb 27 18:47:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/config_8h__dep__incl.md50000644000175000001440000000004010400731256021042 00000000000000fc777599409d3eb66500858bea57159egtkglextmm-1.2.0/docs/reference/html/config_8h__dep__incl.map0000644000175000001440000000042610400731256021142 00000000000000base referer rect $gdkglmm_8h.html 779,135 865,159 rect $context_8h.html 187,183 323,207 rect $drawable_8h.html 374,134 521,158 rect $pixmap_8h.html 570,159 709,183 rect $window_8h.html 570,207 709,231 rect $widget_8h.html 757,233 887,257 rect $gtkglmm_8h.html 937,173 1019,197 gtkglextmm-1.2.0/docs/reference/html/config_8h__dep__incl.png0000644000175000001440000001472410400731256021157 00000000000000‰PNG  IHDRtFSöº*PLTEþÿÿ§§§oooÃÃÃo???¿¿¿___ßßߟŸŸÿÿÿ÷pN€tRNS@æØfXIDATxœíKoÜ8¶ÇçƒÜ0á.½l/{Òɤ–¹0ö2·=½ŒÓ“”—‹6ìe¦c·´œA€Ä»¶]©TídWY.~—KR/J¢TzœC‘"ÿ,GUÖ‹?sø:üq²\úœ†–CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—CÀz9¬—C@ÐŽTC_¶Lµ…=vlG h\¼ü‹»Ø×3€lF h_¦þD{Y‹@÷²V"Ðßµ 뀋삑ĈV!ØÁXƒV½.0ÞXrµÞpS0v%­:ÉŒ¥m9æ:„‘" æå/ÈPS0BlÈ L„`\ òò®À8ƃ€. vÆA0ôêÄ3 óÜöKdf# cñG2c>òÛ"c 0]"¿-2ã0¤ø#Qèø7’˜‚€¹ƒxÝ/[w‚ áÖüâµE .{íÍhéÍ€–ò5‘Ö h‡Àh^ýœtf@+œ¾t¦ bÌ4f@`‹ë¼Ð@1ú2   åße€€Ž‚¶ è€è°»žÅˆˆ‚® dûœ1 š#4r‡F”ù] z200` zq(Ç@\ƒ"Ö|Žß€p ¥0 ¬7®7Zº‚á€ójŸk¯áJ:º‚¡0ÈÈÔ9LÔÐ „€©& înACW0 PoîðãZ»ý\Á@ÙnmÆã´r Ú™«èõ0›b Ùe€\¨Û£$ 1ÐͨF¬àt$€k{Œ¨Ù•+F`ü0mø¦Ùµ«EîæõzŠÕõZéå ”"G€^±J•¡.U.• ½H%÷ :1 Àr3‡&YJ:P‡ f¸QåÈ`ø†ÍDÊ€´ÝfDE ta@˜gåMP„hüf¦ˆ%z0 Ø>9ØLKÈËÛª,0Ђ%Àú¸‚S‹SLAl6CâªàZ|z4“ I`ÀΦş™ˆ0Y0h8$r ¬ëtä@·ä &æÆx[nv¼q @Z6‡|kþµ€'@h†çå¿^°K¶)~²LweŸDG®Š6bzôš!ðt@Xi³Mclµ1íxñ! cø‹ܳá’m"0è“á<*ã0_ÔE‹(TÀži9UÛËÆãì‹8ûâ‘ëoÓŸ¦ÇÞ§»Ã;rIÎßÏÃå%¡…·'ŸfÇÏÂ;rK·á·é…Gô±~º‹¿8µåhèÎ)e ÉÆë«—¿ükê­^„w_æÞñþžÿyõâEàóŠ~ÞÜ=Ì_?Ü<,é6¼¹ú§G~½zN+ýb|$„„m4Zú¹y¡”8!ÞÇk²ïùô¡ÍÉÜ#㟭BŠÀÙš~ΉÎ÷WG¿Mè–þoÏ£_Ü£•~Q8ºªŸG„5\«éûùrõŽš¶«%·g!7my‹,Dº¿T5³´v…/ñßçdãù4øþBD`B —"À6Ýÿïçóõ«W¯®é–þÏóÂÅbÁÞ¬R+TÓÁ>f†ëðǽùòµOME€Ù³+nÚr ú²ðèæ¶Lá„oí¤Và€ZðV@à÷kn¾Ñ µKrKæG«sŸn#+°$aW¸àV€]ò{ò0¿›³›¢°;¹â7%Z,ƒhïä ’ï±¯Æ±À9È¡€À¥¿zq9¿ú<X†·«ùÓÍÃŒmi,ð–ÇO9†]n”#À לÆ7Ï™i+"@ÌC íóÜ^üL»ÉwÙ;›¯¬ßd|àŽ5¼!¼F°$Go wôÝF5‚ËÅÙÆ/>V ¬À µKï@bÌC hl„v£‡ñc±âéÁ[<+-ˆ™áâ±Àꔚ¶E‹*,š»6m2b(V ‘}“>ÏIãKдF@ÞF5‚ ²ÅM@ËUßHÒ4´x!ýêùßü¸ƒ6'¨`¸*L—)4*×–åO‚Ýè!{ UT eŠÎ›8‚I¼·Â´q‚@#оüIBÖ.ˆA$ÔÎUŠR8–®*ÓÿìÅ„@ÇTüv’H@+0Q%4º“6=…˜À¶Ú}×\3ìÏøƒãÿw˜Yl…~ó =UrÂVÅð•¢ Poº' eÇè5½Xh¬Ò›`úœÚ0ºËë“-6ÈÓU1ÐþÖSIXÁï$#û… l} ©²£ ô÷–CF p5…Ü‹ÞÝ&úœs™>Õ¬¥ÄÎlâŽR¼#|¥¹’á-`` Píz^önƒÊf§3D½âŸF¯- K. §k;›( % À@ ªœú^r°½|»žBfZ;U[%ÚN@{í$-åW¨þÌn‹Õzôõr÷ ädô|ÉÑñ# õFkKÐ먦„€¤.GBïQÚH. ¢®U{ŒÞ22¥(°¢¯!P‚„Ç v+_ˆÁòþJ@ò‚m~è÷à(•HsKPY€ Ú¶"ŒìMuÉ~xɦ¤l¸‚øT9= ÀG¦„v+l'X혒TëJü‡ýð¢Íª|¼Z0Ú¡;?x aH1äQ&ÄÑ£SìHÎP‡À„ýð¢DuàäËêú6€#¿=˜šuÔ¸*ٺбä匊1ß/ í/بE/¼ð>}%Þû§w|÷Óô-a{ýÖqt2XQÝ|"*0&`'z?Kw¿œl‰2Ž€0¾_Úÿtýúê¥ï=]{/>{ä×?òÝ›ã}Ÿí!!þÏTB1i^—Ú8Â%ÀÌ+æM¡»åç†Ñ§W¼`Ž€0¾_Î÷èŸÏ÷}Ï8õÈÇ·Ñöí¤{¨ã UàõH“.’î»âsÃéÕ-rÆÆ÷ ܳÁþ¾wO÷…K¬æOߟûláÿå*"€œ9“‚]áþˆm=­±žR*r)Âø~Ï„[Ï$¶Ï#6›Ø T"€jø]4=صA#ÝÀkš¢Ü¼Šõ Çct|¿€À›Çä{g$Šž}ü1šÉrpÄcëhÑ÷Œ€@ ù­«²p¯Ø…ƒ·Aáªó5òV@`Âç1yÿ{O§Oç»W³×§lϼ”õ@ o)‰mžÅ>Ì)ò‡æTMLŠû—[ { ‚o†E íÃìw£yÃ_èkE]’$ÿŽ&Ž`"ûj<Ø¿%*Ò¨‰@r½J©ÔéQ4[§Êý/vò‰Iñ`ÿËÒ…=v!°[ØvP¹…«0œy´îì=… ü€xÆÈ"<J–ÓHϸöU#¶mÿ\Þä«,ŒN þÇt6Ê(ù6#c|W±[v < q'L'W~ ›«>=ñÈáeš»ŠD? ]Xt_)ñ ¦ý%Î,MbÑW!Àz·¨X½ÈrWEÝ\~¡  ·I¯¥¯„ƒ¨0£ìÉøñ6F¬Z…ƒã+Í[C8ò³¬5~ô³Ð…‰Ànn“^K_ñƒDy¦”¼C˜³K•Ü@–½Šú÷Yîª%’%—àà3¾T<@ÌÙÅJˆ­@x+±H”Ý Aa¾’¢ÙÅxÇW´Âbš½Šúa–»*Fà ²D@Eˆ´NŠ÷ªª1YàþÖ#ë¿¥¹«bæHÈŒ Mû—JÒÞ­ºÜU2# ˰J‡/‘Ø|±%+må CC@ÕJ»ùìUu¹« 7 ×! ŽÃµNºcÞåÀÍS¶0X§RŠ@Ú»U—» Ä ^ö#??É®È<•€@€— J>‰«¨ùAz ã¢/ÕÛ‹yöeãðWÓ3r¹¸` ÷§'‹‹=ÿÓzv 6bb¥„«L €„€²ׇ@@Ô)ÕŽÃ}õœürõŒ~DƒÕ_¯ž?žp+6bâ¬TëZp^WUF`â*S^̳/‡B~g‹„°„û´¾BöŸ9Õãð.x T–Jо|‹Å<û²qø‘ß÷¢X‹ú‘ïCB Q7Ù²¹JhRŽ@Oõ‘Üb1Ͼlþ ù[Þj±$aø D:èV:cKA‹¬{¤Q™'­÷²>œbž}Ù8ü$àÐXàþ ‹jÆá÷¸àÆAt‡ÔŽlÞ2’Ú^{¢ª$jÁ—ž¸˜g_6ÿqÕèG÷·—‹³Oä“ÿò z~WµK [`4{ŽZÓÛ(_côÛŽüÄù–Ê‚ê.Ké©ö ä@KLeŽk•ÓJy Ìä7ù‰‹yösªk¸,¤:5-Bº•ËŸµ?Ow²ûª^Y¬˜g?§º†ËòA:ª{£ +Pˆ@‡«îŽ@Ön_Ý‚>v°úõ,À™ä<÷¢:œ¥3Yï]EæN0ô»!пMÌ@/ P£.·Ü¬Ý>ý-?”ÝòPVæ‰C1 Îtr^]òðêa2x0»aÀ±ƒÍù†ó»ÁwˆÿPTþ¤£ïêŠ@füƒtµ…¸‚(|  O#p—œBLu‹`;" L´‰~ã¥Tª´šMTù5ì+n°äq[†@·»çô.¦8À1xMŽPüLf!б ƒÖ ŽH[ŽŽTüLf!Ðñ!Y"+ +hÄâg2 ®mY@`퉵“†œÂNäâg2 ®Ï VéîZ+-{¡9JAUË$:7h"€ªêüc˜¨Ÿ÷yŠ]¢i7¨":?’"§§ùÂ}a?6|“èø‡¨²7Kë|p7²Mñ} ›/H0 Ý{µ¶!ðõ%/k¾It¿8¬×j¹-ªC`Â~Ö#îc·QYߊûÖ‰…( € HzZ V$Ú¦¨DëçA< ïȭǦ=Ð/-/÷ÇÞñæ€%u‰¢]Ûß‹é›ðâtñæçGÿ'ÿèôlõfµx¿¸¾\Ï6ïož¦³ë§Ù£4ØÐú¼ù>U¯o^R+0»øç9·lsĬÀF´);©ÚŒÓÞ)ªW)bPǵó žnf„#ÇäËdÿôI»}ãp1¸æ±Àâ€ÀûéÝÞûõìišÄ+ºsq.³år­ük NA¾F ŸAîè?Ž@\# ›cúÏW„€tq½V’Ôæ‡' ^#x ›¨F!Àkk¥ã¤ëKG@‡yÕªšÂÑ\?, M‘n¦³òÀâNvõôF¤ qÙ‡ÊæAÔ àfEGðÔìoÝK\%!vó €ò—p£‚# {2×Ó­;î\õâõlATÄLé)즾€ `E¿•S8ÚiÜ0õñ–0V#Òƒ GÓpVŒ}±Ò•¨QCœxKc]lA€téÈ‚™MÄžÎN2ÏF(³Þ“,€¦)u™J’´f nÊTOµ2È) +o²mïö ‡N³‰J(Ä£¦ÀæÊŸ$8r|ƒVñER“랣­@¹>ŠóbjK£úݘ@©Ww6žª1À¿Ãà5œÝüÿò‚¤øjµÄ<Ö"õÈ2²äBSˆTpe ²pªð‚ïãþ™øy~©QõÈ5DrA³éDJ@PáÓJ+ §z: ¬Øù†ÏRI?§Å•+ÓO(5ÁmieáT÷ì‡mHô{¬¹VDJ‹½2 ­‰Ê§ ÞQ~eáÿ¾d{=rÉ'¥ü9œ}a;Èù×ÂZ0×Ñ;y7ñTÔ}¦‡„Û@œÄš_YX\Tø3Ûë‘Ï|RŠ·:ù×”íx<ûp‘[«CR·ÉŸÛ8Ì@ñ.pzüó+ ‹ ž±½9ã“R¼õ5Ù¾öpбVÀzJÖwSªŠ²ÎFGƒÀ_YXD`Âö²«lRŠGÿãñ‹Åc¡ˆUIDÆ`¶s,*ßîÉ_¤+ ü~Í­ÀÓ5Ÿ”â­b+@ˆ¯+"#0ƒZ Õb§È¯,, pé³½Þ£Ï'¥Ä±Àe À¯ÕºBYáWC¥êò+ ÿ9CàßëÑ:!›”â%5‚ðü+ÊZ@ëJ5SjW”ÏS)í•~M+Æd”]Íz¥½Ò¯é…€à? 7ª—’“ÏS)í•}M/Ä'g`Ÿ± uFÌøžÂ¢Fâ Ú°Ñ!0ŽˆPe/Çè‡PyåãC` f@é…ñ 24"TÛÙ½Yì|×{Ž €p0”µL—á¶€䬨&·×J*¯Y›œ, ä_"mî°©0sé¥Õ8KHòÁ”a (,} $_ªé[¥¬T4ò±@(Ô© MªªX°²Nõ&JÝk©ºNF \«ÒÎêI¤ª`´ŠÁ" i]Óe(9MÁ" m\Ñ÷æ‰2 ó3P€€Æu5>@¿J@NÀTô³è)ASÿ@ûò'àÔô´hVCTÀ¤æ ‘:ôЉÐÐß$‚F ~Ð…. [$cÊŸ¨F@Ð}€7Ù\Ðlv1øû|†D™Ô#0på¹€4¬ùl8MF`÷œ0)H5CA€êᱎ@Ó1˜ê!À-!ãB€Tƒ! l ô±àh1C݃ÃÀÈ Õ ¨‚̣㠖2ð!@-"sC€T´˜‡û‘0ÙÄB@ Ã¼,´rB¦kè‚ÎãDM%mä Ra ÐmŠ6°QEu/#ˆ2a Ðu†.àƒEµÑ#q‰Pèž©äé:ÐJ(ô™¨ß×8ÐVÚ!ÐkÈîh­‘9€D8ôÍÙÓe±+ä²Fi¸p€HÙÒj•iìűFj¸JÝÕ(Ï?úRRã5\HfnªZó¡ÛZ]Î?^À……Bz‰>«€ô8§’ó ),ÌM?™É†ò'ˆœ…–Ë’ò'˜”i¨${ÊŸ`"`,V•?AEÀHl+‚‹€nóÉ·IY=C/¡"`P RK‹Ÿ #°¸ø™°~"q½,/~&tô Wü\øh"÷,%è¸âÏK 1àŠ¿$5hŽ¼ã¿£! APhN8ÅR…ÀÐ ¸ò¯”2†¬8P'u :°E*"(tå¿UJP8ÐDjPÉ€s ¥eA¡+ÿÆR€’ìL®û§Ô#€º ¥†@1K“ Úk°BWþ]4!s5À!35 p!«ôÑÀ„ÎôÔ°ô œè­¡èUˆÎ@hx:Væ[¥"rª‘¶¸1ÀÒÒüµvÅ,}`ª§ P—cÈ&é…‘'‹÷¸—EÚ!Jur1k¥/NŠä°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ëå°^ÿ«*Yã~r¡IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/namespacemembers_enum.html0000644000175000001440000000557610400731257021701 00000000000000 gtkglextmm: Class Members


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Context-members.html0000644000175000001440000001406410400731256023410 00000000000000 gtkglextmm: Member List

Gdk::GL::Context Member List

This is the complete list of members for Gdk::GL::Context, including all inherited members.

Context(const Glib::RefPtr< const Drawable > &gldrawable, const Glib::RefPtr< const Context > &share_list, bool direct=true, int render_type=RGBA_TYPE)Gdk::GL::Context [protected]
Context(const Glib::RefPtr< const Drawable > &gldrawable, bool direct=true, int render_type=RGBA_TYPE)Gdk::GL::Context [explicit, protected]
copy(const Glib::RefPtr< const Context > &src, unsigned long mask=GL_ALL_ATTRIB_BITS)Gdk::GL::Context
create(const Glib::RefPtr< const Drawable > &gldrawable, const Glib::RefPtr< const Context > &share_list, bool direct=true, int render_type=RGBA_TYPE)Gdk::GL::Context [static]
create(const Glib::RefPtr< const Drawable > &gldrawable, bool direct=true, int render_type=RGBA_TYPE)Gdk::GL::Context [static]
get_current()Gdk::GL::Context [static]
get_gl_config()Gdk::GL::Context
get_gl_config() const Gdk::GL::Context
get_gl_drawable()Gdk::GL::Context
get_gl_drawable() const Gdk::GL::Context
get_render_type() const Gdk::GL::Context
get_share_list()Gdk::GL::Context
get_share_list() const Gdk::GL::Context
gobj()Gdk::GL::Context [inline]
gobj() const Gdk::GL::Context [inline]
gobj_copy()Gdk::GL::Context
is_direct() const Gdk::GL::Context
wrap(GdkGLContext *object, bool take_copy=false)Gdk::GL::Context [related]
~Context()Gdk::GL::Context [virtual]


Generated on Mon Feb 27 18:47:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/namespaces.html0000644000175000001440000000374110400731257017455 00000000000000 gtkglextmm: Namespace Index

gtkglextmm Namespace List

Here is a list of all namespaces with brief descriptions:
Gdk
Gdk::GL
Glib
Gtk
Gtk::GL

Generated on Mon Feb 27 18:47:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Drawable-members.html0000644000175000001440000001634110400731256023505 00000000000000 gtkglextmm: Member List

Gdk::GL::Drawable Member List

This is the complete list of members for Gdk::GL::Drawable, including all inherited members.

add_interface(GType gtype_implementer)Gdk::GL::Drawable [static]
draw_cone(bool solid, double base, double height, int slices, int stacks)Gdk::GL::Drawable [static]
draw_cube(bool solid, double size)Gdk::GL::Drawable [static]
draw_dodecahedron(bool solid)Gdk::GL::Drawable [static]
draw_icosahedron(bool solid)Gdk::GL::Drawable [static]
draw_octahedron(bool solid)Gdk::GL::Drawable [static]
draw_sphere(bool solid, double radius, int slices, int stacks)Gdk::GL::Drawable [static]
draw_teapot(bool solid, double scale)Gdk::GL::Drawable [static]
draw_tetrahedron(bool solid)Gdk::GL::Drawable [static]
draw_torus(bool solid, double inner_radius, double outer_radius, int nsides, int rings)Gdk::GL::Drawable [static]
get_current()Gdk::GL::Drawable [static]
get_gl_config()Gdk::GL::Drawable
get_gl_config() const Gdk::GL::Drawable
get_size(int &width, int &height)Gdk::GL::Drawable
gl_begin(const Glib::RefPtr< Context > &glcontext)Gdk::GL::Drawable
gl_end()Gdk::GL::Drawable
gobj()Gdk::GL::Drawable [inline]
gobj() const Gdk::GL::Drawable [inline]
is_double_buffered() const Gdk::GL::Drawable
make_current(const Glib::RefPtr< Context > &glcontext)Gdk::GL::Drawable
swap_buffers()Gdk::GL::Drawable
wait_gdk()Gdk::GL::Drawable
wait_gl()Gdk::GL::Drawable
wrap(GdkGLDrawable *object, bool take_copy=false)Gdk::GL::Drawable [related]
~Drawable()Gdk::GL::Drawable [virtual]


Generated on Mon Feb 27 18:47:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/drawingarea_8h__incl.md50000644000175000001440000000004010400731256021072 00000000000000754003cf52c77f21f8d0e6c3849020bfgtkglextmm-1.2.0/docs/reference/html/drawingarea_8h__incl.map0000644000175000001440000000030610400731256021167 00000000000000base referer rect $widget_8h.html 232,106 362,130 rect $tokens_8h.html 609,82 742,106 rect $config_8h.html 610,155 741,179 rect $context_8h.html 422,106 558,130 rect $window_8h.html 421,205 560,229 gtkglextmm-1.2.0/docs/reference/html/drawingarea_8h__incl.png0000644000175000001440000001154510400731256021205 00000000000000‰PNG  IHDRïìóV¸ä6PLTEþÿÿÿo§§§oooÃÃÃWWW;;;???¿¿¿___ßßߟŸŸÿÿÿuþýîtRNS@æØfÝIDATxœí c«6F[ßvw!¤ÿÿgW£,æaðwÚÜ‘qr¬Œ i~‡¿J'Àïà—€ïà—€ïà—€ïà—€ïà—€ïµÑ– ô“¾ ø^%܃ï ðý ð½6àûà{mÀ÷3À÷Ú€ïg€ïµßÏßk¾Ÿ¾×FÒ=©VÇÈþ-2;"õ|¥xwOÈ-߇hPç>½0»I?ßA9ÞÝS›¾7ï›ÞG(øø¹×+1()”hIÒNü«¡ºÎ|¶Ñr¯›Îl1‹ê¤a<}V½¦ÝÐNÝÀì׬ø^“{]#ec|uó;­O[£nk·LËÃ`5KôA‘æõÑ 5Žï{ó¹Ÿæw7(ý5k¾×ÆäÍÇ2øÞ…ª†T],÷Ò¬;bWZ ´×­˜|—cmóþ5k¾×Æäž•2øÞ˜:ç;•ï¢mè¿Ál·ãÂge~+Xfõ;|LÈÌïæÿ6ãû@óyß™¾'»í¸ÙüN;“ðpd^¿÷£ï¦,ÏøÞ“¼ƒ­Þ…^Ôïý¼~à;àÅÛñÝø™]ü“öÝ´Gg:ÿʘŸ‘t|Æîf60ý5+¾×Æä^+7ÿ°º¾§Ýãá;(Å¢žIü)i/ûÇÃwPˆ×kZ6uH#ó¡›ìßA ^œyø^ /|?|¯‚×Î?|¯€W¤;|?|¯ø~ð½"ÝÑ_ìð½ &ÝÁ)à{À÷‹€ï5ðÒÐýà{èÐýà;¬èðýà;{^³Oàð;ðüJà;s û¥ÀwÞ@÷kï¬îß9ݯ¾3º_|g |¿øÎè~=ð-Ðýà;W ûÀw®À÷;€ïLî·ßyÝï¾ó¾ß|g t¿ øÎø~ð#Ðý.à;Gàû]<Ü÷"͉v°ž5t¿§û^:4ëiA÷û€ï%€ï¥€ï%XM ºß|/|/|/ÁZZÐýNà{ à{)~Ñ÷{ŽÊ~-êÓž&ãW|‡î·òs¾ ¹¥ìà墺Ï2€ï¬ø9ßÕ¦ïþ¼gî\ßYñ;¾÷J J %ZR°ÿªA¨®3$e´ÜÓ£6Xµ¢ÕæÑé¦3AæQõGùè°Gí#\4Ý÷›ˆœKkt¿—ŸñnžÞ;ÝüNkÆÂÖ¸ÙÚ-Óò0Ý[Ù ã{cÆÛ‡dטéC*-Ã}„‹î{³±÷›èëJ¿ÛLZKàû½üŒï4÷Êà{ª«ë|¹—Z 4TI«©´ãZóé¬ãÊîÆD†=úMÿ´Âo¢¯ëƒsi-ï÷ò3¾­Ý™‚s¾7>V*Wz&ØlmCÿ Öw=úí"ìV©,aÖÓ®Ói-ï÷ò3¾Ïæw*¶3¾›rÆÆºÒ…6·nÚïÌ ï´öÑãüî"|4ý#à ý©ïÐýf~Æwª¶ûÑwS¢g|7åÌT¿kòµÕTþ ¶zzò=ìÑG8ß]ý>‚ïÌøßÃÑ”ÆÏì⟴ïöhd8>c—•èaß•ÒÇäûx|ÆE¸hIÇgdï:“Öø~3?ã{+/;¤~~9ß¡ûÝüŒï¶úh®Ü÷‰=Â÷R<Ï÷ÙygõŒjd"þ8Ç÷˜ñºßÎ3}ï¾^×ù‘ðývžì;ß[°§}gšì£x¶ïuÍïðý~ãûë]W=Ý¿@ý¾/ —Y%ß‹ó7\6‘ïŠ?c®+úlké¾J9^=³›õçY/—ú÷-»÷e™ß7}Æc¶hÖ„Œ7¬qÔw½é{;“³Í‹zø¾ohq»Wr¢•ƒ¾O'ZS`_3s¹ïýþ F\t‰Žêäÿè¢ý®£ËvŒ†Ñòb)ŽÖÌvZÕlè2Ù©¶3CL¬þöcÃå#\´Ù¨‡°Éùî‚À÷ef÷;³Ä"ßýaÓÕcQëŸe NW”‘.¢uW…ë1}¯Ÿ±Áõü¡Æé–?+¾w­0û~~§5ã]c¯à*^îûK¾Óšy…4ÒøÞm è\Û³¤ýXöï#\ô0˜ƒßä|Â"|·QœŸ‘ùûªoØ3]l6Ä­–]€|HÑÓüÞӦίö½~̌ٺk*S-V|§ÙVß»PÕXAçËæeäci+­™WœU›4ö‘Ƽb:븶;5ãÂþ}„‹¦é79ßÝy¾ïW£yšÉwßÐaìîÓ)©ãK‡—]€|ÿ³¹—ãº~ä¸ü×I¶üYñ=øgínͤ›ó½cikXÚ•Þ½ªéa;·ôÖw<úí"ܱŸƒê÷_ðý‰'GDL¾{IÇî>Ô(ç{3†SD3.ÍFºÙ9ŒjMmaßä&/‘ß;¿SyñÝ0ÑüÖ\éBAû%ЙÞiíÇŽó»‹ðÑÖñ0è‡|_ñ¹z׉÷ù}ìîCmKÒ¾‡.@n~§µÙünGú^?“ïz¬gôG¾S}=Œ¾›¢<ã»)`B¬Ùj×Býn}mC½­Þ¥š|û÷ÎwW¿ƒ~Æ÷œÒ˜Ùóú½ëwó®3ã»í4ö÷éCõ2Öï4r¬ßèּã˶üÙ>>cÆ»™]þ7í{;Åš­v-Ÿ±ËZv­´ïJécò}<>ã"\4Uuömµ¡Gûžrºæjýµã3fîKûÞDá¦|¡µFÅÇg4ud¶½~ÆQîøL®åÏŠïØý“Ø3cwýLŠñ®õTŸ=‡É÷ö\Û1h«žiW´‹ø$öÌÇUOž ‰‹UJ¤q5³J‹zfÞk;­×3æ]ÁN?‰=3ÆrÕ“çÁRî'Lí–ÙŸÃfõÌG {.í„ó#K3“ûQ%;·óˆ*}çòÍ»‚è©°‘â¶Wu>03žsìbÖP¡`ã~:³¹¾ÇgºïW%gBjyõ.Þ¢fÞ¯¥fßGV Åù¶Ò©«8ûqÜýÓâC"»å™=3¶¾WÏBüù« ü{Ý1ƒ5it”ÉÊ;Òùù‘LpÙ<É÷‘DÉÇ÷C% 'ßYvù”GúNÌK ß‹ÂÇ÷ZE÷<Ö÷wãKã~çËÇw>™âG|çPÏœyÑñ±ŒO&‡x¾ï~­¼ïg2àcŸLñlߣµ¤m{{ ¸ k¦(a\v|ê}ßÑd÷L—=¤ößëàýG'ä–ïc7D]¬»hûr§éø¾yûó&.iÄò¬¬•gßëàýG§6}OFµq‰SSßÇ«K}ßø#åçM\Ò,¯X{ð½¢»n†š¸+Ãþûž${ øj élû­þ¨pîñ*× ÅvIÑé(Ç|-OB9ÓÄ…FÑÅqrÖ¹Å&m·´fbÄê³€ïu0Ùúš8 h-ê{’îb«ZÓ®›sWaŽ{sSN3ã{ ”þÏN2<ÕÄÅ®õÓu ¡s˘¾ùDª¯< ø^“máºwgw|½ãbyêB[ÍZkì2Œ5tµº¶×ÃG{ÓÔc'˜òÞåu†eöÇš¸Øµá½s˘¾¢ÓzíYÀ÷:˜|}MÜ¥ÀMŸõ}êª_a[é4ƒY÷]T¦wJX\ùÞ2¿Ÿjâg'Õl”?£mêd”yð½2ó;u2Éøõ@ñ-Ýtß™¾·ë¾‹Ê´7Úµ¼ÃwZ¹¨‰‹]ë¢>.ÓüîÒ—‚^>ð½~æõ{?úNo÷Ò¾G=P|K7ÛѲU¶iJ\¿÷óú=Óåˆïaå¢&.Ëú}zÞ>}³1Ôï™gßëàíø 54qLþIûõ@ñ-ÝÌÖÎ~È÷ã3®Ší’’irÑß›N5qqIÆ}\(”¾ö‘AP—Õgßë`²í“¾&Û±û÷vÍùE›¸hø^ ‹zfg_“íØý{»Æ÷¢M\4|¯…Y=³¿¯Évìî½]t¾XÉ&.¾×Bùó#Ïœ‚ÏÇ2>™¾1ƒã'Àó±ŒO&‡€ïßÍà ñ|,ã“É!àû×Hœ°>–ñÉäðýûPže|29Äïø^ž1£û‡Ê—nÞ2ÁàÂ÷3üŒï¼ iÎ\¿]’:³öÀ÷2xi–ó…©0å|/EÜ ¸:êËØß‹+SŸ?õelïåxͯM ê&à{IVÚH×@eéð½(‰VÒUITU²|/JR—ªÚÔ“©¾—%kK=ÒW’¦¾fU–J¤¯ Å|/ͦ,GÏ1û"ÌÓ‹€ï¥Ù© së§6¾çS[Ï4­ð½<‹ÂÔz~½ßpL~ÖóÊ& |çÀ OxYÿJ,±¾sà´ǯ¼˜èfÏeÉßYp•'.‘½ ÷µY¼øÀw\-GIñÝåŠ<…‡ï<¸Í3]NÑ/~ÉÀw&ÜïÆdPVe€ïLøšß±È/•]Àw.|W[m|½Ø ß¹Pæå-b¾fû-Ý1‡Sƒïl(<¾^—Ú?íŠAG2øÎV¿ú¯ŸGIßÂÀ‹‡fýܽ§Jß9ÂSø˜½îχï ßcÖ¼Ÿ=ßA’º|¤æüÙøÒÔ)|Ä+|ª÷=°çئT÷…•ý¯-èüm£u½¾³ä‰¾gë™M߇v ×(ó@7ßñ[ |çÉS„ßó~uÓ÷é.ɘ½g²ZÞ]¾WÃ|ŸVbß{%#h'ìg#f'¤TƒPÙÔéhÑ0>ÜÒšÙÞKz@©Þ‡jmöDõŒ$Â#:•|çÄS|ŸùNw·o”쌢­ ßÍãg§[cp«d´¨‡!„“ïa^ô¹s¡ÒÎïfÙGÒï ™|çÄÓ}­­cÄ`–’ª#-mýá̵™Ê}8E„µÁ=Þ éÜï!’I¥ßYñDá#ß­…ʉIõ{CóuÆ÷f §ˆfTØÆøâô=DŽð½ î{˜ßéX Íïf¥Íøn ˜h~׺i~×Ùù]Ã÷Jx¸ïTf÷qýnÞƒf|§w¦>œ*r¿×ï:ò=Dê¾WÅ…_=>£E—ö½‰ÂMáãÖfÇgtäûx|Æ­Á÷Zx¶ï­Lϱ?|#¾såÙ¾Û²#û—£7ö‡oDÂw¶Œ©Áwv…­îð# =ùòœ©îð%MÙ îÏ>…¥*»-ç©;|ç OY¶ÁýµÁ!˜ê²ÿ¬á;Oø›“ ‚¤á;S*pgI )Ãw®¼Æê€éÔð+¤Óƒz jI¾³åÅö ö•¤©á;g¸þMþrôÀw¶°=eA)NÀw®°=¥v÷üÀw¦ð½d"†ur)à;[ØûÎ8µ,ð1œ…gšÖð5\}ç˜Ó.à;s8 Ï.¡ýÀwöpóY:Ÿß+àõ*Ý¿e¢jÛá{0hÑ`”Êà{ 0’ŒQ*G€ï5ÀH2F©¾×#É¥rø^Œ$c”Êà{ 0’ŒQ*G€ï5‘ÌßU=ì§Ðxííæ™ý$6Ãwp;G}Ú)4^3t‹=e¾ÀÞTj¾×ÀQß§;’RàÊLá;`Äê-Ù;!¥„ê̦NG‹¶€oÉNk =nP-­ÛHí÷äoÓ…h=†dR©ø^‹[T7Jv¢•­ ßÍkhklm•Œõ0„pòÝ®™íôaý·‘aOº§È. Ñä»ÛQ:•ï5I&Z[LjÁ,UG:ÚºƒÈ÷qQ÷2„S„Y3wf€qÚún£üžì˜VD!Z‡L*5ßk ’ÌÚ§¬ˆ¶~oš>ë{3†S,Ú†þœïó=i·Ÿ1DGûM¦R#ð½ó;•×4¿›•6ã»)`¢ùÖtß™é»÷õ¼‹ô{ óû¢á;(â~ïãúݼßÌøn ˜N•8i;ØÒ\èÈ÷Eý>… ð”aõøŒ]Ú÷& 7…m½t±ï‹ã3Sˆû-ßÁ׉$keöhyŠÃ?J¥Fà{ ,뙕¿-ø0ü£Tj¾×À¼žQÌF¾ñaøG©T|¯F’1Jåð½IÆ(•#À÷`$£TŽßk€‘dŒR9|¯F’1Jåð½J7YŠ)ý½8|¿|¿|¿|¿|¿Äÿ†6ï@v²6IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/group__gdkmm__glEnums.html0000644000175000001440000031232310400731256021637 00000000000000 gtkglextmm: Enums and Flags

Enums and Flags


Enumerations

enum  Gdk::GL::ConfigMode {
  Gdk::GL::MODE_RGB = 0, Gdk::GL::MODE_RGBA = 0, Gdk::GL::MODE_INDEX = 1 << 0, Gdk::GL::MODE_SINGLE = 0,
  Gdk::GL::MODE_DOUBLE = 1 << 1, Gdk::GL::MODE_STEREO = 1 << 2, Gdk::GL::MODE_ALPHA = 1 << 3, Gdk::GL::MODE_DEPTH = 1 << 4,
  Gdk::GL::MODE_STENCIL = 1 << 5, Gdk::GL::MODE_ACCUM = 1 << 6, Gdk::GL::MODE_MULTISAMPLE = 1 << 7
}
enum  Gdk::GL::ConfigAttrib {
  Gdk::GL::USE_GL = 1, Gdk::GL::BUFFER_SIZE = 2, Gdk::GL::LEVEL = 3, Gdk::GL::RGBA = 4,
  Gdk::GL::DOUBLEBUFFER = 5, Gdk::GL::STEREO = 6, Gdk::GL::AUX_BUFFERS = 7, Gdk::GL::RED_SIZE = 8,
  Gdk::GL::GREEN_SIZE = 9, Gdk::GL::BLUE_SIZE = 10, Gdk::GL::ALPHA_SIZE = 11, Gdk::GL::DEPTH_SIZE = 12,
  Gdk::GL::STENCIL_SIZE = 13, Gdk::GL::ACCUM_RED_SIZE = 14, Gdk::GL::ACCUM_GREEN_SIZE = 15, Gdk::GL::ACCUM_BLUE_SIZE = 16,
  Gdk::GL::ACCUM_ALPHA_SIZE = 17, Gdk::GL::CONFIG_CAVEAT = 0x20, Gdk::GL::X_VISUAL_TYPE = 0x22, Gdk::GL::TRANSPARENT_TYPE = 0x23,
  Gdk::GL::TRANSPARENT_INDEX_VALUE = 0x24, Gdk::GL::TRANSPARENT_RED_VALUE = 0x25, Gdk::GL::TRANSPARENT_GREEN_VALUE = 0x26, Gdk::GL::TRANSPARENT_BLUE_VALUE = 0x27,
  Gdk::GL::TRANSPARENT_ALPHA_VALUE = 0x28, Gdk::GL::DRAWABLE_TYPE = 0x8010, Gdk::GL::RENDER_TYPE = 0x8011, Gdk::GL::X_RENDERABLE = 0x8012,
  Gdk::GL::FBCONFIG_ID = 0x8013, Gdk::GL::MAX_PBUFFER_WIDTH = 0x8016, Gdk::GL::MAX_PBUFFER_HEIGHT = 0x8017, Gdk::GL::MAX_PBUFFER_PIXELS = 0x8018,
  Gdk::GL::VISUAL_ID = 0x800B, Gdk::GL::SCREEN = 0x800C, Gdk::GL::SAMPLE_BUFFERS = 100000, Gdk::GL::SAMPLES = 100001
}
enum  Gdk::GL::ConfigCaveat { Gdk::GL::CONFIG_CAVEAT_DONT_CARE = 0xFFFFFFFF, Gdk::GL::CONFIG_CAVEAT_NONE = 0x8000, Gdk::GL::SLOW_CONFIG = 0x8001, Gdk::GL::NON_CONFORMANT_CONFIG = 0x800D }
enum  Gdk::GL::VisualType {
  Gdk::GL::VISUAL_TYPE_DONT_CARE = 0xFFFFFFFF, Gdk::GL::TRUE_COLOR = 0x8002, Gdk::GL::DIRECT_COLOR = 0x8003, Gdk::GL::PSEUDO_COLOR = 0x8004,
  Gdk::GL::STATIC_COLOR = 0x8005, Gdk::GL::GRAY_SCALE = 0x8006, Gdk::GL::STATIC_GRAY = 0x8007
}
enum  Gdk::GL::TransparentType { Gdk::GL::TRANSPARENT_NONE = 0x8000, Gdk::GL::TRANSPARENT_RGB = 0x8008, Gdk::GL::TRANSPARENT_INDEX = 0x8009 }
enum  Gdk::GL::DrawableTypeMask { Gdk::GL::WINDOW_BIT = 1 << 0, Gdk::GL::PIXMAP_BIT = 1 << 1, Gdk::GL::PBUFFER_BIT = 1 << 2 }
enum  Gdk::GL::RenderTypeMask { Gdk::GL::RGBA_BIT = 1 << 0, Gdk::GL::COLOR_INDEX_BIT = 1 << 1 }
enum  Gdk::GL::BufferMask {
  Gdk::GL::FRONT_LEFT_BUFFER_BIT = 1 << 0, Gdk::GL::FRONT_RIGHT_BUFFER_BIT = 1 << 1, Gdk::GL::BACK_LEFT_BUFFER_BIT = 1 << 2, Gdk::GL::BACK_RIGHT_BUFFER_BIT = 1 << 3,
  Gdk::GL::AUX_BUFFERS_BIT = 1 << 4, Gdk::GL::DEPTH_BUFFER_BIT = 1 << 5, Gdk::GL::STENCIL_BUFFER_BIT = 1 << 6, Gdk::GL::ACCUM_BUFFER_BIT = 1 << 7
}
enum  Gdk::GL::ConfigError {
  Gdk::GL::BAD_SCREEN = 1, Gdk::GL::BAD_ATTRIBUTE, Gdk::GL::NO_EXTENSION, Gdk::GL::BAD_VISUAL,
  Gdk::GL::BAD_CONTEXT, Gdk::GL::BAD_VALUE, Gdk::GL::BAD_ENUM
}
enum  Gdk::GL::RenderType { Gdk::GL::RGBA_TYPE = 0x8014, Gdk::GL::COLOR_INDEX_TYPE = 0x8015 }
enum  Gdk::GL::DrawableAttrib {
  Gdk::GL::PRESERVED_CONTENTS = 0x801B, Gdk::GL::LARGEST_PBUFFER = 0x801C, Gdk::GL::WIDTH = 0x801D, Gdk::GL::HEIGHT = 0x801E,
  Gdk::GL::EVENT_MASK = 0x801F
}
enum  Gdk::GL::PbufferAttrib { Gdk::GL::PBUFFER_PRESERVED_CONTENTS = 0x801B, Gdk::GL::PBUFFER_LARGEST_PBUFFER = 0x801C, Gdk::GL::PBUFFER_HEIGHT = 0x8040, Gdk::GL::PBUFFER_WIDTH = 0x8041 }
enum  Gdk::GL::EventMask { Gdk::GL::PBUFFER_CLOBBER_MASK = 1 << 27 }
enum  Gdk::GL::EventType { Gdk::GL::DAMAGED = 0x8020, Gdk::GL::SAVED = 0x8021 }
enum  Gdk::GL::DrawableType { Gdk::GL::WINDOW = 0x8022, Gdk::GL::PBUFFER = 0x8023 }

Functions

ConfigMode Gdk::GL::operator| (ConfigMode lhs, ConfigMode rhs)
ConfigMode Gdk::GL::operator & (ConfigMode lhs, ConfigMode rhs)
ConfigMode Gdk::GL::operator^ (ConfigMode lhs, ConfigMode rhs)
ConfigMode Gdk::GL::operator~ (ConfigMode flags)
ConfigModeGdk::GL::operator|= (ConfigMode &lhs, ConfigMode rhs)
ConfigModeGdk::GL::operator &= (ConfigMode &lhs, ConfigMode rhs)
ConfigModeGdk::GL::operator^= (ConfigMode &lhs, ConfigMode rhs)
DrawableTypeMask Gdk::GL::operator| (DrawableTypeMask lhs, DrawableTypeMask rhs)
DrawableTypeMask Gdk::GL::operator & (DrawableTypeMask lhs, DrawableTypeMask rhs)
DrawableTypeMask Gdk::GL::operator^ (DrawableTypeMask lhs, DrawableTypeMask rhs)
DrawableTypeMask Gdk::GL::operator~ (DrawableTypeMask flags)
DrawableTypeMaskGdk::GL::operator|= (DrawableTypeMask &lhs, DrawableTypeMask rhs)
DrawableTypeMaskGdk::GL::operator &= (DrawableTypeMask &lhs, DrawableTypeMask rhs)
DrawableTypeMaskGdk::GL::operator^= (DrawableTypeMask &lhs, DrawableTypeMask rhs)
RenderTypeMask Gdk::GL::operator| (RenderTypeMask lhs, RenderTypeMask rhs)
RenderTypeMask Gdk::GL::operator & (RenderTypeMask lhs, RenderTypeMask rhs)
RenderTypeMask Gdk::GL::operator^ (RenderTypeMask lhs, RenderTypeMask rhs)
RenderTypeMask Gdk::GL::operator~ (RenderTypeMask flags)
RenderTypeMaskGdk::GL::operator|= (RenderTypeMask &lhs, RenderTypeMask rhs)
RenderTypeMaskGdk::GL::operator &= (RenderTypeMask &lhs, RenderTypeMask rhs)
RenderTypeMaskGdk::GL::operator^= (RenderTypeMask &lhs, RenderTypeMask rhs)
BufferMask Gdk::GL::operator| (BufferMask lhs, BufferMask rhs)
BufferMask Gdk::GL::operator & (BufferMask lhs, BufferMask rhs)
BufferMask Gdk::GL::operator^ (BufferMask lhs, BufferMask rhs)
BufferMask Gdk::GL::operator~ (BufferMask flags)
BufferMaskGdk::GL::operator|= (BufferMask &lhs, BufferMask rhs)
BufferMaskGdk::GL::operator &= (BufferMask &lhs, BufferMask rhs)
BufferMaskGdk::GL::operator^= (BufferMask &lhs, BufferMask rhs)
EventMask Gdk::GL::operator| (EventMask lhs, EventMask rhs)
EventMask Gdk::GL::operator & (EventMask lhs, EventMask rhs)
EventMask Gdk::GL::operator^ (EventMask lhs, EventMask rhs)
EventMask Gdk::GL::operator~ (EventMask flags)
EventMaskGdk::GL::operator|= (EventMask &lhs, EventMask rhs)
EventMaskGdk::GL::operator &= (EventMask &lhs, EventMask rhs)
EventMaskGdk::GL::operator^= (EventMask &lhs, EventMask rhs)

Enumeration Type Documentation

enum Gdk::GL::BufferMask
 

Bitwise operators:
BufferMask operator|(BufferMask, BufferMask)
BufferMask operator&(BufferMask, BufferMask)
BufferMask operator^(BufferMask, BufferMask)
BufferMask operator~(BufferMask)
BufferMask& operator|=(BufferMask&, BufferMask)
BufferMask& operator&=(BufferMask&, BufferMask)
BufferMask& operator^=(BufferMask&, BufferMask)
Enumerator:
FRONT_LEFT_BUFFER_BIT 
FRONT_RIGHT_BUFFER_BIT 
BACK_LEFT_BUFFER_BIT 
BACK_RIGHT_BUFFER_BIT 
AUX_BUFFERS_BIT 
DEPTH_BUFFER_BIT 
STENCIL_BUFFER_BIT 
ACCUM_BUFFER_BIT 

enum Gdk::GL::ConfigAttrib
 

Enumerator:
USE_GL 
BUFFER_SIZE 
LEVEL 
RGBA 
DOUBLEBUFFER 
STEREO 
AUX_BUFFERS 
RED_SIZE 
GREEN_SIZE 
BLUE_SIZE 
ALPHA_SIZE 
DEPTH_SIZE 
STENCIL_SIZE 
ACCUM_RED_SIZE 
ACCUM_GREEN_SIZE 
ACCUM_BLUE_SIZE 
ACCUM_ALPHA_SIZE 
CONFIG_CAVEAT 
X_VISUAL_TYPE 
TRANSPARENT_TYPE 
TRANSPARENT_INDEX_VALUE 
TRANSPARENT_RED_VALUE 
TRANSPARENT_GREEN_VALUE 
TRANSPARENT_BLUE_VALUE 
TRANSPARENT_ALPHA_VALUE 
DRAWABLE_TYPE 
RENDER_TYPE 
X_RENDERABLE 
FBCONFIG_ID 
MAX_PBUFFER_WIDTH 
MAX_PBUFFER_HEIGHT 
MAX_PBUFFER_PIXELS 
VISUAL_ID 
SCREEN 
SAMPLE_BUFFERS 
SAMPLES 

enum Gdk::GL::ConfigCaveat
 

Enumerator:
CONFIG_CAVEAT_DONT_CARE 
CONFIG_CAVEAT_NONE 
SLOW_CONFIG 
NON_CONFORMANT_CONFIG 

enum Gdk::GL::ConfigError
 

Enumerator:
BAD_SCREEN 
BAD_ATTRIBUTE 
NO_EXTENSION 
BAD_VISUAL 
BAD_CONTEXT 
BAD_VALUE 
BAD_ENUM 

enum Gdk::GL::ConfigMode
 

Bitwise operators:
ConfigMode operator|(ConfigMode, ConfigMode)
ConfigMode operator&(ConfigMode, ConfigMode)
ConfigMode operator^(ConfigMode, ConfigMode)
ConfigMode operator~(ConfigMode)
ConfigMode& operator|=(ConfigMode&, ConfigMode)
ConfigMode& operator&=(ConfigMode&, ConfigMode)
ConfigMode& operator^=(ConfigMode&, ConfigMode)
Enumerator:
MODE_RGB 
MODE_RGBA 
MODE_INDEX 
MODE_SINGLE 
MODE_DOUBLE 
MODE_STEREO 
MODE_ALPHA 
MODE_DEPTH 
MODE_STENCIL 
MODE_ACCUM 
MODE_MULTISAMPLE 

enum Gdk::GL::DrawableAttrib
 

Enumerator:
PRESERVED_CONTENTS 
LARGEST_PBUFFER 
WIDTH 
HEIGHT 
EVENT_MASK 

enum Gdk::GL::DrawableType
 

Enumerator:
WINDOW 
PBUFFER 

enum Gdk::GL::DrawableTypeMask
 

Bitwise operators:
DrawableTypeMask operator|(DrawableTypeMask, DrawableTypeMask)
DrawableTypeMask operator&(DrawableTypeMask, DrawableTypeMask)
DrawableTypeMask operator^(DrawableTypeMask, DrawableTypeMask)
DrawableTypeMask operator~(DrawableTypeMask)
DrawableTypeMask& operator|=(DrawableTypeMask&, DrawableTypeMask)
DrawableTypeMask& operator&=(DrawableTypeMask&, DrawableTypeMask)
DrawableTypeMask& operator^=(DrawableTypeMask&, DrawableTypeMask)
Enumerator:
WINDOW_BIT 
PIXMAP_BIT 
PBUFFER_BIT 

enum Gdk::GL::EventMask
 

Bitwise operators:
EventMask operator|(EventMask, EventMask)
EventMask operator&(EventMask, EventMask)
EventMask operator^(EventMask, EventMask)
EventMask operator~(EventMask)
EventMask& operator|=(EventMask&, EventMask)
EventMask& operator&=(EventMask&, EventMask)
EventMask& operator^=(EventMask&, EventMask)
Enumerator:
PBUFFER_CLOBBER_MASK 

enum Gdk::GL::EventType
 

Enumerator:
DAMAGED 
SAVED 

enum Gdk::GL::PbufferAttrib
 

Enumerator:
PBUFFER_PRESERVED_CONTENTS 
PBUFFER_LARGEST_PBUFFER 
PBUFFER_HEIGHT 
PBUFFER_WIDTH 

enum Gdk::GL::RenderType
 

Enumerator:
RGBA_TYPE 
COLOR_INDEX_TYPE 

enum Gdk::GL::RenderTypeMask
 

Bitwise operators:
RenderTypeMask operator|(RenderTypeMask, RenderTypeMask)
RenderTypeMask operator&(RenderTypeMask, RenderTypeMask)
RenderTypeMask operator^(RenderTypeMask, RenderTypeMask)
RenderTypeMask operator~(RenderTypeMask)
RenderTypeMask& operator|=(RenderTypeMask&, RenderTypeMask)
RenderTypeMask& operator&=(RenderTypeMask&, RenderTypeMask)
RenderTypeMask& operator^=(RenderTypeMask&, RenderTypeMask)
Enumerator:
RGBA_BIT 
COLOR_INDEX_BIT 

enum Gdk::GL::TransparentType
 

Enumerator:
TRANSPARENT_NONE 
TRANSPARENT_RGB 
TRANSPARENT_INDEX 

enum Gdk::GL::VisualType
 

Enumerator:
VISUAL_TYPE_DONT_CARE 
TRUE_COLOR 
DIRECT_COLOR 
PSEUDO_COLOR 
STATIC_COLOR 
GRAY_SCALE 
STATIC_GRAY 


Function Documentation

EventMask Gdk::GL::operator & EventMask  lhs,
EventMask  rhs
[inline]
 

BufferMask Gdk::GL::operator & BufferMask  lhs,
BufferMask  rhs
[inline]
 

RenderTypeMask Gdk::GL::operator & RenderTypeMask  lhs,
RenderTypeMask  rhs
[inline]
 

DrawableTypeMask Gdk::GL::operator & DrawableTypeMask  lhs,
DrawableTypeMask  rhs
[inline]
 

ConfigMode Gdk::GL::operator & ConfigMode  lhs,
ConfigMode  rhs
[inline]
 

EventMask& Gdk::GL::operator &= EventMask lhs,
EventMask  rhs
[inline]
 

BufferMask& Gdk::GL::operator &= BufferMask lhs,
BufferMask  rhs
[inline]
 

RenderTypeMask& Gdk::GL::operator &= RenderTypeMask lhs,
RenderTypeMask  rhs
[inline]
 

DrawableTypeMask& Gdk::GL::operator &= DrawableTypeMask lhs,
DrawableTypeMask  rhs
[inline]
 

ConfigMode& Gdk::GL::operator &= ConfigMode lhs,
ConfigMode  rhs
[inline]
 

EventMask Gdk::GL::operator^ EventMask  lhs,
EventMask  rhs
[inline]
 

BufferMask Gdk::GL::operator^ BufferMask  lhs,
BufferMask  rhs
[inline]
 

RenderTypeMask Gdk::GL::operator^ RenderTypeMask  lhs,
RenderTypeMask  rhs
[inline]
 

DrawableTypeMask Gdk::GL::operator^ DrawableTypeMask  lhs,
DrawableTypeMask  rhs
[inline]
 

ConfigMode Gdk::GL::operator^ ConfigMode  lhs,
ConfigMode  rhs
[inline]
 

EventMask& Gdk::GL::operator^= EventMask lhs,
EventMask  rhs
[inline]
 

BufferMask& Gdk::GL::operator^= BufferMask lhs,
BufferMask  rhs
[inline]
 

RenderTypeMask& Gdk::GL::operator^= RenderTypeMask lhs,
RenderTypeMask  rhs
[inline]
 

DrawableTypeMask& Gdk::GL::operator^= DrawableTypeMask lhs,
DrawableTypeMask  rhs
[inline]
 

ConfigMode& Gdk::GL::operator^= ConfigMode lhs,
ConfigMode  rhs
[inline]
 

EventMask Gdk::GL::operator| EventMask  lhs,
EventMask  rhs
[inline]
 

BufferMask Gdk::GL::operator| BufferMask  lhs,
BufferMask  rhs
[inline]
 

RenderTypeMask Gdk::GL::operator| RenderTypeMask  lhs,
RenderTypeMask  rhs
[inline]
 

DrawableTypeMask Gdk::GL::operator| DrawableTypeMask  lhs,
DrawableTypeMask  rhs
[inline]
 

ConfigMode Gdk::GL::operator| ConfigMode  lhs,
ConfigMode  rhs
[inline]
 

EventMask& Gdk::GL::operator|= EventMask lhs,
EventMask  rhs
[inline]
 

BufferMask& Gdk::GL::operator|= BufferMask lhs,
BufferMask  rhs
[inline]
 

RenderTypeMask& Gdk::GL::operator|= RenderTypeMask lhs,
RenderTypeMask  rhs
[inline]
 

DrawableTypeMask& Gdk::GL::operator|= DrawableTypeMask lhs,
DrawableTypeMask  rhs
[inline]
 

ConfigMode& Gdk::GL::operator|= ConfigMode lhs,
ConfigMode  rhs
[inline]
 

EventMask Gdk::GL::operator~ EventMask  flags  )  [inline]
 

BufferMask Gdk::GL::operator~ BufferMask  flags  )  [inline]
 

RenderTypeMask Gdk::GL::operator~ RenderTypeMask  flags  )  [inline]
 

DrawableTypeMask Gdk::GL::operator~ DrawableTypeMask  flags  )  [inline]
 

ConfigMode Gdk::GL::operator~ ConfigMode  flags  )  [inline]
 


Generated on Mon Feb 27 18:47:49 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/drawable_8h-source.html0000644000175000001440000004232010400731256021007 00000000000000 gtkglextmm: gdkmm/gl/drawable.h Source File

drawable.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GDKMM_GL_DRAWABLE_H
00004 #define _GDKMM_GL_DRAWABLE_H
00005 
00006 #include <glibmm.h>
00007 
00008 // -*- C++ -*-
00009 /* gdkglextmm - C++ Wrapper for GdkGLExt
00010  * Copyright (C) 2002-2003  Naofumi Yasufuku
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00025  */
00026 
00027 #include <glibmm/interface.h>
00028 
00029 #include <gdkmm/gl/defs.h>
00030 #include <gdkmm/gl/config.h>
00031 #include <gdkmm/gl/context.h>
00032 
00033 #include <GL/gl.h>
00034 
00035 
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GdkGLDrawable GdkGLDrawable;
00038 typedef struct _GdkGLDrawableClass GdkGLDrawableClass;
00039 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00040 
00041 
00042 namespace Gdk
00043 {
00044 
00045 namespace GL
00046 { class Drawable_Class; } // namespace GL
00047 
00048 } // namespace Gdk
00049 namespace Gdk
00050 {
00051 namespace GL
00052 {
00053 
00054 class Context;
00055 
00065 class Drawable : public Glib::Interface
00066 {
00067   
00068 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00069 
00070 public:
00071   typedef Drawable CppObjectType;
00072   typedef Drawable_Class CppClassType;
00073   typedef GdkGLDrawable BaseObjectType;
00074   typedef GdkGLDrawableClass BaseClassType;
00075 
00076 private:
00077   friend class Drawable_Class;
00078   static CppClassType drawable_class_;
00079 
00080   // noncopyable
00081   Drawable(const Drawable&);
00082   Drawable& operator=(const Drawable&);
00083 
00084 protected:
00085   Drawable(); // you must derive from this class
00086   explicit Drawable(GdkGLDrawable* castitem);
00087 
00088 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00089 
00090 public:
00091   virtual ~Drawable();
00092 
00093   static void add_interface(GType gtype_implementer);
00094 
00095 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00096   static GType get_type()      G_GNUC_CONST;
00097   static GType get_base_type() G_GNUC_CONST;
00098 #endif
00099 
00101   GdkGLDrawable*       gobj()       { return reinterpret_cast<GdkGLDrawable*>(gobject_); }
00102 
00104   const GdkGLDrawable* gobj() const { return reinterpret_cast<GdkGLDrawable*>(gobject_); }
00105 
00106 private:
00107 
00108 
00109 public:
00110 
00111   
00116   bool make_current(const Glib::RefPtr<Context>& glcontext);
00117 
00118   
00123   bool is_double_buffered() const;
00124 
00125   
00128   void swap_buffers();
00129 
00130   
00133   void wait_gl();
00134 
00135   
00138   void wait_gdk();
00139 
00140   
00145   bool gl_begin(const Glib::RefPtr<Context>& glcontext);
00146 
00147   
00150   void gl_end();
00151 
00152   
00156   Glib::RefPtr<Config> get_gl_config();
00157   
00161   Glib::RefPtr<const Config> get_gl_config() const;
00162 
00163   
00169   void get_size(int& width, int& height);
00170 
00171   
00175   static Glib::RefPtr<Drawable> get_current();
00176 
00177 public:
00178 
00179   
00186   static void draw_cube(bool solid, double size);
00187 
00188   
00199   static void draw_sphere(bool solid, double radius, int slices, int stacks);
00200 
00201   
00212   static void draw_cone(bool solid, double base, double height, int slices, int stacks);
00213 
00214   
00223   static void draw_torus(bool solid, double inner_radius, double outer_radius, int nsides, int rings);
00224 
00225   
00230   static void draw_tetrahedron(bool solid);
00231 
00232   
00237   static void draw_octahedron(bool solid);
00238 
00239   
00244   static void draw_dodecahedron(bool solid);
00245 
00246   
00252   static void draw_icosahedron(bool solid);
00253 
00254   
00261   static void draw_teapot(bool solid, double scale);
00262 
00263 
00264 public:
00265 
00266 public:
00267   //C++ methods used to invoke GTK+ virtual functions:
00268 
00269 protected:
00270   //GTK+ Virtual Functions (override these to change behaviour):
00271 
00272   //Default Signal Handlers::
00273 
00274 
00275 };
00276 
00289 } // namespace GL
00290 } // namespace Gdk
00291 
00292 
00293 namespace Glib
00294 {
00300   Glib::RefPtr<Gdk::GL::Drawable> wrap(GdkGLDrawable* object, bool take_copy = false);
00301 
00302 } // namespace Glib
00303 
00304 #endif /* _GDKMM_GL_DRAWABLE_H */
00305 

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglmm_8h__incl.md50000644000175000001440000000004010400731257020251 000000000000000abccb1311449b68c11b725b2ebab4ecgtkglextmm-1.2.0/docs/reference/html/gtkglmm_8h__incl.map0000644000175000001440000000045110400731257020347 00000000000000base referer rect $gdkglmm_8h.html 181,7 266,31 rect $gtkglext_2gtkmm_2gl_2defs_8h.html 361,82 478,106 rect $gtkglext_2gtkmm_2gl_2version_8h.html 157,106 290,130 rect $gtkglext_2gtkmm_2gl_2init_8h.html 169,154 278,178 rect $widget_8h.html 354,227 485,251 rect $drawingarea_8h.html 142,253 305,277 gtkglextmm-1.2.0/docs/reference/html/gtkglmm_8h__incl.png0000644000175000001440000000644110400731257020363 00000000000000‰PNG  IHDRì÷–šJ-PLTEþÿÿ§§§oooÃÃÃoÿ???¿¿¿___ßßߟŸŸÿÿÿQP˜tRNS@æØf ¢IDATxœíMsÛ¸Ç÷‹ô#ô#ôæ^që5ÇÝnÒè¸G::qSëÐά’‰¥cf§ëè´fÉãf2ë´cI¦Åk½PÄg(R$DñE"^PüH  (üü<„ćÀƒïàQ껪PìcRƒ}Lj°yëÚ_âZ‘.‘ØB壛·lއòQƒÍ[ 6ÇCùH¶g;ÁÞÙ:ÂL9TŽlÞ:6l÷äänXn®ìEÿÊvWÓ{Ã1¿N.&ÞSÿm¿‹°¿N‚wÔû$@‡‹W·öÅÙ©íœ[çÆk„ÝmÛÆdþ8·ö°m‘wÔÔÄ.;ž}çöĆ=h"lè[¾á@bl˯6 ,ˆË¶ÑµýðqúIlX#ìÀÖ `ÁÖî!k;f'ÅÚõÁvO8Y¯î‚k{187n¶°×5ÂÆ¼¸OƒÉž¾zòÛ·ê‚ížP;Â2·¢ïê³ø{:)½±]îÉvãä­°öÜø”õF­±‰ƒÇ üÁ _¯f¯²Þ©3öIâõqܹɂ£ÀÞ\×±Ž{—ú(°ÁnÑ`ï\Øð(žŠ>§‘&>ØiÆVZ|°—³HìäõÅ[;çƒ 8œC²8`khlØ€ýÒÅŽ­£±9`öFÈ3¶–Æn°K ph„|±bëilflÀ£òÕ`—‘¦>Ί ¸4B¾ìÒÕÇì2|!_ v >/&lm/í»„§FÈWƒ}¸§FÈWƒ}°ôíÑìÃÕ`ë¦û`^¯û`^¯û`^/l;òû`5ØÚ©"ìÍ|È,e½ 0|&-ì2MØà½7ãàfþC”<ì½p3Þ¶¡u³á0IÁvsüvOÿ3·Ü¿nWâ±95RÂ!ôzœJ,67§¤ÎÇæ9â±]nf¦OM‘.'Áؘa"ýA)1cç}m a†ÑÔY%±9_Ï)R[83T[ôvbJ¸7$exGj.;‰£D`»’æÊDØK+½Æ˜&Ù‘šqP,[P?¶«ÛOb?ãIv¤ÆŠbËño¢(ëC¿g‹?àÄ=¤ïw¸ÔD»‹é=¼y\N;_§#*;6Øz%Ë¿‰Âô·8«ÅâIÜcÛo¸Ô„ß½ÏýÕõíІOs‡JçÃ[šE]ö%Éçá‡Ûk\jÂëå¶}k>@ØøØ(_lÉÓþ¢ü=ˆöû!ÝÂ¥&Ä;ÓœÍþôs‡ÊkÃŒM_Ú²';ÒÖöÆöGÄÚk´Cֆвa‡8¹léS<£ü=˜ö‚¾³p©¹²âk{¼vÖB°åOlzògdêåïcì[Rj¢ï/Ô“{7ÈÚ¨'§ÒùðÖIMߊPù{(¥—ÆbÅ›–”=AÑ7žTþJ饱xaƒœc¸k+Ìçï¡•^‰¶Ü »ò ’»µ“¤ uu7ž!/(߀ƒ?y·KåÝ+'Fl@¶’\ï“ý<ÍÁ55[®Ê…x'®òA%­É™biú’³GNµŒ¨±bí.. ²• KüQpÈã7snȦ‹ ÷%#üŠbã` »‡s9j† O@îT Í£°ºa#{ƒ¼j¶Ç½êb§>ü‹ÎÊ«µ æ@Õ³KÃÊýj‡ó*¿ÆˆÁÈ¥ø•±÷™ß¸Ç¨ò.~Õ]ZÚ`ï1ÕoïQå¾FØÅSwŠG•{zí9ýEmìÜaˆDÅ£Êv·m8ÄÚQNÕ±‹&ò*GØ–bG9QÇv‹î´ŠG•#l¸Á†š`çÌT<ª\Sì|7/Ua¯5Âξ T<ª<Ä~Ó9QTÇ.2wÉQå:`ç™»ä¨rå±13È®.9ª\ ìœ/±Þ0ÏÍk]0-êp©¤¤µõÆÎŸéy¸ÔǤWÖëñ-@¶Ú<üIJ« ZüĈ­ërI¬Øšº¹^¹¹‰»‚|ŸÄŽ­%·–YmÙ¥ecvqÁÖ[ËüäìÒ2=»xakæèü°µrtž lhäè|W‘ц›÷â9 ôù¤Š÷RIš8:ÿ…±´0¸€Õßt0¸EïÔ7¸˜µþ”7¸¨%7¸°-Õ6¸Àuž6®%vìäù Ã. …ý‘3¶Ì QÉ.­xaبÞÖ›ììü…aÍ®ÿ;x1½Çðæq9íPËÂòÀ–?Š`ç¦ðY´Ú­¶¹è}îã‚Õõí[;Z–¶üi;7…ÏÜykŸ›Ël‡Í;ZVcìü…a{?üð½0IÁlæ×6Oì¢,ÜE[;caØ_œ¿Ùæ²ZB‹?62·Ü0`xmç- {ßjÂkû.¼¶Gܱ%‡ú£ž<{aX¿ëwÍMOîÝØ¸ù¶÷ð’Æ~Æ¥†ƒwžíÀõ÷7‰ÞãZ|<*0ˆcø¿¾´éÜôú`ÖvÌ3 û$ÖÆ»9Âö;¾E¢÷¸ 6Žá¡¦ØçÆ Æ^|¤°¯q©á\C|m#³v.-½ÇµøxT€°Ñµ}=^Øk-±qÏü™úv ’ž¼qOîÀÅô|@¢÷¸ Ð Çð/ßÿH§ä×û,õÇWzi~ Ô ûÜø”R•^š_uÂ^Í^¥T¥—æ×@°¹ªÁ毛I ¶²g¤Ä ›=hŸ”Øš©Á>&5ØÇ¤ÿ //Ó¹ôIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/files.html0000644000175000001440000001160310400731256016433 00000000000000 gtkglextmm: File Index

gtkglextmm File List

Here is a list of all files with brief descriptions:
gdkglmm.h [code]
gdkmm/gl/config.h [code]
gdkmm/gl/context.h [code]
gdkmm/gl/defs.h [code]
gdkmm/gl/drawable.h [code]
gdkmm/gl/font.h [code]
gdkmm/gl/init.h [code]
gdkmm/gl/pixmap.h [code]
gdkmm/gl/pixmapext.h [code]
gdkmm/gl/query.h [code]
gdkmm/gl/tokens.h [code]
gdkmm/gl/version.h [code]
gdkmm/gl/window.h [code]
gdkmm/gl/windowext.h [code]
gtkglmm.h [code]
gtkmm/gl/defs.h [code]
gtkmm/gl/drawingarea.h [code]
gtkmm/gl/init.h [code]
gtkmm/gl/version.h [code]
gtkmm/gl/widget.h [code]

Generated on Mon Feb 27 18:46:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Pixmap__coll__graph.md50000644000175000001440000000004010400731256023770 00000000000000b3a60a2d3b163dc4e45b363df65b199fgtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Pixmap__coll__graph.map0000644000175000001440000000007610400731256024071 00000000000000base referer rect $classGdk_1_1GL_1_1Drawable.html 7,9 141,33 gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Pixmap__coll__graph.png0000644000175000001440000000147510400731256024104 00000000000000‰PNG  IHDR”t‘Ve$PLTEþÿÿo;;;???ßßß___¿¿¿ŸŸŸÿÿÿ]§ BtRNS@æØfÇIDAThíØAoÚ0ð~®ëGØqeɵ¨9bØÇ)›ÎS[¸î0‘2„}lfûTA ¿Üž¬ 4]YÇ&ûbžp~yþ;rgãÀP†úCTÌŸ>Ä‚ÚAK†úûTä]÷`Bhñ¥®ƒä3<.î½kaY$6PÍÕñ:¥ë%õ¹ñ ç§>Hy´NézIa9m姆R6d‰ùH–0‚•ºÔ‘j6ç¤?µ‘Ÿ“¾DÝ(/Ì ô-&ÃA“²œËyrKÕUOö€Š‚ëNl·«NÛiÃŒQ¹éŠ[·Öʤ*¼Ù“mdá´Æ« FA #‰âUp3Fx6€ng4cƒyŒ0duÒJë5 .”óOOߨ.~³b÷›è*§õ5u…Œ;1~/^jNº’gPM÷©ª¬dIe¥k<®×uVð0Ô…D ûN›ª²*nÈJF•°†õ ÞÙêuÍ9Ó'Èy›°#Û±­f}‚‘fuõ´a(CýB=øƒù"ïOêÃã0Ï¢\ÔMa?©Ã]Q…=¥ò„õÌÔÍn©Ã½£ …\;|fj—¯³¡ e(CÊP†2”¡ uŸz꿾†úß(Ö›y0QºX¢ë»ty—møs#ƒ|éO×)]/©·—çÜÊM}åüxÒõ’"ÜyÄkœ_òbÔ¢¼H(§I ‹Y eq™¸Ô'<ÄUv‹ýM”Žâªv‰éÕy˜D£ºò¸';cñ÷nZŽïa9£Ù¨º…êÈÇj“´&«Ø/ »ºEa¯àr:ºãå„Ì…Ð3?­É*+eÛ$¡Â³Þ(æt[ì­AºbÓ´þ™b ?¡DElíjÐý†û*+^TYéšLG£$+EKµ„¢{[VœuæC¢O0°Ô êZÊhq‚@¹Ü}©©«è¸¹å9VÏþ^QþΨÕ0ÔïR;†úשÐZq~“‰ÓßIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/logo_8cc-example.html0000644000175000001440000011551510400731257020467 00000000000000 gtkglextmm: logo.cc

logo.cc

GtkGLExt logo demo.

// -*- C++ -*-
/*
 * logo.cc:
 * GtkGLExt logo demo.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cmath>

#include <GL/gl.h>
#include <GL/glu.h>

#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif

#include "logo.h"

//
// logo_draw_*() functions.
//
namespace LogoModel {
  #include "logo-model.h"
}

//
// Trackball utilities.
//
namespace Trackball {
  extern "C" {
    #include "trackball.h"
  }
}

#define DIG_2_RAD (G_PI / 180.0)
#define RAD_2_DIG (180.0 / G_PI)


//
// OpenGL frame buffer configuration utilities.
//

struct GLConfigUtil
{
  static void print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                              const char* attrib_str,
                              int attrib,
                              bool is_boolean);

  static void examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig);
};

//
// Print a configuration attribute.
//
void GLConfigUtil::print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                                   const char* attrib_str,
                                   int attrib,
                                   bool is_boolean)
{
  int value;

  if (glconfig->get_attrib(attrib, value))
    {
      std::cout << attrib_str << " = ";
      if (is_boolean)
        std::cout << (value == true ? "true" : "false") << std::endl;
      else
        std::cout << value << std::endl;
    }
  else
    {
      std::cout << "*** Cannot get "
                << attrib_str
                << " attribute value\n";
    }
}

//
// Print configuration attributes.
//
void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig)
{
  std::cout << "\nOpenGL visual configurations :\n\n";

  std::cout << "glconfig->is_rgba() = "
            << (glconfig->is_rgba() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_double_buffered() = "
            << (glconfig->is_double_buffered() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_stereo() = "
            << (glconfig->is_stereo() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_alpha() = "
            << (glconfig->has_alpha() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_depth_buffer() = "
            << (glconfig->has_depth_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_stencil_buffer() = "
            << (glconfig->has_stencil_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_accum_buffer() = "
            << (glconfig->has_accum_buffer() ? "true" : "false")
            << std::endl;

  std::cout << std::endl;

  print_gl_attrib(glconfig, "Gdk::GL::USE_GL",           Gdk::GL::USE_GL,           true);
  print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE",      Gdk::GL::BUFFER_SIZE,      false);
  print_gl_attrib(glconfig, "Gdk::GL::LEVEL",            Gdk::GL::LEVEL,            false);
  print_gl_attrib(glconfig, "Gdk::GL::RGBA",             Gdk::GL::RGBA,             true);
  print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER",     Gdk::GL::DOUBLEBUFFER,     true);
  print_gl_attrib(glconfig, "Gdk::GL::STEREO",           Gdk::GL::STEREO,           true);
  print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS",      Gdk::GL::AUX_BUFFERS,      false);
  print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE",         Gdk::GL::RED_SIZE,         false);
  print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE",       Gdk::GL::GREEN_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE",        Gdk::GL::BLUE_SIZE,        false);
  print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE",       Gdk::GL::ALPHA_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE",       Gdk::GL::DEPTH_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE",     Gdk::GL::STENCIL_SIZE,     false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE",   Gdk::GL::ACCUM_RED_SIZE,   false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE",  Gdk::GL::ACCUM_BLUE_SIZE,  false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false);

  std::cout << std::endl;
}


//
// Logo classes.
//

namespace Logo
{

  //
  // View class implementation.
  //

  const float View::NEAR_CLIP   = 2.0;
  const float View::FAR_CLIP    = 60.0;

  const float View::INIT_POS_X  = 0.0;
  const float View::INIT_POS_Y  = 0.0;
  const float View::INIT_POS_Z  = -30.0;

  const float View::INIT_AXIS_X = 1.0;
  const float View::INIT_AXIS_Y = 0.0;
  const float View::INIT_AXIS_Z = 0.0;
  const float View::INIT_ANGLE  = 20.0;

  const float View::INIT_SCALE  = 1.0;

  const float View::SCALE_MAX   = 2.0;
  const float View::SCALE_MIN   = 0.5;

  View::View()
    : m_Scale(INIT_SCALE), m_BeginX(0.0), m_BeginY(0.0)
  {
    reset();
  }

  View::~View()
  {
  }

  void View::frustum(int w, int h)
  {
    glViewport(0, 0, w, h);

    glMatrixMode(GL_PROJECTION);
    glLoadIdentity();

    if (w > h) {
      float aspect = static_cast<float>(w) / static_cast<float>(h);
      glFrustum(-aspect, aspect, -1.0, 1.0, NEAR_CLIP, FAR_CLIP);
    } else {
      float aspect = static_cast<float>(h) / static_cast<float>(w);
      glFrustum(-1.0, 1.0, -aspect, aspect, NEAR_CLIP, FAR_CLIP);
    }

    glMatrixMode(GL_MODELVIEW);
  }

  void View::xform()
  {
    glTranslatef(m_Pos[0], m_Pos[1], m_Pos[2]);

    glScalef(m_Scale, m_Scale, m_Scale);

    float m[4][4];
    Trackball::build_rotmatrix(m, m_Quat);
    glMultMatrixf(&m[0][0]);
  }

  void View::reset()
  {
    m_Pos[0] = INIT_POS_X;
    m_Pos[1] = INIT_POS_Y;
    m_Pos[2] = INIT_POS_Z;

    float sine = sin(0.5 * INIT_ANGLE * DIG_2_RAD);
    m_Quat[0] = INIT_AXIS_X * sine;
    m_Quat[1] = INIT_AXIS_Y * sine;
    m_Quat[2] = INIT_AXIS_Z * sine;
    m_Quat[3] = cos(0.5 * INIT_ANGLE * DIG_2_RAD);

    m_Scale = INIT_SCALE;
  }

  bool View::on_button_press_event(GdkEventButton* event,
                                   Scene* scene)
  {
    m_BeginX = event->x;
    m_BeginY = event->y;

    // don't block
    return false;
  }

  bool View::on_motion_notify_event(GdkEventMotion* event,
                                    Scene* scene)
  {
    if (scene == 0)
      return false;

    float w = scene->get_width();
    float h = scene->get_height();
    float x = event->x;
    float y = event->y;
    float d_quat[4];
    bool redraw = false;

    // Rotation.
    if (event->state & GDK_BUTTON1_MASK) {
      Trackball::trackball(d_quat,
                           (2.0 * m_BeginX - w) / w,
                           (h - 2.0 * m_BeginY) / h,
                           (2.0 * x - w) / w,
                           (h - 2.0 * y) / h);
      Trackball::add_quats(d_quat, m_Quat, m_Quat);
      redraw = true;
    }

    // Scaling.
    if (event->state & GDK_BUTTON2_MASK) {
      m_Scale = m_Scale * (1.0 + (y - m_BeginY) / h);
      if (m_Scale > SCALE_MAX)
        m_Scale = SCALE_MAX;
      else if (m_Scale < SCALE_MIN)
        m_Scale = SCALE_MIN;
      redraw = true;
    }

    m_BeginX = x;
    m_BeginY = y;

    if (redraw && !scene->anim_is_enabled())
      scene->invalidate();

    // don't block
    return false;
  }


  //
  // Model class implementation.
  //

  const float Model::MAT_SPECULAR[4]  = { 0.5, 0.5, 0.5, 1.0 };
  const float Model::MAT_SHININESS[1] = { 10.0 };
  const float Model::MAT_BLACK[4]     = { 0.0, 0.0, 0.0, 1.0 };
  const float Model::MAT_RED[4]       = { 1.0, 0.0, 0.0, 1.0 };
  const float Model::MAT_GREEN[4]     = { 0.0, 1.0, 0.0, 1.0 };
  const float Model::MAT_BLUE[4]      = { 0.0, 0.0, 1.0, 1.0 };

  const unsigned int Model::DEFAULT_ROT_COUNT = 100;

  static float AXIS_X[3] = { 1.0, 0.0, 0.0 };
  static float AXIS_Y[3] = { 0.0, 1.0, 0.0 };
  static float AXIS_Z[3] = { 0.0, 0.0, 1.0 };

  const Model::RotMode Model::ROT_MODE[] = {
    { AXIS_X,  1.0 },
    { AXIS_Y,  1.0 },
    { AXIS_X,  1.0 },
    { AXIS_Z,  1.0 },
    { AXIS_X,  1.0 },
    { AXIS_Y, -1.0 },
    { AXIS_X,  1.0 },
    { AXIS_Z, -1.0 },
    { 0,       0.0 }  // terminator
  };

  Model::Model(unsigned int rot_count,
               bool enable_anim)
    : m_RotCount(rot_count),
      m_EnableAnim(enable_anim), m_Mode(0), m_Counter(0)
  {
    reset_anim();
  }

  Model::~Model()
  {
  }

  void Model::init_gl()
  {
    glEnable(GL_CULL_FACE);

    glPushMatrix();

    glMaterialfv(GL_FRONT, GL_SPECULAR, MAT_SPECULAR);
    glMaterialfv(GL_FRONT, GL_SHININESS, MAT_SHININESS);

    /* Center black cube. */
    glNewList(CUBE, GL_COMPILE);
      glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK);
      LogoModel::logo_draw_cube();
    glEndList();

    /* Forward "G". */
    glNewList(G_FORWARD, GL_COMPILE);
      glDisable(GL_CULL_FACE);
      glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLUE);
      LogoModel::logo_draw_g_plane();
    glEnable(GL_CULL_FACE);

    glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK);
      LogoModel::logo_draw_g();
    glEndList();

    /* Backward "G". */
    glNewList(G_BACKWARD, GL_COMPILE);
      glPushMatrix();
        glRotatef(180.0, 1.0, 0.0, 0.0);

        glDisable(GL_CULL_FACE);
        glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLUE);
        LogoModel::logo_draw_g_plane();
        glEnable(GL_CULL_FACE);

        glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK);
        LogoModel::logo_draw_g();

      glPopMatrix();
    glEndList();

    /* Forward "T". */
    glNewList(T_FORWARD, GL_COMPILE);
      glDisable(GL_CULL_FACE);
      glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_RED);
      LogoModel::logo_draw_t_plane();
      glEnable(GL_CULL_FACE);

      glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK);
      LogoModel::logo_draw_t();
    glEndList();

    /* Backward "T". */
    glNewList(T_BACKWARD, GL_COMPILE);
      glPushMatrix();
        glRotatef(180.0, 1.0, 0.0, 0.0);

        glDisable(GL_CULL_FACE);
        glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_RED);
        LogoModel::logo_draw_t_plane();
        glEnable(GL_CULL_FACE);

        glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK);
        LogoModel::logo_draw_t();

      glPopMatrix();
    glEndList();

    /* Forward "K". */
    glNewList(K_FORWARD, GL_COMPILE);
      glDisable(GL_CULL_FACE);
      glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_GREEN);
      LogoModel::logo_draw_k_plane();
      glEnable(GL_CULL_FACE);

      glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK);
      LogoModel::logo_draw_k();
    glEndList();

    /* Backward "K". */
    glNewList(K_BACKWARD, GL_COMPILE);
      glPushMatrix();
        glRotatef(180.0, 0.0, 0.0, 1.0);

        glDisable(GL_CULL_FACE);
        glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_GREEN);
        LogoModel::logo_draw_k_plane();
        glEnable(GL_CULL_FACE);

        glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK);
        LogoModel::logo_draw_k();
      glPopMatrix();
    glEndList();

    glPopMatrix();

    glEnable(GL_NORMALIZE);
  }

  void Model::draw()
  {
    // Init GL context.
    static bool initialized = false;
    if (!initialized) {
      init_gl();
      initialized = true;
    }

    // Animation.
    if (m_EnableAnim) {
      if (m_Counter == m_RotCount) {
        if (ROT_MODE[++m_Mode].axis == 0)
          m_Mode = 0;
        m_Counter = 0;
      }

      float d_quat[4];
      Trackball::axis_to_quat(ROT_MODE[m_Mode].axis,
                              ROT_MODE[m_Mode].sign * G_PI_2 / m_RotCount,
                              d_quat);
      Trackball::add_quats(d_quat, m_Quat, m_Quat);

      ++m_Counter;
    }

    // Draw logo model.
    glPushMatrix();
      glTranslatef(m_Pos[0], m_Pos[1], m_Pos[2]);

      float m[4][4];
      Trackball::build_rotmatrix(m, m_Quat);
      glMultMatrixf(&m[0][0]);

      glRotatef(90.0, 1.0, 0.0, 0.0);
      glCallList(CUBE);
      glCallList(G_FORWARD);
      glCallList(G_BACKWARD);
      glCallList(T_FORWARD);
      glCallList(T_BACKWARD);
      glCallList(K_FORWARD);
      glCallList(K_BACKWARD);
    glPopMatrix();
  }

  void Model::reset_anim()
  {
    m_Pos[0] = 0.0;
    m_Pos[1] = 0.0;
    m_Pos[2] = 0.0;

    m_Quat[0] = 0.0;
    m_Quat[1] = 0.0;
    m_Quat[2] = 0.0;
    m_Quat[3] = 1.0;

    m_Mode = 0;
    m_Counter = 0;
  }


  //
  // Scene class implementation.
  //

  const unsigned int Scene::TIMEOUT_INTERVAL = 10;

  const float Scene::CLEAR_COLOR[4] = { 0.5, 0.5, 0.8, 1.0 };
  const float Scene::CLEAR_DEPTH    = 1.0;

  const float Scene::LIGHT0_POSITION[4] = { 0.0, 0.0, 30.0, 0.0 };
  const float Scene::LIGHT0_DIFFUSE[4]  = { 1.0, 1.0, 1.0, 1.0 };
  const float Scene::LIGHT0_SPECULAR[4] = { 1.0, 1.0, 1.0, 1.0 };

  Scene::Scene(unsigned int rot_count,
               bool enable_anim)
    : m_Menu(0), m_Model(rot_count, enable_anim)
  {
    //
    // Configure OpenGL-capable visual.
    //

    Glib::RefPtr<Gdk::GL::Config> glconfig;

    // Try double-buffered visual
    glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB    |
                                       Gdk::GL::MODE_DEPTH  |
                                       Gdk::GL::MODE_DOUBLE);
    if (!glconfig) {
      std::cerr << "*** Cannot find the double-buffered visual.\n"
                << "*** Trying single-buffered visual.\n";

      // Try single-buffered visual
      glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB   |
                                         Gdk::GL::MODE_DEPTH);
      if (!glconfig) {
        std::cerr << "*** Cannot find any OpenGL-capable visual.\n";
        std::exit(1);
      }
    }

    // print frame buffer attributes.
    GLConfigUtil::examine_gl_attrib(glconfig);

    //
    // Set OpenGL-capability to the widget.
    //

    set_gl_capability(glconfig);

    //
    // Add events.
    //
    add_events(Gdk::BUTTON1_MOTION_MASK    |
               Gdk::BUTTON2_MOTION_MASK    |
               Gdk::BUTTON_PRESS_MASK      |
               Gdk::VISIBILITY_NOTIFY_MASK);

    // View transformation signals.
    signal_button_press_event().connect(
      sigc::bind(sigc::mem_fun(m_View, &View::on_button_press_event), this));
    signal_motion_notify_event().connect(
      sigc::bind(sigc::mem_fun(m_View, &View::on_motion_notify_event), this));

    //
    // Popup menu.
    //

    m_Menu = create_popup_menu();
  }

  Scene::~Scene()
  {
  }

  void Scene::on_realize()
  {
    // We need to call the base on_realize()
    Gtk::DrawingArea::on_realize();

    //
    // Get GL::Drawable.
    //

    Glib::RefPtr<Gdk::GL::Drawable> gldrawable = get_gl_drawable();

    //
    // GL calls.
    //

    // *** OpenGL BEGIN ***
    if (!gldrawable->gl_begin(get_gl_context()))
      return;

    glClearColor(CLEAR_COLOR[0], CLEAR_COLOR[1], CLEAR_COLOR[2], CLEAR_COLOR[3]);
    glClearDepth(CLEAR_DEPTH);

    glLightfv(GL_LIGHT0, GL_POSITION, LIGHT0_POSITION);
    glLightfv(GL_LIGHT0, GL_DIFFUSE,  LIGHT0_DIFFUSE);
    glLightfv(GL_LIGHT0, GL_SPECULAR, LIGHT0_SPECULAR);

    glEnable(GL_LIGHTING);
    glEnable(GL_LIGHT0);

    glEnable(GL_DEPTH_TEST);

    glShadeModel(GL_SMOOTH);

    gldrawable->gl_end();
    // *** OpenGL END ***
  }

  bool Scene::on_configure_event(GdkEventConfigure* event)
  {
    //
    // Get GL::Drawable.
    //

    Glib::RefPtr<Gdk::GL::Drawable> gldrawable = get_gl_drawable();

    //
    // GL calls.
    //

    // *** OpenGL BEGIN ***
    if (!gldrawable->gl_begin(get_gl_context()))
      return false;

    m_View.frustum(get_width(), get_height());

    gldrawable->gl_end();
    // *** OpenGL END ***

    return true;
  }

  bool Scene::on_expose_event(GdkEventExpose* event)
  {
    //
    // Get GL::Drawable.
    //

    Glib::RefPtr<Gdk::GL::Drawable> gldrawable = get_gl_drawable();

    //
    // GL calls.
    //

    // *** OpenGL BEGIN ***
    if (!gldrawable->gl_begin(get_gl_context()))
      return false;

    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

    glLoadIdentity();

    // View transformation.
    m_View.xform();

    // Logo model.
    m_Model.draw();

    // Swap buffers.
    if (gldrawable->is_double_buffered())
      gldrawable->swap_buffers();
    else
      glFlush();

    gldrawable->gl_end();
    // *** OpenGL END ***

    return true;
  }

  bool Scene::on_button_press_event(GdkEventButton* event)
  {
    if (event->button == 3) {
      m_Menu->popup(event->button, event->time);
      return true;
    }

    // don't block
    return false;
  }

  bool Scene::on_map_event(GdkEventAny* event)
  {
    if (m_Model.anim_is_enabled())
      timeout_add();

    return true;
  }

  bool Scene::on_unmap_event(GdkEventAny* event)
  {
    timeout_remove();

    return true;
  }

  bool Scene::on_visibility_notify_event(GdkEventVisibility* event)
  {
    if (m_Model.anim_is_enabled()) {
      if (event->state == GDK_VISIBILITY_FULLY_OBSCURED)
        timeout_remove();
      else
        timeout_add();
    }

    return true;
  }

  bool Scene::on_timeout()
  {
    // Invalidate whole window.
    invalidate();
    // Update window synchronously (fast).
    update();

    return true;
  }

  void Scene::timeout_add()
  {
    if (!m_ConnectionTimeout.connected())
      m_ConnectionTimeout = Glib::signal_timeout().connect(
        sigc::mem_fun(*this, &Scene::on_timeout), TIMEOUT_INTERVAL);
  }

  void Scene::timeout_remove()
  {
    if (m_ConnectionTimeout.connected())
      m_ConnectionTimeout.disconnect();
  }

  void Scene::toggle_anim()
  {
    if (m_Model.anim_is_enabled()) {
      m_Model.disable_anim();
      timeout_remove();
    } else {
      m_Model.enable_anim();
      timeout_add();
    }
  }

  void Scene::init_anim()
  {
    m_View.reset();
    m_Model.reset_anim();

    invalidate();
  }

  Gtk::Menu* Scene::create_popup_menu()
  {
    Gtk::Menu* menu = Gtk::manage(new Gtk::Menu());

    Gtk::Menu::MenuList& menu_list = menu->items();

    // Toggle animation
    menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Toggle Animation",
      sigc::mem_fun(*this, &Scene::toggle_anim)));

    // Init orientation
    menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Initialize",
      sigc::mem_fun(*this, &Scene::init_anim)));

    // Quit
    menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Quit",
      sigc::ptr_fun(&Gtk::Main::quit)));    

    return menu;
  }


  //
  // Application class implementation.
  //

  const Glib::ustring Application::APP_NAME = "Logo";

  Application::Application(unsigned int rot_count,
                           bool enable_anim)
    : m_VBox(false, 0), m_Scene(rot_count, enable_anim), m_ButtonQuit("Quit")
  {
    //
    // Top-level window.
    //

    set_title(APP_NAME);

    // Get automatically redrawn if any of their children changed allocation.
    set_reallocate_redraws(true);

    add(m_VBox);

    //
    // Application scene.
    //

    m_Scene.set_size_request(300, 300);

    m_VBox.pack_start(m_Scene);

    //
    // Simple quit button.
    //

    m_ButtonQuit.signal_clicked().connect(
      sigc::mem_fun(*this, &Application::on_button_quit_clicked));

    m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0);

    //
    // Show window.
    //

    show_all();
  }

  Application::~Application()
  {
  }

  void Application::on_button_quit_clicked()
  {
    Gtk::Main::quit();
  }

  bool Application::on_key_press_event(GdkEventKey* event)
  {
    switch (event->keyval) {
    case GDK_a:
      m_Scene.toggle_anim();
      break;
    case GDK_i:
      m_Scene.init_anim();
      break;
    case GDK_Escape:
      Gtk::Main::quit();
      break;
    default:
      return true;
    }

    m_Scene.invalidate();

    return true;
  }


} // namespace Logo


//
// Main.
//

int main(int argc, char** argv)
{
  Gtk::Main kit(argc, argv);

  //
  // Init gtkglextmm.
  //

  Gtk::GL::init(argc, argv);

  //
  // Parse arguments.
  //

  unsigned int rot_count = Logo::Model::DEFAULT_ROT_COUNT;
  bool enable_anim = true;

  bool arg_count = false;
  for (int i = 1; i < argc; ++i) {
    if (arg_count)
      rot_count = std::atoi(argv[i]);

    if (std::strcmp(argv[i], "--help") == 0 ||
        std::strcmp(argv[i], "-h") == 0) {
      std::cerr << "Usage: "
                << argv[0]
                << " [-count num] [-noanim] [--help]\n";
      std::exit(0);
    }

    if (std::strcmp(argv[i], "-count") == 0)
      arg_count = true;

    if (std::strcmp(argv[i], "-noanim") == 0)
      enable_anim = false;
  }

  //
  // Query OpenGL extension version.
  //

  int major, minor;
  Gdk::GL::query_version(major, minor);
  std::cout << "OpenGL extension version - "
            << major << "." << minor << std::endl;

  //
  // Instantiate and run the application.
  //

  Logo::Application application(rot_count, enable_anim);

  kit.run(application);

  return 0;
}

Generated on Mon Feb 27 18:46:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2version_8h__incl.md50000644000175000001440000000004010400731256024253 00000000000000b04cdb8eb6cd4078d493d518e808b77fgtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2version_8h__incl.map0000644000175000001440000000010310400731256024343 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 194,32 314,56 gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2version_8h__incl.png0000644000175000001440000000304410400731256024361 00000000000000‰PNG  IHDRW‰©@Õ$PLTEþÿÿ§§§o???¿¿¿___ßßߟŸŸÿÿÿ«d¨tRNS@æØf®IDATxœí›Ïs¢HÇçoñšëNbéqv­=&“šJN[븎©ÚXxÌNtšëlªFO[DÄæf‘÷Ïm¿n% qÕ!|Íî&¾OÝðýÞ¼Þ%ý’WŽ G#€ä GiG0ùuKÉI9‚}ôËär#€dgÏŽjå<±CVú¡2ƒÀ‰Fà×±“qƒ@ŸïdÁÔìuÙ0RÚä~p>`;Ÿ•KGiA‡âP괦Ű©ß\Y@pÚ-!£û'¹¬¶«ÝÁd8±N»'pÝ}ÏÎè¾Nœâ-"hWu©ß\Y@P‚,¨æô~× ¬:|<Ã0nÍCºŸQø]># ÅqF'ÌtDYEáß`q&ð‚Ì"8íjb,ø*!XŒSìX³ #f„'S*fgÜd AáKaÊǧ ?J=ôØ „°¸®ŸkÎn„²t˜ ÂüF ÅgÛk†.eA¡°eï, ˜x›/Ëcñßå[DP3Ax8üÿzetÉYøÞ»{D°ËÏ\(êÏE¾Æo Ñw¼fä‡{L¥2‚À÷_JŽ`¼õ¼·¹ÁK;×a#Ø¥ïÆzAã£ÍHéúaËšX¨b4ò×ì®\z,ÜX2ó–lê`Ap#^ä.j¼YÐê0\ ס“›!à âüÀ‚àF˜ý š‚ª@P¥ëÄ!(cAp#̶D³Äô;î@ï¸þàNm9_sªÖ/ÌÞÈk+ªÙûÚ¥ôÔb©åýå›ý«gÎ ÊHŒ0CkZŽÒ´lçJŠõ{í©ÙÓ‰×fU6hC׬ݛ}`•—‰ Têî—ã¢ëŸ)êE¹Wn8ÆÌp‡ÚY£¦¨C­E‹ôgã“úN ×UêçŽá23,£ޏÇ?ÿX±ìS]ŠõÏú§Ý’Nf}VeO[·m F&b· k`ßÓë@t2ÕY•íë•!¼_ ¶B]—™4ù$#x`…­¨ttᚬ¥Jé/û*4\>lâÇ·˜mƉŒàS:Ágö,øðG Ç‚ä¼à–y¯–$7”{Á 5:UêS“!(±6è!˜›^Pg^`“š„à'p/À óÝ‚ÚÄNÁ ÒcÁ€HîéY£¯¨÷”v5>Pú8cÖkñ30ŽÏÇG•´0 “<3{–‚`F ß$UÊg6'öÙcÜ3‹×Ç!Ÿ3ÈéŽ2ð¡ 8#xÚy›De Å\z$:fCÃ&Šú ÜŒ¥8~ gR¯#T×™vÖø±;‚¥8~ gR¯~#L”u¦ ²;‚¥8~ gRiS܃ÁsE ñW‹Ða#À¾ãPÜp¼ÿ(Òá#@==f¾@$-¸¸;„}b/JÔ<“¸uð|]4==©™Á¶)”á…R–PÛ1£¼¢Ô"Ø:‘¶¢t"ÀòM#ÊäBQéèÑ­®KÈ(wíûju]BFøÑVÖ%¤ÁSn‚ Úpr5S•ßEŽ‚—ÌûãÖ%¤”›à+0øxsWóEŽÂã%ebÖ%¤”›àߢc"âî+Ìã’<kágê1ëÒŽ@ÊMˆ ì±ÂzF캄´#r ô»“U/ˆY—vRn‚¯HÀ±à=Ž!±ëÒŽ@ÊMðÁÓ†ßÕÙÕã¿!±ëÒŽ@ÊMl°"aÞq)Ÿ‘rRnbƒ BËùŒ”#r›¬H€¥>Á…ÒŒ`OÊär#€Ô"HW*åà•#Èä GÀôùíåèöÀÄIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1PixmapExtProxy-members.html0000644000175000001440000000640410400731256024744 00000000000000 gtkglextmm: Member List

Gdk::GL::PixmapExtProxy Member List

This is the complete list of members for Gdk::GL::PixmapExtProxy, including all inherited members.

ext(const Glib::RefPtr< Gdk::Pixmap > &)Gdk::GL::PixmapExtProxy [friend]
ext(const Glib::RefPtr< const Gdk::Pixmap > &)Gdk::GL::PixmapExtProxy [friend]
get_gl_drawable() const Gdk::GL::PixmapExtProxy
get_gl_pixmap() const Gdk::GL::PixmapExtProxy
is_gl_capable() const Gdk::GL::PixmapExtProxy
set_gl_capability(const Glib::RefPtr< const Config > &glconfig, const int *attrib_list=0)Gdk::GL::PixmapExtProxy
unset_gl_capability()Gdk::GL::PixmapExtProxy


Generated on Mon Feb 27 18:47:55 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2init_8h.html0000644000175000001440000000647210400731257022724 00000000000000 gtkglextmm: gtkmm/gl/init.h File Reference

init.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gtk
namespace  Gtk::GL

Functions

bool Gtk::GL::init_check (int &argc, char **&argv)
bool Gtk::GL::init_check (int *argc, char ***argv)
void Gtk::GL::init (int &argc, char **&argv)
void Gtk::GL::init (int *argc, char ***argv)


Generated on Mon Feb 27 18:47:18 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2init_8h-source.html0000644000175000001440000001226110400731256024152 00000000000000 gtkglextmm: gdkmm/gl/init.h Source File

init.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gdkglextmm - C++ Wrapper for GdkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GDKMM_GL_INIT_H
00021 #define _GDKMM_GL_INIT_H
00022 
00023 namespace Gdk
00024 {
00025   namespace GL
00026   {
00027 
00046     bool init_check(int& argc, char**& argv);
00047 
00066     bool init_check(int* argc, char*** argv);
00067 
00087     void init(int& argc, char**& argv);
00088 
00108     void init(int* argc, char*** argv);
00109 
00110   } // namespace GL
00111 } // namespace Gdk
00112 
00113 #endif // _GDKMM_GL_INIT_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGtk_1_1GL_1_1DrawingArea.html0000644000175000001440000002733610400731256022546 00000000000000 gtkglextmm: Gtk::GL::DrawingArea Class Reference

Gtk::GL::DrawingArea Class Reference

#include <drawingarea.h>

Inheritance diagram for Gtk::GL::DrawingArea:

Inheritance graph
[legend]
Collaboration diagram for Gtk::GL::DrawingArea:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~DrawingArea ()
 DrawingArea ()
 DrawingArea (const Glib::RefPtr< const Gdk::GL::Config > &glconfig, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
 DrawingArea (const Glib::RefPtr< const Gdk::GL::Config > &glconfig, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)

Detailed Description

OpenGL-capable DrawingArea widget.


Constructor & Destructor Documentation

virtual Gtk::GL::DrawingArea::~DrawingArea  )  [virtual]
 

Gtk::GL::DrawingArea::DrawingArea  )  [inline]
 

Create an DrawingArea widget which supports OpenGL rendering. This constructor does *NOT* call set_gl_capability() method, so that you should call it yourself to make instantiated DrawingArea OpenGL-capable.

Gtk::GL::DrawingArea::DrawingArea const Glib::RefPtr< const Gdk::GL::Config > &  glconfig,
const Glib::RefPtr< const Gdk::GL::Context > &  share_list,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[inline]
 

Create an OpenGL-capable DrawingArea widget.

Parameters:
glconfig a Gdk::GL::Config.
share_list the Gdk::GL::Context which to share display lists.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).

Gtk::GL::DrawingArea::DrawingArea const Glib::RefPtr< const Gdk::GL::Config > &  glconfig,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[inline]
 

Create an OpenGL-capable DrawingArea widget.

Parameters:
glconfig a Gdk::GL::Config.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/widget_8h.html0000644000175000001440000001624610400731257017224 00000000000000 gtkglextmm: gtkmm/gl/widget.h File Reference

widget.h File Reference

#include <gtkmm/widget.h>
#include <gdkmm/gl/tokens.h>
#include <gdkmm/gl/config.h>
#include <gdkmm/gl/context.h>
#include <gdkmm/gl/window.h>

Include dependency graph for widget.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gtk
namespace  Gtk::GL

Classes

class  Gtk::GL::Widget< T_GtkWidget >

Functions

bool Gtk::GL::widget_set_gl_capability (Gtk::Widget &widget, const Glib::RefPtr< const Gdk::GL::Config > &glconfig, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
bool Gtk::GL::widget_set_gl_capability (Gtk::Widget &widget, const Glib::RefPtr< const Gdk::GL::Config > &glconfig, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
bool Gtk::GL::widget_is_gl_capable (const Gtk::Widget &widget)
Glib::RefPtr< Gdk::GL::ConfigGtk::GL::widget_get_gl_config (const Gtk::Widget &widget)
Glib::RefPtr< Gdk::GL::ContextGtk::GL::widget_create_gl_context (const Gtk::Widget &widget, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
Glib::RefPtr< Gdk::GL::ContextGtk::GL::widget_create_gl_context (const Gtk::Widget &widget, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
Glib::RefPtr< Gdk::GL::ContextGtk::GL::widget_get_gl_context (const Gtk::Widget &widget)
Glib::RefPtr< Gdk::GL::WindowGtk::GL::widget_get_gl_window (const Gtk::Widget &widget)
Glib::RefPtr< Gdk::GL::DrawableGtk::GL::widget_get_gl_drawable (const Gtk::Widget &widget)


Generated on Mon Feb 27 18:47:49 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/pixmap_8h__incl.md50000644000175000001440000000004010400731257020105 00000000000000e74f56d026c49d42fc3150627fcc8503gtkglextmm-1.2.0/docs/reference/html/pixmap_8h__incl.map0000644000175000001440000000022110400731257020176 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 570,160 690,184 rect $config_8h.html 392,160 522,184 rect $drawable_8h.html 196,109 342,133 gtkglextmm-1.2.0/docs/reference/html/pixmap_8h__incl.png0000644000175000001440000001047010400731257020214 00000000000000‰PNG  IHDRºRï,aX'PLTEþÿÿÿo;;;???¿¿¿___ßßߟŸŸÿÿÿþÂëtRNS@æØf¿IDATxœíOsâFÀórÏe}î°ÇT2®ñqR®YsôÆ5ÇØ“1³UC™£3c"“rÕ GþX–Nª,èµÝ-ZBÞ¼_vjÄ“æçGÓú÷øŽx|·ï 8hÈ.&d²‹ ÙÅ„ìbBv1!»˜]LÈ.&d²‹ ÙÅ„ìbBv1!»˜]LÈ.&d²‹ ÙÅ„ìbBv1!»˜]LÈ.&d²‹ ÙÅ„ìbBv1!»˜]LÈ.&d²‹ ÙÅ„ìbBv1!»˜]LÈ.&d²‹ ÙÅ„ìbBv1!»˜]LÈ.&d²‹ ÙÅ„ìbBv1!»˜]LÈ.&d²›‘ñ/™ˆ¾‰ìfd¼ËRd7#d²‹Ã‰z$»8œ(½Çl÷d¶ÍŽÊn>aIÆÙ†ÅCo†ç±%#v Ø-þ›+þŸ;5wKo·¤jydobrúô»ï4»½rÛuË«6f«™pÌ ÙµJl×-_OA·;6ám"å²[vµáNÅ¢g8K]ºLvË®Vše®~œá®o¦¾£,Çò¯¤0»%’›0òJZ `MÙ-Ë÷Ùçì²-•N1vKñ}–<¤]»4Ä* ±[‚ﳭφn·ôа»÷^a‡K ©[„ÝýÊÝñœ]UìîSîîWGìø¶èva’`òœhÚjt» {IdѦÀ`¶ÛnáýÈUhP8d»Åö ÛhÓAáèvnxÈëû áÚ-,u/•b@qpí2Ôè ᪰¤@µ‹Ÿº.ÊNv5ì2ÌàïJ)°¨˜vqS×Å;Ê UÒ.ö`¡1í2ò=?sË \V Ú]lä` ºe¥vY0…³ ) Ïî2È.dÓ.[<©š]À¡šÝpÉ.xŽœÝ-ˆÛ}}5¯F_ ~ÕÕêF<È[C=ç‹—¼Áõã¨ñ“7ä1õž›ƒ¿Øa÷q¨GB‡Á…²Ë§ÊÉe÷õ§ë?›ÆäÔÓêF|‘å$<çËD¼äõkñu9î1õúÝß þ±ûJØ•&ÂHè°Kd¦(»×ÜøÜãFÝÔï_nË[ò=§=/y7=ëbRÿt&¦bîÜ ž »ò&ý06ÇžìꛨœX|n˜¢ßý±£Û=“å$àÖK}rgŠ©Ÿ»÷Èî*+v/»wªßåWšÝS–“ðžLÕï:Þ`bÍú㑜Š~÷Fõ»3²»ÓžGÇ S­*ǽ*'áõ¹38¼~ó3ŠÿÄÔ3<Øí¹Y°]¶q‰ìe÷íJ‰4ÅÆr ¹ÛÆ*Êîe÷¤å6–“ˆðǯ©zº ÇndýžÁ>M\rS9‰~Ï€k¸’vA#á&»>8ç/A#VØ®Zx3È`8v™>ƒ~ôÜ/ºÄ’_Ü 0>‡`×Çq {… ¾]÷_`W‹dèò8«–]Ø«½2ÅÊ%x÷w&b7Lè/ŒÁv¿Ä·w­Õ.ä·Í"döØeåÀ¢ØeþD«ý Çvñ¶±UÈ.ÆE÷»Ü£µEg\,+˜v‘ö¦vú{eLb¶Kìõ`Ø]~¼Žìsãg úznT»;Þ_¾‘\AÓ>O•²Ë°®fÎù7[;"NnÝ »,˜ºxåpØÆ%6,8wؘvž]ˆB;«‚Áo£A´ërødX#"&¸JvBè¨O….˜­_l7캑  ,Òbh¿ÅÕµ [ãL  ¨À³Ëà#¯®òOˆ0|D°ËÔc¥N`ëȹðwÌ£ÙeðÖ¹/È8xIEx»®öˆ X,¹Þ.SÅÔl<Á˜j ñwòËÀã&xY£> p»v §–b,vá!þn•¶ëÂ[bñÈàv™öˆ vΪGÓVÐv‹Ú•X¬&y>j Ÿ »…(tOr_íÃ’¢*v-/Ë‚¶Ë´ÇÂÈ}¥ZB5ØËÁnÁC†ÝÜÑì]ÑøXì2õHv9¢]t#Gbw?‚ÝàXY¹ì2õ¸O»)µa–Ôßúw †7"®ÚõwQ´vϊݶø V''~œzm5&¨Ý`ìÍ cf![m˜%ÞPÓT»JošÝÔêäÄ3Hˆ i· j«d« ³$øEû v¥Þ4»gjurâDZbBÚe‘Idª ódzwOÞs³1½uD£0!f´:Á¥Õ~»XxÒ¼µœÉÓS὎\¡áuÄK¿{šŽj£^,& ÝÅ>9ƒ ™‘,µaNï;/§÷ï†c‹[ÞP4 »b)-€Np‘j—®Þž[Î¥©bvUøYO¬Ð4f=ñ’óÒ¾ïXüyìÄbÂÙucÓÉR¦æõææøƒ%_òF¢Q~ØÄɘ|QF¸åckh©Ró® ÿbŠšÆ‹)^rDä–°Ëõ˜°vYlZÁÁÇlµa„ÙyJ»¶)¨åÂ:zîÊ–xkÿ•n÷›\¡iȉç¶íXüÍoµXL0»‹~¡ÐÔ=ѾÚ7Õ†ñ2w=w7Ø Úe„k‘»ŽQÓì~á*wåDä.ç¦Åk²g@±^³ 0Á1Ø,µa‚~×·;¼—nwÙ.#¨~wÒÒì¶å M£ÍÃ~w0sf8vÙb³€âeCï7Ô†¹óÇ ¾]5f°Òì2­}1fà7šÝ3µBãŒË1ƒˆ,rWŒü—ï²»<†Ï`âeÁ]~÷l]&Þ˜zœa]u™5+Ôß c7¼$Üæõ{¢uÛÔ†‰7¦Ú]W]fÍ õ÷‚Ø]^„-72RâÑoµ­jÃÄÓ‘­©.³n…Ú{!ì.åbuºËñçê jÕ‡|2”ËR–Ú 'fƒWØ.†ÜµÉšÌáÚ…”»¥Ô%‡k—­<Ù…|—f`ÙÍuÏÒîÜ`‡ pwMÖy/ù>µœÑIΫE ¶î䓊Nî­,Ö®[ ©Krom!v+“¬.Ä&ãÙ„®þ9a7ï¦ÃÛ…ù¢Ú+ ©.ȦšÝV+êlôU>̃ɪÓpqzà ÿ ¹oÑßd÷éµÒª&v=Íîaˆü+r7Ùdw x>Xõš»>=B»Ï^§ùÎë´ìwï_Ì_Íz«=y7±oíÞÃt4¿½˜_GóÓfÛon{uÙ"ì¶'‡a7w›Dh÷¿ïk7÷¿™­áùhÒŸõ§­úÙ׳æÇáùµ°ûq4~ÿi4~¼÷›'ý©lvÅÌØÅùMmÍî½ÝúpgŸµMñí5µ§-Ûi:ÍGëõHØ}MíSñåÖ­ûÍMÑ(Z„]1Sq»ˆcÆÐîÔvZMÑïþòU·{!ä »¢­%þßhúÍÿûÏT¶È~·ºvñ‡ŽÑÜ}-rwôM³ûûÊÝ—» wÿüêÛýf/r·ŠvÝ¢Fäz¿ÛSý®ýN³{ÛžßNG³¦ßï®îUóûoCÕï>UÍnÁûŽ cë*´{m«1ÃØöÇ m»ýo•»Ooe‹Ó¬ŠÝýì@†v¶cC]Ÿ~Sí¢­î§Å[JzLa¯ûåzÏðO’]Ñ3\d² ˆïUör3ö´~­gàçIvíÞX~ôÕ†¨ÝXKrü˜lä­»÷¿j”ÂÏMÄmçòÿÛ±±0Øëy5ŸUß™aP(݆ìbBv1¿o‚¼ç‡…: ïWcp±@».eoÐ;Y÷p#`¹½ ›1Àh‡hêbW¿ ¾!tå¯ê@W¢äÕ¯GÆ`V²‹ xHê4à«l2àˆU¾B,%oBíh²º Ø¥ä]‚QUžAǬ,v)y`üšÙ]€ò[) Sï¹Ù1ø‹Ýv‡A²¢³Êîe÷õ§ë?›ÆäÔŽŸÆ–Ѹè\˜_&¢Íë׆cërÜ;bêõ»¿üc÷•°+–ðCÝØ AÙ½æÆç¿0ê¦øè[Ü2øÜœ›í©hó,nzÖŤþéLLÅܹ!–8vÅ~²’d×âsÃýîÝî™Ðgˆ†¿_YÓ7oÞôÄT̆§JúÊeüd7d]îÖDîzÍî_½©h n½Ô'w¦˜ú¹ëpì&“d÷²{§ú]~¥Ù}0U¿ëxƒ‰5ëGr*úÝÕïÎÈn"Iv—c†é»Ðî=Wc‡×o~æCñŸ˜úc†»=7Én",2§ì¾k·‚ìj°È\Ð3ü‘# ÙÕ`‘9¿g°Os$»,2GÇÈ`‰~­‘]XÈ®Ën´k »À0}†ìÃôº˜£¾¢ÙÅÍ.ÝðÃÉ..xv©kÀ´KÉKvqA´K]¦]J^T»”¼dL»Ô5 Ú=úäEµ{ôÉ‹k÷Ø“×î±'/²Ý#O^d»Gž¼Øv;y±í÷Ïþ Ûu¹ªºÝEeœ|'„NÙï|»®_\$Ÿ²»×O^²‹BP‡ì¢àWÆ!»(øu‡ò–Æ!»Évs–Æ!»ëqs—|#»él(Ñ nl.GvÓÙP¢óÆê{ÈnV6”hH„ìf%­Dƒ¼¹Ò|˜µüù Dƒ^즓V¢AÞì9?×üy¿DÃ^즓V¢AÞÔî9Ÿo¸?”hЫ3ÝtÒJ4È‚ ž3±»A‰½~ÙM'­DC»¯»A‰²›´ ~¿û“èwå|7(Ñ0#»™I+Ñ Æ Ï­Ù?wƒ zu²›NZ‰†Õý´x ÙM'­DÙÍKZ‰u !µ…ì¦CG 1!»˜]LÈ.&dº‡†ìbBv1!»˜]LþÄÕ”èC¦fIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/font_8h.html0000644000175000001440000000623410400731256016702 00000000000000 gtkglextmm: gdkmm/gl/font.h File Reference

font.h File Reference

#include <glibmm.h>
#include <gdkmm/gl/defs.h>
#include <gdkmm/display.h>
#include <pangomm/font.h>

Include dependency graph for font.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL

Classes

class  Gdk::GL::Font


Generated on Mon Feb 27 18:47:15 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/namespacemembers.html0000644000175000001440000003733410400731257020652 00000000000000 gtkglextmm: Class Members
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x

Here is a list of all namespace members with links to the namespace documentation for each member:

- a -

- b -

- c -

- d -

- e -

- f -

- g -

- h -

- i -

- l -

- m -

- n -

- o -

- p -

- q -

- r -

- s -

- t -

- u -

- v -

- w -

- x -


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/pixmapext_8h-source.html0000644000175000001440000002240410400731257021247 00000000000000 gtkglextmm: gdkmm/gl/pixmapext.h Source File

pixmapext.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gdkglextmm - C++ Wrapper for GdkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GDKMM_GL_PIXMAPEXT_H
00021 #define _GDKMM_GL_PIXMAPEXT_H
00022 
00023 #include <glibmm.h>
00024 
00025 #include <gdkmm/gl/defs.h>
00026 #include <gdkmm/gl/pixmap.h>
00027 
00028 namespace Gdk
00029 {
00030   namespace GL
00031   {
00032 
00033     class PixmapExtProxy
00034     {
00035     private:
00036       PixmapExtProxy(const Glib::RefPtr<Gdk::Pixmap>& pixmap)
00037         : pixmap_(pixmap)
00038       {}
00039 
00040     private:
00041       PixmapExtProxy(const PixmapExtProxy&);
00042       PixmapExtProxy& operator=(const PixmapExtProxy&);
00043 
00044     public:
00045 
00056       Glib::RefPtr<Pixmap> set_gl_capability(const Glib::RefPtr<const Config>& glconfig,
00057                                              const int* attrib_list = 0);
00058 
00063       void unset_gl_capability();
00064 
00069       bool is_gl_capable() const;
00070 
00075       Glib::RefPtr<Pixmap> get_gl_pixmap() const;
00076 
00081       Glib::RefPtr<Gdk::GL::Drawable> get_gl_drawable() const;
00082 
00083     private:
00084       const Glib::RefPtr<Gdk::Pixmap>& pixmap_;
00085 
00086       friend PixmapExtProxy ext(const Glib::RefPtr<Gdk::Pixmap>&);
00087       friend const PixmapExtProxy ext(const Glib::RefPtr<const Gdk::Pixmap>&);
00088     };
00089 
00107     inline
00108     PixmapExtProxy ext(const Glib::RefPtr<Gdk::Pixmap>& pixmap)
00109     { return PixmapExtProxy(pixmap); }
00110 
00117     inline
00118     const PixmapExtProxy ext(const Glib::RefPtr<const Gdk::Pixmap>& pixmap)
00119     { return PixmapExtProxy(reinterpret_cast<const Glib::RefPtr<Gdk::Pixmap>&>(pixmap)); }
00120 
00121   } // namespace GL
00122 } // namespace Gdk
00123 
00124 #endif // _GDKMM_GL_PIXMAPEXT_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/namespaceGtk.html0000644000175000001440000000323210400731257017733 00000000000000 gtkglextmm: Gtk Namespace Reference

Gtk Namespace Reference


Namespaces

namespace  GL


Generated on Mon Feb 27 18:47:57 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/config_8h__incl.md50000644000175000001440000000004010400731256020053 000000000000007a74346086a185bad0c9d829580de1c3gtkglextmm-1.2.0/docs/reference/html/config_8h__incl.map0000644000175000001440000000010310400731256020143 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 194,56 314,80 gtkglextmm-1.2.0/docs/reference/html/config_8h__incl.png0000644000175000001440000000621210400731256020161 00000000000000‰PNG  IHDR 瀴T$PLTEþÿÿ§§§o???¿¿¿___ßßߟŸŸÿÿÿ«d¨tRNS@æØf IDATxœíÏsâ¸Ç÷o¡æÆqÞLRáø¶RSá˜ÝT*œ^-™MÌqkkRä˜7 c_§RµáôŠ„8öÍᇱþ¹§nÉ lH6úl06AŸ´$[­VÿBŒ¨~ÙôØ (ƒe0  ”Á€2PZ1 ~]I:—^ Ï’+ƒe0  ”Á€2P›Á`‡¾ú,ôçÎÒ¨ a ƒ0Çоt¡RÜ?‡/ÖïVþ:y¢^¬†x–^éÇ0Ü¿A û·WOƒçk7Ž®Ò—ÂYš¥è"gpá—¸6‰œˆb /…³4K† R©^@ZdÄ@ žÀàï† C‘i ;€0 àåpÿŽ· §†îî`¨¦{ ƒ» VÀ3»EX¨²b*)Äæ]-÷ô’bªØF’éíSÏÉ=¿œ€Ùé'L¤@|½»*UáÍÎbïvCPM¼U‚aEçG¾;D-†$5îš÷Oâ:¥**¿<ÖÖc–Ÿ"A[¡ºü Úv ZªÄÖcÐS%¶ƒž*!‡>¼g?»ùPøtD\]Æ bfcˆêCöB3]Æ b 9â§Z½´/θÿС•âźF¿s ­+rçÁb5mö¢èá:®²`8î†^çOô{tÐrÜÙ#u>Ñ#NäØà ¡À)2»ŽKmu‚§IlÀà’CÛìà0g“ü pÄÑN†Ä)'Ò‡AŸ1ðâ¸$ê`Oa \l0ØÇ ´ 1è3†|køNâ#SkЈA£1LÛ†6kÎ qÛÀ0€ƒdRB a€Sè)fÆë)è)`§ƒž:Áü¬8_æ&LÌ)å )f´Rüµìô”ƒD=MM£À+…·¿ôü¤ƒ¤ bù´R¼]ê1(®A… û³±›b1Ä 0 ÉóíRŽ!Ù4xkhÖÁUøÜQ•ùâ¼Aš1äOfÈ¿6îjkÝ5ÉÿÙº‚<²´å‚tEP$Rw ë`ÐÀl;†u®}“ ” )CŠóbºƒ ;öðwVÇÓüתÕf1ü„ ;VôGvÚ®a¨ÁƆ+:› Zb íKwh]ºþðBð#„×ãþƒc‡×ô#Ÿ´ŸGýú}¿+„VCú)‹>‚“/‡®ì~„I÷¸sàØ“.ýÈ_Ý\»äeà ¡eã—dà>¹D+tšÄvì±C?ò#gТB+ʆ|.-_oOÄð îdž]èÛôIÊ%ÿþ£.Ä” XC“Zƒo× ÿ´ØQk ÄqI}à—Cúþ—· w¬m¶ Wà^pì+2k'þ¤¼¦=Ý)5‚=E@O¶Ÿ©5О‚}(\«AÒ1Ì ÇbQ²‚(–¸ʆ!+ˆb‰{¡¸æy¥XD±Ä½P: ïÓÜð£*m7Ÿ;f’G ÊÉÆn‚µþ1Â$ ƒ“*10›¬a—Ù½‚ª"Ãì÷q7cUæè«!ÜwùÞùE#õê0p‹$w IoEZ|‘d bXàg’#q^ƒ)ư —#1ÒY‚`ÿù" bˆ¯ ©ÅTUÝû°¯Ýb B ¿U­óq‹1Ìþû@ Pz#,`ˆG¼—,š«Pˆ…d«•‡a” ?W!C\nµfÀ•‡!ÊÆ0W¡ ƒ ³E¤¸ÿçÉ’öóàbÒ²þÃü ¸¥5!/®B>V|=f‹HqÿFTÀ€æ·ÛzÄü !nap''®B:n šæ$L‘âþœCÎŽÛsÂÇ:Ùâ10½>'®B:þü'ñó4]DŠû?XD}ºI ½Ü¸ Ùa«ASkàþf „8·{óÖW!›¹ª7âNð`D´ Ÿ mH`È«ŒÌ ÐU#Hº§ çØS„íç­ÉÅëÿrã*$c¨jë#˜Ò‹H­QÁ/LùL¤b4S˜[Dj…ˆ ¦´ÏD*†ªf s‹H­QAR×L¿H†Šn [ù„h§°•ªú:ÊX[ˆAgGk 1äQX×…÷ë¥hŠaW*ï¯Ô×ü…™ŸIrÖÌÜ5…Ä UÊ`@ (…ø U!1´ZÉö`á.VãsÄ>‹ò1°[*ƒz ¯^¸äË0<`yqëÕ;[ rÈÁ0Yl)[ˆá‘•÷Q<6Š-e)àƒáuñoÚ(†—ðÚ: ¯[Þé×±ó»sÖºž½K¯{7êG—ÞéÄêw'ý±s憟#zb o–` ̆=é?Øä¤#$¥¸ƒI±Cë*|l޽kÒ~fÞƒ ¤ª˜aøíkýüæ§õtØö&½Që¬öP³¾=6)Ø=¼6O†½‘7êéAŠžµ C¥ŠŽ;ß›ÿµìá~($¥øÂ'Ž;{a¯þ­³ãˆàJØDªŠ†¯uÑöj­†E–µåù–oÝ»}ŠvmßêÝŽà£~HR £¸~Tr„íd“Ø·]rdŸ9âÂóW>Ñ$?0€â| ö†RUÌ0Œ<¿eѶá×ÑoÑbG°óZ´àøQŸXÏ[Í\Ùm>^‹j>N„~‰íy>”n`Uþ¤5Pkè¿ þl£5ŒawÖ‰Ö°ÞD‚5Ô©5„†]Ÿh’ïô˜OBð1lÃo_»Ø6x§†KëéðrÔŸXqÛÀ0 éA¯½ìxÛÐÆ¶œîŸ€¶Á'qÛ@6“ªbAOážÌ04=ì)tÇz †{ŠÑ2 Â]ä´§ ¹9nôcûŽnÛÏh ›HU1ÃðÙKÝ20õ¬ÙíAæÁ¼¿€Vv"$µ‘JñsZ)Ž–Ìû ¼R¬èDHj•‚.ÂàuÖÒƒyUŠ• •á “«O˜ƒÁ`0ÀÆ`(®»FªŠë¼“ªâºr¥J–c¿ªÝ±/U²¦yl`‚ƒLwÒTw ˜TwB TIžZT’' •ƒì©ãå = ˜䇕’CqƒŒ¤J†"r(n¢T) G-EÁÉb¢à"HU¨º6ºR¶p еjÓúR¸ŒEEßêUkKá¢&Dê ,j¥CP <Šgý¼Æ¿äß–#•ø°ïý.éÕ5`xwµ(0†wLï.Á°Þ…o—úõ" ¦Ä0_+,É3$¨ãçáõâÜÆjµa ˜ ¢!œ°›j©sKƒa¾qH/ДHPñ‰D_ü‰u 3c'Ö9bX˜éZ­taÈJPqOC?ꆨqÔñ³2]«•. Y *¢ú߀g͇°VOV¦kµRŸ˜an¦D‚Šqà ýÁça¥øØF “úª•. Y *—5ŠÐJº.TTj Y *È×.­õ‡ðqìÚõ³ŽŸ•éZ­Ôg2š[ )‘ ‚´i³@{ rF?ï_øY™®ÕJ†¬y*!†¬y*6†tã^ ie•Ã;d0¬wáÛ¥>I¬ÁÀd0 vCªqØEw ¨8Ó¦RA×Ëe0 ”`(^­P‚¡xæ`0 Ô`(\­Pƒ¡pæ`0 a(Z­P„ñ}³©ÃP”)‘(U‚õaê–* ¤(3"™”YƒÁR•R‘Tu˜Å™'ŒRY) †éª‘2 ñŠºÅ: ñB‰…B  µRŠÞ=6?Ó:ëF­,¥ÖZúJæw,•Á€2PÊ`@ (m†R€/9<›7Wr ?ù~Ç1Ôø~g0d„RÄÙ­a>²Ì×ëœØ÷ÏbŽŠ²`È ¥˜f°¥›°÷F#ÇÞ¿m9*Ê‚!+”"În ›çµ ‰íØÎ %ä¨( †¬PŠ8»5lBŸa˜|l;6ž-Ç_ Y¡ÓìÖ` CT¸5”CV(E¢màìú¶ ÝòaÈ ¥˜f·†ž‚cö[ÐS¸åÃðÖPŠÔDY0¼5”¢¤ÞJq—|[ ›ÿŽ¥2PÊ`@ (µ$xkÊà®)Œ ”Á€2Pêÿìú?["H÷QIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGtk_1_1GL_1_1Widget-members.html0000644000175000001440000001215010400731256023221 00000000000000 gtkglextmm: Member List

Gtk::GL::Widget< T_GtkWidget > Member List

This is the complete list of members for Gtk::GL::Widget< T_GtkWidget >, including all inherited members.

create_gl_context(const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)Gtk::GL::Widget< T_GtkWidget > [inline]
create_gl_context(bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)Gtk::GL::Widget< T_GtkWidget > [inline]
get_gl_config()Gtk::GL::Widget< T_GtkWidget > [inline]
get_gl_config() const Gtk::GL::Widget< T_GtkWidget > [inline]
get_gl_context()Gtk::GL::Widget< T_GtkWidget > [inline]
get_gl_drawable()Gtk::GL::Widget< T_GtkWidget > [inline]
get_gl_drawable() const Gtk::GL::Widget< T_GtkWidget > [inline]
get_gl_window()Gtk::GL::Widget< T_GtkWidget > [inline]
get_gl_window() const Gtk::GL::Widget< T_GtkWidget > [inline]
is_gl_capable() const Gtk::GL::Widget< T_GtkWidget > [inline]
set_gl_capability(const Glib::RefPtr< const Gdk::GL::Config > &glconfig, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)Gtk::GL::Widget< T_GtkWidget > [inline]
set_gl_capability(const Glib::RefPtr< const Gdk::GL::Config > &glconfig, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)Gtk::GL::Widget< T_GtkWidget > [inline]
~Widget()=0Gtk::GL::Widget< T_GtkWidget > [pure virtual]


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/dir_000001_dep.map0000644000175000001440000000012310400731256017343 00000000000000base referer rect dir_000001.html 29,54 101,102 rect dir_000000.html 18,18 112,113 gtkglextmm-1.2.0/docs/reference/html/dir_000001_dep.png0000644000175000001440000000072510400731256017362 00000000000000‰PNG  IHDR‚ŽÊ ´9PLTEþÿÿ²²¿;;?wwÐÐß””ŸYY_îîÿ¥¥²77;nnwÁÁÐŠŠ”RRYÝÝîÿÿÿ—–§ctRNS@æØfJIDATxœíÙínÂ0 …a(,MãÝÿÅΉÆTiÒVÑ&â=ÔTy»ý§óœ¬ @€¤o6JÏ@€p8!IzP a?a‘ù\ zB×ÅË¢¯´*{²o ȳֺŒÄºTëG-*á»ìEh߬K×C…–Ñ„û.ø¯]Ð~0¡Î²žÇÁ„ŸwDÉq,Áß§oWö7"˜´~Ûã„C @€p4á°˜vÞ  @€‚9Áýy„΄›\ßÄY.“s“-áz®]0%ˆko/¾ un¶„pGœÝ–‡BWBkÄdJÐFÈäl [ @€Ð“`ÿD‡@€ÂÓúf at @€ @€“>úbíe0 œIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/windowext_8h__dep__incl.md50000644000175000001440000000004010400731257021626 00000000000000bc94e3d2bceb95858b6e4d45ce10a651gtkglextmm-1.2.0/docs/reference/html/windowext_8h__dep__incl.map0000644000175000001440000000012310400731257021720 00000000000000base referer rect $gdkglmm_8h.html 214,8 300,32 rect $gtkglmm_8h.html 350,8 433,32 gtkglextmm-1.2.0/docs/reference/html/windowext_8h__dep__incl.png0000644000175000001440000000171110400731257021733 00000000000000‰PNG  IHDRº'‹VŸ!PLTEþÿÿo???¿¿¿___ßßߟŸŸÿÿÿÛ€!tRNS@æØfVIDAThí—MoÚ@†órí±QŠð1-MÍ1QûXHÃúX©Ap$_²¯-RáVãß6f÷Wv¼˜ÏØBBEäAZ0~yfgYø[ŽƒÿmàU#¥ÛßHéö7Rºý]ÒÁ±½†3¡c›|îZ²‘ûÆÓ`Ûk¤t)]J÷Æèúï¶§ÛJ#ŠNÓ­Òv00qÀc˜ÁD§"Â@ÿ0Ñ™®‡Ç…šÁVk„É‹ s—ëÐ=d…sqPbèn—éú‡ÛÓ%k\¾]w\—îÂÍ'tÞÛšn…†½]Ïo’ßРt14Î E«¹%ªÐ¹ó(«vMqŽÞL¢|¢.<öx;Cj¶Ÿ:4” ]`,ÎÙ¶"më¼hÔ«¶î÷È9Qõ–U´®GÔ Ý [z긗3…ñˆt-+’®p‘¯4¿š•£®92=M‘Ú¹²re¤»²dI–(ÛAR/WV æÀd.¾ôZMQ;|$¤ÆâœÝgoÊ×Dw3n¦‰Þ¬ÁÃÀÖU¹!ÜÇÓn•†µ;»™)ŒG¤ t"èš ]ÖAÒT‚“ÌO‡8¤eg)ÒµLvîŽ8A’CL]²ÔŠìA†Þ+‚΃îïaL¯e®ßv¸¬+†—÷Ñ›Ãmnëœ éðtl­¿Jé,{Na<"] Aç£ì»íy:Ù!€t24ON>#]˜„mfýćA%aß­U;›3ÝÀ¾{ß@Ët_«v¨tæ‡9…)¦ j—ÅÚÑÇ9ºïuQ»a~³¯ž  ’‚ÚõT«CPzÝ^¢ã<ÁYP»<ÖÎïFÔnF·J#˜™z.¢v1t…‹Žè;(ÍÑU‰•«ztD !Kº ›ôÝÃÀôû®[ ú®¾@x‹í™ºè;^t3w‹tºd€Î­ÌÆã(–nºfÚÅ]Äš9@ÏŠ£:®™àâ«Ê[5¨‘|Ö[¢‹ÝgL×LO+Þ½D—¨‘=uxe¦0™Gw¹“Ð 7jÉûÌÓéOÒÀðcS“÷™$…'3óW”Wœ™òKÒÝÿ/qfJÏ£›h$),ÏLž‹4Û—¤Bfr]7çÑM5Ò@)]J—ҽݎb“¯h{]Óí>Rºý”nã2²¤ßôêÅIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/gdkglmm_8h__dep__incl.md50000644000175000001440000000004010400731256021217 000000000000000d779077812249b550a284a126b5e4a0gtkglextmm-1.2.0/docs/reference/html/gdkglmm_8h__dep__incl.map0000644000175000001440000000006010400731256021311 00000000000000base referer rect $gtkglmm_8h.html 145,8 227,32 gtkglextmm-1.2.0/docs/reference/html/gdkglmm_8h__dep__incl.png0000644000175000001440000000107310400731256021325 00000000000000‰PNG  IHDRì'þÒ¹P!PLTEþÿÿo???¿¿¿___ßßߟŸŸÿÿÿÛ€!tRNS@æØfÈIDATX…íÖOo‚0p¿_a‰!r7›eÎèÕXŽ»=š ×e¹ AloTF?å e8%HÜŸl¼C ‰öç{}¯Ú"?­†m؆ýl+GÆVÿâ²Õ¿`Ã6ìgV83ëb6 n~ Ô<+”²F²†ùÂk³B‹Í¯aŸ…R6:‘µ4옎œû]¸T"uŒwo^›cÊ΃w6Qyìbæ©A†š»Ö‘ñè ÂVîÀ¤ˆuºS ¼HεÆìØœƒ²´àqÉã•„)dé¾Ó³õ¯¨ƒŽYˆªdK·Ù‹¥G¢c³q¶+šm¤v ²ÍØÒ–J³ 7ÙrX§;cgë²båØmŽ- @Ôb– ú"ÏZ<6ëdxÇ:ùÀ"gù·íä—AðMÒÉXÇÚ ›ÕöaN£üNöÍt gtkglextmm: Gdk::GL::Drawable Class Reference

Gdk::GL::Drawable Class Reference

#include <drawable.h>

Inheritance diagram for Gdk::GL::Drawable:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~Drawable ()
GdkGLDrawable * gobj ()
 Provides access to the underlying C GObject.
const GdkGLDrawable * gobj () const
 Provides access to the underlying C GObject.
bool make_current (const Glib::RefPtr< Context > &glcontext)
bool is_double_buffered () const
void swap_buffers ()
void wait_gl ()
void wait_gdk ()
bool gl_begin (const Glib::RefPtr< Context > &glcontext)
void gl_end ()
Glib::RefPtr< Configget_gl_config ()
Glib::RefPtr< const Configget_gl_config () const
void get_size (int &width, int &height)

Static Public Member Functions

static void add_interface (GType gtype_implementer)
static Glib::RefPtr< Drawableget_current ()
static void draw_cube (bool solid, double size)
static void draw_sphere (bool solid, double radius, int slices, int stacks)
static void draw_cone (bool solid, double base, double height, int slices, int stacks)
static void draw_torus (bool solid, double inner_radius, double outer_radius, int nsides, int rings)
static void draw_tetrahedron (bool solid)
static void draw_octahedron (bool solid)
static void draw_dodecahedron (bool solid)
static void draw_icosahedron (bool solid)
static void draw_teapot (bool solid, double scale)

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gdk::GL::Drawablewrap (GdkGLDrawable *object, bool take_copy=false)

Detailed Description

OpenGL rendering surface abstract class.


Constructor & Destructor Documentation

virtual Gdk::GL::Drawable::~Drawable  )  [virtual]
 


Member Function Documentation

static void Gdk::GL::Drawable::add_interface GType  gtype_implementer  )  [static]
 

static void Gdk::GL::Drawable::draw_cone bool  solid,
double  base,
double  height,
int  slices,
int  stacks
[static]
 

Renders a cone oriented along the Z axis. The base of the cone is placed at Z = 0, and the top at Z = height . The cone is subdivided around the Z axis into slices , and along the Z axis into stacks .

Parameters:
solid true if the cone should be solid.
base The radius of the base of the cone.
height The height of the cone.
slices The number of subdivisions around the Z axis.
stacks The number of subdivisions along the Z axis.

static void Gdk::GL::Drawable::draw_cube bool  solid,
double  size
[static]
 

Renders a cube. The cube is centered at the modeling coordinates origin with sides of length size .

Parameters:
solid true if the cube should be solid.
size Length of cube sides.

static void Gdk::GL::Drawable::draw_dodecahedron bool  solid  )  [static]
 

Renders a dodecahedron centered at the modeling coordinates origin with a radius of the square root of 3.

Parameters:
solid true if the dodecahedron should be solid.

static void Gdk::GL::Drawable::draw_icosahedron bool  solid  )  [static]
 

Renders a icosahedron. The icosahedron is centered at the modeling coordinates origin and has a radius of 1.0.

Parameters:
solid true if the icosahedron should be solid.

static void Gdk::GL::Drawable::draw_octahedron bool  solid  )  [static]
 

Renders a octahedron centered at the modeling coordinates origin with a radius of 1.0.

Parameters:
solid true if the octahedron should be solid.

static void Gdk::GL::Drawable::draw_sphere bool  solid,
double  radius,
int  slices,
int  stacks
[static]
 

Renders a sphere centered at the modeling coordinates origin of the specified radius . The sphere is subdivided around the Z axis into slices and along the Z axis into stacks .

Parameters:
solid true if the sphere should be solid.
radius The radius of the sphere.
slices The number of subdivisions around the Z axis (similar to lines of longitude).
stacks The number of subdivisions along the Z axis (similar to lines of latitude).

static void Gdk::GL::Drawable::draw_teapot bool  solid,
double  scale
[static]
 

Renders a teapot. Both surface normals and texture coordinates for the teapot are generated. The teapot is generated with OpenGL evaluators.

Parameters:
solid true if the teapot should be solid.
scale Relative size of the teapot.

static void Gdk::GL::Drawable::draw_tetrahedron bool  solid  )  [static]
 

Renders a tetrahedron centered at the modeling coordinates origin with a radius of the square root of 3.

Parameters:
solid true if the tetrahedron should be solid.

static void Gdk::GL::Drawable::draw_torus bool  solid,
double  inner_radius,
double  outer_radius,
int  nsides,
int  rings
[static]
 

Renders a torus (doughnut) centered at the modeling coordinates origin whose axis is aligned with the Z axis.

Parameters:
solid true if the torus should be solid.
inner_radius Inner radius of the torus.
outer_radius Outer radius of the torus.
nsides Number of sides for each radial section.
rings Number of radial divisions for the torus.

static Glib::RefPtr<Drawable> Gdk::GL::Drawable::get_current  )  [static]
 

Returns the current Gdk::GLDrawable.

Returns:
The current Gdk::GLDrawable or 0 if there is no current drawable.

Glib::RefPtr<const Config> Gdk::GL::Drawable::get_gl_config  )  const
 

Gets Gdk::GLConfig with which the gldrawable is configured.

Returns:
The Gdk::GLConfig.

Glib::RefPtr<Config> Gdk::GL::Drawable::get_gl_config  ) 
 

Gets Gdk::GLConfig with which the gldrawable is configured.

Returns:
The Gdk::GLConfig.

void Gdk::GL::Drawable::get_size int &  width,
int &  height
 

Fills *width and *height with the size of GL drawable. width or height can be 0 if you only want the other one.

Parameters:
width Location to store drawable's width, or 0.
height Location to store drawable's height, or 0.

bool Gdk::GL::Drawable::gl_begin const Glib::RefPtr< Context > &  glcontext  ) 
 

Delimits the begining of the OpenGL execution.

Parameters:
glcontext A Gdk::GLContext.
Returns:
true if it is successful, false otherwise.

void Gdk::GL::Drawable::gl_end  ) 
 

Delimits the end of the OpenGL execution.

const GdkGLDrawable* Gdk::GL::Drawable::gobj  )  const [inline]
 

Provides access to the underlying C GObject.

Reimplemented in Gdk::GL::Pixmap, and Gdk::GL::Window.

GdkGLDrawable* Gdk::GL::Drawable::gobj  )  [inline]
 

Provides access to the underlying C GObject.

Reimplemented in Gdk::GL::Pixmap, and Gdk::GL::Window.

bool Gdk::GL::Drawable::is_double_buffered  )  const
 

Returns whether the gldrawable supports the double-buffered visual.

Returns:
true if the double-buffered visual is supported, false otherwise.

bool Gdk::GL::Drawable::make_current const Glib::RefPtr< Context > &  glcontext  ) 
 

Attach an OpenGL rendering context to a gldrawable .

Parameters:
glcontext A Gdk::GLContext.
Returns:
true if it is successful, false otherwise.

void Gdk::GL::Drawable::swap_buffers  ) 
 

Exchange front and back buffers.

void Gdk::GL::Drawable::wait_gdk  ) 
 

Complete GDK drawing execution prior to subsequent OpenGL calls.

void Gdk::GL::Drawable::wait_gl  ) 
 

Complete OpenGL execution prior to subsequent GDK drawing calls.


Friends And Related Function Documentation

Glib::RefPtr< Gdk::GL::Drawable > wrap GdkGLDrawable *  object,
bool  take_copy = false
[related]
 

Parameters:
object The C instance
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 18:47:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/query_8h.html0000644000175000001440000001165410400731257017104 00000000000000 gtkglextmm: gdkmm/gl/query.h File Reference

query.h File Reference

#include <glibmm.h>
#include <gdkmm/gl/defs.h>
#include <gdkmm/display.h>
#include <gdk/gdkgltypes.h>

Include dependency graph for query.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL

Functions

bool Gdk::GL::query_extension ()
bool Gdk::GL::query_extension (const Glib::RefPtr< const Gdk::Display > &display)
bool Gdk::GL::query_version (int &major, int &minor)
bool Gdk::GL::query_version (const Glib::RefPtr< const Gdk::Display > &display, int &major, int &minor)
bool Gdk::GL::query_gl_extension (const char *extension)
bool Gdk::GL::query_gl_extension (const Glib::ustring &extension)
GdkGLProc Gdk::GL::get_proc_address (const char *proc_name)
GdkGLProc Gdk::GL::get_proc_address (const Glib::ustring &proc_name)


Generated on Mon Feb 27 18:47:27 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2defs_8h__incl.md50000644000175000001440000000004010400731256023547 00000000000000504d7eef60e3076dc7267ad892c44fe5gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2defs_8h__incl.map0000644000175000001440000000001510400731256023641 00000000000000base referer gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2defs_8h__incl.png0000644000175000001440000000135710400731256023662 00000000000000‰PNG  IHDR$'T4(Å'PLTEþÿÿo;;;???¿¿¿___ßßߟŸŸÿÿÿRÐ÷×tRNS@æØfvIDATX…í×Mš@ðý Ü÷û¢Çnº#׆¬xôÐO­Y5̵1©^š°¼Í\šqvæCõ@ñ…Qb·©Mù >ƒÌÏyA½áW—›¿ 8NE*“ŠT&©Lþ)º»0¾8DFºô£T¤ŠtŤ·oMòØ~—ý´ÖÏZÜŸW“”Û=’M‰-ôšéûéö6ǤÉ!i˜†ƒÔÏ“SN⺜ôÂõ³¤ø¤¥mC2KeÄå¤ ;ËH!=Ñs¿¬ÑêyéqUƒy MYÈhì£)Ö¨wФd$«ˆ‰›û44LÝž».ôµDE½&Y{ ÄÅ‹"RÇh™0Jcå¼:±—} ªó­nMeߌ{b«$h:IRÒJ'$uòÉü(°um¤=«ãÑZwÝ(à%íYHÐXDãVbîbœCª Í)vXŒUAM)é»"‰¸mÜ¢ EO&)°9ClÒ¢K•€'¤ÜRÀ I1¬”Ø‹îwI/¢j0qòb¸˜Nó]²–ÊŒC'¦Øqñ)ÒîÓ;ßq9 YéŽËHbÇ2R ðqŠ«ÛœüŽ‹•µoÓÜlNÜׂ>‹«åH0qs¤öl('…ü}AŸÅÕr$n9èiU9é¢ü ?N*ÒNzûüö_ËëJE*“ŠT&¿€•°¥‰f‰oIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/window_8h.html0000644000175000001440000000766610400731257017256 00000000000000 gtkglextmm: gdkmm/gl/window.h File Reference

window.h File Reference

#include <glibmm.h>
#include <gdkmm/gl/defs.h>
#include <gdkmm/drawable.h>
#include <gdkmm/window.h>
#include <gdkmm/gl/config.h>
#include <gdkmm/gl/drawable.h>

Include dependency graph for window.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL
namespace  Glib

Classes

class  Gdk::GL::Window


Generated on Mon Feb 27 18:47:38 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2defs_8h__dep__incl.md50000644000175000001440000000004010400731256024536 00000000000000dcbd294db08c94ac787c79432e375938gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2defs_8h__dep__incl.map0000644000175000001440000000015210400731256024632 00000000000000base referer rect $gtkglmm_8h.html 358,34 441,58 rect $gtkglext_2gtkmm_2gl_2version_8h.html 174,58 308,82 gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2defs_8h__dep__incl.png0000644000175000001440000000225110400731256024643 00000000000000‰PNG  IHDRÂZÙtKì-PLTEþÿÿoooÃÃÃo;;;???¿¿¿___ßßߟŸŸÿÿÿKAHStRNS@æØf*IDATxœíÚÍnÚ@ð¾“ï}–¢p¬8&•ªFj/­Î1ª™S‹÷!.•(Æx/–¶Ù}†Ž¿ÈÚØ!wªý  øçµ×fÒüÏ‹ª7 ôH!þH!þH!þH!þH!þH!þH!þH!þH!þH!þH!þH!þH!þH!þH!þH!þ`Ú;‡òXÈvOÎG=»©J¡–)L¯y¡ó²Éß¶{÷53B3ƒíFµnüÊì!³VøeŽR•Оé×ÔšiámVxy®c=É*JUÂÎÓ…nVØŠ<­D¨m ¥:¡õ4áÂïuü›ýðÈ;òÁŒ–c¨ªÌÏÈ€-ø˜ôçdB|ˆ…!° ¡gŽoÍ&]uô®eø ív-A8šå /Ô¶cx¡®¦ë©k†Ë¹U•Íõ÷µ:»WϨFõá¥HøK© áþ<žÃóŸõ>gËùÒŠ– ìµHž°o_p¨®/TU¶Ðö”¹v=G)¼Tõ~æg–ÛöAH¹³°!a¹BÎ2×\ž‰ÂßAUeÁƒéïЦͷáy˜ɦ ¡Å§o³%äùÂh ÙUM~³Ã1 ¦ŒÙ&íFF+CjœæŒaðBÂÙ­ U•ìÇóð¤gëa%Wüó¡W_ꃴp](„YSkÃ~„-;œK[v0—vùˆjÁ\êf…GN2—’“&å_¹T2R$¬ÙWövò«›TpOŸÍø²·$~ñnÎ¥w9„üª ,ûŠï¤þßµ9J¯ÃÒª>h¾9s”òÓB~u“_JÉW Gu/7ÛÍ=»Õõ)ÙQ¸Wʾ:Š’ gtkglextmm: share-lists.cc

share-lists.cc

Simple display list sharing example.

// -*- C++ -*-
/*
 * share-lists.cc:
 * Simple display list sharing example.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#include <iostream>
#include <cstdlib>

#include <gtkmm.h>

#include <gtkglmm.h>

#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif

#include <GL/gl.h>
#include <GL/glu.h>


//
// Simple OpenGL scene base class.
//

class SimpleGLScene : public Gtk::GL::DrawingArea
{
public:
  explicit SimpleGLScene(const Glib::RefPtr<const Gdk::GL::Config>& config);

  SimpleGLScene(const Glib::RefPtr<const Gdk::GL::Config>& config,
                const Glib::RefPtr<const Gdk::GL::Context>& share_list);

  virtual ~SimpleGLScene();

protected:
  virtual void init_gl();

protected:
  virtual bool on_configure_event(GdkEventConfigure* event);
  virtual bool on_expose_event(GdkEventExpose* event);

public:
  // Gtk::Widget::realize() is protected, so that ...
  void realize() { Gtk::GL::DrawingArea::realize(); }

public:
  void set_light_diffuse(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
  { m_LightDiffuse[0] = r; m_LightDiffuse[1] = g; m_LightDiffuse[2] = b; m_LightDiffuse[3] = a; }

  void set_light_position(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
  { m_LightPosition[0] = x; m_LightPosition[1] = y; m_LightPosition[2] = z; m_LightPosition[3] = w; }

protected:
  GLfloat m_LightDiffuse[4];
  GLfloat m_LightPosition[4];

};

SimpleGLScene::SimpleGLScene(const Glib::RefPtr<const Gdk::GL::Config>& config)
  : Gtk::GL::DrawingArea(config)
{
  set_light_diffuse(1.0, 1.0, 1.0, 1.0);
  set_light_position(1.0, 1.0, 1.0, 0.0);
}

SimpleGLScene::SimpleGLScene(const Glib::RefPtr<const Gdk::GL::Config>& config,
                             const Glib::RefPtr<const Gdk::GL::Context>& share_list)
  : Gtk::GL::DrawingArea(config, share_list)
{
  set_light_diffuse(1.0, 1.0, 1.0, 1.0);
  set_light_position(1.0, 1.0, 1.0, 0.0);
}

SimpleGLScene::~SimpleGLScene()
{
}

void SimpleGLScene::init_gl()
{
  glLightfv(GL_LIGHT0, GL_DIFFUSE, m_LightDiffuse);
  glLightfv(GL_LIGHT0, GL_POSITION, m_LightPosition);
  glEnable(GL_LIGHTING);
  glEnable(GL_LIGHT0);
  glEnable(GL_DEPTH_TEST);

  glClearColor(1.0, 1.0, 1.0, 1.0);
  glClearDepth(1.0);

  glViewport(0, 0, get_width(), get_height());

  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluPerspective(40.0, 1.0, 1.0, 10.0);

  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  gluLookAt(0.0, 0.0, 3.0,
            0.0, 0.0, 0.0,
            0.0, 1.0, 0.0);
  glTranslatef(0.0, 0.0, -3.0);
}

bool SimpleGLScene::on_configure_event(GdkEventConfigure* event)
{
  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return false;

  glViewport(0, 0, get_width(), get_height());

  glwindow->gl_end();
  // *** OpenGL END ***

  return true;
}

bool SimpleGLScene::on_expose_event(GdkEventExpose* event)
{
  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return false;

  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  glCallList(1);

  // Swap buffers.
  if (glwindow->is_double_buffered())
    glwindow->swap_buffers();
  else
    glFlush();

  glwindow->gl_end();
  // *** OpenGL END ***

  return true;
}


//
// SimpleGLSceneMain (creates display lists)
//

class SimpleGLSceneMain : public SimpleGLScene
{
public:
  explicit SimpleGLSceneMain(const Glib::RefPtr<const Gdk::GL::Config>& config);
  virtual ~SimpleGLSceneMain();

protected:
  virtual void on_realize();

};

SimpleGLSceneMain::SimpleGLSceneMain(const Glib::RefPtr<const Gdk::GL::Config>& config)
  : SimpleGLScene(config)
{
}

SimpleGLSceneMain::~SimpleGLSceneMain()
{
}

void SimpleGLSceneMain::on_realize()
{
  // We need to call the base on_realize()
  SimpleGLScene::on_realize();

  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return;

  // Create display list #1
  GLUquadricObj* qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  glNewList(1, GL_COMPILE);
  gluSphere(qobj, 1.0, 20, 20);
  glEndList();

  // Initialize rendering context
  init_gl();

  glwindow->gl_end();
  // *** OpenGL END ***
}


//
// SimpleGLSceneSub (shares display lists)
//

class SimpleGLSceneSub : public SimpleGLScene
{
public:
  SimpleGLSceneSub(const Glib::RefPtr<const Gdk::GL::Config>& config,
                   const Glib::RefPtr<const Gdk::GL::Context>& share_list);
  virtual ~SimpleGLSceneSub();

protected:
  virtual void on_realize();

};

SimpleGLSceneSub::SimpleGLSceneSub(const Glib::RefPtr<const Gdk::GL::Config>& config,
                                   const Glib::RefPtr<const Gdk::GL::Context>& share_list)
  : SimpleGLScene(config, share_list)
{
}

SimpleGLSceneSub::~SimpleGLSceneSub()
{
}

void SimpleGLSceneSub::on_realize()
{
  // We need to call the base on_realize()
  SimpleGLScene::on_realize();

  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return;

  // Initialize rendering context
  init_gl();

  glwindow->gl_end();
  // *** OpenGL END ***
}


//
// The application class.
//

class Simple : public Gtk::Window
{
public:
  explicit Simple(const Glib::RefPtr<const Gdk::GL::Config>& config);
  virtual ~Simple();

protected:
  // signal handlers:
  void on_button_quit_clicked();

protected:
  // member widgets:
  Gtk::VBox m_VBox;
  SimpleGLScene *m_GLScene1;
  SimpleGLScene *m_GLScene2;
  SimpleGLScene *m_GLScene3;
  Gtk::Button m_ButtonQuit;
};

Simple::Simple(const Glib::RefPtr<const Gdk::GL::Config>& config)
  : m_VBox(false, 10), m_ButtonQuit("Quit")
{
  //
  // Top-level window.
  //

  set_title("share-lists");

  // Get automatically redrawn if any of their children changed allocation.
  set_reallocate_redraws(true);
  // Set border width.
  set_border_width(10);

  add(m_VBox);

  //
  // OpenGL scene #1 (SimpleGLSceneMain: creates display lists)
  //

  m_GLScene1 = new SimpleGLSceneMain(config);
  m_GLScene1->set_size_request(120, 120);
  m_GLScene1->set_light_diffuse(1.0, 0.0, 0.0, 0.0); // red

  m_VBox.pack_start(*m_GLScene1);

  //
  // Get OpenGL rendering context.
  //

  m_GLScene1->realize();
  Glib::RefPtr<Gdk::GL::Context> glcontext = m_GLScene1->get_gl_context();

  //
  // OpenGL scene #2 (SimpleGLSceneSub: shares display lists)
  //

  m_GLScene2 = new SimpleGLSceneSub(config, glcontext);
  m_GLScene2->set_size_request(120, 120);
  m_GLScene2->set_light_diffuse(1.0, 1.0, 0.0, 0.0); // yellow

  m_VBox.pack_start(*m_GLScene2);

  //
  // OpenGL scene #3 (SimpleGLSceneSub: shares display lists)
  //

  m_GLScene3 = new SimpleGLSceneSub(config, glcontext);
  m_GLScene3->set_size_request(120, 120);
  m_GLScene3->set_light_diffuse(0.0, 1.0, 0.0, 0.0); // green

  m_VBox.pack_start(*m_GLScene3);

  //
  // Simple quit button.
  //

  m_ButtonQuit.signal_clicked().connect(
    sigc::mem_fun(*this, &Simple::on_button_quit_clicked));

  m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0);

  //
  // Show window.
  //

  show_all();
}

Simple::~Simple()
{
  delete m_GLScene1;
  delete m_GLScene2;
  delete m_GLScene3;
}

void Simple::on_button_quit_clicked()
{
  Gtk::Main::quit();
}


//
// Main.
//

int main(int argc, char** argv)
{
  Gtk::Main kit(argc, argv);

  //
  // Init gtkglextmm.
  //

  Gtk::GL::init(argc, argv);

  //
  // Configure OpenGL-capable visual.
  //

  Glib::RefPtr<Gdk::GL::Config> glconfig;

  // Try double-buffered visual
  glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB    |
                                     Gdk::GL::MODE_DEPTH  |
                                     Gdk::GL::MODE_DOUBLE);
  if (!glconfig)
    {
      std::cerr << "*** Cannot find the double-buffered visual.\n"
                << "*** Trying single-buffered visual.\n";

      // Try single-buffered visual
      glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB   |
                                         Gdk::GL::MODE_DEPTH);
      if (!glconfig)
        {
          std::cerr << "*** Cannot find any OpenGL-capable visual.\n";
          std::exit(1);
        }
    }

  //
  // Instantiate and run the application.
  //

  Simple simple(glconfig);

  kit.run(simple);

  return 0;
}

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/windowext_8h__incl.md50000644000175000001440000000004010400731257020637 00000000000000fcfe7fa0e57bd532cd9c91bf49f0a56agtkglextmm-1.2.0/docs/reference/html/windowext_8h__incl.map0000644000175000001440000000014710400731257020737 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 400,82 520,106 rect $window_8h.html 213,58 352,82 gtkglextmm-1.2.0/docs/reference/html/windowext_8h__incl.png0000644000175000001440000000361010400731257020744 00000000000000‰PNG  IHDRŒ °WÎ$PLTEþÿÿÿo???¿¿¿___ßßߟŸŸÿÿÿ–cNTtRNS@æØfIDATxœí›IsâF€ór>Æ™8zB&âè%Ãx‚8¦’¡àÈ̘H×ÄU·²h]&„Pÿ¹t· 65K½ÏU’J´–þÜ›ôZ_1Dðå«}ßÁ€" E(@ŠP€" E(@ŠP€" E(@ŠP€" E(@ŠPp’"^¯Efꘓ‘Yd.ŠPpZ"ºçr…"ºgÒŠèž±c!2°)sç9gÑs Ï™¹”1Þ:$#ç[œc^ÍùDDÿðEt·°ô¤“Ór -bëB°”@DÅU¯ñªÑÑ+Æcû¶Í7nôñ؆Ä{1W«wK¸±¼ª%…ˆfí‘Ó*Z­Ý{êÙ\DE3ƒÄ{¯I7¸€ÌbžB„ÍÒóM¿æ0› ¦¿WÝØ%„Y´™_“½†1-‚íSD7ž&a‘%bŸ"ºª4„G–WµrÐF¼ ‰îS„ÂâP…z‰ßÜ›¥µ"<Žx2,D©ÅC74²¼ªýX¡¥&#l¨4}€: 5@ïÜ êÅ=}*8tÇvØ:(ªPÝðcËÁ½˜‰0 W™yx;°WuÝ%þûzàdQ®7áÓ]2û `,b­û[a+KÜæž£ÏóÛñ‰ˆ©S>>d'g™E(˜Q,Nçʪ‹…/W| ‰dߟd^Dк…E3†^E,¹¿z¥™¼&[çy!+E<%e&åŠÒìŸVˆ&¢D Egæ9àOËA¢ÉïûÑ þÛ­©s"ÜU"D[%âY,<çyjçžDt¼Š~çUŠôî~`Þ˜Ùb©×§Úxp-¿ÐʳÎ+Ÿï¤<‘ÕÒ¬>}î°zB/Ù^’Z3!‚Š@ÄÀª›·VÝ`·5jQöÀÊÛsžsFÎãˆèO䕟ط^›µ˜×A 5"®ï3o«¿šÅvÚê7‡M·˜MÕSúûv:ÏE¼ok)-eù|§HÔIç³×Í^Óÿ|ÿSç±*K?$RÄY ⪖ü˜ÿ ý„'C 2ê`~î'ª\Äç>¿Šæ9|§H4HTsW½fÏaž J¨Q¥ÅßÊ4UÌé¼”»Ô-RGwôG;iqMÿƽæ"tG$rô¦‘jçÞj.MXµ¬áRñod¼6ÏŒO ¦YÓ“¯åE³äf<.¢Ôsnì+.ÂôE"ßìµ~öcŠyò´.uŠ:o#^×Ã"4G§\„F«——?rˆ7 öÅÅÅŸü`šÓ¡X«DØÌ7LÞF|S ‹Hù&ã"R,qñ=‰xÛà^^^6˜L«H„(I^"¬çˆweY"eúÿ‹+EˆD¢Dtrí†îSËúP_GÄ9´¢Ddx‰ðZ!5d‰è4ØÎ϶!‰1Èö˦R×÷ ÙFлˆ‚ÞN\k¨ÓŠ–2¤ˆQñÔkz”·­[ÑF”£Eˆ„QQ–m» ‰x0û‰Û{2Y=¥¥ˆQ1lö,ÖP)bÜkØ·y*{Ï^ÖÉJ:ô´Ïÿ ì±DKz&éFŠË™^ý›ˆ¨2Ùk4ù­äüœaB¯ÁÚüÏV)âÕÂ#mêÖ GàÑCì%ñ†ž97•a1äå™\‡©ªñ÷¢lñª¡íRÄ’x¯©µî˜¼8k®,½0_ž¾KËâ 妹Ö“çq-ðé8>1½?>$ž XG(‚ÍDuvSDŽSÏc£ÑÛ2V²ëOÔä˜xÂT²äªë@bˆt)Ÿq¶d‹³XB~J'ÐMfÉ-ÎAâ «Ÿ!²ÍI|Ó”M¤‰8Àª ®­8ÐÆr‚*p2Ù4‘¿ô[A²qrJ“ÉÈd3"h"ñƒè‰:jT@E&{"‚&ˆà9W¥èÝb½œžˆEtÐD„JØ€VôüP/„?Ý ª&¥ÇÚ‚h"+‚&ü'ö¾öoú -üéQú™B\EDlGM\þß›"XøÓ ²—/xv]8`8EÄvtЄ¯ ?úfïÕEø‹²—oºv]8ÂCìè ‰Ëbó¸¦í_ÄÔýohdÁ‡¢² EMBmD¦Î"bÌKŒ,úP4\"VMD¯ñ@K¾)z ûÐDŒY;žý·/8lÔXn4!‡%bC¦»Ï‚&ä4D+"MÈIˆÈvÇ¢8EÀ±(ŽEpìéˆ8°ÏÑ‚" E(@ŠP€" E(@ŠP€" E(@ŠP€" E(@оüBcì1¦qŽIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/simple_8cc-example.html0000644000175000001440000005007310400731257021015 00000000000000 gtkglextmm: simple.cc

simple.cc

Simple gtkglextmm example.

// -*- C++ -*-
/*
 * simple.cc:
 * Simple gtkglextmm example.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#include <iostream>
#include <cstdlib>

#include <gtkmm.h>

#include <gtkglmm.h>

#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif

#include <GL/gl.h>
#include <GL/glu.h>


//
// OpenGL frame buffer configuration utilities.
//

struct GLConfigUtil
{
  static void print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                              const char* attrib_str,
                              int attrib,
                              bool is_boolean);

  static void examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig);
};

//
// Print a configuration attribute.
//
void GLConfigUtil::print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                                   const char* attrib_str,
                                   int attrib,
                                   bool is_boolean)
{
  int value;

  if (glconfig->get_attrib(attrib, value))
    {
      std::cout << attrib_str << " = ";
      if (is_boolean)
        std::cout << (value == true ? "true" : "false") << std::endl;
      else
        std::cout << value << std::endl;
    }
  else
    {
      std::cout << "*** Cannot get "
                << attrib_str
                << " attribute value\n";
    }
}

//
// Print configuration attributes.
//
void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig)
{
  std::cout << "\nOpenGL visual configurations :\n\n";

  std::cout << "glconfig->is_rgba() = "
            << (glconfig->is_rgba() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_double_buffered() = "
            << (glconfig->is_double_buffered() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_stereo() = "
            << (glconfig->is_stereo() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_alpha() = "
            << (glconfig->has_alpha() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_depth_buffer() = "
            << (glconfig->has_depth_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_stencil_buffer() = "
            << (glconfig->has_stencil_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_accum_buffer() = "
            << (glconfig->has_accum_buffer() ? "true" : "false")
            << std::endl;

  std::cout << std::endl;

  print_gl_attrib(glconfig, "Gdk::GL::USE_GL",           Gdk::GL::USE_GL,           true);
  print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE",      Gdk::GL::BUFFER_SIZE,      false);
  print_gl_attrib(glconfig, "Gdk::GL::LEVEL",            Gdk::GL::LEVEL,            false);
  print_gl_attrib(glconfig, "Gdk::GL::RGBA",             Gdk::GL::RGBA,             true);
  print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER",     Gdk::GL::DOUBLEBUFFER,     true);
  print_gl_attrib(glconfig, "Gdk::GL::STEREO",           Gdk::GL::STEREO,           true);
  print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS",      Gdk::GL::AUX_BUFFERS,      false);
  print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE",         Gdk::GL::RED_SIZE,         false);
  print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE",       Gdk::GL::GREEN_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE",        Gdk::GL::BLUE_SIZE,        false);
  print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE",       Gdk::GL::ALPHA_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE",       Gdk::GL::DEPTH_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE",     Gdk::GL::STENCIL_SIZE,     false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE",   Gdk::GL::ACCUM_RED_SIZE,   false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE",  Gdk::GL::ACCUM_BLUE_SIZE,  false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false);

  std::cout << std::endl;
}


//
// Simple OpenGL scene.
//

class SimpleGLScene : public Gtk::DrawingArea,
                      public Gtk::GL::Widget<SimpleGLScene>
{
public:
  SimpleGLScene();
  virtual ~SimpleGLScene();

protected:
  virtual void on_realize();
  virtual bool on_configure_event(GdkEventConfigure* event);
  virtual bool on_expose_event(GdkEventExpose* event);

};

SimpleGLScene::SimpleGLScene()
{
  //
  // Configure OpenGL-capable visual.
  //

  Glib::RefPtr<Gdk::GL::Config> glconfig;

  // Try double-buffered visual
  glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB    |
                                     Gdk::GL::MODE_DEPTH  |
                                     Gdk::GL::MODE_DOUBLE);
  if (!glconfig)
    {
      std::cerr << "*** Cannot find the double-buffered visual.\n"
                << "*** Trying single-buffered visual.\n";

      // Try single-buffered visual
      glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB   |
                                         Gdk::GL::MODE_DEPTH);
      if (!glconfig)
        {
          std::cerr << "*** Cannot find any OpenGL-capable visual.\n";
          std::exit(1);
        }
    }

  // print frame buffer attributes.
  GLConfigUtil::examine_gl_attrib(glconfig);

  //
  // Set OpenGL-capability to the widget.
  //

  set_gl_capability(glconfig);
}

SimpleGLScene::~SimpleGLScene()
{
}

void SimpleGLScene::on_realize()
{
  // We need to call the base on_realize()
  Gtk::DrawingArea::on_realize();

  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return;

  GLUquadricObj* qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  glNewList(1, GL_COMPILE);
  gluSphere(qobj, 1.0, 20, 20);
  glEndList();

  static GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0};
  static GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0};
  glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
  glLightfv(GL_LIGHT0, GL_POSITION, light_position);
  glEnable(GL_LIGHTING);
  glEnable(GL_LIGHT0);
  glEnable(GL_DEPTH_TEST);

  glClearColor(1.0, 1.0, 1.0, 1.0);
  glClearDepth(1.0);

  glViewport(0, 0, get_width(), get_height());

  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluPerspective(40.0, 1.0, 1.0, 10.0);

  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  gluLookAt(0.0, 0.0, 3.0,
            0.0, 0.0, 0.0,
            0.0, 1.0, 0.0);
  glTranslatef(0.0, 0.0, -3.0);

  glwindow->gl_end();
  // *** OpenGL END ***
}

bool SimpleGLScene::on_configure_event(GdkEventConfigure* event)
{
  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return false;

  glViewport(0, 0, get_width(), get_height());

  glwindow->gl_end();
  // *** OpenGL END ***

  return true;
}

bool SimpleGLScene::on_expose_event(GdkEventExpose* event)
{
  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return false;

  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  glCallList(1);

  // Swap buffers.
  if (glwindow->is_double_buffered())
    glwindow->swap_buffers();
  else
    glFlush();

  glwindow->gl_end();
  // *** OpenGL END ***

  return true;
}


//
// The application class.
//

class Simple : public Gtk::Window
{
public:
  Simple();
  virtual ~Simple();

protected:
  // signal handlers:
  void on_button_quit_clicked();

protected:
  // member widgets:
  Gtk::VBox m_VBox;
  SimpleGLScene m_SimpleGLScene;
  Gtk::Button m_ButtonQuit;
};

Simple::Simple()
  : m_VBox(false, 0), m_ButtonQuit("Quit")
{
  //
  // Top-level window.
  //

  set_title("Simple");

  // Get automatically redrawn if any of their children changed allocation.
  set_reallocate_redraws(true);

  add(m_VBox);

  //
  // Simple OpenGL scene.
  //

  m_SimpleGLScene.set_size_request(200, 200);

  m_VBox.pack_start(m_SimpleGLScene);

  //
  // Simple quit button.
  //

  m_ButtonQuit.signal_clicked().connect(
    sigc::mem_fun(*this, &Simple::on_button_quit_clicked));

  m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0);

  //
  // Show window.
  //

  show_all();
}

Simple::~Simple()
{}

void Simple::on_button_quit_clicked()
{
  Gtk::Main::quit();
}


//
// Main.
//

int main(int argc, char** argv)
{
  Gtk::Main kit(argc, argv);

  //
  // Init gtkglextmm.
  //

  Gtk::GL::init(argc, argv);

  //
  // Query OpenGL extension version.
  //

  int major, minor;
  Gdk::GL::query_version(major, minor);
  std::cout << "OpenGL extension version - "
            << major << "." << minor << std::endl;

  //
  // Instantiate and run the application.
  //

  Simple simple;

  kit.run(simple);

  return 0;
}

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/widget_8h__incl.md50000644000175000001440000000004010400731257020072 00000000000000a9d2d78797a055a7d9c3a5ef730d2695gtkglextmm-1.2.0/docs/reference/html/widget_8h__incl.map0000644000175000001440000000040010400731257020162 00000000000000base referer rect $tokens_8h.html 572,99 705,123 rect $config_8h.html 573,449 704,473 rect $context_8h.html 188,225 324,249 rect $window_8h.html 186,399 325,423 rect $gdkglext_2gdkmm_2gl_2defs_8h.html 762,247 882,271 rect $drawable_8h.html 374,274 521,298 gtkglextmm-1.2.0/docs/reference/html/widget_8h__incl.png0000644000175000001440000003443210400731257020205 00000000000000‰PNG  IHDR‚¨—±·6PLTEþÿÿÿo§§§oooÃÃÃWWW;;;???¿¿¿___ßßߟŸŸÿÿÿuþýîtRNS@æØf IDATxœí‰Â«(F»½3Óã•÷ÙWTPT–*üÎLßDƒXŽ Qþ¿ !¥€oH  )P€¤@A’H  )P€¤@A’H  )P€¤@A’H  )P€¤@A’H  )P€¤@A’HJ& V)H]h¹(ø‘}‚ü€‚¬ö ò ²Ú'È(ÈjŸ ?  «}‚ü€‚¬ö ò ²Ú'ÈœlûÓmÚß!¥u ÓPø [›öJÁNÛ¨_Ž[ÈlÌ@Aà‡lì/,«Ž[ôP„%?}ÓõmÓ7•ò¦nþÛwM_×ò?e’öþ'ÊZ®‘oû?CJµá¼½zíBe£27´î€Çd§`]¶m){Aµ$Õ©¤MÕ°f}ßuòSùNý§RJe«¦_¶ÿýäëoíÇÌûà9Ù)¨z­vV°ž‡£ÊžÝû_+¥µL"­ëEÓ©lz}{Q5«‚í2(=î€çd§ààɬ`)û1›‚êT°©Jõ¿N®¶›_{ÙwlΡ @v nzAùÿÊ¢`§z½_-ûÁŸnØnÓ ªÌZ(B“‚ê\î·((Oñ, þ”OÝp&؈ݹào{.ØAAŽìœ¯h–Sÿ×üÇ¬àø“Äp=´ždÝ\mÕÑ!›Í†æ}ð˜ì¬ÚËÛbÎsrÞ d¡`QËûa iøÕÝ÷í¡ ð{‹Í@´/[{úKœ·‡‚À¬,fð¤Dd Ô±p‡¯‚›Vã`Үؑ*6®ðUPè_: ˽`ã=rPP@ÁP¼t :ÀXA¡5(èoú@Ãs+¨ 1›¶W¼[ƒîÐ_ _ìRá¡¶ ªï_©oÂ×(¾³=¬ø6}Mt‡:\,´¢K '˜*ˆ/Ï'Él€„‚«‚øæü‘¶3BWÈSÁÏk¾ 1$BR8*øñ¯Ìô¡I  àG!Öꉅ† ~÷ËòÅn‡bLQà§àG¿(mëd ;?ù-y„vgC;º0pSð{ßW´p!ú…™‚_ûz¼Â¥‹á§' àW`Õ®Yû^ ~è‹ñ »6ý®•‚_ùR|ô9óŒú6P0{·dÆ¡»ÃIÁ/|¾aÚ.0ß(˜394àÊp #sÿ*¼“KãÍ¥ `®äÔps*Ë(˜'¹5ÚÌŠ£ÃGÁŒ¿ïä& È²HP0?2m­™‹‚™Ö¿rm©"×¢AÁÌÈ»žr”‹‚V}rl¢[ò+ ̈ü fCvmÓFfe¢`^•‚ÌÚå9Y fAVmÒ…Œ ÌCÁ|ê; _¬ŸlÊ ù“Qp‡\Š ¹“KK|@E‡‚¼É£>&‡â³P0ƒzC-ð%ü« ò…ëó÷Z€‚lA­L0?AA¦0ow~a]d]Áa€€[8Wäjdãcäãæ¶•Ùê0õ^  3ÐZaZ5 äY±a`ÚÊbÁ²v  'Pp¬ (Èt×0¬"(Èè¿Z¢¯ ¿: Åjèi° ŠbEY@³ 쯓D`ɪ: r€hÐTjmÙ€‚ô¡Ù ² 2k2P:d¤« ¯6‰C¹ød$]k{  iw‚²‚œZ ¤ ñ²CA@Aºì·!™lûöÜÍö·&Õ—¦§›>7oB¯îl@AªP¥‡õPÁ®Z“KM«¯8Ã]A>í …f±‹B—ð¡‚¥–tXêC(H´@A’ìŬàl¡Öø}ÓI“êfx•ÔMÛö]Ó×rU-´·ÃÈsJ.Ê%¹M%_ûþ'¦-U‚a©¶ÊVífY£CÃ¥&}B¶ÌE¡K¸6þºlÛ²oë¦j«F)(WH_jQI“ª¾ÕÞŠ®›“+ãäÒÐ þÔªzÚRü~ré7n%ûN¾ªý´S:ÖŽ“l-n‚¡[äBGkü²SС«’ŠôµÒd5µÚ[ñkçä*ů]>U3m¹,ÍvÓ~–5ö±+ÝzÔ‚ä 8-Ì,ŸOÞ /ê\°,VË%¹JQ.ï6[,[UeS×p–5P04<êÑÊkuíªTž¨^P.TÕÈsíÕÒ¦¶s^·ªÄ27$Q——@AZ¤èOz7kÒai{.øÓÏEÝXT#Ï)¹:µ›‡Ë¹ Úr9œ·ªD'Oo+È¢ñ@ARD(ì álÏKgWDES›,µärÜ©–Ê^¿"*·—Ö­Æ+¢óx F†C-ú"PYŸ gÊI_ZÕ^ÿ¦§q3ù9§ù0h=Pž¡ž¬;a7-O’n¹™Ü5  Z$ƒŸ‚†oe3íËÖžrÏÍä®Q ß|  Þ)S¼ÂOJ,Ðo>PK™B¼ Òo?P÷ ™R½(è(H€{*¥”o»g(èú ү÷¸0é s ɷ(˜§Ò»7³ýQ?í,ÚWõB¢ÞN€‚‰¹(ùF¼ýÈï‘«*ŒÅc `Z¬…#ÖÌüÝeãÞBÁ”2¹.´˜ (®š±`÷@Á„ìKF±u‹]LC¼h#ôÂÝ“qhØÔ j Š^˜ŠÓ (¬S1‹ž|§ƒMZ¡.0v &b(%ûH^hqç,lÚ%b  ñ|‰Æ¾ý/m,ï9{Ö?b÷‚ HÒâ‹ÑC‹½@´K #«ñç.œ¦BÁˆÌ¿­…ÝÃWŒ;b-5éÚ€‚‘XµSœïЧa«Òõc Éá_È·Aº/ÙÝ\â=oÞµã^?fŽ@Á ñVt}fvƒP0&E¼”òÁ¯„‚A0Kò¾ °ï (Êõg"Ôí•ÐÏcQ®8(è—“nê]1àŸ#P0”ëoù&/ŠÿnÀÍA R®¿•+MþÝ €pýM\kò° ðï>a®„ ¾Æé*å£"À¿G@Aÿ®?WKþ=ÅPq„ë ¾À½—º_ø^Ý |Ì Iî#ÐW˜jn…BÁgÜ“ä^àß[  oÈUßMInÙ ßc¨Cºµ os_’#VZEe ô ¥ê{ ‰óÐPÐ3tªï‘$ŽÛ@@0r ºóð4Íñ‡C"…Ì(èµ÷Ø—í  oÂ<.(èÁ Gî^K_À쀂^I]{¯¹Ü† z%mí½Täbk>'ƒPðjß/w~ñ!ÕvÁ6Ý <Ýñ{ENŸ£§Ú*r ú$Qåy1Äž ôI’Êócˆ5(è“•çËK608PÐ'Ñ+ÏŸ!挨¶†œ`sI vço00\ºA(xؙϽó"Úr z$bÝy>I3=¾M´%dôH´ºó®›’þì}œ:€‚‰Twþ®ÃšÌ8úf Dp z$JÝ…h\ZÁ+|ÈBG.•§]D9mO׃ùÊ6Ð_XõvhÛl3¸ñtîõŽ  ?B×\°öTœ,q"òuãΟlxXã#ï@Á€íª°.ð ¡x½²æ‚¶¯Âòž:”ÔÛp/$(è€ÝTàÖø–.dÕ[¹ôF°SµÀ_ ›Nz/þœÉ~WÁð-Ž|'ÈK½Ç¡ /BÔ[”vWÞÑ€©z.ÑCA_ø¯·è7)ÒùêÙ»·rY (è ï·NǺåÔð.ü;¾#傾ðüøP¼Ç.oÒ¡{+gcòW?¦`Ħ˜¾̱ã;b/ ô…¿[ç£6Ç”à'Ü[°• zÂW­Ån’Åî5Ò^?%ߌ¹ÀPÐ~j-z³ŒÞ ~S¾ sÁ¡ |ÔZ‚¦±ü´|3¦òCA?¼¯µÍ3N'ùV Õýð¶ÖÒ4ÑÐ ä;àò| Å#¯àËJKÔLv‚ÏʾV  ^UZ²¦FAÈwÁ®v  ÞÔYºæÀ@ØçDa]°¬IO¾ ¦l±~DçwƒÂòÞ¶&=Ä|\eIÛ¬?aßm ã[ëšôä©`âfëGÁì«Þsw—º‚×HÓC[ÁG5–¼å¾70›Îï¶@rЪ ¾æA¥oº/‘Èž j¿ÉBÁ·Ü®0­÷y'˜Mç·DÁ¹â¡à{nVæû¬ÌϾ4 N5_s¯¾ˆ´àûfjß@"Ǻ‡‚¯¹Q_dñ=s¶o ±‚·¬¥‡°‚îÕE¨;+˜½}º@í¯ïËN¾éÛyÅüI¯¿Øs¸A! à{«‹TKv3ðö hµÍ¯jë¾ZìæO(8ùßàV[´Ú²‹ŸÑO¡ ôú¼º\,çB(8ž BÁ78ÔµÖ|iàwº¿ M fxß®½ ‡þú¦ëÛEÁ®ék{÷(¦±èvåÓÜBVÁËʢךOïNüž~ŠU ­‹›ì:Ù'¶m©)øÕÜEs¸ |ÇU]ÑkÎÅ©ôâ ÅæH³S°ì{©ØdÙ¯zÆVS°]G©Çn²ü³[G ¢ žWÅþäô!‚ñc3°&P?¾_œÏ 5…W Ý Å廬§5E²=Ö¢£X1\Žéå8ôÐ (Hv×O ¤p8Š ëú¶ùµm×(«V"ǡùàoT°ó¯ á’(Å‚¶Š"êßβÂþQ¶f¶?ÍË3Á_[JÍð“ÄzETªBÁýñðqná ¨ õŠ~Ü0œ±:Gõñš£k¦Ä¥@Ukù5PKòÃ2¾¼ÞF_X>Iõ¤Äˆ8vƒ¿j î¯&R¬3M|Óõ˜ÌWPd³[ÖÞ§Vpß Rüjˆ)¸;¯Oˆ|ôd›1ç³O©)HÑA¢ Ò×ÏøS¡°ØfÜÉy‚„ ó¿Ô»AZ Î ÁŠ:°û)"dKw"DwµÇË$Éd0%¥`Ábø9°ƒ&ù†ÑÛíß!M‚©|wáíºA‚‹’‚\ôK%`jçvÁ¤Ýÿ%Ë9 tæþ—Ú'¢Ø,r9D}ˆH't Œ‘UÁ‹9S³*˜ª=/Ü>TË¿·@Hut'Ðl BA7˜8·Eœ…ö¦8®¥ôÁ½@J·GÌP jpìê¬0‰_W´ƒPЛ@Š#©â —Â@Á0 n[3³õí›âm­#ìโ͹˜M§§[–Öí¬Û›>p wÛÄÍ›´ýÅS ËDêÃã¢ë’#†ÜÉ ‚C®[ÉAÁ¶¹RðWêF-K’ÚfšÌô­‚«„\&Rlêl÷_4ûÙ¦_V\ûµ³“®8®'‰‚âRÁj~3¤«Ž ŽÛ  Î>Tp}L[%´>´½ŸÅd™ú» ’k¾'ìû=²šìÔàLòÛR™R·ÿW³®ÖµüO¹£½ïæ´*\ªjù¹ü@üoØN}4§P¯Ã vm9*ø²x¬à ¡¶É8¨›áU~P7í8Az­&I×Þj©+›Ô’\¯æóRúç·L«.sªÄ°¦’uÑ5ã aœwý# Rk¼§pV°®ÙÖš©TKR–RúSkÖ÷¿ßœV)8,Éõê?µXÍ–5çÖuòµ[{Á1‹ J ×M¦™Ñë¦j«F)(WHWjÍ0IºöV›H])8/)/Õk=&çuþý†OäK£ý-„ã¼ëßPZÛ=çpöGÕAƒ‚ªŸjfëy8ª|Ù½W“BŽiÕZ¹TJãäÒ:Ù\e¢Vh¹õe»*Ø,ƒÒÃÅü+–à§9aõçë¤ò\´Õ楜&‹½Z&RW)æ¥nü\öxó´êÓ¤³²0mÓÔBSð0ï:¤Çñ®´ÕAR%1(8˜1+Xɞ˦`µ¤Uk«ÁÞJýï'—‡OæW•b܉~.豜fF^Ô¹`©z5‹‚ëDê*E¹=Ç›N$ç­¦Àêyƒ%ÝVÁOüÁ¬t†CícJ®zAùÿÒ¢ yj½ Zê»ZöƒÝ°<œóé½à`ž7Ç—õs/¨NÖT/(*‹‚ÚDêê´n^ª×^P¬½ Ê[&k”Ñ' î{ðçß]¸Êtoöþ*)‰oÊr.Ø- Ê“:‹‚rä9§•kÕÒp’TÊ6º;ì¶ç‚¿· .!/ë§™Ñ×sAQ7µ‰ÔÕiÝ´¤Ÿ .IçsA¹r>4Ï»Þçu š ve2>±û±Äwe¿"*»‘±ÿkÿ1+X­iåÚñ'‰ázh=©»¹"ªNÓº!ÓM6·ԗήˆÊSR³‚ÚDêÒ¦iisEtJZöÕ°¦íz«VXæ]ïÅþbmv°+Ô‰‚sHãÛ2(X6—·ÅÜHëžÛýà×MfF×¹™Ü-¬äW&ó³òSç7¾§ñuÙ¢†ßÙM\§uÏí~ð»èùÌè:7“;Bä+ ¿BY¦«(–›©2ÍQQ5vU6\§uÎí~ð›èÕÌèn&w „ÆW†E²)¸|ETΘ=)±…ÌÏqs Ó÷™„Ëcˆ.Ò‘¹€}°² r’ÅŽ¥)L šs¡ ´@Ž?ó‡eYL n”û{d^ñw4vBA˜ɨ#dYc/¨wƒ{bC`„eË5À³fµ³Az FÄÜAÜÿ¦ÃäW´¾|øÈ¤#dZ ›ƒ³„ŸVÐrw­¯z=Ga­"=ƒk¬ N~\AalØä¾lí'¤Ç9øŒ' \Kp¢ ~€M͓䷽\Ã~º¹ßpbÃ6üS~/”4T ÙïûÍG¼%d|q²¤À@tàЬ)á/$ôHLø†þPÁgs`jÛÔ½6'Ÿ!/b ŠCAú+Ü²í¹Æ­¸‰>UÐ8¦¶n wí“úwþÔBêå2Ã3ê‰@ çÀÔÔïÿg¢àVBßú£C–!ǘ.†Wº oçÀ”‹b|ô{œë²ŸQ7ÎxISAË3ÎdYv¹·ƒ¢màïwßÍ9n%æiN†É:™Vål˜ñ’ª‚ÌëÏöw-äPº F¡špWðݘãVóô_³‚#†/É*ÈÍÁu`yW*6r‰ÓÆQÁÍPSáý˜Ã¤}㽊ƒ‰eSNS¯ > ²sP—ð^À<ºB1žsppóx ¡|<æØ ª¬¦ùŸÅ2Œäç Ö¡eØÒðŠ·gïæÀ4 VB] é¸)ÈÐÁWÒÖtpnœ*x~EôΘóÑqÊËqºÙñЍ¶å ôÍs ßÝöšQÝc½dv@lTˆ:&iy:øJÂq+zR‹çGÝÆÕÛ)îv?JD›“¶‚ƩǠ…ýü©&B ÅÓIÞþäÍÇú‡1çÀ$® [=HHçJ)(Î1 -‰ Û¬ïGh BC¿Bg˜<€#Æ“9—íöÙhùáa% 98ø2ô´ç†é÷…3äa\ó„‚6ŠÃ&ž:Â9‡$&ЇvÛ ‹söPÐ [wÓtùÈ0²‡Iô®Ý&óýâº+(hÇtÉŠ…w ED£ìåéYÝãýYö~Œ$ýlÚtàÛ îB¶Çûk‹ÐDBÔvlá X±þzŠ 2î];ÂTƒ 3|ÅD¢]¯Xd%© k:ÂŒLÞÏ]`‰êïÇLSÁåêqÚ(²;îš’ðUºqGŒjoS  0v„úJf r2î€IA±ü“¾HDdî ±#Ô¿l ²öNgw@\KD£lTœê-}=¤8,m¾oº æâÆö™^4¥„‚ض£³‚¯'r6gjHeÚ&3ñ4´ûÒôe"Í‹¬‚cõ¨£g˜”9>«¦ñz"gs¦†T¦m(öÌ~(fýHžÞWXmÝÂæ ZÿPÁ«‰œÍ™R}JÁµs'ùc]ÙwƒÖ3ŠMs÷1‘sÛWM¥æ+©EYsЊ~Z3øÒ Ó=+ “<ç©à¤ßþxN©YAÁ€¯̬ÍÝËDÎm_VbHØÖ¥üWý7-«ÏÚ¶ùµë_Â8És† ê^Äæë Ô¬+˜—ƒ[×¼Lär3è 4@«]<åÅÙLDèÄæ«žÌ¢Úœ†úÁѰ×qV‚ËÇSL   -8H¤²=ÖÒÉ„FŽÚ QCÁ,`¡`úÚö[CyþР±iBAÀÁË}{¯ëç˜ ëã ó@tš|À8ë0OÍš‚ÄÛ¬3Åv^uª¤ /ÄÁÉéQ¦M¸j3ÍÙ:+8MÇjœáU˜§f…‚ÄÇ<ó;º¤ˆ.ÔàÀ)S˹à4[ݬà2azIažš C³v‰bGnlî–¯å\pš³U»":ýÑ‹‚"c‰·XGv7d¤ Ã…ˆÁ…=7~ àó^P@AÚ\߯OˆHÁ¿4uóTpÛ Ns¶êç‚–é%mS³BAR\߯O‰ðÁE¹4ü@Á«+¢Â¤ ejV(H‰ëûõIºwŠSöûêÚ¼Ÿ³ Râú~}Z„ -â/£Wû™~#:ùQâÝœ­)H¹­ºqçAŠ,î W·Æ ÿìÎ7Ñ—s¶BABØ @·`~&럸(ÃÔŠÅÂq5ž”0‚g7 G ã¾oKQГ]ŽÎïµè  ¬¤[6qÅïþæÛ?ÙĤ¿‡‚ø+x>ÕÂyz^/]?oÝñ>&} È]Aª¥{V²îoÚ½eõiTPÐ{]˜¡È»¨Òê7D`^{¦ò5¿‚D ø<¨ÄÝß…óÊ”0Q^ÅÝÀí™ÐQ<áYP$ôS˜Â š ëíúÃxÀƒÈø'Lá n‚ÚcvŒ‡, ‡v  `X^…´ÌËè“iÍkh— †å]ØÉÆ€›éÅÅðšYA Ayu‚bï/¾ð¬y±v€Ä ƒò>ê¸å6]ûäYóbÑzüP0(¢ŽWp˵Ož5/ý¨Çƒâ#ê('„'?ýñ¬y1+H>|(?Q‡.ûùO¼ï,ÑÂé±Õô +Çúæ¶ÏP5D»âí¥†‚žaR¡#B}×u˜¢\ïg5ƤÅ@Á<ˆÔÏC{jþ¼Î˜´N ò¨QÅÝ+)þ: 1¥ZíWe…‚ž)ÝÆ°ãN˜ÞŸùó_G$kݡڠ oØtƒÎQ†yäÖÿÍ©¾3|ãè&ù^ ò¨S· N·ä9cr•îX@(è›bûY¢ =ãõ¡í+œ« úf±ö/„—·TǘðÅïc>3{É­›öHEn…›‚ª^ãLZôóТ…îs?tjû^©  o& ® FŽÛß¾¨Ôöý»f©D~ SÉÖ­ívÅ!û{`ÑWF¯¸_PÐ7ã¹ mMq% ××n)Tö“²@AߌWbH;xŒ*m¤~ö¼®V"ÑF²‡‘‚Ó• î‚"¦—ý'.ÄãJL^ûnðRv7¨‡D%BQ$-È‹g·R;ᦠݳÁí_:JÈŽ÷¡$,Ì›Š„‚þ™k”¤ƒzpI9ð:žTåyY“PÐ?›n†XC_.צÄÄË ’”é}UBAÿP<ך(ˆ>w¼íNbã¥.¡`6UZ=ˆ ¼ /rÑ|Õ% À¶JûDQ Ší:êmuþŽeP0Pð Ï_óÆÙ޼Ž%l VT˜âa¥à¶N µ{B¡œAÚAïcy«‚~wó(èB¡œò°•Gx¾1À¹´-K(ø(ø–g7[úŽb—}˜kYP0z­j÷„B¹âÙ#áˆ?…||Ïý&LÁ¿åX/ˆBÁW8(Øöí¹íoMª/˺x²š•‚÷;Â0ž„žÂÊ–;|…»å;P ;ý©w9YvpXÅKÁÛP%ü½ w¼qèž7¸!1SõÖðTÁRKª/rr]ÍMÁ›úþµ ʽDÞìvBÁM»ÿõM×·¢n†WùIÝ´mß5}-WÕB{;̦ä2¡\*Õçòƒ¾RËCJ1å$?î{™~M"Ä’D˜CáBãÝÊç]ÁýÁ êí¾.Û¶ìÛº©ÚªQU)W ÒTR ªoµ·¢ëæäª^†%¹^ý7(9¤œs?•²Ö’U›cF nÍÈéeQ蘆îJWðæ¡[¾ûµb:0W†CtÛWÍ-­|×ÔÓÁz¾ŽÛ\ÔjVk÷M5ÅšN¾—vôµ2d8ð¨7JÁå­u8%W)ä’«–H͇TSNÃ6U£%bN¢ÅRÁ¾6'Á}ì. >9t«AÔp`Vj:D·}YéiÇã¸ZÝ¶Í žá¸—‚CÙúÁa@Q–?«‚å’\¥PR5U©þ× nsc>K¡å+L¡ðÂÑ‹WÏY$zŒÄEÁ'‡îNLfõátˆžŽçKÚv>Ä ãq;/çªT¥RU©F–ª”3­TKâWËÃßo:7SN9ÍU¼&y)èØ>T(å“Õök >9tO Ú~n-Ó«ž¶“ÍV¶ý²M& ®Íaw.øÓrÔn©J5–Ÿ’«Ñª”n8Ík„¦àî\pMÒe¦ £„~ÎOü¥}ç†^ðΡ»6ö‚[Õe»}/(òVðxZ-šÚ\•¥–\öÆœêñ¿UÁÝÑ5‰>âXᬠ“„·l"1­ˆ“‚Ý–sÁ]çY‰Z;4·óR°š‡ðnÜL~ o s6Š‚}Š“(N¯ˆ^ºmWD·½`Ý7uÙ,WDÍÇm¾ .Ía?=ù‘}ÇÍä×pWðº#tè(It~3'h z?o9Ï:/Õá©lM‰ÍÜL~ {/%<û”–|#n z?oÉVÁ¹z µ{B¡<çÜ"ã‡å8 j;õ{,Þ²¿«Ôô¡PÞpÖpw‘•oä,2<)᱂ µ{ÚíñöRkú…= z€œ‚C(”ÿâŒ;Öè ò@Áà 5LMÁÞ2¢fV˜óP¡ FSÌšmYo ”¥K°zìŒ #¬=X\rˆ‡–@©‡½`«à¹T©§ð™Â‚‚÷÷múŠï=…NQÇ]HÇÈè„zÁ!ô¢ YãLLÜ _äÓ¯6qó8Ùõ±%Ç é-ÖsYšBÁǵ^rÝã!SS¶NÙó‰ž+˜   ¸*H =ì¿Î0߯ݞ¼Øûféui"`,-a¡à… <³iµÊwr'ÍðÙ*H¢9: AùF/$ýòY®•Ñ5 ¾dßIЈÊ3k!éÏd  ó£¾ Ri»N‚HTžY¬OÆ5ÖKÕd „‚о].\ù>s!i—Ïþk&ݸ+H¨V¿à `pŸÚ¡öéö}+PЛ±(°|34hÂ"î랃€¼$ÔônPXÞ)Æâ½¶±»@M2Æ#PÐ_qpwŸTIÞG `­ ¡jþÈPT¡ýÌMª7Üþ>D(° x+H¨±¦Ü)H¦¨›‡ÈDåôÅ'®Š ÃM«©Ñn ’#Ì¤ÔØõ[H…åM=Jjú'ãPКƒ”ÂòŒ×'1üµ}åw)5öÏE“7|‚‡Ü‚ùÆPT˜$LàÙ°WT[ÿÆPTAÊÁ‚k8À_AR]»)˜RX!Ø\‘IªgÿôÍê ©°‚ ÍªªŒ4—ë~ ×ǦŸ¾p$I5öuƒ‚DŸ÷€é¦ô…‚AYož$VüMç!@Ajì_r zØs ’jìPIPÐ'¤{±üK*¬@A{ÎCARýCÝ 77×n  WH5öïtƒ–ößöí¹ëaW ­’½î«mF†lo*¨IhVðFì.3ËRAR ^5ãni„*agëzùA½ÍØ53››*hÖ’a% 6©¥°ðTÁRKª/í³o»†`fs'ÏC­ÑZ²3¬ÌSARý3Ý Þ¾~}ÓIgêfx•ŸÔMÛö]Ó×rU-´·ÃXnJ.ª%¹þתúþ7%B椢SJÅü‰%„K6·Ói"ÜŒ½Séæ Û¾j*1.¦-LCÄÙ*H©µQÁºlÛ²okiMÕ¨f,WÈX‹J6ʪoµ·¢ëæäJÁyIy©^ë1i;ô‚òý”RÑN˜C¸fs_ù*ÂÍØEßÉ·sÐm_JÃûée)€1b(ƒbûO¶hí_öj§zÕæúZµ»a6ʤ½²ï˜’«óR7~^5í”lTpN©X>Y1=AìÈÓØ•‚óVÝSÕÌ/Z˜†ˆóURkÿJ7¨)84³~tEO•åÏÚŒË%¹JQ.mtH3Œ- Î)—þ{Á›±‹ªldϧÅÔŽ·ŒO/z˜†ˆ¡` V)EåC/¨š—êIÔ9’¥«±ÜÚ .KõÚ MÁm/(ü(¨VnÆ®¶”Ñ)èñÃ!ºùå³ Rjí‰îÎúù”¨K3Vc¹)¹:Wš–ôsA¡)8§'ç…í¹àØÕ%v.(×ìÏÇôæˆsVPsÿž‚Ç«Š¢©Í͸ԒËQ߸´¹"*4—+¢}ëAAmáìŠèyìÓÑ1èqô<½×VÉô戡`Öó@BAyGkÿÕ|à ÷ä)}Ü#z3ö×d¬ ¡æþ9‡ÁœûÏÖîÉ/RúPðfì¯ÉYA:íý#Ñí@´/÷w³œàžü<¥—'%nÆþ(Í>21ù‡Û“ð¤DÈ´÷OŒD¡ ‡=CÁ@h¿Ë“‰É;PÐÞsSL{‡‚ÔC€‚¡ Òàõ»Óˆ„ä Sè> †‚@³Pä¯ànöÞýMÐçò}?¦ò ‘¯ÏC$$ŸlŸ5˜WCˆKÌÝy&C‰4ø¬4i–JÀiçÑwé (ŠÍ£J4Bò…Y´” Ææ¨ Ÿ­‚fÑ 8…j×oÈRA-~ûÀ.…ˆ¼`Q­X?JØÃz†‚¡ÈTAc'¸ü¡éô ¤à.y*H¢Å›0(D䇃‚Ë[ ~fª …Ÿ«‚ûË¡ôºz^BÁ!ÛÅLØ(H³¹ÓŒÊL® hñ; Dä‰I#9„P0dÅ~EÚIå"q‘0[Ó·ŽLÔ§ Þʉ‡7‘¯‚É[üAÁäù€×é- ¡`ÈýïCH’¸]ä¥/aÆ ¦n"Ûßæ×u¬áf  gÎ &®|“‚äÛà $ßBÁ »?F@»9\ÁRÁ­„äâÎZÁôÝ !rM༮Åè¬Ò¸‹N#oÓ¶³‚œ'uâ«à¢‰{É7@Á ;7în q£ñgªÎ /Žy;”â‹ ¦k- )çU÷vžƒ‚;Ð F"Us±*X@A@ÁHSpÓ rQ0Çg¡`,µ—Åj!LŒFš£?_nI“b)~Û·ç¶°ý-)m9Ø>†‚Ñ÷zµë´¿L¸+˜áÏì– k[úËù.¿¡`š㤠—sÁ;ÁÇ –WCÁüt ‰ÃWmÙÒ©AØÈ^Á_ßt}+êfx•UU7mÛwM_ËUµÐÞªª/U÷×W*]§¶+Wn¯–êUÁnØÀ²Ë‘(˜¤Í„U°Ó7Ü~ÍPЭøuÙ¶eßÖMÕVª{¹BÖX-ªþ'ÿkµ·¢ë¤irëf¨Ò¾“+‡dí¢à¸y—_Q0E£ «àÉ`(€‚Yž êÅoª¡Îe&”5}­Ì™½“Tã[ñS/•øÕ³‚bM:lµ*8n`Þå ½Ë«¿ ©có8šÇ<ã¶òã^µ$ÂqXtZÛ"W´â¢ôƒ3Ãá¯,VÕÑOú§„“k«²)«u *7ÔPp%~«¹­àÍÁP]Êwå4 ?›·?•U­%ŽÃ¢Ó²Ø¹bèÕ*Õ Ê…Ê¢`7ô”MWŽŽUbˆ*ÕÁ ZˆÞln+xs0$¿øZ&‘š -fX?m;¤’ç*ká8,:-‹m‘+»ÃßO?üÉñ„¥îC6ªª‡h%ºÑØ¡û«D=¦î àú Þ 5U©þ× n·ã–KáØ ÎŠb[dËéI€hjsÝ—Sz1VéxETŠ7nß7uÙ j¶PpOì†ã6OÓ‹ÁЯ–Üoüª§Ï¦mç^pM" à­øUk½Œj—_R0v˹­àÝÁP7œæ5BSpw.¸&qŲȖ}Ý_þäîu—ŸR0rÓ¹­àíÁÐp±³ÖÜ]]“¸‹N‹bYd˶îû²µ¦ ²Ë(|oî Æ w~ÊL¶Ëo)·í»W3 CÆŸÃíòc Fm<·Œ52ïü (n—P0ü¾ÜŒŽãÎ35 &!bó)oL@Át@Á$Dk?…á(˜ÓFBÁ;:Û'ü8ßS0Z‚‚À…*«–÷;R †N†E—E9/ ¸ÍŒÔ„ä Œ³Þ­6ËY+¨ðIã4"(\ø¦‚QZQFí6£¢Ð FÚëv›QQèñQc4£|®aäSŠ|UÁí(Ÿ†›OI(òYá ;‡†ä» †oJû°m»P0$P0Þض](’+¼-òçÚx¡`H¾¬`èÆtÌžië…‚!ù´‚[“!wžÍ †äÛ †mN¦ÌY¶ßŒnµ#ÈÇ„ƒ.@Á@ÁÈ™áwëŒCƒòuƒ¶(cÞjeQpjÈèƒòyC¶)sÖ…2SK†‚A‚•%ç¢àå  Œî`ÁYAFas Š€íÊx=¦àæ  q, ÍÁ´³§­¸— z *B5¬³è ` ýÞä< œ † Dup‘Ÿ‚0Ð?Pp$PÛ²e Á œÓ¸ì¹BAb;(˜(ˆSÁÀ@Á… Íë4S*?L8+H$Þ¼€‚+!ØyžÜzA((¨ …=Q°íÛþt³ö7¥;OÕR·‚)‚:±|¨`WMéNSùQ† nðßÈB(XÎéNSAA@Á-qÔÚþ¯oº¾u3¼JQê¦mû®ék¹ªÚÛa:¦“««¦’Ÿ4µ(U"ùi?-›üFé~}?^»![§áCÁ@ÁÞ›™›‚uÙ¶eßÖMÕVRP®”ª¤;UßjoE׉)LQVbø¨­Kù¯úoZVŸµmóS þ~2÷ÁÁvÊÃÆiô00PpOL×¶ßTôéÔZ©`­4:0õF)¸¼¿VLéÔ&2Ù°©\ªëÁÄqyü¬jÔ–ã;µŸvÊÃÆiðP0Pð€ï–æ¤à`E?2œ –ªÓ²(XNÉÛ~LÑÉÄrES•êݼ<|6œW¶ý€Z–æ0Nc‡‚A€‚Gâ9xìÕšjÔ¦²((Ç¡bJ7¥¨ÆÎ±–ý roZÖ{Aµ‹Á» ÂÀ0@Až›‹‚ê\ð§Ÿ ÊÓ=‹‚rª ŠAV5ní†3ÁfYÏkí\°»« :Á@A±<»"*F{Ž ?I,WDÕû¾©Ky¦7\­—eíŠh«®ˆ¶bBAJ@A#‘\Û~Õ^þΛ‚˜@4PÐŒß;¨¯¢¥Ï}ÞÀIA(h#†ƒ›¨!¯Žðú`@%Ò,‚ðÔúÈä5QÐ4S àCrŒ:…>ÌŒ‚OÉ¢#t+ |ÿŽÐqßP0$PðÌ;B×ða`P à+8w„Î{…‚A‚ï`ÛºÃßâEÂØáýAÁ°@Á÷ð“ðξ```  xIxoGP00PÐ|$¼¹(è &ÞÜ ô oçƒ}B\Âû9ÃÀð@A¿–ðA®00PÐ74%,å#ýãIBíÿi^00P0”¦¶xî2 Œ Cj}v cãïÂfáäáûîoÌÆCÀ (¯¿ñ –õžvã'àŒ@»]Š žóö›8 FÁ»$Aá+ `,øHÈ&Ð<€‚ñà!!(3 Æ„þx”|€ù#Cº“.W `tȶs²å LÍñ(Ř¾L9 Éô `*Hu…”bùP0!d>•8> L ‰®B  ¦&¹…0-P)%L}P©ºB˜(H…6@@@A:Pþ;Ÿ P1¥€€D€‚´ˆuRÉÉÁH(HÀ†@@R@A’B@b@AªøŸmÌÕžàP2¾5„€‚Ôñ¦aò›Q(Èä þ 2á…DÐ4P4D÷G(È w§ü­ (È«¿åâ/½€P@AÆRÇîH  )P€¤@A’H  )P€¤@A’H  )P€¤@A’H  )P€¤@A’H  )P€¤@A’H  )P€¤@A’H  )P€¤@A’H  )P€¤@A’H  )P€¤@A’HÊ¿ÍÁ¦kIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1WindowExtProxy-members.html0000644000175000001440000000640410400731256024755 00000000000000 gtkglextmm: Member List

Gdk::GL::WindowExtProxy Member List

This is the complete list of members for Gdk::GL::WindowExtProxy, including all inherited members.

ext(const Glib::RefPtr< Gdk::Window > &)Gdk::GL::WindowExtProxy [friend]
ext(const Glib::RefPtr< const Gdk::Window > &)Gdk::GL::WindowExtProxy [friend]
get_gl_drawable() const Gdk::GL::WindowExtProxy
get_gl_window() const Gdk::GL::WindowExtProxy
is_gl_capable() const Gdk::GL::WindowExtProxy
set_gl_capability(const Glib::RefPtr< const Config > &glconfig, const int *attrib_list=0)Gdk::GL::WindowExtProxy
unset_gl_capability()Gdk::GL::WindowExtProxy


Generated on Mon Feb 27 18:47:57 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/shapes_8h-example.html0000644000175000001440000003610710400731257020653 00000000000000 gtkglextmm: shapes.h

shapes.h

Geometric object rendering example.

// -*- C++ -*-
/*
 * shapes.h:
 * shapes demo.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#ifndef _SHAPES_H
#define _SHAPES_H

#include <gtkmm.h>

#include <gtkglmm.h>


//
// Shapes classes.
//

namespace Shapes
{

  class Scene;

  //
  // View class.
  //

  class View : public sigc::trackable
  {
    friend class Scene;

  public:
    static const float NEAR_CLIP;
    static const float FAR_CLIP;

    static const float INIT_POS_X;
    static const float INIT_POS_Y;
    static const float INIT_POS_Z;

    static const float INIT_AXIS_X;
    static const float INIT_AXIS_Y;
    static const float INIT_AXIS_Z;
    static const float INIT_ANGLE;

    static const float INIT_SCALE;

    static const float SCALE_MAX;
    static const float SCALE_MIN;

    static const float ANIMATE_THRESHOLD;

  public:
    View();
    virtual ~View();

  public:
    void frustum(int w, int h);

    void xform();

    void reset();

    void set_pos(float x, float y, float z)
    { m_Pos[0] = x; m_Pos[1] = y; m_Pos[2] = z; }

    void set_quat(float q0, float q1, float q2, float q3)
    { m_Quat[0] = q0; m_Quat[1] = q1; m_Quat[2] = q2; m_Quat[3] = q3; }

    void set_scale(float scale)
    { m_Scale = scale; }

    void enable_animation();

    void disable_animation();

    bool is_animate() const
    { return m_Animate; }

  protected:
    // Signal handlers:
    virtual bool on_button_press_event(GdkEventButton* event, Scene* scene);
    virtual bool on_button_release_event(GdkEventButton* event, Scene* scene);
    virtual bool on_motion_notify_event(GdkEventMotion* event, Scene* scene);

  private:
    float m_Pos[3];
    float m_Quat[4];
    float m_Scale;

    float m_QuatDiff[4];
    float m_BeginX;
    float m_BeginY;
    float m_DX;
    float m_DY;

    bool m_Animate;

  };


  //
  // Model class.
  //

  class Model
  {
    friend class Scene;

  public:
    static const unsigned int NUM_SHAPES;

    enum ShapeType
      {
        CUBE,
        SPHERE,
        CONE,
        TORUS,
        TETRAHEDRON,
        OCTAHEDRON,
        DODECAHEDRON,
        ICOSAHEDRON,
        TEAPOT,
      };

    static const ShapeType SHAPE_CUBE;
    static const ShapeType SHAPE_SPHERE;
    static const ShapeType SHAPE_CONE;
    static const ShapeType SHAPE_TORUS;
    static const ShapeType SHAPE_TETRAHEDRON;
    static const ShapeType SHAPE_OCTAHEDRON;
    static const ShapeType SHAPE_DODECAHEDRON;
    static const ShapeType SHAPE_ICOSAHEDRON;
    static const ShapeType SHAPE_TEAPOT;

  public:
    
    struct MaterialProp
    {
      GLfloat ambient[4];
      GLfloat diffuse[4];
      GLfloat specular[4];
      GLfloat shininess;
    };

    static const MaterialProp MAT_EMERALD;
    static const MaterialProp MAT_JADE;
    static const MaterialProp MAT_OBSIDIAN;
    static const MaterialProp MAT_PEARL;
    static const MaterialProp MAT_RUBY;
    static const MaterialProp MAT_TURQUOISE;
    static const MaterialProp MAT_BRASS;
    static const MaterialProp MAT_BRONZE;
    static const MaterialProp MAT_CHROME;
    static const MaterialProp MAT_COPPER;
    static const MaterialProp MAT_GOLD;
    static const MaterialProp MAT_SILVER;

  public:
    Model();
    virtual ~Model();

  private:
    void init_gl(Glib::RefPtr<Gdk::GL::Drawable>& gldrawable);

  public:
    void draw(Glib::RefPtr<Gdk::GL::Drawable>& gldrawable);

    void set_shape(ShapeType shape)
    { m_CurrentShape = shape; }

    void set_material(const MaterialProp* material)
    { m_CurrentMat = material; }

  private:
    unsigned int m_ListBase;
    ShapeType m_CurrentShape;
    const MaterialProp* m_CurrentMat;

  };


  //
  // Scene class.
  //

  class Scene : public Gtk::GL::DrawingArea
  {
    friend class View;
    friend class Model;

  public:
    // OpenGL scene related constants:
    static const float CLEAR_COLOR[4];
    static const float CLEAR_DEPTH;

    static const float LIGHT0_POSITION[4];
    static const float LIGHT0_AMBIENT[4];
    static const float LIGHT0_DIFFUSE[4];

    static const float LIGHT_MODEL_AMBIENT[4];
    static const float LIGHT_MODEL_LOCAL_VIEWER[1];

  public:
    explicit Scene();
    virtual ~Scene();

  protected:
    // signal handlers:
    virtual void on_realize();
    virtual bool on_configure_event(GdkEventConfigure* event);
    virtual bool on_expose_event(GdkEventExpose* event);
    virtual bool on_button_press_event(GdkEventButton* event);
    virtual bool on_unmap_event(GdkEventAny* event);
    virtual bool on_visibility_notify_event(GdkEventVisibility* event);
    virtual bool on_idle();

  public:
    // Invalidate whole window.
    void invalidate() {
      get_window()->invalidate_rect(get_allocation(), false);
    }

    // Update window synchronously (fast).
    void update()
    { get_window()->process_updates(false); }

  protected:
    // idle signal connection:
    sigc::connection m_ConnectionIdle;

    void idle_add();
    void idle_remove();

  protected:
    void change_shape(Model::ShapeType shape);
    void change_material(const Model::MaterialProp* material);

  protected:
    Gtk::Menu* create_popup_menu();

  protected:
    // Popup menu:
    Gtk::Menu* m_Menu;

  protected:
    // OpenGL scene related objects:
    View m_View;
    Model m_Model;

  };


  //
  // Application class.
  //

  class Application : public Gtk::Window
  {
  public:
    static const Glib::ustring APP_NAME;

  public:
    Application();
    virtual ~Application();

  protected:
    // signal handlers:
    virtual void on_button_quit_clicked();
    virtual bool on_key_press_event(GdkEventKey* event);

  protected:
    // member widgets:
    Gtk::VBox m_VBox;
    Scene m_Scene;
    Gtk::Button m_ButtonQuit;
  };


} // namespace Shapes


#endif // _SHAPES_H

Generated on Mon Feb 27 18:46:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGtk_1_1GL_1_1DrawingArea__inherit__graph.md50000644000175000001440000000004010400731256025447 0000000000000034283d33b64f9216eb14dbfc1d247551gtkglextmm-1.2.0/docs/reference/html/classGtk_1_1GL_1_1DrawingArea__inherit__graph.map0000644000175000001440000000007410400731256025546 00000000000000base referer rect $classGtk_1_1GL_1_1Widget.html 8,9 224,33 gtkglextmm-1.2.0/docs/reference/html/classGtk_1_1GL_1_1DrawingArea__inherit__graph.png0000644000175000001440000000231010400731256025550 00000000000000‰PNG  IHDRçtŒ(8þ!PLTEþÿÿo???ßßß___¿¿¿ŸŸŸÿÿÿÆ%ùvtRNS@æØfUIDAThí˜ÏsÚFÇó/øØ õ€Ž5ÁÀÑ`7»Ç„dÇAWϤ £¤£xW§DZÄêý•}+Ñ8¸±Eì ñ>fä÷Õ®ßGï‡vžÁãÛ§gª¡ºPþ˜¶†ú˜f¬¡úÐS~ŒW’.*ÓÄ]4 LÅœdV7!8og¤Ø<~àÞ *®zeSÒ4l¢RèÒ‡ºµôƒ,ôC¢wö–fBkGþ{'è¢ A#^CSµz€9̺A²P/ A!ìn‹MtÛí›Pi‚0í1RË~¢Tø.£±¸ÂF 6¢ Þ•ÌÄ¥9¤n_âº÷|2t¡óу‚4Ä|  ¦Oo’Õ““ X©Â‹µ„×Aw›$ŸÙ…V¾n=W™FXXÜOUÁIcР^¥éÁÇÀSsÑnvÝ÷ö‹·ACî!´L3jµqZ/@¤ƒ1êA¡Ë# R(@Îüß¼‚òã¦ð"ü—#‡â_¥êVhŒSУnFmtQ‚’` –:µ½èÊ„uyñ:t\­«^Ä„‚pîâ(Îý‹çIÿ/>lƒâè,Çæ‹Zm”G@þÀLÍU¦>vÓµâz„íéÿî%P•©4 „P$Ðy2t¢ÔÞW­¡‚BIõt¥z-ªzºpAÎ!íi'í©xû&}e³LG“@O*§Îî çö´=’þ¯›zãphòv%Ä#@qz…¯~g9‡Öj=½§x ÔqºKT\XÁ‰ØH §÷¨0 :3Z¾¬aq­íƒt7ë}u(}eÿ0´Ðzõ­-Aå´ñ}¡ ,ç·¬3¥ßº³ièO Í÷­ù—ݾlç³_óþãÐÏOš·¾;@ž4oS÷ úùGAs6uÏ ¹ë»gÐsàk¨†j¨†j¨†j¨†j¨†j¨†j¨†jè>Cã|¿Yoµ-?Õk¨†þœÐð7^ôŸ•òí•°´3qç;BÙŸ5£îÙiÄD­¡áäøE&®»ñ¼³¡×#îü54U+!9?ßZK§aß¼u?¨Wç¬N›/Nb'JAYì(h……Ͷ(ÿÅ:lAË×¢kóC¯Œ÷¯a4£'¹ IŠ˜©ÛçÞI^:3uXT¦òpMc‡)obÚüÔ%xÿŸÉ¹_^ç|_è$B ;£6åu˜ä6“ ׸(_6¹cOåT*ë€*Ô¯ct„¾eÔZa1s.½jµÚqЗëà,faöÎÊÅÑ™)( 3êË !(äòÚp-;ªL½2/¢sæo&ý¾¯Ì¤­ ¼¨zºRµ‰­zª^Ì(tå,š ž@'–}lÔbŽ=uêF.(ð?î•pz…ˆš^€ÈÆ[ÆIøI jzßsµÏ‘¡+I.èý¬–9˜²ö ÐÃÉûLJ^Cÿñ¡·™†>a蛆jèCÿž¬‚7FÞðoIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/dir_000003_dep.map0000644000175000001440000000031110400731256017344 00000000000000base referer rect dir_000003.html 29,54 101,102 rect dir_000000.html 29,150 101,198 rect dir_000003_000000.html 0,0 129,215 rect dir_000003_000000.html 61,146 69,154 rect dir_000002.html 18,18 112,113 gtkglextmm-1.2.0/docs/reference/html/dir_000003_dep.png0000644000175000001440000000136510400731256017365 00000000000000‰PNG  IHDR‚ØÈË^WPLTEþÿÿ¿¿¿???ßßߟŸŸ___ÿ²²¿;;?wwÐÐß””ŸYY_îîÿ``h¨¨¶¥¥²77;nnwÁÁÐŠŠ”RRYÝÝîÿÿÿ—ÑütRNS@æØfLIDATxœíÙ SÂ0 `×–¢8E݇ÃìÿÿN“ ˆr§Ûú…7ç\ÙíÚgI8oFõ¸Ñ€ € ,"PÞ˜DxË €žÐ/…&" ½: ;^©hh„Ð /ô:P×ñ&¥ùç#tmß·œ‚,È+^¯¡oräsœ04r±{Bw(‡,ùmœ&?Úv§@ø’þiʤú»#Û±âm1 !¢U%p!¨ý1Íù @@!5!Ù¦ÂSš@@P'Ô¿žBf–¨Ö$Üoêz£Kx¼“*¨¨¿®< Ò []¸#îê)o Y ¡U‚6µ.aj€ € ä$èÿ?bJÌ=@á¿òÆÂÌ8Ÿsf€ €Bn‚óÚg–'#Á¬´ ÖF´DBebº2 Á†od•&ádwå„åñï ?üupE„1àrQsÄÞ  qS\aü„È.ûcêvBД“"ó¯iþ< € €™ŽÜœ/l $%¬É¯ÈÖ‡½<ìóÎÑÊ“åCv<æ"Xãœ!g}å*/>ÀëÚ±¢5oîd˜‹à«P¿â1/CV– õŽÃ\„03/-;écÖ¥ ‡,ȃ^É¿¨ ¤Ö§½ÀíX˜p~GŒÞ–%T‡î›I aT \2g9.KX € €9 ©b9¡H€ € üïk#ÆUŒ¥bIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGtk_1_1GL_1_1DrawingArea-members.html0000644000175000001440000001444110400731256024167 00000000000000 gtkglextmm: Member List

Gtk::GL::DrawingArea Member List

This is the complete list of members for Gtk::GL::DrawingArea, including all inherited members.

create_gl_context(const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)Gtk::GL::Widget< DrawingArea > [inline]
create_gl_context(bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)Gtk::GL::Widget< DrawingArea > [inline]
DrawingArea()Gtk::GL::DrawingArea [inline]
DrawingArea(const Glib::RefPtr< const Gdk::GL::Config > &glconfig, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)Gtk::GL::DrawingArea [inline]
DrawingArea(const Glib::RefPtr< const Gdk::GL::Config > &glconfig, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)Gtk::GL::DrawingArea [inline]
get_gl_config()Gtk::GL::Widget< DrawingArea > [inline]
get_gl_config() const Gtk::GL::Widget< DrawingArea > [inline]
get_gl_context()Gtk::GL::Widget< DrawingArea > [inline]
get_gl_drawable()Gtk::GL::Widget< DrawingArea > [inline]
get_gl_drawable() const Gtk::GL::Widget< DrawingArea > [inline]
get_gl_window()Gtk::GL::Widget< DrawingArea > [inline]
get_gl_window() const Gtk::GL::Widget< DrawingArea > [inline]
is_gl_capable() const Gtk::GL::Widget< DrawingArea > [inline]
set_gl_capability(const Glib::RefPtr< const Gdk::GL::Config > &glconfig, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)Gtk::GL::Widget< DrawingArea > [inline]
set_gl_capability(const Glib::RefPtr< const Gdk::GL::Config > &glconfig, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)Gtk::GL::Widget< DrawingArea > [inline]
~DrawingArea()Gtk::GL::DrawingArea [virtual]
~Widget()=0Gtk::GL::Widget< DrawingArea > [pure virtual]


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/query_8h__incl.md50000644000175000001440000000004010400731257017754 000000000000009807803b11cc04c65feec2b857992c9agtkglextmm-1.2.0/docs/reference/html/query_8h__incl.map0000644000175000001440000000010310400731257020044 00000000000000base referer rect $gdkglext_2gdkmm_2gl_2defs_8h.html 185,56 305,80 gtkglextmm-1.2.0/docs/reference/html/query_8h__incl.png0000644000175000001440000000532510400731257020066 00000000000000‰PNG  IHDRü·”ñ;$PLTEþÿÿ§§§o???¿¿¿___ßßߟŸŸÿÿÿ«d¨tRNS@æØf _IDATxœíÏsâ8Çço¡ö–ãnw§Âqg©.8f'MN[Cg‚9Î!³“0öq§¨êpÚå—±oÄ€±þ¹Ñ“Œ‘dCèX2û{ÀŽÅž$Ð{çP®õáoà°*ðó¬?Ï*ðó¬¬ð½÷RFw)3|‰GITŸ‰ |iGITŸ‰ |*ÓwMaŸïÆŽÊJÙã£Û|ã£Üâ·64þÞÄŸ?·fot5ÂøSã–=*CeŠ??$øçO­‘7ñló¶Ú©ZÈÇ«ÌQY*SüEÍ'ø–wï"Ù& ¬ããUæ¨,•)>F%ø˜Ãwó¿Íú9ÁŸŸ?‡}ÿšÁïŸ4~©T:‹ü ¾}êø Xõ¬ÍG|¢Nÿ/°Šyç±§Š6þµóؓßQú¼ÎøÎà 8Ëë„·DìrŠà3:èïuüiáðY•¿gä`w,A%þìûoö;®þޖ§v¦îÚèøñÕÒ;~IÙ•©Žöö!étÜøŠ›þ‘ã«nú žAoŸH·¡_9r/g¯¼ésøóíøAmNW2ÅWÞô9|´=ÅÌ?ã‡ËñK7þ©Ñ!A?˜-ôìÀdÔMð1a|üs^(5ø?ĸì^þ û tIüà²û ýÚý€·XeBtãCDas^(%øY?Ĩ#ðmT!ŽÃ.ñ!ÖÑï¶XàJ4Á¿Œñ­àñmtÉÈo2ø6èË„èôýÌð³hû»­ÿZo‰¬Ÿ~&Æú~›öý¯ þºïS|ˆ.¬2ÄÏÄøñ‘ƒ¿tèÈOñaä‡EFøÊ_"ï/ÅøËˆIˆ.èÏ8O/»¿¾u¸]P¯¼í³‘ƒ¥sþæñ|tA1¾ú ›½CŠñ³1~©t¤^…ø4dDùt¾¯®í—Jgë•ýãFqe‡8)Ä^“ïë¥ïœÄ¥ŸmûAŠë„ç†RNô8Ê0×öÓâÏÞ=¼ï+Ùøœ¡ÒáǬ®@G‹?Sï,EÒñùq_BßW,Éø|s;ð¡Ï @'§gx1aAçc75r˜›p®BÉÅƪ]øÀ‹ Š<¤‡å¿ /&,(2MlÔ_üÂKÚ {n4lw~ϸâýÎrüb™~ïrQ{²×zã>“Ú¯!¾ø9MÀÍ~õ¹b»—ãŠ_õ/»–¹êã]î²õرÑÔs™Ô~ýðc³‚ŽÖòì‘XwœUG¦e.-¼Ë ,¯‰ñbRûõÃ}I#àf·1×à‹ÿ zË„…ãÚèï?טÜvíðãSÝÈúul}׬1øß±>,°õ²lTó\ñãßÐþÿLûþ¼Éà·ÀCo™-´éûÕ»Ò?á;:?ò#6QFdä/#ùýö[üt's®jIÃçš~8_!Û’øßðÐë…Ï'ñͨsfÝøËIg¼á¡× Ÿïøa{Øø““øßðÐk…/tüY:W|t‰T÷´äà‹Ÿy!}ê /ïçSðnÈÁg›>˜mF”2æû³ãàNq½dIÁnk}¯ìÐ÷N±ç†—‹û|SK~Øô™» ]´2½=›èÎ{ÜIo‚Ÿ&åFö‰Þú>È sDoošØ^Lž$üÿgá’Fi#»1ÉÂßýËLybãú¤!~ŠÐfLÚá39=¤þ殥]HÄo6y´ñ ¼d!(:ò`øk÷ñ¿ Åóú÷Ÿ\|²8~üÅÖ_HÇóú÷Â’& ÚüâÛñcyýþÔï×~§é\ß-­Ÿ¬›fk~=wNÿy1Þ5œ…Ó__¿9î…ƒ8þ&x@ò:Q{âݯšÆ¿i¼â¿+¯_Àÿç]íëãÏVsTÏ«Á¢yS~)£Jã?Œð.ÀŸöê=ïâÜiaëã݇Âg‚$£¼…Oµ€|ò •yýþ£Ó¼o;åæ­A¬¼h:®á=ûbŒñ{6ÞÛ]cð´pì‹`|¼ûPøLð€ätC¤àé+ ‰´2¤{ïÈëðŽÛ4pßÿñ…ůbDŒ‹&loâ8ÓÞúþáð™àÍèÇw1·yü—Áμþë_`ë_ü_ÚÄúK¼ë®ãÜÎà¹zX|&x@­õô)nýyý±¾ß'}ß¹fðƨÒXŒWéû¯SÒ÷ñD®ÛžŸ Œ~èû ïsø;óú·üöÕ¿î‘ßs`äwnñj…­ïôñÎCâ3Á2òûíÉïÍÕýëÿ8üyýþGGøÈ§ÀHÈÎcý‹=äøLð`ŒþðD!à 6þ?’ðqã¯ÆðÇÆg‚{dôS‰¡ñ£J¾Ó÷hÇ߀"•¹)ÀA<Ø'£ çD*f|Ú8»6w-íBJ]JtŒø ÎÑ­ŽÿXñæ€E*—|-3ü”â#|Q+ånÅ—åˆÂis½—Òý܆h¾TÉq‚f2á‹#½„ø¾Nøb€–¯Æ/vÿ™„ˆ„Vø‰© NÙH$‘=WÛLÅ6³7½ð“~½¹ Ÿ$òÏ×{õÇOøùæ.ü2 }ø æ]ò\>?¤sš+£•|·7¾}@AqÃë†7¿è’çòù!™× úU¨»á»#Ï® ë†× ?n~Ñ%ÏåóC"?ƇþŠïZ¾½¨}`ÝðÚáÇÌ/ºä…|~<ò{ÿžxßýï'{ÙâüÐÚáÇÌ/ºä…|~l}U©õ‡ÈöåÄß–ÏOû~í…ô}{8·Ñ]¥5¾ØúE—<—ÏÏü7_?¢6bÝðúá‹æ]ò‰ÚìýÂm×_0¿è’OT„ï×¹íâ æß«(¿ß Wªn»Žø¼ùs4ã Å™¿À¿´ÄçZÿ~i‰Ïµ~%a©Ò¨h• ø’•a¬;½t,W(Q:«”¨_¶tjýú–)–"}‹TK‘¾%Ê¥HUzMZ€ª§3d™é—BªžÍ‘k|”Eá R‡¯…ù |ʦìŠ)Ä×Áüjð“JK¥Ôõ}-Z¿ªÒÍô0¿º‡QªÌé—&•¢-¥J7×ÓÑÍ(Ý |õ*ð•©ÀO¡_½²Â7!U;LãYçñ'e|é›ÑS E‘6øñ:;§ŒÿJ×7øñ:;'‡Õ˜¯Æ/&º²žÃ OŒõ EŒú >OjO J3Ò8Ÿ?¦èI¹¿Õÿc˜ósô-Ìíwñ¤ÜN`UP’z¡öÔç×9Ÿ_Tô¬Ô§>ªš7j…¹ý.þ#,·³¨}€”n¨»õùuÎç=)×´pßÿk•ÃÜ~ÿAŠìÖ²e“Ò:ŽãB}~­3ºm¬_ÃÖ÷‡«~˜Ûïâ?ÖÅ–eb}„¬iü§†Ùm“¾®–V˜ÛC)·ƒQïúë¾õùO?ù—h3ò/¾ÀÈÿ:DmDúÛ êóëÏÏ+þ¤Ü„r;_¶ÕZ<|¶®N¼ÜŽ_?q|®®N¬ÜNµ³Ièçu"øïU¯^¾2ø)¤?~¾Ã¨Àϳ ü<ëOê–Ôt‹$º-IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2init_8h-source.html0000644000175000001440000001225110400731257024212 00000000000000 gtkglextmm: gtkmm/gl/init.h Source File

init.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gtkglextmm - C++ Wrapper for GtkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GTKMM_GL_INIT_H
00021 #define _GTKMM_GL_INIT_H
00022 
00023 namespace Gtk
00024 {
00025   namespace GL
00026   {
00027 
00046     bool init_check(int& argc, char**& argv);
00047 
00066     bool init_check(int* argc, char*** argv);
00067 
00087     void init(int& argc, char**& argv);
00088 
00108     void init(int* argc, char*** argv);
00109 
00110   } // namespace GL
00111 } // namespace Gtk
00112 
00113 #endif // _GTKMM_GL_INIT_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglmm_8h.html0000644000175000001440000000545010400731257017376 00000000000000 gtkglextmm: gtkglmm.h File Reference

gtkglmm.h File Reference

#include <gdkglmm.h>
#include <gtkmm/gl/defs.h>
#include <gtkmm/gl/version.h>
#include <gtkmm/gl/init.h>
#include <gtkmm/gl/widget.h>
#include <gtkmm/gl/drawingarea.h>

Include dependency graph for gtkglmm.h:

Go to the source code of this file.


Generated on Mon Feb 27 18:47:43 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/namespaceGlib.html0000644000175000001440000000265310400731257020071 00000000000000 gtkglextmm: Glib Namespace Reference

Glib Namespace Reference


Generated on Mon Feb 27 18:47:57 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Drawable__inherit__graph.md50000644000175000001440000000004010400731256024764 00000000000000696a752181e0f06769063fb17ef96867gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Drawable__inherit__graph.map0000644000175000001440000000016110400731256025060 00000000000000base referer rect $classGdk_1_1GL_1_1Pixmap.html 8,83 130,107 rect $classGdk_1_1GL_1_1Window.html 154,83 280,107 gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Drawable__inherit__graph.png0000644000175000001440000000257510400731256025102 00000000000000‰PNG  IHDRtN=+S'PLTEþÿÿ§§§oÃÃÃ???ßßß___¿¿¿ŸŸŸÿÿÿÿVãËtRNS@æØfIDATxœí›ÏSâHÇçoáÜÆ85µptÑþ¨!9î:[¥Ç•-Åë¹­å¨Ée·Bƒé>LQ!„¤ÿ¨yéB Iÿ˜8ÎV¾©2¼ðú½O¿~ ô {]úúæG¤T©*RT¤ ¨H¢@ÑVTU@@÷ì/øé† ¼Ø¦Ö"ßÌZ'pÁÍ.Èý¸×h­q{4yøÐ~i ÇkâtW€¸½ ¹xi Ü"nË1ÃÈi»‘q;²á ¦Ýløõ?]LàìNÍk›<²ëÒ€øtßí5Ãè½ENÉ)·c !dÛçÄ„ïÁ ‚³<|´Éß%XxL¡’¥½²d¶mË ÷ÆMÎn5ƒëÍÒ€(ttBɤ¹½éÉ!ÞÝÝ=…3ôm»0¸Ì¦†‡P¡Èn-íÕ¦  Nß‚sR¡ˆ¸%nû‡“÷cÄ=Ämº÷`Å=o{›¸'?>C”ÛCäŽõ.ù.#ñ.ã6ëwcjtˆœ“]vÏzåi©ª€*  H h³ÆkÒ § 4^G¨¡L/qéSi[Zš@ãZíÙ¤QÒ§€XM“H hœ‘½¦I¤4ÎJžyñ…€âÔéK€ž]} qfêX¡ìÖ+vS#±‹âÒBYµ€—Æñó«ÂÒê!Hžq¹¦õަ„²3£ô®”4€ò²"å¨@yIÕKô?ÊωTêå§T.‘2PQF¤W¨(¡j‰TŠó!µÀª@ÅéK¤$’ )EVI–ºA”Ør(-šú®nkRºJ‰”€Ðww|’ øÄJ¤„JqKHfÚò%RB¥9Ç’’›´t‰äP©îò@²S–õ—B’þ²~z ù},9BɹË‘Rù E®Dr@j¿–JÍBI( “R½µ‘'„$ATÊ©‚€Ä]e€$¦$1 O‘°§xÐç¿GK€D¾üoã3ô)œÂèÔ·Ž ͦÍ|¨¢¨*PT¤ ¨H) cò~úx5¶#3yLÈÐ4DrM÷YÝôÿ?ã§&°äéÔ¯Vâp{4::?óòÍ(kõg´!4=cÞþJn/€0 6.G(/?bóøY ðŠùWžu©wëSŸr;ŽcÀa°ÜÎn­·Vƒõ܆ÑnÊ tÜÑÉ;jô.ô˜œmûeñù¥s‰é–Éú¬Ïí8Î Ì÷ ö©Ýq‚a€™`£Ùndåúä¢5]\èïGÛ[Á`Qý4Єà{`³¥ýÔÔhêö ÃaúØ0{PN Þ¤ÿ[ªmF&¸PÌ.»^ý`? (º‚V¥Áƒ¶´Ÿz(ìá9Ðçl,; ”È蚟·J†y›áùùy? zo†ï`bÔ¸ZÚë@í9ЈåT(7Pø+3¶ »¤BÓºwjfù_Žz˜/½gÇKÏí¨sd&=m·;Èy9=”hê°p”Í{h6\–ÄÉI“ovonÇ4žì2šÙ³’ Õoö6ï²Ü@³›Òh¾Ë˜G&œž^·_É{Ù«:~m@™P¦* "•$v[©sç*¨ŸøŸ&_LP‘* "}ýô"›.€´Ö<IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Font.html0000644000175000001440000002064310400731256021242 00000000000000 gtkglextmm: Gdk::GL::Font Class Reference

Gdk::GL::Font Class Reference

#include <font.h>

List of all members.

Public Member Functions

virtual ~Font ()=0

Static Public Member Functions

static Glib::RefPtr< Pango::Font > use_pango_font (const Pango::FontDescription &desc, int first, int count, int list_base)
static Glib::RefPtr< Pango::Font > use_pango_font (const Glib::RefPtr< const Gdk::Display > &display, const Pango::FontDescription &desc, int first, int count, int list_base)


Detailed Description

Font rendering support stuff.


Constructor & Destructor Documentation

virtual Gdk::GL::Font::~Font  )  [pure virtual]
 


Member Function Documentation

static Glib::RefPtr<Pango::Font> Gdk::GL::Font::use_pango_font const Glib::RefPtr< const Gdk::Display > &  display,
const Pango::FontDescription &  desc,
int  first,
int  count,
int  list_base
[static]
 

static Glib::RefPtr<Pango::Font> Gdk::GL::Font::use_pango_font const Pango::FontDescription &  desc,
int  first,
int  count,
int  list_base
[static]
 

Create bitmap display lists from a PangoFont.

Parameters:
desc a Pango::FontDescription describing the font to use.
first the index of the first glyph to be taken.
count the number of glyphs to be taken.
list_base the index of the first display list to be generated.
Returns:
the Pango::Font used, or NULL RefPtr if no font matched.
Examples:
font.cc.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 18:47:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gdkglmm_8h-source.html0000644000175000001440000001331210400731256020647 00000000000000 gtkglextmm: gdkglmm.h Source File

gdkglmm.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gdkglextmm - C++ Wrapper for GdkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GDKGLMM_H
00021 #define _GDKGLMM_H
00022 
00023 #include <gdkglextmm-config.h>
00024 
00025 #include <gdkmm/gl/defs.h>
00026 #include <gdkmm/gl/version.h>
00027 #include <gdkmm/gl/tokens.h>
00028 #include <gdkmm/gl/init.h>
00029 #include <gdkmm/gl/query.h>
00030 #include <gdkmm/gl/config.h>
00031 #include <gdkmm/gl/context.h>
00032 #include <gdkmm/gl/drawable.h>
00033 #include <gdkmm/gl/pixmap.h>
00034 #include <gdkmm/gl/pixmapext.h>
00035 #include <gdkmm/gl/window.h>
00036 #include <gdkmm/gl/windowext.h>
00037 #include <gdkmm/gl/font.h>
00038 
00039 #include <gdkmm/gl/wrap_init.h>
00040 
00041 #endif // _GDKGLMM_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2version_8h-source.html0000644000175000001440000002027610400731257024742 00000000000000 gtkglextmm: gtkmm/gl/version.h Source File

version.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gtkglextmm - C++ Wrapper for GtkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GTKMM_GL_VERSION_H
00021 #define _GTKMM_GL_VERSION_H
00022 
00023 #include <gtkmm/gl/defs.h>
00024 
00025 /*
00026  * Compile time version.
00027  */
00028 #define GTKGLEXTMM_MAJOR_VERSION (1)
00029 #define GTKGLEXTMM_MINOR_VERSION (2)
00030 #define GTKGLEXTMM_MICRO_VERSION (0)
00031 #define GTKGLEXTMM_INTERFACE_AGE (0)
00032 #define GTKGLEXTMM_BINARY_AGE    (0)
00033 
00034 /*
00035  * Check whether a gtkglextmm version equal to or greater than
00036  * major.minor.micro is present.
00037  */
00038 #define GTKGLEXTMM_CHECK_VERSION(major, minor, micro)                            \
00039   (GTKGLEXTMM_MAJOR_VERSION > (major) ||                                         \
00040   (GTKGLEXTMM_MAJOR_VERSION == (major) && GTKGLEXTMM_MINOR_VERSION > (minor)) || \
00041   (GTKGLEXTMM_MAJOR_VERSION == (major) && GTKGLEXTMM_MINOR_VERSION == (minor) && \
00042    GTKGLEXTMM_MICRO_VERSION >= (micro)))
00043 
00044 /*
00045  * Library version.
00046  */
00047 
00048 GTKMM_GL_VAR const int gtkglextmm_major_version;
00049 GTKMM_GL_VAR const int gtkglextmm_minor_version;
00050 GTKMM_GL_VAR const int gtkglextmm_micro_version;
00051 GTKMM_GL_VAR const int gtkglextmm_interface_age;
00052 GTKMM_GL_VAR const int gtkglextmm_binary_age;
00053 
00054 #endif // _GTKMM_GL_VERSION_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Window__inherit__graph.md50000644000175000001440000000004010400731256024512 000000000000008defc771b97d0bc130d6a7aec980171agtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Window__inherit__graph.map0000644000175000001440000000007610400731256024613 00000000000000base referer rect $classGdk_1_1GL_1_1Drawable.html 7,9 141,33 gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Window__inherit__graph.png0000644000175000001440000000152710400731256024624 00000000000000‰PNG  IHDR”t‘Ve$PLTEþÿÿoWWW???ßßß___¿¿¿ŸŸŸÿÿÿdA½tRNS@æØfáIDAThíØAoÚ0ð~®ëGر°¶á:Ô)9–Ša'6-9¶ëÖpܤµäHj|„„úùT‘¹Ù&0Ô%k´²®›ì‹ù+Î/ÏÏ Hlñ-MiêQ)<|°ŒÚ@IšúûTl=1!”]T9X|_—Î{Ų˜Píw‡“uJå%õ¡õ—§Þr^]§T^R˜GNyjÈy‹ïÓâû‰•*ò†˜ j6˜ ç~?ª£zúÉïst Ês(õˆé°å£iƒÏù|ñHY•Ç=AÅÁ¸›ÖÝC˵\1cÔhwØm§éäR&´=î"¯2þ±Á8xÌQ‹íU1c„gQíŒälPô gtkglextmm: Gdk::GL::Pixmap Class Reference

Gdk::GL::Pixmap Class Reference
[GL Drawables]

#include <pixmap.h>

Inheritance diagram for Gdk::GL::Pixmap:

Inheritance graph
[legend]
Collaboration diagram for Gdk::GL::Pixmap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~Pixmap ()
GdkGLPixmap * gobj ()
 Provides access to the underlying C GObject.
const GdkGLPixmap * gobj () const
 Provides access to the underlying C GObject.
GdkGLPixmap * gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::RefPtr< Gdk::Pixmap > get_pixmap ()
Glib::RefPtr< const Gdk::Pixmap > get_pixmap () const

Static Public Member Functions

static Glib::RefPtr< Pixmapcreate (const Glib::RefPtr< const Config > &glconfig, const Glib::RefPtr< const Gdk::Pixmap > &pixmap, const int *attrib_list=0)

Protected Member Functions

 Pixmap (const Glib::RefPtr< const Config > &glconfig, const Glib::RefPtr< const Gdk::Pixmap > &pixmap, const int *attrib_list=0)

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gdk::GL::Pixmapwrap (GdkGLPixmap *object, bool take_copy=false)

Detailed Description

OpenGL pixmap which is maintained offscreen.


Constructor & Destructor Documentation

virtual Gdk::GL::Pixmap::~Pixmap  )  [virtual]
 

Gdk::GL::Pixmap::Pixmap const Glib::RefPtr< const Config > &  glconfig,
const Glib::RefPtr< const Gdk::Pixmap > &  pixmap,
const int *  attrib_list = 0
[protected]
 


Member Function Documentation

static Glib::RefPtr<Pixmap> Gdk::GL::Pixmap::create const Glib::RefPtr< const Config > &  glconfig,
const Glib::RefPtr< const Gdk::Pixmap > &  pixmap,
const int *  attrib_list = 0
[static]
 

Glib::RefPtr<const Gdk::Pixmap> Gdk::GL::Pixmap::get_pixmap  )  const
 

Returns the Gdk::Pixmap associated with glpixmap .

Notice that Gdk::GLPixmap is not Gdk::Pixmap, but another Gdk::Drawable which have an associated Gdk::Pixmap.

Returns:
The Gdk::Pixmap associated with glpixmap .

Glib::RefPtr<Gdk::Pixmap> Gdk::GL::Pixmap::get_pixmap  ) 
 

Returns the Gdk::Pixmap associated with glpixmap .

Notice that Gdk::GLPixmap is not Gdk::Pixmap, but another Gdk::Drawable which have an associated Gdk::Pixmap.

Returns:
The Gdk::Pixmap associated with glpixmap .

const GdkGLPixmap* Gdk::GL::Pixmap::gobj  )  const [inline]
 

Provides access to the underlying C GObject.

Reimplemented from Gdk::GL::Drawable.

GdkGLPixmap* Gdk::GL::Pixmap::gobj  )  [inline]
 

Provides access to the underlying C GObject.

Reimplemented from Gdk::GL::Drawable.

GdkGLPixmap* Gdk::GL::Pixmap::gobj_copy  ) 
 

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.


Friends And Related Function Documentation

Glib::RefPtr< Gdk::GL::Pixmap > wrap GdkGLPixmap *  object,
bool  take_copy = false
[related]
 

Parameters:
object The C instance
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 18:47:55 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2init_8h__dep__incl.md50000644000175000001440000000004010400731257024561 00000000000000e239d6ea1e353208db44c8286a6cd0a4gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2init_8h__dep__incl.map0000644000175000001440000000006010400731257024653 00000000000000base referer rect $gtkglmm_8h.html 166,8 249,32 gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2init_8h__dep__incl.png0000644000175000001440000000120410400731257024663 00000000000000‰PNG  IHDR'w[R'PLTEþÿÿo;;;???¿¿¿___ßßߟŸŸÿÿÿRÐ÷×tRNS@æØf IDATX…í×OOÂ0p¿w¿¼Gð¢W]`=r0™'5"Y¯†^Lpcë.ؘí‡òµq«- Æ?Ù;4{¯[úãmÝÂûé8úi@-¨µà¤rÄ[­~r¹6ŒÚ3kA-8ˆ`u|XA `F²6B+ ÞxÕ¦oñåÏA¥„Œ‚`q‹}0½@ö€¢fApCDnôÆvdb¯£éA0°_¸ÀŸ3^µéìSà–Ü`|\.H®[OeÁ»QO½ÓƒÜ{ÁÚ zíT߉°p»³k± ŠM‚¦|ç)¡¯šÝ|Û¯qf~K«wáY³Œ¾ZAПŽE’´žN+ "ÖÑ,£¯VlHKfîWì¿åë\ þàÀ±ßøŸÿÚjÁß|Èçê`ÜAQIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGtk_1_1GL_1_1DrawingArea__coll__graph.md50000644000175000001440000000004010400731256024736 0000000000000034283d33b64f9216eb14dbfc1d247551gtkglextmm-1.2.0/docs/reference/html/classGtk_1_1GL_1_1DrawingArea__coll__graph.map0000644000175000001440000000007410400731256025035 00000000000000base referer rect $classGtk_1_1GL_1_1Widget.html 8,9 224,33 gtkglextmm-1.2.0/docs/reference/html/classGtk_1_1GL_1_1DrawingArea__coll__graph.png0000644000175000001440000000231010400731256025037 00000000000000‰PNG  IHDRçtŒ(8þ!PLTEþÿÿo???ßßß___¿¿¿ŸŸŸÿÿÿÆ%ùvtRNS@æØfUIDAThí˜ÏsÚFÇó/øØ õ€Ž5ÁÀÑ`7»Ç„dÇAWϤ £¤£xW§DZÄêý•}+Ñ8¸±Eì ñ>fä÷Õ®ßGï‡vžÁãÛ§gª¡ºPþ˜¶†ú˜f¬¡úÐS~ŒW’.*ÓÄ]4 LÅœdV7!8og¤Ø<~àÞ *®zeSÒ4l¢RèÒ‡ºµôƒ,ôC¢wö–fBkGþ{'è¢ A#^CSµz€9̺A²P/ A!ìn‹MtÛí›Pi‚0í1RË~¢Tø.£±¸ÂF 6¢ Þ•ÌÄ¥9¤n_âº÷|2t¡óу‚4Ä|  ¦Oo’Õ““ X©Â‹µ„×Aw›$ŸÙ…V¾n=W™FXXÜOUÁIcР^¥éÁÇÀSsÑnvÝ÷ö‹·ACî!´L3jµqZ/@¤ƒ1êA¡Ë# R(@Îüß¼‚òã¦ð"ü—#‡â_¥êVhŒSУnFmtQ‚’` –:µ½èÊ„uyñ:t\­«^Ä„‚pîâ(Îý‹çIÿ/>lƒâè,Çæ‹Zm”G@þÀLÍU¦>vÓµâz„íéÿî%P•©4 „P$Ðy2t¢ÔÞW­¡‚BIõt¥z-ªzºpAÎ!íi'í©xû&}e³LG“@O*§Îî çö´=’þ¯›zãphòv%Ä#@qz…¯~g9‡Öj=½§x ÔqºKT\XÁ‰ØH §÷¨0 :3Z¾¬aq­íƒt7ë}u(}eÿ0´Ðzõ­-Aå´ñ}¡ ,ç·¬3¥ßº³ièO Í÷­ù—ݾlç³_óþãÐÏOš·¾;@ž4oS÷ úùGAs6uÏ ¹ë»gÐsàk¨†j¨†j¨†j¨†j¨†j¨†j¨†jè>Cã|¿Yoµ-?Õk¨†þœÐð7^ôŸ•òí•°´3qç;BÙŸ5£îÙiÄD­¡áäøE&®»ñ¼³¡×#îü54U+!9?ßZK§aß¼u?¨Wç¬N›/Nb'JAYì(h……Ͷ(ÿÅ:lAË×¢kóC¯Œ÷¯a4£'¹ IŠ˜©ÛçÞI^:3uXT¦òpMc‡)obÚüÔ%xÿŸÉ¹_^ç|_è$B ;£6åu˜ä6“ ׸(_6¹cOåT*ë€*Ô¯ct„¾eÔZa1s.½jµÚqЗëà,faöÎÊÅÑ™)( 3êË !(äòÚp-;ªL½2/¢sæo&ý¾¯Ì¤­ ¼¨zºRµ‰­zª^Ì(tå,š ž@'–}lÔbŽ=uêF.(ð?î•pz…ˆš^€ÈÆ[ÆIøI jzßsµÏ‘¡+I.èý¬–9˜²ö ÐÃÉûLJ^Cÿñ¡·™†>a蛆jèCÿž¬‚7FÞðoIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/pixmapext_8h.html0000644000175000001440000000756410400731257017763 00000000000000 gtkglextmm: gdkmm/gl/pixmapext.h File Reference

pixmapext.h File Reference

#include <glibmm.h>
#include <gdkmm/gl/defs.h>
#include <gdkmm/gl/pixmap.h>

Include dependency graph for pixmapext.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL

Classes

class  Gdk::GL::PixmapExtProxy

Functions

PixmapExtProxy Gdk::GL::ext (const Glib::RefPtr< Gdk::Pixmap > &pixmap)
const PixmapExtProxy Gdk::GL::ext (const Glib::RefPtr< const Gdk::Pixmap > &pixmap)


Generated on Mon Feb 27 18:47:24 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/inherit__graph__0.md50000644000175000001440000000004010400731257020404 0000000000000011bb02659020d7c57c05f7e19e2bfb8bgtkglextmm-1.2.0/docs/reference/html/inherit__graph__0.map0000644000175000001440000000007410400731257020503 00000000000000base referer rect $classGdk_1_1GL_1_1Config.html 9,8 126,32 gtkglextmm-1.2.0/docs/reference/html/inherit__graph__0.png0000644000175000001440000000070510400731257020513 00000000000000‰PNG  IHDR‡'×ÕF×!PLTEþÿÿÃÃÿ¿¿ŸŸŸ???___ßßßÿÿÿ`°5ÉtRNS@æØfRIDATH‰íÕ1Oƒ@ð~bbgYIcðÀVÓv5Qal¸7J­ÜM†Òx¼OéÝqE®FϸÈ[È¿…_Þ½GÂíëm2"ÿièÏ‹uˆE#ò7v¡¸¢ÿV¹Ô!£³ãcUAÌHr·.úˆÊáWyêß·2#ˆg}De¼ÇX­Žœ8އ¸Agt€ i³@8ã¬v!£1ñ§¾G0š•ƒgò¼ÞÆ'ÕxPYub¨º»Ïoøó¾l@Ü‘‘%MB¼$çÐeÐ÷’¼à%J¤vù0‚bª 1“Û¸ËG¤q‘Ï!KDŒÅ€ˆA‰+:áE—¡7ØkÙ û¢“äñÉ_Ë™ #g¢2y.g¢V,gÒ"Õ"3 |ùš‚ÚN=•ÛQ™Ò­Ü¦âe“Ûiãv¾S{hwg…ˆã¬¬Œv`|ÖˆœB~ããeY#2€|°Gª?cµ¢IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/inherit__graph__1.md50000644000175000001440000000004010400731257020405 00000000000000f2887759d3820a02bb08a00085a29dcagtkglextmm-1.2.0/docs/reference/html/inherit__graph__1.map0000644000175000001440000000007510400731257020505 00000000000000base referer rect $classGdk_1_1GL_1_1Context.html 7,8 133,32 gtkglextmm-1.2.0/docs/reference/html/inherit__graph__1.png0000644000175000001440000000071410400731257020514 00000000000000‰PNG  IHDRŒ'/5½ !PLTEþÿÿÃÃÿ¿¿ŸŸŸ???___ßßßÿÿÿ`°5ÉtRNS@æØfYIDATH‰íÕ½nÂ0p^£;B…™flJù˜3e¯€¾¹ Ø#Ðöâ1|ľ§ìùŠÁHUA]È!…œd~9ýO@¯R•’¹=Æd—•c.›Ä”Ì?3³ì…®{#îõdÿŽÑV=8a¸wÌ[òþá>ÖÝ¿o¤)¦˜¿ž0Ü;fŒXs ¸)¼Ì&@ä½6¨¼«•VÜÛ£‚^!ùzò…"ZlVA‘M›2ê…>FØKµÕU“c,Ü·¸ÕvÂb˜6DãAŽçƒ" ýÓÜeÐÆ5,àØï2cäº/¤!°©Ÿ~ÆP¾”ÍçàØ»£KÄôŽ4Ahûu¬K?C‘n!¤i”ýIÄUžÆ2¨(¨ç©ŸÑyœMÞ·ÙpoZsIÙðÂ9f(›Ýý™l0Í’!o í¦¸§Ÿ¢¾Ý”­bÞ1£`–%FéÒËüµJæV™ëüÝ]¡Jæ|}£Ú kzYIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/tokens_8h.html0000644000175000001440000006560010400731257017242 00000000000000 gtkglextmm: gdkmm/gl/tokens.h File Reference

tokens.h File Reference

#include <glibmm.h>
#include <gdkmm/gl/defs.h>

Include dependency graph for tokens.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL

Enumerations

enum  Gdk::GL::ConfigAttrib {
  Gdk::GL::USE_GL = 1, Gdk::GL::BUFFER_SIZE = 2, Gdk::GL::LEVEL = 3, Gdk::GL::RGBA = 4,
  Gdk::GL::DOUBLEBUFFER = 5, Gdk::GL::STEREO = 6, Gdk::GL::AUX_BUFFERS = 7, Gdk::GL::RED_SIZE = 8,
  Gdk::GL::GREEN_SIZE = 9, Gdk::GL::BLUE_SIZE = 10, Gdk::GL::ALPHA_SIZE = 11, Gdk::GL::DEPTH_SIZE = 12,
  Gdk::GL::STENCIL_SIZE = 13, Gdk::GL::ACCUM_RED_SIZE = 14, Gdk::GL::ACCUM_GREEN_SIZE = 15, Gdk::GL::ACCUM_BLUE_SIZE = 16,
  Gdk::GL::ACCUM_ALPHA_SIZE = 17, Gdk::GL::CONFIG_CAVEAT = 0x20, Gdk::GL::X_VISUAL_TYPE = 0x22, Gdk::GL::TRANSPARENT_TYPE = 0x23,
  Gdk::GL::TRANSPARENT_INDEX_VALUE = 0x24, Gdk::GL::TRANSPARENT_RED_VALUE = 0x25, Gdk::GL::TRANSPARENT_GREEN_VALUE = 0x26, Gdk::GL::TRANSPARENT_BLUE_VALUE = 0x27,
  Gdk::GL::TRANSPARENT_ALPHA_VALUE = 0x28, Gdk::GL::DRAWABLE_TYPE = 0x8010, Gdk::GL::RENDER_TYPE = 0x8011, Gdk::GL::X_RENDERABLE = 0x8012,
  Gdk::GL::FBCONFIG_ID = 0x8013, Gdk::GL::MAX_PBUFFER_WIDTH = 0x8016, Gdk::GL::MAX_PBUFFER_HEIGHT = 0x8017, Gdk::GL::MAX_PBUFFER_PIXELS = 0x8018,
  Gdk::GL::VISUAL_ID = 0x800B, Gdk::GL::SCREEN = 0x800C, Gdk::GL::SAMPLE_BUFFERS = 100000, Gdk::GL::SAMPLES = 100001
}
enum  Gdk::GL::ConfigCaveat { Gdk::GL::CONFIG_CAVEAT_DONT_CARE = 0xFFFFFFFF, Gdk::GL::CONFIG_CAVEAT_NONE = 0x8000, Gdk::GL::SLOW_CONFIG = 0x8001, Gdk::GL::NON_CONFORMANT_CONFIG = 0x800D }
enum  Gdk::GL::VisualType {
  Gdk::GL::VISUAL_TYPE_DONT_CARE = 0xFFFFFFFF, Gdk::GL::TRUE_COLOR = 0x8002, Gdk::GL::DIRECT_COLOR = 0x8003, Gdk::GL::PSEUDO_COLOR = 0x8004,
  Gdk::GL::STATIC_COLOR = 0x8005, Gdk::GL::GRAY_SCALE = 0x8006, Gdk::GL::STATIC_GRAY = 0x8007
}
enum  Gdk::GL::TransparentType { Gdk::GL::TRANSPARENT_NONE = 0x8000, Gdk::GL::TRANSPARENT_RGB = 0x8008, Gdk::GL::TRANSPARENT_INDEX = 0x8009 }
enum  Gdk::GL::DrawableTypeMask { Gdk::GL::WINDOW_BIT = 1 << 0, Gdk::GL::PIXMAP_BIT = 1 << 1, Gdk::GL::PBUFFER_BIT = 1 << 2 }
enum  Gdk::GL::RenderTypeMask { Gdk::GL::RGBA_BIT = 1 << 0, Gdk::GL::COLOR_INDEX_BIT = 1 << 1 }
enum  Gdk::GL::BufferMask {
  Gdk::GL::FRONT_LEFT_BUFFER_BIT = 1 << 0, Gdk::GL::FRONT_RIGHT_BUFFER_BIT = 1 << 1, Gdk::GL::BACK_LEFT_BUFFER_BIT = 1 << 2, Gdk::GL::BACK_RIGHT_BUFFER_BIT = 1 << 3,
  Gdk::GL::AUX_BUFFERS_BIT = 1 << 4, Gdk::GL::DEPTH_BUFFER_BIT = 1 << 5, Gdk::GL::STENCIL_BUFFER_BIT = 1 << 6, Gdk::GL::ACCUM_BUFFER_BIT = 1 << 7
}
enum  Gdk::GL::ConfigError {
  Gdk::GL::BAD_SCREEN = 1, Gdk::GL::BAD_ATTRIBUTE, Gdk::GL::NO_EXTENSION, Gdk::GL::BAD_VISUAL,
  Gdk::GL::BAD_CONTEXT, Gdk::GL::BAD_VALUE, Gdk::GL::BAD_ENUM
}
enum  Gdk::GL::RenderType { Gdk::GL::RGBA_TYPE = 0x8014, Gdk::GL::COLOR_INDEX_TYPE = 0x8015 }
enum  Gdk::GL::DrawableAttrib {
  Gdk::GL::PRESERVED_CONTENTS = 0x801B, Gdk::GL::LARGEST_PBUFFER = 0x801C, Gdk::GL::WIDTH = 0x801D, Gdk::GL::HEIGHT = 0x801E,
  Gdk::GL::EVENT_MASK = 0x801F
}
enum  Gdk::GL::PbufferAttrib { Gdk::GL::PBUFFER_PRESERVED_CONTENTS = 0x801B, Gdk::GL::PBUFFER_LARGEST_PBUFFER = 0x801C, Gdk::GL::PBUFFER_HEIGHT = 0x8040, Gdk::GL::PBUFFER_WIDTH = 0x8041 }
enum  Gdk::GL::EventMask { Gdk::GL::PBUFFER_CLOBBER_MASK = 1 << 27 }
enum  Gdk::GL::EventType { Gdk::GL::DAMAGED = 0x8020, Gdk::GL::SAVED = 0x8021 }
enum  Gdk::GL::DrawableType { Gdk::GL::WINDOW = 0x8022, Gdk::GL::PBUFFER = 0x8023 }

Functions

DrawableTypeMask Gdk::GL::operator| (DrawableTypeMask lhs, DrawableTypeMask rhs)
DrawableTypeMask Gdk::GL::operator & (DrawableTypeMask lhs, DrawableTypeMask rhs)
DrawableTypeMask Gdk::GL::operator^ (DrawableTypeMask lhs, DrawableTypeMask rhs)
DrawableTypeMask Gdk::GL::operator~ (DrawableTypeMask flags)
DrawableTypeMaskGdk::GL::operator|= (DrawableTypeMask &lhs, DrawableTypeMask rhs)
DrawableTypeMaskGdk::GL::operator &= (DrawableTypeMask &lhs, DrawableTypeMask rhs)
DrawableTypeMaskGdk::GL::operator^= (DrawableTypeMask &lhs, DrawableTypeMask rhs)
RenderTypeMask Gdk::GL::operator| (RenderTypeMask lhs, RenderTypeMask rhs)
RenderTypeMask Gdk::GL::operator & (RenderTypeMask lhs, RenderTypeMask rhs)
RenderTypeMask Gdk::GL::operator^ (RenderTypeMask lhs, RenderTypeMask rhs)
RenderTypeMask Gdk::GL::operator~ (RenderTypeMask flags)
RenderTypeMaskGdk::GL::operator|= (RenderTypeMask &lhs, RenderTypeMask rhs)
RenderTypeMaskGdk::GL::operator &= (RenderTypeMask &lhs, RenderTypeMask rhs)
RenderTypeMaskGdk::GL::operator^= (RenderTypeMask &lhs, RenderTypeMask rhs)
BufferMask Gdk::GL::operator| (BufferMask lhs, BufferMask rhs)
BufferMask Gdk::GL::operator & (BufferMask lhs, BufferMask rhs)
BufferMask Gdk::GL::operator^ (BufferMask lhs, BufferMask rhs)
BufferMask Gdk::GL::operator~ (BufferMask flags)
BufferMaskGdk::GL::operator|= (BufferMask &lhs, BufferMask rhs)
BufferMaskGdk::GL::operator &= (BufferMask &lhs, BufferMask rhs)
BufferMaskGdk::GL::operator^= (BufferMask &lhs, BufferMask rhs)
EventMask Gdk::GL::operator| (EventMask lhs, EventMask rhs)
EventMask Gdk::GL::operator & (EventMask lhs, EventMask rhs)
EventMask Gdk::GL::operator^ (EventMask lhs, EventMask rhs)
EventMask Gdk::GL::operator~ (EventMask flags)
EventMaskGdk::GL::operator|= (EventMask &lhs, EventMask rhs)
EventMaskGdk::GL::operator &= (EventMask &lhs, EventMask rhs)
EventMaskGdk::GL::operator^= (EventMask &lhs, EventMask rhs)

Variables

GDKMM_GL_VAR const int Gdk::GL::SUCCESS
GDKMM_GL_VAR const int Gdk::GL::ATTRIB_LIST_NONE
GDKMM_GL_VAR const int Gdk::GL::DONT_CARE
GDKMM_GL_VAR const int Gdk::GL::NONE


Generated on Mon Feb 27 18:47:30 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/inherit__graph__2.md50000644000175000001440000000004010400731257020406 000000000000008331358ea09ec278b0321478c522bdffgtkglextmm-1.2.0/docs/reference/html/inherit__graph__2.map0000644000175000001440000000024210400731257020502 00000000000000base referer rect $classGdk_1_1GL_1_1Drawable.html 9,32 142,56 rect $classGdk_1_1GL_1_1Pixmap.html 194,8 317,32 rect $classGdk_1_1GL_1_1Window.html 193,56 318,80 gtkglextmm-1.2.0/docs/reference/html/inherit__graph__2.png0000644000175000001440000000223710400731257020517 00000000000000‰PNG  IHDRGWeÆšw'PLTEþÿÿ§§§oÃÃÿ¿¿ŸŸŸ???___ßßßÿÿÿÒ+Y–tRNS@æØf&IDAThí™ÏoÚHÇûìsÿŒ4J7>·ø¶ n1ç¨9¦MC9¶«8&^ÊÌ1NÂØ‡*²1ŒßµoÆ;icuãal$‘žðÏïÙóžAõõãYÙ¿¡R•jHUª!UI¤[HžH¯ðÞ5dzšb{×éiŠí]C¦§øîžâ;g ²ˆ#vÝ9%9{ë‚äfRÆ ¤3{3ñ+¹š€?Ì@Ê8ddä­FÓ‰fÈÏ®} -rH71M/7–È¥·Çp¤è躘ᬭÛ>$ZIˆÅšü4ÙÄHD‚ðÓ˜v>|8#+;$~ºêƒÄFéÛ&f’;›8¹yèé#úÅ{ÉÄg€j…´GÿZ¢&a_.ш˜:³™¬I¼Í< æ!í[=1bMþ©½&žO©ìî…!º[Æ®{-»ÛuX¤þõA/2"CŒ²»ùxNµBÓî@îÀc¦j»0éÝ ûð˜+.•5ùˆ¥-®-4΃‹^ÔÓ{jàÞ2Ëó²øßÞ‚Ur?ª ä}‰„V<ƒt@Vÿr ídž§ÿ>òÇú›‡|k„Ìóô}XÞ@?ùûDȽ’·Ï¼¹¶>=6IŒ :å*s=µÛg’£ECG¶!Ö¾¯'Uæºo}éѦuJ£äRkKVeOÃÖn×Éãs4µ}#°}»ÌYšú}·k¼°›ùjhgî²1s檿²F½çêõñêƒþ×ÕßëjcyöŸÆgIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/inherit__graph__4.md50000644000175000001440000000004010400731257020410 00000000000000ed077f9cadb4f5431368d08aef4cd4a0gtkglextmm-1.2.0/docs/reference/html/inherit__graph__4.map0000644000175000001440000000010410400731257020501 00000000000000base referer rect $classGdk_1_1GL_1_1PixmapExtProxy.html 9,8 185,32 gtkglextmm-1.2.0/docs/reference/html/inherit__graph__4.png0000644000175000001440000000113110400731257020511 00000000000000‰PNG  IHDRÂ'¯FŠ3!PLTEþÿÿÃÃÿ¿¿ŸŸŸ???___ßßßÿÿÿ`°5ÉtRNS@æØfæIDATH‰í–±nâ@†óéQ\S`—8aj)”)HRG dKprž-cØ¥Á°ž§¼ÙY0$¡“ÎRîÎÛ¬gg4ßÎücËgXö:«áï"dQI+Î eÝ¿"ü§õ2íѰq³=7Ï4ÏCM@§³ÿ4Á…û¶·„æø­B3z_JöŸ$ /ö lo íÙÜîÅþ¯qŒµÉ-`M‚±‰ bSPqCv¡û^{ÇÔk©Oh¢v<—ý¡û3³¸Í‰;ö yÀSÓv]C{™T}¯‡.X¶°efÙÁ4hq ßÑ5ê<w³è¤#„ÇÈï¡ u™Ûr§ôÕre·D!slÐéú-}¤ýsºOƒbÐ]Y…]¢Ê2 j¡/r[îtÐȺ4„´ÿÄ\C27:p7©¹t¿ÈcJßúÕ ÂÜþLP×Â2'ãt"ÿ>'p ×7ÅJûÃWo¤uÀšÖmÑAgX]º†Nuh’÷ÎèÀÒbpù£˜ go’giiéYb;Š&›Y¢ ]ìž3!™\´õ,‘7í¤íU¸!Ð,QŒ\ÇÅ„ß[‡oøn%¢l©ù'â¨k1Û>ýƒ_ïŠp‚PúY©«"|Â/b+vÜ ÙöIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/widget_8h__dep__incl.md50000644000175000001440000000004010400731257021061 000000000000004fe51a16ec7feefd21ec56b9c629474agtkglextmm-1.2.0/docs/reference/html/widget_8h__dep__incl.map0000644000175000001440000000013110400731257021152 00000000000000base referer rect $gtkglmm_8h.html 401,34 483,58 rect $drawingarea_8h.html 187,58 350,82 gtkglextmm-1.2.0/docs/reference/html/widget_8h__dep__incl.png0000644000175000001440000000272210400731257021171 00000000000000‰PNG  IHDRìZM•Ž3PLTEþÿÿ§§§oooÃÃÃoWWW;;;???¿¿¿___ßßߟŸŸÿÿÿÔ4<tRNS@æØfMIDATxœí›b£(@»{Ù=@AþÿkofÅ(¨¹Òg^›VÈHÑ'H’é—Øðõî?‡Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„Èf„È鯦ㅱ§ÅyÙ"²!²!²!²ÁOöãÑà?ƒ·Éê×Ààò¸¹´ìWÜo‡È^c§R¡ºn³"ÛG²G•»›K€)9…Fd?×ÎÐØºl{ÙþP¶N§·Ûý}]öcæ•ót ¶®¦–²·#]N û¯­7h)Ûv)ã ¤ <Oø?´>•"ð·wØmdÔÄZöã!²sÙ#žTœ`54ƒ P°“&càáWÛ>wÛÜ‘mô0hÐF6–@‹SŠj–íqL±(›JPÜ.eýÜšsðÛ-#;4‘óˆY‘Q††#J±‚d8Ñ#<ìj›dÏ›'dãØ’l“&s4ó´ WPŒÅZ()p ;€_èàP‘µ6)»Èæ)]FöŠedà uQ¶Ÿ±‚d{šÞç)>nû°‡?-›$ÙFcI¶žc±VÓu¢ñk„2=“~cDü«Ù={#Ûg¾žÎ¾Yd“±$[©1UÉöd¯F6|«‚l˜·³‘¥ÉÛŽÊtoÎG69>”ˆìÀjd÷>9²ýÙx—u³l¸ùdüb¡Kt·PðçžîÙn}Ïd{yS…À[ô8ˆZ¬¨ÈvWe§õ³ŽcÚþÝ—­—X¨ /¼h-nâE²Z¸§FWÍd3f³‡3F«qX e«q¿+;/nÛÜ‘­†Ã·Î.ÄžoméËi|»ZÑöéUó¦â,ÓøÎ;${ÇžomuÄ·”½TOü4«,rSq–ê4îõPt²æ8ötk…W›wasT…#]Mãðj5nSq’?õº¯ìÍQ•ÏGœµ7”>—ì`ŽŠìý1ðÑί^ºœd§³óÜßöîŸáú4ÅKöáK¯tâ>á•ùõ•ÈOÈî‹3§å#¦öÒÍ©²G»Ô©ìS|ÈÈžyûÊCd·¥«>Šì¶tÕG‘Ý–®ú(²ÛÒUo'ûàS!;æq±TØçêL•¼Î>¸—ìç ë-NÇ Š‹¥Ò>f¿º„ÈnÈq†õ–ùBŠSÙöÿGd7¤’aýO!¯çí9݃Jf "%xAÜ`¼2”ë§_)?{Ή1lÄ<¬X…T2¶ûà²7Ö¥¼jçü’|M%¸<ô²Ø£@kBî;l¥üì”°"Bô8Bå«°•Œí>¸‡ìM†u)GkÌ“¯©äàIôŠŽ(ëÇj¸\ žRvj?FØ”äëõ«°•Œí>¸‡ìM†uI¶šc±6•ìn·v¥\|JwKbß,7D„•||×9îä«y}pÙ› ë‚l˜·³‘JaÆÆ †¿±½JÙGvˆˆÑøÃ¦¼ÈnJ%ú æm¿$_S)ݳ=ÊÒïŽî؃_d§öcDîÙóN"»)• ëßû²Õ µTJ«qÚ†uµh†,?;­ÆCDˆÆÿf£ÿE¥êÛ}pÙWª_I¾~9a[d• ë ¯$_¿œ°-²¿‹Z†u…W’¯_MØÙßEW'²@W}Ùméª"»-]õQd·¥«>Šì¶tÕÇ–ý ¼û$å|²lá""›"›"›"›ÿbv”?õÒ2ÆIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/inherit__graph__5.md50000644000175000001440000000004010400731257020411 000000000000000fdbee6a864349666445411a0885ae65gtkglextmm-1.2.0/docs/reference/html/inherit__graph__5.map0000644000175000001440000000010410400731257020502 00000000000000base referer rect $classGdk_1_1GL_1_1WindowExtProxy.html 9,8 187,32 gtkglextmm-1.2.0/docs/reference/html/inherit__graph__5.png0000644000175000001440000000116210400731257020516 00000000000000‰PNG  IHDRÄ'¢Xút!PLTEþÿÿ§§§¿¿¿ŸŸŸ???___ßßßÿÿÿÂg}tRNS@æØfÿIDATH‰í–1oÛ0…ó7º¦FÜröPq¬ÒÀÖìE$±5¶@mkŒÕ äX9¥Ñ–¬ãýÊiYZ^* EÅÁôó#îãñÝà3l}uˆñO"tÚÚª­u ;ÄŒ€å& MˆÊ¶Z¾Ç­Bñ®rD]‚Æ2:ÔJÓÅiDüí>y°ºBø¸Bû"y|´ûPZÝFÌ/^#¬®‚ë¹uA¨ã®%:§.â {k_`O *c5Õ€ ²œ œx1s–Ï{&˜æ1ã|íH¸d솅7GÍÑÇÖ]ÄvŠVÛk”Q_óDÀÏ2GÊéÃy脎µË…kº€[Øp2Ø<æ7uA%gi #>ÊZËê% ï¦|Ÿ P¨r:¢åÎÍÎÕ…‰;€KFˆ4’K†ÆœOвւú·Q­HT1 aÍ«S\¹××7‡,èJæWs)cÐì• õ§¸ý˜SÔúˆÀ«6Ì"rn»ð¾f}epÕÛÅˆxñcto²ÀžÉÂji¦’²À%÷ˆ* 懎g†Vî?¸5ºçeЈ€Ùóƒ´•33QV§éÚLú—hÕD¡fš™,¼1ŽåÌ9 È(¼bHgsõ[G€Û:‰ZGÔ«C¼EDûÕÚ]âí ^Güˆg:ê¤IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/window_8h__dep__incl.md50000644000175000001440000000004010400731257021105 00000000000000390f175f20ef7a0bb86073313a6d5859gtkglextmm-1.2.0/docs/reference/html/window_8h__dep__incl.map0000644000175000001440000000031310400731257021200 00000000000000base referer rect $gdkglmm_8h.html 440,33 525,57 rect $windowext_8h.html 194,58 352,82 rect $widget_8h.html 208,106 338,130 rect $gtkglmm_8h.html 614,82 697,106 rect $drawingarea_8h.html 401,132 564,156 gtkglextmm-1.2.0/docs/reference/html/window_8h__dep__incl.png0000644000175000001440000000576610400731257021230 00000000000000‰PNG  IHDR£r e<*PLTEþÿÿ§§§oooÃÃÃo???¿¿¿___ßßߟŸŸÿÿÿ÷pN€tRNS@æØf zIDATxœíMsâÈÇ÷å#ä8Çä8ž±cŽÞ%.|ôŒ3KRÁ[·Rã‚£w +³qeÌa«Ȳú†õwI¿è ©Ÿ0ýŸ*ÉÓjøÑ<´ºÿzôV‚ÕwU¿€½—" -EZŠ0´ah)ÂÐR„¡¥CK†–" -EZŠ0´ah)ÂÐR„¡¥CK†–" -EZŠ0´ah)ÂÐR„¡¥CK†–" -EZŠ0´ah)ÂÐR„¡¥Ck¯ Û¯{{MxlŠp!)ÂÐR„¡¥CK†–"œ¥é›•ÛV ›®ûûDeT¬m œÀõÇ’7ó~E,¡iêÓú¦rM‰a[˜Æ…ù ã £{méî“öQké÷“‹ !ü¤µbUA$“ðTZ_ ÛùàøKûgMwŽœ£[Bx2{œYz«ÑkØ%ƪ‚H áiá[N [ëwCÜЛÆüÌ%„¶°¥cÏðaòg¬*ˆÀ W‚ÖÃfaO7H~Û#HÓ„ÑΖVöá3Ò‡ÝqFÞuÂÕò ãp—Åa|áõ“„‡)ÂSˆo áiÅ|Óc‰y‹%b„­8a¨Ÿ 8•Eß@~< ÇÀ3ÃÍ ÅÏw^᪣åG‰Ÿü2%jyõÑ®žò—Xm€˜ƒn%ì£à@wdä=…瘢!‹%ì1« iF›Í­ù ~ñB óÎSMÎ:[ÜpörÊ?œ©Ø'’0;u«¢ç‹o:?ŽÖD¾„eN;Dϲî)7ž#„ÀP!ްTÀo§\W­Ä‡¸P!ŽpÞOñ¶WZG‚pÿâw¹œ#EP¨`„=oçœ >ã÷‡U '¸)‰ " ãÌ3{Ñ„%΄ A,˜p†–·B‚Å ß±>L:L•.ƒ8"|kw®ºv­ÓÒÈ7nÏ;6Òvo›„ðýÈû8ÿ@kˆVBÚH¯MZ— Û$5_ч©UáϬ‰…Ù2ø.Œ6Ö }a4œæ—šN8¤²p}†>Zçž1ëÜ]ò(AÝ QsòUü×."<·QG#qøû‡8áÒlB¸aßžœü™ö+‘øktmV7ø¥Ë'Lí6‰Ã£Ã8ágjÈ1ôgl>Çÿ³Ëúð¢kÿÇû뜦•h~jM†Z’pæŒb؇ۤ#ý,Fø+f}ø+^4®Á·yÆÿB±<Œ»Ã-!\ø×.‡‡,ÛŸb„¯µIýzn.5»×¨éŒp‡g#×î& çžqP» ‹ÃN'Fø†r ý/G33Â~ƵF‡Æáw4/·pÑPœ1–°."Âm›%fäûÚDMFXóǶCþÍÓ„W•KàËá3äè5Œ'ä#ì%°×òZn÷ñ—ÎòêyL"Iõ„‹"Ž¿·SCa®‘f¾î¤:ï’<»ÍiÊ”þ²ª#\q,ƒpIÏíÖ)1­åÇá.%ì\F‰Wø6mîËà±/'wÓÕÙ–`,aŸ"|%^áÛ´¹0G XË2”´Ž&ÅNu‰W€ ï"â(­éºZ~”àNu‰W  ïârîñ(8=Ö$^'¼õˆß¬‹ùªpnmEÛˆ8–à¸` ÛD¸ò”Uq ˾¹U„£«V+\d. ÖiË J¯ÂhhmvÛûF$™„aEá«4aš]‚”ñ$­áTb‰ê‚ƒ¯b£?ù„­4áfTkÁÿÃã+‰%ªõ\¶‘K80ü=æ/`I&ˆ'™ø Ñ‹BéúÁÂîe%–ر ŒeLƒ˜¿€%™ ždÂBôÂfZíóàpKD*úÑÊ%˜ âëZ,ÉÄñ$Gˆ&˜`Õp}+K*—ý@†&ƒ8a–db€x’‰ÿ"‹ÄaZ@Îê·$íSñ9Ž*ú0ÒOc„Y’‰âI&¨í÷a„Ý-"\bIvæ&ƒ«a–db€x’ ×Ã]‡· ± ¿efé¤%˜Éào1Â,ÉÄÕX’ 7Kôí›mH,ÁF¥ì5r g§“X)ͬÆ‘Ø9!–­»ÔsÊŽYé$VJ3«Áݹh¦åoÎ 9Jd¦“X)ͬVɼ„€•’›[“JXÄîa°;åJÈ‚»D8¼s‘,†õÔ"eÌ\JŽ$æ.»E89ZƒÆ,&(I#,Èó³26 ÉB’ÐÿvŒ0œøï‘'¼]A-îa&€»(ÂI©> -EZŠ0´ahÅx¤¦>Ý+£»Ø‘¼k´¢rE8©ÇÜH^žaÊ–îâGZÙí(Ây yxiÂÏt£³Ý+ÒI+Âyâ<º×–ÖÖñÅïémU0»¹ îÓRzó¥ óA¯ŸÝ›-î}¡fr“R¼°{Kí’~¢I8¢Kk¿Ó«>ì±Ûªð›«_i©Ž¿:íŸ5ýOf÷¾£4ý- ÅtåµÕ0°Ë’p„-–×~¦é4á&[@õüí K²oæCÜÐ l¸÷¾è†wGŽÐRlẋÉÞe ÂËk¿ÓtìÛ^œp%ÙÀt§“@üïC‹{_ÈQF–‘†mÛË·]³ð¨ÅòÚ/Â~vÇ1¿ Y^’éñŽ/ä(ëÃcÊS ½“"œ'?÷Y~‡‹á¾AKõ…Áâ0vǎŽ/äèr„Â$ëgMc¨ç)K<“<ÿ]Dø–•êd°FÇ7/ßsï =JǤ€÷íÇ<ïXŠpžìtùI6Ö¦ßP„“ ¢DmõP~’µé7á¤ü(‘™N#?ÉÆºôŠpRjn ZŠ0´ah)ÂÐR„¡%Þ‘’{—œÍ´7„·VŠ0´ah)ÂÐR„¡õ#Q!–±<ÜIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/inherit__graph__6.md50000644000175000001440000000004010400731257020412 0000000000000071016e8dd96d2d0c48bdd875f7846be2gtkglextmm-1.2.0/docs/reference/html/inherit__graph__6.map0000644000175000001440000000016210400731257020507 00000000000000base referer rect $classGtk_1_1GL_1_1Widget.html 9,8 225,32 rect $classGtk_1_1GL_1_1DrawingArea.html 275,8 427,32 gtkglextmm-1.2.0/docs/reference/html/inherit__graph__6.png0000644000175000001440000000207010400731257020516 00000000000000‰PNG  IHDR´'•Ÿ ,!PLTEþÿÿo¿¿¿ŸŸŸ???___ßßßÿÿÿëXC+tRNS@æØfÅIDAThí˜ËrÚ0†ó ¼B›¡ƒ×4/¡¹ÀºÓ²Ì¥ ^¶gIÒi‰)‘µ‹ƒ|ž²G’q<‰ådZ72þ™0R,Îù?K:lÀ«ÕÆÿ6ðïT¡­£*´uT…¶ŽRh±ÿ‚â'åšHÑ^êFJÑÊL"ƒUh%ªBû;Uh%K£ÕrÝ”¦hÂïã{rWUéö¿¿šÊ÷oh¦KÒVÃ2dUj&4³ |8Œ2Ã3NrR=@»ü6ö`oõÕK¢àî¾Y™€‹È›|ØË„ ÒÖG§­fD3›ˆ[ßifü=ONªhgu`«¨º§ÛĎϰ´8É‚#Nò„ÇÌh53šÙf¼;nªh]€‹Å¬Åƒ=‚ KöTT"øÂj¶á@ð ·ÍÝmî ôð:P…Ö^÷ÓÌ:SðˆøÕ³–³ œ¦½ôÏ£^ÓgÑjhfˆöIó}¯sg+nqòi ÒM’ M¡‹\4}§ð†ÕiQÒÿö—çïbÛ|³Õœž^±åèê\Κ\ŠL¦ÛÓÕÃyȉ­É.ö7ÂÙä$¶ÚhªCS´ZZ Ì(89Äpc§í´±-t:•4…¹MhCŸ21e™žõ—o¹àÛÎlÁbö1ÑçcHÐPÁÚAcìÈ6ë¡m|Š—›{ã;ÉZ3é b¸ þ†Õe;¾D7 SISè"AzòãLÌO2==WstàÎ@øh—à7¦ÍoÉ-m¢ƒÏ'l±µµµ ÃO6|ß"8Ü÷£/®œ±èˆ>cÖ Lè 2\÷ððÑ V7O§’¦ÐE>îÙFåľï%#w1·ï&³†»,¦WjÉ2‚8XÇ–À¥ MÎZôKĶ*9ãÝÜ—ƒ UFÃ}åï˜BS³¦SISi5}TüG?{2jÐÇe®{Þd"—9¸ôìd¯]¯öÚõ®­‹¿à X4g Ðê÷‚Aè!î5b7êCºÙäþ¹5£ Uüqv0ÜÀi÷ÚÝ„:š¡‹|41¼¹¢C|0wdqR=ß×n6¸VHáÞÐ;\+ã=ùÈžSÐèÁ_ +äµ2 \û£`VïCtœ"ŸFÌ&ð‘}Šÿ’áb+¶E7KJš’.rÑž¥>:FI ›(`ïc öý×ï¿íxmˆ“š*JÓDŠ<‡]ÏîÌ<Ï0bï!{µ¢VÔ—R½·¹¡Ê·Ì³¢VÔÿF{—´òü2Õ¡ã!„rxáv#=ú)0Ú•¹4²ë[ø.x“BªòdSU§yÀB‘ÇÕZN$F$ý"õkn6qítŸ^ß9ÐÎ=¬ÑÒ(PC±›[ð‡É†škYh+Ë¢Huó==êÐΜ%#zFšü…2(ÖmsÔl©¤ÖRs%9Ž‚¶\7èfÑ‹={V¸ ïªB· ´ó´qØÂ¹’~÷XšÇ.ÌkÓR*Ï^‹û}0øö%#ßrÆýö¤[·bdOs nĆš­Ú9¶>'ÌQ²Ö<¼ïÏÜx<³(Lp$vQמKŽ¢ e†gkãG <4Ðjƒ ‡D® ¨Ohçèô2þDëÁ‚) œ¦aîNX)5¡ã”ze´Ì·Ä·:8©ÜEbSß :¬P<'ÍT;+Ç·JºPž€ËiÜë0Ñ…(£RÿD)•zçAË Ã+ðsÊ•e¹J*“«.öwSOdÎ'Cµl(ÙÎs„s×)¥ªŽ}–RQKëšiM[¤uï:ÈëjæuU7×ÔéøgWdÎf]–×u¾©+¾l ûdJ̼qM³ ܧ²h-ñ¼Ó´‡#±Ä¶‡çÞêñÚ¶› «™Ð΃‰m+sEçˆ.wôðó¤ùÇxÚ-(O/¡ÖíÛgÛúýùðu¨±×rPK/ËÍ¥xê¿KEýàÔ÷ùþæRQ?&õ7•!1Ÿ¦‘j¥IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGtk_1_1GL_1_1Widget.html0000644000175000001440000007245110400731256021603 00000000000000 gtkglextmm: Gtk::GL::Widget< T_GtkWidget > Class Template Reference

Gtk::GL::Widget< T_GtkWidget > Class Template Reference

#include <widget.h>

List of all members.

Public Member Functions

virtual ~Widget ()=0
bool set_gl_capability (const Glib::RefPtr< const Gdk::GL::Config > &glconfig, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
bool set_gl_capability (const Glib::RefPtr< const Gdk::GL::Config > &glconfig, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
bool is_gl_capable () const
Glib::RefPtr< Gdk::GL::Configget_gl_config ()
Glib::RefPtr< const Gdk::GL::Configget_gl_config () const
Glib::RefPtr< Gdk::GL::Contextcreate_gl_context (const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
Glib::RefPtr< Gdk::GL::Contextcreate_gl_context (bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
Glib::RefPtr< Gdk::GL::Contextget_gl_context ()
Glib::RefPtr< Gdk::GL::Windowget_gl_window ()
Glib::RefPtr< const Gdk::GL::Windowget_gl_window () const
Glib::RefPtr< Gdk::GL::Drawableget_gl_drawable ()
Glib::RefPtr< const Gdk::GL::Drawableget_gl_drawable () const


Detailed Description

template<class T_GtkWidget>
class Gtk::GL::Widget< T_GtkWidget >

OpenGL extension API to Gtk::Widget.


Constructor & Destructor Documentation

template<class T_GtkWidget>
Gtk::GL::Widget< T_GtkWidget >::~Widget  )  [pure virtual]
 


Member Function Documentation

template<class T_GtkWidget>
Glib::RefPtr<Gdk::GL::Context> Gtk::GL::Widget< T_GtkWidget >::create_gl_context bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[inline]
 

Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

See also get_gl_context().

Parameters:
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
the new Gdk::GL::Context.

template<class T_GtkWidget>
Glib::RefPtr<Gdk::GL::Context> Gtk::GL::Widget< T_GtkWidget >::create_gl_context const Glib::RefPtr< const Gdk::GL::Context > &  share_list,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[inline]
 

Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

See also get_gl_context().

Parameters:
share_list the Gdk::GL::Context which to share display lists.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
the new Gdk::GL::Context.

template<class T_GtkWidget>
Glib::RefPtr<const Gdk::GL::Config> Gtk::GL::Widget< T_GtkWidget >::get_gl_config  )  const [inline]
 

Return the Gdk::GL::Config referred by the Gtk::Widget.

Returns:
the Gdk::GL::Config.

template<class T_GtkWidget>
Glib::RefPtr<Gdk::GL::Config> Gtk::GL::Widget< T_GtkWidget >::get_gl_config  )  [inline]
 

Return the Gdk::GL::Config referred by the Gtk::Widget.

Returns:
the Gdk::GL::Config.

template<class T_GtkWidget>
Glib::RefPtr<Gdk::GL::Context> Gtk::GL::Widget< T_GtkWidget >::get_gl_context  )  [inline]
 

Return the Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Unlike the GL context returned by create_gl_context(), this context is owned by the widget.

Returns:
the Gdk::GL::Context.

template<class T_GtkWidget>
Glib::RefPtr<const Gdk::GL::Drawable> Gtk::GL::Widget< T_GtkWidget >::get_gl_drawable  )  const [inline]
 

Return the Gdk::GL::Drawable owned by the Gtk::Widget.

Returns:
the Gdk::GL::Drawable.

template<class T_GtkWidget>
Glib::RefPtr<Gdk::GL::Drawable> Gtk::GL::Widget< T_GtkWidget >::get_gl_drawable  )  [inline]
 

Return the Gdk::GL::Drawable owned by the Gtk::Widget.

Returns:
the Gdk::GL::Drawable.

template<class T_GtkWidget>
Glib::RefPtr<const Gdk::GL::Window> Gtk::GL::Widget< T_GtkWidget >::get_gl_window  )  const [inline]
 

Return the Gdk::GL::Window owned by the Gtk::Widget.

Returns:
the Gdk::GL::Window.

template<class T_GtkWidget>
Glib::RefPtr<Gdk::GL::Window> Gtk::GL::Widget< T_GtkWidget >::get_gl_window  )  [inline]
 

Return the Gdk::GL::Window owned by the Gtk::Widget.

Returns:
the Gdk::GL::Window.

template<class T_GtkWidget>
bool Gtk::GL::Widget< T_GtkWidget >::is_gl_capable  )  const [inline]
 

Return whether the Gtk::Widget is OpenGL-capable.

Returns:
true if the Gtk::Widget is OpenGL-capable, false otherwise.

template<class T_GtkWidget>
bool Gtk::GL::Widget< T_GtkWidget >::set_gl_capability const Glib::RefPtr< const Gdk::GL::Config > &  glconfig,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[inline]
 

Set the OpenGL-capability to the Gtk::Widget. The call setup the callbacks to realize a OpenGL-capable window.

Parameters:
glconfig a Gdk::GL::Config.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
true if it is successful, false otherwise.

template<class T_GtkWidget>
bool Gtk::GL::Widget< T_GtkWidget >::set_gl_capability const Glib::RefPtr< const Gdk::GL::Config > &  glconfig,
const Glib::RefPtr< const Gdk::GL::Context > &  share_list,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[inline]
 

Set the OpenGL-capability to the Gtk::Widget. The call setup the callbacks to realize a OpenGL-capable window.

Parameters:
glconfig a Gdk::GL::Config.
share_list the Gdk::GL::Context which to share display lists.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
true if it is successful, false otherwise.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2defs_8h__dep__incl.md50000644000175000001440000000004010400731256024476 00000000000000f2df042f98defbcb0bd0ca5b722fd380gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2defs_8h__dep__incl.map0000644000175000001440000000075210400731256024600 00000000000000base referer rect $gdkglmm_8h.html 1137,389 1222,413 rect $config_8h.html 178,248 309,272 rect $context_8h.html 361,160 497,184 rect $drawable_8h.html 548,210 694,234 rect $pixmap_8h.html 744,313 882,337 rect $pixmapext_8h.html 932,413 1086,437 rect $window_8h.html 744,364 882,388 rect $windowext_8h.html 930,512 1088,536 rect $font_8h.html 370,614 488,638 rect $query_8h.html 557,665 685,689 rect $tokens_8h.html 177,461 310,485 rect $gdkglext_2gdkmm_2gl_2version_8h.html 361,716 497,740 gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2defs_8h__dep__incl.png0000644000175000001440000004246110400731256024612 00000000000000‰PNG  IHDRÏï€Eÿñ'PLTEþÿÿÃÃÃoÿ???¿¿¿___ßßߟŸŸÿÿÿŸ¹É·tRNS@æØf IDATxœíKsÜ8–ïç{Ì.{Ùg5µ­åtµ=Ö²n8êZKO{*¬eË5¶¼ì˜(…´ôTIÅ\N…ãÚZuȲÓÊÅÛ’•J|¨K€ßxœ€™øÛJ2ù8@’?ž ðO,*Š^ÿûO¾sµŠ E9Q-ʉ"hQNA‹r¢Z”EТœ(‚åD´('Š E9Q-ʉ"hQNA‹r¢Z”EТœ(‚åD´('Š E9Q-ʉ"hQN´  ¥³mø>¼8š8h銥ÛÝtAÛÆZJ§û“§ Ú2VI\`¾3¡¯é–Nò8#kz°M ´öd-MëXL´èÊZJ§sD¦Z:©Ëס¦r\¦Z:‘£éEÓ¸§ZÄlL¡áƒ6‰ëÕ¿B?L¡ƒþ¥ŒÂvüaƒ1ÓRðá ´ˆ™¶Âujá‚ò宂=jÁ‚–‚ïLT:µPA ôpMAa:µ0A óXMF!^¥A‚楼PC-Ä rj î†Z€WãÚa ´6±i¡9ÃSP¤Zä S!‘h‘3\DZP Eΰi!9ÃW0¤ZäŒB¡hà;Û©@H ´@Èö)Œ haŽ­T‡6Ђ8Ûªn  …p(¶XÞ0@ à@l·üà @K}g`û¾3hñ½¼ã@ߨùŽ€æ¿ü°ò|˜ýƒ9s$ðšºwÐ|»ôÝ‘ßbšoмRwH^¯iß ßäwK>K)žA‹4§Iû-ÐÜÊcAÅ+h±€æZþ®lŸ EÎÜË[YÅ'hà/éÝxJ×#h±"àC¾Âˆ?ÐbEÀ<w ¯„w]à%Uo E‡æK~‚§7ÐÀSºQ~®q_ E‡æQà!MO Å[h>åãè{ ¼¤UÈC<ñZ œžÎSôøH4j#÷WºТCó.çe¼€ÒŒª §ç´èÐë“à4pŸdTKà69 E‡„ßLsZ¼WˆÜ^ðîA× Fõ\&æ´8ƒ‘ÓØâ4pœ^T¿\^ô®A‹-$»¤\ƒn“‹”ÃËÞ1hÑ¡…%p–’cÐÀijQcrwá»-:´Ð®r ¸L,JAÎ.}§ E‡žÀQ:NA‡iE©ÉÕÅï´èÐB¸IÆ%hà.©(e9ºü‚Z˜'©8 œ¥¥#7ÀhÑ¡…*p‘ˆ;ÐÀUBQšrâœZ¸i8 ¥¥/NÀhÑ¡…, OÂhà&™(#9pŽ@‹-ly Ž@+³J8ö¢JÑ;7 ÙýŽ /É`„ W@€ÐÀ|×tÖ×ñM„ Qä.Í hæ¿b ¥–€Ø¾ÐÀl·~gÖÜ,Âb-j—æ4³ß åªÆP›5d”£íКwèï¢èÌ$õïÐVÄ­%b—$h©Q¹« œaœ"m²€Ôºд/ãâ}#ÚªQa+DëÒ€z›§6§]ò…:øDظ€Ò8=hšŠm_JjúàÄ@iœ4ÐÚá\g¨™ú§t§]iì$M+÷Va³’¥kÚ]ׄ¶ƒ åü —dKlº“î)]9h ¼%Š;«"†±tךŠijÐÔ/”U%¼ðøH¥G hFƒ¡K£ T7Ä ›òœ_C2tnDð#úd–‰AS½Dj#ß'©u@œK 4”°ÙëÖEº”82ÃÄ ÒV8œu! Ÿ(¥Ḁ̂т¦–m:ÎØ–„Ï¥°aÛ+E ¨l„SÝì5²uá³®¹¾@åÒHASÊ4ömvÛìÔ„P+§€f©&ÿ BBcík’]h¬Ž™¦HA…mPŒn©/Ôˆb'%h*YvÂÙ.„O!”º‚‰Q‚ã›8â )¥ Ȭ|ÝB6Ú"M!Ãî8ÛÒ Þëi 0²Ñ!h0ºJ å-w…4ë‰Kó ÆÒ¹9²U!;Ô)²è@Åãšž §c;{–ÍUEáÒè@ƒ‘õ(g]ÓÆ.‘fSÑ´\T"mìª  @—êTdîÔ\š/Ðüp¶c¤ßë˜h`µZIF‡cGnÝ2ýµ€š .*ÐF @¹±fûíi†ñߥù åw€éŽ»Eš™Sä\kÕdËn‘fäÔÐ]hÃùtùä©{g@ÈÁtdRÈ0ØeP>@Cy"`¹; äa:2ø¹Ø.40^©&kP"icÒßcP4  ^“HÚˆ´w–{Ð0|2 ؈¤ì€›> h`¸NQ8µÆ]#M÷¨jò$  ] ÓÞª©HóÐãРBîñ<ÑŽÝOÓý½€™¶cÐ0 A0Q*’6$T—FÚ@Ôº¾ÓؤG ¦Lô® *pâ[›€´HÄ„‚XàäÚµ i˜‡´þì¥qC¶ÁÐDÛŽˆ4è[À3΃€m1péü`Ä£í4o£(hç‚§ÎyÐØtDø õž8 4n! °´4"ÞñÆ z–£ä¹0òoômnú2¼½Ò¨VšÎ@Ã) FþaK€6›ÁÎÅN­QF°’D­/g€i 4Ñ l#ÇéLE€‘oR¿êà ºãd´4GjtZN¦:iÊŽÈh=‹ 〆GJ:9ä”/|,—† ZO¾ph˜…4²°¥\!œô¸ÆqÚÿHòI¡u Ú¢ ZÝ0™ÒiSüÙ8GÇh¸mügÕ8!'¯·G¯ËÛ—ÉÛ«gW«ÏG9:XÞ}|?OV§·GÇììú4[ÅŽï®OÏß~ý¸Ï²­rsÐ\=…¢»ÉF€ºÙ°Aå…ú*î!ðYáÑn¾Y<ûáñbùtž<9}r~uóéfqñôüÑ<á“ìoçße«æëùÏçG˶Éí¹­ü“”bðTÛjD@ÃhV+ÏÆ¸íëþjñŠÝ,®Y¤\Ï×çË ¤ÅÝü%ó„O~˾?N2ÌÖólfõÓmÁ¼‚Æ lj§%"á‚Ö™%°´Y•!ZVòZ,2p.È }É>ÖóäKQKòU×××ìù¼XV€&•=<î 6µ¨m5,zЬNb* ÉPåÑ3¶Lö%ÐÞ1áÑøäáÑøªù’­V=­ƒöí¦tOÏÕýæ<•6.h ¸LMiý44A»}x–—Ñn_K ³§ç'ó„Oò2š-+£}ù‘—Ñ.$Ð$§fžI[y†MéøÉA3ÍdÚ:þMЪZ'{!¶ÇD­3›\çµÎlÕ—g×ÇoÙÛù£ýE ´Š´ŽŒ;”OØ”ÒUÚhX¨ uAF–º¼´D€v3_-[eú!+²©(o–Ïûo“Ö¾°¥‹¶Ñ°¨A3ÉbÚ=À lfËй׵ÝÓó¿)%ó­dÕ?h¬÷wK%ÍÐ@¥E#ê½²¥ÅE輜wmwwýP)¡²)wÓ¸OÍ<°HÛ ‹4ÝKa࢖Má5å.I ‹(rBUΑ½Kí#7 g`èS–"vrBa|“ÐAÓÊßÈ€2d ‰RJH 1Ç!TåfšÂ&àš ´^Š‹t  ÒFRw/‡!Tá*³¾IAk-è•ÂðXòÚ?;ípõg£é»—» £[„Z+/ê™S¹xåMþ õ¦pñr@÷ ÄyN!DИ³ªzÆ·%h º£ÒÁ”¬évƺi_Ô»Ih…´œ„Ðñ_o{|AƒÆwÕ¬)ÈÍVú=™‚ÆB~_ÝE„-EZó{·T{%—@Ðï-cܧ¥ÆÎBä!tü:»è@SlT£›4ÍÍ œOþÔzÈwß× 1j0¶¥ËÇ­™PÙI½ü‘nf”÷‘) Tn'021)jãWüèƒ"MéÁ†Æ‘«ì–¦ Äú“œB×”¨V°2ï4­êTZM }x™XïÉ  eõ¸39fÙ.vâƒ_;¤wuB5·<–p·˜‚OS¹µmjyl«„ý¦ {(7¼ºãg:‰èIˆÚ˜Y«d©@ÃÁt¬5¤[øñ&Bjc¿ÞêGM¯ˆf:NiŠöP²»­øêžB4ù;i6¶©@ƒÁõ¯È´4‹v¿}®„éIT Q¬VÊ hÇ(-? ë©u®„í©85 ÔF®b°0MÚ`ŽMP î#ÉFN ã^Þ1¾÷6hsðÑ@ƒÚ·¡,Æ´H†7ÓU#/¥õ© †^+.;tn#dv…AÜÈ)TÏô@uGQfÉ"-ç ž@È?ðó@ß·EmИEJX ©ÑLÏä`¸{¿êÁ¢–ñé †iÌxå°ƒfzHŠWâ(Z'ÖI«}Ù V_œ0/ X7ÐŒ3JZÝh3…âw µ¡ú@ Aí[O†ÌŸð¤yÆûjÖûE,à‰úîÇLAh9¢É< Рs‹'‰bO²vý5¸ ¹–—¶½÷˜§ ´¢­‘CÐlžXó] ›õˆ;hv¨€†H¸žÁب;ЬZFð} A«å­ãtM†4@1ÓoÅ<¦ ¦P[ó)áqõÛ×Mý=‹ê­#êì(R8á³ÿ@O4«#×ÀÆÄˆdÛm{5˜Ztš%#ôE4&“6yÐÂgŸã3‰ |³7WìNÞgA•Ëéƒf>Ñ":­ùÝĺƒ^XJÒ¶4ûð Ý‹ƒ­õ`ÚÒ¸‹"Zžˆ‰„GÒcuÊ?–|Ò\³¬mÖxÍ6|önS«@³&$/¢9­ m´û}Æ™â“ÐA³ Ÿ µxT@f)aÀMOyâä €ö…¬–|ÒÙjyƲU«‡o?|·ºb²éêóÑiÂî®O3ÐÞ^Æ<ƒfW ë>q¦ÉA³wDnA+Ÿ<=ôËá%·Wbm1šöü_{µ|w›­Z]î_Ý,žÞ\Þ,³éêòü?öóùƒ ´lÃÜ–oÐìÂ'tZ44Fô~1’°à&ræx²ä× ö$y>/.òq?ùh´«åñ×lÕjÁæ«Å“Ûç¿ìeÓ•„6ûÈ@Ë6”,ù•Eøì<ä¡‚†äÐ܃¶`ëdž•ÑþõTm¯½ZòI’-ÿŸ‹¯ßÿýE6Ãj¯øÚbàmÉ’gÙ67mš3´E 0[Q¾.ЭʣígmõAí· áÑ>g“Ì£-Ù¶¸{~{2Ϧ¹G[²Uh Y„Ï®c(hx@n†·Â”Àãéù‰(£±ghgs>¾öêÓ\”Ñ–«·‹ûË›|š•Ñ^ˆ2Ú}h Y„Ï®ý má€}ßê+LTDNç UµÎ¯?n@{#Æ×^]2Që\²ç/þÌ®²Ù4¯už]¯çÁf>»ü„¡)ZаšÛñ&=f÷¯=`)™†OPZ¤"Ð6L t ˜ŸÎ@+Ç6ï0»o|ín-s‹ö¹²—YøÄkYH 0kAaÒɨ¢Áv:{Ìî_»[KÖ9®ž™]õíŒÌЂ†GZÚ‡ÁÍì%¿€ØzCa*g2"­} Ï*%hÐÜÌÔpJÛùE“<Ðfããê9”i­} ϡ‚ÖÙ=ZA Y´’ i­³hÐÚÌÔ.ÐÑúÀlø˜{´4ÖLHkîhÅ6f•%dІ‹N¨-lK—k¤5}p Ak+]•$bäTéÜ@÷}ô~‰_Pk¤5ö 4{4+̤ÍÌä£ÿŒœ1ÉuúgÍt(‘þïj" Ú[éËOÏ,¿³anË´Gkuqå›5ýÂßu÷ÏEš¹C+Dá¬AK}VúÒ_Ö´IƒÁ¯ŠB­£ñ†9hüÌTÃÕg3ieS?_Þï,ôV:|²¦KÊ; ø •Í-Lmñ»ÕÞ%)Úæ¼E˺†nئÞîäê’ßTEšC“1-¨NóFAùzj IÚH‡J" ŒMÕ ©Ê8jöBB,׸cõÚ^‹’pACthâ<ŒÚ Ꙣ,•ly¹8´ô~Q hfya­PSº¨ÐBjÑ!5룸¦“bíøƒQrV÷LUàé~ñ+¼HÙV×CûN¹ÿ%:¤AϼºðA‹È™Ö;TÐ5 N±\é TO¨s·¦‘Hófg—43ßè+çlö‡ê+ËkHRëð°#e[3*žãŸ¦žXÚ3¯. Њ¯ßZ›Æò r‹“qc²@³Üíô'ªç 6³á€ùŒ5hÿ`ea: §é½4ûªtB•SJ;g5DZù ´¢60EO&I¿Á„»ß«\€ìœÕPРuƒ™Ëþ(d࡜¹5Õd š ´Mçöe´ª:qÐÌúyväÖIK;æt„Zõ!tn hÆ=8qkŠi@92h«E£þÿHòI¡ÛÍž9åÊÀ´e΋ ÔÔ’€r&Рœíwþ‘ä“BëýÛ|¦Zþ.ÿî‚æ$‚*e/mÍhÉh{ü#É'…Êxš 5˜¢ì:!¡ Jö¡5£#‚Ê@©´“W‹Û£W‹åíKÑÝðJô<¼:å½B%«ÓÛ£cvv}Ê»>:LøB©¯á h€IŸ²îí†Ú­©­¡ƒ¶É²w.üì‡Ç‹åÓ¹ènø\ô<|ñôüÑ<á“ìoçße«æëyÂJ} ohÀѢ¦`¼:Ë Û¶…Ú&4Þç+v³¸ZˆŽ×ç¢W»»ù!Kæ ŸüÆ;æÝ g ñ…R_ôšHQSð¹€ÖÝÇ£w.¼ÈÊh—dоð¾ˆç Ÿ0Ñ˰è‰8Yˆ‚ZÕaâ¦2 ÙŸ¦Ìî¤5E‰šB1S-aƒ&]•G;Ì<Ú2Ù—@{Ç„Gã“_„Gc²G“AËoolŒNT]ævèPwºÐ˜j‰4Þ¹°(£Ý¾–@;æ}Ï>ÉËh9h|á½ ZyÃØÄ…7dj£vËß`”jЪZ'{!¶'ú"N²Éu^ëÌAã ¥¾†7 6F'*̱ù¨Põºicª%lÐ$,@ëë\¸³/âÆÂê¡út[UÂ)¤"Bm PÜ®KÔ õu.ÜÙqcaÕLˆÁäyC µ±ã[¤hrˆ(BgwçÂ}7¶+õW ¦$dЈP!­H1LÐ,$no¤í2Úø[¹á‰`e Ô†-¦µ‰žAtÐDÚ+'ö– ÉHÝø¨ W¶´šý¦&J‰†„GGm8› °MpA« †ÚðO›Â›ÄD á£6$ 6Ñhö7Ãõš Žzm ò@0¾nh“>Ñ/·^%†Ò®ª‚Å4äf¸C¢8[ôŠ 4ËP‘‚&ï £Û9%hVZ·4p°ƒ ¤j¥ÉÔ4ÙD 5SZÐP‹jG ¤O=Qf_ö•!±²†w# µ~C0²¾_È Ù5Ž«ËÚ£Éò~“¨ª¡Õ ú‹i }ê‰4Œ£ÊÙ(ŽÒIJ=FR²û²°~]o^ó``’4“¬´$ÞþQëZTCžÊmN@CC­ÏJ*}ê‰4¤ƒšÇ:о7ÜRG aU@{ŒZ5"5ÖA-ìÎHN’Ûb›3Ðpj}Å4±8Ðè$ºX猶ý  ¤…p¸z`‚uƒB ˜iF•ÒöAá‚6— ¡ÄÏî.ìú­Š˜°É ¦¸}ê<1mnAÈŸÇ[X 4‚Òˆ°ë ²˜’Áæ4Œø ]V{׌ˆ4ƒlŒ©0éä¾ l)Åõ7,Û£ÕU!´ü Å…rÆÑ-0Ø<hÉò7tä8$Ð r1*ɦ³[ȰùͶ¨ÖqUCõ¡'\ÐRÃ\Œªf3uwû ±†® i¹ìŠjн¤½xTø ‘\¸ÐLÐå}}Úô4QИ󑓬ioýVÚ\•­<§KÇ…`lªÓ¨ûgã6´ùÍ*~6÷ÜEÐ< ©jØØ¼öUc~ ;Ñû‹½+<50Ó‡ üvŠdìÔÒŽ¯ÞAç 1´JX'i :6ª2=LÐþh€a¯/yl¤­øÍ4|6r íE*Ú ÐßîhJ 6`~c'3ŸÐþí­F„ ÑE;nÖWa­Ð8lÀ¼ƒfèÔêª-m hÌca­J(À¼ÇNfèÔ f¡µDI˜ ¥„w¿Õìzsà6_î4#§–¶¾èÛ@-¥ ªv=GÐ<ýMÁeNzdàÔ@Þ½¹@MÈ ‘]² ¾©wÔºƒ(ð\šÁŽ´9¯ÿ;¶´"(ë¢ }ú–öñ‘¶ ÉòAY³9S>†KÓŸr¶m3hú†C@Mf jïÒtjPŸõ og›‚žBˆ ç ÅW9©KÏ©Ac:·Ð6ƒH-œ+_ ;ÇÒ96Òñ‡êCG¨ 6"5vÁ Ål0.M/|B}NcÏ\[Z(t|äçÒèÐ:­Ï©ïXh* YY"‚Bõ8üfD–FA ª}jßT… aX»Ýý£–æÙ€ ‚§†…r&‚6,ß´86ü†‡wèe©–´6£}¦w4ßT*äÌþx ÎqPM2zù )È#jò±Aa 4Õ‚”›W:Ú1Ð K~ÜZÈ )Ôª,‚¦(/ÝrKóÁ¦RP‹ ™È} 4…‚ZÍРëÎ;¤ùAS(¨4õ L 4æ8‚ö€–$õÍV§ücYLÚf6›cƒ6ZPiº½ Ñ<¸q9Ѐ4?Úý>ㄉ ;h›!m¬ Vþ`4}9‹ Š }á«å—>3” ÔRiê4ûÑ­DgÛj°™ŒÜ}|?öñ}ž>úËÑAòöêÙ;c'¯«åÙêóÑéjùxþ6_üöã_’ööJ6‚­ÁCQü‚š±œDP) ÁÈÓóG¿þ÷Qrûpuuóéf‘<9}2wûðMÚ»Õåù‹Õòîø0_|u³àK2в/’t ‘Vü‚-¶Íƒƒ ›YÁÈ!K~½`O’çó¬Ð¿`‹„­çëùñ×ýUÚñjÁgu‚ŸòÅóla¶$-û"Á×ÀqH7Ï aØNƒPÔnM².Y°u2ÏÊhÿz*ƒ¶—q”¶—-K²¿çó|ñÿÿp+Êh÷.@ë' ªÉƒæ¬4•[“¬Ök_Ü€ö†‰Zç%ËkoÙÛíù‹?ó%ë¹ ÐzIƒjAÃ[ƒÍ¬`ä–tmv3ÚOšKAë# ªI Iã®KG§ëÚ, {Ì7h=£ šDÐð„B› Ý]?ìÜîä’ÇFñ°³¦æRкG?ü‚[v­ŽÁKF8¼h7i›j§'Ð ÿ ¾§Jj½G˜!ò®ngHÎh– 0lu©ƒ´¥X›Iý)£€öwbÐ:H‹ ËòtŒmlà4|Lev)Ô3¶] †±>yÍü¡§*ÃÅ"ÿ€6Ö$¬ÕÎj>As'9„ªÞ G/¤u¤Û7p‹M:RùlÍ©Ä)ÕºÁ ¼¡r:ÇfM:¯em ‚æRÚw±bgR¸¬¥Í¹š+UE2­bAììOó^î†ÚܤOÐ`g@kž_;¦0º…nFÆ6@Jê3iX=NDõ„ªm¥¬Ùlô˜ ±V¥“ÛnмßH Fjn »¦Ôá> kõ¶42)Ü6P9Ÿã[èH¹ÂóP¨’äÒ6AS‘j¹zü|*™Ñ’ªE[·–Ö&4tiÞ9ŸøåÌÁäêiÛ¹5'~@+^ØBÐLn ŸOms£ÉéllãÖ6o¦°¦,æ U Mö«7©îôÍÝZžP*}j ´òR@l_’íÝÎþšž•Yƒ¦?MFLÛ§DÐÚBz.Ýã;Ð’AC·›Ïš¥pß”ì$Ï|.³£nr1åtÁfVC¸ é¦n¥(ÞôèhȃD3Ué³–n>t ¢{s­Y\ 4¦iñ#hævi_l–‰ÛºÝÞÚÍOøæÚÏ v4ÜBY¿$–:YZ IDAT±†µ=õºA;ýl‚ 9‚l“Z>ƒ&‚=­æ'à 4`¸;ÞDþF4šŸðôtÝn‚F^(Oúß èÛÍÏAËÚø6P¤ g{As/;s€’>>h*¨•.-‚6lÁ£+“ôíø&ZFÃ^.¥†Né–ƒfy@ý»²Rƒ6ŠZáÒtÏ5hyòš‰›$d¨@\Y¡ AC'–FкDÔ+…¹°A#¸ï½ë —Ö¿A§¶´pæFÁƒ6x·DŠšin7haÌ$F††º®†¶ÙŒ6@ ëwkù¹Ž • Ñ•­6Ôu9ÖµÐzÝZ~Ó´La€V> ´P]Y¡Ð:‡º°¥^çÕÊÞÆMr}©Ù®ìß’`dx¨ë/ÉÁú‡%Ù:Ûhuò‰}·ºbø`d’‘B@˜Ù´}4 «ohÌ#ÃC]ßî=Ù{²Zf ùFwß<½¹¼Y²U¶¥d¤f7m9/¾@ï8ohaÌ#ÃC]ß,ÿ²xš6_óÖó›×OnŸÿ²ÇVÙ–’‘Bäm¡¹@÷öü6ÊXÁÈðP×ìðOú· ´b£¬löõûï¿¿`bÛ‘BÔ µÚL³hEƒ8°76¨^ûþ›ªÕ­‰¶ ”ᾜRÄ®NÇ’ÒáVœ‡TíO ´m ,mØ ÙСOij1ž(OЪw°ìõiV•|‚’N·SÐääQy¾Lõn9*hd÷§Ë:5P%@¬´qŠ1ÞþjIÔ¿õ ­ôöo¾ùþ"ô¿üa6ú>ô·˜ i>’P—tÍÀÀfከ˜Ô96°ê¾öîíÛN´ºg†¾ÍBåí†z…ÏèØÛÔO½€Œ´Vü‡ÎÍy‹’YóÑ£¹R}ä¼È u•2[ UŠTÖŒÂÛ+ßÙкkײÀ䆱*©MJØWù˜ƒÛÐzc %@#‡Œu¤GVë©7ø­¨ àüÖt d PÈ5c¹ê>‡6ù–“@[-ò†MöM›VP‚6|º†Öù’Æ„ê®ÆARɽù ˜ýO­¦Ù&€,ŒUéo’wÒœ;W#˜N ´¡Y¥d“®<3&Ô¸NÏ=ÚÉ«ÅíÑ«ÅòöåÝÇ÷çKñôJ¼ööªØ 4`Ö )5‡×ìš”ü©>¦:8M[€Æßv~öÃãÅòéüéù£ó¥x ú\¼vú¤h‰šUMõ¼ZŽl£ú˜ên¿øŠÝ,®üíÁsñ.Íú\¼k“6_‡šJÈ,75JMÁ8²J–Yг‰hümçEVF»|À߇n‚Æ@Ëþq åüN´l*í™'WåÑ3¶Lö;<6hå[8 ½£æÉÓNEaEË– gžZEí,/£Ý¾~z~Ríž´²å£†4Bf)½DÙøK Í»tiõZ'{‘×:7 ­ç Ÿ‚Î>&NÂ`cM1¡\à.]šô¶sÏûÐB8 ¥©.hÎŒi%`§É0&”ö~¡U:÷Šï=ïC !›ÑõTd\â¡?Šé´Ë½_ðÔxOxS7Ú¼íÜ÷>4h"JØœGRÐ|?N2È_¨ÚpH‰ÇÉ}ë uÐLCf¹»ÍÎCv'˘Pý°Pøã² jÍá{­ø©0²õɴܽKz­—ÃTãúüø1J›Ê=h³â·ÁÐF–Îl<mM±8Ö-¨}C÷û=»=€–ÿ´¡ˆã50lmcBPÿ:»FÕß{ZØêŒ€†áÌò„ìML²Z9&¨E̲¯)÷ì›o¾É_ O 4È'+S¼"eL˜x‘@Í£Öa¤ª–Ý -ûR¼níAKê™5m{¢uÑ…kQ„ ¡…ÌÒžÉNÛP­Ô¿€ÖRZø3å^l@1ÆRüÓ« Ú6Ǻõ¯.@+[\*`{Ðò¤ê(÷¨# “»Ã˜Ô¿:--N»úA¶-í&V©Ý1Æ„¾^BchØÙÁ^æ7ûunUÞiÕ,ÚƒÖêç»hV Æ6ØEÆ„ÔA« ;{Ðcîë| ´²3n£m Zyf¡Ì]É{ÈðÎ2&¤Zç°³M­GA+îhéqKÐJ´ËŸŠ|³°–TÏâÝfL¨ ´áagWŸNWËÇó·ùâ·øvòéæåýë£CùÌЊ⒖O±MŒw\½‹Cz#¡ZÏ3¸]Ô¾ 4†‡]]ž¿X-ïŽóÅW7 ¾äîøÍéÏ¿î V½“ÙZÁ™Öm Ѐ§•}”턈ý lf#b Aí›@cxØÙÕ‚=Îê?ä‹çÙÂl ¬ñ×yè¬ÞÉlƒ–‡­ µf@æ eþ³ˆYâ}iñ§Ì,O+"ÖÔ¾ 4†‡Í–%Ùßóy¾øðQó’äúzy»(Êhý •ZkdÚ¬¸›’zÂ:À&¹XëÔ¾U­ØÙ£ýõ4íË=có_ŒV„LлnˆYžV«I¶"bc‚Ú·¢Œ64ìl^Fûòãaþ~܇۪Œö/£Ý€V ÿ«9 Aãï£p¼ò$É0[¨I ["¨}«×:;‡ÍkoÙÛíù‹?‹%'Ÿ~{}ÿòËùÌ&heÃ}Í'‚f Íf›ÂÒŒ ØÔn@ÿ.«~tÃÃζŸ ô>'h,Ÿ‰éÕ9 A+ÊKœ„9+]êkeAThÃÃ΃––‰iFN#Ð*Îf¢2€ÃÙHA ìSØbu€6<ì¬xØYS{‰l­°ò•7ÐÉ h³Š¯ú6Zö†7‰mP ¡©f'bF÷Œ€¶qhåðfÚ&*©†ÝÚ œUätÚ¬ h›¨Ì¨nl–ÄÎÈh)3-¢€&94ŠgúÕý4vJŽ@Ïž O4Íèƒ6k€¦•¢á½×9‡å4¨>LA[¼TúÇb^)™tfˆX.0ÜoW$ƒ–VgGËz*Å]4G É¶/æ,d¹ûö ʇÎE£ 1¯{»´Ž7™ñnäÆÈ9&È'”mä·ÝRíJ'hu¢0ŸpEÐÆüƒ¶ È)y-Ýp…͘`Ü:5fUȉ€ЪǞŒqE‡6* zűRZ›b€öúu£ïùÇšOÄš«/ùfÐfv5ÊqEÐFEÝ\¯z騨yj߯íÓ#Ÿˆ5ËG Ш1‹‘sTäÛã§ú·ÑÆAû ÜÚúC ×ò¨éÑRbТC?ö@™€ü:ˆHì@û¼:=úquúúúÇŸîæ™?}|ûãíõ«ë‹³¯ׯ®³UןÙûù›Oó³ ´ãÛªŒÖ7Y´!åGS¨½«+æ-Aû÷Ÿö_¼ùëüõÕã·—÷—__?ß{¿wôóÕãà ´Ÿ¯²U×ï~ú¿Ë£åÉ^Z¶ªð¨4FÎ!•Ç“¨Ù_,A{sýúåÉõÞ냣ëë¯×__garyôvñècÚÛE¶*[úƒÆCçÑRLeßòQ]ªÊN0°‘꜕u+о^/_ee´ÿó^íITŸ¼þ˜mº<ºüá{^FsÚLÿaÇÎH #@•F£šQ‚¦RíQæÑ>~‘@ûÏáÑî²IæÑÖ×3Ю÷\‚ß³ë‘Ìômd™Dóࣀöï?]ˆ2Úõh¯Ž®¿úúñþH*£=:½>qZjÿ@~KU/}ù¢<1;ЪZçâÙ´ÃkQë¼¹µÎWìíòˆ×:¿:-º´5.?èÜ5 !Ðþ|ݸ…–ë’× ”g€ˆ†¡Ñªu¸=‰îë;-5¸åT ¿w”…Î'# ÑÝG£~è0Mµ/½ÖKõ9‘Ž-hŸÙãN’.nŽA£|29k« ÀM¢7ˆðå)³ÍP¤Ï:#g-uBеÌ<…á÷¸Sƒ7Pš ¡4Öî–Õ;£[©ž˜ä)lÒñZNIu€¾Ûµ‰©ïxô,FLa“˜<ÀlaK@#guõ_ÀJ`ä s ÛNm“A)†þctp½qéÿžmÖ@Ðê¤tl@SͧH~yx“àLÚ._¥3BmŸ¾E°±5êZã°B9¥è´¼«Ú|pí ´žÏ[ Wƒ €¦RL)A3HN´Š0©šÙ T"h•†§5hjÅk  4W Qc—­%hª^!Íä~­V'/uÐfå2èÞ:‚†§Ñ‘¬@S¿‰â´Ò¥åÅ´Ü™÷·ã‰ ¡I­”n({•Àœ€¶é±%oTÁ“ío^!¶Z4zR:ãI>iuÓ+}ÏAÛõ§ ¿ß4½G:ÀÜ€–V¥³œ6¾¬÷ùÓh¿ó„ýþUtÜ;ÚŽ?†R*?™¦}‡Xè§¥×_†T~“£bò ¶Ç?¶·® Ò4¤60¥h&Ï‘åý¿ƒ~rº !=- hÐ[HËA;yµ¸=zµXÞ¾#C®ÄØ‘«S>®G²:=:\|Ze+Y6ù|tÀÞ~¼`b&×·;ß M5²)n¶±kôtŒï×j‚–ÎJ[¥—ö‚ @ãÃC>ûáñbùt.F†<cGÞ_<=4Oî/Öó»‡o~ÌVÞ¿9¾ºY°Ï7K¶Ê¶(l|;ÛqД:h5à ´"%žÏ²ÿ¿Þ\ Ðø`j¯ØÍâjÁòá­Ä¸DwóC–Ì“»9‡èæå¹ïæe¶‚}f<в´™šôöD¤þË@q»þ»*;3g •â1T¤½o^ Ðøð‹ Ë2h_øh’óä ÿ(V^_/øªïÿºÏÄhl¹=š"“”â …mÒ™e³Á”C§X1¯“—ÎXîÒºû0ª<ÚaæÑ–ɾÚ;&<Ú;–{´låš1±jŸ‡N ´]~ *¿’‡1„rcè1RÚªmlœ£<¤(£Ý¾–@;æ£IΓcV”Ñn_ó2_õá~yQmw[Ù*q‘vR×ÞBÅ–BjÌhÅ=e·¡cm½ÖÉ^H í‰Ñ$“=ö僨u²ÙD¬Êj‹h;zÃVóG‹Ó0èó”ÿ]ƒ– `ÝWŸ­²¥žÑ$›ÚÝGPº—“JüÆ ×R‡O+Cç^×~=£I6µ« é·±rø× ˜HškŠÐy9ïÚ­o4Ɇv4µ§õ]ðsј?°­¨sBûàÄÖ¦2àÌMw…P°f’–-hå#©ö5A3”YùÝh'=•NO åå3ž‡F¹"‚f&ó§CÔò ƒ²îYO?‚f$Ó{9 i60@K9iÀše‹š‰Œï: JÖÀ`gÐoÕ-~g4Œˆw4‹{Ó€–‰hFLc€–V]:©do±lžV&úT´Ýðšph æÁÚîÊêY e¢W€Æ]T™‰2”Ý3]òCåŸGÐ6-8vò8Ž,Ý.€ÆýY™zìiÊPÖ—( db@i‘†Ù£N$ÐÒtó; DÙ‡°ÏÄÒêÏ(!$Ðx“îêK ŸúB8fıX ‰Ø¹I?’¦)œk0Œ Z´T„ÏR± ¦%¤ÒŽ••E4Ï ‰‘õ¤ Ä^Ž5„u¬Hc'”~Aã”Õ«½±¤¦(¼EZþœÑ,4ÐÚ£…F§¦"ÌJ:¢©¦ÒêÃì6hiǰ´1~Ž û-%*Aeß7hCQÅø9"ÜãCZy;ć_вôÓ.ßڀЯC@¶—+M´?û…dh\ZÕé…øô ZÊÃ@gbüìÅa›U‡Ø…[3K4žƒîLD§ÖÍåGâÒÊ~vB­|ªkeD­.²B`¶ê‰¨¸Åa–hùÝÞ+*ÆOYt×KKË~Ú OŒ¬ ƒ6‹í}ªC”hU€'FV0A+[,õ)¢ÆE\ŒÀ7^u…(Lû-Ý<àïUD¼b„îÒÒªËM_ @ Øèµã¨9(ª²½ªÇÍâÊP@ÍÇ£æ¤òíÒªóUÜÝðZþl@åŠÚQÔ\Ýãù£Þ¸åcÚ4џဦ’‘DÍÝ­Äξ\ÌAþé´4Ý´Žn/¾ÁËåë]Mµ4ºCO Ü^U»šrìÌwØêúWƒffAï ˆ©ú.ÛAÝ_LD •ýE™Ï  ·¦µý´äÃgïhz±³õ`XajsKÝ­$ІÇ/Æérd3ÞH€ ¥µ¶åšûnl>ÎhåãâËm±Q4>y4Ÿ¡€f;¥ý·c$;ì˜t5ÚÿHòIµQ´õ@3вt© O!d>'cxŒñïVWìCÂÏ6Zž]Ÿ~9HÖû'Ÿn^Þ¿>:Ì@{{U3WžÓ @«Z>Z?nC—ZåÀr¾óÁ%ÈcüéÍåÍ2Y]Ýð–;ÿîvïÉÞ“»ã7§?ÿº/<Ú铹d®:§f]r3|Ьbg]i0§®O›q ÁwV$ 2FÆrûü—½„*žm´\°Ç7Ë¿,ž®ç7¯}‘‡Îùº4S'Bb ‚áxý ð~&¢#cŒýþûï/>2êBävø§?ý[r}½¼]e´hPL‚͸Þ…¤Ê£ Œ1~÷üöd.@;Ì=û¯å,ÖŒÍ}0)Ðbÿ¢þT”ÑÇ¿¿¼ùÈhE½ß{Â?ýŽ—Ñî'ZU Žò¤z­³{Œqv•ý µN¶>X¬N>ýöúþå—Yxm€VžÏà@‹Ý‹z“ ÃrŒñ¦¹ÍÝ @«ÝÛDÃQ*Cç^×JÅ1Æ›æÊ³"h±˜æIEè´c¼eò/!ð,ŠÖ•÷0T„ EÒühg@Kߣ܊4(¾ Z¬zú%hÆ:)@“óIs/Ð*ß,h‘4×JgÈ/sР´.hñvšC¥Túa3cjŸ´Z V=‰°5Éæ„?¢-’æ@¼Í¡ùi€I£UJ Ti™ß±Â òIs1bQ5¥.Z_Ê7Fƒ­U`ŒUO¹jã»I$tÐ"ièr0«¤äÙÀA‹¤¡ÊIÀܤ&ϧKZö‘4,¹¥ŒÕÜÆ@‹¤¡È9eõ“i~¿Öh‘4ky ŒÕËA“-’f%?”5ÎZh ÅAî勲¦w00€ šÔl©Sñ‰üQÖŠMS-’¦-Ÿ”µÏ×d@‹£)jÉw÷MÎ,î׺-V TåðÖo ¹`J EÒäÛ•å‚æ‹ûµD  ‚IT®,W;á€V­w+ÀLs«†+ê =Ъ±GBy¬|v)W&Ôu 'Z¬|¶+êô< j²ÂreBÝ1gŠ Å‚Z¡Ð\Y.èYÚ½\EÈ/§@9£°qhW±{¿¼d®ž\Y< Mü0²¥ÁBÆúOÌTAÛÕðIöB9’z/€€@ÓìWt÷îs„;ãÓjW ³ƒÆ M4„È%@»}øfñì‡Ç‹åÓyrðäôÉùÕͧ›ÅýÅÓóGóäþb=¿{øæÇ«›…ðhÙšrWŒ`V­vâÁqXКі?Ь‹j´¯û«Å+v³¸Zd‘r=_Ÿ/3¤wóC–Ì“»y¶d~ó’cÆAŸbW=0š@m£Ó´f´å4Ë¢š-+„-B—dоdëyò…ˆÜ¢(£ õÓ'‹Ln…¤!qŒmx͵ʣfm™ìK ½c£½c¹Gk¦éÑv][šMoqEí,/£Ý¾–@;fOÏOæÉ1ËËh9hhžÛ«NL[3î4¢^ëd/$Ðö˜¨uîeKx­“/{´¿AÃîq«sº 4Ó.@»™¯:Ÿ'ýÙFvïf© :æthÌä¾V:÷ºV>=ÿÛØ®Qª‚Ž9]—^ ½—ó®•w×GwR“t.ÁØHP  )ߢšlë©iKAËw¡Íò~iMGÐ9«)ªfB醴ñÔo¡FæHÐ9«©AQÍäàÆV"hQ#ÚyÐväMuy=‘{ÝAϼž¨ú° m‹zº&Öh±K´-Q-ʉ ÷‹–è@‹=¢m‡ ÷‹–è@‹¥´­PýÙ3Û!-6ÃÙ5Î!¢S½{AÔÄÔ,™["-Ó&®æ ´XL›¶ZŽ"XÐb1mÊj¤pA‹¤MXÐZhÙ<ûQNÕá#B-V&ª®XææÈA‹‚i ;<у‹iSTw ê\¨&LÐúòI›œz <ÝK•ä´HÚÔÔW°îY¬"TÐz‹c;Ô•Ø6¨ïtÙ·Ý€†=:O¡úÏU0  ¹ÖHÚD4}ú׌Ëh1|NBƒ¡, ã‚6è[cø _ƒ·×­îˆ:-†Ïà5um̹N'|®-^Oòý 4r&ÚtÂçÚóþ4êÆÖÊ1h“ Ÿ;š‚ ûÈ )x×iôQ¼c ©tÃo×:Â=hÓ@m§@Sí!(ÐÝkø¨íhª}gªmÕ'? -àL;šú5Vé`ƒ¦î_QÆì$“ JÒ²`uÊ?–bÒPµå4@ÓßÁ²«?лd´{>¬ñjy¿ÏZšhz—ºÎ¶ÂM3?Á¢6Úþ±Z~éØmB i^l[ä{-XÔrPøˆRÏ>¾Oسs1²±ä˜ñ¨VË3–­ãK|Z}8ü™­÷Y¶¼¸Ò>ìÁ¦Ÿ¡ ‡™ËAyzþè—Ãÿ>Jn®ÄÈÆbãù;>ìñjùî6[ÅA»;~s|¹ÿ˜½ÍIøòäúz±dwÇ &FA–öK¦q™îW)иÂmãÑö3¶ú öÛ…ðhŸ³ ÷h«E¶íù’Ý¼Ú 4ȸlöÂÍ6OaÀV–ÑND=“@;›óaWŸæ¢ŒöáN”Ñ–Œýtqß-[…¶1Œ·À @Cx5ÝÿˆçZç×7 ½Ã¯.¯u²çÙìɧ̣±“l¥ÚظiN„• { aõë¢<ž"¶6˜÷Œc¼öX^ýò&Å€i@àV% IDAT’A%a¦à;(@Ãìm#uçÜjCç•¡³sãͰÇh«Cy“uê4ücö&(@Ã慠ð¤¥5¾*¡³gãjØã³Í²'§õýëƒ@Z†E“†ç ¦!Ì3—ŽÙAh½Q+ƒ×3_Ã.‚Å‚ ÖH£ãÌõŸ<ísŒÑL(I§û'ôì¢÷{Q…r:I@óØÍcÏùжƒÒÍèö†G¢úr„a„´éw¾‡Óðq;º» #4 M¿çÚia;.¯AÚä]Ú.¾@Ü#@±BÚô]ZT!$ŸAÚä]ZT.¬bf-jHhÕ*ÐbìÜ áÝU!-º´-â“2ТK›¼P»~¢-º´‰ ÷n3hSé *ª[ÈO5A‹ÁsÊÂ~¸J Z žÓz8¢-º´©Š a)hÛÑxa×”’´Ÿ$-Ïé‰êAZÐbðœ˜èXƒ]Ú„D3 ƒo¦MFÄ­Å©A‹Ás"w–´<ÃiÌ,DZ žkì¥@$уI XîÞãsZ,¦…)º7Û»ä´ø€ 8¥N!ãrZ$-,yyïÝ h‘´`ä6^JrZ¼É‚ÜÇKIŽ@C®zZ¿GεDÍRØJ=÷ã4\ÒPz¶Ø ÐRß}r*i4…‚X.w a’ATXˆår"i´…ˆX.— á‘A««ê%|ç¤WNAC{‡+‚Æjýò‚,Ë-hXwn%ÐV‹0¢GöDî˜âÚ1;IÐlúåõ*Ç !‘6Úïü#É'•6Û7@›ÀC «^ŸC‘kÐpNìh{ü#É'j€jØÙ ¸d9 ¥š´“W‹Û£W‹åíK1õJŒF½:å#…%«ÓïØzÿîú4y¼ÿöãÿ[®N>eë2ÐÄ'×eÜ7Dm\²Üƒ†Q% ñ§Ÿýðx±|:CPŸ‹Ñ¨ï/žž?š'÷oÙcöóùƒäOìóÍby÷ðÍW7‹ ´Oü“kéëÁL÷@[—, Ù¿¤*@ãó¾b7‹«…&s}.F:¼›²džÜÍ×ûÿ•}œÌÙç,^æÃQsÐÄ'×’¢ÆÖÑÎÕ'/ YÇOpz‘sù@í Ÿzž|aw‹ÕõõuÂØ÷ýa™ˆÂÜB”Ñ ÐT˜Ð–õ‘ÙVyÍ2~Ví0óhËd_íízzÉVhûÙ6Ü£5@#ñhQ=òšUü,ÊhgyíöµÚ1Ÿzžó¡§E±÷y¯¿@Ëšy.¢4ä4ÔêµNöBmOŒOìñ¡§ÙÙõqZYëëk ¹z×,Ê+hæo® Ð6N×Õ3>uK“¹a»ò 3|¿ {]+{Ƨni’ &+ï Ýœ/Bg9àt]}ãS7As©@3()ÅÖ“S 1]Ö"h“S( 1å·ÁÐî‹FÐ\* иúï¡Öî½G69Z®tìÙNmr ´Qň'§i‚59EТœ(‚åD´('Š E9Q-ʉ"hQNA‹r¢Z”ýïÿOÙ\ÄÚ–IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/logo_8h-example.html0000644000175000001440000003555510400731257020336 00000000000000 gtkglextmm: logo.h

logo.h

GtkGLExt logo demo.

// -*- C++ -*-
/*
 * logo.h:
 * GtkGLExt logo demo.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#ifndef _LOGO_H
#define _LOGO_H

#include <gtkmm.h>

#include <gtkglmm.h>


//
// Logo classes.
//

namespace Logo
{

  class Scene;

  //
  // View class.
  //

  class View : public sigc::trackable
  {
    friend class Scene;

  public:
    static const float NEAR_CLIP;
    static const float FAR_CLIP;

    static const float INIT_POS_X;
    static const float INIT_POS_Y;
    static const float INIT_POS_Z;

    static const float INIT_AXIS_X;
    static const float INIT_AXIS_Y;
    static const float INIT_AXIS_Z;
    static const float INIT_ANGLE;

    static const float INIT_SCALE;

    static const float SCALE_MAX;
    static const float SCALE_MIN;

  public:
    View();
    virtual ~View();

  public:
    void frustum(int w, int h);

    void xform();

    void reset();

    void set_pos(float x, float y, float z)
    { m_Pos[0] = x; m_Pos[1] = y; m_Pos[2] = z; }

    void set_quat(float q0, float q1, float q2, float q3)
    { m_Quat[0] = q0; m_Quat[1] = q1; m_Quat[2] = q2; m_Quat[3] = q3; }

    void set_scale(float scale)
    { m_Scale = scale; }

  protected:
    // Signal handlers:
    virtual bool on_button_press_event(GdkEventButton* event, Scene* scene);
    virtual bool on_motion_notify_event(GdkEventMotion* event, Scene* scene);

  private:
    float m_Pos[3];
    float m_Quat[4];
    float m_Scale;

    float m_BeginX;
    float m_BeginY;

  };


  //
  // Logo model class.
  //

  class Model
  {
    friend class Scene;

  public:
    enum DisplayList {
      CUBE = 1,
      G_FORWARD,
      G_BACKWARD,
      T_FORWARD,
      T_BACKWARD,
      K_FORWARD,
      K_BACKWARD
    };

    static const float MAT_SPECULAR[4];
    static const float MAT_SHININESS[1];
    static const float MAT_BLACK[4];
    static const float MAT_RED[4];
    static const float MAT_GREEN[4];
    static const float MAT_BLUE[4];

    static const unsigned int DEFAULT_ROT_COUNT;

  public:
    explicit Model(unsigned int rot_count = DEFAULT_ROT_COUNT,
                   bool enable_anim = true);
    virtual ~Model();

  private:
    void init_gl();

  public:
    void draw();

    void enable_anim()
    { m_EnableAnim = true; }
    
    void disable_anim()
    { m_EnableAnim = false; }

    bool anim_is_enabled() const
    { return m_EnableAnim; }

    void reset_anim();

    void set_pos(float x, float y, float z)
    { m_Pos[0] = x; m_Pos[1] = y; m_Pos[2] = z; }

    void set_quat(float q0, float q1, float q2, float q3)
    { m_Quat[0] = q0; m_Quat[1] = q1; m_Quat[2] = q2; m_Quat[3] = q3; }

  private:
    // Rotation mode.
    struct RotMode
    {
      float *axis;
      float sign;
    };

    static const RotMode ROT_MODE[];

  private:
    unsigned int m_RotCount;

    bool m_EnableAnim;
    unsigned int m_Mode;
    unsigned int m_Counter;

    float m_Pos[3];
    float m_Quat[4];

  };


  //
  // Scene class.
  //

  class Scene : public Gtk::GL::DrawingArea
  {
    friend class View;
    friend class Model;

  public:
    static const unsigned int TIMEOUT_INTERVAL;

    // OpenGL scene related constants:
    static const float CLEAR_COLOR[4];
    static const float CLEAR_DEPTH;

    static const float LIGHT0_POSITION[4];
    static const float LIGHT0_DIFFUSE[4];
    static const float LIGHT0_SPECULAR[4];

  public:
    explicit Scene(unsigned int rot_count = Model::DEFAULT_ROT_COUNT,
                   bool enable_anim = true);
    virtual ~Scene();

  protected:
    // signal handlers:
    virtual void on_realize();
    virtual bool on_configure_event(GdkEventConfigure* event);
    virtual bool on_expose_event(GdkEventExpose* event);
    virtual bool on_button_press_event(GdkEventButton* event);
    virtual bool on_map_event(GdkEventAny* event);
    virtual bool on_unmap_event(GdkEventAny* event);
    virtual bool on_visibility_notify_event(GdkEventVisibility* event);
    virtual bool on_timeout();

  public:
    // Invalidate whole window.
    void invalidate() {
      get_window()->invalidate_rect(get_allocation(), false);
    }

    // Update window synchronously (fast).
    void update()
    { get_window()->process_updates(false); }

  protected:
    // timeout signal connection:
    sigc::connection m_ConnectionTimeout;

    void timeout_add();
    void timeout_remove();

  public:
    // OpenGL scene related methods:
    bool anim_is_enabled() const
    { return m_Model.anim_is_enabled(); }

    void toggle_anim();

    void init_anim();

  protected:
    Gtk::Menu* create_popup_menu();

  protected:
    // Popup menu:
    Gtk::Menu* m_Menu;

  protected:
    // OpenGL scene related objects:
    View m_View;
    Model m_Model;

  };


  //
  // Application class.
  //

  class Application : public Gtk::Window
  {
  public:
    static const Glib::ustring APP_NAME;

  public:
    explicit Application(unsigned int rot_count = Model::DEFAULT_ROT_COUNT,
                         bool enable_anim = true);
    virtual ~Application();

  protected:
    // signal handlers:
    virtual void on_button_quit_clicked();
    virtual bool on_key_press_event(GdkEventKey* event);

  protected:
    // member widgets:
    Gtk::VBox m_VBox;
    Scene m_Scene;
    Gtk::Button m_ButtonQuit;
  };


} // namespace Logo


#endif // _LOGO_H

Generated on Mon Feb 27 18:46:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2defs_8h-source.html0000644000175000001440000001223010400731256024124 00000000000000 gtkglextmm: gdkmm/gl/defs.h Source File

defs.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gdkglextmm - C++ Wrapper for GdkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GDKMM_GL_DEFS_H
00021 #define _GDKMM_GL_DEFS_H
00022 
00023 #include <glibmmconfig.h>
00024 
00025 #include <gdkglextmm-config.h>
00026 
00027 #ifdef GTKMM_WIN32
00028 #  ifdef GDKMM_GL_COMPILATION
00029 #    define GDKMM_GL_VAR extern __declspec(dllexport)
00030 #  else
00031 #    define GDKMM_GL_VAR extern __declspec(dllimport)
00032 #  endif
00033 #else
00034 #  define GDKMM_GL_VAR extern
00035 #endif
00036 
00037 #endif // _GDKMM_GL_DEFS_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/window_8h-source.html0000644000175000001440000003205110400731257020536 00000000000000 gtkglextmm: gdkmm/gl/window.h Source File

window.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GDKMM_GL_WINDOW_H
00004 #define _GDKMM_GL_WINDOW_H
00005 
00006 #include <glibmm.h>
00007 
00008 // -*- C++ -*-
00009 /* gdkglextmm - C++ Wrapper for GdkGLExt
00010  * Copyright (C) 2002-2003  Naofumi Yasufuku
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00025  */
00026 
00027 #include <gdkmm/gl/defs.h>
00028 
00029 #include <gdkmm/drawable.h>
00030 #include <gdkmm/window.h>
00031 
00032 #include <gdkmm/gl/config.h>
00033 #include <gdkmm/gl/drawable.h>
00034 
00035 
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GdkGLWindow GdkGLWindow;
00038 typedef struct _GdkGLWindowClass GdkGLWindowClass;
00039 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00040 
00041 
00042 namespace Gdk
00043 {
00044 
00045 namespace GL
00046 { class Window_Class; } // namespace GL
00047 
00048 } // namespace Gdk
00049 namespace Gdk
00050 {
00051 namespace GL
00052 {
00053 
00060 class Window : public Gdk::Drawable,
00061                public Gdk::GL::Drawable
00062 {
00063   
00064 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00065 
00066 public:
00067   typedef Window CppObjectType;
00068   typedef Window_Class CppClassType;
00069   typedef GdkGLWindow BaseObjectType;
00070   typedef GdkGLWindowClass BaseClassType;
00071 
00072 private:  friend class Window_Class;
00073   static CppClassType window_class_;
00074 
00075 private:
00076   // noncopyable
00077   Window(const Window&);
00078   Window& operator=(const Window&);
00079 
00080 protected:
00081   explicit Window(const Glib::ConstructParams& construct_params);
00082   explicit Window(GdkGLWindow* castitem);
00083 
00084 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00085 
00086 public:
00087   virtual ~Window();
00088 
00089 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00090   static GType get_type()      G_GNUC_CONST;
00091   static GType get_base_type() G_GNUC_CONST;
00092 #endif
00093 
00095   GdkGLWindow*       gobj()       { return reinterpret_cast<GdkGLWindow*>(gobject_); }
00096 
00098   const GdkGLWindow* gobj() const { return reinterpret_cast<GdkGLWindow*>(gobject_); }
00099 
00101   GdkGLWindow* gobj_copy();
00102 
00103 private:
00104 
00105 
00106 protected:
00107   Window(const Glib::RefPtr<const Config>& glconfig,
00108          const Glib::RefPtr<const Gdk::Window>& window,
00109          const int* attrib_list = 0);
00110 
00111 public:
00112   
00113   static Glib::RefPtr<Window> create(const Glib::RefPtr<const Config>& glconfig, const Glib::RefPtr<const Gdk::Window>& window, const int* attrib_list =  0);
00114 
00115 
00116 public:
00117 
00118   
00125   Glib::RefPtr<Gdk::Window> get_window();
00126 
00127   
00134   Glib::RefPtr<const Gdk::Window> get_window() const;
00135 
00136 
00137 public:
00138 
00139 public:
00140   //C++ methods used to invoke GTK+ virtual functions:
00141 
00142 protected:
00143   //GTK+ Virtual Functions (override these to change behaviour):
00144 
00145   //Default Signal Handlers::
00146 
00147 
00148 };
00149 
00150 } // namespace GL
00151 } // namespace Gdk
00152 
00153 
00154 namespace Glib
00155 {
00161   Glib::RefPtr<Gdk::GL::Window> wrap(GdkGLWindow* object, bool take_copy = false);
00162 }
00163 
00164 
00165 #endif /* _GDKMM_GL_WINDOW_H */
00166 

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglmm_8h-source.html0000644000175000001440000001103210400731257020665 00000000000000 gtkglextmm: gtkglmm.h Source File

gtkglmm.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gtkglextmm - C++ Wrapper for GtkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GTKGLMM_H
00021 #define _GTKGLMM_H
00022 
00023 #include <gdkglmm.h>
00024 
00025 #include <gtkmm/gl/defs.h>
00026 #include <gtkmm/gl/version.h>
00027 #include <gtkmm/gl/init.h>
00028 #include <gtkmm/gl/widget.h>
00029 #include <gtkmm/gl/drawingarea.h>
00030 
00031 #endif // _GTKGLMM_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2defs_8h.html0000644000175000001440000000760110400731256022634 00000000000000 gtkglextmm: gdkmm/gl/defs.h File Reference

defs.h File Reference

#include <glibmmconfig.h>
#include <gdkglextmm-config.h>

Include dependency graph for defs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GDKMM_GL_VAR   extern


Define Documentation

#define GDKMM_GL_VAR   extern
 


Generated on Mon Feb 27 18:47:07 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/annotated.html0000644000175000001440000000546710400731256017321 00000000000000 gtkglextmm: Class List

gtkglextmm Class List

Here are the classes, structs, unions and interfaces with brief descriptions:
Gdk::GL::Config
Gdk::GL::Context
Gdk::GL::Drawable
Gtk::GL::DrawingArea
Gdk::GL::Font
Gdk::GL::Pixmap
Gdk::GL::PixmapExtProxy
Gtk::GL::Widget< T_GtkWidget >
Gdk::GL::Window
Gdk::GL::WindowExtProxy

Generated on Mon Feb 27 18:47:49 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Context.html0000644000175000001440000010303410400731256021754 00000000000000 gtkglextmm: Gdk::GL::Context Class Reference

Gdk::GL::Context Class Reference

#include <context.h>

List of all members.

Public Member Functions

virtual ~Context ()
GdkGLContext * gobj ()
 Provides access to the underlying C GObject.
const GdkGLContext * gobj () const
 Provides access to the underlying C GObject.
GdkGLContext * gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
bool copy (const Glib::RefPtr< const Context > &src, unsigned long mask=GL_ALL_ATTRIB_BITS)
Glib::RefPtr< Drawableget_gl_drawable ()
Glib::RefPtr< const Drawableget_gl_drawable () const
Glib::RefPtr< Configget_gl_config ()
Glib::RefPtr< const Configget_gl_config () const
Glib::RefPtr< Contextget_share_list ()
Glib::RefPtr< const Contextget_share_list () const
bool is_direct () const
int get_render_type () const

Static Public Member Functions

static Glib::RefPtr< Contextcreate (const Glib::RefPtr< const Drawable > &gldrawable, const Glib::RefPtr< const Context > &share_list, bool direct=true, int render_type=RGBA_TYPE)
static Glib::RefPtr< Contextcreate (const Glib::RefPtr< const Drawable > &gldrawable, bool direct=true, int render_type=RGBA_TYPE)
static Glib::RefPtr< Contextget_current ()

Protected Member Functions

 Context (const Glib::RefPtr< const Drawable > &gldrawable, const Glib::RefPtr< const Context > &share_list, bool direct=true, int render_type=RGBA_TYPE)
 Context (const Glib::RefPtr< const Drawable > &gldrawable, bool direct=true, int render_type=RGBA_TYPE)

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gdk::GL::Contextwrap (GdkGLContext *object, bool take_copy=false)


Detailed Description

OpenGL rendering context.


Constructor & Destructor Documentation

virtual Gdk::GL::Context::~Context  )  [virtual]
 

Gdk::GL::Context::Context const Glib::RefPtr< const Drawable > &  gldrawable,
const Glib::RefPtr< const Context > &  share_list,
bool  direct = true,
int  render_type = RGBA_TYPE
[protected]
 

Gdk::GL::Context::Context const Glib::RefPtr< const Drawable > &  gldrawable,
bool  direct = true,
int  render_type = RGBA_TYPE
[explicit, protected]
 


Member Function Documentation

bool Gdk::GL::Context::copy const Glib::RefPtr< const Context > &  src,
unsigned long  mask = GL_ALL_ATTRIB_BITS
 

Copy state from one rendering context to another.

mask contains the bitwise-OR of the same symbolic names that are passed to the glPushAttrib() function. You can use GL_ALL_ATTRIB_BITS to copy all the rendering state information.

Parameters:
src the source context.
mask which portions of src state are to be copied.
Returns:
false if it fails, true otherwise.

static Glib::RefPtr<Context> Gdk::GL::Context::create const Glib::RefPtr< const Drawable > &  gldrawable,
bool  direct = true,
int  render_type = RGBA_TYPE
[static]
 

Create a new OpenGL rendering context.

Parameters:
gldrawable a Gdk::GL::Drawable.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
the new Gdk::GL::Context.

static Glib::RefPtr<Context> Gdk::GL::Context::create const Glib::RefPtr< const Drawable > &  gldrawable,
const Glib::RefPtr< const Context > &  share_list,
bool  direct = true,
int  render_type = RGBA_TYPE
[static]
 

Create a new OpenGL rendering context.

Parameters:
gldrawable a Gdk::GL::Drawable.
share_list the Gdk::GL::Context which to share display lists.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
the new Gdk::GL::Context.
Examples:
pixmap-mixed.cc, and pixmap.cc.

static Glib::RefPtr<Context> Gdk::GL::Context::get_current  )  [static]
 

Returns the current Gdk::GLContext.

Returns:
The current Gdk::GLContext or 0 if there is no current context.

Glib::RefPtr<const Config> Gdk::GL::Context::get_gl_config  )  const
 

Gets Gdk::GLConfig with which the glcontext is configured.

Returns:
The Gdk::GLConfig.

Glib::RefPtr<Config> Gdk::GL::Context::get_gl_config  ) 
 

Gets Gdk::GLConfig with which the glcontext is configured.

Returns:
The Gdk::GLConfig.

Glib::RefPtr<const Drawable> Gdk::GL::Context::get_gl_drawable  )  const
 

Gets Gdk::GLDrawable to which the glcontext is bound.

Returns:
The Gdk::GLDrawable or 0 if no Gdk::GLDrawable is bound.

Glib::RefPtr<Drawable> Gdk::GL::Context::get_gl_drawable  ) 
 

Gets Gdk::GLDrawable to which the glcontext is bound.

Returns:
The Gdk::GLDrawable or 0 if no Gdk::GLDrawable is bound.

int Gdk::GL::Context::get_render_type  )  const
 

Gets render_type of the glcontext .

Returns:
GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE.

Glib::RefPtr<const Context> Gdk::GL::Context::get_share_list  )  const
 

Gets Gdk::GLContext with which the glcontext shares the display lists and texture objects.

Returns:
The Gdk::GLContext.

Glib::RefPtr<Context> Gdk::GL::Context::get_share_list  ) 
 

Gets Gdk::GLContext with which the glcontext shares the display lists and texture objects.

Returns:
The Gdk::GLContext.

const GdkGLContext* Gdk::GL::Context::gobj  )  const [inline]
 

Provides access to the underlying C GObject.

GdkGLContext* Gdk::GL::Context::gobj  )  [inline]
 

Provides access to the underlying C GObject.

GdkGLContext* Gdk::GL::Context::gobj_copy  ) 
 

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

bool Gdk::GL::Context::is_direct  )  const
 

Returns whether the glcontext is a direct rendering context.

Returns:
true if the glcontext is a direct rendering contest.


Friends And Related Function Documentation

Glib::RefPtr< Gdk::GL::Context > wrap GdkGLContext *  object,
bool  take_copy = false
[related]
 

Parameters:
object The C instance
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 18:47:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/tokens_8h-source.html0000644000175000001440000016316410400731257020544 00000000000000 gtkglextmm: gdkmm/gl/tokens.h Source File

tokens.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GDKMM_GL_TOKENS_H
00004 #define _GDKMM_GL_TOKENS_H
00005 
00006 #include <glibmm.h>
00007 
00008 // -*- C++ -*-
00009 /* gdkglextmm - C++ Wrapper for GdkGLExt
00010  * Copyright (C) 2002-2003  Naofumi Yasufuku
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00025  */
00026 
00027 #include <gdkmm/gl/defs.h>
00028 
00029 
00030 namespace Gdk
00031 {
00032 namespace GL
00033 {
00034 
00035 GDKMM_GL_VAR const int SUCCESS;
00036 
00037 GDKMM_GL_VAR const int ATTRIB_LIST_NONE;
00038 
00039 GDKMM_GL_VAR const int DONT_CARE;
00040 
00041 GDKMM_GL_VAR const int NONE;
00042 
00043 } // namespace GL
00044 } // namespace Gdk
00045 
00046 namespace Gdk
00047 {
00048 namespace GL
00049 {
00050 
00056 enum ConfigAttrib
00057 {
00058   USE_GL = 1,
00059   BUFFER_SIZE = 2,
00060   LEVEL = 3,
00061   RGBA = 4,
00062   DOUBLEBUFFER = 5,
00063   STEREO = 6,
00064   AUX_BUFFERS = 7,
00065   RED_SIZE = 8,
00066   GREEN_SIZE = 9,
00067   BLUE_SIZE = 10,
00068   ALPHA_SIZE = 11,
00069   DEPTH_SIZE = 12,
00070   STENCIL_SIZE = 13,
00071   ACCUM_RED_SIZE = 14,
00072   ACCUM_GREEN_SIZE = 15,
00073   ACCUM_BLUE_SIZE = 16,
00074   ACCUM_ALPHA_SIZE = 17,
00075   CONFIG_CAVEAT = 0x20,
00076   X_VISUAL_TYPE = 0x22,
00077   TRANSPARENT_TYPE = 0x23,
00078   TRANSPARENT_INDEX_VALUE = 0x24,
00079   TRANSPARENT_RED_VALUE = 0x25,
00080   TRANSPARENT_GREEN_VALUE = 0x26,
00081   TRANSPARENT_BLUE_VALUE = 0x27,
00082   TRANSPARENT_ALPHA_VALUE = 0x28,
00083   DRAWABLE_TYPE = 0x8010,
00084   RENDER_TYPE = 0x8011,
00085   X_RENDERABLE = 0x8012,
00086   FBCONFIG_ID = 0x8013,
00087   MAX_PBUFFER_WIDTH = 0x8016,
00088   MAX_PBUFFER_HEIGHT = 0x8017,
00089   MAX_PBUFFER_PIXELS = 0x8018,
00090   VISUAL_ID = 0x800B,
00091   SCREEN = 0x800C,
00092   SAMPLE_BUFFERS = 100000,
00093   SAMPLES = 100001
00094 };
00095 
00096 } // namespace GL
00097 
00098 } // namespace Gdk
00099 
00100 
00101 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00102 namespace Glib
00103 {
00104 
00105 template <>
00106 class Value<Gdk::GL::ConfigAttrib> : public Glib::Value_Enum<Gdk::GL::ConfigAttrib>
00107 {
00108 public:
00109   static GType value_type() G_GNUC_CONST;
00110 };
00111 
00112 } // namespace Glib
00113 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00114 
00115 
00116 namespace Gdk
00117 {
00118 
00119 namespace GL
00120 {
00121 
00122 
00126 enum ConfigCaveat
00127 {
00128   CONFIG_CAVEAT_DONT_CARE = 0xFFFFFFFF,
00129   CONFIG_CAVEAT_NONE = 0x8000,
00130   SLOW_CONFIG = 0x8001,
00131   NON_CONFORMANT_CONFIG = 0x800D
00132 };
00133 
00134 } // namespace GL
00135 
00136 } // namespace Gdk
00137 
00138 
00139 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00140 namespace Glib
00141 {
00142 
00143 template <>
00144 class Value<Gdk::GL::ConfigCaveat> : public Glib::Value_Enum<Gdk::GL::ConfigCaveat>
00145 {
00146 public:
00147   static GType value_type() G_GNUC_CONST;
00148 };
00149 
00150 } // namespace Glib
00151 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00152 
00153 
00154 namespace Gdk
00155 {
00156 
00157 namespace GL
00158 {
00159 
00160 
00164 enum VisualType
00165 {
00166   VISUAL_TYPE_DONT_CARE = 0xFFFFFFFF,
00167   TRUE_COLOR = 0x8002,
00168   DIRECT_COLOR = 0x8003,
00169   PSEUDO_COLOR = 0x8004,
00170   STATIC_COLOR = 0x8005,
00171   GRAY_SCALE = 0x8006,
00172   STATIC_GRAY = 0x8007
00173 };
00174 
00175 } // namespace GL
00176 
00177 } // namespace Gdk
00178 
00179 
00180 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00181 namespace Glib
00182 {
00183 
00184 template <>
00185 class Value<Gdk::GL::VisualType> : public Glib::Value_Enum<Gdk::GL::VisualType>
00186 {
00187 public:
00188   static GType value_type() G_GNUC_CONST;
00189 };
00190 
00191 } // namespace Glib
00192 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00193 
00194 
00195 namespace Gdk
00196 {
00197 
00198 namespace GL
00199 {
00200 
00201 
00205 enum TransparentType
00206 {
00207   TRANSPARENT_NONE = 0x8000,
00208   TRANSPARENT_RGB = 0x8008,
00209   TRANSPARENT_INDEX = 0x8009
00210 };
00211 
00212 } // namespace GL
00213 
00214 } // namespace Gdk
00215 
00216 
00217 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00218 namespace Glib
00219 {
00220 
00221 template <>
00222 class Value<Gdk::GL::TransparentType> : public Glib::Value_Enum<Gdk::GL::TransparentType>
00223 {
00224 public:
00225   static GType value_type() G_GNUC_CONST;
00226 };
00227 
00228 } // namespace Glib
00229 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00230 
00231 
00232 namespace Gdk
00233 {
00234 
00235 namespace GL
00236 {
00237 
00238 
00250 enum DrawableTypeMask
00251 {
00252   WINDOW_BIT = 1 << 0,
00253   PIXMAP_BIT = 1 << 1,
00254   PBUFFER_BIT = 1 << 2
00255 };
00256 
00258 inline DrawableTypeMask operator|(DrawableTypeMask lhs, DrawableTypeMask rhs)
00259   { return static_cast<DrawableTypeMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00260 
00262 inline DrawableTypeMask operator&(DrawableTypeMask lhs, DrawableTypeMask rhs)
00263   { return static_cast<DrawableTypeMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00264 
00266 inline DrawableTypeMask operator^(DrawableTypeMask lhs, DrawableTypeMask rhs)
00267   { return static_cast<DrawableTypeMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00268 
00270 inline DrawableTypeMask operator~(DrawableTypeMask flags)
00271   { return static_cast<DrawableTypeMask>(~static_cast<unsigned>(flags)); }
00272 
00274 inline DrawableTypeMask& operator|=(DrawableTypeMask& lhs, DrawableTypeMask rhs)
00275   { return (lhs = static_cast<DrawableTypeMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00276 
00278 inline DrawableTypeMask& operator&=(DrawableTypeMask& lhs, DrawableTypeMask rhs)
00279   { return (lhs = static_cast<DrawableTypeMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00280 
00282 inline DrawableTypeMask& operator^=(DrawableTypeMask& lhs, DrawableTypeMask rhs)
00283   { return (lhs = static_cast<DrawableTypeMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00284 
00285 } // namespace GL
00286 
00287 } // namespace Gdk
00288 
00289 
00290 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00291 namespace Glib
00292 {
00293 
00294 template <>
00295 class Value<Gdk::GL::DrawableTypeMask> : public Glib::Value_Flags<Gdk::GL::DrawableTypeMask>
00296 {
00297 public:
00298   static GType value_type() G_GNUC_CONST;
00299 };
00300 
00301 } // namespace Glib
00302 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00303 
00304 
00305 namespace Gdk
00306 {
00307 
00308 namespace GL
00309 {
00310 
00311 
00323 enum RenderTypeMask
00324 {
00325   RGBA_BIT = 1 << 0,
00326   COLOR_INDEX_BIT = 1 << 1
00327 };
00328 
00330 inline RenderTypeMask operator|(RenderTypeMask lhs, RenderTypeMask rhs)
00331   { return static_cast<RenderTypeMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00332 
00334 inline RenderTypeMask operator&(RenderTypeMask lhs, RenderTypeMask rhs)
00335   { return static_cast<RenderTypeMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00336 
00338 inline RenderTypeMask operator^(RenderTypeMask lhs, RenderTypeMask rhs)
00339   { return static_cast<RenderTypeMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00340 
00342 inline RenderTypeMask operator~(RenderTypeMask flags)
00343   { return static_cast<RenderTypeMask>(~static_cast<unsigned>(flags)); }
00344 
00346 inline RenderTypeMask& operator|=(RenderTypeMask& lhs, RenderTypeMask rhs)
00347   { return (lhs = static_cast<RenderTypeMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00348 
00350 inline RenderTypeMask& operator&=(RenderTypeMask& lhs, RenderTypeMask rhs)
00351   { return (lhs = static_cast<RenderTypeMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00352 
00354 inline RenderTypeMask& operator^=(RenderTypeMask& lhs, RenderTypeMask rhs)
00355   { return (lhs = static_cast<RenderTypeMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00356 
00357 } // namespace GL
00358 
00359 } // namespace Gdk
00360 
00361 
00362 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00363 namespace Glib
00364 {
00365 
00366 template <>
00367 class Value<Gdk::GL::RenderTypeMask> : public Glib::Value_Flags<Gdk::GL::RenderTypeMask>
00368 {
00369 public:
00370   static GType value_type() G_GNUC_CONST;
00371 };
00372 
00373 } // namespace Glib
00374 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00375 
00376 
00377 namespace Gdk
00378 {
00379 
00380 namespace GL
00381 {
00382 
00383 
00395 enum BufferMask
00396 {
00397   FRONT_LEFT_BUFFER_BIT = 1 << 0,
00398   FRONT_RIGHT_BUFFER_BIT = 1 << 1,
00399   BACK_LEFT_BUFFER_BIT = 1 << 2,
00400   BACK_RIGHT_BUFFER_BIT = 1 << 3,
00401   AUX_BUFFERS_BIT = 1 << 4,
00402   DEPTH_BUFFER_BIT = 1 << 5,
00403   STENCIL_BUFFER_BIT = 1 << 6,
00404   ACCUM_BUFFER_BIT = 1 << 7
00405 };
00406 
00408 inline BufferMask operator|(BufferMask lhs, BufferMask rhs)
00409   { return static_cast<BufferMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00410 
00412 inline BufferMask operator&(BufferMask lhs, BufferMask rhs)
00413   { return static_cast<BufferMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00414 
00416 inline BufferMask operator^(BufferMask lhs, BufferMask rhs)
00417   { return static_cast<BufferMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00418 
00420 inline BufferMask operator~(BufferMask flags)
00421   { return static_cast<BufferMask>(~static_cast<unsigned>(flags)); }
00422 
00424 inline BufferMask& operator|=(BufferMask& lhs, BufferMask rhs)
00425   { return (lhs = static_cast<BufferMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00426 
00428 inline BufferMask& operator&=(BufferMask& lhs, BufferMask rhs)
00429   { return (lhs = static_cast<BufferMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00430 
00432 inline BufferMask& operator^=(BufferMask& lhs, BufferMask rhs)
00433   { return (lhs = static_cast<BufferMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00434 
00435 } // namespace GL
00436 
00437 } // namespace Gdk
00438 
00439 
00440 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00441 namespace Glib
00442 {
00443 
00444 template <>
00445 class Value<Gdk::GL::BufferMask> : public Glib::Value_Flags<Gdk::GL::BufferMask>
00446 {
00447 public:
00448   static GType value_type() G_GNUC_CONST;
00449 };
00450 
00451 } // namespace Glib
00452 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00453 
00454 
00455 namespace Gdk
00456 {
00457 
00458 namespace GL
00459 {
00460 
00461 
00465 enum ConfigError
00466 {
00467   BAD_SCREEN = 1,
00468   BAD_ATTRIBUTE,
00469   NO_EXTENSION,
00470   BAD_VISUAL,
00471   BAD_CONTEXT,
00472   BAD_VALUE,
00473   BAD_ENUM
00474 };
00475 
00476 } // namespace GL
00477 
00478 } // namespace Gdk
00479 
00480 
00481 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00482 namespace Glib
00483 {
00484 
00485 template <>
00486 class Value<Gdk::GL::ConfigError> : public Glib::Value_Enum<Gdk::GL::ConfigError>
00487 {
00488 public:
00489   static GType value_type() G_GNUC_CONST;
00490 };
00491 
00492 } // namespace Glib
00493 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00494 
00495 
00496 namespace Gdk
00497 {
00498 
00499 namespace GL
00500 {
00501 
00502 
00506 enum RenderType
00507 {
00508   RGBA_TYPE = 0x8014,
00509   COLOR_INDEX_TYPE = 0x8015
00510 };
00511 
00512 } // namespace GL
00513 
00514 } // namespace Gdk
00515 
00516 
00517 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00518 namespace Glib
00519 {
00520 
00521 template <>
00522 class Value<Gdk::GL::RenderType> : public Glib::Value_Enum<Gdk::GL::RenderType>
00523 {
00524 public:
00525   static GType value_type() G_GNUC_CONST;
00526 };
00527 
00528 } // namespace Glib
00529 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00530 
00531 
00532 namespace Gdk
00533 {
00534 
00535 namespace GL
00536 {
00537 
00538 
00542 enum DrawableAttrib
00543 {
00544   PRESERVED_CONTENTS = 0x801B,
00545   LARGEST_PBUFFER = 0x801C,
00546   WIDTH = 0x801D,
00547   HEIGHT = 0x801E,
00548   EVENT_MASK = 0x801F
00549 };
00550 
00551 } // namespace GL
00552 
00553 } // namespace Gdk
00554 
00555 
00556 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00557 namespace Glib
00558 {
00559 
00560 template <>
00561 class Value<Gdk::GL::DrawableAttrib> : public Glib::Value_Enum<Gdk::GL::DrawableAttrib>
00562 {
00563 public:
00564   static GType value_type() G_GNUC_CONST;
00565 };
00566 
00567 } // namespace Glib
00568 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00569 
00570 
00571 namespace Gdk
00572 {
00573 
00574 namespace GL
00575 {
00576 
00577 
00581 enum PbufferAttrib
00582 {
00583   PBUFFER_PRESERVED_CONTENTS = 0x801B,
00584   PBUFFER_LARGEST_PBUFFER = 0x801C,
00585   PBUFFER_HEIGHT = 0x8040,
00586   PBUFFER_WIDTH = 0x8041
00587 };
00588 
00589 } // namespace GL
00590 
00591 } // namespace Gdk
00592 
00593 
00594 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00595 namespace Glib
00596 {
00597 
00598 template <>
00599 class Value<Gdk::GL::PbufferAttrib> : public Glib::Value_Enum<Gdk::GL::PbufferAttrib>
00600 {
00601 public:
00602   static GType value_type() G_GNUC_CONST;
00603 };
00604 
00605 } // namespace Glib
00606 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00607 
00608 
00609 namespace Gdk
00610 {
00611 
00612 namespace GL
00613 {
00614 
00615 
00627 enum EventMask
00628 {
00629   PBUFFER_CLOBBER_MASK = 1 << 27
00630 };
00631 
00633 inline EventMask operator|(EventMask lhs, EventMask rhs)
00634   { return static_cast<EventMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
00635 
00637 inline EventMask operator&(EventMask lhs, EventMask rhs)
00638   { return static_cast<EventMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
00639 
00641 inline EventMask operator^(EventMask lhs, EventMask rhs)
00642   { return static_cast<EventMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
00643 
00645 inline EventMask operator~(EventMask flags)
00646   { return static_cast<EventMask>(~static_cast<unsigned>(flags)); }
00647 
00649 inline EventMask& operator|=(EventMask& lhs, EventMask rhs)
00650   { return (lhs = static_cast<EventMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
00651 
00653 inline EventMask& operator&=(EventMask& lhs, EventMask rhs)
00654   { return (lhs = static_cast<EventMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
00655 
00657 inline EventMask& operator^=(EventMask& lhs, EventMask rhs)
00658   { return (lhs = static_cast<EventMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
00659 
00660 } // namespace GL
00661 
00662 } // namespace Gdk
00663 
00664 
00665 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00666 namespace Glib
00667 {
00668 
00669 template <>
00670 class Value<Gdk::GL::EventMask> : public Glib::Value_Flags<Gdk::GL::EventMask>
00671 {
00672 public:
00673   static GType value_type() G_GNUC_CONST;
00674 };
00675 
00676 } // namespace Glib
00677 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00678 
00679 
00680 namespace Gdk
00681 {
00682 
00683 namespace GL
00684 {
00685 
00686 
00690 enum EventType
00691 {
00692   DAMAGED = 0x8020,
00693   SAVED = 0x8021
00694 };
00695 
00696 } // namespace GL
00697 
00698 } // namespace Gdk
00699 
00700 
00701 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00702 namespace Glib
00703 {
00704 
00705 template <>
00706 class Value<Gdk::GL::EventType> : public Glib::Value_Enum<Gdk::GL::EventType>
00707 {
00708 public:
00709   static GType value_type() G_GNUC_CONST;
00710 };
00711 
00712 } // namespace Glib
00713 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00714 
00715 
00716 namespace Gdk
00717 {
00718 
00719 namespace GL
00720 {
00721 
00722 
00726 enum DrawableType
00727 {
00728   WINDOW = 0x8022,
00729   PBUFFER = 0x8023
00730 };
00731 
00732 } // namespace GL
00733 
00734 } // namespace Gdk
00735 
00736 
00737 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00738 namespace Glib
00739 {
00740 
00741 template <>
00742 class Value<Gdk::GL::DrawableType> : public Glib::Value_Enum<Gdk::GL::DrawableType>
00743 {
00744 public:
00745   static GType value_type() G_GNUC_CONST;
00746 };
00747 
00748 } // namespace Glib
00749 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00750 
00751 
00752 namespace Gdk
00753 {
00754 
00755 namespace GL
00756 {
00757 
00758 
00759 } // namespace GL
00760 } // namespace Gdk
00761 
00762 #endif /* _GDKMM_GL_TOKENS_H */
00763 

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/globals_vars.html0000644000175000001440000000577210400731256020021 00000000000000 gtkglextmm: Class Members


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Config.html0000644000175000001440000012672610400731256021552 00000000000000 gtkglextmm: Gdk::GL::Config Class Reference

Gdk::GL::Config Class Reference

#include <config.h>

List of all members.

Public Member Functions

virtual ~Config ()
GdkGLConfig * gobj ()
 Provides access to the underlying C GObject.
const GdkGLConfig * gobj () const
 Provides access to the underlying C GObject.
GdkGLConfig * gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::RefPtr< Gdk::Screen > get_screen ()
Glib::RefPtr< const Gdk::Screen > get_screen () const
bool get_attrib (int attribute, int &value) const
Glib::RefPtr< Gdk::Colormap > get_colormap ()
Glib::RefPtr< const Gdk::Colormap > get_colormap () const
Glib::RefPtr< Gdk::Visual > get_visual ()
Glib::RefPtr< const Gdk::Visual > get_visual () const
int get_depth () const
int get_layer_plane () const
int get_n_aux_buffers () const
int get_n_sample_buffers () const
bool is_rgba () const
bool is_double_buffered () const
bool is_stereo () const
bool has_alpha () const
bool has_depth_buffer () const
bool has_stencil_buffer () const
bool has_accum_buffer () const

Static Public Member Functions

static Glib::RefPtr< Configcreate (const int *attrib_list)
static Glib::RefPtr< Configcreate (const Glib::RefPtr< const Gdk::Screen > &screen, const int *attrib_list)
static Glib::RefPtr< Configcreate (ConfigMode mode)
static Glib::RefPtr< Configcreate (const Glib::RefPtr< const Gdk::Screen > &screen, ConfigMode mode)

Protected Member Functions

 Config (const int *attrib_list)
 Config (const Glib::RefPtr< const Gdk::Screen > &screen, const int *attrib_list)
 Config (ConfigMode mode)
 Config (const Glib::RefPtr< const Gdk::Screen > &screen, ConfigMode mode)

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gdk::GL::Configwrap (GdkGLConfig *object, bool take_copy=false)


Detailed Description

OpenGL frame buffer configuration.


Constructor & Destructor Documentation

virtual Gdk::GL::Config::~Config  )  [virtual]
 

Gdk::GL::Config::Config const int *  attrib_list  )  [explicit, protected]
 

Gdk::GL::Config::Config const Glib::RefPtr< const Gdk::Screen > &  screen,
const int *  attrib_list
[protected]
 

Gdk::GL::Config::Config ConfigMode  mode  )  [explicit, protected]
 

Gdk::GL::Config::Config const Glib::RefPtr< const Gdk::Screen > &  screen,
ConfigMode  mode
[protected]
 


Member Function Documentation

static Glib::RefPtr<Config> Gdk::GL::Config::create const Glib::RefPtr< const Gdk::Screen > &  screen,
ConfigMode  mode
[static]
 

static Glib::RefPtr<Config> Gdk::GL::Config::create ConfigMode  mode  )  [static]
 

Returns an OpenGL frame buffer configuration that match the specified display mode.

Parameters:
mode display mode bit mask.
Returns:
the new Gdk::GL::Config if it is successful, NULL RefPtr otherwise.

static Glib::RefPtr<Config> Gdk::GL::Config::create const Glib::RefPtr< const Gdk::Screen > &  screen,
const int *  attrib_list
[static]
 

static Glib::RefPtr<Config> Gdk::GL::Config::create const int *  attrib_list  )  [static]
 

Returns an OpenGL frame buffer configuration that match the specified attributes.

Parameters:
attrib_list a list of attribute/value pairs. The last attribute must be Gdk::GL::ATTRIB_LIST_NONE.
Returns:
the new Gdk::GL::Config if it is successful, NULL RefPtr otherwise.
Examples:
font.cc, gears.cc, logo.cc, pixmap-mixed.cc, pixmap.cc, shapes.cc, share-lists.cc, simple-darea.cc, simple-mixed.cc, and simple.cc.

bool Gdk::GL::Config::get_attrib int  attribute,
int &  value
const
 

Gets information about a OpenGL frame buffer configuration.

Parameters:
attribute The attribute to be returned.
value Returns the requested value.
Returns:
true if it succeeded, false otherwise.

Glib::RefPtr<const Gdk::Colormap> Gdk::GL::Config::get_colormap  )  const
 

Gets the Gdk::Colormap that is appropriate for the OpenGL frame buffer configuration.

Returns:
The appropriate Gdk::Colormap.

Glib::RefPtr<Gdk::Colormap> Gdk::GL::Config::get_colormap  ) 
 

Gets the Gdk::Colormap that is appropriate for the OpenGL frame buffer configuration.

Returns:
The appropriate Gdk::Colormap.

int Gdk::GL::Config::get_depth  )  const
 

Gets the color depth of the OpenGL-capable visual.

Returns:
Number of bits per pixel.

int Gdk::GL::Config::get_layer_plane  )  const
 

Gets the layer plane (level) of the frame buffer. Zero is the default frame buffer. Positive layer planes correspond to frame buffers that overlay the default buffer, and negative layer planes correspond to frame buffers that underlie the default frame buffer.

Returns:
Layer plane.

int Gdk::GL::Config::get_n_aux_buffers  )  const
 

Gets the number of auxiliary color buffers.

Returns:
Number of auxiliary color buffers.

int Gdk::GL::Config::get_n_sample_buffers  )  const
 

Gets the number of multisample buffers.

Returns:
Number of multisample buffers.

Glib::RefPtr<const Gdk::Screen> Gdk::GL::Config::get_screen  )  const
 

Get Gdk::Screen.

Returns:
The Gdk::Screen.

Glib::RefPtr<Gdk::Screen> Gdk::GL::Config::get_screen  ) 
 

Get Gdk::Screen.

Returns:
The Gdk::Screen.

Glib::RefPtr<const Gdk::Visual> Gdk::GL::Config::get_visual  )  const
 

Gets the Gdk::Visual that is appropriate for the OpenGL frame buffer configuration.

Returns:
The appropriate Gdk::Visual.

Glib::RefPtr<Gdk::Visual> Gdk::GL::Config::get_visual  ) 
 

Gets the Gdk::Visual that is appropriate for the OpenGL frame buffer configuration.

Returns:
The appropriate Gdk::Visual.

const GdkGLConfig* Gdk::GL::Config::gobj  )  const [inline]
 

Provides access to the underlying C GObject.

GdkGLConfig* Gdk::GL::Config::gobj  )  [inline]
 

Provides access to the underlying C GObject.

GdkGLConfig* Gdk::GL::Config::gobj_copy  ) 
 

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

bool Gdk::GL::Config::has_accum_buffer  )  const
 

Returns whether the configured frame buffer has accumulation buffer.

Returns:
true if the frame buffer has accumulation buffer, false otherwise.

bool Gdk::GL::Config::has_alpha  )  const
 

Returns whether the configured color buffer has alpha bits.

Returns:
true if the color buffer has alpha bits, false otherwise.

bool Gdk::GL::Config::has_depth_buffer  )  const
 

Returns whether the configured frame buffer has depth buffer.

Returns:
true if the frame buffer has depth buffer, false otherwise.

bool Gdk::GL::Config::has_stencil_buffer  )  const
 

Returns whether the configured frame buffer has stencil buffer.

Returns:
true if the frame buffer has stencil buffer, false otherwise.

bool Gdk::GL::Config::is_double_buffered  )  const
 

Returns whether the configuration supports the double-buffered visual.

Returns:
true if the double-buffered visual is supported, false otherwise.

bool Gdk::GL::Config::is_rgba  )  const
 

Returns whether the configured frame buffer is RGBA mode.

Returns:
true if the configured frame buffer is RGBA mode, false otherwise.

bool Gdk::GL::Config::is_stereo  )  const
 

Returns whether the configuration supports the stereo visual.

Returns:
true if the stereo visual is supported, false otherwise.


Friends And Related Function Documentation

Glib::RefPtr< Gdk::GL::Config > wrap GdkGLConfig *  object,
bool  take_copy = false
[related]
 

Parameters:
object The C instance
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 18:47:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/dirs.html0000644000175000001440000000321010400731256016265 00000000000000 gtkglextmm: Directory Hierarchy

gtkglextmm Directories

This directory hierarchy is sorted roughly, but not completely, alphabetically:
Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/simple-darea_8cc-example.html0000644000175000001440000005050610400731257022070 00000000000000 gtkglextmm: simple-darea.cc

simple-darea.cc

Simple Gtk::GL::DrawingArea example.

// -*- C++ -*-
/*
 * simple.cc:
 * Simple Gtk::GL::DrawingArea example.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#include <iostream>
#include <cstdlib>

#include <gtkmm.h>

#include <gtkglmm.h>

#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif

#include <GL/gl.h>
#include <GL/glu.h>


//
// OpenGL frame buffer configuration utilities.
//

struct GLConfigUtil
{
  static void print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                              const char* attrib_str,
                              int attrib,
                              bool is_boolean);

  static void examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig);
};

//
// Print a configuration attribute.
//
void GLConfigUtil::print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                                   const char* attrib_str,
                                   int attrib,
                                   bool is_boolean)
{
  int value;

  if (glconfig->get_attrib(attrib, value))
    {
      std::cout << attrib_str << " = ";
      if (is_boolean)
        std::cout << (value == true ? "true" : "false") << std::endl;
      else
        std::cout << value << std::endl;
    }
  else
    {
      std::cout << "*** Cannot get "
                << attrib_str
                << " attribute value\n";
    }
}

//
// Print configuration attributes.
//
void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig)
{
  std::cout << "\nOpenGL visual configurations :\n\n";

  std::cout << "glconfig->is_rgba() = "
            << (glconfig->is_rgba() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_double_buffered() = "
            << (glconfig->is_double_buffered() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_stereo() = "
            << (glconfig->is_stereo() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_alpha() = "
            << (glconfig->has_alpha() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_depth_buffer() = "
            << (glconfig->has_depth_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_stencil_buffer() = "
            << (glconfig->has_stencil_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_accum_buffer() = "
            << (glconfig->has_accum_buffer() ? "true" : "false")
            << std::endl;

  std::cout << std::endl;

  print_gl_attrib(glconfig, "Gdk::GL::USE_GL",           Gdk::GL::USE_GL,           true);
  print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE",      Gdk::GL::BUFFER_SIZE,      false);
  print_gl_attrib(glconfig, "Gdk::GL::LEVEL",            Gdk::GL::LEVEL,            false);
  print_gl_attrib(glconfig, "Gdk::GL::RGBA",             Gdk::GL::RGBA,             true);
  print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER",     Gdk::GL::DOUBLEBUFFER,     true);
  print_gl_attrib(glconfig, "Gdk::GL::STEREO",           Gdk::GL::STEREO,           true);
  print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS",      Gdk::GL::AUX_BUFFERS,      false);
  print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE",         Gdk::GL::RED_SIZE,         false);
  print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE",       Gdk::GL::GREEN_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE",        Gdk::GL::BLUE_SIZE,        false);
  print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE",       Gdk::GL::ALPHA_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE",       Gdk::GL::DEPTH_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE",     Gdk::GL::STENCIL_SIZE,     false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE",   Gdk::GL::ACCUM_RED_SIZE,   false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE",  Gdk::GL::ACCUM_BLUE_SIZE,  false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false);

  std::cout << std::endl;
}


//
// Simple OpenGL scene.
//

class SimpleGLScene : public Gtk::GL::DrawingArea
{
public:
  SimpleGLScene(const Glib::RefPtr<const Gdk::GL::Config>& config);
  virtual ~SimpleGLScene();

protected:
  virtual void on_realize();
  virtual bool on_configure_event(GdkEventConfigure* event);
  virtual bool on_expose_event(GdkEventExpose* event);

};

SimpleGLScene::SimpleGLScene(const Glib::RefPtr<const Gdk::GL::Config>& config)
  : Gtk::GL::DrawingArea(config)
{
}

SimpleGLScene::~SimpleGLScene()
{
}

void SimpleGLScene::on_realize()
{
  // We need to call the base on_realize()
  Gtk::GL::DrawingArea::on_realize();

  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return;

  GLUquadricObj* qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  glNewList(1, GL_COMPILE);
  gluSphere(qobj, 1.0, 20, 20);
  glEndList();

  static GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0};
  static GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0};
  glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
  glLightfv(GL_LIGHT0, GL_POSITION, light_position);
  glEnable(GL_LIGHTING);
  glEnable(GL_LIGHT0);
  glEnable(GL_DEPTH_TEST);

  glClearColor(1.0, 1.0, 1.0, 1.0);
  glClearDepth(1.0);

  glViewport(0, 0, get_width(), get_height());

  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluPerspective(40.0, 1.0, 1.0, 10.0);

  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  gluLookAt(0.0, 0.0, 3.0,
            0.0, 0.0, 0.0,
            0.0, 1.0, 0.0);
  glTranslatef(0.0, 0.0, -3.0);

  glwindow->gl_end();
  // *** OpenGL END ***
}

bool SimpleGLScene::on_configure_event(GdkEventConfigure* event)
{
  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return false;

  glViewport(0, 0, get_width(), get_height());

  glwindow->gl_end();
  // *** OpenGL END ***

  return true;
}

bool SimpleGLScene::on_expose_event(GdkEventExpose* event)
{
  //
  // Get GL::Window.
  //

  Glib::RefPtr<Gdk::GL::Window> glwindow = get_gl_window();

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glwindow->gl_begin(get_gl_context()))
    return false;

  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  glCallList(1);

  // Swap buffers.
  if (glwindow->is_double_buffered())
    glwindow->swap_buffers();
  else
    glFlush();

  glwindow->gl_end();
  // *** OpenGL END ***

  return true;
}


//
// The application class.
//

class Simple : public Gtk::Window
{
public:
  Simple(const Glib::RefPtr<const Gdk::GL::Config>& config);
  virtual ~Simple();

protected:
  // signal handlers:
  void on_button_quit_clicked();

protected:
  // member widgets:
  Gtk::VBox m_VBox;
  SimpleGLScene m_SimpleGLScene;
  Gtk::Button m_ButtonQuit;
};

Simple::Simple(const Glib::RefPtr<const Gdk::GL::Config>& config)
  : m_VBox(false, 0), m_SimpleGLScene(config), m_ButtonQuit("Quit")
{
  //
  // Top-level window.
  //

  set_title("Gtk::GL::DrawingArea");

  // Get automatically redrawn if any of their children changed allocation.
  set_reallocate_redraws(true);

  add(m_VBox);

  //
  // Simple OpenGL scene.
  //

  m_SimpleGLScene.set_size_request(200, 200);

  m_VBox.pack_start(m_SimpleGLScene);

  //
  // Simple quit button.
  //

  m_ButtonQuit.signal_clicked().connect(
    sigc::mem_fun(*this, &Simple::on_button_quit_clicked));

  m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0);

  //
  // Show window.
  //

  show_all();
}

Simple::~Simple()
{}

void Simple::on_button_quit_clicked()
{
  Gtk::Main::quit();
}


//
// Main.
//

int main(int argc, char** argv)
{
  Gtk::Main kit(argc, argv);

  //
  // Init gtkglextmm.
  //

  Gtk::GL::init(argc, argv);

  //
  // Query OpenGL extension version.
  //

  int major, minor;
  Gdk::GL::query_version(major, minor);
  std::cout << "OpenGL extension version - "
            << major << "." << minor << std::endl;

  //
  // Configure OpenGL-capable visual.
  //

  Glib::RefPtr<Gdk::GL::Config> glconfig;

  // Try double-buffered visual
  glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB    |
                                     Gdk::GL::MODE_DEPTH  |
                                     Gdk::GL::MODE_DOUBLE);
  if (!glconfig)
    {
      std::cerr << "*** Cannot find the double-buffered visual.\n"
                << "*** Trying single-buffered visual.\n";

      // Try single-buffered visual
      glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB   |
                                         Gdk::GL::MODE_DEPTH);
      if (!glconfig)
        {
          std::cerr << "*** Cannot find any OpenGL-capable visual.\n";
          std::exit(1);
        }
    }

  // print frame buffer attributes.
  GLConfigUtil::examine_gl_attrib(glconfig);

  //
  // Instantiate and run the application.
  //

  Simple simple(glconfig);

  kit.run(simple);

  return 0;
}

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/tokens_8h__dep__incl.md50000644000175000001440000000004010400731257021101 000000000000006198454d065a9df7121f5cf421aaa9aegtkglextmm-1.2.0/docs/reference/html/tokens_8h__dep__incl.map0000644000175000001440000000042610400731257021201 00000000000000base referer rect $gdkglmm_8h.html 785,135 870,159 rect $context_8h.html 193,159 329,183 rect $widget_8h.html 762,233 893,257 rect $gtkglmm_8h.html 942,173 1025,197 rect $drawable_8h.html 380,159 526,183 rect $pixmap_8h.html 576,159 714,183 rect $window_8h.html 576,207 714,231 gtkglextmm-1.2.0/docs/reference/html/tokens_8h__dep__incl.png0000644000175000001440000001156610400731257021217 00000000000000‰PNG  IHDR T_6Ã?-PLTEþÿÿÿ§§§oooÃÃÃo???¿¿¿___ßßߟŸŸÿÿÿëSëÍtRNS@æØf÷IDATxœíÏRã8Ççö°WÞ`aa{à8}œ?ÍÂqª¨^8ÒÃvÁqèÞîpìÚ ŽL7Œ}Ü)ª¦¹ ‚} $˜øV?ÉIÇvb[?EßÏÔà&’b}ò“lKÖW1_-ºÀ`€€€XX` `€€€XX` `€€€XX` `€€€XX` `€€€XX` `€€€XX` `€€€XX` `€€€XX` `€€€XX` `€€€XX` `€€€XX` `Áˆîê‹.Šmž»««uß}n6,³¾°KÒ>,­k§ù&,§ö«¥Ù",ŸÝEUHƒEX2 {ƒóÐÔS‡e²`Á 8Tˆ²,îý…µI•Y º®÷f‰°¸t$Bó-pù`7¥·Øp œk ¦hDo±Ñ4áÇMè-6×÷ÀŽÛÂ6Õ·j]‡¥m¤Í #Ü·4/ éºZð¦YÐÐ0àj«Ð, š†¸©Aƒ,hvâäghЏø2.jÐ –FÂÁÏÒ –£%ÐpïTÁy –* $8§Û,]HpM—-XÆ0àØ…g-p! ¬æR_ÏÅ: G-è.6 Ì|lAWW¢b:'-XXSЭT¯up¨sàž i ºF}IÜÑÀ5 ¬7]†Ç”Ì+ƒ3¸eݦ Ëü‚Ù2¸¢CØl ¸Ð)RaÁ½à!ÎX`ïxt1><÷ Ó‰pàˆÖêeÁ÷&3†#»paÄ ¬7&‰Lbá,Þ[MC“¦>ò¢‹¶h ,};R@2Õ0-¶x µÀNSàèÔ T±VW¿ æ%4]–Z`% ¸=RMë¨ JüÙÒX`% ¸­€bXÆghÚi‚ Ù6<7 l„æ(Pê˜4ß ÕÓ8ˆç øÃÀ‚˜vRetÒ³±€¿)°|q°;%Ï\•é™XÀ]A/ Ô}8öAU³ ê¨jŽ&kÛý«©p‡[A Î@üÔTÑ—ßÞ*²ê.·33íñ¯Ëho°ƤM£bÁñ‡N¯õ¡öÞ?¶¿œ‡ÞÅÍîMt×ú©µ/,¸¸IÞÛ8 ¸‡tñ%>ÊÂNoCZÐ[;íì¾Úì„;þÎùº°`ëdëüæáö¡#,8ÙòÕ{fs`L\bsˆ´ ¿u>Ä›N|{‚xàÎø“þ ‘4Ý›gÒQÍŽè\½Õ>H[7ÑιxæùY¾ø4Š"„ÞvF,h¢¬ W¡¹sH‘ô ÎT¿ w¸s~¾J‚~ü¬ý‘Ù Y-s~¸ªIMö+ÑlåÏDµ*Ç2÷ÿt׎ɿ©Äµ2_Y¬åW9Œß•~¨Rw–M—Õ˜Sõd’éÄ×kù%£"ëçQ†åÆ.«1 2n™Ks²/`º!L~3‘øDSåÿ‹ VÆsd'ÏŸºããTâX‡¦—ùV8Šy+óér §îë%™™ë-ç}¿VL$¾’L•OŸBkmDI (=s·9 Zgö¯ Y§®ë'ÁÁ¤qfùÍXÓ«×~/3©¬]uÊdƳd`Ä‚Õ<Ìuò|2bANikUa’š‘cÐ ¦«ˆ'd`&dvêk~‡©¸÷Ùd ^˜ídc¨_ñ•nΛËSûy( ¶ {‡¹,¦,ˆ§®L<Õ­ [ÀÙ;œ`5oG½,ØÎ¦1{i¢^?1mA»Ÿê¬~ ‡j´S;µße:Åçñµ#Î臧6ŒÇàæV¶¶ÃK݃‹Nd´Iï G/¥ÆõŸ#ä/œJ<ÃsíÁ̴ࣲàc§5Ó‚Ì!áEüN?<µIè寮¯kÁÓ6eÒfN 2Ë_`–CïO®ÐŽKÕ•5˜iÁ–²`+œiÁÌ«FSlÐOm†oZЩkÁ½Ì2¼çµ`æU£‚2)²À|( ª†͂˳þÖÜ|><ê½éµýŸü½ö—»è¤uØþ⟶/ŸÚbg 6þ^pò‰yWåÏñ8{mˆ}tò(Òõ¢“^ë(> NhÀ}ëà18Ùô/úííX¼k_%Rl¥²ÛþâÅ»ç2]™…hgD¦Qx‹]ÑõÁE{ÿûè&¾[‘|&Æøç”ev”^ŠB«—“ôħ-àºkUíòÁØ‚›Íƒþ›Öúƒ×­Ã½/ïzWOWýÛã×ï¶[‡·Çaënó`Wì¼»8¸è]õƒÇ«AÐïH,Ƚ°Cékãìµ!öO—;çë¾G›—ñÇóïÅ.àÿrþòñè@Æ9 Ÿ(¶@¤òéà×–×[‹dº2 ÿÊ4 ÿè‰]ÑÕöÍCgçáê!Ûèêü?^,òÑÇø^—*ÎA¤÷6 E¡ÕË*‡·zâSð„•t…x0¶ ³ÞîŸWý^_4a+|7úAÿ®u¶ïZâ•ÖÕg±“6bGð(Û ?O,ÐÆÙkCéýƒØó=Úü&~ߤ÷_ü#z·/-Co‰b D*Ÿ/ã-oÆk‰¿‘YøG”iõÅ.‘’u¶z{Ÿ6Ä6¢¼(É1þE± 8JOtßí«—“ôħ,`ÍT^ƒ±¢áï÷E½>üK·à: z?¼¦ÉNQ©´ë»_ש_0² =Û.!=Î^³àžÝûÞ}ÒðÔ.JkÏO^›Ë‘Šç‹?ÿöD¯£ Ê4 iã‰×ÿ÷²ÓÿñÇ/ÅVæÉ2ë#:³Ë¿2;JOü¿ç«—“ôÄÓ0†B|Œ`nèNÆ‚S ‡ëš¿2ü¨X v†A w­S‹ [}Òšg¯YðG,cm>ÉX bGÑÏ'e, oê¶ø¦F×Zýv)¿©wb#bA_‹Ø³×;öÅVÅ‘OzŒVùWfçÄ‚ŸOÔHr(²€5%z“Ül~Pý‚O³à"xýî²ux$ý‚ú´ëþvpœ² ÷ª‘6Î^³àH´·Ç¾GÕ/Q´×÷o¨_p™¶ ãBiÒ/8–­v¼«ÕÑ™O™F·¾ì„Ñu¯ótõЦ-µÚ²_0=Æ?Ç‚âT¿@Z}¶$‡§EZPârÚ¤£s„à“fÁV ϶‚ë{yŽ|¹Kœ#ô§,˜&=Î^³`Cö½=± Ô9‚Øu}]Äþúv'eAÖeÒÉs„þ›qÊL£«Xž#ˆxýö‡øFü'¶êAä3Ïÿ•Ù9¨sQ该ÆIzâ) ˜¢ªW­ôÕÅ¢›0y™H ´qö ºO—4s’CXJ^¦ùYd±2;‡élÒ¯¤,à•--ÂVVõ¾~÷{m ´qö ºO•4{4AXJ^¦¹Yd²2;‡²X5Z„‡VVõÞÅ›µ-ÐÆÙOP4è~²¤9cJ¢Tr2ÍË"›•Ù9È ¤_iõÈËÄÌ=ż‘E%Bþ¬,r^ϸPžÉD,4ÚÇIâRªI›¼Ö š>âl"¡`üqÞ/K l„‚ñÇéX¶ {À‹ ºjú ,(ÁðúsûUØ{/Îh½ä^棲LYŸëZ0Zó.ÿLÑÖ,°Ò Œn³ù"ì|Z;Èû`Q棲ÌÌM*h¥ëÍMúSO8ãÚa}}‡äu2LÍMa%Œ.­ n:t¥ÛSW=£ÌGe™±€o’ŸéN`.fVZž‹ÐͺNtõ’îz¥-ˆÍ[À®CÂٱבA¡·™ 8,>_€¡ºØNÁùˆ[=ö$ÃÛldAïíÚÙ¤éÛhFg®Ç,OaKx: ØiÆ·ÙÖ_…ñ[yŽ Y¾fò)êš?’IŠÜUdgýe› o‚ÞW3kÁ¸ o¼º†é1{`CK Âäm¶Âûj†-Ð`«.^DêܵdÕ‚ÑM°¢ûj|4Ô¾ËÜìXj*ÝSä ‰P±j`+8cA3=ˆy5° ²€ñ)¢¼#cKÙZ(pÊÆg•rzÀ“ô ‹¡À- 8k‹ÑŽ”»ü' ZfßÌ}ÍŠœ—æó€¡È¢°ÖBAÙGÜØXIq鶇­/±ÅE?Ë—ÞΪšŒÏ˜fºÜg\;÷Ç¥3²µÂ.ã'Ô7{*,Uç,Û q-¯­Qq¥rÛ\s1$²x`°Öø»?ΪÂߨ´€u…BŽ0Í¥hmà\µÓ«0¯TÉ6²¡6]kT»&aÙæ•<ø‡‰1È×bªäšu ˜—(3þ•c˜§ÈI5Ý`ór…†fYPñõ",à¾5lÔƒfYPñƒ/Æî•+ zÐ( ªÞ®Z”Ü«Ø;q„¼pŸ:™ñ QT=¢ ´€÷âaƒ&YPyüÂ"-°âAÝ ´ ,Zaô@+í=ã© –,¨üYkêfP`ÁÄúÃhAõ¡L‹¶Ày ,È\aTÿ˜‹·Àqd¯p¿ïí^…ôzÎêñm,WbÐÖw°bAQ.X`ŃªEY3V`ØØÚØŠBñ"½éqít_®Ä ­ï`Å‚‡Ð ,xPõ„AV`ñúáOa? 7 ü‡C¹ƒ¶¾ƒ ê pvÅg=X¼>B|ðÝwÿ$oý¹ƒödÔ9zîXਣX¿>Büßðßi½‰b\‰Á®µ.¸dûe市I¿ h}„øËÆÖ¡´`Ø/ •ôõ˜-xQwX”[ØypM©·Ož#d¯À0ØìK üäA®ÄбeAýYO®Yàœ²ë®ÀÀkÁêjÝÙîYà˜I‹PoV 2 [-pÊÕ"Ô\A&ÂÕù50°ÕM Ø&žMä0×Û ÝSä‰nb¾‹«8sÞhÄã«9Œ1ò°Nw-°ãÁÌŒXðW¾çøñËe lx0óƒ™í9Ñfâí¶6<˜ õ †Ï‰6ýqÌ´4®[À3±D&¦&ÑúçXLLV«½ªÃŸf¬rß‚ØÆ ƒ…,ô¨6Tb¾kNY•ª!X Üc&Ó7ÊŸ—±ío« ÊÃl{ *ÁþX»À‚ªp?ÂBd,¨÷³­=”N³ kÆ‹—,Ûí¥öïg?g Þ`àní<Œj³ïgÍxñÔ&îÅšïaÁ¼+ÜØX?g\›i äT/ÏxíïÀ‚)øMàTAÕæñ‡NëÀ‹w¿–s]´/^¬f¼üf»Ð ññm¿½­Mw#˜¿µŒ*H hn‹ˆ½55×E›ñâÅjÆ‹×;øµE/<žP,Mwpkyž`+- ñì‚=_ÍrÐf¼x±šñâõ/ã-õ¶‡C²`4ÝLí‚ñ»ÃÒšÛ"*ÿÛÝ9ãŋՌOüâÉ‚ TýXPŒ È0*f ¢kÍ5ãÅ{R3^¼þv âØ‡sÃÿ°ÑÕ Jý!ý;éœÉ%ow5 ÔŒïQÍxIúgI¿à”€o!ø²Ì(TetŽp/Aÿïc ÔŒï^Íxñ†çÑñ­¿¾Ýå)÷UµŠ´ {nËÔ«™oƒ¥qÎÕfeÏm™z5óm° 2áÚÆeãî88%-BæÜ–©W³Þ 8èjFN:Ë4ÜStžš‘¢¨W84î´ùÌ“ ,°°˜•˜),°°À@À  ,,°°À@À  ,,°°À@À  ,,°°À@À  ,,°°À@À  ,,°°À@À  ,,°°À@À  ,,°°À@À  ,,°°À@À  ,,°°À@À  ,,qüt²H?g¯NIEND®B`‚gtkglextmm-1.2.0/docs/reference/html/classGdk_1_1GL_1_1Window.html0000644000175000001440000004164610400731256021611 00000000000000 gtkglextmm: Gdk::GL::Window Class Reference

Gdk::GL::Window Class Reference
[GL Drawables]

#include <window.h>

Inheritance diagram for Gdk::GL::Window:

Inheritance graph
[legend]
Collaboration diagram for Gdk::GL::Window:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~Window ()
GdkGLWindow * gobj ()
 Provides access to the underlying C GObject.
const GdkGLWindow * gobj () const
 Provides access to the underlying C GObject.
GdkGLWindow * gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::RefPtr< Gdk::Window > get_window ()
Glib::RefPtr< const Gdk::Window > get_window () const

Static Public Member Functions

static Glib::RefPtr< Windowcreate (const Glib::RefPtr< const Config > &glconfig, const Glib::RefPtr< const Gdk::Window > &window, const int *attrib_list=0)

Protected Member Functions

 Window (const Glib::RefPtr< const Config > &glconfig, const Glib::RefPtr< const Gdk::Window > &window, const int *attrib_list=0)

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gdk::GL::Windowwrap (GdkGLWindow *object, bool take_copy=false)

Detailed Description

OpenGL window which is located onscreen.


Constructor & Destructor Documentation

virtual Gdk::GL::Window::~Window  )  [virtual]
 

Gdk::GL::Window::Window const Glib::RefPtr< const Config > &  glconfig,
const Glib::RefPtr< const Gdk::Window > &  window,
const int *  attrib_list = 0
[protected]
 


Member Function Documentation

static Glib::RefPtr<Window> Gdk::GL::Window::create const Glib::RefPtr< const Config > &  glconfig,
const Glib::RefPtr< const Gdk::Window > &  window,
const int *  attrib_list = 0
[static]
 

Glib::RefPtr<const Gdk::Window> Gdk::GL::Window::get_window  )  const
 

Returns the Gdk::Window associated with glwindow .

Notice that Gdk::GLWindow is not Gdk::Window, but another Gdk::Drawable which have an associated Gdk::Window.

Returns:
The Gdk::Window associated with glwindow .

Glib::RefPtr<Gdk::Window> Gdk::GL::Window::get_window  ) 
 

Returns the Gdk::Window associated with glwindow .

Notice that Gdk::GLWindow is not Gdk::Window, but another Gdk::Drawable which have an associated Gdk::Window.

Returns:
The Gdk::Window associated with glwindow .

const GdkGLWindow* Gdk::GL::Window::gobj  )  const [inline]
 

Provides access to the underlying C GObject.

Reimplemented from Gdk::GL::Drawable.

GdkGLWindow* Gdk::GL::Window::gobj  )  [inline]
 

Provides access to the underlying C GObject.

Reimplemented from Gdk::GL::Drawable.

GdkGLWindow* Gdk::GL::Window::gobj_copy  ) 
 

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.


Friends And Related Function Documentation

Glib::RefPtr< Gdk::GL::Window > wrap GdkGLWindow *  object,
bool  take_copy = false
[related]
 

Parameters:
object The C instance
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated on Mon Feb 27 18:47:57 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2version_8h__dep__incl.md50000644000175000001440000000004010400731256025242 000000000000008ea6c75fa81f49f7fa97424ca8d123f4gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2version_8h__dep__incl.map0000644000175000001440000000012310400731256025334 00000000000000base referer rect $gdkglmm_8h.html 196,8 281,32 rect $gtkglmm_8h.html 332,8 414,32 gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2version_8h__dep__incl.png0000644000175000001440000000162210400731256025350 00000000000000‰PNG  IHDR§'YšÇ!PLTEþÿÿo???¿¿¿___ßßߟŸŸÿÿÿÛ€!tRNS@æØfIDAThí˜Asš@Çó¸öØNÊc§NBŽ'£Wã$»ÇÌ4rL¢\[gªGÂî©©¬ºû)û`!Ô˜´5Ã;:AM³ïÔ€òQsQºB£ãÒà|© 3@õL(§Òb§û*ã5„ƒƒv`Ïl62jíc„GÆ5QÉÏöþB&6ã~¥UlP³0GPJ‘¡jO»oÝ!3Põ,9ãÑØ3›ún‰)ÎKWiXЩêýRAf€ u2 <Íe]b³€Áj£ˆ¶9a„ùè–`„}Dµp®bD&°æ(²;p5\®d¥äEd±%ÌÎPèfÃbÇS°D…' gtkglextmm: gdkmm/gl/pixmap.h Source File

pixmap.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GDKMM_GL_PIXMAP_H
00004 #define _GDKMM_GL_PIXMAP_H
00005 
00006 #include <glibmm.h>
00007 
00008 // -*- C++ -*-
00009 /* gdkglextmm - C++ Wrapper for GdkGLExt
00010  * Copyright (C) 2002-2003  Naofumi Yasufuku
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00025  */
00026 
00027 #include <gdkmm/gl/defs.h>
00028 
00029 #include <gdkmm/drawable.h>
00030 #include <gdkmm/pixmap.h>
00031 
00032 #include <gdkmm/gl/config.h>
00033 #include <gdkmm/gl/drawable.h>
00034 
00035 
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GdkGLPixmap GdkGLPixmap;
00038 typedef struct _GdkGLPixmapClass GdkGLPixmapClass;
00039 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00040 
00041 
00042 namespace Gdk
00043 {
00044 
00045 namespace GL
00046 { class Pixmap_Class; } // namespace GL
00047 
00048 } // namespace Gdk
00049 namespace Gdk
00050 {
00051 namespace GL
00052 {
00053 
00060 class Pixmap : public Gdk::Drawable,
00061                public Gdk::GL::Drawable
00062 {
00063   
00064 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00065 
00066 public:
00067   typedef Pixmap CppObjectType;
00068   typedef Pixmap_Class CppClassType;
00069   typedef GdkGLPixmap BaseObjectType;
00070   typedef GdkGLPixmapClass BaseClassType;
00071 
00072 private:  friend class Pixmap_Class;
00073   static CppClassType pixmap_class_;
00074 
00075 private:
00076   // noncopyable
00077   Pixmap(const Pixmap&);
00078   Pixmap& operator=(const Pixmap&);
00079 
00080 protected:
00081   explicit Pixmap(const Glib::ConstructParams& construct_params);
00082   explicit Pixmap(GdkGLPixmap* castitem);
00083 
00084 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00085 
00086 public:
00087   virtual ~Pixmap();
00088 
00089 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00090   static GType get_type()      G_GNUC_CONST;
00091   static GType get_base_type() G_GNUC_CONST;
00092 #endif
00093 
00095   GdkGLPixmap*       gobj()       { return reinterpret_cast<GdkGLPixmap*>(gobject_); }
00096 
00098   const GdkGLPixmap* gobj() const { return reinterpret_cast<GdkGLPixmap*>(gobject_); }
00099 
00101   GdkGLPixmap* gobj_copy();
00102 
00103 private:
00104 
00105 
00106 protected:
00107   Pixmap(const Glib::RefPtr<const Config>& glconfig,
00108          const Glib::RefPtr<const Gdk::Pixmap>& pixmap,
00109          const int* attrib_list = 0);
00110 
00111 public:
00112   
00113   static Glib::RefPtr<Pixmap> create(const Glib::RefPtr<const Config>& glconfig, const Glib::RefPtr<const Gdk::Pixmap>& pixmap, const int* attrib_list =  0);
00114 
00115 
00116 public:
00117 
00118   
00125   Glib::RefPtr<Gdk::Pixmap> get_pixmap();
00126 
00127   
00134   Glib::RefPtr<const Gdk::Pixmap> get_pixmap() const;
00135 
00136 
00137 public:
00138 
00139 public:
00140   //C++ methods used to invoke GTK+ virtual functions:
00141 
00142 protected:
00143   //GTK+ Virtual Functions (override these to change behaviour):
00144 
00145   //Default Signal Handlers::
00146 
00147 
00148 };
00149 
00163 } // namespace GL
00164 } // namespace Gdk
00165 
00166 
00167 namespace Glib
00168 {
00174   Glib::RefPtr<Gdk::GL::Pixmap> wrap(GdkGLPixmap* object, bool take_copy = false);
00175 }
00176 
00177 
00178 #endif /* _GDKMM_GL_PIXMAP_H */
00179 

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/graph_legend.dot0000644000175000001440000000420510400731256017572 00000000000000digraph G { edge [fontname="Helvetica",fontsize=10,labelfontname="Helvetica",labelfontsize=10]; node [fontname="Helvetica",fontsize=10,shape=record]; Node9 [shape="box",label="Inherited",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",style="filled" fontcolor="white"]; Node10 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; Node10 [shape="box",label="PublicBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classPublicBase.html"]; Node11 -> Node10 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; Node11 [shape="box",label="Truncated",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="red",URL="$classTruncated.html"]; Node13 -> Node9 [dir=back,color="darkgreen",fontsize=10,style="solid",fontname="Helvetica"]; Node13 [shape="box",label="ProtectedBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classProtectedBase.html"]; Node14 -> Node9 [dir=back,color="firebrick4",fontsize=10,style="solid",fontname="Helvetica"]; Node14 [shape="box",label="PrivateBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classPrivateBase.html"]; Node15 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; Node15 [shape="box",label="Undocumented",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="grey75"]; Node16 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; Node16 [shape="box",label="Templ< int >",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classTempl.html"]; Node17 -> Node16 [dir=back,color="orange",fontsize=10,style="dashed",label="< int >",fontname="Helvetica"]; Node17 [shape="box",label="Templ< T >",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classTempl.html"]; Node18 -> Node9 [dir=back,color="darkorchid3",fontsize=10,style="dashed",label="m_usedClass",fontname="Helvetica"]; Node18 [shape="box",label="Used",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classUsed.html"]; } gtkglextmm-1.2.0/docs/reference/html/graph_legend.png0000644000175000001440000001042710400731256017573 00000000000000‰PNG  IHDRãßk„-i9PLTEþÿÿÃÃØ2Í?(ÿ¡Šcÿo¿¿¿ŸŸŸ???ßßß___ÿÿÿAØœtRNS@æØfŒIDATxœí‹–£ ¶Esúžê>å‘ÿÿØ ¾âdƒˆkŽÑŠ!l6Ì4á#(›ÏÝ 2p”¥ÇAéÀqP:p”¥³püŽÜÕX@LïÁÝm½ÎÒqÇ'¹¾ðbÈq}^y½ .9î ÏœX.Âq p<8ž9p<8ž9p<8ž9¯v¼6çÇ•_ml™Ïœi¸Î|5²'Åá¸`¬êc§Ïç‹"püY̆ëdÀW#{RüŽgµMÇÌb¸üûÁ£ârœõ¯t.ò5Û×¼o…hyßI¯å.ïÉÿ+Ñõ}§à5ߎc9 v«\ÿÙMF³Eñù½zoçÄñ¦£ã­oOmÃX#{a¸§çñ®S‡Zùj¨8_Žc)†ÁîÔKã­1ºêÆÅ©u¼’Ö{;'Ž319®–Ó¶`µ~õš#z¹Rq.Ê>»õüør|K;æã¸W\©›¦^þhy³:÷|”ãb渾±ëo™ng;a€ ¬ÇŸÆÚq3–KÇõCò¦â]µ,>R7ËkOtœŽëy\.ÄÕU#;ëÒêÌãã{×lÏã¬Y¬JfŽË™¼{¸ãê¬Ò:nÖãê`‹õøÓÙ_‹Éñi=κÙT>:.×èëùÓ—.ózt\Ÿx3}°m¸M_±á®«~^é8$?O–Žà8(w9þû É_ÇÏÏ“%‡ãàœ—9®€Þ/ä‘zkà8pŽƒÒã tà8(8JŽƒÒã tà8(K¦dnÀqP:p”ÎdÊ¥­%nŽ7f¦´ã_|k'ñÜ€ãÀMSz8ÊA›¢•Ö»ZÖ¼oïõÖÃ"oÓá8pã£w›5;Æ3)x¥öØ쮾v¡Í 8Üø©³Û¬vÜì#oÔf-oªƒ'ß NTÿ··;pÏj¿å\O@á8p‚ý߸Ùt\Î俇u|˜Ê7—+õ|Wäp¸ñ£çêñœShÇ›^[_›•zžÀqà¾wJŽƒÒã tà8(|·”¥ÇAéÀqP:p”¥ÇAéÀqP:ø ”¥ÇAéÀqP:p”¥ÇAéÀqP:ø ”¥ÇAéÀqP:p”¥ÇAéàx¿Éö“(ߎw5·4 : jàžÉ9~ÃHOŽ;´è¿ÀGÅ}¢õ×Þs¢>ùÈê×Mò¾Ù/Ë“Žæ'Žûà×Xú—ð… i„gГõ•ÑDêrBã ß&ã¹5"¥ãGDvܳöKQáx¦€ãdQáx¦€ãdQáx¦€ãdQáx¦€ãdQé×g²ÓFt¬·7¬_–i¶òrÈuÏ Ùç68uø¼ì Sƒ3Ÿ;7ì‹¶Üuþ(¸ËίÍÕ‹½’«95ÐeÜ7’ßÁñбªéVñÔM»(æ2û¸äºŒ§ùÞÏtuD9îÚ7Çç­h×%§èÁ™Gpü»ovâÍ™’™÷2«½ê×-šzgÛÙÜWQ«ñÀÌñÝ2û¸æºªë;óþÛq×6¸9~XÛ=8óŽ÷ÍN¼Å“œƒî?¸)èwíÛÇowœõvFÖ×¼ïìZ¥åú Ý”‘ïs¼çíp£öhìäû½Só¶âU¼L× k«leCD}ÄÔÞª`½{Ü7­•6j²ê+Sõ,ú:ênXÇu·cf¦Lêf †2­.g‚™§­zK×°o·}:ƼRgzSÊ”µÍ‹-K}_öàw‘gM39Þ0Æ»Áñ¶Þ¨‡2êVNjLôµžÛºný>Ž×¨‘RZ}l¨lÑÔÞJ +Þ»·ÁÙqÛ ™hÍ¥ÜV=‹¾ŽºÖÏq]™ÍÌô‚I}t\•étPŒÙ̧޲5lÇÛí6e0‹3 }k¯ºai¢ŸºE=°±É²ã‹ÜÈ Ö9§Lntœ©4ÇÕë–Õ¦Œ:Ia:gÕLÛli†Có¶â±©Û#2û˜~ÍW½{ÜÏ9M+Tê²â®µUÏ¢¯£î†õs\ǰ™-S7O˜Ú2ošyŠ­a;Þn§°1¨˜Å™†^í¥l7SV޳±)úHË›ê öíãsÇíýÍ b­U„˜féb×À¶LËuê¼S5\Ï_ß.pÎÕÆv­m*›"ÚÚíjÁ¹ îk•Y+:ýfbª^GŸEÝ ë績±™™F,báÞl¶mý¼·®­ÇוÚzè+ÞUSÙùËÍP7ËóOÇ=¸‘A\ÇÙæ<ÞÎ_ƒÕÐL3ÿè'º4oÇñÅ<®Î"šÚõ°êÝÛpÉñŠ×°UÏ¢¯£î†uq|XÎŽ^ÙÌæóxkb1ÁfŽÏzëò<¾¬t1³fZl9.gòÎwÜmòËÜÈ ¦ãê4Ë®ÇÛÕz\]Ak¹.Ô^‡¬Ç…uÜg=îÚ†KŽ õ®i«ž¯ÇWQwú8®S™–Ü{ëq=s±Æ¥³'\‹Éñi=Î:;•;.Wêë¹C—Ûä—=˜h=nšÛªóÛõu•nø dX½VºPÛp{j̺õ§9¾Ž›+ M_ÙÊL•òˆ­Ý^WqmÃ5Ç»^ŒUÏ¢¯£î†uq\§ÒNëÂÕu›¯ˆ¹X&˜=4ë­€ë*«Jí¥œñºŠ| Žçœ¦H£?7ªíJÝ!ûùñvyej7|–Ÿk#œO@Àgù¹’v9Ï´pübT¢'ÀñäAŸä¸Ë%üj‡ã%5¢Ç€ãp<pœ¦š}àø8NV™p^+Åi+w"Î/5¦v\IžÒó¿SYž¦û¦`âÝ­x¬_#M¬¸•<™ç©$O§x¼áºÙðx¿¸{›ãi4ÿ›DòdÝwJºYñx¿*Vñ…ä ¢ýý›Àò„ýQñÏçfÅ#þrzâ‰<ñj%¾äI;/ÚX}”`÷*uwÛi‰FêÇ#Jžøm0N´Ï ×½ŠÇÝcêµTWS;ËòÔo‚Q‚M^ßixì]^æ½–`¸Å.ÈcIžøŒ]E!5÷úVÅcïd´è¶è#fgñ–'šÇãT¿Še#Vzï̽$ñn]‘Gm\©Ä·<Ñz<^€1Îúr2üŽé¢ܤvlË]W‰A,Ä& õùdeøM».¦yŽ/yÌï­ü&è¦õòÛÇ󮥹γö¿ã1øý+DŒíó3üÎÝsSLæ –å‘êÞ7Q¾{E]% ·¾îh}Y§Ú„ëp"r\Ü¿ úã-s}ŠX9¹ä:Óüänx&Ž‹øšG´üIŽ÷òù8.|«fbÉãõBÄo¤äLFŽ‹ØšÇ²œÖñh=@Û·yŸf.ÈËqû£þ8–SJ+{âo\=Fp‘¡ã"®æQ$Ïßñb¿SèBŽŽ‹˜šG™Êé$’6eg>ã4sA¾ ަy Ë©$‘2a?>Pp‘³ã"žæô–çë8©áWžewâuȶ!dí¸ˆöY?¹å4’“'K×}—§pµWï«ûŽïi2§¶œBrêDÉz.ä:Š»Ó[®´ ß'޿ĖHN›%¡á«zKö•ÿ¦#Bofhv!ÃÖ‹vBnöõT¥êÅ~…¶|TḈ¤9©å᎓fHÕ_[S8“rWRâjÚfÙ8Þ×z‹äåfÁãô­7sn‡§ %Mù¸<ÅqgiNiy¨ä”éõÕg{²±•øä¸0U\è)ºZ:Ά êMÉ>ú$.åxœÉœÐò@Éér£2|OŽ}Ç«†7•¼7ü0¾~˜©Mßu™æ?j­Ò4~ è’Ãÿ‘y”ã"Šæd–‡9N–M]GÙv\MÏ•Ðk=q³a^çœ\¯U*3ÍëGLù¸<ÍqCs*ËC$§Ê‰¤sN.n9^ 5=Ë›úk=>¿v¨ ¶ú©º¤)—:."hNdy€ä4 ~RàÛqé-¯§ë*ê3ŸŽ×Uä2eü HlŽë*.PkNcùeÉI’¡è’g~\È“"ÖœÂò«ŽS$BÐÏúά+Ov\PkN`ùEÉóïˆ+‚WfoÁ&4xLî¸ Ö<ÜòK’g@axh Ùò|Ç­æÁ–_<´õÁéï|ÖSE8.H5ÜŠÂßñÀ–‡fžçRPz¤š<Ù[ò f&]ö >Pã‚RóË=%irX¾^'Ü¢¸$É4¿n¹ŸãÍ Jõ%‚‹t[Û\¶ÜGòë- 4<àÉ£ÔTi4¿j¹‡äW›’_ñg™K N–DókYÜ¿ÖÄÔÊü,óˆ‚dšû?ÇUòK̓à~”í¸ ÑÜßòˆŽ_Ïç•‚‹8.HÎA½-w“Ü¿Y—3y«àâŽ+‚5÷µÜErï&]LâóbÁÅ{áÓ¹§å’{6çZóßs|—åæ¹×E–sǽZr­á\¼ÎqE æÎEO%woÆ¥&ÿàïì…éÜ}2?‘ܵ×õ |É;W$ÐüPrÇèWZùù@ðïu\MçN–9îøBûþ¼ìƒz^ß—5w™Ì$?zMpß§¼€×;.¦óSË÷? èݤ?|8>pÑó3Ë÷$?‹åÛ\B9]3qIó“%˶ä'q<ÛÁAï,¸4Z¾)ùa ¯| ø)è /.x~`ù–ãGÕûÄÆ5B'àø&¾ž÷ÿþõ;üµÌj?ˆë¸3è§]|<ßܧh¸îúê_GÑÓ9ŽK„ÞÀñs gtkglextmm: gdkmm/gl/version.h Source File

version.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gdkglextmm - C++ Wrapper for GdkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GDKMM_GL_VERSION_H
00021 #define _GDKMM_GL_VERSION_H
00022 
00023 #include <gdkmm/gl/defs.h>
00024 
00025 /*
00026  * Compile time version.
00027  */
00028 #define GDKGLEXTMM_MAJOR_VERSION (1)
00029 #define GDKGLEXTMM_MINOR_VERSION (2)
00030 #define GDKGLEXTMM_MICRO_VERSION (0)
00031 #define GDKGLEXTMM_INTERFACE_AGE (0)
00032 #define GDKGLEXTMM_BINARY_AGE    (0)
00033 
00034 /*
00035  * Check whether a gdkglextmm version equal to or greater than
00036  * major.minor.micro is present.
00037  */
00038 #define GDKGLEXTMM_CHECK_VERSION(major, minor, micro)                            \
00039   (GDKGLEXTMM_MAJOR_VERSION > (major) ||                                         \
00040   (GDKGLEXTMM_MAJOR_VERSION == (major) && GDKGLEXTMM_MINOR_VERSION > (minor)) || \
00041   (GDKGLEXTMM_MAJOR_VERSION == (major) && GDKGLEXTMM_MINOR_VERSION == (minor) && \
00042    GDKGLEXTMM_MICRO_VERSION >= (micro)))
00043 
00044 /*
00045  * Library version.
00046  */
00047 
00048 GDKMM_GL_VAR const int gdkglextmm_major_version;
00049 GDKMM_GL_VAR const int gdkglextmm_minor_version;
00050 GDKMM_GL_VAR const int gdkglextmm_micro_version;
00051 GDKMM_GL_VAR const int gdkglextmm_interface_age;
00052 GDKMM_GL_VAR const int gdkglextmm_binary_age;
00053 
00054 #endif // _GDKMM_GL_VERSION_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2init_8h__dep__incl.md50000644000175000001440000000004010400731256024520 0000000000000001e6570594a1d13afd7beb62a0c83af8gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2init_8h__dep__incl.map0000644000175000001440000000012310400731256024612 00000000000000base referer rect $gdkglmm_8h.html 169,8 254,32 rect $gtkglmm_8h.html 305,8 387,32 gtkglextmm-1.2.0/docs/reference/html/gdkglext_2gdkmm_2gl_2init_8h__dep__incl.png0000644000175000001440000000147710400731256024636 00000000000000‰PNG  IHDRŒ'î»bà!PLTEþÿÿo???¿¿¿___ßßߟŸŸÿÿÿÛ€!tRNS@æØfÌIDATX…íØ=oÚ@ð|¾B¥ÁZ¡ÈŒ$ÁXBã»±C*32`ùÖŠ¶‚Íå¼Ûß§ÌcŸ±1ñ oQhëg°r‘õ÷óËs>Pnø?Q7ÝÀeªd\S•Œkª’qMõ. ^ÈØ2Žxên™™-!>?Ã+%£d¼'£rÆ9i Œ“­Sÿâ“àÄÑ%fTr[p©¸ËMŽNKÞšŸ¡¥%ÄËCËZÀXÖºþJ§hŸQ¹#7Ã!`,‚‘x‹mç{Œ—ÊùŒ‚ ï8Ƴ;DwˆYg°&÷¤‹Ù›Él6v O6³½ QsÿO¯üïT‰ŽöÛøs"½ÛÂŒœ„7›êwZ¯°©¤“°!êấþ<eä$ìo*ÞHmvf¡“\™“p½fÕÓQFNBùE½d”Œÿ„qéú ·ýýU2®©JÆ5Õ+&çé÷LL9IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/globals_func.html0000644000175000001440000000770710400731256020001 00000000000000 gtkglextmm: Class Members


Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/drawingarea_8h__dep__incl.md50000644000175000001440000000004010400731256022061 00000000000000980e6864e2d22d4c2c031bcef618848dgtkglextmm-1.2.0/docs/reference/html/drawingarea_8h__dep__incl.map0000644000175000001440000000006010400731256022153 00000000000000base referer rect $gtkglmm_8h.html 222,8 305,32 gtkglextmm-1.2.0/docs/reference/html/drawingarea_8h__dep__incl.png0000644000175000001440000000146310400731256022172 00000000000000‰PNG  IHDR:'mS™ž*PLTEþÿÿoWWW;;;???¿¿¿___ßßߟŸŸÿÿÿAÛètRNS@æØf·IDATX…íØÍnÚ@ð¼ÐGé#ôŠTd›"B¤‚c!…Ýcª&"GD‰ð©pèÁx1³*aÇ~—ήicÃÚ|(JÓÊsØ ÿüË`ã(gáK®³¿ Ȭ\wzåºÓ+×^Ï­ƒƒ‹ÿÑþš#ÞZY© å3s]®ûïtËWO¬£É£°‰ÌÄë°@mzÌ%bYÈÒùÑ£d”xfRg“-Ý\“:±Å;CtËB–®s¼ŽoëfÑR7zFŸBýÍ­[wʵ+RŠ[Ý¿£%íÖo¼g.ü °+:€Æ‹p27¨[ß:KÓ­Ùä«p·ÓëÚ#A>’f´¢nl)uV¹åáì¬2mèDëH)ÜXýO}®é]šŽéØmcG¿ºà {0½NâÒtµ{ÍÀÙÕ¥>ê,gîØÑŠº»ª¡ÒÙº&~¸œðÍ:)…±Ý ÌÓ­f»PÂ;ØÆ”àŽÁF÷£RÒÛ G¨³lïƒ:ÚòsÆuF Ôq< ¢Î'q]U¤ÄFñÄûráÙÅbñk€]©Â¯h|‡ùù”ˆóî ÙÙa€:ó-Bvt¡Z·™[ÅtŸ{rvsÜpv+ðMkz%trv+a‡×xB†ºhv|TVÌ.Eg•»Bõ˜®KDJDžwÀV–7wLŸ ];"@žwTk’^B'|©ç]OèÜvi˜Ô=¤êÄ58ÃÁÙ¯u-™RüB×,@sP\©#âšÅãn8¶üË‘·¥K½Wà5kh¶å5ÓFšÎ$ª[€:ÍîÀ¾ûleóµæ~úmç“­îFfwöêj÷×ò[êê`êÅqÔivgŸn ¥èQÏ4Õ=eý Aåº\—©{¾:îÌÿSqzåºÓëeë~Œ\‡öÏBæ%IEND®B`‚gtkglextmm-1.2.0/docs/reference/html/windowext_8h-source.html0000644000175000001440000002240410400731257021260 00000000000000 gtkglextmm: gdkmm/gl/windowext.h Source File

windowext.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* gdkglextmm - C++ Wrapper for GdkGLExt
00003  * Copyright (C) 2002-2003  Naofumi Yasufuku
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA.
00018  */
00019 
00020 #ifndef _GDKMM_GL_WINDOWEXT_H
00021 #define _GDKMM_GL_WINDOWEXT_H
00022 
00023 #include <glibmm.h>
00024 
00025 #include <gdkmm/gl/defs.h>
00026 #include <gdkmm/gl/window.h>
00027 
00028 namespace Gdk
00029 {
00030   namespace GL
00031   {
00032 
00033     class WindowExtProxy
00034     {
00035     private:
00036       WindowExtProxy(const Glib::RefPtr<Gdk::Window>& window)
00037         : window_(window)
00038       {}
00039 
00040     private:
00041       WindowExtProxy(const WindowExtProxy&);
00042       WindowExtProxy& operator=(const WindowExtProxy&);
00043 
00044     public:
00045 
00056       Glib::RefPtr<Window> set_gl_capability(const Glib::RefPtr<const Config>& glconfig,
00057                                              const int* attrib_list = 0);
00058 
00063       void unset_gl_capability();
00064 
00069       bool is_gl_capable() const;
00070 
00075       Glib::RefPtr<Window> get_gl_window() const;
00076 
00081       Glib::RefPtr<Gdk::GL::Drawable> get_gl_drawable() const;
00082 
00083     private:
00084       const Glib::RefPtr<Gdk::Window>& window_;
00085 
00086       friend WindowExtProxy ext(const Glib::RefPtr<Gdk::Window>&);
00087       friend const WindowExtProxy ext(const Glib::RefPtr<const Gdk::Window>&);
00088     };
00089 
00106     inline
00107     WindowExtProxy ext(const Glib::RefPtr<Gdk::Window>& window)
00108     { return WindowExtProxy(window); }
00109 
00116     inline
00117     const WindowExtProxy ext(const Glib::RefPtr<const Gdk::Window>& window)
00118     { return WindowExtProxy(reinterpret_cast<const Glib::RefPtr<Gdk::Window>&>(window)); }
00119 
00120   } // namespace GL
00121 } // namespace Gdk
00122 
00123 #endif // _GDKMM_GL_WINDOWEXT_H

Generated on Mon Feb 27 18:46:53 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/pixmap_8cc-example.html0000644000175000001440000004720210400731257021022 00000000000000 gtkglextmm: pixmap.cc

pixmap.cc

Simple offscreen OpenGL rendering example.

// -*- C++ -*-
/*
 * pixmap.cc:
 * Simple off-screen OpenGL rendering example.
 *
 * written by Naofumi Yasufuku  <naofumi@users.sourceforge.net>
 */

#include <iostream>
#include <cstdlib>

#include <gtkmm.h>

#include <gtkglmm.h>

#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#endif

#include <GL/gl.h>
#include <GL/glu.h>


//
// OpenGL frame buffer configuration utilities.
//

struct GLConfigUtil
{
  static void print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                              const char* attrib_str,
                              int attrib,
                              bool is_boolean);

  static void examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig);
};

//
// Print a configuration attribute.
//
void GLConfigUtil::print_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig,
                                   const char* attrib_str,
                                   int attrib,
                                   bool is_boolean)
{
  int value;

  if (glconfig->get_attrib(attrib, value))
    {
      std::cout << attrib_str << " = ";
      if (is_boolean)
        std::cout << (value == true ? "true" : "false") << std::endl;
      else
        std::cout << value << std::endl;
    }
  else
    {
      std::cout << "*** Cannot get "
                << attrib_str
                << " attribute value\n";
    }
}

//
// Print configuration attributes.
//
void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr<const Gdk::GL::Config>& glconfig)
{
  std::cout << "\nOpenGL visual configurations :\n\n";

  std::cout << "glconfig->is_rgba() = "
            << (glconfig->is_rgba() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_double_buffered() = "
            << (glconfig->is_double_buffered() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->is_stereo() = "
            << (glconfig->is_stereo() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_alpha() = "
            << (glconfig->has_alpha() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_depth_buffer() = "
            << (glconfig->has_depth_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_stencil_buffer() = "
            << (glconfig->has_stencil_buffer() ? "true" : "false")
            << std::endl;
  std::cout << "glconfig->has_accum_buffer() = "
            << (glconfig->has_accum_buffer() ? "true" : "false")
            << std::endl;

  std::cout << std::endl;

  print_gl_attrib(glconfig, "Gdk::GL::USE_GL",           Gdk::GL::USE_GL,           true);
  print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE",      Gdk::GL::BUFFER_SIZE,      false);
  print_gl_attrib(glconfig, "Gdk::GL::LEVEL",            Gdk::GL::LEVEL,            false);
  print_gl_attrib(glconfig, "Gdk::GL::RGBA",             Gdk::GL::RGBA,             true);
  print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER",     Gdk::GL::DOUBLEBUFFER,     true);
  print_gl_attrib(glconfig, "Gdk::GL::STEREO",           Gdk::GL::STEREO,           true);
  print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS",      Gdk::GL::AUX_BUFFERS,      false);
  print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE",         Gdk::GL::RED_SIZE,         false);
  print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE",       Gdk::GL::GREEN_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE",        Gdk::GL::BLUE_SIZE,        false);
  print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE",       Gdk::GL::ALPHA_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE",       Gdk::GL::DEPTH_SIZE,       false);
  print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE",     Gdk::GL::STENCIL_SIZE,     false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE",   Gdk::GL::ACCUM_RED_SIZE,   false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE",  Gdk::GL::ACCUM_BLUE_SIZE,  false);
  print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false);

  std::cout << std::endl;
}


//
// Simple OpenGL scene using GL::Pixmap.
//

class PixmapGLScene : public Gtk::DrawingArea
{
public:
  PixmapGLScene();
  virtual ~PixmapGLScene();

protected:
  // init OpenGL context
  void init_gl();

protected:
  virtual bool on_configure_event(GdkEventConfigure* event);
  virtual bool on_expose_event(GdkEventExpose* event);

protected:
  // OpenGL rendering stuff:
  Glib::RefPtr<Gdk::GL::Config> m_GLConfig;
  Glib::RefPtr<Gdk::GL::Context> m_GLContext;
  Glib::RefPtr<Gdk::Pixmap> m_Pixmap;
};

PixmapGLScene::PixmapGLScene()
  : m_GLConfig(0), m_GLContext(0), m_Pixmap(0)
{
  //
  // Configure OpenGL-capable visual.
  //

  // Try single-buffered visual
  m_GLConfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB    |
                                       Gdk::GL::MODE_DEPTH  |
                                       Gdk::GL::MODE_SINGLE);
  if (!m_GLConfig)
    {
      std::cerr << "*** Cannot find any OpenGL-capable visual.\n";
      std::exit(1);
    }

  // print frame buffer attributes.
  GLConfigUtil::examine_gl_attrib(m_GLConfig);

  //
  // Set OpenGL-capable colormap.
  //

  set_colormap(m_GLConfig->get_colormap());
}

PixmapGLScene::~PixmapGLScene()
{
}

void PixmapGLScene::init_gl()
{
  GLUquadricObj* qobj = gluNewQuadric();
  gluQuadricDrawStyle(qobj, GLU_FILL);
  glNewList(1, GL_COMPILE);
  gluSphere(qobj, 1.0, 20, 20);
  glEndList();

  static GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0};
  static GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0};
  glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
  glLightfv(GL_LIGHT0, GL_POSITION, light_position);
  glEnable(GL_LIGHTING);
  glEnable(GL_LIGHT0);
  glEnable(GL_DEPTH_TEST);

  glClearColor(1.0, 1.0, 1.0, 1.0);
  glClearDepth(1.0);

  glViewport(0, 0, get_width(), get_height());

  glMatrixMode(GL_PROJECTION);
  glLoadIdentity();
  gluPerspective(40.0, 1.0, 1.0, 10.0);

  glMatrixMode(GL_MODELVIEW);
  glLoadIdentity();
  gluLookAt(0.0, 0.0, 3.0,
            0.0, 0.0, 0.0,
            0.0, 1.0, 0.0);
  glTranslatef(0.0, 0.0, -3.0);
}

bool PixmapGLScene::on_configure_event(GdkEventConfigure* event)
{
  //
  // Create an OpenGL off-screen rendering area.
  //

  m_Pixmap = Gdk::Pixmap::create(get_window(),
                                 get_width(), get_height(),
                                 m_GLConfig->get_depth());

  //
  // Set OpenGL-capability to the pixmap (invoke extension method).
  //

  Glib::RefPtr<Gdk::GL::Pixmap> glpixmap =
    Gdk::GL::ext(m_Pixmap).set_gl_capability(m_GLConfig);

  //
  // Create OpenGL rendering context (not direct).
  //

  if (!m_GLContext)
    m_GLContext = Gdk::GL::Context::create(glpixmap, false);

  //
  // GL calls.
  //

  // *** OpenGL BEGIN ***
  if (!glpixmap->gl_begin(m_GLContext))
    return false;

  static bool is_initialized = false;
  if (!is_initialized)
    {
      init_gl();
      is_initialized = true;
    }

  glViewport(0, 0, get_width(), get_height());

  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  glCallList(1);

  glFlush();

  glpixmap->gl_end();
  // *** OpenGL END ***

  return true;
}

bool PixmapGLScene::on_expose_event(GdkEventExpose* event)
{
  if (!m_Pixmap)
    return false;

  get_window()->draw_drawable(get_style()->get_fg_gc(get_state()),
                              m_Pixmap,
                              event->area.x, event->area.y,
                              event->area.x, event->area.y,
                              event->area.width, event->area.height);

  return true;
}


//
// The application class.
//

class Pixmap : public Gtk::Window
{
public:
  Pixmap();
  virtual ~Pixmap();

protected:
  // signal handlers:
  void on_button_quit_clicked();

protected:
  // member widgets:
  Gtk::VBox m_VBox;
  PixmapGLScene m_PixmapGLScene;
  Gtk::Button m_ButtonQuit;
};

Pixmap::Pixmap()
  : m_VBox(false, 0), m_ButtonQuit("Quit")
{
  //
  // Top-level window.
  //

  set_title("Pixmap");

  add(m_VBox);

  //
  // Simple OpenGL scene using GL::Pixmap.
  //

  m_PixmapGLScene.set_size_request(200, 200);

  m_VBox.pack_start(m_PixmapGLScene);

  //
  // Simple quit button.
  //

  m_ButtonQuit.signal_clicked().connect(
    sigc::mem_fun(*this, &Pixmap::on_button_quit_clicked));

  m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0);

  //
  // Show window.
  //

  show_all();
}

Pixmap::~Pixmap()
{}

void Pixmap::on_button_quit_clicked()
{
  Gtk::Main::quit();
}


//
// Main.
//

int main(int argc, char** argv)
{
  Gtk::Main kit(argc, argv);

  //
  // Init gtkglextmm.
  //

  Gtk::GL::init(argc, argv);

  //
  // Query OpenGL extension version.
  //

  int major, minor;
  Gdk::GL::query_version(major, minor);
  std::cout << "OpenGL extension version - "
            << major << "." << minor << std::endl;

  //
  // Instantiate and run the application.
  //

  Pixmap pixmap;

  kit.run(pixmap);

  return 0;
}

Generated on Mon Feb 27 18:46:52 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/modules.html0000644000175000001440000000277210400731257017011 00000000000000 gtkglextmm: Module Index

gtkglextmm Modules

Here is a list of all modules:
Generated on Mon Feb 27 18:47:59 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/gtkglext_2gtkmm_2gl_2defs_8h.html0000644000175000001440000000613110400731256022671 00000000000000 gtkglextmm: gtkmm/gl/defs.h File Reference

defs.h File Reference

#include <glibmmconfig.h>

Include dependency graph for defs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GTKMM_GL_VAR   extern


Define Documentation

#define GTKMM_GL_VAR   extern
 


Generated on Mon Feb 27 18:47:09 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/html/context_8h.html0000644000175000001440000001042710400731256017417 00000000000000 gtkglextmm: gdkmm/gl/context.h File Reference

context.h File Reference

#include <glibmm.h>
#include <gdkmm/gl/defs.h>
#include <gdkmm/gl/tokens.h>
#include <gdkmm/gl/config.h>
#include <gdkmm/gl/drawable.h>
#include <GL/gl.h>

Include dependency graph for context.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gdk
namespace  Gdk::GL
namespace  Glib

Classes

class  Gdk::GL::Context


Generated on Mon Feb 27 18:47:04 2006 for gtkglextmm by  doxygen 1.4.4
gtkglextmm-1.2.0/docs/reference/Makefile.am0000644000175000001440000000316707647327610015557 00000000000000## -*- Makefile -*- ## Makefile.am for gtkglextmm/docs/reference EXTRA_DIST = \ Doxyfile.in DOXYGEN_CONFIG = Doxyfile DOC_MODULE = gtkglextmm-$(GTKGLEXTMM_API_VERSION) HFILE_GLOB = \ $(top_srcdir)/gdkglext/gdkglmm.h \ $(top_srcdir)/gdkglext/gdkmm/gl/*.h \ $(top_srcdir)/gtkglext/gtkglmm.h \ $(top_srcdir)/gtkglext/gtkmm/gl/*.h CCFILE_GLOB = \ $(top_srcdir)/gdkglext/gdkmm/gl/*.cc \ $(top_srcdir)/gtkglext/gtkmm/gl/*.cc HTML_IMAGES = ############## TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) DOC_STAMPS = html-build.stamp if ENABLE_DOXYGEN_DOC all-local: html-build.stamp #### html #### html-build.stamp: $(DOXYGEN_CONFIG) $(HFILE_GLOB) $(CCFILE_GLOB) -rm -rf html $(DOXYGEN_PATH) $(DOXYGEN_CONFIG) touch html-build.stamp endif ############## clean-local: -rm -f *~ $(DOC_STAMPS) maintainer-clean-local: clean cd $(srcdir) && rm -rf html install-data-local: $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/html (installfiles=`echo $(srcdir)/html/*`; \ if test "$$installfiles" = '$(srcdir)/html/*'; \ then echo '-- Nothing to install' ; \ else \ for i in $$installfiles; do \ echo '-- Installing '$$i ; \ $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/html; \ done; \ fi) # # Require doxygen when making dist # if ENABLE_DOXYGEN_DOC dist-check-doxygen: else dist-check-doxygen: @echo "*** doxygen must be installed and enabled in order to make dist" @false endif dist-hook: dist-check-doxygen dist-hook-local mkdir $(distdir)/html -cp $(srcdir)/html/* $(distdir)/html images=$(HTML_IMAGES) ; \ for i in $$images ; do \ cp $(srcdir)/$$i $(distdir)/html ; \ done .PHONY: dist-hook-local gtkglextmm-1.2.0/docs/reference/Makefile.in0000644000175000001440000002750510400725441015553 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ EXTRA_DIST = \ Doxyfile.in DOXYGEN_CONFIG = Doxyfile DOC_MODULE = gtkglextmm-$(GTKGLEXTMM_API_VERSION) HFILE_GLOB = \ $(top_srcdir)/gdkglext/gdkglmm.h \ $(top_srcdir)/gdkglext/gdkmm/gl/*.h \ $(top_srcdir)/gtkglext/gtkglmm.h \ $(top_srcdir)/gtkglext/gtkmm/gl/*.h CCFILE_GLOB = \ $(top_srcdir)/gdkglext/gdkmm/gl/*.cc \ $(top_srcdir)/gtkglext/gtkmm/gl/*.cc HTML_IMAGES = ############## TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) DOC_STAMPS = html-build.stamp subdir = docs/reference ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = Doxyfile DIST_SOURCES = DIST_COMMON = $(srcdir)/Makefile.in Doxyfile.in Makefile.am all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/reference/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) Doxyfile: $(top_builddir)/config.status Doxyfile.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 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) @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 $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: check-am all-am: Makefile all-local 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 clean-local mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-data-local install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local 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 all-local check check-am clean clean-generic \ clean-libtool clean-local distclean distclean-generic \ distclean-libtool distdir dvi dvi-am info info-am install \ install-am install-data install-data-am install-data-local \ install-exec install-exec-am install-info install-info-am \ install-man install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ maintainer-clean-local mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am @ENABLE_DOXYGEN_DOC_TRUE@all-local: html-build.stamp #### html #### @ENABLE_DOXYGEN_DOC_TRUE@html-build.stamp: $(DOXYGEN_CONFIG) $(HFILE_GLOB) $(CCFILE_GLOB) @ENABLE_DOXYGEN_DOC_TRUE@ -rm -rf html @ENABLE_DOXYGEN_DOC_TRUE@ $(DOXYGEN_PATH) $(DOXYGEN_CONFIG) @ENABLE_DOXYGEN_DOC_TRUE@ touch html-build.stamp ############## clean-local: -rm -f *~ $(DOC_STAMPS) maintainer-clean-local: clean cd $(srcdir) && rm -rf html install-data-local: $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/html (installfiles=`echo $(srcdir)/html/*`; \ if test "$$installfiles" = '$(srcdir)/html/*'; \ then echo '-- Nothing to install' ; \ else \ for i in $$installfiles; do \ echo '-- Installing '$$i ; \ $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/html; \ done; \ fi) # # Require doxygen when making dist # @ENABLE_DOXYGEN_DOC_TRUE@dist-check-doxygen: @ENABLE_DOXYGEN_DOC_FALSE@dist-check-doxygen: @ENABLE_DOXYGEN_DOC_FALSE@ @echo "*** doxygen must be installed and enabled in order to make dist" @ENABLE_DOXYGEN_DOC_FALSE@ @false dist-hook: dist-check-doxygen dist-hook-local mkdir $(distdir)/html -cp $(srcdir)/html/* $(distdir)/html images=$(HTML_IMAGES) ; \ for i in $$images ; do \ cp $(srcdir)/$$i $(distdir)/html ; \ done .PHONY: dist-hook-local # 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: gtkglextmm-1.2.0/docs/reference/Doxyfile.in0000644000175000001440000012624510052347472015631 00000000000000# Doxyfile 1.3.4 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = gtkglextmm # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = @GTKGLEXTMM_VERSION@ # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, Dutch, # Finnish, French, German, Greek, Hungarian, Italian, Japanese, Japanese-en # (Japanese with English messages), Korean, Norwegian, Polish, Portuguese, # Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish, and Ukrainian. OUTPUT_LANGUAGE = English # This tag can be used to specify the encoding used in the generated output. # The encoding is not always determined by the language that is chosen, # but also whether or not the output is meant for Windows or non-Windows users. # In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES # forces the Windows encoding (this is the default for the Windows binary), # whereas setting the tag to NO uses a Unix-style encoding (the default for # all platforms other than Windows). USE_WINDOWS_ENCODING = NO # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all inherited # members of a class in the documentation of that class as if those members were # ordinary class members. Constructors, destructors and assignment operators of # the base classes will not be shown. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = YES # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. It is allowed to use relative paths in the argument list. STRIP_FROM_PATH = ../../gdkglext ../../gtkglext # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful is your file systems # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like the Qt-style comments (thus requiring an # explict @brief command for a brief description. JAVADOC_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the DETAILS_AT_TOP tag is set to YES then Doxygen # will output the detailed description near the top, like JavaDoc. # If set to NO, the detailed description appears after the member # documentation. DETAILS_AT_TOP = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # reimplements. INHERIT_DOCS = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 8 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources # only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = NO # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources # only. Doxygen will then generate output that is more tailored for Java. # For instance, namespaces will be presented as packages, qualified scopes # will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = YES # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # users are advised to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or define consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and defines in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = @top_srcdir@/gdkglext @top_srcdir@/gdkglext/gdkmm/gl \ @top_srcdir@/gtkglext @top_srcdir@/gtkglext/gtkmm/gl # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp # *.h++ *.idl *.odl *.cs *.php *.php3 *.inc FILE_PATTERNS = *.h # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = NO # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = @top_srcdir@/config.h \ @top_srcdir@/gdkglext/gdkglextmm-config.h # The EXCLUDE_SYMLINKS tag can be used select whether or not files or directories # that are symbolic links (a Unix filesystem feature) are excluded from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. EXCLUDE_PATTERNS = stamp* */wrap_init.h # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = @top_srcdir@/examples # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = *.h *.cc # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. INPUT_FILTER = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES (the default) # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES (the default) # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = YES # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = YES # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet HTML_STYLESHEET = # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compressed HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output dir. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be # generated containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are # probably better off using the HTML help feature. GENERATE_TREEVIEW = NO # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = NO # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = NO # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = NO # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimised for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assigments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. This is useful # if you want to understand what is going on. On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = YES # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_PREDEFINED tags. EXPAND_ONLY_PREDEF = YES # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ \ @PANGOMM_INCLUDE_PATH@ \ @GDKMM_INCLUDE_PATH@ \ @GTKMM_INCLUDE_PATH@ # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = *.h # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. PREDEFINED = DOXYGEN_SHOULD_SKIP_THIS \ GDKGLEXTMM_MULTIHEAD_SUPPORT # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line, have an all uppercase name, and do not end with a semicolon. Such # function macros are typically used for boiler-plate code, and will confuse the # parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::addtions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. # Optionally an initial location of the external documentation # can be added for each tagfile. The format of a tag file without # this location is as follows: # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths or # URLs. If a location is present for each tag, the installdox tool # does not have to be run to correct the links. # Note that each tag file must have a unique name # (where the name does NOT include the path) # If a tag file is not located in the directory in which doxygen # is run, you must also specify the path to the tagfile here. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = @PERL_PATH@ #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base or # super classes. Setting the tag to NO turns the diagrams off. Note that this # option is superceded by the HAVE_DOT option below. This is only a fallback. It is # recommended to install and use dot, since it yields more powerful graphs. CLASS_DIAGRAMS = YES # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = @HAVE_DOT@ # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similiar to the OMG's Unified Modeling # Language. UML_LOOK = NO # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = NO # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will # generate a call dependency graph for every global function or class method. # Note that enabling this option will significantly increase the time of a run. # So in most cases it will be better to enable call graphs for selected # functions only using the \callgraph command. CALL_GRAPH = NO # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found on the path. DOT_PATH = #DOT_PATH = @DOT_PATH@ # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_WIDTH = 1024 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_HEIGHT = 1024 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes that # lay further from the root node will be omitted. Note that setting this option to # 1 or 2 may greatly reduce the computation time needed for large code bases. Also # note that a graph may be further truncated if the graph's image dimensions are # not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH and MAX_DOT_GRAPH_HEIGHT). # If 0 is used for the depth value (the default), the graph is not depth-constrained. MAX_DOT_GRAPH_DEPTH = 0 # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::addtions related to the search engine #--------------------------------------------------------------------------- # The SEARCHENGINE tag specifies whether or not a search engine should be # used. If set to NO the values of all tags below this one will be ignored. SEARCHENGINE = NO gtkglextmm-1.2.0/depcomp0000755000175000001440000003305210200267335012170 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000, 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. # 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. In older versions, 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. # Version 6 uses the directory in both cases. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # 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 tab and a space 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 preprocessed 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 preprocessed 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 preprocessed 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 gtkglextmm-1.2.0/aclocal.m40000644000175000001440000106304010400725421012451 00000000000000# generated automatically by aclocal 1.7.9 -*- 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. # 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.9])]) # 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])]) # 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($@)]) # Add --enable-maintainer-mode option to configure. # From Jim Meyering # Copyright 1996, 1998, 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 AC_DEFUN([AM_MAINTAINER_MODE], [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode, [ --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer], USE_MAINTAINER_MODE=$enableval, USE_MAINTAINER_MODE=no) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST(MAINT)dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # isc-posix.m4 serial 2 (gettext-0.11.2) dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # This file is not needed with autoconf-2.53 and newer. Remove it in 2005. # This test replaces the one in autoconf. # Currently this macro should have the same name as the autoconf macro # because gettext's gettext.m4 (distributed in the automake package) # still uses it. Otherwise, the use in gettext.m4 makes autoheader # give these diagnostics: # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX undefine([AC_ISC_POSIX]) AC_DEFUN([AC_ISC_POSIX], [ dnl This test replaces the obsolescent AC_ISC_POSIX kludge. AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) ] ) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # serial 48 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 1s/^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 MSVC, # 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 "$LTCFLAGS" && LTCFLAGS=$CFLAGS 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="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_CC_BASENAME([$compiler]) # 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 # Check if we have a version mismatch between libtool.m4 and ltmain.sh. # # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually # calls AC_LIBTOOL_CONFIG and creates libtool. # _LT_VERSION_CHECK # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_VERSION_CHECK # ----------------- AC_DEFUN([_LT_VERSION_CHECK], [AC_MSG_CHECKING([for correct ltmain.sh version]) if test "x$ltmain" = "x" ; then AC_MSG_RESULT(no) AC_MSG_ERROR([ *** @<:@Gentoo@:>@ sanity check failed! *** *** \$ltmain is not defined, please check the patch for consistency! *** ]) fi gentoo_lt_version="1.5.22" gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"` if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then AC_MSG_RESULT(no) AC_MSG_ERROR([ *** @<:@Gentoo@:>@ sanity check failed! *** *** libtool.m4 and ltmain.sh have a version mismatch! *** *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** Please run: libtoolize --copy --force if appropriate, please contact the maintainer of this package (or your distribution) for help. ]) else AC_MSG_RESULT(yes) fi ])# _LT_VERSION_CHECK # _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"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_AC_SYS_COMPILER # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. AC_DEFUN([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. AC_DEFUN([_LT_COMPILER_BOILERPLATE], [ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. AC_DEFUN([_LT_LINKER_BOILERPLATE], [ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_LINKER_BOILERPLATE # _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 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/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*|powerpc64-*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 ;; sparc*-*solaris*) # 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 *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; 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_REQUIRE([LT_AC_PROG_SED]) 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}\{0,1\} :&$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 other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; 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 linker 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 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi 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 teststring="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; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) # 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. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # 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); */ } else puts (dlerror ()); exit (status); }] EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|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" wl=$lt_prog_compiler_wl 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 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 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 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}\{0,1\} :&$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 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm 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_cmds=".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 ;; bsdi[[45]]*) 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_cmds=".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~ chmod a+x \$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="/usr/lib /lib/w32api /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 ;; linux*) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' else $archive_expsym_cmds="$archive_cmds" fi else ld_shlibs=no fi ;; *) 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 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_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; 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"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 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 ;; kfreebsd*-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 shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac 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 ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; 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 ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes 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_cmds='.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_cmds='.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_cmds='.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' ;; interix3*) 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' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; 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 # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # 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' ;; knetbsd*-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 shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU 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}${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 sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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_cmds=".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" ;; 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.3*) 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; 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 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 ])# 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 if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 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" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; 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 DLLs 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 pathname 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 pathname 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 variants of GNU ld 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|DragonFly)/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 ;; interix3*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux*) lt_cv_deplibs_check_method=pass_all ;; 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*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) 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 ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | 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 pathname 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_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_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" done 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 # AC_CONFIG_SUBDIRS is not called here. 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 # AC_CONFIG_SUBDIRS is not called here. 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 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([_LT_AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # _LT_AC_PROG_CXXCPP # ------------------ AC_DEFUN([_LT_AC_PROG_CXXCPP], [ AC_REQUIRE([AC_PROG_CXX]) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP fi ])# _LT_AC_PROG_CXXCPP # 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=${tagnames+${tagnames},}F77]) ])# _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=${tagnames+${tagnames},}GCJ]) ])# _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=${tagnames+${tagnames},}RC]) ])# 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 # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE 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_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF # Report which library types will 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* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no 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([_LT_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_shlibpath_var, $1)=unsupported _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=cpp # 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 # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # 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 $as_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 $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # 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 -nostdlib $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' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi 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 '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${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 '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_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' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; 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 ;; 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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _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)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP '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 -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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 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 -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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac 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* | kfreebsd*-gnu | dragonfly*) # 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) | 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 _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 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' ;; *) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _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*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _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 hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _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 ;; interix3*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; 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 ${output_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}${output_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 # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _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' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _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' ;; pgCC*) # Portland Group C++ compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $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' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_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::"' ;; openbsd2*) # C++ shared libraries are fairly broken _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' ;; 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 ${output_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}${output_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 ${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~ $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 ${output_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}${output_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 ;; 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(archive_cmds_need_lc,$1)=yes _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -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} ${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. We must also pass each convience library through # to the system linker between allextract/defaultextract. # The C++ compiler will combine linker options so we # cannot just pass the convience library names through # without $wl. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # 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 ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; 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_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # 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 host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # 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 # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # 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=$lt_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_cmds='$shrext_cmds' # 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. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi 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 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'" ;; linux*) if test "$host_cpu" = ia64; then symcode='[[ABCDGIRSTW]]' 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'" fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; 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='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # 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)= ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; 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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; 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* | kfreebsd*-gnu | dragonfly*) # 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)='${wl}-a ${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)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; 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* | ecpc*) # 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' ;; pgCC*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; 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*) ;; 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 ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _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' ;; esac ;; 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' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; 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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; 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_basename 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' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; 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' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; 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*) _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 ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _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' ;; unicos*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; 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 # # Check to make sure the static flag actually works. # wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ]) # 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 '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[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= # Just being paranoid about ensuring that cc_basename is set. _LT_CC_BASENAME([$compiler]) 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 ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; 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}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. 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 supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # 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 '\''/^[[BCDGRS]] /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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; interix3*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else _LT_AC_TAGVAR(ld_shlibs, $1)=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*) 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; 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)" = no; then runpath_var= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 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 "$lt_prog_compiler_static"; 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' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi 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 '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${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 '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_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' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${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 ;; bsdi[[45]]*) _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_cmds=".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' _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _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)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes ; then 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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac 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* | kfreebsd*-gnu | dragonfly*) _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*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _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 fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -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*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _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(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _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 ${output_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)=: ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then wlarc='${wl}' _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 wlarc='' _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]].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; *) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; 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*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; 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 # # 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) pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $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 && continue 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]) ]) # Copyright 1996, 1997, 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 # @defmac AC_PROG_CC_STDC # @maindex PROG_CC_STDC # @ovindex CC # If the C compiler in not in ANSI C mode by default, try to add an option # to output variable @code{CC} to make it so. This macro tries various # options that select ANSI C on some system or another. It considers the # compiler to be in ANSI C mode if it handles function prototypes correctly. # # If you use this macro, you should check after calling it whether the C # compiler has been set to accept ANSI C; if not, the shell variable # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source # code in ANSI C, you can make an un-ANSIfied copy of it by using the # program @code{ansi2knr}, which comes with Ghostscript. # @end defmac AC_DEFUN([AM_PROG_CC_STDC], [AC_REQUIRE([AC_PROG_CC]) AC_BEFORE([$0], [AC_C_INLINE]) AC_BEFORE([$0], [AC_C_CONST]) dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require dnl a magic option to avoid problems with ANSI preprocessor commands dnl like #elif. dnl FIXME: can't do this because then AC_AIX won't work due to a dnl circular dependency. dnl AC_BEFORE([$0], [AC_PROG_CPP]) AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C]) AC_CACHE_VAL(am_cv_prog_cc_stdc, [am_cv_prog_cc_stdc=no ac_save_CC="$CC" # 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" AC_TRY_COMPILE( [#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; ], [ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ], [am_cv_prog_cc_stdc="$ac_arg"; break]) done CC="$ac_save_CC" ]) if test -z "$am_cv_prog_cc_stdc"; then AC_MSG_RESULT([none needed]) else AC_MSG_RESULT([$am_cv_prog_cc_stdc]) fi case "x$am_cv_prog_cc_stdc" in x|xno) ;; *) CC="$CC $am_cv_prog_cc_stdc" ;; esac ]) AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC]) dnl dnl Some macros needed for autoconf dnl dnl AL_PROG_GNU_M4(ACTION_NOT_FOUND) dnl Check for GNU m4. (sun won't do.) dnl AC_DEFUN([AL_PROG_GNU_M4],[ AC_CHECK_PROGS(M4, gm4 m4, m4) if test "$M4" = "m4"; then AC_MSG_CHECKING(whether m4 is GNU m4) if $M4 --version /dev/null | grep '^GNU m4 ' >/dev/null ; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) if test "$host_vendor" = "sun"; then $1 fi fi fi ]) dnl AL_PROG_GNU_MAKE(ACTION_NOT_FOUND) dnl Check for GNU make (no sun make) dnl AC_DEFUN([AL_PROG_GNU_MAKE],[ dnl dnl Check for GNU make (stolen from gtk+/configure.in) AC_MSG_CHECKING(whether make is GNU Make) if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) if test "$host_vendor" = "sun" ; then $1 fi fi ]) dnl AL_ACLOCAL_INCLUDE(macrodir) dnl Add a directory to macro search (from gnome) AC_DEFUN([AL_ACLOCAL_INCLUDE], [ test "x$ACLOCAL_FLAGS" = "x" || ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" for dir in $1 do ACLOCAL="$ACLOCAL -I $srcdir/$dir" done ]) AC_DEFUN([GTKMM_ARG_ENABLE_WARNINGS], [ AC_ARG_ENABLE([warnings], [ --enable-warnings=[[none|minimum|maximum|hardcore]] Control compiler pickyness. [[default=minimum]]], [gtkmm_enable_warnings="$enableval"], [gtkmm_enable_warnings='minimum']) AC_MSG_CHECKING([for compiler warning flags to use]) gtkmm_warning_flags='' case "$gtkmm_enable_warnings" in minimum|yes) gtkmm_warning_flags='-Wall';; maximum) gtkmm_warning_flags='-pedantic -W -Wall';; hardcore) gtkmm_warning_flags='-pedantic -W -Wall -Werror';; esac gtkmm_use_flags='' if test "x$gtkmm_warning_flags" != "x" then echo 'int foo() { return 0; }' > conftest.cc for flag in $gtkmm_warning_flags do # Test whether the compiler accepts the flag. GCC doesn't bail # out when given an unsupported flag but prints a warning, so # check the compiler output instead. gtkmm_cxx_out="`$CXX $flag -c conftest.cc 2>&1`" rm -f conftest.$OBJEXT test "x${gtkmm_cxx_out}" = "x" && \ gtkmm_use_flags="${gtkmm_use_flags:+$gtkmm_use_flags }$flag" done rm -f conftest.cc gtkmm_cxx_out='' fi if test "x$gtkmm_use_flags" != "x" then for flag in $gtkmm_use_flags do case " $CXXFLAGS " in *" $flag "*) ;; # don't add flags twice *) CXXFLAGS="${CXXFLAGS:+$CXXFLAGS }$flag";; esac done else gtkmm_use_flags='none' fi AC_MSG_RESULT([$gtkmm_use_flags]) ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # 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. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [$4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Configure paths for GtkGLExt # Naofumi Yasufuku # # Shamelessly stolen from gtk-2.0.m4 # Configure paths for GTK+ # Owen Taylor 1997-2001 dnl AM_PATH_GTKGLEXT_1_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) dnl Test for GtkGLExt, and define GTKGLEXT_CFLAGS and GTKGLEXT_LIBS. dnl AC_DEFUN([AM_PATH_GTKGLEXT_1_0], [ no_gtkglext="" GTKGLEXT_CFLAGS="" GTKGLEXT_LIBS="" # GtkGLExt pkg-config module gtkglext_module=gtkglext-1.0 # minimum GtkGLExt version gtkglext_min_version=ifelse([$1], ,1.0.0,$1) # minimum pkg-config version pkgconfig_min_version=0.7 AC_ARG_ENABLE(gtkglext-test, [ --disable-gtkglext-test do not try to compile and run a test GtkGLExt program], , enable_gtkglext_test=yes) dnl dnl Get the cflags and libraries from pkg-config dnl pkg_config_modules=$gtkglext_module AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version $pkgconfig_min_version ; then : else echo "" echo "*** pkg-config too old; version $pkgconfig_min_version or better required." no_gtkglext=yes PKG_CONFIG=no fi else no_gtkglext=yes fi AC_MSG_CHECKING(for GtkGLExt - version >= $gtkglext_min_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_modules; then echo "" echo "Will use uninstalled version of GtkGLExt found in PKG_CONFIG_PATH" enable_gtkglext_test=no fi if $PKG_CONFIG --atleast-version $gtkglext_min_version $pkg_config_modules; then : else echo "" echo "*** pkg-config cannot find $gtkglext_module >= $gtkglext_min_version" echo "*** Set the environment variable PKG_CONFIG_PATH to point to the correct" echo "*** configuration files." no_gtkglext=yes enable_gtkglext_test=no fi fi if test x"$no_gtkglext" = x ; then GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_modules` GTKGLEXT_LIBS=`$PKG_CONFIG --libs $pkg_config_modules` gtkglext_config_major_version=`$PKG_CONFIG --modversion $gtkglext_module | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gtkglext_config_minor_version=`$PKG_CONFIG --modversion $gtkglext_module | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` gtkglext_config_micro_version=`$PKG_CONFIG --modversion $gtkglext_module | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_gtkglext_test" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" LIBS="$GTKGLEXT_LIBS $LIBS" dnl dnl Now check if the installed GtkGLExt is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.gtkgltest AC_TRY_RUN([ #include #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtkgltest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup ("$gtkglext_min_version"); if (sscanf (tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf ("%s, bad version string\n", "$gtkglext_min_version"); exit (1); } if ((gtkglext_major_version != $gtkglext_config_major_version) || (gtkglext_minor_version != $gtkglext_config_minor_version) || (gtkglext_micro_version != $gtkglext_config_micro_version)) { printf ("\n*** 'pkg-config --modversion $gtkglext_module' returned %d.%d.%d, but GtkGLExt\n", $gtkglext_config_major_version, $gtkglext_config_minor_version, $gtkglext_config_micro_version); printf ("*** library %d.%d.%d was found!\n", gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); printf ("***\n"); printf ("*** If pkg-config was correct, then it is best to remove the old version\n"); printf ("*** of GtkGLExt. You may also be able to fix the error by modifying your\n"); printf ("*** LD_LIBRARY_PATH enviroment variable, or by editing /etc/ld.so.conf.\n"); printf ("*** Make sure you have run ldconfig if that is required on your system.\n"); printf ("***\n"); printf ("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf ("*** to point to the correct configuration files.\n"); } else if ((gtkglext_major_version != GTKGLEXT_MAJOR_VERSION) || (gtkglext_minor_version != GTKGLEXT_MINOR_VERSION) || (gtkglext_micro_version != GTKGLEXT_MICRO_VERSION)) { printf ("\n*** GtkGLExt header files (version %d.%d.%d) do not match library (version %d.%d.%d).\n", GTKGLEXT_MAJOR_VERSION, GTKGLEXT_MINOR_VERSION, GTKGLEXT_MICRO_VERSION, gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); } else { if ((gtkglext_major_version > major) || ((gtkglext_major_version == major) && (gtkglext_minor_version > minor)) || ((gtkglext_major_version == major) && (gtkglext_minor_version == minor) && (gtkglext_micro_version >= micro))) { return 0; } else { printf ("\n*** An old version of GtkGLExt library (%d.%d.%d) was found.\n", gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); printf ("*** You need a version of GtkGLExt newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf ("*** GtkGLExt is always available from http://gtkglext.sourceforge.net/.\n"); printf ("***\n"); printf ("*** If you have already installed a sufficiently new version, this error\n"); printf ("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf ("*** being found. The easiest way to fix this is to remove the old version\n"); printf ("*** of GtkGLExt, but you can also set the PKG_CONFIG environment to point\n"); printf ("*** to the correct copy of pkg-config. (In this case, you will have to\n"); printf ("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf ("*** so that the correct libraries are found at run-time)\n"); } } return 1; } ],, no_gtkglext=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtkglext" = x ; then AC_MSG_RESULT(yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/." elif test "x$enable_gtkglext_test" = "xyes" ; then if test -f conf.gtkgltest ; then : else echo "*** Could not run GtkGLExt test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" LIBS="$LIBS $GTKGLEXT_LIBS" AC_TRY_LINK([ #include #include #include ], [ return ((gtkglext_major_version) || (gtkglext_minor_version) || (gtkglext_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GtkGLExt or finding the wrong" echo "*** version of GtkGLExt. If it is not finding GtkGLExt, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GtkGLExt is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTKGLEXT_CFLAGS="" GTKGLEXT_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GTKGLEXT_CFLAGS) AC_SUBST(GTKGLEXT_LIBS) rm -f conf.gtkgltest ]) dnl AC_GTKGLEXT_SUPPORTS_MULTIHEAD([ACTION-IF-SUPPORTED [, ACTION-IF-NOT-SUPPORTED]]) dnl Checks whether GtkGLExt supports multihead. dnl AC_DEFUN([AC_GTKGLEXT_SUPPORTS_MULTIHEAD], [ AC_CACHE_CHECK([whether GtkGLExt supports multihead], [ac_cv_gtkglext_supports_multihead], [AC_TRY_LINK([#include ], [gdk_gl_query_extension_for_display(gdk_display_get_default());], [ac_cv_gtkglext_supports_multihead=yes], [ac_cv_gtkglext_supports_multihead=no])]) if test "x$ac_cv_gtkglext_supports_multihead" = "xyes" ; then ifelse([$1], , :, [$1]) else ifelse([$2], , :, [$2]) fi ]) dnl dnl Some macros needed for autoconf dnl AC_DEFUN([GLIBMM_CV_PERL_VERSION],[glibmm_cv_perl_version_[]m4_translit([$1],[.${}],[____])]) AC_DEFUN([GLIBMM_CHECK_PERL], [ glibmm_perl_result=no AC_PATH_PROGS([PERL_PATH], [perl perl5], [not found]) if test "x$PERL_PATH" != "xnot found"; then { AC_CACHE_CHECK( [whether Perl is new enough], GLIBMM_CV_PERL_VERSION([$1]), [ ]GLIBMM_CV_PERL_VERSION([$1])[=no "$PERL_PATH" -e "require v$1; exit 0;" >/dev/null 2>&1 && ]GLIBMM_CV_PERL_VERSION([$1])[=yes ]) test "x${GLIBMM_CV_PERL_VERSION([$1])}" = xyes && glibmm_perl_result=yes } else { # Make sure we have something sensible, even if it doesn't work. PERL_PATH=perl } fi if test "x$glibmm_perl_result" = xno && test "x$USE_MAINTAINER_MODE" = xyes; then { AC_MSG_ERROR([[ *** Perl >= ]$1[ is required for building $PACKAGE in maintainer-mode. ]]) } fi AC_SUBST([PERL_PATH]) ]) gtkglextmm-1.2.0/tools/0000777000175000001440000000000010400731254012032 500000000000000gtkglextmm-1.2.0/tools/m4/0000777000175000001440000000000010400731254012352 500000000000000gtkglextmm-1.2.0/tools/m4/README0000644000175000001440000000034707652552316013171 00000000000000This directory contains additional type conversions for gtkglextmm. The convert.m4 file overrides the file of the same name in gtkmm. Like the gtkmm m4 conversion files, these files are also installed, for use by other libraries. gtkglextmm-1.2.0/tools/m4/Makefile_list_of_sources.am_fragment0000644000175000001440000000010407627357120021477 00000000000000files_tools_m4 = convert.m4 convert_gdkglext.m4 convert_gtkglext.m4 gtkglextmm-1.2.0/tools/m4/Makefile.am0000644000175000001440000000044607627357120014343 00000000000000include $(top_srcdir)/tools/m4/Makefile_list_of_sources.am_fragment EXTRA_DIST = $(files_tools_m4) \ Makefile_list_of_sources.am_fragment # Install the .m4, files: tools_m4_includedir = $(libdir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/proc/m4 tools_m4_include_HEADERS = $(files_tools_m4) gtkglextmm-1.2.0/tools/m4/Makefile.in0000644000175000001440000003140210400725446014341 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ files_tools_m4 = convert.m4 convert_gdkglext.m4 convert_gtkglext.m4 EXTRA_DIST = $(files_tools_m4) \ Makefile_list_of_sources.am_fragment # Install the .m4, files: tools_m4_includedir = $(libdir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/proc/m4 tools_m4_include_HEADERS = $(files_tools_m4) subdir = tools/m4 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = DIST_SOURCES = HEADERS = $(tools_m4_include_HEADERS) DIST_COMMON = README $(srcdir)/Makefile.in $(tools_m4_include_HEADERS) \ $(top_srcdir)/tools/m4/Makefile_list_of_sources.am_fragment \ Makefile.am all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/tools/m4/Makefile_list_of_sources.am_fragment $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu tools/m4/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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: tools_m4_includeHEADERS_INSTALL = $(INSTALL_HEADER) install-tools_m4_includeHEADERS: $(tools_m4_include_HEADERS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(tools_m4_includedir) @list='$(tools_m4_include_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(tools_m4_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(tools_m4_includedir)/$$f"; \ $(tools_m4_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(tools_m4_includedir)/$$f; \ done uninstall-tools_m4_includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(tools_m4_include_HEADERS)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f $(DESTDIR)$(tools_m4_includedir)/$$f"; \ rm -f $(DESTDIR)$(tools_m4_includedir)/$$f; \ 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: $(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)/../../tools/m4 @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: $(mkinstalldirs) $(DESTDIR)$(tools_m4_includedir) 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-tools_m4_includeHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile 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-tools_m4_includeHEADERS .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 install-tools_m4_includeHEADERS \ 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 \ uninstall-tools_m4_includeHEADERS # 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: gtkglextmm-1.2.0/tools/m4/convert.m40000644000175000001440000000030307627357121014222 00000000000000dnl $Id: convert.m4,v 1.1 2003/02/27 09:45:53 naofumi Exp $ # Override of the file of the same name in gtkmm. include(convert_base.m4) include(convert_gdkglext.m4) include(convert_gtkglext.m4) gtkglextmm-1.2.0/tools/m4/convert_gdkglext.m40000644000175000001440000000764007656225366016135 00000000000000# Missing conversions in gtkmm's convert_gdk.m4 _CONVERSION(`GdkColormap*',`Glib::RefPtr', `Glib::wrap($3)') _CONVERSION(`GdkVisual*',`Glib::RefPtr', `Glib::wrap($3)') _CONVERSION(`const Glib::RefPtr&',`GdkGLConfig*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLConfig*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLConfig*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLConfig*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLContext*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLContext*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLContext*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLContext*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLDrawable*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLDrawable*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLDrawable*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLDrawable*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLPixmap*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLPixmap*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLPixmap*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLPixmap*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLWindow*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLWindow*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLWindow*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`const Glib::RefPtr&',`GdkGLWindow*',__CONVERT_CONST_REFPTR_TO_P) _CONVERSION(`GdkGLConfig*',`Glib::RefPtr', `Glib::wrap((GdkGLConfig*)($3))') _CONVERSION(`GdkGLConfig*',`Glib::RefPtr', `Glib::wrap((GdkGLConfig*)($3))') _CONVERSION(`GdkGLConfig*',`Glib::RefPtr', `Glib::wrap((GdkGLConfig*)($3))') _CONVERSION(`GdkGLConfig*',`Glib::RefPtr', `Glib::wrap((GdkGLConfig*)($3))') _CONVERSION(`GdkGLContext*',`Glib::RefPtr', `Glib::wrap((GdkGLContext*)($3))') _CONVERSION(`GdkGLContext*',`Glib::RefPtr', `Glib::wrap((GdkGLContext*)($3))') _CONVERSION(`GdkGLContext*',`Glib::RefPtr', `Glib::wrap((GdkGLContext*)($3))') _CONVERSION(`GdkGLContext*',`Glib::RefPtr', `Glib::wrap((GdkGLContext*)($3))') _CONVERSION(`GdkGLDrawable*',`Glib::RefPtr', `Glib::wrap((GdkGLDrawable*)($3))') _CONVERSION(`GdkGLDrawable*',`Glib::RefPtr', `Glib::wrap((GdkGLDrawable*)($3))') _CONVERSION(`GdkGLDrawable*',`Glib::RefPtr', `Glib::wrap((GdkGLDrawable*)($3))') _CONVERSION(`GdkGLDrawable*',`Glib::RefPtr', `Glib::wrap((GdkGLDrawable*)($3))') _CONVERSION(`GdkGLPixmap*',`Glib::RefPtr', `Glib::wrap((GdkGLPixmap*)($3))') _CONVERSION(`GdkGLPixmap*',`Glib::RefPtr', `Glib::wrap((GdkGLPixmap*)($3))') _CONVERSION(`GdkGLPixmap*',`Glib::RefPtr', `Glib::wrap((GdkGLPixmap*)($3))') _CONVERSION(`GdkGLPixmap*',`Glib::RefPtr', `Glib::wrap((GdkGLPixmap*)($3))') _CONVERSION(`GdkGLWindow*',`Glib::RefPtr', `Glib::wrap((GdkGLWindow*)($3))') _CONVERSION(`GdkGLWindow*',`Glib::RefPtr', `Glib::wrap((GdkGLWindow*)($3))') _CONVERSION(`GdkGLWindow*',`Glib::RefPtr', `Glib::wrap((GdkGLWindow*)($3))') _CONVERSION(`GdkGLWindow*',`Glib::RefPtr', `Glib::wrap((GdkGLWindow*)($3))') gtkglextmm-1.2.0/tools/m4/convert_gtkglext.m40000644000175000001440000000000007627357121016125 00000000000000gtkglextmm-1.2.0/tools/enum.pl0000755000175000001440000001043407627543327013277 00000000000000#! /usr/bin/perl # The lisp definitions for flags does not include order. # thus we must extract it ourselves. # Usage: ./enum.pl /gnome/head/cvs/gconf/gconf/*.h > gconf_enums.defs my %token; $module="none"; while ($ARGV[0] =~ /^--(\S+)/) { shift @ARGV; $module=shift @ARGV if ($1 eq "module"); if ($1 eq "help") { print "enum.pl [--module modname] header_files ....\n"; exit 0; } } foreach $file (@ARGV) { &parse($file); } exit; # parse enums from C sub parse { my ($file)=@_; $from=0; open(FILE,$file); $enum=0; $deprecated=0; $comment=0; while() { if($comment) { # end of multiline comment $comment = 0 if(/\*\//); next; } $deprecated = 1 if(s/^#ifndef [A-Z_]+_DISABLE_DEPRECATED//); ++$deprecated if($deprecated > 0 && /^#\s*if/); --$deprecated if($deprecated > 0 && /^#\s*endif/); next if($deprecated > 0); # filter single-line comments s/\/\*.*\*\///g; # begin of multiline comment if(/\/\*/) { $comment = 1; next; } s/','/\%\%COMMA\%\%/; s/'}'/\%\%RBRACE\%\%/; if (/^typedef enum/ ) { print ";; From $file\n\n" if (!$from); $from=1; $enum=1; next; } if ($enum && /\}/) { $enum=0; &process($line,$_); $line=""; } $line.=$_ if ($enum); } } # convert enums to lisp sub process { my ($line,$def)=@_; $def=~s/\s*\}\s*//g; $def=~s/\s*;\s*$//; my $c_name=$def; $line=~s/\s+/ /g; $line=~s/\/\*.*\*\///g; $line=~s/\s*{\s*//; my $entity = "enum"; $c_name =~ /^([A-Z][a-z]*)/; $module = $1; $def =~ s/$module//; @c_name=(); @name=(); @number=(); $val=0; foreach $i (split(/,/,$line)) { $i=~s/^\s+//; $i=~s/\s+$//; if ($i =~ /^\S+$/) { push(@c_name,$i); push(@number,sprintf("%d",$val)); $token{$i}=$val; } elsif ($i =~ /^(\S+)\s*=\s*(0x[0-9a-fA-F]+)$/ || $i =~ /^(\S+)\s*=\s*(-?[0-9]+)$/ || $i =~ /^(\S+)\s*=\s*(1\s*<<\s*[0-9]+)$/ ) { my ($tmp1, $tmp2) = ($1, $2); push(@c_name, $tmp1); eval("\$val = $tmp2;"); $entity = "flags" if($tmp2 =~ /^1\s*</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)/../tools $(distdir)/../tools/m4 @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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 Makefile 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 Makefile 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: gtkglextmm-1.2.0/tools/extra_defs_gen/0000777000175000001440000000000010400731254015007 500000000000000gtkglextmm-1.2.0/tools/extra_defs_gen/generate_defs_gtkglext.cc0000644000175000001440000000230510052323317021736 00000000000000/* generate_defs_gtkglext.cc * * Copyright (C) 2001 The Free Software Foundation * * This library 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 library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include int main (int argc, char *argv[]) { gtk_init(&argc, &argv); std::cout << get_defs( GDK_TYPE_GL_CONFIG ) << get_defs( GDK_TYPE_GL_CONTEXT ) << get_defs( GDK_TYPE_GL_DRAWABLE ) << get_defs( GDK_TYPE_GL_PIXMAP ) << get_defs( GDK_TYPE_GL_WINDOW ); return 0; } gtkglextmm-1.2.0/tools/extra_defs_gen/Makefile.am0000644000175000001440000000046510052323317016764 00000000000000# Build the generate_extra_defs utility executable. # This is not used directly to build the rest of the project. INCLUDES = $(GTKGLEXTMM_DEP_CFLAGS) LIBS = $(GTKGLEXTMM_DEP_LIBS) -lglibmm_generate_extra_defs-2.4 noinst_PROGRAMS = generate_extra_defs generate_extra_defs_SOURCES = generate_defs_gtkglext.cc gtkglextmm-1.2.0/tools/extra_defs_gen/Makefile.in0000644000175000001440000003655710400725446017016 00000000000000# Makefile.in generated by automake 1.7.9 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@ # Build the generate_extra_defs utility executable. # This is not used directly to build the rest of the project. 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = $(GTKGLEXTMM_DEP_LIBS) -lglibmm_generate_extra_defs-2.4 LIBTOOL = @LIBTOOL@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ INCLUDES = $(GTKGLEXTMM_DEP_CFLAGS) noinst_PROGRAMS = generate_extra_defs generate_extra_defs_SOURCES = generate_defs_gtkglext.cc subdir = tools/extra_defs_gen ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = noinst_PROGRAMS = generate_extra_defs$(EXEEXT) PROGRAMS = $(noinst_PROGRAMS) am_generate_extra_defs_OBJECTS = generate_defs_gtkglext.$(OBJEXT) generate_extra_defs_OBJECTS = $(am_generate_extra_defs_OBJECTS) generate_extra_defs_LDADD = $(LDADD) generate_extra_defs_DEPENDENCIES = generate_extra_defs_LDFLAGS = DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/generate_defs_gtkglext.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 $@ DIST_SOURCES = $(generate_extra_defs_SOURCES) DIST_COMMON = $(srcdir)/Makefile.in Makefile.am SOURCES = $(generate_extra_defs_SOURCES) all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu tools/extra_defs_gen/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done generate_extra_defs$(EXEEXT): $(generate_extra_defs_OBJECTS) $(generate_extra_defs_DEPENDENCIES) @rm -f generate_extra_defs$(EXEEXT) $(CXXLINK) $(generate_extra_defs_LDFLAGS) $(generate_extra_defs_OBJECTS) $(generate_extra_defs_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) core *.core distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/generate_defs_gtkglext.Po@am__quote@ .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) @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) 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile 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 -rm -rf ./$(DEPDIR) -rm -f Makefile 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 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile 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-compile 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: gtkglextmm-1.2.0/COPYING.LIB0000644000175000001440000006365007515122103012260 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. ^L Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. ^L GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. ^L Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. ^L 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. ^L 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. ^L 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. ^L 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS ^L How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! gtkglextmm-1.2.0/README0000644000175000001440000000644107757105032011505 00000000000000 g t k g l e x t m m - C++ Wrapper for GtkGLExt General Information =================== gtkglextmm is C++ wrapper for GtkGLExt, OpenGL Extension to GTK. The official web site is: http://gtkglext.sourceforge.net/ The official download & development information site is: http://sourceforge.net/projects/gtkglext/ Licensing ========= gtkglextmm libraries are released under the terms of the GNU Lesser General Public License (GNU LGPL). While components and programs included with this release are licensed under the terms of the GNU General Public License (GNU GPL). Supported Platforms =================== Currently gtkglextmm supports * UNIX and UNIX-like platforms Tested under Linux and FreeBSD. * Win32 platforms Tested under Windows XP Professional using MinGW/Cygwin environment. Requirements ============ * GNU C++ compiler * GNU make * GtkGLExt (http://gtkglext.sourceforge.net/) * gtkmm 2 (http://gtkmm.sourceforge.net/) * GTK 2 (http://www.gtk.org/) * OpenGL or Mesa (http://www.mesa3d.org/) * Doxygen and Graphviz [optional] Doxygen (http://www.doxygen.org/) Graphviz (http://www.research.att.com/sw/tools/graphviz/) Multihead Support ================= Multihead support requires * GTK+ >= 2.1 * gtkmm >= 2.1 * GtkGLExt compiled with multihead support You can check whether installed GtkGLExt library supports multihead using the following command. $ pkg-config --variable=multihead gtkglext-1.0 Installation ============ To build and install gtkglextmm, type follows (use GNU make) $ ./configure --prefix=/foo/bar (other options...) $ make (or gmake) $ make install To compile example programs, type $ make examples Please read INSTALL or type "./configure --help" for more details. Configure Options ================= Debug options --enable-warnings=[none|minimum|maximum|hardcore] Control compiler pickyness. [default=minimum] Documentation options --enable-doxygen-doc use doxygen to build documentation [default=no] --with-html-dir=PATH path to installed docs [DATADIR/doc] Building the CVS Version of gtkglextmm ====================================== gtkglextmm's SourceForge CVS repository can be checked out through anonymous (pserver) CVS with the following instruction set. When prompted for a password for anonymous, simply press the Enter key. $ cvs \ -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gtkglext \ login $ cvs -z3 \ -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gtkglext \ co -r gtkglextmm-X-Y gtkglextmm (gtkglextmm-X-Y is a branch name. e.g. gtkglextmm-1-0 is 1.0.x branch.) When you are at work on the CVS version of gtkglextmm, you can use autogen.sh for generating configure script and Makefiles. $ env ACLOCAL_FLAGS='-I /pkgconfig/is/installed/share/aclocal' \ ./autogen.sh --prefix=${HOME}/gtkglext $ make $ make install $ make examples You may have to set ACLOCAL_FLAGS environment variable for some m4 macros used in configure.in. The following versions of the GNU autotools are required. autoconf 2.54 and above automake 1.7.x libtool 1.5 Contact ======= Any patches, bug fixes and improvements are always welcome ;-) Naofumi Yasufuku (°ÂÊ¡ ¾°Ê¸) gtkglextmm-1.2.0/ChangeLog.pre-1-00000644000175000001440000003554307661174044013467 000000000000002003-05-16 Naofumi Yasufuku * ==== Released 1.0.0 ==== * configure.in: Version 1.0.0, binary age 0, interface age 0. * Makefile.am (EXTRA_DIST): * ChangeLog.pre-1-0: pre-1.0 ChangeLog is renamed. 2003-05-16 Naofumi Yasufuku * gdkglext/src/gdkglext_docs.xml: * gtkglext/src/gtkglext_docs.xml: Updated. 2003-05-12 Naofumi Yasufuku * gtkglext/gtkmm/gl/drawingarea.h: * gtkglext/gtkmm/gl/widget.{h, cc}: Changed some method parameter names (config -> glconfig). * gdkglext/src/window.{hg, ccg}: * gdkglext/src/pixmap.{hg, ccg}: Changed some method parameter names (config -> glconfig). * gdkglext/src/drawable.hg: Changed some method parameter names (context -> glcontext). * gdkglext/src/context.{hg, ccg}: Changed some method parameter names (drawable -> gldrawable). 2003-05-11 Naofumi Yasufuku * gtkglextmm.spec.in: Remove lib*.la.bak files. Removed LDFLAGS setting. * configure.in: Added GTKGLEXT_REQUIRED_VERSION variable. 2003-05-10 Naofumi Yasufuku * examples/Makefile.am: * examples/Makefile.mingw: * examples/share-lists.cc: Added new display list sharing example. 2003-05-08 Naofumi Yasufuku * tools/m4/convert_gdkglext.m4: Added conversions which are missing in gtkmm's convert_gdk.m4. 2003-05-05 Naofumi Yasufuku * Version 0.99.1 * configure.in: Bumped version. Require GtkGLExt-0.99.1. 2003-05-04 Naofumi Yasufuku * gdkglext/gdkmm/gl/query.h: Include instead of . 2003-04-28 Naofumi Yasufuku * Version 0.99.0 * configure.in: Bumped version. * gtkglextmm.nsi.in: Changed default installation directory. Fixed Uninstaller section. Output gtkglext-env.sh file. 2003-04-27 Naofumi Yasufuku * examples/*.cc: Include windows.h on Win32. Don't set resize_mode Gtk::RESIZE_IMMEDIATE on Win32. 2003-04-26 Naofumi Yasufuku * gdkglext/src/gdkglext_methods.defs (gdk_gl_context_destroy) (gdk_gl_pixmap_destroy, gdk_gl_window_destroy): Added. * gdkglext/src/context.hg (Context): Ignore gdk_gl_context_destroy. * gdkglext/src/pixmap.hg (Pixmap): Ignore gdk_gl_pixmap_destroy. * gdkglext/src/window.hg (Window): Ignore gdk_gl_window_destroy. 2003-04-17 Naofumi Yasufuku * Makefile.am: * m4macros/Makefile.am: * docs/Makefile.am: * docs/reference/Makefile.am: * examples/Makefile.am: Removed 'files' target which is not used. * build_shared/Makefile_build.am_fragment (common_ldflags): Added $(WIN32_LD_EXPORT_ALL_SYMBOLS) to common_ldflags. * configure.in: Check whether MinGW ld accepts --export-all-symbols option. * Makefile.am ($(pkgconfig_DATA)): * m4macros/Makefile.am ($(m4data_DATA)): * gdkglext/Makefile.am (stamp-gdkglextmm-config.h): Changed to use $(top_builddir)/config.status instead of ../config.status. 2003-04-16 Naofumi Yasufuku * build_shared/Makefile_build.am_fragment (install-libtool-import-lib) (uninstall-libtool-import-lib, install-data-local) (uninstall-local): Removed. Now MinGW import libraries are installed by libtool. * acconfig.h: Removed. * m4macros/cxx_std.m4: Added AC_DEFINE() descriptions. Now use new versions of GNU autotools. - autoconf 2.54 or above - automake 1.7 or above - libtool 1.5 or above * autogen.sh: Use libtool-1.5 and automake-1.7. * configure.in: Use autoconf 2.54 or above. * Makefile.am: Use automake-1.7. 2003-03-19 Naofumi Yasufuku * configure.in: * Makefile.am: * gtkglextmm.nsi.in: Added NSIS script for Win32 binary installer. 2003-03-17 Naofumi Yasufuku * Version 0.7.1 2003-03-08 Naofumi Yasufuku * examples/shapes.cc (View::on_button_press_event): Redraw if animation is turned off. 2003-03-08 Naofumi Yasufuku * examples/*.cc: Set top-level window's resize_mode to Gtk::RESIZE_IMMEDIATE and reallocate_redraws to TRUE. * autogen.sh: Added libtoolize --force. 2003-03-04 Naofumi Yasufuku * gdkglext/src/config.{hg, ccg}: Don't use _WRAP_METHOD() for multihead-specific methods. * gdkglext/src/window.{hg, ccg}: Wrap gdk_window_*() functions. * gdkglext/src/pixmap.{hg, ccg}: Wrap gdk_pixmap_*() functions. * gdkglext/src/drawable.{hg, ccg}: Wrap gdk_gl_draw_*() functions. 2003-03-03 Naofumi Yasufuku * gtkglext/gtkmm/gl/drawingarea.h: Use Widget as base class. * gtkglext/gtkmm/gl/widgetbase.{h, cc}: Removed. * gtkglext/gtkmm/gl/widget.h: WidgetBase is merged into Widget. 2003-03-01 Naofumi Yasufuku * examples/shapes.{h, cc}: * examples/logo.{h, cc}: * examples/gears.cc: Use Gtk::GL::DrawingArea widget. * examples/simple-darea.cc: Added new Gtk::GL::DrawingArea example. * gtkglext/gtkmm/gl/drawingarea.h: * gtkglext/gtkmm/gl/drawingarea.cc: Added new Gtk::GL::DrawingArea widget to simplify programmers' work. * examples/*.{h,cc}: Use Gtk::GL::WidgetBase. * gtkglext/gtkmm/gl/widgetbase.h: * gtkglext/gtkmm/gl/widgetbase.cc: Added WidgetBase base class for creating the OpenGL-capable widgets. * gtkglext/gtkmm/gl/widget.h: * gtkglext/gtkmm/gl/widget.cc: Modified to restrict the instantiation of Widget class. * gdkglext/gdkmm/gl/font.h: * gdkglext/gdkmm/gl/font.cc: Modified to restrict the instantiation of Font class. 2003-02-27 Naofumi Yasufuku * Auto-generate sources using gtkmmproc. 2003-02-24 Naofumi Yasufuku * configure.in: Re-enabled configure to build static libraries as default. 2003-02-23 Naofumi Yasufuku * m4macros/Makefile.am: * m4macros/gtkglextmm.m4: Added AM_PATH_GTKGLEXTMM_1_0 and AC_GTKGLEXTMM_SUPPORTS_MULTIHEAD macro for checking gtkglextmm library. * configure.in: Use m4 macros provided by GtkGLExt. 2003-01-30 Naofumi Yasufuku * Version 0.7.0 2003-01-29 Naofumi Yasufuku * gdkmm/gl/config.h: * gdkmm/gl/config.cc: Added get_layer_plane(), get_n_aux_buffers(), and get_n_sample_buffers() methods. * gdkmm/gl/config.h: Removed Gdk::GL::MODE_LUMINANCE bit mask. * gdkmm/gl/query.h: * gdkmm/gl/query.cc: Removed Gdk::GL::Query struct, and its static methods have been changed to functions in Gdk::GL namespace. For example, Gdk::GL::query_extension() function should be used instead of Gdk::GL::Query::extension(). 2003-01-28 Naofumi Yasufuku * gdkmm/gl/context.cc: * gdkmm/gl/context.h: Removed GL::Context::get_colormap(). 2003-01-22 Naofumi Yasufuku * examples/pixmap-mixed.cc (on_configure_event): * examples/pixmap.cc (on_configure_event): Modified for new GL::Context::create(). * gdkmm/gl/context.h: * gdkmm/gl/context.cc: glconfig argument was removed from GL::Context constructor. * examples/gears.cc: * examples/logo.cc: * examples/shapes.cc: Use G_PI instead of M_PI. * gtkmm/gl/widget.h: * gtkmm/gl/widget.cc: Added Widget::create_gl_context() methods. 2003-01-09 Naofumi Yasufuku * gdkmm/gl/query.h: * gdkmm/gl/config.h: * gdkmm/gl/font.h: Include defs.h. 2003-01-08 Naofumi Yasufuku * gtkmm/gl/version.h.in: * gdkmm/gl/version.h.in: Include defs.h. * gtkmm/gl/defs.h: * gdkmm/gl/defs.h: Added. 2003-01-08 Naofumi Yasufuku * gdkmm/gl/config.h: Fixed display mode bit mask. 2003-01-08 Naofumi Yasufuku * gdkmm/gl/config.h: Added missing ConfigMode flags operators. * gdkmm/gl/tokens.h: * gdkmm/gl/tokens.cc: Cleanup. 2003-01-07 Naofumi Yasufuku * gdkmm/gl/tokens.h: * gdkmm/gl/tokens.cc: Removed tokens seemed unnecessary. 2002-12-24 Naofumi Yasufuku * setup-gtkglextmm.sh: Added. 2002-12-19 Naofumi Yasufuku * Version 0.6.1 * gdkmm/gl/window.h: * gdkmm/gl/window.cc: * gdkmm/gl/pixmap.h: * gdkmm/gl/pixmap.cc: * gdkmm/gl/drawable.h: * gdkmm/gl/drawable.cc: * gdkmm/gl/context.h: * gdkmm/gl/context.cc: * gdkmm/gl/config.h: * gdkmm/gl/config.cc: Added const and non-const get_ method pairs. * gtkmm/gl/widget.h: * gtkmm/gl/widget.cc: * gdkmm/gl/window.h: * gdkmm/gl/window.cc: * gdkmm/gl/query.h: * gdkmm/gl/query.cc: * gdkmm/gl/pixmap.h: * gdkmm/gl/pixmap.cc: * gdkmm/gl/font.h: * gdkmm/gl/font.cc: * gdkmm/gl/drawable.h: * gdkmm/gl/drawable.cc: * gdkmm/gl/context.h: * gdkmm/gl/context.cc: * gdkmm/gl/config.h: * gdkmm/gl/config.cc: Fixed constness of method arguments. 2002-12-18 Naofumi Yasufuku * Version 0.6.0 * examples/shapes.h: * examples/shapes.cc: New geometric object rendering demo. * gdkmm/gl/pixmap.h: * gdkmm/gl/pixmap.cc: * gdkmm/gl/window.h: * gdkmm/gl/window.cc: Avoid to use ambiguous `Drawable' class name. * gdkmm/gl/drawable.h: Removed unnecessary gdkmm header includes. * gtkmm/gl/widget.h: * gtkmm/gl/widget.cc: Added Widget::get_gl_drawable(). * gdkmm/gl/pixmap.h: * gdkmm/gl/pixmap.cc: Added Pixmap::get_gl_drawable(). * gdkmm/gl/window.h: * gdkmm/gl/window.cc: Added Window::get_gl_drawable(). 2002-12-17 Naofumi Yasufuku * configure.in: * docs/reference/Makefile.am: Changed default installed documentation dir to ${datadir}/doc/gtkglextmm-1.0. * examples/Makefile.am: * examples/Makefile.mingw: Added sample makefile for compiling example programs under MinGW/Cygwin environment. 2002-12-16 Naofumi Yasufuku * gdkmm/gl/query.h: * gdkmm/gl/query.cc: * gdkmm/gl/config.h: * gdkmm/gl/config.cc: * gdkmm/gl/font.h: * gdkmm/gl/font.cc: Added multihead support methods. * configure.in: Added --enable-warnings configure option. Added multihead checks. Generates gdkglextmm-config.h configuration header. * m4macros/*.m4: Updated. 2002-12-16 Naofumi Yasufuku * gdkmm/gl/drawable.h: * gdkmm/gl/drawable.cc: Added Drawable::get_current(). Added Drawable::draw_*() geometric object rendering methods. * gdkmm/gl/context.h: * gdkmm/gl/context.cc: Added Context::get_current(). 2002-12-15 Naofumi Yasufuku * gdkmm/gl/query.h: * gdkmm/gl/query.cc: Added Query::get_proc_address(). * gtkmm/gl/init.h: * gtkmm/gl/init.cc: * gdkmm/gl/init.h: * gdkmm/gl/init.cc: Added init() and init_check(). * configure.in : Bumped the API version to 1.0. * configure.in: Changed required packages' versions. GtkGLExt >= 0.6.0, gtkmm2 >= 2.0.0. 2002-11-15 Naofumi Yasufuku * configure.in: Disabled static libraries by default. 2002-10-09 Naofumi Yasufuku * configure.in: Added checks for win32 gcc3 "-mms-bitfields" option. 2002-09-01 Naofumi Yasufuku * Version 0.5.1. 2002-08-31 Naofumi Yasufuku * gdkmm/gl/query.h: * gdkmm/gl/query.cc: Added gl_extension(const char*). 2002-08-19 Naofumi Yasufuku * gdkmm/gl/drawable.h: * gdkmm/gl/drawable.cc: Added get_size() method. 2002-08-18 Naofumi Yasufuku * configure.in (GTKMM_REQUIRED_VERSION, GDKMM_REQUIRED_VERSION) (PANGOMM_REQUIRED_VERSION): Required gtkmm version have been changed to 1.3.20. 2002-08-16 Naofumi Yasufuku * examples/trackball.[ch]: * examples/logo-model.[ch]: * examples/logo-[gtk].c: * examples/logo.cc: Added logo demo. * configure.in: C++ checks have been updated to be associated with gtkmm 1.3.20. 2002-08-10 Naofumi Yasufuku * Version 0.5.0. * gdkmm/gl/version.h.in: * gdkmm/gl/version.cc: * gtkmm/gl/version.h.in: * gtkmm/gl/version.cc: Added. 2002-08-09 Naofumi Yasufuku * gdkmm/gl/window.h: * gdkmm/gl/window.cc: Added get_window() method. * gdkmm/gl/pixmap.h: * gdkmm/gl/pixmap.cc: Added get_pixmap() method. * gdkmm/gl/drawable.h: * gdkmm/gl/drawable.cc: Removed get_drawable(), get_size(), get_colormap(), get_visual(), get_depth() methods. * gdkmm/gl/window.h: * gdkmm/gl/private/window_p.h: * gdkmm/gl/window.cc: Modified to be derived from Gdk::Drawable. * gdkmm/gl/pixmap.h: * gdkmm/gl/private/pixmap_p.h: * gdkmm/gl/pixmap.cc: Modified to be derived from Gdk::Drawable. * examples/simple-mixed.cc: * examples/pixmap-mixed.cc: Added. * examples/*.cc: Examples have been rewritten. 2002-08-08 Naofumi Yasufuku * gdkmm/gl/config.h: * gdkmm/gl/config.cc: get_attrib() interface was changed. * docs/reference/Makefile.am: * configure.in: Now requires gtkmm 1.3.19. Changed to build and install documantation. * gdkmm/gl/query.h: * gdkmm/gl/query.cc: Added gl_extension() function. (version): Interface have been changed. * gdkmm/gl/drawable.h: * gdkmm/gl/drawable.cc: Added gl_begin(), gl_end(), get_gl_config(), get_drawable(), get_size(), get_colormap(), get_visual(), get_depth() methods. * gdkmm/gl/context.h: * gdkmm/gl/context.cc: Added get_gl_drawable(), get_gl_config(), get_share_list(), is_direct(), get_render_type(), get_colormap() methods. * gdkmm/gl/config.h: * gdkmm/gl/config.cc: Added get_visual(), is_rgba(), has_alpha(), has_depth_buffer(), has_stencil_buffer(), has_accum_buffer() methods. * gdkmm/gl/tokens.h: * gdkmm/gl/tokens.cc: Updated. * gdkmm/gl/query.h: * gdkmm/gl/font.h: * gtkmm/gl/widget.h: Changed to struct as the initial implementation was. 2002-07-29 Naofumi Yasufuku * Version 0.4.1. * gdkmm/gl/tokens.h: * gdkmm/gl/tokens.cc: Added enum value types. 2002-07-28 Naofumi Yasufuku * gdkmm/gl/config.h: * gdkmm/gl/config.cc: Added GLUT like configuration method. 2002-07-22 Naofumi Yasufuku * Version 0.4.0. * Version number is matched to the required GtkGLExt version. * Doxygen-based document. * Added RPM spec file. * Win32 build supported. * examples/gears.cc (on_drawingarea_expose_event): Fixed to be successfully compiled using GCC2. 2002-07-21 Naofumi Yasufuku * gdkmm/gl/private/*.h : * gdkmm/gl/*.h : Added Doxygen related macros. 2002-07-18 Naofumi Yasufuku * Version 0.0.1. * First alpha release. gtkglextmm-1.2.0/ltmain.sh0000644000175000001440000060745010364346274012457 00000000000000# 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, 2004, 2005 # 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # define SED for historic ltconfig's generated by Libtool 1.3 test -z "$SED" && SED=sed # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION=1.5.22 TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" # 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 # Same for EGREP, and just to be sure, do LTCC as well if test "X$EGREP" = X ; then EGREP=egrep fi if test "X$LTCC" = X ; then LTCC=${CC-gcc} fi # 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 "$progpath" --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 $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" if test -z "$max_cmd_len"; then i=0 testring="ABCD" new_result= # 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"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ = "XX$testring") >/dev/null 2>&1 && new_result=`expr "X$testring" : ".*" 2>&1` && 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. max_cmd_len=`expr $max_cmd_len \/ 2` fi ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # func_win32_libid arg # return the library type of file 'arg' # # 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. func_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 | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac 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 } # func_infer_tag arg # 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. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ 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` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # 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$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done # user sometimes does CC=-gcc so we need to match that to 'gcc' trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"` # and sometimes libtool has CC=-gcc but user does CC=gcc extendcc=${host}-${CC} # and sometimes libtool has CC=-gcc but user has CC=-gcc # (Gentoo-specific hack because we always export $CHOST) mungedcc=${CHOST-${host}}-${trimedcc} case "$@ " in "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\ "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*) tagname=CC break ;; "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\ "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\ "$mungedcc "* | " $mungedcc "* | "`$echo $mungedcc` "* | " `$echo $mungedcc` "*|\ " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # 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 $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xdir="$my_gentop/$my_xlib" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # 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" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; 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$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" 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) 2005 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 $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # 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" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --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 $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # 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 $EXIT_FAILURE 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_opt=yes suppress_output= arg_mode=normal libobj= later= 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 $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=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, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them 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 $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # 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 $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." 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 $EXIT_FAILURE 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 $EXIT_FAILURE" 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 $EXIT_FAILURE" 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 "$srcfile" "$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 $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 prefer_static_libs=yes else if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built fi build_libtool_libs=no build_old_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" 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 $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$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 $EXIT_FAILURE 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 else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 $EXIT_FAILURE ;; 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 ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= 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 $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" 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 absdir="$dir" notinst_path="$notinst_path $dir" 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*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # 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 ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -pg pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ -t[45]*|-txscale*|@*) # 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" compiler_flags="$compiler_flags $arg" 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 ;; -precious-files-regex) prev=precious_regex continue ;; -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 $EXIT_FAILURE ;; 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 $EXIT_FAILURE 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 else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $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 $EXIT_FAILURE ;; *.$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 duplications 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 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 $EXIT_FAILURE ;; 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 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 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 for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done 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" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $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) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; 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' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE 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 $EXIT_FAILURE 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 avoidtemprpath= # 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi 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 $EXIT_FAILURE 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" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; 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 use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_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='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $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='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $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.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) 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 | $EGREP ": [^:]* 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="$add_dir -L$inst_prefix_dir$libdir" ;; 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 $EXIT_FAILURE 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="$add_dir -L$inst_prefix_dir$libdir" ;; 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 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 $EXIT_FAILURE 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 # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) 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 *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; 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_cmds\" 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 $EXIT_FAILURE 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_cmds\" 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; 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 $EXIT_FAILURE 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="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$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 $EXIT_FAILURE ;; 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}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi 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* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # 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 # It is ok to link against an archive when # building a shared library. if $AR -t $potlib > /dev/null 2>&1; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi 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 # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # 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_cmds\" 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" linknames= 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 cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" 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=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break 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" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" 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 test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && 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 output_la=`$echo "X$output" | $Xsed -e "$basename"` # 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/$output_la-${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" : ".*" 2>/dev/null` && 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/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${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 reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${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 "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi 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" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_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 $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi exit $EXIT_SUCCESS 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 $EXIT_FAILURE 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" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" 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" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $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 $EXIT_SUCCESS 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 $EXIT_SUCCESS 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" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $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 $EXIT_SUCCESS ;; 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 # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" 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*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; 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/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac 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. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ 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 $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -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. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` else 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}%"` fi ;; * ) 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}%"` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; 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" exit_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 $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 $EXIT_SUCCESS 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 $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --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* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #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 '/' # define PATH_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 # ifndef PATH_SEPARATOR_2 # define PATH_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 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(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 (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* 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; for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" return 127; } 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 ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } 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 $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 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. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 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 $EXIT_FAILURE 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. # Make sure env LD_LIBRARY_PATH does not mess us up if test -n \"\${LD_LIBRARY_PATH+set}\"; then export LD_LIBRARY_PATH=\$progdir:\$LD_LIBRARY_PATH fi " 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 $EXIT_FAILURE 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 $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; 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" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds 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 # 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" : ".*" 2>/dev/null` && 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 eval cmd=\"$cmd\" 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 $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # 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 $EXIT_FAILURE fi if test "X$EGREP" = X ; then EGREP=egrep fi # We do not want portage's install root ($D) present. Check only for # this if the .la is being installed. if test "$installed" = yes && test "$D"; then eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` else mynewdependency_lib="$libdir/$name" fi # Do not add duplicates if test "$mynewdependency_lib"; then my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` if test -z "$my_little_ninja_foo_1"; then newdependency_libs="$newdependency_libs $mynewdependency_lib" fi fi ;; *) if test "$installed" = yes; then # Rather use S=WORKDIR if our version of portage supports it. # This is because some ebuild (gcc) do not use $S as buildroot. if test "$PWORKDIR"; then S="$PWORKDIR" fi # We do not want portage's build root ($S) present. my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"` # We do not want portage's install root ($D) present. my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"` if test -n "$my_little_ninja_foo_2" && test "$S"; then mynewdependency_lib="" elif test -n "$my_little_ninja_foo_3" && test "$D"; then eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` else mynewdependency_lib="$deplib" fi else mynewdependency_lib="$deplib" fi # Do not add duplicates if test "$mynewdependency_lib"; then my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"` if test -z "$my_little_ninja_foo_4"; then newdependency_libs="$newdependency_libs $mynewdependency_lib" fi fi ;; 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 $EXIT_FAILURE 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 $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" 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 # Do not add duplicates if test "$installed" = yes && test "$D"; then install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'` fi $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 $EXIT_SUCCESS ;; # 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" | 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) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -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 $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 $EXIT_FAILURE ;; 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_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 $EXIT_FAILURE ;; 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 $EXIT_SUCCESS ;; *) # 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= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; 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 $EXIT_FAILURE 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= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` 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 anyway 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 "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $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 $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS 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. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $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 $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $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 "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 $EXIT_FAILURE 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 $EXIT_SUCCESS 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 $EXIT_FAILURE 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" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $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. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $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. ;; esac 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 $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE 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 $EXIT_SUCCESS ;; 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 -precious-files-regex REGEX don't remove output files matching REGEX -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 $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # 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 disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: gtkglextmm-1.2.0/configure0000755000175000001440000271576610400725452012550 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for gtkglextmm 1.2.0. # # Report bugs to . # # Copyright (C) 2003 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 DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval 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="eval 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 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/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=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 # 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='gtkglextmm' PACKAGE_TARNAME='gtkglextmm' PACKAGE_VERSION='1.2.0' PACKAGE_STRING='gtkglextmm 1.2.0' PACKAGE_BUGREPORT='gtkglext-develop@lists.sourceforge.net' ac_unique_file="gdkglext/gdkglmm.h" # 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 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os GTKGLEXT_REQUIRED_VERSION GTKGLEXTMM_MAJOR_VERSION GTKGLEXTMM_MINOR_VERSION GTKGLEXTMM_MICRO_VERSION GTKGLEXTMM_INTERFACE_AGE GTKGLEXTMM_BINARY_AGE GTKGLEXTMM_VERSION GTKGLEXTMM_API_MAJOR_VERSION GTKGLEXTMM_API_MINOR_VERSION GTKGLEXTMM_API_VERSION LIB_MJR LIB_MNR LT_RELEASE LT_CURRENT LT_REVISION LT_AGE LT_CURRENT_MINUS_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP F77 FFLAGS ac_ct_F77 LIBTOOL PLATFORM_WIN32_TRUE PLATFORM_WIN32_FALSE OS_WIN32_TRUE OS_WIN32_FALSE gdktarget gdkglextmm_targetlib gtkglextmm_targetlib M4 WIN32_LD_EXPORT_ALL_SYMBOLS PKG_CONFIG ac_pt_PKG_CONFIG BASE_DEPENDENCIES_CFLAGS BASE_DEPENDENCIES_LIBS GTKGLEXT_CFLAGS GTKGLEXT_LIBS PERL_PATH GMMPROC_DIR GMMPROC GDKGLEXTMM_MULTIHEAD_SUPPORT MULTIHEAD_SUPPORT_TRUE MULTIHEAD_SUPPORT_FALSE GDKGLEXTMM_PACKAGES GDKGLEXTMM_EXTRA_LIBS GDKGLEXTMM_EXTRA_CFLAGS GDKGLEXTMM_DEP_LIBS GDKGLEXTMM_DEP_CFLAGS GTKGLEXTMM_PACKAGES GTKGLEXTMM_EXTRA_LIBS GTKGLEXTMM_EXTRA_CFLAGS GTKGLEXTMM_DEP_LIBS GTKGLEXTMM_DEP_CFLAGS HTML_DIR DOT_PATH HAVE_DOT DOXYGEN_PATH GLIBMM_INCLUDE_PATH PANGOMM_INCLUDE_PATH GDKMM_INCLUDE_PATH GTKMM_INCLUDE_PATH ENABLE_DOXYGEN_DOC_TRUE ENABLE_DOXYGEN_DOC_FALSE 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_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_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_CPP_set=${CPP+set} ac_env_CPP_value=$CPP ac_cv_env_CPP_set=${CPP+set} ac_cv_env_CPP_value=$CPP 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_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 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} ac_env_PKG_CONFIG_value=$PKG_CONFIG ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG ac_env_BASE_DEPENDENCIES_CFLAGS_set=${BASE_DEPENDENCIES_CFLAGS+set} ac_env_BASE_DEPENDENCIES_CFLAGS_value=$BASE_DEPENDENCIES_CFLAGS ac_cv_env_BASE_DEPENDENCIES_CFLAGS_set=${BASE_DEPENDENCIES_CFLAGS+set} ac_cv_env_BASE_DEPENDENCIES_CFLAGS_value=$BASE_DEPENDENCIES_CFLAGS ac_env_BASE_DEPENDENCIES_LIBS_set=${BASE_DEPENDENCIES_LIBS+set} ac_env_BASE_DEPENDENCIES_LIBS_value=$BASE_DEPENDENCIES_LIBS ac_cv_env_BASE_DEPENDENCIES_LIBS_set=${BASE_DEPENDENCIES_LIBS+set} ac_cv_env_BASE_DEPENDENCIES_LIBS_value=$BASE_DEPENDENCIES_LIBS # # 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 gtkglextmm 1.2.0 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 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 case $ac_init_help in short | recursive ) echo "Configuration of gtkglextmm 1.2.0:";; esac cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --disable-dependency-tracking Speeds up one-time builds --enable-dependency-tracking Do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --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) --enable-warnings=[none|minimum|maximum|hardcore] Control compiler pickyness. [default=minimum] --disable-gtkglext-test do not try to compile and run a test GtkGLExt program --enable-doxygen-doc use doxygen to build documentation [default=no] Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --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] --with-gdktarget=[x11/win32] select GDK target --with-html-dir=PATH path to installed docs [DATADIR/doc] Some influential environment variables: CC C compiler command CFLAGS 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 CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags PKG_CONFIG path to pkg-config utility BASE_DEPENDENCIES_CFLAGS C compiler flags for BASE_DEPENDENCIES, overriding pkg-config BASE_DEPENDENCIES_LIBS linker flags for BASE_DEPENDENCIES, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _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 # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac 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 gtkglextmm configure 1.2.0 generated by GNU Autoconf 2.59 Copyright (C) 2003 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 gtkglextmm $as_me 1.2.0, which was generated by GNU Autoconf 2.59. 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 && 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 # Save this value here, since automake will set cflags later cflags_set=${CFLAGS+set} # Initialize automake stuff am__api_version="1.7" ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; 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 $srcdir $srcdir/.. $srcdir/../.." >&5 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&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. # 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" # OS/2's system install, which has a completely different semantic # ./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/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /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='gtkglextmm' VERSION='1.2.0' # 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. # Specify a configuration file ac_config_headers="$ac_config_headers config.h" echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi; echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE # 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/'` # Required GtkGLExt version GTKGLEXT_REQUIRED_VERSION=1.0.0 # gtkglextmm version GTKGLEXTMM_MAJOR_VERSION=1 GTKGLEXTMM_MINOR_VERSION=2 GTKGLEXTMM_MICRO_VERSION=0 GTKGLEXTMM_INTERFACE_AGE=0 GTKGLEXTMM_BINARY_AGE=0 GTKGLEXTMM_VERSION=1.2.0 GTKGLEXTMM_API_MAJOR_VERSION=1 GTKGLEXTMM_API_MINOR_VERSION=2 GTKGLEXTMM_API_VERSION=1.2 # This is the X.Y used in -lgtkglextmm-FOO-X.Y #LIB_MJR=$GTKGLEXTMM_API_MAJOR_VERSION #LIB_MNR=$GTKGLEXTMM_API_MINOR_VERSION LIB_MJR=$GTKGLEXTMM_MAJOR_VERSION LIB_MNR=$GTKGLEXTMM_MINOR_VERSION # libtool versioning LT_RELEASE=1.2 LT_CURRENT=0 LT_REVISION=0 LT_AGE=0 LT_CURRENT_MINUS_AGE=0 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); } cat >conftest.$ac_ext <<_ACEOF /* 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 file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $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 /* 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_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std1. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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 \ '' \ '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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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.err 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 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="$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 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 /* 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 ac_cpp_err=$ac_cpp_err$ac_c_werror_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 /* 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 ac_cpp_err=$ac_cpp_err$ac_c_werror_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 /* 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 ac_cpp_err=$ac_cpp_err$ac_c_werror_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 /* 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 ac_cpp_err=$ac_cpp_err$ac_c_werror_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 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); } 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 /* 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>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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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>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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 \ '' \ '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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include 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>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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* 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>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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 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=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 /* 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 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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 /* 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 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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 /* 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 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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 /* 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 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 if test "${ac_cv_lib_cposix_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcposix $LIBS" cat >conftest.$ac_ext <<_ACEOF /* 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 strerror (); int main () { strerror (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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_cposix_strerror=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_cposix_strerror=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 if test $ac_cv_lib_cposix_strerror = yes; then LIBS="$LIBS -lcposix" fi #AM_DISABLE_STATIC # 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=yes 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 && continue 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 fi SED=$lt_cv_path_SED echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6 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 # 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 pathname 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 variants of GNU ld 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 lds 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' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac 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_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_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" done 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 ;; bsdi[45]*) 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*) # func_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='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump'. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | kfreebsd*-gnu | dragonfly*) 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|DragonFly)/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 ;; interix3*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux*) lt_cv_deplibs_check_method=pass_all ;; 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*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) 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 ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | 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"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # 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 4724 "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*|powerpc64-*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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 ;; sparc*-*solaris*) # 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 *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; *-*-cygwin* | *-*-mingw* | *-*-pw32*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then echo "$as_me:$LINENO: result: $DLLTOOL" >&5 echo "${ECHO_T}$DLLTOOL" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; 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_DLLTOOL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool" 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_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi DLLTOOL=$ac_ct_DLLTOOL else DLLTOOL="$ac_cv_prog_DLLTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; 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_AS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AS"; then ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi AS=$ac_cv_prog_AS if test -n "$AS"; then echo "$as_me:$LINENO: result: $AS" >&5 echo "${ECHO_T}$AS" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_AS"; then ac_ct_AS=$AS # Extract the first word of "as", so it can be a program name with args. set dummy as; 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_AS+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AS"; then ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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_AS="as" 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_AS" && ac_cv_prog_ac_ct_AS="false" fi fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 echo "${ECHO_T}$ac_ct_AS" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi AS=$ac_ct_AS else AS="$ac_cv_prog_AS" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then echo "$as_me:$LINENO: result: $OBJDUMP" >&5 echo "${ECHO_T}$OBJDUMP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; 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_OBJDUMP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_OBJDUMP="objdump" 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_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi OBJDUMP=$ac_ct_OBJDUMP else OBJDUMP="$ac_cv_prog_OBJDUMP" fi ;; esac need_locks="$enable_libtool_lock" 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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 /* 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 /* 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 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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 ac_cpp_err=$ac_cpp_err$ac_c_werror_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:$ac_c_preproc_warn_flag 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 compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; 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: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&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;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to gtkglext-develop@lists.sourceforge.net ## ## ----------------------------------------------------- ## _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 if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; 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 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 /* 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 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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 /* 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 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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 /* 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 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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 /* 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 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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=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 fi 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 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 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 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 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:5867:" \ "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); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) 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>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); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 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>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); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi G77=`test $ac_compiler_gnu = yes && echo yes` 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 teststring="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; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) # 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. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # 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 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'" ;; linux*) if test "$host_cpu" = ia64; then symcode='[ABCDGIRSTW]' 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'" fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; 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='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # 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 1s/^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 MSVC, # 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 "$LTCFLAGS" && LTCFLAGS=$CFLAGS 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="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # 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=yes # 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 # Check if we have a version mismatch between libtool.m4 and ltmain.sh. # # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually # calls AC_LIBTOOL_CONFIG and creates libtool. # echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6 if test "x$ltmain" = "x" ; then echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 { { echo "$as_me:$LINENO: error: *** [Gentoo] sanity check failed! *** *** \$ltmain is not defined, please check the patch for consistency! *** " >&5 echo "$as_me: error: *** [Gentoo] sanity check failed! *** *** \$ltmain is not defined, please check the patch for consistency! *** " >&2;} { (exit 1); exit 1; }; } fi gentoo_lt_version="1.5.22" gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"` if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 { { echo "$as_me:$LINENO: error: *** [Gentoo] sanity check failed! *** *** libtool.m4 and ltmain.sh have a version mismatch! *** *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** Please run: libtoolize --copy --force if appropriate, please contact the maintainer of this package (or your distribution) for help. " >&5 echo "$as_me: error: *** [Gentoo] sanity check failed! *** *** libtool.m4 and ltmain.sh have a version mismatch! *** *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** Please run: libtoolize --copy --force if appropriate, please contact the maintainer of this package (or your distribution) for help. " >&2;} { (exit 1); exit 1; }; } else echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 fi # 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"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* 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}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:6991: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:6995: \$? = $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 other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; 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' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; 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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic='-qnocommon' lt_prog_compiler_wl='-Wl,' ;; esac ;; 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_basename in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; 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' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) 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 ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; 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}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:7259: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7263: \$? = $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 other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; 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 # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag 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_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker 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 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works=yes fi 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 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 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}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:7363: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:7367: \$? = $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 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm 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= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 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 ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; 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}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. 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 supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # 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 '\''/^[BCDGRS] /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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix3*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi 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*) 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; 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" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= 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 "$lt_prog_compiler_static"; 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' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${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 '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${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 ;; bsdi[45]*) 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_cmds=".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*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes if test "$GCC" = yes ; then 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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs=no ;; esac 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* | kfreebsd*-gnu | dragonfly*) 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*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then 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 fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -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*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_direct=no hardcode_shlibpath_var=no ;; *) 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' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 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 ${output_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=: ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then wlarc='${wl}' 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 wlarc='' 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].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; 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*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; 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 # # 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 pic_flag=$lt_prog_compiler_pic 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 dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".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 ;; bsdi[45]*) 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_cmds=".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~ chmod a+x \$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="/usr/lib /lib/w32api /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 ;; linux*) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' else $archive_expsym_cmds="$archive_cmds" fi else ld_shlibs=no fi ;; *) 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 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_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; 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"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 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 ;; kfreebsd*-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 shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac 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 ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; 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 ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes 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_cmds='.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_cmds='.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_cmds='.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' ;; interix3*) 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' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; 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 # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # 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' ;; knetbsd*-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 shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU 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}${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 sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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_cmds=".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" ;; 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.3*) 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; 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 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 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 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* 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 #undef shl_load /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* 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 #undef dlopen /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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" wl=$lt_prog_compiler_wl 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); */ } else puts (dlerror ()); 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; ) >&5 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_dlunknown|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 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 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); */ } else puts (dlerror ()); 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; ) >&5 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_dlunknown|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 library types will 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* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no 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 LTCFLAGS NM \ SED SHELL STRIP \ 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # 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 host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # 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 # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # 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=$lt_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_cmds='$shrext_cmds' # 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. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 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 if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 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" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; 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_shlibpath_var_CXX=unsupported 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=cpp # 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"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # 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 $as_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 $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # 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 pathname 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 variants of GNU ld 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 lds 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 -nostdlib $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' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi 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 /* 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>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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${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 '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_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 /* 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>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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no 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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP '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 -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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 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 -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 $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_CXX=no ;; esac 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 ;; freebsd[12]*) # 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* | kfreebsd*-gnu | dragonfly*) # 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) | 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 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 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_CXX='+b $libdir' ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) 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*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) 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 hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) 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 ;; interix3*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; 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 ${output_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}${output_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 # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) 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' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no 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' ;; pgCC*) # Portland Group C++ compiler archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $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' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_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::"' ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' ;; 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 ${output_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}${output_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 ${output_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 ${output_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}${output_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 ;; 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++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -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} ${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. We must also pass each convience library through # to the system linker between allextract/defaultextract. # The C++ compiler will combine linker options so we # cannot just pass the convience library names through # without $wl. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # 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 ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; 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 # PORTME: override above test on systems where it is broken case $host_os in interix3*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; solaris*) case $cc_basename in CC*) # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. postdeps_CXX='-lCstd -lCrun' ;; esac ;; esac 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= ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; 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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_CXX='-qnocommon' lt_prog_compiler_wl_CXX='-Wl,' ;; 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* | kfreebsd*-gnu | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${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='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; 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* | ecpc*) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC*) # Portland Group C++ compiler. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; 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*) ;; 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 ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; 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}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:12185: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:12189: \$? = $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 other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; 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 # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker 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 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_CXX=yes fi else lt_prog_compiler_static_works_CXX=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi 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 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}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:12289: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:12293: \$? = $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 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm 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 '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[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 # # 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 pic_flag=$lt_prog_compiler_pic_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 dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".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 ;; bsdi[45]*) 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_cmds=".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~ chmod a+x \$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="/usr/lib /lib/w32api /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 ;; linux*) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' else $archive_expsym_cmds="$archive_cmds" fi else ld_shlibs=no fi ;; *) 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 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_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; 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"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 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 ;; kfreebsd*-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 shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac 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 ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; 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 ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes 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_cmds='.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_cmds='.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_cmds='.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' ;; interix3*) 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' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; 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 # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # 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' ;; knetbsd*-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 shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU 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}${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 sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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_cmds=".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" ;; 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.3*) 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; 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 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 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 # 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 LTCFLAGS NM \ SED SHELL STRIP \ 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 host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # 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 # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # 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=$lt_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_cmds='$shrext_cmds' # 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. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 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"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 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* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no 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 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' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; 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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_F77='-qnocommon' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; 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_basename in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; 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' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; 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*) 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 ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; 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}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13896: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:13900: \$? = $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 other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; 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 # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 if test "${lt_prog_compiler_static_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_F77=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker 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 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_F77=yes fi else lt_prog_compiler_static_works_F77=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 if test x"$lt_prog_compiler_static_works_F77" = xyes; then : else lt_prog_compiler_static_F77= fi 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 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}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:14000: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:14004: \$? = $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 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm 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= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 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 ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; 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}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. 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 supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # 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 '\''/^[BCDGRS] /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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_F77=no fi ;; interix3*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_F77=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*) 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; 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" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= 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 "$lt_prog_compiler_static"; 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' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi 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>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); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${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 '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_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>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); } && { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${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 ;; bsdi[45]*) 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_cmds=".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_F77='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='' link_all_deplibs_F77=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='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_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_F77=no ;; esac 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* | kfreebsd*-gnu | dragonfly*) 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*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then 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 fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -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*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) 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' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 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 ${output_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=: ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then wlarc='${wl}' 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 wlarc='' 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].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; 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*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag_F77='${wl}-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_F77='${wl}-z,text' allow_undefined_flag_F77='${wl}-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; 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 # # 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 pic_flag=$lt_prog_compiler_pic_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 dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".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 ;; bsdi[45]*) 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_cmds=".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~ chmod a+x \$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="/usr/lib /lib/w32api /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 ;; linux*) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' else $archive_expsym_cmds="$archive_cmds" fi else ld_shlibs=no fi ;; *) 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 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_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; 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"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 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 ;; kfreebsd*-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 shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac 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 ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; 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 ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes 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_cmds='.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_cmds='.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_cmds='.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' ;; interix3*) 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' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; 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 # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # 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' ;; knetbsd*-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 shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU 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}${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 sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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_cmds=".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" ;; 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.3*) 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; 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 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 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 # 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 LTCFLAGS NM \ SED SHELL STRIP \ 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 host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # 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 # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # 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=$lt_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_cmds='$shrext_cmds' # 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. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 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"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no old_archive_cmds_GCJ=$old_archive_cmds 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}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16240: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:16244: \$? = $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 other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; 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' ;; interix3*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; 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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_GCJ='-qnocommon' lt_prog_compiler_wl_GCJ='-Wl,' ;; esac ;; 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_basename in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-fpic' lt_prog_compiler_static_GCJ='-Bstatic' ;; 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' ;; solaris*) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_GCJ='-Qoption ld ';; *) lt_prog_compiler_wl_GCJ='-Wl,';; esac ;; 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*) 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 ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; unicos*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_can_build_shared_GCJ=no ;; 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}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16508: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:16512: \$? = $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 other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; 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 # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_GCJ=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" printf "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker 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 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_GCJ=yes fi else lt_prog_compiler_static_works_GCJ=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then : else lt_prog_compiler_static_GCJ= fi 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 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}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:16612: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:16616: \$? = $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 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_GCJ=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm 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= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 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 ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; 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}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. 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 supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # 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 '\''/^[BCDGRS] /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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_GCJ=no fi ;; interix3*) hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_GCJ=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*) 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_GCJ=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac ;; 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" = no; then runpath_var= hardcode_libdir_flag_spec_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= 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 "$lt_prog_compiler_static"; 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' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${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 '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ='$convenience' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${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 ;; bsdi[45]*) 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_cmds=".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_GCJ='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_GCJ=no hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='' link_all_deplibs_GCJ=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='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_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_GCJ=no ;; esac 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* | kfreebsd*-gnu | dragonfly*) 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*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then 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 fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -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*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; *) 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' archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 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 ${output_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=: ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then wlarc='${wl}' 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 wlarc='' 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].*) ;; *) # The compiler driver will combine linker options so we # cannot just pass the convience library names through # without $wl, iff we do not link with $LD. # Luckily, gcc supports the same syntax we need for Sun Studio. # Supported since Solaris 2.6 (maybe 2.5.1?) case $wlarc in '') whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; *) whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; esac ;; 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*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) no_undefined_flag_GCJ='${wl}-z,text' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_GCJ='${wl}-z,text' allow_undefined_flag_GCJ='${wl}-z,nodefs' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; 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 # # 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 pic_flag=$lt_prog_compiler_pic_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 dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".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 ;; bsdi[45]*) 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_cmds=".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~ chmod a+x \$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="/usr/lib /lib/w32api /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 ;; linux*) if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' else $archive_expsym_cmds="$archive_cmds" fi else ld_shlibs=no fi ;; *) 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 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_cmds='`test .$module = .yes && echo .so || echo .dylib`' # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. if test "$GCC" = yes; 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"` else sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 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 ;; kfreebsd*-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 shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU ld.so' ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac 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 ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; 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 ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; freebsd*) # from 4.6 on shlibpath_overrides_runpath=yes 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_cmds='.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_cmds='.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_cmds='.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' ;; interix3*) 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' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; 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 # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # 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' ;; knetbsd*-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 shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='GNU 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}${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 sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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_cmds=".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" ;; 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.3*) 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; 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 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 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 # 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 LTCFLAGS NM \ SED SHELL STRIP \ 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 host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # 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 # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # 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=$lt_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_cmds='$shrext_cmds' # 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. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 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"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext printf "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext printf "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 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 LTCFLAGS NM \ SED SHELL STRIP \ 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 host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # 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 # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # 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=$lt_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_cmds='$shrext_cmds' # 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. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 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 platform_win32=no echo "$as_me:$LINENO: checking for some Win32 platform" >&5 echo $ECHO_N "checking for some Win32 platform... $ECHO_C" >&6 case "$host_os" in *mingw*|*cygwin*) platform_win32=yes ;; *) ;; esac echo "$as_me:$LINENO: result: $platform_win32" >&5 echo "${ECHO_T}$platform_win32" >&6 if test "x$platform_win32" = "xyes"; then PLATFORM_WIN32_TRUE= PLATFORM_WIN32_FALSE='#' else PLATFORM_WIN32_TRUE='#' PLATFORM_WIN32_FALSE= fi os_win32=no LIBSTDCXX_LIBS= echo "$as_me:$LINENO: checking for native Win32" >&5 echo $ECHO_N "checking for native Win32... $ECHO_C" >&6 case "$host_os" in *mingw*) os_win32=yes LIBSTDCXX_LIBS=-lstdc++ ;; *) ;; esac echo "$as_me:$LINENO: result: $os_win32" >&5 echo "${ECHO_T}$os_win32" >&6 if test "x$os_win32" = "xyes"; then OS_WIN32_TRUE= OS_WIN32_FALSE='#' else OS_WIN32_TRUE='#' OS_WIN32_FALSE= fi if test "x$platform_win32" = "xyes"; then gdktarget=win32 else gdktarget=x11 fi # Check whether --with-gdktarget or --without-gdktarget was given. if test "${with_gdktarget+set}" = set; then withval="$with_gdktarget" gdktarget=$with_gdktarget fi; case $gdktarget in x11|win32) ;; *) { { echo "$as_me:$LINENO: error: Invalid target for GDK: use x11 or win32." >&5 echo "$as_me: error: Invalid target for GDK: use x11 or win32." >&2;} { (exit 1); exit 1; }; };; esac gdkglextmm_targetlib=libgdkglextmm-$gdktarget-$LIB_MJR.$LIB_MNR.la gtkglextmm_targetlib=libgtkglextmm-$gdktarget-$LIB_MJR.$LIB_MNR.la # Build time sanity check... 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 # Checks for programs. echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 if test "${am_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else am_cv_prog_cc_stdc=no ac_save_CC="$CC" # 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" cat >conftest.$ac_ext <<_ACEOF /* 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 rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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 am_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.err conftest.$ac_objext conftest.$ac_ext done CC="$ac_save_CC" fi if test -z "$am_cv_prog_cc_stdc"; then echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 else echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 fi case "x$am_cv_prog_cc_stdc" in x|xno) ;; *) CC="$CC $am_cv_prog_cc_stdc" ;; esac # 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" # OS/2's system install, which has a completely different semantic # ./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/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /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 ${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 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 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 for ac_prog in gm4 m4 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_M4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$M4"; then ac_cv_prog_M4="$M4" # 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_M4="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi M4=$ac_cv_prog_M4 if test -n "$M4"; then echo "$as_me:$LINENO: result: $M4" >&5 echo "${ECHO_T}$M4" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$M4" && break done test -n "$M4" || M4="m4" if test "$M4" = "m4"; then echo "$as_me:$LINENO: checking whether m4 is GNU m4" >&5 echo $ECHO_N "checking whether m4 is GNU m4... $ECHO_C" >&6 if $M4 --version /dev/null | grep '^GNU m4 ' >/dev/null ; then 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 if test "$host_vendor" = "sun"; then { { echo "$as_me:$LINENO: error: SUN m4 does not work for building gtkmm. Please install GNU m4." >&5 echo "$as_me: error: SUN m4 does not work for building gtkmm. Please install GNU m4." >&2;} { (exit 1); exit 1; }; } fi fi fi echo "$as_me:$LINENO: checking whether make is GNU Make" >&5 echo $ECHO_N "checking whether make is GNU Make... $ECHO_C" >&6 if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then 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 if test "$host_vendor" = "sun" ; then { { echo "$as_me:$LINENO: error: SUN make does not work for building gtkmm. Please install GNU make." >&5 echo "$as_me: error: SUN make does not work for building gtkmm. Please install GNU make." >&2;} { (exit 1); exit 1; }; } fi fi # Evaluate the --enable-warnings=level option. # Check whether --enable-warnings or --disable-warnings was given. if test "${enable_warnings+set}" = set; then enableval="$enable_warnings" gtkmm_enable_warnings="$enableval" else gtkmm_enable_warnings='minimum' fi; echo "$as_me:$LINENO: checking for compiler warning flags to use" >&5 echo $ECHO_N "checking for compiler warning flags to use... $ECHO_C" >&6 gtkmm_warning_flags='' case "$gtkmm_enable_warnings" in minimum|yes) gtkmm_warning_flags='-Wall';; maximum) gtkmm_warning_flags='-pedantic -W -Wall';; hardcore) gtkmm_warning_flags='-pedantic -W -Wall -Werror';; esac gtkmm_use_flags='' if test "x$gtkmm_warning_flags" != "x" then echo 'int foo() { return 0; }' > conftest.cc for flag in $gtkmm_warning_flags do # Test whether the compiler accepts the flag. GCC doesn't bail # out when given an unsupported flag but prints a warning, so # check the compiler output instead. gtkmm_cxx_out="`$CXX $flag -c conftest.cc 2>&1`" rm -f conftest.$OBJEXT test "x${gtkmm_cxx_out}" = "x" && \ gtkmm_use_flags="${gtkmm_use_flags:+$gtkmm_use_flags }$flag" done rm -f conftest.cc gtkmm_cxx_out='' fi if test "x$gtkmm_use_flags" != "x" then for flag in $gtkmm_use_flags do case " $CXXFLAGS " in *" $flag "*) ;; # don't add flags twice *) CXXFLAGS="${CXXFLAGS:+$CXXFLAGS }$flag";; esac done else gtkmm_use_flags='none' fi echo "$as_me:$LINENO: result: $gtkmm_use_flags" >&5 echo "${ECHO_T}$gtkmm_use_flags" >&6 # Ensure MSVC-compatible struct packing convention is used when # compiling for Win32 with gcc. # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while # gcc2 uses "-fnative-struct". if test "x$os_win32" = "xyes"; then if test "x$GCC" = "xyes"; then msnative_struct='' echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5 echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6 if test -z "$ac_cv_prog_CC"; then our_gcc="$CC" else our_gcc="$ac_cv_prog_CC" fi case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in 2.) if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then msnative_struct='-fnative-struct' fi ;; *) if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then msnative_struct='-mms-bitfields' fi ;; esac if test x"$msnative_struct" = x ; then echo "$as_me:$LINENO: result: no way" >&5 echo "${ECHO_T}no way" >&6 { echo "$as_me:$LINENO: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5 echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;} else CXXFLAGS="$CXXFLAGS $msnative_struct" echo "$as_me:$LINENO: result: ${msnative_struct}" >&5 echo "${ECHO_T}${msnative_struct}" >&6 fi fi fi # --export-all-symbols option to build Win32 DLL using MinGW ld. WIN32_LD_EXPORT_ALL_SYMBOLS='' if test "x$os_win32" = "xyes"; then echo "$as_me:$LINENO: checking whether ld accepts --export-all-symbols" >&5 echo $ECHO_N "checking whether ld accepts --export-all-symbols... $ECHO_C" >&6 if $LD --help 2>&1 | egrep 'export-all-symbols' > /dev/null; then WIN32_LD_EXPORT_ALL_SYMBOLS='-Wl,--export-all-symbols' 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 fi # Honor aclocal flags ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS -I $srcdir/m4macros" ## Initial sanity check, done here so that users get told they ## have the wrong dependencies as early in the process as possible. ## Later on we actually use the cflags/libs from separate pkg-config ## calls. Oh, also the later pkg-config calls don't include ## the version requirements since those make the module lists ## annoying to construct if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; 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_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # 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_PKG_CONFIG="$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 PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; 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_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # 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_ac_pt_PKG_CONFIG="$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 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi PKG_CONFIG=$ac_pt_PKG_CONFIG else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 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 PKG_CONFIG="" fi fi pkg_failed=no echo "$as_me:$LINENO: checking for BASE_DEPENDENCIES" >&5 echo $ECHO_N "checking for BASE_DEPENDENCIES... $ECHO_C" >&6 if test -n "$PKG_CONFIG"; then if test -n "$BASE_DEPENDENCIES_CFLAGS"; then pkg_cv_BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 1.0.0 gdkglext-1.0 >= 1.0.0 gtkmm-2.4 >= 2.4.0 gdkmm-2.4 >= 2.4.0 pangomm-1.4 >= 2.4.0 \"") >&5 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 1.0.0 gdkglext-1.0 >= 1.0.0 gtkmm-2.4 >= 2.4.0 gdkmm-2.4 >= 2.4.0 pangomm-1.4 >= 2.4.0 ") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_BASE_DEPENDENCIES_CFLAGS=`$PKG_CONFIG --cflags "gtkglext-1.0 >= 1.0.0 gdkglext-1.0 >= 1.0.0 gtkmm-2.4 >= 2.4.0 gdkmm-2.4 >= 2.4.0 pangomm-1.4 >= 2.4.0 " 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$BASE_DEPENDENCIES_LIBS"; then pkg_cv_BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkglext-1.0 >= 1.0.0 gdkglext-1.0 >= 1.0.0 gtkmm-2.4 >= 2.4.0 gdkmm-2.4 >= 2.4.0 pangomm-1.4 >= 2.4.0 \"") >&5 ($PKG_CONFIG --exists --print-errors "gtkglext-1.0 >= 1.0.0 gdkglext-1.0 >= 1.0.0 gtkmm-2.4 >= 2.4.0 gdkmm-2.4 >= 2.4.0 pangomm-1.4 >= 2.4.0 ") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_BASE_DEPENDENCIES_LIBS=`$PKG_CONFIG --libs "gtkglext-1.0 >= 1.0.0 gdkglext-1.0 >= 1.0.0 gtkmm-2.4 >= 2.4.0 gdkmm-2.4 >= 2.4.0 pangomm-1.4 >= 2.4.0 " 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkglext-1.0 >= 1.0.0 gdkglext-1.0 >= 1.0.0 gtkmm-2.4 >= 2.4.0 gdkmm-2.4 >= 2.4.0 pangomm-1.4 >= 2.4.0 "` else BASE_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkglext-1.0 >= 1.0.0 gdkglext-1.0 >= 1.0.0 gtkmm-2.4 >= 2.4.0 gdkmm-2.4 >= 2.4.0 pangomm-1.4 >= 2.4.0 "` fi # Put the nasty error message in config.log where it belongs echo "$BASE_DEPENDENCIES_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements (gtkglext-1.0 >= 1.0.0 gdkglext-1.0 >= 1.0.0 gtkmm-2.4 >= 2.4.0 gdkmm-2.4 >= 2.4.0 pangomm-1.4 >= 2.4.0 ) were not met: $BASE_DEPENDENCIES_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements (gtkglext-1.0 >= 1.0.0 gdkglext-1.0 >= 1.0.0 gtkmm-2.4 >= 2.4.0 gdkmm-2.4 >= 2.4.0 pangomm-1.4 >= 2.4.0 ) were not met: $BASE_DEPENDENCIES_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&5 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else BASE_DEPENDENCIES_CFLAGS=$pkg_cv_BASE_DEPENDENCIES_CFLAGS BASE_DEPENDENCIES_LIBS=$pkg_cv_BASE_DEPENDENCIES_LIBS echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 : fi # Checks for GtkGLExt no_gtkglext="" GTKGLEXT_CFLAGS="" GTKGLEXT_LIBS="" # GtkGLExt pkg-config module gtkglext_module=gtkglext-1.0 # minimum GtkGLExt version gtkglext_min_version=1.0.0 # minimum pkg-config version pkgconfig_min_version=0.7 # Check whether --enable-gtkglext-test or --disable-gtkglext-test was given. if test "${enable_gtkglext_test+set}" = set; then enableval="$enable_gtkglext_test" else enable_gtkglext_test=yes fi; pkg_config_modules=$gtkglext_module # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; 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_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # 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_PKG_CONFIG="$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 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version $pkgconfig_min_version ; then : else echo "" echo "*** pkg-config too old; version $pkgconfig_min_version or better required." no_gtkglext=yes PKG_CONFIG=no fi else no_gtkglext=yes fi echo "$as_me:$LINENO: checking for GtkGLExt - version >= $gtkglext_min_version" >&5 echo $ECHO_N "checking for GtkGLExt - version >= $gtkglext_min_version... $ECHO_C" >&6 if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_modules; then echo "" echo "Will use uninstalled version of GtkGLExt found in PKG_CONFIG_PATH" enable_gtkglext_test=no fi if $PKG_CONFIG --atleast-version $gtkglext_min_version $pkg_config_modules; then : else echo "" echo "*** pkg-config cannot find $gtkglext_module >= $gtkglext_min_version" echo "*** Set the environment variable PKG_CONFIG_PATH to point to the correct" echo "*** configuration files." no_gtkglext=yes enable_gtkglext_test=no fi fi if test x"$no_gtkglext" = x ; then GTKGLEXT_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_modules` GTKGLEXT_LIBS=`$PKG_CONFIG --libs $pkg_config_modules` gtkglext_config_major_version=`$PKG_CONFIG --modversion $gtkglext_module | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` gtkglext_config_minor_version=`$PKG_CONFIG --modversion $gtkglext_module | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` gtkglext_config_micro_version=`$PKG_CONFIG --modversion $gtkglext_module | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_gtkglext_test" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" LIBS="$GTKGLEXT_LIBS $LIBS" rm -f conf.gtkgltest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtkgltest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup ("$gtkglext_min_version"); if (sscanf (tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf ("%s, bad version string\n", "$gtkglext_min_version"); exit (1); } if ((gtkglext_major_version != $gtkglext_config_major_version) || (gtkglext_minor_version != $gtkglext_config_minor_version) || (gtkglext_micro_version != $gtkglext_config_micro_version)) { printf ("\n*** 'pkg-config --modversion $gtkglext_module' returned %d.%d.%d, but GtkGLExt\n", $gtkglext_config_major_version, $gtkglext_config_minor_version, $gtkglext_config_micro_version); printf ("*** library %d.%d.%d was found!\n", gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); printf ("***\n"); printf ("*** If pkg-config was correct, then it is best to remove the old version\n"); printf ("*** of GtkGLExt. You may also be able to fix the error by modifying your\n"); printf ("*** LD_LIBRARY_PATH enviroment variable, or by editing /etc/ld.so.conf.\n"); printf ("*** Make sure you have run ldconfig if that is required on your system.\n"); printf ("***\n"); printf ("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf ("*** to point to the correct configuration files.\n"); } else if ((gtkglext_major_version != GTKGLEXT_MAJOR_VERSION) || (gtkglext_minor_version != GTKGLEXT_MINOR_VERSION) || (gtkglext_micro_version != GTKGLEXT_MICRO_VERSION)) { printf ("\n*** GtkGLExt header files (version %d.%d.%d) do not match library (version %d.%d.%d).\n", GTKGLEXT_MAJOR_VERSION, GTKGLEXT_MINOR_VERSION, GTKGLEXT_MICRO_VERSION, gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); } else { if ((gtkglext_major_version > major) || ((gtkglext_major_version == major) && (gtkglext_minor_version > minor)) || ((gtkglext_major_version == major) && (gtkglext_minor_version == minor) && (gtkglext_micro_version >= micro))) { return 0; } else { printf ("\n*** An old version of GtkGLExt library (%d.%d.%d) was found.\n", gtkglext_major_version, gtkglext_minor_version, gtkglext_micro_version); printf ("*** You need a version of GtkGLExt newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf ("*** GtkGLExt is always available from http://gtkglext.sourceforge.net/.\n"); printf ("***\n"); printf ("*** If you have already installed a sufficiently new version, this error\n"); printf ("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf ("*** being found. The easiest way to fix this is to remove the old version\n"); printf ("*** of GtkGLExt, but you can also set the PKG_CONFIG environment to point\n"); printf ("*** to the correct copy of pkg-config. (In this case, you will have to\n"); printf ("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf ("*** so that the correct libraries are found at run-time)\n"); } } return 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 : 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 ) no_gtkglext=yes fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtkglext" = x ; then echo "$as_me:$LINENO: result: yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)" >&5 echo "${ECHO_T}yes (version $gtkglext_config_major_version.$gtkglext_config_minor_version.$gtkglext_config_micro_version)" >&6 : else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/." elif test "x$enable_gtkglext_test" = "xyes" ; then if test -f conf.gtkgltest ; then : else echo "*** Could not run GtkGLExt test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTKGLEXT_CFLAGS" LIBS="$LIBS $GTKGLEXT_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { return ((gtkglext_major_version) || (gtkglext_minor_version) || (gtkglext_micro_version)); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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 echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GtkGLExt or finding the wrong" echo "*** version of GtkGLExt. If it is not finding GtkGLExt, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GtkGLExt is incorrectly installed." fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTKGLEXT_CFLAGS="" GTKGLEXT_LIBS="" { { echo "$as_me:$LINENO: error: GtkGLExt not found" >&5 echo "$as_me: error: GtkGLExt not found" >&2;} { (exit 1); exit 1; }; } fi rm -f conf.gtkgltest save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $GTKGLEXT_CFLAGS" save_LIBS="$LIBS" LIBS="$LIBS $GTKGLEXT_LIBS" echo "$as_me:$LINENO: checking whether GtkGLExt supports multihead" >&5 echo $ECHO_N "checking whether GtkGLExt supports multihead... $ECHO_C" >&6 if test "${ac_cv_gtkglext_supports_multihead+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { gdk_gl_query_extension_for_display(gdk_display_get_default()); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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_gtkglext_supports_multihead=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_gtkglext_supports_multihead=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_gtkglext_supports_multihead" >&5 echo "${ECHO_T}$ac_cv_gtkglext_supports_multihead" >&6 if test "x$ac_cv_gtkglext_supports_multihead" = "xyes" ; then GTKGLEXT_SUPPORTS_MULTIHEAD=yes else GTKGLEXT_SUPPORTS_MULTIHEAD=no fi CPPFLAGS="$save_CPPFLAGS" LIBS="$save_LIBS" # gmmproc glibmm_perl_result=no for ac_prog in perl perl5 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_path_PERL_PATH+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PERL_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_PERL_PATH="$PERL_PATH" # 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_PERL_PATH="$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 PERL_PATH=$ac_cv_path_PERL_PATH if test -n "$PERL_PATH"; then echo "$as_me:$LINENO: result: $PERL_PATH" >&5 echo "${ECHO_T}$PERL_PATH" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$PERL_PATH" && break done test -n "$PERL_PATH" || PERL_PATH="not found" if test "x$PERL_PATH" != "xnot found"; then { echo "$as_me:$LINENO: checking whether Perl is new enough" >&5 echo $ECHO_N "checking whether Perl is new enough... $ECHO_C" >&6 if test "${glibmm_cv_perl_version_5_6_0+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else glibmm_cv_perl_version_5_6_0=no "$PERL_PATH" -e "require v5.6.0; exit 0;" >/dev/null 2>&1 && glibmm_cv_perl_version_5_6_0=yes fi echo "$as_me:$LINENO: result: $glibmm_cv_perl_version_5_6_0" >&5 echo "${ECHO_T}$glibmm_cv_perl_version_5_6_0" >&6 test "x${glibmm_cv_perl_version_5_6_0}" = xyes && glibmm_perl_result=yes } else { # Make sure we have something sensible, even if it doesn't work. PERL_PATH=perl } fi if test "x$glibmm_perl_result" = xno && test "x$USE_MAINTAINER_MODE" = xyes; then { { { echo "$as_me:$LINENO: error: *** Perl >= 5.6.0 is required for building $PACKAGE in maintainer-mode. " >&5 echo "$as_me: error: *** Perl >= 5.6.0 is required for building $PACKAGE in maintainer-mode. " >&2;} { (exit 1); exit 1; }; } } fi GLIBMM_PREFIX=`$PKG_CONFIG --variable=prefix glibmm-2.4` GMMPROC_DIR=$GLIBMM_PREFIX/lib/glibmm-2.4/proc GMMPROC=$GMMPROC_DIR/gmmproc # Checks for libraries. # 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 /* 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>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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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 /* 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 /* 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 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 # Checks for typedefs, structures, and compiler characteristics. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset x; /* SunOS 4.1.1 cc rejects this. */ char const *const *ccp; char **p; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; ccp = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++ccp; p = (char**) ccp; ccp = (char const *const *) p; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; } #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 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); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6 if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi # Checks for library functions. ################################################## # Checks for gdkmm multihead support ################################################## GDKGLEXTMM_MULTIHEAD_SUPPORT=no save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $BASE_DEPENDENCIES_CFLAGS" save_LIBS="$LIBS" LIBS="$LIBS $BASE_DEPENDENCIES_LIBS" if test "x$GTKGLEXT_SUPPORTS_MULTIHEAD" = "xyes"; 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 for ac_header in gdkmm/display.h gdkmm/screen.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 /* 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>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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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.err 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 /* 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_cxx_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_cxx_werror_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:$ac_cxx_preproc_warn_flag 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 compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; 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: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&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;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to gtkglext-develop@lists.sourceforge.net ## ## ----------------------------------------------------- ## _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 GDKGLEXTMM_MULTIHEAD_SUPPORT=yes else GDKGLEXTMM_MULTIHEAD_SUPPORT=no fi done if test "x$GDKGLEXTMM_MULTIHEAD_SUPPORT" = "xyes"; then echo "$as_me:$LINENO: checking for Gdk::Display::get_default in gdkmm library" >&5 echo $ECHO_N "checking for Gdk::Display::get_default in gdkmm library... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { Gdk::Display::get_default(); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 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); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (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); }; } && { 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 GDKGLEXTMM_MULTIHEAD_SUPPORT=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 GDKGLEXTMM_MULTIHEAD_SUPPORT=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext echo "$as_me:$LINENO: result: $GDKGLEXTMM_MULTIHEAD_SUPPORT" >&5 echo "${ECHO_T}$GDKGLEXTMM_MULTIHEAD_SUPPORT" >&6 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 "x$GDKGLEXTMM_MULTIHEAD_SUPPORT" = "xyes"; then { echo "$as_me:$LINENO: gdkmm supports multihead" >&5 echo "$as_me: gdkmm supports multihead" >&6;} else { echo "$as_me:$LINENO: gdkmm doesn't support multihead" >&5 echo "$as_me: gdkmm doesn't support multihead" >&6;} fi fi CPPFLAGS="$save_CPPFLAGS" LIBS="$save_LIBS" if test "x$GDKGLEXTMM_MULTIHEAD_SUPPORT" = "xyes"; then MULTIHEAD_SUPPORT_TRUE= MULTIHEAD_SUPPORT_FALSE='#' else MULTIHEAD_SUPPORT_TRUE='#' MULTIHEAD_SUPPORT_FALSE= fi ################################################## # CFLAGS and LIBS ################################################## GDKGLEXTMM_PACKAGES="gdkglext-1.0 gdkmm-2.4 pangomm-1.4" GDKGLEXTMM_EXTRA_LIBS="" GDKGLEXTMM_EXTRA_CFLAGS="" GDKGLEXTMM_DEP_LIBS="`$PKG_CONFIG --libs $GDKGLEXTMM_PACKAGES` $GDKGLEXTMM_EXTRA_LIBS $LIBSTDCXX_LIBS" GDKGLEXTMM_DEP_CFLAGS="`$PKG_CONFIG --cflags $GDKGLEXTMM_PACKAGES` $GDKGLEXTMM_EXTRA_CFLAGS $MULTIHEAD_SAFE" GTKGLEXTMM_PACKAGES="gtkglext-1.0 gtkmm-2.4" GTKGLEXTMM_EXTRA_LIBS="" GTKGLEXTMM_EXTRA_CFLAGS="" GTKGLEXTMM_DEP_LIBS="`$PKG_CONFIG --libs $GDKGLEXTMM_PACKAGES $GTKGLEXTMM_PACKAGES` $GTKGLEXTMM_EXTRA_LIBS $GDKGLEXTMM_EXTRA_LIBS $LIBSTDCXX_LIBS" GTKGLEXTMM_DEP_CFLAGS="`$PKG_CONFIG --cflags $GDKGLEXTMM_PACKAGES $GTKGLEXTMM_PACKAGES` $GDKGLEXTMM_EXTRA_CFLAGS $GTKGLEXTMM_EXTRA_CFLAGS $MULTIHEAD_SAFE" ################################################## # Checks for doxygen ################################################## # Check whether --with-html-dir or --without-html-dir was given. if test "${with_html_dir+set}" = set; then withval="$with_html_dir" fi; if test "x$with_html_dir" = "x" ; then # doxygen's default docdir HTML_DIR='${datadir}/doc' else HTML_DIR=$with_html_dir fi DOXYGEN_DOC=false PERL_PATH="" for ac_prog in perl perl5 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_path_PERL_PATH+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PERL_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_PERL_PATH="$PERL_PATH" # 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_PERL_PATH="$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 PERL_PATH=$ac_cv_path_PERL_PATH if test -n "$PERL_PATH"; then echo "$as_me:$LINENO: result: $PERL_PATH" >&5 echo "${ECHO_T}$PERL_PATH" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$PERL_PATH" && break done DOT_PATH="" HAVE_DOT=NO for ac_prog in dot 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_path_DOT_PATH+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $DOT_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_DOT_PATH="$DOT_PATH" # 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_DOT_PATH="$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 DOT_PATH=$ac_cv_path_DOT_PATH if test -n "$DOT_PATH"; then echo "$as_me:$LINENO: result: $DOT_PATH" >&5 echo "${ECHO_T}$DOT_PATH" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$DOT_PATH" && break done if test "x$DOT_PATH" != "x"; then HAVE_DOT=YES fi DOXYGEN_PATH="" for ac_prog in doxygen 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_path_DOXYGEN_PATH+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $DOXYGEN_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_DOXYGEN_PATH="$DOXYGEN_PATH" # 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_DOXYGEN_PATH="$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 DOXYGEN_PATH=$ac_cv_path_DOXYGEN_PATH if test -n "$DOXYGEN_PATH"; then echo "$as_me:$LINENO: result: $DOXYGEN_PATH" >&5 echo "${ECHO_T}$DOXYGEN_PATH" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$DOXYGEN_PATH" && break done GLIBMM_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir glibmm-2.4`/glibmm-2.4 PANGOMM_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir pangomm-1.4`/pangomm-1.4 GDKMM_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir gdkmm-2.4`/gdkmm-2.4 GTKMM_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir gtkmm-2.4`/gtkmm-2.4 if test "x$PERL_PATH" != "x" -a "x$DOXYGEN_PATH" != "x"; then DOXYGEN_DOC=true fi # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given. if test "${enable_doxygen_doc+set}" = set; then enableval="$enable_doxygen_doc" else enable_doxygen_doc=no fi; if test "x$enable_doxygen_doc" = "xyes"; then if test "x$DOXYGEN_DOC" != "xtrue"; then enable_doxygen_doc=no fi fi if test "x$enable_doxygen_doc" = "xyes"; then ENABLE_DOXYGEN_DOC_TRUE= ENABLE_DOXYGEN_DOC_FALSE='#' else ENABLE_DOXYGEN_DOC_TRUE='#' ENABLE_DOXYGEN_DOC_FALSE= fi ################################################## # Output configuration header ################################################## ac_config_commands="$ac_config_commands gdkglext/gdkglextmm-config.h" ################################################## # Config files ################################################## ac_config_files="$ac_config_files gdkglextmm.pc gtkglextmm.pc gdkglextmm-uninstalled.pc gtkglextmm-uninstalled.pc gtkglextmm.spec gtkglextmm.nsi Makefile tools/Makefile tools/extra_defs_gen/Makefile tools/m4/Makefile gdkglext/Makefile gdkglext/src/Makefile gdkglext/gdkmm/Makefile gdkglext/gdkmm/gl/Makefile gdkglext/gdkmm/gl/version.h gdkglext/gdkmm/gl/private/Makefile gtkglext/Makefile gtkglext/src/Makefile gtkglext/gtkmm/Makefile gtkglext/gtkmm/gl/Makefile gtkglext/gtkmm/gl/version.h gtkglext/gtkmm/gl/private/Makefile examples/Makefile docs/Makefile docs/reference/Makefile docs/reference/Doxyfile m4macros/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 "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi 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__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 "${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 "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"OS_WIN32\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${MULTIHEAD_SUPPORT_TRUE}" && test -z "${MULTIHEAD_SUPPORT_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MULTIHEAD_SUPPORT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MULTIHEAD_SUPPORT\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${ENABLE_DOXYGEN_DOC_TRUE}" && test -z "${ENABLE_DOXYGEN_DOC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOXYGEN_DOC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"ENABLE_DOXYGEN_DOC\" 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 DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval 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="eval 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 gtkglextmm $as_me 1.2.0, which was generated by GNU Autoconf 2.59. 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="\\ gtkglextmm config.status 1.2.0 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 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" if test "x$gdktarget" = "xx11" ; then gdkglextmm_windowing=' #define GDKGLEXTMM_WINDOWING_X11' elif test "x$gdktarget" = "xwin32" ; then gdkglextmm_windowing=' #define GDKGLEXTMM_WINDOWING_WIN32' fi if test "x$GDKGLEXTMM_MULTIHEAD_SUPPORT" = "xyes"; then gdkglextmm_multihead_support=' #define GDKGLEXTMM_MULTIHEAD_SUPPORT' fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "gdkglextmm.pc" ) CONFIG_FILES="$CONFIG_FILES gdkglextmm.pc" ;; "gtkglextmm.pc" ) CONFIG_FILES="$CONFIG_FILES gtkglextmm.pc" ;; "gdkglextmm-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES gdkglextmm-uninstalled.pc" ;; "gtkglextmm-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES gtkglextmm-uninstalled.pc" ;; "gtkglextmm.spec" ) CONFIG_FILES="$CONFIG_FILES gtkglextmm.spec" ;; "gtkglextmm.nsi" ) CONFIG_FILES="$CONFIG_FILES gtkglextmm.nsi" ;; "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; "tools/extra_defs_gen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/extra_defs_gen/Makefile" ;; "tools/m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/m4/Makefile" ;; "gdkglext/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdkglext/Makefile" ;; "gdkglext/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdkglext/src/Makefile" ;; "gdkglext/gdkmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdkglext/gdkmm/Makefile" ;; "gdkglext/gdkmm/gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdkglext/gdkmm/gl/Makefile" ;; "gdkglext/gdkmm/gl/version.h" ) CONFIG_FILES="$CONFIG_FILES gdkglext/gdkmm/gl/version.h" ;; "gdkglext/gdkmm/gl/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdkglext/gdkmm/gl/private/Makefile" ;; "gtkglext/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtkglext/Makefile" ;; "gtkglext/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtkglext/src/Makefile" ;; "gtkglext/gtkmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtkglext/gtkmm/Makefile" ;; "gtkglext/gtkmm/gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtkglext/gtkmm/gl/Makefile" ;; "gtkglext/gtkmm/gl/version.h" ) CONFIG_FILES="$CONFIG_FILES gtkglext/gtkmm/gl/version.h" ;; "gtkglext/gtkmm/gl/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtkglext/gtkmm/gl/private/Makefile" ;; "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; "docs/reference/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;; "docs/reference/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES docs/reference/Doxyfile" ;; "m4macros/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "gdkglext/gdkglextmm-config.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdkglext/gdkglextmm-config.h" ;; "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS 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,@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,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t s,@MAINT@,$MAINT,;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,@GTKGLEXT_REQUIRED_VERSION@,$GTKGLEXT_REQUIRED_VERSION,;t t s,@GTKGLEXTMM_MAJOR_VERSION@,$GTKGLEXTMM_MAJOR_VERSION,;t t s,@GTKGLEXTMM_MINOR_VERSION@,$GTKGLEXTMM_MINOR_VERSION,;t t s,@GTKGLEXTMM_MICRO_VERSION@,$GTKGLEXTMM_MICRO_VERSION,;t t s,@GTKGLEXTMM_INTERFACE_AGE@,$GTKGLEXTMM_INTERFACE_AGE,;t t s,@GTKGLEXTMM_BINARY_AGE@,$GTKGLEXTMM_BINARY_AGE,;t t s,@GTKGLEXTMM_VERSION@,$GTKGLEXTMM_VERSION,;t t s,@GTKGLEXTMM_API_MAJOR_VERSION@,$GTKGLEXTMM_API_MAJOR_VERSION,;t t s,@GTKGLEXTMM_API_MINOR_VERSION@,$GTKGLEXTMM_API_MINOR_VERSION,;t t s,@GTKGLEXTMM_API_VERSION@,$GTKGLEXTMM_API_VERSION,;t t s,@LIB_MJR@,$LIB_MJR,;t t s,@LIB_MNR@,$LIB_MNR,;t t s,@LT_RELEASE@,$LT_RELEASE,;t t s,@LT_CURRENT@,$LT_CURRENT,;t t s,@LT_REVISION@,$LT_REVISION,;t t s,@LT_AGE@,$LT_AGE,;t t s,@LT_CURRENT_MINUS_AGE@,$LT_CURRENT_MINUS_AGE,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;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,@CCDEPMODE@,$CCDEPMODE,;t t s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t s,@CPP@,$CPP,;t t s,@CXX@,$CXX,;t t s,@CXXFLAGS@,$CXXFLAGS,;t t s,@ac_ct_CXX@,$ac_ct_CXX,;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,@CXXCPP@,$CXXCPP,;t t s,@EGREP@,$EGREP,;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,@DLLTOOL@,$DLLTOOL,;t t s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t s,@AS@,$AS,;t t s,@ac_ct_AS@,$ac_ct_AS,;t t s,@OBJDUMP@,$OBJDUMP,;t t s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;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,@PLATFORM_WIN32_TRUE@,$PLATFORM_WIN32_TRUE,;t t s,@PLATFORM_WIN32_FALSE@,$PLATFORM_WIN32_FALSE,;t t s,@OS_WIN32_TRUE@,$OS_WIN32_TRUE,;t t s,@OS_WIN32_FALSE@,$OS_WIN32_FALSE,;t t s,@gdktarget@,$gdktarget,;t t s,@gdkglextmm_targetlib@,$gdkglextmm_targetlib,;t t s,@gtkglextmm_targetlib@,$gtkglextmm_targetlib,;t t s,@M4@,$M4,;t t s,@WIN32_LD_EXPORT_ALL_SYMBOLS@,$WIN32_LD_EXPORT_ALL_SYMBOLS,;t t s,@PKG_CONFIG@,$PKG_CONFIG,;t t s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t s,@BASE_DEPENDENCIES_CFLAGS@,$BASE_DEPENDENCIES_CFLAGS,;t t s,@BASE_DEPENDENCIES_LIBS@,$BASE_DEPENDENCIES_LIBS,;t t s,@GTKGLEXT_CFLAGS@,$GTKGLEXT_CFLAGS,;t t s,@GTKGLEXT_LIBS@,$GTKGLEXT_LIBS,;t t s,@PERL_PATH@,$PERL_PATH,;t t s,@GMMPROC_DIR@,$GMMPROC_DIR,;t t s,@GMMPROC@,$GMMPROC,;t t s,@GDKGLEXTMM_MULTIHEAD_SUPPORT@,$GDKGLEXTMM_MULTIHEAD_SUPPORT,;t t s,@MULTIHEAD_SUPPORT_TRUE@,$MULTIHEAD_SUPPORT_TRUE,;t t s,@MULTIHEAD_SUPPORT_FALSE@,$MULTIHEAD_SUPPORT_FALSE,;t t s,@GDKGLEXTMM_PACKAGES@,$GDKGLEXTMM_PACKAGES,;t t s,@GDKGLEXTMM_EXTRA_LIBS@,$GDKGLEXTMM_EXTRA_LIBS,;t t s,@GDKGLEXTMM_EXTRA_CFLAGS@,$GDKGLEXTMM_EXTRA_CFLAGS,;t t s,@GDKGLEXTMM_DEP_LIBS@,$GDKGLEXTMM_DEP_LIBS,;t t s,@GDKGLEXTMM_DEP_CFLAGS@,$GDKGLEXTMM_DEP_CFLAGS,;t t s,@GTKGLEXTMM_PACKAGES@,$GTKGLEXTMM_PACKAGES,;t t s,@GTKGLEXTMM_EXTRA_LIBS@,$GTKGLEXTMM_EXTRA_LIBS,;t t s,@GTKGLEXTMM_EXTRA_CFLAGS@,$GTKGLEXTMM_EXTRA_CFLAGS,;t t s,@GTKGLEXTMM_DEP_LIBS@,$GTKGLEXTMM_DEP_LIBS,;t t s,@GTKGLEXTMM_DEP_CFLAGS@,$GTKGLEXTMM_DEP_CFLAGS,;t t s,@HTML_DIR@,$HTML_DIR,;t t s,@DOT_PATH@,$DOT_PATH,;t t s,@HAVE_DOT@,$HAVE_DOT,;t t s,@DOXYGEN_PATH@,$DOXYGEN_PATH,;t t s,@GLIBMM_INCLUDE_PATH@,$GLIBMM_INCLUDE_PATH,;t t s,@PANGOMM_INCLUDE_PATH@,$PANGOMM_INCLUDE_PATH,;t t s,@GDKMM_INCLUDE_PATH@,$GDKMM_INCLUDE_PATH,;t t s,@GTKMM_INCLUDE_PATH@,$GTKMM_INCLUDE_PATH,;t t s,@ENABLE_DOXYGEN_DOC_TRUE@,$ENABLE_DOXYGEN_DOC_TRUE,;t t s,@ENABLE_DOXYGEN_DOC_FALSE@,$ENABLE_DOXYGEN_DOC_FALSE,;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 # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac 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; }; } # Do quote $f, to prevent DOS paths from being IFS'd. 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'` { 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 # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac { 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 ;; gdkglext/gdkglextmm-config.h ) outfile=gdkglextmm-config.h-tmp cat > $outfile <<\_______EOF /* gdkglextmm-config.h * * This is a generated file. Please modify `configure.in' */ #ifndef GDKGLEXTMM_CONFIG_H #define GDKGLEXTMM_CONFIG_H #include _______EOF cat >>$outfile <<_______EOF $gdkglextmm_windowing $gdkglextmm_multihead_support _______EOF cat >>$outfile <<_______EOF #if !defined(GDKGLEXT_MULTIHEAD_SUPPORT) && defined(GDKGLEXTMM_MULTIHEAD_SUPPORT) #error "Installed GdkGLExt library doesn't have multihead support." #endif _______EOF cat >>$outfile <<_______EOF #endif /* GDKGLEXTMM_CONFIG_H */ _______EOF if cmp -s $outfile gdkglext/gdkglextmm-config.h; then { echo "$as_me:$LINENO: gdkglext/gdkglextmm-config.h is unchanged" >&5 echo "$as_me: gdkglext/gdkglextmm-config.h is unchanged" >&6;} rm -f $outfile else mv $outfile gdkglext/gdkglextmm-config.h fi ;; 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 ################################################## # Print configuration ################################################## echo " configuration: multihead support: $GDKGLEXTMM_MULTIHEAD_SUPPORT " gtkglextmm-1.2.0/gdkglext/0000777000175000001440000000000010400731254012503 500000000000000gtkglextmm-1.2.0/gdkglext/src/0000777000175000001440000000000010400731254013272 500000000000000gtkglextmm-1.2.0/gdkglext/src/window.hg0000644000175000001440000000357307725052035015056 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include _DEFS(gdkmm/gl,gdkglext) _PINCLUDE(gdkmm/private/drawable_p.h) namespace Gdk { namespace GL { /** OpenGL window which is located onscreen. * * @ingroup GLDrawables */ class Window : public Gdk::Drawable, public Gdk::GL::Drawable { _CLASS_GOBJECT(Window, GdkGLWindow, GDK_GL_WINDOW, Gdk::Drawable, GdkDrawable) _IGNORE(gdk_gl_window_destroy) protected: Window(const Glib::RefPtr& glconfig, const Glib::RefPtr& window, const int* attrib_list = 0); public: _WRAP_CREATE(const Glib::RefPtr& glconfig, const Glib::RefPtr& window, const int* attrib_list = 0) public: _WRAP_METHOD(Glib::RefPtr get_window(), gdk_gl_window_get_window, refreturn) _WRAP_METHOD(Glib::RefPtr get_window() const, gdk_gl_window_get_window, refreturn) }; } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/gdkglext.defs0000644000175000001440000000012107627357444015702 00000000000000;; -*- scheme -*- (include gdkglext_methods.defs) (include gdkglext_enums.defs) gtkglextmm-1.2.0/gdkglext/src/config.hg0000644000175000001440000001100207631072340014773 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT #include #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT #include #include _DEFS(gdkmm/gl,gdkglext) _PINCLUDE(glibmm/private/object_p.h) namespace Gdk { namespace GL { _WRAP_ENUM(ConfigMode, GdkGLConfigMode, s#^GL_##) /** OpenGL frame buffer configuration. * * */ class Config : public Glib::Object { _CLASS_GOBJECT(Config, GdkGLConfig, GDK_GL_CONFIG, Glib::Object, GObject) _IGNORE(gdk_gl_config_get_screen) protected: explicit Config(const int* attrib_list); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Config(const Glib::RefPtr& screen, const int* attrib_list); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT explicit Config(ConfigMode mode); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Config(const Glib::RefPtr& screen, ConfigMode mode); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT public: /** Returns an OpenGL frame buffer configuration that match * the specified attributes. * * @param attrib_list a list of attribute/value pairs. The last * attribute must be Gdk::GL::ATTRIB_LIST_NONE. * @return the new Gdk::GL::Config if it is successful, * NULL RefPtr otherwise. */ static Glib::RefPtr create(const int* attrib_list); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT static Glib::RefPtr create(const Glib::RefPtr& screen, const int* attrib_list); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT /** Returns an OpenGL frame buffer configuration that match * the specified display mode. * * @param mode display mode bit mask. * @return the new Gdk::GL::Config if it is successful, * NULL RefPtr otherwise. */ static Glib::RefPtr create(ConfigMode mode); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT static Glib::RefPtr create(const Glib::RefPtr& screen, ConfigMode mode); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT public: #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT /** Get Gdk::Screen. * @return The Gdk::Screen. */ Glib::RefPtr get_screen(); /** Get Gdk::Screen. * @return The Gdk::Screen. */ Glib::RefPtr get_screen() const; #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT _WRAP_METHOD(bool get_attrib(int attribute, int& value) const, gdk_gl_config_get_attrib) _WRAP_METHOD(Glib::RefPtr get_colormap(), gdk_gl_config_get_colormap, refreturn) _WRAP_METHOD(Glib::RefPtr get_colormap() const, gdk_gl_config_get_colormap, refreturn) _WRAP_METHOD(Glib::RefPtr get_visual(), gdk_gl_config_get_visual, refreturn) _WRAP_METHOD(Glib::RefPtr get_visual() const, gdk_gl_config_get_visual, refreturn) _WRAP_METHOD(int get_depth() const, gdk_gl_config_get_depth) _WRAP_METHOD(int get_layer_plane() const, gdk_gl_config_get_layer_plane) _WRAP_METHOD(int get_n_aux_buffers() const, gdk_gl_config_get_n_aux_buffers) _WRAP_METHOD(int get_n_sample_buffers() const, gdk_gl_config_get_n_sample_buffers) _WRAP_METHOD(bool is_rgba() const, gdk_gl_config_is_rgba) _WRAP_METHOD(bool is_double_buffered() const, gdk_gl_config_is_double_buffered) _WRAP_METHOD(bool is_stereo() const, gdk_gl_config_is_stereo) _WRAP_METHOD(bool has_alpha() const, gdk_gl_config_has_alpha) _WRAP_METHOD(bool has_depth_buffer() const, gdk_gl_config_has_depth_buffer) _WRAP_METHOD(bool has_stencil_buffer() const, gdk_gl_config_has_stencil_buffer) _WRAP_METHOD(bool has_accum_buffer() const, gdk_gl_config_has_accum_buffer) }; } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/gdkglext_methods.defs0000644000175000001440000005230007657661273017434 00000000000000;; -*- scheme -*- ; object definitions ... (define-object Config (in-module "Gdk") (parent "GObject") (c-name "GdkGLConfig") (gtype-id "GDK_TYPE_GL_CONFIG") ) (define-object Context (in-module "Gdk") (parent "GObject") (c-name "GdkGLContext") (gtype-id "GDK_TYPE_GL_CONTEXT") ) ;(define-interface Drawable ; (in-module "Gdk") ; (c-name "GdkGLDrawable") ; (gtype-id "GDK_TYPE_GL_DRAWABLE") ;) (define-object Pixmap (in-module "Gdk") (parent "GdkDrawable") (c-name "GdkGLPixmap") (gtype-id "GDK_TYPE_GL_PIXMAP") ) (define-object Window (in-module "Gdk") (parent "GdkDrawable") (c-name "GdkGLWindow") (gtype-id "GDK_TYPE_GL_WINDOW") ) ;; Enumerations and flags ... (define-flags ConfigMode (in-module "Gdk") (c-name "GdkGLConfigMode") (gtype-id "GDK_TYPE_GL_CONFIG_MODE") (values '("rgb" "GDK_GL_MODE_RGB") '("rgba" "GDK_GL_MODE_RGBA") '("index" "GDK_GL_MODE_INDEX") '("single" "GDK_GL_MODE_SINGLE") '("double" "GDK_GL_MODE_DOUBLE") '("stereo" "GDK_GL_MODE_STEREO") '("alpha" "GDK_GL_MODE_ALPHA") '("depth" "GDK_GL_MODE_DEPTH") '("stencil" "GDK_GL_MODE_STENCIL") '("accum" "GDK_GL_MODE_ACCUM") '("multisample" "GDK_GL_MODE_MULTISAMPLE") ) ) (define-flags DebugFlag (in-module "Gdk") (c-name "GdkGLDebugFlag") (gtype-id "GDK_TYPE_GL_DEBUG_FLAG") (values '("misc" "GDK_GL_DEBUG_MISC") '("func" "GDK_GL_DEBUG_FUNC") '("impl" "GDK_GL_DEBUG_IMPL") ) ) (define-enum ConfigAttrib (in-module "Gdk") (c-name "GdkGLConfigAttrib") (gtype-id "GDK_TYPE_GL_CONFIG_ATTRIB") (values '("use-gl" "GDK_GL_USE_GL") '("buffer-size" "GDK_GL_BUFFER_SIZE") '("level" "GDK_GL_LEVEL") '("rgba" "GDK_GL_RGBA") '("doublebuffer" "GDK_GL_DOUBLEBUFFER") '("stereo" "GDK_GL_STEREO") '("aux-buffers" "GDK_GL_AUX_BUFFERS") '("red-size" "GDK_GL_RED_SIZE") '("green-size" "GDK_GL_GREEN_SIZE") '("blue-size" "GDK_GL_BLUE_SIZE") '("alpha-size" "GDK_GL_ALPHA_SIZE") '("depth-size" "GDK_GL_DEPTH_SIZE") '("stencil-size" "GDK_GL_STENCIL_SIZE") '("accum-red-size" "GDK_GL_ACCUM_RED_SIZE") '("accum-green-size" "GDK_GL_ACCUM_GREEN_SIZE") '("accum-blue-size" "GDK_GL_ACCUM_BLUE_SIZE") '("accum-alpha-size" "GDK_GL_ACCUM_ALPHA_SIZE") '("config-caveat" "GDK_GL_CONFIG_CAVEAT") '("x-visual-type" "GDK_GL_X_VISUAL_TYPE") '("transparent-type" "GDK_GL_TRANSPARENT_TYPE") '("transparent-index-value" "GDK_GL_TRANSPARENT_INDEX_VALUE") '("transparent-red-value" "GDK_GL_TRANSPARENT_RED_VALUE") '("transparent-green-value" "GDK_GL_TRANSPARENT_GREEN_VALUE") '("transparent-blue-value" "GDK_GL_TRANSPARENT_BLUE_VALUE") '("transparent-alpha-value" "GDK_GL_TRANSPARENT_ALPHA_VALUE") '("drawable-type" "GDK_GL_DRAWABLE_TYPE") '("render-type" "GDK_GL_RENDER_TYPE") '("x-renderable" "GDK_GL_X_RENDERABLE") '("fbconfig-id" "GDK_GL_FBCONFIG_ID") '("max-pbuffer-width" "GDK_GL_MAX_PBUFFER_WIDTH") '("max-pbuffer-height" "GDK_GL_MAX_PBUFFER_HEIGHT") '("max-pbuffer-pixels" "GDK_GL_MAX_PBUFFER_PIXELS") '("visual-id" "GDK_GL_VISUAL_ID") '("screen" "GDK_GL_SCREEN") '("sample-buffers" "GDK_GL_SAMPLE_BUFFERS") '("samples" "GDK_GL_SAMPLES") ) ) (define-enum ConfigCaveat (in-module "Gdk") (c-name "GdkGLConfigCaveat") (gtype-id "GDK_TYPE_GL_CONFIG_CAVEAT") (values '("config-caveat-dont-care" "GDK_GL_CONFIG_CAVEAT_DONT_CARE") '("config-caveat-none" "GDK_GL_CONFIG_CAVEAT_NONE") '("slow-config" "GDK_GL_SLOW_CONFIG") '("non-conformant-config" "GDK_GL_NON_CONFORMANT_CONFIG") ) ) (define-enum VisualType (in-module "Gdk") (c-name "GdkGLVisualType") (gtype-id "GDK_TYPE_GL_VISUAL_TYPE") (values '("visual-type-dont-care" "GDK_GL_VISUAL_TYPE_DONT_CARE") '("true-color" "GDK_GL_TRUE_COLOR") '("direct-color" "GDK_GL_DIRECT_COLOR") '("pseudo-color" "GDK_GL_PSEUDO_COLOR") '("static-color" "GDK_GL_STATIC_COLOR") '("gray-scale" "GDK_GL_GRAY_SCALE") '("static-gray" "GDK_GL_STATIC_GRAY") ) ) (define-enum TransparentType (in-module "Gdk") (c-name "GdkGLTransparentType") (gtype-id "GDK_TYPE_GL_TRANSPARENT_TYPE") (values '("none" "GDK_GL_TRANSPARENT_NONE") '("rgb" "GDK_GL_TRANSPARENT_RGB") '("index" "GDK_GL_TRANSPARENT_INDEX") ) ) (define-flags DrawableTypeMask (in-module "Gdk") (c-name "GdkGLDrawableTypeMask") (gtype-id "GDK_TYPE_GL_DRAWABLE_TYPE_MASK") (values '("window-bit" "GDK_GL_WINDOW_BIT") '("pixmap-bit" "GDK_GL_PIXMAP_BIT") '("pbuffer-bit" "GDK_GL_PBUFFER_BIT") ) ) (define-flags RenderTypeMask (in-module "Gdk") (c-name "GdkGLRenderTypeMask") (gtype-id "GDK_TYPE_GL_RENDER_TYPE_MASK") (values '("rgba-bit" "GDK_GL_RGBA_BIT") '("color-index-bit" "GDK_GL_COLOR_INDEX_BIT") ) ) (define-flags BufferMask (in-module "Gdk") (c-name "GdkGLBufferMask") (gtype-id "GDK_TYPE_GL_BUFFER_MASK") (values '("front-left-buffer-bit" "GDK_GL_FRONT_LEFT_BUFFER_BIT") '("front-right-buffer-bit" "GDK_GL_FRONT_RIGHT_BUFFER_BIT") '("back-left-buffer-bit" "GDK_GL_BACK_LEFT_BUFFER_BIT") '("back-right-buffer-bit" "GDK_GL_BACK_RIGHT_BUFFER_BIT") '("aux-buffers-bit" "GDK_GL_AUX_BUFFERS_BIT") '("depth-buffer-bit" "GDK_GL_DEPTH_BUFFER_BIT") '("stencil-buffer-bit" "GDK_GL_STENCIL_BUFFER_BIT") '("accum-buffer-bit" "GDK_GL_ACCUM_BUFFER_BIT") ) ) (define-enum ConfigError (in-module "Gdk") (c-name "GdkGLConfigError") (gtype-id "GDK_TYPE_GL_CONFIG_ERROR") (values '("bad-screen" "GDK_GL_BAD_SCREEN") '("bad-attribute" "GDK_GL_BAD_ATTRIBUTE") '("no-extension" "GDK_GL_NO_EXTENSION") '("bad-visual" "GDK_GL_BAD_VISUAL") '("bad-context" "GDK_GL_BAD_CONTEXT") '("bad-value" "GDK_GL_BAD_VALUE") '("bad-enum" "GDK_GL_BAD_ENUM") ) ) (define-enum RenderType (in-module "Gdk") (c-name "GdkGLRenderType") (gtype-id "GDK_TYPE_GL_RENDER_TYPE") (values '("rgba-type" "GDK_GL_RGBA_TYPE") '("color-index-type" "GDK_GL_COLOR_INDEX_TYPE") ) ) (define-enum DrawableAttrib (in-module "Gdk") (c-name "GdkGLDrawableAttrib") (gtype-id "GDK_TYPE_GL_DRAWABLE_ATTRIB") (values '("preserved-contents" "GDK_GL_PRESERVED_CONTENTS") '("largest-pbuffer" "GDK_GL_LARGEST_PBUFFER") '("width" "GDK_GL_WIDTH") '("height" "GDK_GL_HEIGHT") '("event-mask" "GDK_GL_EVENT_MASK") ) ) (define-enum PbufferAttrib (in-module "Gdk") (c-name "GdkGLPbufferAttrib") (gtype-id "GDK_TYPE_GL_PBUFFER_ATTRIB") (values '("preserved-contents" "GDK_GL_PBUFFER_PRESERVED_CONTENTS") '("largest-pbuffer" "GDK_GL_PBUFFER_LARGEST_PBUFFER") '("height" "GDK_GL_PBUFFER_HEIGHT") '("width" "GDK_GL_PBUFFER_WIDTH") ) ) (define-flags EventMask (in-module "Gdk") (c-name "GdkGLEventMask") (gtype-id "GDK_TYPE_GL_EVENT_MASK") (values '("k" "GDK_GL_PBUFFER_CLOBBER_MASK") ) ) (define-enum EventType (in-module "Gdk") (c-name "GdkGLEventType") (gtype-id "GDK_TYPE_GL_EVENT_TYPE") (values '("damaged" "GDK_GL_DAMAGED") '("saved" "GDK_GL_SAVED") ) ) (define-enum DrawableType (in-module "Gdk") (c-name "GdkGLDrawableType") (gtype-id "GDK_TYPE_GL_DRAWABLE_TYPE") (values '("window" "GDK_GL_WINDOW") '("pbuffer" "GDK_GL_PBUFFER") ) ) ;; From gtkglext/gdk/gdkgl.h ;; From gtkglext/gdk/gdkglconfig.h (define-function gdk_gl_config_get_type (c-name "gdk_gl_config_get_type") (return-type "GType") ) (define-function gdk_gl_config_new (c-name "gdk_gl_config_new") (is-constructor-of "GdkGLConfig") (return-type "GdkGLConfig*") (parameters '("const-int*" "attrib_list") ) ) (define-function gdk_gl_config_new_for_screen (c-name "gdk_gl_config_new_for_screen") (return-type "GdkGLConfig*") (parameters '("GdkScreen*" "screen") '("const-int*" "attrib_list") ) ) (define-function gdk_gl_config_new_by_mode (c-name "gdk_gl_config_new_by_mode") (return-type "GdkGLConfig*") (parameters '("GdkGLConfigMode" "mode") ) ) (define-function gdk_gl_config_new_by_mode_for_screen (c-name "gdk_gl_config_new_by_mode_for_screen") (return-type "GdkGLConfig*") (parameters '("GdkScreen*" "screen") '("GdkGLConfigMode" "mode") ) ) (define-method get_screen (of-object "GdkGLConfig") (c-name "gdk_gl_config_get_screen") (return-type "GdkScreen*") ) (define-method get_attrib (of-object "GdkGLConfig") (c-name "gdk_gl_config_get_attrib") (return-type "gboolean") (parameters '("int" "attribute") '("int*" "value") ) ) (define-method get_colormap (of-object "GdkGLConfig") (c-name "gdk_gl_config_get_colormap") (return-type "GdkColormap*") ) (define-method get_visual (of-object "GdkGLConfig") (c-name "gdk_gl_config_get_visual") (return-type "GdkVisual*") ) (define-method get_depth (of-object "GdkGLConfig") (c-name "gdk_gl_config_get_depth") (return-type "gint") ) (define-method get_layer_plane (of-object "GdkGLConfig") (c-name "gdk_gl_config_get_layer_plane") (return-type "gint") ) (define-method get_n_aux_buffers (of-object "GdkGLConfig") (c-name "gdk_gl_config_get_n_aux_buffers") (return-type "gint") ) (define-method get_n_sample_buffers (of-object "GdkGLConfig") (c-name "gdk_gl_config_get_n_sample_buffers") (return-type "gint") ) (define-method is_rgba (of-object "GdkGLConfig") (c-name "gdk_gl_config_is_rgba") (return-type "gboolean") ) (define-method is_double_buffered (of-object "GdkGLConfig") (c-name "gdk_gl_config_is_double_buffered") (return-type "gboolean") ) (define-method is_stereo (of-object "GdkGLConfig") (c-name "gdk_gl_config_is_stereo") (return-type "gboolean") ) (define-method has_alpha (of-object "GdkGLConfig") (c-name "gdk_gl_config_has_alpha") (return-type "gboolean") ) (define-method has_depth_buffer (of-object "GdkGLConfig") (c-name "gdk_gl_config_has_depth_buffer") (return-type "gboolean") ) (define-method has_stencil_buffer (of-object "GdkGLConfig") (c-name "gdk_gl_config_has_stencil_buffer") (return-type "gboolean") ) (define-method has_accum_buffer (of-object "GdkGLConfig") (c-name "gdk_gl_config_has_accum_buffer") (return-type "gboolean") ) ;; From gtkglext/gdk/gdkglcontext.h (define-function gdk_gl_context_get_type (c-name "gdk_gl_context_get_type") (return-type "GType") ) (define-function gdk_gl_context_new (c-name "gdk_gl_context_new") (is-constructor-of "GdkGLContext") (return-type "GdkGLContext*") (parameters '("GdkGLDrawable*" "gldrawable") '("GdkGLContext*" "share_list") '("gboolean" "direct") '("int" "render_type") ) ) (define-method destroy (of-object "GdkGLContext") (c-name "gdk_gl_context_destroy") (return-type "none") ) (define-method copy (of-object "GdkGLContext") (c-name "gdk_gl_context_copy") (return-type "gboolean") (parameters '("GdkGLContext*" "src") '("unsigned-long" "mask") ) ) (define-method get_gl_drawable (of-object "GdkGLContext") (c-name "gdk_gl_context_get_gl_drawable") (return-type "GdkGLDrawable*") ) (define-method get_gl_config (of-object "GdkGLContext") (c-name "gdk_gl_context_get_gl_config") (return-type "GdkGLConfig*") ) (define-method get_share_list (of-object "GdkGLContext") (c-name "gdk_gl_context_get_share_list") (return-type "GdkGLContext*") ) (define-method is_direct (of-object "GdkGLContext") (c-name "gdk_gl_context_is_direct") (return-type "gboolean") ) (define-method get_render_type (of-object "GdkGLContext") (c-name "gdk_gl_context_get_render_type") (return-type "int") ) (define-function gdk_gl_context_get_current (c-name "gdk_gl_context_get_current") (return-type "GdkGLContext*") ) ;; From gtkglext/gdk/gdkgldebug.h ;; From gtkglext/gdk/gdkgldefs.h ;; From gtkglext/gdk/gdkgldrawable.h (define-function gdk_gl_drawable_get_type (c-name "gdk_gl_drawable_get_type") (return-type "GType") ) (define-method make_current (of-object "GdkGLDrawable") (c-name "gdk_gl_drawable_make_current") (return-type "gboolean") (parameters '("GdkGLContext*" "glcontext") ) ) (define-method is_double_buffered (of-object "GdkGLDrawable") (c-name "gdk_gl_drawable_is_double_buffered") (return-type "gboolean") ) (define-method swap_buffers (of-object "GdkGLDrawable") (c-name "gdk_gl_drawable_swap_buffers") (return-type "none") ) (define-method wait_gl (of-object "GdkGLDrawable") (c-name "gdk_gl_drawable_wait_gl") (return-type "none") ) (define-method wait_gdk (of-object "GdkGLDrawable") (c-name "gdk_gl_drawable_wait_gdk") (return-type "none") ) (define-method gl_begin (of-object "GdkGLDrawable") (c-name "gdk_gl_drawable_gl_begin") (return-type "gboolean") (parameters '("GdkGLContext*" "glcontext") ) ) (define-method gl_end (of-object "GdkGLDrawable") (c-name "gdk_gl_drawable_gl_end") (return-type "none") ) (define-method get_gl_config (of-object "GdkGLDrawable") (c-name "gdk_gl_drawable_get_gl_config") (return-type "GdkGLConfig*") ) (define-method get_size (of-object "GdkGLDrawable") (c-name "gdk_gl_drawable_get_size") (return-type "none") (parameters '("gint*" "width") '("gint*" "height") ) ) (define-function gdk_gl_drawable_get_current (c-name "gdk_gl_drawable_get_current") (return-type "GdkGLDrawable*") ) ;; From gtkglext/gdk/gdkglenumtypes.h (define-function gdk_gl_config_caveat_get_type (c-name "gdk_gl_config_caveat_get_type") (return-type "GType") ) (define-function gdk_gl_visual_type_get_type (c-name "gdk_gl_visual_type_get_type") (return-type "GType") ) (define-function gdk_gl_transparent_type_get_type (c-name "gdk_gl_transparent_type_get_type") (return-type "GType") ) (define-function gdk_gl_drawable_type_mask_get_type (c-name "gdk_gl_drawable_type_mask_get_type") (return-type "GType") ) (define-function gdk_gl_render_type_mask_get_type (c-name "gdk_gl_render_type_mask_get_type") (return-type "GType") ) (define-function gdk_gl_buffer_mask_get_type (c-name "gdk_gl_buffer_mask_get_type") (return-type "GType") ) (define-function gdk_gl_config_error_get_type (c-name "gdk_gl_config_error_get_type") (return-type "GType") ) (define-function gdk_gl_render_type_get_type (c-name "gdk_gl_render_type_get_type") (return-type "GType") ) (define-function gdk_gl_drawable_attrib_get_type (c-name "gdk_gl_drawable_attrib_get_type") (return-type "GType") ) (define-function gdk_gl_pbuffer_attrib_get_type (c-name "gdk_gl_pbuffer_attrib_get_type") (return-type "GType") ) (define-function gdk_gl_event_mask_get_type (c-name "gdk_gl_event_mask_get_type") (return-type "GType") ) (define-function gdk_gl_event_type_get_type (c-name "gdk_gl_event_type_get_type") (return-type "GType") ) (define-function gdk_gl_drawable_type_get_type (c-name "gdk_gl_drawable_type_get_type") (return-type "GType") ) (define-function gdk_gl_config_mode_get_type (c-name "gdk_gl_config_mode_get_type") (return-type "GType") ) ;; From gtkglext/gdk/gdkglext-config.h ;; From gtkglext/gdk/gdkglfont.h (define-function gdk_gl_font_use_pango_font (c-name "gdk_gl_font_use_pango_font") (return-type "PangoFont*") (parameters '("const-PangoFontDescription*" "font_desc") '("int" "first") '("int" "count") '("int" "list_base") ) ) (define-function gdk_gl_font_use_pango_font_for_display (c-name "gdk_gl_font_use_pango_font_for_display") (return-type "PangoFont*") (parameters '("GdkDisplay*" "display") '("const-PangoFontDescription*" "font_desc") '("int" "first") '("int" "count") '("int" "list_base") ) ) ;; From gtkglext/gdk/gdkglinit.h (define-function gdk_gl_parse_args (c-name "gdk_gl_parse_args") (return-type "gboolean") (parameters '("int*" "argc") '("char***" "argv") ) ) (define-function gdk_gl_init_check (c-name "gdk_gl_init_check") (return-type "gboolean") (parameters '("int*" "argc") '("char***" "argv") ) ) (define-function gdk_gl_init (c-name "gdk_gl_init") (return-type "none") (parameters '("int*" "argc") '("char***" "argv") ) ) ;; From gtkglext/gdk/gdkglpixmap.h (define-function gdk_gl_pixmap_get_type (c-name "gdk_gl_pixmap_get_type") (return-type "GType") ) (define-function gdk_gl_pixmap_new (c-name "gdk_gl_pixmap_new") (is-constructor-of "GdkGLPixmap") (return-type "GdkGLPixmap*") (parameters '("GdkGLConfig*" "glconfig") '("GdkPixmap*" "pixmap") '("const-int*" "attrib_list") ) ) (define-method destroy (of-object "GdkGLPixmap") (c-name "gdk_gl_pixmap_destroy") (return-type "none") ) (define-method get_pixmap (of-object "GdkGLPixmap") (c-name "gdk_gl_pixmap_get_pixmap") (return-type "GdkPixmap*") ) (define-method set_gl_capability (of-object "GdkPixmap") (c-name "gdk_pixmap_set_gl_capability") (return-type "GdkGLPixmap*") (parameters '("GdkGLConfig*" "glconfig") '("const-int*" "attrib_list") ) ) (define-method unset_gl_capability (of-object "GdkPixmap") (c-name "gdk_pixmap_unset_gl_capability") (return-type "none") ) (define-method is_gl_capable (of-object "GdkPixmap") (c-name "gdk_pixmap_is_gl_capable") (return-type "gboolean") ) (define-method get_gl_pixmap (of-object "GdkPixmap") (c-name "gdk_pixmap_get_gl_pixmap") (return-type "GdkGLPixmap*") ) (define-method get_gl_drawable (of-object "GdkPixmap") (c-name "gdk_pixmap_get_gl_drawable") (return-type "GdkGLDrawable*") ) ;; From gtkglext/gdk/gdkglprivate.h ;; From gtkglext/gdk/gdkglquery.h (define-function gdk_gl_query_extension (c-name "gdk_gl_query_extension") (return-type "gboolean") ) (define-function gdk_gl_query_extension_for_display (c-name "gdk_gl_query_extension_for_display") (return-type "gboolean") (parameters '("GdkDisplay*" "display") ) ) (define-function gdk_gl_query_version (c-name "gdk_gl_query_version") (return-type "gboolean") (parameters '("int*" "major") '("int*" "minor") ) ) (define-function gdk_gl_query_version_for_display (c-name "gdk_gl_query_version_for_display") (return-type "gboolean") (parameters '("GdkDisplay*" "display") '("int*" "major") '("int*" "minor") ) ) (define-function gdk_gl_query_gl_extension (c-name "gdk_gl_query_gl_extension") (return-type "gboolean") (parameters '("const-char*" "extension") ) ) (define-function gdk_gl_get_proc_address (c-name "gdk_gl_get_proc_address") (return-type "GdkGLProc") (parameters '("const-char*" "proc_name") ) ) ;; From gtkglext/gdk/gdkglshapes.h (define-function gdk_gl_draw_cube (c-name "gdk_gl_draw_cube") (return-type "none") (parameters '("gboolean" "solid") '("double" "size") ) ) (define-function gdk_gl_draw_sphere (c-name "gdk_gl_draw_sphere") (return-type "none") (parameters '("gboolean" "solid") '("double" "radius") '("int" "slices") '("int" "stacks") ) ) (define-function gdk_gl_draw_cone (c-name "gdk_gl_draw_cone") (return-type "none") (parameters '("gboolean" "solid") '("double" "base") '("double" "height") '("int" "slices") '("int" "stacks") ) ) (define-function gdk_gl_draw_torus (c-name "gdk_gl_draw_torus") (return-type "none") (parameters '("gboolean" "solid") '("double" "inner_radius") '("double" "outer_radius") '("int" "nsides") '("int" "rings") ) ) (define-function gdk_gl_draw_tetrahedron (c-name "gdk_gl_draw_tetrahedron") (return-type "none") (parameters '("gboolean" "solid") ) ) (define-function gdk_gl_draw_octahedron (c-name "gdk_gl_draw_octahedron") (return-type "none") (parameters '("gboolean" "solid") ) ) (define-function gdk_gl_draw_dodecahedron (c-name "gdk_gl_draw_dodecahedron") (return-type "none") (parameters '("gboolean" "solid") ) ) (define-function gdk_gl_draw_icosahedron (c-name "gdk_gl_draw_icosahedron") (return-type "none") (parameters '("gboolean" "solid") ) ) (define-function gdk_gl_draw_teapot (c-name "gdk_gl_draw_teapot") (return-type "none") (parameters '("gboolean" "solid") '("double" "scale") ) ) ;; From gtkglext/gdk/gdkgltokens.h ;; From gtkglext/gdk/gdkgltypes.h ;; From gtkglext/gdk/gdkglversion.h ;; From gtkglext/gdk/gdkglwindow.h (define-function gdk_gl_window_get_type (c-name "gdk_gl_window_get_type") (return-type "GType") ) (define-function gdk_gl_window_new (c-name "gdk_gl_window_new") (is-constructor-of "GdkGLWindow") (return-type "GdkGLWindow*") (parameters '("GdkGLConfig*" "glconfig") '("GdkWindow*" "window") '("const-int*" "attrib_list") ) ) (define-method destroy (of-object "GdkGLWindow") (c-name "gdk_gl_window_destroy") (return-type "none") ) (define-method get_window (of-object "GdkGLWindow") (c-name "gdk_gl_window_get_window") (return-type "GdkWindow*") ) (define-method set_gl_capability (of-object "GdkWindow") (c-name "gdk_window_set_gl_capability") (return-type "GdkGLWindow*") (parameters '("GdkGLConfig*" "glconfig") '("const-int*" "attrib_list") ) ) (define-method unset_gl_capability (of-object "GdkWindow") (c-name "gdk_window_unset_gl_capability") (return-type "none") ) (define-method is_gl_capable (of-object "GdkWindow") (c-name "gdk_window_is_gl_capable") (return-type "gboolean") ) (define-method get_gl_window (of-object "GdkWindow") (c-name "gdk_window_get_gl_window") (return-type "GdkGLWindow*") ) (define-method get_gl_drawable (of-object "GdkWindow") (c-name "gdk_window_get_gl_drawable") (return-type "GdkGLDrawable*") ) gtkglextmm-1.2.0/gdkglext/src/pixmap.ccg0000644000175000001440000000262707725052035015202 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include namespace Gdk { namespace GL { Pixmap::Pixmap(const Glib::RefPtr& glconfig, const Glib::RefPtr& pixmap, const int* attrib_list) : Gdk::Drawable(reinterpret_cast( gdk_gl_pixmap_new(const_cast(Glib::unwrap(glconfig)), const_cast(Glib::unwrap(pixmap)), attrib_list))) {} } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/gdkglext_enums.defs0000644000175000001440000001547207631051117017107 00000000000000;; -*- scheme -*- ;; From gtkglext/gdk/gdkglconfig.h (define-flags-extended ConfigMode (in-module "Gdk") (c-name "GdkGLConfigMode") (values '("rgb" "GDK_GL_MODE_RGB" "0") '("rgba" "GDK_GL_MODE_RGBA" "0") '("index" "GDK_GL_MODE_INDEX" "1 << 0") '("single" "GDK_GL_MODE_SINGLE" "0") '("double" "GDK_GL_MODE_DOUBLE" "1 << 1") '("stereo" "GDK_GL_MODE_STEREO" "1 << 2") '("alpha" "GDK_GL_MODE_ALPHA" "1 << 3") '("depth" "GDK_GL_MODE_DEPTH" "1 << 4") '("stencil" "GDK_GL_MODE_STENCIL" "1 << 5") '("accum" "GDK_GL_MODE_ACCUM" "1 << 6") '("multisample" "GDK_GL_MODE_MULTISAMPLE" "1 << 7") ) ) ;; From gtkglext/gdk/gdkgldebug.h (define-flags-extended DebugFlag (in-module "Gdk") (c-name "GdkGLDebugFlag") (values '("misc" "GDK_GL_DEBUG_MISC" "1 << 0") '("func" "GDK_GL_DEBUG_FUNC" "1 << 1") '("impl" "GDK_GL_DEBUG_IMPL" "1 << 2") ) ) ;; From gtkglext/gdk/gdkgltokens.h (define-enum-extended ConfigAttrib (in-module "Gdk") (c-name "GdkGLConfigAttrib") (values '("use-gl" "GDK_GL_USE_GL" "1") '("buffer-size" "GDK_GL_BUFFER_SIZE" "2") '("level" "GDK_GL_LEVEL" "3") '("rgba" "GDK_GL_RGBA" "4") '("doublebuffer" "GDK_GL_DOUBLEBUFFER" "5") '("stereo" "GDK_GL_STEREO" "6") '("aux-buffers" "GDK_GL_AUX_BUFFERS" "7") '("red-size" "GDK_GL_RED_SIZE" "8") '("green-size" "GDK_GL_GREEN_SIZE" "9") '("blue-size" "GDK_GL_BLUE_SIZE" "10") '("alpha-size" "GDK_GL_ALPHA_SIZE" "11") '("depth-size" "GDK_GL_DEPTH_SIZE" "12") '("stencil-size" "GDK_GL_STENCIL_SIZE" "13") '("accum-red-size" "GDK_GL_ACCUM_RED_SIZE" "14") '("accum-green-size" "GDK_GL_ACCUM_GREEN_SIZE" "15") '("accum-blue-size" "GDK_GL_ACCUM_BLUE_SIZE" "16") '("accum-alpha-size" "GDK_GL_ACCUM_ALPHA_SIZE" "17") '("config-caveat" "GDK_GL_CONFIG_CAVEAT" "0x20") '("x-visual-type" "GDK_GL_X_VISUAL_TYPE" "0x22") '("transparent-type" "GDK_GL_TRANSPARENT_TYPE" "0x23") '("transparent-index-value" "GDK_GL_TRANSPARENT_INDEX_VALUE" "0x24") '("transparent-red-value" "GDK_GL_TRANSPARENT_RED_VALUE" "0x25") '("transparent-green-value" "GDK_GL_TRANSPARENT_GREEN_VALUE" "0x26") '("transparent-blue-value" "GDK_GL_TRANSPARENT_BLUE_VALUE" "0x27") '("transparent-alpha-value" "GDK_GL_TRANSPARENT_ALPHA_VALUE" "0x28") '("drawable-type" "GDK_GL_DRAWABLE_TYPE" "0x8010") '("render-type" "GDK_GL_RENDER_TYPE" "0x8011") '("x-renderable" "GDK_GL_X_RENDERABLE" "0x8012") '("fbconfig-id" "GDK_GL_FBCONFIG_ID" "0x8013") '("max-pbuffer-width" "GDK_GL_MAX_PBUFFER_WIDTH" "0x8016") '("max-pbuffer-height" "GDK_GL_MAX_PBUFFER_HEIGHT" "0x8017") '("max-pbuffer-pixels" "GDK_GL_MAX_PBUFFER_PIXELS" "0x8018") '("visual-id" "GDK_GL_VISUAL_ID" "0x800B") '("screen" "GDK_GL_SCREEN" "0x800C") '("sample-buffers" "GDK_GL_SAMPLE_BUFFERS" "100000") '("samples" "GDK_GL_SAMPLES" "100001") ) ) (define-enum-extended ConfigCaveat (in-module "Gdk") (c-name "GdkGLConfigCaveat") (values '("config-caveat-dont-care" "GDK_GL_CONFIG_CAVEAT_DONT_CARE" "0xFFFFFFFF") '("config-caveat-none" "GDK_GL_CONFIG_CAVEAT_NONE" "0x8000") '("slow-config" "GDK_GL_SLOW_CONFIG" "0x8001") '("non-conformant-config" "GDK_GL_NON_CONFORMANT_CONFIG" "0x800D") ) ) (define-enum-extended VisualType (in-module "Gdk") (c-name "GdkGLVisualType") (values '("visual-type-dont-care" "GDK_GL_VISUAL_TYPE_DONT_CARE" "0xFFFFFFFF") '("true-color" "GDK_GL_TRUE_COLOR" "0x8002") '("direct-color" "GDK_GL_DIRECT_COLOR" "0x8003") '("pseudo-color" "GDK_GL_PSEUDO_COLOR" "0x8004") '("static-color" "GDK_GL_STATIC_COLOR" "0x8005") '("gray-scale" "GDK_GL_GRAY_SCALE" "0x8006") '("static-gray" "GDK_GL_STATIC_GRAY" "0x8007") ) ) (define-enum-extended TransparentType (in-module "Gdk") (c-name "GdkGLTransparentType") (values '("none" "GDK_GL_TRANSPARENT_NONE" "0x8000") '("rgb" "GDK_GL_TRANSPARENT_RGB" "0x8008") '("index" "GDK_GL_TRANSPARENT_INDEX" "0x8009") ) ) (define-flags-extended DrawableTypeMask (in-module "Gdk") (c-name "GdkGLDrawableTypeMask") (values '("window-bit" "GDK_GL_WINDOW_BIT" "1 << 0") '("pixmap-bit" "GDK_GL_PIXMAP_BIT" "1 << 1") '("pbuffer-bit" "GDK_GL_PBUFFER_BIT" "1 << 2") ) ) (define-flags-extended RenderTypeMask (in-module "Gdk") (c-name "GdkGLRenderTypeMask") (values '("rgba-bit" "GDK_GL_RGBA_BIT" "1 << 0") '("color-index-bit" "GDK_GL_COLOR_INDEX_BIT" "1 << 1") ) ) (define-flags-extended BufferMask (in-module "Gdk") (c-name "GdkGLBufferMask") (values '("front-left-buffer-bit" "GDK_GL_FRONT_LEFT_BUFFER_BIT" "1 << 0") '("front-right-buffer-bit" "GDK_GL_FRONT_RIGHT_BUFFER_BIT" "1 << 1") '("back-left-buffer-bit" "GDK_GL_BACK_LEFT_BUFFER_BIT" "1 << 2") '("back-right-buffer-bit" "GDK_GL_BACK_RIGHT_BUFFER_BIT" "1 << 3") '("aux-buffers-bit" "GDK_GL_AUX_BUFFERS_BIT" "1 << 4") '("depth-buffer-bit" "GDK_GL_DEPTH_BUFFER_BIT" "1 << 5") '("stencil-buffer-bit" "GDK_GL_STENCIL_BUFFER_BIT" "1 << 6") '("accum-buffer-bit" "GDK_GL_ACCUM_BUFFER_BIT" "1 << 7") ) ) (define-enum-extended ConfigError (in-module "Gdk") (c-name "GdkGLConfigError") (values '("bad-screen" "GDK_GL_BAD_SCREEN" "1") '("bad-attribute" "GDK_GL_BAD_ATTRIBUTE" "2") '("no-extension" "GDK_GL_NO_EXTENSION" "3") '("bad-visual" "GDK_GL_BAD_VISUAL" "4") '("bad-context" "GDK_GL_BAD_CONTEXT" "5") '("bad-value" "GDK_GL_BAD_VALUE" "6") '("bad-enum" "GDK_GL_BAD_ENUM" "7") ) ) (define-enum-extended RenderType (in-module "Gdk") (c-name "GdkGLRenderType") (values '("rgba-type" "GDK_GL_RGBA_TYPE" "0x8014") '("color-index-type" "GDK_GL_COLOR_INDEX_TYPE" "0x8015") ) ) (define-enum-extended DrawableAttrib (in-module "Gdk") (c-name "GdkGLDrawableAttrib") (values '("preserved-contents" "GDK_GL_PRESERVED_CONTENTS" "0x801B") '("largest-pbuffer" "GDK_GL_LARGEST_PBUFFER" "0x801C") '("width" "GDK_GL_WIDTH" "0x801D") '("height" "GDK_GL_HEIGHT" "0x801E") '("event-mask" "GDK_GL_EVENT_MASK" "0x801F") ) ) (define-enum-extended PbufferAttrib (in-module "Gdk") (c-name "GdkGLPbufferAttrib") (values '("preserved-contents" "GDK_GL_PBUFFER_PRESERVED_CONTENTS" "0x801B") '("largest-pbuffer" "GDK_GL_PBUFFER_LARGEST_PBUFFER" "0x801C") '("height" "GDK_GL_PBUFFER_HEIGHT" "0x8040") '("width" "GDK_GL_PBUFFER_WIDTH" "0x8041") ) ) (define-flags-extended EventMask (in-module "Gdk") (c-name "GdkGLEventMask") (values '("k" "GDK_GL_PBUFFER_CLOBBER_MASK" "1 << 27") ) ) (define-enum-extended EventType (in-module "Gdk") (c-name "GdkGLEventType") (values '("damaged" "GDK_GL_DAMAGED" "0x8020") '("saved" "GDK_GL_SAVED" "0x8021") ) ) (define-enum-extended DrawableType (in-module "Gdk") (c-name "GdkGLDrawableType") (values '("window" "GDK_GL_WINDOW" "0x8022") '("pbuffer" "GDK_GL_PBUFFER" "0x8023") ) ) gtkglextmm-1.2.0/gdkglext/src/drawable.ccg0000644000175000001440000000172507631053454015465 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include namespace Gdk { namespace GL { } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/config.ccg0000644000175000001440000000757410052323316015145 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include namespace Gdk { namespace GL { Config::Config(const int* attrib_list) : Glib::Object(reinterpret_cast( gdk_gl_config_new(attrib_list))) {} #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Config::Config(const Glib::RefPtr& screen, const int* attrib_list) : Glib::Object(reinterpret_cast( gdk_gl_config_new_for_screen(const_cast(Glib::unwrap(screen)), attrib_list))) {} #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT Config::Config(ConfigMode mode) : Glib::Object(reinterpret_cast( gdk_gl_config_new_by_mode((GdkGLConfigMode)(mode)))) {} #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Config::Config(const Glib::RefPtr& screen, ConfigMode mode) : Glib::Object(reinterpret_cast( gdk_gl_config_new_by_mode_for_screen(const_cast(Glib::unwrap(screen)), (GdkGLConfigMode)(mode)))) {} #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::create(const int* attrib_list) { return Glib::wrap(gdk_gl_config_new(attrib_list)); } #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::create(const Glib::RefPtr& screen, const int* attrib_list) { return Glib::wrap( gdk_gl_config_new_for_screen(const_cast(Glib::unwrap(screen)), attrib_list)); } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::create(ConfigMode mode) { return Glib::wrap(gdk_gl_config_new_by_mode((GdkGLConfigMode)(mode))); } #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::create(const Glib::RefPtr& screen, ConfigMode mode) { return Glib::wrap( gdk_gl_config_new_by_mode_for_screen(const_cast(Glib::unwrap(screen)), (GdkGLConfigMode)(mode))); } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::get_screen() { Glib::RefPtr retvalue = Glib::wrap(gdk_gl_config_get_screen(gobj())); if (retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::get_screen() const { Glib::RefPtr retvalue = Glib::wrap(gdk_gl_config_get_screen(const_cast(gobj()))); if (retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/context.hg0000644000175000001440000001064307657671403015241 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include _DEFS(gdkmm/gl,gdkglext) _PINCLUDE(glibmm/private/object_p.h) namespace Gdk { namespace GL { class Drawable; /** OpenGL rendering context. * * */ class Context : public Glib::Object { _CLASS_GOBJECT(Context, GdkGLContext, GDK_GL_CONTEXT, Glib::Object, GObject) _IGNORE(gdk_gl_context_destroy, gdk_gl_context_copy) protected: Context(const Glib::RefPtr& gldrawable, const Glib::RefPtr& share_list, bool direct = true, int render_type = RGBA_TYPE); explicit Context(const Glib::RefPtr& gldrawable, bool direct = true, int render_type = RGBA_TYPE); public: /** Create a new OpenGL rendering context. * * @param gldrawable a Gdk::GL::Drawable. * @param share_list the Gdk::GL::Context which to share display lists. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return the new Gdk::GL::Context. */ static Glib::RefPtr create(const Glib::RefPtr& gldrawable, const Glib::RefPtr& share_list, bool direct = true, int render_type = RGBA_TYPE); /** Create a new OpenGL rendering context. * * @param gldrawable a Gdk::GL::Drawable. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return the new Gdk::GL::Context. */ static Glib::RefPtr create(const Glib::RefPtr& gldrawable, bool direct = true, int render_type = RGBA_TYPE); public: /** Copy state from one rendering context to another. * * @a mask contains the bitwise-OR of the same symbolic names that * are passed to the glPushAttrib() function. You can use * GL_ALL_ATTRIB_BITS to copy all the rendering state information. * * @param src the source context. * @param mask which portions of @a src state are to be copied. * @return false if it fails, true otherwise. */ bool copy(const Glib::RefPtr& src, unsigned long mask = GL_ALL_ATTRIB_BITS); _WRAP_METHOD(Glib::RefPtr get_gl_drawable(), gdk_gl_context_get_gl_drawable, refreturn) _WRAP_METHOD(Glib::RefPtr get_gl_drawable() const, gdk_gl_context_get_gl_drawable, refreturn) _WRAP_METHOD(Glib::RefPtr get_gl_config(), gdk_gl_context_get_gl_config, refreturn) _WRAP_METHOD(Glib::RefPtr get_gl_config() const, gdk_gl_context_get_gl_config, refreturn) _WRAP_METHOD(Glib::RefPtr get_share_list(), gdk_gl_context_get_share_list, refreturn) _WRAP_METHOD(Glib::RefPtr get_share_list() const, gdk_gl_context_get_share_list, refreturn) _WRAP_METHOD(bool is_direct() const, gdk_gl_context_is_direct) _WRAP_METHOD(int get_render_type() const, gdk_gl_context_get_render_type) _WRAP_METHOD(static Glib::RefPtr get_current(), gdk_gl_context_get_current, refreturn) }; } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/Makefile_list_of_hg.am_fragment0000644000175000001440000000050607627357444021351 00000000000000# This file is include by other Makefile.am files, using the new automake include feature. # The include happens in Makefile.am, not Makefile.in or Makefile, # so it's like copy-and-pasting this into each of those Makefile.am files. files_hg = \ tokens.hg \ config.hg \ context.hg \ drawable.hg \ pixmap.hg \ window.hg gtkglextmm-1.2.0/gdkglext/src/Makefile.am0000644000175000001440000000041210052323316015236 00000000000000sublib_name = gdkmm sublib_namespace = Gdk sublib_parentdir = gdkmm/gl files_defs = \ gdkglext.defs \ gdkglext_methods.defs \ gdkglext_enums.defs \ gdkglext_docs.xml \ gdkglext_docs_override.xml include $(top_srcdir)/build_shared/Makefile_gensrc.am_fragment gtkglextmm-1.2.0/gdkglext/src/Makefile.in0000644000175000001440000003123510400725444015263 00000000000000# Makefile.in generated by automake 1.7.9 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@ # This file is include by other Makefile.am files, using the new automake include feature. # The include happens in Makefile.am, not Makefile.in or Makefile, # so it's like copy-and-pasting this into each of those Makefile.am files. 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ sublib_name = gdkmm sublib_namespace = Gdk sublib_parentdir = gdkmm/gl files_defs = \ gdkglext.defs \ gdkglext_methods.defs \ gdkglext_enums.defs \ gdkglext_docs.xml \ gdkglext_docs_override.xml tools_dir = $(top_srcdir)/tools tools_dir_m4 = $(top_srcdir)/tools/m4 tools_dir_pm = $(top_srcdir)/tools/pm gensrc_destdir = $(srcdir)/../$(sublib_parentdir) stamp_dir = $(srcdir)/.stamps files_tools_m4 = convert.m4 convert_gdkglext.m4 convert_gtkglext.m4 files_tools_perl = files_tools_pm = tools_m4 = $(files_tools_m4:%.m4=$(tools_dir_m4)/%.m4) files_hg = \ tokens.hg \ config.hg \ context.hg \ drawable.hg \ pixmap.hg \ window.hg # tools_pm = $(files_tools_pm:%.pm=$(tools_dir_pm)/%.pm) files_ccg = $(files_hg:%.hg=%.ccg) files_h = $(files_hg:%.hg=$(gensrc_destdir)/%.h) files_cc = $(files_hg:%.hg=$(gensrc_destdir)/%.cc) files_stamp = $(files_hg:%.hg=$(stamp_dir)/stamp-%) # Installed gmmproc stuff, from glibmm: gmmproc_path = $(GMMPROC) gmmproc_dir = $(GMMPROC_DIR) # We use our own m4 and pm files as well as the ones installed by gtkmm: # Our override m4 include seems to need to be before the default one. gmmproc_args = -I $(tools_dir_m4) --defs $(srcdir) run_gmmproc = $(gmmproc_path) $(gmmproc_args) gen_wrap_init_path = $(gmmproc_dir)/generate_wrap_init.pl gen_wrap_init_args = --namespace=$(sublib_namespace) --namespace=GL --parent_dir=$(sublib_parentdir) run_gen_wrap_init = $(gen_wrap_init_path) $(gen_wrap_init_args) EXTRA_DIST = Makefile_list_of_hg.am_fragment \ $(files_defs) $(files_hg) $(files_ccg) sublib_srcdir = $(srcdir)/../src files_hg_with_path = $(patsubst %.hg,$(sublib_srcdir)/%.hg,$(files_hg)) subdir = gdkglext/src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = DIST_SOURCES = DIST_COMMON = $(srcdir)/Makefile.in \ $(srcdir)/Makefile_list_of_hg.am_fragment \ $(top_srcdir)/build_shared/Makefile_gensrc.am_fragment \ $(top_srcdir)/tools/Makefile_list_of_sources.am_fragment \ $(top_srcdir)/tools/m4/Makefile_list_of_sources.am_fragment \ Makefile.am all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/build_shared/Makefile_gensrc.am_fragment $(top_srcdir)/tools/Makefile_list_of_sources.am_fragment $(top_srcdir)/tools/m4/Makefile_list_of_sources.am_fragment $(srcdir)/Makefile_list_of_hg.am_fragment $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gdkglext/src/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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)/../../build_shared $(distdir)/../../tools $(distdir)/../../tools/m4 @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 all-local 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 -rm -f Makefile 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 -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local 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 all-local 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 maintainer-clean-local mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-info-am $(stamp_dir)/stamp-%: %.hg %.ccg $(tools_m4) $(files_defs) $(run_gmmproc) $(notdir $*) $(srcdir) $(gensrc_destdir) @echo 'timestamp' > $@ $(gensrc_destdir)/wrap_init.cc: $(gen_wrap_init_path) $(files_hg_with_path) $(run_gen_wrap_init) $(files_hg:%.hg=$(srcdir)/%.hg) >$@ create-stamp-dir: @(test -d $(stamp_dir) || mkdir $(stamp_dir)) @MAINTAINER_MODE_TRUE@all-local: create-stamp-dir $(files_stamp) $(gensrc_destdir)/wrap_init.cc maintainer-clean-local: rm -rf $(stamp_dir) # 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: gtkglextmm-1.2.0/gdkglext/src/gdkglext_docs_override.xml0000644000175000001440000000002007627357444020466 00000000000000 gtkglextmm-1.2.0/gdkglext/src/tokens.hg0000644000175000001440000000363207627357444015063 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include _DEFS(gdkmm/gl,gdkglext) namespace Gdk { namespace GL { GDKMM_GL_VAR const int SUCCESS; GDKMM_GL_VAR const int ATTRIB_LIST_NONE; GDKMM_GL_VAR const int DONT_CARE; GDKMM_GL_VAR const int NONE; } // namespace GL } // namespace Gdk namespace Gdk { namespace GL { _WRAP_ENUM(ConfigAttrib, GdkGLConfigAttrib, s#^GL_##) _WRAP_ENUM(ConfigCaveat, GdkGLConfigCaveat, s#^GL_##) _WRAP_ENUM(VisualType, GdkGLVisualType, s#^GL_##) _WRAP_ENUM(TransparentType, GdkGLTransparentType, s#^GL_##) _WRAP_ENUM(DrawableTypeMask, GdkGLDrawableTypeMask, s#^GL_##) _WRAP_ENUM(RenderTypeMask, GdkGLRenderTypeMask, s#^GL_##) _WRAP_ENUM(BufferMask, GdkGLBufferMask, s#^GL_##) _WRAP_ENUM(ConfigError, GdkGLConfigError, s#^GL_##) _WRAP_ENUM(RenderType, GdkGLRenderType, s#^GL_##) _WRAP_ENUM(DrawableAttrib, GdkGLDrawableAttrib, s#^GL_##) _WRAP_ENUM(PbufferAttrib, GdkGLPbufferAttrib, s#^GL_##) _WRAP_ENUM(EventMask, GdkGLEventMask, s#^GL_##) _WRAP_ENUM(EventType, GdkGLEventType, s#^GL_##) _WRAP_ENUM(DrawableType, GdkGLDrawableType, s#^GL_##) } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/pixmap.hg0000644000175000001440000000413407725052035015037 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include _DEFS(gdkmm/gl,gdkglext) _PINCLUDE(gdkmm/private/drawable_p.h) namespace Gdk { namespace GL { /** OpenGL pixmap which is maintained offscreen. * * @ingroup GLDrawables */ class Pixmap : public Gdk::Drawable, public Gdk::GL::Drawable { _CLASS_GOBJECT(Pixmap, GdkGLPixmap, GDK_GL_PIXMAP, Gdk::Drawable, GdkDrawable) _IGNORE(gdk_gl_pixmap_destroy) protected: Pixmap(const Glib::RefPtr& glconfig, const Glib::RefPtr& pixmap, const int* attrib_list = 0); public: _WRAP_CREATE(const Glib::RefPtr& glconfig, const Glib::RefPtr& pixmap, const int* attrib_list = 0) public: _WRAP_METHOD(Glib::RefPtr get_pixmap(), gdk_gl_pixmap_get_pixmap, refreturn) _WRAP_METHOD(Glib::RefPtr get_pixmap() const, gdk_gl_pixmap_get_pixmap, refreturn) }; /** @example pixmap.cc * * Simple offscreen OpenGL rendering example. * */ /** @example pixmap-mixed.cc * * Simple offscreen rendering example for mixing OpenGL and * GDK rendering. * */ } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/context.ccg0000644000175000001440000000551307657671403015377 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include namespace Gdk { namespace GL { Context::Context(const Glib::RefPtr& gldrawable, const Glib::RefPtr& share_list, bool direct, int render_type) : Glib::Object(reinterpret_cast( gdk_gl_context_new(const_cast(Glib::unwrap(gldrawable)), const_cast(Glib::unwrap(share_list)), direct, render_type))) {} Context::Context(const Glib::RefPtr& gldrawable, bool direct, int render_type) : Glib::Object(reinterpret_cast( gdk_gl_context_new(const_cast(Glib::unwrap(gldrawable)), 0, direct, render_type))) {} Glib::RefPtr Context::create(const Glib::RefPtr& gldrawable, const Glib::RefPtr& share_list, bool direct, int render_type) { return Glib::RefPtr( new Context(gldrawable, share_list, direct, render_type)); } Glib::RefPtr Context::create(const Glib::RefPtr& gldrawable, bool direct, int render_type) { return Glib::RefPtr( new Context(gldrawable, direct, render_type)); } bool Context::copy(const Glib::RefPtr& src, unsigned long mask) { return gdk_gl_context_copy(gobj(), const_cast(Glib::unwrap(src)), mask); } } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/drawable.hg0000644000175000001440000000641307657671403015336 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include _DEFS(gdkmm/gl,gdkglext) _PINCLUDE(glibmm/private/interface_p.h) namespace Gdk { namespace GL { class Context; /** @defgroup GLDrawables GL Drawables */ /** OpenGL rendering surface abstract class. * * */ class Drawable : public Glib::Interface { _CLASS_INTERFACE(Drawable, GdkGLDrawable, GDK_GL_DRAWABLE, GdkGLDrawableClass) public: _WRAP_METHOD(bool make_current(const Glib::RefPtr& glcontext), gdk_gl_drawable_make_current) _WRAP_METHOD(bool is_double_buffered() const, gdk_gl_drawable_is_double_buffered) _WRAP_METHOD(void swap_buffers(), gdk_gl_drawable_swap_buffers) _WRAP_METHOD(void wait_gl(), gdk_gl_drawable_wait_gl) _WRAP_METHOD(void wait_gdk(), gdk_gl_drawable_wait_gdk) _WRAP_METHOD(bool gl_begin(const Glib::RefPtr& glcontext), gdk_gl_drawable_gl_begin) _WRAP_METHOD(void gl_end(), gdk_gl_drawable_gl_end) _WRAP_METHOD(Glib::RefPtr get_gl_config(), gdk_gl_drawable_get_gl_config, refreturn) _WRAP_METHOD(Glib::RefPtr get_gl_config() const, gdk_gl_drawable_get_gl_config, refreturn) _WRAP_METHOD(void get_size(int& width, int& height), gdk_gl_drawable_get_size) _WRAP_METHOD(static Glib::RefPtr get_current(), gdk_gl_drawable_get_current, refreturn) public: _WRAP_METHOD(static void draw_cube(bool solid, double size), gdk_gl_draw_cube) _WRAP_METHOD(static void draw_sphere(bool solid, double radius, int slices, int stacks), gdk_gl_draw_sphere) _WRAP_METHOD(static void draw_cone(bool solid, double base, double height, int slices, int stacks), gdk_gl_draw_cone) _WRAP_METHOD(static void draw_torus(bool solid, double inner_radius, double outer_radius, int nsides, int rings), gdk_gl_draw_torus) _WRAP_METHOD(static void draw_tetrahedron(bool solid), gdk_gl_draw_tetrahedron) _WRAP_METHOD(static void draw_octahedron(bool solid), gdk_gl_draw_octahedron) _WRAP_METHOD(static void draw_dodecahedron(bool solid), gdk_gl_draw_dodecahedron) _WRAP_METHOD(static void draw_icosahedron(bool solid), gdk_gl_draw_icosahedron) _WRAP_METHOD(static void draw_teapot(bool solid, double scale), gdk_gl_draw_teapot) }; /** @example shapes.h * * Geometric object rendering example. * */ /** @example shapes.cc * * Geometric object rendering example. * */ } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/tokens.ccg0000644000175000001440000000212207627357444015212 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include const int Gdk::GL::SUCCESS = GDK_GL_SUCCESS; const int Gdk::GL::ATTRIB_LIST_NONE = GDK_GL_ATTRIB_LIST_NONE; const int Gdk::GL::DONT_CARE = GDK_GL_DONT_CARE; const int Gdk::GL::NONE = GDK_GL_NONE; gtkglextmm-1.2.0/gdkglext/src/window.ccg0000644000175000001440000000262707725052035015213 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include namespace Gdk { namespace GL { Window::Window(const Glib::RefPtr& glconfig, const Glib::RefPtr& window, const int* attrib_list) : Gdk::Drawable(reinterpret_cast( gdk_gl_window_new(const_cast(Glib::unwrap(glconfig)), const_cast(Glib::unwrap(window)), attrib_list))) {} } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/src/gdkglext_docs.xml0000644000175000001440000011743007712153142016565 00000000000000 Returns the #GdkPixmap associated with @glpixmap. Notice that #GdkGLPixmap is not #GdkPixmap, but another #GdkDrawable which have an associated #GdkPixmap. a #GdkGLPixmap. the #GdkPixmap associated with @glpixmap. Delimits the end of the OpenGL execution. a #GdkGLDrawable. Gets the number of auxiliary color buffers. a #GdkGLConfig. number of auxiliary color buffers. Returns the #GdkWindow associated with @glwindow. Notice that #GdkGLWindow is not #GdkWindow, but another #GdkDrawable which have an associated #GdkWindow. a #GdkGLWindow. the #GdkWindow associated with @glwindow. Creates #GdkGLConfig from given visual ID that specifies the OpenGL-capable visual. visual ID. the new #GdkGLConfig. Returns whether the configured frame buffer is RGBA mode. a #GdkGLConfig. TRUE if the configured frame buffer is RGBA mode, FALSE otherwise. Returns whether the configuration supports the double-buffered visual. a #GdkGLConfig. TRUE if the double-buffered visual is supported, FALSE otherwise. Gets X screen number. a #GdkGLConfig. the screen number. Unset the OpenGL-capability of the @window. This function destroys the #GdkGLWindow held by the @window. a #GdkWindow. Gets the #GdkColormap that is appropriate for the OpenGL frame buffer configuration. a #GdkGLConfig. the appropriate #GdkColormap. Returns whether the @glcontext is a direct rendering context. a #GdkGLContext. TRUE if the @glcontext is a direct rendering contest. Renders a torus (doughnut) centered at the modeling coordinates origin whose axis is aligned with the Z axis. TRUE if the torus should be solid. inner radius of the torus. outer radius of the torus. number of sides for each radial section. number of radial divisions for the torus. Parses command line arguments, and initializes global attributes of GdkGLExt. Any arguments used by GdkGLExt are removed from the array and @argc and @argv are updated accordingly. You shouldn't call this function explicitely if you are using gdk_gl_init(), or gdk_gl_init_check(). the number of command line arguments. the array of command line arguments. %TRUE if initialization succeeded, otherwise %FALSE. Indicates whether the window system supports the OpenGL extension (GLX, WGL, etc.). the #GdkDisplay where the query is sent to. TRUE if OpenGL is supported, FALSE otherwise. Renders a cone oriented along the Z axis. The @base of the cone is placed at Z = 0, and the top at Z = @height. The cone is subdivided around the Z axis into @slices, and along the Z axis into @stacks. TRUE if the cone should be solid. the radius of the base of the cone. the height of the cone. the number of subdivisions around the Z axis. the number of subdivisions along the Z axis. Gets #GdkScreen. a #GdkGLConfig. the #GdkScreen. Returns whether the configuration supports the stereo visual. a #GdkGLConfig. TRUE if the stereo visual is supported, FALSE otherwise. Creates #GdkGLConfig from given visual ID that specifies the OpenGL-capable visual. target screen. visual ID. the new #GdkGLConfig. This function does the same work as gdk_gl_init() with only a single change: It does not terminate the program if the library can't be initialized. Instead it returns %FALSE on failure. This way the application can fall back to some other means of communication with the user - for example a curses or command line interface. Address of the &lt;parameter&gt;argc&lt;/parameter&gt; parameter of your &lt;function&gt;main()&lt;/function&gt; function. Changed if any arguments were handled. Address of the &lt;parameter&gt;argv&lt;/parameter&gt; parameter of &lt;function&gt;main()&lt;/function&gt;. Any parameters understood by gdk_gl_init() are stripped before return. %TRUE if the GUI has been successfully initialized, %FALSE otherwise. Creates #GdkGLContext from existing GLXContext. #GdkGLConfig that represents the visual the GLXContext uses. the #GdkGLContext which shares display lists with the GLXContext, or NULL. exsisting GLXContext. the newly-created #GdkGLContext wrapper. Gets X Display. a #GdkGLConfig. pointer to the Display. Returns whether the @window is OpenGL-capable. a #GdkWindow. TRUE if the @window is OpenGL-capable, FALSE otherwise. Attach an OpenGL rendering context to a @gldrawable. a #GdkGLDrawable. a #GdkGLContext. TRUE if it is successful, FALSE otherwise. Unset the OpenGL-capability of the @pixmap. This function destroys the #GdkGLPixmap held by the @pixmap. a #GdkPixmap. Delimits the begining of the OpenGL execution. a #GdkGLDrawable. a #GdkGLContext. TRUE if it is successful, FALSE otherwise. Exchange front and back buffers. a #GdkGLDrawable. Returns the #GdkGLWindow held by the @window. a #GdkWindow. the #GdkGLWindow. Gets #GdkGLConfig with which the @gldrawable is configured. a #GdkGLDrawable. the #GdkGLConfig. Gets the #GdkVisual that is appropriate for the OpenGL frame buffer configuration. a #GdkGLConfig. the appropriate #GdkVisual. Set the OpenGL-capability to the @pixmap. This function creates a new #GdkGLPixmap held by the @pixmap. attrib_list is currently unused. This must be set to NULL or empty (first attribute of None). the #GdkPixmap to be used as the rendering area. a #GdkGLConfig. this must be set to NULL or empty (first attribute of None). the #GdkGLPixmap used by the @pixmap if it is successful, NULL otherwise. Creates a new OpenGL rendering context. a #GdkGLDrawable. the #GdkGLContext with which to share display lists and texture objects. NULL indicates that no sharing is to take place. whether rendering is to be done with a direct connection to the graphics system. GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE (currently not used). the new #GdkGLContext. Determines whether a given OpenGL extension is supported. There must be a valid current rendering context to call gdk_gl_query_gl_extension(). gdk_gl_query_gl_extension() returns information about OpenGL extensions only. This means that window system dependent extensions (for example, GLX extensions) are not reported by gdk_gl_query_gl_extension(). name of OpenGL extension. TRUE if the OpenGL extension is supported, FALSE if not supported. Call this function before using any other GdkGLExt functions in your applications. It will initialize everything needed to operate the library and parses some standard command line options. @argc and @argv are adjusted accordingly so your own code will never see those standard arguments. &lt;note&gt;&lt;para&gt; This function will terminate your program if it was unable to initialize the library for some reason. If you want your program to fall back to a textual interface you want to call gdk_gl_init_check() instead. &lt;/para&gt;&lt;/note&gt; Address of the &lt;parameter&gt;argc&lt;/parameter&gt; parameter of your &lt;function&gt;main()&lt;/function&gt; function. Changed if any arguments were handled. Address of the &lt;parameter&gt;argv&lt;/parameter&gt; parameter of &lt;function&gt;main()&lt;/function&gt;. Any parameters understood by gdk_gl_init() are stripped before return. Renders a icosahedron. The icosahedron is centered at the modeling coordinates origin and has a radius of 1.0. TRUE if the icosahedron should be solid. Indicates whether the window system supports the OpenGL extension (GLX, WGL, etc.). TRUE if OpenGL is supported, FALSE otherwise. Gets information about a OpenGL frame buffer configuration. a #GdkGLConfig. the attribute to be returned. returns the requested value. TRUE if it succeeded, FALSE otherwise. Gets GLXPixmap. a #GdkGLPixmap. the GLXPixmap. Complete GDK drawing execution prior to subsequent OpenGL calls. a #GdkGLDrawable. Gets #GdkGLDrawable to which the @glcontext is bound. a #GdkGLContext. the #GdkGLDrawable or NULL if no #GdkGLDrawable is bound. Returns the #GdkGLPixmap held by the @pixmap. a #GdkPixmap. the #GdkGLPixmap. Returns whether the @pixmap is OpenGL-capable. a #GdkPixmap. TRUE if the @pixmap is OpenGL-capable, FALSE otherwise. Gets XVisualInfo data. a #GdkGLConfig. pointer to the XVisualInfo data. Returns the current #GdkGLDrawable. the current #GdkGLDrawable or NULL if there is no current drawable. Set the OpenGL-capability to the @window. This function creates a new #GdkGLWindow held by the @window. attrib_list is currently unused. This must be set to NULL or empty (first attribute of None). the #GdkWindow to be used as the rendering area. a #GdkGLConfig. this must be set to NULL or empty (first attribute of None). the #GdkGLWindow used by the @window if it is successful, NULL otherwise. Gets X Window. a #GdkGLWindow. the Window. Gets GLXContext. a #GdkGLContext. the GLXContext. Returns whether the @gldrawable supports the double-buffered visual. a #GdkGLDrawable. TRUE if the double-buffered visual is supported, FALSE otherwise. Renders a tetrahedron centered at the modeling coordinates origin with a radius of the square root of 3. TRUE if the tetrahedron should be solid. Creates an on-screen rendering area. attrib_list is currently unused. This must be set to NULL or empty (first attribute of None). See GLX 1.3 spec. a #GdkGLConfig. the #GdkWindow to be used as the rendering area. this must be set to NULL or empty (first attribute of None). the new #GdkGLWindow. Returns whether the configured frame buffer has stencil buffer. a #GdkGLConfig. TRUE if the frame buffer has stencil buffer, FALSE otherwise. Returns whether the server's GLX entension is Mesa. a #GdkGLConfig. TRUE if Mesa GLX, FALSE otherwise. Returns whether the configured frame buffer has accumulation buffer. a #GdkGLConfig. TRUE if the frame buffer has accumulation buffer, FALSE otherwise. Renders a octahedron centered at the modeling coordinates origin with a radius of 1.0. TRUE if the octahedron should be solid. Gets #GdkGLConfig with which the @glcontext is configured. a #GdkGLContext. the #GdkGLConfig. Destroys the OpenGL resources associated with @glwindow and decrements @glwindow's reference count. a #GdkGLWindow. Gets the color depth of the OpenGL-capable visual. a #GdkGLConfig. number of bits per pixel Renders a cube. The cube is centered at the modeling coordinates origin with sides of length @size. TRUE if the cube should be solid. length of cube sides. Gets render_type of the @glcontext. a #GdkGLContext. GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE. Creates an off-screen rendering area. attrib_list is currently unused. This must be set to NULL or empty (first attribute of None). See GLX 1.3 spec. a #GdkGLConfig. the #GdkPixmap to be used as the rendering area. this must be set to NULL or empty (first attribute of None). the new #GdkGLPixmap. Returns the version numbers of the OpenGL extension to the window system. In the X Window System, it returns the GLX version. In the Microsoft Windows, it returns the Windows version. the #GdkDisplay where the query is sent to. returns the major version number of the OpenGL extension. returns the minor version number of the OpenGL extension. FALSE if it fails, TRUE otherwise. Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both the copyright notice and this permission notice appear in supporting documentation, and that the name of Silicon Graphics, Inc. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION, LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE. US Government Users Restricted Rights Use, duplication, or disclosure by the Government is subject to restrictions set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or in similar or successor clauses in the FAR or the DOD or NASA FAR Supplement. Unpublished-- rights reserved under the copyright laws of the United States. Contractor/manufacturer is Silicon Graphics, Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311. OpenGL(TM) is a trademark of Silicon Graphics, Inc. Returns an OpenGL frame buffer configuration that match the specified attributes. target screen. a list of attribute/value pairs. The last attribute must be GDK_GL_ATTRIB_LIST_NONE. the new #GdkGLConfig. Returns whether the configured color buffer has alpha bits. a #GdkGLConfig. TRUE if the color buffer has alpha bits, FALSE otherwise. Fills *width and *height with the size of GL drawable. width or height can be NULL if you only want the other one. a #GdkGLDrawable. location to store drawable's width, or NULL. location to store drawable's height, or NULL. Gets the layer plane (level) of the frame buffer. Zero is the default frame buffer. Positive layer planes correspond to frame buffers that overlay the default buffer, and negative layer planes correspond to frame buffers that underlie the default frame buffer. a #GdkGLConfig. layer plane. Gets #GdkGLContext with which the @glcontext shares the display lists and texture objects. a #GdkGLContext. the #GdkGLContext. Returns the address of the OpenGL, GLU, or GLX function. function name. the address of the function named by @proc_name. Creates bitmap display lists from a #PangoFont. a #PangoFontDescription describing the font to use. the index of the first glyph to be taken. the number of glyphs to be taken. the index of the first display list to be generated. the #PangoFont used, or NULL if no font matched. Returns an OpenGL frame buffer configuration that match the specified display mode. display mode bit mask. the new #GdkGLConfig. Destroys the OpenGL resources associated with @glpixmap and decrements @glpixmap's reference count. a #GdkGLPixmap. Returns an OpenGL frame buffer configuration that match the specified attributes. attrib_list is a int array that contains the attribute/value pairs. Available attributes are: GDK_GL_USE_GL, GDK_GL_BUFFER_SIZE, GDK_GL_LEVEL, GDK_GL_RGBA, GDK_GL_DOUBLEBUFFER, GDK_GL_STEREO, GDK_GL_AUX_BUFFERS, GDK_GL_RED_SIZE, GDK_GL_GREEN_SIZE, GDK_GL_BLUE_SIZE, GDK_GL_ALPHA_SIZE, GDK_GL_DEPTH_SIZE, GDK_GL_STENCIL_SIZE, GDK_GL_ACCUM_RED_SIZE, GDK_GL_ACCUM_GREEN_SIZE, GDK_GL_ACCUM_BLUE_SIZE, GDK_GL_ACCUM_ALPHA_SIZE. a list of attribute/value pairs. The last attribute must be GDK_GL_ATTRIB_LIST_NONE. the new #GdkGLConfig. Complete OpenGL execution prior to subsequent GDK drawing calls. a #GdkGLDrawable. Renders a sphere centered at the modeling coordinates origin of the specified @radius. The sphere is subdivided around the Z axis into @slices and along the Z axis into @stacks. TRUE if the sphere should be solid. the radius of the sphere. the number of subdivisions around the Z axis (similar to lines of longitude). the number of subdivisions along the Z axis (similar to lines of latitude). Returns whether the configured frame buffer has depth buffer. a #GdkGLConfig. TRUE if the frame buffer has depth buffer, FALSE otherwise. Creates bitmap display lists from a #PangoFont. a #GdkDisplay. a #PangoFontDescription describing the font to use. the index of the first glyph to be taken. the number of glyphs to be taken. the index of the first display list to be generated. the #PangoFont used, or NULL if no font matched. Determines whether a given GLX extension is supported. a #GdkGLConfig. name of GLX extension. TRUE if the GLX extension is supported, FALSE if not supported. Destroys the OpenGL resources associated with @glcontext and decrements @glcontext's reference count. a #GdkGLContext. Returns an OpenGL frame buffer configuration that match the specified display mode. target screen. display mode bit mask. the new #GdkGLConfig. Returns the version numbers of the OpenGL extension to the window system. In the X Window System, it returns the GLX version. In the Microsoft Windows, it returns the Windows version. returns the major version number of the OpenGL extension. returns the minor version number of the OpenGL extension. FALSE if it fails, TRUE otherwise. Copy state from @src rendering context to @glcontext. @mask contains the bitwise-OR of the same symbolic names that are passed to the glPushAttrib() function. You can use GL_ALL_ATTRIB_BITS to copy all the rendering state information. a #GdkGLContext. the source context. which portions of @src state are to be copied to @glcontext. FALSE if it fails, TRUE otherwise. Returns the current #GdkGLContext. the current #GdkGLContext or NULL if there is no current context. Gets the number of multisample buffers. a #GdkGLConfig. number of multisample buffers. Renders a dodecahedron centered at the modeling coordinates origin with a radius of the square root of 3. TRUE if the dodecahedron should be solid. Renders a teapot. Both surface normals and texture coordinates for the teapot are generated. The teapot is generated with OpenGL evaluators. TRUE if the teapot should be solid. relative size of the teapot. gtkglextmm-1.2.0/gdkglext/gdkmm/0000777000175000001440000000000010400731254013602 500000000000000gtkglextmm-1.2.0/gdkglext/gdkmm/gl/0000777000175000001440000000000010400731255014205 500000000000000gtkglextmm-1.2.0/gdkglext/gdkmm/gl/drawable.h0000644000175000001440000002065710400725545016072 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_DRAWABLE_H #define _GDKMM_GL_DRAWABLE_H #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef struct _GdkGLDrawable GdkGLDrawable; typedef struct _GdkGLDrawableClass GdkGLDrawableClass; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { class Drawable_Class; } // namespace GL } // namespace Gdk namespace Gdk { namespace GL { class Context; /** @defgroup GLDrawables GL Drawables */ /** OpenGL rendering surface abstract class. * * */ class Drawable : public Glib::Interface { #ifndef DOXYGEN_SHOULD_SKIP_THIS public: typedef Drawable CppObjectType; typedef Drawable_Class CppClassType; typedef GdkGLDrawable BaseObjectType; typedef GdkGLDrawableClass BaseClassType; private: friend class Drawable_Class; static CppClassType drawable_class_; // noncopyable Drawable(const Drawable&); Drawable& operator=(const Drawable&); protected: Drawable(); // you must derive from this class explicit Drawable(GdkGLDrawable* castitem); #endif /* DOXYGEN_SHOULD_SKIP_THIS */ public: virtual ~Drawable(); static void add_interface(GType gtype_implementer); #ifndef DOXYGEN_SHOULD_SKIP_THIS static GType get_type() G_GNUC_CONST; static GType get_base_type() G_GNUC_CONST; #endif ///Provides access to the underlying C GObject. GdkGLDrawable* gobj() { return reinterpret_cast(gobject_); } ///Provides access to the underlying C GObject. const GdkGLDrawable* gobj() const { return reinterpret_cast(gobject_); } private: public: /** Attach an OpenGL rendering context to a @a gldrawable . * @param glcontext A Gdk::GLContext. * @return true if it is successful, false otherwise. */ bool make_current(const Glib::RefPtr& glcontext); /** Returns whether the @a gldrawable supports the double-buffered visual. * @return true if the double-buffered visual is supported, * false otherwise. */ bool is_double_buffered() const; /** Exchange front and back buffers. */ void swap_buffers(); /** Complete OpenGL execution prior to subsequent GDK drawing calls. */ void wait_gl(); /** Complete GDK drawing execution prior to subsequent OpenGL calls. */ void wait_gdk(); /** Delimits the begining of the OpenGL execution. * @param glcontext A Gdk::GLContext. * @return true if it is successful, false otherwise. */ bool gl_begin(const Glib::RefPtr& glcontext); /** Delimits the end of the OpenGL execution. */ void gl_end(); /** Gets Gdk::GLConfig with which the @a gldrawable is configured. * @return The Gdk::GLConfig. */ Glib::RefPtr get_gl_config(); /** Gets Gdk::GLConfig with which the @a gldrawable is configured. * @return The Gdk::GLConfig. */ Glib::RefPtr get_gl_config() const; /** Fills *width and *height with the size of GL drawable. * width or height can be 0 if you only want the other one. * @param width Location to store drawable's width, or 0. * @param height Location to store drawable's height, or 0. */ void get_size(int& width, int& height); /** Returns the current Gdk::GLDrawable. * @return The current Gdk::GLDrawable or 0 if there is no current drawable. */ static Glib::RefPtr get_current(); public: /** Renders a cube. * The cube is centered at the modeling coordinates origin with sides of * length @a size . * @param solid true if the cube should be solid. * @param size Length of cube sides. */ static void draw_cube(bool solid, double size); /** Renders a sphere centered at the modeling coordinates origin of * the specified @a radius . The sphere is subdivided around the Z axis into * @a slices and along the Z axis into @a stacks . * @param solid true if the sphere should be solid. * @param radius The radius of the sphere. * @param slices The number of subdivisions around the Z axis (similar to lines of * longitude). * @param stacks The number of subdivisions along the Z axis (similar to lines of * latitude). */ static void draw_sphere(bool solid, double radius, int slices, int stacks); /** Renders a cone oriented along the Z axis. * The @a base of the cone is placed at Z = 0, and the top at Z = @a height . * The cone is subdivided around the Z axis into @a slices , and along * the Z axis into @a stacks . * @param solid true if the cone should be solid. * @param base The radius of the base of the cone. * @param height The height of the cone. * @param slices The number of subdivisions around the Z axis. * @param stacks The number of subdivisions along the Z axis. */ static void draw_cone(bool solid, double base, double height, int slices, int stacks); /** Renders a torus (doughnut) centered at the modeling coordinates * origin whose axis is aligned with the Z axis. * @param solid true if the torus should be solid. * @param inner_radius Inner radius of the torus. * @param outer_radius Outer radius of the torus. * @param nsides Number of sides for each radial section. * @param rings Number of radial divisions for the torus. */ static void draw_torus(bool solid, double inner_radius, double outer_radius, int nsides, int rings); /** Renders a tetrahedron centered at the modeling coordinates * origin with a radius of the square root of 3. * @param solid true if the tetrahedron should be solid. */ static void draw_tetrahedron(bool solid); /** Renders a octahedron centered at the modeling coordinates * origin with a radius of 1.0. * @param solid true if the octahedron should be solid. */ static void draw_octahedron(bool solid); /** Renders a dodecahedron centered at the modeling coordinates * origin with a radius of the square root of 3. * @param solid true if the dodecahedron should be solid. */ static void draw_dodecahedron(bool solid); /** Renders a icosahedron. * The icosahedron is centered at the modeling coordinates origin * and has a radius of 1.0. * @param solid true if the icosahedron should be solid. */ static void draw_icosahedron(bool solid); /** Renders a teapot. * Both surface normals and texture coordinates for the teapot are generated. * The teapot is generated with OpenGL evaluators. * @param solid true if the teapot should be solid. * @param scale Relative size of the teapot. */ static void draw_teapot(bool solid, double scale); public: public: //C++ methods used to invoke GTK+ virtual functions: protected: //GTK+ Virtual Functions (override these to change behaviour): //Default Signal Handlers:: }; /** @example shapes.h * * Geometric object rendering example. * */ /** @example shapes.cc * * Geometric object rendering example. * */ } // namespace GL } // namespace Gdk namespace Glib { /** @relates Gdk::GL::Drawable * @param object The C instance * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. * @result A C++ instance that wraps this C instance. */ Glib::RefPtr wrap(GdkGLDrawable* object, bool take_copy = false); } // namespace Glib #endif /* _GDKMM_GL_DRAWABLE_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/window.cc0000644000175000001440000001027610400725547015754 00000000000000// Generated by gtkmmproc -- DO NOT MODIFY! #include #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include namespace Gdk { namespace GL { Window::Window(const Glib::RefPtr& glconfig, const Glib::RefPtr& window, const int* attrib_list) : Gdk::Drawable(reinterpret_cast( gdk_gl_window_new(const_cast(Glib::unwrap(glconfig)), const_cast(Glib::unwrap(window)), attrib_list))) {} } // namespace GL } // namespace Gdk namespace { } // anonymous namespace namespace Glib { Glib::RefPtr wrap(GdkGLWindow* object, bool take_copy) { return Glib::RefPtr( dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)) ); //We use dynamic_cast<> in case of multiple inheritance. } } /* namespace Glib */ namespace Gdk { namespace GL { /* The *_Class implementation: */ const Glib::Class& Window_Class::init() { if(!gtype_) // create the GType if necessary { // Glib::Class has to know the class init function to clone custom types. class_init_func_ = &Window_Class::class_init_function; // This is actually just optimized away, apparently with no harm. // Make sure that the parent type has been created. //CppClassParent::CppObjectType::get_type(); // Create the wrapper type, with the same class/instance size as the base type. register_derived_type(gdk_gl_window_get_type()); // Add derived versions of interfaces, if the C type implements any interfaces: } return *this; } void Window_Class::class_init_function(void* g_class, void* class_data) { BaseClassType *const klass = static_cast(g_class); CppClassParent::class_init_function(klass, class_data); } Glib::ObjectBase* Window_Class::wrap_new(GObject* object) { return new Window((GdkGLWindow*)object); } /* The implementation: */ GdkGLWindow* Window::gobj_copy() { reference(); return gobj(); } Window::Window(const Glib::ConstructParams& construct_params) : Gdk::Drawable(construct_params) {} Window::Window(GdkGLWindow* castitem) : Gdk::Drawable((GdkDrawable*)(castitem)) {} Window::~Window() {} Window::CppClassType Window::window_class_; // initialize static member GType Window::get_type() { return window_class_.init().get_type(); } GType Window::get_base_type() { return gdk_gl_window_get_type(); } Glib::RefPtr Window::create(const Glib::RefPtr& glconfig, const Glib::RefPtr& window, const int* attrib_list) { return Glib::RefPtr( new Window(glconfig, window, attrib_list) ); } Glib::RefPtr Window::get_window() { Glib::RefPtr retvalue = Glib::wrap((GdkWindowObject*)(gdk_gl_window_get_window(gobj()))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Window::get_window() const { Glib::RefPtr retvalue = Glib::wrap((GdkWindowObject*)(gdk_gl_window_get_window(const_cast(gobj())))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/version.h.in0000644000175000001440000000400007627357444016403 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GDKMM_GL_VERSION_H #define _GDKMM_GL_VERSION_H #include /* * Compile time version. */ #define GDKGLEXTMM_MAJOR_VERSION (@GTKGLEXTMM_MAJOR_VERSION@) #define GDKGLEXTMM_MINOR_VERSION (@GTKGLEXTMM_MINOR_VERSION@) #define GDKGLEXTMM_MICRO_VERSION (@GTKGLEXTMM_MICRO_VERSION@) #define GDKGLEXTMM_INTERFACE_AGE (@GTKGLEXTMM_INTERFACE_AGE@) #define GDKGLEXTMM_BINARY_AGE (@GTKGLEXTMM_BINARY_AGE@) /* * Check whether a gdkglextmm version equal to or greater than * major.minor.micro is present. */ #define GDKGLEXTMM_CHECK_VERSION(major, minor, micro) \ (GDKGLEXTMM_MAJOR_VERSION > (major) || \ (GDKGLEXTMM_MAJOR_VERSION == (major) && GDKGLEXTMM_MINOR_VERSION > (minor)) || \ (GDKGLEXTMM_MAJOR_VERSION == (major) && GDKGLEXTMM_MINOR_VERSION == (minor) && \ GDKGLEXTMM_MICRO_VERSION >= (micro))) /* * Library version. */ GDKMM_GL_VAR const int gdkglextmm_major_version; GDKMM_GL_VAR const int gdkglextmm_minor_version; GDKMM_GL_VAR const int gdkglextmm_micro_version; GDKMM_GL_VAR const int gdkglextmm_interface_age; GDKMM_GL_VAR const int gdkglextmm_binary_age; #endif // _GDKMM_GL_VERSION_H gtkglextmm-1.2.0/gdkglext/gdkmm/gl/query.h0000644000175000001440000001015107655131025015444 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GDKMM_GL_QUERY_H #define _GDKMM_GL_QUERY_H #include #include #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT #include #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT #include namespace Gdk { namespace GL { /** OpenGL support information query stuff. * * */ /** Indicates whether the window system supports the OpenGL extension * (GLX, WGL, etc.). * * @return true if the OpenGL is supported, * false otherwise. */ bool query_extension(); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT bool query_extension(const Glib::RefPtr& display); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT /** Returns the version numbers of the OpenGL extension to the window system. * * In the X Window System, it returns the GLX version. * * In the Microsoft Windows, it returns the Windows version. * * @param major returns the major version number of the OpenGL extension. * @param minor returns the minor version number of the OpenGL extension. * @return false if it fails, true otherwise. */ bool query_version(int& major, int& minor); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT bool query_version(const Glib::RefPtr& display, int& major, int& minor); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT /** Determines whether a given OpenGL extension is supported. * * There must be a valid current Gdk::GL::Drawable to call * Gdk::GL::Query::gl_extension(). * * Gdk::GL::Query::gl_extension() returns information about OpenGL extensions * only. This means that window system dependent extensions (for example, * GLX extensions) are not reported by Gdk::GL::Query::gl_extension(). * * @param extension name of OpenGL extension. * @return false if the OpenGL extension is supported, * true if not supported. */ bool query_gl_extension(const char* extension); /** Determines whether a given OpenGL extension is supported. * * There must be a valid current Gdk::GL::Drawable to call * Gdk::GL::Query::gl_extension(). * * Gdk::GL::Query::gl_extension() returns information about OpenGL extensions * only. This means that window system dependent extensions (for example, * GLX extensions) are not reported by Gdk::GL::Query::gl_extension(). * * @param extension name of OpenGL extension. * @return false if the OpenGL extension is supported, * true if not supported. */ bool query_gl_extension(const Glib::ustring& extension); /** Returns the address of the OpenGL extension functions. * * @param proc_name extension function name. * @return the address of the extension function named by @a proc_name. */ GdkGLProc get_proc_address(const char* proc_name); /** Returns the address of the OpenGL extension functions. * * @param proc_name extension function name. * @return the address of the extension function named by @a proc_name. */ GdkGLProc get_proc_address(const Glib::ustring& proc_name); } // namespace GL } // namespace Gdk #endif // _GDKMM_GL_QUERY_H gtkglextmm-1.2.0/gdkglext/gdkmm/gl/windowext.cc0000644000175000001440000000473510052323315016466 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include "windowext.h" namespace Gdk { namespace GL { Glib::RefPtr WindowExtProxy::set_gl_capability(const Glib::RefPtr& glconfig, const int* attrib_list) { Glib::RefPtr retvalue = Glib::wrap((GdkGLWindow*)(gdk_window_set_gl_capability(Glib::unwrap(window_), const_cast(Glib::unwrap(glconfig)), attrib_list))); if(retvalue) retvalue->reference(); return retvalue; } void WindowExtProxy::unset_gl_capability() { gdk_window_unset_gl_capability(Glib::unwrap(window_)); } bool WindowExtProxy::is_gl_capable() const { return gdk_window_is_gl_capable(const_cast(Glib::unwrap(window_))); } Glib::RefPtr WindowExtProxy::get_gl_window() const { Glib::RefPtr retvalue = Glib::wrap((GdkGLWindow*)(gdk_window_get_gl_window(const_cast(Glib::unwrap(window_))))); if(retvalue) retvalue->reference(); return retvalue; } Glib::RefPtr WindowExtProxy::get_gl_drawable() const { Glib::RefPtr retvalue = Glib::wrap((GdkGLDrawable*)(gdk_window_get_gl_drawable(const_cast(Glib::unwrap(window_))))); if(retvalue) retvalue->reference(); return retvalue; } } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/config.cc0000644000175000001440000002062010400725543015700 00000000000000// Generated by gtkmmproc -- DO NOT MODIFY! #include #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include namespace Gdk { namespace GL { Config::Config(const int* attrib_list) : Glib::Object(reinterpret_cast( gdk_gl_config_new(attrib_list))) {} #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Config::Config(const Glib::RefPtr& screen, const int* attrib_list) : Glib::Object(reinterpret_cast( gdk_gl_config_new_for_screen(const_cast(Glib::unwrap(screen)), attrib_list))) {} #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT Config::Config(ConfigMode mode) : Glib::Object(reinterpret_cast( gdk_gl_config_new_by_mode((GdkGLConfigMode)(mode)))) {} #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Config::Config(const Glib::RefPtr& screen, ConfigMode mode) : Glib::Object(reinterpret_cast( gdk_gl_config_new_by_mode_for_screen(const_cast(Glib::unwrap(screen)), (GdkGLConfigMode)(mode)))) {} #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::create(const int* attrib_list) { return Glib::wrap(gdk_gl_config_new(attrib_list)); } #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::create(const Glib::RefPtr& screen, const int* attrib_list) { return Glib::wrap( gdk_gl_config_new_for_screen(const_cast(Glib::unwrap(screen)), attrib_list)); } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::create(ConfigMode mode) { return Glib::wrap(gdk_gl_config_new_by_mode((GdkGLConfigMode)(mode))); } #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::create(const Glib::RefPtr& screen, ConfigMode mode) { return Glib::wrap( gdk_gl_config_new_by_mode_for_screen(const_cast(Glib::unwrap(screen)), (GdkGLConfigMode)(mode))); } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::get_screen() { Glib::RefPtr retvalue = Glib::wrap(gdk_gl_config_get_screen(gobj())); if (retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Config::get_screen() const { Glib::RefPtr retvalue = Glib::wrap(gdk_gl_config_get_screen(const_cast(gobj()))); if (retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT } // namespace GL } // namespace Gdk namespace { } // anonymous namespace // static GType Glib::Value::value_type() { return gdk_gl_config_mode_get_type(); } namespace Glib { Glib::RefPtr wrap(GdkGLConfig* object, bool take_copy) { return Glib::RefPtr( dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)) ); //We use dynamic_cast<> in case of multiple inheritance. } } /* namespace Glib */ namespace Gdk { namespace GL { /* The *_Class implementation: */ const Glib::Class& Config_Class::init() { if(!gtype_) // create the GType if necessary { // Glib::Class has to know the class init function to clone custom types. class_init_func_ = &Config_Class::class_init_function; // This is actually just optimized away, apparently with no harm. // Make sure that the parent type has been created. //CppClassParent::CppObjectType::get_type(); // Create the wrapper type, with the same class/instance size as the base type. register_derived_type(gdk_gl_config_get_type()); // Add derived versions of interfaces, if the C type implements any interfaces: } return *this; } void Config_Class::class_init_function(void* g_class, void* class_data) { BaseClassType *const klass = static_cast(g_class); CppClassParent::class_init_function(klass, class_data); } Glib::ObjectBase* Config_Class::wrap_new(GObject* object) { return new Config((GdkGLConfig*)object); } /* The implementation: */ GdkGLConfig* Config::gobj_copy() { reference(); return gobj(); } Config::Config(const Glib::ConstructParams& construct_params) : Glib::Object(construct_params) {} Config::Config(GdkGLConfig* castitem) : Glib::Object((GObject*)(castitem)) {} Config::~Config() {} Config::CppClassType Config::config_class_; // initialize static member GType Config::get_type() { return config_class_.init().get_type(); } GType Config::get_base_type() { return gdk_gl_config_get_type(); } bool Config::get_attrib(int attribute, int& value) const { return gdk_gl_config_get_attrib(const_cast(gobj()), attribute, &value); } Glib::RefPtr Config::get_colormap() { Glib::RefPtr retvalue = Glib::wrap(gdk_gl_config_get_colormap(gobj())); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Config::get_colormap() const { Glib::RefPtr retvalue = Glib::wrap(gdk_gl_config_get_colormap(const_cast(gobj()))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Config::get_visual() { Glib::RefPtr retvalue = Glib::wrap(gdk_gl_config_get_visual(gobj())); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Config::get_visual() const { Glib::RefPtr retvalue = Glib::wrap(gdk_gl_config_get_visual(const_cast(gobj()))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } int Config::get_depth() const { return gdk_gl_config_get_depth(const_cast(gobj())); } int Config::get_layer_plane() const { return gdk_gl_config_get_layer_plane(const_cast(gobj())); } int Config::get_n_aux_buffers() const { return gdk_gl_config_get_n_aux_buffers(const_cast(gobj())); } int Config::get_n_sample_buffers() const { return gdk_gl_config_get_n_sample_buffers(const_cast(gobj())); } bool Config::is_rgba() const { return gdk_gl_config_is_rgba(const_cast(gobj())); } bool Config::is_double_buffered() const { return gdk_gl_config_is_double_buffered(const_cast(gobj())); } bool Config::is_stereo() const { return gdk_gl_config_is_stereo(const_cast(gobj())); } bool Config::has_alpha() const { return gdk_gl_config_has_alpha(const_cast(gobj())); } bool Config::has_depth_buffer() const { return gdk_gl_config_has_depth_buffer(const_cast(gobj())); } bool Config::has_stencil_buffer() const { return gdk_gl_config_has_stencil_buffer(const_cast(gobj())); } bool Config::has_accum_buffer() const { return gdk_gl_config_has_accum_buffer(const_cast(gobj())); } } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/wrap_init.h0000644000175000001440000000201507627357444016311 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GDKMM_GL_WRAP_INIT_H #define _GDKMM_GL_WRAP_INIT_H namespace Gdk { namespace GL { void wrap_init(); } // namespace GL } // namespace Gdk #endif // _GDKMM_GL_WRAP_INIT_H gtkglextmm-1.2.0/gdkglext/gdkmm/gl/context.h0000644000175000001440000001605410400725544015770 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_CONTEXT_H #define _GDKMM_GL_CONTEXT_H #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef struct _GdkGLContext GdkGLContext; typedef struct _GdkGLContextClass GdkGLContextClass; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { class Context_Class; } // namespace GL } // namespace Gdk namespace Gdk { namespace GL { class Drawable; /** OpenGL rendering context. * * */ class Context : public Glib::Object { #ifndef DOXYGEN_SHOULD_SKIP_THIS public: typedef Context CppObjectType; typedef Context_Class CppClassType; typedef GdkGLContext BaseObjectType; typedef GdkGLContextClass BaseClassType; private: friend class Context_Class; static CppClassType context_class_; private: // noncopyable Context(const Context&); Context& operator=(const Context&); protected: explicit Context(const Glib::ConstructParams& construct_params); explicit Context(GdkGLContext* castitem); #endif /* DOXYGEN_SHOULD_SKIP_THIS */ public: virtual ~Context(); #ifndef DOXYGEN_SHOULD_SKIP_THIS static GType get_type() G_GNUC_CONST; static GType get_base_type() G_GNUC_CONST; #endif ///Provides access to the underlying C GObject. GdkGLContext* gobj() { return reinterpret_cast(gobject_); } ///Provides access to the underlying C GObject. const GdkGLContext* gobj() const { return reinterpret_cast(gobject_); } ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. GdkGLContext* gobj_copy(); private: protected: Context(const Glib::RefPtr& gldrawable, const Glib::RefPtr& share_list, bool direct = true, int render_type = RGBA_TYPE); explicit Context(const Glib::RefPtr& gldrawable, bool direct = true, int render_type = RGBA_TYPE); public: /** Create a new OpenGL rendering context. * * @param gldrawable a Gdk::GL::Drawable. * @param share_list the Gdk::GL::Context which to share display lists. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return the new Gdk::GL::Context. */ static Glib::RefPtr create(const Glib::RefPtr& gldrawable, const Glib::RefPtr& share_list, bool direct = true, int render_type = RGBA_TYPE); /** Create a new OpenGL rendering context. * * @param gldrawable a Gdk::GL::Drawable. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return the new Gdk::GL::Context. */ static Glib::RefPtr create(const Glib::RefPtr& gldrawable, bool direct = true, int render_type = RGBA_TYPE); public: /** Copy state from one rendering context to another. * * @a mask contains the bitwise-OR of the same symbolic names that * are passed to the glPushAttrib() function. You can use * GL_ALL_ATTRIB_BITS to copy all the rendering state information. * * @param src the source context. * @param mask which portions of @a src state are to be copied. * @return false if it fails, true otherwise. */ bool copy(const Glib::RefPtr& src, unsigned long mask = GL_ALL_ATTRIB_BITS); /** Gets Gdk::GLDrawable to which the @a glcontext is bound. * @return The Gdk::GLDrawable or 0 if no Gdk::GLDrawable is bound. */ Glib::RefPtr get_gl_drawable(); /** Gets Gdk::GLDrawable to which the @a glcontext is bound. * @return The Gdk::GLDrawable or 0 if no Gdk::GLDrawable is bound. */ Glib::RefPtr get_gl_drawable() const; /** Gets Gdk::GLConfig with which the @a glcontext is configured. * @return The Gdk::GLConfig. */ Glib::RefPtr get_gl_config(); /** Gets Gdk::GLConfig with which the @a glcontext is configured. * @return The Gdk::GLConfig. */ Glib::RefPtr get_gl_config() const; /** Gets Gdk::GLContext with which the @a glcontext shares the display lists and * texture objects. * @return The Gdk::GLContext. */ Glib::RefPtr get_share_list(); /** Gets Gdk::GLContext with which the @a glcontext shares the display lists and * texture objects. * @return The Gdk::GLContext. */ Glib::RefPtr get_share_list() const; /** Returns whether the @a glcontext is a direct rendering context. * @return true if the @a glcontext is a direct rendering contest. */ bool is_direct() const; /** Gets render_type of the @a glcontext . * @return GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE. */ int get_render_type() const; /** Returns the current Gdk::GLContext. * @return The current Gdk::GLContext or 0 if there is no current * context. */ static Glib::RefPtr get_current(); public: public: //C++ methods used to invoke GTK+ virtual functions: protected: //GTK+ Virtual Functions (override these to change behaviour): //Default Signal Handlers:: }; } // namespace GL } // namespace Gdk namespace Glib { /** @relates Gdk::GL::Context * @param object The C instance * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. * @result A C++ instance that wraps this C instance. */ Glib::RefPtr wrap(GdkGLContext* object, bool take_copy = false); } #endif /* _GDKMM_GL_CONTEXT_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/context.cc0000644000175000001440000001574410400725544016133 00000000000000// Generated by gtkmmproc -- DO NOT MODIFY! #include #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include namespace Gdk { namespace GL { Context::Context(const Glib::RefPtr& gldrawable, const Glib::RefPtr& share_list, bool direct, int render_type) : Glib::Object(reinterpret_cast( gdk_gl_context_new(const_cast(Glib::unwrap(gldrawable)), const_cast(Glib::unwrap(share_list)), direct, render_type))) {} Context::Context(const Glib::RefPtr& gldrawable, bool direct, int render_type) : Glib::Object(reinterpret_cast( gdk_gl_context_new(const_cast(Glib::unwrap(gldrawable)), 0, direct, render_type))) {} Glib::RefPtr Context::create(const Glib::RefPtr& gldrawable, const Glib::RefPtr& share_list, bool direct, int render_type) { return Glib::RefPtr( new Context(gldrawable, share_list, direct, render_type)); } Glib::RefPtr Context::create(const Glib::RefPtr& gldrawable, bool direct, int render_type) { return Glib::RefPtr( new Context(gldrawable, direct, render_type)); } bool Context::copy(const Glib::RefPtr& src, unsigned long mask) { return gdk_gl_context_copy(gobj(), const_cast(Glib::unwrap(src)), mask); } } // namespace GL } // namespace Gdk namespace { } // anonymous namespace namespace Glib { Glib::RefPtr wrap(GdkGLContext* object, bool take_copy) { return Glib::RefPtr( dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)) ); //We use dynamic_cast<> in case of multiple inheritance. } } /* namespace Glib */ namespace Gdk { namespace GL { /* The *_Class implementation: */ const Glib::Class& Context_Class::init() { if(!gtype_) // create the GType if necessary { // Glib::Class has to know the class init function to clone custom types. class_init_func_ = &Context_Class::class_init_function; // This is actually just optimized away, apparently with no harm. // Make sure that the parent type has been created. //CppClassParent::CppObjectType::get_type(); // Create the wrapper type, with the same class/instance size as the base type. register_derived_type(gdk_gl_context_get_type()); // Add derived versions of interfaces, if the C type implements any interfaces: } return *this; } void Context_Class::class_init_function(void* g_class, void* class_data) { BaseClassType *const klass = static_cast(g_class); CppClassParent::class_init_function(klass, class_data); } Glib::ObjectBase* Context_Class::wrap_new(GObject* object) { return new Context((GdkGLContext*)object); } /* The implementation: */ GdkGLContext* Context::gobj_copy() { reference(); return gobj(); } Context::Context(const Glib::ConstructParams& construct_params) : Glib::Object(construct_params) {} Context::Context(GdkGLContext* castitem) : Glib::Object((GObject*)(castitem)) {} Context::~Context() {} Context::CppClassType Context::context_class_; // initialize static member GType Context::get_type() { return context_class_.init().get_type(); } GType Context::get_base_type() { return gdk_gl_context_get_type(); } Glib::RefPtr Context::get_gl_drawable() { Glib::RefPtr retvalue = Glib::wrap((GdkGLDrawable*)(gdk_gl_context_get_gl_drawable(gobj()))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Context::get_gl_drawable() const { Glib::RefPtr retvalue = Glib::wrap((GdkGLDrawable*)(gdk_gl_context_get_gl_drawable(const_cast(gobj())))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Context::get_gl_config() { Glib::RefPtr retvalue = Glib::wrap((GdkGLConfig*)(gdk_gl_context_get_gl_config(gobj()))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Context::get_gl_config() const { Glib::RefPtr retvalue = Glib::wrap((GdkGLConfig*)(gdk_gl_context_get_gl_config(const_cast(gobj())))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Context::get_share_list() { Glib::RefPtr retvalue = Glib::wrap((GdkGLContext*)(gdk_gl_context_get_share_list(gobj()))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Context::get_share_list() const { Glib::RefPtr retvalue = Glib::wrap((GdkGLContext*)(gdk_gl_context_get_share_list(const_cast(gobj())))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } bool Context::is_direct() const { return gdk_gl_context_is_direct(const_cast(gobj())); } int Context::get_render_type() const { return gdk_gl_context_get_render_type(const_cast(gobj())); } Glib::RefPtr Context::get_current() { Glib::RefPtr retvalue = Glib::wrap((GdkGLContext*)(gdk_gl_context_get_current())); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/defs.h0000644000175000001440000000226007627357444015240 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GDKMM_GL_DEFS_H #define _GDKMM_GL_DEFS_H #include #include #ifdef GTKMM_WIN32 # ifdef GDKMM_GL_COMPILATION # define GDKMM_GL_VAR extern __declspec(dllexport) # else # define GDKMM_GL_VAR extern __declspec(dllimport) # endif #else # define GDKMM_GL_VAR extern #endif #endif // _GDKMM_GL_DEFS_H gtkglextmm-1.2.0/gdkglext/gdkmm/gl/config.h0000644000175000001440000002521410400725543015546 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_CONFIG_H #define _GDKMM_GL_CONFIG_H #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT #include #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT #include #include #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef struct _GdkGLConfig GdkGLConfig; typedef struct _GdkGLConfigClass GdkGLConfigClass; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { class Config_Class; } // namespace GL } // namespace Gdk namespace Gdk { namespace GL { /** @addtogroup gdkmm_glEnums Enums and Flags */ /** * @ingroup gdkmm_glEnums * @par Bitwise operators: * %ConfigMode operator|(ConfigMode, ConfigMode)
* %ConfigMode operator&(ConfigMode, ConfigMode)
* %ConfigMode operator^(ConfigMode, ConfigMode)
* %ConfigMode operator~(ConfigMode)
* %ConfigMode& operator|=(ConfigMode&, ConfigMode)
* %ConfigMode& operator&=(ConfigMode&, ConfigMode)
* %ConfigMode& operator^=(ConfigMode&, ConfigMode)
*/ enum ConfigMode { MODE_RGB = 0, MODE_RGBA = 0, MODE_INDEX = 1 << 0, MODE_SINGLE = 0, MODE_DOUBLE = 1 << 1, MODE_STEREO = 1 << 2, MODE_ALPHA = 1 << 3, MODE_DEPTH = 1 << 4, MODE_STENCIL = 1 << 5, MODE_ACCUM = 1 << 6, MODE_MULTISAMPLE = 1 << 7 }; /** @ingroup gdkmm_glEnums */ inline ConfigMode operator|(ConfigMode lhs, ConfigMode rhs) { return static_cast(static_cast(lhs) | static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline ConfigMode operator&(ConfigMode lhs, ConfigMode rhs) { return static_cast(static_cast(lhs) & static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline ConfigMode operator^(ConfigMode lhs, ConfigMode rhs) { return static_cast(static_cast(lhs) ^ static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline ConfigMode operator~(ConfigMode flags) { return static_cast(~static_cast(flags)); } /** @ingroup gdkmm_glEnums */ inline ConfigMode& operator|=(ConfigMode& lhs, ConfigMode rhs) { return (lhs = static_cast(static_cast(lhs) | static_cast(rhs))); } /** @ingroup gdkmm_glEnums */ inline ConfigMode& operator&=(ConfigMode& lhs, ConfigMode rhs) { return (lhs = static_cast(static_cast(lhs) & static_cast(rhs))); } /** @ingroup gdkmm_glEnums */ inline ConfigMode& operator^=(ConfigMode& lhs, ConfigMode rhs) { return (lhs = static_cast(static_cast(lhs) ^ static_cast(rhs))); } } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Flags { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** OpenGL frame buffer configuration. * * */ class Config : public Glib::Object { #ifndef DOXYGEN_SHOULD_SKIP_THIS public: typedef Config CppObjectType; typedef Config_Class CppClassType; typedef GdkGLConfig BaseObjectType; typedef GdkGLConfigClass BaseClassType; private: friend class Config_Class; static CppClassType config_class_; private: // noncopyable Config(const Config&); Config& operator=(const Config&); protected: explicit Config(const Glib::ConstructParams& construct_params); explicit Config(GdkGLConfig* castitem); #endif /* DOXYGEN_SHOULD_SKIP_THIS */ public: virtual ~Config(); #ifndef DOXYGEN_SHOULD_SKIP_THIS static GType get_type() G_GNUC_CONST; static GType get_base_type() G_GNUC_CONST; #endif ///Provides access to the underlying C GObject. GdkGLConfig* gobj() { return reinterpret_cast(gobject_); } ///Provides access to the underlying C GObject. const GdkGLConfig* gobj() const { return reinterpret_cast(gobject_); } ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. GdkGLConfig* gobj_copy(); private: protected: explicit Config(const int* attrib_list); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Config(const Glib::RefPtr& screen, const int* attrib_list); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT explicit Config(ConfigMode mode); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Config(const Glib::RefPtr& screen, ConfigMode mode); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT public: /** Returns an OpenGL frame buffer configuration that match * the specified attributes. * * @param attrib_list a list of attribute/value pairs. The last * attribute must be Gdk::GL::ATTRIB_LIST_NONE. * @return the new Gdk::GL::Config if it is successful, * NULL RefPtr otherwise. */ static Glib::RefPtr create(const int* attrib_list); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT static Glib::RefPtr create(const Glib::RefPtr& screen, const int* attrib_list); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT /** Returns an OpenGL frame buffer configuration that match * the specified display mode. * * @param mode display mode bit mask. * @return the new Gdk::GL::Config if it is successful, * NULL RefPtr otherwise. */ static Glib::RefPtr create(ConfigMode mode); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT static Glib::RefPtr create(const Glib::RefPtr& screen, ConfigMode mode); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT public: #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT /** Get Gdk::Screen. * @return The Gdk::Screen. */ Glib::RefPtr get_screen(); /** Get Gdk::Screen. * @return The Gdk::Screen. */ Glib::RefPtr get_screen() const; #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT /** Gets information about a OpenGL frame buffer configuration. * @param attribute The attribute to be returned. * @param value Returns the requested value. * @return true if it succeeded, false otherwise. */ bool get_attrib(int attribute, int& value) const; /** Gets the Gdk::Colormap that is appropriate for the OpenGL frame buffer * configuration. * @return The appropriate Gdk::Colormap. */ Glib::RefPtr get_colormap(); /** Gets the Gdk::Colormap that is appropriate for the OpenGL frame buffer * configuration. * @return The appropriate Gdk::Colormap. */ Glib::RefPtr get_colormap() const; /** Gets the Gdk::Visual that is appropriate for the OpenGL frame buffer * configuration. * @return The appropriate Gdk::Visual. */ Glib::RefPtr get_visual(); /** Gets the Gdk::Visual that is appropriate for the OpenGL frame buffer * configuration. * @return The appropriate Gdk::Visual. */ Glib::RefPtr get_visual() const; /** Gets the color depth of the OpenGL-capable visual. * @return Number of bits per pixel. */ int get_depth() const; /** Gets the layer plane (level) of the frame buffer. * Zero is the default frame buffer. * Positive layer planes correspond to frame buffers that overlay the default * buffer, and negative layer planes correspond to frame buffers that underlie * the default frame buffer. * @return Layer plane. */ int get_layer_plane() const; /** Gets the number of auxiliary color buffers. * @return Number of auxiliary color buffers. */ int get_n_aux_buffers() const; /** Gets the number of multisample buffers. * @return Number of multisample buffers. */ int get_n_sample_buffers() const; /** Returns whether the configured frame buffer is RGBA mode. * @return true if the configured frame buffer is RGBA mode, false * otherwise. */ bool is_rgba() const; /** Returns whether the configuration supports the double-buffered visual. * @return true if the double-buffered visual is supported, false * otherwise. */ bool is_double_buffered() const; /** Returns whether the configuration supports the stereo visual. * @return true if the stereo visual is supported, false otherwise. */ bool is_stereo() const; /** Returns whether the configured color buffer has alpha bits. * @return true if the color buffer has alpha bits, false otherwise. */ bool has_alpha() const; /** Returns whether the configured frame buffer has depth buffer. * @return true if the frame buffer has depth buffer, false otherwise. */ bool has_depth_buffer() const; /** Returns whether the configured frame buffer has stencil buffer. * @return true if the frame buffer has stencil buffer, false otherwise. */ bool has_stencil_buffer() const; /** Returns whether the configured frame buffer has accumulation buffer. * @return true if the frame buffer has accumulation buffer, false * otherwise. */ bool has_accum_buffer() const; public: public: //C++ methods used to invoke GTK+ virtual functions: protected: //GTK+ Virtual Functions (override these to change behaviour): //Default Signal Handlers:: }; } // namespace GL } // namespace Gdk namespace Glib { /** @relates Gdk::GL::Config * @param object The C instance * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. * @result A C++ instance that wraps this C instance. */ Glib::RefPtr wrap(GdkGLConfig* object, bool take_copy = false); } #endif /* _GDKMM_GL_CONFIG_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/font.cc0000644000175000001440000000453410052323315015401 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "font.h" namespace Gdk { namespace GL { Font::~Font() {} Glib::RefPtr Font::use_pango_font(const Pango::FontDescription& desc, int first, int count, int list_base) { Glib::RefPtr retvalue = Glib::wrap(gdk_gl_font_use_pango_font(desc.gobj(), first, count, list_base)); if (retvalue) retvalue->reference(); return retvalue; } #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT Glib::RefPtr Font::use_pango_font(const Glib::RefPtr& display, const Pango::FontDescription& desc, int first, int count, int list_base) { Glib::RefPtr retvalue = Glib::wrap(gdk_gl_font_use_pango_font_for_display(const_cast(Glib::unwrap(display)), desc.gobj(), first, count, list_base)); if (retvalue) retvalue->reference(); return retvalue; } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/font.h0000644000175000001440000000506607630036051015252 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GDKMM_GL_FONT_H #define _GDKMM_GL_FONT_H #include #include #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT #include #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT #include namespace Gdk { namespace GL { /** Font rendering support stuff. * * */ class Font { public: virtual ~Font() = 0; public: /** Create bitmap display lists from a PangoFont. * * @param desc a Pango::FontDescription describing the font to use. * @param first the index of the first glyph to be taken. * @param count the number of glyphs to be taken. * @param list_base the index of the first display list to be generated. * @return the Pango::Font used, or NULL RefPtr if no font matched. */ static Glib::RefPtr use_pango_font(const Pango::FontDescription& desc, int first, int count, int list_base); #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT static Glib::RefPtr use_pango_font(const Glib::RefPtr& display, const Pango::FontDescription& desc, int first, int count, int list_base); #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT }; /** @example font.cc * * Simple bitmap font rendering example. * */ } // namespace GL } // namespace Gdk #endif // _GDKMM_GL_FONT_H gtkglextmm-1.2.0/gdkglext/gdkmm/gl/Makefile.am0000644000175000001440000000230210052326275016157 00000000000000SUBDIRS = private sublib_name = gdkmm sublib_namespace = Gdk sublib_logdomain = gdkglextmm sublib_topdir = gdkglext sublib_cflags = \ $(GDKGLEXTMM_DEP_CFLAGS) \ -DGDKMM_GL_COMPILATION \ -DG_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED files_extra_h = \ defs.h \ version.h \ init.h \ query.h \ pixmapext.h \ windowext.h \ font.h files_extra_h_private = files_extra_cc = \ version.cc \ init.cc \ query.cc \ pixmapext.cc \ windowext.cc \ font.cc include $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment lib_LTLIBRARIES = $(gdkglextmm_targetlib) EXTRA_LTLIBRARIES = \ libgdkglextmm-x11-@LIB_MJR@.@LIB_MNR@.la \ libgdkglextmm-win32-@LIB_MJR@.@LIB_MNR@.la libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_SOURCES = $(files_all_cc) libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS = $(common_ldflags) libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LIBADD = $(GDKGLEXTMM_DEP_LIBS) libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_SOURCES = $(files_all_cc) libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS = $(common_ldflags) libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LIBADD = $(GDKGLEXTMM_DEP_LIBS) EXTRA_DIST = \ version.h.in \ $(files_extra_h_private) gtkglextmm-1.2.0/gdkglext/gdkmm/gl/Makefile.in0000644000175000001440000006352210400725443016200 00000000000000# Makefile.in generated by automake 1.7.9 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@ # This file is include by other Makefile.am files, using the new automake include feature. # The include happens in Makefile.am, not Makefile.in or Makefile, # so it's like copy-and-pasting this into each of those Makefile.am files. 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ -DG_LOG_DOMAIN=\"$(sublib_logdomain)\" DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ SUBDIRS = private sublib_name = gdkmm sublib_namespace = Gdk sublib_logdomain = gdkglextmm sublib_topdir = gdkglext sublib_cflags = \ $(GDKGLEXTMM_DEP_CFLAGS) \ -DGDKMM_GL_COMPILATION \ -DG_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED files_extra_h = \ defs.h \ version.h \ init.h \ query.h \ pixmapext.h \ windowext.h \ font.h\ wrap_init.h files_extra_h_private = files_extra_cc = \ version.cc \ init.cc \ query.cc \ pixmapext.cc \ windowext.cc \ font.cc files_hg = \ tokens.hg \ config.hg \ context.hg \ drawable.hg \ pixmap.hg \ window.hg files_built_cc = $(files_hg:.hg=.cc) wrap_init.cc files_built_h = $(files_hg:.hg=.h) files_all_cc = $(files_built_cc) $(files_extra_cc) @PLATFORM_WIN32_TRUE@no_undefined = -no-undefined common_ldflags = \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ -export-dynamic \ -rpath $(libdir) \ $(no_undefined) \ $(WIN32_LD_EXPORT_ALL_SYMBOLS) all_includes = -I$(top_builddir)/$(sublib_topdir) \ -I$(top_srcdir)/$(sublib_topdir) \ $(sublib_cflags) dist_sources = $(files_built_cc) $(files_extra_cc) $(files_built_h) $(files_extra_h) DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST) DEFAULT_INCLUDES = INCLUDES = $(strip $(all_includes)) sublib_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/$(sublib_name)/gl sublib_include_HEADERS = $(files_built_h) $(files_extra_h) lib_LTLIBRARIES = $(gdkglextmm_targetlib) EXTRA_LTLIBRARIES = \ libgdkglextmm-x11-@LIB_MJR@.@LIB_MNR@.la \ libgdkglextmm-win32-@LIB_MJR@.@LIB_MNR@.la libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_SOURCES = $(files_all_cc) libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS = $(common_ldflags) libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LIBADD = $(GDKGLEXTMM_DEP_LIBS) libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_SOURCES = $(files_all_cc) libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS = $(common_ldflags) libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LIBADD = $(GDKGLEXTMM_DEP_LIBS) EXTRA_DIST = \ version.h.in \ $(files_extra_h_private) subdir = gdkglext/gdkmm/gl ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = version.h LTLIBRARIES = $(lib_LTLIBRARIES) libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_DEPENDENCIES = am__objects_1 = tokens.lo config.lo context.lo drawable.lo pixmap.lo \ window.lo am__objects_2 = $(am__objects_1) wrap_init.lo am__objects_3 = version.lo init.lo query.lo pixmapext.lo windowext.lo \ font.lo am__objects_4 = $(am__objects_2) $(am__objects_3) am_libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_OBJECTS = $(am__objects_4) libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_OBJECTS = \ $(am_libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_DEPENDENCIES = am_libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_OBJECTS = $(am__objects_4) libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_OBJECTS = \ $(am_libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/config.Plo ./$(DEPDIR)/context.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/drawable.Plo ./$(DEPDIR)/font.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/init.Plo ./$(DEPDIR)/pixmap.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/pixmapext.Plo ./$(DEPDIR)/query.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/tokens.Plo ./$(DEPDIR)/version.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/window.Plo ./$(DEPDIR)/windowext.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/wrap_init.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 = $(libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_SOURCES) \ $(libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_SOURCES) HEADERS = $(sublib_include_HEADERS) 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 = $(srcdir)/../../src/Makefile_list_of_hg.am_fragment \ $(srcdir)/Makefile.in $(sublib_include_HEADERS) \ $(top_srcdir)/build_shared/Makefile_build.am_fragment \ $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment \ Makefile.am version.h.in DIST_SUBDIRS = $(SUBDIRS) SOURCES = $(libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_SOURCES) $(libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_SOURCES) all: all-recursive .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment $(srcdir)/../../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/build_shared/Makefile_build.am_fragment $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gdkglext/gdkmm/gl/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) version.h: $(top_builddir)/config.status version.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 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 libgdkglextmm-win32-@LIB_MJR@.@LIB_MNR@.la: $(libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) $(libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_DEPENDENCIES) $(CXXLINK) $(libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS) $(libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) $(libgdkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LIBADD) $(LIBS) libgdkglextmm-x11-@LIB_MJR@.@LIB_MNR@.la: $(libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) $(libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_DEPENDENCIES) $(CXXLINK) $(libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS) $(libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) $(libgdkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) core *.core distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/config.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/context.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drawable.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pixmap.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pixmapext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/query.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tokens.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/window.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/windowext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrap_init.Plo@am__quote@ .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: sublib_includeHEADERS_INSTALL = $(INSTALL_HEADER) install-sublib_includeHEADERS: $(sublib_include_HEADERS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(sublib_includedir) @list='$(sublib_include_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(sublib_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(sublib_includedir)/$$f"; \ $(sublib_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(sublib_includedir)/$$f; \ done uninstall-sublib_includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(sublib_include_HEADERS)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f $(DESTDIR)$(sublib_includedir)/$$f"; \ rm -f $(DESTDIR)$(sublib_includedir)/$$f; \ done # 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 top_distdir = ../../.. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) $(mkinstalldirs) $(distdir)/../../../build_shared $(distdir)/./../../src @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 $(LTLIBRARIES) $(HEADERS) installdirs: installdirs-recursive installdirs-am: $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(sublib_includedir) 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: info: info-recursive info-am: install-data-am: install-sublib_includeHEADERS install-exec-am: install-libLTLIBRARIES install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \ uninstall-sublib_includeHEADERS uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ clean-generic clean-libLTLIBRARIES clean-libtool \ clean-recursive ctags ctags-recursive distclean \ distclean-compile 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-libLTLIBRARIES install-man install-recursive \ install-strip install-sublib_includeHEADERS installcheck \ installcheck-am installdirs installdirs-am \ installdirs-recursive maintainer-clean maintainer-clean-generic \ maintainer-clean-local maintainer-clean-recursive mostlyclean \ mostlyclean-compile 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-libLTLIBRARIES uninstall-recursive \ uninstall-sublib_includeHEADERS maintainer-clean-local: (cd $(srcdir) && rm -f $(files_built_cc) $(files_built_h)) # 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: gtkglextmm-1.2.0/gdkglext/gdkmm/gl/pixmapext.h0000644000175000001440000001013007725052035016314 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GDKMM_GL_PIXMAPEXT_H #define _GDKMM_GL_PIXMAPEXT_H #include #include #include namespace Gdk { namespace GL { class PixmapExtProxy { private: PixmapExtProxy(const Glib::RefPtr& pixmap) : pixmap_(pixmap) {} private: PixmapExtProxy(const PixmapExtProxy&); PixmapExtProxy& operator=(const PixmapExtProxy&); public: /** Set the OpenGL-capability to the Gdk::Pixmap. * This function creates a new Gdk::GL::Pixmap held by the Gdk::Pixmap. * attrib_list is currently unused. This must be set to 0 or empty * (first attribute of None). * * @param glconfig A Gdk::GL::Config. * @param attrib_list This must be set to 0 or empty (first attribute of None). * @return The Gdk::GL::Pixmap used by the Gdk::Pixmap if it is successful, * 0 otherwise. */ Glib::RefPtr set_gl_capability(const Glib::RefPtr& glconfig, const int* attrib_list = 0); /** Unset the OpenGL-capability of the Gdk::Pixmap . * This function destroys the Gdk::GL::Pixmap held by the Gdk::Pixmap. * */ void unset_gl_capability(); /** Returns whether the Gdk::Pixmap is OpenGL-capable. * * @return true if the Gdk::Pixmap is OpenGL-capable, false otherwise. */ bool is_gl_capable() const; /** Returns the Gdk::GL::Pixmap held by the Gdk::Pixmap . * * @return The Gdk::GL::Pixmap. */ Glib::RefPtr get_gl_pixmap() const; /** Returns the Gdk::GL::Drawable held by the Gdk::Pixmap . * * @return The Gdk::GL::Drawable. */ Glib::RefPtr get_gl_drawable() const; private: const Glib::RefPtr& pixmap_; friend PixmapExtProxy ext(const Glib::RefPtr&); friend const PixmapExtProxy ext(const Glib::RefPtr&); }; /** OpenGL extension API wrapper. * This is a Gdk::Pixmap wrapper to invoke OpenGL extension function. * See Gdk::GL::PixmapExtProxy for available functions. * * Here is a simple example: * @code * Glib::RefPtr pixmap = * Gdk::Pixmap::create(0, width, height, glconfig->get_depth()); * Glib::RefPtr glpixmap = * Gdk::GL::ext(pixmap).set_gl_capability(glconfig); * std::cout << "OpenGL-capable? " * << Gdk::GL::ext(pixmap).is_gl_capable() * << std::endl; * @endcode * * @param pixmap A Gdk::Pixmap. */ inline PixmapExtProxy ext(const Glib::RefPtr& pixmap) { return PixmapExtProxy(pixmap); } /** OpenGL extension API wrapper. * This is a Gdk::Pixmap wrapper to invoke OpenGL extension function. * See Gdk::GL::PixmapExtProxy for available functions. * * @param pixmap A Gdk::Pixmap. */ inline const PixmapExtProxy ext(const Glib::RefPtr& pixmap) { return PixmapExtProxy(reinterpret_cast&>(pixmap)); } } // namespace GL } // namespace Gdk #endif // _GDKMM_GL_PIXMAPEXT_H gtkglextmm-1.2.0/gdkglext/gdkmm/gl/tokens.cc0000644000175000001440000000541510400725542015742 00000000000000// Generated by gtkmmproc -- DO NOT MODIFY! #include #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include const int Gdk::GL::SUCCESS = GDK_GL_SUCCESS; const int Gdk::GL::ATTRIB_LIST_NONE = GDK_GL_ATTRIB_LIST_NONE; const int Gdk::GL::DONT_CARE = GDK_GL_DONT_CARE; const int Gdk::GL::NONE = GDK_GL_NONE; namespace { } // anonymous namespace // static GType Glib::Value::value_type() { return gdk_gl_config_attrib_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_config_caveat_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_visual_type_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_transparent_type_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_drawable_type_mask_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_render_type_mask_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_buffer_mask_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_config_error_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_render_type_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_drawable_attrib_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_pbuffer_attrib_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_event_mask_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_event_type_get_type(); } // static GType Glib::Value::value_type() { return gdk_gl_drawable_type_get_type(); } gtkglextmm-1.2.0/gdkglext/gdkmm/gl/init.h0000644000175000001440000001170507627357444015266 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GDKMM_GL_INIT_H #define _GDKMM_GL_INIT_H namespace Gdk { namespace GL { /** Initialize gdkglextmm library. * * This function does the same work as Gdk::GL::init() with only a single * change: It does not terminate the program if the library can't be * initialized. Instead it returns false on failure. * * This way the application can fall back to some other means of communication * with the user - for example a curses or command line interface. * * @param argc Reference of the argc parameter of your * main() function. Changed if any arguments were * handled. * @param argv Reference of the argv parameter of * main(). Any parameters understood by Gdk::GL::init() * are stripped before return. * @return true if the library has been successfully initialized, * false otherwise. */ bool init_check(int& argc, char**& argv); /** Initialize gdkglextmm library. * * This function does the same work as Gdk::GL::init() with only a single * change: It does not terminate the program if the library can't be * initialized. Instead it returns false on failure. * * This way the application can fall back to some other means of communication * with the user - for example a curses or command line interface. * * @param argc Address of the argc parameter of your * main() function. Changed if any arguments were * handled. * @param argv Address of the argv parameter of * main(). Any parameters understood by Gdk::GL::init() * are stripped before return. * @return true if the library has been successfully initialized, * false otherwise. */ bool init_check(int* argc, char*** argv); /** Initialize gdkglextmm library. * * Call this function before using any other gdkglextmm functions in your * applications. It will initialize everything needed to operate the library * and parses some standard command line options. @a argc and * @a argv are adjusted accordingly so your own code will * never see those standard arguments. * * This function will terminate your program if it was unable to initialize * the library for some reason. If you want your program to fall back to a * textual interface you want to call Gdk::GL::init_check() instead. * * @param argc Reference of the argc parameter of your * main() function. Changed if any arguments were * handled. * @param argv Reference of the argv parameter of * main(). Any parameters understood by Gdk::GL::init() * are stripped before return. */ void init(int& argc, char**& argv); /** Initialize gdkglextmm library. * * Call this function before using any other gdkglextmm functions in your * applications. It will initialize everything needed to operate the library * and parses some standard command line options. @a argc and * @a argv are adjusted accordingly so your own code will * never see those standard arguments. * * This function will terminate your program if it was unable to initialize * the library for some reason. If you want your program to fall back to a * textual interface you want to call Gdk::GL::init_check() instead. * * @param argc Address of the argc parameter of your * main() function. Changed if any arguments were * handled. * @param argv Address of the argv parameter of * main(). Any parameters understood by Gdk::GL::init() * are stripped before return. */ void init(int* argc, char*** argv); } // namespace GL } // namespace Gdk #endif // _GDKMM_GL_INIT_H gtkglextmm-1.2.0/gdkglext/gdkmm/gl/pixmap.h0000644000175000001440000001061710400725546015603 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_PIXMAP_H #define _GDKMM_GL_PIXMAP_H #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef struct _GdkGLPixmap GdkGLPixmap; typedef struct _GdkGLPixmapClass GdkGLPixmapClass; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { class Pixmap_Class; } // namespace GL } // namespace Gdk namespace Gdk { namespace GL { /** OpenGL pixmap which is maintained offscreen. * * @ingroup GLDrawables */ class Pixmap : public Gdk::Drawable, public Gdk::GL::Drawable { #ifndef DOXYGEN_SHOULD_SKIP_THIS public: typedef Pixmap CppObjectType; typedef Pixmap_Class CppClassType; typedef GdkGLPixmap BaseObjectType; typedef GdkGLPixmapClass BaseClassType; private: friend class Pixmap_Class; static CppClassType pixmap_class_; private: // noncopyable Pixmap(const Pixmap&); Pixmap& operator=(const Pixmap&); protected: explicit Pixmap(const Glib::ConstructParams& construct_params); explicit Pixmap(GdkGLPixmap* castitem); #endif /* DOXYGEN_SHOULD_SKIP_THIS */ public: virtual ~Pixmap(); #ifndef DOXYGEN_SHOULD_SKIP_THIS static GType get_type() G_GNUC_CONST; static GType get_base_type() G_GNUC_CONST; #endif ///Provides access to the underlying C GObject. GdkGLPixmap* gobj() { return reinterpret_cast(gobject_); } ///Provides access to the underlying C GObject. const GdkGLPixmap* gobj() const { return reinterpret_cast(gobject_); } ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. GdkGLPixmap* gobj_copy(); private: protected: Pixmap(const Glib::RefPtr& glconfig, const Glib::RefPtr& pixmap, const int* attrib_list = 0); public: static Glib::RefPtr create(const Glib::RefPtr& glconfig, const Glib::RefPtr& pixmap, const int* attrib_list = 0); public: /** Returns the Gdk::Pixmap associated with @a glpixmap . * * Notice that Gdk::GLPixmap is not Gdk::Pixmap, but another * Gdk::Drawable which have an associated Gdk::Pixmap. * @return The Gdk::Pixmap associated with @a glpixmap . */ Glib::RefPtr get_pixmap(); /** Returns the Gdk::Pixmap associated with @a glpixmap . * * Notice that Gdk::GLPixmap is not Gdk::Pixmap, but another * Gdk::Drawable which have an associated Gdk::Pixmap. * @return The Gdk::Pixmap associated with @a glpixmap . */ Glib::RefPtr get_pixmap() const; public: public: //C++ methods used to invoke GTK+ virtual functions: protected: //GTK+ Virtual Functions (override these to change behaviour): //Default Signal Handlers:: }; /** @example pixmap.cc * * Simple offscreen OpenGL rendering example. * */ /** @example pixmap-mixed.cc * * Simple offscreen rendering example for mixing OpenGL and * GDK rendering. * */ } // namespace GL } // namespace Gdk namespace Glib { /** @relates Gdk::GL::Pixmap * @param object The C instance * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. * @result A C++ instance that wraps this C instance. */ Glib::RefPtr wrap(GdkGLPixmap* object, bool take_copy = false); } #endif /* _GDKMM_GL_PIXMAP_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/window.h0000644000175000001440000001025610400725547015614 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_WINDOW_H #define _GDKMM_GL_WINDOW_H #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include #include #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef struct _GdkGLWindow GdkGLWindow; typedef struct _GdkGLWindowClass GdkGLWindowClass; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { class Window_Class; } // namespace GL } // namespace Gdk namespace Gdk { namespace GL { /** OpenGL window which is located onscreen. * * @ingroup GLDrawables */ class Window : public Gdk::Drawable, public Gdk::GL::Drawable { #ifndef DOXYGEN_SHOULD_SKIP_THIS public: typedef Window CppObjectType; typedef Window_Class CppClassType; typedef GdkGLWindow BaseObjectType; typedef GdkGLWindowClass BaseClassType; private: friend class Window_Class; static CppClassType window_class_; private: // noncopyable Window(const Window&); Window& operator=(const Window&); protected: explicit Window(const Glib::ConstructParams& construct_params); explicit Window(GdkGLWindow* castitem); #endif /* DOXYGEN_SHOULD_SKIP_THIS */ public: virtual ~Window(); #ifndef DOXYGEN_SHOULD_SKIP_THIS static GType get_type() G_GNUC_CONST; static GType get_base_type() G_GNUC_CONST; #endif ///Provides access to the underlying C GObject. GdkGLWindow* gobj() { return reinterpret_cast(gobject_); } ///Provides access to the underlying C GObject. const GdkGLWindow* gobj() const { return reinterpret_cast(gobject_); } ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. GdkGLWindow* gobj_copy(); private: protected: Window(const Glib::RefPtr& glconfig, const Glib::RefPtr& window, const int* attrib_list = 0); public: static Glib::RefPtr create(const Glib::RefPtr& glconfig, const Glib::RefPtr& window, const int* attrib_list = 0); public: /** Returns the Gdk::Window associated with @a glwindow . * * Notice that Gdk::GLWindow is not Gdk::Window, but another * Gdk::Drawable which have an associated Gdk::Window. * @return The Gdk::Window associated with @a glwindow . */ Glib::RefPtr get_window(); /** Returns the Gdk::Window associated with @a glwindow . * * Notice that Gdk::GLWindow is not Gdk::Window, but another * Gdk::Drawable which have an associated Gdk::Window. * @return The Gdk::Window associated with @a glwindow . */ Glib::RefPtr get_window() const; public: public: //C++ methods used to invoke GTK+ virtual functions: protected: //GTK+ Virtual Functions (override these to change behaviour): //Default Signal Handlers:: }; } // namespace GL } // namespace Gdk namespace Glib { /** @relates Gdk::GL::Window * @param object The C instance * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref. * @result A C++ instance that wraps this C instance. */ Glib::RefPtr wrap(GdkGLWindow* object, bool take_copy = false); } #endif /* _GDKMM_GL_WINDOW_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/windowext.h0000644000175000001440000001004207725052035016327 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GDKMM_GL_WINDOWEXT_H #define _GDKMM_GL_WINDOWEXT_H #include #include #include namespace Gdk { namespace GL { class WindowExtProxy { private: WindowExtProxy(const Glib::RefPtr& window) : window_(window) {} private: WindowExtProxy(const WindowExtProxy&); WindowExtProxy& operator=(const WindowExtProxy&); public: /** Set the OpenGL-capability to the Gdk::Window. * This function creates a new Gdk::GL::Window held by the Gdk::Window. * attrib_list is currently unused. This must be set to 0 or empty * (first attribute of None). * * @param glconfig A Gdk::GL::Config. * @param attrib_list This must be set to 0 or empty (first attribute of None). * @return The Gdk::GL::Window used by the @a window if it is successful, * 0 otherwise. */ Glib::RefPtr set_gl_capability(const Glib::RefPtr& glconfig, const int* attrib_list = 0); /** Unset the OpenGL-capability of the Gdk::Window. * This function destroys the Gdk::GL::Window held by the Gdk::Window. * */ void unset_gl_capability(); /** Returns whether the Gdk::Window is OpenGL-capable. * * @return true if the Gdk::Window is OpenGL-capable, false otherwise. */ bool is_gl_capable() const; /** Returns the Gdk::GL::Window held by the Gdk::Window . * * @return The Gdk::GL::Window. */ Glib::RefPtr get_gl_window() const; /** Returns the Gdk::GL::Drawable held by the Gdk::Window . * * @return The Gdk::GL::Drawable. */ Glib::RefPtr get_gl_drawable() const; private: const Glib::RefPtr& window_; friend WindowExtProxy ext(const Glib::RefPtr&); friend const WindowExtProxy ext(const Glib::RefPtr&); }; /** OpenGL extension API wrapper. * This is a Gdk::Window wrapper to invoke OpenGL extension function. * See Gdk::GL::WindowExtProxy for available functions. * * Here is a simple example: * @code * Glib::RefPtr window = widget.get_window(); * Glib::RefPtr glwindow = * Gdk::GL::ext(window).set_gl_capability(glconfig); * std::cout << "OpenGL-capable? " * << Gdk::GL::ext(window).is_gl_capable() * << std::endl; * @endcode * * @param window A Gdk::Window. */ inline WindowExtProxy ext(const Glib::RefPtr& window) { return WindowExtProxy(window); } /** OpenGL extension API wrapper. * This is a Gdk::Window wrapper to invoke OpenGL extension function. * See Gdk::GL::WindowExtProxy for available functions. * * @param window A Gdk::Window. */ inline const WindowExtProxy ext(const Glib::RefPtr& window) { return WindowExtProxy(reinterpret_cast&>(window)); } } // namespace GL } // namespace Gdk #endif // _GDKMM_GL_WINDOWEXT_H gtkglextmm-1.2.0/gdkglext/gdkmm/gl/pixmap.cc0000644000175000001440000001027610400725546015742 00000000000000// Generated by gtkmmproc -- DO NOT MODIFY! #include #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include namespace Gdk { namespace GL { Pixmap::Pixmap(const Glib::RefPtr& glconfig, const Glib::RefPtr& pixmap, const int* attrib_list) : Gdk::Drawable(reinterpret_cast( gdk_gl_pixmap_new(const_cast(Glib::unwrap(glconfig)), const_cast(Glib::unwrap(pixmap)), attrib_list))) {} } // namespace GL } // namespace Gdk namespace { } // anonymous namespace namespace Glib { Glib::RefPtr wrap(GdkGLPixmap* object, bool take_copy) { return Glib::RefPtr( dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)) ); //We use dynamic_cast<> in case of multiple inheritance. } } /* namespace Glib */ namespace Gdk { namespace GL { /* The *_Class implementation: */ const Glib::Class& Pixmap_Class::init() { if(!gtype_) // create the GType if necessary { // Glib::Class has to know the class init function to clone custom types. class_init_func_ = &Pixmap_Class::class_init_function; // This is actually just optimized away, apparently with no harm. // Make sure that the parent type has been created. //CppClassParent::CppObjectType::get_type(); // Create the wrapper type, with the same class/instance size as the base type. register_derived_type(gdk_gl_pixmap_get_type()); // Add derived versions of interfaces, if the C type implements any interfaces: } return *this; } void Pixmap_Class::class_init_function(void* g_class, void* class_data) { BaseClassType *const klass = static_cast(g_class); CppClassParent::class_init_function(klass, class_data); } Glib::ObjectBase* Pixmap_Class::wrap_new(GObject* object) { return new Pixmap((GdkGLPixmap*)object); } /* The implementation: */ GdkGLPixmap* Pixmap::gobj_copy() { reference(); return gobj(); } Pixmap::Pixmap(const Glib::ConstructParams& construct_params) : Gdk::Drawable(construct_params) {} Pixmap::Pixmap(GdkGLPixmap* castitem) : Gdk::Drawable((GdkDrawable*)(castitem)) {} Pixmap::~Pixmap() {} Pixmap::CppClassType Pixmap::pixmap_class_; // initialize static member GType Pixmap::get_type() { return pixmap_class_.init().get_type(); } GType Pixmap::get_base_type() { return gdk_gl_pixmap_get_type(); } Glib::RefPtr Pixmap::create(const Glib::RefPtr& glconfig, const Glib::RefPtr& pixmap, const int* attrib_list) { return Glib::RefPtr( new Pixmap(glconfig, pixmap, attrib_list) ); } Glib::RefPtr Pixmap::get_pixmap() { Glib::RefPtr retvalue = Glib::wrap((GdkPixmapObject*)(gdk_gl_pixmap_get_pixmap(gobj()))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Pixmap::get_pixmap() const { Glib::RefPtr retvalue = Glib::wrap((GdkPixmapObject*)(gdk_gl_pixmap_get_pixmap(const_cast(gobj())))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/tokens.h0000644000175000001440000004010110400725542015573 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_TOKENS_H #define _GDKMM_GL_TOKENS_H #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include namespace Gdk { namespace GL { GDKMM_GL_VAR const int SUCCESS; GDKMM_GL_VAR const int ATTRIB_LIST_NONE; GDKMM_GL_VAR const int DONT_CARE; GDKMM_GL_VAR const int NONE; } // namespace GL } // namespace Gdk namespace Gdk { namespace GL { /** @addtogroup gdkmm_glEnums Enums and Flags */ /** * @ingroup gdkmm_glEnums */ enum ConfigAttrib { USE_GL = 1, BUFFER_SIZE = 2, LEVEL = 3, RGBA = 4, DOUBLEBUFFER = 5, STEREO = 6, AUX_BUFFERS = 7, RED_SIZE = 8, GREEN_SIZE = 9, BLUE_SIZE = 10, ALPHA_SIZE = 11, DEPTH_SIZE = 12, STENCIL_SIZE = 13, ACCUM_RED_SIZE = 14, ACCUM_GREEN_SIZE = 15, ACCUM_BLUE_SIZE = 16, ACCUM_ALPHA_SIZE = 17, CONFIG_CAVEAT = 0x20, X_VISUAL_TYPE = 0x22, TRANSPARENT_TYPE = 0x23, TRANSPARENT_INDEX_VALUE = 0x24, TRANSPARENT_RED_VALUE = 0x25, TRANSPARENT_GREEN_VALUE = 0x26, TRANSPARENT_BLUE_VALUE = 0x27, TRANSPARENT_ALPHA_VALUE = 0x28, DRAWABLE_TYPE = 0x8010, RENDER_TYPE = 0x8011, X_RENDERABLE = 0x8012, FBCONFIG_ID = 0x8013, MAX_PBUFFER_WIDTH = 0x8016, MAX_PBUFFER_HEIGHT = 0x8017, MAX_PBUFFER_PIXELS = 0x8018, VISUAL_ID = 0x800B, SCREEN = 0x800C, SAMPLE_BUFFERS = 100000, SAMPLES = 100001 }; } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Enum { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums */ enum ConfigCaveat { CONFIG_CAVEAT_DONT_CARE = 0xFFFFFFFF, CONFIG_CAVEAT_NONE = 0x8000, SLOW_CONFIG = 0x8001, NON_CONFORMANT_CONFIG = 0x800D }; } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Enum { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums */ enum VisualType { VISUAL_TYPE_DONT_CARE = 0xFFFFFFFF, TRUE_COLOR = 0x8002, DIRECT_COLOR = 0x8003, PSEUDO_COLOR = 0x8004, STATIC_COLOR = 0x8005, GRAY_SCALE = 0x8006, STATIC_GRAY = 0x8007 }; } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Enum { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums */ enum TransparentType { TRANSPARENT_NONE = 0x8000, TRANSPARENT_RGB = 0x8008, TRANSPARENT_INDEX = 0x8009 }; } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Enum { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums * @par Bitwise operators: * %DrawableTypeMask operator|(DrawableTypeMask, DrawableTypeMask)
* %DrawableTypeMask operator&(DrawableTypeMask, DrawableTypeMask)
* %DrawableTypeMask operator^(DrawableTypeMask, DrawableTypeMask)
* %DrawableTypeMask operator~(DrawableTypeMask)
* %DrawableTypeMask& operator|=(DrawableTypeMask&, DrawableTypeMask)
* %DrawableTypeMask& operator&=(DrawableTypeMask&, DrawableTypeMask)
* %DrawableTypeMask& operator^=(DrawableTypeMask&, DrawableTypeMask)
*/ enum DrawableTypeMask { WINDOW_BIT = 1 << 0, PIXMAP_BIT = 1 << 1, PBUFFER_BIT = 1 << 2 }; /** @ingroup gdkmm_glEnums */ inline DrawableTypeMask operator|(DrawableTypeMask lhs, DrawableTypeMask rhs) { return static_cast(static_cast(lhs) | static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline DrawableTypeMask operator&(DrawableTypeMask lhs, DrawableTypeMask rhs) { return static_cast(static_cast(lhs) & static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline DrawableTypeMask operator^(DrawableTypeMask lhs, DrawableTypeMask rhs) { return static_cast(static_cast(lhs) ^ static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline DrawableTypeMask operator~(DrawableTypeMask flags) { return static_cast(~static_cast(flags)); } /** @ingroup gdkmm_glEnums */ inline DrawableTypeMask& operator|=(DrawableTypeMask& lhs, DrawableTypeMask rhs) { return (lhs = static_cast(static_cast(lhs) | static_cast(rhs))); } /** @ingroup gdkmm_glEnums */ inline DrawableTypeMask& operator&=(DrawableTypeMask& lhs, DrawableTypeMask rhs) { return (lhs = static_cast(static_cast(lhs) & static_cast(rhs))); } /** @ingroup gdkmm_glEnums */ inline DrawableTypeMask& operator^=(DrawableTypeMask& lhs, DrawableTypeMask rhs) { return (lhs = static_cast(static_cast(lhs) ^ static_cast(rhs))); } } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Flags { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums * @par Bitwise operators: * %RenderTypeMask operator|(RenderTypeMask, RenderTypeMask)
* %RenderTypeMask operator&(RenderTypeMask, RenderTypeMask)
* %RenderTypeMask operator^(RenderTypeMask, RenderTypeMask)
* %RenderTypeMask operator~(RenderTypeMask)
* %RenderTypeMask& operator|=(RenderTypeMask&, RenderTypeMask)
* %RenderTypeMask& operator&=(RenderTypeMask&, RenderTypeMask)
* %RenderTypeMask& operator^=(RenderTypeMask&, RenderTypeMask)
*/ enum RenderTypeMask { RGBA_BIT = 1 << 0, COLOR_INDEX_BIT = 1 << 1 }; /** @ingroup gdkmm_glEnums */ inline RenderTypeMask operator|(RenderTypeMask lhs, RenderTypeMask rhs) { return static_cast(static_cast(lhs) | static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline RenderTypeMask operator&(RenderTypeMask lhs, RenderTypeMask rhs) { return static_cast(static_cast(lhs) & static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline RenderTypeMask operator^(RenderTypeMask lhs, RenderTypeMask rhs) { return static_cast(static_cast(lhs) ^ static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline RenderTypeMask operator~(RenderTypeMask flags) { return static_cast(~static_cast(flags)); } /** @ingroup gdkmm_glEnums */ inline RenderTypeMask& operator|=(RenderTypeMask& lhs, RenderTypeMask rhs) { return (lhs = static_cast(static_cast(lhs) | static_cast(rhs))); } /** @ingroup gdkmm_glEnums */ inline RenderTypeMask& operator&=(RenderTypeMask& lhs, RenderTypeMask rhs) { return (lhs = static_cast(static_cast(lhs) & static_cast(rhs))); } /** @ingroup gdkmm_glEnums */ inline RenderTypeMask& operator^=(RenderTypeMask& lhs, RenderTypeMask rhs) { return (lhs = static_cast(static_cast(lhs) ^ static_cast(rhs))); } } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Flags { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums * @par Bitwise operators: * %BufferMask operator|(BufferMask, BufferMask)
* %BufferMask operator&(BufferMask, BufferMask)
* %BufferMask operator^(BufferMask, BufferMask)
* %BufferMask operator~(BufferMask)
* %BufferMask& operator|=(BufferMask&, BufferMask)
* %BufferMask& operator&=(BufferMask&, BufferMask)
* %BufferMask& operator^=(BufferMask&, BufferMask)
*/ enum BufferMask { FRONT_LEFT_BUFFER_BIT = 1 << 0, FRONT_RIGHT_BUFFER_BIT = 1 << 1, BACK_LEFT_BUFFER_BIT = 1 << 2, BACK_RIGHT_BUFFER_BIT = 1 << 3, AUX_BUFFERS_BIT = 1 << 4, DEPTH_BUFFER_BIT = 1 << 5, STENCIL_BUFFER_BIT = 1 << 6, ACCUM_BUFFER_BIT = 1 << 7 }; /** @ingroup gdkmm_glEnums */ inline BufferMask operator|(BufferMask lhs, BufferMask rhs) { return static_cast(static_cast(lhs) | static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline BufferMask operator&(BufferMask lhs, BufferMask rhs) { return static_cast(static_cast(lhs) & static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline BufferMask operator^(BufferMask lhs, BufferMask rhs) { return static_cast(static_cast(lhs) ^ static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline BufferMask operator~(BufferMask flags) { return static_cast(~static_cast(flags)); } /** @ingroup gdkmm_glEnums */ inline BufferMask& operator|=(BufferMask& lhs, BufferMask rhs) { return (lhs = static_cast(static_cast(lhs) | static_cast(rhs))); } /** @ingroup gdkmm_glEnums */ inline BufferMask& operator&=(BufferMask& lhs, BufferMask rhs) { return (lhs = static_cast(static_cast(lhs) & static_cast(rhs))); } /** @ingroup gdkmm_glEnums */ inline BufferMask& operator^=(BufferMask& lhs, BufferMask rhs) { return (lhs = static_cast(static_cast(lhs) ^ static_cast(rhs))); } } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Flags { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums */ enum ConfigError { BAD_SCREEN = 1, BAD_ATTRIBUTE, NO_EXTENSION, BAD_VISUAL, BAD_CONTEXT, BAD_VALUE, BAD_ENUM }; } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Enum { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums */ enum RenderType { RGBA_TYPE = 0x8014, COLOR_INDEX_TYPE = 0x8015 }; } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Enum { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums */ enum DrawableAttrib { PRESERVED_CONTENTS = 0x801B, LARGEST_PBUFFER = 0x801C, WIDTH = 0x801D, HEIGHT = 0x801E, EVENT_MASK = 0x801F }; } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Enum { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums */ enum PbufferAttrib { PBUFFER_PRESERVED_CONTENTS = 0x801B, PBUFFER_LARGEST_PBUFFER = 0x801C, PBUFFER_HEIGHT = 0x8040, PBUFFER_WIDTH = 0x8041 }; } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Enum { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums * @par Bitwise operators: * %EventMask operator|(EventMask, EventMask)
* %EventMask operator&(EventMask, EventMask)
* %EventMask operator^(EventMask, EventMask)
* %EventMask operator~(EventMask)
* %EventMask& operator|=(EventMask&, EventMask)
* %EventMask& operator&=(EventMask&, EventMask)
* %EventMask& operator^=(EventMask&, EventMask)
*/ enum EventMask { PBUFFER_CLOBBER_MASK = 1 << 27 }; /** @ingroup gdkmm_glEnums */ inline EventMask operator|(EventMask lhs, EventMask rhs) { return static_cast(static_cast(lhs) | static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline EventMask operator&(EventMask lhs, EventMask rhs) { return static_cast(static_cast(lhs) & static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline EventMask operator^(EventMask lhs, EventMask rhs) { return static_cast(static_cast(lhs) ^ static_cast(rhs)); } /** @ingroup gdkmm_glEnums */ inline EventMask operator~(EventMask flags) { return static_cast(~static_cast(flags)); } /** @ingroup gdkmm_glEnums */ inline EventMask& operator|=(EventMask& lhs, EventMask rhs) { return (lhs = static_cast(static_cast(lhs) | static_cast(rhs))); } /** @ingroup gdkmm_glEnums */ inline EventMask& operator&=(EventMask& lhs, EventMask rhs) { return (lhs = static_cast(static_cast(lhs) & static_cast(rhs))); } /** @ingroup gdkmm_glEnums */ inline EventMask& operator^=(EventMask& lhs, EventMask rhs) { return (lhs = static_cast(static_cast(lhs) ^ static_cast(rhs))); } } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Flags { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums */ enum EventType { DAMAGED = 0x8020, SAVED = 0x8021 }; } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Enum { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { /** * @ingroup gdkmm_glEnums */ enum DrawableType { WINDOW = 0x8022, PBUFFER = 0x8023 }; } // namespace GL } // namespace Gdk #ifndef DOXYGEN_SHOULD_SKIP_THIS namespace Glib { template <> class Value : public Glib::Value_Enum { public: static GType value_type() G_GNUC_CONST; }; } // namespace Glib #endif /* DOXYGEN_SHOULD_SKIP_THIS */ namespace Gdk { namespace GL { } // namespace GL } // namespace Gdk #endif /* _GDKMM_GL_TOKENS_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/pixmapext.cc0000644000175000001440000000473510052323315016455 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include "pixmapext.h" namespace Gdk { namespace GL { Glib::RefPtr PixmapExtProxy::set_gl_capability(const Glib::RefPtr& glconfig, const int* attrib_list) { Glib::RefPtr retvalue = Glib::wrap((GdkGLPixmap*)(gdk_pixmap_set_gl_capability(Glib::unwrap(pixmap_), const_cast(Glib::unwrap(glconfig)), attrib_list))); if(retvalue) retvalue->reference(); return retvalue; } void PixmapExtProxy::unset_gl_capability() { gdk_pixmap_unset_gl_capability(Glib::unwrap(pixmap_)); } bool PixmapExtProxy::is_gl_capable() const { return gdk_pixmap_is_gl_capable(const_cast(Glib::unwrap(pixmap_))); } Glib::RefPtr PixmapExtProxy::get_gl_pixmap() const { Glib::RefPtr retvalue = Glib::wrap((GdkGLPixmap*)(gdk_pixmap_get_gl_pixmap(const_cast(Glib::unwrap(pixmap_))))); if(retvalue) retvalue->reference(); return retvalue; } Glib::RefPtr PixmapExtProxy::get_gl_drawable() const { Glib::RefPtr retvalue = Glib::wrap((GdkGLDrawable*)(gdk_pixmap_get_gl_drawable(const_cast(Glib::unwrap(pixmap_))))); if(retvalue) retvalue->reference(); return retvalue; } } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/query.cc0000644000175000001440000000440207627357444015622 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "query.h" namespace Gdk { namespace GL { bool query_extension() { return gdk_gl_query_extension(); } #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT bool query_extension(const Glib::RefPtr& display) { return gdk_gl_query_extension_for_display(const_cast(Glib::unwrap(display))); } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT bool query_version(int& major, int& minor) { return gdk_gl_query_version(&major, &minor); } #ifdef GDKGLEXTMM_MULTIHEAD_SUPPORT bool query_version(const Glib::RefPtr& display, int& major, int& minor) { return gdk_gl_query_version_for_display(const_cast(Glib::unwrap(display)), &major, &minor); } #endif // GDKGLEXTMM_MULTIHEAD_SUPPORT bool query_gl_extension(const char* extension) { return gdk_gl_query_gl_extension(extension); } bool query_gl_extension(const Glib::ustring& extension) { return gdk_gl_query_gl_extension(extension.c_str()); } GdkGLProc get_proc_address(const char* proc_name) { return gdk_gl_get_proc_address(proc_name); } GdkGLProc get_proc_address(const Glib::ustring& proc_name) { return gdk_gl_get_proc_address(proc_name.c_str()); } } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/wrap_init.cc0000644000175000001440000000372110400725547016436 00000000000000 #include // Disable the 'const' function attribute of the get_type() functions. // GCC would optimize them out because we don't use the return value. #undef G_GNUC_CONST #define G_GNUC_CONST /* empty */ #include #include #include // #include the widget headers so that we can call the get_type() static methods: #include "tokens.h" #include "config.h" #include "context.h" #include "drawable.h" #include "pixmap.h" #include "window.h" extern "C" { //Declarations of the *_get_type() functions: GType gdk_gl_config_get_type(void); GType gdk_gl_context_get_type(void); GType gdk_gl_pixmap_get_type(void); GType gdk_gl_window_get_type(void); //Declarations of the *_error_quark() functions: } // extern "C" //Declarations of the *_Class::wrap_new() methods, instead of including all the private headers: namespace Gdk { namespace GL { class Config_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; } } namespace Gdk { namespace GL { class Context_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; } } namespace Gdk { namespace GL { class Pixmap_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; } } namespace Gdk { namespace GL { class Window_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; } } namespace Gdk { namespace GL { void wrap_init() { // Register Error domains: // Map gtypes to gtkmm wrapper-creation functions: Glib::wrap_register(gdk_gl_config_get_type(), &Gdk::GL::Config_Class::wrap_new); Glib::wrap_register(gdk_gl_context_get_type(), &Gdk::GL::Context_Class::wrap_new); Glib::wrap_register(gdk_gl_pixmap_get_type(), &Gdk::GL::Pixmap_Class::wrap_new); Glib::wrap_register(gdk_gl_window_get_type(), &Gdk::GL::Window_Class::wrap_new); // Register the gtkmm gtypes: Gdk::GL::Config::get_type(); Gdk::GL::Context::get_type(); Gdk::GL::Pixmap::get_type(); Gdk::GL::Window::get_type(); } // wrap_init() } //GL } //Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/drawable.cc0000644000175000001440000001335010400725545016220 00000000000000// Generated by gtkmmproc -- DO NOT MODIFY! #include #include // -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include namespace Gdk { namespace GL { } // namespace GL } // namespace Gdk namespace { } // anonymous namespace namespace Glib { Glib::RefPtr wrap(GdkGLDrawable* object, bool take_copy) { return Glib::RefPtr( dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)) ); //We use dynamic_cast<> in case of multiple inheritance. } } // namespace Glib namespace Gdk { namespace GL { /* The *_Class implementation: */ const Glib::Interface_Class& Drawable_Class::init() { if(!gtype_) // create the GType if necessary { // Glib::Interface_Class has to know the interface init function // in order to add interfaces to implementing types. class_init_func_ = &Drawable_Class::iface_init_function; // We can not derive from another interface, and it is not necessary anyway. gtype_ = gdk_gl_drawable_get_type(); } return *this; } void Drawable_Class::iface_init_function(void* g_iface, void*) { BaseClassType *const klass = static_cast(g_iface); //This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect. //This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc g_assert(klass != 0); } Glib::ObjectBase* Drawable_Class::wrap_new(GObject* object) { return new Drawable((GdkGLDrawable*)(object)); } /* The implementation: */ Drawable::Drawable() : Glib::Interface(drawable_class_.init()) {} Drawable::Drawable(GdkGLDrawable* castitem) : Glib::Interface((GObject*)(castitem)) {} Drawable::~Drawable() {} // static void Drawable::add_interface(GType gtype_implementer) { drawable_class_.init().add_interface(gtype_implementer); } Drawable::CppClassType Drawable::drawable_class_; // initialize static member GType Drawable::get_type() { return drawable_class_.init().get_type(); } GType Drawable::get_base_type() { return gdk_gl_drawable_get_type(); } bool Drawable::make_current(const Glib::RefPtr& glcontext) { return gdk_gl_drawable_make_current(gobj(), const_cast(Glib::unwrap(glcontext))); } bool Drawable::is_double_buffered() const { return gdk_gl_drawable_is_double_buffered(const_cast(gobj())); } void Drawable::swap_buffers() { gdk_gl_drawable_swap_buffers(gobj()); } void Drawable::wait_gl() { gdk_gl_drawable_wait_gl(gobj()); } void Drawable::wait_gdk() { gdk_gl_drawable_wait_gdk(gobj()); } bool Drawable::gl_begin(const Glib::RefPtr& glcontext) { return gdk_gl_drawable_gl_begin(gobj(), const_cast(Glib::unwrap(glcontext))); } void Drawable::gl_end() { gdk_gl_drawable_gl_end(gobj()); } Glib::RefPtr Drawable::get_gl_config() { Glib::RefPtr retvalue = Glib::wrap((GdkGLConfig*)(gdk_gl_drawable_get_gl_config(gobj()))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Drawable::get_gl_config() const { Glib::RefPtr retvalue = Glib::wrap((GdkGLConfig*)(gdk_gl_drawable_get_gl_config(const_cast(gobj())))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } void Drawable::get_size(int& width, int& height) { gdk_gl_drawable_get_size(gobj(), &width, &height); } Glib::RefPtr Drawable::get_current() { Glib::RefPtr retvalue = Glib::wrap((GdkGLDrawable*)(gdk_gl_drawable_get_current())); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } void Drawable::draw_cube(bool solid, double size) { gdk_gl_draw_cube(static_cast(solid), size); } void Drawable::draw_sphere(bool solid, double radius, int slices, int stacks) { gdk_gl_draw_sphere(static_cast(solid), radius, slices, stacks); } void Drawable::draw_cone(bool solid, double base, double height, int slices, int stacks) { gdk_gl_draw_cone(static_cast(solid), base, height, slices, stacks); } void Drawable::draw_torus(bool solid, double inner_radius, double outer_radius, int nsides, int rings) { gdk_gl_draw_torus(static_cast(solid), inner_radius, outer_radius, nsides, rings); } void Drawable::draw_tetrahedron(bool solid) { gdk_gl_draw_tetrahedron(static_cast(solid)); } void Drawable::draw_octahedron(bool solid) { gdk_gl_draw_octahedron(static_cast(solid)); } void Drawable::draw_dodecahedron(bool solid) { gdk_gl_draw_dodecahedron(static_cast(solid)); } void Drawable::draw_icosahedron(bool solid) { gdk_gl_draw_icosahedron(static_cast(solid)); } void Drawable::draw_teapot(bool solid, double scale) { gdk_gl_draw_teapot(static_cast(solid), scale); } } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/init.cc0000644000175000001440000000341007627357444015416 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include "wrap_init.h" #include "init.h" namespace Gdk { namespace GL { static bool _init_check(int* argc, char*** argv) { static bool init_done = false; static bool result = false; if (!init_done) { result = gdk_gl_init_check(argc, argv); // Populate the map of GTypes to C++ wrap_new() functions. wrap_init(); init_done = true; } return result; } bool init_check(int& argc, char**& argv) { return _init_check(&argc, &argv); } bool init_check(int* argc, char*** argv) { return _init_check(argc, argv); } void init(int& argc, char**& argv) { if (!_init_check(&argc, &argv)) std::exit(1); } void init(int* argc, char*** argv) { if (!_init_check(argc, argv)) std::exit(1); } } // namespace GL } // namespace Gdk gtkglextmm-1.2.0/gdkglext/gdkmm/gl/version.h0000644000175000001440000000360610400725520015762 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GDKMM_GL_VERSION_H #define _GDKMM_GL_VERSION_H #include /* * Compile time version. */ #define GDKGLEXTMM_MAJOR_VERSION (1) #define GDKGLEXTMM_MINOR_VERSION (2) #define GDKGLEXTMM_MICRO_VERSION (0) #define GDKGLEXTMM_INTERFACE_AGE (0) #define GDKGLEXTMM_BINARY_AGE (0) /* * Check whether a gdkglextmm version equal to or greater than * major.minor.micro is present. */ #define GDKGLEXTMM_CHECK_VERSION(major, minor, micro) \ (GDKGLEXTMM_MAJOR_VERSION > (major) || \ (GDKGLEXTMM_MAJOR_VERSION == (major) && GDKGLEXTMM_MINOR_VERSION > (minor)) || \ (GDKGLEXTMM_MAJOR_VERSION == (major) && GDKGLEXTMM_MINOR_VERSION == (minor) && \ GDKGLEXTMM_MICRO_VERSION >= (micro))) /* * Library version. */ GDKMM_GL_VAR const int gdkglextmm_major_version; GDKMM_GL_VAR const int gdkglextmm_minor_version; GDKMM_GL_VAR const int gdkglextmm_micro_version; GDKMM_GL_VAR const int gdkglextmm_interface_age; GDKMM_GL_VAR const int gdkglextmm_binary_age; #endif // _GDKMM_GL_VERSION_H gtkglextmm-1.2.0/gdkglext/gdkmm/gl/version.cc0000644000175000001440000000223307627357444016142 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "version.h" const int gdkglextmm_major_version = GDKGLEXTMM_MAJOR_VERSION; const int gdkglextmm_minor_version = GDKGLEXTMM_MINOR_VERSION; const int gdkglextmm_micro_version = GDKGLEXTMM_MICRO_VERSION; const int gdkglextmm_interface_age = GDKGLEXTMM_INTERFACE_AGE; const int gdkglextmm_binary_age = GDKGLEXTMM_BINARY_AGE; gtkglextmm-1.2.0/gdkglext/gdkmm/gl/private/0000777000175000001440000000000010400731255015657 500000000000000gtkglextmm-1.2.0/gdkglext/gdkmm/gl/private/pixmap_p.h0000644000175000001440000000211310400725546017564 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_PIXMAP_P_H #define _GDKMM_GL_PIXMAP_P_H #include #include namespace Gdk { namespace GL { class Pixmap_Class : public Glib::Class { public: #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef Pixmap CppObjectType; typedef GdkGLPixmap BaseObjectType; typedef GdkGLPixmapClass BaseClassType; typedef Gdk::Drawable_Class CppClassParent; typedef GdkDrawableClass BaseClassParent; friend class Pixmap; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ const Glib::Class& init(); static void class_init_function(void* g_class, void* class_data); static Glib::ObjectBase* wrap_new(GObject*); protected: //Callbacks (default signal handlers): //These will call the *_impl member methods, which will then call the existing default signal callbacks, if any. //You could prevent the original default signal handlers being called by overriding the *_impl method. //Callbacks (virtual functions): }; } // namespace GL } // namespace Gdk #endif /* _GDKMM_GL_PIXMAP_P_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/private/drawable_p.h0000644000175000001440000000201610400725545020050 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_DRAWABLE_P_H #define _GDKMM_GL_DRAWABLE_P_H #include #include namespace Gdk { namespace GL { class Drawable_Class : public Glib::Interface_Class { public: typedef Drawable CppObjectType; typedef GdkGLDrawable BaseObjectType; typedef GdkGLDrawableClass BaseClassType; typedef Glib::Interface_Class CppClassParent; friend class Drawable; const Glib::Interface_Class& init(); static void iface_init_function(void* g_iface, void* iface_data); static Glib::ObjectBase* wrap_new(GObject*); protected: //Callbacks (default signal handlers): //These will call the *_impl member methods, which will then call the existing default signal callbacks, if any. //You could prevent the original default signal handlers being called by overriding the *_impl method. //Callbacks (virtual functions): }; } // namespace GL } // namespace Gdk #endif /* _GDKMM_GL_DRAWABLE_P_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/private/config_p.h0000644000175000001440000000210510400725543017531 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_CONFIG_P_H #define _GDKMM_GL_CONFIG_P_H #include #include namespace Gdk { namespace GL { class Config_Class : public Glib::Class { public: #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef Config CppObjectType; typedef GdkGLConfig BaseObjectType; typedef GdkGLConfigClass BaseClassType; typedef Glib::Object_Class CppClassParent; typedef GObjectClass BaseClassParent; friend class Config; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ const Glib::Class& init(); static void class_init_function(void* g_class, void* class_data); static Glib::ObjectBase* wrap_new(GObject*); protected: //Callbacks (default signal handlers): //These will call the *_impl member methods, which will then call the existing default signal callbacks, if any. //You could prevent the original default signal handlers being called by overriding the *_impl method. //Callbacks (virtual functions): }; } // namespace GL } // namespace Gdk #endif /* _GDKMM_GL_CONFIG_P_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/private/Makefile.am0000644000175000001440000000045507627357444017660 00000000000000 include $(srcdir)/../../../src/Makefile_list_of_hg.am_fragment files_built_h = $(files_hg:.hg=_p.h) private_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/gdkmm/gl/private private_include_HEADERS = $(files_built_h) maintainer-clean-local: (cd $(srcdir) && rm -f $(files_built_h)) gtkglextmm-1.2.0/gdkglext/gdkmm/gl/private/Makefile.in0000644000175000001440000003211210400725443017641 00000000000000# Makefile.in generated by automake 1.7.9 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@ # This file is include by other Makefile.am files, using the new automake include feature. # The include happens in Makefile.am, not Makefile.in or Makefile, # so it's like copy-and-pasting this into each of those Makefile.am files. 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ files_hg = \ tokens.hg \ config.hg \ context.hg \ drawable.hg \ pixmap.hg \ window.hg files_built_h = $(files_hg:.hg=_p.h) private_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/gdkmm/gl/private private_include_HEADERS = $(files_built_h) subdir = gdkglext/gdkmm/gl/private ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = DIST_SOURCES = HEADERS = $(private_include_HEADERS) DIST_COMMON = $(private_include_HEADERS) \ $(srcdir)/../../../src/Makefile_list_of_hg.am_fragment \ $(srcdir)/Makefile.in Makefile.am all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(srcdir)/../../../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gdkglext/gdkmm/gl/private/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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: private_includeHEADERS_INSTALL = $(INSTALL_HEADER) install-private_includeHEADERS: $(private_include_HEADERS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(private_includedir) @list='$(private_include_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(private_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(private_includedir)/$$f"; \ $(private_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(private_includedir)/$$f; \ done uninstall-private_includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(private_include_HEADERS)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f $(DESTDIR)$(private_includedir)/$$f"; \ rm -f $(DESTDIR)$(private_includedir)/$$f; \ 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: $(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)/./../../../src @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: $(mkinstalldirs) $(DESTDIR)$(private_includedir) 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-private_includeHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local 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-private_includeHEADERS .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-private_includeHEADERS install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic maintainer-clean-local mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-private_includeHEADERS maintainer-clean-local: (cd $(srcdir) && rm -f $(files_built_h)) # 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: gtkglextmm-1.2.0/gdkglext/gdkmm/gl/private/context_p.h0000644000175000001440000000211510400725544017752 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_CONTEXT_P_H #define _GDKMM_GL_CONTEXT_P_H #include #include namespace Gdk { namespace GL { class Context_Class : public Glib::Class { public: #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef Context CppObjectType; typedef GdkGLContext BaseObjectType; typedef GdkGLContextClass BaseClassType; typedef Glib::Object_Class CppClassParent; typedef GObjectClass BaseClassParent; friend class Context; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ const Glib::Class& init(); static void class_init_function(void* g_class, void* class_data); static Glib::ObjectBase* wrap_new(GObject*); protected: //Callbacks (default signal handlers): //These will call the *_impl member methods, which will then call the existing default signal callbacks, if any. //You could prevent the original default signal handlers being called by overriding the *_impl method. //Callbacks (virtual functions): }; } // namespace GL } // namespace Gdk #endif /* _GDKMM_GL_CONTEXT_P_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/private/tokens_p.h0000644000175000001440000000023010400725542017563 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_TOKENS_P_H #define _GDKMM_GL_TOKENS_P_H #endif /* _GDKMM_GL_TOKENS_P_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/gl/private/window_p.h0000644000175000001440000000211310400725547017576 00000000000000// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GDKMM_GL_WINDOW_P_H #define _GDKMM_GL_WINDOW_P_H #include #include namespace Gdk { namespace GL { class Window_Class : public Glib::Class { public: #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef Window CppObjectType; typedef GdkGLWindow BaseObjectType; typedef GdkGLWindowClass BaseClassType; typedef Gdk::Drawable_Class CppClassParent; typedef GdkDrawableClass BaseClassParent; friend class Window; #endif /* DOXYGEN_SHOULD_SKIP_THIS */ const Glib::Class& init(); static void class_init_function(void* g_class, void* class_data); static Glib::ObjectBase* wrap_new(GObject*); protected: //Callbacks (default signal handlers): //These will call the *_impl member methods, which will then call the existing default signal callbacks, if any. //You could prevent the original default signal handlers being called by overriding the *_impl method. //Callbacks (virtual functions): }; } // namespace GL } // namespace Gdk #endif /* _GDKMM_GL_WINDOW_P_H */ gtkglextmm-1.2.0/gdkglext/gdkmm/Makefile.am0000644000175000001440000000001507627357443015573 00000000000000SUBDIRS = gl gtkglextmm-1.2.0/gdkglext/gdkmm/Makefile.in0000644000175000001440000003571210400725442015575 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ SUBDIRS = gl subdir = gdkglext/gdkmm ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/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 = $(srcdir)/Makefile.in Makefile.am DIST_SUBDIRS = $(SUBDIRS) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gdkglext/gdkmm/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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) @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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 Makefile 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 Makefile 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: gtkglextmm-1.2.0/gdkglext/gdkglmm.h0000644000175000001440000000250707725052035014227 00000000000000// -*- C++ -*- /* gdkglextmm - C++ Wrapper for GdkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GDKGLMM_H #define _GDKGLMM_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #endif // _GDKGLMM_H gtkglextmm-1.2.0/gdkglext/Makefile.am0000644000175000001440000000201507647311625014470 00000000000000SUBDIRS = src gdkmm gdkglmm_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@ gdkglmm_include_HEADERS = gdkglmm.h BUILT_SOURCES = stamp-gdkglextmm-config.h DISTCLEANFILES = gdkglextmm-config.h stamp-gdkglextmm-config.h # # Rule to install gdkglextmm-config.h header file # configexecincludedir = $(libdir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/include #configexecinclude_DATA = gdkglextmm-config.h install-exec-local: gdkglextmm-config.h $(mkinstalldirs) $(DESTDIR)$(configexecincludedir) file=$(DESTDIR)$(configexecincludedir)/gdkglextmm-config.h; \ if test -r $$file && cmp -s gdkglextmm-config.h $$file; then :; \ else $(INSTALL_DATA) gdkglextmm-config.h $$file; fi gdkglextmm-config.h: stamp-gdkglextmm-config.h @if test -f gdkglextmm-config.h; then :; \ else rm -f stamp-gdkglextmm-config.h; $(MAKE) stamp-gdkglextmm-config.h; fi stamp-gdkglextmm-config.h: $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status gdkglext/gdkglextmm-config.h echo timestamp > stamp-gdkglextmm-config.h gtkglextmm-1.2.0/gdkglext/Makefile.in0000644000175000001440000004233710400725442014477 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ SUBDIRS = src gdkmm gdkglmm_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@ gdkglmm_include_HEADERS = gdkglmm.h BUILT_SOURCES = stamp-gdkglextmm-config.h DISTCLEANFILES = gdkglextmm-config.h stamp-gdkglextmm-config.h # # Rule to install gdkglextmm-config.h header file # configexecincludedir = $(libdir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/include subdir = gdkglext ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = DIST_SOURCES = HEADERS = $(gdkglmm_include_HEADERS) 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 = $(gdkglmm_include_HEADERS) $(srcdir)/Makefile.in \ Makefile.am DIST_SUBDIRS = $(SUBDIRS) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gdkglext/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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: gdkglmm_includeHEADERS_INSTALL = $(INSTALL_HEADER) install-gdkglmm_includeHEADERS: $(gdkglmm_include_HEADERS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(gdkglmm_includedir) @list='$(gdkglmm_include_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(gdkglmm_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(gdkglmm_includedir)/$$f"; \ $(gdkglmm_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(gdkglmm_includedir)/$$f; \ done uninstall-gdkglmm_includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(gdkglmm_include_HEADERS)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f $(DESTDIR)$(gdkglmm_includedir)/$$f"; \ rm -f $(DESTDIR)$(gdkglmm_includedir)/$$f; \ done # 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) @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: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(HEADERS) installdirs: installdirs-recursive installdirs-am: $(mkinstalldirs) $(DESTDIR)$(gdkglmm_includedir) install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(CONFIG_CLEAN_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: info: info-recursive info-am: install-data-am: install-gdkglmm_includeHEADERS install-exec-am: install-exec-local install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile 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-gdkglmm_includeHEADERS 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-local \ install-exec-recursive install-gdkglmm_includeHEADERS \ 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-gdkglmm_includeHEADERS \ uninstall-info-am uninstall-info-recursive uninstall-recursive #configexecinclude_DATA = gdkglextmm-config.h install-exec-local: gdkglextmm-config.h $(mkinstalldirs) $(DESTDIR)$(configexecincludedir) file=$(DESTDIR)$(configexecincludedir)/gdkglextmm-config.h; \ if test -r $$file && cmp -s gdkglextmm-config.h $$file; then :; \ else $(INSTALL_DATA) gdkglextmm-config.h $$file; fi gdkglextmm-config.h: stamp-gdkglextmm-config.h @if test -f gdkglextmm-config.h; then :; \ else rm -f stamp-gdkglextmm-config.h; $(MAKE) stamp-gdkglextmm-config.h; fi stamp-gdkglextmm-config.h: $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status gdkglext/gdkglextmm-config.h echo timestamp > stamp-gdkglextmm-config.h # 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: gtkglextmm-1.2.0/configure.in0000644000175000001440000003602010400725021013113 00000000000000# required autoconf version AC_PREREQ([2.54]) # # Making releases: # gtkglextmm_micro_version += 1; # gtkglextmm_interface_age += 1; # gtkglextmm_binary_age += 1; # if any functions have been added, set gtkglextmm_interface_age to 0. # if backwards compatibility has been broken, # set gtkglextmm_binary_age and gtkglextmm_interface_age to 0. # m4_define([gtkglextmm_major_version], [1]) m4_define([gtkglextmm_minor_version], [2]) m4_define([gtkglextmm_micro_version], [0]) m4_define([gtkglextmm_interface_age], [0]) m4_define([gtkglextmm_binary_age], [0]) m4_define([gtkglextmm_version], [gtkglextmm_major_version.gtkglextmm_minor_version.gtkglextmm_micro_version]) # API version m4_define([gtkglextmm_api_major_version], [1]) m4_define([gtkglextmm_api_minor_version], [2]) m4_define([gtkglextmm_api_version], [gtkglextmm_api_major_version.gtkglextmm_api_minor_version]) # libtool version related macros m4_define([gtkglextmm_lt_release], [gtkglextmm_major_version.gtkglextmm_minor_version]) m4_define([gtkglextmm_lt_current], [m4_eval(gtkglextmm_micro_version - gtkglextmm_interface_age)]) m4_define([gtkglextmm_lt_revision], [gtkglextmm_interface_age]) m4_define([gtkglextmm_lt_age], [m4_eval(gtkglextmm_binary_age - gtkglextmm_interface_age)]) m4_define([gtkglextmm_lt_current_minus_age], [m4_eval(gtkglextmm_lt_current - gtkglextmm_lt_age)]) # Versions of dependencies # GdkGLExt m4_define([gdkglext_pkg], [gdkglext-1.0]) m4_define([gdkglext_required_version], [1.0.0]) # GtkGLExt m4_define([gtkglext_pkg], [gtkglext-1.0]) m4_define([gtkglext_required_version], [1.0.0]) # libsigc++ m4_define([sigcxx_pkg], [sigc++-2.0]) m4_define([sigcxx_required_version], [2.0.0]) # glibmm m4_define([glibmm_pkg], [glibmm-2.4]) m4_define([glibmm_required_version], [2.4.0]) # pangomm m4_define([pangomm_pkg], [pangomm-1.4]) m4_define([pangomm_required_version], [2.4.0]) # gdkmm m4_define([gdkmm_pkg], [gdkmm-2.4]) m4_define([gdkmm_required_version], [2.4.0]) # gtkmm m4_define([gtkmm_pkg], [gtkmm-2.4]) m4_define([gtkmm_required_version], [2.4.0]) # Process this file with autoconf to produce a configure script. AC_INIT([gtkglextmm], [gtkglextmm_version], [gtkglext-develop@lists.sourceforge.net]) AC_CONFIG_SRCDIR([gdkglext/gdkglmm.h]) # Save this value here, since automake will set cflags later cflags_set=${CFLAGS+set} # Initialize automake stuff AM_INIT_AUTOMAKE([1.7 no-define dist-bzip2 dist-zip]) # Specify a configuration file AM_CONFIG_HEADER([config.h]) dnl Initialize maintainer mode AM_MAINTAINER_MODE AC_CANONICAL_HOST # Required GtkGLExt version GTKGLEXT_REQUIRED_VERSION=gtkglext_required_version AC_SUBST([GTKGLEXT_REQUIRED_VERSION]) # gtkglextmm version GTKGLEXTMM_MAJOR_VERSION=gtkglextmm_major_version GTKGLEXTMM_MINOR_VERSION=gtkglextmm_minor_version GTKGLEXTMM_MICRO_VERSION=gtkglextmm_micro_version GTKGLEXTMM_INTERFACE_AGE=gtkglextmm_interface_age GTKGLEXTMM_BINARY_AGE=gtkglextmm_binary_age GTKGLEXTMM_VERSION=gtkglextmm_version GTKGLEXTMM_API_MAJOR_VERSION=gtkglextmm_api_major_version GTKGLEXTMM_API_MINOR_VERSION=gtkglextmm_api_minor_version GTKGLEXTMM_API_VERSION=gtkglextmm_api_version AC_SUBST([GTKGLEXTMM_MAJOR_VERSION]) AC_SUBST([GTKGLEXTMM_MINOR_VERSION]) AC_SUBST([GTKGLEXTMM_MICRO_VERSION]) AC_SUBST([GTKGLEXTMM_INTERFACE_AGE]) AC_SUBST([GTKGLEXTMM_BINARY_AGE]) AC_SUBST([GTKGLEXTMM_VERSION]) AC_SUBST([GTKGLEXTMM_API_MAJOR_VERSION]) AC_SUBST([GTKGLEXTMM_API_MINOR_VERSION]) AC_SUBST([GTKGLEXTMM_API_VERSION]) # This is the X.Y used in -lgtkglextmm-FOO-X.Y #LIB_MJR=$GTKGLEXTMM_API_MAJOR_VERSION #LIB_MNR=$GTKGLEXTMM_API_MINOR_VERSION LIB_MJR=$GTKGLEXTMM_MAJOR_VERSION LIB_MNR=$GTKGLEXTMM_MINOR_VERSION AC_SUBST([LIB_MJR]) AC_SUBST([LIB_MNR]) # libtool versioning LT_RELEASE=gtkglextmm_lt_release LT_CURRENT=gtkglextmm_lt_current LT_REVISION=gtkglextmm_lt_revision LT_AGE=gtkglextmm_lt_age LT_CURRENT_MINUS_AGE=gtkglextmm_lt_current_minus_age AC_SUBST([LT_RELEASE]) AC_SUBST([LT_CURRENT]) AC_SUBST([LT_REVISION]) AC_SUBST([LT_AGE]) AC_SUBST([LT_CURRENT_MINUS_AGE]) dnl Initialize libtool AC_PROG_CC AC_PROG_CPP AC_PROG_CXX AC_PROG_CXXCPP AC_ISC_POSIX #AM_DISABLE_STATIC AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL platform_win32=no AC_MSG_CHECKING([for some Win32 platform]) case "$host_os" in *mingw*|*cygwin*) platform_win32=yes ;; *) ;; esac AC_MSG_RESULT([$platform_win32]) AM_CONDITIONAL([PLATFORM_WIN32], [test "x$platform_win32" = "xyes"]) os_win32=no LIBSTDCXX_LIBS= AC_MSG_CHECKING([for native Win32]) case "$host_os" in *mingw*) os_win32=yes LIBSTDCXX_LIBS=-lstdc++ ;; *) ;; esac AC_MSG_RESULT([$os_win32]) AM_CONDITIONAL([OS_WIN32], [test "x$os_win32" = "xyes"]) if test "x$platform_win32" = "xyes"; then gdktarget=win32 else gdktarget=x11 fi AC_ARG_WITH(gdktarget, [AC_HELP_STRING([--with-gdktarget=@<:@x11/win32@:>@], [select GDK target])], [gdktarget=$with_gdktarget]) AC_SUBST([gdktarget]) case $gdktarget in x11|win32) ;; *) AC_MSG_ERROR([Invalid target for GDK: use x11 or win32.]);; esac gdkglextmm_targetlib=libgdkglextmm-$gdktarget-$LIB_MJR.$LIB_MNR.la gtkglextmm_targetlib=libgtkglextmm-$gdktarget-$LIB_MJR.$LIB_MNR.la AC_SUBST([gdkglextmm_targetlib]) AC_SUBST([gtkglextmm_targetlib]) # Build time sanity check... AM_SANITY_CHECK # Checks for programs. AM_PROG_CC_STDC AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_LN_S AC_PROG_AWK AL_PROG_GNU_M4(AC_MSG_ERROR([dnl SUN m4 does not work for building gtkmm. Please install GNU m4.])) AL_PROG_GNU_MAKE(AC_MSG_ERROR([dnl SUN make does not work for building gtkmm. Please install GNU make.])) # Evaluate the --enable-warnings=level option. GTKMM_ARG_ENABLE_WARNINGS() # Ensure MSVC-compatible struct packing convention is used when # compiling for Win32 with gcc. # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while # gcc2 uses "-fnative-struct". if test "x$os_win32" = "xyes"; then if test "x$GCC" = "xyes"; then msnative_struct='' AC_MSG_CHECKING([how to get MSVC-compatible struct packing]) if test -z "$ac_cv_prog_CC"; then our_gcc="$CC" else our_gcc="$ac_cv_prog_CC" fi case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in 2.) if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then msnative_struct='-fnative-struct' fi ;; *) if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then msnative_struct='-mms-bitfields' fi ;; esac if test x"$msnative_struct" = x ; then AC_MSG_RESULT([no way]) AC_MSG_WARN([produced libraries might be incompatible with MSVC-compiled code]) else CXXFLAGS="$CXXFLAGS $msnative_struct" AC_MSG_RESULT([${msnative_struct}]) fi fi fi # --export-all-symbols option to build Win32 DLL using MinGW ld. WIN32_LD_EXPORT_ALL_SYMBOLS='' if test "x$os_win32" = "xyes"; then AC_MSG_CHECKING([whether ld accepts --export-all-symbols]) if $LD --help 2>&1 | egrep 'export-all-symbols' > /dev/null; then WIN32_LD_EXPORT_ALL_SYMBOLS='-Wl,--export-all-symbols' AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi fi AC_SUBST([WIN32_LD_EXPORT_ALL_SYMBOLS]) # Honor aclocal flags ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS -I $srcdir/m4macros" ## Initial sanity check, done here so that users get told they ## have the wrong dependencies as early in the process as possible. ## Later on we actually use the cflags/libs from separate pkg-config ## calls. Oh, also the later pkg-config calls don't include ## the version requirements since those make the module lists ## annoying to construct PKG_CHECK_MODULES([BASE_DEPENDENCIES], [dnl gtkglext_pkg >= gtkglext_required_version dnl gdkglext_pkg >= gdkglext_required_version dnl gtkmm_pkg >= gtkmm_required_version dnl gdkmm_pkg >= gdkmm_required_version dnl pangomm_pkg >= pangomm_required_version dnl ]) # Checks for GtkGLExt AM_PATH_GTKGLEXT_1_0([gtkglext_required_version], , [AC_MSG_ERROR([GtkGLExt not found])]) save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $GTKGLEXT_CFLAGS" save_LIBS="$LIBS" LIBS="$LIBS $GTKGLEXT_LIBS" AC_GTKGLEXT_SUPPORTS_MULTIHEAD([GTKGLEXT_SUPPORTS_MULTIHEAD=yes], [GTKGLEXT_SUPPORTS_MULTIHEAD=no]) CPPFLAGS="$save_CPPFLAGS" LIBS="$save_LIBS" # gmmproc GLIBMM_CHECK_PERL([5.6.0]) GLIBMM_PREFIX=`$PKG_CONFIG --variable=prefix glibmm_pkg` GMMPROC_DIR=$GLIBMM_PREFIX/lib/glibmm_pkg/proc AC_SUBST(GMMPROC_DIR) GMMPROC=$GMMPROC_DIR/gmmproc AC_SUBST(GMMPROC) # Checks for libraries. # Checks for header files. AC_HEADER_STDC # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST # Checks for library functions. ################################################## # Checks for gdkmm multihead support ################################################## GDKGLEXTMM_MULTIHEAD_SUPPORT=no save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $BASE_DEPENDENCIES_CFLAGS" save_LIBS="$LIBS" LIBS="$LIBS $BASE_DEPENDENCIES_LIBS" if test "x$GTKGLEXT_SUPPORTS_MULTIHEAD" = "xyes"; then AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CHECK_HEADERS([gdkmm/display.h gdkmm/screen.h], [GDKGLEXTMM_MULTIHEAD_SUPPORT=yes], [GDKGLEXTMM_MULTIHEAD_SUPPORT=no]) if test "x$GDKGLEXTMM_MULTIHEAD_SUPPORT" = "xyes"; then AC_MSG_CHECKING([for Gdk::Display::get_default in gdkmm library]) AC_TRY_LINK([#include ], [Gdk::Display::get_default();], [GDKGLEXTMM_MULTIHEAD_SUPPORT=yes], [GDKGLEXTMM_MULTIHEAD_SUPPORT=no]) AC_MSG_RESULT([$GDKGLEXTMM_MULTIHEAD_SUPPORT]) fi AC_LANG_RESTORE if test "x$GDKGLEXTMM_MULTIHEAD_SUPPORT" = "xyes"; then AC_MSG_NOTICE([gdkmm supports multihead]) else AC_MSG_NOTICE([gdkmm doesn't support multihead]) fi fi CPPFLAGS="$save_CPPFLAGS" LIBS="$save_LIBS" AC_SUBST([GDKGLEXTMM_MULTIHEAD_SUPPORT]) AM_CONDITIONAL([MULTIHEAD_SUPPORT], [test "x$GDKGLEXTMM_MULTIHEAD_SUPPORT" = "xyes"]) ################################################## # CFLAGS and LIBS ################################################## GDKGLEXTMM_PACKAGES="gdkglext_pkg gdkmm_pkg pangomm_pkg" GDKGLEXTMM_EXTRA_LIBS="" GDKGLEXTMM_EXTRA_CFLAGS="" GDKGLEXTMM_DEP_LIBS="`$PKG_CONFIG --libs $GDKGLEXTMM_PACKAGES` $GDKGLEXTMM_EXTRA_LIBS $LIBSTDCXX_LIBS" GDKGLEXTMM_DEP_CFLAGS="`$PKG_CONFIG --cflags $GDKGLEXTMM_PACKAGES` $GDKGLEXTMM_EXTRA_CFLAGS $MULTIHEAD_SAFE" AC_SUBST([GDKGLEXTMM_PACKAGES]) AC_SUBST([GDKGLEXTMM_EXTRA_LIBS]) AC_SUBST([GDKGLEXTMM_EXTRA_CFLAGS]) AC_SUBST([GDKGLEXTMM_DEP_LIBS]) AC_SUBST([GDKGLEXTMM_DEP_CFLAGS]) GTKGLEXTMM_PACKAGES="gtkglext_pkg gtkmm_pkg" GTKGLEXTMM_EXTRA_LIBS="" GTKGLEXTMM_EXTRA_CFLAGS="" GTKGLEXTMM_DEP_LIBS="`$PKG_CONFIG --libs $GDKGLEXTMM_PACKAGES $GTKGLEXTMM_PACKAGES` $GTKGLEXTMM_EXTRA_LIBS $GDKGLEXTMM_EXTRA_LIBS $LIBSTDCXX_LIBS" GTKGLEXTMM_DEP_CFLAGS="`$PKG_CONFIG --cflags $GDKGLEXTMM_PACKAGES $GTKGLEXTMM_PACKAGES` $GDKGLEXTMM_EXTRA_CFLAGS $GTKGLEXTMM_EXTRA_CFLAGS $MULTIHEAD_SAFE" AC_SUBST([GTKGLEXTMM_PACKAGES]) AC_SUBST([GTKGLEXTMM_EXTRA_LIBS]) AC_SUBST([GTKGLEXTMM_EXTRA_CFLAGS]) AC_SUBST([GTKGLEXTMM_DEP_LIBS]) AC_SUBST([GTKGLEXTMM_DEP_CFLAGS]) ################################################## # Checks for doxygen ################################################## AC_ARG_WITH(html-dir, [AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs [DATADIR/doc]])]) if test "x$with_html_dir" = "x" ; then # doxygen's default docdir HTML_DIR='${datadir}/doc' else HTML_DIR=$with_html_dir fi AC_SUBST([HTML_DIR]) DOXYGEN_DOC=false PERL_PATH="" AC_PATH_PROGS([PERL_PATH], [perl perl5]) AC_SUBST([PERL_PATH]) DOT_PATH="" HAVE_DOT=NO AC_PATH_PROGS([DOT_PATH], [dot]) if test "x$DOT_PATH" != "x"; then HAVE_DOT=YES fi AC_SUBST([HAVE_DOT]) AC_SUBST([DOT_PATH]) DOXYGEN_PATH="" AC_PATH_PROGS([DOXYGEN_PATH], [doxygen]) AC_SUBST([DOXYGEN_PATH]) GLIBMM_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir glibmm_pkg`/glibmm_pkg PANGOMM_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir pangomm_pkg`/pangomm_pkg GDKMM_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir gdkmm_pkg`/gdkmm_pkg GTKMM_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir gtkmm_pkg`/gtkmm_pkg AC_SUBST([GLIBMM_INCLUDE_PATH]) AC_SUBST([PANGOMM_INCLUDE_PATH]) AC_SUBST([GDKMM_INCLUDE_PATH]) AC_SUBST([GTKMM_INCLUDE_PATH]) if test "x$PERL_PATH" != "x" -a "x$DOXYGEN_PATH" != "x"; then DOXYGEN_DOC=true fi AC_ARG_ENABLE(doxygen-doc, [AC_HELP_STRING([--enable-doxygen-doc], [use doxygen to build documentation [default=no]])], , [enable_doxygen_doc=no]) if test "x$enable_doxygen_doc" = "xyes"; then if test "x$DOXYGEN_DOC" != "xtrue"; then enable_doxygen_doc=no fi fi AM_CONDITIONAL([ENABLE_DOXYGEN_DOC], [test "x$enable_doxygen_doc" = "xyes"]) ################################################## # Output configuration header ################################################## dnl this section will only be run if config.status is invoked with no dnl arguments, or with "gdkglext/gdkglextmm-config.h" as an argument. AC_CONFIG_COMMANDS([gdkglext/gdkglextmm-config.h], [ outfile=gdkglextmm-config.h-tmp cat > $outfile <<\_______EOF /* gdkglextmm-config.h * * This is a generated file. Please modify `configure.in' */ #ifndef GDKGLEXTMM_CONFIG_H #define GDKGLEXTMM_CONFIG_H #include _______EOF cat >>$outfile <<_______EOF $gdkglextmm_windowing $gdkglextmm_multihead_support _______EOF cat >>$outfile <<_______EOF #if !defined(GDKGLEXT_MULTIHEAD_SUPPORT) && defined(GDKGLEXTMM_MULTIHEAD_SUPPORT) #error "Installed GdkGLExt library doesn't have multihead support." #endif _______EOF cat >>$outfile <<_______EOF #endif /* GDKGLEXTMM_CONFIG_H */ _______EOF if cmp -s $outfile gdkglext/gdkglextmm-config.h; then AC_MSG_NOTICE([gdkglext/gdkglextmm-config.h is unchanged]) rm -f $outfile else mv $outfile gdkglext/gdkglextmm-config.h fi ],[ if test "x$gdktarget" = "xx11" ; then gdkglextmm_windowing=' #define GDKGLEXTMM_WINDOWING_X11' elif test "x$gdktarget" = "xwin32" ; then gdkglextmm_windowing=' #define GDKGLEXTMM_WINDOWING_WIN32' fi if test "x$GDKGLEXTMM_MULTIHEAD_SUPPORT" = "xyes"; then gdkglextmm_multihead_support=' #define GDKGLEXTMM_MULTIHEAD_SUPPORT' fi ]) ################################################## # Config files ################################################## AC_CONFIG_FILES([ gdkglextmm.pc gtkglextmm.pc gdkglextmm-uninstalled.pc gtkglextmm-uninstalled.pc gtkglextmm.spec gtkglextmm.nsi Makefile tools/Makefile tools/extra_defs_gen/Makefile tools/m4/Makefile gdkglext/Makefile gdkglext/src/Makefile gdkglext/gdkmm/Makefile gdkglext/gdkmm/gl/Makefile gdkglext/gdkmm/gl/version.h gdkglext/gdkmm/gl/private/Makefile gtkglext/Makefile gtkglext/src/Makefile gtkglext/gtkmm/Makefile gtkglext/gtkmm/gl/Makefile gtkglext/gtkmm/gl/version.h gtkglext/gtkmm/gl/private/Makefile examples/Makefile docs/Makefile docs/reference/Makefile docs/reference/Doxyfile m4macros/Makefile ]) AC_OUTPUT ################################################## # Print configuration ################################################## echo " configuration: multihead support: $GDKGLEXTMM_MULTIHEAD_SUPPORT " gtkglextmm-1.2.0/config.guess0000755000175000001440000012650510375020731013141 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. timestamp='2005-12-23' # 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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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, 2002, 2003, 2004, 2005 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { 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 ; set_cc_for_build= ;' # 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 if [ "${UNAME_SYSTEM}" = "Linux" ] ; then eval $set_cc_for_build cat << EOF > $dummy.c #include #ifdef __UCLIBC__ # ifdef __UCLIBC_CONFIG_VERSION__ LIBC=uclibc __UCLIBC_CONFIG_VERSION__ # else LIBC=uclibc # endif #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'` fi # 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 ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerppc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # 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 Pn.n version is a patched version. # 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/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; 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 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; 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 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; 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 ;; 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 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; 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 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # 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 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; 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 && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; 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 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????: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 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; 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 ;; *: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 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi 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 ;; *: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 ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 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 eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 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 && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; 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 ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; x86:Interix*:[345]*) echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 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 ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo cris-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo frv-unknown-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; 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 | sed -n '/^CPU/{s: ::g;p;}'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; 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 | sed -n '/^CPU/{s: ::g;p;}'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; 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="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; 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-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-${LIBC} exit ;; 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-${LIBC}" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld" exit ;; esac # This should get integrated into the C code below, but now we hack if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi # 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 #if defined(__INTEL_COMPILER) || defined(__PGI) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; 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 ;; 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 ;; 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 ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; 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 ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. 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 ;; 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 ;; 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 ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; 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 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*: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 | SHG2:*:4.0:3.0 | S7501*:*: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; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *: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 ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; 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 ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *: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 ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *: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 ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; 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\n"); 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 && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # 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 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; 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: gtkglextmm-1.2.0/install-sh0000755000175000001440000001572210200267335012623 00000000000000#!/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 } gtkglextmm-1.2.0/config.sub0000755000175000001440000007754610375020731012616 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. timestamp='2005-12-23' # 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., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, 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, 2002, 2003, 2004, 2005 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 ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # 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 ;; * ) 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* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-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 | -knuth | -cray) 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 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -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/'` ;; -sco5v6*) # 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] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx | dvp \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m32c) 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) ;; ms1) basic_machine=mt-unknown ;; nios2 | nios2-* | nios2 | nios2-*) basic_machine=nios2-altera os=-none ;; # 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-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | 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-* | iq2000-* \ | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; m32c-*) ;; # 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 ;; abacus) basic_machine=abacus-unknown ;; 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 ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; 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 ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16c) basic_machine=cr16c-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; 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 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; 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 ;; mipsEE* | ee | ps2) basic_machine=mips64r5900el-scei case $os in -linux*) ;; *) os=-elf ;; esac ;; iop) basic_machine=mipsel-scei os=-irx ;; dvp) basic_machine=dvp-scei os=-elf ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; 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 ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; 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 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-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-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`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 ;; rdos) basic_machine=i386-pc os=-rdos ;; 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 ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; 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 ;; 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 ;; tpf) basic_machine=s390x-ibm os=-tpf ;; 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 ;; xbox) basic_machine=i686-pc os=-mingw32 ;; 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 ;; mmix) basic_machine=mmix-knuth ;; 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 ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | 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* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ | -ekkobsd* | -kfreebsd* | -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* | -linux-newlib* | -linux-uclibc* \ | -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* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -irx*) # 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* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -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 ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -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 ;; -tpf*) os=-tpf ;; -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 ;; -zvmoe) os=-zvmoe ;; -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 ;; c4x-* | tic4x-*) os=-coff ;; # 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 ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-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 ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -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 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gtkglextmm-1.2.0/gtkglextmm.nsi0000644000175000001440000003301410400725517013512 00000000000000; ; NSIS script for gtkglextmm Win32 binary installer. ; ; written by Naofumi Yasufuku ; ; about NSIS, see http://nsis.sourceforge.net/ ; !define GTKGLEXTMM_VERSION 1.2.0 !define GTKGLEXTMM_API_VERSION 1.2 !define GTKGLEXTMM_PUBLISHER "GtkGLExt" !define GTKGLEXTMM_URL_INFO_ABOUT "http://gtkglext.sourceforge.net/" !define GTKGLEXTMM_URL_UPDATE_INFO "http://sourceforge.net/projects/gtkglext/" !define GTKGLEXTMM_HELP_LINK "mailto:gtkglext-users@lists.sourceforge.net" ;-------------------------------- ;Configuration OutFile gtkglextmm-win32-${GTKGLEXTMM_VERSION}.exe SetCompressor lzma InstType "Full (Runtime w/ Development and Examples)" InstType "Runtime (w/o Development and Examples)" ShowInstDetails show ShowUninstDetails show SetDateSave on ; the default installation drive is changed by .onInit InstallDir C:\GtkGLExt\${GTKGLEXTMM_API_VERSION} InstallDirRegKey HKLM SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION} "Path" ;-------------------------------- ;Header Files !include "MUI.nsh" ;-------------------------------- ;Configuration ; Names Name "gtkglextmm" Caption "gtkglextmm ${GTKGLEXTMM_VERSION} Setup" ;-------------------------------- ;Variables Var MUI_TEMP Var STARTMENU_FOLDER ;-------------------------------- ;Interface Settings !define MUI_ABORTWARNING !define MUI_COMPONENTSPAGE_SMALLDESC !define MUI_FINISHPAGE_NOAUTOCLOSE !define MUI_UNFINISHPAGE_NOAUTOCLOSE ;-------------------------------- ;Pages ;Welcome Page !define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of gtkglextmm, C++ Wrapper for GtkGLExt.\r\n\r\n\r\n$_CLICK" !insertmacro MUI_PAGE_WELCOME ;License Page !insertmacro MUI_PAGE_LICENSE "COPYING.LIB" ;Components Page !insertmacro MUI_PAGE_COMPONENTS ;Directory Page !insertmacro MUI_PAGE_DIRECTORY ;Start Menu Folder Page !define MUI_STARTMENUPAGE_DEFAULTFOLDER "gtkglextmm ${GTKGLEXTMM_API_VERSION}" !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM" !define MUI_STARTMENUPAGE_REGISTRY_KEY "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}" !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "StartMenuFolder" !insertmacro MUI_PAGE_STARTMENU StartMenu $STARTMENU_FOLDER ;Installation Page !insertmacro MUI_PAGE_INSTFILES ;Finish Page !define MUI_FINISHPAGE_NOREBOOTSUPPORT !insertmacro MUI_PAGE_FINISH ;Uninstall Welcome Page !insertmacro MUI_UNPAGE_WELCOME ;Uninstall Confirm Page !insertmacro MUI_UNPAGE_CONFIRM ;Uninstallation Page !insertmacro MUI_UNPAGE_INSTFILES ;Uninstall Finish Page !insertmacro MUI_UNPAGE_FINISH ;-------------------------------- ;Languages !insertmacro MUI_LANGUAGE "English" ;-------------------------------- ;Reserve Files ;!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS ;-------------------------------- ;Installer Sections Section "gtkglextmm Runtime" SecRuntime SectionIn 1 2 RO SetOutPath $INSTDIR\bin File bin\*.dll ; Registry WriteRegStr HKLM "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}\Runtime" "Path" "$INSTDIR" WriteRegStr HKLM "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}\Runtime" "Version" "${GTKGLEXTMM_VERSION}" SectionEnd Section "gtkglextmm Development" SecDevelopment SectionIn 1 SetOutPath $INSTDIR\include\gtkglextmm-${GTKGLEXTMM_API_VERSION} File include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\*.h SetOutPath $INSTDIR\include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gdkmm\gl File include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gdkmm\gl\*.h SetOutPath $INSTDIR\include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gdkmm\gl\private File include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gdkmm\gl\private\*.h SetOutPath $INSTDIR\include\gtkglextmm-${GTKGLEXTMM_API_VERSION} File include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\*.h SetOutPath $INSTDIR\include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gtkmm\gl File include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gtkmm\gl\*.h SetOutPath $INSTDIR\lib\gtkglextmm-${GTKGLEXTMM_API_VERSION}\include File lib\gtkglextmm-${GTKGLEXTMM_API_VERSION}\include\gdkglextmm-config.h SetOutPath $INSTDIR\lib\gtkglextmm-${GTKGLEXTMM_API_VERSION}\proc\m4 File lib\gtkglextmm-${GTKGLEXTMM_API_VERSION}\proc\m4\*.m4 SetOutPath $INSTDIR\lib File lib\*.a SetOutPath $INSTDIR\lib\pkgconfig File lib\pkgconfig\*.pc SetOutPath $INSTDIR\share\aclocal File share\aclocal\*.m4 SetOutPath $INSTDIR\share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html File share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\*.html File share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\*.css File share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\*.png File share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\*.dot ; Update .pc files ; short name will cause a problem with current libtool :-< ;GetFullPathName /SHORT $0 $INSTDIR StrCpy $0 $INSTDIR Push $0 Call ChangeDirSeparator Pop $0 DetailPrint "Updating $INSTDIR\lib\pkgconfig\gdkglextmm-${GTKGLEXTMM_API_VERSION}.pc" Push $INSTDIR\lib\pkgconfig\gdkglextmm-${GTKGLEXTMM_API_VERSION}.pc Push $0 Call UpdatePCFile DetailPrint "Done" DetailPrint "Updating $INSTDIR\lib\pkgconfig\gdkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc" Push $INSTDIR\lib\pkgconfig\gdkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc Push $0 Call UpdatePCFile DetailPrint "Done" DetailPrint "Updating $INSTDIR\lib\pkgconfig\gtkglextmm-${GTKGLEXTMM_API_VERSION}.pc" Push $INSTDIR\lib\pkgconfig\gtkglextmm-${GTKGLEXTMM_API_VERSION}.pc Push $0 Call UpdatePCFile DetailPrint "Done" DetailPrint "Updating $INSTDIR\lib\pkgconfig\gtkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc" Push $INSTDIR\lib\pkgconfig\gtkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc Push $0 Call UpdatePCFile DetailPrint "Done" ; Registry WriteRegStr HKLM "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}\Development" "Path" "$INSTDIR" WriteRegStr HKLM "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}\Development" "Version" "${GTKGLEXTMM_VERSION}" SectionEnd Section "gtkglextmm Examples" SecExamples SectionIn 1 SetOutPath $INSTDIR\gtkglextmm-examples File gtkglextmm-examples\Makefile.mingw File gtkglextmm-examples\*.h File gtkglextmm-examples\*.cc File gtkglextmm-examples\*.c File gtkglextmm-examples\*.exe SectionEnd Section "Start Menu" SecStartMenu SectionIn 1 2 SetShellVarContext all !insertmacro MUI_STARTMENU_WRITE_BEGIN StartMenu CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER" WriteINIStr "$SMPROGRAMS\$STARTMENU_FOLDER\GtkGLExt Website.url" "InternetShortcut" "URL" "http://gtkglext.sourceforge.net/" IfFileExists "$INSTDIR\share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\index.html" "" +2 CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\gtkglextmm Documentation.lnk" "$INSTDIR\share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\index.html" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall gtkglextmm.lnk" "$INSTDIR\uninst-gtkglextmm.exe" !insertmacro MUI_STARTMENU_WRITE_END SectionEnd Section -post ; Write $INSTDIR\bin\gtkglextmm-env.sh DetailPrint "Generating $INSTDIR\bin\gtkglextmm-env.sh" Push $INSTDIR\bin\gtkglextmm-env.sh Call WriteEnvSh DetailPrint "Done" ; Registry WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "DisplayName" "gtkglextmm ${GTKGLEXTMM_VERSION}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "DisplayVersion" "${GTKGLEXTMM_VERSION}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "Publisher" "${GTKGLEXTMM_PUBLISHER}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "URLInfoAbout" "${GTKGLEXTMM_URL_INFO_ABOUT}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "URLUpdateInfo" "${GTKGLEXTMM_URL_UPDATE_INFO}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "HelpLink" "${GTKGLEXTMM_HELP_LINK}" WriteRegExpandStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "UninstallString" "$INSTDIR\uninst-gtkglextmm.exe" ;; Uninstaller Delete $INSTDIR\uninst-gtkglextmm.exe WriteUninstaller $INSTDIR\uninst-gtkglextmm.exe SectionEnd ;-------------------------------- ;Descriptions !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SecRuntime} "gtkglextmm runtime libraries" !insertmacro MUI_DESCRIPTION_TEXT ${SecDevelopment} "gtkglextmm development headers, libraries, and documentations" !insertmacro MUI_DESCRIPTION_TEXT ${SecExamples} "gtkglextmm example programs" !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenu} "Adds icons to your start menu for easy access" !insertmacro MUI_FUNCTION_DESCRIPTION_END ;-------------------------------- ;Installer Functions Function .onInit ; Change the default installation drive StrLen $R0 $INSTDIR StrCpy $R1 $INSTDIR $R0 1 StrCpy $INSTDIR $PROGRAMFILES 1 StrCpy $INSTDIR "$INSTDIR$R1" FunctionEnd ; ChangeDirSeparator ; input, top of stack (e.g. C:\Program Files\...) ; output, top of stack (replaces, with e.g. C:/Program Files/...) ; modifies no other variables. Function ChangeDirSeparator Exch $R0 Push $R1 Push $R2 Push $R3 StrCpy $R1 $R0 StrCpy $R0 "" StrCpy $R2 0 goto loop replace: StrCpy $R0 "$R0/" loop: StrCpy $R3 $R1 1 $R2 IntOp $R2 $R2 + 1 StrCmp $R3 "\" replace StrCmp $R3 "" done StrCpy $R0 "$R0$R3" goto loop done: Pop $R3 Pop $R2 Pop $R1 Exch $R0 FunctionEnd ; UpdatePCFile ; update pkg-config .pc file Function UpdatePCFile Pop $R0 ; prefix Pop $R1 ; target .pc file Push $R7 Push $R8 Push $R9 Rename $R1 $R1.orig FileOpen $R7 $R1.orig r FileOpen $R8 $R1 w FileRead $R7 $R9 ; skip original prefix FileWrite $R8 "prefix=$R0$\n" loop: FileRead $R7 $R9 StrCmp $R9 "" done FileWrite $R8 $R9 goto loop done: FileClose $R7 FileClose $R8 Delete $R1.orig Pop $R9 Pop $R8 Pop $R7 FunctionEnd ; WriteEnvSh Function WriteEnvSh Pop $R0 ; Output file Push $R8 Push $R9 GetFullPathName /SHORT $R8 $INSTDIR Push $R8 Call ChangeDirSeparator Pop $R8 FileOpen $R9 $R0 w FileWrite $R9 "#!/bin/sh$\n" FileWrite $R9 "$\n" FileWrite $R9 "export GTKGLEXTMM_PREFIX=$R8$\n" FileWrite $R9 "$\n" FileWrite $R9 "echo $\"Setting environment variables for gtkglextmm.$\"$\n" FileWrite $R9 "echo $\"$\"$\n" FileWrite $R9 "$\n" FileWrite $R9 "case $$TERM in$\n" FileWrite $R9 "cygwin)$\n" FileWrite $R9 " GTKGLEXTMM_PATH=`cygpath -u $${GTKGLEXTMM_PREFIX}/bin`$\n" FileWrite $R9 " ;;$\n" FileWrite $R9 "msys)$\n" FileWrite $R9 " GTKGLEXTMM_PATH=/$${GTKGLEXTMM_PREFIX%:*}$${GTKGLEXTMM_PREFIX#*:}/bin$\n" FileWrite $R9 " ;;$\n" FileWrite $R9 "*)$\n" FileWrite $R9 " echo $\"Unknown TERM$\"$\n" FileWrite $R9 " ;;$\n" FileWrite $R9 "esac$\n" FileWrite $R9 "$\n" FileWrite $R9 "echo $\"export PATH=\$\"$${GTKGLEXTMM_PATH}:\$${PATH}\$\"$\"$\n" FileWrite $R9 "export PATH=$\"$${GTKGLEXTMM_PATH}:$${PATH}$\"$\n" FileWrite $R9 "$\n" FileWrite $R9 "echo $\"export PKG_CONFIG_PATH=\$\"$${GTKGLEXTMM_PREFIX}/lib/pkgconfig;\$${PKG_CONFIG_PATH}\$\"$\"$\n" FileWrite $R9 "export PKG_CONFIG_PATH=$\"$${GTKGLEXTMM_PREFIX}/lib/pkgconfig;$${PKG_CONFIG_PATH}$\"$\n" FileWrite $R9 "$\n" FileWrite $R9 "echo $\"$\"$\n" FileClose $R9 Pop $R9 Pop $R8 FunctionEnd ;-------------------------------- ;Uninstaller Section Section Uninstall ;Remove shortcut SetShellVarContext all !insertmacro MUI_STARTMENU_GETFOLDER StartMenu $MUI_TEMP StrCmp $MUI_TEMP "" noshortcuts Delete "$SMPROGRAMS\$MUI_TEMP\GtkGLExt Website.url" Delete "$SMPROGRAMS\$MUI_TEMP\gtkglextmm Documentation.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall gtkglextmm.lnk" RMDir "$SMPROGRAMS\$MUI_TEMP" ;Only if empty, so it won't delete other shortcuts noshortcuts: DeleteRegKey HKLM "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}" DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" Delete $INSTDIR\uninst-gtkglextmm.exe ; bin Delete $INSTDIR\bin\gtkglextmm-env.sh Delete $INSTDIR\bin\libgdkglextmm-win32-${GTKGLEXTMM_API_VERSION}-*.dll Delete $INSTDIR\bin\libgtkglextmm-win32-${GTKGLEXTMM_API_VERSION}-*.dll RMDir $INSTDIR\bin ; include RMDir /r $INSTDIR\include\gtkglextmm-1.0 RMDir $INSTDIR\include ; lib RMDir /r $INSTDIR\lib\gtkglextmm-1.0 Delete $INSTDIR\lib\libgdkglextmm-win32-${GTKGLEXTMM_API_VERSION}.dll.a Delete $INSTDIR\lib\libgtkglextmm-win32-${GTKGLEXTMM_API_VERSION}.dll.a Delete $INSTDIR\lib\pkgconfig\gdkglextmm-${GTKGLEXTMM_API_VERSION}.pc Delete $INSTDIR\lib\pkgconfig\gdkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc Delete $INSTDIR\lib\pkgconfig\gtkglextmm-${GTKGLEXTMM_API_VERSION}.pc Delete $INSTDIR\lib\pkgconfig\gtkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc RMDir $INSTDIR\lib\pkgconfig RMDir $INSTDIR\lib ; share Delete $INSTDIR\share\aclocal\gtkglextmm-${GTKGLEXTMM_API_VERSION}.m4 RMDir $INSTDIR\share\aclocal RMDir /r $INSTDIR\share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION} RMDir $INSTDIR\share\doc RMDir $INSTDIR\share ; gtkglextmm-examples RMDir /r $INSTDIR\gtkglextmm-examples ; $INSTDIR RMDir $INSTDIR SectionEnd gtkglextmm-1.2.0/missing0000755000175000001440000002403210200267335012210 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 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 \`$1' 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 prerequisites 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 gtkglextmm-1.2.0/gtkglextmm.nsi.in0000644000175000001440000003306010006423301014104 00000000000000; ; NSIS script for gtkglextmm Win32 binary installer. ; ; written by Naofumi Yasufuku ; ; about NSIS, see http://nsis.sourceforge.net/ ; !define GTKGLEXTMM_VERSION @GTKGLEXTMM_VERSION@ !define GTKGLEXTMM_API_VERSION @GTKGLEXTMM_API_VERSION@ !define GTKGLEXTMM_PUBLISHER "GtkGLExt" !define GTKGLEXTMM_URL_INFO_ABOUT "http://gtkglext.sourceforge.net/" !define GTKGLEXTMM_URL_UPDATE_INFO "http://sourceforge.net/projects/gtkglext/" !define GTKGLEXTMM_HELP_LINK "mailto:gtkglext-users@lists.sourceforge.net" ;-------------------------------- ;Configuration OutFile gtkglextmm-win32-${GTKGLEXTMM_VERSION}.exe SetCompressor lzma InstType "Full (Runtime w/ Development and Examples)" InstType "Runtime (w/o Development and Examples)" ShowInstDetails show ShowUninstDetails show SetDateSave on ; the default installation drive is changed by .onInit InstallDir C:\GtkGLExt\${GTKGLEXTMM_API_VERSION} InstallDirRegKey HKLM SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION} "Path" ;-------------------------------- ;Header Files !include "MUI.nsh" ;-------------------------------- ;Configuration ; Names Name "gtkglextmm" Caption "gtkglextmm ${GTKGLEXTMM_VERSION} Setup" ;-------------------------------- ;Variables Var MUI_TEMP Var STARTMENU_FOLDER ;-------------------------------- ;Interface Settings !define MUI_ABORTWARNING !define MUI_COMPONENTSPAGE_SMALLDESC !define MUI_FINISHPAGE_NOAUTOCLOSE !define MUI_UNFINISHPAGE_NOAUTOCLOSE ;-------------------------------- ;Pages ;Welcome Page !define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of gtkglextmm, C++ Wrapper for GtkGLExt.\r\n\r\n\r\n$_CLICK" !insertmacro MUI_PAGE_WELCOME ;License Page !insertmacro MUI_PAGE_LICENSE "COPYING.LIB" ;Components Page !insertmacro MUI_PAGE_COMPONENTS ;Directory Page !insertmacro MUI_PAGE_DIRECTORY ;Start Menu Folder Page !define MUI_STARTMENUPAGE_DEFAULTFOLDER "gtkglextmm ${GTKGLEXTMM_API_VERSION}" !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM" !define MUI_STARTMENUPAGE_REGISTRY_KEY "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}" !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "StartMenuFolder" !insertmacro MUI_PAGE_STARTMENU StartMenu $STARTMENU_FOLDER ;Installation Page !insertmacro MUI_PAGE_INSTFILES ;Finish Page !define MUI_FINISHPAGE_NOREBOOTSUPPORT !insertmacro MUI_PAGE_FINISH ;Uninstall Welcome Page !insertmacro MUI_UNPAGE_WELCOME ;Uninstall Confirm Page !insertmacro MUI_UNPAGE_CONFIRM ;Uninstallation Page !insertmacro MUI_UNPAGE_INSTFILES ;Uninstall Finish Page !insertmacro MUI_UNPAGE_FINISH ;-------------------------------- ;Languages !insertmacro MUI_LANGUAGE "English" ;-------------------------------- ;Reserve Files ;!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS ;-------------------------------- ;Installer Sections Section "gtkglextmm Runtime" SecRuntime SectionIn 1 2 RO SetOutPath $INSTDIR\bin File bin\*.dll ; Registry WriteRegStr HKLM "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}\Runtime" "Path" "$INSTDIR" WriteRegStr HKLM "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}\Runtime" "Version" "${GTKGLEXTMM_VERSION}" SectionEnd Section "gtkglextmm Development" SecDevelopment SectionIn 1 SetOutPath $INSTDIR\include\gtkglextmm-${GTKGLEXTMM_API_VERSION} File include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\*.h SetOutPath $INSTDIR\include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gdkmm\gl File include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gdkmm\gl\*.h SetOutPath $INSTDIR\include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gdkmm\gl\private File include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gdkmm\gl\private\*.h SetOutPath $INSTDIR\include\gtkglextmm-${GTKGLEXTMM_API_VERSION} File include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\*.h SetOutPath $INSTDIR\include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gtkmm\gl File include\gtkglextmm-${GTKGLEXTMM_API_VERSION}\gtkmm\gl\*.h SetOutPath $INSTDIR\lib\gtkglextmm-${GTKGLEXTMM_API_VERSION}\include File lib\gtkglextmm-${GTKGLEXTMM_API_VERSION}\include\gdkglextmm-config.h SetOutPath $INSTDIR\lib\gtkglextmm-${GTKGLEXTMM_API_VERSION}\proc\m4 File lib\gtkglextmm-${GTKGLEXTMM_API_VERSION}\proc\m4\*.m4 SetOutPath $INSTDIR\lib File lib\*.a SetOutPath $INSTDIR\lib\pkgconfig File lib\pkgconfig\*.pc SetOutPath $INSTDIR\share\aclocal File share\aclocal\*.m4 SetOutPath $INSTDIR\share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html File share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\*.html File share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\*.css File share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\*.png File share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\*.dot ; Update .pc files ; short name will cause a problem with current libtool :-< ;GetFullPathName /SHORT $0 $INSTDIR StrCpy $0 $INSTDIR Push $0 Call ChangeDirSeparator Pop $0 DetailPrint "Updating $INSTDIR\lib\pkgconfig\gdkglextmm-${GTKGLEXTMM_API_VERSION}.pc" Push $INSTDIR\lib\pkgconfig\gdkglextmm-${GTKGLEXTMM_API_VERSION}.pc Push $0 Call UpdatePCFile DetailPrint "Done" DetailPrint "Updating $INSTDIR\lib\pkgconfig\gdkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc" Push $INSTDIR\lib\pkgconfig\gdkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc Push $0 Call UpdatePCFile DetailPrint "Done" DetailPrint "Updating $INSTDIR\lib\pkgconfig\gtkglextmm-${GTKGLEXTMM_API_VERSION}.pc" Push $INSTDIR\lib\pkgconfig\gtkglextmm-${GTKGLEXTMM_API_VERSION}.pc Push $0 Call UpdatePCFile DetailPrint "Done" DetailPrint "Updating $INSTDIR\lib\pkgconfig\gtkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc" Push $INSTDIR\lib\pkgconfig\gtkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc Push $0 Call UpdatePCFile DetailPrint "Done" ; Registry WriteRegStr HKLM "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}\Development" "Path" "$INSTDIR" WriteRegStr HKLM "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}\Development" "Version" "${GTKGLEXTMM_VERSION}" SectionEnd Section "gtkglextmm Examples" SecExamples SectionIn 1 SetOutPath $INSTDIR\gtkglextmm-examples File gtkglextmm-examples\Makefile.mingw File gtkglextmm-examples\*.h File gtkglextmm-examples\*.cc File gtkglextmm-examples\*.c File gtkglextmm-examples\*.exe SectionEnd Section "Start Menu" SecStartMenu SectionIn 1 2 SetShellVarContext all !insertmacro MUI_STARTMENU_WRITE_BEGIN StartMenu CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER" WriteINIStr "$SMPROGRAMS\$STARTMENU_FOLDER\GtkGLExt Website.url" "InternetShortcut" "URL" "http://gtkglext.sourceforge.net/" IfFileExists "$INSTDIR\share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\index.html" "" +2 CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\gtkglextmm Documentation.lnk" "$INSTDIR\share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION}\html\index.html" CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall gtkglextmm.lnk" "$INSTDIR\uninst-gtkglextmm.exe" !insertmacro MUI_STARTMENU_WRITE_END SectionEnd Section -post ; Write $INSTDIR\bin\gtkglextmm-env.sh DetailPrint "Generating $INSTDIR\bin\gtkglextmm-env.sh" Push $INSTDIR\bin\gtkglextmm-env.sh Call WriteEnvSh DetailPrint "Done" ; Registry WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "DisplayName" "gtkglextmm ${GTKGLEXTMM_VERSION}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "DisplayVersion" "${GTKGLEXTMM_VERSION}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "Publisher" "${GTKGLEXTMM_PUBLISHER}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "URLInfoAbout" "${GTKGLEXTMM_URL_INFO_ABOUT}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "URLUpdateInfo" "${GTKGLEXTMM_URL_UPDATE_INFO}" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "HelpLink" "${GTKGLEXTMM_HELP_LINK}" WriteRegExpandStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" "UninstallString" "$INSTDIR\uninst-gtkglextmm.exe" ;; Uninstaller Delete $INSTDIR\uninst-gtkglextmm.exe WriteUninstaller $INSTDIR\uninst-gtkglextmm.exe SectionEnd ;-------------------------------- ;Descriptions !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN !insertmacro MUI_DESCRIPTION_TEXT ${SecRuntime} "gtkglextmm runtime libraries" !insertmacro MUI_DESCRIPTION_TEXT ${SecDevelopment} "gtkglextmm development headers, libraries, and documentations" !insertmacro MUI_DESCRIPTION_TEXT ${SecExamples} "gtkglextmm example programs" !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenu} "Adds icons to your start menu for easy access" !insertmacro MUI_FUNCTION_DESCRIPTION_END ;-------------------------------- ;Installer Functions Function .onInit ; Change the default installation drive StrLen $R0 $INSTDIR StrCpy $R1 $INSTDIR $R0 1 StrCpy $INSTDIR $PROGRAMFILES 1 StrCpy $INSTDIR "$INSTDIR$R1" FunctionEnd ; ChangeDirSeparator ; input, top of stack (e.g. C:\Program Files\...) ; output, top of stack (replaces, with e.g. C:/Program Files/...) ; modifies no other variables. Function ChangeDirSeparator Exch $R0 Push $R1 Push $R2 Push $R3 StrCpy $R1 $R0 StrCpy $R0 "" StrCpy $R2 0 goto loop replace: StrCpy $R0 "$R0/" loop: StrCpy $R3 $R1 1 $R2 IntOp $R2 $R2 + 1 StrCmp $R3 "\" replace StrCmp $R3 "" done StrCpy $R0 "$R0$R3" goto loop done: Pop $R3 Pop $R2 Pop $R1 Exch $R0 FunctionEnd ; UpdatePCFile ; update pkg-config .pc file Function UpdatePCFile Pop $R0 ; prefix Pop $R1 ; target .pc file Push $R7 Push $R8 Push $R9 Rename $R1 $R1.orig FileOpen $R7 $R1.orig r FileOpen $R8 $R1 w FileRead $R7 $R9 ; skip original prefix FileWrite $R8 "prefix=$R0$\n" loop: FileRead $R7 $R9 StrCmp $R9 "" done FileWrite $R8 $R9 goto loop done: FileClose $R7 FileClose $R8 Delete $R1.orig Pop $R9 Pop $R8 Pop $R7 FunctionEnd ; WriteEnvSh Function WriteEnvSh Pop $R0 ; Output file Push $R8 Push $R9 GetFullPathName /SHORT $R8 $INSTDIR Push $R8 Call ChangeDirSeparator Pop $R8 FileOpen $R9 $R0 w FileWrite $R9 "#!/bin/sh$\n" FileWrite $R9 "$\n" FileWrite $R9 "export GTKGLEXTMM_PREFIX=$R8$\n" FileWrite $R9 "$\n" FileWrite $R9 "echo $\"Setting environment variables for gtkglextmm.$\"$\n" FileWrite $R9 "echo $\"$\"$\n" FileWrite $R9 "$\n" FileWrite $R9 "case $$TERM in$\n" FileWrite $R9 "cygwin)$\n" FileWrite $R9 " GTKGLEXTMM_PATH=`cygpath -u $${GTKGLEXTMM_PREFIX}/bin`$\n" FileWrite $R9 " ;;$\n" FileWrite $R9 "msys)$\n" FileWrite $R9 " GTKGLEXTMM_PATH=/$${GTKGLEXTMM_PREFIX%:*}$${GTKGLEXTMM_PREFIX#*:}/bin$\n" FileWrite $R9 " ;;$\n" FileWrite $R9 "*)$\n" FileWrite $R9 " echo $\"Unknown TERM$\"$\n" FileWrite $R9 " ;;$\n" FileWrite $R9 "esac$\n" FileWrite $R9 "$\n" FileWrite $R9 "echo $\"export PATH=\$\"$${GTKGLEXTMM_PATH}:\$${PATH}\$\"$\"$\n" FileWrite $R9 "export PATH=$\"$${GTKGLEXTMM_PATH}:$${PATH}$\"$\n" FileWrite $R9 "$\n" FileWrite $R9 "echo $\"export PKG_CONFIG_PATH=\$\"$${GTKGLEXTMM_PREFIX}/lib/pkgconfig;\$${PKG_CONFIG_PATH}\$\"$\"$\n" FileWrite $R9 "export PKG_CONFIG_PATH=$\"$${GTKGLEXTMM_PREFIX}/lib/pkgconfig;$${PKG_CONFIG_PATH}$\"$\n" FileWrite $R9 "$\n" FileWrite $R9 "echo $\"$\"$\n" FileClose $R9 Pop $R9 Pop $R8 FunctionEnd ;-------------------------------- ;Uninstaller Section Section Uninstall ;Remove shortcut SetShellVarContext all !insertmacro MUI_STARTMENU_GETFOLDER StartMenu $MUI_TEMP StrCmp $MUI_TEMP "" noshortcuts Delete "$SMPROGRAMS\$MUI_TEMP\GtkGLExt Website.url" Delete "$SMPROGRAMS\$MUI_TEMP\gtkglextmm Documentation.lnk" Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall gtkglextmm.lnk" RMDir "$SMPROGRAMS\$MUI_TEMP" ;Only if empty, so it won't delete other shortcuts noshortcuts: DeleteRegKey HKLM "SOFTWARE\gtkglextmm\${GTKGLEXTMM_API_VERSION}" DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\gtkglextmm" Delete $INSTDIR\uninst-gtkglextmm.exe ; bin Delete $INSTDIR\bin\gtkglextmm-env.sh Delete $INSTDIR\bin\libgdkglextmm-win32-${GTKGLEXTMM_API_VERSION}-*.dll Delete $INSTDIR\bin\libgtkglextmm-win32-${GTKGLEXTMM_API_VERSION}-*.dll RMDir $INSTDIR\bin ; include RMDir /r $INSTDIR\include\gtkglextmm-1.0 RMDir $INSTDIR\include ; lib RMDir /r $INSTDIR\lib\gtkglextmm-1.0 Delete $INSTDIR\lib\libgdkglextmm-win32-${GTKGLEXTMM_API_VERSION}.dll.a Delete $INSTDIR\lib\libgtkglextmm-win32-${GTKGLEXTMM_API_VERSION}.dll.a Delete $INSTDIR\lib\pkgconfig\gdkglextmm-${GTKGLEXTMM_API_VERSION}.pc Delete $INSTDIR\lib\pkgconfig\gdkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc Delete $INSTDIR\lib\pkgconfig\gtkglextmm-${GTKGLEXTMM_API_VERSION}.pc Delete $INSTDIR\lib\pkgconfig\gtkglextmm-win32-${GTKGLEXTMM_API_VERSION}.pc RMDir $INSTDIR\lib\pkgconfig RMDir $INSTDIR\lib ; share Delete $INSTDIR\share\aclocal\gtkglextmm-${GTKGLEXTMM_API_VERSION}.m4 RMDir $INSTDIR\share\aclocal RMDir /r $INSTDIR\share\doc\gtkglextmm-${GTKGLEXTMM_API_VERSION} RMDir $INSTDIR\share\doc RMDir $INSTDIR\share ; gtkglextmm-examples RMDir /r $INSTDIR\gtkglextmm-examples ; $INSTDIR RMDir $INSTDIR SectionEnd gtkglextmm-1.2.0/gtkglextmm-uninstalled.pc.in0000644000175000001440000000103710052326274016250 00000000000000target=@gdktarget@ api_version=@GTKGLEXTMM_API_VERSION@ multihead=@GDKGLEXTMM_MULTIHEAD_SUPPORT@ Name: gtkglextmm Uninstalled Description: C++ Wrapper for GtkGLExt (${target} target), Not Installed Version: @VERSION@ Requires: gdkglextmm-${target}-${api_version}-uninstalled @GTKGLEXTMM_PACKAGES@ Libs: ${pc_top_builddir}${pcfiledir}/gtkglext/gtkmm/gl/libgtkglextmm-${target}-@LIB_MJR@.@LIB_MNR@.la @GTKGLEXTMM_EXTRA_LIBS@ Cflags: -I${pc_top_builddir}${pcfiledir}/gtkglext -I${pc_top_builddir}${pcfiledir}/@srcdir@ @GTKGLEXTMM_EXTRA_CFLAGS@ gtkglextmm-1.2.0/gtkglextmm.spec.in0000644000175000001440000000633307724314233014270 00000000000000# -*- rpm-spec -*- %define base_version @GTKGLEXTMM_VERSION@ %define api_version @GTKGLEXTMM_API_VERSION@ %define rel 1 %define gtkglext_req_version @GTKGLEXT_REQUIRED_VERSION@ Summary: C++ Wrapper for GtkGLExt Name: gtkglextmm Version: %{base_version} Release: %{rel} License: LGPL Group: System Environment/Libraries URL: http://gtkglext.sourceforge.net/ Source0: ftp://dl.sourceforge.net/pub/sourceforge/gtkglext/gtkglextmm-%{version}.tar.gz BuildRoot: %{_tmppath}/gtkglextmm-%{version}-root Requires: gtkglext >= %{gtkglext_req_version} Requires: gtkmm2 Requires: gtk2 Requires: XFree86-libs BuildRequires: gtkglext-devel >= %{gtkglext_req_version} BuildRequires: gtkmm2-devel BuildRequires: gtk2-devel BuildRequires: XFree86-devel BuildRequires: pkgconfig %description gtkglextmm is C++ wrapper for GtkGLExt, OpenGL Extension to GTK. It enables C++ programmers to write OpenGL applications with gtkmm2. %package devel Summary: Development tools for GTK-based OpenGL applications Group: Development/Libraries Requires: %{name} = %{version} Requires: gtkglext-devel >= %{gtkglext_req_version} Requires: gtkmm2-devel Requires: gtk2-devel Requires: XFree86-devel %description devel The gtkglextmm-devel package contains the header files, static libraries, and developer docs for gtkglextmm. %prep %setup -q -n gtkglextmm-%{version} %build %configure --disable-doxygen-doc make %install rm -rf $RPM_BUILD_ROOT %makeinstall pushd "$RPM_BUILD_ROOT%{_libdir}" cp -p libgdkglextmm-x11-%{api_version}.la libgdkglextmm-x11-%{api_version}.la.bak cat libgdkglextmm-x11-%{api_version}.la.bak | \ sed -e "s| -L$RPM_BUILD_ROOT%{_libdir}||g" > libgdkglextmm-x11-%{api_version}.la rm -f libgdkglextmm-x11-%{api_version}.la.bak cp -p libgtkglextmm-x11-%{api_version}.la libgtkglextmm-x11-%{api_version}.la.bak cat libgtkglextmm-x11-%{api_version}.la.bak | \ sed -e "s| -L$RPM_BUILD_ROOT%{_libdir}||g" > libgtkglextmm-x11-%{api_version}.la rm -f libgtkglextmm-x11-%{api_version}.la.bak popd %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README TODO %{_libdir}/libgdkglextmm-x11-%{api_version}.so.* %{_libdir}/libgtkglextmm-x11-%{api_version}.so.* %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/gtkglextmm-%{api_version} %{_libdir}/lib*.so %{_libdir}/lib*.a %{_libdir}/lib*.la %{_libdir}/pkgconfig/* %{_datadir}/aclocal/* %{_datadir}/doc/* %changelog * Sun Aug 31 2003 Naofumi Yasufuku - Updated source URL. * Sun May 11 2003 Naofumi Yasufuku - Removed LDFLAGS setting. - Removed atk, pango, glib2 from Requires. - Remove lib*.la.bak files. * Mon Feb 24 2003 Naofumi Yasufuku - Added %{_datadir}/aclocal/* to the file list. * Tue Dec 17 2002 Naofumi Yasufuku - Changed documentation directory. * Mon Dec 16 2002 Naofumi Yasufuku - Added %{_libdir}/gtkglextmm-%{api_version} to the file list. * Thu Aug 8 2002 Naofumi Yasufuku - Documentation have been added. * Mon Jul 22 2002 Naofumi Yasufuku - Initial build. gtkglextmm-1.2.0/build_shared/0000777000175000001440000000000010400731253013316 500000000000000gtkglextmm-1.2.0/build_shared/Makefile_build_gensrc.am_fragment0000644000175000001440000000134507627356744021725 00000000000000## Copyright (c) 2001 ## The gtkmm development team. ## ## **** Common rules for inclusion in Makefile.am **** ## ## Included from something/somethingmm/Makefile.am ## ## Used variable: Example content: ## ## sublib_name = gtkmm ## sublib_cflags = $(GTKMM_CFLAGS) ## files_extra_cc = stock_id.cc ## files_extra_h = base.h stock_id.h ## ## Returned variable: Usage example: ## ## files_all_cc libgtkmm_la_SOURCES = $(files_all_cc) ## common_ldflags libgtkmm_la_LDFLAGS = $(common_ldflags) include $(srcdir)/../../src/Makefile_list_of_hg.am_fragment files_built_cc = $(files_hg:.hg=.cc) wrap_init.cc files_built_h = $(files_hg:.hg=.h) files_extra_h += wrap_init.h include $(top_srcdir)/build_shared/Makefile_build.am_fragment gtkglextmm-1.2.0/build_shared/Makefile_build.am_fragment0000644000175000001440000000270607647321502020350 00000000000000## Copyright (c) 2001 ## The gtkmm development team. ## ## **** Common rules for inclusion in Makefile.am **** ## Included by Makefile_build_gensrc.am_fragment ## ## Used variable: Example content: ## ## sublib_name = glibmm ## sublib_cflags = $(GLIBMM_CFLAGS) ## files_built_cc = ## files_built_h = proxy.h ## files_extra_cc = array.cc class.cc closure.cc ## files_extra_h = array.h boxedtype.h class.h ## ## Returned variable: Usage example: ## ## files_all_cc libglibmm_la_SOURCES = $(files_all_cc) ## common_ldflags libglibmm_la_LDFLAGS = $(common_ldflags) files_all_cc = $(files_built_cc) $(files_extra_cc) if PLATFORM_WIN32 no_undefined = -no-undefined endif common_ldflags = \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ -export-dynamic \ -rpath $(libdir) \ $(no_undefined) \ $(WIN32_LD_EXPORT_ALL_SYMBOLS) all_includes = -I$(top_builddir)/$(sublib_topdir) \ -I$(top_srcdir)/$(sublib_topdir) \ $(sublib_cflags) dist_sources = $(files_built_cc) $(files_extra_cc) $(files_built_h) $(files_extra_h) DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST) DEFS = @DEFS@ -DG_LOG_DOMAIN=\"$(sublib_logdomain)\" DEFAULT_INCLUDES = INCLUDES = $(strip $(all_includes)) sublib_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/$(sublib_name)/gl sublib_include_HEADERS = $(files_built_h) $(files_extra_h) maintainer-clean-local: (cd $(srcdir) && rm -f $(files_built_cc) $(files_built_h)) gtkglextmm-1.2.0/build_shared/Makefile_gensrc.am_fragment0000644000175000001440000000414510052323315020515 00000000000000## Copyright (c) 2001 ## The gtkmm development team. ## ## **** Common rules for inclusion in Makefile.am **** ## Included from something/src/Makefile.am ## ## Used variable: Example content: ## ## sublib_name = gdkmm ## sublib_namespace = Gdk ## files_defs = gdk.defs gdk_pixbuf.defs tools_dir = $(top_srcdir)/tools tools_dir_m4 = $(top_srcdir)/tools/m4 tools_dir_pm = $(top_srcdir)/tools/pm gensrc_destdir = $(srcdir)/../$(sublib_parentdir) stamp_dir = $(srcdir)/.stamps include $(top_srcdir)/tools/Makefile_list_of_sources.am_fragment tools_m4 = $(files_tools_m4:%.m4=$(tools_dir_m4)/%.m4) # tools_pm = $(files_tools_pm:%.pm=$(tools_dir_pm)/%.pm) include $(srcdir)/Makefile_list_of_hg.am_fragment files_ccg = $(files_hg:%.hg=%.ccg) files_h = $(files_hg:%.hg=$(gensrc_destdir)/%.h) files_cc = $(files_hg:%.hg=$(gensrc_destdir)/%.cc) files_stamp = $(files_hg:%.hg=$(stamp_dir)/stamp-%) # Installed gmmproc stuff, from glibmm: gmmproc_path = $(GMMPROC) gmmproc_dir = $(GMMPROC_DIR) # We use our own m4 and pm files as well as the ones installed by gtkmm: # Our override m4 include seems to need to be before the default one. gmmproc_args = -I $(tools_dir_m4) --defs $(srcdir) run_gmmproc = $(gmmproc_path) $(gmmproc_args) gen_wrap_init_path = $(gmmproc_dir)/generate_wrap_init.pl gen_wrap_init_args = --namespace=$(sublib_namespace) --namespace=GL --parent_dir=$(sublib_parentdir) run_gen_wrap_init = $(gen_wrap_init_path) $(gen_wrap_init_args) EXTRA_DIST = Makefile_list_of_hg.am_fragment \ $(files_defs) $(files_hg) $(files_ccg) $(stamp_dir)/stamp-%: %.hg %.ccg $(tools_m4) $(files_defs) $(run_gmmproc) $(notdir $*) $(srcdir) $(gensrc_destdir) @echo 'timestamp' > $@ sublib_srcdir = $(srcdir)/../src files_hg_with_path = $(patsubst %.hg,$(sublib_srcdir)/%.hg,$(files_hg)) $(gensrc_destdir)/wrap_init.cc: $(gen_wrap_init_path) $(files_hg_with_path) $(run_gen_wrap_init) $(files_hg:%.hg=$(srcdir)/%.hg) >$@ create-stamp-dir: @(test -d $(stamp_dir) || mkdir $(stamp_dir)) if MAINTAINER_MODE all-local: create-stamp-dir $(files_stamp) $(gensrc_destdir)/wrap_init.cc endif maintainer-clean-local: rm -rf $(stamp_dir) gtkglextmm-1.2.0/mkinstalldirs0000755000175000001440000000370410200267335013422 00000000000000#! /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 gtkglextmm-1.2.0/setup-gtkglextmm.sh0000755000175000001440000000155107656174727014521 00000000000000#!/bin/sh # # Setup gtkglextmm win32 binary package. # PKGCONFIG_FILES="lib/pkgconfig/gdkglextmm-1.0.pc lib/pkgconfig/gdkglextmm-win32-1.0.pc lib/pkgconfig/gtkglextmm-1.0.pc lib/pkgconfig/gtkglextmm-win32-1.0.pc" PREFIX="" case $# in 1) PREFIX="$1" ;; *) echo "" echo "Usage: ${0#*/} " echo "" echo "Example: ./${0#*/} c:/gtkglextmm" echo "" exit ;; esac # # Update .pc files # for file in ${PKGCONFIG_FILES}; do src="${PREFIX}/${file}.orig-$$" dst="${PREFIX}/${file}" echo -n "${dst}: " if test ! -f ${dst}; then echo "no such file" exit fi cp ${dst} ${src} cat ${src} | sed -e "s|^prefix=.*|prefix=${PREFIX}|" > ${dst} echo "updated" done echo "done." echo "" echo "PATH: ${PREFIX}/bin" echo "PKG_CONFIG_PATH: ${PREFIX}/lib/pkgconfig" echo "" gtkglextmm-1.2.0/Makefile.am0000644000175000001440000000470107717143165012663 00000000000000## -*- Makefile -*- ## Makefile.am for gtkglextmm SUBDIRS = tools gdkglext gtkglext m4macros docs DIST_SUBDIRS = $(SUBDIRS) examples EXTRA_DIST = \ README.win32 \ ChangeLog.pre-1-0 \ gdkglextmm.pc.in \ gtkglextmm.pc.in \ gdkglextmm-uninstalled.pc.in \ gtkglextmm-uninstalled.pc.in \ gtkglextmm.spec.in \ gtkglextmm.spec \ gtkglextmm.nsi.in \ gtkglextmm.nsi \ setup-gtkglextmm.sh \ build_shared/Makefile_build.am_fragment \ build_shared/Makefile_build_gensrc.am_fragment \ build_shared/Makefile_gensrc.am_fragment ## Copy .pc files to target-specific names GDK_TARGET = @gdktarget@ API_VER = @GTKGLEXTMM_API_VERSION@ gdkglextmm-$(GDK_TARGET)-$(API_VER).pc: gdkglextmm.pc gdkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc rm -f $@ && cp gdkglextmm.pc $@ gdkglextmm-$(API_VER).pc: gdkglextmm.pc gdkglextmm-$(API_VER)-uninstalled.pc rm -f $@ && cp gdkglextmm.pc $@ gtkglextmm-$(GDK_TARGET)-$(API_VER).pc: gtkglextmm.pc gtkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc rm -f $@ && cp gtkglextmm.pc $@ gtkglextmm-$(API_VER).pc: gtkglextmm.pc gtkglextmm-$(API_VER)-uninstalled.pc rm -f $@ && cp gtkglextmm.pc $@ gdkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc: gdkglextmm-uninstalled.pc rm -f $@ && cp gdkglextmm-uninstalled.pc $@ gdkglextmm-$(API_VER)-uninstalled.pc: gdkglextmm-uninstalled.pc gdkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc rm -f $@ && cp gdkglextmm-uninstalled.pc $@ gtkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc: gtkglextmm-uninstalled.pc rm -f $@ && cp gtkglextmm-uninstalled.pc $@ gtkglextmm-$(API_VER)-uninstalled.pc: gtkglextmm-uninstalled.pc gtkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc rm -f $@ && cp gtkglextmm-uninstalled.pc $@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = \ gdkglextmm-$(GDK_TARGET)-$(API_VER).pc \ gdkglextmm-$(API_VER).pc \ gtkglextmm-$(GDK_TARGET)-$(API_VER).pc \ gtkglextmm-$(API_VER).pc $(pkgconfig_DATA): $(top_builddir)/config.status DISTCLEANFILES = \ gdkglextmm-$(GDK_TARGET)-$(API_VER).pc \ gdkglextmm-$(API_VER).pc \ gtkglextmm-$(GDK_TARGET)-$(API_VER).pc \ gtkglextmm-$(API_VER).pc \ gdkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc \ gdkglextmm-$(API_VER)-uninstalled.pc \ gtkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc \ gtkglextmm-$(API_VER)-uninstalled.pc .PHONY: examples clean-examples examples: all ( cd $(top_builddir)/examples && $(MAKE) $(MFLAGS) ) clean-examples: ( cd $(top_builddir)/examples && $(MAKE) $(MFLAGS) clean ) gtkglextmm-1.2.0/Makefile.in0000644000175000001440000005774010400725441012671 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ SUBDIRS = tools gdkglext gtkglext m4macros docs DIST_SUBDIRS = $(SUBDIRS) examples EXTRA_DIST = \ README.win32 \ ChangeLog.pre-1-0 \ gdkglextmm.pc.in \ gtkglextmm.pc.in \ gdkglextmm-uninstalled.pc.in \ gtkglextmm-uninstalled.pc.in \ gtkglextmm.spec.in \ gtkglextmm.spec \ gtkglextmm.nsi.in \ gtkglextmm.nsi \ setup-gtkglextmm.sh \ build_shared/Makefile_build.am_fragment \ build_shared/Makefile_build_gensrc.am_fragment \ build_shared/Makefile_gensrc.am_fragment GDK_TARGET = @gdktarget@ API_VER = @GTKGLEXTMM_API_VERSION@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = \ gdkglextmm-$(GDK_TARGET)-$(API_VER).pc \ gdkglextmm-$(API_VER).pc \ gtkglextmm-$(GDK_TARGET)-$(API_VER).pc \ gtkglextmm-$(API_VER).pc DISTCLEANFILES = \ gdkglextmm-$(GDK_TARGET)-$(API_VER).pc \ gdkglextmm-$(API_VER).pc \ gtkglextmm-$(GDK_TARGET)-$(API_VER).pc \ gtkglextmm-$(API_VER).pc \ gdkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc \ gdkglextmm-$(API_VER)-uninstalled.pc \ gtkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc \ gtkglextmm-$(API_VER)-uninstalled.pc subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = gdkglextmm.pc gtkglextmm.pc \ gdkglextmm-uninstalled.pc gtkglextmm-uninstalled.pc \ gtkglextmm.spec gtkglextmm.nsi DIST_SOURCES = DATA = $(pkgconfig_DATA) 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 $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \ COPYING COPYING.LIB ChangeLog INSTALL Makefile.am NEWS TODO \ aclocal.m4 config.guess config.h.in config.sub configure.in \ depcomp gdkglextmm-uninstalled.pc.in gdkglextmm.pc.in \ gtkglextmm-uninstalled.pc.in gtkglextmm.nsi.in gtkglextmm.pc.in \ gtkglextmm.spec.in install-sh ltmain.sh missing mkinstalldirs all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOHEADER) touch $(srcdir)/config.h.in distclean-hdr: -rm -f config.h stamp-h1 gdkglextmm.pc: $(top_builddir)/config.status gdkglextmm.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ gtkglextmm.pc: $(top_builddir)/config.status gtkglextmm.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ gdkglextmm-uninstalled.pc: $(top_builddir)/config.status gdkglextmm-uninstalled.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ gtkglextmm-uninstalled.pc: $(top_builddir)/config.status gtkglextmm-uninstalled.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ gtkglextmm.spec: $(top_builddir)/config.status gtkglextmm.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ gtkglextmm.nsi: $(top_builddir)/config.status gtkglextmm.nsi.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: pkgconfigDATA_INSTALL = $(INSTALL_DATA) install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir) @list='$(pkgconfig_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(pkgconfigDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgconfigdir)/$$f"; \ $(pkgconfigDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgconfigdir)/$$f; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f $(DESTDIR)$(pkgconfigdir)/$$f"; \ rm -f $(DESTDIR)$(pkgconfigdir)/$$f; \ done # 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) config.h.in $(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) 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: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) 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 = $(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)/. $(distdir)/build_shared $(distdir)/docs/reference $(distdir)/gdkglext/gdkmm/gl $(distdir)/gtkglext/gtkmm/gl @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 -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-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(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 -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(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 $(DATA) config.h installdirs: installdirs-recursive installdirs-am: $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir) 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(CONFIG_CLEAN_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) 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) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: info: info-recursive info-am: install-data-am: install-pkgconfigDATA 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 -rm -f Makefile 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-pkgconfigDATA 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 dist-zip \ distcheck distclean distclean-generic distclean-hdr \ 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-pkgconfigDATA 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-pkgconfigDATA \ uninstall-recursive gdkglextmm-$(GDK_TARGET)-$(API_VER).pc: gdkglextmm.pc gdkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc rm -f $@ && cp gdkglextmm.pc $@ gdkglextmm-$(API_VER).pc: gdkglextmm.pc gdkglextmm-$(API_VER)-uninstalled.pc rm -f $@ && cp gdkglextmm.pc $@ gtkglextmm-$(GDK_TARGET)-$(API_VER).pc: gtkglextmm.pc gtkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc rm -f $@ && cp gtkglextmm.pc $@ gtkglextmm-$(API_VER).pc: gtkglextmm.pc gtkglextmm-$(API_VER)-uninstalled.pc rm -f $@ && cp gtkglextmm.pc $@ gdkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc: gdkglextmm-uninstalled.pc rm -f $@ && cp gdkglextmm-uninstalled.pc $@ gdkglextmm-$(API_VER)-uninstalled.pc: gdkglextmm-uninstalled.pc gdkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc rm -f $@ && cp gdkglextmm-uninstalled.pc $@ gtkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc: gtkglextmm-uninstalled.pc rm -f $@ && cp gtkglextmm-uninstalled.pc $@ gtkglextmm-$(API_VER)-uninstalled.pc: gtkglextmm-uninstalled.pc gtkglextmm-$(GDK_TARGET)-$(API_VER)-uninstalled.pc rm -f $@ && cp gtkglextmm-uninstalled.pc $@ $(pkgconfig_DATA): $(top_builddir)/config.status .PHONY: examples clean-examples examples: all ( cd $(top_builddir)/examples && $(MAKE) $(MFLAGS) ) clean-examples: ( cd $(top_builddir)/examples && $(MAKE) $(MFLAGS) clean ) # 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: gtkglextmm-1.2.0/gdkglextmm.pc.in0000644000175000001440000000100210052326274013700 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ target=@gdktarget@ api_version=@GTKGLEXTMM_API_VERSION@ multihead=@GDKGLEXTMM_MULTIHEAD_SUPPORT@ Name: gdkglextmm Description: C++ Wrapper for GdkGLExt (${target} target) Version: @VERSION@ Requires: @GDKGLEXTMM_PACKAGES@ Libs: -L${libdir} -lgdkglextmm-${target}-@LIB_MJR@.@LIB_MNR@ @GDKGLEXTMM_EXTRA_LIBS@ Cflags: -I${includedir}/gtkglextmm-${api_version} -I${libdir}/gtkglextmm-${api_version}/include @GDKGLEXTMM_EXTRA_CFLAGS@ gtkglextmm-1.2.0/gtkglext/0000777000175000001440000000000010400731255012524 500000000000000gtkglextmm-1.2.0/gtkglext/src/0000777000175000001440000000000010400731255013313 500000000000000gtkglextmm-1.2.0/gtkglext/src/gtkglext_docs.xml0000644000175000001440000001504507712153142016624 00000000000000 Returns the #GdkGLConfig referred by the @widget. a #GtkWidget. the #GdkGLConfig. Returns the #GdkGLWindow owned by the @widget. a #GtkWidget. the #GdkGLWindow. This function does the same work as gtk_gl_init() with only a single change: It does not terminate the program if the library can't be initialized. Instead it returns %FALSE on failure. This way the application can fall back to some other means of communication with the user - for example a curses or command line interface. Address of the &lt;parameter&gt;argc&lt;/parameter&gt; parameter of your &lt;function&gt;main()&lt;/function&gt; function. Changed if any arguments were handled. Address of the &lt;parameter&gt;argv&lt;/parameter&gt; parameter of &lt;function&gt;main()&lt;/function&gt;. Any parameters understood by gtk_gl_init() are stripped before return. %TRUE if the GUI has been successfully initialized, %FALSE otherwise. Call this function before using any other GtkGLExt functions in your applications. It will initialize everything needed to operate the library and parses some standard command line options. @argc and @argv are adjusted accordingly so your own code will never see those standard arguments. &lt;note&gt;&lt;para&gt; This function will terminate your program if it was unable to initialize the library for some reason. If you want your program to fall back to a textual interface you want to call gtk_gl_init_check() instead. &lt;/para&gt;&lt;/note&gt; Address of the &lt;parameter&gt;argc&lt;/parameter&gt; parameter of your &lt;function&gt;main()&lt;/function&gt; function. Changed if any arguments were handled. Address of the &lt;parameter&gt;argv&lt;/parameter&gt; parameter of &lt;function&gt;main()&lt;/function&gt;. Any parameters understood by gtk_gl_init() are stripped before return. Returns whether the @widget is OpenGL-capable. a #GtkWidget. TRUE if the @widget is OpenGL-capable, FALSE otherwise. Set the OpenGL-capability to the @widget. This function prepares the widget for its use with OpenGL. the #GtkWidget to be used as the rendering area. a #GdkGLConfig. the #GdkGLContext with which to share display lists and texture objects. NULL indicates that no sharing is to take place. whether rendering is to be done with a direct connection to the graphics system. GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE (currently not used). TRUE if it is successful, FALSE otherwise. Returns the #GdkGLContext with the appropriate #GdkGLDrawable for this widget. Unlike the GL context returned by gtk_widget_create_gl_context(), this context is owned by the widget. #GdkGLContext is needed for the function gdk_gl_drawable_begin, or for sharing display lists (see gtk_widget_set_gl_capability()). a #GtkWidget. the #GdkGLContext. Parses command line arguments, and initializes global attributes of GtkGLExt. Any arguments used by GtkGLExt are removed from the array and @argc and @argv are updated accordingly. You shouldn't call this function explicitely if you are using gtk_gl_init(), or gtk_gl_init_check(). the number of command line arguments. the array of command line arguments. %TRUE if initialization succeeded, otherwise %FALSE. Creates a new #GdkGLContext with the appropriate #GdkGLDrawable for this widget. The GL context must be freed when you're finished with it. See also gtk_widget_get_gl_context(). a #GtkWidget. the #GdkGLContext with which to share display lists and texture objects. NULL indicates that no sharing is to take place. whether rendering is to be done with a direct connection to the graphics system. GDK_GL_RGBA_TYPE or GDK_GL_COLOR_INDEX_TYPE (currently not used). the new #GdkGLContext. gtkglextmm-1.2.0/gtkglext/src/gtkglext_enums.defs0000644000175000001440000000035607631051120017134 00000000000000;; -*- scheme -*- ;; From gtkglext/gtk/gtkgldebug.h (define-flags-extended DebugFlag (in-module "Gtk") (c-name "GtkGLDebugFlag") (values '("misc" "GTK_GL_DEBUG_MISC" "1 << 0") '("func" "GTK_GL_DEBUG_FUNC" "1 << 1") ) ) gtkglextmm-1.2.0/gtkglext/src/gtkglext.defs0000644000175000001440000000012107627357445015743 00000000000000;; -*- scheme -*- (include gtkglext_methods.defs) (include gtkglext_enums.defs) gtkglextmm-1.2.0/gtkglext/src/Makefile_list_of_hg.am_fragment0000644000175000001440000000036707627357445021377 00000000000000# This file is include by other Makefile.am files, using the new automake include feature. # The include happens in Makefile.am, not Makefile.in or Makefile, # so it's like copy-and-pasting this into each of those Makefile.am files. files_hg = gtkglextmm-1.2.0/gtkglext/src/Makefile.am0000644000175000001440000000041210052323316015256 00000000000000sublib_name = gtkmm sublib_namespace = Gtk sublib_parentdir = gtkmm/gl files_defs = \ gtkglext.defs \ gtkglext_methods.defs \ gtkglext_enums.defs \ gtkglext_docs.xml \ gtkglext_docs_override.xml include $(top_srcdir)/build_shared/Makefile_gensrc.am_fragment gtkglextmm-1.2.0/gtkglext/src/Makefile.in0000644000175000001440000003111410400725445015300 00000000000000# Makefile.in generated by automake 1.7.9 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@ # This file is include by other Makefile.am files, using the new automake include feature. # The include happens in Makefile.am, not Makefile.in or Makefile, # so it's like copy-and-pasting this into each of those Makefile.am files. 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ sublib_name = gtkmm sublib_namespace = Gtk sublib_parentdir = gtkmm/gl files_defs = \ gtkglext.defs \ gtkglext_methods.defs \ gtkglext_enums.defs \ gtkglext_docs.xml \ gtkglext_docs_override.xml tools_dir = $(top_srcdir)/tools tools_dir_m4 = $(top_srcdir)/tools/m4 tools_dir_pm = $(top_srcdir)/tools/pm gensrc_destdir = $(srcdir)/../$(sublib_parentdir) stamp_dir = $(srcdir)/.stamps files_tools_m4 = convert.m4 convert_gdkglext.m4 convert_gtkglext.m4 files_tools_perl = files_tools_pm = tools_m4 = $(files_tools_m4:%.m4=$(tools_dir_m4)/%.m4) files_hg = # tools_pm = $(files_tools_pm:%.pm=$(tools_dir_pm)/%.pm) files_ccg = $(files_hg:%.hg=%.ccg) files_h = $(files_hg:%.hg=$(gensrc_destdir)/%.h) files_cc = $(files_hg:%.hg=$(gensrc_destdir)/%.cc) files_stamp = $(files_hg:%.hg=$(stamp_dir)/stamp-%) # Installed gmmproc stuff, from glibmm: gmmproc_path = $(GMMPROC) gmmproc_dir = $(GMMPROC_DIR) # We use our own m4 and pm files as well as the ones installed by gtkmm: # Our override m4 include seems to need to be before the default one. gmmproc_args = -I $(tools_dir_m4) --defs $(srcdir) run_gmmproc = $(gmmproc_path) $(gmmproc_args) gen_wrap_init_path = $(gmmproc_dir)/generate_wrap_init.pl gen_wrap_init_args = --namespace=$(sublib_namespace) --namespace=GL --parent_dir=$(sublib_parentdir) run_gen_wrap_init = $(gen_wrap_init_path) $(gen_wrap_init_args) EXTRA_DIST = Makefile_list_of_hg.am_fragment \ $(files_defs) $(files_hg) $(files_ccg) sublib_srcdir = $(srcdir)/../src files_hg_with_path = $(patsubst %.hg,$(sublib_srcdir)/%.hg,$(files_hg)) subdir = gtkglext/src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = DIST_SOURCES = DIST_COMMON = $(srcdir)/Makefile.in \ $(srcdir)/Makefile_list_of_hg.am_fragment \ $(top_srcdir)/build_shared/Makefile_gensrc.am_fragment \ $(top_srcdir)/tools/Makefile_list_of_sources.am_fragment \ $(top_srcdir)/tools/m4/Makefile_list_of_sources.am_fragment \ Makefile.am all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/build_shared/Makefile_gensrc.am_fragment $(top_srcdir)/tools/Makefile_list_of_sources.am_fragment $(top_srcdir)/tools/m4/Makefile_list_of_sources.am_fragment $(srcdir)/Makefile_list_of_hg.am_fragment $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gtkglext/src/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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)/../../build_shared $(distdir)/../../tools $(distdir)/../../tools/m4 @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 all-local 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 -rm -f Makefile 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 -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local 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 all-local 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 maintainer-clean-local mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-info-am $(stamp_dir)/stamp-%: %.hg %.ccg $(tools_m4) $(files_defs) $(run_gmmproc) $(notdir $*) $(srcdir) $(gensrc_destdir) @echo 'timestamp' > $@ $(gensrc_destdir)/wrap_init.cc: $(gen_wrap_init_path) $(files_hg_with_path) $(run_gen_wrap_init) $(files_hg:%.hg=$(srcdir)/%.hg) >$@ create-stamp-dir: @(test -d $(stamp_dir) || mkdir $(stamp_dir)) @MAINTAINER_MODE_TRUE@all-local: create-stamp-dir $(files_stamp) $(gensrc_destdir)/wrap_init.cc maintainer-clean-local: rm -rf $(stamp_dir) # 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: gtkglextmm-1.2.0/gtkglext/src/gtkglext_docs_override.xml0000644000175000001440000000002007627357445020527 00000000000000 gtkglextmm-1.2.0/gtkglext/src/gtkglext_methods.defs0000644000175000001440000000413707631063613017463 00000000000000;; -*- scheme -*- ; object definitions ... ;; Enumerations and flags ... (define-flags DebugFlag (in-module "Gtk") (c-name "GtkGLDebugFlag") (gtype-id "GTK_TYPE_GL_DEBUG_FLAG") (values '("misc" "GTK_GL_DEBUG_MISC") '("func" "GTK_GL_DEBUG_FUNC") ) ) ;; From gtkglext/gtk/gtkgl.h ;; From gtkglext/gtk/gtkgldebug.h ;; From gtkglext/gtk/gtkgldefs.h ;; From gtkglext/gtk/gtkglinit.h (define-function gtk_gl_parse_args (c-name "gtk_gl_parse_args") (return-type "gboolean") (parameters '("int*" "argc") '("char***" "argv") ) ) (define-function gtk_gl_init_check (c-name "gtk_gl_init_check") (return-type "gboolean") (parameters '("int*" "argc") '("char***" "argv") ) ) (define-function gtk_gl_init (c-name "gtk_gl_init") (return-type "none") (parameters '("int*" "argc") '("char***" "argv") ) ) ;; From gtkglext/gtk/gtkglprivate.h ;; From gtkglext/gtk/gtkglversion.h ;; From gtkglext/gtk/gtkglwidget.h (define-method set_gl_capability (of-object "GtkWidget") (c-name "gtk_widget_set_gl_capability") (return-type "gboolean") (parameters '("GdkGLConfig*" "glconfig") '("GdkGLContext*" "share_list") '("gboolean" "direct") '("int" "render_type") ) ) (define-method is_gl_capable (of-object "GtkWidget") (c-name "gtk_widget_is_gl_capable") (return-type "gboolean") ) (define-method get_gl_config (of-object "GtkWidget") (c-name "gtk_widget_get_gl_config") (return-type "GdkGLConfig*") ) (define-method create_gl_context (of-object "GtkWidget") (c-name "gtk_widget_create_gl_context") (return-type "GdkGLContext*") (parameters '("GdkGLContext*" "share_list") '("gboolean" "direct") '("int" "render_type") ) ) (define-method get_gl_context (of-object "GtkWidget") (c-name "gtk_widget_get_gl_context") (return-type "GdkGLContext*") ) (define-method get_gl_window (of-object "GtkWidget") (c-name "gtk_widget_get_gl_window") (return-type "GdkGLWindow*") ) (define-method get_gl_drawable (of-object "GtkWidget") (c-name "gtk_widget_get_gl_drawable") (return-type "GdkGLDrawable*") ) gtkglextmm-1.2.0/gtkglext/gtkmm/0000777000175000001440000000000010400731255013643 500000000000000gtkglextmm-1.2.0/gtkglext/gtkmm/gl/0000777000175000001440000000000010400731255014245 500000000000000gtkglextmm-1.2.0/gtkglext/gtkmm/gl/version.h.in0000644000175000001440000000400007627357445016444 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GTKMM_GL_VERSION_H #define _GTKMM_GL_VERSION_H #include /* * Compile time version. */ #define GTKGLEXTMM_MAJOR_VERSION (@GTKGLEXTMM_MAJOR_VERSION@) #define GTKGLEXTMM_MINOR_VERSION (@GTKGLEXTMM_MINOR_VERSION@) #define GTKGLEXTMM_MICRO_VERSION (@GTKGLEXTMM_MICRO_VERSION@) #define GTKGLEXTMM_INTERFACE_AGE (@GTKGLEXTMM_INTERFACE_AGE@) #define GTKGLEXTMM_BINARY_AGE (@GTKGLEXTMM_BINARY_AGE@) /* * Check whether a gtkglextmm version equal to or greater than * major.minor.micro is present. */ #define GTKGLEXTMM_CHECK_VERSION(major, minor, micro) \ (GTKGLEXTMM_MAJOR_VERSION > (major) || \ (GTKGLEXTMM_MAJOR_VERSION == (major) && GTKGLEXTMM_MINOR_VERSION > (minor)) || \ (GTKGLEXTMM_MAJOR_VERSION == (major) && GTKGLEXTMM_MINOR_VERSION == (minor) && \ GTKGLEXTMM_MICRO_VERSION >= (micro))) /* * Library version. */ GTKMM_GL_VAR const int gtkglextmm_major_version; GTKMM_GL_VAR const int gtkglextmm_minor_version; GTKMM_GL_VAR const int gtkglextmm_micro_version; GTKMM_GL_VAR const int gtkglextmm_interface_age; GTKMM_GL_VAR const int gtkglextmm_binary_age; #endif // _GTKMM_GL_VERSION_H gtkglextmm-1.2.0/gtkglext/gtkmm/gl/drawingarea.h0000644000175000001440000000675107724613614016644 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GTKMM_GL_DRAWINGAREA_H #define _GTKMM_GL_DRAWINGAREA_H #include #include namespace Gtk { namespace GL { /** OpenGL-capable DrawingArea widget. * * */ class DrawingArea : public Gtk::DrawingArea, public Gtk::GL::Widget { private: // noncopyable DrawingArea(const DrawingArea&); DrawingArea& operator=(const DrawingArea&); public: virtual ~DrawingArea(); public: /** Create an DrawingArea widget which supports OpenGL rendering. * This constructor does *NOT* call set_gl_capability() method, * so that you should call it yourself to make instantiated DrawingArea * OpenGL-capable. * */ DrawingArea() {} /** Create an OpenGL-capable DrawingArea widget. * * @param glconfig a Gdk::GL::Config. * @param share_list the Gdk::GL::Context which to share display lists. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). */ DrawingArea(const Glib::RefPtr& glconfig, const Glib::RefPtr& share_list, bool direct = true, int render_type = Gdk::GL::RGBA_TYPE) { set_gl_capability(glconfig, share_list, direct, render_type); } /** Create an OpenGL-capable DrawingArea widget. * * @param glconfig a Gdk::GL::Config. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). */ DrawingArea(const Glib::RefPtr& glconfig, bool direct = true, int render_type = Gdk::GL::RGBA_TYPE) { set_gl_capability(glconfig, direct, render_type); } }; /** @example simple-darea.cc * * Simple Gtk::GL::DrawingArea example. * */ /** @example share-lists.cc * * Simple display list sharing example. * */ /** @example logo.h * * GtkGLExt logo demo. * */ /** @example logo.cc * * GtkGLExt logo demo. * */ /** @example gears.cc * * 3-D gear wheels demo. * */ } // namespace GL } // namespace Gtk #endif // _GTKMM_GL_DRAWINGAREA_H gtkglextmm-1.2.0/gtkglext/gtkmm/gl/defs.h0000644000175000001440000000222007627357445015275 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GTKMM_GL_DEFS_H #define _GTKMM_GL_DEFS_H #include #ifdef GTKMM_WIN32 # ifdef GTKMM_GL_COMPILATION # define GTKMM_GL_VAR extern __declspec(dllexport) # else # define GTKMM_GL_VAR extern __declspec(dllimport) # endif #else # define GTKMM_GL_VAR extern #endif #endif // _GTKMM_GL_DEFS_H gtkglextmm-1.2.0/gtkglext/gtkmm/gl/Makefile.am0000644000175000001440000000270710052326275016230 00000000000000SUBDIRS = private sublib_name = gtkmm sublib_namespace = Gtk sublib_logdomain = gtkglextmm sublib_topdir = gtkglext sublib_cflags = \ -I$(top_builddir)/gdkglext \ -I$(top_srcdir)/gdkglext \ $(GTKGLEXTMM_DEP_CFLAGS) \ -DGTKMM_GL_COMPILATION \ -DG_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGTK_DISABLE_DEPRECATED files_extra_h = \ defs.h \ version.h \ init.h \ widget.h \ drawingarea.h files_extra_h_private = files_extra_cc = \ version.cc \ init.cc \ widget.cc \ drawingarea.cc files_built_cc= files_built_h= include $(top_srcdir)/build_shared/Makefile_build.am_fragment #include $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment lib_LTLIBRARIES = $(gtkglextmm_targetlib) EXTRA_LTLIBRARIES = \ libgtkglextmm-x11-@LIB_MJR@.@LIB_MNR@.la \ libgtkglextmm-win32-@LIB_MJR@.@LIB_MNR@.la libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_SOURCES = $(files_all_cc) libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS = $(common_ldflags) libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LIBADD = \ $(top_builddir)/gdkglext/gdkmm/gl/$(gdkglextmm_targetlib) \ $(GTKGLEXTMM_DEP_LIBS) libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_SOURCES = $(files_all_cc) libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS = $(common_ldflags) libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LIBADD = \ $(top_builddir)/gdkglext/gdkmm/gl/$(gdkglextmm_targetlib) \ $(GTKGLEXTMM_DEP_LIBS) EXTRA_DIST = \ version.h.in \ $(files_extra_h_private) gtkglextmm-1.2.0/gtkglext/gtkmm/gl/Makefile.in0000644000175000001440000006102010400725445016231 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ -DG_LOG_DOMAIN=\"$(sublib_logdomain)\" DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ SUBDIRS = private sublib_name = gtkmm sublib_namespace = Gtk sublib_logdomain = gtkglextmm sublib_topdir = gtkglext sublib_cflags = \ -I$(top_builddir)/gdkglext \ -I$(top_srcdir)/gdkglext \ $(GTKGLEXTMM_DEP_CFLAGS) \ -DGTKMM_GL_COMPILATION \ -DG_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGTK_DISABLE_DEPRECATED files_extra_h = \ defs.h \ version.h \ init.h \ widget.h \ drawingarea.h files_extra_h_private = files_extra_cc = \ version.cc \ init.cc \ widget.cc \ drawingarea.cc files_built_cc = files_built_h = files_all_cc = $(files_built_cc) $(files_extra_cc) @PLATFORM_WIN32_TRUE@no_undefined = -no-undefined common_ldflags = \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ -export-dynamic \ -rpath $(libdir) \ $(no_undefined) \ $(WIN32_LD_EXPORT_ALL_SYMBOLS) all_includes = -I$(top_builddir)/$(sublib_topdir) \ -I$(top_srcdir)/$(sublib_topdir) \ $(sublib_cflags) dist_sources = $(files_built_cc) $(files_extra_cc) $(files_built_h) $(files_extra_h) DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST) DEFAULT_INCLUDES = INCLUDES = $(strip $(all_includes)) sublib_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/$(sublib_name)/gl sublib_include_HEADERS = $(files_built_h) $(files_extra_h) #include $(top_srcdir)/build_shared/Makefile_build_gensrc.am_fragment lib_LTLIBRARIES = $(gtkglextmm_targetlib) EXTRA_LTLIBRARIES = \ libgtkglextmm-x11-@LIB_MJR@.@LIB_MNR@.la \ libgtkglextmm-win32-@LIB_MJR@.@LIB_MNR@.la libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_SOURCES = $(files_all_cc) libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS = $(common_ldflags) libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LIBADD = \ $(top_builddir)/gdkglext/gdkmm/gl/$(gdkglextmm_targetlib) \ $(GTKGLEXTMM_DEP_LIBS) libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_SOURCES = $(files_all_cc) libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS = $(common_ldflags) libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LIBADD = \ $(top_builddir)/gdkglext/gdkmm/gl/$(gdkglextmm_targetlib) \ $(GTKGLEXTMM_DEP_LIBS) EXTRA_DIST = \ version.h.in \ $(files_extra_h_private) subdir = gtkglext/gtkmm/gl ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = version.h LTLIBRARIES = $(lib_LTLIBRARIES) libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_DEPENDENCIES = \ $(top_builddir)/gdkglext/gdkmm/gl/$(gdkglextmm_targetlib) am__objects_1 = am__objects_2 = version.lo init.lo widget.lo drawingarea.lo am__objects_3 = $(am__objects_1) $(am__objects_2) am_libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_OBJECTS = $(am__objects_3) libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_OBJECTS = \ $(am_libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_DEPENDENCIES = \ $(top_builddir)/gdkglext/gdkmm/gl/$(gdkglextmm_targetlib) am_libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_OBJECTS = $(am__objects_3) libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_OBJECTS = \ $(am_libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/drawingarea.Plo ./$(DEPDIR)/init.Plo \ @AMDEP_TRUE@ ./$(DEPDIR)/version.Plo ./$(DEPDIR)/widget.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 = $(libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_SOURCES) \ $(libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_SOURCES) HEADERS = $(sublib_include_HEADERS) 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 = $(srcdir)/Makefile.in $(sublib_include_HEADERS) \ $(top_srcdir)/build_shared/Makefile_build.am_fragment \ Makefile.am version.h.in DIST_SUBDIRS = $(SUBDIRS) SOURCES = $(libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_SOURCES) $(libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_SOURCES) all: all-recursive .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/build_shared/Makefile_build.am_fragment $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gtkglext/gtkmm/gl/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) version.h: $(top_builddir)/config.status version.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 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 libgtkglextmm-win32-@LIB_MJR@.@LIB_MNR@.la: $(libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) $(libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_DEPENDENCIES) $(CXXLINK) $(libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS) $(libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) $(libgtkglextmm_win32_@LIB_MJR@_@LIB_MNR@_la_LIBADD) $(LIBS) libgtkglextmm-x11-@LIB_MJR@.@LIB_MNR@.la: $(libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) $(libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_DEPENDENCIES) $(CXXLINK) $(libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LDFLAGS) $(libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_OBJECTS) $(libgtkglextmm_x11_@LIB_MJR@_@LIB_MNR@_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) core *.core distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drawingarea.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/widget.Plo@am__quote@ .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: sublib_includeHEADERS_INSTALL = $(INSTALL_HEADER) install-sublib_includeHEADERS: $(sublib_include_HEADERS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(sublib_includedir) @list='$(sublib_include_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(sublib_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(sublib_includedir)/$$f"; \ $(sublib_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(sublib_includedir)/$$f; \ done uninstall-sublib_includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(sublib_include_HEADERS)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f $(DESTDIR)$(sublib_includedir)/$$f"; \ rm -f $(DESTDIR)$(sublib_includedir)/$$f; \ done # 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 top_distdir = ../../.. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) $(mkinstalldirs) $(distdir)/../../../build_shared @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 $(LTLIBRARIES) $(HEADERS) installdirs: installdirs-recursive installdirs-am: $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(sublib_includedir) 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: info: info-recursive info-am: install-data-am: install-sublib_includeHEADERS install-exec-am: install-libLTLIBRARIES install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \ uninstall-sublib_includeHEADERS uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ clean-generic clean-libLTLIBRARIES clean-libtool \ clean-recursive ctags ctags-recursive distclean \ distclean-compile 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-libLTLIBRARIES install-man install-recursive \ install-strip install-sublib_includeHEADERS installcheck \ installcheck-am installdirs installdirs-am \ installdirs-recursive maintainer-clean maintainer-clean-generic \ maintainer-clean-local maintainer-clean-recursive mostlyclean \ mostlyclean-compile 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-libLTLIBRARIES uninstall-recursive \ uninstall-sublib_includeHEADERS maintainer-clean-local: (cd $(srcdir) && rm -f $(files_built_cc) $(files_built_h)) # 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: gtkglextmm-1.2.0/gtkglext/gtkmm/gl/widget.h0000644000175000001440000003030707725030021015617 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GTKMM_GL_WIDGET_H #define _GTKMM_GL_WIDGET_H #include #include #include #include #include namespace Gtk { namespace GL { /** Set the OpenGL-capability to the Gtk::Widget. * The call setup the callbacks to realize a OpenGL-capable window. * * @param widget the GtkWidget to be used as the rendering area. * @param glconfig a Gdk::GL::Config. * @param share_list the Gdk::GL::Context which to share display lists. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return true if it is successful, false otherwise. */ bool widget_set_gl_capability(Gtk::Widget& widget, const Glib::RefPtr& glconfig, const Glib::RefPtr& share_list, bool direct = true, int render_type = Gdk::GL::RGBA_TYPE); /** Set the OpenGL-capability to the Gtk::Widget. * The call setup the callbacks to realize a OpenGL-capable window. * * @param widget the GtkWidget to be used as the rendering area. * @param glconfig a Gdk::GL::Config. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return true if it is successful, false otherwise. */ bool widget_set_gl_capability(Gtk::Widget& widget, const Glib::RefPtr& glconfig, bool direct = true, int render_type = Gdk::GL::RGBA_TYPE); /** Return whether the Gtk::Widget is OpenGL-capable. * * @param widget a Gtk::Widget. * @return true if the Gtk::Widget is OpenGL-capable, * false otherwise. */ bool widget_is_gl_capable(const Gtk::Widget& widget); /** Return the Gdk::GL::Config referred by the Gtk::Widget. * * @param widget a Gtk::Widget. * @return the Gdk::GL::Config. */ Glib::RefPtr widget_get_gl_config(const Gtk::Widget& widget); /** Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable * for this widget. * * See also get_gl_context(). * * @param widget a Gtk::Widget. * @param share_list the Gdk::GL::Context which to share display lists. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return the new Gdk::GL::Context. */ Glib::RefPtr widget_create_gl_context(const Gtk::Widget& widget, const Glib::RefPtr& share_list, bool direct = true, int render_type = Gdk::GL::RGBA_TYPE); /** Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable * for this widget. * * See also get_gl_context(). * * @param widget a Gtk::Widget. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return the new Gdk::GL::Context. */ Glib::RefPtr widget_create_gl_context(const Gtk::Widget& widget, bool direct = true, int render_type = Gdk::GL::RGBA_TYPE); /** Return the Gdk::GL::Context with the appropriate Gdk::GL::Drawable * for this widget. * * Unlike the GL context returned by create_gl_context(), this context * is owned by the widget. * * @param widget a Gtk::Widget. * @return the Gdk::GL::Context. */ Glib::RefPtr widget_get_gl_context(const Gtk::Widget& widget); /** Return the Gdk::GL::Window owned by the Gtk::Widget. * * @param widget a Gtk::Widget. * @return the Gdk::GL::Window. */ Glib::RefPtr widget_get_gl_window(const Gtk::Widget& widget); /** Return the Gdk::GL::Drawable owned by the Gtk::Widget. * * @param widget a Gtk::Widget. * @return the Gdk::GL::Drawable. */ Glib::RefPtr widget_get_gl_drawable(const Gtk::Widget& widget); /** OpenGL extension API to Gtk::Widget. * * */ template class Widget { public: virtual ~Widget() = 0; public: /** Set the OpenGL-capability to the Gtk::Widget. * The call setup the callbacks to realize a OpenGL-capable window. * * @param glconfig a Gdk::GL::Config. * @param share_list the Gdk::GL::Context which to share display lists. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return true if it is successful, false otherwise. */ bool set_gl_capability(const Glib::RefPtr& glconfig, const Glib::RefPtr& share_list, bool direct = true, int render_type = Gdk::GL::RGBA_TYPE) { return widget_set_gl_capability(*static_cast(this), glconfig, share_list, direct, render_type); } /** Set the OpenGL-capability to the Gtk::Widget. * The call setup the callbacks to realize a OpenGL-capable window. * * @param glconfig a Gdk::GL::Config. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return true if it is successful, false otherwise. */ bool set_gl_capability(const Glib::RefPtr& glconfig, bool direct = true, int render_type = Gdk::GL::RGBA_TYPE) { return widget_set_gl_capability(*static_cast(this), glconfig, direct, render_type); } /** Return whether the Gtk::Widget is OpenGL-capable. * * @return true if the Gtk::Widget is OpenGL-capable, * false otherwise. */ bool is_gl_capable() const { return widget_is_gl_capable(*static_cast(this)); } /** Return the Gdk::GL::Config referred by the Gtk::Widget. * * @return the Gdk::GL::Config. */ Glib::RefPtr get_gl_config() { return widget_get_gl_config(*static_cast(this)); } /** Return the Gdk::GL::Config referred by the Gtk::Widget. * * @return the Gdk::GL::Config. */ Glib::RefPtr get_gl_config() const { return widget_get_gl_config(*static_cast(this)); } /** Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable * for this widget. * * See also get_gl_context(). * * @param share_list the Gdk::GL::Context which to share display lists. * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return the new Gdk::GL::Context. */ Glib::RefPtr create_gl_context(const Glib::RefPtr& share_list, bool direct = true, int render_type = Gdk::GL::RGBA_TYPE) { return widget_create_gl_context(*static_cast(this), share_list, direct, render_type); } /** Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable * for this widget. * * See also get_gl_context(). * * @param direct whether rendering is to be done with a direct * connection to the graphics system. * @param render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE * (currently not used). * @return the new Gdk::GL::Context. */ Glib::RefPtr create_gl_context(bool direct = true, int render_type = Gdk::GL::RGBA_TYPE) { return widget_create_gl_context(*static_cast(this), direct, render_type); } /** Return the Gdk::GL::Context with the appropriate Gdk::GL::Drawable * for this widget. * * Unlike the GL context returned by create_gl_context(), this context * is owned by the widget. * * @return the Gdk::GL::Context. */ Glib::RefPtr get_gl_context() { return widget_get_gl_context(*static_cast(this)); } /** Return the Gdk::GL::Window owned by the Gtk::Widget. * * @return the Gdk::GL::Window. */ Glib::RefPtr get_gl_window() { return widget_get_gl_window(*static_cast(this)); } /** Return the Gdk::GL::Window owned by the Gtk::Widget. * * @return the Gdk::GL::Window. */ Glib::RefPtr get_gl_window() const { return widget_get_gl_window(*static_cast(this)); } /** Return the Gdk::GL::Drawable owned by the Gtk::Widget. * * @return the Gdk::GL::Drawable. */ Glib::RefPtr get_gl_drawable() { return widget_get_gl_drawable(*static_cast(this)); } /** Return the Gdk::GL::Drawable owned by the Gtk::Widget. * * @return the Gdk::GL::Drawable. */ Glib::RefPtr get_gl_drawable() const { return widget_get_gl_drawable(*static_cast(this)); } }; template Widget::~Widget() {} /** @example simple.cc * * Simple gtkglextmm example. * */ /** @example simple-mixed.cc * * Simple gtkglextmm example for mixing OpenGL and GDK rendering. * */ } // namespace GL } // namespace Gtk #endif // _GTKMM_GL_WIDGET_H gtkglextmm-1.2.0/gtkglext/gtkmm/gl/init.h0000644000175000001440000001170707627357445015331 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GTKMM_GL_INIT_H #define _GTKMM_GL_INIT_H namespace Gtk { namespace GL { /** Initialize gtkglextmm library. * * This function does the same work as Gdk::GL::init() with only * a single change: It does not terminate the program if the library can't be * initialized. Instead it returns false on failure. * * This way the application can fall back to some other means of communication * with the user - for example a curses or command line interface. * * @param argc Reference of the argc parameter of your * main() function. Changed if any arguments were * handled. * @param argv Reference of the argv parameter of * main(). Any parameters understood by Gtk::GL::init() * are stripped before return. * @return true if the library has been successfully initialized, * false otherwise. */ bool init_check(int& argc, char**& argv); /** Initialize gtkglextmm library. * * This function does the same work as Gdk::GL::init() with only * a single change: It does not terminate the program if the library can't be * initialized. Instead it returns false on failure. * * This way the application can fall back to some other means of communication * with the user - for example a curses or command line interface. * * @param argc Address of the argc parameter of your * main() function. Changed if any arguments were * handled. * @param argv Address of the argv parameter of * main(). Any parameters understood by Gtk::GL::init() * are stripped before return. * @return true if the library has been successfully initialized, * false otherwise. */ bool init_check(int* argc, char*** argv); /** Initialize gtkglextmm library. * * Call this function before using any other gtkglextmm functions in your * applications. It will initialize everything needed to operate the library * and parses some standard command line options. @a argc and * @a argv are adjusted accordingly so your own code will * never see those standard arguments. * * This function will terminate your program if it was unable to initialize * the library for some reason. If you want your program to fall back to a * textual interface you want to call Gtk::GL::init_check() instead. * * @param argc Reference of the argc parameter of your * main() function. Changed if any arguments were * handled. * @param argv Reference of the argv parameter of * main(). Any parameters understood by Gtk::GL::init() * are stripped before return. */ void init(int& argc, char**& argv); /** Initialize gtkglextmm library. * * Call this function before using any other gtkglextmm functions in your * applications. It will initialize everything needed to operate the library * and parses some standard command line options. @a argc and * @a argv are adjusted accordingly so your own code will * never see those standard arguments. * * This function will terminate your program if it was unable to initialize * the library for some reason. If you want your program to fall back to a * textual interface you want to call Gtk::GL::init_check() instead. * * @param argc Address of the argc parameter of your * main() function. Changed if any arguments were * handled. * @param argv Address of the argv parameter of * main(). Any parameters understood by Gtk::GL::init() * are stripped before return. */ void init(int* argc, char*** argv); } // namespace GL } // namespace Gtk #endif // _GTKMM_GL_INIT_H gtkglextmm-1.2.0/gtkglext/gtkmm/gl/drawingarea.cc0000644000175000001440000000173207630060670016766 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "drawingarea.h" namespace Gtk { namespace GL { DrawingArea::~DrawingArea() {} } // namespace GL } // namespace Gtk gtkglextmm-1.2.0/gtkglext/gtkmm/gl/widget.cc0000644000175000001440000001141710052323316015755 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include "widget.h" namespace Gtk { namespace GL { bool widget_set_gl_capability(Gtk::Widget& widget, const Glib::RefPtr& glconfig, const Glib::RefPtr& share_list, bool direct, int render_type) { return gtk_widget_set_gl_capability(widget.gobj(), const_cast(Glib::unwrap(glconfig)), const_cast(Glib::unwrap(share_list)), direct, render_type); } bool widget_set_gl_capability(Gtk::Widget& widget, const Glib::RefPtr& glconfig, bool direct, int render_type) { return gtk_widget_set_gl_capability(widget.gobj(), const_cast(Glib::unwrap(glconfig)), 0, direct, render_type); } bool widget_is_gl_capable(const Gtk::Widget& widget) { return gtk_widget_is_gl_capable(const_cast(widget.gobj())); } Glib::RefPtr widget_get_gl_config(const Gtk::Widget& widget) { Glib::RefPtr retvalue = Glib::wrap(gtk_widget_get_gl_config(const_cast(widget.gobj()))); if (retvalue) retvalue->reference(); return retvalue; } Glib::RefPtr widget_create_gl_context(const Gtk::Widget& widget, const Glib::RefPtr& share_list, bool direct, int render_type) { return Glib::wrap(gtk_widget_create_gl_context(const_cast(widget.gobj()), const_cast(Glib::unwrap(share_list)), direct, render_type)); } Glib::RefPtr widget_create_gl_context(const Gtk::Widget& widget, bool direct, int render_type) { return Glib::wrap(gtk_widget_create_gl_context(const_cast(widget.gobj()), 0, direct, render_type)); } Glib::RefPtr widget_get_gl_context(const Gtk::Widget& widget) { Glib::RefPtr retvalue = Glib::wrap(gtk_widget_get_gl_context(const_cast(widget.gobj()))); if (retvalue) retvalue->reference(); return retvalue; } Glib::RefPtr widget_get_gl_window(const Gtk::Widget& widget) { Glib::RefPtr retvalue = Glib::wrap(gtk_widget_get_gl_window(const_cast(widget.gobj()))); if (retvalue) retvalue->reference(); return retvalue; } Glib::RefPtr widget_get_gl_drawable(const Gtk::Widget& widget) { Glib::RefPtr retvalue = Glib::wrap(gtk_widget_get_gl_drawable(const_cast(widget.gobj()))); if (retvalue) retvalue->reference(); return retvalue; } } // namespace GL } // namespace Gtk gtkglextmm-1.2.0/gtkglext/gtkmm/gl/init.cc0000644000175000001440000000334607627357445015467 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include #include #include #include "init.h" namespace Gtk { namespace GL { static bool _init_check(int* argc, char*** argv) { static bool init_done = false; static bool result = false; if (!init_done) { result = gtk_gl_init_check(argc, argv); result &= Gdk::GL::init_check(argc, argv); init_done = true; } return result; } bool init_check(int& argc, char**& argv) { return _init_check(&argc, &argv); } bool init_check(int* argc, char*** argv) { return _init_check(argc, argv); } void init(int& argc, char**& argv) { if (!_init_check(&argc, &argv)) std::exit(1); } void init(int* argc, char*** argv) { if (!_init_check(argc, argv)) std::exit(1); } } // namespace GL } // namespace Gtk gtkglextmm-1.2.0/gtkglext/gtkmm/gl/version.h0000644000175000001440000000360610400725521016023 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GTKMM_GL_VERSION_H #define _GTKMM_GL_VERSION_H #include /* * Compile time version. */ #define GTKGLEXTMM_MAJOR_VERSION (1) #define GTKGLEXTMM_MINOR_VERSION (2) #define GTKGLEXTMM_MICRO_VERSION (0) #define GTKGLEXTMM_INTERFACE_AGE (0) #define GTKGLEXTMM_BINARY_AGE (0) /* * Check whether a gtkglextmm version equal to or greater than * major.minor.micro is present. */ #define GTKGLEXTMM_CHECK_VERSION(major, minor, micro) \ (GTKGLEXTMM_MAJOR_VERSION > (major) || \ (GTKGLEXTMM_MAJOR_VERSION == (major) && GTKGLEXTMM_MINOR_VERSION > (minor)) || \ (GTKGLEXTMM_MAJOR_VERSION == (major) && GTKGLEXTMM_MINOR_VERSION == (minor) && \ GTKGLEXTMM_MICRO_VERSION >= (micro))) /* * Library version. */ GTKMM_GL_VAR const int gtkglextmm_major_version; GTKMM_GL_VAR const int gtkglextmm_minor_version; GTKMM_GL_VAR const int gtkglextmm_micro_version; GTKMM_GL_VAR const int gtkglextmm_interface_age; GTKMM_GL_VAR const int gtkglextmm_binary_age; #endif // _GTKMM_GL_VERSION_H gtkglextmm-1.2.0/gtkglext/gtkmm/gl/version.cc0000644000175000001440000000223307627357445016203 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #include "version.h" const int gtkglextmm_major_version = GTKGLEXTMM_MAJOR_VERSION; const int gtkglextmm_minor_version = GTKGLEXTMM_MINOR_VERSION; const int gtkglextmm_micro_version = GTKGLEXTMM_MICRO_VERSION; const int gtkglextmm_interface_age = GTKGLEXTMM_INTERFACE_AGE; const int gtkglextmm_binary_age = GTKGLEXTMM_BINARY_AGE; gtkglextmm-1.2.0/gtkglext/gtkmm/gl/private/0000777000175000001440000000000010400731255015717 500000000000000gtkglextmm-1.2.0/gtkglext/gtkmm/gl/private/Makefile.am0000644000175000001440000000045507627357445017721 00000000000000 include $(srcdir)/../../../src/Makefile_list_of_hg.am_fragment files_built_h = $(files_hg:.hg=_p.h) private_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/gdkmm/gl/private private_include_HEADERS = $(files_built_h) maintainer-clean-local: (cd $(srcdir) && rm -f $(files_built_h)) gtkglextmm-1.2.0/gtkglext/gtkmm/gl/private/Makefile.in0000644000175000001440000002674410400725445017721 00000000000000# Makefile.in generated by automake 1.7.9 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@ # This file is include by other Makefile.am files, using the new automake include feature. # The include happens in Makefile.am, not Makefile.in or Makefile, # so it's like copy-and-pasting this into each of those Makefile.am files. 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ files_hg = files_built_h = $(files_hg:.hg=_p.h) private_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@/gdkmm/gl/private private_include_HEADERS = $(files_built_h) subdir = gtkglext/gtkmm/gl/private ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = DIST_SOURCES = HEADERS = $(private_include_HEADERS) DIST_COMMON = $(private_include_HEADERS) \ $(srcdir)/../../../src/Makefile_list_of_hg.am_fragment \ $(srcdir)/Makefile.in Makefile.am all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(srcdir)/../../../src/Makefile_list_of_hg.am_fragment $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gtkglext/gtkmm/gl/private/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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: private_includeHEADERS_INSTALL = $(INSTALL_HEADER) install-private_includeHEADERS: $(private_include_HEADERS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(private_includedir) @list='$(private_include_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(private_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(private_includedir)/$$f"; \ $(private_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(private_includedir)/$$f; \ done uninstall-private_includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(private_include_HEADERS)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f $(DESTDIR)$(private_includedir)/$$f"; \ rm -f $(DESTDIR)$(private_includedir)/$$f; \ 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)/./../../../src @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: $(mkinstalldirs) $(DESTDIR)$(private_includedir) 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-private_includeHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local 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-private_includeHEADERS .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-private_includeHEADERS \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic \ maintainer-clean-local mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am uninstall-private_includeHEADERS maintainer-clean-local: (cd $(srcdir) && rm -f $(files_built_h)) # 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: gtkglextmm-1.2.0/gtkglext/gtkmm/Makefile.am0000644000175000001440000000001507627357444015634 00000000000000SUBDIRS = gl gtkglextmm-1.2.0/gtkglext/gtkmm/Makefile.in0000644000175000001440000003571210400725444015637 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ SUBDIRS = gl subdir = gtkglext/gtkmm ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/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 = $(srcdir)/Makefile.in Makefile.am DIST_SUBDIRS = $(SUBDIRS) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gtkglext/gtkmm/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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) @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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 Makefile 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 Makefile 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: gtkglextmm-1.2.0/gtkglext/gtkglmm.h0000644000175000001440000000206307630570121014260 00000000000000// -*- C++ -*- /* gtkglextmm - C++ Wrapper for GtkGLExt * Copyright (C) 2002-2003 Naofumi Yasufuku * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _GTKGLMM_H #define _GTKGLMM_H #include #include #include #include #include #include #endif // _GTKGLMM_H gtkglextmm-1.2.0/gtkglext/Makefile.am0000644000175000001440000000023307627357444014517 00000000000000SUBDIRS = gtkmm DIST_SUBDIRS = src $(SUBDIRS) gtkglmm_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@ gtkglmm_include_HEADERS = gtkglmm.h gtkglextmm-1.2.0/gtkglext/Makefile.in0000644000175000001440000004010410400725444014507 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ SUBDIRS = gtkmm DIST_SUBDIRS = src $(SUBDIRS) gtkglmm_includedir = $(includedir)/gtkglextmm-@GTKGLEXTMM_API_VERSION@ gtkglmm_include_HEADERS = gtkglmm.h subdir = gtkglext ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = DIST_SOURCES = HEADERS = $(gtkglmm_include_HEADERS) 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 = $(gtkglmm_include_HEADERS) $(srcdir)/Makefile.in \ Makefile.am all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu gtkglext/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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: gtkglmm_includeHEADERS_INSTALL = $(INSTALL_HEADER) install-gtkglmm_includeHEADERS: $(gtkglmm_include_HEADERS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(gtkglmm_includedir) @list='$(gtkglmm_include_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(gtkglmm_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(gtkglmm_includedir)/$$f"; \ $(gtkglmm_includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(gtkglmm_includedir)/$$f; \ done uninstall-gtkglmm_includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(gtkglmm_include_HEADERS)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f $(DESTDIR)$(gtkglmm_includedir)/$$f"; \ rm -f $(DESTDIR)$(gtkglmm_includedir)/$$f; \ done # 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) @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 $(HEADERS) installdirs: installdirs-recursive installdirs-am: $(mkinstalldirs) $(DESTDIR)$(gtkglmm_includedir) 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: info: info-recursive info-am: install-data-am: install-gtkglmm_includeHEADERS install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile 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-gtkglmm_includeHEADERS 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-gtkglmm_includeHEADERS 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-gtkglmm_includeHEADERS 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: gtkglextmm-1.2.0/README.win320000644000175000001440000001246707757105033012454 00000000000000 g t k g l e x t m m - C++ Wrapper for GtkGLExt General Information =================== gtkglextmm is C++ wrapper for GtkGLExt, OpenGL Extension to GTK. The official web site is: http://gtkglext.sourceforge.net/ The official download & development information site is: http://sourceforge.net/projects/gtkglext/ Licensing ========= gtkglextmm libraries are released under the terms of the GNU Lesser General Public License (GNU LGPL). While components and programs included with this release are licensed under the terms of the GNU General Public License (GNU GPL). Supported Platforms =================== Currently gtkglextmm supports * UNIX and UNIX-like platforms Tested under Linux and FreeBSD. * Win32 platforms Tested under Windows XP Professional using MinGW/Cygwin environment. Requirements ============ * GNU C++ compiler (MinGW: http://www.mingw.org/) * GNU make * GtkGLExt (http://gtkglext.sourceforge.net/) * gtkmm 2 (http://gtkmm.sourceforge.net/) * GTK 2 (http://www.gtk.org/) You can find Win32 binaries on http://www.gimp.org/~tml/gimp/win32/ * OpenGL or Mesa (http://www.mesa3d.org/) OpenGL headers are also needed. You can use GL/*.h headers included in Cygwin opengl package or Microsoft's PlatformSDK. * Doxygen and Graphviz [optional] Doxygen (http://www.doxygen.org/) Graphviz (http://www.research.att.com/sw/tools/graphviz/) Multihead Support ================= Multihead support requires * GTK+ >= 2.1 * gtkmm >= 2.1 * GtkGLExt compiled with multihead support You can check whether installed GtkGLExt library supports multihead using the following command. $ pkg-config --variable=multihead gtkglext-1.0 Installation ============ To build and install gtkglextmm, type follows (use GNU make) $ ./configure --prefix=/foo/bar (other options...) $ make (or gmake) $ make install To compile example programs, type $ make examples Please read INSTALL or type "./configure --help" for more details. Configure Options ================= Debug options --enable-warnings=[none|minimum|maximum|hardcore] Control compiler pickyness. [default=minimum] Documentation options --enable-doxygen-doc use doxygen to build documentation [default=no] --with-html-dir=PATH path to installed docs [DATADIR/doc] Building gtkglextmm on Win32 ============================ Please note that GTK and gtkmm for Win32 are successfully installed and Win32-native (non-Cygwin) pkg-config.exe works with appropriate PKG_CONFIG_PATH. Personally I run configure like this: (GTK is installed in C:\gtk) $ export PATH=/cygdrive/c/gtk/bin:$PATH $ export PKG_CONFIG_PATH="c:/gtk/lib/pkgconfig" (gtkmm is installed in C:\gtkmm) $ export PKG_CONFIG_PATH="${PKG_CONFIG_PATH};c:/gtkmm/lib/pkgconfig" (GtkGLExt is installed in C:\gtkglext) $ export PKG_CONFIG_PATH="${PKG_CONFIG_PATH};c:/gtkglext/lib/pkgconfig" (MinGW is installed in C:\mingw) $ export PATH=/cygdrive/c/mingw/bin:$PATH $ env CXX='g++ -march=pentium' \ AR=/usr/bin/ar \ ./configure --prefix=c:/gtkglextmm \ --build=i386-pc-mingw32 \ --disable-static $ make $ make install $ export PKG_CONFIG_PATH="${PKG_CONFIG_PATH};c:/gtkglextmm/lib/pkgconfig" $ cd examples $ make -f Makefile.mingw Notice that you should use not MinGW's ar but Cygwin's ar under Cygwin environment. To build the binary installer, Nullsoft's NSIS is required. About NSIS, see http://nsis.sourceforge.net/. $ cp -rf examples c:/gtkglextmm/gtkglextmm-examples $ cp COPYING.LIB c:/gtkglextmm/ $ cp gtkglextmm.nsi c:/gtkglextmm/ $ cd c:/gtkglextmm/ $ makensis gtkglextmm.nsi Building the CVS Version of gtkglextmm ====================================== gtkglextmm's SourceForge CVS repository can be checked out through anonymous (pserver) CVS with the following instruction set. When prompted for a password for anonymous, simply press the Enter key. $ cvs \ -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gtkglext \ login $ cvs -z3 \ -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gtkglext \ co -r gtkglextmm-X-Y gtkglextmm (gtkglextmm-X-Y is a branch name. e.g. gtkglextmm-1-0 is 1.0.x branch.) When you are at work on the CVS version of gtkglextmm, you can use autogen.sh for generating configure script and Makefiles. $ env ACLOCAL_FLAGS='-I /cygdrive/c/gtk/share/aclocal' \ CXX='g++ -march=pentium' \ AR=/usr/bin/ar \ ./autogen.sh --prefix=c:/gtkglextmm \ --build=i386-pc-mingw32 \ --disable-static $ make $ make install $ export PKG_CONFIG_PATH="${PKG_CONFIG_PATH};c:/gtkglextmm/lib/pkgconfig" $ cd examples $ make -f Makefile.mingw You may have to set ACLOCAL_FLAGS environment variable for some m4 macros used in configure.in. The following versions of the GNU autotools are required. autoconf 2.54 and above automake 1.7.x libtool 1.5 Contact ======= Any patches, bug fixes and improvements are always welcome ;-) Naofumi Yasufuku (ˆÀ•Ÿ ®•¶) gtkglextmm-1.2.0/config.h.in0000644000175000001440000000312610400725426012637 00000000000000/* config.h.in. Generated from configure.in by autoheader. */ /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_GDKMM_DISPLAY_H /* Define to 1 if you have the header file. */ #undef HAVE_GDKMM_SCREEN_H /* 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 /* 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 /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to empty if `const' does not conform to ANSI C. */ #undef const gtkglextmm-1.2.0/gtkglextmm.spec0000644000175000001440000000624110400725517013655 00000000000000# -*- rpm-spec -*- %define base_version 1.2.0 %define api_version 1.2 %define rel 1 %define gtkglext_req_version 1.0.0 Summary: C++ Wrapper for GtkGLExt Name: gtkglextmm Version: %{base_version} Release: %{rel} License: LGPL Group: System Environment/Libraries URL: http://gtkglext.sourceforge.net/ Source0: ftp://dl.sourceforge.net/pub/sourceforge/gtkglext/gtkglextmm-%{version}.tar.gz BuildRoot: %{_tmppath}/gtkglextmm-%{version}-root Requires: gtkglext >= %{gtkglext_req_version} Requires: gtkmm2 Requires: gtk2 Requires: XFree86-libs BuildRequires: gtkglext-devel >= %{gtkglext_req_version} BuildRequires: gtkmm2-devel BuildRequires: gtk2-devel BuildRequires: XFree86-devel BuildRequires: pkgconfig %description gtkglextmm is C++ wrapper for GtkGLExt, OpenGL Extension to GTK. It enables C++ programmers to write OpenGL applications with gtkmm2. %package devel Summary: Development tools for GTK-based OpenGL applications Group: Development/Libraries Requires: %{name} = %{version} Requires: gtkglext-devel >= %{gtkglext_req_version} Requires: gtkmm2-devel Requires: gtk2-devel Requires: XFree86-devel %description devel The gtkglextmm-devel package contains the header files, static libraries, and developer docs for gtkglextmm. %prep %setup -q -n gtkglextmm-%{version} %build %configure --disable-doxygen-doc make %install rm -rf $RPM_BUILD_ROOT %makeinstall pushd "$RPM_BUILD_ROOT%{_libdir}" cp -p libgdkglextmm-x11-%{api_version}.la libgdkglextmm-x11-%{api_version}.la.bak cat libgdkglextmm-x11-%{api_version}.la.bak | \ sed -e "s| -L$RPM_BUILD_ROOT%{_libdir}||g" > libgdkglextmm-x11-%{api_version}.la rm -f libgdkglextmm-x11-%{api_version}.la.bak cp -p libgtkglextmm-x11-%{api_version}.la libgtkglextmm-x11-%{api_version}.la.bak cat libgtkglextmm-x11-%{api_version}.la.bak | \ sed -e "s| -L$RPM_BUILD_ROOT%{_libdir}||g" > libgtkglextmm-x11-%{api_version}.la rm -f libgtkglextmm-x11-%{api_version}.la.bak popd %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README TODO %{_libdir}/libgdkglextmm-x11-%{api_version}.so.* %{_libdir}/libgtkglextmm-x11-%{api_version}.so.* %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/gtkglextmm-%{api_version} %{_libdir}/lib*.so %{_libdir}/lib*.a %{_libdir}/lib*.la %{_libdir}/pkgconfig/* %{_datadir}/aclocal/* %{_datadir}/doc/* %changelog * Sun Aug 31 2003 Naofumi Yasufuku - Updated source URL. * Sun May 11 2003 Naofumi Yasufuku - Removed LDFLAGS setting. - Removed atk, pango, glib2 from Requires. - Remove lib*.la.bak files. * Mon Feb 24 2003 Naofumi Yasufuku - Added %{_datadir}/aclocal/* to the file list. * Tue Dec 17 2002 Naofumi Yasufuku - Changed documentation directory. * Mon Dec 16 2002 Naofumi Yasufuku - Added %{_libdir}/gtkglextmm-%{api_version} to the file list. * Thu Aug 8 2002 Naofumi Yasufuku - Documentation have been added. * Mon Jul 22 2002 Naofumi Yasufuku - Initial build. gtkglextmm-1.2.0/AUTHORS0000644000175000001440000000014107515122025011655 00000000000000 Original Author =============== Naofumi Yasufuku (°ÂÊ¡ ¾°Ê¸) gtkglextmm-1.2.0/INSTALL0000644000175000001440000002230607515122105011644 00000000000000Copyright 1994, 1995, 1996, 1999, 2000, 2001 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. (Caching is disabled by default to prevent problems with accidental use of stale cache files.) If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You only need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for variables by setting them in the environment. You can do that on the command line like this: ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not support the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it cannot guess the host type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. If you are _building_ compiler tools for cross-compiling, you should use the `--target=TYPE' option to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the host platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. In this case, you should also specify the build platform with `--build=TYPE', because, in this case, it may not be possible to guess the build platform (it sometimes involves compiling and running simple test programs, and this can't be done if the compiler is a cross compiler). Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc will cause the specified gcc to be used as the C compiler (unless it is overridden in the site shell script). `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--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. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. gtkglextmm-1.2.0/examples/0000777000175000001440000000000010400731257012513 500000000000000gtkglextmm-1.2.0/examples/gears.cc0000644000175000001440000004464610052337374014062 00000000000000// -*- C++ -*- /* * 3-D gear wheels. This program is in the public domain. * * Brian Paul */ /* Conversion to gtkglextmm by Naofumi Yasufuku */ #include #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include /////////////////////////////////////////////////////////////////////////////// // // OpenGL frame buffer configuration utilities. // /////////////////////////////////////////////////////////////////////////////// struct GLConfigUtil { static void print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean); static void examine_gl_attrib(const Glib::RefPtr& glconfig); }; // // Print a configuration attribute. // void GLConfigUtil::print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean) { int value; if (glconfig->get_attrib(attrib, value)) { std::cout << attrib_str << " = "; if (is_boolean) std::cout << (value == true ? "true" : "false") << std::endl; else std::cout << value << std::endl; } else { std::cout << "*** Cannot get " << attrib_str << " attribute value\n"; } } // // Print configuration attributes. // void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr& glconfig) { std::cout << "\nOpenGL visual configurations :\n\n"; std::cout << "glconfig->is_rgba() = " << (glconfig->is_rgba() ? "true" : "false") << std::endl; std::cout << "glconfig->is_double_buffered() = " << (glconfig->is_double_buffered() ? "true" : "false") << std::endl; std::cout << "glconfig->is_stereo() = " << (glconfig->is_stereo() ? "true" : "false") << std::endl; std::cout << "glconfig->has_alpha() = " << (glconfig->has_alpha() ? "true" : "false") << std::endl; std::cout << "glconfig->has_depth_buffer() = " << (glconfig->has_depth_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_stencil_buffer() = " << (glconfig->has_stencil_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_accum_buffer() = " << (glconfig->has_accum_buffer() ? "true" : "false") << std::endl; std::cout << std::endl; print_gl_attrib(glconfig, "Gdk::GL::USE_GL", Gdk::GL::USE_GL, true); print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE", Gdk::GL::BUFFER_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::LEVEL", Gdk::GL::LEVEL, false); print_gl_attrib(glconfig, "Gdk::GL::RGBA", Gdk::GL::RGBA, true); print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER", Gdk::GL::DOUBLEBUFFER, true); print_gl_attrib(glconfig, "Gdk::GL::STEREO", Gdk::GL::STEREO, true); print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS", Gdk::GL::AUX_BUFFERS, false); print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE", Gdk::GL::RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE", Gdk::GL::GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE", Gdk::GL::BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE", Gdk::GL::ALPHA_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE", Gdk::GL::DEPTH_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE", Gdk::GL::STENCIL_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE", Gdk::GL::ACCUM_RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE", Gdk::GL::ACCUM_BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false); std::cout << std::endl; } /////////////////////////////////////////////////////////////////////////////// // // Gears scene. // /////////////////////////////////////////////////////////////////////////////// class GearsScene : public Gtk::GL::DrawingArea { public: explicit GearsScene(bool is_sync = true); virtual ~GearsScene(); protected: void gear(GLfloat inner_radius, GLfloat outer_radius, GLfloat width, GLint teeth, GLfloat tooth_depth); protected: // signal handlers: virtual void on_realize(); virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); virtual bool on_map_event(GdkEventAny* event); virtual bool on_unmap_event(GdkEventAny* event); virtual bool on_visibility_notify_event(GdkEventVisibility* event); virtual bool on_idle(); public: // Invalidate whole window. void invalidate() { get_window()->invalidate_rect(get_allocation(), false); } // Update window synchronously (fast). void update() { get_window()->process_updates(false); } protected: // idle signal connection: sigc::connection m_ConnectionIdle; public: // get & set view rotation values. void get_view_rot(GLfloat& x, GLfloat& y, GLfloat& z) { x = m_ViewRotX; y = m_ViewRotY; z = m_ViewRotZ; } void set_view_rot(GLfloat x, GLfloat y, GLfloat z) { m_ViewRotX = x; m_ViewRotY = y; m_ViewRotZ = z; } protected: // OpenGL scene related variables: GLint m_Gear1; GLint m_Gear2; GLint m_Gear3; GLfloat m_ViewRotX; GLfloat m_ViewRotY; GLfloat m_ViewRotZ; GLfloat m_Angle; bool m_IsSync; protected: // frame rate evaluation stuff: Glib::Timer m_Timer; int m_Frames; }; GearsScene::GearsScene(bool is_sync) : m_Gear1(0), m_Gear2(0), m_Gear3(0), m_ViewRotX(20.0), m_ViewRotY(30.0), m_ViewRotZ(0.0), m_Angle(0.0), m_IsSync(is_sync), m_Frames(0) { // // Configure OpenGL-capable visual. // Glib::RefPtr glconfig; // Try double-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_DOUBLE); if (!glconfig) { std::cerr << "*** Cannot find the double-buffered visual.\n" << "*** Trying single-buffered visual.\n"; // Try single-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH); if (!glconfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } } // print frame buffer attributes. GLConfigUtil::examine_gl_attrib(glconfig); // // Set OpenGL-capability to the widget. // set_gl_capability(glconfig); // Add events. add_events(Gdk::VISIBILITY_NOTIFY_MASK); } GearsScene::~GearsScene() { } /* * Draw a gear wheel. You'll probably want to call this function when * building a display list since we do a lot of trig here. * * Input: inner_radius - radius of hole at center * outer_radius - radius at center of teeth * width - width of gear * teeth - number of teeth * tooth_depth - depth of tooth */ void GearsScene::gear(GLfloat inner_radius, GLfloat outer_radius, GLfloat width, GLint teeth, GLfloat tooth_depth) { GLint i; GLfloat r0, r1, r2; GLfloat angle, da; GLfloat u, v, len; r0 = inner_radius; r1 = outer_radius - tooth_depth / 2.0; r2 = outer_radius + tooth_depth / 2.0; da = 2.0 * G_PI / teeth / 4.0; glShadeModel(GL_FLAT); glNormal3f(0.0, 0.0, 1.0); /* draw front face */ glBegin(GL_QUAD_STRIP); for (i = 0; i <= teeth; i++) { angle = i * 2.0 * G_PI / teeth; glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); if (i < teeth) { glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5); } } glEnd(); /* draw front sides of teeth */ glBegin(GL_QUADS); da = 2.0 * G_PI / teeth / 4.0; for (i = 0; i < teeth; i++) { angle = i * 2.0 * G_PI / teeth; glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5); glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), width * 0.5); glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5); } glEnd(); glNormal3f(0.0, 0.0, -1.0); /* draw back face */ glBegin(GL_QUAD_STRIP); for (i = 0; i <= teeth; i++) { angle = i * 2.0 * G_PI / teeth; glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5); if (i < teeth) { glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5); glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5); } } glEnd(); /* draw back sides of teeth */ glBegin(GL_QUADS); da = 2.0 * G_PI / teeth / 4.0; for (i = 0; i < teeth; i++) { angle = i * 2.0 * G_PI / teeth; glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5); glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), -width * 0.5); glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), -width * 0.5); glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); } glEnd(); /* draw outward faces of teeth */ glBegin(GL_QUAD_STRIP); for (i = 0; i < teeth; i++) { angle = i * 2.0 * G_PI / teeth; glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); u = r2 * cos(angle + da) - r1 * cos(angle); v = r2 * sin(angle + da) - r1 * sin(angle); len = sqrt(u * u + v * v); u /= len; v /= len; glNormal3f(v, -u, 0.0); glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5); glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), -width * 0.5); glNormal3f(cos(angle), sin(angle), 0.0); glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), width * 0.5); glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), -width * 0.5); u = r1 * cos(angle + 3 * da) - r2 * cos(angle + 2 * da); v = r1 * sin(angle + 3 * da) - r2 * sin(angle + 2 * da); glNormal3f(v, -u, 0.0); glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5); glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5); glNormal3f(cos(angle), sin(angle), 0.0); } glVertex3f(r1 * cos(0), r1 * sin(0), width * 0.5); glVertex3f(r1 * cos(0), r1 * sin(0), -width * 0.5); glEnd(); glShadeModel(GL_SMOOTH); /* draw inside radius cylinder */ glBegin(GL_QUAD_STRIP); for (i = 0; i <= teeth; i++) { angle = i * 2.0 * G_PI / teeth; glNormal3f(-cos(angle), -sin(angle), 0.0); glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5); glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); } glEnd(); } void GearsScene::on_realize() { // We need to call the base on_realize() Gtk::DrawingArea::on_realize(); // // Get GL::Drawable. // Glib::RefPtr gldrawable = get_gl_drawable(); // // GL calls. // // *** OpenGL BEGIN *** if (!gldrawable->gl_begin(get_gl_context())) return; static GLfloat pos[4] = {5.0, 5.0, 10.0, 0.0}; static GLfloat red[4] = {0.8, 0.1, 0.0, 1.0}; static GLfloat green[4] = {0.0, 0.8, 0.2, 1.0}; static GLfloat blue[4] = {0.2, 0.2, 1.0, 1.0}; glLightfv(GL_LIGHT0, GL_POSITION, pos); glEnable(GL_CULL_FACE); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST); // Make the gears. m_Gear1 = glGenLists(1); glNewList(m_Gear1, GL_COMPILE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, red); gear(1.0, 4.0, 1.0, 20, 0.7); glEndList(); m_Gear2 = glGenLists(1); glNewList(m_Gear2, GL_COMPILE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, green); gear(0.5, 2.0, 2.0, 10, 0.7); glEndList(); m_Gear3 = glGenLists(1); glNewList(m_Gear3, GL_COMPILE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, blue); gear(1.3, 2.0, 0.5, 10, 0.7); glEndList(); glEnable(GL_NORMALIZE); std::cout << "GL_RENDERER = " << glGetString(GL_RENDERER) << std::endl; std::cout << "GL_VERSION = " << glGetString(GL_VERSION) << std::endl; std::cout << "GL_VENDOR = " << glGetString(GL_VENDOR) << std::endl; std::cout << "GL_EXTENSIONS = " << glGetString(GL_EXTENSIONS) << std::endl; std::cout << std::endl; gldrawable->gl_end(); // *** OpenGL END *** // Start timer. m_Timer.start(); } bool GearsScene::on_configure_event(GdkEventConfigure* event) { // // Get GL::Drawable. // Glib::RefPtr gldrawable = get_gl_drawable(); // // GL calls. // // *** OpenGL BEGIN *** if (!gldrawable->gl_begin(get_gl_context())) return false; GLfloat h = (GLfloat)(get_height()) / (GLfloat)(get_width()); glViewport(0, 0, get_width(), get_height()); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glFrustum(-1.0, 1.0, -h, h, 5.0, 60.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glTranslatef(0.0, 0.0, -40.0); gldrawable->gl_end(); // *** OpenGL END *** return true; } bool GearsScene::on_expose_event(GdkEventExpose* event) { // // Get GL::Drawable. // Glib::RefPtr gldrawable = get_gl_drawable(); // // GL calls. // // *** OpenGL BEGIN *** if (!gldrawable->gl_begin(get_gl_context())) return false; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glPushMatrix(); glRotatef(m_ViewRotX, 1.0, 0.0, 0.0); glRotatef(m_ViewRotY, 0.0, 1.0, 0.0); glRotatef(m_ViewRotZ, 0.0, 0.0, 1.0); glPushMatrix(); glTranslatef(-3.0, -2.0, 0.0); glRotatef(m_Angle, 0.0, 0.0, 1.0); glCallList(m_Gear1); glPopMatrix(); glPushMatrix(); glTranslatef(3.1, -2.0, 0.0); glRotatef(-2.0 * m_Angle - 9.0, 0.0, 0.0, 1.0); glCallList(m_Gear2); glPopMatrix(); glPushMatrix(); glTranslatef(-3.1, 4.2, 0.0); glRotatef(-2.0 * m_Angle - 25.0, 0.0, 0.0, 1.0); glCallList(m_Gear3); glPopMatrix(); glPopMatrix(); // Swap buffers. if (gldrawable->is_double_buffered()) gldrawable->swap_buffers(); else glFlush(); gldrawable->gl_end(); // *** OpenGL END *** // // Print frame rate. // ++m_Frames; double seconds = m_Timer.elapsed(); if (seconds >= 5.0) { // std::cout.setf(std::ios_base::fixed, std::ios_base::floatfield); std::cout.setf(std::ios::fixed, std::ios::floatfield); std::cout.precision(3); std::cout << m_Frames << " frames in " << seconds << " seconds = " << (m_Frames / seconds) << " FPS\n"; m_Timer.reset(); m_Frames = 0; } return true; } bool GearsScene::on_map_event(GdkEventAny* event) { if (!m_ConnectionIdle.connected()) m_ConnectionIdle = Glib::signal_idle().connect( sigc::mem_fun(*this, &GearsScene::on_idle), GDK_PRIORITY_REDRAW); return true; } bool GearsScene::on_unmap_event(GdkEventAny* event) { if (m_ConnectionIdle.connected()) m_ConnectionIdle.disconnect(); return true; } bool GearsScene::on_visibility_notify_event(GdkEventVisibility* event) { if (event->state == GDK_VISIBILITY_FULLY_OBSCURED) { if (m_ConnectionIdle.connected()) m_ConnectionIdle.disconnect(); } else { if (!m_ConnectionIdle.connected()) m_ConnectionIdle = Glib::signal_idle().connect( sigc::mem_fun(*this, &GearsScene::on_idle), GDK_PRIORITY_REDRAW); } return true; } bool GearsScene::on_idle() { m_Angle += 2.0; // Invalidate the whole window. invalidate(); // Update window synchronously (fast). if (m_IsSync) update(); return true; } /////////////////////////////////////////////////////////////////////////////// // // The application class. // /////////////////////////////////////////////////////////////////////////////// class Gears : public Gtk::Window { public: explicit Gears(bool is_sync = true); virtual ~Gears(); protected: // signal handlers: void on_button_quit_clicked(); virtual bool on_key_press_event(GdkEventKey* event); protected: // member widgets: Gtk::VBox m_VBox; GearsScene m_GearsScene; Gtk::Button m_ButtonQuit; }; Gears::Gears(bool is_sync) : m_VBox(false, 0), m_GearsScene(is_sync), m_ButtonQuit("Quit") { // // Top-level window. // set_title("Gears"); // Get automatically redrawn if any of their children changed allocation. set_reallocate_redraws(true); add(m_VBox); // // Gears scene. // m_GearsScene.set_size_request(300, 300); m_VBox.pack_start(m_GearsScene); // // Simple quit button. // m_ButtonQuit.signal_clicked().connect( sigc::mem_fun(*this, &Gears::on_button_quit_clicked)); m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0); // // Show window. // show_all(); } Gears::~Gears() { } void Gears::on_button_quit_clicked() { Gtk::Main::quit(); } bool Gears::on_key_press_event(GdkEventKey* event) { GLfloat x, y, z; m_GearsScene.get_view_rot(x, y, z); switch (event->keyval) { case GDK_z: z += 5.0; break; case GDK_Z: z -= 5.0; break; case GDK_Up: x += 5.0; break; case GDK_Down: x -= 5.0; break; case GDK_Left: y += 5.0; break; case GDK_Right: y -= 5.0; break; case GDK_Escape: Gtk::Main::quit(); break; default: return true; } m_GearsScene.set_view_rot(x, y, z); m_GearsScene.invalidate(); return true; } /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Parse arguments. // bool is_sync = true; for (int i = 1; i < argc; ++i) { if (std::strcmp(argv[i], "--async") == 0) is_sync = false; } // // Instantiate and run the application. // Gears gears(is_sync); kit.run(gears); return 0; } gtkglextmm-1.2.0/examples/logo-model.c0000644000175000001440000000765207577337376014674 00000000000000/* * logo-model.c: * Functions for drawing GtkGLExt logo models. * * written by Naofumi Yasufuku */ #include #if defined(_WIN32) && !defined(__CYGWIN__) #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include "logo-model.h" void logo_draw_cube (void) { static GLfloat n[6][3] = { { -1.0, 0.0, 0.0 }, { 0.0, 1.0, 0.0 }, { 1.0, 0.0, 0.0 }, { 0.0, -1.0, 0.0 }, { 0.0, 0.0, 1.0 }, { 0.0, 0.0, -1.0 } }; static GLint faces[6][4] = { { 0, 1, 2, 3 }, { 3, 2, 6, 7 }, { 7, 6, 5, 4 }, { 4, 5, 1, 0 }, { 5, 6, 2, 1 }, { 7, 4, 0, 3 } }; static GLfloat v[8][3] = { { -5.5, -5.5, -5.5 }, { -5.5, -5.5, 5.5 }, { -5.5, 5.5, 5.5 }, { -5.5, 5.5, -5.5 }, { 5.5, -5.5, -5.5 }, { 5.5, -5.5, 5.5 }, { 5.5, 5.5, 5.5 }, { 5.5, 5.5, -5.5 } }; GLint i; for (i = 5; i >= 0; i--) { glBegin(GL_QUADS); glNormal3fv(&n[i][0]); glVertex3fv(&v[faces[i][0]][0]); glVertex3fv(&v[faces[i][1]][0]); glVertex3fv(&v[faces[i][2]][0]); glVertex3fv(&v[faces[i][3]][0]); glEnd(); } } void logo_draw_g_plane (void) { static GLfloat n[3] = { 0.0, 1.0, 0.0 }; static GLfloat v[4][3] = { { -5.0, 6.5, -5.0 }, { -5.0, 6.5, 5.0 }, { 5.0, 6.5, 5.0 }, { 5.0, 6.5, -5.0 } }; glBegin(GL_QUADS); glNormal3f(n[0], n[1], n[2]); glVertex3f(v[0][0], v[0][1], v[0][2]); glVertex3f(v[1][0], v[1][1], v[1][2]); glVertex3f(v[2][0], v[2][1], v[2][2]); glVertex3f(v[3][0], v[3][1], v[3][2]); glEnd(); } void logo_draw_t_plane (void) { static GLfloat n[3] = { 0.0, 0.0, 1.0 }; static GLfloat v[4][3] = { { -5.0, 5.0, 6.5 }, { -5.0, -5.0, 6.5 }, { 5.0, -5.0, 6.5 }, { 5.0, 5.0, 6.5 } }; glBegin(GL_QUADS); glNormal3f(n[0], n[1], n[2]); glVertex3f(v[0][0], v[0][1], v[0][2]); glVertex3f(v[1][0], v[1][1], v[1][2]); glVertex3f(v[2][0], v[2][1], v[2][2]); glVertex3f(v[3][0], v[3][1], v[3][2]); glEnd(); } void logo_draw_k_plane () { static GLfloat n[3] = { 1.0, 0.0, 0.0 }; static GLfloat v[4][3] = { { 6.5, 5.0, 5.0 }, { 6.5, -5.0, 5.0 }, { 6.5, -5.0, -5.0 }, { 6.5, 5.0, -5.0 } }; glBegin(GL_QUADS); glNormal3f(n[0], n[1], n[2]); glVertex3f(v[0][0], v[0][1], v[0][2]); glVertex3f(v[1][0], v[1][1], v[1][2]); glVertex3f(v[2][0], v[2][1], v[2][2]); glVertex3f(v[3][0], v[3][1], v[3][2]); glEnd(); } static void logo_draw_triangle (GLfloat *v0, GLfloat *v1, GLfloat *v2) { GLfloat w0[3], w1[3]; GLfloat n[3], m; w0[0] = v1[0] - v0[0]; w0[1] = v1[1] - v0[1]; w0[2] = v1[2] - v0[2]; w1[0] = v2[0] - v1[0]; w1[1] = v2[1] - v1[1]; w1[2] = v2[2] - v1[2]; n[0] = w0[1]*w1[2] - w0[2]*w1[1]; n[1] = w0[2]*w1[0] - w0[0]*w1[2]; n[2] = w0[0]*w1[1] - w0[1]*w1[0]; m = n[0]*n[0] + n[1]*n[1] + n[2]*n[2]; if (m > 0.0) { m = 1.0 / sqrt(m); n[0] *= m; n[1] *= m; n[2] *= m; } glBegin(GL_TRIANGLES); glNormal3fv(&n[0]); glVertex3fv(&v0[0]); glVertex3fv(&v1[0]); glVertex3fv(&v2[0]); glEnd(); } /* AC3D triangle data */ #include "logo-g.c" void logo_draw_g (void) { GLint i; for (i = 0; i < LOGO_G_V_SIZE; i++) logo_draw_triangle(&logo_g_v[i][2][0], &logo_g_v[i][1][0], &logo_g_v[i][0][0]); } /* AC3D triangle data */ #include "logo-t.c" void logo_draw_t (void) { GLint i; for (i = 0; i < LOGO_T_V_SIZE; i++) logo_draw_triangle(&logo_t_v[i][2][0], &logo_t_v[i][1][0], &logo_t_v[i][0][0]); } /* AC3D triangle data */ #include "logo-k.c" void logo_draw_k (void) { GLint i; for (i = 0; i < LOGO_K_V_SIZE; i++) logo_draw_triangle(&logo_k_v[i][2][0], &logo_k_v[i][1][0], &logo_k_v[i][0][0]); } gtkglextmm-1.2.0/examples/logo-model.h0000644000175000001440000000117707577337376014675 00000000000000/* * logo-model.h: * Functions for drawing GtkGLExt logo models. * * written by Naofumi Yasufuku */ #ifndef __LOGO_MODEL_H__ #define __LOGO_MODEL_H__ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* * Draw center cube. */ void logo_draw_cube (void); /* * Draw "G", "T", "K" color planes. */ void logo_draw_g_plane (void); void logo_draw_t_plane (void); void logo_draw_k_plane (void); /* * Draw "G", "T", "K" 3D characters. */ void logo_draw_g (void); void logo_draw_t (void); void logo_draw_k (void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __LOGO_MODEL_H__ */ gtkglextmm-1.2.0/examples/logo.cc0000644000175000001440000005200010052337374013700 00000000000000// -*- C++ -*- /* * logo.cc: * GtkGLExt logo demo. * * written by Naofumi Yasufuku */ #include #include #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include "logo.h" // // logo_draw_*() functions. // namespace LogoModel { #include "logo-model.h" } // // Trackball utilities. // namespace Trackball { extern "C" { #include "trackball.h" } } #define DIG_2_RAD (G_PI / 180.0) #define RAD_2_DIG (180.0 / G_PI) /////////////////////////////////////////////////////////////////////////////// // // OpenGL frame buffer configuration utilities. // /////////////////////////////////////////////////////////////////////////////// struct GLConfigUtil { static void print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean); static void examine_gl_attrib(const Glib::RefPtr& glconfig); }; // // Print a configuration attribute. // void GLConfigUtil::print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean) { int value; if (glconfig->get_attrib(attrib, value)) { std::cout << attrib_str << " = "; if (is_boolean) std::cout << (value == true ? "true" : "false") << std::endl; else std::cout << value << std::endl; } else { std::cout << "*** Cannot get " << attrib_str << " attribute value\n"; } } // // Print configuration attributes. // void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr& glconfig) { std::cout << "\nOpenGL visual configurations :\n\n"; std::cout << "glconfig->is_rgba() = " << (glconfig->is_rgba() ? "true" : "false") << std::endl; std::cout << "glconfig->is_double_buffered() = " << (glconfig->is_double_buffered() ? "true" : "false") << std::endl; std::cout << "glconfig->is_stereo() = " << (glconfig->is_stereo() ? "true" : "false") << std::endl; std::cout << "glconfig->has_alpha() = " << (glconfig->has_alpha() ? "true" : "false") << std::endl; std::cout << "glconfig->has_depth_buffer() = " << (glconfig->has_depth_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_stencil_buffer() = " << (glconfig->has_stencil_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_accum_buffer() = " << (glconfig->has_accum_buffer() ? "true" : "false") << std::endl; std::cout << std::endl; print_gl_attrib(glconfig, "Gdk::GL::USE_GL", Gdk::GL::USE_GL, true); print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE", Gdk::GL::BUFFER_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::LEVEL", Gdk::GL::LEVEL, false); print_gl_attrib(glconfig, "Gdk::GL::RGBA", Gdk::GL::RGBA, true); print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER", Gdk::GL::DOUBLEBUFFER, true); print_gl_attrib(glconfig, "Gdk::GL::STEREO", Gdk::GL::STEREO, true); print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS", Gdk::GL::AUX_BUFFERS, false); print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE", Gdk::GL::RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE", Gdk::GL::GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE", Gdk::GL::BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE", Gdk::GL::ALPHA_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE", Gdk::GL::DEPTH_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE", Gdk::GL::STENCIL_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE", Gdk::GL::ACCUM_RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE", Gdk::GL::ACCUM_BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false); std::cout << std::endl; } /////////////////////////////////////////////////////////////////////////////// // // Logo classes. // /////////////////////////////////////////////////////////////////////////////// namespace Logo { // // View class implementation. // const float View::NEAR_CLIP = 2.0; const float View::FAR_CLIP = 60.0; const float View::INIT_POS_X = 0.0; const float View::INIT_POS_Y = 0.0; const float View::INIT_POS_Z = -30.0; const float View::INIT_AXIS_X = 1.0; const float View::INIT_AXIS_Y = 0.0; const float View::INIT_AXIS_Z = 0.0; const float View::INIT_ANGLE = 20.0; const float View::INIT_SCALE = 1.0; const float View::SCALE_MAX = 2.0; const float View::SCALE_MIN = 0.5; View::View() : m_Scale(INIT_SCALE), m_BeginX(0.0), m_BeginY(0.0) { reset(); } View::~View() { } void View::frustum(int w, int h) { glViewport(0, 0, w, h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w > h) { float aspect = static_cast(w) / static_cast(h); glFrustum(-aspect, aspect, -1.0, 1.0, NEAR_CLIP, FAR_CLIP); } else { float aspect = static_cast(h) / static_cast(w); glFrustum(-1.0, 1.0, -aspect, aspect, NEAR_CLIP, FAR_CLIP); } glMatrixMode(GL_MODELVIEW); } void View::xform() { glTranslatef(m_Pos[0], m_Pos[1], m_Pos[2]); glScalef(m_Scale, m_Scale, m_Scale); float m[4][4]; Trackball::build_rotmatrix(m, m_Quat); glMultMatrixf(&m[0][0]); } void View::reset() { m_Pos[0] = INIT_POS_X; m_Pos[1] = INIT_POS_Y; m_Pos[2] = INIT_POS_Z; float sine = sin(0.5 * INIT_ANGLE * DIG_2_RAD); m_Quat[0] = INIT_AXIS_X * sine; m_Quat[1] = INIT_AXIS_Y * sine; m_Quat[2] = INIT_AXIS_Z * sine; m_Quat[3] = cos(0.5 * INIT_ANGLE * DIG_2_RAD); m_Scale = INIT_SCALE; } bool View::on_button_press_event(GdkEventButton* event, Scene* scene) { m_BeginX = event->x; m_BeginY = event->y; // don't block return false; } bool View::on_motion_notify_event(GdkEventMotion* event, Scene* scene) { if (scene == 0) return false; float w = scene->get_width(); float h = scene->get_height(); float x = event->x; float y = event->y; float d_quat[4]; bool redraw = false; // Rotation. if (event->state & GDK_BUTTON1_MASK) { Trackball::trackball(d_quat, (2.0 * m_BeginX - w) / w, (h - 2.0 * m_BeginY) / h, (2.0 * x - w) / w, (h - 2.0 * y) / h); Trackball::add_quats(d_quat, m_Quat, m_Quat); redraw = true; } // Scaling. if (event->state & GDK_BUTTON2_MASK) { m_Scale = m_Scale * (1.0 + (y - m_BeginY) / h); if (m_Scale > SCALE_MAX) m_Scale = SCALE_MAX; else if (m_Scale < SCALE_MIN) m_Scale = SCALE_MIN; redraw = true; } m_BeginX = x; m_BeginY = y; if (redraw && !scene->anim_is_enabled()) scene->invalidate(); // don't block return false; } // // Model class implementation. // const float Model::MAT_SPECULAR[4] = { 0.5, 0.5, 0.5, 1.0 }; const float Model::MAT_SHININESS[1] = { 10.0 }; const float Model::MAT_BLACK[4] = { 0.0, 0.0, 0.0, 1.0 }; const float Model::MAT_RED[4] = { 1.0, 0.0, 0.0, 1.0 }; const float Model::MAT_GREEN[4] = { 0.0, 1.0, 0.0, 1.0 }; const float Model::MAT_BLUE[4] = { 0.0, 0.0, 1.0, 1.0 }; const unsigned int Model::DEFAULT_ROT_COUNT = 100; static float AXIS_X[3] = { 1.0, 0.0, 0.0 }; static float AXIS_Y[3] = { 0.0, 1.0, 0.0 }; static float AXIS_Z[3] = { 0.0, 0.0, 1.0 }; const Model::RotMode Model::ROT_MODE[] = { { AXIS_X, 1.0 }, { AXIS_Y, 1.0 }, { AXIS_X, 1.0 }, { AXIS_Z, 1.0 }, { AXIS_X, 1.0 }, { AXIS_Y, -1.0 }, { AXIS_X, 1.0 }, { AXIS_Z, -1.0 }, { 0, 0.0 } // terminator }; Model::Model(unsigned int rot_count, bool enable_anim) : m_RotCount(rot_count), m_EnableAnim(enable_anim), m_Mode(0), m_Counter(0) { reset_anim(); } Model::~Model() { } void Model::init_gl() { glEnable(GL_CULL_FACE); glPushMatrix(); glMaterialfv(GL_FRONT, GL_SPECULAR, MAT_SPECULAR); glMaterialfv(GL_FRONT, GL_SHININESS, MAT_SHININESS); /* Center black cube. */ glNewList(CUBE, GL_COMPILE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK); LogoModel::logo_draw_cube(); glEndList(); /* Forward "G". */ glNewList(G_FORWARD, GL_COMPILE); glDisable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLUE); LogoModel::logo_draw_g_plane(); glEnable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK); LogoModel::logo_draw_g(); glEndList(); /* Backward "G". */ glNewList(G_BACKWARD, GL_COMPILE); glPushMatrix(); glRotatef(180.0, 1.0, 0.0, 0.0); glDisable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLUE); LogoModel::logo_draw_g_plane(); glEnable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK); LogoModel::logo_draw_g(); glPopMatrix(); glEndList(); /* Forward "T". */ glNewList(T_FORWARD, GL_COMPILE); glDisable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_RED); LogoModel::logo_draw_t_plane(); glEnable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK); LogoModel::logo_draw_t(); glEndList(); /* Backward "T". */ glNewList(T_BACKWARD, GL_COMPILE); glPushMatrix(); glRotatef(180.0, 1.0, 0.0, 0.0); glDisable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_RED); LogoModel::logo_draw_t_plane(); glEnable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK); LogoModel::logo_draw_t(); glPopMatrix(); glEndList(); /* Forward "K". */ glNewList(K_FORWARD, GL_COMPILE); glDisable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_GREEN); LogoModel::logo_draw_k_plane(); glEnable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK); LogoModel::logo_draw_k(); glEndList(); /* Backward "K". */ glNewList(K_BACKWARD, GL_COMPILE); glPushMatrix(); glRotatef(180.0, 0.0, 0.0, 1.0); glDisable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_GREEN); LogoModel::logo_draw_k_plane(); glEnable(GL_CULL_FACE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, MAT_BLACK); LogoModel::logo_draw_k(); glPopMatrix(); glEndList(); glPopMatrix(); glEnable(GL_NORMALIZE); } void Model::draw() { // Init GL context. static bool initialized = false; if (!initialized) { init_gl(); initialized = true; } // Animation. if (m_EnableAnim) { if (m_Counter == m_RotCount) { if (ROT_MODE[++m_Mode].axis == 0) m_Mode = 0; m_Counter = 0; } float d_quat[4]; Trackball::axis_to_quat(ROT_MODE[m_Mode].axis, ROT_MODE[m_Mode].sign * G_PI_2 / m_RotCount, d_quat); Trackball::add_quats(d_quat, m_Quat, m_Quat); ++m_Counter; } // Draw logo model. glPushMatrix(); glTranslatef(m_Pos[0], m_Pos[1], m_Pos[2]); float m[4][4]; Trackball::build_rotmatrix(m, m_Quat); glMultMatrixf(&m[0][0]); glRotatef(90.0, 1.0, 0.0, 0.0); glCallList(CUBE); glCallList(G_FORWARD); glCallList(G_BACKWARD); glCallList(T_FORWARD); glCallList(T_BACKWARD); glCallList(K_FORWARD); glCallList(K_BACKWARD); glPopMatrix(); } void Model::reset_anim() { m_Pos[0] = 0.0; m_Pos[1] = 0.0; m_Pos[2] = 0.0; m_Quat[0] = 0.0; m_Quat[1] = 0.0; m_Quat[2] = 0.0; m_Quat[3] = 1.0; m_Mode = 0; m_Counter = 0; } // // Scene class implementation. // const unsigned int Scene::TIMEOUT_INTERVAL = 10; const float Scene::CLEAR_COLOR[4] = { 0.5, 0.5, 0.8, 1.0 }; const float Scene::CLEAR_DEPTH = 1.0; const float Scene::LIGHT0_POSITION[4] = { 0.0, 0.0, 30.0, 0.0 }; const float Scene::LIGHT0_DIFFUSE[4] = { 1.0, 1.0, 1.0, 1.0 }; const float Scene::LIGHT0_SPECULAR[4] = { 1.0, 1.0, 1.0, 1.0 }; Scene::Scene(unsigned int rot_count, bool enable_anim) : m_Menu(0), m_Model(rot_count, enable_anim) { // // Configure OpenGL-capable visual. // Glib::RefPtr glconfig; // Try double-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_DOUBLE); if (!glconfig) { std::cerr << "*** Cannot find the double-buffered visual.\n" << "*** Trying single-buffered visual.\n"; // Try single-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH); if (!glconfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } } // print frame buffer attributes. GLConfigUtil::examine_gl_attrib(glconfig); // // Set OpenGL-capability to the widget. // set_gl_capability(glconfig); // // Add events. // add_events(Gdk::BUTTON1_MOTION_MASK | Gdk::BUTTON2_MOTION_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::VISIBILITY_NOTIFY_MASK); // View transformation signals. signal_button_press_event().connect( sigc::bind(sigc::mem_fun(m_View, &View::on_button_press_event), this)); signal_motion_notify_event().connect( sigc::bind(sigc::mem_fun(m_View, &View::on_motion_notify_event), this)); // // Popup menu. // m_Menu = create_popup_menu(); } Scene::~Scene() { } void Scene::on_realize() { // We need to call the base on_realize() Gtk::DrawingArea::on_realize(); // // Get GL::Drawable. // Glib::RefPtr gldrawable = get_gl_drawable(); // // GL calls. // // *** OpenGL BEGIN *** if (!gldrawable->gl_begin(get_gl_context())) return; glClearColor(CLEAR_COLOR[0], CLEAR_COLOR[1], CLEAR_COLOR[2], CLEAR_COLOR[3]); glClearDepth(CLEAR_DEPTH); glLightfv(GL_LIGHT0, GL_POSITION, LIGHT0_POSITION); glLightfv(GL_LIGHT0, GL_DIFFUSE, LIGHT0_DIFFUSE); glLightfv(GL_LIGHT0, GL_SPECULAR, LIGHT0_SPECULAR); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST); glShadeModel(GL_SMOOTH); gldrawable->gl_end(); // *** OpenGL END *** } bool Scene::on_configure_event(GdkEventConfigure* event) { // // Get GL::Drawable. // Glib::RefPtr gldrawable = get_gl_drawable(); // // GL calls. // // *** OpenGL BEGIN *** if (!gldrawable->gl_begin(get_gl_context())) return false; m_View.frustum(get_width(), get_height()); gldrawable->gl_end(); // *** OpenGL END *** return true; } bool Scene::on_expose_event(GdkEventExpose* event) { // // Get GL::Drawable. // Glib::RefPtr gldrawable = get_gl_drawable(); // // GL calls. // // *** OpenGL BEGIN *** if (!gldrawable->gl_begin(get_gl_context())) return false; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); // View transformation. m_View.xform(); // Logo model. m_Model.draw(); // Swap buffers. if (gldrawable->is_double_buffered()) gldrawable->swap_buffers(); else glFlush(); gldrawable->gl_end(); // *** OpenGL END *** return true; } bool Scene::on_button_press_event(GdkEventButton* event) { if (event->button == 3) { m_Menu->popup(event->button, event->time); return true; } // don't block return false; } bool Scene::on_map_event(GdkEventAny* event) { if (m_Model.anim_is_enabled()) timeout_add(); return true; } bool Scene::on_unmap_event(GdkEventAny* event) { timeout_remove(); return true; } bool Scene::on_visibility_notify_event(GdkEventVisibility* event) { if (m_Model.anim_is_enabled()) { if (event->state == GDK_VISIBILITY_FULLY_OBSCURED) timeout_remove(); else timeout_add(); } return true; } bool Scene::on_timeout() { // Invalidate whole window. invalidate(); // Update window synchronously (fast). update(); return true; } void Scene::timeout_add() { if (!m_ConnectionTimeout.connected()) m_ConnectionTimeout = Glib::signal_timeout().connect( sigc::mem_fun(*this, &Scene::on_timeout), TIMEOUT_INTERVAL); } void Scene::timeout_remove() { if (m_ConnectionTimeout.connected()) m_ConnectionTimeout.disconnect(); } void Scene::toggle_anim() { if (m_Model.anim_is_enabled()) { m_Model.disable_anim(); timeout_remove(); } else { m_Model.enable_anim(); timeout_add(); } } void Scene::init_anim() { m_View.reset(); m_Model.reset_anim(); invalidate(); } Gtk::Menu* Scene::create_popup_menu() { Gtk::Menu* menu = Gtk::manage(new Gtk::Menu()); Gtk::Menu::MenuList& menu_list = menu->items(); // Toggle animation menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Toggle Animation", sigc::mem_fun(*this, &Scene::toggle_anim))); // Init orientation menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Initialize", sigc::mem_fun(*this, &Scene::init_anim))); // Quit menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Quit", sigc::ptr_fun(&Gtk::Main::quit))); return menu; } // // Application class implementation. // const Glib::ustring Application::APP_NAME = "Logo"; Application::Application(unsigned int rot_count, bool enable_anim) : m_VBox(false, 0), m_Scene(rot_count, enable_anim), m_ButtonQuit("Quit") { // // Top-level window. // set_title(APP_NAME); // Get automatically redrawn if any of their children changed allocation. set_reallocate_redraws(true); add(m_VBox); // // Application scene. // m_Scene.set_size_request(300, 300); m_VBox.pack_start(m_Scene); // // Simple quit button. // m_ButtonQuit.signal_clicked().connect( sigc::mem_fun(*this, &Application::on_button_quit_clicked)); m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0); // // Show window. // show_all(); } Application::~Application() { } void Application::on_button_quit_clicked() { Gtk::Main::quit(); } bool Application::on_key_press_event(GdkEventKey* event) { switch (event->keyval) { case GDK_a: m_Scene.toggle_anim(); break; case GDK_i: m_Scene.init_anim(); break; case GDK_Escape: Gtk::Main::quit(); break; default: return true; } m_Scene.invalidate(); return true; } } // namespace Logo /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Parse arguments. // unsigned int rot_count = Logo::Model::DEFAULT_ROT_COUNT; bool enable_anim = true; bool arg_count = false; for (int i = 1; i < argc; ++i) { if (arg_count) rot_count = std::atoi(argv[i]); if (std::strcmp(argv[i], "--help") == 0 || std::strcmp(argv[i], "-h") == 0) { std::cerr << "Usage: " << argv[0] << " [-count num] [-noanim] [--help]\n"; std::exit(0); } if (std::strcmp(argv[i], "-count") == 0) arg_count = true; if (std::strcmp(argv[i], "-noanim") == 0) enable_anim = false; } // // Query OpenGL extension version. // int major, minor; Gdk::GL::query_version(major, minor); std::cout << "OpenGL extension version - " << major << "." << minor << std::endl; // // Instantiate and run the application. // Logo::Application application(rot_count, enable_anim); kit.run(application); return 0; } gtkglextmm-1.2.0/examples/share-lists.cc0000644000175000001440000002223610052337374015206 00000000000000// -*- C++ -*- /* * share-lists.cc: * Simple display list sharing example. * * written by Naofumi Yasufuku */ #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include /////////////////////////////////////////////////////////////////////////////// // // Simple OpenGL scene base class. // /////////////////////////////////////////////////////////////////////////////// class SimpleGLScene : public Gtk::GL::DrawingArea { public: explicit SimpleGLScene(const Glib::RefPtr& config); SimpleGLScene(const Glib::RefPtr& config, const Glib::RefPtr& share_list); virtual ~SimpleGLScene(); protected: virtual void init_gl(); protected: virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); public: // Gtk::Widget::realize() is protected, so that ... void realize() { Gtk::GL::DrawingArea::realize(); } public: void set_light_diffuse(GLfloat r, GLfloat g, GLfloat b, GLfloat a) { m_LightDiffuse[0] = r; m_LightDiffuse[1] = g; m_LightDiffuse[2] = b; m_LightDiffuse[3] = a; } void set_light_position(GLfloat x, GLfloat y, GLfloat z, GLfloat w) { m_LightPosition[0] = x; m_LightPosition[1] = y; m_LightPosition[2] = z; m_LightPosition[3] = w; } protected: GLfloat m_LightDiffuse[4]; GLfloat m_LightPosition[4]; }; SimpleGLScene::SimpleGLScene(const Glib::RefPtr& config) : Gtk::GL::DrawingArea(config) { set_light_diffuse(1.0, 1.0, 1.0, 1.0); set_light_position(1.0, 1.0, 1.0, 0.0); } SimpleGLScene::SimpleGLScene(const Glib::RefPtr& config, const Glib::RefPtr& share_list) : Gtk::GL::DrawingArea(config, share_list) { set_light_diffuse(1.0, 1.0, 1.0, 1.0); set_light_position(1.0, 1.0, 1.0, 0.0); } SimpleGLScene::~SimpleGLScene() { } void SimpleGLScene::init_gl() { glLightfv(GL_LIGHT0, GL_DIFFUSE, m_LightDiffuse); glLightfv(GL_LIGHT0, GL_POSITION, m_LightPosition); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST); glClearColor(1.0, 1.0, 1.0, 1.0); glClearDepth(1.0); glViewport(0, 0, get_width(), get_height()); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(40.0, 1.0, 1.0, 10.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); glTranslatef(0.0, 0.0, -3.0); } bool SimpleGLScene::on_configure_event(GdkEventConfigure* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; glViewport(0, 0, get_width(), get_height()); glwindow->gl_end(); // *** OpenGL END *** return true; } bool SimpleGLScene::on_expose_event(GdkEventExpose* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glCallList(1); // Swap buffers. if (glwindow->is_double_buffered()) glwindow->swap_buffers(); else glFlush(); glwindow->gl_end(); // *** OpenGL END *** return true; } /////////////////////////////////////////////////////////////////////////////// // // SimpleGLSceneMain (creates display lists) // /////////////////////////////////////////////////////////////////////////////// class SimpleGLSceneMain : public SimpleGLScene { public: explicit SimpleGLSceneMain(const Glib::RefPtr& config); virtual ~SimpleGLSceneMain(); protected: virtual void on_realize(); }; SimpleGLSceneMain::SimpleGLSceneMain(const Glib::RefPtr& config) : SimpleGLScene(config) { } SimpleGLSceneMain::~SimpleGLSceneMain() { } void SimpleGLSceneMain::on_realize() { // We need to call the base on_realize() SimpleGLScene::on_realize(); // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return; // Create display list #1 GLUquadricObj* qobj = gluNewQuadric(); gluQuadricDrawStyle(qobj, GLU_FILL); glNewList(1, GL_COMPILE); gluSphere(qobj, 1.0, 20, 20); glEndList(); // Initialize rendering context init_gl(); glwindow->gl_end(); // *** OpenGL END *** } /////////////////////////////////////////////////////////////////////////////// // // SimpleGLSceneSub (shares display lists) // /////////////////////////////////////////////////////////////////////////////// class SimpleGLSceneSub : public SimpleGLScene { public: SimpleGLSceneSub(const Glib::RefPtr& config, const Glib::RefPtr& share_list); virtual ~SimpleGLSceneSub(); protected: virtual void on_realize(); }; SimpleGLSceneSub::SimpleGLSceneSub(const Glib::RefPtr& config, const Glib::RefPtr& share_list) : SimpleGLScene(config, share_list) { } SimpleGLSceneSub::~SimpleGLSceneSub() { } void SimpleGLSceneSub::on_realize() { // We need to call the base on_realize() SimpleGLScene::on_realize(); // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return; // Initialize rendering context init_gl(); glwindow->gl_end(); // *** OpenGL END *** } /////////////////////////////////////////////////////////////////////////////// // // The application class. // /////////////////////////////////////////////////////////////////////////////// class Simple : public Gtk::Window { public: explicit Simple(const Glib::RefPtr& config); virtual ~Simple(); protected: // signal handlers: void on_button_quit_clicked(); protected: // member widgets: Gtk::VBox m_VBox; SimpleGLScene *m_GLScene1; SimpleGLScene *m_GLScene2; SimpleGLScene *m_GLScene3; Gtk::Button m_ButtonQuit; }; Simple::Simple(const Glib::RefPtr& config) : m_VBox(false, 10), m_ButtonQuit("Quit") { // // Top-level window. // set_title("share-lists"); // Get automatically redrawn if any of their children changed allocation. set_reallocate_redraws(true); // Set border width. set_border_width(10); add(m_VBox); // // OpenGL scene #1 (SimpleGLSceneMain: creates display lists) // m_GLScene1 = new SimpleGLSceneMain(config); m_GLScene1->set_size_request(120, 120); m_GLScene1->set_light_diffuse(1.0, 0.0, 0.0, 0.0); // red m_VBox.pack_start(*m_GLScene1); // // Get OpenGL rendering context. // m_GLScene1->realize(); Glib::RefPtr glcontext = m_GLScene1->get_gl_context(); // // OpenGL scene #2 (SimpleGLSceneSub: shares display lists) // m_GLScene2 = new SimpleGLSceneSub(config, glcontext); m_GLScene2->set_size_request(120, 120); m_GLScene2->set_light_diffuse(1.0, 1.0, 0.0, 0.0); // yellow m_VBox.pack_start(*m_GLScene2); // // OpenGL scene #3 (SimpleGLSceneSub: shares display lists) // m_GLScene3 = new SimpleGLSceneSub(config, glcontext); m_GLScene3->set_size_request(120, 120); m_GLScene3->set_light_diffuse(0.0, 1.0, 0.0, 0.0); // green m_VBox.pack_start(*m_GLScene3); // // Simple quit button. // m_ButtonQuit.signal_clicked().connect( sigc::mem_fun(*this, &Simple::on_button_quit_clicked)); m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0); // // Show window. // show_all(); } Simple::~Simple() { delete m_GLScene1; delete m_GLScene2; delete m_GLScene3; } void Simple::on_button_quit_clicked() { Gtk::Main::quit(); } /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Configure OpenGL-capable visual. // Glib::RefPtr glconfig; // Try double-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_DOUBLE); if (!glconfig) { std::cerr << "*** Cannot find the double-buffered visual.\n" << "*** Trying single-buffered visual.\n"; // Try single-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH); if (!glconfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } } // // Instantiate and run the application. // Simple simple(glconfig); kit.run(simple); return 0; } gtkglextmm-1.2.0/examples/button.cc0000644000175000001440000002167010052337374014264 00000000000000// -*- C++ -*- /* * button.cc: * Simple toggle button example. * * written by Naofumi Yasufuku */ #include #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include /////////////////////////////////////////////////////////////////////////////// // // OpenGL scene. // /////////////////////////////////////////////////////////////////////////////// class GLScene : public Gtk::GL::DrawingArea { public: static const unsigned int TIMEOUT_INTERVAL; public: GLScene(const Glib::RefPtr& config); virtual ~GLScene(); protected: virtual void on_realize(); virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); virtual bool on_map_event(GdkEventAny* event); virtual bool on_unmap_event(GdkEventAny* event); virtual bool on_visibility_notify_event(GdkEventVisibility* event); virtual bool on_timeout(); public: // Invalidate whole window. void invalidate() { get_window()->invalidate_rect(get_allocation(), false); } // Update window synchronously (fast). void update() { get_window()->process_updates(false); } protected: void timeout_add(); void timeout_remove(); public: void toggle_animation(); protected: bool m_Animate; // timeout signal connection: sigc::connection m_ConnectionTimeout; protected: GLfloat m_Angle; GLfloat m_PosY; }; const unsigned int GLScene::TIMEOUT_INTERVAL = 10; GLScene::GLScene(const Glib::RefPtr& config) : Gtk::GL::DrawingArea(config), m_Animate(true), m_Angle(0.0), m_PosY(0.0) { set_size_request(200, 200); add_events(Gdk::VISIBILITY_NOTIFY_MASK); } GLScene::~GLScene() { } void GLScene::on_realize() { // We need to call the base on_realize() Gtk::GL::DrawingArea::on_realize(); // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return; static GLfloat ambient[] = { 0.0, 0.0, 0.0, 1.0 }; static GLfloat diffuse[] = { 1.0, 1.0, 1.0, 1.0 }; static GLfloat position[] = { 1.0, 1.0, 1.0, 0.0 }; static GLfloat lmodel_ambient[] = {0.2, 0.2, 0.2, 1.0}; static GLfloat local_view[] = {0.0}; glLightfv (GL_LIGHT0, GL_AMBIENT, ambient); glLightfv (GL_LIGHT0, GL_DIFFUSE, diffuse); glLightfv (GL_LIGHT0, GL_POSITION, position); glLightModelfv (GL_LIGHT_MODEL_AMBIENT, lmodel_ambient); glLightModelfv (GL_LIGHT_MODEL_LOCAL_VIEWER, local_view); glEnable (GL_LIGHTING); glEnable (GL_LIGHT0); glEnable (GL_DEPTH_TEST); glClearColor (1.0, 1.0, 1.0, 1.0); glClearDepth (1.0); glwindow->gl_end(); // *** OpenGL END *** } bool GLScene::on_configure_event(GdkEventConfigure* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; GLfloat w = get_width(); GLfloat h = get_height(); GLfloat aspect; glViewport(0, 0, static_cast(w), static_cast(h)); glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w > h) { aspect = w / h; glFrustum(-aspect, aspect, -1.0, 1.0, 5.0, 60.0); } else { aspect = h / w; glFrustum(-1.0, 1.0, -aspect, aspect, 5.0, 60.0); } glMatrixMode(GL_MODELVIEW); glwindow->gl_end(); // *** OpenGL END *** return true; } bool GLScene::on_expose_event(GdkEventExpose* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; // brass static GLfloat ambient[4] = { 0.329412, 0.223529, 0.027451, 1.0 }; static GLfloat diffuse[4] = { 0.780392, 0.568627, 0.113725, 1.0 }; static GLfloat specular[4] = { 0.992157, 0.941176, 0.807843, 1.0 }; static GLfloat shininess = 0.21794872 * 128.0; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glTranslatef(0.0, 0.0, -10.0); glPushMatrix(); glTranslatef(0.0, m_PosY, 0.0); glRotatef(m_Angle, 0.0, 1.0, 0.0); glMaterialfv(GL_FRONT, GL_AMBIENT, ambient); glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse); glMaterialfv(GL_FRONT, GL_SPECULAR, specular); glMaterialf(GL_FRONT, GL_SHININESS, shininess); glwindow->draw_torus(true, 0.3, 0.6, 30, 30); glPopMatrix(); // Swap buffers. if (glwindow->is_double_buffered()) glwindow->swap_buffers(); else glFlush(); glwindow->gl_end(); // *** OpenGL END *** return true; } bool GLScene::on_timeout() { m_Angle += 1.0; if (m_Angle >= 360.0) m_Angle -= 360.0; float t = m_Angle * G_PI / 180.0; if (t > G_PI) t = 2.0 * G_PI - t; m_PosY = 2.0 * (std::sin (t) + 0.4 * std::sin (3.0*t)) - 1.0; // Invalidate whole window. invalidate(); // Update window synchronously (fast). update(); return true; } void GLScene::timeout_add() { if (!m_ConnectionTimeout.connected()) m_ConnectionTimeout = Glib::signal_timeout().connect( sigc::mem_fun(*this, &GLScene::on_timeout), TIMEOUT_INTERVAL); } void GLScene::timeout_remove() { if (m_ConnectionTimeout.connected()) m_ConnectionTimeout.disconnect(); } bool GLScene::on_map_event(GdkEventAny* event) { if (m_Animate) timeout_add(); return true; } bool GLScene::on_unmap_event(GdkEventAny* event) { timeout_remove(); return true; } bool GLScene::on_visibility_notify_event(GdkEventVisibility* event) { if (m_Animate) { if (event->state == GDK_VISIBILITY_FULLY_OBSCURED) timeout_remove(); else timeout_add(); } return true; } void GLScene::toggle_animation() { m_Animate = !m_Animate; if (m_Animate) { timeout_add(); } else { timeout_remove(); invalidate(); } } /////////////////////////////////////////////////////////////////////////////// // // Toggle button which contains an OpenGL scene. // /////////////////////////////////////////////////////////////////////////////// class GLToggleButton : public Gtk::ToggleButton { public: GLToggleButton(const Glib::RefPtr& config); virtual ~GLToggleButton(); protected: virtual void on_toggled(); protected: Gtk::VBox m_VBox; GLScene m_GLScene; Gtk::Label m_Label; }; GLToggleButton::GLToggleButton(const Glib::RefPtr& config) : m_VBox(false, 0), m_GLScene(config), m_Label("Toggle Animation") { m_VBox.set_border_width(10); m_VBox.pack_start(m_GLScene); m_VBox.pack_start(m_Label, Gtk::PACK_SHRINK, 10); add(m_VBox); } GLToggleButton::~GLToggleButton() { } void GLToggleButton::on_toggled() { m_GLScene.toggle_animation(); } /////////////////////////////////////////////////////////////////////////////// // // The application class. // /////////////////////////////////////////////////////////////////////////////// class Button : public Gtk::Window { public: Button(const Glib::RefPtr& config); virtual ~Button(); protected: virtual bool on_delete_event(GdkEventAny* event); protected: // member widgets: GLToggleButton m_Button; }; Button::Button(const Glib::RefPtr& config) : m_Button(config) { // // Top-level window. // set_title("button"); // Get automatically redrawn if any of their children changed allocation. set_reallocate_redraws(true); // Set border width. set_border_width(10); // // Add toggle button. // add(m_Button); // // Show window. // show_all(); } Button::~Button() { } bool Button::on_delete_event(GdkEventAny* event) { Gtk::Main::quit(); return true; } /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Configure OpenGL-capable visual. // Glib::RefPtr glconfig; // Try double-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_DOUBLE); if (!glconfig) { std::cerr << "*** Cannot find the double-buffered visual.\n" << "*** Trying single-buffered visual.\n"; // Try single-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH); if (!glconfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } } // // Instantiate and run the application. // Button button(glconfig); kit.run(button); return 0; } gtkglextmm-1.2.0/examples/shapes.cc0000644000175000001440000006313510052337374014236 00000000000000// -*- C++ -*- /* * shapes.cc: * shapes demo. * * written by Naofumi Yasufuku */ #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include #include "shapes.h" // // Trackball utilities. // namespace Trackball { extern "C" { #include "trackball.h" } } #define DIG_2_RAD (G_PI / 180.0) #define RAD_2_DIG (180.0 / G_PI) /////////////////////////////////////////////////////////////////////////////// // // OpenGL frame buffer configuration utilities. // /////////////////////////////////////////////////////////////////////////////// struct GLConfigUtil { static void print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean); static void examine_gl_attrib(const Glib::RefPtr& glconfig); }; // // Print a configuration attribute. // void GLConfigUtil::print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean) { int value; if (glconfig->get_attrib(attrib, value)) { std::cout << attrib_str << " = "; if (is_boolean) std::cout << (value == true ? "true" : "false") << std::endl; else std::cout << value << std::endl; } else { std::cout << "*** Cannot get " << attrib_str << " attribute value\n"; } } // // Print configuration attributes. // void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr& glconfig) { std::cout << "\nOpenGL visual configurations :\n\n"; std::cout << "glconfig->is_rgba() = " << (glconfig->is_rgba() ? "true" : "false") << std::endl; std::cout << "glconfig->is_double_buffered() = " << (glconfig->is_double_buffered() ? "true" : "false") << std::endl; std::cout << "glconfig->is_stereo() = " << (glconfig->is_stereo() ? "true" : "false") << std::endl; std::cout << "glconfig->has_alpha() = " << (glconfig->has_alpha() ? "true" : "false") << std::endl; std::cout << "glconfig->has_depth_buffer() = " << (glconfig->has_depth_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_stencil_buffer() = " << (glconfig->has_stencil_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_accum_buffer() = " << (glconfig->has_accum_buffer() ? "true" : "false") << std::endl; std::cout << std::endl; print_gl_attrib(glconfig, "Gdk::GL::USE_GL", Gdk::GL::USE_GL, true); print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE", Gdk::GL::BUFFER_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::LEVEL", Gdk::GL::LEVEL, false); print_gl_attrib(glconfig, "Gdk::GL::RGBA", Gdk::GL::RGBA, true); print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER", Gdk::GL::DOUBLEBUFFER, true); print_gl_attrib(glconfig, "Gdk::GL::STEREO", Gdk::GL::STEREO, true); print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS", Gdk::GL::AUX_BUFFERS, false); print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE", Gdk::GL::RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE", Gdk::GL::GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE", Gdk::GL::BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE", Gdk::GL::ALPHA_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE", Gdk::GL::DEPTH_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE", Gdk::GL::STENCIL_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE", Gdk::GL::ACCUM_RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE", Gdk::GL::ACCUM_BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false); std::cout << std::endl; } /////////////////////////////////////////////////////////////////////////////// // // Shapes classes. // /////////////////////////////////////////////////////////////////////////////// namespace Shapes { // // View class implementation. // const float View::NEAR_CLIP = 5.0; const float View::FAR_CLIP = 60.0; const float View::INIT_POS_X = 0.0; const float View::INIT_POS_Y = 0.0; const float View::INIT_POS_Z = -10.0; const float View::INIT_AXIS_X = 1.0; const float View::INIT_AXIS_Y = 0.0; const float View::INIT_AXIS_Z = 0.0; const float View::INIT_ANGLE = 0.0; const float View::INIT_SCALE = 1.0; const float View::SCALE_MAX = 2.0; const float View::SCALE_MIN = 0.5; const float View::ANIMATE_THRESHOLD = 25.0; View::View() : m_Scale(INIT_SCALE), m_BeginX(0.0), m_BeginY(0.0), m_DX(0.0), m_DY(0.0), m_Animate(false) { reset(); } View::~View() { } void View::frustum(int w, int h) { glViewport(0, 0, w, h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (w > h) { float aspect = static_cast(w) / static_cast(h); glFrustum(-aspect, aspect, -1.0, 1.0, NEAR_CLIP, FAR_CLIP); } else { float aspect = static_cast(h) / static_cast(w); glFrustum(-1.0, 1.0, -aspect, aspect, NEAR_CLIP, FAR_CLIP); } glMatrixMode(GL_MODELVIEW); } void View::xform() { glTranslatef(m_Pos[0], m_Pos[1], m_Pos[2]); glScalef(m_Scale, m_Scale, m_Scale); float m[4][4]; Trackball::add_quats(m_QuatDiff, m_Quat, m_Quat); Trackball::build_rotmatrix(m, m_Quat); glMultMatrixf(&m[0][0]); } void View::reset() { m_Pos[0] = INIT_POS_X; m_Pos[1] = INIT_POS_Y; m_Pos[2] = INIT_POS_Z; float sine = sin(0.5 * INIT_ANGLE * DIG_2_RAD); m_Quat[0] = INIT_AXIS_X * sine; m_Quat[1] = INIT_AXIS_Y * sine; m_Quat[2] = INIT_AXIS_Z * sine; m_Quat[3] = cos(0.5 * INIT_ANGLE * DIG_2_RAD); m_Scale = INIT_SCALE; m_QuatDiff[0] = 0.0; m_QuatDiff[1] = 0.0; m_QuatDiff[2] = 0.0; m_QuatDiff[3] = 1.0; } void View::enable_animation() { m_Animate = true; } void View::disable_animation() { m_Animate = false; m_QuatDiff[0] = 0.0; m_QuatDiff[1] = 0.0; m_QuatDiff[2] = 0.0; m_QuatDiff[3] = 1.0; } bool View::on_button_press_event(GdkEventButton* event, Scene* scene) { if (is_animate()) { if (event->button == 1) { disable_animation(); scene->idle_remove(); scene->invalidate(); } } else { m_QuatDiff[0] = 0.0; m_QuatDiff[1] = 0.0; m_QuatDiff[2] = 0.0; m_QuatDiff[3] = 1.0; } m_BeginX = event->x; m_BeginY = event->y; // don't block return false; } bool View::on_button_release_event(GdkEventButton* event, Scene* scene) { if (!is_animate()) { if (event->button == 1 && ((m_DX*m_DX + m_DY*m_DY) > ANIMATE_THRESHOLD)) { enable_animation(); scene->idle_add(); } } m_DX = 0.0; m_DY = 0.0; // don't block return false; } bool View::on_motion_notify_event(GdkEventMotion* event, Scene* scene) { float w = scene->get_width(); float h = scene->get_height(); float x = event->x; float y = event->y; bool redraw = false; // Rotation. if (event->state & GDK_BUTTON1_MASK) { Trackball::trackball(m_QuatDiff, (2.0 * m_BeginX - w) / w, (h - 2.0 * m_BeginY) / h, (2.0 * x - w) / w, (h - 2.0 * y) / h); m_DX = x - m_BeginX; m_DY = y - m_BeginY; redraw = true; } // Scaling. if (event->state & GDK_BUTTON2_MASK) { m_Scale = m_Scale * (1.0 + (y - m_BeginY) / h); if (m_Scale > SCALE_MAX) m_Scale = SCALE_MAX; else if (m_Scale < SCALE_MIN) m_Scale = SCALE_MIN; redraw = true; } m_BeginX = x; m_BeginY = y; if (redraw) scene->invalidate(); // don't block return false; } // // Model class implementation. // const unsigned int Model::NUM_SHAPES = 9; const Model::ShapeType Model::SHAPE_CUBE = CUBE; const Model::ShapeType Model::SHAPE_SPHERE = SPHERE; const Model::ShapeType Model::SHAPE_CONE = CONE; const Model::ShapeType Model::SHAPE_TORUS = TORUS; const Model::ShapeType Model::SHAPE_TETRAHEDRON = TETRAHEDRON; const Model::ShapeType Model::SHAPE_OCTAHEDRON = OCTAHEDRON; const Model::ShapeType Model::SHAPE_DODECAHEDRON = DODECAHEDRON; const Model::ShapeType Model::SHAPE_ICOSAHEDRON = ICOSAHEDRON; const Model::ShapeType Model::SHAPE_TEAPOT = TEAPOT; const Model::MaterialProp Model::MAT_EMERALD = { {0.0215, 0.1745, 0.0215, 1.0}, {0.07568, 0.61424, 0.07568, 1.0}, {0.633, 0.727811, 0.633, 1.0}, 0.6 }; const Model::MaterialProp Model::MAT_JADE = { {0.135, 0.2225, 0.1575, 1.0}, {0.54, 0.89, 0.63, 1.0}, {0.316228, 0.316228, 0.316228, 1.0}, 0.1 }; const Model::MaterialProp Model::MAT_OBSIDIAN = { {0.05375, 0.05, 0.06625, 1.0}, {0.18275, 0.17, 0.22525, 1.0}, {0.332741, 0.328634, 0.346435, 1.0}, 0.3 }; const Model::MaterialProp Model::MAT_PEARL = { {0.25, 0.20725, 0.20725, 1.0}, {1.0, 0.829, 0.829, 1.0}, {0.296648, 0.296648, 0.296648, 1.0}, 0.088 }; const Model::MaterialProp Model::MAT_RUBY = { {0.1745, 0.01175, 0.01175, 1.0}, {0.61424, 0.04136, 0.04136, 1.0}, {0.727811, 0.626959, 0.626959, 1.0}, 0.6 }; const Model::MaterialProp Model::MAT_TURQUOISE = { {0.1, 0.18725, 0.1745, 1.0}, {0.396, 0.74151, 0.69102, 1.0}, {0.297254, 0.30829, 0.306678, 1.0}, 0.1 }; const Model::MaterialProp Model::MAT_BRASS = { {0.329412, 0.223529, 0.027451, 1.0}, {0.780392, 0.568627, 0.113725, 1.0}, {0.992157, 0.941176, 0.807843, 1.0}, 0.21794872 }; const Model::MaterialProp Model::MAT_BRONZE = { {0.2125, 0.1275, 0.054, 1.0}, {0.714, 0.4284, 0.18144, 1.0}, {0.393548, 0.271906, 0.166721, 1.0}, 0.2 }; const Model::MaterialProp Model::MAT_CHROME = { {0.25, 0.25, 0.25, 1.0}, {0.4, 0.4, 0.4, 1.0}, {0.774597, 0.774597, 0.774597, 1.0}, 0.6 }; const Model::MaterialProp Model::MAT_COPPER = { {0.19125, 0.0735, 0.0225, 1.0}, {0.7038, 0.27048, 0.0828, 1.0}, {0.256777, 0.137622, 0.086014, 1.0}, 0.1 }; const Model::MaterialProp Model::MAT_GOLD = { {0.24725, 0.1995, 0.0745, 1.0}, {0.75164, 0.60648, 0.22648, 1.0}, {0.628281, 0.555802, 0.366065, 1.0}, 0.4 }; const Model::MaterialProp Model::MAT_SILVER = { {0.19225, 0.19225, 0.19225, 1.0}, {0.50754, 0.50754, 0.50754, 1.0}, {0.508273, 0.508273, 0.508273, 1.0}, 0.4 }; Model::Model() : m_ListBase(0), m_CurrentShape(TEAPOT), m_CurrentMat(&MAT_SILVER) { } Model::~Model() { } void Model::init_gl(Glib::RefPtr& gldrawable) { /* Shape display lists */ m_ListBase = glGenLists(NUM_SHAPES); /* Cube */ glNewList(m_ListBase + CUBE, GL_COMPILE); gldrawable->draw_cube(true, 1.5); glEndList(); /* Sphere */ glNewList(m_ListBase + SPHERE, GL_COMPILE); gldrawable->draw_sphere(true, 1.0, 30, 30); glEndList(); /* Cone */ glNewList(m_ListBase + CONE, GL_COMPILE); glPushMatrix(); glTranslatef(0.0, 0.0, -1.0); gldrawable->draw_cone(true, 1.0, 2.0, 30, 30); glPopMatrix(); glEndList(); /* Torus */ glNewList(m_ListBase + TORUS, GL_COMPILE); gldrawable->draw_torus(true, 0.4, 0.8, 30, 30); glEndList(); /* Tetrahedron */ glNewList(m_ListBase + TETRAHEDRON, GL_COMPILE); glPushMatrix(); glScalef(1.2, 1.2, 1.2); gldrawable->draw_tetrahedron(true); glPopMatrix(); glEndList(); /* Octahedron */ glNewList(m_ListBase + OCTAHEDRON, GL_COMPILE); glPushMatrix(); glScalef(1.2, 1.2, 1.2); gldrawable->draw_octahedron(true); glPopMatrix(); glEndList(); /* Dodecahedron */ glNewList(m_ListBase + DODECAHEDRON, GL_COMPILE); glPushMatrix(); glScalef(0.7, 0.7, 0.7); gldrawable->draw_dodecahedron(true); glPopMatrix(); glEndList(); /* Icosahedron */ glNewList(m_ListBase + ICOSAHEDRON, GL_COMPILE); glPushMatrix(); glScalef(1.2, 1.2, 1.2); gldrawable->draw_icosahedron(true); glPopMatrix(); glEndList(); /* Teapot */ glNewList(m_ListBase + TEAPOT, GL_COMPILE); gldrawable->draw_teapot(true, 1.0); glEndList(); } void Model::draw(Glib::RefPtr& gldrawable) { // Init GL context. static bool initialized = false; if (!initialized) { init_gl(gldrawable); initialized = true; } // Render shape glMaterialfv(GL_FRONT, GL_AMBIENT, m_CurrentMat->ambient); glMaterialfv(GL_FRONT, GL_DIFFUSE, m_CurrentMat->diffuse); glMaterialfv(GL_FRONT, GL_SPECULAR, m_CurrentMat->specular); glMaterialf(GL_FRONT, GL_SHININESS, m_CurrentMat->shininess * 128.0); glCallList(m_ListBase + m_CurrentShape); } // // Scene class implementation. // const float Scene::CLEAR_COLOR[4] = { 0.5, 0.5, 0.8, 1.0 }; const float Scene::CLEAR_DEPTH = 1.0; const float Scene::LIGHT0_POSITION[4] = { 0.0, 3.0, 3.0, 0.0 }; const float Scene::LIGHT0_AMBIENT[4] = { 0.0, 0.0, 0.0, 1.0 }; const float Scene::LIGHT0_DIFFUSE[4] = { 1.0, 1.0, 1.0, 1.0 }; const float Scene::LIGHT_MODEL_AMBIENT[4] = { 0.2, 0.2, 0.2, 1.0 }; const float Scene::LIGHT_MODEL_LOCAL_VIEWER[1] = { 0.0 }; Scene::Scene() : m_Menu(0) { // // Configure OpenGL-capable visual. // Glib::RefPtr glconfig; // Try double-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_DOUBLE); if (!glconfig) { std::cerr << "*** Cannot find the double-buffered visual.\n" << "*** Trying single-buffered visual.\n"; // Try single-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH); if (!glconfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } } // print frame buffer attributes. GLConfigUtil::examine_gl_attrib(glconfig); // // Set OpenGL-capability to the widget. // set_gl_capability(glconfig); // // Add events. // add_events(Gdk::BUTTON1_MOTION_MASK | Gdk::BUTTON2_MOTION_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK | Gdk::VISIBILITY_NOTIFY_MASK); // View transformation signals. signal_button_press_event().connect( sigc::bind(sigc::mem_fun(m_View, &View::on_button_press_event), this)); signal_button_release_event().connect( sigc::bind(sigc::mem_fun(m_View, &View::on_button_release_event), this)); signal_motion_notify_event().connect( sigc::bind(sigc::mem_fun(m_View, &View::on_motion_notify_event), this)); // // Popup menu. // m_Menu = create_popup_menu(); } Scene::~Scene() { } void Scene::on_realize() { // We need to call the base on_realize() Gtk::DrawingArea::on_realize(); // // Get GL::Drawable. // Glib::RefPtr gldrawable = get_gl_drawable(); // // GL calls. // // *** OpenGL BEGIN *** if (!gldrawable->gl_begin(get_gl_context())) return; glClearColor(CLEAR_COLOR[0], CLEAR_COLOR[1], CLEAR_COLOR[2], CLEAR_COLOR[3]); glClearDepth(CLEAR_DEPTH); glLightfv(GL_LIGHT0, GL_POSITION, LIGHT0_POSITION); glLightfv(GL_LIGHT0, GL_AMBIENT, LIGHT0_AMBIENT); glLightfv(GL_LIGHT0, GL_DIFFUSE, LIGHT0_DIFFUSE); glLightModelfv(GL_LIGHT_MODEL_AMBIENT, LIGHT_MODEL_AMBIENT); glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, LIGHT_MODEL_LOCAL_VIEWER); glFrontFace(GL_CW); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_AUTO_NORMAL); glEnable(GL_NORMALIZE); glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LESS); gldrawable->gl_end(); // *** OpenGL END *** } bool Scene::on_configure_event(GdkEventConfigure* event) { // // Get GL::Drawable. // Glib::RefPtr gldrawable = get_gl_drawable(); // // GL calls. // // *** OpenGL BEGIN *** if (!gldrawable->gl_begin(get_gl_context())) return false; m_View.frustum(get_width(), get_height()); gldrawable->gl_end(); // *** OpenGL END *** return true; } bool Scene::on_expose_event(GdkEventExpose* event) { // // Get GL::Drawable. // Glib::RefPtr gldrawable = get_gl_drawable(); // // GL calls. // // *** OpenGL BEGIN *** if (!gldrawable->gl_begin(get_gl_context())) return false; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); // View transformation. m_View.xform(); // Logo model. m_Model.draw(gldrawable); // Swap buffers. if (gldrawable->is_double_buffered()) gldrawable->swap_buffers(); else glFlush(); gldrawable->gl_end(); // *** OpenGL END *** return true; } bool Scene::on_button_press_event(GdkEventButton* event) { if (event->button == 3) { m_Menu->popup(event->button, event->time); return true; } // don't block return false; } bool Scene::on_unmap_event(GdkEventAny* event) { idle_remove(); return true; } bool Scene::on_visibility_notify_event(GdkEventVisibility* event) { if (m_View.is_animate()) { if (event->state == GDK_VISIBILITY_FULLY_OBSCURED) idle_remove(); else idle_add(); } return true; } bool Scene::on_idle() { // Invalidate whole window. invalidate(); // Update window synchronously (fast). update(); return true; } void Scene::idle_add() { if (!m_ConnectionIdle.connected()) m_ConnectionIdle = Glib::signal_idle().connect( sigc::mem_fun(*this, &Scene::on_idle), GDK_PRIORITY_REDRAW); } void Scene::idle_remove() { if (m_ConnectionIdle.connected()) m_ConnectionIdle.disconnect(); } void Scene::change_shape(Model::ShapeType shape) { m_Model.set_shape(shape); m_View.reset(); } void Scene::change_material(const Model::MaterialProp* material) { m_Model.set_material(material); } Gtk::Menu* Scene::create_popup_menu() { // Shapes submenu Gtk::Menu* shapes_menu = Gtk::manage(new Gtk::Menu()); { Gtk::Menu::MenuList& menu_list = shapes_menu->items(); // Cube menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Cube", sigc::bind(sigc::mem_fun(*this, &Scene::change_shape), Model::SHAPE_CUBE))); // Sphere menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Sphere", sigc::bind(sigc::mem_fun(*this, &Scene::change_shape), Model::SHAPE_SPHERE))); // Cone menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Cone", sigc::bind(sigc::mem_fun(*this, &Scene::change_shape), Model::SHAPE_CONE))); // Torus menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Torus", sigc::bind(sigc::mem_fun(*this, &Scene::change_shape), Model::SHAPE_TORUS))); // Tetrahedron menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Tetrahedron", sigc::bind(sigc::mem_fun(*this, &Scene::change_shape), Model::SHAPE_TETRAHEDRON))); // Octahedron menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Octahedron", sigc::bind(sigc::mem_fun(*this, &Scene::change_shape), Model::SHAPE_OCTAHEDRON))); // Dodecahedron menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Dodecahedron", sigc::bind(sigc::mem_fun(*this, &Scene::change_shape), Model::SHAPE_DODECAHEDRON))); // Icosahedron menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Icosahedron", sigc::bind(sigc::mem_fun(*this, &Scene::change_shape), Model::SHAPE_ICOSAHEDRON))); // Teapot menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Teapot", sigc::bind(sigc::mem_fun(*this, &Scene::change_shape), Model::SHAPE_TEAPOT))); } // Materials submenu Gtk::Menu* materials_menu = Gtk::manage(new Gtk::Menu()); { Gtk::Menu::MenuList& menu_list = materials_menu->items(); // Emerald menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Emerald", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_EMERALD))); // Jade menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Jade", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_JADE))); // Obsidian menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Obsidian", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_OBSIDIAN))); // Pearl menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Pearl", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_PEARL))); // Ruby menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Ruby", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_RUBY))); // Turquoise menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Turquoise", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_TURQUOISE))); // Brass menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Brass", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_BRASS))); // Bronze menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Bronze", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_BRONZE))); // Chrome menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Chrome", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_CHROME))); // Copper menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Copper", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_COPPER))); // Gold menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Gold", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_GOLD))); // Silver menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Silver", sigc::bind(sigc::mem_fun(*this, &Scene::change_material), &Model::MAT_SILVER))); } // Root popup menu Gtk::Menu* menu = Gtk::manage(new Gtk::Menu()); { Gtk::Menu::MenuList& menu_list = menu->items(); // Shapes submenu menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Shapes", *shapes_menu)); // Materials submenu menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Materials", *materials_menu)); // Quit menu_list.push_back(Gtk::Menu_Helpers::MenuElem("Quit", sigc::ptr_fun(&Gtk::Main::quit))); } return menu; } // // Application class implementation. // const Glib::ustring Application::APP_NAME = "Shapes"; Application::Application() : m_VBox(false, 0), m_ButtonQuit("Quit") { // // Top-level window. // set_title(APP_NAME); // Get automatically redrawn if any of their children changed allocation. set_reallocate_redraws(true); add(m_VBox); // // Scene. // m_Scene.set_size_request(300, 300); m_VBox.pack_start(m_Scene); // // Simple quit button. // m_ButtonQuit.signal_clicked().connect( sigc::mem_fun(*this, &Application::on_button_quit_clicked)); m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0); // // Show window. // show_all(); } Application::~Application() { } void Application::on_button_quit_clicked() { Gtk::Main::quit(); } bool Application::on_key_press_event(GdkEventKey* event) { switch (event->keyval) { case GDK_Escape: Gtk::Main::quit(); break; default: return true; } m_Scene.invalidate(); return true; } } // namespace Shapes /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Query OpenGL extension version. // int major, minor; Gdk::GL::query_version(major, minor); std::cout << "OpenGL extension version - " << major << "." << minor << std::endl; // // Instantiate and run the application. // Shapes::Application application; kit.run(application); return 0; } gtkglextmm-1.2.0/examples/font.cc0000644000175000001440000002447510052337374013725 00000000000000// -*- C++ -*- /* * font.cc: * Simple bitmap font rendering example. * * written by Naofumi Yasufuku */ #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include /////////////////////////////////////////////////////////////////////////////// // // OpenGL frame buffer configuration utilities. // /////////////////////////////////////////////////////////////////////////////// struct GLConfigUtil { static void print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean); static void examine_gl_attrib(const Glib::RefPtr& glconfig); }; // // Print a configuration attribute. // void GLConfigUtil::print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean) { int value; if (glconfig->get_attrib(attrib, value)) { std::cout << attrib_str << " = "; if (is_boolean) std::cout << (value == true ? "true" : "false") << std::endl; else std::cout << value << std::endl; } else { std::cout << "*** Cannot get " << attrib_str << " attribute value\n"; } } // // Print configuration attributes. // void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr& glconfig) { std::cout << "\nOpenGL visual configurations :\n\n"; std::cout << "glconfig->is_rgba() = " << (glconfig->is_rgba() ? "true" : "false") << std::endl; std::cout << "glconfig->is_double_buffered() = " << (glconfig->is_double_buffered() ? "true" : "false") << std::endl; std::cout << "glconfig->is_stereo() = " << (glconfig->is_stereo() ? "true" : "false") << std::endl; std::cout << "glconfig->has_alpha() = " << (glconfig->has_alpha() ? "true" : "false") << std::endl; std::cout << "glconfig->has_depth_buffer() = " << (glconfig->has_depth_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_stencil_buffer() = " << (glconfig->has_stencil_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_accum_buffer() = " << (glconfig->has_accum_buffer() ? "true" : "false") << std::endl; std::cout << std::endl; print_gl_attrib(glconfig, "Gdk::GL::USE_GL", Gdk::GL::USE_GL, true); print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE", Gdk::GL::BUFFER_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::LEVEL", Gdk::GL::LEVEL, false); print_gl_attrib(glconfig, "Gdk::GL::RGBA", Gdk::GL::RGBA, true); print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER", Gdk::GL::DOUBLEBUFFER, true); print_gl_attrib(glconfig, "Gdk::GL::STEREO", Gdk::GL::STEREO, true); print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS", Gdk::GL::AUX_BUFFERS, false); print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE", Gdk::GL::RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE", Gdk::GL::GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE", Gdk::GL::BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE", Gdk::GL::ALPHA_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE", Gdk::GL::DEPTH_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE", Gdk::GL::STENCIL_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE", Gdk::GL::ACCUM_RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE", Gdk::GL::ACCUM_BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false); std::cout << std::endl; } /////////////////////////////////////////////////////////////////////////////// // // Simple OpenGL scene using bitmap font. // /////////////////////////////////////////////////////////////////////////////// class FontGLScene : public Gtk::DrawingArea, public Gtk::GL::Widget { public: FontGLScene(); virtual ~FontGLScene(); protected: virtual void on_realize(); virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); protected: // font rendering stuff: static const Glib::ustring m_FontString; GLuint m_FontListBase; int m_FontHeight; }; const Glib::ustring FontGLScene::m_FontString = "courier 12"; FontGLScene::FontGLScene() : m_FontListBase(0), m_FontHeight(0) { // // Configure OpenGL-capable visual. // Glib::RefPtr glconfig; // Try double-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_DOUBLE); if (!glconfig) { std::cerr << "*** Cannot find the double-buffered visual.\n" << "*** Trying single-buffered visual.\n"; // Try single-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH); if (!glconfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } } // print frame buffer attributes. GLConfigUtil::examine_gl_attrib(glconfig); // // Set OpenGL-capability to the widget. // set_gl_capability(glconfig); } FontGLScene::~FontGLScene() { } void FontGLScene::on_realize() { // We need to call the base on_realize() Gtk::DrawingArea::on_realize(); // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return; // // Generate font display lists. // m_FontListBase = glGenLists (128); Pango::FontDescription font_desc(m_FontString); Glib::RefPtr font = Gdk::GL::Font::use_pango_font(font_desc, 0, 128, m_FontListBase); if (!font) { std::cerr << "*** Can't load font " << m_FontString << std::endl; Gtk::Main::quit(); } Pango::FontMetrics font_metrics = font->get_metrics(); m_FontHeight = font_metrics.get_ascent() + font_metrics.get_descent(); m_FontHeight = PANGO_PIXELS(m_FontHeight); glClearColor(1.0, 1.0, 1.0, 1.0); glClearDepth(1.0); glViewport(0, 0, get_width(), get_height()); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0.0, get_width(), 0.0, get_height(), -1.0, 1.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glwindow->gl_end(); // *** OpenGL END *** } bool FontGLScene::on_configure_event(GdkEventConfigure* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; glViewport(0, 0, get_width(), get_height()); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0.0, get_width(), 0.0, get_height(), -1.0, 1.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glwindow->gl_end(); // *** OpenGL END *** return true; } bool FontGLScene::on_expose_event(GdkEventExpose* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // // Draw some text. // glColor3f(0.0, 0.0, 0.0); for (int i = 2; i >= -2; --i) { glRasterPos2f(10.0, 0.5*get_height() + i*m_FontHeight); for (int j = ' '; j <= 'Z'; ++j) glCallList(m_FontListBase+j); } // // Show font description string. // glColor3f(1.0, 0.0, 0.0); glRasterPos2f(10.0, 10.0); glListBase(m_FontListBase); glCallLists(m_FontString.length(), GL_UNSIGNED_BYTE, m_FontString.c_str()); // Swap buffers. if (glwindow->is_double_buffered()) glwindow->swap_buffers(); else glFlush(); glwindow->gl_end(); // *** OpenGL END *** return true; } /////////////////////////////////////////////////////////////////////////////// // // The application class. // /////////////////////////////////////////////////////////////////////////////// class Font : public Gtk::Window { public: Font(); virtual ~Font(); protected: // signal handlers: void on_button_quit_clicked(); protected: // member widgets: Gtk::VBox m_VBox; FontGLScene m_FontGLScene; Gtk::Button m_ButtonQuit; }; Font::Font() : m_VBox(false, 0), m_ButtonQuit("Quit") { // // Top-level window. // set_title("Font"); // Get automatically redrawn if any of their children changed allocation. set_reallocate_redraws(true); add(m_VBox); // // Simple OpenGL scene using bitmap font. // m_FontGLScene.set_size_request(640, 240); m_VBox.pack_start(m_FontGLScene); // // Simple quit button. // m_ButtonQuit.signal_clicked().connect( sigc::mem_fun(*this, &Font::on_button_quit_clicked)); m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0); // // Show window. // show_all(); } Font::~Font() {} void Font::on_button_quit_clicked() { Gtk::Main::quit(); } /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Query OpenGL extension version. // int major, minor; Gdk::GL::query_version(major, minor); std::cout << "OpenGL extension version - " << major << "." << minor << std::endl; // // Instantiate and run the application. // Font font; kit.run(font); return 0; } gtkglextmm-1.2.0/examples/Makefile.am0000644000175000001440000000376007717143165014505 00000000000000## -*- Makefile -*- ## Makefile.am for gtkglextmm/examples EXTRA_DIST = \ Makefile.mingw INCLUDES = \ -I$(top_srcdir)/gdkglext \ -I$(top_srcdir)/gtkglext \ -I$(top_builddir)/gdkglext \ -I$(top_builddir)/gtkglext \ $(GTKGLEXTMM_DEBUG_FLAGS) \ $(GTKGLEXTMM_DEP_CFLAGS) \ -DG_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGTK_DISABLE_DEPRECATED DEPS = \ $(top_builddir)/gdkglext/gdkmm/gl/$(gdkglextmm_targetlib) \ $(top_builddir)/gtkglext/gtkmm/gl/$(gtkglextmm_targetlib) LDADDS = \ $(top_builddir)/gdkglext/gdkmm/gl/$(gdkglextmm_targetlib) \ $(top_builddir)/gtkglext/gtkmm/gl/$(gtkglextmm_targetlib) \ $(GTKGLEXTMM_DEP_LIBS) EXTRA_PROGRAMS = \ simple \ simple-mixed \ pixmap \ pixmap-mixed \ share-lists \ font \ button \ shapes \ logo \ gears \ simple-darea simple_SOURCES = simple.cc simple_DEPENDENCIES = $(DEPS) simple_LDADD = $(LDADDS) simple_mixed_SOURCES = simple-mixed.cc simple_mixed_DEPENDENCIES = $(DEPS) simple_mixed_LDADD = $(LDADDS) pixmap_SOURCES = pixmap.cc pixmap_DEPENDENCIES = $(DEPS) pixmap_LDADD = $(LDADDS) pixmap_mixed_SOURCES = pixmap-mixed.cc pixmap_mixed_DEPENDENCIES = $(DEPS) pixmap_mixed_LDADD = $(LDADDS) share_lists_SOURCES = share-lists.cc share_lists_DEPENDENCIES = $(DEPS) share_lists_LDADD = $(LDADDS) font_SOURCES = font.cc font_DEPENDENCIES = $(DEPS) font_LDADD = $(LDADDS) button_SOURCES = button.cc button_DEPENDENCIES = $(DEPS) button_LDADD = $(LDADDS) shapes_SOURCES = trackball.h trackball.c shapes.h shapes.cc shapes_DEPENDENCIES = $(DEPS) shapes_LDADD = $(LDADDS) logo_SOURCES = trackball.h trackball.c logo-model.h logo-model.c logo.h logo.cc EXTRA_logo_SOURCES = logo-g.c logo-t.c logo-k.c logo_DEPENDENCIES = $(DEPS) logo_LDADD = $(LDADDS) gears_SOURCES = gears.cc gears_DEPENDENCIES = $(DEPS) gears_LDADD = $(LDADDS) simple_darea_SOURCES = simple-darea.cc simple_darea_DEPENDENCIES = $(DEPS) simple_darea_LDADD = $(LDADDS) all-local: $(EXTRA_PROGRAMS) clean-local: -rm -f $(EXTRA_PROGRAMS) gtkglextmm-1.2.0/examples/Makefile.in0000644000175000001440000005723610400725442014510 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ EXTRA_DIST = \ Makefile.mingw INCLUDES = \ -I$(top_srcdir)/gdkglext \ -I$(top_srcdir)/gtkglext \ -I$(top_builddir)/gdkglext \ -I$(top_builddir)/gtkglext \ $(GTKGLEXTMM_DEBUG_FLAGS) \ $(GTKGLEXTMM_DEP_CFLAGS) \ -DG_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGTK_DISABLE_DEPRECATED DEPS = \ $(top_builddir)/gdkglext/gdkmm/gl/$(gdkglextmm_targetlib) \ $(top_builddir)/gtkglext/gtkmm/gl/$(gtkglextmm_targetlib) LDADDS = \ $(top_builddir)/gdkglext/gdkmm/gl/$(gdkglextmm_targetlib) \ $(top_builddir)/gtkglext/gtkmm/gl/$(gtkglextmm_targetlib) \ $(GTKGLEXTMM_DEP_LIBS) EXTRA_PROGRAMS = \ simple \ simple-mixed \ pixmap \ pixmap-mixed \ share-lists \ font \ button \ shapes \ logo \ gears \ simple-darea simple_SOURCES = simple.cc simple_DEPENDENCIES = $(DEPS) simple_LDADD = $(LDADDS) simple_mixed_SOURCES = simple-mixed.cc simple_mixed_DEPENDENCIES = $(DEPS) simple_mixed_LDADD = $(LDADDS) pixmap_SOURCES = pixmap.cc pixmap_DEPENDENCIES = $(DEPS) pixmap_LDADD = $(LDADDS) pixmap_mixed_SOURCES = pixmap-mixed.cc pixmap_mixed_DEPENDENCIES = $(DEPS) pixmap_mixed_LDADD = $(LDADDS) share_lists_SOURCES = share-lists.cc share_lists_DEPENDENCIES = $(DEPS) share_lists_LDADD = $(LDADDS) font_SOURCES = font.cc font_DEPENDENCIES = $(DEPS) font_LDADD = $(LDADDS) button_SOURCES = button.cc button_DEPENDENCIES = $(DEPS) button_LDADD = $(LDADDS) shapes_SOURCES = trackball.h trackball.c shapes.h shapes.cc shapes_DEPENDENCIES = $(DEPS) shapes_LDADD = $(LDADDS) logo_SOURCES = trackball.h trackball.c logo-model.h logo-model.c logo.h logo.cc EXTRA_logo_SOURCES = logo-g.c logo-t.c logo-k.c logo_DEPENDENCIES = $(DEPS) logo_LDADD = $(LDADDS) gears_SOURCES = gears.cc gears_DEPENDENCIES = $(DEPS) gears_LDADD = $(LDADDS) simple_darea_SOURCES = simple-darea.cc simple_darea_DEPENDENCIES = $(DEPS) simple_darea_LDADD = $(LDADDS) subdir = examples ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = EXTRA_PROGRAMS = simple$(EXEEXT) simple-mixed$(EXEEXT) pixmap$(EXEEXT) \ pixmap-mixed$(EXEEXT) share-lists$(EXEEXT) font$(EXEEXT) \ button$(EXEEXT) shapes$(EXEEXT) logo$(EXEEXT) gears$(EXEEXT) \ simple-darea$(EXEEXT) am_button_OBJECTS = button.$(OBJEXT) button_OBJECTS = $(am_button_OBJECTS) button_LDFLAGS = am_font_OBJECTS = font.$(OBJEXT) font_OBJECTS = $(am_font_OBJECTS) font_LDFLAGS = am_gears_OBJECTS = gears.$(OBJEXT) gears_OBJECTS = $(am_gears_OBJECTS) gears_LDFLAGS = am_logo_OBJECTS = trackball.$(OBJEXT) logo-model.$(OBJEXT) \ logo.$(OBJEXT) logo_OBJECTS = $(am_logo_OBJECTS) logo_LDFLAGS = am_pixmap_OBJECTS = pixmap.$(OBJEXT) pixmap_OBJECTS = $(am_pixmap_OBJECTS) pixmap_LDFLAGS = am_pixmap_mixed_OBJECTS = pixmap-mixed.$(OBJEXT) pixmap_mixed_OBJECTS = $(am_pixmap_mixed_OBJECTS) pixmap_mixed_LDFLAGS = am_shapes_OBJECTS = trackball.$(OBJEXT) shapes.$(OBJEXT) shapes_OBJECTS = $(am_shapes_OBJECTS) shapes_LDFLAGS = am_share_lists_OBJECTS = share-lists.$(OBJEXT) share_lists_OBJECTS = $(am_share_lists_OBJECTS) share_lists_LDFLAGS = am_simple_OBJECTS = simple.$(OBJEXT) simple_OBJECTS = $(am_simple_OBJECTS) simple_LDFLAGS = am_simple_darea_OBJECTS = simple-darea.$(OBJEXT) simple_darea_OBJECTS = $(am_simple_darea_OBJECTS) simple_darea_LDFLAGS = am_simple_mixed_OBJECTS = simple-mixed.$(OBJEXT) simple_mixed_OBJECTS = $(am_simple_mixed_OBJECTS) simple_mixed_LDFLAGS = DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/button.Po ./$(DEPDIR)/font.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/gears.Po ./$(DEPDIR)/logo-g.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/logo-k.Po ./$(DEPDIR)/logo-model.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/logo-t.Po ./$(DEPDIR)/logo.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/pixmap-mixed.Po ./$(DEPDIR)/pixmap.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/shapes.Po ./$(DEPDIR)/share-lists.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/simple-darea.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/simple-mixed.Po ./$(DEPDIR)/simple.Po \ @AMDEP_TRUE@ ./$(DEPDIR)/trackball.Po 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 $@ 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 = $(button_SOURCES) $(font_SOURCES) $(gears_SOURCES) \ $(logo_SOURCES) $(EXTRA_logo_SOURCES) $(pixmap_SOURCES) \ $(pixmap_mixed_SOURCES) $(shapes_SOURCES) \ $(share_lists_SOURCES) $(simple_SOURCES) \ $(simple_darea_SOURCES) $(simple_mixed_SOURCES) DIST_COMMON = $(srcdir)/Makefile.in Makefile.am SOURCES = $(button_SOURCES) $(font_SOURCES) $(gears_SOURCES) $(logo_SOURCES) $(EXTRA_logo_SOURCES) $(pixmap_SOURCES) $(pixmap_mixed_SOURCES) $(shapes_SOURCES) $(share_lists_SOURCES) $(simple_SOURCES) $(simple_darea_SOURCES) $(simple_mixed_SOURCES) all: all-am .SUFFIXES: .SUFFIXES: .c .cc .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) button$(EXEEXT): $(button_OBJECTS) $(button_DEPENDENCIES) @rm -f button$(EXEEXT) $(CXXLINK) $(button_LDFLAGS) $(button_OBJECTS) $(button_LDADD) $(LIBS) font$(EXEEXT): $(font_OBJECTS) $(font_DEPENDENCIES) @rm -f font$(EXEEXT) $(CXXLINK) $(font_LDFLAGS) $(font_OBJECTS) $(font_LDADD) $(LIBS) gears$(EXEEXT): $(gears_OBJECTS) $(gears_DEPENDENCIES) @rm -f gears$(EXEEXT) $(CXXLINK) $(gears_LDFLAGS) $(gears_OBJECTS) $(gears_LDADD) $(LIBS) logo$(EXEEXT): $(logo_OBJECTS) $(logo_DEPENDENCIES) @rm -f logo$(EXEEXT) $(CXXLINK) $(logo_LDFLAGS) $(logo_OBJECTS) $(logo_LDADD) $(LIBS) pixmap$(EXEEXT): $(pixmap_OBJECTS) $(pixmap_DEPENDENCIES) @rm -f pixmap$(EXEEXT) $(CXXLINK) $(pixmap_LDFLAGS) $(pixmap_OBJECTS) $(pixmap_LDADD) $(LIBS) pixmap-mixed$(EXEEXT): $(pixmap_mixed_OBJECTS) $(pixmap_mixed_DEPENDENCIES) @rm -f pixmap-mixed$(EXEEXT) $(CXXLINK) $(pixmap_mixed_LDFLAGS) $(pixmap_mixed_OBJECTS) $(pixmap_mixed_LDADD) $(LIBS) shapes$(EXEEXT): $(shapes_OBJECTS) $(shapes_DEPENDENCIES) @rm -f shapes$(EXEEXT) $(CXXLINK) $(shapes_LDFLAGS) $(shapes_OBJECTS) $(shapes_LDADD) $(LIBS) share-lists$(EXEEXT): $(share_lists_OBJECTS) $(share_lists_DEPENDENCIES) @rm -f share-lists$(EXEEXT) $(CXXLINK) $(share_lists_LDFLAGS) $(share_lists_OBJECTS) $(share_lists_LDADD) $(LIBS) simple$(EXEEXT): $(simple_OBJECTS) $(simple_DEPENDENCIES) @rm -f simple$(EXEEXT) $(CXXLINK) $(simple_LDFLAGS) $(simple_OBJECTS) $(simple_LDADD) $(LIBS) simple-darea$(EXEEXT): $(simple_darea_OBJECTS) $(simple_darea_DEPENDENCIES) @rm -f simple-darea$(EXEEXT) $(CXXLINK) $(simple_darea_LDFLAGS) $(simple_darea_OBJECTS) $(simple_darea_LDADD) $(LIBS) simple-mixed$(EXEEXT): $(simple_mixed_OBJECTS) $(simple_mixed_DEPENDENCIES) @rm -f simple-mixed$(EXEEXT) $(CXXLINK) $(simple_mixed_LDFLAGS) $(simple_mixed_OBJECTS) $(simple_mixed_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) core *.core distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/button.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gears.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/logo-g.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/logo-k.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/logo-model.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/logo-t.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/logo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pixmap-mixed.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pixmap.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shapes.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/share-lists.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple-darea.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple-mixed.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simple.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/trackball.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCC_TRUE@ fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCC_TRUE@ fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ @am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ @am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ @am__fastdepCC_TRUE@ fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< .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) @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 all-local 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(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 clean-local mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile 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 -rm -rf ./$(DEPDIR) -rm -f Makefile 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 .PHONY: CTAGS GTAGS all all-am all-local check check-am clean \ clean-generic clean-libtool clean-local ctags distclean \ distclean-compile 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-compile mostlyclean-generic mostlyclean-libtool pdf \ pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am all-local: $(EXTRA_PROGRAMS) clean-local: -rm -f $(EXTRA_PROGRAMS) # 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: gtkglextmm-1.2.0/examples/simple-mixed.cc0000644000175000001440000002266610052337374015354 00000000000000// -*- C++ -*- /* * simple-mixed.cc: * Simple gtkglextmm example for mixing OpenGL and GDK rendering. * * written by Naofumi Yasufuku */ #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include /////////////////////////////////////////////////////////////////////////////// // // OpenGL frame buffer configuration utilities. // /////////////////////////////////////////////////////////////////////////////// struct GLConfigUtil { static void print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean); static void examine_gl_attrib(const Glib::RefPtr& glconfig); }; // // Print a configuration attribute. // void GLConfigUtil::print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean) { int value; if (glconfig->get_attrib(attrib, value)) { std::cout << attrib_str << " = "; if (is_boolean) std::cout << (value == true ? "true" : "false") << std::endl; else std::cout << value << std::endl; } else { std::cout << "*** Cannot get " << attrib_str << " attribute value\n"; } } // // Print configuration attributes. // void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr& glconfig) { std::cout << "\nOpenGL visual configurations :\n\n"; std::cout << "glconfig->is_rgba() = " << (glconfig->is_rgba() ? "true" : "false") << std::endl; std::cout << "glconfig->is_double_buffered() = " << (glconfig->is_double_buffered() ? "true" : "false") << std::endl; std::cout << "glconfig->is_stereo() = " << (glconfig->is_stereo() ? "true" : "false") << std::endl; std::cout << "glconfig->has_alpha() = " << (glconfig->has_alpha() ? "true" : "false") << std::endl; std::cout << "glconfig->has_depth_buffer() = " << (glconfig->has_depth_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_stencil_buffer() = " << (glconfig->has_stencil_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_accum_buffer() = " << (glconfig->has_accum_buffer() ? "true" : "false") << std::endl; std::cout << std::endl; print_gl_attrib(glconfig, "Gdk::GL::USE_GL", Gdk::GL::USE_GL, true); print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE", Gdk::GL::BUFFER_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::LEVEL", Gdk::GL::LEVEL, false); print_gl_attrib(glconfig, "Gdk::GL::RGBA", Gdk::GL::RGBA, true); print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER", Gdk::GL::DOUBLEBUFFER, true); print_gl_attrib(glconfig, "Gdk::GL::STEREO", Gdk::GL::STEREO, true); print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS", Gdk::GL::AUX_BUFFERS, false); print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE", Gdk::GL::RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE", Gdk::GL::GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE", Gdk::GL::BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE", Gdk::GL::ALPHA_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE", Gdk::GL::DEPTH_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE", Gdk::GL::STENCIL_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE", Gdk::GL::ACCUM_RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE", Gdk::GL::ACCUM_BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false); std::cout << std::endl; } /////////////////////////////////////////////////////////////////////////////// // // Simple OpenGL scene. // /////////////////////////////////////////////////////////////////////////////// class SimpleGLScene : public Gtk::DrawingArea, public Gtk::GL::Widget { public: SimpleGLScene(); virtual ~SimpleGLScene(); protected: virtual void on_realize(); virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); }; SimpleGLScene::SimpleGLScene() { // // Configure OpenGL-capable visual. // Glib::RefPtr glconfig; // Try single-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_SINGLE); if (!glconfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } // print frame buffer attributes. GLConfigUtil::examine_gl_attrib(glconfig); // // Set OpenGL-capability to the widget. // set_gl_capability(glconfig); } SimpleGLScene::~SimpleGLScene() { } void SimpleGLScene::on_realize() { // We need to call the base on_realize() Gtk::DrawingArea::on_realize(); // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return; GLUquadricObj* qobj = gluNewQuadric(); gluQuadricDrawStyle(qobj, GLU_FILL); glNewList(1, GL_COMPILE); gluSphere(qobj, 1.0, 20, 20); glEndList(); static GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0}; static GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0}; glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); glLightfv(GL_LIGHT0, GL_POSITION, light_position); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST); glClearColor(1.0, 1.0, 1.0, 1.0); glClearDepth(1.0); glViewport(0, 0, get_width(), get_height()); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(40.0, 1.0, 1.0, 10.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); glTranslatef(0.0, 0.0, -3.0); glwindow->gl_end(); // *** OpenGL END *** } bool SimpleGLScene::on_configure_event(GdkEventConfigure* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; glViewport(0, 0, get_width(), get_height()); glwindow->gl_end(); // *** OpenGL END *** return true; } bool SimpleGLScene::on_expose_event(GdkEventExpose* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Sync. glwindow->wait_gl(); // GDK rendering. glwindow->draw_rectangle(get_style()->get_fg_gc(get_state()), true, get_width()/10, get_height()/10, get_width()*8/10, get_height()*8/10); // Sync. glwindow->wait_gdk(); glCallList(1); glFlush(); glwindow->gl_end(); // *** OpenGL END *** return true; } /////////////////////////////////////////////////////////////////////////////// // // The application class. // /////////////////////////////////////////////////////////////////////////////// class Simple : public Gtk::Window { public: Simple(); virtual ~Simple(); protected: // signal handlers: void on_button_quit_clicked(); protected: // member widgets: Gtk::VBox m_VBox; SimpleGLScene m_SimpleGLScene; Gtk::Button m_ButtonQuit; }; Simple::Simple() : m_VBox(false, 0), m_ButtonQuit("Quit") { // // Top-level window. // set_title("Simple"); // Get automatically redrawn if any of their children changed allocation. set_reallocate_redraws(true); add(m_VBox); // // Simple OpenGL scene. // m_SimpleGLScene.set_size_request(200, 200); m_VBox.pack_start(m_SimpleGLScene); // // Simple quit button. // m_ButtonQuit.signal_clicked().connect( sigc::mem_fun(*this, &Simple::on_button_quit_clicked)); m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0); // // Show window. // show_all(); } Simple::~Simple() {} void Simple::on_button_quit_clicked() { Gtk::Main::quit(); } /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Query OpenGL extension version. // int major, minor; Gdk::GL::query_version(major, minor); std::cout << "OpenGL extension version - " << major << "." << minor << std::endl; // // Instantiate and run the application. // Simple simple; kit.run(simple); return 0; } gtkglextmm-1.2.0/examples/logo.h0000644000175000001440000001257210052337374013554 00000000000000// -*- C++ -*- /* * logo.h: * GtkGLExt logo demo. * * written by Naofumi Yasufuku */ #ifndef _LOGO_H #define _LOGO_H #include #include /////////////////////////////////////////////////////////////////////////////// // // Logo classes. // /////////////////////////////////////////////////////////////////////////////// namespace Logo { class Scene; // // View class. // class View : public sigc::trackable { friend class Scene; public: static const float NEAR_CLIP; static const float FAR_CLIP; static const float INIT_POS_X; static const float INIT_POS_Y; static const float INIT_POS_Z; static const float INIT_AXIS_X; static const float INIT_AXIS_Y; static const float INIT_AXIS_Z; static const float INIT_ANGLE; static const float INIT_SCALE; static const float SCALE_MAX; static const float SCALE_MIN; public: View(); virtual ~View(); public: void frustum(int w, int h); void xform(); void reset(); void set_pos(float x, float y, float z) { m_Pos[0] = x; m_Pos[1] = y; m_Pos[2] = z; } void set_quat(float q0, float q1, float q2, float q3) { m_Quat[0] = q0; m_Quat[1] = q1; m_Quat[2] = q2; m_Quat[3] = q3; } void set_scale(float scale) { m_Scale = scale; } protected: // Signal handlers: virtual bool on_button_press_event(GdkEventButton* event, Scene* scene); virtual bool on_motion_notify_event(GdkEventMotion* event, Scene* scene); private: float m_Pos[3]; float m_Quat[4]; float m_Scale; float m_BeginX; float m_BeginY; }; // // Logo model class. // class Model { friend class Scene; public: enum DisplayList { CUBE = 1, G_FORWARD, G_BACKWARD, T_FORWARD, T_BACKWARD, K_FORWARD, K_BACKWARD }; static const float MAT_SPECULAR[4]; static const float MAT_SHININESS[1]; static const float MAT_BLACK[4]; static const float MAT_RED[4]; static const float MAT_GREEN[4]; static const float MAT_BLUE[4]; static const unsigned int DEFAULT_ROT_COUNT; public: explicit Model(unsigned int rot_count = DEFAULT_ROT_COUNT, bool enable_anim = true); virtual ~Model(); private: void init_gl(); public: void draw(); void enable_anim() { m_EnableAnim = true; } void disable_anim() { m_EnableAnim = false; } bool anim_is_enabled() const { return m_EnableAnim; } void reset_anim(); void set_pos(float x, float y, float z) { m_Pos[0] = x; m_Pos[1] = y; m_Pos[2] = z; } void set_quat(float q0, float q1, float q2, float q3) { m_Quat[0] = q0; m_Quat[1] = q1; m_Quat[2] = q2; m_Quat[3] = q3; } private: // Rotation mode. struct RotMode { float *axis; float sign; }; static const RotMode ROT_MODE[]; private: unsigned int m_RotCount; bool m_EnableAnim; unsigned int m_Mode; unsigned int m_Counter; float m_Pos[3]; float m_Quat[4]; }; // // Scene class. // class Scene : public Gtk::GL::DrawingArea { friend class View; friend class Model; public: static const unsigned int TIMEOUT_INTERVAL; // OpenGL scene related constants: static const float CLEAR_COLOR[4]; static const float CLEAR_DEPTH; static const float LIGHT0_POSITION[4]; static const float LIGHT0_DIFFUSE[4]; static const float LIGHT0_SPECULAR[4]; public: explicit Scene(unsigned int rot_count = Model::DEFAULT_ROT_COUNT, bool enable_anim = true); virtual ~Scene(); protected: // signal handlers: virtual void on_realize(); virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); virtual bool on_button_press_event(GdkEventButton* event); virtual bool on_map_event(GdkEventAny* event); virtual bool on_unmap_event(GdkEventAny* event); virtual bool on_visibility_notify_event(GdkEventVisibility* event); virtual bool on_timeout(); public: // Invalidate whole window. void invalidate() { get_window()->invalidate_rect(get_allocation(), false); } // Update window synchronously (fast). void update() { get_window()->process_updates(false); } protected: // timeout signal connection: sigc::connection m_ConnectionTimeout; void timeout_add(); void timeout_remove(); public: // OpenGL scene related methods: bool anim_is_enabled() const { return m_Model.anim_is_enabled(); } void toggle_anim(); void init_anim(); protected: Gtk::Menu* create_popup_menu(); protected: // Popup menu: Gtk::Menu* m_Menu; protected: // OpenGL scene related objects: View m_View; Model m_Model; }; // // Application class. // class Application : public Gtk::Window { public: static const Glib::ustring APP_NAME; public: explicit Application(unsigned int rot_count = Model::DEFAULT_ROT_COUNT, bool enable_anim = true); virtual ~Application(); protected: // signal handlers: virtual void on_button_quit_clicked(); virtual bool on_key_press_event(GdkEventKey* event); protected: // member widgets: Gtk::VBox m_VBox; Scene m_Scene; Gtk::Button m_ButtonQuit; }; } // namespace Logo #endif // _LOGO_H gtkglextmm-1.2.0/examples/pixmap-mixed.cc0000644000175000001440000002351610052337374015354 00000000000000// -*- C++ -*- /* * pixmap-mixed.cc: * Simple off-screen rendering example for mixing OpenGL and GDK rendering. * * written by Naofumi Yasufuku */ #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include /////////////////////////////////////////////////////////////////////////////// // // OpenGL frame buffer configuration utilities. // /////////////////////////////////////////////////////////////////////////////// struct GLConfigUtil { static void print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean); static void examine_gl_attrib(const Glib::RefPtr& glconfig); }; // // Print a configuration attribute. // void GLConfigUtil::print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean) { int value; if (glconfig->get_attrib(attrib, value)) { std::cout << attrib_str << " = "; if (is_boolean) std::cout << (value == true ? "true" : "false") << std::endl; else std::cout << value << std::endl; } else { std::cout << "*** Cannot get " << attrib_str << " attribute value\n"; } } // // Print configuration attributes. // void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr& glconfig) { std::cout << "\nOpenGL visual configurations :\n\n"; std::cout << "glconfig->is_rgba() = " << (glconfig->is_rgba() ? "true" : "false") << std::endl; std::cout << "glconfig->is_double_buffered() = " << (glconfig->is_double_buffered() ? "true" : "false") << std::endl; std::cout << "glconfig->is_stereo() = " << (glconfig->is_stereo() ? "true" : "false") << std::endl; std::cout << "glconfig->has_alpha() = " << (glconfig->has_alpha() ? "true" : "false") << std::endl; std::cout << "glconfig->has_depth_buffer() = " << (glconfig->has_depth_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_stencil_buffer() = " << (glconfig->has_stencil_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_accum_buffer() = " << (glconfig->has_accum_buffer() ? "true" : "false") << std::endl; std::cout << std::endl; print_gl_attrib(glconfig, "Gdk::GL::USE_GL", Gdk::GL::USE_GL, true); print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE", Gdk::GL::BUFFER_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::LEVEL", Gdk::GL::LEVEL, false); print_gl_attrib(glconfig, "Gdk::GL::RGBA", Gdk::GL::RGBA, true); print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER", Gdk::GL::DOUBLEBUFFER, true); print_gl_attrib(glconfig, "Gdk::GL::STEREO", Gdk::GL::STEREO, true); print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS", Gdk::GL::AUX_BUFFERS, false); print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE", Gdk::GL::RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE", Gdk::GL::GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE", Gdk::GL::BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE", Gdk::GL::ALPHA_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE", Gdk::GL::DEPTH_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE", Gdk::GL::STENCIL_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE", Gdk::GL::ACCUM_RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE", Gdk::GL::ACCUM_BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false); std::cout << std::endl; } /////////////////////////////////////////////////////////////////////////////// // // Simple OpenGL scene using GL::Pixmap. // /////////////////////////////////////////////////////////////////////////////// class PixmapGLScene : public Gtk::DrawingArea { public: PixmapGLScene(); virtual ~PixmapGLScene(); protected: // init OpenGL context void init_gl(); protected: virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); protected: // OpenGL rendering stuff: Glib::RefPtr m_GLConfig; Glib::RefPtr m_GLContext; Glib::RefPtr m_Pixmap; }; PixmapGLScene::PixmapGLScene() : m_GLConfig(0), m_GLContext(0), m_Pixmap(0) { // // Configure OpenGL-capable visual. // // Try single-buffered visual m_GLConfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_SINGLE); if (!m_GLConfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } // print frame buffer attributes. GLConfigUtil::examine_gl_attrib(m_GLConfig); // // Set OpenGL-capable colormap. // set_colormap(m_GLConfig->get_colormap()); } PixmapGLScene::~PixmapGLScene() { } void PixmapGLScene::init_gl() { GLUquadricObj* qobj = gluNewQuadric(); gluQuadricDrawStyle(qobj, GLU_FILL); glNewList(1, GL_COMPILE); gluSphere(qobj, 1.0, 20, 20); glEndList(); static GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0}; static GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0}; glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); glLightfv(GL_LIGHT0, GL_POSITION, light_position); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST); glClearColor(1.0, 1.0, 1.0, 1.0); glClearDepth(1.0); glViewport(0, 0, get_width(), get_height()); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(40.0, 1.0, 1.0, 10.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); glTranslatef(0.0, 0.0, -3.0); } bool PixmapGLScene::on_configure_event(GdkEventConfigure* event) { // // Create an OpenGL off-screen rendering area. // m_Pixmap = Gdk::Pixmap::create(get_window(), get_width(), get_height(), m_GLConfig->get_depth()); // // Set OpenGL-capability to the pixmap (invoke extension method). // Glib::RefPtr glpixmap = Gdk::GL::ext(m_Pixmap).set_gl_capability(m_GLConfig); // // Create OpenGL rendering context (not direct). // if (!m_GLContext) m_GLContext = Gdk::GL::Context::create(glpixmap, false); // // GL calls. // // *** OpenGL BEGIN *** if (!glpixmap->gl_begin(m_GLContext)) return false; static bool is_initialized = false; if (!is_initialized) { init_gl(); is_initialized = true; } glViewport(0, 0, get_width(), get_height()); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Sync. glpixmap->wait_gl(); // GDK rendering. glpixmap->draw_rectangle(get_style()->get_fg_gc(get_state()), true, get_width()/10, get_height()/10, get_width()*8/10, get_height()*8/10); // Sync. glpixmap->wait_gdk(); glCallList(1); glFlush(); glpixmap->gl_end(); // *** OpenGL END *** return true; } bool PixmapGLScene::on_expose_event(GdkEventExpose* event) { if (!m_Pixmap) return false; get_window()->draw_drawable(get_style()->get_fg_gc(get_state()), m_Pixmap, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return true; } /////////////////////////////////////////////////////////////////////////////// // // The application class. // /////////////////////////////////////////////////////////////////////////////// class Pixmap : public Gtk::Window { public: Pixmap(); virtual ~Pixmap(); protected: // signal handlers: void on_button_quit_clicked(); protected: // member widgets: Gtk::VBox m_VBox; PixmapGLScene m_PixmapGLScene; Gtk::Button m_ButtonQuit; }; Pixmap::Pixmap() : m_VBox(false, 0), m_ButtonQuit("Quit") { // // Top-level window. // set_title("Pixmap"); add(m_VBox); // // Simple OpenGL scene using GL::Pixmap. // m_PixmapGLScene.set_size_request(200, 200); m_VBox.pack_start(m_PixmapGLScene); // // Simple quit button. // m_ButtonQuit.signal_clicked().connect( sigc::mem_fun(*this, &Pixmap::on_button_quit_clicked)); m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0); // // Show window. // show_all(); } Pixmap::~Pixmap() {} void Pixmap::on_button_quit_clicked() { Gtk::Main::quit(); } /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Query OpenGL extension version. // int major, minor; Gdk::GL::query_version(major, minor); std::cout << "OpenGL extension version - " << major << "." << minor << std::endl; // // Instantiate and run the application. // Pixmap pixmap; kit.run(pixmap); return 0; } gtkglextmm-1.2.0/examples/pixmap.cc0000644000175000001440000002267310052337374014253 00000000000000// -*- C++ -*- /* * pixmap.cc: * Simple off-screen OpenGL rendering example. * * written by Naofumi Yasufuku */ #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include /////////////////////////////////////////////////////////////////////////////// // // OpenGL frame buffer configuration utilities. // /////////////////////////////////////////////////////////////////////////////// struct GLConfigUtil { static void print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean); static void examine_gl_attrib(const Glib::RefPtr& glconfig); }; // // Print a configuration attribute. // void GLConfigUtil::print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean) { int value; if (glconfig->get_attrib(attrib, value)) { std::cout << attrib_str << " = "; if (is_boolean) std::cout << (value == true ? "true" : "false") << std::endl; else std::cout << value << std::endl; } else { std::cout << "*** Cannot get " << attrib_str << " attribute value\n"; } } // // Print configuration attributes. // void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr& glconfig) { std::cout << "\nOpenGL visual configurations :\n\n"; std::cout << "glconfig->is_rgba() = " << (glconfig->is_rgba() ? "true" : "false") << std::endl; std::cout << "glconfig->is_double_buffered() = " << (glconfig->is_double_buffered() ? "true" : "false") << std::endl; std::cout << "glconfig->is_stereo() = " << (glconfig->is_stereo() ? "true" : "false") << std::endl; std::cout << "glconfig->has_alpha() = " << (glconfig->has_alpha() ? "true" : "false") << std::endl; std::cout << "glconfig->has_depth_buffer() = " << (glconfig->has_depth_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_stencil_buffer() = " << (glconfig->has_stencil_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_accum_buffer() = " << (glconfig->has_accum_buffer() ? "true" : "false") << std::endl; std::cout << std::endl; print_gl_attrib(glconfig, "Gdk::GL::USE_GL", Gdk::GL::USE_GL, true); print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE", Gdk::GL::BUFFER_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::LEVEL", Gdk::GL::LEVEL, false); print_gl_attrib(glconfig, "Gdk::GL::RGBA", Gdk::GL::RGBA, true); print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER", Gdk::GL::DOUBLEBUFFER, true); print_gl_attrib(glconfig, "Gdk::GL::STEREO", Gdk::GL::STEREO, true); print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS", Gdk::GL::AUX_BUFFERS, false); print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE", Gdk::GL::RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE", Gdk::GL::GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE", Gdk::GL::BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE", Gdk::GL::ALPHA_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE", Gdk::GL::DEPTH_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE", Gdk::GL::STENCIL_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE", Gdk::GL::ACCUM_RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE", Gdk::GL::ACCUM_BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false); std::cout << std::endl; } /////////////////////////////////////////////////////////////////////////////// // // Simple OpenGL scene using GL::Pixmap. // /////////////////////////////////////////////////////////////////////////////// class PixmapGLScene : public Gtk::DrawingArea { public: PixmapGLScene(); virtual ~PixmapGLScene(); protected: // init OpenGL context void init_gl(); protected: virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); protected: // OpenGL rendering stuff: Glib::RefPtr m_GLConfig; Glib::RefPtr m_GLContext; Glib::RefPtr m_Pixmap; }; PixmapGLScene::PixmapGLScene() : m_GLConfig(0), m_GLContext(0), m_Pixmap(0) { // // Configure OpenGL-capable visual. // // Try single-buffered visual m_GLConfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_SINGLE); if (!m_GLConfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } // print frame buffer attributes. GLConfigUtil::examine_gl_attrib(m_GLConfig); // // Set OpenGL-capable colormap. // set_colormap(m_GLConfig->get_colormap()); } PixmapGLScene::~PixmapGLScene() { } void PixmapGLScene::init_gl() { GLUquadricObj* qobj = gluNewQuadric(); gluQuadricDrawStyle(qobj, GLU_FILL); glNewList(1, GL_COMPILE); gluSphere(qobj, 1.0, 20, 20); glEndList(); static GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0}; static GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0}; glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); glLightfv(GL_LIGHT0, GL_POSITION, light_position); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST); glClearColor(1.0, 1.0, 1.0, 1.0); glClearDepth(1.0); glViewport(0, 0, get_width(), get_height()); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(40.0, 1.0, 1.0, 10.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); glTranslatef(0.0, 0.0, -3.0); } bool PixmapGLScene::on_configure_event(GdkEventConfigure* event) { // // Create an OpenGL off-screen rendering area. // m_Pixmap = Gdk::Pixmap::create(get_window(), get_width(), get_height(), m_GLConfig->get_depth()); // // Set OpenGL-capability to the pixmap (invoke extension method). // Glib::RefPtr glpixmap = Gdk::GL::ext(m_Pixmap).set_gl_capability(m_GLConfig); // // Create OpenGL rendering context (not direct). // if (!m_GLContext) m_GLContext = Gdk::GL::Context::create(glpixmap, false); // // GL calls. // // *** OpenGL BEGIN *** if (!glpixmap->gl_begin(m_GLContext)) return false; static bool is_initialized = false; if (!is_initialized) { init_gl(); is_initialized = true; } glViewport(0, 0, get_width(), get_height()); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glCallList(1); glFlush(); glpixmap->gl_end(); // *** OpenGL END *** return true; } bool PixmapGLScene::on_expose_event(GdkEventExpose* event) { if (!m_Pixmap) return false; get_window()->draw_drawable(get_style()->get_fg_gc(get_state()), m_Pixmap, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return true; } /////////////////////////////////////////////////////////////////////////////// // // The application class. // /////////////////////////////////////////////////////////////////////////////// class Pixmap : public Gtk::Window { public: Pixmap(); virtual ~Pixmap(); protected: // signal handlers: void on_button_quit_clicked(); protected: // member widgets: Gtk::VBox m_VBox; PixmapGLScene m_PixmapGLScene; Gtk::Button m_ButtonQuit; }; Pixmap::Pixmap() : m_VBox(false, 0), m_ButtonQuit("Quit") { // // Top-level window. // set_title("Pixmap"); add(m_VBox); // // Simple OpenGL scene using GL::Pixmap. // m_PixmapGLScene.set_size_request(200, 200); m_VBox.pack_start(m_PixmapGLScene); // // Simple quit button. // m_ButtonQuit.signal_clicked().connect( sigc::mem_fun(*this, &Pixmap::on_button_quit_clicked)); m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0); // // Show window. // show_all(); } Pixmap::~Pixmap() {} void Pixmap::on_button_quit_clicked() { Gtk::Main::quit(); } /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Query OpenGL extension version. // int major, minor; Gdk::GL::query_version(major, minor); std::cout << "OpenGL extension version - " << major << "." << minor << std::endl; // // Instantiate and run the application. // Pixmap pixmap; kit.run(pixmap); return 0; } gtkglextmm-1.2.0/examples/logo-g.c0000644000175000001440000012521607527174063014002 00000000000000/* * AC3D triangle data */ /* "G" */ #define LOGO_G_V_SIZE 392 static GLfloat logo_g_v[LOGO_G_V_SIZE][3][3] = { { { 3.599970, 7.600000, 0.030650 }, { 2.619160, 7.600000, 0.835140 }, { 3.599970, 7.600000, 2.545840 } }, { { 2.619160, 7.600000, 0.835140 }, { 3.599970, 7.600000, 0.030650 }, { 0.399380, 7.600000, 0.039900 } }, { { 2.619160, 7.600000, 0.835140 }, { 0.399380, 7.600000, 0.039900 }, { 0.399380, 7.600000, 0.835140 } }, { { 3.599970, 7.600000, 2.545840 }, { 2.619160, 7.600000, 0.835140 }, { 2.619160, 7.600000, 2.092740 } }, { { -0.158130, 7.600000, -3.372250 }, { 0.791720, 7.600000, -3.381500 }, { 0.389070, 7.600000, -3.400000 } }, { { 0.791720, 7.600000, -3.381500 }, { -0.158130, 7.600000, -3.372250 }, { 1.173730, 7.600000, -3.339890 } }, { { 1.173730, 7.600000, -3.339890 }, { -0.158130, 7.600000, -3.372250 }, { -0.674370, 7.600000, -3.293660 } }, { { 1.173730, 7.600000, -3.339890 }, { -0.674370, 7.600000, -3.293660 }, { 1.535090, 7.600000, -3.261290 } }, { { 1.535090, 7.600000, -3.261290 }, { -0.674370, 7.600000, -3.293660 }, { -1.154440, 7.600000, -3.164200 } }, { { 1.535090, 7.600000, -3.261290 }, { -1.154440, 7.600000, -3.164200 }, { 1.875790, 7.600000, -3.159570 } }, { { 1.875790, 7.600000, -3.159570 }, { -1.154440, 7.600000, -3.164200 }, { -1.603560, 7.600000, -2.983880 } }, { { 1.875790, 7.600000, -3.159570 }, { -1.603560, 7.600000, -2.983880 }, { 2.185530, 7.600000, -3.030110 } }, { { 2.185530, 7.600000, -3.030110 }, { -1.603560, 7.600000, -2.983880 }, { 2.464290, 7.600000, -2.877540 } }, { { 2.464290, 7.600000, -2.877540 }, { -1.603560, 7.600000, -2.983880 }, { -2.011390, 7.600000, -2.748080 } }, { { 2.464290, 7.600000, -2.877540 }, { -2.011390, 7.600000, -2.748080 }, { 2.701750, 7.600000, -2.697220 } }, { { 2.701750, 7.600000, -2.697220 }, { -2.011390, 7.600000, -2.748080 }, { 0.399380, 7.600000, -2.632490 } }, { { 0.399380, 7.600000, -2.632490 }, { -2.011390, 7.600000, -2.748080 }, { 0.063850, 7.600000, -2.618620 } }, { { 0.063850, 7.600000, -2.618620 }, { -2.011390, 7.600000, -2.748080 }, { -2.367580, 7.600000, -2.456800 } }, { { 0.063850, 7.600000, -2.618620 }, { -2.367580, 7.600000, -2.456800 }, { -0.251050, 7.600000, -2.586260 } }, { { -0.251050, 7.600000, -2.586260 }, { -2.367580, 7.600000, -2.456800 }, { -0.534980, 7.600000, -2.526150 } }, { { -0.534980, 7.600000, -2.526150 }, { -2.367580, 7.600000, -2.456800 }, { -0.798250, 7.600000, -2.447550 } }, { { -0.798250, 7.600000, -2.447550 }, { -2.367580, 7.600000, -2.456800 }, { -2.677310, 7.600000, -2.110040 } }, { { -0.798250, 7.600000, -2.447550 }, { -2.677310, 7.600000, -2.110040 }, { -1.035710, 7.600000, -2.345840 } }, { { -1.035710, 7.600000, -2.345840 }, { -2.677310, 7.600000, -2.110040 }, { -1.247370, 7.600000, -2.230250 } }, { { -1.247370, 7.600000, -2.230250 }, { -2.677310, 7.600000, -2.110040 }, { -1.438380, 7.600000, -2.100790 } }, { { -1.438380, 7.600000, -2.100790 }, { -2.677310, 7.600000, -2.110040 }, { -2.935430, 7.600000, -1.707790 } }, { { -1.438380, 7.600000, -2.100790 }, { -2.935430, 7.600000, -1.707790 }, { -1.603560, 7.600000, -1.957460 } }, { { -1.603560, 7.600000, -1.957460 }, { -2.935430, 7.600000, -1.707790 }, { -1.748100, 7.600000, -1.800260 } }, { { -1.748100, 7.600000, -1.800260 }, { -2.935430, 7.600000, -1.707790 }, { -1.877170, 7.600000, -1.633810 } }, { { -1.877170, 7.600000, -1.633810 }, { -2.935430, 7.600000, -1.707790 }, { -3.136750, 7.600000, -1.268560 } }, { { -1.877170, 7.600000, -1.633810 }, { -3.136750, 7.600000, -1.268560 }, { -1.985570, 7.600000, -1.458120 } }, { { -1.985570, 7.600000, -1.458120 }, { -3.136750, 7.600000, -1.268560 }, { -2.078490, 7.600000, -1.282430 } }, { { -2.078490, 7.600000, -1.282430 }, { -3.136750, 7.600000, -1.268560 }, { -2.207560, 7.600000, -0.958780 } }, { { -2.207560, 7.600000, -0.958780 }, { -3.136750, 7.600000, -1.268560 }, { -3.281290, 7.600000, -0.820080 } }, { { -2.207560, 7.600000, -0.958780 }, { -3.281290, 7.600000, -0.820080 }, { -2.295300, 7.600000, -0.621260 } }, { { -2.295300, 7.600000, -0.621260 }, { -3.281290, 7.600000, -0.820080 }, { -3.369050, 7.600000, -0.348480 } }, { { -2.295300, 7.600000, -0.621260 }, { -3.369050, 7.600000, -0.348480 }, { -2.346920, 7.600000, -0.279130 } }, { { -2.346920, 7.600000, -0.279130 }, { -3.369050, 7.600000, -0.348480 }, { -3.400030, 7.600000, 0.132370 } }, { { -2.346920, 7.600000, -0.279130 }, { -3.400030, 7.600000, 0.132370 }, { -2.367580, 7.600000, 0.076890 } }, { { -2.367580, 7.600000, 0.076890 }, { -3.400030, 7.600000, 0.132370 }, { -2.346920, 7.600000, 0.516120 } }, { { -2.346920, 7.600000, 0.516120 }, { -3.400030, 7.600000, 0.132370 }, { -3.369050, 7.600000, 0.622460 } }, { { -2.346920, 7.600000, 0.516120 }, { -3.369050, 7.600000, 0.622460 }, { -2.279830, 7.600000, 0.913740 } }, { { -2.279830, 7.600000, 0.913740 }, { -3.369050, 7.600000, 0.622460 }, { -3.281290, 7.600000, 1.089430 } }, { { -2.279830, 7.600000, 0.913740 }, { -3.281290, 7.600000, 1.089430 }, { -2.171420, 7.600000, 1.269750 } }, { { -2.171420, 7.600000, 1.269750 }, { -3.281290, 7.600000, 1.089430 }, { -3.136750, 7.600000, 1.528670 } }, { { -2.171420, 7.600000, 1.269750 }, { -3.136750, 7.600000, 1.528670 }, { -2.016540, 7.600000, 1.593400 } }, { { -2.016540, 7.600000, 1.593400 }, { -3.136750, 7.600000, 1.528670 }, { -2.935430, 7.600000, 1.944780 } }, { { -2.016540, 7.600000, 1.593400 }, { -2.935430, 7.600000, 1.944780 }, { -1.825540, 7.600000, 1.880060 } }, { { -1.825540, 7.600000, 1.880060 }, { -2.935430, 7.600000, 1.944780 }, { -1.593240, 7.600000, 2.125100 } }, { { -1.593240, 7.600000, 2.125100 }, { -2.935430, 7.600000, 1.944780 }, { -2.677310, 7.600000, 2.323910 } }, { { -1.593240, 7.600000, 2.125100 }, { -2.677310, 7.600000, 2.323910 }, { -1.319650, 7.600000, 2.333160 } }, { { -1.319650, 7.600000, 2.333160 }, { -2.677310, 7.600000, 2.323910 }, { -2.362410, 7.600000, 2.656810 } }, { { -1.319650, 7.600000, 2.333160 }, { -2.362410, 7.600000, 2.656810 }, { -1.004740, 7.600000, 2.499600 } }, { { -1.004740, 7.600000, 2.499600 }, { -2.362410, 7.600000, 2.656810 }, { -0.664030, 7.600000, 2.633690 } }, { { -0.664030, 7.600000, 2.633690 }, { -2.362410, 7.600000, 2.656810 }, { -0.318170, 7.600000, 2.726160 } }, { { -0.318170, 7.600000, 2.726160 }, { -2.362410, 7.600000, 2.656810 }, { -1.990730, 7.600000, 2.943460 } }, { { -0.318170, 7.600000, 2.726160 }, { -1.990730, 7.600000, 2.943460 }, { 0.043190, 7.600000, 2.777020 } }, { { 0.043190, 7.600000, 2.777020 }, { -1.990730, 7.600000, 2.943460 }, { 0.409700, 7.600000, 2.795510 } }, { { 0.409700, 7.600000, 2.795510 }, { -1.990730, 7.600000, 2.943460 }, { 3.228300, 7.600000, 2.795510 } }, { { 3.228300, 7.600000, 2.795510 }, { -1.990730, 7.600000, 2.943460 }, { 2.851460, 7.600000, 3.008190 } }, { { 2.851460, 7.600000, 3.008190 }, { -1.990730, 7.600000, 2.943460 }, { -1.562270, 7.600000, 3.174640 } }, { { 2.851460, 7.600000, 3.008190 }, { -1.562270, 7.600000, 3.174640 }, { 2.469440, 7.600000, 3.193130 } }, { { 2.469440, 7.600000, 3.193130 }, { -1.562270, 7.600000, 3.174640 }, { -1.092500, 7.600000, 3.364200 } }, { { 2.469440, 7.600000, 3.193130 }, { -1.092500, 7.600000, 3.364200 }, { 2.082280, 7.600000, 3.341080 } }, { { 2.082280, 7.600000, 3.341080 }, { -1.092500, 7.600000, 3.364200 }, { 1.684790, 7.600000, 3.452050 } }, { { 1.684790, 7.600000, 3.452050 }, { -1.092500, 7.600000, 3.364200 }, { -0.596920, 7.600000, 3.493660 } }, { { 1.684790, 7.600000, 3.452050 }, { -0.596920, 7.600000, 3.493660 }, { 1.287290, 7.600000, 3.535270 } }, { { 1.287290, 7.600000, 3.535270 }, { -0.596920, 7.600000, 3.493660 }, { -0.075550, 7.600000, 3.576880 } }, { { 1.287290, 7.600000, 3.535270 }, { -0.075550, 7.600000, 3.576880 }, { 0.879480, 7.600000, 3.586130 } }, { { 0.879480, 7.600000, 3.586130 }, { -0.075550, 7.600000, 3.576880 }, { 0.471650, 7.600000, 3.600000 } }, { { 2.438480, 7.600000, 2.222190 }, { 3.599970, 7.600000, 2.545840 }, { 2.619160, 7.600000, 2.092740 } }, { { 3.599970, 7.600000, 2.545840 }, { 2.438480, 7.600000, 2.222190 }, { 2.221670, 7.600000, 2.342410 } }, { { 3.599970, 7.600000, 2.545840 }, { 2.221670, 7.600000, 2.342410 }, { 1.968700, 7.600000, 2.462620 } }, { { 3.599970, 7.600000, 2.545840 }, { 1.968700, 7.600000, 2.462620 }, { 1.679630, 7.600000, 2.573580 } }, { { 3.599970, 7.600000, 2.545840 }, { 1.679630, 7.600000, 2.573580 }, { 3.228300, 7.600000, 2.795510 } }, { { 3.228300, 7.600000, 2.795510 }, { 1.679630, 7.600000, 2.573580 }, { 1.369890, 7.600000, 2.670680 } }, { { 3.228300, 7.600000, 2.795510 }, { 1.369890, 7.600000, 2.670680 }, { 1.054980, 7.600000, 2.740030 } }, { { 3.228300, 7.600000, 2.795510 }, { 1.054980, 7.600000, 2.740030 }, { 0.734940, 7.600000, 2.781640 } }, { { 3.228300, 7.600000, 2.795510 }, { 0.734940, 7.600000, 2.781640 }, { 0.409700, 7.600000, 2.795510 } }, { { 2.701750, 7.600000, -2.697220 }, { 0.672990, 7.600000, -2.618620 }, { 2.908230, 7.600000, -2.503040 } }, { { 0.672990, 7.600000, -2.618620 }, { 2.701750, 7.600000, -2.697220 }, { 0.399380, 7.600000, -2.632490 } }, { { 2.908230, 7.600000, -2.503040 }, { 0.672990, 7.600000, -2.618620 }, { 0.941430, 7.600000, -2.586260 } }, { { 2.908230, 7.600000, -2.503040 }, { 0.941430, 7.600000, -2.586260 }, { 1.194380, 7.600000, -2.530780 } }, { { 2.908230, 7.600000, -2.503040 }, { 1.194380, 7.600000, -2.530780 }, { 1.431840, 7.600000, -2.456800 } }, { { 2.908230, 7.600000, -2.503040 }, { 1.431840, 7.600000, -2.456800 }, { 3.083760, 7.600000, -2.271860 } }, { { 3.083760, 7.600000, -2.271860 }, { 1.431840, 7.600000, -2.456800 }, { 1.653810, 7.600000, -2.359710 } }, { { 3.083760, 7.600000, -2.271860 }, { 1.653810, 7.600000, -2.359710 }, { 1.849980, 7.600000, -2.248740 } }, { { 3.083760, 7.600000, -2.271860 }, { 1.849980, 7.600000, -2.248740 }, { 3.238630, 7.600000, -2.008320 } }, { { 3.238630, 7.600000, -2.008320 }, { 1.849980, 7.600000, -2.248740 }, { 2.015170, 7.600000, -2.123910 } }, { { 3.238630, 7.600000, -2.008320 }, { 2.015170, 7.600000, -2.123910 }, { 2.154550, 7.600000, -1.985200 } }, { { 3.238630, 7.600000, -2.008320 }, { 2.154550, 7.600000, -1.985200 }, { 3.372840, 7.600000, -1.717040 } }, { { 3.372840, 7.600000, -1.717040 }, { 2.154550, 7.600000, -1.985200 }, { 2.273270, 7.600000, -1.818760 } }, { { 3.372840, 7.600000, -1.717040 }, { 2.273270, 7.600000, -1.818760 }, { 2.386860, 7.600000, -1.629190 } }, { { 3.372840, 7.600000, -1.717040 }, { 2.386860, 7.600000, -1.629190 }, { 3.486410, 7.600000, -1.393390 } }, { { 3.486410, 7.600000, -1.393390 }, { 2.386860, 7.600000, -1.629190 }, { 2.490100, 7.600000, -1.411890 } }, { { 3.486410, 7.600000, -1.393390 }, { 2.490100, 7.600000, -1.411890 }, { 2.588180, 7.600000, -1.171460 } }, { { 3.599970, 8.600000, 0.030650 }, { 2.619160, 8.600000, 0.835140 }, { 0.399380, 8.600000, 0.039900 } }, { { 2.619160, 8.600000, 0.835140 }, { 3.599970, 8.600000, 0.030650 }, { 3.599970, 8.600000, 2.545840 } }, { { 2.619160, 8.600000, 0.835140 }, { 3.599970, 8.600000, 2.545840 }, { 2.619160, 8.600000, 2.092740 } }, { { 0.399380, 8.600000, 0.835140 }, { 0.399380, 8.600000, 0.039900 }, { 2.619160, 8.600000, 0.835140 } }, { { 2.701750, 8.600000, -2.697220 }, { 0.672990, 8.600000, -2.618620 }, { 0.399380, 8.600000, -2.632490 } }, { { 0.672990, 8.600000, -2.618620 }, { 2.701750, 8.600000, -2.697220 }, { 2.908230, 8.600000, -2.503040 } }, { { 0.672990, 8.600000, -2.618620 }, { 2.908230, 8.600000, -2.503040 }, { 0.941430, 8.600000, -2.586260 } }, { { 0.941430, 8.600000, -2.586260 }, { 2.908230, 8.600000, -2.503040 }, { 1.194380, 8.600000, -2.530780 } }, { { 1.194380, 8.600000, -2.530780 }, { 2.908230, 8.600000, -2.503040 }, { 1.431840, 8.600000, -2.456800 } }, { { 1.431840, 8.600000, -2.456800 }, { 2.908230, 8.600000, -2.503040 }, { 3.083760, 8.600000, -2.271860 } }, { { 1.431840, 8.600000, -2.456800 }, { 3.083760, 8.600000, -2.271860 }, { 1.653810, 8.600000, -2.359710 } }, { { 1.653810, 8.600000, -2.359710 }, { 3.083760, 8.600000, -2.271860 }, { 1.849980, 8.600000, -2.248740 } }, { { 1.849980, 8.600000, -2.248740 }, { 3.083760, 8.600000, -2.271860 }, { 3.238630, 8.600000, -2.008320 } }, { { 1.849980, 8.600000, -2.248740 }, { 3.238630, 8.600000, -2.008320 }, { 2.015170, 8.600000, -2.123910 } }, { { 2.015170, 8.600000, -2.123910 }, { 3.238630, 8.600000, -2.008320 }, { 2.154550, 8.600000, -1.985200 } }, { { 2.154550, 8.600000, -1.985200 }, { 3.238630, 8.600000, -2.008320 }, { 3.372840, 8.600000, -1.717040 } }, { { 2.154550, 8.600000, -1.985200 }, { 3.372840, 8.600000, -1.717040 }, { 2.273270, 8.600000, -1.818760 } }, { { 2.273270, 8.600000, -1.818760 }, { 3.372840, 8.600000, -1.717040 }, { 2.386860, 8.600000, -1.629190 } }, { { 2.386860, 8.600000, -1.629190 }, { 3.372840, 8.600000, -1.717040 }, { 3.486410, 8.600000, -1.393390 } }, { { 2.386860, 8.600000, -1.629190 }, { 3.486410, 8.600000, -1.393390 }, { 2.490100, 8.600000, -1.411890 } }, { { 2.490100, 8.600000, -1.411890 }, { 3.486410, 8.600000, -1.393390 }, { 2.588180, 8.600000, -1.171460 } }, { { 3.599970, 8.600000, 2.545840 }, { 2.438480, 8.600000, 2.222190 }, { 2.619160, 8.600000, 2.092740 } }, { { 2.438480, 8.600000, 2.222190 }, { 3.599970, 8.600000, 2.545840 }, { 2.221670, 8.600000, 2.342410 } }, { { 2.221670, 8.600000, 2.342410 }, { 3.599970, 8.600000, 2.545840 }, { 1.968700, 8.600000, 2.462620 } }, { { 1.968700, 8.600000, 2.462620 }, { 3.599970, 8.600000, 2.545840 }, { 1.679630, 8.600000, 2.573580 } }, { { 1.679630, 8.600000, 2.573580 }, { 3.599970, 8.600000, 2.545840 }, { 3.228300, 8.600000, 2.795510 } }, { { 1.679630, 8.600000, 2.573580 }, { 3.228300, 8.600000, 2.795510 }, { 1.369890, 8.600000, 2.670680 } }, { { 1.369890, 8.600000, 2.670680 }, { 3.228300, 8.600000, 2.795510 }, { 1.054980, 8.600000, 2.740030 } }, { { 1.054980, 8.600000, 2.740030 }, { 3.228300, 8.600000, 2.795510 }, { 0.734940, 8.600000, 2.781640 } }, { { 0.734940, 8.600000, 2.781640 }, { 3.228300, 8.600000, 2.795510 }, { 0.409700, 8.600000, 2.795510 } }, { { 0.409700, 8.600000, 2.795510 }, { 3.228300, 8.600000, 2.795510 }, { 2.851460, 8.600000, 3.008190 } }, { { 0.409700, 8.600000, 2.795510 }, { 2.851460, 8.600000, 3.008190 }, { -1.990730, 8.600000, 2.943460 } }, { { -1.990730, 8.600000, 2.943460 }, { 2.851460, 8.600000, 3.008190 }, { -1.562270, 8.600000, 3.174640 } }, { { -1.562270, 8.600000, 3.174640 }, { 2.851460, 8.600000, 3.008190 }, { 2.469440, 8.600000, 3.193130 } }, { { -1.562270, 8.600000, 3.174640 }, { 2.469440, 8.600000, 3.193130 }, { -1.092500, 8.600000, 3.364200 } }, { { -1.092500, 8.600000, 3.364200 }, { 2.469440, 8.600000, 3.193130 }, { 2.082280, 8.600000, 3.341080 } }, { { -1.092500, 8.600000, 3.364200 }, { 2.082280, 8.600000, 3.341080 }, { 1.684790, 8.600000, 3.452050 } }, { { -1.092500, 8.600000, 3.364200 }, { 1.684790, 8.600000, 3.452050 }, { -0.596920, 8.600000, 3.493660 } }, { { -0.596920, 8.600000, 3.493660 }, { 1.684790, 8.600000, 3.452050 }, { 1.287290, 8.600000, 3.535270 } }, { { -0.596920, 8.600000, 3.493660 }, { 1.287290, 8.600000, 3.535270 }, { -0.075550, 8.600000, 3.576880 } }, { { -0.075550, 8.600000, 3.576880 }, { 1.287290, 8.600000, 3.535270 }, { 0.879480, 8.600000, 3.586130 } }, { { -0.075550, 8.600000, 3.576880 }, { 0.879480, 8.600000, 3.586130 }, { 0.471650, 8.600000, 3.600000 } }, { { 0.791720, 8.600000, -3.381500 }, { -0.158130, 8.600000, -3.372250 }, { 0.389070, 8.600000, -3.400000 } }, { { -0.158130, 8.600000, -3.372250 }, { 0.791720, 8.600000, -3.381500 }, { 1.173730, 8.600000, -3.339890 } }, { { -0.158130, 8.600000, -3.372250 }, { 1.173730, 8.600000, -3.339890 }, { -0.674370, 8.600000, -3.293660 } }, { { -0.674370, 8.600000, -3.293660 }, { 1.173730, 8.600000, -3.339890 }, { 1.535090, 8.600000, -3.261290 } }, { { -0.674370, 8.600000, -3.293660 }, { 1.535090, 8.600000, -3.261290 }, { -1.154440, 8.600000, -3.164200 } }, { { -1.154440, 8.600000, -3.164200 }, { 1.535090, 8.600000, -3.261290 }, { 1.875790, 8.600000, -3.159570 } }, { { -1.154440, 8.600000, -3.164200 }, { 1.875790, 8.600000, -3.159570 }, { -1.603560, 8.600000, -2.983880 } }, { { -1.603560, 8.600000, -2.983880 }, { 1.875790, 8.600000, -3.159570 }, { 2.185530, 8.600000, -3.030110 } }, { { -1.603560, 8.600000, -2.983880 }, { 2.185530, 8.600000, -3.030110 }, { 2.464290, 8.600000, -2.877540 } }, { { -1.603560, 8.600000, -2.983880 }, { 2.464290, 8.600000, -2.877540 }, { -2.011390, 8.600000, -2.748080 } }, { { -2.011390, 8.600000, -2.748080 }, { 2.464290, 8.600000, -2.877540 }, { 2.701750, 8.600000, -2.697220 } }, { { -2.011390, 8.600000, -2.748080 }, { 2.701750, 8.600000, -2.697220 }, { 0.399380, 8.600000, -2.632490 } }, { { -2.011390, 8.600000, -2.748080 }, { 0.399380, 8.600000, -2.632490 }, { 0.063850, 8.600000, -2.618620 } }, { { -2.011390, 8.600000, -2.748080 }, { 0.063850, 8.600000, -2.618620 }, { -2.367580, 8.600000, -2.456800 } }, { { -2.367580, 8.600000, -2.456800 }, { 0.063850, 8.600000, -2.618620 }, { -0.251050, 8.600000, -2.586260 } }, { { -2.367580, 8.600000, -2.456800 }, { -0.251050, 8.600000, -2.586260 }, { -0.534980, 8.600000, -2.526150 } }, { { -2.367580, 8.600000, -2.456800 }, { -0.534980, 8.600000, -2.526150 }, { -0.798250, 8.600000, -2.447550 } }, { { -2.367580, 8.600000, -2.456800 }, { -0.798250, 8.600000, -2.447550 }, { -2.677310, 8.600000, -2.110040 } }, { { -2.677310, 8.600000, -2.110040 }, { -0.798250, 8.600000, -2.447550 }, { -1.035710, 8.600000, -2.345840 } }, { { -2.677310, 8.600000, -2.110040 }, { -1.035710, 8.600000, -2.345840 }, { -1.247370, 8.600000, -2.230250 } }, { { -2.677310, 8.600000, -2.110040 }, { -1.247370, 8.600000, -2.230250 }, { -1.438380, 8.600000, -2.100790 } }, { { -2.677310, 8.600000, -2.110040 }, { -1.438380, 8.600000, -2.100790 }, { -2.935430, 8.600000, -1.707790 } }, { { -2.935430, 8.600000, -1.707790 }, { -1.438380, 8.600000, -2.100790 }, { -1.603560, 8.600000, -1.957460 } }, { { -2.935430, 8.600000, -1.707790 }, { -1.603560, 8.600000, -1.957460 }, { -1.748100, 8.600000, -1.800260 } }, { { -2.935430, 8.600000, -1.707790 }, { -1.748100, 8.600000, -1.800260 }, { -1.877170, 8.600000, -1.633810 } }, { { -2.935430, 8.600000, -1.707790 }, { -1.877170, 8.600000, -1.633810 }, { -3.136750, 8.600000, -1.268560 } }, { { -3.136750, 8.600000, -1.268560 }, { -1.877170, 8.600000, -1.633810 }, { -1.985570, 8.600000, -1.458120 } }, { { -3.136750, 8.600000, -1.268560 }, { -1.985570, 8.600000, -1.458120 }, { -2.078490, 8.600000, -1.282430 } }, { { -3.136750, 8.600000, -1.268560 }, { -2.078490, 8.600000, -1.282430 }, { -2.207560, 8.600000, -0.958780 } }, { { -3.136750, 8.600000, -1.268560 }, { -2.207560, 8.600000, -0.958780 }, { -3.281290, 8.600000, -0.820080 } }, { { -3.281290, 8.600000, -0.820080 }, { -2.207560, 8.600000, -0.958780 }, { -2.295300, 8.600000, -0.621260 } }, { { -3.281290, 8.600000, -0.820080 }, { -2.295300, 8.600000, -0.621260 }, { -3.369050, 8.600000, -0.348480 } }, { { -3.369050, 8.600000, -0.348480 }, { -2.295300, 8.600000, -0.621260 }, { -2.346920, 8.600000, -0.279130 } }, { { -3.369050, 8.600000, -0.348480 }, { -2.346920, 8.600000, -0.279130 }, { -3.400030, 8.600000, 0.132370 } }, { { -3.400030, 8.600000, 0.132370 }, { -2.346920, 8.600000, -0.279130 }, { -2.367580, 8.600000, 0.076890 } }, { { -3.400030, 8.600000, 0.132370 }, { -2.367580, 8.600000, 0.076890 }, { -2.346920, 8.600000, 0.516120 } }, { { -3.400030, 8.600000, 0.132370 }, { -2.346920, 8.600000, 0.516120 }, { -3.369050, 8.600000, 0.622460 } }, { { -3.369050, 8.600000, 0.622460 }, { -2.346920, 8.600000, 0.516120 }, { -2.279830, 8.600000, 0.913740 } }, { { -3.369050, 8.600000, 0.622460 }, { -2.279830, 8.600000, 0.913740 }, { -3.281290, 8.600000, 1.089440 } }, { { -3.281290, 8.600000, 1.089440 }, { -2.279830, 8.600000, 0.913740 }, { -2.171420, 8.600000, 1.269750 } }, { { -3.281290, 8.600000, 1.089440 }, { -2.171420, 8.600000, 1.269750 }, { -3.136750, 8.600000, 1.528670 } }, { { -3.136750, 8.600000, 1.528670 }, { -2.171420, 8.600000, 1.269750 }, { -2.016540, 8.600000, 1.593400 } }, { { -3.136750, 8.600000, 1.528670 }, { -2.016540, 8.600000, 1.593400 }, { -2.935430, 8.600000, 1.944780 } }, { { -2.935430, 8.600000, 1.944780 }, { -2.016540, 8.600000, 1.593400 }, { -1.825540, 8.600000, 1.880060 } }, { { -2.935430, 8.600000, 1.944780 }, { -1.825540, 8.600000, 1.880060 }, { -1.593240, 8.600000, 2.125100 } }, { { -2.935430, 8.600000, 1.944780 }, { -1.593240, 8.600000, 2.125100 }, { -2.677310, 8.600000, 2.323910 } }, { { -2.677310, 8.600000, 2.323910 }, { -1.593240, 8.600000, 2.125100 }, { -1.319650, 8.600000, 2.333160 } }, { { -2.677310, 8.600000, 2.323910 }, { -1.319650, 8.600000, 2.333160 }, { -2.362410, 8.600000, 2.656810 } }, { { -2.362410, 8.600000, 2.656810 }, { -1.319650, 8.600000, 2.333160 }, { -1.004740, 8.600000, 2.499600 } }, { { -2.362410, 8.600000, 2.656810 }, { -1.004740, 8.600000, 2.499600 }, { -0.664030, 8.600000, 2.633690 } }, { { -2.362410, 8.600000, 2.656810 }, { -0.664030, 8.600000, 2.633690 }, { -0.318170, 8.600000, 2.726160 } }, { { -2.362410, 8.600000, 2.656810 }, { -0.318170, 8.600000, 2.726160 }, { -1.990730, 8.600000, 2.943460 } }, { { -1.990730, 8.600000, 2.943460 }, { -0.318170, 8.600000, 2.726160 }, { 0.043190, 8.600000, 2.777020 } }, { { -1.990730, 8.600000, 2.943460 }, { 0.043190, 8.600000, 2.777020 }, { 0.409700, 8.600000, 2.795510 } }, { { 0.399380, 8.600000, 0.039900 }, { 0.399380, 7.600000, 0.835140 }, { 0.399380, 7.600000, 0.039900 } }, { { 0.399380, 7.600000, 0.835140 }, { 0.399380, 8.600000, 0.039900 }, { 0.399380, 8.600000, 0.835140 } }, { { 2.619160, 8.600000, 0.835140 }, { 0.399380, 7.600000, 0.835140 }, { 0.399380, 8.600000, 0.835140 } }, { { 0.399380, 7.600000, 0.835140 }, { 2.619160, 8.600000, 0.835140 }, { 2.619160, 7.600000, 0.835140 } }, { { 2.619160, 8.600000, 0.835140 }, { 2.619160, 7.600000, 2.092740 }, { 2.619160, 7.600000, 0.835140 } }, { { 2.619160, 7.600000, 2.092740 }, { 2.619160, 8.600000, 0.835140 }, { 2.619160, 8.600000, 2.092740 } }, { { 3.599970, 8.600000, 2.545840 }, { 2.619160, 7.600000, 2.092740 }, { 2.619160, 8.600000, 2.092740 } }, { { 2.619160, 7.600000, 2.092740 }, { 3.599970, 8.600000, 2.545840 }, { 3.599970, 7.600000, 2.545840 } }, { { 3.599970, 8.600000, 2.545840 }, { 3.599970, 7.600000, 0.030650 }, { 3.599970, 7.600000, 2.545840 } }, { { 3.599970, 7.600000, 0.030650 }, { 3.599970, 8.600000, 2.545840 }, { 3.599970, 8.600000, 0.030650 } }, { { 3.599970, 7.600000, 0.030650 }, { 0.399380, 8.600000, 0.039900 }, { 0.399380, 7.600000, 0.039900 } }, { { 0.399380, 8.600000, 0.039900 }, { 3.599970, 7.600000, 0.030650 }, { 3.599970, 8.600000, 0.030650 } }, { { 3.486410, 8.600000, -1.393390 }, { 2.588180, 7.600000, -1.171460 }, { 2.588180, 8.600000, -1.171460 } }, { { 2.588180, 7.600000, -1.171460 }, { 3.486410, 8.600000, -1.393390 }, { 3.486410, 7.600000, -1.393390 } }, { { 3.486410, 8.600000, -1.393390 }, { 3.372840, 7.600000, -1.717040 }, { 3.486410, 7.600000, -1.393390 } }, { { 3.372840, 7.600000, -1.717040 }, { 3.486410, 8.600000, -1.393390 }, { 3.372840, 8.600000, -1.717040 } }, { { 3.372840, 8.600000, -1.717040 }, { 3.238630, 7.600000, -2.008320 }, { 3.372840, 7.600000, -1.717040 } }, { { 3.238630, 7.600000, -2.008320 }, { 3.372840, 8.600000, -1.717040 }, { 3.238630, 8.600000, -2.008320 } }, { { 3.238630, 8.600000, -2.008320 }, { 3.083760, 7.600000, -2.271860 }, { 3.238630, 7.600000, -2.008320 } }, { { 3.083760, 7.600000, -2.271860 }, { 3.238630, 8.600000, -2.008320 }, { 3.083760, 8.600000, -2.271860 } }, { { 3.083760, 8.600000, -2.271860 }, { 2.908230, 7.600000, -2.503040 }, { 3.083760, 7.600000, -2.271860 } }, { { 2.908230, 7.600000, -2.503040 }, { 3.083760, 8.600000, -2.271860 }, { 2.908230, 8.600000, -2.503040 } }, { { 2.908230, 7.600000, -2.503040 }, { 2.701750, 8.600000, -2.697220 }, { 2.701750, 7.600000, -2.697220 } }, { { 2.701750, 8.600000, -2.697220 }, { 2.908230, 7.600000, -2.503040 }, { 2.908230, 8.600000, -2.503040 } }, { { 2.701750, 7.600000, -2.697220 }, { 2.464290, 8.600000, -2.877540 }, { 2.464290, 7.600000, -2.877540 } }, { { 2.464290, 8.600000, -2.877540 }, { 2.701750, 7.600000, -2.697220 }, { 2.701750, 8.600000, -2.697220 } }, { { 2.464290, 7.600000, -2.877540 }, { 2.185530, 8.600000, -3.030110 }, { 2.185530, 7.600000, -3.030110 } }, { { 2.185530, 8.600000, -3.030110 }, { 2.464290, 7.600000, -2.877540 }, { 2.464290, 8.600000, -2.877540 } }, { { 2.185530, 7.600000, -3.030110 }, { 1.875790, 8.600000, -3.159570 }, { 1.875790, 7.600000, -3.159570 } }, { { 1.875790, 8.600000, -3.159570 }, { 2.185530, 7.600000, -3.030110 }, { 2.185530, 8.600000, -3.030110 } }, { { 1.875790, 7.600000, -3.159570 }, { 1.535090, 8.600000, -3.261290 }, { 1.535090, 7.600000, -3.261290 } }, { { 1.535090, 8.600000, -3.261290 }, { 1.875790, 7.600000, -3.159570 }, { 1.875790, 8.600000, -3.159570 } }, { { 1.535090, 7.600000, -3.261290 }, { 1.173730, 8.600000, -3.339890 }, { 1.173730, 7.600000, -3.339890 } }, { { 1.173730, 8.600000, -3.339890 }, { 1.535090, 7.600000, -3.261290 }, { 1.535090, 8.600000, -3.261290 } }, { { 1.173730, 7.600000, -3.339890 }, { 0.791720, 8.600000, -3.381500 }, { 0.791720, 7.600000, -3.381500 } }, { { 0.791720, 8.600000, -3.381500 }, { 1.173730, 7.600000, -3.339890 }, { 1.173730, 8.600000, -3.339890 } }, { { 0.791720, 7.600000, -3.381500 }, { 0.389070, 8.600000, -3.400000 }, { 0.389070, 7.600000, -3.400000 } }, { { 0.389070, 8.600000, -3.400000 }, { 0.791720, 7.600000, -3.381500 }, { 0.791720, 8.600000, -3.381500 } }, { { 0.389070, 7.600000, -3.400000 }, { -0.158130, 8.600000, -3.372250 }, { -0.158130, 7.600000, -3.372250 } }, { { -0.158130, 8.600000, -3.372250 }, { 0.389070, 7.600000, -3.400000 }, { 0.389070, 8.600000, -3.400000 } }, { { -0.158130, 7.600000, -3.372250 }, { -0.674370, 8.600000, -3.293660 }, { -0.674370, 7.600000, -3.293660 } }, { { -0.674370, 8.600000, -3.293660 }, { -0.158130, 7.600000, -3.372250 }, { -0.158130, 8.600000, -3.372250 } }, { { -0.674370, 7.600000, -3.293660 }, { -1.154440, 8.600000, -3.164200 }, { -1.154440, 7.600000, -3.164200 } }, { { -1.154440, 8.600000, -3.164200 }, { -0.674370, 7.600000, -3.293660 }, { -0.674370, 8.600000, -3.293660 } }, { { -1.154440, 7.600000, -3.164200 }, { -1.603560, 8.600000, -2.983880 }, { -1.603560, 7.600000, -2.983880 } }, { { -1.603560, 8.600000, -2.983880 }, { -1.154440, 7.600000, -3.164200 }, { -1.154440, 8.600000, -3.164200 } }, { { -1.603560, 7.600000, -2.983880 }, { -2.011390, 8.600000, -2.748080 }, { -2.011390, 7.600000, -2.748080 } }, { { -2.011390, 8.600000, -2.748080 }, { -1.603560, 7.600000, -2.983880 }, { -1.603560, 8.600000, -2.983880 } }, { { -2.011390, 7.600000, -2.748080 }, { -2.367580, 8.600000, -2.456800 }, { -2.367580, 7.600000, -2.456800 } }, { { -2.367580, 8.600000, -2.456800 }, { -2.011390, 7.600000, -2.748080 }, { -2.011390, 8.600000, -2.748080 } }, { { -2.367580, 8.600000, -2.456800 }, { -2.677310, 7.600000, -2.110040 }, { -2.367580, 7.600000, -2.456800 } }, { { -2.677310, 7.600000, -2.110040 }, { -2.367580, 8.600000, -2.456800 }, { -2.677310, 8.600000, -2.110040 } }, { { -2.677310, 8.600000, -2.110040 }, { -2.935430, 7.600000, -1.707790 }, { -2.677310, 7.600000, -2.110040 } }, { { -2.935430, 7.600000, -1.707790 }, { -2.677310, 8.600000, -2.110040 }, { -2.935430, 8.600000, -1.707790 } }, { { -2.935430, 8.600000, -1.707790 }, { -3.136750, 7.600000, -1.268560 }, { -2.935430, 7.600000, -1.707790 } }, { { -3.136750, 7.600000, -1.268560 }, { -2.935430, 8.600000, -1.707790 }, { -3.136750, 8.600000, -1.268560 } }, { { -3.136750, 8.600000, -1.268560 }, { -3.281290, 7.600000, -0.820080 }, { -3.136750, 7.600000, -1.268560 } }, { { -3.281290, 7.600000, -0.820080 }, { -3.136750, 8.600000, -1.268560 }, { -3.281290, 8.600000, -0.820080 } }, { { -3.281290, 8.600000, -0.820080 }, { -3.369050, 7.600000, -0.348480 }, { -3.281290, 7.600000, -0.820080 } }, { { -3.369050, 7.600000, -0.348480 }, { -3.281290, 8.600000, -0.820080 }, { -3.369050, 8.600000, -0.348480 } }, { { -3.369050, 8.600000, -0.348480 }, { -3.400030, 7.600000, 0.132370 }, { -3.369050, 7.600000, -0.348480 } }, { { -3.400030, 7.600000, 0.132370 }, { -3.369050, 8.600000, -0.348480 }, { -3.400030, 8.600000, 0.132370 } }, { { -3.400030, 8.600000, 0.132370 }, { -3.369050, 7.600000, 0.622460 }, { -3.400030, 7.600000, 0.132370 } }, { { -3.369050, 7.600000, 0.622460 }, { -3.400030, 8.600000, 0.132370 }, { -3.369050, 8.600000, 0.622460 } }, { { -3.369050, 8.600000, 0.622460 }, { -3.281290, 7.600000, 1.089430 }, { -3.369050, 7.600000, 0.622460 } }, { { -3.281290, 7.600000, 1.089430 }, { -3.369050, 8.600000, 0.622460 }, { -3.281290, 8.600000, 1.089440 } }, { { -3.281290, 8.600000, 1.089440 }, { -3.136750, 7.600000, 1.528670 }, { -3.281290, 7.600000, 1.089430 } }, { { -3.136750, 7.600000, 1.528670 }, { -3.281290, 8.600000, 1.089440 }, { -3.136750, 8.600000, 1.528670 } }, { { -3.136750, 8.600000, 1.528670 }, { -2.935430, 7.600000, 1.944780 }, { -3.136750, 7.600000, 1.528670 } }, { { -2.935430, 7.600000, 1.944780 }, { -3.136750, 8.600000, 1.528670 }, { -2.935430, 8.600000, 1.944780 } }, { { -2.935430, 8.600000, 1.944780 }, { -2.677310, 7.600000, 2.323910 }, { -2.935430, 7.600000, 1.944780 } }, { { -2.677310, 7.600000, 2.323910 }, { -2.935430, 8.600000, 1.944780 }, { -2.677310, 8.600000, 2.323910 } }, { { -2.677310, 8.600000, 2.323910 }, { -2.362410, 7.600000, 2.656810 }, { -2.677310, 7.600000, 2.323910 } }, { { -2.362410, 7.600000, 2.656810 }, { -2.677310, 8.600000, 2.323910 }, { -2.362410, 8.600000, 2.656810 } }, { { -1.990730, 8.600000, 2.943460 }, { -2.362410, 7.600000, 2.656810 }, { -2.362410, 8.600000, 2.656810 } }, { { -2.362410, 7.600000, 2.656810 }, { -1.990730, 8.600000, 2.943460 }, { -1.990730, 7.600000, 2.943460 } }, { { -1.562270, 8.600000, 3.174640 }, { -1.990730, 7.600000, 2.943460 }, { -1.990730, 8.600000, 2.943460 } }, { { -1.990730, 7.600000, 2.943460 }, { -1.562270, 8.600000, 3.174640 }, { -1.562270, 7.600000, 3.174640 } }, { { -1.092500, 8.600000, 3.364200 }, { -1.562270, 7.600000, 3.174640 }, { -1.562270, 8.600000, 3.174640 } }, { { -1.562270, 7.600000, 3.174640 }, { -1.092500, 8.600000, 3.364200 }, { -1.092500, 7.600000, 3.364200 } }, { { -0.596920, 8.600000, 3.493660 }, { -1.092500, 7.600000, 3.364200 }, { -1.092500, 8.600000, 3.364200 } }, { { -1.092500, 7.600000, 3.364200 }, { -0.596920, 8.600000, 3.493660 }, { -0.596920, 7.600000, 3.493660 } }, { { -0.075550, 8.600000, 3.576880 }, { -0.596920, 7.600000, 3.493660 }, { -0.596920, 8.600000, 3.493660 } }, { { -0.596920, 7.600000, 3.493660 }, { -0.075550, 8.600000, 3.576880 }, { -0.075550, 7.600000, 3.576880 } }, { { 0.471650, 8.600000, 3.600000 }, { -0.075550, 7.600000, 3.576880 }, { -0.075550, 8.600000, 3.576880 } }, { { -0.075550, 7.600000, 3.576880 }, { 0.471650, 8.600000, 3.600000 }, { 0.471650, 7.600000, 3.600000 } }, { { 0.879480, 8.600000, 3.586130 }, { 0.471650, 7.600000, 3.600000 }, { 0.471650, 8.600000, 3.600000 } }, { { 0.471650, 7.600000, 3.600000 }, { 0.879480, 8.600000, 3.586130 }, { 0.879480, 7.600000, 3.586130 } }, { { 1.287290, 8.600000, 3.535270 }, { 0.879480, 7.600000, 3.586130 }, { 0.879480, 8.600000, 3.586130 } }, { { 0.879480, 7.600000, 3.586130 }, { 1.287290, 8.600000, 3.535270 }, { 1.287290, 7.600000, 3.535270 } }, { { 1.684790, 8.600000, 3.452050 }, { 1.287290, 7.600000, 3.535270 }, { 1.287290, 8.600000, 3.535270 } }, { { 1.287290, 7.600000, 3.535270 }, { 1.684790, 8.600000, 3.452050 }, { 1.684790, 7.600000, 3.452050 } }, { { 2.082280, 8.600000, 3.341080 }, { 1.684790, 7.600000, 3.452050 }, { 1.684790, 8.600000, 3.452050 } }, { { 1.684790, 7.600000, 3.452050 }, { 2.082280, 8.600000, 3.341080 }, { 2.082280, 7.600000, 3.341080 } }, { { 2.469440, 8.600000, 3.193130 }, { 2.082280, 7.600000, 3.341080 }, { 2.082280, 8.600000, 3.341080 } }, { { 2.082280, 7.600000, 3.341080 }, { 2.469440, 8.600000, 3.193130 }, { 2.469440, 7.600000, 3.193130 } }, { { 2.851460, 8.600000, 3.008190 }, { 2.469440, 7.600000, 3.193130 }, { 2.469440, 8.600000, 3.193130 } }, { { 2.469440, 7.600000, 3.193130 }, { 2.851460, 8.600000, 3.008190 }, { 2.851460, 7.600000, 3.008190 } }, { { 3.228300, 8.600000, 2.795510 }, { 2.851460, 7.600000, 3.008190 }, { 2.851460, 8.600000, 3.008190 } }, { { 2.851460, 7.600000, 3.008190 }, { 3.228300, 8.600000, 2.795510 }, { 3.228300, 7.600000, 2.795510 } }, { { 3.599970, 8.600000, 2.545840 }, { 3.228300, 7.600000, 2.795510 }, { 3.228300, 8.600000, 2.795510 } }, { { 3.228300, 7.600000, 2.795510 }, { 3.599970, 8.600000, 2.545840 }, { 3.599970, 7.600000, 2.545840 } }, { { 3.599970, 7.600000, 2.545840 }, { 2.619160, 8.600000, 2.092740 }, { 2.619160, 7.600000, 2.092740 } }, { { 2.619160, 8.600000, 2.092740 }, { 3.599970, 7.600000, 2.545840 }, { 3.599970, 8.600000, 2.545840 } }, { { 2.619160, 7.600000, 2.092740 }, { 2.438480, 8.600000, 2.222190 }, { 2.438480, 7.600000, 2.222190 } }, { { 2.438480, 8.600000, 2.222190 }, { 2.619160, 7.600000, 2.092740 }, { 2.619160, 8.600000, 2.092740 } }, { { 2.438480, 7.600000, 2.222190 }, { 2.221670, 8.600000, 2.342410 }, { 2.221670, 7.600000, 2.342410 } }, { { 2.221670, 8.600000, 2.342410 }, { 2.438480, 7.600000, 2.222190 }, { 2.438480, 8.600000, 2.222190 } }, { { 2.221670, 7.600000, 2.342410 }, { 1.968700, 8.600000, 2.462620 }, { 1.968700, 7.600000, 2.462620 } }, { { 1.968700, 8.600000, 2.462620 }, { 2.221670, 7.600000, 2.342410 }, { 2.221670, 8.600000, 2.342410 } }, { { 1.968700, 7.600000, 2.462620 }, { 1.679630, 8.600000, 2.573580 }, { 1.679630, 7.600000, 2.573580 } }, { { 1.679630, 8.600000, 2.573580 }, { 1.968700, 7.600000, 2.462620 }, { 1.968700, 8.600000, 2.462620 } }, { { 1.679630, 7.600000, 2.573580 }, { 1.369890, 8.600000, 2.670680 }, { 1.369890, 7.600000, 2.670680 } }, { { 1.369890, 8.600000, 2.670680 }, { 1.679630, 7.600000, 2.573580 }, { 1.679630, 8.600000, 2.573580 } }, { { 1.369890, 7.600000, 2.670680 }, { 1.054980, 8.600000, 2.740030 }, { 1.054980, 7.600000, 2.740030 } }, { { 1.054980, 8.600000, 2.740030 }, { 1.369890, 7.600000, 2.670680 }, { 1.369890, 8.600000, 2.670680 } }, { { 1.054980, 7.600000, 2.740030 }, { 0.734940, 8.600000, 2.781640 }, { 0.734940, 7.600000, 2.781640 } }, { { 0.734940, 8.600000, 2.781640 }, { 1.054980, 7.600000, 2.740030 }, { 1.054980, 8.600000, 2.740030 } }, { { 0.734940, 7.600000, 2.781640 }, { 0.409700, 8.600000, 2.795510 }, { 0.409700, 7.600000, 2.795510 } }, { { 0.409700, 8.600000, 2.795510 }, { 0.734940, 7.600000, 2.781640 }, { 0.734940, 8.600000, 2.781640 } }, { { 0.409700, 7.600000, 2.795510 }, { 0.043190, 8.600000, 2.777020 }, { 0.043190, 7.600000, 2.777020 } }, { { 0.043190, 8.600000, 2.777020 }, { 0.409700, 7.600000, 2.795510 }, { 0.409700, 8.600000, 2.795510 } }, { { 0.043190, 7.600000, 2.777020 }, { -0.318170, 8.600000, 2.726160 }, { -0.318170, 7.600000, 2.726160 } }, { { -0.318170, 8.600000, 2.726160 }, { 0.043190, 7.600000, 2.777020 }, { 0.043190, 8.600000, 2.777020 } }, { { -0.318170, 7.600000, 2.726160 }, { -0.664030, 8.600000, 2.633690 }, { -0.664030, 7.600000, 2.633690 } }, { { -0.664030, 8.600000, 2.633690 }, { -0.318170, 7.600000, 2.726160 }, { -0.318170, 8.600000, 2.726160 } }, { { -0.664030, 7.600000, 2.633690 }, { -1.004740, 8.600000, 2.499600 }, { -1.004740, 7.600000, 2.499600 } }, { { -1.004740, 8.600000, 2.499600 }, { -0.664030, 7.600000, 2.633690 }, { -0.664030, 8.600000, 2.633690 } }, { { -1.004740, 7.600000, 2.499600 }, { -1.319650, 8.600000, 2.333160 }, { -1.319650, 7.600000, 2.333160 } }, { { -1.319650, 8.600000, 2.333160 }, { -1.004740, 7.600000, 2.499600 }, { -1.004740, 8.600000, 2.499600 } }, { { -1.319650, 7.600000, 2.333160 }, { -1.593240, 8.600000, 2.125100 }, { -1.593240, 7.600000, 2.125100 } }, { { -1.593240, 8.600000, 2.125100 }, { -1.319650, 7.600000, 2.333160 }, { -1.319650, 8.600000, 2.333160 } }, { { -1.593240, 8.600000, 2.125100 }, { -1.825540, 7.600000, 1.880060 }, { -1.593240, 7.600000, 2.125100 } }, { { -1.825540, 7.600000, 1.880060 }, { -1.593240, 8.600000, 2.125100 }, { -1.825540, 8.600000, 1.880060 } }, { { -1.825540, 8.600000, 1.880060 }, { -2.016540, 7.600000, 1.593400 }, { -1.825540, 7.600000, 1.880060 } }, { { -2.016540, 7.600000, 1.593400 }, { -1.825540, 8.600000, 1.880060 }, { -2.016540, 8.600000, 1.593400 } }, { { -2.016540, 8.600000, 1.593400 }, { -2.171420, 7.600000, 1.269750 }, { -2.016540, 7.600000, 1.593400 } }, { { -2.171420, 7.600000, 1.269750 }, { -2.016540, 8.600000, 1.593400 }, { -2.171420, 8.600000, 1.269750 } }, { { -2.171420, 8.600000, 1.269750 }, { -2.279830, 7.600000, 0.913740 }, { -2.171420, 7.600000, 1.269750 } }, { { -2.279830, 7.600000, 0.913740 }, { -2.171420, 8.600000, 1.269750 }, { -2.279830, 8.600000, 0.913740 } }, { { -2.279830, 8.600000, 0.913740 }, { -2.346920, 7.600000, 0.516120 }, { -2.279830, 7.600000, 0.913740 } }, { { -2.346920, 7.600000, 0.516120 }, { -2.279830, 8.600000, 0.913740 }, { -2.346920, 8.600000, 0.516120 } }, { { -2.346920, 8.600000, 0.516120 }, { -2.367580, 7.600000, 0.076890 }, { -2.346920, 7.600000, 0.516120 } }, { { -2.367580, 7.600000, 0.076890 }, { -2.346920, 8.600000, 0.516120 }, { -2.367580, 8.600000, 0.076890 } }, { { -2.367580, 8.600000, 0.076890 }, { -2.346920, 7.600000, -0.279130 }, { -2.367580, 7.600000, 0.076890 } }, { { -2.346920, 7.600000, -0.279130 }, { -2.367580, 8.600000, 0.076890 }, { -2.346920, 8.600000, -0.279130 } }, { { -2.346920, 8.600000, -0.279130 }, { -2.295300, 7.600000, -0.621260 }, { -2.346920, 7.600000, -0.279130 } }, { { -2.295300, 7.600000, -0.621260 }, { -2.346920, 8.600000, -0.279130 }, { -2.295300, 8.600000, -0.621260 } }, { { -2.295300, 8.600000, -0.621260 }, { -2.207560, 7.600000, -0.958780 }, { -2.295300, 7.600000, -0.621260 } }, { { -2.207560, 7.600000, -0.958780 }, { -2.295300, 8.600000, -0.621260 }, { -2.207560, 8.600000, -0.958780 } }, { { -2.207560, 8.600000, -0.958780 }, { -2.078490, 7.600000, -1.282430 }, { -2.207560, 7.600000, -0.958780 } }, { { -2.078490, 7.600000, -1.282430 }, { -2.207560, 8.600000, -0.958780 }, { -2.078490, 8.600000, -1.282430 } }, { { -2.078490, 8.600000, -1.282430 }, { -1.985570, 7.600000, -1.458120 }, { -2.078490, 7.600000, -1.282430 } }, { { -1.985570, 7.600000, -1.458120 }, { -2.078490, 8.600000, -1.282430 }, { -1.985570, 8.600000, -1.458120 } }, { { -1.985570, 8.600000, -1.458120 }, { -1.877170, 7.600000, -1.633810 }, { -1.985570, 7.600000, -1.458120 } }, { { -1.877170, 7.600000, -1.633810 }, { -1.985570, 8.600000, -1.458120 }, { -1.877170, 8.600000, -1.633810 } }, { { -1.877170, 8.600000, -1.633810 }, { -1.748100, 7.600000, -1.800260 }, { -1.877170, 7.600000, -1.633810 } }, { { -1.748100, 7.600000, -1.800260 }, { -1.877170, 8.600000, -1.633810 }, { -1.748100, 8.600000, -1.800260 } }, { { -1.748100, 8.600000, -1.800260 }, { -1.603560, 7.600000, -1.957460 }, { -1.748100, 7.600000, -1.800260 } }, { { -1.603560, 7.600000, -1.957460 }, { -1.748100, 8.600000, -1.800260 }, { -1.603560, 8.600000, -1.957460 } }, { { -1.438380, 8.600000, -2.100790 }, { -1.603560, 7.600000, -1.957460 }, { -1.603560, 8.600000, -1.957460 } }, { { -1.603560, 7.600000, -1.957460 }, { -1.438380, 8.600000, -2.100790 }, { -1.438380, 7.600000, -2.100790 } }, { { -1.247370, 8.600000, -2.230250 }, { -1.438380, 7.600000, -2.100790 }, { -1.438380, 8.600000, -2.100790 } }, { { -1.438380, 7.600000, -2.100790 }, { -1.247370, 8.600000, -2.230250 }, { -1.247370, 7.600000, -2.230250 } }, { { -1.035710, 8.600000, -2.345840 }, { -1.247370, 7.600000, -2.230250 }, { -1.247370, 8.600000, -2.230250 } }, { { -1.247370, 7.600000, -2.230250 }, { -1.035710, 8.600000, -2.345840 }, { -1.035710, 7.600000, -2.345840 } }, { { -0.798250, 8.600000, -2.447550 }, { -1.035710, 7.600000, -2.345840 }, { -1.035710, 8.600000, -2.345840 } }, { { -1.035710, 7.600000, -2.345840 }, { -0.798250, 8.600000, -2.447550 }, { -0.798250, 7.600000, -2.447550 } }, { { -0.534980, 8.600000, -2.526150 }, { -0.798250, 7.600000, -2.447550 }, { -0.798250, 8.600000, -2.447550 } }, { { -0.798250, 7.600000, -2.447550 }, { -0.534980, 8.600000, -2.526150 }, { -0.534980, 7.600000, -2.526150 } }, { { -0.251050, 8.600000, -2.586260 }, { -0.534980, 7.600000, -2.526150 }, { -0.534980, 8.600000, -2.526150 } }, { { -0.534980, 7.600000, -2.526150 }, { -0.251050, 8.600000, -2.586260 }, { -0.251050, 7.600000, -2.586260 } }, { { 0.063850, 8.600000, -2.618620 }, { -0.251050, 7.600000, -2.586260 }, { -0.251050, 8.600000, -2.586260 } }, { { -0.251050, 7.600000, -2.586260 }, { 0.063850, 8.600000, -2.618620 }, { 0.063850, 7.600000, -2.618620 } }, { { 0.399380, 8.600000, -2.632490 }, { 0.063850, 7.600000, -2.618620 }, { 0.063850, 8.600000, -2.618620 } }, { { 0.063850, 7.600000, -2.618620 }, { 0.399380, 8.600000, -2.632490 }, { 0.399380, 7.600000, -2.632490 } }, { { 0.672990, 8.600000, -2.618620 }, { 0.399380, 7.600000, -2.632490 }, { 0.399380, 8.600000, -2.632490 } }, { { 0.399380, 7.600000, -2.632490 }, { 0.672990, 8.600000, -2.618620 }, { 0.672990, 7.600000, -2.618620 } }, { { 0.941430, 8.600000, -2.586260 }, { 0.672990, 7.600000, -2.618620 }, { 0.672990, 8.600000, -2.618620 } }, { { 0.672990, 7.600000, -2.618620 }, { 0.941430, 8.600000, -2.586260 }, { 0.941430, 7.600000, -2.586260 } }, { { 1.194380, 8.600000, -2.530780 }, { 0.941430, 7.600000, -2.586260 }, { 0.941430, 8.600000, -2.586260 } }, { { 0.941430, 7.600000, -2.586260 }, { 1.194380, 8.600000, -2.530780 }, { 1.194380, 7.600000, -2.530780 } }, { { 1.431840, 8.600000, -2.456800 }, { 1.194380, 7.600000, -2.530780 }, { 1.194380, 8.600000, -2.530780 } }, { { 1.194380, 7.600000, -2.530780 }, { 1.431840, 8.600000, -2.456800 }, { 1.431840, 7.600000, -2.456800 } }, { { 1.653810, 8.600000, -2.359710 }, { 1.431840, 7.600000, -2.456800 }, { 1.431840, 8.600000, -2.456800 } }, { { 1.431840, 7.600000, -2.456800 }, { 1.653810, 8.600000, -2.359710 }, { 1.653810, 7.600000, -2.359710 } }, { { 1.849980, 8.600000, -2.248740 }, { 1.653810, 7.600000, -2.359710 }, { 1.653810, 8.600000, -2.359710 } }, { { 1.653810, 7.600000, -2.359710 }, { 1.849980, 8.600000, -2.248740 }, { 1.849980, 7.600000, -2.248740 } }, { { 2.015170, 8.600000, -2.123910 }, { 1.849980, 7.600000, -2.248740 }, { 1.849980, 8.600000, -2.248740 } }, { { 1.849980, 7.600000, -2.248740 }, { 2.015170, 8.600000, -2.123910 }, { 2.015170, 7.600000, -2.123910 } }, { { 2.154550, 8.600000, -1.985200 }, { 2.015170, 7.600000, -2.123910 }, { 2.015170, 8.600000, -2.123910 } }, { { 2.015170, 7.600000, -2.123910 }, { 2.154550, 8.600000, -1.985200 }, { 2.154550, 7.600000, -1.985200 } }, { { 2.154550, 8.600000, -1.985200 }, { 2.273270, 7.600000, -1.818760 }, { 2.154550, 7.600000, -1.985200 } }, { { 2.273270, 7.600000, -1.818760 }, { 2.154550, 8.600000, -1.985200 }, { 2.273270, 8.600000, -1.818760 } }, { { 2.273270, 8.600000, -1.818760 }, { 2.386860, 7.600000, -1.629190 }, { 2.273270, 7.600000, -1.818760 } }, { { 2.386860, 7.600000, -1.629190 }, { 2.273270, 8.600000, -1.818760 }, { 2.386860, 8.600000, -1.629190 } }, { { 2.386860, 8.600000, -1.629190 }, { 2.490100, 7.600000, -1.411890 }, { 2.386860, 7.600000, -1.629190 } }, { { 2.490100, 7.600000, -1.411890 }, { 2.386860, 8.600000, -1.629190 }, { 2.490100, 8.600000, -1.411890 } }, { { 2.490100, 8.600000, -1.411890 }, { 2.588180, 7.600000, -1.171460 }, { 2.490100, 7.600000, -1.411890 } }, { { 2.588180, 7.600000, -1.171460 }, { 2.490100, 8.600000, -1.411890 }, { 2.588180, 8.600000, -1.171460 } } }; gtkglextmm-1.2.0/examples/logo-k.c0000644000175000001440000001153607527174063014005 00000000000000/* * AC3D triangle data */ /* "K" */ #define LOGO_K_V_SIZE 44 static GLfloat logo_k_v[LOGO_K_V_SIZE][3][3] = { { { 7.600000, 0.763710, 0.307920 }, { 7.600000, -3.400000, -1.921460 }, { 7.600000, -3.400000, -3.400000 } }, { { 7.600000, -3.400000, -1.921460 }, { 7.600000, 0.763710, 0.307920 }, { 7.600000, 0.142970, 1.093400 } }, { { 7.600000, 0.142970, 1.093400 }, { 7.600000, 0.123880, 2.479540 }, { 7.600000, -0.974350, 2.479540 } }, { { 7.600000, 0.123880, 2.479540 }, { 7.600000, 0.142970, 1.093400 }, { 7.600000, 3.600000, -1.725080 } }, { { 7.600000, 3.600000, -1.725080 }, { 7.600000, 0.142970, 1.093400 }, { 7.600000, 0.763710, 0.307920 } }, { { 7.600000, 3.600000, -1.725080 }, { 7.600000, 0.763710, 0.307920 }, { 7.600000, 3.600000, -3.238280 } }, { { 7.600000, -0.974350, 2.479540 }, { 7.600000, -3.400000, 3.600000 }, { 7.600000, -3.400000, 2.479540 } }, { { 7.600000, -3.400000, 3.600000 }, { 7.600000, -0.974350, 2.479540 }, { 7.600000, 3.600000, 3.600000 } }, { { 7.600000, 3.600000, 3.600000 }, { 7.600000, -0.974350, 2.479540 }, { 7.600000, 0.123880, 2.479540 } }, { { 7.600000, 3.600000, 3.600000 }, { 7.600000, 0.123880, 2.479540 }, { 7.600000, 3.600000, 2.479540 } }, { { 8.600000, 3.600000, 3.600000 }, { 8.600000, -3.400000, 2.479540 }, { 8.600000, -3.400000, 3.600000 } }, { { 8.600000, -3.400000, 2.479540 }, { 8.600000, 3.600000, 3.600000 }, { 8.600000, -0.974350, 2.479540 } }, { { 8.600000, -0.974350, 2.479540 }, { 8.600000, 3.600000, 3.600000 }, { 8.600000, 0.123880, 2.479540 } }, { { 8.600000, 0.123880, 2.479540 }, { 8.600000, 3.600000, 3.600000 }, { 8.600000, 3.600000, 2.479540 } }, { { 8.600000, 0.123880, 2.479540 }, { 8.600000, 0.142970, 1.093400 }, { 8.600000, -0.974350, 2.479540 } }, { { 8.600000, 0.142970, 1.093400 }, { 8.600000, 0.123880, 2.479540 }, { 8.600000, 3.600000, -1.725080 } }, { { 8.600000, 0.142970, 1.093400 }, { 8.600000, 3.600000, -1.725080 }, { 8.600000, 0.763710, 0.307920 } }, { { 8.600000, 0.763710, 0.307920 }, { 8.600000, 3.600000, -1.725080 }, { 8.600000, 3.600000, -3.238280 } }, { { 8.600000, 0.142970, 1.093400 }, { 8.600000, -3.400000, -3.400000 }, { 8.600000, -3.400000, -1.921460 } }, { { 8.600000, -3.400000, -3.400000 }, { 8.600000, 0.142970, 1.093400 }, { 8.600000, 0.763710, 0.307920 } }, { { 7.600000, 0.763710, 0.307920 }, { 8.600000, 3.600000, -3.238280 }, { 7.600000, 3.600000, -3.238280 } }, { { 8.600000, 3.600000, -3.238280 }, { 7.600000, 0.763710, 0.307920 }, { 8.600000, 0.763710, 0.307920 } }, { { 8.600000, 3.600000, -1.725080 }, { 7.600000, 3.600000, -3.238280 }, { 8.600000, 3.600000, -3.238280 } }, { { 7.600000, 3.600000, -3.238280 }, { 8.600000, 3.600000, -1.725080 }, { 7.600000, 3.600000, -1.725080 } }, { { 8.600000, 0.123880, 2.479540 }, { 7.600000, 3.600000, -1.725080 }, { 8.600000, 3.600000, -1.725080 } }, { { 7.600000, 3.600000, -1.725080 }, { 8.600000, 0.123880, 2.479540 }, { 7.600000, 0.123880, 2.479540 } }, { { 8.600000, 0.123880, 2.479540 }, { 7.600000, 3.600000, 2.479540 }, { 7.600000, 0.123880, 2.479540 } }, { { 7.600000, 3.600000, 2.479540 }, { 8.600000, 0.123880, 2.479540 }, { 8.600000, 3.600000, 2.479540 } }, { { 8.600000, 3.600000, 3.600000 }, { 7.600000, 3.600000, 2.479540 }, { 8.600000, 3.600000, 2.479540 } }, { { 7.600000, 3.600000, 2.479540 }, { 8.600000, 3.600000, 3.600000 }, { 7.600000, 3.600000, 3.600000 } }, { { 8.600000, 3.600000, 3.600000 }, { 7.600000, -3.400000, 3.600000 }, { 7.600000, 3.600000, 3.600000 } }, { { 7.600000, -3.400000, 3.600000 }, { 8.600000, 3.600000, 3.600000 }, { 8.600000, -3.400000, 3.600000 } }, { { 7.600000, -3.400000, 3.600000 }, { 8.600000, -3.400000, 2.479540 }, { 7.600000, -3.400000, 2.479540 } }, { { 8.600000, -3.400000, 2.479540 }, { 7.600000, -3.400000, 3.600000 }, { 8.600000, -3.400000, 3.600000 } }, { { 8.600000, -3.400000, 2.479540 }, { 7.600000, -0.974350, 2.479540 }, { 7.600000, -3.400000, 2.479540 } }, { { 7.600000, -0.974350, 2.479540 }, { 8.600000, -3.400000, 2.479540 }, { 8.600000, -0.974350, 2.479540 } }, { { 7.600000, -0.974350, 2.479540 }, { 8.600000, 0.142970, 1.093400 }, { 7.600000, 0.142970, 1.093400 } }, { { 8.600000, 0.142970, 1.093400 }, { 7.600000, -0.974350, 2.479540 }, { 8.600000, -0.974350, 2.479540 } }, { { 8.600000, 0.142970, 1.093400 }, { 7.600000, -3.400000, -1.921460 }, { 7.600000, 0.142970, 1.093400 } }, { { 7.600000, -3.400000, -1.921460 }, { 8.600000, 0.142970, 1.093400 }, { 8.600000, -3.400000, -1.921460 } }, { { 7.600000, -3.400000, -1.921460 }, { 8.600000, -3.400000, -3.400000 }, { 7.600000, -3.400000, -3.400000 } }, { { 8.600000, -3.400000, -3.400000 }, { 7.600000, -3.400000, -1.921460 }, { 8.600000, -3.400000, -1.921460 } }, { { 8.600000, -3.400000, -3.400000 }, { 7.600000, 0.763710, 0.307920 }, { 7.600000, -3.400000, -3.400000 } }, { { 7.600000, 0.763710, 0.307920 }, { 8.600000, -3.400000, -3.400000 }, { 8.600000, 0.763710, 0.307920 } } }; gtkglextmm-1.2.0/examples/logo-t.c0000644000175000001440000000620207527174063014010 00000000000000/* * AC3D triangle data */ /* "T" */ #define LOGO_T_V_SIZE 28 static GLfloat logo_t_v[LOGO_T_V_SIZE][3][3] = { { { 0.672290, -3.400000, 7.600000 }, { -0.496390, 2.769170, 7.600000 }, { -0.496390, -3.400000, 7.600000 } }, { { -0.496390, 2.769170, 7.600000 }, { -3.400000, 3.600000, 7.600000 }, { -3.400000, 2.769170, 7.600000 } }, { { -3.400000, 3.600000, 7.600000 }, { -0.496390, 2.769170, 7.600000 }, { 3.600000, 3.600000, 7.600000 } }, { { 3.600000, 3.600000, 7.600000 }, { -0.496390, 2.769170, 7.600000 }, { 0.672290, 2.769170, 7.600000 } }, { { 0.672290, 2.769170, 7.600000 }, { -0.496390, 2.769170, 7.600000 }, { 0.672290, -3.400000, 7.600000 } }, { { 3.600000, 3.600000, 7.600000 }, { 0.672290, 2.769170, 7.600000 }, { 3.600000, 2.769170, 7.600000 } }, { { 3.600000, 3.600000, 8.350000 }, { -3.400000, 2.769170, 8.350000 }, { -3.400000, 3.600000, 8.350000 } }, { { -3.400000, 2.769170, 8.350000 }, { 3.600000, 3.600000, 8.350000 }, { -0.496390, 2.769170, 8.350000 } }, { { -0.496390, 2.769170, 8.350000 }, { 3.600000, 3.600000, 8.350000 }, { 0.672290, 2.769170, 8.350000 } }, { { -0.496390, 2.769170, 8.350000 }, { 0.672290, 2.769170, 8.350000 }, { -0.496390, -3.400000, 8.350000 } }, { { 0.672290, 2.769170, 8.350000 }, { 3.600000, 3.600000, 8.350000 }, { 3.600000, 2.769170, 8.350000 } }, { { 0.672290, -3.400000, 8.350000 }, { -0.496390, -3.400000, 8.350000 }, { 0.672290, 2.769170, 8.350000 } }, { { 0.672290, 2.769170, 8.350000 }, { 3.600000, 2.769170, 7.600000 }, { 0.672290, 2.769170, 7.600000 } }, { { 3.600000, 2.769170, 7.600000 }, { 0.672290, 2.769170, 8.350000 }, { 3.600000, 2.769170, 8.350000 } }, { { 3.600000, 3.600000, 8.350000 }, { 3.600000, 2.769170, 7.600000 }, { 3.600000, 2.769170, 8.350000 } }, { { 3.600000, 2.769170, 7.600000 }, { 3.600000, 3.600000, 8.350000 }, { 3.600000, 3.600000, 7.600000 } }, { { 3.600000, 3.600000, 8.350000 }, { -3.400000, 3.600000, 7.600000 }, { 3.600000, 3.600000, 7.600000 } }, { { -3.400000, 3.600000, 7.600000 }, { 3.600000, 3.600000, 8.350000 }, { -3.400000, 3.600000, 8.350000 } }, { { -3.400000, 3.600000, 7.600000 }, { -3.400000, 2.769170, 8.350000 }, { -3.400000, 2.769170, 7.600000 } }, { { -3.400000, 2.769170, 8.350000 }, { -3.400000, 3.600000, 7.600000 }, { -3.400000, 3.600000, 8.350000 } }, { { -3.400000, 2.769170, 8.350000 }, { -0.496390, 2.769170, 7.600000 }, { -3.400000, 2.769170, 7.600000 } }, { { -0.496390, 2.769170, 7.600000 }, { -3.400000, 2.769170, 8.350000 }, { -0.496390, 2.769170, 8.350000 } }, { { -0.496390, 2.769170, 7.600000 }, { -0.496390, -3.400000, 8.350000 }, { -0.496390, -3.400000, 7.600000 } }, { { -0.496390, -3.400000, 8.350000 }, { -0.496390, 2.769170, 7.600000 }, { -0.496390, 2.769170, 8.350000 } }, { { -0.496390, -3.400000, 8.350000 }, { 0.672290, -3.400000, 7.600000 }, { -0.496390, -3.400000, 7.600000 } }, { { 0.672290, -3.400000, 7.600000 }, { -0.496390, -3.400000, 8.350000 }, { 0.672290, -3.400000, 8.350000 } }, { { 0.672290, 2.769170, 8.350000 }, { 0.672290, -3.400000, 7.600000 }, { 0.672290, -3.400000, 8.350000 } }, { { 0.672290, -3.400000, 7.600000 }, { 0.672290, 2.769170, 8.350000 }, { 0.672290, 2.769170, 7.600000 } } }; gtkglextmm-1.2.0/examples/simple.cc0000644000175000001440000002271610052337374014244 00000000000000// -*- C++ -*- /* * simple.cc: * Simple gtkglextmm example. * * written by Naofumi Yasufuku */ #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include /////////////////////////////////////////////////////////////////////////////// // // OpenGL frame buffer configuration utilities. // /////////////////////////////////////////////////////////////////////////////// struct GLConfigUtil { static void print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean); static void examine_gl_attrib(const Glib::RefPtr& glconfig); }; // // Print a configuration attribute. // void GLConfigUtil::print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean) { int value; if (glconfig->get_attrib(attrib, value)) { std::cout << attrib_str << " = "; if (is_boolean) std::cout << (value == true ? "true" : "false") << std::endl; else std::cout << value << std::endl; } else { std::cout << "*** Cannot get " << attrib_str << " attribute value\n"; } } // // Print configuration attributes. // void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr& glconfig) { std::cout << "\nOpenGL visual configurations :\n\n"; std::cout << "glconfig->is_rgba() = " << (glconfig->is_rgba() ? "true" : "false") << std::endl; std::cout << "glconfig->is_double_buffered() = " << (glconfig->is_double_buffered() ? "true" : "false") << std::endl; std::cout << "glconfig->is_stereo() = " << (glconfig->is_stereo() ? "true" : "false") << std::endl; std::cout << "glconfig->has_alpha() = " << (glconfig->has_alpha() ? "true" : "false") << std::endl; std::cout << "glconfig->has_depth_buffer() = " << (glconfig->has_depth_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_stencil_buffer() = " << (glconfig->has_stencil_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_accum_buffer() = " << (glconfig->has_accum_buffer() ? "true" : "false") << std::endl; std::cout << std::endl; print_gl_attrib(glconfig, "Gdk::GL::USE_GL", Gdk::GL::USE_GL, true); print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE", Gdk::GL::BUFFER_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::LEVEL", Gdk::GL::LEVEL, false); print_gl_attrib(glconfig, "Gdk::GL::RGBA", Gdk::GL::RGBA, true); print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER", Gdk::GL::DOUBLEBUFFER, true); print_gl_attrib(glconfig, "Gdk::GL::STEREO", Gdk::GL::STEREO, true); print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS", Gdk::GL::AUX_BUFFERS, false); print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE", Gdk::GL::RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE", Gdk::GL::GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE", Gdk::GL::BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE", Gdk::GL::ALPHA_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE", Gdk::GL::DEPTH_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE", Gdk::GL::STENCIL_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE", Gdk::GL::ACCUM_RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE", Gdk::GL::ACCUM_BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false); std::cout << std::endl; } /////////////////////////////////////////////////////////////////////////////// // // Simple OpenGL scene. // /////////////////////////////////////////////////////////////////////////////// class SimpleGLScene : public Gtk::DrawingArea, public Gtk::GL::Widget { public: SimpleGLScene(); virtual ~SimpleGLScene(); protected: virtual void on_realize(); virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); }; SimpleGLScene::SimpleGLScene() { // // Configure OpenGL-capable visual. // Glib::RefPtr glconfig; // Try double-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_DOUBLE); if (!glconfig) { std::cerr << "*** Cannot find the double-buffered visual.\n" << "*** Trying single-buffered visual.\n"; // Try single-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH); if (!glconfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } } // print frame buffer attributes. GLConfigUtil::examine_gl_attrib(glconfig); // // Set OpenGL-capability to the widget. // set_gl_capability(glconfig); } SimpleGLScene::~SimpleGLScene() { } void SimpleGLScene::on_realize() { // We need to call the base on_realize() Gtk::DrawingArea::on_realize(); // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return; GLUquadricObj* qobj = gluNewQuadric(); gluQuadricDrawStyle(qobj, GLU_FILL); glNewList(1, GL_COMPILE); gluSphere(qobj, 1.0, 20, 20); glEndList(); static GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0}; static GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0}; glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); glLightfv(GL_LIGHT0, GL_POSITION, light_position); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST); glClearColor(1.0, 1.0, 1.0, 1.0); glClearDepth(1.0); glViewport(0, 0, get_width(), get_height()); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(40.0, 1.0, 1.0, 10.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); glTranslatef(0.0, 0.0, -3.0); glwindow->gl_end(); // *** OpenGL END *** } bool SimpleGLScene::on_configure_event(GdkEventConfigure* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; glViewport(0, 0, get_width(), get_height()); glwindow->gl_end(); // *** OpenGL END *** return true; } bool SimpleGLScene::on_expose_event(GdkEventExpose* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glCallList(1); // Swap buffers. if (glwindow->is_double_buffered()) glwindow->swap_buffers(); else glFlush(); glwindow->gl_end(); // *** OpenGL END *** return true; } /////////////////////////////////////////////////////////////////////////////// // // The application class. // /////////////////////////////////////////////////////////////////////////////// class Simple : public Gtk::Window { public: Simple(); virtual ~Simple(); protected: // signal handlers: void on_button_quit_clicked(); protected: // member widgets: Gtk::VBox m_VBox; SimpleGLScene m_SimpleGLScene; Gtk::Button m_ButtonQuit; }; Simple::Simple() : m_VBox(false, 0), m_ButtonQuit("Quit") { // // Top-level window. // set_title("Simple"); // Get automatically redrawn if any of their children changed allocation. set_reallocate_redraws(true); add(m_VBox); // // Simple OpenGL scene. // m_SimpleGLScene.set_size_request(200, 200); m_VBox.pack_start(m_SimpleGLScene); // // Simple quit button. // m_ButtonQuit.signal_clicked().connect( sigc::mem_fun(*this, &Simple::on_button_quit_clicked)); m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0); // // Show window. // show_all(); } Simple::~Simple() {} void Simple::on_button_quit_clicked() { Gtk::Main::quit(); } /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Query OpenGL extension version. // int major, minor; Gdk::GL::query_version(major, minor); std::cout << "OpenGL extension version - " << major << "." << minor << std::endl; // // Instantiate and run the application. // Simple simple; kit.run(simple); return 0; } gtkglextmm-1.2.0/examples/trackball.c0000644000175000001440000002041007527174063014543 00000000000000/* * (c) Copyright 1993, 1994, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that the above * copyright notice appear in all copies and that both the copyright notice * and this permission notice appear in supporting documentation, and that * the name of Silicon Graphics, Inc. not be used in advertising * or publicity pertaining to distribution of the software without specific, * written prior permission. * * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION, * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE. * * US Government Users Restricted Rights * Use, duplication, or disclosure by the Government is subject to * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph * (c)(1)(ii) of the Rights in Technical Data and Computer Software * clause at DFARS 252.227-7013 and/or in similar or successor * clauses in the FAR or the DOD or NASA FAR Supplement. * Unpublished-- rights reserved under the copyright laws of the * United States. Contractor/manufacturer is Silicon Graphics, * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311. * * OpenGL(TM) is a trademark of Silicon Graphics, Inc. */ /* * Trackball code: * * Implementation of a virtual trackball. * Implemented by Gavin Bell, lots of ideas from Thant Tessman and * the August '88 issue of Siggraph's "Computer Graphics," pp. 121-129. * * Vector manip code: * * Original code from: * David M. Ciemiewicz, Mark Grossman, Henry Moreton, and Paul Haeberli * * Much mucking with by: * Gavin Bell */ #include #include "trackball.h" /* * This size should really be based on the distance from the center of * rotation to the point on the object underneath the mouse. That * point would then track the mouse as closely as possible. This is a * simple example, though, so that is left as an Exercise for the * Programmer. */ #define TRACKBALLSIZE (0.8) /* * Local function prototypes (not defined in trackball.h) */ static float tb_project_to_sphere(float, float, float); static void normalize_quat(float [4]); void vzero(float *v) { v[0] = 0.0; v[1] = 0.0; v[2] = 0.0; } void vset(float *v, float x, float y, float z) { v[0] = x; v[1] = y; v[2] = z; } void vsub(const float *src1, const float *src2, float *dst) { dst[0] = src1[0] - src2[0]; dst[1] = src1[1] - src2[1]; dst[2] = src1[2] - src2[2]; } void vcopy(const float *v1, float *v2) { register int i; for (i = 0 ; i < 3 ; i++) v2[i] = v1[i]; } void vcross(const float *v1, const float *v2, float *cross) { float temp[3]; temp[0] = (v1[1] * v2[2]) - (v1[2] * v2[1]); temp[1] = (v1[2] * v2[0]) - (v1[0] * v2[2]); temp[2] = (v1[0] * v2[1]) - (v1[1] * v2[0]); vcopy(temp, cross); } float vlength(const float *v) { return sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2]); } void vscale(float *v, float div) { v[0] *= div; v[1] *= div; v[2] *= div; } void vnormal(float *v) { vscale(v,1.0/vlength(v)); } float vdot(const float *v1, const float *v2) { return v1[0]*v2[0] + v1[1]*v2[1] + v1[2]*v2[2]; } void vadd(const float *src1, const float *src2, float *dst) { dst[0] = src1[0] + src2[0]; dst[1] = src1[1] + src2[1]; dst[2] = src1[2] + src2[2]; } /* * Ok, simulate a track-ball. Project the points onto the virtual * trackball, then figure out the axis of rotation, which is the cross * product of P1 P2 and O P1 (O is the center of the ball, 0,0,0) * Note: This is a deformed trackball-- is a trackball in the center, * but is deformed into a hyperbolic sheet of rotation away from the * center. This particular function was chosen after trying out * several variations. * * It is assumed that the arguments to this routine are in the range * (-1.0 ... 1.0) */ void trackball(float q[4], float p1x, float p1y, float p2x, float p2y) { float a[3]; /* Axis of rotation */ float phi; /* how much to rotate about axis */ float p1[3], p2[3], d[3]; float t; if (p1x == p2x && p1y == p2y) { /* Zero rotation */ vzero(q); q[3] = 1.0; return; } /* * First, figure out z-coordinates for projection of P1 and P2 to * deformed sphere */ vset(p1,p1x,p1y,tb_project_to_sphere(TRACKBALLSIZE,p1x,p1y)); vset(p2,p2x,p2y,tb_project_to_sphere(TRACKBALLSIZE,p2x,p2y)); /* * Now, we want the cross product of P1 and P2 */ vcross(p2,p1,a); /* * Figure out how much to rotate around that axis. */ vsub(p1,p2,d); t = vlength(d) / (2.0*TRACKBALLSIZE); /* * Avoid problems with out-of-control values... */ if (t > 1.0) t = 1.0; if (t < -1.0) t = -1.0; phi = 2.0 * asin(t); axis_to_quat(a,phi,q); } /* * Given an axis and angle, compute quaternion. */ void axis_to_quat(float a[3], float phi, float q[4]) { vnormal(a); vcopy(a,q); vscale(q,sin(phi/2.0)); q[3] = cos(phi/2.0); } /* * Project an x,y pair onto a sphere of radius r OR a hyperbolic sheet * if we are away from the center of the sphere. */ static float tb_project_to_sphere(float r, float x, float y) { float d, t, z; d = sqrt(x*x + y*y); if (d < r * 0.70710678118654752440) { /* Inside sphere */ z = sqrt(r*r - d*d); } else { /* On hyperbola */ t = r / 1.41421356237309504880; z = t*t / d; } return z; } /* * Given two rotations, e1 and e2, expressed as quaternion rotations, * figure out the equivalent single rotation and stuff it into dest. * * This routine also normalizes the result every RENORMCOUNT times it is * called, to keep error from creeping in. * * NOTE: This routine is written so that q1 or q2 may be the same * as dest (or each other). */ #define RENORMCOUNT 97 void add_quats(float q1[4], float q2[4], float dest[4]) { static int count=0; float t1[4], t2[4], t3[4]; float tf[4]; vcopy(q1,t1); vscale(t1,q2[3]); vcopy(q2,t2); vscale(t2,q1[3]); vcross(q2,q1,t3); vadd(t1,t2,tf); vadd(t3,tf,tf); tf[3] = q1[3] * q2[3] - vdot(q1,q2); dest[0] = tf[0]; dest[1] = tf[1]; dest[2] = tf[2]; dest[3] = tf[3]; if (++count > RENORMCOUNT) { count = 0; normalize_quat(dest); } } /* * Quaternions always obey: a^2 + b^2 + c^2 + d^2 = 1.0 * If they don't add up to 1.0, dividing by their magnitued will * renormalize them. * * Note: See the following for more information on quaternions: * * - Shoemake, K., Animating rotation with quaternion curves, Computer * Graphics 19, No 3 (Proc. SIGGRAPH'85), 245-254, 1985. * - Pletinckx, D., Quaternion calculus as a basic tool in computer * graphics, The Visual Computer 5, 2-13, 1989. */ static void normalize_quat(float q[4]) { int i; float mag; mag = (q[0]*q[0] + q[1]*q[1] + q[2]*q[2] + q[3]*q[3]); for (i = 0; i < 4; i++) q[i] /= mag; } /* * Build a rotation matrix, given a quaternion rotation. * */ void build_rotmatrix(float m[4][4], float q[4]) { m[0][0] = 1.0 - 2.0 * (q[1] * q[1] + q[2] * q[2]); m[0][1] = 2.0 * (q[0] * q[1] - q[2] * q[3]); m[0][2] = 2.0 * (q[2] * q[0] + q[1] * q[3]); m[0][3] = 0.0; m[1][0] = 2.0 * (q[0] * q[1] + q[2] * q[3]); m[1][1]= 1.0 - 2.0 * (q[2] * q[2] + q[0] * q[0]); m[1][2] = 2.0 * (q[1] * q[2] - q[0] * q[3]); m[1][3] = 0.0; m[2][0] = 2.0 * (q[2] * q[0] - q[1] * q[3]); m[2][1] = 2.0 * (q[1] * q[2] + q[0] * q[3]); m[2][2] = 1.0 - 2.0 * (q[1] * q[1] + q[0] * q[0]); m[2][3] = 0.0; m[3][0] = 0.0; m[3][1] = 0.0; m[3][2] = 0.0; m[3][3] = 1.0; } gtkglextmm-1.2.0/examples/trackball.h0000644000175000001440000000625407527174063014562 00000000000000/* * (c) Copyright 1993, 1994, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that the above * copyright notice appear in all copies and that both the copyright notice * and this permission notice appear in supporting documentation, and that * the name of Silicon Graphics, Inc. not be used in advertising * or publicity pertaining to distribution of the software without specific, * written prior permission. * * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION, * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE. * * US Government Users Restricted Rights * Use, duplication, or disclosure by the Government is subject to * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph * (c)(1)(ii) of the Rights in Technical Data and Computer Software * clause at DFARS 252.227-7013 and/or in similar or successor * clauses in the FAR or the DOD or NASA FAR Supplement. * Unpublished-- rights reserved under the copyright laws of the * United States. Contractor/manufacturer is Silicon Graphics, * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311. * * OpenGL(TM) is a trademark of Silicon Graphics, Inc. */ /* * trackball.h * A virtual trackball implementation * Written by Gavin Bell for Silicon Graphics, November 1988. */ /* * Pass the x and y coordinates of the last and current positions of * the mouse, scaled so they are from (-1.0 ... 1.0). * * The resulting rotation is returned as a quaternion rotation in the * first paramater. */ void trackball(float q[4], float p1x, float p1y, float p2x, float p2y); /* * Given two quaternions, add them together to get a third quaternion. * Adding quaternions to get a compound rotation is analagous to adding * translations to get a compound translation. When incrementally * adding rotations, the first argument here should be the new * rotation, the second and third the total rotation (which will be * over-written with the resulting new total rotation). */ void add_quats(float *q1, float *q2, float *dest); /* * A useful function, builds a rotation matrix in Matrix based on * given quaternion. */ void build_rotmatrix(float m[4][4], float q[4]); /* * This function computes a quaternion based on an axis (defined by * the given vector) and an angle about which to rotate. The angle is * expressed in radians. The result is put into the third argument. */ void axis_to_quat(float a[3], float phi, float q[4]); gtkglextmm-1.2.0/examples/Makefile.mingw0000644000175000001440000000561507717143165015232 00000000000000# -*- Makefile -*- # # Sample makefile for gtkglextmm example programs # Naofumi Yasufuku # SHELL = /bin/sh INCLUDES := $(shell pkg-config --cflags gtkglextmm-1.0) LIBS := $(shell pkg-config --libs gtkglextmm-1.0) DEFINES = CC = gcc CXX = g++ OPTIMIZE = -march=pentium -O2 DEBUG = -g -Wall MS_BITFIELDS = -mms-bitfields #MS_BITFIELDS = -fnative-struct CFLAGS = $(OPTIMIZE) $(DEBUG) $(MS_BITFIELDS) CXXFLAGS = $(OPTIMIZE) $(DEBUG) $(MS_BITFIELDS) CPPFLAGS = $(INCLUDES) $(DEFINES) LDFLAGS = COMPILE_C = $(CC) $(CFLAGS) $(CPPFLAGS) COMPILE_CXX = $(CXX) $(CXXFLAGS) $(CPPFLAGS) LINK = $(CXX) $(LDFLAGS) EXEEXT = .exe HEADERS = \ trackball.h \ shapes.h \ logo-model.h \ logo.h SOURCES_CXX = \ simple.cc \ simple-mixed.cc \ pixmap.cc \ pixmap-mixed.cc \ share-lists.cc \ font.cc \ button.cc \ shapes.cc \ logo.cc \ gears.cc \ simple-darea.cc SOURCES_C = \ trackball.c \ logo-model.c EXTRA_SOURCES = \ logo-g.c \ logo-t.c \ logo-k.c OBJECTS = $(SOURCES_CXX:.cc=.o) $(SOURCES_C:.c=.o) PROGRAMS = \ simple$(EXEEXT) \ simple-mixed$(EXEEXT) \ pixmap$(EXEEXT) \ pixmap-mixed$(EXEEXT) \ share-lists$(EXEEXT) \ font$(EXEEXT) \ button$(EXEEXT) \ shapes$(EXEEXT) \ logo$(EXEEXT) \ gears$(EXEEXT) \ simple-darea$(EXEEXT) .PHONY: all clean clean-deps distclean .SUFFIXES: .SUFFIXES: .c .cc .o all: $(PROGRAMS) # # Include dependencies # DEPS_MAGIC := $(shell if test ! -d .deps; then mkdir .deps; fi) DEPS = \ $(addprefix .deps/, $(SOURCES_CXX:.cc=.Po)) \ $(addprefix .deps/, $(SOURCES_C:.c=.Po)) -include $(DEPS) # # Compile command # .c.o: $(COMPILE_C) -Wp,-MD,.deps/$(*F).TPo -c $< @-cp .deps/$(*F).TPo .deps/$(*F).Po; \ tr ' ' '\012' < .deps/$(*F).TPo \ | sed -e 's/^\\$$//' -e '/^$$/d' -e '/:$$/d' \ | sed -e 's/$$/ :/' \ >> .deps/$(*F).Po; \ rm .deps/$(*F).TPo .cc.o: $(COMPILE_CXX) -Wp,-MD,.deps/$(*F).TPo -c $< @-cp .deps/$(*F).TPo .deps/$(*F).Po; \ tr ' ' '\012' < .deps/$(*F).TPo \ | sed -e 's/^\\$$//' -e '/^$$/d' -e '/:$$/d' \ | sed -e 's/$$/ :/' \ >> .deps/$(*F).Po; \ rm .deps/$(*F).TPo # # Building executables # simple$(EXEEXT): simple.o $(LINK) -o $@ $^ $(LIBS) simple-mixed$(EXEEXT): simple-mixed.o $(LINK) -o $@ $^ $(LIBS) pixmap$(EXEEXT): pixmap.o $(LINK) -o $@ $^ $(LIBS) pixmap-mixed$(EXEEXT): pixmap-mixed.o $(LINK) -o $@ $^ $(LIBS) share-lists$(EXEEXT): share-lists.o $(LINK) -o $@ $^ $(LIBS) font$(EXEEXT): font.o $(LINK) -o $@ $^ $(LIBS) button$(EXEEXT): button.o $(LINK) -o $@ $^ $(LIBS) shapes$(EXEEXT): trackball.o shapes.o $(LINK) -o $@ $^ $(LIBS) logo$(EXEEXT): trackball.o logo-model.o logo.o $(LINK) -o $@ $^ $(LIBS) gears$(EXEEXT): gears.o $(LINK) -o $@ $^ $(LIBS) simple-darea$(EXEEXT): simple-darea.o $(LINK) -o $@ $^ $(LIBS) # # Clean up # clean-deps: -rm -rf .deps clean-obj: clean-deps -rm -f *.o clean: clean-obj -rm -f $(PROGRAMS) distclean: clean -rm -f *~ gtkglextmm-1.2.0/examples/simple-darea.cc0000644000175000001440000002314510052337374015313 00000000000000// -*- C++ -*- /* * simple.cc: * Simple Gtk::GL::DrawingArea example. * * written by Naofumi Yasufuku */ #include #include #include #include #ifdef G_OS_WIN32 #define WIN32_LEAN_AND_MEAN 1 #include #endif #include #include /////////////////////////////////////////////////////////////////////////////// // // OpenGL frame buffer configuration utilities. // /////////////////////////////////////////////////////////////////////////////// struct GLConfigUtil { static void print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean); static void examine_gl_attrib(const Glib::RefPtr& glconfig); }; // // Print a configuration attribute. // void GLConfigUtil::print_gl_attrib(const Glib::RefPtr& glconfig, const char* attrib_str, int attrib, bool is_boolean) { int value; if (glconfig->get_attrib(attrib, value)) { std::cout << attrib_str << " = "; if (is_boolean) std::cout << (value == true ? "true" : "false") << std::endl; else std::cout << value << std::endl; } else { std::cout << "*** Cannot get " << attrib_str << " attribute value\n"; } } // // Print configuration attributes. // void GLConfigUtil::examine_gl_attrib(const Glib::RefPtr& glconfig) { std::cout << "\nOpenGL visual configurations :\n\n"; std::cout << "glconfig->is_rgba() = " << (glconfig->is_rgba() ? "true" : "false") << std::endl; std::cout << "glconfig->is_double_buffered() = " << (glconfig->is_double_buffered() ? "true" : "false") << std::endl; std::cout << "glconfig->is_stereo() = " << (glconfig->is_stereo() ? "true" : "false") << std::endl; std::cout << "glconfig->has_alpha() = " << (glconfig->has_alpha() ? "true" : "false") << std::endl; std::cout << "glconfig->has_depth_buffer() = " << (glconfig->has_depth_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_stencil_buffer() = " << (glconfig->has_stencil_buffer() ? "true" : "false") << std::endl; std::cout << "glconfig->has_accum_buffer() = " << (glconfig->has_accum_buffer() ? "true" : "false") << std::endl; std::cout << std::endl; print_gl_attrib(glconfig, "Gdk::GL::USE_GL", Gdk::GL::USE_GL, true); print_gl_attrib(glconfig, "Gdk::GL::BUFFER_SIZE", Gdk::GL::BUFFER_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::LEVEL", Gdk::GL::LEVEL, false); print_gl_attrib(glconfig, "Gdk::GL::RGBA", Gdk::GL::RGBA, true); print_gl_attrib(glconfig, "Gdk::GL::DOUBLEBUFFER", Gdk::GL::DOUBLEBUFFER, true); print_gl_attrib(glconfig, "Gdk::GL::STEREO", Gdk::GL::STEREO, true); print_gl_attrib(glconfig, "Gdk::GL::AUX_BUFFERS", Gdk::GL::AUX_BUFFERS, false); print_gl_attrib(glconfig, "Gdk::GL::RED_SIZE", Gdk::GL::RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::GREEN_SIZE", Gdk::GL::GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::BLUE_SIZE", Gdk::GL::BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ALPHA_SIZE", Gdk::GL::ALPHA_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::DEPTH_SIZE", Gdk::GL::DEPTH_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::STENCIL_SIZE", Gdk::GL::STENCIL_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_RED_SIZE", Gdk::GL::ACCUM_RED_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_GREEN_SIZE", Gdk::GL::ACCUM_GREEN_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_BLUE_SIZE", Gdk::GL::ACCUM_BLUE_SIZE, false); print_gl_attrib(glconfig, "Gdk::GL::ACCUM_ALPHA_SIZE", Gdk::GL::ACCUM_ALPHA_SIZE, false); std::cout << std::endl; } /////////////////////////////////////////////////////////////////////////////// // // Simple OpenGL scene. // /////////////////////////////////////////////////////////////////////////////// class SimpleGLScene : public Gtk::GL::DrawingArea { public: SimpleGLScene(const Glib::RefPtr& config); virtual ~SimpleGLScene(); protected: virtual void on_realize(); virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); }; SimpleGLScene::SimpleGLScene(const Glib::RefPtr& config) : Gtk::GL::DrawingArea(config) { } SimpleGLScene::~SimpleGLScene() { } void SimpleGLScene::on_realize() { // We need to call the base on_realize() Gtk::GL::DrawingArea::on_realize(); // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return; GLUquadricObj* qobj = gluNewQuadric(); gluQuadricDrawStyle(qobj, GLU_FILL); glNewList(1, GL_COMPILE); gluSphere(qobj, 1.0, 20, 20); glEndList(); static GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0}; static GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0}; glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); glLightfv(GL_LIGHT0, GL_POSITION, light_position); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST); glClearColor(1.0, 1.0, 1.0, 1.0); glClearDepth(1.0); glViewport(0, 0, get_width(), get_height()); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(40.0, 1.0, 1.0, 10.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); glTranslatef(0.0, 0.0, -3.0); glwindow->gl_end(); // *** OpenGL END *** } bool SimpleGLScene::on_configure_event(GdkEventConfigure* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; glViewport(0, 0, get_width(), get_height()); glwindow->gl_end(); // *** OpenGL END *** return true; } bool SimpleGLScene::on_expose_event(GdkEventExpose* event) { // // Get GL::Window. // Glib::RefPtr glwindow = get_gl_window(); // // GL calls. // // *** OpenGL BEGIN *** if (!glwindow->gl_begin(get_gl_context())) return false; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glCallList(1); // Swap buffers. if (glwindow->is_double_buffered()) glwindow->swap_buffers(); else glFlush(); glwindow->gl_end(); // *** OpenGL END *** return true; } /////////////////////////////////////////////////////////////////////////////// // // The application class. // /////////////////////////////////////////////////////////////////////////////// class Simple : public Gtk::Window { public: Simple(const Glib::RefPtr& config); virtual ~Simple(); protected: // signal handlers: void on_button_quit_clicked(); protected: // member widgets: Gtk::VBox m_VBox; SimpleGLScene m_SimpleGLScene; Gtk::Button m_ButtonQuit; }; Simple::Simple(const Glib::RefPtr& config) : m_VBox(false, 0), m_SimpleGLScene(config), m_ButtonQuit("Quit") { // // Top-level window. // set_title("Gtk::GL::DrawingArea"); // Get automatically redrawn if any of their children changed allocation. set_reallocate_redraws(true); add(m_VBox); // // Simple OpenGL scene. // m_SimpleGLScene.set_size_request(200, 200); m_VBox.pack_start(m_SimpleGLScene); // // Simple quit button. // m_ButtonQuit.signal_clicked().connect( sigc::mem_fun(*this, &Simple::on_button_quit_clicked)); m_VBox.pack_start(m_ButtonQuit, Gtk::PACK_SHRINK, 0); // // Show window. // show_all(); } Simple::~Simple() {} void Simple::on_button_quit_clicked() { Gtk::Main::quit(); } /////////////////////////////////////////////////////////////////////////////// // // Main. // /////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { Gtk::Main kit(argc, argv); // // Init gtkglextmm. // Gtk::GL::init(argc, argv); // // Query OpenGL extension version. // int major, minor; Gdk::GL::query_version(major, minor); std::cout << "OpenGL extension version - " << major << "." << minor << std::endl; // // Configure OpenGL-capable visual. // Glib::RefPtr glconfig; // Try double-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_DOUBLE); if (!glconfig) { std::cerr << "*** Cannot find the double-buffered visual.\n" << "*** Trying single-buffered visual.\n"; // Try single-buffered visual glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH); if (!glconfig) { std::cerr << "*** Cannot find any OpenGL-capable visual.\n"; std::exit(1); } } // print frame buffer attributes. GLConfigUtil::examine_gl_attrib(glconfig); // // Instantiate and run the application. // Simple simple(glconfig); kit.run(simple); return 0; } gtkglextmm-1.2.0/examples/shapes.h0000644000175000001440000001346110052337374014075 00000000000000// -*- C++ -*- /* * shapes.h: * shapes demo. * * written by Naofumi Yasufuku */ #ifndef _SHAPES_H #define _SHAPES_H #include #include /////////////////////////////////////////////////////////////////////////////// // // Shapes classes. // /////////////////////////////////////////////////////////////////////////////// namespace Shapes { class Scene; // // View class. // class View : public sigc::trackable { friend class Scene; public: static const float NEAR_CLIP; static const float FAR_CLIP; static const float INIT_POS_X; static const float INIT_POS_Y; static const float INIT_POS_Z; static const float INIT_AXIS_X; static const float INIT_AXIS_Y; static const float INIT_AXIS_Z; static const float INIT_ANGLE; static const float INIT_SCALE; static const float SCALE_MAX; static const float SCALE_MIN; static const float ANIMATE_THRESHOLD; public: View(); virtual ~View(); public: void frustum(int w, int h); void xform(); void reset(); void set_pos(float x, float y, float z) { m_Pos[0] = x; m_Pos[1] = y; m_Pos[2] = z; } void set_quat(float q0, float q1, float q2, float q3) { m_Quat[0] = q0; m_Quat[1] = q1; m_Quat[2] = q2; m_Quat[3] = q3; } void set_scale(float scale) { m_Scale = scale; } void enable_animation(); void disable_animation(); bool is_animate() const { return m_Animate; } protected: // Signal handlers: virtual bool on_button_press_event(GdkEventButton* event, Scene* scene); virtual bool on_button_release_event(GdkEventButton* event, Scene* scene); virtual bool on_motion_notify_event(GdkEventMotion* event, Scene* scene); private: float m_Pos[3]; float m_Quat[4]; float m_Scale; float m_QuatDiff[4]; float m_BeginX; float m_BeginY; float m_DX; float m_DY; bool m_Animate; }; // // Model class. // class Model { friend class Scene; public: static const unsigned int NUM_SHAPES; enum ShapeType { CUBE, SPHERE, CONE, TORUS, TETRAHEDRON, OCTAHEDRON, DODECAHEDRON, ICOSAHEDRON, TEAPOT, }; static const ShapeType SHAPE_CUBE; static const ShapeType SHAPE_SPHERE; static const ShapeType SHAPE_CONE; static const ShapeType SHAPE_TORUS; static const ShapeType SHAPE_TETRAHEDRON; static const ShapeType SHAPE_OCTAHEDRON; static const ShapeType SHAPE_DODECAHEDRON; static const ShapeType SHAPE_ICOSAHEDRON; static const ShapeType SHAPE_TEAPOT; public: struct MaterialProp { GLfloat ambient[4]; GLfloat diffuse[4]; GLfloat specular[4]; GLfloat shininess; }; static const MaterialProp MAT_EMERALD; static const MaterialProp MAT_JADE; static const MaterialProp MAT_OBSIDIAN; static const MaterialProp MAT_PEARL; static const MaterialProp MAT_RUBY; static const MaterialProp MAT_TURQUOISE; static const MaterialProp MAT_BRASS; static const MaterialProp MAT_BRONZE; static const MaterialProp MAT_CHROME; static const MaterialProp MAT_COPPER; static const MaterialProp MAT_GOLD; static const MaterialProp MAT_SILVER; public: Model(); virtual ~Model(); private: void init_gl(Glib::RefPtr& gldrawable); public: void draw(Glib::RefPtr& gldrawable); void set_shape(ShapeType shape) { m_CurrentShape = shape; } void set_material(const MaterialProp* material) { m_CurrentMat = material; } private: unsigned int m_ListBase; ShapeType m_CurrentShape; const MaterialProp* m_CurrentMat; }; // // Scene class. // class Scene : public Gtk::GL::DrawingArea { friend class View; friend class Model; public: // OpenGL scene related constants: static const float CLEAR_COLOR[4]; static const float CLEAR_DEPTH; static const float LIGHT0_POSITION[4]; static const float LIGHT0_AMBIENT[4]; static const float LIGHT0_DIFFUSE[4]; static const float LIGHT_MODEL_AMBIENT[4]; static const float LIGHT_MODEL_LOCAL_VIEWER[1]; public: explicit Scene(); virtual ~Scene(); protected: // signal handlers: virtual void on_realize(); virtual bool on_configure_event(GdkEventConfigure* event); virtual bool on_expose_event(GdkEventExpose* event); virtual bool on_button_press_event(GdkEventButton* event); virtual bool on_unmap_event(GdkEventAny* event); virtual bool on_visibility_notify_event(GdkEventVisibility* event); virtual bool on_idle(); public: // Invalidate whole window. void invalidate() { get_window()->invalidate_rect(get_allocation(), false); } // Update window synchronously (fast). void update() { get_window()->process_updates(false); } protected: // idle signal connection: sigc::connection m_ConnectionIdle; void idle_add(); void idle_remove(); protected: void change_shape(Model::ShapeType shape); void change_material(const Model::MaterialProp* material); protected: Gtk::Menu* create_popup_menu(); protected: // Popup menu: Gtk::Menu* m_Menu; protected: // OpenGL scene related objects: View m_View; Model m_Model; }; // // Application class. // class Application : public Gtk::Window { public: static const Glib::ustring APP_NAME; public: Application(); virtual ~Application(); protected: // signal handlers: virtual void on_button_quit_clicked(); virtual bool on_key_press_event(GdkEventKey* event); protected: // member widgets: Gtk::VBox m_VBox; Scene m_Scene; Gtk::Button m_ButtonQuit; }; } // namespace Shapes #endif // _SHAPES_H gtkglextmm-1.2.0/m4macros/0000777000175000001440000000000010400731255012420 500000000000000gtkglextmm-1.2.0/m4macros/macros.m40000644000175000001440000000532010052323317014061 00000000000000dnl dnl Some macros needed for autoconf dnl dnl AL_PROG_GNU_M4(ACTION_NOT_FOUND) dnl Check for GNU m4. (sun won't do.) dnl AC_DEFUN([AL_PROG_GNU_M4],[ AC_CHECK_PROGS(M4, gm4 m4, m4) if test "$M4" = "m4"; then AC_MSG_CHECKING(whether m4 is GNU m4) if $M4 --version /dev/null | grep '^GNU m4 ' >/dev/null ; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) if test "$host_vendor" = "sun"; then $1 fi fi fi ]) dnl AL_PROG_GNU_MAKE(ACTION_NOT_FOUND) dnl Check for GNU make (no sun make) dnl AC_DEFUN([AL_PROG_GNU_MAKE],[ dnl dnl Check for GNU make (stolen from gtk+/configure.in) AC_MSG_CHECKING(whether make is GNU Make) if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) if test "$host_vendor" = "sun" ; then $1 fi fi ]) dnl AL_ACLOCAL_INCLUDE(macrodir) dnl Add a directory to macro search (from gnome) AC_DEFUN([AL_ACLOCAL_INCLUDE], [ test "x$ACLOCAL_FLAGS" = "x" || ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" for dir in $1 do ACLOCAL="$ACLOCAL -I $srcdir/$dir" done ]) ## GTKMM_ARG_ENABLE_WARNINGS() ## ## Provide the --enable-warnings configure argument, set to 'minimum' ## by default. ## AC_DEFUN([GTKMM_ARG_ENABLE_WARNINGS], [ AC_ARG_ENABLE([warnings], [ --enable-warnings=[[none|minimum|maximum|hardcore]] Control compiler pickyness. [[default=minimum]]], [gtkmm_enable_warnings="$enableval"], [gtkmm_enable_warnings='minimum']) AC_MSG_CHECKING([for compiler warning flags to use]) gtkmm_warning_flags='' case "$gtkmm_enable_warnings" in minimum|yes) gtkmm_warning_flags='-Wall';; maximum) gtkmm_warning_flags='-pedantic -W -Wall';; hardcore) gtkmm_warning_flags='-pedantic -W -Wall -Werror';; esac gtkmm_use_flags='' if test "x$gtkmm_warning_flags" != "x" then echo 'int foo() { return 0; }' > conftest.cc for flag in $gtkmm_warning_flags do # Test whether the compiler accepts the flag. GCC doesn't bail # out when given an unsupported flag but prints a warning, so # check the compiler output instead. gtkmm_cxx_out="`$CXX $flag -c conftest.cc 2>&1`" rm -f conftest.$OBJEXT test "x${gtkmm_cxx_out}" = "x" && \ gtkmm_use_flags="${gtkmm_use_flags:+$gtkmm_use_flags }$flag" done rm -f conftest.cc gtkmm_cxx_out='' fi if test "x$gtkmm_use_flags" != "x" then for flag in $gtkmm_use_flags do case " $CXXFLAGS " in *" $flag "*) ;; # don't add flags twice *) CXXFLAGS="${CXXFLAGS:+$CXXFLAGS }$flag";; esac done else gtkmm_use_flags='none' fi AC_MSG_RESULT([$gtkmm_use_flags]) ]) gtkglextmm-1.2.0/m4macros/README0000644000175000001440000000006307515122140013213 00000000000000 These m4 macros are imported from gtkmm package. gtkglextmm-1.2.0/m4macros/gtkglextmm.m40000644000175000001440000002317510052326516014774 00000000000000# Configure paths for gtkglextmm # Naofumi Yasufuku # # Shamelessly stolen from gtk-2.0.m4 # Configure paths for GTK+ # Owen Taylor 1997-2001 dnl AM_PATH_GTKGLEXTMM_1_2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) dnl Test for gtkglextmm, and define GTKGLEXTMM_CXXFLAGS and GTKGLEXTMM_LIBS. dnl AC_DEFUN([AM_PATH_GTKGLEXTMM_1_2], [ no_gtkglextmm="" GTKGLEXTMM_CXXFLAGS="" GTKGLEXTMM_LIBS="" # gtkglextmm pkg-config module gtkglextmm_module=gtkglextmm-1.2 # minimum gtkglextmm version gtkglextmm_min_version=ifelse([$1], ,1.1.0,$1) # minimum pkg-config version pkgconfig_min_version=0.7 AC_ARG_ENABLE(gtkglextmm-test, [ --disable-gtkglextmm-test do not try to compile and run a test gtkglextmm program], , enable_gtkglextmm_test=yes) dnl dnl Get the cflags and libraries from pkg-config dnl pkg_config_modules=$gtkglextmm_module AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version $pkgconfig_min_version ; then : else echo "" echo "*** pkg-config too old; version $pkgconfig_min_version or better required." no_gtkglextmm=yes PKG_CONFIG=no fi else no_gtkglextmm=yes fi AC_MSG_CHECKING(for gtkglextmm - version >= $gtkglextmm_min_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_modules; then echo "" echo "Will use uninstalled version of gtkglextmm found in PKG_CONFIG_PATH" enable_gtkglextmm_test=no fi if $PKG_CONFIG --atleast-version $gtkglextmm_min_version $pkg_config_modules; then : else echo "" echo "*** pkg-config cannot find $gtkglextmm_module >= $gtkglextmm_min_version" echo "*** Set the environment variable PKG_CONFIG_PATH to point to the correct" echo "*** configuration files." no_gtkglextmm=yes enable_gtkglextmm_test=no fi fi if test x"$no_gtkglextmm" = x ; then GTKGLEXTMM_CXXFLAGS=`$PKG_CONFIG --cflags $pkg_config_modules` GTKGLEXTMM_LIBS=`$PKG_CONFIG --libs $pkg_config_modules` gtkglextmm_config_major_version=`$PKG_CONFIG --modversion $gtkglextmm_module | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gtkglextmm_config_minor_version=`$PKG_CONFIG --modversion $gtkglextmm_module | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` gtkglextmm_config_micro_version=`$PKG_CONFIG --modversion $gtkglextmm_module | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_gtkglextmm_test" = "xyes" ; then AC_LANG_SAVE AC_LANG_CPLUSPLUS ac_save_CXXFLAGS="$CXXFLAGS" ac_save_LIBS="$LIBS" CXXFLAGS="$CXXFLAGS $GTKGLEXTMM_CXXFLAGS" LIBS="$GTKGLEXTMM_LIBS $LIBS" dnl dnl Now check if the installed gtkglextmm is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.gtkgltest AC_TRY_RUN([ #include #include #include #include int main () { int major, minor, micro; char *tmp_version; system ("touch conf.gtkgltest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup ("$gtkglextmm_min_version"); if (sscanf (tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf ("%s, bad version string\n", "$gtkglextmm_min_version"); exit (1); } if ((gtkglextmm_major_version != $gtkglextmm_config_major_version) || (gtkglextmm_minor_version != $gtkglextmm_config_minor_version) || (gtkglextmm_micro_version != $gtkglextmm_config_micro_version)) { printf ("\n*** 'pkg-config --modversion $gtkglextmm_module' returned %d.%d.%d, but gtkglextmm\n", $gtkglextmm_config_major_version, $gtkglextmm_config_minor_version, $gtkglextmm_config_micro_version); printf ("*** library %d.%d.%d was found!\n", gtkglextmm_major_version, gtkglextmm_minor_version, gtkglextmm_micro_version); printf ("***\n"); printf ("*** If pkg-config was correct, then it is best to remove the old version\n"); printf ("*** of gtkglextmm. You may also be able to fix the error by modifying your\n"); printf ("*** LD_LIBRARY_PATH enviroment variable, or by editing /etc/ld.so.conf.\n"); printf ("*** Make sure you have run ldconfig if that is required on your system.\n"); printf ("***\n"); printf ("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf ("*** to point to the correct configuration files.\n"); } else if ((gtkglextmm_major_version != GTKGLEXTMM_MAJOR_VERSION) || (gtkglextmm_minor_version != GTKGLEXTMM_MINOR_VERSION) || (gtkglextmm_micro_version != GTKGLEXTMM_MICRO_VERSION)) { printf ("\n*** gtkglextmm header files (version %d.%d.%d) do not match library (version %d.%d.%d).\n", GTKGLEXTMM_MAJOR_VERSION, GTKGLEXTMM_MINOR_VERSION, GTKGLEXTMM_MICRO_VERSION, gtkglextmm_major_version, gtkglextmm_minor_version, gtkglextmm_micro_version); } else { if ((gtkglextmm_major_version > major) || ((gtkglextmm_major_version == major) && (gtkglextmm_minor_version > minor)) || ((gtkglextmm_major_version == major) && (gtkglextmm_minor_version == minor) && (gtkglextmm_micro_version >= micro))) { return 0; } else { printf ("\n*** An old version of gtkglextmm library (%d.%d.%d) was found.\n", gtkglextmm_major_version, gtkglextmm_minor_version, gtkglextmm_micro_version); printf ("*** You need a version of gtkglextmm newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf ("*** gtkglextmm is always available from http://gtkglext.sourceforge.net/.\n"); printf ("***\n"); printf ("*** If you have already installed a sufficiently new version, this error\n"); printf ("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf ("*** being found. The easiest way to fix this is to remove the old version\n"); printf ("*** of gtkglextmm, but you can also set the PKG_CONFIG environment to point\n"); printf ("*** to the correct copy of pkg-config. (In this case, you will have to\n"); printf ("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf ("*** so that the correct libraries are found at run-time)\n"); } } return 1; } ],, no_gtkglextmm=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" AC_LANG_RESTORE fi fi if test "x$no_gtkglextmm" = x ; then AC_MSG_RESULT(yes (version $gtkglextmm_config_major_version.$gtkglextmm_config_minor_version.$gtkglextmm_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/." elif test "x$enable_gtkglextmm_test" = "xyes" ; then if test -f conf.gtkgltest ; then : else echo "*** Could not run gtkglextmm test program, checking why..." AC_LANG_SAVE AC_LANG_CPLUSPLUS ac_save_CXXFLAGS="$CXXFLAGS" ac_save_LIBS="$LIBS" CXXFLAGS="$CXXFLAGS $GTKGLEXTMM_CXXFLAGS" LIBS="$LIBS $GTKGLEXTMM_LIBS" AC_TRY_LINK([ #include #include #include ], [ return ((gtkglextmm_major_version) || (gtkglextmm_minor_version) || (gtkglextmm_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding gtkglextmm or finding the wrong" echo "*** version of gtkglextmm. If it is not finding gtkglextmm, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means gtkglextmm is incorrectly installed."]) CXXFLAGS="$ac_save_CXXFLAGS" LIBS="$ac_save_LIBS" AC_LANG_RESTORE fi fi GTKGLEXTMM_CXXFLAGS="" GTKGLEXTMM_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GTKGLEXTMM_CXXFLAGS) AC_SUBST(GTKGLEXTMM_LIBS) rm -f conf.gtkgltest ]) dnl AC_GTKGLEXTMM_SUPPORTS_MULTIHEAD([ACTION-IF-SUPPORTED [, ACTION-IF-NOT-SUPPORTED]]) dnl Checks whether gtkglextmm supports multihead. dnl AC_DEFUN(AC_GTKGLEXTMM_SUPPORTS_MULTIHEAD, [ AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CACHE_CHECK([whether gtkglextmm supports multihead], [ac_cv_gtkglextmm_supports_multihead], [AC_TRY_LINK([#include ], [Gdk::GL::query_extension(Gdk::Display::get_default());], [ac_cv_gtkglextmm_supports_multihead=yes], [ac_cv_gtkglextmm_supports_multihead=no])]) AC_LANG_RESTORE if test "x$ac_cv_gtkglextmm_supports_multihead" = "xyes" ; then ifelse([$1], , :, [$1]) else ifelse([$2], , :, [$2]) fi ]) gtkglextmm-1.2.0/m4macros/Makefile.am0000644000175000001440000000060110065233362014370 00000000000000## -*- Makefile -*- ## Makefile.am for gtkglextmm/m4macros EXTRA_DIST = \ gtkglextmm.m4 \ README \ macros.m4 API_VER = @GTKGLEXTMM_API_VERSION@ gtkglextmm-$(API_VER).m4: $(srcdir)/gtkglextmm.m4 rm -f $@ && cp $< $@ m4datadir = $(datadir)/aclocal m4data_DATA = gtkglextmm-$(API_VER).m4 $(m4data_DATA): $(top_builddir)/config.status DISTCLEANFILES = gtkglextmm-$(API_VER).m4 gtkglextmm-1.2.0/m4macros/Makefile.in0000644000175000001440000002561210400725445014413 00000000000000# Makefile.in generated by automake 1.7.9 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@ 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@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@ BASE_DEPENDENCIES_LIBS = @BASE_DEPENDENCIES_LIBS@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOT_PATH = @DOT_PATH@ DOXYGEN_PATH = @DOXYGEN_PATH@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ENABLE_DOXYGEN_DOC_FALSE = @ENABLE_DOXYGEN_DOC_FALSE@ ENABLE_DOXYGEN_DOC_TRUE = @ENABLE_DOXYGEN_DOC_TRUE@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GDKGLEXTMM_DEP_CFLAGS = @GDKGLEXTMM_DEP_CFLAGS@ GDKGLEXTMM_DEP_LIBS = @GDKGLEXTMM_DEP_LIBS@ GDKGLEXTMM_EXTRA_CFLAGS = @GDKGLEXTMM_EXTRA_CFLAGS@ GDKGLEXTMM_EXTRA_LIBS = @GDKGLEXTMM_EXTRA_LIBS@ GDKGLEXTMM_MULTIHEAD_SUPPORT = @GDKGLEXTMM_MULTIHEAD_SUPPORT@ GDKGLEXTMM_PACKAGES = @GDKGLEXTMM_PACKAGES@ GDKMM_INCLUDE_PATH = @GDKMM_INCLUDE_PATH@ GLIBMM_INCLUDE_PATH = @GLIBMM_INCLUDE_PATH@ GMMPROC = @GMMPROC@ GMMPROC_DIR = @GMMPROC_DIR@ GTKGLEXTMM_API_MAJOR_VERSION = @GTKGLEXTMM_API_MAJOR_VERSION@ GTKGLEXTMM_API_MINOR_VERSION = @GTKGLEXTMM_API_MINOR_VERSION@ GTKGLEXTMM_API_VERSION = @GTKGLEXTMM_API_VERSION@ GTKGLEXTMM_BINARY_AGE = @GTKGLEXTMM_BINARY_AGE@ GTKGLEXTMM_DEP_CFLAGS = @GTKGLEXTMM_DEP_CFLAGS@ GTKGLEXTMM_DEP_LIBS = @GTKGLEXTMM_DEP_LIBS@ GTKGLEXTMM_EXTRA_CFLAGS = @GTKGLEXTMM_EXTRA_CFLAGS@ GTKGLEXTMM_EXTRA_LIBS = @GTKGLEXTMM_EXTRA_LIBS@ GTKGLEXTMM_INTERFACE_AGE = @GTKGLEXTMM_INTERFACE_AGE@ GTKGLEXTMM_MAJOR_VERSION = @GTKGLEXTMM_MAJOR_VERSION@ GTKGLEXTMM_MICRO_VERSION = @GTKGLEXTMM_MICRO_VERSION@ GTKGLEXTMM_MINOR_VERSION = @GTKGLEXTMM_MINOR_VERSION@ GTKGLEXTMM_PACKAGES = @GTKGLEXTMM_PACKAGES@ GTKGLEXTMM_VERSION = @GTKGLEXTMM_VERSION@ GTKGLEXT_CFLAGS = @GTKGLEXT_CFLAGS@ GTKGLEXT_LIBS = @GTKGLEXT_LIBS@ GTKGLEXT_REQUIRED_VERSION = @GTKGLEXT_REQUIRED_VERSION@ GTKMM_INCLUDE_PATH = @GTKMM_INCLUDE_PATH@ HAVE_DOT = @HAVE_DOT@ HTML_DIR = @HTML_DIR@ 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@ LIB_MJR = @LIB_MJR@ LIB_MNR = @LIB_MNR@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_CURRENT_MINUS_AGE = @LT_CURRENT_MINUS_AGE@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ M4 = @M4@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MULTIHEAD_SUPPORT_FALSE = @MULTIHEAD_SUPPORT_FALSE@ MULTIHEAD_SUPPORT_TRUE = @MULTIHEAD_SUPPORT_TRUE@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OS_WIN32_FALSE = @OS_WIN32_FALSE@ OS_WIN32_TRUE = @OS_WIN32_TRUE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGOMM_INCLUDE_PATH = @PANGOMM_INCLUDE_PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL_PATH = @PERL_PATH@ PKG_CONFIG = @PKG_CONFIG@ PLATFORM_WIN32_FALSE = @PLATFORM_WIN32_FALSE@ PLATFORM_WIN32_TRUE = @PLATFORM_WIN32_TRUE@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ WIN32_LD_EXPORT_ALL_SYMBOLS = @WIN32_LD_EXPORT_ALL_SYMBOLS@ ac_ct_AR = @ac_ct_AR@ ac_ct_AS = @ac_ct_AS@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ ac_ct_F77 = @ac_ct_F77@ ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@ 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@ gdkglextmm_targetlib = @gdkglextmm_targetlib@ gdktarget = @gdktarget@ gtkglextmm_targetlib = @gtkglextmm_targetlib@ 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@ EXTRA_DIST = \ gtkglextmm.m4 \ README \ macros.m4 API_VER = @GTKGLEXTMM_API_VERSION@ m4datadir = $(datadir)/aclocal m4data_DATA = gtkglextmm-$(API_VER).m4 DISTCLEANFILES = gtkglextmm-$(API_VER).m4 subdir = m4macros ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = DIST_SOURCES = DATA = $(m4data_DATA) DIST_COMMON = README $(srcdir)/Makefile.in Makefile.am all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && \ $(AUTOMAKE) --gnu m4macros/Makefile Makefile: @MAINTAINER_MODE_TRUE@ $(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: m4dataDATA_INSTALL = $(INSTALL_DATA) install-m4dataDATA: $(m4data_DATA) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(m4datadir) @list='$(m4data_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " $(m4dataDATA_INSTALL) $$d$$p $(DESTDIR)$(m4datadir)/$$f"; \ $(m4dataDATA_INSTALL) $$d$$p $(DESTDIR)$(m4datadir)/$$f; \ done uninstall-m4dataDATA: @$(NORMAL_UNINSTALL) @list='$(m4data_DATA)'; for p in $$list; do \ f="`echo $$p | sed -e 's|^.*/||'`"; \ echo " rm -f $(DESTDIR)$(m4datadir)/$$f"; \ rm -f $(DESTDIR)$(m4datadir)/$$f; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = .. distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) @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 $(DATA) installdirs: $(mkinstalldirs) $(DESTDIR)$(m4datadir) 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_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -rm -f $(CONFIG_CLEAN_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) 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 -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: info: info-am info-am: install-data-am: install-m4dataDATA install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile 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-m4dataDATA .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-m4dataDATA 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 uninstall-m4dataDATA gtkglextmm-$(API_VER).m4: $(srcdir)/gtkglextmm.m4 rm -f $@ && cp $< $@ $(m4data_DATA): $(top_builddir)/config.status # 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: gtkglextmm-1.2.0/gtkglextmm.pc.in0000644000175000001440000000077010052326274013733 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ target=@gdktarget@ api_version=@GTKGLEXTMM_API_VERSION@ multihead=@GDKGLEXTMM_MULTIHEAD_SUPPORT@ Name: gtkglextmm Description: C++ Wrapper for GtkGLExt (${target} target) Version: @VERSION@ Requires: gdkglextmm-${target}-${api_version} @GTKGLEXTMM_PACKAGES@ Libs: -L${libdir} -lgtkglextmm-${target}-@LIB_MJR@.@LIB_MNR@ @GTKGLEXTMM_EXTRA_LIBS@ Cflags: -I${includedir}/gtkglextmm-${api_version} @GTKGLEXTMM_EXTRA_CFLAGS@ gtkglextmm-1.2.0/ChangeLog0000644000175000001440000001354110065236726012377 000000000000002004-06-20 Naofumi Yasufuku * ==== Released 1.1.0 ==== * configure.in: Version 1.1.0, binary age 0, interface age 0. 2004-05-18 Naofumi Yasufuku * examples/*: Modified for libsigc++-2.0 and gtkmm-2.4. SigC::slot() -> sigc::mem_fun() or sigc::ptr_fun(). SigC::Connection -> sigc::connection. SigC::Object -> sigc::trackable. In gtkmm-2.4, Gtk::Widget::get_allocation() returns Gdk::Rectangle. 2004-05-18 Naofumi Yasufuku * configure.in: API version 1.2. 2004-05-18 Naofumi Yasufuku * gtkglext/gtkmm/gl/widget.cc (Gtk::GL::widget_get_gl_config) (Gtk::GL::widget_get_gl_context, Gtk::GL::widget_get_gl_window) (Gtk::GL::widget_get_gl_drawable): Glib::RefPtr doesn't have is_null() method anymore. 2004-05-18 Naofumi Yasufuku * gdkglext/gdkmm/gl/font.cc (Gdk::GL::Font::use_pango_font): * gdkglext/gdkmm/gl/windowext.cc (Gdk::GL::WindowExtProxy::set_gl_capability, (Gdk::GL::WindowExtProxy::get_gl_window, Gdk::GL::WindowExtProxy::get_gl_drawable): * gdkglext/gdkmm/gl/pixmapext.cc (Gdk::GL::PixmapExtProxy::set_gl_capability, (Gdk::GL::PixmapExtProxy::get_gl_pixmap, (Gdk::GL::PixmapExtProxy::get_gl_drawable): * gdkglext/src/config.ccg (Gdk::GL::Config::get_screen, Gdk::GL::Config::get_screen): Glib::RefPtr doesn't have is_null() method anymore. 2004-05-18 Naofumi Yasufuku * build_shared/Makefile_gensrc.am_fragment: * configure.in: Rewritten for glibmm-2.4 and gtkmm-2.4. 2004-01-30 Naofumi Yasufuku * gtkglextmm.nsi.in: Rewritten for new Modern UI macros of NSIS 2. 2003-11-15 Naofumi Yasufuku * docs/reference/Doxyfile.in: Updated for doxygen-1.3. 2003-11-09 Naofumi Yasufuku * m4macros/*.m4: Updated gtkmm's m4 macros. 2003-11-09 Naofumi Yasufuku * examples/logo.h (Scene::invalidate, Scene::update): * examples/logo.cc (View::on_motion_notify_event, Scene::on_timeout) (Scene::init_anim, Application::on_key_press_event): * examples/button.cc (GLScene::invalidate, GLScene::update) (GLScene::on_timeout, GLScene::toggle_animation): * examples/shapes.h (Scene::invalidate, Scene::update): * examples/shapes.cc (View::on_button_press_event, View::on_motion_notify_event, Scene::on_idle, Application::on_key_press_event): * examples/gears.cc (GearsScene::invalidate, GearsScene::update) (GearsScene::on_idle, GearsScene::on_key_press_event): Use Gdk::Window::invalidate_rect() + Gdk::Window::process_updates() instead of Gtk::Widget::queue_draw(). 2003-11-09 Naofumi Yasufuku * examples/simple.cc (Simple): * examples/simple-mixed.cc (Simple): * examples/share-lists.cc (Simple): * examples/font.cc (Font): * examples/button.cc (Button): * examples/shapes.cc (Shapes): * examples/logo.cc (Logo): * examples/gears.cc (Gears): * examples/simple-darea.cc (Simple): set_resize_mode() is unnecessary. 2003-09-10 Naofumi Yasufuku * configure.in (gtkglextmm_minor_version): 1.1.x unstable development series. 2003-09-02 Naofumi Yasufuku * examples/pixmap.cc (PixmapGLScene::on_configure_event): * examples/pixmap-mixed.cc (PixmapGLScene::on_configure_event): Use new Gdk::GL::ext() OpenGL extension API wrapper. * gdkglext/src/pixmap.hg: Moved Gdk::Pixmap's OpenGL extension functions into Gdk::GL::PixmapExtProxy. * gdkglext/src/window.hg: Moved Gdk::Window's OpenGL extension functions into Gdk::GL::WindowExtProxy. * gdkglext/gdkmm/gl/pixmapext.h (Gdk::GL::PixmapExtProxy): * gdkglext/gdkmm/gl/pixmapext.cc (Gdk::GL::PixmapExtProxy): Added OpenGL extension wrapper for Gdk::Pixmap. * gdkglext/gdkmm/gl/windowext.h (Gdk::GL::WindowExtProxy): * gdkglext/gdkmm/gl/windowext.cc (Gdk::GL::WindowExtProxy): Added OpenGL extension wrapper for Gdk::Window. 2003-09-01 Naofumi Yasufuku * gdkglext/src/pixmap.hg: * gdkglext/src/pixmap.ccg: Changed Gdk::GL::Pixmap's static methods to Gdk::GL::pixmap_*() functions. * gdkglext/src/window.hg: * gdkglext/src/window.ccg: Changed Gdk::GL::Window's static methods to Gdk::GL::window_*() functions. * examples/simple.cc (SimpleGLScene): * examples/simple-mixed.cc (SimpleGLScene): * examples/font.cc (FontGLScene): Use new Gtk::GL::Widget<> mixin. * gtkglext/gtkmm/gl/drawingarea.h (Gtk::GL::DrawingArea): Use new Gtk::GL::Widget<> mixin. * gtkglext/gtkmm/gl/widget.h (Gtk::GL::Widget): * gtkglext/gtkmm/gl/widget.cc (Gtk::GL::Widget): Changed Gtk::GL::Widget's static methods to Gtk::GL::widget_*() functions. Use template for Gtk::GL::Widget mixin. 2003-08-15 Naofumi Yasufuku * README: * README.win32: Updated CVS pserver info. * examples/Makefile.mingw (clean-obj): Added clean-obj target for convenience. * Makefile.am (examples): * examples/Makefile.am (all-local): Use all-local target for building example programs. 2003-07-31 Naofumi Yasufuku * examples/shapes.cc (Shapes::View::on_button_press_event): Fixed mouse operation. * examples/logo.h: Use SignalTimeout instead of SignalIdle. * examples/button.cc: Use SignalTimeout instead of SignalIdle. (on_timeout): Modified animation. 2003-07-31 Naofumi Yasufuku * gdkglext/src/gdkglext_docs.xml: * gtkglext/src/gtkglext_docs.xml: Updated. 2003-07-16 Naofumi Yasufuku * examples/button.cc: * examples/Makefile.am (EXTRA_PROGRAMS): * examples/Makefile.mingw (PROGRAMS): Added simple toggle button example. 2003-05-16 Naofumi Yasufuku * ==== Released 1.0.0 ==== gtkglextmm-1.2.0/gdkglextmm-uninstalled.pc.in0000644000175000001440000000075710052326274016240 00000000000000target=@gdktarget@ api_version=@GTKGLEXTMM_API_VERSION@ multihead=@GDKGLEXTMM_MULTIHEAD_SUPPORT@ Name: gdkglextmm Uninstalled Description: C++ Wrapper for GdkGLExt (${target} target), Not Installed Version: @VERSION@ Requires: @GDKGLEXTMM_PACKAGES@ Libs: ${pc_top_builddir}${pcfiledir}/gdkglext/gdkmm/gl/libgdkglextmm-${target}-@LIB_MJR@.@LIB_MNR@.la @GDKGLEXTMM_EXTRA_LIBS@ Cflags: -I${pc_top_builddir}${pcfiledir}/gdkglext -I${pc_top_builddir}${pcfiledir}/@srcdir@ @GDKGLEXTMM_EXTRA_CFLAGS@ gtkglextmm-1.2.0/COPYING0000644000175000001440000004311007515122025011643 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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 Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.