YaST Commits
Threads by month
- ----- 2024 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
December 2007
- 21 participants
- 683 discussions
05 Dec '07
Author: mzugec
Date: Wed Dec 5 17:03:09 2007
New Revision: 42719
URL: http://svn.opensuse.org/viewcvs/yast?rev=42719&view=rev
Log:
Created tag branch-SLE-10-SP2-2_13_30
Added:
tags/branch-SLE-10-SP2-2_13_30/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
1
0
[yast-commit] r42718 - in /trunk/http-server: VERSION package/yast2-http-server.changes src/http-server.desktop
by mzugec@svn.opensuse.org 05 Dec '07
by mzugec@svn.opensuse.org 05 Dec '07
05 Dec '07
Author: mzugec
Date: Wed Dec 5 17:03:03 2007
New Revision: 42718
URL: http://svn.opensuse.org/viewcvs/yast?rev=42718&view=rev
Log:
be clonable in autoYaST (AutoInstClonable in desktop file)
Modified:
trunk/http-server/VERSION
trunk/http-server/package/yast2-http-server.changes
trunk/http-server/src/http-server.desktop
Modified: trunk/http-server/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/http-server/VERSION?rev=42718&r1…
==============================================================================
--- trunk/http-server/VERSION (original)
+++ trunk/http-server/VERSION Wed Dec 5 17:03:03 2007
@@ -1 +1 @@
-2.15.8
+2.15.9
Modified: trunk/http-server/package/yast2-http-server.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/http-server/package/yast2-http-s…
==============================================================================
--- trunk/http-server/package/yast2-http-server.changes (original)
+++ trunk/http-server/package/yast2-http-server.changes Wed Dec 5 17:03:03 2007
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Wed Dec 5 17:02:48 CET 2007 - mzugec(a)suse.cz
+
+- be clonable in autoYaST (AutoInstClonable in desktop file)
+- 2.15.9
+
+-------------------------------------------------------------------
Tue Dec 4 17:41:00 CET 2007 - mzugec(a)suse.cz
- into IP addresses include also IPs from dhcp interfaces
Modified: trunk/http-server/src/http-server.desktop
URL: http://svn.opensuse.org/viewcvs/yast/trunk/http-server/src/http-server.desk…
==============================================================================
--- trunk/http-server/src/http-server.desktop (original)
+++ trunk/http-server/src/http-server.desktop Wed Dec 5 17:03:03 2007
@@ -15,6 +15,7 @@
X-SuSE-YaST-Geometry=
X-SuSE-YaST-SortKey=
X-SuSE-YaST-AutoInstResource=http-server
+X-SuSE-YaST-AutoInstClonable=true
Icon=yast-http-server
Exec=/sbin/yast2 http-server
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
1
0
[yast-commit] r42717 - in /branches/SuSE-SLE-10-SP2-Branch/http-server: VERSION package/yast2-http-server.changes src/http-server.desktop
by mzugec@svn.opensuse.org 05 Dec '07
by mzugec@svn.opensuse.org 05 Dec '07
05 Dec '07
Author: mzugec
Date: Wed Dec 5 17:02:38 2007
New Revision: 42717
URL: http://svn.opensuse.org/viewcvs/yast?rev=42717&view=rev
Log:
be clonable in autoYaST (AutoInstClonable in desktop file)
Modified:
branches/SuSE-SLE-10-SP2-Branch/http-server/VERSION
branches/SuSE-SLE-10-SP2-Branch/http-server/package/yast2-http-server.changes
branches/SuSE-SLE-10-SP2-Branch/http-server/src/http-server.desktop
Modified: branches/SuSE-SLE-10-SP2-Branch/http-server/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/http-s…
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/http-server/VERSION (original)
+++ branches/SuSE-SLE-10-SP2-Branch/http-server/VERSION Wed Dec 5 17:02:38 2007
@@ -1 +1 @@
-2.13.29
+2.13.30
Modified: branches/SuSE-SLE-10-SP2-Branch/http-server/package/yast2-http-server.changes
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/http-s…
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/http-server/package/yast2-http-server.changes (original)
+++ branches/SuSE-SLE-10-SP2-Branch/http-server/package/yast2-http-server.changes Wed Dec 5 17:02:38 2007
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Wed Dec 5 17:01:44 CET 2007 - mzugec(a)suse.cz
+
+- be clonable in autoYaST (AutoInstClonable in desktop file)
+- 2.13.30
+
+-------------------------------------------------------------------
Tue Dec 4 18:22:19 CET 2007 - mzugec(a)suse.cz
- into IP addresses include also IPs from dhcp interfaces
Modified: branches/SuSE-SLE-10-SP2-Branch/http-server/src/http-server.desktop
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/http-s…
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/http-server/src/http-server.desktop (original)
+++ branches/SuSE-SLE-10-SP2-Branch/http-server/src/http-server.desktop Wed Dec 5 17:02:38 2007
@@ -15,6 +15,7 @@
X-SuSE-YaST-Geometry=
X-SuSE-YaST-SortKey=
X-SuSE-YaST-AutoInstResource=http-server
+X-SuSE-YaST-AutoInstClonable=true
Icon=yast-http-server
Exec=/sbin/yast2 http-server
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
1
0
[yast-commit] r42716 - /trunk/qt/src/pkg/YQPackageSelectorHelp.cc
by sh-sh-sh@svn.opensuse.org 05 Dec '07
by sh-sh-sh@svn.opensuse.org 05 Dec '07
05 Dec '07
Author: sh-sh-sh
Date: Wed Dec 5 16:13:27 2007
New Revision: 42716
URL: http://svn.opensuse.org/viewcvs/yast?rev=42716&view=rev
Log:
typos
Modified:
trunk/qt/src/pkg/YQPackageSelectorHelp.cc
Modified: trunk/qt/src/pkg/YQPackageSelectorHelp.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/pkg/YQPackageSelectorHelp…
==============================================================================
--- trunk/qt/src/pkg/YQPackageSelectorHelp.cc (original)
+++ trunk/qt/src/pkg/YQPackageSelectorHelp.cc Wed Dec 5 16:13:27 2007
@@ -139,38 +139,38 @@
html += "<table border=1>";
html += symHelp( "noinst.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Do not install" ),
// Translators: Automatic word-wrapping.
_( "This package is not installed and it will not be installed." ) );
html += symHelp( "install.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Install" ),
// Translators: Automatic word-wrapping.
_( "This package will be installed. It is not installed yet." ) );
html += symHelp( "keepinstalled.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Keep" ),
// Translators: Automatic word-wrapping.
_( "This package is already installed. Leave it untouched." ) );
html += symHelp( "update.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Update" ),
// Translators: Automatic word-wrapping.
_( "This package is already installed. Update it or reinstall it"
" (if the versions are the same)." ) );
html += symHelp( "del.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Delete" ),
// Translators: Automatic word-wrapping.
_( "This package is already installed. Delete it." ) );
html += symHelp( "taboo.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Taboo" ),
// Translators: Automatic word-wrapping.
_( "This package is not installed and should not be installed under any circumstances, "
@@ -180,7 +180,7 @@
+ _( "Packages set to \"taboo\" are treated as if they did not exist on any installation media." ) );
html += symHelp( "protected.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Protected" ),
// Translators: Automatic word-wrapping.
_( "This package is installed and should not be modified, "
@@ -191,7 +191,7 @@
" that may come with the distribution." ) );
html += symHelp( "autoinstall.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Autoinstall" ),
// Translators: Automatic word-wrapping.
_( "This package will be installed automatically because some other package needs it." )
@@ -199,14 +199,14 @@
+ _( "<b>Hint:</b> You may have to use \"taboo\" to get rid of such a package." ) );
html += symHelp( "autoupdate.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Autoupdate" ),
// Translators: Automatic word-wrapping.
_( "This package is already installed, but some other package"
" needs a newer version, so it will automatically be updated." ) );
html += symHelp( "autodel.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Autodelete" ),
// Translators: Automatic word-wrapping.
_( "This package is already installed, but package dependencies require that it is deleted." )
@@ -218,14 +218,14 @@
QString bySelection = " " + _( "(by selection)" );
html += symHelp( "sel_autoinstall.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Autoinstall" ) + bySelection,
// Translators: Automatic word-wrapping.
_( "This package will be installed automatically because it is contained in a"
" predefined software selection (e.g., \"Multimedia\", \"Development\")." ) );
html += symHelp( "sel_autoupdate.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Autoupdate" ) + bySelection,
// Translators: Automatic word-wrapping.
_( "This package is already installed, but there is a newer version."
@@ -234,7 +234,7 @@
" automatically be updated." ) );
html += symHelp( "sel_autodel.xpm",
- // Translators: Package status short ( ! ) description
+ // Translators: Package status short (!) description
_( "Autodelete" ) + bySelection,
// Translators: Automatic word-wrapping.
_( "This package is already installed, but some predefined software selection"
@@ -276,7 +276,7 @@
html += "<table border=1>";
html += keyHelp( "+",
- // Translators: Keyboard action short ( ! ) description
+ // Translators: Keyboard action short (!) description
_( "Add" ),
// Translators: Automatic word-wrapping.
_( "Get this package. Install it if it is not installed yet."
@@ -285,7 +285,7 @@
+ goto_next );
html += keyHelp( "-",
- // Translators: Keyboard action short ( ! ) description
+ // Translators: Keyboard action short (!) description
_( "Remove" ),
// Translators: Automatic word-wrapping.
_( "Get rid of this package. Mark it as \"do not install\" "
@@ -293,7 +293,7 @@
+ goto_next );
html += keyHelp( ">",
- // Translators: Keyboard action short ( ! ) description
+ // Translators: Keyboard action short (!) description
_( "Update" ),
// Translators: Automatic word-wrapping.
_( "Update this package if it is installed and there is a newer version."
@@ -302,7 +302,7 @@
html += keyHelp( "<",
- // Translators: Keyboard action short ( ! ) description
+ // Translators: Keyboard action short (!) description
_( "Undo Update" ),
// Translators: Automatic word-wrapping.
_( "Undo the effect of \">\" above: Set package to \"keep\""
@@ -310,7 +310,7 @@
+ goto_next );
html += keyHelp( "!",
- // Translators: Keyboard action short ( ! ) description
+ // Translators: Keyboard action short (!) description
_( "Taboo" ),
// Translators: Automatic word-wrapping.
_( "Set this package to \"taboo\" if it is not installed:"
@@ -322,7 +322,7 @@
+ goto_next );
html += keyHelp( "*",
- // Translators: Keyboard action short ( ! ) description
+ // Translators: Keyboard action short (!) description
_( "Protect" ),
// Translators: Automatic word-wrapping.
_( "Set this package to \"protected\" if it is installed:"
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
1
0
[yast-commit] r42715 - in /trunk/qt/src: YQMainWinDock.cc YQMainWinDock.h
by sh-sh-sh@svn.opensuse.org 05 Dec '07
by sh-sh-sh@svn.opensuse.org 05 Dec '07
05 Dec '07
Author: sh-sh-sh
Date: Wed Dec 5 16:12:41 2007
New Revision: 42715
URL: http://svn.opensuse.org/viewcvs/yast?rev=42715&view=rev
Log:
initial version
Added:
trunk/qt/src/YQMainWinDock.cc
trunk/qt/src/YQMainWinDock.h
Added: trunk/qt/src/YQMainWinDock.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQMainWinDock.cc?rev=4271…
==============================================================================
--- trunk/qt/src/YQMainWinDock.cc (added)
+++ trunk/qt/src/YQMainWinDock.cc Wed Dec 5 16:12:41 2007
@@ -0,0 +1,230 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: YQMainWinDock.cc
+
+ Author: Stefan Hundhammer <sh(a)suse.de>
+
+/-*/
+
+
+#define y2log_component "qt-ui"
+#include <ycp/y2log.h>
+#include <qwidgetstack.h>
+#include <qtimer.h>
+
+#include <YDialog.h>
+#include <YQUI.h>
+#include <YEvent.h>
+#include "YQMainWinDock.h"
+
+
+
+YQMainWinDock *
+YQMainWinDock::mainWinDock()
+{
+ static YQMainWinDock * mainWinDock = 0;
+
+ if ( ! mainWinDock )
+ {
+ mainWinDock = new YQMainWinDock();
+ mainWinDock->show();
+ }
+
+ return mainWinDock;
+}
+
+
+YQMainWinDock::YQMainWinDock()
+ : QVBox()
+{
+ _qWidgetStack = new QWidgetStack( this );
+
+ resize( YQUI::ui()->defaultSize( YD_HORIZ ),
+ YQUI::ui()->defaultSize( YD_VERT ) );
+}
+
+
+YQMainWinDock::~YQMainWinDock()
+{
+ // NOP
+}
+
+
+void
+YQMainWinDock::show()
+{
+ y2debug( "Showing" );
+
+ QWidget::show();
+
+ if ( ! _widgetStack.empty() )
+ {
+ QWidget * dialog = _widgetStack.back();
+ dialog->raise();
+
+ if ( ! dialog->isShown() )
+ dialog->show();
+ }
+}
+
+
+void
+YQMainWinDock::add( QWidget * dialog )
+{
+ YUI_CHECK_PTR( dialog );
+
+#if 0
+ if ( dialog->parent() )
+ {
+ y2error( "Dialog already has a parent" );
+ return;
+ }
+#endif
+
+ if ( ! dialog->isShown() )
+ dialog->show();
+
+ _widgetStack.push_back( dialog );
+ _qWidgetStack->addWidget( dialog );
+ _qWidgetStack->raiseWidget( dialog );
+
+ if ( ! isShown() )
+ show();
+
+#if 0
+ QTimer::singleShot( 3*1000, this, SLOT( showCurrentDialog() ) );
+#endif
+}
+
+
+void
+YQMainWinDock::showCurrentDialog()
+{
+ if ( ! _widgetStack.empty() )
+ {
+ QWidget * dialog = _widgetStack.back();
+ y2debug( "Showing dialog %p", dialog );
+#if 0
+ _qWidgetStack->raiseWidget( dialog );
+#endif
+ dialog->raise();
+ update();
+ }
+}
+
+
+void
+YQMainWinDock::remove( QWidget * dialog )
+{
+ if ( _widgetStack.empty() )
+ return;
+
+ if ( ! dialog )
+ dialog = _widgetStack.back();
+
+ if ( dialog == _widgetStack.back() )
+ {
+ // The most common case:
+ // The topmost dialog is to be removed
+
+ _widgetStack.pop_back();
+ _qWidgetStack->removeWidget( dialog );
+
+ y2debug( "removing dialog %p", dialog );
+ }
+ else // The less common (but more generic) case: Remove any dialog
+ {
+ YQMainWinDock::YQWidgetStack::iterator pos = findInStack( dialog );
+
+ if ( pos == _widgetStack.end() )
+ return;
+
+ y2warning( "Found dialog somewhere in the middle of the widget stack" );
+
+ _widgetStack.erase( pos );
+ _qWidgetStack->removeWidget( dialog );
+
+ y2debug( "removing dialog %p", dialog );
+ }
+
+ if ( _widgetStack.empty() )
+ hide();
+ else
+ {
+ _qWidgetStack->raiseWidget( _widgetStack.back() );
+ }
+}
+
+
+YQMainWinDock::YQWidgetStack::iterator
+YQMainWinDock::findInStack( QWidget * dialog )
+{
+ for ( YQMainWinDock::YQWidgetStack::iterator it = _widgetStack.begin();
+ it != _widgetStack.end();
+ ++it )
+ {
+ if ( *it == dialog )
+ return it;
+ }
+
+ return _widgetStack.end();
+}
+
+
+QWidget *
+YQMainWinDock::topmostDialog() const
+{
+ if ( _widgetStack.empty() )
+ return 0;
+ else
+ return _widgetStack.back();
+}
+
+
+bool
+YQMainWinDock::couldDock()
+{
+ YDialog * topDialog = YDialog::topmostDialog( false ); // don't throw
+
+ if ( ! topDialog ) // No dialog at all?
+ return true; // Can dock the next one without problems
+
+ // The next dialog can be docked if there is no popup dialog currently open.
+ // This is equivalent to the topmost dialog on the YDialog stack being the
+ // same dialog as the topmost dialog of this MainWinDock.
+
+ return topDialog->widgetRep() == this->topmostDialog();
+}
+
+
+void
+YQMainWinDock::closeEvent( QCloseEvent * event )
+{
+ // The window manager "close window" button (and WM menu, e.g. Alt-F4) will be
+ // handled just like the user had clicked on the `id`( `cancel ) button in
+ // that dialog. It's up to the YCP application to handle this (if desired).
+
+ y2debug( "Caught window manager close event - returning with YCancelEvent" );
+ event->ignore();
+ YQUI::ui()->sendEvent( new YCancelEvent() );
+}
+
+
+void
+YQMainWinDock::paintEvent( QPaintEvent * event )
+{
+ // NOP
+}
+
+
+#include "YQMainWinDock.moc"
Added: trunk/qt/src/YQMainWinDock.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQMainWinDock.h?rev=42715…
==============================================================================
--- trunk/qt/src/YQMainWinDock.h (added)
+++ trunk/qt/src/YQMainWinDock.h Wed Dec 5 16:12:41 2007
@@ -0,0 +1,155 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: YQMainWinDock.h
+
+ Author: Stefan Hundhammer <sh(a)suse.de>
+
+/-*/
+
+
+#ifndef YQMainWinDock_h
+#define YQMainWinDock_h
+
+#include <deque>
+#include <qvbox.h>
+
+class QWidgetStack;
+
+
+/**
+ * Container window for YQDialogs of type YMainWindowDialog:
+ *
+ * This widget "swallows" any main dialogs it gets so only the topmost of them
+ * is visible at any given time. It acts as a window stack for main dialogs,
+ * making the next lower dialog on the stack visible as when the (previously)
+ * topmost main dialog is closed.
+ *
+ * This widget also handles its own visibility accordingly: It is visible if
+ * and only if it has a main dialog to display. It makes itself invisible when
+ * there is no more main dialog to display, and it makes itself visible again
+ * when a new main dialog appears.
+ *
+ * This widget can swallow an arbitrary number of main dialogs as they are
+ * opened as long as there is no popup dialog in between.
+ **/
+class YQMainWinDock : public QVBox
+{
+ Q_OBJECT
+
+public:
+ /**
+ * Static method to access the singleton for this class.
+ *
+ * This creates the (one and only) instance of this class in the first
+ * call. Subsequent calls simply return this instance.
+ **/
+ static YQMainWinDock * mainWinDock();
+
+ /**
+ * Add a dialog (the widgetRep() of a YQDialog) to the MainWinDock (on top
+ * of its widget stack. The widget stack does not assume ownership of the
+ * widget.
+ *
+ * If the MainWinDock is not visible yet, this operation makes it visible.
+ **/
+ void add( QWidget * dialog );
+
+ /**
+ * Remove a dialog from the MainWinDock (if it belongs to the
+ * MainWinDock). If dialog is 0, this removes the topmost dialog from the
+ * MainWinDock.
+ *
+ * This can safely be called in the destructor of all dialogs, even those
+ * that were never added to the MainWinDock.
+ *
+ * If that was the last main dialog in the MainWinDock, the MainWinDock
+ * will be hidden (until another main dialog is added).
+ **/
+ void remove( QWidget * dialog = 0 );
+
+ /**
+ * Return the current topmost dialog (the widgetRep() of a YQDialog)
+ * or 0 if there is none.
+ **/
+ QWidget * topmostDialog() const;
+
+ /**
+ * Return 'true' if the next main dialog could be docked,
+ * i.e., if there is either no open dialog at all or only main dialogs.
+ **/
+ bool couldDock();
+
+ /**
+ * Show the widget (make it visible).
+ *
+ * Reimplemented from QWidget.
+ **/
+ virtual void show();
+
+ /**
+ * Window manager close event (Alt-F4):
+ * Send a YCancelEvent and let the application handle that event.
+ *
+ * Reimplemented from QWidget.
+ **/
+ virtual void closeEvent( QCloseEvent * event );
+
+protected:
+ /**
+ * Constructor.
+ *
+ * Use the static mainWinDock() method to access the singleton for this
+ * class.
+ **/
+ YQMainWinDock();
+
+ /**
+ * Destructor.
+ **/
+ virtual ~YQMainWinDock();
+
+ /**
+ * Paint event.
+ *
+ * Reimplemented from YWidget.
+ **/
+ virtual void paintEvent( QPaintEvent * event );
+
+
+protected slots:
+
+ /**
+ * Show the current dialog.
+ **/
+ void showCurrentDialog();
+
+
+private:
+
+ typedef std::deque<QWidget *> YQWidgetStack;
+
+ /**
+ * Return an iterator to the specified dialog in the internal
+ * widgetstack or _widgetStack::end() if not found.
+ **/
+ YQWidgetStack::iterator findInStack( QWidget * dialog );
+
+
+ YQWidgetStack _widgetStack;
+ QWidgetStack * _qWidgetStack;
+};
+
+
+#endif // YQMainWinDock_h
+
+
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
1
0
05 Dec '07
Author: sh-sh-sh
Date: Wed Dec 5 15:02:18 2007
New Revision: 42714
URL: http://svn.opensuse.org/viewcvs/yast?rev=42714&view=rev
Log:
save one conversion
Modified:
trunk/core/libyui/src/YEvent.cc
Modified: trunk/core/libyui/src/YEvent.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libyui/src/YEvent.cc?rev=42…
==============================================================================
--- trunk/core/libyui/src/YEvent.cc (original)
+++ trunk/core/libyui/src/YEvent.cc Wed Dec 5 15:02:18 2007
@@ -287,7 +287,7 @@
YSimpleEvent::YSimpleEvent( EventType eventType,
const string & id )
: YEvent( eventType )
- , _id( YCPString( id.c_str() ) )
+ , _id( YCPString( id ) )
{
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
1
0
05 Dec '07
Author: sh-sh-sh
Date: Wed Dec 5 14:53:17 2007
New Revision: 42713
URL: http://svn.opensuse.org/viewcvs/yast?rev=42713&view=rev
Log:
Created tag stable-2_16_13 for core
Added:
tags/stable-2_16_13/core/
- copied from r42712, trunk/core/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
1
0
[yast-commit] r42712 - in /trunk/core: VERSION libyui/src/YEvent.cc package/yast2-core.changes
by sh-sh-sh@svn.opensuse.org 05 Dec '07
by sh-sh-sh@svn.opensuse.org 05 Dec '07
05 Dec '07
Author: sh-sh-sh
Date: Wed Dec 5 14:53:04 2007
New Revision: 42712
URL: http://svn.opensuse.org/viewcvs/yast?rev=42712&view=rev
Log:
fixed YMenuEvent(string)
Modified:
trunk/core/VERSION
trunk/core/libyui/src/YEvent.cc
trunk/core/package/yast2-core.changes
Modified: trunk/core/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/VERSION?rev=42712&r1=42711&…
==============================================================================
--- trunk/core/VERSION (original)
+++ trunk/core/VERSION Wed Dec 5 14:53:04 2007
@@ -1 +1 @@
-2.16.12
+2.16.13
Modified: trunk/core/libyui/src/YEvent.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libyui/src/YEvent.cc?rev=42…
==============================================================================
--- trunk/core/libyui/src/YEvent.cc (original)
+++ trunk/core/libyui/src/YEvent.cc Wed Dec 5 14:53:04 2007
@@ -279,7 +279,7 @@
YSimpleEvent::YSimpleEvent( EventType eventType,
const char * id )
: YEvent( eventType )
- , _id( YCPSymbol( id ) )
+ , _id( YCPString( id ) )
{
}
@@ -287,7 +287,7 @@
YSimpleEvent::YSimpleEvent( EventType eventType,
const string & id )
: YEvent( eventType )
- , _id( YCPSymbol( id.c_str() ) )
+ , _id( YCPString( id.c_str() ) )
{
}
Modified: trunk/core/package/yast2-core.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/package/yast2-core.changes?…
==============================================================================
--- trunk/core/package/yast2-core.changes (original)
+++ trunk/core/package/yast2-core.changes Wed Dec 5 14:53:04 2007
@@ -1,4 +1,13 @@
-------------------------------------------------------------------
+Wed Dec 5 14:42:32 CET 2007 - sh(a)suse.de
+
+- Fixed YMenuEvent( string ) handling:
+=> Fixed bug #346158: Hyperlinks don't work
+=> Fixed bug #346165: Wizard tree selection doesn't work
+
+- V 2.16.13
+
+-------------------------------------------------------------------
Wed Dec 5 11:53:14 CET 2007 - sh(a)suse.de
- Fixed bug #346139: CheckBoxFrame is inverted
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
1
0
[yast-commit] r42711 - in /trunk/gtk/unstable-libyui: ./ integrate/ package/ src/ src/icons/ tests/
by rpmcruz@svn.opensuse.org 05 Dec '07
by rpmcruz@svn.opensuse.org 05 Dec '07
05 Dec '07
Author: rpmcruz
Date: Wed Dec 5 14:14:01 2007
New Revision: 42711
URL: http://svn.opensuse.org/viewcvs/yast?rev=42711&view=rev
Log:
Branch for libyui port.
Added:
trunk/gtk/unstable-libyui/
trunk/gtk/unstable-libyui/.cvsignore
trunk/gtk/unstable-libyui/AUTHORS
trunk/gtk/unstable-libyui/ChangeLog
trunk/gtk/unstable-libyui/HACKING
trunk/gtk/unstable-libyui/MAINTAINER
trunk/gtk/unstable-libyui/Makefile
trunk/gtk/unstable-libyui/Makefile.am
trunk/gtk/unstable-libyui/Makefile.am.common
trunk/gtk/unstable-libyui/Makefile.cvs
trunk/gtk/unstable-libyui/Makefile.in
trunk/gtk/unstable-libyui/NEWS
trunk/gtk/unstable-libyui/POTFILES
trunk/gtk/unstable-libyui/README
trunk/gtk/unstable-libyui/RPMNAME
trunk/gtk/unstable-libyui/SUBDIRS
trunk/gtk/unstable-libyui/TODO
trunk/gtk/unstable-libyui/VERSION
trunk/gtk/unstable-libyui/aclocal.m4
trunk/gtk/unstable-libyui/autodocs-cc-base.ami
trunk/gtk/unstable-libyui/autodocs-cc-off.ami
trunk/gtk/unstable-libyui/autodocs-cc.ami
trunk/gtk/unstable-libyui/autodocs-ycp.ami
trunk/gtk/unstable-libyui/autogen.sh (with props)
trunk/gtk/unstable-libyui/config.guess (with props)
trunk/gtk/unstable-libyui/config.h
trunk/gtk/unstable-libyui/config.h.in
trunk/gtk/unstable-libyui/config.log
trunk/gtk/unstable-libyui/config.status (with props)
trunk/gtk/unstable-libyui/config.sub (with props)
trunk/gtk/unstable-libyui/configure (with props)
trunk/gtk/unstable-libyui/configure.in
trunk/gtk/unstable-libyui/configure.in.in
trunk/gtk/unstable-libyui/depcomp (with props)
trunk/gtk/unstable-libyui/gtkize-iso (with props)
trunk/gtk/unstable-libyui/install-sh (with props)
trunk/gtk/unstable-libyui/integrate/
trunk/gtk/unstable-libyui/integrate/YaST2.call
trunk/gtk/unstable-libyui/integrate/yast2 (with props)
trunk/gtk/unstable-libyui/integrate/yast2-funcs
trunk/gtk/unstable-libyui/libtool (with props)
trunk/gtk/unstable-libyui/ltmain.sh
trunk/gtk/unstable-libyui/missing (with props)
trunk/gtk/unstable-libyui/package/
trunk/gtk/unstable-libyui/package/yast2-gtk-rpmlintrc
trunk/gtk/unstable-libyui/package/yast2-gtk.changes
trunk/gtk/unstable-libyui/pluglib-bindings.ami
trunk/gtk/unstable-libyui/src/
trunk/gtk/unstable-libyui/src/.cvsignore
trunk/gtk/unstable-libyui/src/Makefile
trunk/gtk/unstable-libyui/src/Makefile.am
trunk/gtk/unstable-libyui/src/Makefile.in
trunk/gtk/unstable-libyui/src/Y2CCGtk.cc
trunk/gtk/unstable-libyui/src/YGBarGraph.cc
trunk/gtk/unstable-libyui/src/YGComboBox.cc
trunk/gtk/unstable-libyui/src/YGDialog.cc
trunk/gtk/unstable-libyui/src/YGDialog.h
trunk/gtk/unstable-libyui/src/YGDumbTab.cc
trunk/gtk/unstable-libyui/src/YGFrame.cc
trunk/gtk/unstable-libyui/src/YGImage.cc
trunk/gtk/unstable-libyui/src/YGInputField.cc
trunk/gtk/unstable-libyui/src/YGIntField.cc
trunk/gtk/unstable-libyui/src/YGLabel.cc
trunk/gtk/unstable-libyui/src/YGLayout.cc
trunk/gtk/unstable-libyui/src/YGMenuButton.cc
trunk/gtk/unstable-libyui/src/YGMultiLineEdit.cc
trunk/gtk/unstable-libyui/src/YGPackageSelector.cc
trunk/gtk/unstable-libyui/src/YGProgressBar.cc
trunk/gtk/unstable-libyui/src/YGPushButton.cc
trunk/gtk/unstable-libyui/src/YGRadioButton.cc
trunk/gtk/unstable-libyui/src/YGSelectionModel.cc
trunk/gtk/unstable-libyui/src/YGSelectionModel.h
trunk/gtk/unstable-libyui/src/YGTable.cc
trunk/gtk/unstable-libyui/src/YGTime.cc
trunk/gtk/unstable-libyui/src/YGTree.cc
trunk/gtk/unstable-libyui/src/YGUI.cc
trunk/gtk/unstable-libyui/src/YGUI.h
trunk/gtk/unstable-libyui/src/YGUtils.cc
trunk/gtk/unstable-libyui/src/YGUtils.h
trunk/gtk/unstable-libyui/src/YGWidget.cc
trunk/gtk/unstable-libyui/src/YGWidget.h
trunk/gtk/unstable-libyui/src/YGWizard.cc
trunk/gtk/unstable-libyui/src/YGi18n.h
trunk/gtk/unstable-libyui/src/dummy.cc
trunk/gtk/unstable-libyui/src/icons/
trunk/gtk/unstable-libyui/src/icons/cat-development.xpm
trunk/gtk/unstable-libyui/src/icons/cat-documentation.xpm
trunk/gtk/unstable-libyui/src/icons/cat-emulators.xpm
trunk/gtk/unstable-libyui/src/icons/cat-games.xpm
trunk/gtk/unstable-libyui/src/icons/cat-hardware.xpm
trunk/gtk/unstable-libyui/src/icons/cat-multimedia.xpm
trunk/gtk/unstable-libyui/src/icons/cat-network.xpm
trunk/gtk/unstable-libyui/src/icons/cat-office.xpm
trunk/gtk/unstable-libyui/src/icons/cat-system.xpm
trunk/gtk/unstable-libyui/src/icons/cat-utilities.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-3D.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-available-locked.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-available.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-install-auto.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-install.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-installed-locked.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-installed-upgradable-locked.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-installed-upgradable.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-installed.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-list-mode.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-locked.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-remove-auto.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-remove.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-tiles-mode.xpm
trunk/gtk/unstable-libyui/src/icons/pkg-unlocked.xpm
trunk/gtk/unstable-libyui/src/mng-loader.c
trunk/gtk/unstable-libyui/src/mng-loader.h
trunk/gtk/unstable-libyui/src/test.cc
trunk/gtk/unstable-libyui/src/ygdkmngloader.c
trunk/gtk/unstable-libyui/src/ygdkmngloader.h
trunk/gtk/unstable-libyui/src/ygtkbargraph.c
trunk/gtk/unstable-libyui/src/ygtkbargraph.h
trunk/gtk/unstable-libyui/src/ygtkfieldentry.c
trunk/gtk/unstable-libyui/src/ygtkfieldentry.h
trunk/gtk/unstable-libyui/src/ygtkfindentry.c
trunk/gtk/unstable-libyui/src/ygtkfindentry.h
trunk/gtk/unstable-libyui/src/ygtkhtmlwrap.c
trunk/gtk/unstable-libyui/src/ygtkhtmlwrap.h
trunk/gtk/unstable-libyui/src/ygtkimage.c
trunk/gtk/unstable-libyui/src/ygtkimage.h
trunk/gtk/unstable-libyui/src/ygtkmenubutton.c
trunk/gtk/unstable-libyui/src/ygtkmenubutton.h
trunk/gtk/unstable-libyui/src/ygtkratiobox.c
trunk/gtk/unstable-libyui/src/ygtkratiobox.h
trunk/gtk/unstable-libyui/src/ygtkrichtext.c
trunk/gtk/unstable-libyui/src/ygtkrichtext.h
trunk/gtk/unstable-libyui/src/ygtksteps.c
trunk/gtk/unstable-libyui/src/ygtksteps.h
trunk/gtk/unstable-libyui/src/ygtkwizard.c
trunk/gtk/unstable-libyui/src/ygtkwizard.h
trunk/gtk/unstable-libyui/src/ygtkzyppwrapper.cc
trunk/gtk/unstable-libyui/src/ygtkzyppwrapper.h
trunk/gtk/unstable-libyui/src/yzyppwrapper.cc
trunk/gtk/unstable-libyui/src/yzyppwrapper.h
trunk/gtk/unstable-libyui/stamp-h1
trunk/gtk/unstable-libyui/test.sh (with props)
trunk/gtk/unstable-libyui/tests/
trunk/gtk/unstable-libyui/tests/Beep.ycp (with props)
trunk/gtk/unstable-libyui/tests/Cursor.ycp
trunk/gtk/unstable-libyui/tests/FileDialog.ycp
trunk/gtk/unstable-libyui/tests/Frame.ycp
trunk/gtk/unstable-libyui/tests/IconButton.ycp (with props)
trunk/gtk/unstable-libyui/tests/IconItems-ComboBox.ycp (with props)
trunk/gtk/unstable-libyui/tests/IconItems-MultiSelectionBox.ycp (with props)
trunk/gtk/unstable-libyui/tests/IconItems-SelectionBox.ycp (with props)
trunk/gtk/unstable-libyui/tests/Image.ycp
trunk/gtk/unstable-libyui/tests/ImageMng.ycp
trunk/gtk/unstable-libyui/tests/Layout-Align-Weight.ycp (with props)
trunk/gtk/unstable-libyui/tests/Layout-AlignStretch.ycp
trunk/gtk/unstable-libyui/tests/Layout-Expand.ycp (with props)
trunk/gtk/unstable-libyui/tests/Layout-Frame2.ycp (with props)
trunk/gtk/unstable-libyui/tests/Layout-HVCenter-Align.ycp (with props)
trunk/gtk/unstable-libyui/tests/Layout-ReplacePoint.ycp (with props)
trunk/gtk/unstable-libyui/tests/Layout-Split-Split.ycp (with props)
trunk/gtk/unstable-libyui/tests/Layout-Truncated-Widget.ycp (with props)
trunk/gtk/unstable-libyui/tests/Layout-Wizard-BackgroundWidget.ycp (with props)
trunk/gtk/unstable-libyui/tests/Layout-Wizard-OneWidget.ycp (with props)
trunk/gtk/unstable-libyui/tests/Layout-Wizard3.ycp (with props)
trunk/gtk/unstable-libyui/tests/MainDialogs.ycp
trunk/gtk/unstable-libyui/tests/MultiProgressMeter.ycp
trunk/gtk/unstable-libyui/tests/MultiProgressMeterHuge.ycp
trunk/gtk/unstable-libyui/tests/MultiSelectionBox.ycp
trunk/gtk/unstable-libyui/tests/ProgressPulse.ycp
trunk/gtk/unstable-libyui/tests/RichText1.ycp
trunk/gtk/unstable-libyui/tests/RichText2.ycp
trunk/gtk/unstable-libyui/tests/SelectionBox.ycp (with props)
trunk/gtk/unstable-libyui/tests/StockIcons.ycp
trunk/gtk/unstable-libyui/tests/Table3-4.ycp (with props)
trunk/gtk/unstable-libyui/tests/TransientDialog.ycp
trunk/gtk/unstable-libyui/tests/Tree3.ycp
trunk/gtk/unstable-libyui/tests/WizardList.ycp
trunk/gtk/unstable-libyui/tests/image.gif (with props)
trunk/gtk/unstable-libyui/tests/movie-endless.mng-old (with props)
trunk/gtk/unstable-libyui/tests/movie1.mng (with props)
trunk/gtk/unstable-libyui/tests/movie2.mng (with props)
trunk/gtk/unstable-libyui/tests/movie3.mng (with props)
trunk/gtk/unstable-libyui/tests/movie4.mng (with props)
trunk/gtk/unstable-libyui/tests/movie5.mng (with props)
trunk/gtk/unstable-libyui/tests/movie6.mng (with props)
trunk/gtk/unstable-libyui/tests/movie7.mng (with props)
trunk/gtk/unstable-libyui/tests/movie8.mng (with props)
trunk/gtk/unstable-libyui/yast2-gtk.spec.in
trunk/gtk/unstable-libyui/ycc.sh (with props)
Added: trunk/gtk/unstable-libyui/.cvsignore
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/.cvsignore?r…
==============================================================================
--- trunk/gtk/unstable-libyui/.cvsignore (added)
+++ trunk/gtk/unstable-libyui/.cvsignore Wed Dec 5 14:14:01 2007
@@ -0,0 +1,21 @@
+stamp-h1
+missing
+ltmain.sh
+libtool
+install-sh
+depcomp
+configure
+config.sub
+config.status
+config.log
+config.h.in
+config.h
+config.guess
+autom4te.cache
+Makefile.in
+Makefile
+INSTALL
+ChangeLog
+AUTHORS
+COPYING
+aclocal.m4
Added: trunk/gtk/unstable-libyui/AUTHORS
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/AUTHORS?rev=…
==============================================================================
--- trunk/gtk/unstable-libyui/AUTHORS (added)
+++ trunk/gtk/unstable-libyui/AUTHORS Wed Dec 5 14:14:01 2007
@@ -0,0 +1,8 @@
+This code is written & maintained by:
+
+ Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+ Michael Meeks <michael.meeks(a)novell.com>
+
+With kind assistance from:
+
+ Stefan Hundhammer <sh(a)suse.de>
Added: trunk/gtk/unstable-libyui/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/ChangeLog?re…
==============================================================================
--- trunk/gtk/unstable-libyui/ChangeLog (added)
+++ trunk/gtk/unstable-libyui/ChangeLog Wed Dec 5 14:14:01 2007
@@ -0,0 +1,2040 @@
+2007-12-04 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkimage.h/c: moved YGImage stuff to an actual widget impl. Added
+ dim/gray when disabled as asked by bug #345506. Used the same code as gtk
+ -- done at expose-time, using style engine.
+ * src/YGImage.cc: according changes. Much smaller, of course.
+
+ * tests/ImageMng.ycp: added Enable option, to test this. Very cool.
+
+ * src/ygdkmngloader.c: bug fix: when fopen() fails, it returns null, so don't
+ call fclose() on null, on error case.
+
+2007-12-03 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkwizard.c: set label title centered (visible on our Package Selector
+ as the icon is bigger than the text).
+
+ * src/YGProgressBar.cc (YGMultiProgressBar): made it flow from left to right
+ on horizontal multi progress bars.
+ * tests/MultiProgressBar.ycp: replaced MultiProgressBarVer.ycp by this with
+ both orientations.
+
+2007-11-30 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGUI.cc: added Refresh button for the YWidget tree dialog.
+ Also added an optional (at compile time) column for the valid test. Not
+ much use for it though...
+
+ * src/YGWizard.cc: bug fix (found during bug #342348). We were freeing
+ YWizard button wrapper widgets which we weren't supposed to. It was just
+ printing errors, instead of crashing, as libyui does a corruption testing
+ before freeing a widget to avoid double freeing.
+
+ * src/yzyppwrapper.cc: fixed search name query. Was not being inclusive.
+
+ * src/yzyppwrapper.cc: fixed pools notifications on package modifications.
+ The resolver only tell us of *modified* packages, not *touched*. So, if
+ I set a package to install, then reverse the operation, the package is
+ not considered modified. Now, this direct user modifications are no problem;
+ we know about them. The problem are dependencies. Did a work around for that;
+ kept the old status and do a comparasion on all packages.
+
+2007-11-29 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkwizard.c: de-coupled navigation widgets: tree and steps. Tree
+ will be placed in a GtkPaned next to the content.
+
+ * src/yzyppwrapper.h/cc: Zypp bridge (aka Ypp).
+ * src/ygtkzyppwrapper.h/cc: hooks a Ypp pool as a GtkTreeModel.
+ * src/YGPackageSelector.cc: initial frontend that used the new bridge.
+ Will ask for the opinion of some nice people over its design.
+
+2007-11-27 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGTable.cc: GTK+ doesn't fire a selected signal as a result of
+ the current row being unselected because it was removed. But to play safe,
+ blocked them then.
+
+2007-11-22 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkratiobox.c: reversed my last changes (except warning fix).
+ It needs to be reviewed more careful. size_request shouldn't probably
+ take weights in consideration like yast-ui. Only on allocation, when there
+ is surplus of allocated area, we should use them...
+
+ * src/ygtkrichtext.c: made use of "pixels-below-lines" for padding. Fixed
+ block tags comparison (was not ignoring cases). Fixed logic to check if
+ character is new line '\n' or '\r' (some code typo).
+ * src/YGUtils.cc: fixed comparison for leaf nodes "br" and "hr" (was not
+ ignoring cases).
+
+ * src/YGUI.cc: added DumpHtml debug dialog that goes through all RichTexts
+ printing their source contents to a dialog.
+ * src/YGDialog.cc: DumpHtml gets run on Ctrl+Alt+Shift+H
+
+ * src/YGWidget.cc (YGLabeledWidget): bug fix (see hwinfo tool): was hiding
+ label on empty string, but forgetting to show it, on a new string that isn't
+ empty.
+
+2007-11-21 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGComboBox.cc: shouldn't signal an event when an item is selected
+ by code. (not the actual problem, but related to #343183).
+
+ * src/ygtkratiobox.c: fixed code typo.
+
+2007-11-20 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkratiobox.c: be more modest when requesting for size --
+ ie. don't try to request enough size for all the children weight,
+ just so they fit. Unless asked otherwise. Updated YGtkBarGraph
+ and YGMultiProgressBar for this...
+ TODO: we should allocate weights from the point where every
+ children has been served.
+
+ * src/ygtkratiobox.c: fixed warning.
+
+2007-11-12 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGUI.cc & src/YGDialog.cc: added save_y2logs command on Shift+F8
+ like yast-qt.
+
+2007-11-12 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGUI.cc: on PollInput, run g_main_iteration() while there are
+ events to process.
+
+ * src/YGDialog.cc & YGUI.cc: improved busy cursor activation.
+ * src/YGUI.cc: return NULL on events wait when there is no dialog,
+ like yast-qt (some weirdo YCP prog could do it...)
+
+ * src/YGUI.cc: uncommented YGUI::beep() implementation. Looks like
+ my patch was accepted on yast-core (I wish I was notified for those
+ API changes though).
+ * tests/Beep.ycp: removed, now shipped as a yast-ui example.
+
+ * src/YGUtils.cc: added stock icon mapping for English locale.
+ Soon yast-qt will get bug reports to implement the same thing, and
+ they will push for the yast-ui guy a more universal way to allow for
+ that.
+
+2007-11-11 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGDialog.h/cc & YGPackageSelector.cc: bug fix #340555: package
+ manager post-selection process hangs when trying to exit (by the window
+ manager: e.g. Alt+F4). You need to unset the callback thing that was
+ installed on YGDialog for the "Abandon Changes" dialog.
+
+ * src/YGUI.cc: bug fix: cannot abort package manager post-selection
+ process (related to previous). We were not implementing UI::PollInput(),
+ which is a non-blocker UI::UserInput() used by this kind of processes.
+ * example/PollInput.ycp: a test case for User & PollInput().
+
+2007-11-07 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkratiobox.c: bug fix, dialog on disk.ycp tool was gutted.
+ Unsigned types involved on arithmetic operation resulting in some overflows.
+ As an extra issue size_request is not returning the exact size needed
+ (maybe a round problem?)
+
+ You should sent this upstream ASAP since it renders the disk tool useless
+ (in case you have sent a package upstream after Oct 11, which I guess was
+ when the bug was introduced: r41393.)
+
+2007-10-31 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkmenubutton.c: simplified menu pos code.
+
+2007-10-26 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGProgressBar.cc: improved look of the multi-progress-bar. Made
+ it growing completely from bottom to top.
+
+ * tests/MultiProgressMeterVer.ycp: test case.
+
+2007-10-25 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkratiobox.h/c, YGProgressBar.cc, YGWidget.cc: bug
+ fix 309049. A ratio box can request for a very big size when using weights
+ so that its children are all visible. Added a max_width/height property
+ to YGtkMinSize and renamed it to YGtkAdjSize. Set it for MultiProgressMeter.
+
+ * tests/MultiProgressMeterHuge.ycp: test case.
+
+2007-10-23 JP Rosevear <jpr(a)novell.com>
+
+ * src/YGPackageSelector.cc (class YGPatchSelector): Use the more
+ sophisticated logic taken from YQPkgPatchList::fillList to
+ determine what patches are available (#336124)
+
+2007-10-22 Boyd Timothy <btimothy(a)novell.com>
+
+ * src/YGPackageSelector.cc: Removed the space before the question mark
+ in the "Abandon all changes?" dialog. Also changed from Ok/Cancel to
+ Yes/No buttons to follow HIG more closely.
+
+2007-10-17 Boyd Timothy <btimothy(a)novell.com>
+
+ * src/YGPackageSelector.cc: Fixed the code so it only shows
+ packages that are not installed or have an update. Fixes
+ bug #300737. Also added an enum for the GtkTreeStore
+ columns so the code is easier to read.
+
+2007-10-16 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkhtmlwrapper.h/c (added): to be used instead of YGtkRichText directly.
+ At the moment, it wraps YGtkRichText and GtkHTML, YGtkRichText being the
+ one used (for now, at least).
+
+ * src/YGUtils.cc: fixed a small memory leak when a html comment, and
+ disabled the removal of whitespaces (as needed by <pre>).
+ * src/ygtkrichtext.c: moved block and block&ident tags to common code.
+ For block tags, I am simply using two break lines, instead of spacing.
+ This could still use more polishing...
+
+ * src/YGRichText.cc: removed, moved to YGMultiLineEdit.cc, made the factory
+ constructing another object for plainText.
+
+ * configure.in.in: added GtkHtml check (uncommented as I dunno how to
+ make it optional; and either way, needs to be discussed what we want here).
+
+2007-10-12 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygdkmngloader.h/c / src/YGImage.cc: added support for inline MNG
+ images. Fixed ticks per second.
+ * tests/YGImage.ycp: added a bunch of MNGs I found...
+
+ * src/ygtkhtmltext.h/c: added wrapper around our YGtkRichText and GtkHtml.
+ -> Automake stuff needs works (it will just error if GtkHtml is not found...)
+ * src/YGRichText.cc & src/YGPackageSelector.cc: bug fix #326207: use
+ ygtkhtmltext code.
+
+ Doing our own renderer was fun, but it won't ever support tables, and still
+ has some corner cases where GMarkup complains, and inline/blocks tags are
+ problematic at times. And I already saw comments of people doing tables and
+ using HTML extensively on yast (like for a startup screen).
+ With a wrapper we can easily port the code to another HTML widget out there,
+ until gtk+ adopts one into the API. GtkHTML API is a bit sucky, but its
+ used by Evolution (including on the composer), so its robust, and it seems
+ fairly slim (certainely when compared to mozdev :P).
+
+2007-10-11 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGPackageSelector.cc: speed up Patterns view.
+
+ * src/ygtkratioboxh.h/c: bug fix #326144: the layout algorithm
+ should be the same as yast-core. It was ignoring the insane yast
+ some policies, including the layout-stretch (also called rubber-band)
+ variable.
+
+ * src/YGTable.cc: bug fix: Comunity Repos tool was showing descriptions
+ on single click. Moved the event hooks to the different Table-like
+ implementations, as they differ in subtlety.
+
+ * src/YGWidget.h: added getDebugLabel() which is our replacement for
+ YWidget::debugLabel() which is of little use for most widgets.
+ * src/YGLayout.cc (YGAlignment): added align info to YGAlignment's
+ getDebugLabel().
+ * src/YGUI.cc: improved YWidget Tree dialog (ctrl+alt+shift+T).
+
+ * src/YGWidget.cc: added delay flag to emitEvent() (waits 250 ms
+ then tries to send it if nothing is pending).
+
+ * testcases:
+ * tests/Layout-AlignStretch.ycp: the #326144 bug.
+ * tests/MultiSelectionBox.ycp: the other bug mentioned.
+
+ * src/YGTable.cc: forgot to block new hook: select_delayed_cb when
+ changing selection.
+
+ * src/ygtkratiobox.c: seems like we aren't being completely faithful to
+ yast-core. Made widget base-size with the boss algo from yast-core.
+
+ * src/YGTable.cc: bug fix #327492: always make one row selected. This isn't
+ documented behavior, and the YCP code is at fault here, but we probably
+ should emulate the other interfaces.
+
+ * src/ygtksteps.c: bug fix #328500: steps may be truncated when they get
+ highlighted. Calculate size_request as if they are all highlighted.
+ TODO: we may want to get rid of PangoLayout in favor of the simpler Cairo.
+
+ * src/ygdkmngloader.h/c: bug fix #328500: added loader for MNG image.
+ (just a very small subset of it). There is a bug on movies limited to
+ a fixed iteration number -- it seems that ticks per second is calculated
+ different for them; have to see...
+ * tests/YGImage.ycp: added a MNG image and updated test.
+
+2007-10-10 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGPackageSelector.cc: fixed bug #330467. Do a full match to
+ map patterns wanted packages for the packages in the pool.
+
+ * fixed a couple of warnings.
+
+ * src/YGDialog.cc: fixed bug #330777. The value we need to return from the
+ delete-event callback (close window) is always True, because we don't want
+ GTK destroying the window for us. We just want to let YCP know about it,
+ and then YCP does it explicitely if and when it wants to.
+ For the record, the abandon dialog from the package selector is working. Neat
+ dialog btw.
+
+2007-10-03 Boyd Timothy <btimothy(a)novell.com>
+
+ * src/YGPackageSelector.cc: Use the "available" name to sort
+ the tree views. This makes the Available Software list be
+ sorted properly.
+
+2007-10-03 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGPackageSelector.cc: don't re-render the progress bar
+ so much when building the package tree: ~20% speedup.
+
+ * src/YGPackageSelector.cc (PackageSelector): turn off searching
+ description, too slow.
+ (fastGetSummary): implement cache for summaries - hugely
+ accelerates searching etc. at cost of some memory.
+
+2007-08-26 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGPackageSelector.cc (does_package_match_one):
+ don't fetch the obj unless we need to - hugely accelerates
+ search.
+
+ * src/YGPackageSelector.cc (PackageSelector): use
+ search_activate_cb for 'activate' on the entry, so we
+ don't wait 1 second when the user hits 'enter' ;-)
+
+2007-08-25 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGPackageSelector.cc: merge two gtk_tree_model_gets.
+ (checkDelete): use this to get user confirmation on exit if
+ there are unsaved changes etc. n#300390
+
+ * src/YGDialog.cc (close_window_cb, setDeleteCallback): add
+ ability to set a custom dlete callback.
+ (currentYGDialog): expose as YGDialog.
+
+ * src/YGDialog.h: add: needed in YGPackageSelector.
+
+2007-08-22 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGProgressBar.cc (YGProgressBar): implement pulse
+ mode when maxprogress == 0
+
+ * tests/ProgressPulse.ycp: add test.
+
+ * configure.in.in, src/Makefile: create and use PYUI_LIBS,
+ to adapt likewise.
+
+ * src/Y2CCGtk.cc (class Y2CCGtk): conditionalize new
+ YUI pieces so we build with older yast2's.
+
+2007-08-10 Michael Meeks <michael.meeks(a)novell.com>
+
+ * po/pt.po: remove - causing grief with 'make package'
+
+2007-08-08 Michael Meeks <michael.meeks(a)novell.com>
+
+ * VERSION: 2.15.8, Revision 40088
+
+ * src/YGPackageSelector.cc (acceptLicense):
+ details on how to print the license: FaTE #302018
+
+2007-07-23 Michael Meeks <michael.meeks(a)novell.com>
+
+ * Version 2.15.6, Revison 39606
+
+2007-07-23 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGPackageSelector.cc (sync_tree_views_scroll): this
+ needs re-writing to be more efficient in corner cases: eg.
+ no zypp sources. For now use an iteration timeout of 10
+ loops before bailing out for a big speed win.
+
+ * src/YGPackageSelector.cc (compat_gtk_tree_model_filter_convert_child_iter_to_iter):
+ back-compat method for older gtk+s (SLED10).
+
+ * configure.in: autodetect pre ZYPP 3 version, and adapt
+ accordingly.
+
+ * src/YGPackageSelector.cc (induceObjects): fix tribool related
+ crasher n#293065.
+ (PackageSelector): remove m_searching, in favour of the more robust
+ !m_search_queries.empty()
+
+ * src/YGImage.cc (YGImage::initOptions): set m_isScaled, m_isTiled
+ before we use them; kill valgrind uninitialized value error churn.
+
+ * src/YGPackageSelector.cc: handle 0 size partitions,
+ also don't warn for "out of space" errors on < 1Mb partitions:
+ discarding the annoying warning dialog.
+ (PROGRESS): guard against divide-by-zero too.
+
+2007-07-19 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGPackageSelector.cc: Jiri has added gettext support (not sure
+ if it is completed as I don't see the place for PO files and the rules
+ to compile them), so set package selector strings as translatable _( ... ).
+
+ * po/pt.po: created this translation; dunno how to make the thing
+ being used now...
+
+ * src/YGPackageSelector.cc: added pre-3 zypp version compatibility; just
+ uncomment #define PRE_ZYPP_3
+
+2007-71-16 Jiri Srain <jsrain(a)suse.cz>
+
+ * moved changelog to package subdir, added .spec.in and -yast2-gtk-rpmlint
+ files
+
+2007-07-16 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGPackageSelector.cc: ported to zypp3 from alpha6:
+ + the SourceManager/Source API has been renamed to RepoManager/Repository
+ /RepoInfo and suffered some changes.
+ + missing include: zypp/Package.h
+
+2007-06-29 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkwizard.c: bug fix: rolled out «let the selection event be
+ fired, when yast programatically selects a tree view item» (was
+ breaking sudo and firewall tools).
+
+2007-06-21 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGWidget.h/cc (YGScrolledWidget): Because SelectionBox and others don't
+ request for a size, they allocate their size by using weights. It will
+ look good on yast-qt default window size (at least with default fonts...),
+ but will suck for us since we use a window size that we adjust as necessary.
+ Made it so that child enforces its size up to 120 pixels.
+ This doesn't fix the fact that there should be a maximum size on auxiliary
+ widgets, like a list, for aesthetics.
+
+ * src/ygtkratiobox.h/c (YGtkScrolledWindow): extended GtkScrolledWindow
+ so that automatic policy is more grained; you can set scroll bars to only
+ be used above a certain size of the child.
+
+2007-06-20 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ Banshee's labels and table text is truncated with the "..." string
+ added when they don't have enough space. Checked their source code
+ to see the text cell renderer they have done for the purpose. No
+ custom text cell renderer... Then, I noticed that git-view also does
+ it. Checking GTK+ docs, Pango offers that wrapping mode (ellipsize,
+ they call it). Really nice, so made use of it:
+
+ * src/YGPackageSelector.cc: wrap using ellipsize. This doesn't
+ force us to set a wrapping width, so setted the column expandable.
+ Makes the selector looking better when expanded.
+
+ * src/YGTable.cc: used ellipsize for the last column, generally used
+ for descriptions (see runlevel, printer, etc).
+
+ * src/ygtkwizard.cc: sometimes the header text is so big, that the
+ window must be enlarged. Made it using ellipsize, and set a minimum
+ width of 40 pixels.
+
+2007-06-20 Michael Meeks <michael.meeks(a)novell.com>
+
+ * Version 2.15.4 - Rev 38929
+
+2007-06-20 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGFrame.cc (YGCheckBoxFrame::setEnabling): fix up.
+ (YGCheckBoxFrame::setLabel): handle mnemonic properly.
+
+ * src/ygtkratiobox.c (ygtk_ratio_box_forall): make static.
+
+ * src/test.cc, src/YGWidget.cc, *.c: add missing config.h includes.
+
+ * src/YGFrame.cc: include config.h so we get YAST2_VERSION,
+ so we get the CheckBoxFrame conditional right.
+
+ * src/ygtkfindentry.c (ygtk_ext_entry_new): fix prototype.
+ (ygtk_find_entry_new): correct prototype / impl. mismatch.
+ (ygtk_find_entry_actual_popup_menu): correct prototype.
+ * src/ygtkmenubutton.c (ygtk_menu_button_new),
+ * src/ygtkfieldentry.c (ygtk_filter_entry_new),
+ (ygtk_field_entry_new): fix prototype.
+
+ * src/YGUI.cc (errorMsg): use a '%s' format for msg.
+
+2007-06-19 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ Banshee's labels and table text is truncated with the "..." string
+ added when they don't have enough space. Checked their source code
+ to see the text cell renderer they have done for the purpose. No
+ custom text cell renderer... Then, I noticed that git-view also does
+ it. Checking GTK+ docs, Pango offers that wrapping mode (ellipsize,
+ they call it). Really nice, so made use of it:
+
+ * src/YGPackageSelector.cc: wrap using ellipsize. This doesn't
+ force us to set a wrapping width, so setted the column expandable.
+ Makes the selector looking better when expanded.
+
+ * src/YGTable.cc: used ellipsize for the last column, generally used
+ for descriptions (see runlevel, printer, etc).
+
+ * src/ygtkwizard.cc: sometimes the header text is so big, that the
+ window must be enlarged. Made it using ellipsize, and set a minimum
+ width of 40 pixels.
+
+2007-06-19 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkwizard.c: fix: let the selection event be fired, when yast
+ programatically selects a tree view item. Also center it, disallow
+ unselection and fixed memory leak.
+
+ * src/YGPackageSelector.cc:
+ + fix bad behavior when undoing a package set to update.
+ + fixed libzypp hang when queried for sources that were disabled.
+ + use libzypp Unit utility to convert partition disk size integer
+ to a nice size string (for the disk usage graph).
+ + set font package description italic when user modifies its
+ + putted sources and disk usage table into notebook pages.
+ + fixed code for multi-selections.
+ + fixed pattern / language management.
+ + don't allow selections on groups.
+
+ * src/YGTable.cc: fixed last work; when a table is sorted the rows
+ paths change... This has broken our yast row to gtk row id proxy...
+ Re-worked using another approach.
+
+ * src/YGWidget.cc: fixed: labels that were putted in top of some
+ widgets (like the progress bar) were being wrapped for no reason.
+
+2007-06-16 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGFrame.cc: re-factored some code into a common YGBaseFrame and
+ created GtkAlignment once while getting rid of the custom addChild.
+
+ Michael: sorry if YGCheckBoxFrame doesn't compile, and give it a try. :/
+ Btw, YGCheckBoxFrame::setEnabling() looks weird. Shouldn't the argument
+ have a purpose?
+
+ * src/YGTable.cc: sorting was broken. Made it sorting by the first
+ column by default, as yast-qt.
+
+ * src/YGTable.cc: for the MultiSelectionBox, where the user pressed the
+ toggle button, allow also him to press enter/space or double-click the row.
+
+ * src/YGTable.cc: because of yast-ncurses/qt, Yast tools expect it to
+ be impossible for the user to un-select a row (which GTK+ allows by pressing
+ Control while clicking on the row). Disabled that.
+
+ * src/ygtkwizard.c: F1 opens help dialog.
+
+ * src/ygtkratiobox.h/c: got rid of the packing property. Not used and is
+ broken anyway. Touched a few more files.
+
+ * src/YGUtils.h/cc: some cleanup.
+
+ * src/YGDialog.cc: some initial easter egg. :) Press Ctrl+Alt+Shit+E, wait
+ 10 secs. :)
+
+2007-06-12 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGTable.cc: oops, looks like GtkTreeView built-in search wasn't
+ working for our YMultiSelection, since the first column are booleans.
+
+2007-06-11 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGPackageSelector.cc (does_package_match): use some
+ more google-like 'AND' vs. 'OR' syntax, default to AND.
+
+ * src/YGPackageSelector.cc (acceptLicense): pack the
+ license_view into the right widget, and set expand/fill.
+ (does_package_match_one): split from
+ (does_package_match): allow "and"ing our keywords
+ together to narrow search, rather than or'ing, and default
+ to 'and'.
+ (acceptLicense): make the license_view a rich text view.
+
+ * src/YGProgressBar.cc: use BOTTOM_TO_TOP instead of top_to_bottom,
+ makes the package install bar look more 'normal' (?) usual for
+ thermometers, equalizers, volume controls etc.
+
+2007-06-10 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGPackageSelector.cc:
+ + some improvements for package description text.
+ + added sources widgets which not only lists package sources, but
+ lets you enable/disable them (might be cool to actually allow it to
+ manage them; add and remove them, but that should be quite some work
+ -- can of course be considered -- we can't unfortunately just use
+ the sources yast module, at least as it is, since zypp is locked by
+ us...
+ + added disk widget, which lists partitions and their usage. Also fires
+ up a warning dialog when disk left space gets below 80Mb (only once...).
+ + start of multi-selections support (BROKEN though).
+
+ NOT to be sent upper stream.
+
+2007-06-02 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGTable.cc: don't blindly accept the row passed by a YCP app, might
+ be out of range. It didn't crash or anything, since the map find should
+ return the last one, but handle it sensibly now.
+
+ * src/YGPackageSelector.cc: added patterns and languages view. (Installing
+ or removing a pattern/language doesn't yet work, only packages under them.)
+ Removed the PatternSelector class. All bundled now.
+
+ * src/YGPackageSelector.cc: show a progress window when changing views.
+ Was gonna use threads at first, but decided to just flush gtk events at
+ some points. No disadvantages, I would call this userspace threading :P,
+ and its much simpler.
+
+ * src/YGPackageSelector.cc: Done a lot of string treatment for the Package
+ Details expander tabs. In particular, if nautilus is present, the file list
+ dirs will be clicked and nautilus fired on them. (gnome_view_url() would
+ been better, especially since it seems gnome stuff will be moved to /usr;
+ but it's a too small feature to justify linkage).
+
+ * src/ygtkrichtext.c: function API changed. Also touched files
+ that use this widget.
+
+ * src/YGUtils.cc: when handling xml, cut comments (<!-- -->). Added
+ function to replace by \n for <br>, or <p>. If text has <!-- DT:Rich -->
+ don't escape it.
+ * src/test.cc: updated.
+
+2007-05-23 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkwizard.c: changed title alignment.
+
+ * src/ygtkfindentry.c: overload entry's context menu key binding
+ by our own, if set (see package selector).
+
+ * src/YGUI.cc: ignore widgets without YGWidget representation
+ (ie. YWizard buttons wrappers).
+
+2007-05-22 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGPackageSelector.cc: expand all nodes on the conflicts
+ dialog tree.
+
+ * src/ygtkfindentry.c: when it has a context menu, draw a arrow
+ on the icon to indicate it (see the package selector).
+
+ * src/ygtkwizard.c: when help dialog's search text is not found,
+ use the same red of Firefox on the search. Also set text white.
+
+2007-05-12 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGPackageSelector.cc: when clicking in a package, even if
+ it isn't on the other view, scroll view to the closest package.
+ (to fix: when moving packages, it scrolls badly.)
+ Remove version handlers from groups, and bold package names.
+
+2007-05-11 Michael Meeks <michael.meeks(a)novell.com>
+
+ * Version 2.15.3, Revision 446+
+
+2007-05-11 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/ygtkrichtext.c (rt_end_element): harden vs. missing close htags.
+ (rt_start_element): fix crasher n#271716 - the first element has no
+ front element.
+
+ * src/ygtkfindentry.c (ygtk_ext_entry_get_border_window_size),
+ (ygtk_ext_entry_set_border_window_size),
+ * src/ygtkwizard.c (ygtk_wizard_add_step_header): convert g_asserts
+ to g_return_if_fails - so we don't abort when the .ycp does something
+ unexpected.
+
+2007-05-10 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkfindentry.c: don't allocate space for invisble windows.
+ Found out why SphereCrystal (and likely other styles that make use
+ of the background drawing) was getting cutted. GtkEntry re-calculates
+ the text area for drawing the background, instead of just getting its
+ geometry (reported bug+patch).
+ Centered find/clear icon vertically. Some styles have higher entries
+ and this was noticeable.
+
+ (Aaron Bockover has re-written Banshee's search entry using its old
+ approach. Dunno what he thought of our code. Ours may be considered
+ a bit more complex -- 454 vs 472 lines btw --, but I'd say its more elegant.
+ Its also more flexible, and a bit more efficient (his approach requires
+ GTK layouting to kick in at times, since it works by compounding widgets;
+ eg. when hovering a icon, it replaces the icon with a container_add() and
+ a _remove().
+ His aproach may also break more easily. For instance, it treats xthickness
+ and ythickness as having the same value (avoiding that would mean cluttering
+ the code with layout handling).
+ So, I think ours is a keeper.
+ Sent him a patch for honoring non-interior_focus styles -- eg. Glider
+ (not completely exact, but its not really noticeable).)
+
+2007-05-07 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkfieldentry.c: bug fix: due to cleanup entry was not accepting
+ text when valid chars were not set.
+
+ * src/YGWizard.cc: we need to export wizard three buttons as YPushButtons,
+ so that YUI::ChangeWidget() can be used on them. This seems to overlap with
+ Wizard API and I dunno why they didn't just adopt one approach. My guess
+ is that some dude just start using this (ncurses supports this as it's done
+ using yui), and -qt just adopted it.
+ sysconfig tool needs fixing.
+
+ * src/YGWizard.cc: sysconfig tool fixed; we weren't implementing
+ YGWizard::currentTreeSelection(); simple function; not so simple
+ to found it missing. :)
+ * tests/WizardList.ycp: respective test case.
+
+ * src/YGUtils.cc: replace " " by " ".
+
+2007-05-03 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtk*: unified the code style of our widgets. Most standing,
+ declarations are avoided, and overloading is done at the end. This
+ reduces the points you need to change when adding/removing a function.
+
+2007-05-02 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkfindentry.c: re-written it to my initial vision. Before,
+ it was based on the music player's Banshee one, though it did some more
+ work to look closer to a GtkEntry. When I sent a patch to the guys,
+ they reported a couple of visual issues. They were minor and I even
+ fixed one of them; the other, having it integrated into external
+ focus style entries, seemed to require a different approach. Few
+ styles use this, and it looked okay anyway. But was getting unhappy
+ with the code, so did this re-write, which I'm really happy with. :)
+
+ * src/ygtkfindentry.h: from the description:
+ YGtkExtEntry extends GtkEntry adding two optional GdkWindows, at each
+ horizontal corner, which are created at demand. Very useful to create
+ a panel, an icon or something inside of it.
+ GtkTextView provides something similar and would be nice to have this
+ right on GtkEntry; in fact, GtkSpinButton could be simplified if it
+ were for this.
+ Right-to-left is supported at this level (borders are mirrored, if it
+ is set). If you don't want that, use gtk_widget_set_direction().
+
+ YGtkFindEntry is a convinience widget that has a find icon, with an
+ optional menu, at the left, and an erase icon at the right.
+
+ (Will ask Aaron Bockover to look at the code; won't be porting it
+ to C# anytime soon though.)
+
+ * src/YGPackageSelector.cc / src/ygtkwizard.c: modified to cope with
+ new API.
+
+ * src/YGTable.cc: when selecting a row, also center it in the view.
+
+ * src/ygtkfindentry.c: got rid of the need for the
+ ygtk_find_entry_modify_base() method as opposite to gtk_widget_modify_base().
+ Made sure size_request was enough for the icon.
+
+ * src/ygtkfindentry.c: added Banshee-based nice hover effect.
+
+2007-04-19 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGPackageSelector.cc: re-allowed user to press Enter on search
+ entry to re-do search. TODO: probably we want when a search option
+ is changed for the search to be re-done.
+
+2007-04-17 Michael Meeks <michael.meeks(a)novell.com>
+
+ * Version 2.15.2, Revision 431
+
+2007-04-17 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/ygtksteps.c (ygtk_steps_new): explicit void prototype.
+ (ygtk_steps_append, ygtk_steps_append_heading): add pre-conditions,
+ works around crash on start in update.ycp
+
+ * src/ygtkcellrendererarrow.c (point_under_arrow): don't use
+ GTK_ARROW_NONE for signalling - not present in gtk 2.8
+
+ * src/YGUI.h: create new YAST2_YGUI_CHECKBOX_FRAME define, that
+ (hopefully) captures the correct semantics of when the checkboxframe
+ is available.
+
+2007-04-16 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkfindentry.c/h: new widget; a GtkEntry with a clear icon on
+ the right, and a find icon on the left. My first idea was to implement
+ this by adding a couple of GdkWindows to a GtkEntry, and limitate the
+ text area with the "inner-border". But checked Banshee code and opted
+ for their approach; using a GtkHBox inside a GtkFrame. Only I have
+ not used a GtkFrame and done the frame drawing myself, so it really
+ looks like a GtkEntry; also made the height to be like one of a GtkEntry.
+
+ * src/ygtkwizard.c: use YGtkFindEntry on the help dialog. Nicely dicrete.
+
+ * src/YGPackageSelector.cc: instead of the Customize button, then dialog;
+ used a YGtkFindEntry, with a popup menu on the find icon where you can
+ check the fields you wanna search for (like Banshee does).
+ TODO: support google syntax on search: "python -gtk", etc. Just some of
+ them...
+
+2007-04-14 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkcellrendererarrow.c: arrows now drawn with cairo, instead of
+ the pixmaps. I'm surprised they fit pretty well.
+ * src/ygtkcellrendererarrow.c: trying to have pressed/normal state, but
+ the events of a cell renderer are limitated to pressing. Cleanup anyway.
+
+ * src/YGUtils.cc: correction to strcmp for different length strings
+ (for him, "aa" == "aaa").
+ * src/test.cc: added strcmp case.
+
+2007-04-09 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGUtils.cc: added alternative to gtk_tree_view_scroll_to_point()
+ that does smooth scroll.
+
+ * src/ygtkarrowcellrenererarrow.c: a cell renderer that
+ displays two arrow buttons (up and down) which can be used
+ as another representation of a combo or spin box.
+
+ * src/YGPackageSelector.cc: when a package is selected, scroll the
+ other view to the same point. TODO: as the user scrolls one view, also
+ make the other view scroll with respect to the sorting.
+
+ * src/YGPackageSelector.cc: added a another column to the available
+ packages view with arrow renderers. If more than one version is
+ available the user can choose it using it. Most users just want to choose
+ the latest version (and only tune it, less often), so this renderers
+ let the user see there is no newer version, as opposite to a combo box.
+ It is also much lighter than the combo box renderer. Showing all
+ the different versions packages in the view would be clutter and not
+ as straight forward to implement. We could put them in the same node, but
+ now we have the same problem of the combo box, added with quite some
+ complexity.
+
+ * src/YGPackageSelector.cc: Not exactly what else I did; some cleanups
+ I guess. Still some rather important work to do.
+
+ * src/YGLayout.cc / src/YGUtils*: got back necessary use of GValue.
+ It seems g_object_set() != g_object_set_property().
+
+2007-03-29 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * ycc/ycc.cpp: use /usr/share/YaST2/theme/current/ for icons,
+ not /usr/share/YaST2/theme/SuSELinux/.
+
+2007-03-26 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/YGFrame.cc / src/YGUI.h: the pre-processor yast version
+ check was set as "#if YAST2_VERSION > 2014004 || YAST2_VERSION > 2013032",
+ which is obviously the same as "#if YAST2_VERSION > 2013032". And
+ this is not implemented for "YAST2_VERSION == 2014004" (the one
+ from opensuse 10.2.
+
+ * src/YGLayout.cc / src/YGUtils*: got rid of unnecessary use of GValue.
+
+2007-03-16 Michael Meeks <michael.meeks(a)novell.com>
+
+ * Version 2.15.1 - Rev 412
+
+2007-03-16 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGFrame.cc (YGCheckBoxFrame::setLabel),
+ (YGFrame::setLabel): fix daft accelerator translation
+ bug & refactor to:
+ * src/YGUtils.cc (setLabel): impl. helper
+
+ * src/YGIntField.cc (class YGSpinBox): only connect to
+ slider signal if we have a slider.
+
+2007-03-15 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * src/ygtkrichtext.c: fix bug 247682: convert the key to unicode.
+ And some cleaning.
+
+ * src/ygtkratiobox.h/c (YGtkMinSize): added set_only_expand() property
+ which makes the child greed :), always asking for more space.
+ * YGDumbTab.cc: make use of it.
+
+ * src/YGWidget.cc (safe_stretchability): made it an exception to consider
+ safe to ask for the stretchability of a ysplit without children (bug fix:
+ notebook from edit in network.ycp goes stretchable in one page and not
+ stretchable in the other).
+ This work around for the fact that stretchable() crashes when it has no
+ children should really be fixed upstream.
+
+2007-03-15 Michael Meeks <michael.meeks(a)novell.com>
+
+ * Makefile.am: remove generated file.
+
+ * src/YGUI.h, src/YGFrame.cc: createCheckBoxFrame crept
+ into the stable release post 2.13.32, adapt to that too.
+
+2007-03-14 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * configure.in.in: use the version numbering from
+ "pkg-config --modversion yast2-core" as suggested by
+ Martin Vidner. Removed my has_checkboxframe check.
+
+ * YGLayout.cc (YGAlignment): honor child stretchable when set
+ stretchable (special case that YAlignment does).
+ * YGWizard.cc: make use of previous; things like loading messages
+ on some modules were not centered -- this fixes that.
+
+ * YGLabel.cc: instead of using a GtkEntry for isOutputField, use
+ a regular label. This supports multiple lines and from the places
+ it is used it looks just as good (just made it selectable).
+
+ * YGUtils.cc: added replace() that replaces a character in a
+ string (which mapKBAccel() now uses). Fixed bug on setWidgetFont()
+ (arguments were not being honored).
+
+ * src/YGUI.cc: cleaned up the file selection code wrt path fed.
+ * tests/FileDialog.ycp: easy app to test the file/folder selectors.
+
+ * src/ygtkwizard.c: seems like I had forgotten to double some
+ padding value for size request... This tiny little thing was
+ reponsible for a weird warning and wasting my time. :/
+
+ * src/ygtkrichtext.c: fix bug 247682: convert the key to unicode.
+ And some cleaning.
+
+2007-03-13 Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt>
+
+ * YGPackageSelector.cc: made the package information to
+ use tabs.
+
+ * YGUI.cc: couldn't reproduce bug #247802, but cleaned
+ up file chooser code as it is not good. Done a few tests;
+ all fine.
+
+ * configure.in.in & config.h.in: added HAS_CHECKBOXFRAME
+ define according to if YCheckBoxFrame.h is available or
+ not. YAST2_VERSION would work nice, if yast guys would
+ have changed the version number since the opensuse 10.2
+ release. :/
+
+ * src/YGIntField.cc: set scale to not jump much for small
+ values.
+
+ * src/YGLayout.cc: fixes bug #247683 (crash on language.ycp).
+ This also happen in programs like network.ycp, wrt a
+ childless container.
+
+2007-02-07 Michael Meeks <michael.meeks(a)novell.com>
+
+ * Version 2.15.0 - Rev 388
+
+ * src/Makefile.am (EXTRA_DIST): computer.xpm
+
+ * src/YGFrame.cc (YGCheckBoxFrame::setEnabling):
+ call handleChildrenEnablement.
+
+ * Makefile.cvs: use PREFIX ?= /usr for non-pfx builds
+
+2007-02-06 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGFrame.cc (toggled_cb): impl.
+
+ * src/YGFrame.cc (YGFrame::setLabel): use mapKBAccel.
+ (class YGCheckBoxFrame): partial impl. of YGCheckBoxFrame
+
+ * src/Makefile.am: get $(prefix) into lib path.
+
+ * configure.in.in: add YAST2_VERSION conditional, so we can
+ build both old & new yasts from the same source base.
+
+ * configure.in.in, Makefile.cvs, VERSION, SUBDIRS, POTFILES,
+ MAINTAINER, RPMNAME: move to a more yast-like build system.
+
+ * configure.in: remove
+ * autogen.sh: update - make -f Makefile.cvs first.
+
+2006-02-03 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * autogen.sh: use yast2-core to get libdir (the other doesn't
+ seem set on 10.2)
+
+ * computer.xpm: added. This is the Tango "computer" stock icon. Doesn't
+ seem to get set on some other desktop enviornments than Gnome.
+
+ * ygtkwizard.c: commented wrong style code.
+
+ * integrate/yast2: use the slab thing on gnome (todo: make configurable).
+
+ * there seems to be some unstability that may be linked with the drawing
+ errors on gtk 2.10; check where this is.
+
+2006-12-08 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * Started reviewing the package selector. Some features will be
+ removed temporarly or not work. Check the TODO for planed changes.
+
+ * YGPackageSelector.cc: no more sync between view modes. They are
+ just reloaded when changed. This reduces the code size and complexity,
+ and makes adding other view modes easier (we will probably want
+ to change the patterns dialog by making it a view mode). But there
+ is a drawback: performance. It can take some seconds to change
+ views. This should be acceptable as the user rarely needs to change
+ view modes. Users with slower machines suffer more... But then,
+ they also have less memory and this reduces memory usage.
+
+ * YGPackageSelector.cc: added computer icon to code as it is not
+ available in some cases. Added a search options dialog. Added more
+ information into the packages list (not fully working).
+
+2006-12-06 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * YGLayout.cc: re-designed layout stuff; it got simplified
+ and reduced. And should be more reliable as the layout notifies
+ better modifications (this forced to create bigger "crash safe"
+ measures; some YContainerWidget crash when asked for stretchable()
+ and they don't have children).
+ The responsability for a widget to fill a hole is now of YGSplit, not
+ of the YGWidgets. The alignment is now the responsability of YGAlignment,
+ not of the YGWidgets. GtkAlignment container is now longer installed on
+ YGWidgets (only YGtkMinSize now -- so we may specify a min size and a
+ border).
+
+ * ygtkratiobox.c: fill argument splitted into two for horizontal and
+ vertical directions.
+
+ * YGUI.cc: turned dumpYastTree into a graphical window.
+ (press ctrl+atl+shift+T)
+
+ * integrate/yast2: fixed syntax error:
+ if [ $WINDOWMANAGER | grep -qi "gnome" ]
+ -> if echo $WINDOWMANAGER | grep -qi "gnome"
+
+2006-12-04 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * YGLayout.cc: a fix to a better behavior on YSplits
+ inside YSplits. Labeled widgets should now get aligned
+ for all pratical cases.
+
+ * ygtkwizard.c: YGtkHelpDialog use GtkBinding to catch
+ keys rather than the key_pressed GtkWidget signal.
+ (using this last would mean, for instance, Ctrl+Alt+F3
+ would be caught, where we just want to catch single F3
+ key instances.)
+
+ * ygtkwizard.c: removed the non-functional search icon code.
+ Better to see how someone else does this.
+
+ * ygtkwizard.c: fixed gtk warnings on destroy.
+ * ygtkwizard.c: fixed visual glitches on autoyast at start.
+
+2006-11-28 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * YGTree.cc: stuff was being printed. Got rid of that.
+
+2006-11-24 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * ygtkratiobox.c: fixed badly given space when homogeneous
+ is set.
+
+2006-11-21 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ Layout still has a couple of bugs (as can be seen in
+ test/Layout-Split-Split.ycp and test/Layout-Wizard3.ycp),
+ but better commit this or spiders may start creating webs
+ here. :P
+
+ * ygtkratiobox.c: added fully extandable flag which is the
+ equivalent to set the maximum weight (that we need in YSplit
+ because we don't know the max weights while adding children).
+ size_request and size_allocate was re-written. Support for
+ right-to-left languages and hidden widgets.
+
+ * ygtkwizard.c: re-written size_request and size_allocate to
+ comply with recent changes and simplify them.
+
+ * YGWidget.cc / YGLayout.cc: work on having a proper layout.
+
+ * YGLayout.cc and some YGLabeledWidget.cc-based widgets: a first
+ try at having the labels horizontally aligned. Currently, it just
+ checks if a YSplit child is a labeled widget, so if it is inside
+ a container, it doesn't apply the same-width code to it. So,
+ we must iterate through those.
+
+2006-11-08 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * YGTextEntry.cc: use YGtkFilterEntry, from YGtkFieldEntry,
+ rather than doing that work itself.
+
+ * ygtkwizard.c: first try at a11y-it based on GtkAssitance.
+ GOK doesn't seem to work here though (but then it doesn't
+ work on many other guis, including GnomeDruid).
+
+2006-11-07 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * YGLayout.cc & YGWidget.cc: changed layout code to use
+ our own GTK based solution for the layout rather than
+ the YWidget provided one. Still some minor problems, but
+ it is working pretty well. The code actually was reduced
+ in size because we no longer need the setSize and nicesize,
+ which were also easily broken code.
+
+ The layout uses YGtkRatioBox for the YSplit to support
+ weights. Each widget is contained in a YGtkMinSize, that
+ allows us to set a minimum size, which is itself contained
+ in a GtkAlignment, so we may specific the widget has
+ stretchable or not, among others. We could cut YGtkMinSize
+ on most widgets by having that value passed by the YGWidget
+ constructor, but too many arguments there would obviously
+ not be very nice...
+
+ So, this layout code has the advantages of: being simpler,
+ faster and not suffering from the labels getting truncated
+ problem. It also gives us let us do some hacks like, for
+ instance, having labels and entries aligned horizontally...
+
+ * YGLayout.h: removed.
+
+ * ygtkratiobox.c: honor right-to-left languages. The API
+ needs to be modified a bit in order to let it be possible
+ to set a widget to be fully stretchable, independent from
+ the weight. We need to fix this limitation for Layout-mixed.ycp
+ test.
+
+ * ygtkfilterentry.c: written a smaller (1110 to 230 lines), and
+ what I think is more intuitve, replacement.
+
+2006-11-04 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGLabel.cc: attempt at making YGColoredLabel
+ working properly on KDE (for gtk-qt theme), by
+ using expose, rather than putting the GtkLabel in
+ a GtkEventBox. Unfortunately, it doesn't like
+ filling rectangles with a frame (but I really liked
+ the frame look, so I will just hope gtk-qt has fixed
+ this). Either way, the code is nicer this way.
+
+ * ygtkmenubutton.c: use, either explicitely or
+ implicitely, an aid widget to popup regular widgets.
+
+2006-10-30 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGWizard.cc: don't return failure if
+ SetDialogIcon command fails - it breaks the installer.
+
+ * HACKING: update to use gtkize-iso, removing 8 steps.
+
+ * integrate/YaST2.call: do minimal hacks instead to
+ get gtk bits running, set LD_LIBRARY_PATH too, appears
+ to actually work [!]
+
+ * gtkize-iso: s/cromfs/cramfs/ & include critical
+ pango modules.
+
+2006-10-26 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/ygtkwizard.c (hash_table_clear_cb, hash_table_clear)
+ (ygtk_wizard_clear_tree, ygtk_wizard_clear_steps): use
+ g_hash_table_remove_all instead.
+ (enable_widget): rename macros to upper-case, add _str
+ variant that can handle NULL too (defensively)
+ (ygtk_wizard_set_help_text): set m_help instead of
+ the widget itself. (help_button_clicked_cb): set the
+ help here if we show it.
+ (ygtk_help_dialog_init): hide help widget on delete
+ rather than destroying it & causing problems later.
+
+ * src/YGPushButton.cc (YGPushButton): set can-default
+ on all push-buttons, makes ok/cancel type dialogs
+ prettier.
+
+ * src/ygtkwizard.c (ygtk_wizard_destroy, destroy_hash):
+ cope with double destroys.
+ (ygtk_help_dialog_init): use pack_end, scope var decls,
+ set CAN_DEFAULT on close button to get spacing right.
+ (ygtk_wizard_realize): use gtk_wiget_get_ancestor instead
+ of custom code, make static.
+ (button_new): split out - and set CAN_DEFAULT.
+ (destroy_string): use g_free instead.
+
+2006-10-26 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * ygtkwizard.c: re-write of it and made it based on GtkBin
+ rather than GtkEventBox. We now do all the container work
+ in a similar way to GtkAssistant, so the two style changeable
+ settings (content-padding and header-padding) should reflect
+ in this "clone" of ours as well.
+ Help information is displayed in a dialog, rather than on the
+ usual box.
+
+ * ygtksteps.c: re-write and made it based on GtkWidget rather
+ than GtkVBox, steps being "hand" drawn by ourselves now, rather
+ than being GtkLabels. This allows for a better integration with
+ YGtkWizard.
+
+ * made a couple of improvements to the other native GTK widgets
+ of ours.
+
+ NOTE: This is all unstable work and there are known crashes and
+ bugs. But I would prefer to have this on svn because it is get-
+ -ting to be a pretty big change... Should we open an unstable branch?
+ Or just advice the packager to stick with some svn version?
+ Either way, shouldn't be too hard to squish the bugs.
+
+2006-10-09 Michael Meeks <michael.meeks(a)novell.com>
+
+ * integrate/*: add Ricardo's touched files
+
+ * gtkize-iso: 1st pass at a tool to 'gtk'ize an
+ existing install ISO.
+
+ * src/ygtkrichtext.c (ygtk_richtext_init): add 'tt' -> monospace.
+
+2006-10-09 Thomas Meeks <thomas(a)imaginator.com>
+
+ * src/YGWidget.cc (doSetSize): don't set request < -1 ever,
+ prunes warning.
+
+ * src/ygtkwizard.c (ygtk_wizard_init): add spacer & re-arrange
+ padding to improve bottom button box spacing.
+
+2006-09-27 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGDialog.cc: cleanups; decided not to make use of signals for
+ YGWindow.
+ * src/YGDialog.cc & YGUI.cc: added support for --geometry, --fullscreen,
+ --noborder and --nowm.
+
+2006-09-23 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGUI.h and others: disabled the debugging printing by default.
+ Uncomment #define IMPL_DEBUG on YGUI.h to enable it.
+
+ * src/YGDialog.cc: handle more than one main window properly. The bug
+ that was avoiding this commit was that a label with our own pango font
+ description set wasn't returning a proper size request (and this may
+ happen in other cases). Setting the father container in a GtkWindow,
+ rather than doing that only on showWindow() seemed to solve the issue.
+ I wonder if there is a more elegant way to fix this and why it needs a
+ GtkWindow as the base of the hierarchy to work...
+
+ TO do: abstract YGWindow further. We will have to make it a GObject to
+ use its signal system. And support --geometry & friends.
+
+ TO fix: I would like to catch the escape key to send a Cancel event to
+ YWidgets for popup dialogs. Somehow that doesn't seem to work -- check
+ key_pressed_cb().
+
+2006-09-19 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGDumbTab.cc: bug fix: show default tab at start, and got rid of
+ warnings.
+
+ * src/YGPackageSelector.cc: show disk usage warning when it starts getting
+ full.
+
+2006-09-15 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/ygtkrichtext.c: some love to it: only set paragraph spacing for p, h1 and
+ alike, fixed html not rendering on tools like the printer, added center and
+ img tag.
+
+2006-09-12 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGComboBox.cc, YGTable.cc: it seems that YSelectionWidget.h supports
+ icons... Qt only honors them for SelectionBox, but I added support for the
+ rest of the YSelectionWidget children classes as well (that is, ComboBox and
+ MultiSelectionBox). Checkout the tests.
+
+ * src/YGTable.cc: bug fix: mismatch of YCP row numbering and GtkListStore that
+ was causing some glitches. Now, we use a double hash to translate between them.
+
+ * src/YGUI.cc: busy cursor should now be set properly when a YCP program is
+ doing work for some time, like Qt. UI::BusyCursor() and UI::NormalCursor()
+ seem to be now obsolet methods with this approach.
+ Added YGUI::beep(), currently disabled, to go with the core patch.
+
+ * ycc.sh: re-worked a bit: pass z for examples and x for our tests. qt to also
+ run the Qt frontend.
+
+2006-09-11 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGPackageSelector.cc: patterns chosen should now get reflected
+ on the packages list. Some minor upgrades to the interface as well.
+
+ * src/YGPackageSelector.cc: added installation/removal of languages
+ to the patterns dialog.
+
+ * src/YGPackageSelector.cc: improved accuracy of the dependencies list
+ on confirmation dialog a lot.
+
+2006-09-10 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGPackageSelector.cc: added support for upgrades (fine grading
+ on right click).
+
+2006-08-23 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGPackageSelector.cc: don't show available packages that are
+ already installed, unless the version is different where it should
+ display its version. Updating a package with a newer version is not
+ yet supported which is kinda of nasty.
+ (not really hard to add, but will have to wait.)
+
+ * YGPackageSelector.cc: patch selector: don't show installed packages
+ and do the job properly.
+
+2006-08-23 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/ygtkfieldentry.c: remove bogus utils.h include.
+
+ * Makefile.am (EXTRA_DIST): bin yast2.txt
+
+2006-08-23 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/ygtkrichtext.c (ygtk_richtext_init): move link_color
+ upwards, so the constructor can set it up.
+
+2006-08-22 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGDialog.cc: quick fix for the unsupported "one main dialog
+ to rule them all" functionality that yast requires.
+
+ * src/YGPackageSelector.cc , src/YGTable.cc & src/YGTree.cc: added
+ g_object_unref() for all models. I thought GtkTreeView would assume
+ ownership, but it just refs them. So, even if after
+ gtk_tree_view_set_model() we need to unref them.
+
+ * src/YGPackageSelector.cc: show software dependencies and requirments
+ on summary window.
+ * src/YGPackageSelector.cc: search implemented.
+
+ * src/YGImage.cc: bugfix: image was getting cut due to not
+ honoring borders on drawing.
+
+ * src/YGPackageSelector.cc: fixed problem solver.
+
+ * src/YGTable.cc, src/YGPackageSelector.cc and YGUtils.cc: set columns
+ sortable on the patch selector, and set it sorted on severity by default.
+ (GTK is nothing trivial on this respect, but it gives us a lot of power,
+ so we can sort by severity not by string. I mean, the severity string
+ doesn't necessarly mean the least severe to the most severe...)
+
+2006-08-21 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YWidget.cc: fixed menomnic on scrolled widget and hide label
+ when passing empty string, as agreed with Stefan.
+
+ * src/ygtkwidget.c & src/YGTree.cc: fixed that oldie bug of autoyast
+ flickering. It turns out my sucpitions about overlapping widgets
+ were (hopefully!) wrong. It was easier to debug now that we have a
+ YGWizard. The reason of the bug was that we were sending an event when
+ the user selected a tree branch and when the YCP asked a branch to
+ be selected. The last cause shouldn't happen and causes a cycle (in
+ certain YCP applications), which hogs up the CPU at full usage, thus
+ the flicker. Amusing enough I repeated the bug on the YGWidget's tree
+ implementation. :P I noticed that YGTable also had the same issue :/ (fixed).
+ Lesson learned. :)
+ * src/YGTable.cc: fixed mentioned bug and a crash on the sorting mechanism
+ when clearing rows (like in Table3.ycp example).
+
+ * src/YGPackageSelector.cc: functional version (just misses
+ search and some other glitches yet to fix for basic functionality
+ be done -- I have also not tested it much, so...).It features a patch,
+ pattern and package selectors. These last both are somewhat integrated.
+ It shows a summary dialog (it doesn't yet list dependencies --
+ actually, I am don't think those are dealt with, maybe with conflicts
+ dialog) and a conflicts dialog. License signing dialog (that some
+ packages force) should be working except that there is some mismatch
+ between the headers and libraries Zypp versions here on that point
+ (the function is there and it compiles fine without warnings, but the
+ linker complains), so it is disabled.
+
+ * src/ygtkwizard.c/h: added this base widget for YGWizard and
+ YGPackageSelector.
+
+ * HACKING: some Zypp info.
+
+2006-08-08 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGWidget.cc: some border fixings.
+
+ * src/ygtkrichtext.c: tag sizes in proportion to normal font.
+ * src/YGWizard.cc: set icon.
+ * src/YGDialog.cc: and use it on children dialogs.
+
+ * src/YGPackageSelector.cc: initial code (I am just trying to
+ see if I can even print a list of packages with Zypp! :/)
+
+2006-08-03 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGLayout.h: don't overload macro operators. This
+ should fix macro playing.
+
+2006-08-01 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGUI.cc: implemented:
+ + screenshot - Ctrl+Alt+Shift+S
+
+ + macros - use Ctrl+Alt+Shift+M (to start & stop)
+ then Ctrl+Alt+Shift+P (play)
+ (not yet working -- looks like we have to do some trick with
+ the events handling to let them pass? Michael, maybe you could
+ check playMacro() on YGUI.cc and respective Qt.)
+
+ + busy/normal cursor.
+ + some fixes on the file dialogs.
+
+ * src/ygtkrichtext.c: added <big>, <small>, <br> and
+ set used cursor_new_for_display().
+
+2006-07-31 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGWidget.cc: improved layout spacing a bit.
+ (to be worked out: some small wizard layout issues.)
+
+ * src/YGLabel.cc: work out output label field to look
+ non-editable.
+
+ * src/YGPushButton.cc: use stock icons.
+
+2006-07-30 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGTable.cc: added sortable table support.
+
+ * src/ygtkratiobox.c: fixed container border.
+
+ * src/YGWidget.h/cc: added support for borders
+ and min sizes.
+
+2006-07-29 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGUtils.cc: simple fix for a crash on tags that
+ are not closed (ie. on EOF).
+
+2006-07-28 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGUI.cc (idleLoop, YGUI, checkInit): do gtk_init
+ idly, inside the thread in which we run the gtk+
+ mainloop to avoid CORBA confusion with a11y.
+
+2006-07-28 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGDumbTab.cc: setSize() and niceSize() should give
+ good values (though things are not yet shining)
+
+ * src/YGDialog.cc: warn/info-dialog option now shows an icon
+ at the left rather than a background color.
+
+ * src/YGWidget.cc: set-ed a frameborder on GtkScrolledWindow,
+ which I just noticed that is supported. I was actually putting the
+ GtkScrolledWindow inside a GtkFrame on YGWizard... :P (fixed)
+
+2006-07-28 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGUI.cc (defaultSize): fix default sizing logic.
+
+ * src/YGWizard.cc (YGWizard): use gtk_box_pack_start
+ and fix a number of layout issues.
+
+ * src/*.c: remove all g_list_first macros: implicit.
+
+ * src/ygtkratiobox.c (ygtk_ratio_box_init): clean.
+
+ * src/Makefile.am (AM_CXXFLAGS): set THEMEDIR.
+ * src/YGWizard.cc (class YGWizard): use THEMEDIR
+
+ * src/ygtkbargraph.c (ygtk_bar_graph_setup_entry): add
+ Tango palette from Jimmac for graphs, order it to get a
+ pleasant set of colors first.
+ (ygtk_bar_graph_new): use a void prototype
+
+ * src/YGDialog.cc ::YGDialog: remove bogus
+ g_object_set causing warning.
+ (configure_event_cb): don't setSize if we just moved.
+
+ * TODO: prune tons of cruft.
+
+ * src/YGUtils.cc (ygutils_convert_to_xhmlt_and_subst):
+ fix br handling to to clobber 'b' tags.
+
+ * src/YGUtils.cc (emit_unclosed_tags_for, tag_entry_new)
+ (tag_entry_free, check_early_close)
+ (ygutils_convert_to_xhmlt_and_subst): complicate royally,
+ now handles all the new tests in
+
+ * src/test.cc (testXHtmlConvert): here: cope with unclosed
+ <p> and <li>, and generic, un-closed tags.
+
+2006-07-28 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/YGFrame.cc: follow Gnome HIG (no border, bold label
+ and some children identation).
+
+ * src/YGWizard.cc: check for pane movements correctly.
+
+2006-07-27 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/ygtkmenubutton.c/h: added this button widget that
+ displays a popup when pressed. The popup doesn't have to
+ be necessarly of type GtkMenu that it does the work to
+ make the thing pop-able.
+ * src/YGMenuButton.cc / YGDate: use above.
+ * src/ygtkfieldentry.c/h: added this entry that supports
+ more than one field (from Baruch Even).
+ * src/ygtkspinbox.c/h: replaced by above.
+
+ * src/YGWizard.cc: added pane (there doesn't seem to be a
+ way other than connecting its children to size-allocate to
+ get pane movements... So this currently does unnecessary work
+ on window resizing which is undesirable cause its slow).
+ * src/YGWizard.cc: set help box by number of chars in a line,
+ not pixels, as suggested by Michael.
+
+2006-07-27 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGUtils.cc (ygutils_convert_to_xhmlt_and_subst):
+ re-work to cope with hr & br tags, add <body> tag if
+ no outer tag.
+
+ * src/test.cc (testXHtmlConvert): add torture
+ tests.
+
+ * src/YGUtils.cc (mapKBAccel): add _ escaping.
+ (ygutils_convert_to_xhmlt_and_subst): split to here.
+
+ * src/ygtkrichtext.c (ygtk_richtext_set_text): upd.
+
+ * src/YGUtils.h (YGUtils): add missing dependant
+ headers & guards.
+
+ * src/test.cc: simple automated test set for
+ 'make check', (testMapKBAccel): impl.
+
+ * AUTHORS: set the record straight.
+
+2006-07-26 Ricardo Cruz <rpcmruz(a)clix.pt>
+
+ * src/ygtkspinbox.h/c: An extension over GtkSpinButton that
+ adds support for more than one field.
+ * src/YGTime.cc: implemented YGTime and YGDate.
+
+2006-07-23 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGRadioButton.cc: regression to Michael's code
+ (with a couple of fixes) due to instability.
+
+2006-07-18 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGWizard.cc: changed look and added sanity checks
+ to commands.
+ * src/YGAlignment.cc: background image supported.
+ * src/YGImage.cc: done.
+ * src/ygtksteps.c: added alias steps support and made it
+ non-expansible.
+ * src/ygtkbargraph.cc: changed mask to fixed colors and chosen
+ some.
+ * src/YGPartitionSplitter.cc: should be fully operational.
+ * src/YGComboBox.cc: implemented maxchars and validchars.
+ * src/YGMenuButton.cc: bug fix: popup menu right on button press.
+ * src/ygtk_ratio_box.h/c: YGtkRatioBox is now abstract, being instanced
+ by *HBox and *VBox. (still using a common size_request/allocate.)
+ * src/YGMultiProgressMeter.cc: bug fix: vertical orientation fixed.
+ * src/YGRadioButton.cc: bug fix: radio buttons behaving too much like
+ a toggle button.
+
+2006-07-09 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGWizard.cc: first try.
+
+2006-07-07 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGWidget.cc: getFixed() can now be overloaded
+ and thise
+ * src/YGDumbTab.cc: first try.
+
+2006-07-06 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/ygtkbargraph.c: moved BarGraph to a Gtk class.
+ * src/ygtkslider.c: a more complex gtkscale.
+ * src/YGBarGraph.cc: added YGPartitionSplitter.
+
+2006-07-05 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/ratiobox.cc renamed to src/ygtkratiobox.cc
+ * src/YGMultiProgressMeter.cc: new widget.
+ * src/YGProgressBar.cc: added YGDownloadProgress.
+ * src/YGBarGraph.cc: first try at writting a Gtk
+ class out of it for usage in PartitionSplitter.
+ It's broken though. Maybe Michael has a clue on
+ the error...
+
+2006-07-04 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/ratiobox.cc: changed size request so that the
+ container always has space for the smallest widget.
+ Fixed some left space caused by precision losses.
+ * YGBarGraph.cc: fixed label text.
+
+2006-07-03 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGBarGraph.cc src/ratiobox.cc: added ratio
+ container and made bar graph making use of it.
+ Still some issues to care.
+
+2006-06-29 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGLabel.cc (class YGGenericLabel): use
+ m_inner_widget not m_widget to avoid confusion.
+
+ * src/YGDialog.cc (YGDialog): if opt.hasDefaultSize
+ set modal & type hint to dialog; set 'allow_shrink'
+ to allow windows to be shrunk.
+ (configure_event_cb): listen for configure event,
+ use it instead of (size_allocate) nastiness.
+ (setSize): get/set defaultSize not size request.
+
+ * src/YGUI.cc (defaultSize): 1st cut.
+ (YGUI): parse arguments etc.
+
+ * src/Y2CCGtk.cc: re-indent.
+
+ * src/YGFrame.cc (setSize, nicesize, childAdded):
+ bin bogus size calculation for children.
+
+2006-06-24 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * BUGS: added this file that could be used as a notebook
+ for issues, so we don't loose track of them. Nothing
+ comprehensive or anything...
+
+2006-06-21 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGMenuButton.cc: added support for YMenuButton.
+
+2006-06-19 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGWidget.cc (construct): ref/sink the widget
+ (~YGWidget): destroy / unref widget when freed.
+
+ * src/YGUI.cc/.h: move boolean flag impls to here
+ from the header, beautify header, move cursor
+ bits to .cc.
+
+2006-06-17 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGIntField.cc: added YSlider support.
+
+ * src/YGLabel.cc: added YColoredLabel support.
+
+2006-06-16 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGDialog.h: added info/warn color.
+
+ * src/YGRichText.cc: cleanups as asked by Michael.
+
+ * src/YGMultiLineEdit.cc: added YLogView support.
+
+2006-06-16 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGDialog.h: don't close the window when the user
+ presses the window manager close button. Instead report
+ it to Yast.
+
+ * src/YGRichText.cc: sub-bullets and numbering should
+ be working, as well as sub-"blockquotes".
+ And added the link color code suggested by Michael.
+
+2006-06-16 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGRichText.cc (rt_end_element): remove debug.
+ (setText): fix auto scroll down - we need to use
+ gtk_text_view_scroll_to_mark - which queues the scroll
+ until mapped/sized etc.
+
+2006-06-15 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGWidget.h: added the emitEvent() method.
+ Also did some others of Michael's suggestions.
+
+ * src/YGRichText.cc: added basic bullets.
+
+2006-06-14 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGRichText.cc: added support for hyperlinks.
+ I have changed some code ordering (can put it back
+ if you don't like...), but the rendering should be
+ unchaged. Hyperlink code was adapted from the gtk-demos.
+
+ * src/YGMultiLineEdit.cc: changed a couple of things
+ that could have been done easier.
+
+ * src/YGImage: initial image support (misses
+ tiled and scale-to-fit)
+
+2006-06-13 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGTree.cc: changed the attribution of an
+ absolute path of GtkTreePath to each YTreeItem,
+ that would have to be freed, by the attribute of
+ just an index. The path can easily be calculated.
+ This should also make it easier if we want that
+ setCurrentItem() searches and builds the path
+ itself.
+
+ * src/YGTable.cc: fixed a memory leak.
+
+2006-06-09 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGTableView.cc (YGMultiSelectionBox):
+ should now be working properly.
+ The allignment from the YGTable should be fixed
+ as well.
+
+ + addRow() returns the position of the added row
+ because sometimes it might not be possible
+ to insert it at the intended position.
+ This makes MultiSelectionBox example from the
+ Yast manual working.
+
+ + added a getYWidget() to YGWidget so that we
+ can make some magic on toggled_cb to avoid
+ the previous approach of having a structure
+ of pointers (we need to pass YGTableView and
+ YMultiSelectionBox...).
+
+2006-06-08 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGUtils: function that converts integers
+ to strings gets to see the light at the end of
+ the tunnel as it is not used.
+
+2006-06-08 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ Made some changes suggested by Michael, mainly the
+ move of YGLabeledWidget and YGScrolledWidget to the
+ same file of YGWidget.
+
+ * src/YGTree: added set/getCurrentItem() using
+ Michael's suggestions. It saves the YTree items
+ on a non-visible column for getCurrentItem().
+ And it uses data()/setData() from YTreeItems to
+ save the GtkTreePath there and retrive it on
+ getCurrentItem(). Pretty elegant -- and all examples
+ run nicely.
+
+2006-06-08 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGMultiLineEdit.cc (setInputMaxLength): remove
+ bogus pThis usage.
+
+2006-06-07 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGTable.cc (itemAdded): fix crash.
+
+2006-06-06 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGMultiLineEdit.cc: implemented the YMultiLineEdit.
+ * src/YGScrolledWidget.h/cc: added this new convinience parent
+ widget. It is being used by YGMultiLineEdit, YGRichText,
+ YGTree and YGTableView derivates.
+
+2006-06-06 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGTable.cc: worked over the YGTableView API and
+ made YGSelectBox and YGMultiSelectBox using it.
+ (Note: YGTable is segfaulting and toggle buttons on
+ Multi* don't seem to like "activatable" attribute.)
+
+ * src/YGTree.cc: tree now goes inside a GtkScrolledWindow
+ which gives it the needed scroll bars.
+
+ * src/YGUI.h: added dialogs to open directories and files.
+
+2006-06-06 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGTable.cc (class YGTable): inherit 1st from
+ YTable, and 2nd from YGTableView, so constructors
+ get invoked in the right order, and so the
+ setWidgetRep works as expected.
+
+2006-06-05 Michael Meeks <michael.meeks(a)novell.com>
+
+ * README: simplify list of what works with
+ wildcards: helps highlight slightly incomplete bits.
+
+ * src/YGRadioButton.cc: Improve signal connection /
+ blockage, fix whitespace.
+ (class YGCheckBox): impl.
+
+2006-06-04 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGLabel.cc: worked out; all examples now work.
+ * src/YGLabeledWidget.cc: added support for buddies.
+ (Notes: YGUtils::setLabel() was removed as it is
+ not needed.)
+
+ * src/YGTree.cc: First implementation
+ (misses get/setCurrentItem())
+
+2006-06-03 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGTable.cc: added table support; all
+ examples work. But two things still need attention:
+ + I'm not sure what the first letter on the headers
+ is supposed to do.
+ + Signal for when the user selects an item isn't
+ being sent.
+ (unfortunately, inetd or users yast modules aren't
+ working near well. But it seems like layout issues.)
+
+2006-06-02 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGReplacePoint.cc, src/YGAlignment.cc,
+ * src/YGLayout.cc: merge into YGLayout. Implement
+ YSquash as well.
+
+ * src/YGSplit.cc, src/YGEmpty.cc, src/YGSpacing.cc,
+ * src/YGLayout.cc: merge into YGLayout.
+
+ * src/Makefile.am: update.
+
+2006-06-01 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGLabelWidget.cc is now src/YGLabeledWidget.cc
+
+2006-06-02 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGLabel.cc (setLabel): add missing chain to parent,
+ clean some cruft.
+
+ * ycc.sh: re-work to use the gtk+ option: zenity :-)
+
+2006-06-01 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGComboBox.cc: constructor now is an independent
+ woman. This was possible because of gtk_combo_box_set_model().
+ setValue() should work, but it's a hack.
+
+2006-06-01 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGTextEntry.cc (YGTextEntry): use SET_LABEL_CHAIN
+
+ * src/YGComboBox.cc (getComboBox): impl. & use, fix
+ whitespace issues, use SET_LABEL_CHAIN
+
+ * src/YGLabelWidget.cc (YGLabelWidget): inline (construct),
+ set use_underline on the label, fix some whitespace bits.
+ Add YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN.
+ (doSetLabel): rename from setLabel.
+
+2006-06-01 Ricardo Cruz <rpmcruz(a)clix.pt>
+
+ * src/YGLabelWidget.cc/hh: added this convinience
+ class that displays a label next to the intended
+ widget.
+
+ * src/YGComboBox.cc: workable combo box.
+ To do: implement setValue() -- seems far from trivial.
+ And add validChars filter -- easy after setValue() done.
+ * src/YGTextEntry.cc: fully implemented text entry.
+ (Note: I haven't implemented *MultipleChanges() as
+ I think the overhead of it on a single entry text
+ widget should not worth it. Qt does the same.)
+
+ * src/YGUtils.cc/hh: added these couple files
+ that should have functions shared between classes
+ or that just make sense to be in such a file.
+ Currently has setLabel() and is_str_valid().
+ (Note: setLabel() doesn't yet support buddies.)
+
+ * src/YGWidget.h: added keyboard focus macro.
+
+2006-05-30 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGUI.cc: remove createComboBox
+
+ * src/YGComboBox.cc: move it here, implement a noddy
+ skeleton.
+
+2006-05-29 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGRadioButton.cc (setValue): block signals to
+ avoid supurious events: fixes RadioButton1
+
+ * src/YGRadioButton.cc (getCheckRadioButtonType):
+ remove bus-load of debug, angst & crud. Kill elusive
+ crasher (gdb was lying), sub-class GtkRadioButton to
+ make behavior more Qt-like.
+
+2006-05-27 Michael Meeks <michael@>
+
+ * src/YGSelectionBox.cc: add - stub for timezone
+ selector. YGSquash.cc needed next: should be simple -
+ go Ricardo go ! ;-)
+
+ * src/Makefile.am (libpy2gtk_la_SOURCES): add
+ YGSelectionBox.cc
+
+ * src/YGWidget.cc: tag YGWIDGET_DUFF_LAYOUT & remove
+ the crufty guff trying to fixup some issues.
+ (clobbered_size_allocate, dynamic_subtype, moveWidget):
+ remove.
+
+ * test.sh: helpful script for testing.
+
+ * src/YGDialog.cc (YGDialog): remove set_default_size
+ causing grief.
+
+ * src/YGSplit.cc (class YGSplit): use new
+ SET_SIZE_CHAIN - all 'Fixed' containers should do
+ this.
+
+ * src/YGDialog.cc (setSize): remove horrible hack
+ to trap set_size_request -> size_allocate -> ~ loop,
+ much cleaner now.
+
+2006-05-27 Michael Meeks <michael.meeks(a)novell.com>
+
+ * configure.in: use PKG_CHECK_MODULES, fixes odd
+ 64bit problem.
+
+ * autogen.sh: pass --libdir inferred from
+ yast2-devtools libdir: fixes 64bit foo; don't set
+ the wrong PKG_CONFIG_PATH unless we have nothing to
+ go on.
+
+2006-05-25 Michael Meeks <michael.meeks(a)novell.com>
+
+ * README, yast2.txt: update & clarify.
+
+ * src/YGWidget.cc (getNiceSize): remove ugly
+ hack, and emit 'size_request' signal ourselves
+ to avoid need for hack.
+
+2006-05-25 Michael Meeks <michael.meeks(a)novell.com>
+
+ * commit to Novell forge CVS: thanks kobliha
+
+ * src/YGWidget.cc (getNiceSize): remove ugly
+ hack, and emit 'size_request' signal ourselves
+ to avoid need for hack.
+
+2006-05-17 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGFrame.cc: fix setSize
+
+ * src/YGWidget.cc: revert to old-style layout
+ again, forgotten the (good?) reasons for the pain.
+
+ * src/YGWidget.cc (YGWidget): if (!show) - toplevel
+ window: don't much about with 'size_allocate'
+ sub-classing: fixes window sizing issues.
+
+2006-05-06 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGWidget.cc (doMoveChild): impl. as a method.
+ (do_size_allocate): factor out of (doSetSize).
+ (doMoveChild): act on the child's allocation not ours.
+ Works rather nicely (now).
+
+2006-05-06 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGWidget.cc (clobbered_size_allocate): impl.
+ (doSetSize): impl. add CLOBBER_SIZE_ALLOCATE control,
+ default to off. Just need some more work on custom
+ GtkAllocation manipulation by containers.
+
+2006-05-06 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGWidget.cc (YGWidget): add 'hack here'
+ goodness.
+ (dynamic_subtype): create dynamic sub-type & clobber
+ size_allocate.
+ (clobbered_size_allocate): this needs to be able
+ to filter out individual widgets [ via g_object_data ? ]
+ to allow individual size allocations to be performed
+ without the rest of the children getting them too.
+
+ * src/YGWidget.[ch]: re-factor constructor to take
+ 'type' & construction time args; this will allow a
+ dynamic sub-classing to happen there to allow
+ clobbering of size_request/allocate [etc.]
+ * src/*: update to fit.
+ * src/YGImage.c: clobber for now.
+
+2006-04-13 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGFrame.cc, src/YGImage.cc: add
+ * src/YGRadioButton.cc: add - something badly
+ wrong with destruction logic though.
+
+2006-04-05 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGDialog.cc: fold YGDialog.h in.
+
+ * src/YGUI.cc: impl. get screen dimensions /
+ default size etc.
+
+2006-04-05 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGUI.cc (idleLoop): set NULL encoding.
+
+ * src/YGRichText.cc (YGRichText): impl.
+
+2006-04-04 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGPushButton.cc, src/YGUI.cc: move.
+
+2006-04-01 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGRichText.cc: stubbed.
+
+2006-03-30 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGUI.cc (YGUI): call 'topmostConstructorHasFinished'
+ (idleLoop, ycp_wakeup_fn): deal with fd_ycp properly.
+
+2006-03-30 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGLabel.h, src/YGSplit.h: remove.
+
+ * src/YGTextEntry.cc: partial impl.
+
+ * src/YGSpacing.cc, src/YGReplacePoint.cc,
+ * src/YGProgressBar.cc, src/YGEmpty.cc: impl.
+
+ * src/YGWidget.cc (show): impl.
+
+2006-03-29 Michael Meeks <michael.meeks(a)novell.com>
+
+ * configure.in: catch non /usr prefixes.
+
+ * src/YGWidget.cc (getFixed): walk up widget hierarchy
+ first looking for 'Fixed's.
+
+ * src/YGSplit.cc (YGSplit): also a GtkFixed - we need
+ a nested hierarchy of Fixed it seems.
+
+2006-03-28 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGUI.h (ui): fix silly infinite recursion,
+ click the button to exit now works.
+
+ * src/YGDialog.cc (nicesize): fix sizing.
+
+2006-03-27 Michael Meeks <michael.meeks(a)novell.com>
+
+ * src/YGSplit.h: remove bogus niceSize impl causing
+ difficulties.
+
+ * src/YGUI.cc (dumpWidgetTree, dumpYastTree): expose.
+
+ * src/YGDialog.cc (nicesize): remove hack /crop to
+ max 50 pixels large.
+
+ * src/YGWidget.h (getWidgetName): return better names.
+
+ * src/YGDialog.cc (setSize, ygdialog_size_allocate):
+ make dynamic sizing work better (can grow at least)
+
+ * yast2.txt: helpful devel. pointers.
+
+ * configure.in, src/*: add some code.
+
+ * Import personal play-ground of no real value.
+
+ * Please feal extremely free to commit
+ tasteful bug fixes
+
Added: trunk/gtk/unstable-libyui/HACKING
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/HACKING?rev=…
==============================================================================
--- trunk/gtk/unstable-libyui/HACKING (added)
+++ trunk/gtk/unstable-libyui/HACKING Wed Dec 5 14:14:01 2007
@@ -0,0 +1,250 @@
+/* Documentation on YaST-GTK */
+
+YaST basis
+
+ Yast-core is a simple byte-code interpreted programming
+ language. On execution, two threads will be fired: one
+ for the interpreter that runs the YCP application, the other
+ for the interface. This is so because a user may want
+ to setup another machine while sitting confortably
+ with its GTK+ interface.
+
+ Yast-core offers an interface API, called YWidgets, that
+ is then wrapped, by dynamic loading at run-time, by
+ one of the available interface modules that the user
+ specified. This code is one of these modules.
+
+ Yast is usually distributed with the /sbin/yast script
+ that automatically looks for the best interface for
+ the environment.
+ Yast-core is located at /usr/lib/YaST2/bin/y2base ,
+ on the Suse distribution.
+
+ You don't need to know to program YCP, but you should
+ have a look at its API because it will give you some
+ insight into the platform. Yast documentation:
+ http://forgeftp.novell.com//yast/doc/SL10.1/tdg/
+
+Code structure
+
+ Hierarchy of some of the widgets:
+
+ YGWidget YWidget
+ | |
+ | /|
+ | / |
+ |\ YContainerWidget |
+ |\\ / |
+ |\\YGSplit |
+ |\\YGEmpty |
+ |\\YGSpacing |
+ | \YSSquash |
+ | YGAlignment /-------|
+ | / |
+ |\ YLabel |
+ | \ / |
+ | \---YGLabel |
+ | |
+ | |
+ |\ /|
+ | \ YTextEntry |
+ | YGLabeledWidget / |
+ | | \ / |
+ | | YGTextEntry |
+ | | |
+ | \ |
+ | YGScrolledWidget /---|
+ | \ / |
+ | \ YRichText |
+ | \ / |
+ | YGRichText |
+ | |
+ |..........................|
+
+
+ As you may see, everything inherits from both YGWidget
+ and YWidget. YWidget derivated classes provide virtual functions
+ that we must fill. A pointer to the interface class wrapper may
+ always be obtain with widgetRep().
+
+ On the other hand, YGWidget provides a common set of functionaly
+ with great value for code re-use and also makes the code more
+ robust and flexible since it provides an infrastructure to the
+ whole code.
+ YGWidgets always creates an associated GtkWidget object, as asked
+ by the class that inherits it, and that can be obtained via
+ getWidget().
+
+ Every YGWidget has an associated parent, with the single exception
+ of YGDialog, that provides their children with a GtkFixed container
+ that they sit upon. getFixed() is the recursive function that asks
+ the parent for its associated GtkFixed. Container widgets replace
+ getFixed() by one that returns a GtkFixed that they created, thus
+ closing the cycle.
+
+ YGLabeledWidget and YGSrolledWidget are simple children of
+ YGWidget that create the asked widget with a label or inside
+ a GtkScrolledWindow for code re-use value.
+
+ The force behind the all thing is in YGUI. Its header has the declaration
+ for the creation of all the widgets, while its implementation is done
+ on the widgets files, and also specifies whatever one widget is
+ supported or not. YGUI.cc has, for the most part, the code that switches
+ between our code and the main YWidget, since we all use the same thread.
+
+On specific widgets
+
+ Layout widgets
+
+ Old approach
+ What yast-ncurses and -qt do, and we used to follow, is to let
+ YWidget layout framework do that work for us.
+
+ Every container widget we implemented had an associated GtkFixed
+ that it returned with a getFixed(). Other widgets getFixed()
+ would request the parent's getFixed().
+
+ However this approach was actually quite complicated, because we
+ had to implement nicesize() and setSize() on container widgets in
+ a way that the containee would be placed there correctly. So, for
+ instance, for YGDumbTab, we had to request informations like the
+ tabs labels height, the frame around the page, etc. Furthermore,
+ the ultimate decision to drop the approach was when we redesigned
+ YGtkWizard. This time the steps widget was dynamic and the work
+ to check of any size change and report to YWidget just felt too
+ hackish. Attempts at abstracting this were successful, but not
+ very satisfactory from a code's point of view.
+
+ Current approach
+ Currently, we just implement the layout widgets ourselves. The
+ most important is YGSplit, which would be the equivalent of
+ GtkBox (though we use our YGtkRatioBox to support the weight
+ childs attribute).
+
+ The YGLayout code is just a little bigger than the previous, it's
+ easy to understand, and overall it made the code base smaller.
+ Furthermore, YWidgets had bugs like labels getting truncated
+ (which had to be avoided by an explicit request for recalculating
+ the whole layout geometry) that we don't suffer. The layout is
+ also a lot faster.
+
+ To set minimum size to widgets, to make them look prettier, we
+ install all widgets in our YGtkMinSize container. To be able
+ to honor the stretchable attribute, we also install this
+ into a GtkAlignment. So, YGWidget's getWidget() returns the
+ inner widget that is the one that our YWidget implementation ask
+ it to create, while getLayout() should be used for layouts to get
+ the outter widget, which would be the GtkAlignment. Furthermore
+ the GtkAlignment allows us to align the widget on YGAlignment
+ (which is just a proxy).
+
+ Most of the widgets are a no brainer. Any other widget should have
+ some comments as appropriate.
+
+Code practices
+
+ As you may have noticed from YGWidget.h, we use macros a lot to
+ enable common functionality, instead of virtual functions. This is
+ because simply in a few cases virtual functions would not apply --
+ ie. the need to call a parent class function. You would have to
+ override the virtual function everytime. With a macro, we may do:
+ #define YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN (ParentClass) \
+ virtual setLabel (const YCPString &label) { \
+ doSetLabel (label); \
+ ParentClass::setLabel (label); \
+ }
+
+ The code style is heavily inspired on the Linux guideline:
+ http://pantransit.reptiles.org/prog/CodingStyle.html
+ There may be some differences as it obviously doesn't mention
+ C++ classes.
+ For identations, tabs are used. For layout, spaces are used.
+ Example:
+ <tab>int variable_with_very_long_name = function (arg1,
+ <tab>.............................................arg2);
+ This ensures the code lays well in whatever editor the reader uses.
+ Lines must just be ensured to be breaked before the 80th column on
+ 4 stop tabs.
+
+ Speaking of classes, we don't use headers, unless we have to, as
+ opposite to the other interfaces code. There is no reason to
+ make them publicaly available and it just adds even more
+ files to the pool.
+ Also, we generally don't split classes into declaration and
+ implementation code, for the same reasons.
+
+ Variables and functions names follow Yast style (variableNameOne),
+ for the most part. Our Gtk widgets (on ygtk* files) are written
+ in C and follow this_name_style to fit better with GTK+ one.
+ We always prefix m_ to class memeber variables.
+
+ For GTK+ widgets, we follow some scheme. Most standing, we avoid declaring
+ functions, and do the class initilization, where the overloading is set,
+ at the bottom. When doing a widget, just copy and paste from another.
+
+Morphing Suse to use Yast-GTK
+
+ We haven't yet managed to create a Suse GTK-based installer, but
+ these steps should be close to that end.
+
+ 1. Pick the 1st CD of some Suse edition version ISO
+ (let's say it is named SUSE.iso)
+
+ 2. Ensure you have a live / working gtk+/Gnome install
+
+ 3. Get cramfs (not included on suse cds, just google it and it will be 1st
+ result), and compile it.
+
+ 4. Tweak the variables in gtkize-iso to suit
+ + you need a chunk of tmp space to unpack & re-build the iso
+
+ 5. Run ./gtkize-iso SUSE.iso /tmp/new.iso
+
+ 6. Ready to burn and try.
+
+LibZypp API overview
+
+ The Zypp library is a wrapper around at least two package repository
+ systems (zmd and rug). It is quite a monster with no clear API or
+ documentation, thus this section.
+
+ The first thing we need to do when using Zypp is to initializate it.
+ This is done for us by yast-core, so we don't have to care about that.
+
+ To get a list of packages, you iterate the Zypp pool, that you can get
+ with zypp::getZYpp()->poolProxy(). So, if you want to iterate through
+ the package pool, you would do:
+ for (zypp::ResPoolProxy::const_iterator it =
+ zypp::getZYpp()->poolProxy().byKindBegin <zypp::Package>();
+ it != zypp::getZYpp()->poolProxy().byKindEnd <zypp::Package>(); it++)
+ To iterate through patches, use zypp::Patch as the kind.
+
+ The iterators point to objects of type zypp::ui::Selectable::Ptr, where Ptr
+ is a boost intrusive_ptr -- so, you may turn that into a C pointers with
+ a "zypp::ui::Selectable *sel = get_pointer (*it);"
+
+ A Selectable object contains pointers to the installed version and all
+ available (through repositories) versions of some packages whose name
+ you may get with a zypp::ui::Selectable::name(). The package it considers
+ as the best from the available packages is what it calls a candidate.
+ Check /usr/include/zypp/ui/Selectable.h for its API.
+
+ You may get more details on a given packages by retriving the correspondent
+ zypp::ResObject from the Selectable of the version you want.
+ Check /usr/include/zypp/ResObject.h for its API.
+
+ To get even more information, you may cast the zypp::ResObject to a
+ zypp::Package or zypp::Patch, according to what you are iterating.
+ Since this is boost pointers we are dealing with, you would cast a
+ zypp::ResObject::constPtr like
+ zypp::dynamic_pointer_cast <const zypp::Package> (res_object);
+ Check /usr/include/zypp/Package.h / Patch.h for their API.
+
+ The reason why our categories tree is build in an ackward way is because you
+ get the category of a package with zypp::Package::group() which returns a
+ std::string like "Productivity/Networking/Email/Utilities". You can't build
+ the tree before you start adding packages since you don't have a way to know
+ its hierarchy.
+
+ To avoid the lengthy names of Zypp, we use some typedefs and inline helper
+ functions that you may find right on the start of YGPackageSelector.cc.
Added: trunk/gtk/unstable-libyui/MAINTAINER
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/MAINTAINER?r…
==============================================================================
--- trunk/gtk/unstable-libyui/MAINTAINER (added)
+++ trunk/gtk/unstable-libyui/MAINTAINER Wed Dec 5 14:14:01 2007
@@ -0,0 +1,2 @@
+Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt> \
+Michael Meeks <michael.meeks(a)novell.com>
Added: trunk/gtk/unstable-libyui/Makefile
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/Makefile?rev…
==============================================================================
--- trunk/gtk/unstable-libyui/Makefile (added)
+++ trunk/gtk/unstable-libyui/Makefile Wed Dec 5 14:14:01 2007
@@ -0,0 +1,920 @@
+# Makefile.in generated by automake 1.10 from Makefile.am.
+# Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006 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.
+
+
+
+# Emacs: -*- makefile -*-
+#
+# Toplevel Makefile.am for a YaST2 subproject
+#
+# -- This file is generated by y2automake - DO NOT EDIT! --
+# (Edit ./SUBDIRS instead)
+#
+
+
+pkgdatadir = $(datadir)/yast2-gtk
+pkglibdir = $(libdir)/yast2-gtk
+pkgincludedir = $(includedir)/yast2-gtk
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+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 = :
+build_triplet = i686-suse-linux-gnu
+host_triplet = i686-suse-linux-gnu
+target_triplet = i686-suse-linux-gnu
+#am__append_1 = $(RPMNAME).pc.in
+subdir = .
+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(srcdir)/config.h.in \
+ $(top_srcdir)/configure AUTHORS ChangeLog NEWS TODO \
+ config.guess config.sub depcomp install-sh ltmain.sh missing
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(pkgconfigdir)" \
+ "$(DESTDIR)$(pkgconfigdatadir)"
+pkgconfigDATA_INSTALL = $(INSTALL_DATA)
+pkgconfigdataDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(pkgconfig_DATA) $(pkgconfigdata_DATA)
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ { test ! -d $(distdir) \
+ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -fr $(distdir); }; }
+GZIP_ENV = --best
+DIST_ARCHIVES = $(distdir).tar.bz2
+distuninstallcheck_listfiles = find . -type f -print
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run aclocal-1.10
+AGENT_LIBADD = -L$(libdir) -lscr
+ALLOCA =
+AMTAR = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run tar
+AR = ar
+AUTOCONF = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run automake-1.10
+AWK = gawk
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2 -Wall -Wformat=2 -Wmissing-prototypes
+CPP = gcc -E
+CPPFLAGS =
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2 -Wall -Wformat=2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+ECHO = echo
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+EGREP = /usr/bin/grep -E
+EXEEXT =
+F77 =
+FFLAGS =
+GREP = /usr/bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12
+GTK_LIBS = -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0
+INSTALL = /usr/bin/install -c -p
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LDFLAGS =
+LIBOBJS =
+LIBS =
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LN_S = ln -s
+LTLIBOBJS =
+MAINTAINER = Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt> Michael Meeks <michael.meeks(a)novell.com>
+MAKEINFO = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run makeinfo
+MKDIR_P = /bin/mkdir -p
+OBJEXT = o
+PACKAGE = yast2-gtk
+PACKAGE_BUGREPORT = http://bugs.opensuse.org/
+PACKAGE_NAME = yast2-gtk
+PACKAGE_STRING = yast2-gtk 2.15.9
+PACKAGE_TARNAME = yast2-gtk
+PACKAGE_VERSION = 2.15.9
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_PATH =
+PYUI_LIBS = -lpy2UI
+RANLIB = ranlib
+RPMNAME = $(shell cat $(srcdir)/RPMNAME)
+SED = /usr/bin/sed
+SET_MAKE =
+SHELL = /bin/sh
+STRIP = strip
+STYLESHEET_CSS = /usr/share/YaST2/data/docbook/css/yast2docs.css
+STYLESHEET_HTML = /usr/share/YaST2/data/docbook/stylesheets/customize-html.xsl
+STYLESHEET_PDF = /usr/share/YaST2/data/docbook/stylesheets/customize-fo.xsl
+STYLESHEET_YCPDOC = /usr/share/YaST2/data/docbook/stylesheets/ycpdoc.xsl
+STYLESHEET_YDOC = /usr/share/YaST2/data/docbook/stylesheets/ydoc.xsl
+VERSION = $(shell cat $(srcdir)/VERSION)
+XGETTEXT = /usr/bin/xgettext
+Y2DEVTOOLS_PREFIX = /usr
+YDOXYGEN = /usr/lib/YaST2/bin/ydoxygen
+ZYPP_CFLAGS =
+ZYPP_LIBS = -lzypp
+abs_builddir = /home/rick2/Documents/yast/gtk/unstable
+abs_srcdir = /home/rick2/Documents/yast/gtk/unstable
+abs_top_builddir = /home/rick2/Documents/yast/gtk/unstable
+abs_top_srcdir = /home/rick2/Documents/yast/gtk/unstable
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_F77 =
+agentdir = ${prefix}/lib/YaST2/servers_non_y2
+am__include = include
+am__leading_dot = .
+am__quote =
+am__tar = tar --format=ustar -chf - "$$tardir"
+am__untar = tar -xf -
+bindir = ${exec_prefix}/bin
+build = i686-suse-linux-gnu
+build_alias =
+build_cpu = i686
+build_os = linux-gnu
+build_vendor = suse
+builddir = .
+clientdir = ${prefix}/share/YaST2/clients
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+desktopdir = ${prefix}/share/applications/YaST2
+docdir = ${prefix}/share/doc/packages/yast2-gtk
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+execcompdir = ${prefix}/lib/YaST2
+fillupdir = /var/adm/fillup-templates
+host = i686-suse-linux-gnu
+host_alias =
+host_cpu = i686
+host_os = linux-gnu
+host_vendor = suse
+htmldir = ${docdir}
+imagedir = ${prefix}/share/YaST2/images
+includedir = ${prefix}/include/YaST2
+infodir = ${datarootdir}/info
+install_sh = $(SHELL) /home/rick2/Documents/yast/gtk/unstable/install-sh
+libdir = /usr/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${prefix}/share/YaST2/locale
+localstatedir = ${prefix}/var
+mandir = ${prefix}/share/man
+mkdir_p = /bin/mkdir -p
+moduledir = ${prefix}/share/YaST2/modules
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+pkgconfigdatadir = ${datadir}/pkgconfig
+pkgconfigdir = ${libdir}/pkgconfig
+plugindir = ${libdir}/YaST2/plugin
+potdir = ${docdir}/pot
+prefix = /usr
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+schemadir = ${prefix}/share/YaST2/schema
+scrconfdir = ${prefix}/share/YaST2/scrconf
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target = i686-suse-linux-gnu
+target_alias =
+target_cpu = i686
+target_os = linux-gnu
+target_vendor = suse
+themedir = ${prefix}/share/YaST2/theme
+top_builddir = .
+top_srcdir = .
+yast2dir = ${prefix}/share/YaST2
+ybindir = ${prefix}/lib/YaST2/bin
+ydatadir = ${prefix}/share/YaST2/data
+yncludedir = ${prefix}/share/YaST2/include
+ystartupdir = ${prefix}/lib/YaST2
+
+#where devtools are
+Y2TOOL = $(Y2DEVTOOLS_PREFIX)/bin/y2tool
+SUBDIRS_FILE = $(shell test -e $(srcdir)/SUBDIRS && echo SUBDIRS)
+ACINCLUDE_FILE = $(shell test -e $(srcdir)/acinclude.m4 && echo acinclude.m4)
+HAS_YAST_LICENSE = $(shell test -e $(srcdir)/YAST_LICENSE && echo YAST_LICENSE)
+
+# do we do Makefile.am for devtools? It is a little special...
+IS_DEVTOOLS = $(findstring yast2-devtools,$(RPMNAME))
+DEVTOOLS_DIR = $(if $(IS_DEVTOOLS),$(srcdir)/devtools,$(Y2DEVTOOLS_PREFIX)/share/YaST2/data/devtools)
+ALL_PACKAGES = $(DEVTOOLS_DIR)/admin/all-packages
+LEGALESE_DIR = $(if $(HAS_YAST_LICENSE),$(DEVTOOLS_DIR)/admin/copyright/yast,$(DEVTOOLS_DIR)/admin/copyright/gpl)
+COPYRIGHT_files_gpl = README COPYING COPYRIGHT.english
+COPYRIGHT_files_yast = YAST_LICENSE README COPYING COPYRIGHT.english \
+ COPYRIGHT.french COPYRIGHT.german COPYRIGHT.spanish
+
+extra_COPYRIGHT_files = $(if $(HAS_YAST_LICENSE), $(COPYRIGHT_files_yast), $(COPYRIGHT_files_gpl))
+AUTOMAKE_OPTIONS = foreign dist-bzip2 no-dist-gzip
+# where devtools instal m4 snippets
+# argh, executed literally
+#ACLOCAL_AMFLAGS = -I $(Y2DEVTOOLS_PREFIX)/share/aclocal
+ACLOCAL_AMFLAGS = -I `if test -d ./devtools/admin; then echo ./devtools/admin; else pkg-config --print-errors --variable=datadir yast2-devtools; fi`/aclocal
+CLEANFILES =
+MAINTAINERCLEANFILES = package/$(RPMNAME)-$(VERSION).tar.bz2 package/$(RPMNAME).spec
+POT_DST = $(shell find -type d -name testsuite -prune , \
+ -type f -name "*.pot")
+
+EXTRA_DIST = VERSION RPMNAME MAINTAINER configure.in.in \
+ $(SUBDIRS_FILE) $(ACINCLUDE_FILE) $(if \
+ $(IS_DEVTOOLS),Makefile.am.common,$(POT_DST)) $(am__append_1)
+##pkgconfigdata_DATA = $(RPMNAME).pc
+#pkgconfig_DATA = $(RPMNAME).pc
+TAGVERSION = $(Y2TOOL) tagversion
+# test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo make-pox
+# Contents of ./SUBDIRS
+SUBDIRS = src
+all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+am--refresh:
+ @:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
+ cd $(srcdir) && $(AUTOMAKE) --foreign \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+
+config.h: stamp-h1
+ @if test ! -f $@; then \
+ rm -f stamp-h1; \
+ $(MAKE) $(AM_MAKEFLAGS) 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: $(am__configure_deps)
+ cd $(top_srcdir) && $(AUTOHEADER)
+ rm -f stamp-h1
+ touch $@
+
+distclean-hdr:
+ -rm -f config.h stamp-h1
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+install-pkgconfigDATA: $(pkgconfig_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
+ @list='$(pkgconfig_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ 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=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
+ done
+install-pkgconfigdataDATA: $(pkgconfigdata_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(pkgconfigdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdatadir)"
+ @list='$(pkgconfigdata_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(pkgconfigdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdatadir)/$$f'"; \
+ $(pkgconfigdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdatadir)/$$f"; \
+ done
+
+uninstall-pkgconfigdataDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(pkgconfigdata_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(pkgconfigdatadir)/$$f'"; \
+ rm -f "$(DESTDIR)$(pkgconfigdatadir)/$$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):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ 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) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ 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) \
+ || eval $$failcom; \
+ 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
+
+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
+
+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; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ 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; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+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
+
+distdir: $(DISTFILES)
+ $(am__remove_distdir)
+ test -d $(distdir) || mkdir $(distdir)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ 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_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ distdir=`$(am__cd) $(distdir) && pwd`; \
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$top_distdir" \
+ distdir="$$distdir/$$subdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$(top_distdir)" distdir="$(distdir)" \
+ dist-hook
+ -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r $(distdir)
+dist-gzip: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+dist-bzip2: distdir
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+dist-tarZ: distdir
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__remove_distdir)
+
+dist-shar: distdir
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__remove_distdir)
+
+dist dist-all: distdir
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
+ *.tar.bz2*) \
+ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+ *.shar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ esac
+ 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 ../.. && umask 077 && mkdir "$$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 \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+ $(am__remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$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:
+ for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgconfigdatadir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+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:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || 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."
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+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:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am: install-data-local install-pkgconfigDATA \
+ install-pkgconfigdataDATA
+
+install-dvi: install-dvi-recursive
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-info: install-info-recursive
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-ps: install-ps-recursive
+
+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-pkgconfigDATA uninstall-pkgconfigdataDATA
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
+ install-strip
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am am--refresh check check-am clean clean-generic \
+ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
+ dist-gzip dist-hook dist-shar dist-tarZ dist-zip distcheck \
+ distclean distclean-generic distclean-hdr distclean-libtool \
+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-data-local install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-pkgconfigDATA \
+ install-pkgconfigdataDATA install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+ ps ps-am tags tags-recursive uninstall uninstall-am \
+ uninstall-pkgconfigDATA uninstall-pkgconfigdataDATA
+
+
+Makefile.am.common: $(DEVTOOLS_DIR)/admin/Makefile.am.common
+ cmp -s $< $@ || cp -f $< $@
+
+# create bzip2ed tar and make some sanity checks
+$(RPMNAME)-$(VERSION).tar.bz2: checkpo dist-bzip2
+ @if [ `bunzip2 -c $(RPMNAME)-$(VERSION).tar.bz2 | wc --bytes` = 0 ] ; then \
+ echo "Error: created tar is empty" ; \
+ exit 1 ; \
+ fi
+
+show-extra-dist:
+ @echo $(EXTRA_DIST)
+
+# info '(automake)Conditionals'
+# create the file here instead of by configure
+# because the prerequisite is made here (not anymore!)
+# and we don't want any paths in y2autoconf
+# info '(autoconf)config.status Invocation'
+#$(RPMNAME).pc: $(RPMNAME).pc.in config.status
+# ./config.status --file=$@:$<
+
+dist-hook:
+ @for I in $(extra_COPYRIGHT_files) ; \
+ do \
+ EX="" ; \
+ if test -f $(srcdir)/$$I ; then \
+ EX=$(srcdir)/$$I ; \
+ elif test -f $(LEGALESE_DIR)/$$I ; then \
+ EX=$(LEGALESE_DIR)/$$I ; \
+ else \
+ echo "Error: No file $$I in $(srcdir)/ or in $$LEGALESE_DIR/"; \
+ exit 1 ; \
+ fi ; \
+ echo "cp $$EX $(distdir)" ; \
+ cp $$EX "$(distdir)" ; \
+ done
+
+pot:
+ $(Y2TOOL) y2makepot -s $(srcdir)
+
+install-pot: pot
+ @POT_DST=`find -type d -name testsuite -prune , \
+ -type f -name "*.pot"` ; \
+ if [ -n "$$POT_DST" ] ; then \
+ echo "mkdir -p $(DESTDIR)$(potdir)" ; \
+ mkdir -p $(DESTDIR)$(potdir) ; \
+ list="$$POT_DST"; \
+ for I in $$list ; \
+ do \
+ echo $$I ; \
+ if [ "$$I" == "pot" ] ; then \
+ continue ; \
+ fi ; \
+ echo "$(INSTALL_DATA) $$I $(DESTDIR)$(potdir)" ; \
+ $(INSTALL_DATA) $$I $(DESTDIR)$(potdir) ; \
+ done ; \
+ fi
+
+spellcheck: pot
+ $(Y2TOOL) pot-spellcheck
+
+# all-local: $(if $(IS_DEVTOOLS),,$(POT_DST))
+
+install-data-local: # $(if $(IS_DEVTOOLS),,install-pot)
+ mkdir -p $(DESTDIR)$(docdir)
+ @for I in $(extra_COPYRIGHT_files) ; \
+ do \
+ EX="" ; \
+ if test -f $(srcdir)/$$I ; then \
+ EX=$(srcdir)/$$I ; \
+ elif test -f $(LEGALESE_DIR)/$$I ; then \
+ EX=$(LEGALESE_DIR)/$$I ; \
+ else \
+ echo "Error: No file $$I in $(srcdir)/ or in $(LEGALESE_DIR)/"; \
+ exit 1 ; \
+ fi ; \
+ echo "$(INSTALL_DATA) $$EX $(DESTDIR)$(docdir)" ; \
+ $(INSTALL_DATA) $$EX $(DESTDIR)$(docdir) ; \
+ done
+
+package-local: check-parse $(if $(IS_DEVTOOLS),,$(POT_DST)) $(RPMNAME)-$(VERSION).tar.bz2
+ rm -f package/$(RPMNAME)-*.tar.bz2
+ rm -f package/*~
+ rm -f package/*.bak
+ rm -f package/*.auto
+ mv $(RPMNAME)-$(VERSION).tar.bz2 package/
+ if ! test -x $(Y2TOOL); then \
+ echo "$(Y2TOOL): not found."; \
+ echo "You have to install yast2-devtools to making a package"; \
+ false; \
+ fi
+ here=`pwd`; \
+ cd $(srcdir) && for i in $(RPMNAME)*.spec.in; do \
+ newname="`echo "$$i" | sed "s/\.in$$//g"`"; \
+ $(Y2TOOL) create-spec < $$i > $$here/package/$${newname} ; \
+ done
+
+package: check-up-to-date check-tagversion check-all-packages check-textdomain package-local
+
+check-up-to-date check-cvs-up-to-date check-svn-up-to-date:
+ if [ -d $(srcdir)/CVS ]; then \
+ cd $(srcdir) && ! cvs -q -n up 2>/dev/null | grep '^[MCAR] ';\
+ else \
+ cd $(srcdir) && ! LC_ALL=C svn status --show-updates --quiet | grep -v '^Status against revision' ;\
+ fi
+
+check-tagversion:
+ @if [ -d $(srcdir)/CVS ]; then \
+ cd $(srcdir) && cvs status -v VERSION | grep -w `$(TAGVERSION) -n` ;\
+ else \
+ cd $(srcdir) && svn cat `$(TAGVERSION) --echourl`/VERSION; \
+ fi >/dev/null; \
+ [ $$? = 0 ] || ( echo "ERROR: Please run 'tagversion' first"; false )
+
+check-parse-old:
+ @if [ `find -type f -name "*.ycp" | wc -l` -gt 0 -a "$(RPMNAME)" != "yast2-core" ] ; then \
+ echo "Running parseycp..." ; \
+ parseycp -q -R ; \
+ else \
+ echo "Not running parseycp." ; \
+ fi
+
+check-parse:
+ @echo "Not running parseycp."
+
+check-all-packages:
+ @if [ ! -e "$(ALL_PACKAGES)" ]; then \
+ echo ERROR: "Can't find $(ALL_PACKAGES)"; false; \
+ fi
+ @if ! grep -q "^$(RPMNAME)[[:space:]]" $(ALL_PACKAGES); then \
+ echo ERROR: "$(RPMNAME) not in $(ALL_PACKAGES)"; false; \
+ fi
+ @if grep -q "^$(RPMNAME)[[:space:]]\+.*?" $(ALL_PACKAGES); then \
+ echo ERROR: "$(RPMNAME) info in $(ALL_PACKAGES) contains some unknown (?) fields:"; \
+ echo; \
+ grep "^$(RPMNAME)[[:space:]]\+.*?" $(ALL_PACKAGES); \
+ echo; \
+ false; \
+ fi
+
+check-textdomain:
+ $(Y2TOOL) check-textdomain $(srcdir)
+
+stable: checkin-stable
+
+checkin-stable: package
+ $(Y2TOOL) checkin-stable
+
+# For po/ modules
+checkpo:
+ test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo
+# 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:
Added: trunk/gtk/unstable-libyui/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/Makefile.am?…
==============================================================================
--- trunk/gtk/unstable-libyui/Makefile.am (added)
+++ trunk/gtk/unstable-libyui/Makefile.am Wed Dec 5 14:14:01 2007
@@ -0,0 +1,216 @@
+# Emacs: -*- makefile -*-
+#
+# Toplevel Makefile.am for a YaST2 subproject
+#
+# -- This file is generated by y2automake - DO NOT EDIT! --
+# (Edit ./SUBDIRS instead)
+#
+
+#where devtools are
+Y2TOOL = $(Y2DEVTOOLS_PREFIX)/bin/y2tool
+
+VERSION = $(shell cat $(srcdir)/VERSION)
+RPMNAME = $(shell cat $(srcdir)/RPMNAME)
+SUBDIRS_FILE = $(shell test -e $(srcdir)/SUBDIRS && echo SUBDIRS)
+ACINCLUDE_FILE = $(shell test -e $(srcdir)/acinclude.m4 && echo acinclude.m4)
+
+HAS_YAST_LICENSE = $(shell test -e $(srcdir)/YAST_LICENSE && echo YAST_LICENSE)
+
+# do we do Makefile.am for devtools? It is a little special...
+IS_DEVTOOLS = $(findstring yast2-devtools,$(RPMNAME))
+
+DEVTOOLS_DIR = $(if $(IS_DEVTOOLS),$(srcdir)/devtools,$(Y2DEVTOOLS_PREFIX)/share/YaST2/data/devtools)
+ALL_PACKAGES = $(DEVTOOLS_DIR)/admin/all-packages
+LEGALESE_DIR = $(if $(HAS_YAST_LICENSE),$(DEVTOOLS_DIR)/admin/copyright/yast,$(DEVTOOLS_DIR)/admin/copyright/gpl)
+
+COPYRIGHT_files_gpl = README COPYING COPYRIGHT.english
+
+COPYRIGHT_files_yast = YAST_LICENSE README COPYING COPYRIGHT.english \
+ COPYRIGHT.french COPYRIGHT.german COPYRIGHT.spanish
+
+extra_COPYRIGHT_files = $(if $(HAS_YAST_LICENSE), $(COPYRIGHT_files_yast), $(COPYRIGHT_files_gpl))
+
+AUTOMAKE_OPTIONS = foreign dist-bzip2 no-dist-gzip
+# where devtools instal m4 snippets
+# argh, executed literally
+#ACLOCAL_AMFLAGS = -I $(Y2DEVTOOLS_PREFIX)/share/aclocal
+ACLOCAL_AMFLAGS = -I `if test -d ./devtools/admin; then echo ./devtools/admin; else pkg-config --print-errors --variable=datadir yast2-devtools; fi`/aclocal
+
+Makefile.am.common: $(DEVTOOLS_DIR)/admin/Makefile.am.common
+ cmp -s $< $@ || cp -f $< $@
+
+# create bzip2ed tar and make some sanity checks
+$(RPMNAME)-$(VERSION).tar.bz2: checkpo dist-bzip2
+ @if [ `bunzip2 -c $(RPMNAME)-$(VERSION).tar.bz2 | wc --bytes` = 0 ] ; then \
+ echo "Error: created tar is empty" ; \
+ exit 1 ; \
+ fi
+
+CLEANFILES =
+MAINTAINERCLEANFILES = package/$(RPMNAME)-$(VERSION).tar.bz2 package/$(RPMNAME).spec
+
+POT_DST = $(shell find -type d -name testsuite -prune , \
+ -type f -name "*.pot")
+
+EXTRA_DIST = \
+ VERSION RPMNAME MAINTAINER configure.in.in \
+ $(SUBDIRS_FILE) $(ACINCLUDE_FILE) \
+ $(if $(IS_DEVTOOLS),Makefile.am.common,$(POT_DST))
+
+show-extra-dist:
+ @echo $(EXTRA_DIST)
+
+# info '(automake)Conditionals'
+if CREATE_PKGCONFIG
+# create the file here instead of by configure
+# because the prerequisite is made here (not anymore!)
+# and we don't want any paths in y2autoconf
+# info '(autoconf)config.status Invocation'
+$(RPMNAME).pc: $(RPMNAME).pc.in config.status
+ ./config.status --file=$@:$<
+
+if CREATE_PKGCONFIG_NOARCH
+pkgconfigdata_DATA = $(RPMNAME).pc
+else
+pkgconfig_DATA = $(RPMNAME).pc
+endif
+
+EXTRA_DIST += $(RPMNAME).pc.in
+endif
+
+dist-hook:
+ @for I in $(extra_COPYRIGHT_files) ; \
+ do \
+ EX="" ; \
+ if test -f $(srcdir)/$$I ; then \
+ EX=$(srcdir)/$$I ; \
+ elif test -f $(LEGALESE_DIR)/$$I ; then \
+ EX=$(LEGALESE_DIR)/$$I ; \
+ else \
+ echo "Error: No file $$I in $(srcdir)/ or in $$LEGALESE_DIR/"; \
+ exit 1 ; \
+ fi ; \
+ echo "cp $$EX $(distdir)" ; \
+ cp $$EX "$(distdir)" ; \
+ done
+
+pot:
+ $(Y2TOOL) y2makepot -s $(srcdir)
+
+install-pot: pot
+ @POT_DST=`find -type d -name testsuite -prune , \
+ -type f -name "*.pot"` ; \
+ if [ -n "$$POT_DST" ] ; then \
+ echo "mkdir -p $(DESTDIR)$(potdir)" ; \
+ mkdir -p $(DESTDIR)$(potdir) ; \
+ list="$$POT_DST"; \
+ for I in $$list ; \
+ do \
+ echo $$I ; \
+ if [ "$$I" == "pot" ] ; then \
+ continue ; \
+ fi ; \
+ echo "$(INSTALL_DATA) $$I $(DESTDIR)$(potdir)" ; \
+ $(INSTALL_DATA) $$I $(DESTDIR)$(potdir) ; \
+ done ; \
+ fi
+
+spellcheck: pot
+ $(Y2TOOL) pot-spellcheck
+
+# all-local: $(if $(IS_DEVTOOLS),,$(POT_DST))
+
+install-data-local: # $(if $(IS_DEVTOOLS),,install-pot)
+ mkdir -p $(DESTDIR)$(docdir)
+ @for I in $(extra_COPYRIGHT_files) ; \
+ do \
+ EX="" ; \
+ if test -f $(srcdir)/$$I ; then \
+ EX=$(srcdir)/$$I ; \
+ elif test -f $(LEGALESE_DIR)/$$I ; then \
+ EX=$(LEGALESE_DIR)/$$I ; \
+ else \
+ echo "Error: No file $$I in $(srcdir)/ or in $(LEGALESE_DIR)/"; \
+ exit 1 ; \
+ fi ; \
+ echo "$(INSTALL_DATA) $$EX $(DESTDIR)$(docdir)" ; \
+ $(INSTALL_DATA) $$EX $(DESTDIR)$(docdir) ; \
+ done
+
+package-local: check-parse $(if $(IS_DEVTOOLS),,$(POT_DST)) $(RPMNAME)-$(VERSION).tar.bz2
+ rm -f package/$(RPMNAME)-*.tar.bz2
+ rm -f package/*~
+ rm -f package/*.bak
+ rm -f package/*.auto
+ mv $(RPMNAME)-$(VERSION).tar.bz2 package/
+ if ! test -x $(Y2TOOL); then \
+ echo "$(Y2TOOL): not found."; \
+ echo "You have to install yast2-devtools to making a package"; \
+ false; \
+ fi
+ here=`pwd`; \
+ cd $(srcdir) && for i in $(RPMNAME)*.spec.in; do \
+ newname="`echo "$$i" | sed "s/\.in$$//g"`"; \
+ $(Y2TOOL) create-spec < $$i > $$here/package/$${newname} ; \
+ done
+
+package: check-up-to-date check-tagversion check-all-packages check-textdomain package-local
+
+TAGVERSION = $(Y2TOOL) tagversion
+
+check-up-to-date check-cvs-up-to-date check-svn-up-to-date:
+ if [ -d $(srcdir)/CVS ]; then \
+ cd $(srcdir) && ! cvs -q -n up 2>/dev/null | grep '^[MCAR] ';\
+ else \
+ cd $(srcdir) && ! LC_ALL=C svn status --show-updates --quiet | grep -v '^Status against revision' ;\
+ fi
+
+check-tagversion:
+ @if [ -d $(srcdir)/CVS ]; then \
+ cd $(srcdir) && cvs status -v VERSION | grep -w `$(TAGVERSION) -n` ;\
+ else \
+ cd $(srcdir) && svn cat `$(TAGVERSION) --echourl`/VERSION; \
+ fi >/dev/null; \
+ [ $$? = 0 ] || ( echo "ERROR: Please run 'tagversion' first"; false )
+
+check-parse-old:
+ @if [ `find -type f -name "*.ycp" | wc -l` -gt 0 -a "$(RPMNAME)" != "yast2-core" ] ; then \
+ echo "Running parseycp..." ; \
+ parseycp -q -R ; \
+ else \
+ echo "Not running parseycp." ; \
+ fi
+
+check-parse:
+ @echo "Not running parseycp."
+
+check-all-packages:
+ @if [ ! -e "$(ALL_PACKAGES)" ]; then \
+ echo ERROR: "Can't find $(ALL_PACKAGES)"; false; \
+ fi
+ @if ! grep -q "^$(RPMNAME)[[:space:]]" $(ALL_PACKAGES); then \
+ echo ERROR: "$(RPMNAME) not in $(ALL_PACKAGES)"; false; \
+ fi
+ @if grep -q "^$(RPMNAME)[[:space:]]\+.*?" $(ALL_PACKAGES); then \
+ echo ERROR: "$(RPMNAME) info in $(ALL_PACKAGES) contains some unknown (?) fields:"; \
+ echo; \
+ grep "^$(RPMNAME)[[:space:]]\+.*?" $(ALL_PACKAGES); \
+ echo; \
+ false; \
+ fi
+
+check-textdomain:
+ $(Y2TOOL) check-textdomain $(srcdir)
+
+stable: checkin-stable
+
+checkin-stable: package
+ $(Y2TOOL) checkin-stable
+
+
+# For po/ modules
+checkpo:
+ test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo
+# test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo make-pox
+# Contents of ./SUBDIRS
+SUBDIRS = src
Added: trunk/gtk/unstable-libyui/Makefile.am.common
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/Makefile.am.…
==============================================================================
--- trunk/gtk/unstable-libyui/Makefile.am.common (added)
+++ trunk/gtk/unstable-libyui/Makefile.am.common Wed Dec 5 14:14:01 2007
@@ -0,0 +1,47 @@
+# Makefile.am.common -*- Makefile -*-
+# Generated file, do not edit!
+
+modulebin_DATA = $(patsubst %.ycp,%.ybc,$(module_DATA))
+modulebindir = $(moduledir)
+
+ybcfiles = $(filter %.ybc,$(modulebin_DATA))
+
+# suffix mapping: info '(make)Static Usage'
+# apply only to our modules, not external ones
+${ybcfiles}: %.ybc: %.ycp $(ycpchook)
+ Y2DIR=$(YCPC_Y2DIR) LD_LIBRARY_PATH=$(YCPC_LD_LIBRARY_PATH) ${YCPC} -c -M. -I. -q $(YCPCFLAGS) $<
+
+# files to clean
+CLEANFILES = ${ybcfiles}
+DISTCLEANFILES = .dep
+
+# Needs to be outside "." because of cases
+# where ycpchook contains a symlink to "."
+# Otherwise "." keeps being newer than .dep and we loop.
+NEWDEP=${top_builddir}/.dep.new
+# generate dependencies
+# two steps not to lose the file if the command fails
+# hook: create the links before we look for files
+.dep: $(wildcard *.ycp) ${ycpchook}
+ ${YCPMAKEDEP} --prefix=${prefix} ${YCPCFLAGS} > ${NEWDEP}
+ cat ${NEWDEP} > .dep
+ rm ${NEWDEP}
+
+dist-hook: check-syntax
+
+CHECK_SYNTAX = true
+check-syntax: $(client_DATA) $(ycpchook)
+ @if test "$(client_DATA)"; then \
+ if $(CHECK_SYNTAX); then \
+ TO_CHECK="$(filter %.ycp,$^)"; \
+ echo "Checking syntax of $${TO_CHECK}"; \
+ if ! $(YCPC) -qE -M. -I. $(YCPCFLAGS) $${TO_CHECK}; then \
+ echo "Failed. Disable by 'make ... CHECK_SYNTAX=false' at your own risk"; \
+ exit 1; \
+ fi; \
+ else \
+ echo "Syntax check disabled"; \
+ fi; \
+ fi
+
+-include .dep
Added: trunk/gtk/unstable-libyui/Makefile.cvs
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/Makefile.cvs…
==============================================================================
--- trunk/gtk/unstable-libyui/Makefile.cvs (added)
+++ trunk/gtk/unstable-libyui/Makefile.cvs Wed Dec 5 14:14:01 2007
@@ -0,0 +1,23 @@
+#
+# Makefile.cvs
+#
+
+LIB = $(shell y2tool get-lib)
+
+PREFIX = /usr
+
+configure: all
+ ./configure --prefix=$(PREFIX) --libdir=$(PREFIX)/$(LIB)
+
+all:
+ y2tool y2autoconf
+ y2tool y2automake
+ autoreconf --force --install
+
+install: configure
+ make
+ make install
+
+reconf: all
+ ./config.status --recheck
+ ./config.status
Added: trunk/gtk/unstable-libyui/Makefile.in
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/Makefile.in?…
==============================================================================
--- trunk/gtk/unstable-libyui/Makefile.in (added)
+++ trunk/gtk/unstable-libyui/Makefile.in Wed Dec 5 14:14:01 2007
@@ -0,0 +1,920 @@
+# Makefile.in generated by automake 1.10 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006 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@
+
+# Emacs: -*- makefile -*-
+#
+# Toplevel Makefile.am for a YaST2 subproject
+#
+# -- This file is generated by y2automake - DO NOT EDIT! --
+# (Edit ./SUBDIRS instead)
+#
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+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 = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+@CREATE_PKGCONFIG_TRUE@am__append_1 = $(RPMNAME).pc.in
+subdir = .
+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(srcdir)/config.h.in \
+ $(top_srcdir)/configure AUTHORS ChangeLog NEWS TODO \
+ config.guess config.sub depcomp install-sh ltmain.sh missing
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(pkgconfigdir)" \
+ "$(DESTDIR)$(pkgconfigdatadir)"
+pkgconfigDATA_INSTALL = $(INSTALL_DATA)
+pkgconfigdataDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(pkgconfig_DATA) $(pkgconfigdata_DATA)
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ { test ! -d $(distdir) \
+ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -fr $(distdir); }; }
+GZIP_ENV = --best
+DIST_ARCHIVES = $(distdir).tar.bz2
+distuninstallcheck_listfiles = find . -type f -print
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+AGENT_LIBADD = @AGENT_LIBADD@
+ALLOCA = @ALLOCA@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+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@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+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@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINTAINER = @MAINTAINER@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+PYUI_LIBS = @PYUI_LIBS@
+RANLIB = @RANLIB@
+RPMNAME = $(shell cat $(srcdir)/RPMNAME)
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+STYLESHEET_CSS = @STYLESHEET_CSS@
+STYLESHEET_HTML = @STYLESHEET_HTML@
+STYLESHEET_PDF = @STYLESHEET_PDF@
+STYLESHEET_YCPDOC = @STYLESHEET_YCPDOC@
+STYLESHEET_YDOC = @STYLESHEET_YDOC@
+VERSION = $(shell cat $(srcdir)/VERSION)
+XGETTEXT = @XGETTEXT@
+Y2DEVTOOLS_PREFIX = @Y2DEVTOOLS_PREFIX@
+YDOXYGEN = @YDOXYGEN@
+ZYPP_CFLAGS = @ZYPP_CFLAGS@
+ZYPP_LIBS = @ZYPP_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+agentdir = @agentdir@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+clientdir = @clientdir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+desktopdir = @desktopdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+execcompdir = @execcompdir@
+fillupdir = @fillupdir@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+imagedir = @imagedir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+pkgconfigdatadir = @pkgconfigdatadir@
+pkgconfigdir = @pkgconfigdir@
+plugindir = @plugindir@
+potdir = @potdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+schemadir = @schemadir@
+scrconfdir = @scrconfdir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target = @target@
+target_alias = @target_alias@
+target_cpu = @target_cpu@
+target_os = @target_os@
+target_vendor = @target_vendor@
+themedir = @themedir@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+yast2dir = @yast2dir@
+ybindir = @ybindir@
+ydatadir = @ydatadir@
+yncludedir = @yncludedir@
+ystartupdir = @ystartupdir@
+
+#where devtools are
+Y2TOOL = $(Y2DEVTOOLS_PREFIX)/bin/y2tool
+SUBDIRS_FILE = $(shell test -e $(srcdir)/SUBDIRS && echo SUBDIRS)
+ACINCLUDE_FILE = $(shell test -e $(srcdir)/acinclude.m4 && echo acinclude.m4)
+HAS_YAST_LICENSE = $(shell test -e $(srcdir)/YAST_LICENSE && echo YAST_LICENSE)
+
+# do we do Makefile.am for devtools? It is a little special...
+IS_DEVTOOLS = $(findstring yast2-devtools,$(RPMNAME))
+DEVTOOLS_DIR = $(if $(IS_DEVTOOLS),$(srcdir)/devtools,$(Y2DEVTOOLS_PREFIX)/share/YaST2/data/devtools)
+ALL_PACKAGES = $(DEVTOOLS_DIR)/admin/all-packages
+LEGALESE_DIR = $(if $(HAS_YAST_LICENSE),$(DEVTOOLS_DIR)/admin/copyright/yast,$(DEVTOOLS_DIR)/admin/copyright/gpl)
+COPYRIGHT_files_gpl = README COPYING COPYRIGHT.english
+COPYRIGHT_files_yast = YAST_LICENSE README COPYING COPYRIGHT.english \
+ COPYRIGHT.french COPYRIGHT.german COPYRIGHT.spanish
+
+extra_COPYRIGHT_files = $(if $(HAS_YAST_LICENSE), $(COPYRIGHT_files_yast), $(COPYRIGHT_files_gpl))
+AUTOMAKE_OPTIONS = foreign dist-bzip2 no-dist-gzip
+# where devtools instal m4 snippets
+# argh, executed literally
+#ACLOCAL_AMFLAGS = -I $(Y2DEVTOOLS_PREFIX)/share/aclocal
+ACLOCAL_AMFLAGS = -I `if test -d ./devtools/admin; then echo ./devtools/admin; else pkg-config --print-errors --variable=datadir yast2-devtools; fi`/aclocal
+CLEANFILES =
+MAINTAINERCLEANFILES = package/$(RPMNAME)-$(VERSION).tar.bz2 package/$(RPMNAME).spec
+POT_DST = $(shell find -type d -name testsuite -prune , \
+ -type f -name "*.pot")
+
+EXTRA_DIST = VERSION RPMNAME MAINTAINER configure.in.in \
+ $(SUBDIRS_FILE) $(ACINCLUDE_FILE) $(if \
+ $(IS_DEVTOOLS),Makefile.am.common,$(POT_DST)) $(am__append_1)
+@CREATE_PKGCONFIG_NOARCH_TRUE@@CREATE_PKGCONFIG_TRUE@pkgconfigdata_DATA = $(RPMNAME).pc
+@CREATE_PKGCONFIG_NOARCH_FALSE@@CREATE_PKGCONFIG_TRUE@pkgconfig_DATA = $(RPMNAME).pc
+TAGVERSION = $(Y2TOOL) tagversion
+# test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo make-pox
+# Contents of ./SUBDIRS
+SUBDIRS = src
+all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+am--refresh:
+ @:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
+ cd $(srcdir) && $(AUTOMAKE) --foreign \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --foreign Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+
+config.h: stamp-h1
+ @if test ! -f $@; then \
+ rm -f stamp-h1; \
+ $(MAKE) $(AM_MAKEFLAGS) 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: $(am__configure_deps)
+ cd $(top_srcdir) && $(AUTOHEADER)
+ rm -f stamp-h1
+ touch $@
+
+distclean-hdr:
+ -rm -f config.h stamp-h1
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+install-pkgconfigDATA: $(pkgconfig_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
+ @list='$(pkgconfig_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ 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=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
+ done
+install-pkgconfigdataDATA: $(pkgconfigdata_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(pkgconfigdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdatadir)"
+ @list='$(pkgconfigdata_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(pkgconfigdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdatadir)/$$f'"; \
+ $(pkgconfigdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdatadir)/$$f"; \
+ done
+
+uninstall-pkgconfigdataDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(pkgconfigdata_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(pkgconfigdatadir)/$$f'"; \
+ rm -f "$(DESTDIR)$(pkgconfigdatadir)/$$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):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ 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) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ 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) \
+ || eval $$failcom; \
+ 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
+
+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
+
+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; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ 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; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+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
+
+distdir: $(DISTFILES)
+ $(am__remove_distdir)
+ test -d $(distdir) || mkdir $(distdir)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ 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_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ distdir=`$(am__cd) $(distdir) && pwd`; \
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$top_distdir" \
+ distdir="$$distdir/$$subdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$(top_distdir)" distdir="$(distdir)" \
+ dist-hook
+ -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r $(distdir)
+dist-gzip: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+dist-bzip2: distdir
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+dist-tarZ: distdir
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__remove_distdir)
+
+dist-shar: distdir
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__remove_distdir)
+
+dist dist-all: distdir
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
+ *.tar.bz2*) \
+ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+ *.shar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ esac
+ 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 ../.. && umask 077 && mkdir "$$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 \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+ $(am__remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$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:
+ for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgconfigdatadir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+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:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || 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."
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+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:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am: install-data-local install-pkgconfigDATA \
+ install-pkgconfigdataDATA
+
+install-dvi: install-dvi-recursive
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-info: install-info-recursive
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-ps: install-ps-recursive
+
+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-pkgconfigDATA uninstall-pkgconfigdataDATA
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
+ install-strip
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am am--refresh check check-am clean clean-generic \
+ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
+ dist-gzip dist-hook dist-shar dist-tarZ dist-zip distcheck \
+ distclean distclean-generic distclean-hdr distclean-libtool \
+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-data-local install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-pkgconfigDATA \
+ install-pkgconfigdataDATA install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+ ps ps-am tags tags-recursive uninstall uninstall-am \
+ uninstall-pkgconfigDATA uninstall-pkgconfigdataDATA
+
+
+Makefile.am.common: $(DEVTOOLS_DIR)/admin/Makefile.am.common
+ cmp -s $< $@ || cp -f $< $@
+
+# create bzip2ed tar and make some sanity checks
+$(RPMNAME)-$(VERSION).tar.bz2: checkpo dist-bzip2
+ @if [ `bunzip2 -c $(RPMNAME)-$(VERSION).tar.bz2 | wc --bytes` = 0 ] ; then \
+ echo "Error: created tar is empty" ; \
+ exit 1 ; \
+ fi
+
+show-extra-dist:
+ @echo $(EXTRA_DIST)
+
+# info '(automake)Conditionals'
+# create the file here instead of by configure
+# because the prerequisite is made here (not anymore!)
+# and we don't want any paths in y2autoconf
+# info '(autoconf)config.status Invocation'
+@CREATE_PKGCONFIG_TRUE@$(RPMNAME).pc: $(RPMNAME).pc.in config.status
+@CREATE_PKGCONFIG_TRUE@ ./config.status --file=$@:$<
+
+dist-hook:
+ @for I in $(extra_COPYRIGHT_files) ; \
+ do \
+ EX="" ; \
+ if test -f $(srcdir)/$$I ; then \
+ EX=$(srcdir)/$$I ; \
+ elif test -f $(LEGALESE_DIR)/$$I ; then \
+ EX=$(LEGALESE_DIR)/$$I ; \
+ else \
+ echo "Error: No file $$I in $(srcdir)/ or in $$LEGALESE_DIR/"; \
+ exit 1 ; \
+ fi ; \
+ echo "cp $$EX $(distdir)" ; \
+ cp $$EX "$(distdir)" ; \
+ done
+
+pot:
+ $(Y2TOOL) y2makepot -s $(srcdir)
+
+install-pot: pot
+ @POT_DST=`find -type d -name testsuite -prune , \
+ -type f -name "*.pot"` ; \
+ if [ -n "$$POT_DST" ] ; then \
+ echo "mkdir -p $(DESTDIR)$(potdir)" ; \
+ mkdir -p $(DESTDIR)$(potdir) ; \
+ list="$$POT_DST"; \
+ for I in $$list ; \
+ do \
+ echo $$I ; \
+ if [ "$$I" == "pot" ] ; then \
+ continue ; \
+ fi ; \
+ echo "$(INSTALL_DATA) $$I $(DESTDIR)$(potdir)" ; \
+ $(INSTALL_DATA) $$I $(DESTDIR)$(potdir) ; \
+ done ; \
+ fi
+
+spellcheck: pot
+ $(Y2TOOL) pot-spellcheck
+
+# all-local: $(if $(IS_DEVTOOLS),,$(POT_DST))
+
+install-data-local: # $(if $(IS_DEVTOOLS),,install-pot)
+ mkdir -p $(DESTDIR)$(docdir)
+ @for I in $(extra_COPYRIGHT_files) ; \
+ do \
+ EX="" ; \
+ if test -f $(srcdir)/$$I ; then \
+ EX=$(srcdir)/$$I ; \
+ elif test -f $(LEGALESE_DIR)/$$I ; then \
+ EX=$(LEGALESE_DIR)/$$I ; \
+ else \
+ echo "Error: No file $$I in $(srcdir)/ or in $(LEGALESE_DIR)/"; \
+ exit 1 ; \
+ fi ; \
+ echo "$(INSTALL_DATA) $$EX $(DESTDIR)$(docdir)" ; \
+ $(INSTALL_DATA) $$EX $(DESTDIR)$(docdir) ; \
+ done
+
+package-local: check-parse $(if $(IS_DEVTOOLS),,$(POT_DST)) $(RPMNAME)-$(VERSION).tar.bz2
+ rm -f package/$(RPMNAME)-*.tar.bz2
+ rm -f package/*~
+ rm -f package/*.bak
+ rm -f package/*.auto
+ mv $(RPMNAME)-$(VERSION).tar.bz2 package/
+ if ! test -x $(Y2TOOL); then \
+ echo "$(Y2TOOL): not found."; \
+ echo "You have to install yast2-devtools to making a package"; \
+ false; \
+ fi
+ here=`pwd`; \
+ cd $(srcdir) && for i in $(RPMNAME)*.spec.in; do \
+ newname="`echo "$$i" | sed "s/\.in$$//g"`"; \
+ $(Y2TOOL) create-spec < $$i > $$here/package/$${newname} ; \
+ done
+
+package: check-up-to-date check-tagversion check-all-packages check-textdomain package-local
+
+check-up-to-date check-cvs-up-to-date check-svn-up-to-date:
+ if [ -d $(srcdir)/CVS ]; then \
+ cd $(srcdir) && ! cvs -q -n up 2>/dev/null | grep '^[MCAR] ';\
+ else \
+ cd $(srcdir) && ! LC_ALL=C svn status --show-updates --quiet | grep -v '^Status against revision' ;\
+ fi
+
+check-tagversion:
+ @if [ -d $(srcdir)/CVS ]; then \
+ cd $(srcdir) && cvs status -v VERSION | grep -w `$(TAGVERSION) -n` ;\
+ else \
+ cd $(srcdir) && svn cat `$(TAGVERSION) --echourl`/VERSION; \
+ fi >/dev/null; \
+ [ $$? = 0 ] || ( echo "ERROR: Please run 'tagversion' first"; false )
+
+check-parse-old:
+ @if [ `find -type f -name "*.ycp" | wc -l` -gt 0 -a "$(RPMNAME)" != "yast2-core" ] ; then \
+ echo "Running parseycp..." ; \
+ parseycp -q -R ; \
+ else \
+ echo "Not running parseycp." ; \
+ fi
+
+check-parse:
+ @echo "Not running parseycp."
+
+check-all-packages:
+ @if [ ! -e "$(ALL_PACKAGES)" ]; then \
+ echo ERROR: "Can't find $(ALL_PACKAGES)"; false; \
+ fi
+ @if ! grep -q "^$(RPMNAME)[[:space:]]" $(ALL_PACKAGES); then \
+ echo ERROR: "$(RPMNAME) not in $(ALL_PACKAGES)"; false; \
+ fi
+ @if grep -q "^$(RPMNAME)[[:space:]]\+.*?" $(ALL_PACKAGES); then \
+ echo ERROR: "$(RPMNAME) info in $(ALL_PACKAGES) contains some unknown (?) fields:"; \
+ echo; \
+ grep "^$(RPMNAME)[[:space:]]\+.*?" $(ALL_PACKAGES); \
+ echo; \
+ false; \
+ fi
+
+check-textdomain:
+ $(Y2TOOL) check-textdomain $(srcdir)
+
+stable: checkin-stable
+
+checkin-stable: package
+ $(Y2TOOL) checkin-stable
+
+# For po/ modules
+checkpo:
+ test ! -f $(srcdir)/po/Makefile || $(MAKE) -C po checkpo
+# 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:
Added: trunk/gtk/unstable-libyui/NEWS
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/NEWS?rev=427…
==============================================================================
--- trunk/gtk/unstable-libyui/NEWS (added)
+++ trunk/gtk/unstable-libyui/NEWS Wed Dec 5 14:14:01 2007
@@ -0,0 +1 @@
+No news yet.
\ No newline at end of file
Added: trunk/gtk/unstable-libyui/POTFILES
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/POTFILES?rev…
==============================================================================
(empty)
Added: trunk/gtk/unstable-libyui/README
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/README?rev=4…
==============================================================================
--- trunk/gtk/unstable-libyui/README (added)
+++ trunk/gtk/unstable-libyui/README Wed Dec 5 14:14:01 2007
@@ -0,0 +1,48 @@
+/* Light information on YaST-GTK */
+
+License
+
+ This code is licensed under the GNU Lesser General Public License (LGPL)
+ version 2, or, at your option, any higher.
+
+A native GTK+ YaST2 UI !
+
+ This code creates a GTK+ plugin for YaST2. This plugin parallel
+ installs with everything else, and will never be used unless
+ explicitely invoked on the yast2 command line - ie. it won't break
+ your system; go-on you know you want to install it.
+
+Build pre-requisites
+
+ To make this compile you'll need the following packages installed
+ (at a minimum):
+
+ yast2-devel yast2-devtools yast2-core-devel libzypp libzypp-devel
+ gettext-devel
+
+ They all are distributed with Suse's CDs.
+
+Building / Installing
+
+ make -f Makefile.cvs
+ make && sudo make install [1]
+
+ [1] - if you want sudo not to ask you a password, add yourself to the
+ wheel group, and uncomment the related lines in /etc/sudoers
+
+Running
+
+ /usr/lib/YaST2/bin/y2base /usr/share/doc/packages/yast2-core/libyui/examples/HelloWorld.ycp gtk
+
+ From OpenSuse 10.3 on, it should be picked up automatically if you use Gnome.
+ For other desktops, you can set yast-gtk to be used by editing /etc/sysconfig/yast2 .
+
+ In case of oddness append --nothreads to the cmdline,
+ Also check the log file: ~/.y2log
+
+Documentation
+
+ A code overview is given on the HACKING file.
+ For documentation of YaST in general:
+ http://developer.novell.com/wiki/index.php/Special:Downloads/yast/doc
+
Added: trunk/gtk/unstable-libyui/RPMNAME
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/RPMNAME?rev=…
==============================================================================
--- trunk/gtk/unstable-libyui/RPMNAME (added)
+++ trunk/gtk/unstable-libyui/RPMNAME Wed Dec 5 14:14:01 2007
@@ -0,0 +1 @@
+yast2-gtk
Added: trunk/gtk/unstable-libyui/SUBDIRS
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/SUBDIRS?rev=…
==============================================================================
--- trunk/gtk/unstable-libyui/SUBDIRS (added)
+++ trunk/gtk/unstable-libyui/SUBDIRS Wed Dec 5 14:14:01 2007
@@ -0,0 +1 @@
+src
Added: trunk/gtk/unstable-libyui/TODO
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/TODO?rev=427…
==============================================================================
--- trunk/gtk/unstable-libyui/TODO (added)
+++ trunk/gtk/unstable-libyui/TODO Wed Dec 5 14:14:01 2007
@@ -0,0 +1,66 @@
+/* List of missing features, actual bugs and other issues */
+
+= Regression testing =
+
+* Setup LDTP to run through all the tests/ and provoke as many
+ code-paths as possible
+
+= Look and feel =
+
+* YGtkWizard: navigation bar (see sysconfig module) should be GtkPaned.
+
+* YGtkWizard: support for skin -- some mockups under mockups/.
+
+* YGBarGraph / RatioBox: let tiny widgets still have some pixels visible
+ for popup menu.
+
+* YGRichText: should use GtkHtml when available, so that we get support for
+ tables.
+
+* RatioBox: Our buttons are too big in some dialogs (eg. run disk.ycp as user).
+ Check where our algorithm differs from yast-core's.
+
+* YGTextEntry / YGMultiLineEdit: Add undo/redo support. The backend code should
+ be shared. We probably want to make an interface for it that is then implemented
+ by those two GTK widgets. Work out a patch for GTK+.
+
+= Package Selector =
+(this little monster diserves a section of its own. =))
+
+* Patch selector (YOU)
+ + we should also list installed patches and maybe a way to remove them
+ (downgrade of version should work for most cases -- check how qt does it).
+ Probably a tab for this?
+
+* Translation support (i18n -- pot files -- gettext!).
+
+* Search syntax: add proper Google syntax support. Consider also adding regex
+ support when Glib ships with it (add radio boxes to entry's context menu).
+
+* Re-work Yast face to Jakub's suggestion; make it configurable.
+
+* We need an easter-egg! :)
+
+= Internal affairs =
+
+* IntField / Slider
+ o to consider: only report value change when the widget is stalled.
+ To use g_idle functionality.
+
+= Yast-Core =
+
+* Stock images for wizard
+ Already patched stock icons supports for regular button (even if not
+ currently being used), but not for wizard ones.
+
+* Button order
+ Should be possible to specify button order. eg: [Ok] [Cancel] vs [Cancel] [Ok]
+ We could hack this through if we had stock images support (may depend
+ on the way they are implemented).
+
+
+** Performance of yast2 package selector:
+ + 95% of the time is spent in zypper,
+ + the filter models (etc.) are doing a fairly good job
+ + unfortunately fetching 'summary' and 'description' is painfully slow
+ + accelerated summary with a hash/cache.
Added: trunk/gtk/unstable-libyui/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/VERSION?rev=…
==============================================================================
--- trunk/gtk/unstable-libyui/VERSION (added)
+++ trunk/gtk/unstable-libyui/VERSION Wed Dec 5 14:14:01 2007
@@ -0,0 +1 @@
+2.15.9
Added: trunk/gtk/unstable-libyui/aclocal.m4
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/aclocal.m4?r…
==============================================================================
--- trunk/gtk/unstable-libyui/aclocal.m4 (added)
+++ trunk/gtk/unstable-libyui/aclocal.m4 Wed Dec 5 14:14:01 2007
@@ -0,0 +1,7602 @@
+# generated automatically by aclocal 1.10 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006 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.
+
+m4_if(m4_PACKAGE_VERSION, [2.61],,
+[m4_fatal([this file was generated for autoconf 2.61.
+You have another version of autoconf. If you want to use that,
+you should regenerate the build system entirely.], [63])])
+
+# Copyright (C) 2002, 2003, 2005, 2006 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.
+
+# 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.
+# (This private macro should not be called outside this file.)
+AC_DEFUN([AM_AUTOMAKE_VERSION],
+[am__api_version='1.10'
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+dnl require some minimum version. Point them to the right macro.
+m4_if([$1], [1.10], [],
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+])
+
+# _AM_AUTOCONF_VERSION(VERSION)
+# -----------------------------
+# aclocal traces this macro to find the Autoconf version.
+# This is a private macro too. Using m4_define simplifies
+# the logic in aclocal, which can simply ignore this definition.
+m4_define([_AM_AUTOCONF_VERSION], [])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+[AM_AUTOMAKE_VERSION([1.10])dnl
+_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
+
+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
+
+# Copyright (C) 2001, 2003, 2005 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.
+
+# 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.
+
+AC_DEFUN([AM_AUX_DIR_EXPAND],
+[dnl Rely on autoconf to set up CDPATH properly.
+AC_PREREQ([2.50])dnl
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+])
+
+# AM_CONDITIONAL -*- Autoconf -*-
+
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
+# 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.
+
+# serial 8
+
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+# -------------------------------------
+# Define a conditional.
+AC_DEFUN([AM_CONDITIONAL],
+[AC_PREREQ(2.52)dnl
+ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+AC_SUBST([$1_TRUE])dnl
+AC_SUBST([$1_FALSE])dnl
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
+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])])
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+# 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.
+
+# serial 9
+
+# 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], UPC, [depcc="$UPC" am_compiler_list=],
+ [$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
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch 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/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ 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
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' 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 build
+ --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])dnl
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
+])
+
+# Generate code to set up dependency tracking. -*- Autoconf -*-
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
+# 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.
+
+#serial 3
+
+# _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.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
+ dirpart=`AS_DIRNAME("$mf")`
+ else
+ continue
+ fi
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. 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 "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/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"])
+])
+
+# Do all the work for Automake. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006 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.
+
+# serial 12
+
+# 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.
+
+# 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_PREREQ([2.60])dnl
+dnl Autoconf wants to disallow AM_ names. We explicitly allow
+dnl the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])dnl
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+ fi
+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
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
+ [m4_fatal([AC_INIT should be called with package and version arguments])])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_PROG_INSTALL_SH
+AM_PROG_INSTALL_STRIP
+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
+# 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([tar-ustar], [_AM_PROG_TAR([ustar])],
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+ [_AM_PROG_TAR([v7])])])
+_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
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+ [_AM_DEPENDENCIES(OBJC)],
+ [define([AC_PROG_OBJC],
+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])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 (C) 2001, 2003, 2005 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.
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
+AC_SUBST(install_sh)])
+
+# Copyright (C) 2003, 2005 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.
+
+# serial 2
+
+# 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])])
+
+# Check to see how 'make' treats includes. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005 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.
+
+# serial 3
+
+# 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
+])
+
+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
+
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
+# 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.
+
+# serial 5
+
+# 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
+AC_REQUIRE_AUX_FILE([missing])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
+])
+
+# Copyright (C) 2003, 2004, 2005, 2006 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.
+
+# AM_PROG_MKDIR_P
+# ---------------
+# Check for `mkdir -p'.
+AC_DEFUN([AM_PROG_MKDIR_P],
+[AC_PREREQ([2.60])dnl
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
+dnl while keeping a definition of mkdir_p for backward compatibility.
+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
+dnl Makefile.ins that do not define MKDIR_P, so we do our own
+dnl adjustment using top_builddir (which is defined more often than
+dnl MKDIR_P).
+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
+case $mkdir_p in
+ [[\\/$]]* | ?:[[\\/]]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+])
+
+# Helper functions for option handling. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005 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.
+
+# serial 3
+
+# _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])])
+
+# Copyright (C) 2001, 2003, 2005 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.
+
+# AM_RUN_LOG(COMMAND)
+# -------------------
+# Run COMMAND, save the exit status in ac_status, and log it.
+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
+AC_DEFUN([AM_RUN_LOG],
+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ (exit $ac_status); }])
+
+# Check to make sure that the build environment is sane. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
+# 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.
+
+# serial 4
+
+# 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)])
+
+# Copyright (C) 2001, 2003, 2005 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.
+
+# AM_PROG_INSTALL_STRIP
+# ---------------------
+# 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="\$(install_sh) -c -s"
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
+
+# Copyright (C) 2006 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.
+
+# _AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
+# This macro is traced by Automake.
+AC_DEFUN([_AM_SUBST_NOTMAKE])
+
+# Check how to create a tarball. -*- Autoconf -*-
+
+# Copyright (C) 2004, 2005 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.
+
+# serial 2
+
+# _AM_PROG_TAR(FORMAT)
+# --------------------
+# Check how to create a tarball in format FORMAT.
+# FORMAT should be one of `v7', `ustar', or `pax'.
+#
+# Substitute a variable $(am__tar) that is a command
+# writing to stdout a FORMAT-tarball containing the directory
+# $tardir.
+# tardir=directory && $(am__tar) > result.tar
+#
+# Substitute a variable $(am__untar) that extract such
+# a tarball read from stdin.
+# $(am__untar) < result.tar
+AC_DEFUN([_AM_PROG_TAR],
+[# Always define AMTAR for backward compatibility.
+AM_MISSING_PROG([AMTAR], [tar])
+m4_if([$1], [v7],
+ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
+ [m4_case([$1], [ustar],, [pax],,
+ [m4_fatal([Unknown tar format])])
+AC_MSG_CHECKING([how to create a $1 tar archive])
+# Loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
+# Do not fold the above two line into one, because Tru64 sh and
+# Solaris sh will not grok spaces in the rhs of `-'.
+for _am_tool in $_am_tools
+do
+ case $_am_tool in
+ gnutar)
+ for _am_tar in tar gnutar gtar;
+ do
+ AM_RUN_LOG([$_am_tar --version]) && break
+ done
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
+ am__untar="$_am_tar -xf -"
+ ;;
+ plaintar)
+ # Must skip GNU tar: if it does not support --format= it doesn't create
+ # ustar tarball either.
+ (tar --version) >/dev/null 2>&1 && continue
+ am__tar='tar chf - "$$tardir"'
+ am__tar_='tar chf - "$tardir"'
+ am__untar='tar xf -'
+ ;;
+ pax)
+ am__tar='pax -L -x $1 -w "$$tardir"'
+ am__tar_='pax -L -x $1 -w "$tardir"'
+ am__untar='pax -r'
+ ;;
+ cpio)
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
+ am__untar='cpio -i -H $1 -d'
+ ;;
+ none)
+ am__tar=false
+ am__tar_=false
+ am__untar=false
+ ;;
+ esac
+
+ # If the value was cached, stop now. We just wanted to have am__tar
+ # and am__untar set.
+ test -n "${am_cv_prog_tar_$1}" && break
+
+ # tar/untar a dummy directory, and stop if the command works
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ echo GrepMe > conftest.dir/file
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
+ rm -rf conftest.dir
+ if test -s conftest.tar; then
+ AM_RUN_LOG([$am__untar <conftest.tar])
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+ fi
+done
+rm -rf conftest.dir
+
+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+AC_SUBST([am__tar])
+AC_SUBST([am__untar])
+]) # _AM_PROG_TAR
+
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
+
+# serial 51 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_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
+
+# Use C for the default configuration in the libtool script
+tagname=
+AC_LIBTOOL_LANG_C_CONFIG
+_LT_AC_TAGCONFIG
+])# AC_LIBTOOL_SETUP
+
+
+# _LT_AC_SYS_COMPILER
+# -------------------
+AC_DEFUN([_LT_AC_SYS_COMPILER],
+[AC_REQUIRE([AC_PROG_CC])dnl
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# 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_REQUIRE([LT_AC_PROG_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$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_REQUIRE([LT_AC_PROG_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$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_REQUIRE([LT_AC_PROG_SED])dnl
+AC_LINK_IFELSE(AC_LANG_PROGRAM,[
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# 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 "$lt_aix_libpath_sed"`
+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 <<EOF
+[$]*
+EOF
+ exit 0
+fi
+
+# 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
+
+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-*kfreebsd*-gnu|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-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ 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-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ 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])
+ echo "$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_REQUIRE([LT_AC_PROG_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $3"
+ echo "$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
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ 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`
+ else
+ 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`
+ fi
+ ;;
+ 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 <<EOF
+[#line __oline__ "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#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_PROG_SED])dnl
+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
+ echo "$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"
+ old_striplib="$STRIP -S"
+ 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_REQUIRE([LT_AC_PROG_SED])dnl
+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"
+m4_if($1,[],[
+if test "$GCC" = yes; then
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$lt_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.
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[[lt_foo]]++; }
+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
+}'`
+ sys_lib_search_path_spec=`echo $lt_search_path_spec`
+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<name>.so
+ # instead of lib<name>.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
+ ;;
+
+ *)
+ 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`'
+ m4_if([$1], [],[
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | 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
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[[01]]* | freebsdelf3.[[01]]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ 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
+ ;;
+ *) # from 4.6 on, and DragonFly
+ 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'
+ ;;
+
+interix[[3-9]]*)
+ 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* | k*bsd*-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'
+ 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>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;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'
+ ;;
+
+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"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+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_REQUIRE([LT_AC_PROG_SED])dnl
+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 recognize 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 <<EOF 1>&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(a)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 recognize 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 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi])
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ AC_MSG_RESULT($LD)
+else
+ AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+AC_PROG_LD_GNU
+])# AC_PROG_LD
+
+
+# AC_PROG_LD_GNU
+# --------------
+AC_DEFUN([AC_PROG_LD_GNU],
+[AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac])
+with_gnu_ld=$lt_cv_prog_gnu_ld
+])# AC_PROG_LD_GNU
+
+
+# AC_PROG_LD_RELOAD_FLAG
+# ----------------------
+# find reload flag for linker
+# -- PORTME Some linkers may need a different reload flag.
+AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
+[AC_CACHE_CHECK([for $LD option to reload object files],
+ lt_cv_ld_reload_flag,
+ [lt_cv_ld_reload_flag='-r'])
+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
+])# AC_PROG_LD_RELOAD_FLAG
+
+
+# AC_DEPLIBS_CHECK_METHOD
+# -----------------------
+# how to check for library dependencies
+# -- PORTME fill in with the dynamic library characteristics
+AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
+[AC_CACHE_CHECK([how to recognize dependent libraries],
+lt_cv_deplibs_check_method,
+[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',
+ # unless we find 'file', for example because we are cross-compiling.
+ if ( file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | 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
+ ;;
+
+interix[[3-9]]*)
+ # 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* | k*bsd*-gnu)
+ 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
+ ;;
+
+rdos*)
+ 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;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+_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;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
+
+# 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
+ :
+ 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 <jrb3(a)best.com> 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` $xlcverstring'
+ _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 $xlcverstring~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* | 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(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
+ ;;
+ interix[[3-9]]*)
+ _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* | k*bsd*-gnu)
+ 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'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _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)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+
+ # Not sure whether something based on
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
+ # would be better.
+ 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'
+ ;;
+ esac
+ ;;
+ 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*)
+ if test -f /usr/libexec/ld.so; then
+ _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'
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ 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 compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ ;;
+ esac
+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
+
+ 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'
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ ;;
+ esac
+ 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 <<EOF
+int a;
+void foo (void) { a = 0; }
+EOF
+],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
+class Foo
+{
+public:
+ Foo (void) { a = 0; }
+private:
+ int a;
+};
+EOF
+],[$1],[F77],[cat > conftest.$ac_ext <<EOF
+ subroutine foo
+ implicit none
+ integer*4 a
+ a=0
+ return
+ end
+EOF
+],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
+public class foo {
+ private int a;
+ public void bar (void) {
+ a = 0;
+ }
+};
+EOF
+])
+dnl Parse the compiler output and extract the necessary
+dnl objects, libraries and library flags.
+if AC_TRY_EVAL(ac_compile); 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 "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
+ else
+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${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 "$_LT_AC_TAGVAR(postdeps, $1)"; then
+ _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
+ else
+ _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${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 "$_LT_AC_TAGVAR(predep_objects, $1)"; then
+ _LT_AC_TAGVAR(predep_objects, $1)="$p"
+ else
+ _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
+ fi
+ else
+ if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
+ _LT_AC_TAGVAR(postdep_objects, $1)="$p"
+ else
+ _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
+ fi
+ fi
+ ;;
+
+ *) ;; # Ignore the rest.
+
+ esac
+ done
+
+ # Clean up.
+ rm -f a.out a.exe
+else
+ echo "libtool.m4: error: problem compiling $1 test program"
+fi
+
+$rm -f confest.$objext
+
+# PORTME: override above test on systems where it is broken
+ifelse([$1],[CXX],
+[case $host_os in
+interix[[3-9]]*)
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
+ # hack all around it, let's just trust "g++" to DTRT.
+ _LT_AC_TAGVAR(predep_objects,$1)=
+ _LT_AC_TAGVAR(postdep_objects,$1)=
+ _LT_AC_TAGVAR(postdeps,$1)=
+ ;;
+
+linux*)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ #
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+
+solaris*)
+ case $cc_basename in
+ CC*)
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ # 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.
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+esac
+])
+
+case " $_LT_AC_TAGVAR(postdeps, $1) " in
+*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
+esac
+])# AC_LIBTOOL_POSTDEP_PREDEP
+
+# AC_LIBTOOL_LANG_F77_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_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
+AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
+[AC_REQUIRE([AC_PROG_F77])
+AC_LANG_PUSH(Fortran 77)
+
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
+_LT_AC_TAGVAR(always_export_symbols, $1)=no
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_AC_TAGVAR(hardcode_direct, $1)=no
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
+_LT_AC_TAGVAR(module_cmds, $1)=
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_AC_TAGVAR(no_undefined_flag, $1)=
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for f77 test sources.
+ac_ext=f
+
+# Object file extension for compiled f77 test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="\
+ subroutine t
+ return
+ end
+"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="\
+ program t
+ end
+"
+
+# 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"
+CC=${F77-"f77"}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+
+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])
+
+_LT_AC_TAGVAR(GCC, $1)="$G77"
+_LT_AC_TAGVAR(LD, $1)="$LD"
+
+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"
+])# AC_LIBTOOL_LANG_F77_CONFIG
+
+
+# AC_LIBTOOL_LANG_GCJ_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_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
+AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
+[AC_LANG_SAVE
+
+# Source file extension for Java test sources.
+ac_ext=java
+
+# Object file extension for compiled Java test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="class foo {}"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
+
+# 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"
+CC=${GCJ-"gcj"}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+
+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_CONFIG($1)
+
+AC_LANG_RESTORE
+CC="$lt_save_CC"
+])# AC_LIBTOOL_LANG_GCJ_CONFIG
+
+
+# AC_LIBTOOL_LANG_RC_CONFIG
+# -------------------------
+# Ensure that the configuration vars for the Windows resource 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_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
+AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
+[AC_LANG_SAVE
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+_LT_AC_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
+
+# 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.
+_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"
+CC=${RC-"windres"}
+compiler=$CC
+_LT_AC_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+
+AC_LIBTOOL_CONFIG($1)
+
+AC_LANG_RESTORE
+CC="$lt_save_CC"
+])# AC_LIBTOOL_LANG_RC_CONFIG
+
+
+# AC_LIBTOOL_CONFIG([TAGNAME])
+# ----------------------------
+# If TAGNAME is not passed, then create an initial libtool script
+# with a default configuration from the untagged config vars. Otherwise
+# add code to config.status for appending the configuration named by
+# TAGNAME from the matching tagged config vars.
+AC_DEFUN([AC_LIBTOOL_CONFIG],
+[# 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 \
+ _LT_AC_TAGVAR(compiler, $1) \
+ _LT_AC_TAGVAR(CC, $1) \
+ _LT_AC_TAGVAR(LD, $1) \
+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
+ _LT_AC_TAGVAR(old_archive_cmds, $1) \
+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
+ _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) \
+ _LT_AC_TAGVAR(archive_cmds, $1) \
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
+ _LT_AC_TAGVAR(postinstall_cmds, $1) \
+ _LT_AC_TAGVAR(postuninstall_cmds, $1) \
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
+ _LT_AC_TAGVAR(allow_undefined_flag, $1) \
+ _LT_AC_TAGVAR(no_undefined_flag, $1) \
+ _LT_AC_TAGVAR(export_symbols_cmds, $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_automatic, $1) \
+ _LT_AC_TAGVAR(module_cmds, $1) \
+ _LT_AC_TAGVAR(module_expsym_cmds, $1) \
+ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
+ _LT_AC_TAGVAR(fix_srcfile_path, $1) \
+ _LT_AC_TAGVAR(exclude_expsyms, $1) \
+ _LT_AC_TAGVAR(include_expsyms, $1); do
+
+ case $var in
+ _LT_AC_TAGVAR(old_archive_cmds, $1) | \
+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
+ _LT_AC_TAGVAR(archive_cmds, $1) | \
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
+ _LT_AC_TAGVAR(module_cmds, $1) | \
+ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
+ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
+ 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
+
+ifelse([$1], [],
+ [cfgfile="${ofile}T"
+ trap "$rm \"$cfgfile\"; exit 1" 1 2 15
+ $rm -f "$cfgfile"
+ AC_MSG_NOTICE([creating $ofile])],
+ [cfgfile="$ofile"])
+
+ cat <<__EOF__ >> "$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, 2002, 2003, 2004, 2005, 2006, 2007
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Libtool:
+# Originally by Gordon Matzigkeit <gord(a)gnu.ai.mit.edu>, 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_fix_srcfile_path
+
+# 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([LT_AC_PROG_SED])
+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* | k*bsd*-gnu)
+ 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 <<EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+EOF
+
+ if AC_TRY_EVAL(ac_compile); then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $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 <<EOF > 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 <<EOF >> 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* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+ mingw* | cygwin* | 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ _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)=
+ ;;
+ interix[[3-9]]*)
+ # 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* | 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* | k*bsd*-gnu)
+ 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'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _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 '
+ ;;
+ esac
+ ;;
+ 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* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ _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'
+ ;;
+
+ interix[[3-9]]*)
+ # 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* | cygwin* | 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* | k*bsd*-gnu)
+ 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'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ _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)='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ _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)=''
+ ;;
+ esac
+ ;;
+ 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'
+ ;;
+
+ rdos*)
+ _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_REQUIRE([LT_AC_PROG_SED])dnl
+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 <<EOF 1>&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 <kc5tja(a)dolphin.openprojects.net> 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 <jrb3(a)best.com> 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/'\'' -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
+ ;;
+
+ interix[[3-9]]*)
+ _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'
+ ;;
+
+ gnu* | linux* | k*bsd*-gnu)
+ 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
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ *)
+ tmp_sharedflag='-shared' ;;
+ esac
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$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 '"$tmp_sharedflag""$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 <<EOF 1>&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
+ :
+ 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` $xlcverstring'
+ _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 $xlcverstring~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* | 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*)
+ if test -f /usr/libexec/ld.so; then
+ _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
+ else
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
+ 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 and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ 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* | 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'
+
+ 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*
+ echo "$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 <windows.h>
+# #undef WIN32_LEAN_AND_MEAN
+# #include <stdio.h>
+#
+# #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 <cygwin/cygwin_dll.h>
+# 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)
+])
+
+
+# Cheap backport of AS_EXECUTABLE_P and required macros
+# from Autoconf 2.59; we should not use $as_executable_p directly.
+
+# _AS_TEST_PREPARE
+# ----------------
+m4_ifndef([_AS_TEST_PREPARE],
+[m4_defun([_AS_TEST_PREPARE],
+[if test -x / >/dev/null 2>&1; then
+ as_executable_p='test -x'
+else
+ as_executable_p='test -f'
+fi
+])])# _AS_TEST_PREPARE
+
+# AS_EXECUTABLE_P
+# ---------------
+# Check whether a file is executable.
+m4_ifndef([AS_EXECUTABLE_P],
+[m4_defun([AS_EXECUTABLE_P],
+[AS_REQUIRE([_AS_TEST_PREPARE])dnl
+$as_executable_p $1[]dnl
+])])# AS_EXECUTABLE_P
+
+# 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
+IFS=$as_save_IFS
+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_SUBST([SED])
+AC_MSG_RESULT([$SED])
+])
+
+# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
+#
+# Copyright © 2004 Scott James Remnant <scott(a)netsplit.com>.
+#
+# 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
+])],
+ [AC_MSG_RESULT([no])
+ $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 <http://www.freedesktop.org/software/pkgconfig>.])],
+ [$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
+
Added: trunk/gtk/unstable-libyui/autodocs-cc-base.ami
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/autodocs-cc-…
==============================================================================
--- trunk/gtk/unstable-libyui/autodocs-cc-base.ami (added)
+++ trunk/gtk/unstable-libyui/autodocs-cc-base.ami Wed Dec 5 14:14:01 2007
@@ -0,0 +1,24 @@
+# -*- makefile -*- Automake include file
+# $Id: autodocs-cc.ami 23704 2005-06-10 17:36:13Z mvidner $
+
+# This is a common base for autodocs-cc-{,off}.ami
+# and should NOT be used directly
+
+# Builds source documentation for C++ sources
+# Uses doxygen (ydoxygen)
+# PARAMETERS:
+# AUTODOCS_CC: Directories that the C++ autodocs is built from
+# Optional - the default is $(srcdir)/../../src
+# AUTODOCS_DEPS: dependencies of the docs, default is $(AUTODOCS_CC)/*.h
+# AUTODOCS_PARAMS: more params for ydoxygen
+
+AUTODOCS_CC ?= $(srcdir)/../../src
+AUTODOCS_DEPS ?= $(AUTODOCS_CC)/*.h
+
+html_data = index.html $(wildcard *.html *.png) doxygen.css @RPMNAME@.tag
+CLEANFILES = $(html_data) doxygen.log doxygen.conf installdox
+
+doxygen.css @RPMNAME@.tag: index.html
+
+index.html: $(AUTODOCS_DEPS)
+ ${YDOXYGEN} PROJECT_NAME=@RPMNAME@ INPUT=$(AUTODOCS_CC) $(AUTODOCS_PARAMS)
Added: trunk/gtk/unstable-libyui/autodocs-cc-off.ami
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/autodocs-cc-…
==============================================================================
--- trunk/gtk/unstable-libyui/autodocs-cc-off.ami (added)
+++ trunk/gtk/unstable-libyui/autodocs-cc-off.ami Wed Dec 5 14:14:01 2007
@@ -0,0 +1,12 @@
+# -*- makefile -*- Automake include file
+# $Id: autodocs-cc.ami 23704 2005-06-10 17:36:13Z mvidner $
+
+# Builds source documentation for C++ sources.
+# Builds only on demand, intended for leaf packages where the
+# docs is useful for their own maintainer.
+
+# PARAMETERS: see autodocs-cc-base
+
+include $(top_srcdir)/autodocs-cc-base.ami
+
+html: index.html
Added: trunk/gtk/unstable-libyui/autodocs-cc.ami
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/autodocs-cc.…
==============================================================================
--- trunk/gtk/unstable-libyui/autodocs-cc.ami (added)
+++ trunk/gtk/unstable-libyui/autodocs-cc.ami Wed Dec 5 14:14:01 2007
@@ -0,0 +1,14 @@
+# -*- makefile -*- Automake include file
+# $Id: autodocs-cc.ami 28248 2006-02-21 14:14:07Z mvidner $
+
+# Builds source documentation for C++ sources.
+# Builds and installs by default, intended for base packages where the
+# docs is useful for developers of leaf packages.
+
+# PARAMETERS: (additional to those of autodocs-cc-base)
+# AUTODOCS_SUBDIR: htmldir will be $(docdir)/$(AUTODOCS_SUBDIR)/autodocs
+
+include $(top_srcdir)/autodocs-cc-base.ami
+
+htmldir = $(docdir)/$(AUTODOCS_SUBDIR)/autodocs
+html_DATA = $(html_data)
Added: trunk/gtk/unstable-libyui/autodocs-ycp.ami
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/autodocs-ycp…
==============================================================================
--- trunk/gtk/unstable-libyui/autodocs-ycp.ami (added)
+++ trunk/gtk/unstable-libyui/autodocs-ycp.ami Wed Dec 5 14:14:01 2007
@@ -0,0 +1,27 @@
+# -*- makefile -*- Automake include file
+# $Id: autodocs-ycp.ami 33394 2006-10-13 11:51:40Z mvidner $
+
+# Builds source documentation for YCP sources
+# Uses ycpdoc
+# PARAMETERS:
+# AUTODOCS_YCP: Files that the ycp autodocs is built from
+# Optional - the default is $(srcdir)/../../src/*.ycp
+# AUTODOCS_PM: Files that the perl autodocs is built from
+# Optional - the default is $(srcdir)/../../src/*.pm
+
+htmldir = $(docdir)/autodocs
+
+html_DATA = index.html $(wildcard *.html)
+CLEANFILES = $(html_DATA) pod2htm*.tmp
+
+AUTODOCS_YCP ?= $(wildcard $(srcdir)/../../src/*.ycp)
+AUTODOCS_PM ?= $(wildcard $(srcdir)/../../src/*.pm)
+
+index.html: $(AUTODOCS_YCP) $(AUTODOCS_PM)
+#including *.pm, for the index
+ ${YCPDOC} -d. $^
+ for i in $(AUTODOCS_PM); do \
+ b=`basename $$i`; b=$${b%.pm}; \
+ pod2html --title=$$b --infile=$$i --outfile=$$b.html; \
+ echo "<a href='$$b.html'>$$b</a>" > $$b.mod.html; \
+ done
Added: trunk/gtk/unstable-libyui/autogen.sh
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/autogen.sh?r…
==============================================================================
--- trunk/gtk/unstable-libyui/autogen.sh (added)
+++ trunk/gtk/unstable-libyui/autogen.sh Wed Dec 5 14:14:01 2007
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+echo
+echo "--------------------------------------------------------"
+echo "Warning: please use '$ make -f Makefile.cvs' instead ..."
+echo "--------------------------------------------------------"
+echo
+make -f Makefile.cvs
\ No newline at end of file
Added: trunk/gtk/unstable-libyui/config.guess
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/config.guess…
==============================================================================
--- trunk/gtk/unstable-libyui/config.guess (added)
+++ trunk/gtk/unstable-libyui/config.guess Wed Dec 5 14:14:01 2007
@@ -0,0 +1,1510 @@
+#! /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, 2006 Free Software Foundation,
+# Inc.
+
+timestamp='2006-07-02'
+
+# 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 <per(a)bothner.com>.
+# Please send patches to <config-patches(a)gnu.org>. 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 <config-patches(a)gnu.org>."
+
+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 "$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(a)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
+
+case "${UNAME_MACHINE}" in
+ i?86)
+ test -z "$VENDOR" && VENDOR=pc
+ ;;
+ *)
+ test -z "$VENDOR" && VENDOR=unknown
+ ;;
+esac
+test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
+
+# 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 ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
+ macppc:MirBSD:*:*)
+ echo powerpc-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(a)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 <stdio.h> /* 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 <sys/systemcfg.h>
+
+ 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 <stdlib.h>
+ #include <unistd.h>
+
+ 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 <unistd.h>
+ 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/[-(].*//'` ;;
+ amd64)
+ echo x86_64-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*:[3456]*)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ EM64T:Interix*:[3456]*)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ 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}-${VENDOR}-linux-gnu
+ exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ cris:Linux:*:*)
+ echo cris-axis-linux-gnu
+ exit ;;
+ crisv32:Linux:*:*)
+ echo crisv32-axis-linux-gnu
+ exit ;;
+ frv:Linux:*:*)
+ echo frv-${VENDOR}-linux-gnu
+ exit ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
+ exit ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
+ exit ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
+ 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}-${VENDOR}-linux-gnu"; 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}-${VENDOR}-linux-gnu"; exit; }
+ ;;
+ or32:Linux:*:*)
+ echo or32-${VENDOR}-linux-gnu
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-${VENDOR}-linux-gnu
+ exit ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-${VENDOR}-linux-gnu
+ 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="libc1" ; else LIBC="" ; fi
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${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-${VENDOR}-linux-gnu ;;
+ PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
+ *) echo hppa-${VENDOR}-linux-gnu ;;
+ esac
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-${VENDOR}-linux-gnu
+ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
+ exit ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
+ exit ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
+ exit ;;
+ vax:Linux:*:*)
+ echo ${UNAME_MACHINE}-dec-linux-gnu
+ exit ;;
+ x86_64:Linux:*:*)
+ echo x86_64-${VENDOR}-linux-gnu
+ 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}-${VENDOR}-linux-gnu"
+ ;;
+ a.out-i386-linux)
+ echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout"
+ exit ;;
+ coff-i386)
+ echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff"
+ exit ;;
+ "")
+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
+ # one that does not give us useful --help.
+ echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld"
+ exit ;;
+ esac
+ # Determine whether the default compiler is a.out or elf
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <features.h>
+ #ifdef __ELF__
+ # ifdef __GLIBC__
+ # if __GLIBC__ >= 2
+ LIBC=gnu
+ # else
+ LIBC=gnulibc1
+ # endif
+ # else
+ LIBC=gnulibc1
+ # endif
+ #else
+ #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
+ 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}-${VENDOR}-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' </usr/options/cb.name`
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ elif /bin/uname -X 2>/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 <Richard.M.Bartel(a)ccMail.Census.GOV>
+ echo i586-unisys-sysv4
+ exit ;;
+ *:UNIX_System_V:4*:FTX*)
+ # From Gerald Hewes <hewes(a)openmarket.com>.
+ # How about differentiating between stratus architectures? -djm
+ echo hppa1.1-stratus-sysv4
+ exit ;;
+ *:*:*:FTX*)
+ # From seanf(a)swdc.stratus.com.
+ echo i860-stratus-sysv4
+ exit ;;
+ i*86:VOS:*:*)
+ # From Paul.Green(a)stratus.com.
+ echo ${UNAME_MACHINE}-stratus-vos
+ exit ;;
+ *:VOS:*:*)
+ # From Paul.Green(a)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 <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#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 <sys/param.h>
+ 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 <sys/param.h>
+# 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 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.gue…
+and
+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches(a)gnu.org> 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:
Added: trunk/gtk/unstable-libyui/config.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/config.h?rev…
==============================================================================
--- trunk/gtk/unstable-libyui/config.h (added)
+++ trunk/gtk/unstable-libyui/config.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,85 @@
+/* config.h. Generated from config.h.in by configure. */
+/* config.h.in. Generated from configure.in by autoheader. */
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+ systems. This function is required for `alloca.c' support on those systems.
+ */
+/* #undef CRAY_STACKSEG_END */
+
+/* Define to 1 if using `alloca.c'. */
+/* #undef C_ALLOCA */
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+ */
+#define HAVE_ALLOCA_H 1
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Name of package */
+#define PACKAGE "yast2-gtk"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "http://bugs.opensuse.org/"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "yast2-gtk"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "yast2-gtk 2.15.9"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "yast2-gtk"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "2.15.9"
+
+/* defined if using an older SL10.1 era zypp */
+/* #undef PRE_ZYPP_3 */
+
+/* If using the C implementation of alloca, define if you know the
+ direction of stack growth for your system; otherwise it will be
+ automatically deduced at runtime.
+ STACK_DIRECTION > 0 => grows toward higher addresses
+ STACK_DIRECTION < 0 => grows toward lower addresses
+ STACK_DIRECTION = 0 => direction of growth unknown */
+/* #undef STACK_DIRECTION */
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Version number of package */
+#define VERSION "2.15.9"
+
+/* yast version for compile conditionals */
+#define YAST2_VERSION 2015012
Added: trunk/gtk/unstable-libyui/config.h.in
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/config.h.in?…
==============================================================================
--- trunk/gtk/unstable-libyui/config.h.in (added)
+++ trunk/gtk/unstable-libyui/config.h.in Wed Dec 5 14:14:01 2007
@@ -0,0 +1,84 @@
+/* config.h.in. Generated from configure.in by autoheader. */
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+ systems. This function is required for `alloca.c' support on those systems.
+ */
+#undef CRAY_STACKSEG_END
+
+/* Define to 1 if using `alloca.c'. */
+#undef C_ALLOCA
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#undef HAVE_ALLOCA
+
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+ */
+#undef HAVE_ALLOCA_H
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Name of package */
+#undef PACKAGE
+
+/* 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
+
+/* defined if using an older SL10.1 era zypp */
+#undef PRE_ZYPP_3
+
+/* If using the C implementation of alloca, define if you know the
+ direction of stack growth for your system; otherwise it will be
+ automatically deduced at runtime.
+ STACK_DIRECTION > 0 => grows toward higher addresses
+ STACK_DIRECTION < 0 => grows toward lower addresses
+ STACK_DIRECTION = 0 => direction of growth unknown */
+#undef STACK_DIRECTION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Version number of package */
+#undef VERSION
+
+/* yast version for compile conditionals */
+#undef YAST2_VERSION
Added: trunk/gtk/unstable-libyui/config.log
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/config.log?r…
==============================================================================
--- trunk/gtk/unstable-libyui/config.log (added)
+++ trunk/gtk/unstable-libyui/config.log Wed Dec 5 14:14:01 2007
@@ -0,0 +1,940 @@
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by yast2-gtk configure 2.15.9, which was
+generated by GNU Autoconf 2.61. Invocation command line was
+
+ $ ./configure --prefix=/usr --libdir=/usr/lib
+
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = adelia
+uname -m = i686
+uname -r = 2.6.22.12-0.1-default
+uname -s = Linux
+uname -v = #1 SMP 2007/11/06 23:05:18 UTC
+
+/usr/bin/uname -p = unknown
+/bin/uname -X = unknown
+
+/bin/arch = i686
+/usr/bin/arch -k = unknown
+/usr/convex/getsysinfo = unknown
+/usr/bin/hostinfo = unknown
+/bin/machine = unknown
+/usr/bin/oslevel = unknown
+/bin/universe = unknown
+
+PATH: /usr/local/bin
+PATH: /usr/bin
+PATH: /bin
+PATH: /usr/bin/X11
+PATH: /usr/X11R6/bin
+PATH: /usr/games
+PATH: /opt/kde3/bin
+PATH: /usr/lib/jvm/jre/bin
+PATH: /usr/lib/mit/bin
+PATH: /usr/lib/mit/sbin
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+configure:2035: checking build system type
+configure:2053: result: i686-suse-linux-gnu
+configure:2075: checking host system type
+configure:2090: result: i686-suse-linux-gnu
+configure:2112: checking target system type
+configure:2127: result: i686-suse-linux-gnu
+configure:2186: checking for a BSD-compatible install
+configure:2242: result: /usr/bin/install -c
+configure:2253: checking whether build environment is sane
+configure:2296: result: yes
+configure:2311: checking for a thread-safe mkdir -p
+configure:2350: result: /bin/mkdir -p
+configure:2363: checking for gawk
+configure:2379: found /usr/bin/gawk
+configure:2390: result: gawk
+configure:2401: checking whether make sets $(MAKE)
+configure:2422: result: yes
+configure:2605: checking how to create a ustar tar archive
+configure:2618: tar --version
+tar (GNU tar) 1.17
+Copyright (C) 2007 Free Software Foundation, Inc.
+License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.
+
+Written by John Gilmore and Jay Fenlason.
+configure:2621: $? = 0
+configure:2661: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
+configure:2664: $? = 0
+configure:2668: tar -xf - <conftest.tar
+configure:2671: $? = 0
+configure:2684: result: gnutar
+configure:2781: checking for a BSD-compatible install
+configure:2837: result: /usr/bin/install -c
+configure:2849: checking whether ln -s works
+configure:2853: result: yes
+configure:2860: checking whether make sets $(MAKE)
+configure:2881: result: yes
+configure:2895: checking for xgettext
+configure:2913: found /usr/bin/xgettext
+configure:2925: result: /usr/bin/xgettext
+configure:2977: checking for ydoxygen
+configure:2996: found /usr/lib/YaST2/bin/ydoxygen
+configure:3009: result: /usr/lib/YaST2/bin/ydoxygen
+configure:3081: checking for g++
+configure:3097: found /usr/bin/g++
+configure:3108: result: g++
+configure:3139: checking for C++ compiler version
+configure:3146: g++ --version >&5
+g++ (GCC) 4.2.1 (SUSE Linux)
+Copyright (C) 2007 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.
+
+configure:3149: $? = 0
+configure:3156: g++ -v >&5
+Using built-in specs.
+Target: i586-suse-linux
+Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.2.1 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.2 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
+Thread model: posix
+gcc version 4.2.1 (SUSE Linux)
+configure:3159: $? = 0
+configure:3166: g++ -V >&5
+g++: '-V' option must have argument
+configure:3169: $? = 1
+configure:3192: checking for C++ compiler default output file name
+configure:3219: g++ conftest.cpp >&5
+configure:3222: $? = 0
+configure:3260: result: a.out
+configure:3277: checking whether the C++ compiler works
+configure:3287: ./a.out
+configure:3290: $? = 0
+configure:3307: result: yes
+configure:3314: checking whether we are cross compiling
+configure:3316: result: no
+configure:3319: checking for suffix of executables
+configure:3326: g++ -o conftest conftest.cpp >&5
+configure:3329: $? = 0
+configure:3353: result:
+configure:3359: checking for suffix of object files
+configure:3385: g++ -c conftest.cpp >&5
+configure:3388: $? = 0
+configure:3411: result: o
+configure:3415: checking whether we are using the GNU C++ compiler
+configure:3444: g++ -c conftest.cpp >&5
+configure:3450: $? = 0
+configure:3467: result: yes
+configure:3472: checking whether g++ accepts -g
+configure:3502: g++ -c -g conftest.cpp >&5
+configure:3508: $? = 0
+configure:3607: result: yes
+configure:3641: checking for style of include used by make
+configure:3669: result: GNU
+configure:3694: checking dependency style of g++
+configure:3785: result: gcc3
+configure:3804: checking for gawk
+configure:3831: result: gawk
+configure:3890: checking for gcc
+configure:3906: found /usr/bin/gcc
+configure:3917: result: gcc
+configure:4155: checking for C compiler version
+configure:4162: gcc --version >&5
+gcc (GCC) 4.2.1 (SUSE Linux)
+Copyright (C) 2007 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.
+
+configure:4165: $? = 0
+configure:4172: gcc -v >&5
+Using built-in specs.
+Target: i586-suse-linux
+Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.2.1 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.2 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
+Thread model: posix
+gcc version 4.2.1 (SUSE Linux)
+configure:4175: $? = 0
+configure:4182: gcc -V >&5
+gcc: '-V' option must have argument
+configure:4185: $? = 1
+configure:4188: checking whether we are using the GNU C compiler
+configure:4217: gcc -c conftest.c >&5
+configure:4223: $? = 0
+configure:4240: result: yes
+configure:4245: checking whether gcc accepts -g
+configure:4275: gcc -c -g conftest.c >&5
+configure:4281: $? = 0
+configure:4380: result: yes
+configure:4397: checking for gcc option to accept ISO C89
+configure:4471: gcc -c -g -O2 conftest.c >&5
+configure:4477: $? = 0
+configure:4500: result: none needed
+configure:4520: checking dependency style of gcc
+configure:4611: result: gcc3
+configure:4631: checking how to run the C preprocessor
+configure:4671: gcc -E conftest.c
+configure:4677: $? = 0
+configure:4708: gcc -E conftest.c
+conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
+configure:4714: $? = 1
+configure: failed program was:
+| /* confdefs.h. */
+| #define PACKAGE_NAME "yast2-gtk"
+| #define PACKAGE_TARNAME "yast2-gtk"
+| #define PACKAGE_VERSION "2.15.9"
+| #define PACKAGE_STRING "yast2-gtk 2.15.9"
+| #define PACKAGE_BUGREPORT "http://bugs.opensuse.org/"
+| #define PACKAGE "yast2-gtk"
+| #define VERSION "2.15.9"
+| /* end confdefs.h. */
+| #include <ac_nonexistent.h>
+configure:4747: result: gcc -E
+configure:4776: gcc -E conftest.c
+configure:4782: $? = 0
+configure:4813: gcc -E conftest.c
+conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
+configure:4819: $? = 1
+configure: failed program was:
+| /* confdefs.h. */
+| #define PACKAGE_NAME "yast2-gtk"
+| #define PACKAGE_TARNAME "yast2-gtk"
+| #define PACKAGE_VERSION "2.15.9"
+| #define PACKAGE_STRING "yast2-gtk 2.15.9"
+| #define PACKAGE_BUGREPORT "http://bugs.opensuse.org/"
+| #define PACKAGE "yast2-gtk"
+| #define VERSION "2.15.9"
+| /* end confdefs.h. */
+| #include <ac_nonexistent.h>
+configure:4936: checking for a sed that does not truncate output
+configure:4992: result: /usr/bin/sed
+configure:4995: checking for grep that handles long lines and -e
+configure:5069: result: /usr/bin/grep
+configure:5074: checking for egrep
+configure:5152: result: /usr/bin/grep -E
+configure:5168: checking for ld used by gcc
+configure:5235: result: /usr/i586-suse-linux/bin/ld
+configure:5244: checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld
+configure:5259: result: yes
+configure:5264: checking for /usr/i586-suse-linux/bin/ld option to reload object files
+configure:5271: result: -r
+configure:5289: checking for BSD-compatible nm
+configure:5338: result: /usr/bin/nm -B
+configure:5342: checking how to recognize dependent libraries
+configure:5528: result: pass_all
+configure:5765: checking for ANSI C header files
+configure:5795: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5801: $? = 0
+configure:5900: gcc -o conftest -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5903: $? = 0
+configure:5909: ./conftest
+configure:5912: $? = 0
+configure:5929: result: yes
+configure:5953: checking for sys/types.h
+configure:5974: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5980: $? = 0
+configure:5996: result: yes
+configure:5953: checking for sys/stat.h
+configure:5974: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5980: $? = 0
+configure:5996: result: yes
+configure:5953: checking for stdlib.h
+configure:5974: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5980: $? = 0
+configure:5996: result: yes
+configure:5953: checking for string.h
+configure:5974: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5980: $? = 0
+configure:5996: result: yes
+configure:5953: checking for memory.h
+configure:5974: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5980: $? = 0
+configure:5996: result: yes
+configure:5953: checking for strings.h
+configure:5974: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5980: $? = 0
+configure:5996: result: yes
+configure:5953: checking for inttypes.h
+configure:5974: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5980: $? = 0
+configure:5996: result: yes
+configure:5953: checking for stdint.h
+configure:5974: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5980: $? = 0
+configure:5996: result: yes
+configure:5953: checking for unistd.h
+configure:5974: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:5980: $? = 0
+configure:5996: result: yes
+configure:6023: checking dlfcn.h usability
+configure:6040: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:6046: $? = 0
+configure:6060: result: yes
+configure:6064: checking dlfcn.h presence
+configure:6079: gcc -E conftest.c
+configure:6085: $? = 0
+configure:6099: result: yes
+configure:6132: checking for dlfcn.h
+configure:6140: result: yes
+configure:6163: checking how to run the C++ preprocessor
+configure:6199: g++ -E conftest.cpp
+configure:6205: $? = 0
+configure:6236: g++ -E conftest.cpp
+conftest.cpp:21:28: error: ac_nonexistent.h: No such file or directory
+configure:6242: $? = 1
+configure: failed program was:
+| /* confdefs.h. */
+| #define PACKAGE_NAME "yast2-gtk"
+| #define PACKAGE_TARNAME "yast2-gtk"
+| #define PACKAGE_VERSION "2.15.9"
+| #define PACKAGE_STRING "yast2-gtk 2.15.9"
+| #define PACKAGE_BUGREPORT "http://bugs.opensuse.org/"
+| #define PACKAGE "yast2-gtk"
+| #define VERSION "2.15.9"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| /* end confdefs.h. */
+| #include <ac_nonexistent.h>
+configure:6275: result: g++ -E
+configure:6304: g++ -E conftest.cpp
+configure:6310: $? = 0
+configure:6341: g++ -E conftest.cpp
+conftest.cpp:21:28: error: ac_nonexistent.h: No such file or directory
+configure:6347: $? = 1
+configure: failed program was:
+| /* confdefs.h. */
+| #define PACKAGE_NAME "yast2-gtk"
+| #define PACKAGE_TARNAME "yast2-gtk"
+| #define PACKAGE_VERSION "2.15.9"
+| #define PACKAGE_STRING "yast2-gtk 2.15.9"
+| #define PACKAGE_BUGREPORT "http://bugs.opensuse.org/"
+| #define PACKAGE "yast2-gtk"
+| #define VERSION "2.15.9"
+| #define STDC_HEADERS 1
+| #define HAVE_SYS_TYPES_H 1
+| #define HAVE_SYS_STAT_H 1
+| #define HAVE_STDLIB_H 1
+| #define HAVE_STRING_H 1
+| #define HAVE_MEMORY_H 1
+| #define HAVE_STRINGS_H 1
+| #define HAVE_INTTYPES_H 1
+| #define HAVE_STDINT_H 1
+| #define HAVE_UNISTD_H 1
+| #define HAVE_DLFCN_H 1
+| /* end confdefs.h. */
+| #include <ac_nonexistent.h>
+configure:6440: checking for g77
+configure:6470: result: no
+configure:6440: checking for xlf
+configure:6470: result: no
+configure:6440: checking for f77
+configure:6470: result: no
+configure:6440: checking for frt
+configure:6470: result: no
+configure:6440: checking for pgf77
+configure:6470: result: no
+configure:6440: checking for cf77
+configure:6470: result: no
+configure:6440: checking for fort77
+configure:6470: result: no
+configure:6440: checking for fl32
+configure:6470: result: no
+configure:6440: checking for af77
+configure:6470: result: no
+configure:6440: checking for xlf90
+configure:6470: result: no
+configure:6440: checking for f90
+configure:6470: result: no
+configure:6440: checking for pgf90
+configure:6470: result: no
+configure:6440: checking for pghpf
+configure:6470: result: no
+configure:6440: checking for epcf90
+configure:6470: result: no
+configure:6440: checking for gfortran
+configure:6470: result: no
+configure:6440: checking for g95
+configure:6470: result: no
+configure:6440: checking for xlf95
+configure:6470: result: no
+configure:6440: checking for f95
+configure:6470: result: no
+configure:6440: checking for fort
+configure:6470: result: no
+configure:6440: checking for ifort
+configure:6470: result: no
+configure:6440: checking for ifc
+configure:6470: result: no
+configure:6440: checking for efc
+configure:6470: result: no
+configure:6440: checking for pgf95
+configure:6470: result: no
+configure:6440: checking for lf95
+configure:6470: result: no
+configure:6440: checking for ftn
+configure:6470: result: no
+configure:6497: checking for Fortran 77 compiler version
+configure:6504: --version >&5
+./configure: line 6505: --version: command not found
+configure:6507: $? = 127
+configure:6514: -v >&5
+./configure: line 6515: -v: command not found
+configure:6517: $? = 127
+configure:6524: -V >&5
+./configure: line 6525: -V: command not found
+configure:6527: $? = 127
+configure:6535: checking whether we are using the GNU Fortran 77 compiler
+configure:6554: -c conftest.F >&5
+./configure: line 6555: -c: command not found
+configure:6560: $? = 127
+configure: failed program was:
+| program main
+| #ifndef __GNUC__
+| choke me
+| #endif
+|
+| end
+configure:6577: result: no
+configure:6583: checking whether accepts -g
+configure:6600: -c -g conftest.f >&5
+./configure: line 6601: -c: command not found
+configure:6606: $? = 127
+configure: failed program was:
+| program main
+|
+| end
+configure:6622: result: no
+configure:6652: checking the maximum length of command line arguments
+configure:6764: result: 98304
+configure:6776: checking command to parse /usr/bin/nm -B output from gcc object
+configure:6881: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+conftest.c:5: warning: no previous prototype for 'nm_test_func'
+configure:6884: $? = 0
+configure:6888: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm
+configure:6891: $? = 0
+configure:6943: gcc -o conftest -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c conftstm.o >&5
+configure:6946: $? = 0
+configure:6984: result: ok
+configure:6988: checking for objdir
+configure:7003: result: .libs
+configure:7095: checking for ar
+configure:7111: found /usr/bin/ar
+configure:7122: result: ar
+configure:7191: checking for ranlib
+configure:7207: found /usr/bin/ranlib
+configure:7218: result: ranlib
+configure:7287: checking for strip
+configure:7303: found /usr/bin/strip
+configure:7314: result: strip
+configure:7600: checking if gcc supports -fno-rtti -fno-exceptions
+configure:7618: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes -fno-rtti -fno-exceptions conftest.c >&5
+cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
+configure:7622: $? = 0
+configure:7635: result: no
+configure:7650: checking for gcc option to produce PIC
+configure:7882: result: -fPIC
+configure:7890: checking if gcc PIC flag -fPIC works
+configure:7908: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes -fPIC -DPIC conftest.c >&5
+configure:7912: $? = 0
+configure:7925: result: yes
+configure:7953: checking if gcc static flag -static works
+configure:7981: result: yes
+configure:7991: checking if gcc supports -c -o file.o
+configure:8012: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes -o out/conftest2.o conftest.c >&5
+configure:8016: $? = 0
+configure:8038: result: yes
+configure:8064: checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries
+configure:9044: result: yes
+configure:9065: checking whether -lc should be explicitly linked in
+configure:9070: gcc -c -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:9073: $? = 0
+configure:9088: gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1
+configure:9091: $? = 0
+configure:9103: result: no
+configure:9111: checking dynamic linker characteristics
+configure:9713: result: GNU/Linux ld.so
+configure:9722: checking how to hardcode library paths into programs
+configure:9747: result: immediate
+configure:9761: checking whether stripping libraries is possible
+configure:9766: result: yes
+configure:10568: checking if libtool supports shared libraries
+configure:10570: result: yes
+configure:10573: checking whether to build shared libraries
+configure:10594: result: yes
+configure:10597: checking whether to build static libraries
+configure:10601: result: no
+configure:10694: creating libtool
+configure:11282: checking for ld used by g++
+configure:11349: result: /usr/i586-suse-linux/bin/ld
+configure:11358: checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld
+configure:11373: result: yes
+configure:11424: checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries
+configure:12398: result: yes
+configure:12416: g++ -c -g -O2 -Wall -Wformat=2 conftest.cpp >&5
+configure:12419: $? = 0
+configure:12571: checking for g++ option to produce PIC
+configure:12855: result: -fPIC
+configure:12863: checking if g++ PIC flag -fPIC works
+configure:12881: g++ -c -g -O2 -Wall -Wformat=2 -fPIC -DPIC conftest.cpp >&5
+configure:12885: $? = 0
+configure:12898: result: yes
+configure:12926: checking if g++ static flag -static works
+configure:12954: result: yes
+configure:12964: checking if g++ supports -c -o file.o
+configure:12985: g++ -c -g -O2 -Wall -Wformat=2 -o out/conftest2.o conftest.cpp >&5
+configure:12989: $? = 0
+configure:13011: result: yes
+configure:13037: checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries
+configure:13062: result: yes
+configure:13129: checking dynamic linker characteristics
+configure:13679: result: GNU/Linux ld.so
+configure:13688: checking how to hardcode library paths into programs
+configure:13713: result: immediate
+configure:19889: checking for working alloca.h
+configure:19916: gcc -o conftest -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:19922: $? = 0
+configure:19939: result: yes
+configure:19949: checking for alloca
+configure:19996: gcc -o conftest -g -O2 -Wall -Wformat=2 -Wmissing-prototypes conftest.c >&5
+configure:20002: $? = 0
+configure:20019: result: yes
+configure:20246: checking for ANSI C header files
+configure:20410: result: yes
+configure:20426: checking for pkg-config
+configure:20444: found /usr/bin/pkg-config
+configure:20456: result: /usr/bin/pkg-config
+configure:20480: checking for working alloca.h
+configure:20530: result: yes
+configure:20540: checking for alloca
+configure:20610: result: yes
+configure:20837: checking for ANSI C header files
+configure:21001: result: yes
+configure:21012: checking for zypp 3
+configure:21023: result: found
+configure:21135: checking pkg-config is at least version 0.9.0
+configure:21138: result: yes
+configure:21149: checking for ZYPP
+configure:21157: $PKG_CONFIG --exists --print-errors "libzypp "
+configure:21160: $? = 0
+configure:21175: $PKG_CONFIG --exists --print-errors "libzypp "
+configure:21178: $? = 0
+configure:21254: result: yes
+configure:21262: checking for GTK
+configure:21270: $PKG_CONFIG --exists --print-errors "gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 "
+configure:21273: $? = 0
+configure:21288: $PKG_CONFIG --exists --print-errors "gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 "
+configure:21291: $? = 0
+configure:21367: result: yes
+configure:21384: checking for ZYPP
+configure:21489: result: yes
+configure:21503: checking for old libyui
+configure:21511: result: use new lib
+configure:21653: creating ./config.status
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by yast2-gtk config.status 2.15.9, which was
+generated by GNU Autoconf 2.61. Invocation command line was
+
+ CONFIG_FILES =
+ CONFIG_HEADERS =
+ CONFIG_LINKS =
+ CONFIG_COMMANDS =
+ $ ./config.status
+
+on adelia
+
+config.status:709: creating Makefile
+config.status:709: creating src/Makefile
+config.status:709: creating config.h
+config.status:989: executing depfiles commands
+
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+
+ac_cv_build=i686-suse-linux-gnu
+ac_cv_c_compiler_gnu=yes
+ac_cv_cxx_compiler_gnu=yes
+ac_cv_env_CCC_set=
+ac_cv_env_CCC_value=
+ac_cv_env_CC_set=
+ac_cv_env_CC_value=
+ac_cv_env_CFLAGS_set=
+ac_cv_env_CFLAGS_value=
+ac_cv_env_CPPFLAGS_set=
+ac_cv_env_CPPFLAGS_value=
+ac_cv_env_CPP_set=
+ac_cv_env_CPP_value=
+ac_cv_env_CXXCPP_set=
+ac_cv_env_CXXCPP_value=
+ac_cv_env_CXXFLAGS_set=
+ac_cv_env_CXXFLAGS_value=
+ac_cv_env_CXX_set=
+ac_cv_env_CXX_value=
+ac_cv_env_F77_set=
+ac_cv_env_F77_value=
+ac_cv_env_FFLAGS_set=
+ac_cv_env_FFLAGS_value=
+ac_cv_env_GTK_CFLAGS_set=
+ac_cv_env_GTK_CFLAGS_value=
+ac_cv_env_GTK_LIBS_set=
+ac_cv_env_GTK_LIBS_value=
+ac_cv_env_LDFLAGS_set=
+ac_cv_env_LDFLAGS_value=
+ac_cv_env_LIBS_set=
+ac_cv_env_LIBS_value=
+ac_cv_env_PKG_CONFIG_PATH_set=
+ac_cv_env_PKG_CONFIG_PATH_value=
+ac_cv_env_PKG_CONFIG_set=
+ac_cv_env_PKG_CONFIG_value=
+ac_cv_env_ZYPP_CFLAGS_set=
+ac_cv_env_ZYPP_CFLAGS_value=
+ac_cv_env_ZYPP_LIBS_set=
+ac_cv_env_ZYPP_LIBS_value=
+ac_cv_env_build_alias_set=
+ac_cv_env_build_alias_value=
+ac_cv_env_host_alias_set=
+ac_cv_env_host_alias_value=
+ac_cv_env_target_alias_set=
+ac_cv_env_target_alias_value=
+ac_cv_f77_compiler_gnu=no
+ac_cv_func_alloca_works=yes
+ac_cv_header_dlfcn_h=yes
+ac_cv_header_inttypes_h=yes
+ac_cv_header_memory_h=yes
+ac_cv_header_stdc=yes
+ac_cv_header_stdint_h=yes
+ac_cv_header_stdlib_h=yes
+ac_cv_header_string_h=yes
+ac_cv_header_strings_h=yes
+ac_cv_header_sys_stat_h=yes
+ac_cv_header_sys_types_h=yes
+ac_cv_header_unistd_h=yes
+ac_cv_host=i686-suse-linux-gnu
+ac_cv_objext=o
+ac_cv_path_EGREP='/usr/bin/grep -E'
+ac_cv_path_GREP=/usr/bin/grep
+ac_cv_path_PKG_CONFIG=/usr/bin/pkg-config
+ac_cv_path_XGETTEXT=/usr/bin/xgettext
+ac_cv_path_YDOXYGEN=/usr/lib/YaST2/bin/ydoxygen
+ac_cv_path_install='/usr/bin/install -c'
+ac_cv_path_mkdir=/bin/mkdir
+ac_cv_prog_AWK=gawk
+ac_cv_prog_CPP='gcc -E'
+ac_cv_prog_CXXCPP='g++ -E'
+ac_cv_prog_ac_ct_AR=ar
+ac_cv_prog_ac_ct_CC=gcc
+ac_cv_prog_ac_ct_CXX=g++
+ac_cv_prog_ac_ct_RANLIB=ranlib
+ac_cv_prog_ac_ct_STRIP=strip
+ac_cv_prog_cc_c89=
+ac_cv_prog_cc_g=yes
+ac_cv_prog_cxx_g=yes
+ac_cv_prog_f77_g=no
+ac_cv_prog_make_make_set=yes
+ac_cv_target=i686-suse-linux-gnu
+ac_cv_working_alloca_h=yes
+am_cv_CC_dependencies_compiler_type=gcc3
+am_cv_CXX_dependencies_compiler_type=gcc3
+am_cv_prog_tar_ustar=gnutar
+lt_cv_deplibs_check_method=pass_all
+lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_ld_reload_flag=-r
+lt_cv_objdir=.libs
+lt_cv_path_LD=/usr/i586-suse-linux/bin/ld
+lt_cv_path_LDCXX=/usr/i586-suse-linux/bin/ld
+lt_cv_path_NM='/usr/bin/nm -B'
+lt_cv_path_SED=/usr/bin/sed
+lt_cv_prog_compiler_c_o=yes
+lt_cv_prog_compiler_c_o_CXX=yes
+lt_cv_prog_compiler_rtti_exceptions=no
+lt_cv_prog_gnu_ld=yes
+lt_cv_prog_gnu_ldcxx=yes
+lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'''
+lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\'''
+lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\'''
+lt_cv_sys_max_cmd_len=98304
+lt_lt_cv_prog_compiler_c_o='"yes"'
+lt_lt_cv_prog_compiler_c_o_CXX='"yes"'
+lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"'
+lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'\''"'
+lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"'
+pkg_cv_GTK_CFLAGS='-pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 '
+pkg_cv_GTK_LIBS='-pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0 '
+pkg_cv_ZYPP_CFLAGS=' '
+pkg_cv_ZYPP_LIBS='-lzypp '
+
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+
+ACLOCAL='${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run aclocal-1.10'
+AGENT_LIBADD='-L$(libdir) -lscr'
+ALLOCA=''
+AMDEPBACKSLASH='\'
+AMDEP_FALSE='#'
+AMDEP_TRUE=''
+AMTAR='${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run tar'
+AR='ar'
+AUTOCONF='${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run autoconf'
+AUTOHEADER='${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run autoheader'
+AUTOMAKE='${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run automake-1.10'
+AWK='gawk'
+CC='gcc'
+CCDEPMODE='depmode=gcc3'
+CFLAGS='-g -O2 -Wall -Wformat=2 -Wmissing-prototypes'
+CPP='gcc -E'
+CPPFLAGS=''
+CREATE_PKGCONFIG_FALSE=''
+CREATE_PKGCONFIG_NOARCH_FALSE=''
+CREATE_PKGCONFIG_NOARCH_TRUE='#'
+CREATE_PKGCONFIG_TRUE='#'
+CXX='g++'
+CXXCPP='g++ -E'
+CXXDEPMODE='depmode=gcc3'
+CXXFLAGS='-g -O2 -Wall -Wformat=2'
+CYGPATH_W='echo'
+DEFS='-DHAVE_CONFIG_H'
+DEPDIR='.deps'
+ECHO='echo'
+ECHO_C=''
+ECHO_N='-n'
+ECHO_T=''
+EGREP='/usr/bin/grep -E'
+EXEEXT=''
+F77=''
+FFLAGS=''
+GREP='/usr/bin/grep'
+GTK_CFLAGS='-pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 '
+GTK_LIBS='-pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0 '
+INSTALL_DATA='${INSTALL} -m 644'
+INSTALL_PROGRAM='${INSTALL}'
+INSTALL_SCRIPT='${INSTALL}'
+INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
+LDFLAGS=''
+LIBOBJS=''
+LIBS=''
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LN_S='ln -s'
+LTLIBOBJS=''
+MAINTAINER='Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt> Michael Meeks <michael.meeks(a)novell.com>'
+MAKEINFO='${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run makeinfo'
+OBJEXT='o'
+PACKAGE='yast2-gtk'
+PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
+PACKAGE_NAME='yast2-gtk'
+PACKAGE_STRING='yast2-gtk 2.15.9'
+PACKAGE_TARNAME='yast2-gtk'
+PACKAGE_VERSION='2.15.9'
+PATH_SEPARATOR=':'
+PKG_CONFIG='/usr/bin/pkg-config'
+PKG_CONFIG_PATH=''
+PYUI_LIBS='-lpy2UI'
+RANLIB='ranlib'
+RPMNAME='yast2-gtk'
+SED='/usr/bin/sed'
+SET_MAKE=''
+SHELL='/bin/sh'
+STRIP='strip'
+STYLESHEET_CSS='/usr/share/YaST2/data/docbook/css/yast2docs.css'
+STYLESHEET_HTML='/usr/share/YaST2/data/docbook/stylesheets/customize-html.xsl'
+STYLESHEET_PDF='/usr/share/YaST2/data/docbook/stylesheets/customize-fo.xsl'
+STYLESHEET_YCPDOC='/usr/share/YaST2/data/docbook/stylesheets/ycpdoc.xsl'
+STYLESHEET_YDOC='/usr/share/YaST2/data/docbook/stylesheets/ydoc.xsl'
+VERSION='2.15.9'
+XGETTEXT='/usr/bin/xgettext'
+Y2DEVTOOLS_PREFIX='/usr'
+YDOXYGEN='/usr/lib/YaST2/bin/ydoxygen'
+ZYPP_CFLAGS=' '
+ZYPP_LIBS='-lzypp '
+ac_ct_CC='gcc'
+ac_ct_CXX='g++'
+ac_ct_F77=''
+agentdir='${prefix}/lib/YaST2/servers_non_y2'
+am__fastdepCC_FALSE='#'
+am__fastdepCC_TRUE=''
+am__fastdepCXX_FALSE='#'
+am__fastdepCXX_TRUE=''
+am__include='include'
+am__isrc=''
+am__leading_dot='.'
+am__quote=''
+am__tar='tar --format=ustar -chf - "$$tardir"'
+am__untar='tar -xf -'
+bindir='${exec_prefix}/bin'
+build='i686-suse-linux-gnu'
+build_alias=''
+build_cpu='i686'
+build_os='linux-gnu'
+build_vendor='suse'
+clientdir='${prefix}/share/YaST2/clients'
+datadir='${datarootdir}'
+datarootdir='${prefix}/share'
+desktopdir='${prefix}/share/applications/YaST2'
+docdir='${prefix}/share/doc/packages/yast2-gtk'
+dvidir='${docdir}'
+exec_prefix='${prefix}'
+execcompdir='${prefix}/lib/YaST2'
+fillupdir='/var/adm/fillup-templates'
+host='i686-suse-linux-gnu'
+host_alias=''
+host_cpu='i686'
+host_os='linux-gnu'
+host_vendor='suse'
+htmldir='${docdir}'
+imagedir='${prefix}/share/YaST2/images'
+includedir='${prefix}/include/YaST2'
+infodir='${datarootdir}/info'
+install_sh='$(SHELL) /home/rick2/Documents/yast/gtk/unstable/install-sh'
+libdir='/usr/lib'
+libexecdir='${exec_prefix}/libexec'
+localedir='${prefix}/share/YaST2/locale'
+localstatedir='${prefix}/var'
+mandir='${prefix}/share/man'
+mkdir_p='/bin/mkdir -p'
+moduledir='${prefix}/share/YaST2/modules'
+oldincludedir='/usr/include'
+pdfdir='${docdir}'
+pkgconfigdatadir='${datadir}/pkgconfig'
+pkgconfigdir='${libdir}/pkgconfig'
+plugindir='${libdir}/YaST2/plugin'
+potdir='${docdir}/pot'
+prefix='/usr'
+program_transform_name='s,x,x,'
+psdir='${docdir}'
+sbindir='${exec_prefix}/sbin'
+schemadir='${prefix}/share/YaST2/schema'
+scrconfdir='${prefix}/share/YaST2/scrconf'
+sharedstatedir='${prefix}/com'
+sysconfdir='${prefix}/etc'
+target='i686-suse-linux-gnu'
+target_alias=''
+target_cpu='i686'
+target_os='linux-gnu'
+target_vendor='suse'
+themedir='${prefix}/share/YaST2/theme'
+yast2dir='${prefix}/share/YaST2'
+ybindir='${prefix}/lib/YaST2/bin'
+ydatadir='${prefix}/share/YaST2/data'
+yncludedir='${prefix}/share/YaST2/include'
+ystartupdir='${prefix}/lib/YaST2'
+
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+
+#define PACKAGE_NAME "yast2-gtk"
+#define PACKAGE_TARNAME "yast2-gtk"
+#define PACKAGE_VERSION "2.15.9"
+#define PACKAGE_STRING "yast2-gtk 2.15.9"
+#define PACKAGE_BUGREPORT "http://bugs.opensuse.org/"
+#define PACKAGE "yast2-gtk"
+#define VERSION "2.15.9"
+#define STDC_HEADERS 1
+#define HAVE_SYS_TYPES_H 1
+#define HAVE_SYS_STAT_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRING_H 1
+#define HAVE_MEMORY_H 1
+#define HAVE_STRINGS_H 1
+#define HAVE_INTTYPES_H 1
+#define HAVE_STDINT_H 1
+#define HAVE_UNISTD_H 1
+#define HAVE_DLFCN_H 1
+#define HAVE_ALLOCA_H 1
+#define HAVE_ALLOCA 1
+#define STDC_HEADERS 1
+#define HAVE_ALLOCA_H 1
+#define HAVE_ALLOCA 1
+#define STDC_HEADERS 1
+#define YAST2_VERSION 2015012
+
+configure: exit 0
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by yast2-gtk config.status 2.15.9, which was
+generated by GNU Autoconf 2.61. Invocation command line was
+
+ CONFIG_FILES =
+ CONFIG_HEADERS =
+ CONFIG_LINKS =
+ CONFIG_COMMANDS =
+ $ ./config.status src/Makefile depfiles
+
+on adelia
+
+config.status:709: creating src/Makefile
+config.status:989: executing depfiles commands
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by yast2-gtk config.status 2.15.9, which was
+generated by GNU Autoconf 2.61. Invocation command line was
+
+ CONFIG_FILES =
+ CONFIG_HEADERS =
+ CONFIG_LINKS =
+ CONFIG_COMMANDS =
+ $ ./config.status src/Makefile depfiles
+
+on adelia
+
+config.status:709: creating src/Makefile
+config.status:989: executing depfiles commands
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by yast2-gtk config.status 2.15.9, which was
+generated by GNU Autoconf 2.61. Invocation command line was
+
+ CONFIG_FILES =
+ CONFIG_HEADERS =
+ CONFIG_LINKS =
+ CONFIG_COMMANDS =
+ $ ./config.status src/Makefile depfiles
+
+on adelia
+
+config.status:709: creating src/Makefile
+config.status:989: executing depfiles commands
+
+## ---------------------- ##
+## Running config.status. ##
+## ---------------------- ##
+
+This file was extended by yast2-gtk config.status 2.15.9, which was
+generated by GNU Autoconf 2.61. Invocation command line was
+
+ CONFIG_FILES =
+ CONFIG_HEADERS =
+ CONFIG_LINKS =
+ CONFIG_COMMANDS =
+ $ ./config.status src/Makefile depfiles
+
+on adelia
+
+config.status:709: creating src/Makefile
+config.status:989: executing depfiles commands
Added: trunk/gtk/unstable-libyui/config.status
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/config.statu…
==============================================================================
--- trunk/gtk/unstable-libyui/config.status (added)
+++ trunk/gtk/unstable-libyui/config.status Wed Dec 5 14:14:01 2007
@@ -0,0 +1,1125 @@
+#! /bin/sh
+# Generated by configure.
+# 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-/bin/sh}
+## --------------------- ##
+## M4sh Initialization. ##
+## --------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+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+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+
+
+# PATH needs CR
+# 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
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+as_nl='
+'
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+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
+IFS=$as_save_IFS
+
+ ;;
+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_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ { (exit 1); exit 1; }
+fi
+
+# Work around bugs in pre-3.0 UWIN ksh.
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
+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) >/dev/null 2>&1 && $as_unset $as_var
+ fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; 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'`
+
+# CDPATH.
+$as_unset CDPATH
+
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
+
+ # 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 after each line using $LINENO; the second 'sed'
+ # does the real work. The second script uses 'N' to pair each
+ # line-number line with the line containing $LINENO, 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
+ # scripts with optimization help from Paolo Bonzini. Blame Lee
+ # E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\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 sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in
+-n*)
+ case `echo 'x\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ *) ECHO_C='\c';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir
+fi
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+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$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p=:
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# 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'"
+
+
+exec 6>&1
+
+# Save the log message, to keep $[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by yast2-gtk $as_me 2.15.9, which was
+generated by GNU Autoconf 2.61. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+# Files that config.status was made for.
+config_files=" Makefile src/Makefile"
+config_headers=" config.h"
+config_commands=" depfiles"
+
+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 and configuration settings, 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 <bug-autoconf(a)gnu.org>."
+
+ac_cs_version="\
+yast2-gtk config.status 2.15.9
+configured by ./configure, generated by GNU Autoconf 2.61,
+ with options \"'--prefix=/usr' '--libdir=/usr/lib'\"
+
+Copyright (C) 2006 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='/home/rick2/Documents/yast/gtk/unstable'
+srcdir='.'
+INSTALL='/usr/bin/install -c -p'
+MKDIR_P='/bin/mkdir -p'
+# 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
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ echo "$ac_cs_version"; exit ;;
+ --debug | --debu | --deb | --de | --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;;
+ --he | --h)
+ # Conflict between --help and --header
+ { 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 ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) { 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"
+ ac_need_defaults=false ;;
+
+ 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
+
+if $ac_cs_recheck; then
+ echo "running CONFIG_SHELL=/bin/sh /bin/sh ./configure " '--prefix=/usr' '--libdir=/usr/lib' $ac_configure_extra_args " --no-create --no-recursion" >&6
+ CONFIG_SHELL=/bin/sh
+ export CONFIG_SHELL
+ exec /bin/sh "./configure" '--prefix=/usr' '--libdir=/usr/lib' $ac_configure_extra_args --no-create --no-recursion
+fi
+
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ echo "$ac_log"
+} >&5
+
+#
+# INIT-COMMANDS
+#
+AMDEP_TRUE="" ac_aux_dir="."
+
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+
+ *) { { 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 against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp=
+ trap 'exit_status=$?
+ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$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 "./confXXXXXX") 2>/dev/null` &&
+ test -n "$tmp" && test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} ||
+{
+ echo "$me: cannot create a temporary directory in ." >&2
+ { (exit 1); exit 1; }
+}
+
+#
+# Set up the sed scripts for 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
+
+cat >"$tmp/subs-1.sed" <<\CEOF
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s,@SHELL@,|#_!!_#|/bin/sh,g
+s,@PATH_SEPARATOR@,|#_!!_#|:,g
+s,@PACKAGE_NAME@,|#_!!_#|yast2-gtk,g
+s,@PACKAGE_TARNAME@,|#_!!_#|yast2-gtk,g
+s,@PACKAGE_VERSION@,|#_!!_#|2.15.9,g
+s,@PACKAGE_STRING@,|#_!!_#|yast2-gtk 2.15.9,g
+s,@PACKAGE_BUGREPORT@,|#_!!_#|http://bugs.opensuse.org/,g
+s,@exec_prefix@,|#_!!_#|${prefix},g
+s,@prefix@,|#_!!_#|/usr,g
+s,@program_transform_name@,|#_!!_#|s\,x\,x\,,g
+s,@bindir@,|#_!!_#|${exec_prefix}/bin,g
+s,@sbindir@,|#_!!_#|${exec_prefix}/sbin,g
+s,@libexecdir@,|#_!!_#|${exec_prefix}/libexec,g
+s,@datarootdir@,|#_!!_#|${prefix}/share,g
+s,@datadir@,|#_!!_#|${datarootdir},g
+s,@sysconfdir@,|#_!!_#|${prefix}/etc,g
+s,@sharedstatedir@,|#_!!_#|${prefix}/com,g
+s,@localstatedir@,|#_!!_#|${prefix}/var,g
+s,@includedir@,|#_!!_#|${prefix}/include/YaST2,g
+s,@oldincludedir@,|#_!!_#|/usr/include,g
+s,@docdir@,|#_!!_#|${prefix}/share/doc/packages/yast2-gtk,g
+s,@infodir@,|#_!!_#|${datarootdir}/info,g
+s,@htmldir@,|#_!!_#|${docdir},g
+s,@dvidir@,|#_!!_#|${docdir},g
+s,@pdfdir@,|#_!!_#|${docdir},g
+s,@psdir@,|#_!!_#|${docdir},g
+s,@libdir@,|#_!!_#|/usr/lib,g
+s,@localedir@,|#_!!_#|${prefix}/share/YaST2/locale,g
+s,@mandir@,|#_!!_#|${prefix}/share/man,g
+s,@DEFS@,|#_!!_#|-DHAVE_CONFIG_H,g
+s,@ECHO_C@,|#_!!_#|,g
+s,@ECHO_N@,|#_!!_#|-n,g
+s,@ECHO_T@,|#_!!_#|,g
+s,@LIBS@,|#_!!_#|,g
+s,@build_alias@,|#_!!_#|,g
+s,@host_alias@,|#_!!_#|,g
+s,@target_alias@,|#_!!_#|,g
+s,@build@,|#_!!_#|i686-suse-linux-gnu,g
+s,@build_cpu@,|#_!!_#|i686,g
+s,@build_vendor@,|#_!!_#|suse,g
+s,@build_os@,|#_!!_#|linux-gnu,g
+s,@host@,|#_!!_#|i686-suse-linux-gnu,g
+s,@host_cpu@,|#_!!_#|i686,g
+s,@host_vendor@,|#_!!_#|suse,g
+s,@host_os@,|#_!!_#|linux-gnu,g
+s,@target@,|#_!!_#|i686-suse-linux-gnu,g
+s,@target_cpu@,|#_!!_#|i686,g
+s,@target_vendor@,|#_!!_#|suse,g
+s,@target_os@,|#_!!_#|linux-gnu,g
+s,@INSTALL_PROGRAM@,|#_!!_#|${INSTALL},g
+s,@INSTALL_SCRIPT@,|#_!!_#|${INSTALL},g
+s,@INSTALL_DATA@,|#_!!_#|${INSTALL} -m 644,g
+s,@am__isrc@,|#_!!_#|,g
+s,@CYGPATH_W@,|#_!!_#|echo,g
+s,@PACKAGE@,|#_!!_#|yast2-gtk,g
+s,@VERSION@,|#_!!_#|2.15.9,g
+s,@ACLOCAL@,|#_!!_#|${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run aclocal-1.10,g
+s,@AUTOCONF@,|#_!!_#|${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run autoconf,g
+s,@AUTOMAKE@,|#_!!_#|${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run automake-1.10,g
+s,@AUTOHEADER@,|#_!!_#|${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run autoheader,g
+s,@MAKEINFO@,|#_!!_#|${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run makeinfo,g
+s,@install_sh@,|#_!!_#|$(SHELL) /home/rick2/Documents/yast/gtk/unstable/install-sh,g
+s,@STRIP@,|#_!!_#|strip,g
+s,@INSTALL_STRIP_PROGRAM@,|#_!!_#|$(install_sh) -c -s,g
+s,@mkdir_p@,|#_!!_#|/bin/mkdir -p,g
+s,@AWK@,|#_!!_#|gawk,g
+s,@SET_MAKE@,|#_!!_#|,g
+s,@am__leading_dot@,|#_!!_#|.,g
+s,@AMTAR@,|#_!!_#|${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run tar,g
+s,@am__tar@,|#_!!_#|tar --format=ustar -chf - "$$tardir",g
+s,@am__untar@,|#_!!_#|tar -xf -,g
+s,@RPMNAME@,|#_!!_#|yast2-gtk,g
+s,@MAINTAINER@,|#_!!_#|Ricardo Cruz <rpmcruz(a)|#_!!_#|alunos.dcc.fc.up.pt> Michael Meeks <michael.meeks(a)|#_!!_#|novell.com>,g
+s,@pkgconfigdir@,|#_!!_#|${libdir}/pkgconfig,g
+s,@pkgconfigdatadir@,|#_!!_#|${datadir}/pkgconfig,g
+s,@yast2dir@,|#_!!_#|${prefix}/share/YaST2,g
+s,@ybindir@,|#_!!_#|${prefix}/lib/YaST2/bin,g
+s,@ystartupdir@,|#_!!_#|${prefix}/lib/YaST2,g
+s,@plugindir@,|#_!!_#|${libdir}/YaST2/plugin,g
+s,@potdir@,|#_!!_#|${docdir}/pot,g
+s,@execcompdir@,|#_!!_#|${prefix}/lib/YaST2,g
+s,@ydatadir@,|#_!!_#|${prefix}/share/YaST2/data,g
+s,@imagedir@,|#_!!_#|${prefix}/share/YaST2/images,g
+s,@themedir@,|#_!!_#|${prefix}/share/YaST2/theme,g
+s,@clientdir@,|#_!!_#|${prefix}/share/YaST2/clients,g
+s,@moduledir@,|#_!!_#|${prefix}/share/YaST2/modules,g
+s,@yncludedir@,|#_!!_#|${prefix}/share/YaST2/include,g
+s,@schemadir@,|#_!!_#|${prefix}/share/YaST2/schema,g
+s,@scrconfdir@,|#_!!_#|${prefix}/share/YaST2/scrconf,g
+s,@agentdir@,|#_!!_#|${prefix}/lib/YaST2/servers_non_y2,g
+s,@desktopdir@,|#_!!_#|${prefix}/share/applications/YaST2,g
+s,@fillupdir@,|#_!!_#|/var/adm/fillup-templates,g
+s,@LN_S@,|#_!!_#|ln -s,g
+s,@PKG_CONFIG_PATH@,|#_!!_#|,g
+s,@XGETTEXT@,|#_!!_#|/usr/bin/xgettext,g
+s,@Y2DEVTOOLS_PREFIX@,|#_!!_#|/usr,g
+s,@CREATE_PKGCONFIG_TRUE@,|#_!!_#|#,g
+CEOF
+cat >"$tmp/subs-2.sed" <<\CEOF
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
+s,@CREATE_PKGCONFIG_FALSE@,|#_!!_#|,g
+s,@CREATE_PKGCONFIG_NOARCH_TRUE@,|#_!!_#|#,g
+s,@CREATE_PKGCONFIG_NOARCH_FALSE@,|#_!!_#|,g
+s,@STYLESHEET_HTML@,|#_!!_#|/usr/share/YaST2/data/docbook/stylesheets/customize-html.xsl,g
+s,@STYLESHEET_PDF@,|#_!!_#|/usr/share/YaST2/data/docbook/stylesheets/customize-fo.xsl,g
+s,@STYLESHEET_CSS@,|#_!!_#|/usr/share/YaST2/data/docbook/css/yast2docs.css,g
+s,@STYLESHEET_YDOC@,|#_!!_#|/usr/share/YaST2/data/docbook/stylesheets/ydoc.xsl,g
+s,@STYLESHEET_YCPDOC@,|#_!!_#|/usr/share/YaST2/data/docbook/stylesheets/ycpdoc.xsl,g
+s,@YDOXYGEN@,|#_!!_#|/usr/lib/YaST2/bin/ydoxygen,g
+s,@CXX@,|#_!!_#|g++,g
+s,@CXXFLAGS@,|#_!!_#|-g -O2 -Wall -Wformat=2,g
+s,@LDFLAGS@,|#_!!_#|,g
+s,@CPPFLAGS@,|#_!!_#|,g
+s,@ac_ct_CXX@,|#_!!_#|g++,g
+s,@EXEEXT@,|#_!!_#|,g
+s,@OBJEXT@,|#_!!_#|o,g
+s,@DEPDIR@,|#_!!_#|.deps,g
+s,@am__include@,|#_!!_#|include,g
+s,@am__quote@,|#_!!_#|,g
+s,@AMDEP_TRUE@,|#_!!_#|,g
+s,@AMDEP_FALSE@,|#_!!_#|#,g
+s,@AMDEPBACKSLASH@,|#_!!_#|\\,g
+s,@CXXDEPMODE@,|#_!!_#|depmode=gcc3,g
+s,@am__fastdepCXX_TRUE@,|#_!!_#|,g
+s,@am__fastdepCXX_FALSE@,|#_!!_#|#,g
+s,@CC@,|#_!!_#|gcc,g
+s,@CFLAGS@,|#_!!_#|-g -O2 -Wall -Wformat=2 -Wmissing-prototypes,g
+s,@ac_ct_CC@,|#_!!_#|gcc,g
+s,@CCDEPMODE@,|#_!!_#|depmode=gcc3,g
+s,@am__fastdepCC_TRUE@,|#_!!_#|,g
+s,@am__fastdepCC_FALSE@,|#_!!_#|#,g
+s,@CPP@,|#_!!_#|gcc -E,g
+s,@AGENT_LIBADD@,|#_!!_#|-L$(libdir) -lscr,g
+s,@SED@,|#_!!_#|/usr/bin/sed,g
+s,@GREP@,|#_!!_#|/usr/bin/grep,g
+s,@EGREP@,|#_!!_#|/usr/bin/grep -E,g
+s,@ECHO@,|#_!!_#|echo,g
+s,@AR@,|#_!!_#|ar,g
+s,@RANLIB@,|#_!!_#|ranlib,g
+s,@CXXCPP@,|#_!!_#|g++ -E,g
+s,@F77@,|#_!!_#|,g
+s,@FFLAGS@,|#_!!_#|,g
+s,@ac_ct_F77@,|#_!!_#|,g
+s,@LIBTOOL@,|#_!!_#|$(SHELL) $(top_builddir)/libtool,g
+s,@ALLOCA@,|#_!!_#|,g
+s,@PKG_CONFIG@,|#_!!_#|/usr/bin/pkg-config,g
+s,@ZYPP_CFLAGS@,|#_!!_#| ,g
+s,@ZYPP_LIBS@,|#_!!_#|-lzypp ,g
+s,@GTK_CFLAGS@,|#_!!_#|-pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 ,g
+s,@GTK_LIBS@,|#_!!_#|-pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0 ,g
+s,@PYUI_LIBS@,|#_!!_#|-lpy2UI,g
+s,@LIBOBJS@,|#_!!_#|,g
+s,@LTLIBOBJS@,|#_!!_#|,g
+:end
+s/|#_!!_#|//g
+CEOF
+fi # test -n "$CONFIG_FILES"
+
+
+for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
+echo "$as_me: error: Invalid tag $ac_tag." >&2;}
+ { (exit 1); exit 1; }; };;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
+echo "$as_me: error: cannot find input file: $ac_f" >&2;}
+ { (exit 1); exit 1; }; };;
+ esac
+ ac_file_inputs="$ac_file_inputs $ac_f"
+ done
+
+ # 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. */
+ configure_input="Generated from "`IFS=:
+ echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+ fi
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$tmp/stdin";;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$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'`
+ { as_dir="$ac_dir"
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$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'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+echo "$as_me: error: cannot create directory $as_dir" >&2;}
+ { (exit 1); exit 1; }; }; }
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+
+case `sed -n '/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p
+' $ac_file_inputs` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+ ac_datarootdir_hack='
+ s&@datadir@&${datarootdir}&g
+ s&@docdir@&${prefix}/share/doc/packages/yast2-gtk&g
+ s&@infodir@&${datarootdir}/info&g
+ s&@localedir@&${prefix}/share/YaST2/locale&g
+ s&@mandir@&${prefix}/share/man&g
+ s&\${datarootdir}&${prefix}/share&g' ;;
+esac
+ sed "/^[ ]*VPATH[ ]*=/{
+s/:*\$(srcdir):*/:/
+s/:*\${srcdir}:*/:/
+s/:*@srcdir@:*/:/
+s/^\([^=]*=[ ]*\):*/\1/
+s/:*$//
+s/^[^=]*=[ ]*$//
+}
+
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s&@configure_input@&$configure_input&;t t
+s&@top_builddir@&$ac_top_builddir_sub&;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&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
+ { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined." >&5
+echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined." >&2;}
+
+ rm -f "$tmp/stdin"
+ case $ac_file in
+ -) cat "$tmp/out"; rm -f "$tmp/out";;
+ *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
+ esac
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
+ # First, check the format of the line:
+ cat >"$tmp/defines.sed" <<\CEOF
+/^[ ]*#[ ]*undef[ ][ ]*[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*[ ]*$/b def
+/^[ ]*#[ ]*define[ ][ ]*[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*[( ]/b def
+b
+:def
+s/$/ /
+s,^\([ #]*\)[^ ]*\([ ]*PACKAGE_NAME\)[ (].*,\1define\2 "yast2-gtk" ,
+s,^\([ #]*\)[^ ]*\([ ]*PACKAGE_TARNAME\)[ (].*,\1define\2 "yast2-gtk" ,
+s,^\([ #]*\)[^ ]*\([ ]*PACKAGE_VERSION\)[ (].*,\1define\2 "2.15.9" ,
+s,^\([ #]*\)[^ ]*\([ ]*PACKAGE_STRING\)[ (].*,\1define\2 "yast2-gtk 2.15.9" ,
+s,^\([ #]*\)[^ ]*\([ ]*PACKAGE_BUGREPORT\)[ (].*,\1define\2 "http://bugs.opensuse.org/" ,
+s,^\([ #]*\)[^ ]*\([ ]*PACKAGE\)[ (].*,\1define\2 "yast2-gtk" ,
+s,^\([ #]*\)[^ ]*\([ ]*VERSION\)[ (].*,\1define\2 "2.15.9" ,
+s,^\([ #]*\)[^ ]*\([ ]*STDC_HEADERS\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_SYS_TYPES_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_SYS_STAT_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_STDLIB_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_STRING_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_MEMORY_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_STRINGS_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_INTTYPES_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_STDINT_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_UNISTD_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_DLFCN_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_ALLOCA_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_ALLOCA\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*STDC_HEADERS\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_ALLOCA_H\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*HAVE_ALLOCA\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*STDC_HEADERS\)[ (].*,\1define\2 1 ,
+s,^\([ #]*\)[^ ]*\([ ]*YAST2_VERSION\)[ (].*,\1define\2 2015012 ,
+s/ $//
+s,^[ #]*u.*,/* & */,
+CEOF
+ sed -f "$tmp/defines.sed" $ac_file_inputs >"$tmp/out1"
+ac_result="$tmp/out1"
+ if test x"$ac_file" != x-; then
+ echo "/* $configure_input */" >"$tmp/config.h"
+ cat "$ac_result" >>"$tmp/config.h"
+ 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
+ rm -f $ac_file
+ mv "$tmp/config.h" $ac_file
+ fi
+ else
+ echo "/* $configure_input */"
+ cat "$ac_result"
+ fi
+ rm -f "$tmp/out12"
+# 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" >`$as_dirname -- $ac_file ||
+$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
+ ;;
+
+ :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
+echo "$as_me: executing $ac_file commands" >&6;}
+ ;;
+ esac
+
+
+ case $ac_file$ac_mode in
+ "depfiles":C) 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.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
+ dirpart=`$as_dirname -- "$mf" ||
+$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
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. 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 "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/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_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'`
+ { as_dir=$dirpart/$fdir
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$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'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+echo "$as_me: error: cannot create directory $as_dir" >&2;}
+ { (exit 1); exit 1; }; }; }
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+done
+ ;;
+
+ esac
+done # for ac_tag
+
+
+{ (exit 0); exit 0; }
Added: trunk/gtk/unstable-libyui/config.sub
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/config.sub?r…
==============================================================================
--- trunk/gtk/unstable-libyui/config.sub (added)
+++ trunk/gtk/unstable-libyui/config.sub Wed Dec 5 14:14:01 2007
@@ -0,0 +1,1616 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
+# Inc.
+
+timestamp='2006-09-20'
+
+# 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 <config-patches(a)gnu.org>. 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 <config-patches(a)gnu.org>."
+
+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 | avr32 \
+ | bfin \
+ | c4x | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | fr30 | frv \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k | iq2000 \
+ | m32c | 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 \
+ | nios | nios2 \
+ | ns16k | ns32k \
+ | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | pyramid \
+ | score \
+ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+ | spu | strongarm \
+ | tahoe | thumb | tic4x | tic80 | tron \
+ | v850 | v850e \
+ | we32k \
+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+ | z8k)
+ basic_machine=$basic_machine-unknown
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12)
+ # Motorola 68HC11/12.
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ ;;
+ ms1)
+ basic_machine=mt-unknown
+ ;;
+
+ # 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-* | avr32-* \
+ | 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-* \
+ | m32c-* | 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-* \
+ | nios-* | nios2-* \
+ | 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-* | sheb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+ | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
+ | tahoe-* | thumb-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tron-* \
+ | v850-* | v850e-* | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | xstormy16-* | xtensa-* \
+ | ymp-* \
+ | z8k-*)
+ ;;
+ # Recognize the various machine names and aliases which stand
+ # for a CPU type and a company and sometimes even an OS.
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ basic_machine=m68000-att
+ ;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ 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
+ ;;
+ 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
+ ;;
+ sde)
+ basic_machine=mipsisa32-sde
+ os=-elf
+ ;;
+ 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 | sparcv9v)
+ 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* | -solidbsd* \
+ | -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* | -toppers*)
+ # 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
+ score-*)
+ os=-elf
+ ;;
+ spu-*)
+ os=-elf
+ ;;
+ *-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:
Added: trunk/gtk/unstable-libyui/configure
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/configure?re…
==============================================================================
--- trunk/gtk/unstable-libyui/configure (added)
+++ trunk/gtk/unstable-libyui/configure Wed Dec 5 14:14:01 2007
@@ -0,0 +1,22976 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.61 for yast2-gtk 2.15.9.
+#
+# Report bugs to <http://bugs.opensuse.org/>.
+#
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+# 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+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+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+
+
+# PATH needs CR
+# 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
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+as_nl='
+'
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+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
+IFS=$as_save_IFS
+
+ ;;
+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_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ { (exit 1); exit 1; }
+fi
+
+# Work around bugs in pre-3.0 UWIN ksh.
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
+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) >/dev/null 2>&1 && $as_unset $as_var
+ fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; 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'`
+
+# CDPATH.
+$as_unset CDPATH
+
+
+if test "x$CONFIG_SHELL" = x; then
+ if (eval ":") 2>/dev/null; then
+ as_have_required=yes
+else
+ as_have_required=no
+fi
+
+ if test $as_have_required = yes && (eval ":
+(as_func_return () {
+ (exit \$1)
+}
+as_func_success () {
+ as_func_return 0
+}
+as_func_failure () {
+ as_func_return 1
+}
+as_func_ret_success () {
+ return 0
+}
+as_func_ret_failure () {
+ return 1
+}
+
+exitcode=0
+if as_func_success; then
+ :
+else
+ exitcode=1
+ echo as_func_success failed.
+fi
+
+if as_func_failure; then
+ exitcode=1
+ echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+ :
+else
+ exitcode=1
+ echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+ exitcode=1
+ echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
+ :
+else
+ exitcode=1
+ echo positional parameters were not saved.
+fi
+
+test \$exitcode = 0) || { (exit 1); exit 1; }
+
+(
+ as_lineno_1=\$LINENO
+ as_lineno_2=\$LINENO
+ test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
+ test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
+") 2> /dev/null; then
+ :
+else
+ as_candidate_shells=
+ 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=.
+ case $as_dir in
+ /*)
+ for as_base in sh bash ksh sh5; do
+ as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
+ done;;
+ esac
+done
+IFS=$as_save_IFS
+
+
+ for as_shell in $as_candidate_shells $SHELL; do
+ # Try only shells that exist, to save several forks.
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ { ("$as_shell") 2> /dev/null <<\_ASEOF
+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+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+:
+_ASEOF
+}; then
+ CONFIG_SHELL=$as_shell
+ as_have_required=yes
+ if { "$as_shell" 2> /dev/null <<\_ASEOF
+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+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+:
+(as_func_return () {
+ (exit $1)
+}
+as_func_success () {
+ as_func_return 0
+}
+as_func_failure () {
+ as_func_return 1
+}
+as_func_ret_success () {
+ return 0
+}
+as_func_ret_failure () {
+ return 1
+}
+
+exitcode=0
+if as_func_success; then
+ :
+else
+ exitcode=1
+ echo as_func_success failed.
+fi
+
+if as_func_failure; then
+ exitcode=1
+ echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+ :
+else
+ exitcode=1
+ echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+ exitcode=1
+ echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = "$1" ); then
+ :
+else
+ exitcode=1
+ echo positional parameters were not saved.
+fi
+
+test $exitcode = 0) || { (exit 1); exit 1; }
+
+(
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
+
+_ASEOF
+}; then
+ break
+fi
+
+fi
+
+ done
+
+ if test "x$CONFIG_SHELL" != x; then
+ for as_var in BASH_ENV ENV
+ do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+ done
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
+fi
+
+
+ if test $as_have_required = no; then
+ echo This script requires a shell more modern than all the
+ echo shells that I found on your system. Please install a
+ echo modern shell, or manually run the script under such a
+ echo shell if you do have one.
+ { (exit 1); exit 1; }
+fi
+
+
+fi
+
+fi
+
+
+
+(eval "as_func_return () {
+ (exit \$1)
+}
+as_func_success () {
+ as_func_return 0
+}
+as_func_failure () {
+ as_func_return 1
+}
+as_func_ret_success () {
+ return 0
+}
+as_func_ret_failure () {
+ return 1
+}
+
+exitcode=0
+if as_func_success; then
+ :
+else
+ exitcode=1
+ echo as_func_success failed.
+fi
+
+if as_func_failure; then
+ exitcode=1
+ echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+ :
+else
+ exitcode=1
+ echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+ exitcode=1
+ echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
+ :
+else
+ exitcode=1
+ echo positional parameters were not saved.
+fi
+
+test \$exitcode = 0") || {
+ echo No shell found that supports shell functions.
+ echo Please tell autoconf(a)gnu.org about your system,
+ echo including any error possibly output before this
+ echo message
+}
+
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
+
+ # 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 after each line using $LINENO; the second 'sed'
+ # does the real work. The second script uses 'N' to pair each
+ # line-number line with the line containing $LINENO, 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
+ # scripts with optimization help from Paolo Bonzini. Blame Lee
+ # E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\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 sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in
+-n*)
+ case `echo 'x\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ *) ECHO_C='\c';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir
+fi
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+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$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p=:
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# 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'"
+
+
+
+
+# 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 <<EOF
+$*
+EOF
+ exit 0
+fi
+
+# 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
+
+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
+
+exec 7<&0 </dev/null 6>&1
+
+# 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`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+# Identity of this package.
+PACKAGE_NAME='yast2-gtk'
+PACKAGE_TARNAME='yast2-gtk'
+PACKAGE_VERSION='2.15.9'
+PACKAGE_STRING='yast2-gtk 2.15.9'
+PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
+
+ac_unique_file="RPMNAME"
+ac_default_prefix=/usr
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+# include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#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
+datarootdir
+datadir
+sysconfdir
+sharedstatedir
+localstatedir
+includedir
+oldincludedir
+docdir
+infodir
+htmldir
+dvidir
+pdfdir
+psdir
+libdir
+localedir
+mandir
+DEFS
+ECHO_C
+ECHO_N
+ECHO_T
+LIBS
+build_alias
+host_alias
+target_alias
+build
+build_cpu
+build_vendor
+build_os
+host
+host_cpu
+host_vendor
+host_os
+target
+target_cpu
+target_vendor
+target_os
+INSTALL_PROGRAM
+INSTALL_SCRIPT
+INSTALL_DATA
+am__isrc
+CYGPATH_W
+PACKAGE
+VERSION
+ACLOCAL
+AUTOCONF
+AUTOMAKE
+AUTOHEADER
+MAKEINFO
+install_sh
+STRIP
+INSTALL_STRIP_PROGRAM
+mkdir_p
+AWK
+SET_MAKE
+am__leading_dot
+AMTAR
+am__tar
+am__untar
+RPMNAME
+MAINTAINER
+pkgconfigdir
+pkgconfigdatadir
+yast2dir
+ybindir
+ystartupdir
+plugindir
+potdir
+execcompdir
+ydatadir
+imagedir
+themedir
+clientdir
+moduledir
+yncludedir
+schemadir
+scrconfdir
+agentdir
+desktopdir
+fillupdir
+LN_S
+PKG_CONFIG_PATH
+XGETTEXT
+Y2DEVTOOLS_PREFIX
+CREATE_PKGCONFIG_TRUE
+CREATE_PKGCONFIG_FALSE
+CREATE_PKGCONFIG_NOARCH_TRUE
+CREATE_PKGCONFIG_NOARCH_FALSE
+STYLESHEET_HTML
+STYLESHEET_PDF
+STYLESHEET_CSS
+STYLESHEET_YDOC
+STYLESHEET_YCPDOC
+YDOXYGEN
+CXX
+CXXFLAGS
+LDFLAGS
+CPPFLAGS
+ac_ct_CXX
+EXEEXT
+OBJEXT
+DEPDIR
+am__include
+am__quote
+AMDEP_TRUE
+AMDEP_FALSE
+AMDEPBACKSLASH
+CXXDEPMODE
+am__fastdepCXX_TRUE
+am__fastdepCXX_FALSE
+CC
+CFLAGS
+ac_ct_CC
+CCDEPMODE
+am__fastdepCC_TRUE
+am__fastdepCC_FALSE
+CPP
+AGENT_LIBADD
+SED
+GREP
+EGREP
+ECHO
+AR
+RANLIB
+CXXCPP
+F77
+FFLAGS
+ac_ct_F77
+LIBTOOL
+ALLOCA
+PKG_CONFIG
+ZYPP_CFLAGS
+ZYPP_LIBS
+GTK_CFLAGS
+GTK_LIBS
+PYUI_LIBS
+LIBOBJS
+LTLIBOBJS'
+ac_subst_files=''
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+PKG_CONFIG_PATH
+CXX
+CXXFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CCC
+CC
+CFLAGS
+CPP
+CXXCPP
+F77
+FFLAGS
+PKG_CONFIG
+ZYPP_CFLAGS
+ZYPP_LIBS
+GTK_CFLAGS
+GTK_LIBS'
+
+
+# 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.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+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
+
+ case $ac_option in
+ *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *) ac_optarg=yes ;;
+ esac
+
+ # Accept the important Cygnus configure options, so we can diagnose typos.
+
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
+
+ -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)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
+ datadir=$ac_optarg ;;
+
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+ | --dataroo | --dataro | --datar)
+ ac_prev=datarootdir ;;
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+ datarootdir=$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 ;;
+
+ -docdir | --docdir | --docdi | --doc | --do)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+ docdir=$ac_optarg ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+ dvidir=$ac_optarg ;;
+
+ -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'`
+ 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 ;;
+
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+ ac_prev=htmldir ;;
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+ | --ht=*)
+ htmldir=$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 ;;
+
+ -localedir | --localedir | --localedi | --localed | --locale)
+ ac_prev=localedir ;;
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+ localedir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst | --locals)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+ 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 ;;
+
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+ ac_prev=pdfdir ;;
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+ pdfdir=$ac_optarg ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+ psdir=$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'`
+ 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; }; }
+ 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 directory names.
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ datadir sysconfdir sharedstatedir localstatedir includedir \
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+ libdir localedir mandir
+do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+ esac
+ { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+ { (exit 1); exit 1; }; }
+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
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+ { echo "$as_me: error: Working directory cannot be determined" >&2
+ { (exit 1); exit 1; }; }
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ { echo "$as_me: error: pwd does not report name of working directory" >&2
+ { (exit 1); exit 1; }; }
+
+
+# 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 the parent directory.
+ ac_confdir=`$as_dirname -- "$0" ||
+$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
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+ { (exit 1); exit 1; }; }
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
+ { (exit 1); exit 1; }; }
+ pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+ srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_env_${ac_var}_value=\$${ac_var}
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# 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 yast2-gtk 2.15.9 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 \`..']
+
+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]
+ --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]
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
+ --infodir=DIR info documentation [DATAROOTDIR/info]
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
+ --mandir=DIR man documentation [DATAROOTDIR/man]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/yast2-gtk]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_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]
+ --target=TARGET configure for building compilers for TARGET [HOST]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of yast2-gtk 2.15.9:";;
+ esac
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --disable-dependency-tracking speeds up one-time build
+ --enable-dependency-tracking do not reject slow dependency extractors
+ --enable-static[=PKGS] build static libraries [default=no]
+ --enable-shared[=PKGS] build shared libraries [default=yes]
+ --enable-fast-install[=PKGS]
+ optimize for fast installation [default=yes]
+ --disable-libtool-lock avoid locking (might break parallel builds)
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-fillupdir=DIR where to place fillup templates (default
+ $fillupdir_d.
+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
+ --with-pic try to use only PIC/non-PIC objects [default=use
+ both]
+ --with-tags[=TAGS] include additional configurations [automatic]
+
+Some influential environment variables:
+ PKG_CONFIG_PATH
+ where to search for pkg-config files
+ CXX C++ compiler command
+ CXXFLAGS C++ compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ LIBS libraries to pass to the linker, e.g. -l<library>
+ CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
+ CC C compiler command
+ CFLAGS C compiler flags
+ CPP C preprocessor
+ CXXCPP C++ preprocessor
+ F77 Fortran 77 compiler command
+ FFLAGS Fortran 77 compiler flags
+ PKG_CONFIG path to pkg-config utility
+ ZYPP_CFLAGS C compiler flags for ZYPP, overriding pkg-config
+ ZYPP_LIBS linker flags for ZYPP, overriding pkg-config
+ GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
+ GTK_LIBS linker flags for GTK, 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 <http://bugs.opensuse.org/>.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d "$ac_dir" || continue
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+ cd "$ac_dir" || { ac_status=$?; continue; }
+ # Check for guested 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
+ else
+ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
+ done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+ cat <<\_ACEOF
+yast2-gtk configure 2.15.9
+generated by GNU Autoconf 2.61
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006 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
+fi
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by yast2-gtk $as_me 2.15.9, which was
+generated by GNU Autoconf 2.61. Invocation command line was
+
+ $ $0 $@
+
+_ACEOF
+exec 5>>config.log
+{
+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`
+/usr/bin/hostinfo = `(/usr/bin/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
+IFS=$as_save_IFS
+
+} >&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_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_arg'"
+ ;;
+ 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: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+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,
+(
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
+echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ *) $as_unset $ac_var ;;
+ esac ;;
+ esac
+ done
+ (set) 2>&1 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ sed -n \
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
+ *)
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+)
+ echo
+
+ cat <<\_ASBOX
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+_ASBOX
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ cat <<\_ASBOX
+## ------------------- ##
+## File substitutions. ##
+## ------------------- ##
+_ASBOX
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ cat <<\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ echo "$as_me: caught signal $ac_signal"
+ echo "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core core.conftest.* &&
+ rm -f -r 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 -f -r conftest* 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 -n "$CONFIG_SITE"; then
+ set x "$CONFIG_SITE"
+elif test "x$prefix" != xNONE; then
+ set x "$prefix/share/config.site" "$prefix/etc/config.site"
+else
+ set x "$ac_default_prefix/share/config.site" \
+ "$ac_default_prefix/etc/config.site"
+fi
+shift
+for ac_site_file
+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 $ac_precious_vars; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
+ eval ac_new_val=\$ac_env_${ac_var}_value
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
+echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
+echo "$as_me: former value: $ac_old_val" >&2;}
+ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
+echo "$as_me: current value: $ac_new_val" >&2;}
+ ac_cache_corrupted=:
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
+echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
+ac_aux_dir=
+for ac_dir in "$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
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
+
+
+# Make sure we can run config.sub.
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+ { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
+echo "$as_me: error: cannot run $SHELL $ac_aux_dir/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_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+ { { 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=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
+echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_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; }
+case $ac_cv_build in
+*-*-*) ;;
+*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
+echo "$as_me: error: invalid value of canonical build" >&2;}
+ { (exit 1); exit 1; }; };;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ 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
+ if test "x$host_alias" = x; then
+ ac_cv_host=$ac_cv_build
+else
+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
+echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
+echo "${ECHO_T}$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
+echo "$as_me: error: invalid value of canonical host" >&2;}
+ { (exit 1); exit 1; }; };;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+{ echo "$as_me:$LINENO: checking target system type" >&5
+echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
+if test "${ac_cv_target+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "x$target_alias" = x; then
+ ac_cv_target=$ac_cv_host
+else
+ ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
+ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
+echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
+echo "${ECHO_T}$ac_cv_target" >&6; }
+case $ac_cv_target in
+*-*-*) ;;
+*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
+echo "$as_me: error: invalid value of canonical target" >&2;}
+ { (exit 1); exit 1; }; };;
+esac
+target=$ac_cv_target
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_target
+shift
+target_cpu=$1
+target_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+target_os=$*
+IFS=$ac_save_IFS
+case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
+
+
+# The aliases save the names the user supplied, while $host etc.
+# will get canonicalized.
+test -n "$target_alias" &&
+ test "$program_prefix$program_suffix$program_transform_name" = \
+ NONENONEs,x,x, &&
+ program_prefix=${target_alias}-
+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 -f conftest.sed
+
+
+
+
+am__api_version='1.10'
+
+# 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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+
+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. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ 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; }
+# 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
+
+{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
+echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
+if test -z "$MKDIR_P"; then
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in mkdir gmkdir; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
+ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
+ 'mkdir (GNU coreutils) '* | \
+ 'mkdir (coreutils) '* | \
+ 'mkdir (fileutils) '4.1*)
+ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
+ break 3;;
+ esac
+ done
+ done
+done
+IFS=$as_save_IFS
+
+fi
+
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ MKDIR_P="$ac_cv_path_mkdir -p"
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for MKDIR_P within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ test -d ./--version && rmdir ./--version
+ MKDIR_P="$ac_install_sh -d"
+ fi
+fi
+{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
+echo "${ECHO_T}$MKDIR_P" >&6; }
+
+mkdir_p="$MKDIR_P"
+case $mkdir_p in
+ [\\/$]* | ?:[\\/]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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 x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$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
+
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ am__isrc=' -I$(srcdir)'
+ # test to see if srcdir already configured
+ if 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
+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='yast2-gtk'
+ VERSION='2.15.9'
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE "$PACKAGE"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define VERSION "$VERSION"
+_ACEOF
+
+# 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"}
+
+install_sh=${install_sh-"\$(SHELL) $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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+# Always define AMTAR for backward compatibility.
+
+AMTAR=${AMTAR-"${am_missing_run}tar"}
+
+
+{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
+echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
+# Loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar plaintar pax cpio none'
+_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
+# Do not fold the above two line into one, because Tru64 sh and
+# Solaris sh will not grok spaces in the rhs of `-'.
+for _am_tool in $_am_tools
+do
+ case $_am_tool in
+ gnutar)
+ for _am_tar in tar gnutar gtar;
+ do
+ { echo "$as_me:$LINENO: $_am_tar --version" >&5
+ ($_am_tar --version) >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && break
+ done
+ am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
+ am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
+ am__untar="$_am_tar -xf -"
+ ;;
+ plaintar)
+ # Must skip GNU tar: if it does not support --format= it doesn't create
+ # ustar tarball either.
+ (tar --version) >/dev/null 2>&1 && continue
+ am__tar='tar chf - "$$tardir"'
+ am__tar_='tar chf - "$tardir"'
+ am__untar='tar xf -'
+ ;;
+ pax)
+ am__tar='pax -L -x ustar -w "$$tardir"'
+ am__tar_='pax -L -x ustar -w "$tardir"'
+ am__untar='pax -r'
+ ;;
+ cpio)
+ am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
+ am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
+ am__untar='cpio -i -H ustar -d'
+ ;;
+ none)
+ am__tar=false
+ am__tar_=false
+ am__untar=false
+ ;;
+ esac
+
+ # If the value was cached, stop now. We just wanted to have am__tar
+ # and am__untar set.
+ test -n "${am_cv_prog_tar_ustar}" && break
+
+ # tar/untar a dummy directory, and stop if the command works
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ echo GrepMe > conftest.dir/file
+ { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
+ (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ rm -rf conftest.dir
+ if test -s conftest.tar; then
+ { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
+ ($am__untar <conftest.tar) >&5 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+ fi
+done
+rm -rf conftest.dir
+
+if test "${am_cv_prog_tar_ustar+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ am_cv_prog_tar_ustar=$_am_tool
+fi
+
+{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
+echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
+
+
+
+
+
+VERSION="2.15.9"
+RPMNAME="yast2-gtk"
+MAINTAINER="Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt> \
+Michael Meeks <michael.meeks(a)novell.com>"
+
+pkgconfigdir=\${libdir}/pkgconfig
+pkgconfigdatadir=\${datadir}/pkgconfig
+yast2dir=\${prefix}/share/YaST2
+
+ybindir=\${prefix}/lib/YaST2/bin
+# FIXME duplicates execcompdir
+ystartupdir=\${prefix}/lib/YaST2
+plugindir=\${libdir}/YaST2/plugin
+includedir=\${prefix}/include/YaST2
+potdir=\${docdir}/pot
+
+docdir=\${prefix}/share/doc/packages/$RPMNAME
+mandir=\${prefix}/share/man
+
+execcompdir=\${prefix}/lib/YaST2
+agentdir=${execcompdir}/servers_non_y2
+
+ydatadir=${yast2dir}/data
+imagedir=${yast2dir}/images
+themedir=${yast2dir}/theme
+localedir=${yast2dir}/locale
+clientdir=${yast2dir}/clients
+moduledir=${yast2dir}/modules
+yncludedir=${yast2dir}/include
+schemadir=${yast2dir}/schema
+scrconfdir=${yast2dir}/scrconf
+desktopdir=\${prefix}/share/applications/YaST2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+fillupdir_d="/var/adm/fillup-templates"
+
+# Check whether --with-fillupdir was given.
+if test "${with_fillupdir+set}" = set; then
+ withval=$with_fillupdir; fillupdir="$withval"
+else
+ fillupdir="$fillupdir_d"
+fi
+
+
+
+
+
+# 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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+
+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. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ 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'
+
+INSTALL="${INSTALL} -p"
+{ 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 whether ${MAKE-make} sets \$(MAKE)" >&5
+echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
+set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$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
+
+
+
+
+# Extract the first word of "xgettext", so it can be a program name with args.
+set dummy xgettext; 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_XGETTEXT+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $XGETTEXT in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_XGETTEXT="$XGETTEXT" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_XGETTEXT="$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
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+XGETTEXT=$ac_cv_path_XGETTEXT
+if test -n "$XGETTEXT"; then
+ { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
+echo "${ECHO_T}$XGETTEXT" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+if test -z "$XGETTEXT" ; then
+ { { echo "$as_me:$LINENO: error: xgettext is missing; please install gettext-devel." >&5
+echo "$as_me: error: xgettext is missing; please install gettext-devel." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+Y2DEVTOOLS_PREFIX=`pkg-config --print-errors --variable=prefix yast2-devtools`
+
+devtools_ybindir=`pkg-config --print-errors --variable=ybindir yast2-devtools`
+devtools_yast2dir=`pkg-config --print-errors --variable=yast2dir yast2-devtools`
+
+ if test "x${CREATE_PKGCONFIG}" != x; then
+ CREATE_PKGCONFIG_TRUE=
+ CREATE_PKGCONFIG_FALSE='#'
+else
+ CREATE_PKGCONFIG_TRUE='#'
+ CREATE_PKGCONFIG_FALSE=
+fi
+
+ if test "x${CREATE_PKGCONFIG}" = xnoarch; then
+ CREATE_PKGCONFIG_NOARCH_TRUE=
+ CREATE_PKGCONFIG_NOARCH_FALSE='#'
+else
+ CREATE_PKGCONFIG_NOARCH_TRUE='#'
+ CREATE_PKGCONFIG_NOARCH_FALSE=
+fi
+
+
+dbdir=${devtools_yast2dir}/data/docbook
+STYLESHEET_HTML=${dbdir}/stylesheets/customize-html.xsl
+STYLESHEET_PDF=${dbdir}/stylesheets/customize-fo.xsl
+STYLESHEET_CSS=${dbdir}/css/yast2docs.css
+STYLESHEET_YDOC=${dbdir}/stylesheets/ydoc.xsl
+STYLESHEET_YCPDOC=${dbdir}/stylesheets/ycpdoc.xsl
+
+
+
+
+
+
+
+
+# Extract the first word of "ydoxygen", so it can be a program name with args.
+set dummy ydoxygen; 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_YDOXYGEN+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $YDOXYGEN in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_YDOXYGEN="$YDOXYGEN" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_dummy="$PATH:$devtools_ybindir"
+for as_dir in $as_dummy
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_YDOXYGEN="$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
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_YDOXYGEN" && ac_cv_path_YDOXYGEN="false"
+ ;;
+esac
+fi
+YDOXYGEN=$ac_cv_path_YDOXYGEN
+if test -n "$YDOXYGEN"; then
+ { echo "$as_me:$LINENO: result: $YDOXYGEN" >&5
+echo "${ECHO_T}$YDOXYGEN" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+if test "$YDOXYGEN" = "false"; then
+ { { echo "$as_me:$LINENO: error: ydoxygen is not installed" >&5
+echo "$as_me: error: ydoxygen is not installed" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+ac_ext=cpp
+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 -z "$CXX"; then
+ if test -n "$CCC"; then
+ CXX=$CCC
+ else
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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 g++ c++ gpp aCC CC cxx cc++ cl.exe 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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
+
+ if test "x$ac_ct_CXX" = x; then
+ CXX="g++"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+ CXX=$ac_ct_CXX
+ fi
+fi
+
+ fi
+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`
+{ (ac_try="$ac_compiler --version >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compiler --version >&5") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -v >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compiler -v >&5") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -V >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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[^ ]*//'`
+#
+# List of possible output files, starting from the most likely.
+# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
+# only as a last resort. b.out is created by i960 compilers.
+ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
+#
+# The IRIX 6 linker writes into existing files which may not be
+# executable, retaining their permissions. Remove them first so a
+# subsequent execution test works.
+ac_rmfiles=
+for ac_file in $ac_files
+do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+ esac
+done
+rm -f $ac_rmfiles
+
+if { (ac_try="$ac_link_default"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link_default") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile. We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
+ ;;
+ [ab].out )
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* )
+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
+ then :; else
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ fi
+ # We set ac_cv_exeext here because the later test for it is not
+ # safe: cross compilers may not add the suffix if given an `-o'
+ # argument, so we may need to know it at that point already.
+ # Even if this section looks crufty: it has the advantage of
+ # actually working.
+ break;;
+ * )
+ break;;
+ esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else
+ ac_file=''
+fi
+
+{ echo "$as_me:$LINENO: result: $ac_file" >&5
+echo "${ECHO_T}$ac_file" >&6; }
+if test -z "$ac_file"; then
+ 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
+
+# Check that 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'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 that 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 { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 | *.map | *.inf | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ 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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compile") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ for ac_file in conftest.o conftest.obj conftest.*; do
+ test -f "$ac_file" || continue;
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
+echo "${ECHO_T}$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
+echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
+if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* 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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; 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 core 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
+{ 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
+ ac_save_cxx_werror_flag=$ac_cxx_werror_flag
+ ac_cxx_werror_flag=yes
+ ac_cv_prog_cxx_g=no
+ CXXFLAGS="-g"
+ 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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cxx_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ CXXFLAGS=""
+ 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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+ CXXFLAGS="-g"
+ 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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cxx_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+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
+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 was given.
+if test "${enable_dependency_tracking+set}" = set; then
+ enableval=$enable_dependency_tracking;
+fi
+
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+fi
+ if test "x$enable_dependency_tracking" != xno; then
+ AMDEP_TRUE=
+ AMDEP_FALSE='#'
+else
+ AMDEP_TRUE='#'
+ AMDEP_FALSE=
+fi
+
+
+
+depcc="$CXX" am_compiler_list=
+
+{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
+echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
+if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_CXX_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+ fi
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch 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/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ 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
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' 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
+
+
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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
+
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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.exe
+ 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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.exe
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+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`
+{ (ac_try="$ac_compiler --version >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compiler --version >&5") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -v >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compiler -v >&5") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -V >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compiler -V >&5") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* 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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; 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 core 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
+{ 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
+ ac_save_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ ac_cv_prog_cc_g=no
+ CFLAGS="-g"
+ 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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ CFLAGS=""
+ 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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ 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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_g=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_c_werror_flag=$ac_save_c_werror_flag
+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 ISO C89" >&5
+echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
+if test "${ac_cv_prog_cc_c89+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_prog_cc_c89=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 <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* 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 -std 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 -std. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+ inside strings and character constants. */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 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
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_c89=$ac_arg
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+ x)
+ { echo "$as_me:$LINENO: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6; } ;;
+ xno)
+ { echo "$as_me:$LINENO: result: unsupported" >&5
+echo "${ECHO_T}unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c89"
+ { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+depcc="$CC" am_compiler_list=
+
+{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
+echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_CC_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+ fi
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch 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/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ 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
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' 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 <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> 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 <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.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 nonexistent 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 <ac_nonexistent.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.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 <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> 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 <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.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 nonexistent 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 <ac_nonexistent.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.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
+
+
+CFLAGS="${CFLAGS} -Wall -Wformat=2 -Wmissing-prototypes"
+CXXFLAGS="${CXXFLAGS} -Wall -Wformat=2"
+
+: ${AGENT_LIBADD:='-L$(libdir) -lscr'}
+
+
+# Check whether --enable-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=no
+fi
+
+
+
+# Check whether --enable-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-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 { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+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 grep that handles long lines and -e" >&5
+echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
+if test "${ac_cv_path_GREP+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ # Extract the first word of "grep ggrep" to use in msg output
+if test -z "$GREP"; then
+set dummy grep ggrep; ac_prog_name=$2
+if test "${ac_cv_path_GREP+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_path_GREP_found=false
+# Loop through the user's path and test for each of PROGNAME-LIST
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in grep ggrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
+ # Check for GNU ac_path_GREP and select it if it is found.
+ # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+ ac_count=0
+ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ echo 'GREP' >> "conftest.nl"
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ ac_count=`expr $ac_count + 1`
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_GREP="$ac_path_GREP"
+ ac_path_GREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+
+ $ac_path_GREP_found && break 3
+ done
+done
+
+done
+IFS=$as_save_IFS
+
+
+fi
+
+GREP="$ac_cv_path_GREP"
+if test -z "$GREP"; then
+ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
+echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+else
+ ac_cv_path_GREP=$GREP
+fi
+
+
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
+echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ echo "$as_me:$LINENO: checking for egrep" >&5
+echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
+if test "${ac_cv_path_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_path_EGREP="$GREP -E"
+ else
+ # Extract the first word of "egrep" to use in msg output
+if test -z "$EGREP"; then
+set dummy egrep; ac_prog_name=$2
+if test "${ac_cv_path_EGREP+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_path_EGREP_found=false
+# Loop through the user's path and test for each of PROGNAME-LIST
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in egrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
+ # Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+ ac_count=0
+ echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ echo 'EGREP' >> "conftest.nl"
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ ac_count=`expr $ac_count + 1`
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_EGREP="$ac_path_EGREP"
+ ac_path_EGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+
+ $ac_path_EGREP_found && break 3
+ done
+done
+
+done
+IFS=$as_save_IFS
+
+
+fi
+
+EGREP="$ac_cv_path_EGREP"
+if test -z "$EGREP"; then
+ { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
+echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+
+
+ fi
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
+echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+
+# Check whether --with-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 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi
+fi
+
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ { echo "$as_me:$LINENO: result: $LD" >&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 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac
+fi
+{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&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 how to recognize dependent libraries" >&5
+echo $ECHO_N "checking how to recognize 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',
+ # unless we find 'file', for example because we are cross-compiling.
+ if ( file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | 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
+ ;;
+
+interix[3-9]*)
+ # 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* | k*bsd*-gnu)
+ 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
+ ;;
+
+rdos*)
+ 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 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 5578 "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-*kfreebsd*-gnu|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-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ 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-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ 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 { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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*
+ ;;
+
+
+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 <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; 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 core 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 <string.h>
+
+_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 <stdlib.h>
+
+_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 <ctype.h>
+#include <stdlib.h>
+#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))
+ return 2;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* 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 { as_var=$as_ac_Header; eval "test \"\${$as_var+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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; 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 core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&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 { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.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 http://bugs.opensuse.org/ ##
+## ---------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&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=cpp
+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 <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> 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 <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
+ test ! -s conftest.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 nonexistent 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 <ac_nonexistent.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
+ test ! -s conftest.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 <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> 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 <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
+ test ! -s conftest.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 nonexistent 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 <ac_nonexistent.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
+ test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
+ test ! -s conftest.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=cpp
+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 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
+ 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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
+
+ if test "x$ac_ct_F77" = x; then
+ F77=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+ F77=$ac_ct_F77
+ fi
+fi
+
+
+# Provide some information about the compiler.
+echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (ac_try="$ac_compiler --version >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compiler --version >&5") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -v >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_compiler -v >&5") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -V >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_f77_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; 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 core 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 { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_f77_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; 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 core 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
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ 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`
+ else
+ 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`
+ fi
+ ;;
+ 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* | k*bsd*-gnu)
+ 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 <<EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+EOF
+
+ 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
+ # 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 <<EOF > 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 <<EOF >> 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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
+
+ if test "x$ac_ct_AR" = x; then
+ AR="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+ AR=$ac_ct_AR
+ fi
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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
+
+ if test "x$ac_ct_RANLIB" = x; then
+ RANLIB=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+ RANLIB=$ac_ct_RANLIB
+ fi
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+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
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+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_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 <<EOF 1>&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(a)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 <<EOF 1>&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(a)gnu.org
+
+EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
+echo "${ECHO_T}$MAGIC_CMD" >&6; }
+else
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+ else
+ MAGIC_CMD=:
+ fi
+fi
+
+ fi
+ ;;
+esac
+
+enable_dlopen=no
+enable_win32_dll=no
+
+# Check whether --enable-libtool-lock 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 was given.
+if test "${with_pic+set}" = set; then
+ withval=$with_pic; pic_mode="$withval"
+else
+ pic_mode=default
+fi
+
+test -z "$pic_mode" && pic_mode=default
+
+# Use C for the default configuration in the libtool script
+tagname=
+lt_save_CC="$CC"
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+objext=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+
+# 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
+echo "$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
+echo "$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
+ echo "$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:7618: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:7622: \$? = $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* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ 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'
+ ;;
+
+ interix[3-9]*)
+ # 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* | cygwin* | 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* | k*bsd*-gnu)
+ 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'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl=''
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl='-Wl,'
+ # All OSF/1 code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ rdos*)
+ 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
+ echo "$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:7908: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:7912: \$? = $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"
+ echo "$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
+ echo "$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:8012: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:8016: \$? = $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 <<EOF 1>&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 <kc5tja(a)dolphin.openprojects.net> 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 <jrb3(a)best.com> 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/'\'' -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
+ ;;
+
+ interix[3-9]*)
+ 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'
+ ;;
+
+ gnu* | linux* | k*bsd*-gnu)
+ 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
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ *)
+ tmp_sharedflag='-shared' ;;
+ esac
+ archive_cmds='$CC '"$tmp_sharedflag""$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 '"$tmp_sharedflag""$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 <<EOF 1>&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
+ :
+ 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 { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# 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 "$lt_aix_libpath_sed"`
+fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# 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 "$lt_aix_libpath_sed"`
+fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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` $xlcverstring'
+ 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 $xlcverstring~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* | 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*)
+ if test -f /usr/libexec/ld.so; then
+ 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
+ else
+ ld_shlibs=no
+ 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 and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ 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* | sco3.2v5.0.[024]*)
+ 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*
+ echo "$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
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if echo "$lt_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.
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[lt_foo]++; }
+ if (lt_freq[lt_foo] == 1) { print lt_foo; }
+}'`
+ sys_lib_search_path_spec=`echo $lt_search_path_spec`
+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<name>.so
+ # instead of lib<name>.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
+ ;;
+
+ *)
+ 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`'
+
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | 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
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[01]* | freebsdelf3.[01]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ 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
+ ;;
+ *) # from 4.6 on, and DragonFly
+ 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'
+ ;;
+
+interix[3-9]*)
+ 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* | k*bsd*-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'
+ 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>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;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'
+ ;;
+
+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"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+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"
+ old_striplib="$STRIP -S"
+ { 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 GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 <limits.h> declares shl_load.
+ For example, HP-UX 11i <limits.h> 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 <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef shl_load
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+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
+#endif
+
+int
+main ()
+{
+return shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shl_load ();
+int
+main ()
+{
+return shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 <limits.h> declares dlopen.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define dlopen innocuous_dlopen
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char dlopen (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef dlopen
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+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
+#endif
+
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dld_link ();
+int
+main ()
+{
+return dld_link ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; 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 core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 <<EOF
+#line 10361 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#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 <<EOF
+#line 10461 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#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 \
+ fix_srcfile_path \
+ 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, 2002, 2003, 2004, 2005, 2006, 2007
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Libtool:
+# Originally by Gordon Matzigkeit <gord(a)gnu.ai.mit.edu>, 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=$lt_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 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=cpp
+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;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
+
+# 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
+echo "$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
+echo "$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 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 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi
+fi
+
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ { echo "$as_me:$LINENO: result: $LD" >&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 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac
+fi
+{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&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
+ :
+ 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 { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# 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 "$lt_aix_libpath_sed"`
+fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# 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 "$lt_aix_libpath_sed"`
+fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 <jrb3(a)best.com> 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` $xlcverstring'
+ 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 $xlcverstring~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* | 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*) ;;
+ *)
+ 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
+ ;;
+ interix[3-9]*)
+ 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* | k*bsd*-gnu)
+ 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'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ 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='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
+ hardcode_libdir_flag_spec_CXX='-R$libdir'
+ whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+
+ # Not sure whether something based on
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
+ # would be better.
+ 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'
+ ;;
+ esac
+ ;;
+ 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*)
+ if test -f /usr/libexec/ld.so; then
+ 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'
+ else
+ ld_shlibs_CXX=no
+ fi
+ ;;
+ 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 compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ whole_archive_flag_spec_CXX='-z allextract$convenience -z 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'
+ case $host_os in
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
+ *)
+ whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ ;;
+ esac
+ 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 <<EOF
+class Foo
+{
+public:
+ Foo (void) { a = 0; }
+private:
+ int a;
+};
+EOF
+
+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
+ # 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
+interix[3-9]*)
+ # 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=
+ ;;
+
+linux*)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ #
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+ if test "$solaris_use_stlport4" != yes; then
+ postdeps_CXX='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+
+solaris*)
+ case $cc_basename in
+ CC*)
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ # 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.
+ if test "$solaris_use_stlport4" != yes; then
+ postdeps_CXX='-library=Cstd -library=Crun'
+ fi
+ ;;
+ 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* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+ mingw* | cygwin* | 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ 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=
+ ;;
+ interix[3-9]*)
+ # 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* | 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* | k*bsd*-gnu)
+ 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'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ lt_prog_compiler_pic_CXX='-KPIC'
+ lt_prog_compiler_static_CXX='-Bstatic'
+ lt_prog_compiler_wl_CXX='-Qoption ld '
+ ;;
+ esac
+ ;;
+ 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
+ echo "$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:12881: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:12885: \$? = $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"
+ echo "$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
+ echo "$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:12985: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:12989: \$? = $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*
+ echo "$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"
+
+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<name>.so
+ # instead of lib<name>.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
+ ;;
+
+ *)
+ 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`'
+
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | 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
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[01]* | freebsdelf3.[01]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ 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
+ ;;
+ *) # from 4.6 on, and DragonFly
+ 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'
+ ;;
+
+interix[3-9]*)
+ 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* | k*bsd*-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'
+ 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>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;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'
+ ;;
+
+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"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+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 \
+ fix_srcfile_path_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=$lt_fix_srcfile_path
+
+# 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
+ return
+ end
+"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="\
+ program t
+ end
+"
+
+# 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
+echo "$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
+echo "$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* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ 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'
+ ;;
+
+ interix[3-9]*)
+ # 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* | cygwin* | 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* | k*bsd*-gnu)
+ 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'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ lt_prog_compiler_pic_F77='-KPIC'
+ lt_prog_compiler_static_F77='-Bstatic'
+ lt_prog_compiler_wl_F77='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ lt_prog_compiler_pic_F77='-KPIC'
+ lt_prog_compiler_static_F77='-Bstatic'
+ lt_prog_compiler_wl_F77=''
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl_F77='-Wl,'
+ # All OSF/1 code is PIC.
+ lt_prog_compiler_static_F77='-non_shared'
+ ;;
+
+ rdos*)
+ 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
+ echo "$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:14547: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:14551: \$? = $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"
+ echo "$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
+ echo "$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:14651: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:14655: \$? = $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 <<EOF 1>&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 <kc5tja(a)dolphin.openprojects.net> 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 <jrb3(a)best.com> 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/'\'' -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
+ ;;
+
+ interix[3-9]*)
+ 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'
+ ;;
+
+ gnu* | linux* | k*bsd*-gnu)
+ 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
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ *)
+ tmp_sharedflag='-shared' ;;
+ esac
+ archive_cmds_F77='$CC '"$tmp_sharedflag""$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 '"$tmp_sharedflag""$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 <<EOF 1>&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
+ :
+ 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 { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_f77_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# 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 "$lt_aix_libpath_sed"`
+fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_f77_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# 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 "$lt_aix_libpath_sed"`
+fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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` $xlcverstring'
+ 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 $xlcverstring~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* | 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*)
+ if test -f /usr/libexec/ld.so; then
+ 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
+ else
+ ld_shlibs_F77=no
+ 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 and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ 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* | sco3.2v5.0.[024]*)
+ 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*
+ echo "$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"
+
+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<name>.so
+ # instead of lib<name>.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
+ ;;
+
+ *)
+ 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`'
+
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | 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
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[01]* | freebsdelf3.[01]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ 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
+ ;;
+ *) # from 4.6 on, and DragonFly
+ 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'
+ ;;
+
+interix[3-9]*)
+ 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* | k*bsd*-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'
+ 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>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;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'
+ ;;
+
+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"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+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 \
+ fix_srcfile_path_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=$lt_fix_srcfile_path
+
+# 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 {}"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
+
+# 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
+echo "$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
+echo "$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
+ echo "$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:16838: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:16842: \$? = $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* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | 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).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ 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'
+ ;;
+
+ interix[3-9]*)
+ # 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* | cygwin* | 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* | k*bsd*-gnu)
+ 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'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ lt_prog_compiler_pic_GCJ='-KPIC'
+ lt_prog_compiler_static_GCJ='-Bstatic'
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ lt_prog_compiler_pic_GCJ='-KPIC'
+ lt_prog_compiler_static_GCJ='-Bstatic'
+ lt_prog_compiler_wl_GCJ=''
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl_GCJ='-Wl,'
+ # All OSF/1 code is PIC.
+ lt_prog_compiler_static_GCJ='-non_shared'
+ ;;
+
+ rdos*)
+ 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
+ echo "$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:17128: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:17132: \$? = $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"
+ echo "$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
+ echo "$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:17232: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:17236: \$? = $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 <<EOF 1>&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 <kc5tja(a)dolphin.openprojects.net> 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 <jrb3(a)best.com> 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/'\'' -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
+ ;;
+
+ interix[3-9]*)
+ 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'
+ ;;
+
+ gnu* | linux* | k*bsd*-gnu)
+ 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
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ *)
+ tmp_sharedflag='-shared' ;;
+ esac
+ archive_cmds_GCJ='$CC '"$tmp_sharedflag""$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 '"$tmp_sharedflag""$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 <<EOF 1>&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
+ :
+ 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 { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# 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 "$lt_aix_libpath_sed"`
+fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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 { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# 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 "$lt_aix_libpath_sed"`
+fi
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ 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` $xlcverstring'
+ 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 $xlcverstring~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* | 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*)
+ if test -f /usr/libexec/ld.so; then
+ 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
+ else
+ ld_shlibs_GCJ=no
+ 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 and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ 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* | sco3.2v5.0.[024]*)
+ 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*
+ echo "$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"
+
+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<name>.so
+ # instead of lib<name>.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
+ ;;
+
+ *)
+ 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`'
+
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | 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
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[01]* | freebsdelf3.[01]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ 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
+ ;;
+ *) # from 4.6 on, and DragonFly
+ 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'
+ ;;
+
+interix[3-9]*)
+ 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* | k*bsd*-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'
+ 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>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;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'
+ ;;
+
+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"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+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 \
+ fix_srcfile_path_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=$lt_fix_srcfile_path
+
+# 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 }'
+
+# 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
+echo "$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
+echo "$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 \
+ fix_srcfile_path_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=$lt_fix_srcfile_path
+
+# 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ac_config_headers="$ac_config_headers config.h"
+
+# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+# for constant arguments. Useless!
+{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
+if test "${ac_cv_working_alloca_h+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 <alloca.h>
+int
+main ()
+{
+char *p = (char *) alloca (2 * sizeof (int));
+ if (p) return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ ac_cv_working_alloca_h=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_working_alloca_h=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
+echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
+if test $ac_cv_working_alloca_h = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_ALLOCA_H 1
+_ACEOF
+
+fi
+
+{ echo "$as_me:$LINENO: checking for alloca" >&5
+echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
+if test "${ac_cv_func_alloca_works+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. */
+#ifdef __GNUC__
+# define alloca __builtin_alloca
+#else
+# ifdef _MSC_VER
+# include <malloc.h>
+# define alloca _alloca
+# else
+# ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
+ #pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+# endif
+# endif
+# endif
+# endif
+#endif
+
+int
+main ()
+{
+char *p = (char *) alloca (1);
+ if (p) return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ ac_cv_func_alloca_works=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_alloca_works=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
+echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
+
+if test $ac_cv_func_alloca_works = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_ALLOCA 1
+_ACEOF
+
+else
+ # The SVR3 libPW and SVR4 libucb both contain incompatible functions
+# that cause trouble. Some versions do not even contain alloca or
+# contain a buggy version. If you still want to use their alloca,
+# use ar to extract alloca.o from them instead of compiling alloca.c.
+
+ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
+
+cat >>confdefs.h <<\_ACEOF
+#define C_ALLOCA 1
+_ACEOF
+
+
+{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
+echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
+if test "${ac_cv_os_cray+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. */
+#if defined CRAY && ! defined CRAY2
+webecray
+#else
+wenotbecray
+#endif
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "webecray" >/dev/null 2>&1; then
+ ac_cv_os_cray=yes
+else
+ ac_cv_os_cray=no
+fi
+rm -f conftest*
+
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
+echo "${ECHO_T}$ac_cv_os_cray" >&6; }
+if test $ac_cv_os_cray = yes; then
+ for ac_func in _getb67 GETB67 getb67; do
+ as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_var'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define CRAY_STACKSEG_END $ac_func
+_ACEOF
+
+ break
+fi
+
+ done
+fi
+
+{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
+echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
+if test "${ac_cv_c_stack_direction+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$cross_compiling" = yes; then
+ ac_cv_c_stack_direction=0
+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
+int
+find_stack_direction ()
+{
+ static char *addr = 0;
+ auto char dummy;
+ if (addr == 0)
+ {
+ addr = &dummy;
+ return find_stack_direction ();
+ }
+ else
+ return (&dummy > addr) ? 1 : -1;
+}
+
+int
+main ()
+{
+ return find_stack_direction () < 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_c_stack_direction=1
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_c_stack_direction=-1
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
+echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
+
+cat >>confdefs.h <<_ACEOF
+#define STACK_DIRECTION $ac_cv_c_stack_direction
+_ACEOF
+
+
+fi
+
+{ 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 <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; 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 core 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 <string.h>
+
+_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 <stdlib.h>
+
+_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 <ctype.h>
+#include <stdlib.h>
+#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))
+ return 2;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* 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
+
+
+
+
+
+# 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+ ;;
+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" ; then
+ { { echo "$as_me:$LINENO: error:
+*** You need the latest pkg-config.
+*** Get the latest version of pkg-config from
+*** <http://www.freedesktop.org/software/pkgconfig/>." >&5
+echo "$as_me: error:
+*** You need the latest pkg-config.
+*** Get the latest version of pkg-config from
+*** <http://www.freedesktop.org/software/pkgconfig/>." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+
+
+# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+# for constant arguments. Useless!
+{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
+echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
+if test "${ac_cv_working_alloca_h+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 <alloca.h>
+int
+main ()
+{
+char *p = (char *) alloca (2 * sizeof (int));
+ if (p) return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ ac_cv_working_alloca_h=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_working_alloca_h=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
+echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
+if test $ac_cv_working_alloca_h = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_ALLOCA_H 1
+_ACEOF
+
+fi
+
+{ echo "$as_me:$LINENO: checking for alloca" >&5
+echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
+if test "${ac_cv_func_alloca_works+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. */
+#ifdef __GNUC__
+# define alloca __builtin_alloca
+#else
+# ifdef _MSC_VER
+# include <malloc.h>
+# define alloca _alloca
+# else
+# ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
+ #pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+# endif
+# endif
+# endif
+# endif
+#endif
+
+int
+main ()
+{
+char *p = (char *) alloca (1);
+ if (p) return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ ac_cv_func_alloca_works=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_alloca_works=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
+echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
+
+if test $ac_cv_func_alloca_works = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_ALLOCA 1
+_ACEOF
+
+else
+ # The SVR3 libPW and SVR4 libucb both contain incompatible functions
+# that cause trouble. Some versions do not even contain alloca or
+# contain a buggy version. If you still want to use their alloca,
+# use ar to extract alloca.o from them instead of compiling alloca.c.
+
+ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
+
+cat >>confdefs.h <<\_ACEOF
+#define C_ALLOCA 1
+_ACEOF
+
+
+{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
+echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
+if test "${ac_cv_os_cray+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. */
+#if defined CRAY && ! defined CRAY2
+webecray
+#else
+wenotbecray
+#endif
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "webecray" >/dev/null 2>&1; then
+ ac_cv_os_cray=yes
+else
+ ac_cv_os_cray=no
+fi
+rm -f conftest*
+
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
+echo "${ECHO_T}$ac_cv_os_cray" >&6; }
+if test $ac_cv_os_cray = yes; then
+ for ac_func in _getb67 GETB67 getb67; do
+ as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+ eval "$as_ac_var=yes"
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_var'}'`
+ { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define CRAY_STACKSEG_END $ac_func
+_ACEOF
+
+ break
+fi
+
+ done
+fi
+
+{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
+echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
+if test "${ac_cv_c_stack_direction+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test "$cross_compiling" = yes; then
+ ac_cv_c_stack_direction=0
+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
+int
+find_stack_direction ()
+{
+ static char *addr = 0;
+ auto char dummy;
+ if (addr == 0)
+ {
+ addr = &dummy;
+ return find_stack_direction ();
+ }
+ else
+ return (&dummy > addr) ? 1 : -1;
+}
+
+int
+main ()
+{
+ return find_stack_direction () < 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_c_stack_direction=1
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_c_stack_direction=-1
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
+echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
+
+cat >>confdefs.h <<_ACEOF
+#define STACK_DIRECTION $ac_cv_c_stack_direction
+_ACEOF
+
+
+fi
+
+{ 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 <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; 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 core 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 <string.h>
+
+_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 <stdlib.h>
+
+_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 <ctype.h>
+#include <stdlib.h>
+#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))
+ return 2;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* 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
+
+
+{ echo "$as_me:$LINENO: checking for zypp 3" >&5
+echo $ECHO_N "checking for zypp 3... $ECHO_C" >&6; }
+if test -f /usr/include/zypp/SourceManager.h; then
+
+cat >>confdefs.h <<\_ACEOF
+#define PRE_ZYPP_3 1
+_ACEOF
+
+ { echo "$as_me:$LINENO: result: pre 3" >&5
+echo "${ECHO_T}pre 3" >&6; }
+else
+ { echo "$as_me:$LINENO: result: found" >&5
+echo "${ECHO_T}found" >&6; }
+fi
+
+
+
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+ ;;
+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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
+IFS=$as_save_IFS
+
+ ;;
+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
+
+ if test "x$ac_pt_PKG_CONFIG" = x; then
+ PKG_CONFIG=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet. If you think this
+configuration is useful to you, please write to autoconf(a)gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+ PKG_CONFIG=$ac_pt_PKG_CONFIG
+ fi
+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 ZYPP" >&5
+echo $ECHO_N "checking for ZYPP... $ECHO_C" >&6; }
+
+if test -n "$PKG_CONFIG"; then
+ if test -n "$ZYPP_CFLAGS"; then
+ pkg_cv_ZYPP_CFLAGS="$ZYPP_CFLAGS"
+ else
+ if test -n "$PKG_CONFIG" && \
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libzypp \"") >&5
+ ($PKG_CONFIG --exists --print-errors "libzypp ") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_ZYPP_CFLAGS=`$PKG_CONFIG --cflags "libzypp " 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ fi
+else
+ pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+ if test -n "$ZYPP_LIBS"; then
+ pkg_cv_ZYPP_LIBS="$ZYPP_LIBS"
+ else
+ if test -n "$PKG_CONFIG" && \
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libzypp \"") >&5
+ ($PKG_CONFIG --exists --print-errors "libzypp ") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_ZYPP_LIBS=`$PKG_CONFIG --libs "libzypp " 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
+ ZYPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libzypp "`
+ else
+ ZYPP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libzypp "`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ZYPP_PKG_ERRORS" >&5
+
+ { { echo "$as_me:$LINENO: error: Package requirements (libzypp ) were not met:
+
+$ZYPP_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 ZYPP_CFLAGS
+and ZYPP_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 (libzypp ) were not met:
+
+$ZYPP_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 ZYPP_CFLAGS
+and ZYPP_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 ZYPP_CFLAGS
+and ZYPP_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
+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 ZYPP_CFLAGS
+and ZYPP_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ ZYPP_CFLAGS=$pkg_cv_ZYPP_CFLAGS
+ ZYPP_LIBS=$pkg_cv_ZYPP_LIBS
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ :
+fi
+
+
+
+pkg_failed=no
+{ echo "$as_me:$LINENO: checking for GTK" >&5
+echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
+
+if test -n "$PKG_CONFIG"; then
+ if test -n "$GTK_CFLAGS"; then
+ pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
+ else
+ if test -n "$PKG_CONFIG" && \
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 \"") >&5
+ ($PKG_CONFIG --exists --print-errors "gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 ") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 " 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ fi
+else
+ pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+ if test -n "$GTK_LIBS"; then
+ pkg_cv_GTK_LIBS="$GTK_LIBS"
+ else
+ if test -n "$PKG_CONFIG" && \
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 \"") >&5
+ ($PKG_CONFIG --exists --print-errors "gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 ") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.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
+ GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 "`
+ else
+ GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 "`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$GTK_PKG_ERRORS" >&5
+
+ { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 ) were not met:
+
+$GTK_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 GTK_CFLAGS
+and GTK_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 (gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 ) were not met:
+
+$GTK_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 GTK_CFLAGS
+and GTK_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 GTK_CFLAGS
+and GTK_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
+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 GTK_CFLAGS
+and GTK_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
+ GTK_LIBS=$pkg_cv_GTK_LIBS
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ :
+fi
+
+
+
+# TODO: we may want to check if GtkHtml is installed and set its flag
+#dnl Check if GtkHtml is installed
+#AC_MSG_CHECKING([for gtkhtml])
+#PKG_CHECK_MODULES( GTKHTML, libgtkhtml-3.14 )
+#AC_SUBST(GTKHTML_CFLAGS)
+#AC_SUBST(GTKHTML_LIBS)
+#AC_DEFINE(USE_GTKHTML, 1, [will use GtkHtml as the HTML renderer])
+
+
+pkg_failed=no
+{ echo "$as_me:$LINENO: checking for ZYPP" >&5
+echo $ECHO_N "checking for ZYPP... $ECHO_C" >&6; }
+
+if test -n "$PKG_CONFIG"; then
+ if test -n "$ZYPP_CFLAGS"; then
+ pkg_cv_ZYPP_CFLAGS="$ZYPP_CFLAGS"
+ else
+ if test -n "$PKG_CONFIG" && \
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libzypp \"") >&5
+ ($PKG_CONFIG --exists --print-errors "libzypp ") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_ZYPP_CFLAGS=`$PKG_CONFIG --cflags "libzypp " 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ fi
+else
+ pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+ if test -n "$ZYPP_LIBS"; then
+ pkg_cv_ZYPP_LIBS="$ZYPP_LIBS"
+ else
+ if test -n "$PKG_CONFIG" && \
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libzypp \"") >&5
+ ($PKG_CONFIG --exists --print-errors "libzypp ") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_ZYPP_LIBS=`$PKG_CONFIG --libs "libzypp " 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
+ ZYPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libzypp "`
+ else
+ ZYPP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libzypp "`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ZYPP_PKG_ERRORS" >&5
+
+ { { echo "$as_me:$LINENO: error: Package requirements (libzypp ) were not met:
+
+$ZYPP_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 ZYPP_CFLAGS
+and ZYPP_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 (libzypp ) were not met:
+
+$ZYPP_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 ZYPP_CFLAGS
+and ZYPP_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 ZYPP_CFLAGS
+and ZYPP_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
+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 ZYPP_CFLAGS
+and ZYPP_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ ZYPP_CFLAGS=$pkg_cv_ZYPP_CFLAGS
+ ZYPP_LIBS=$pkg_cv_ZYPP_LIBS
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ :
+fi
+
+
+verstxt=`pkg-config --modversion yast2-core`
+yast_vers=`echo "$verstxt" | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
+
+cat >>confdefs.h <<_ACEOF
+#define YAST2_VERSION $yast_vers
+_ACEOF
+
+
+{ echo "$as_me:$LINENO: checking for old libyui" >&5
+echo $ECHO_N "checking for old libyui... $ECHO_C" >&6; }
+PYUI_LIBS='-lpy2UI'
+if test $yast_vers -le 2015006; then
+ PYUI_LIBS='-lyui'
+ { echo "$as_me:$LINENO: result: found" >&5
+echo "${ECHO_T}found" >&6; }
+else
+ { echo "$as_me:$LINENO: result: use new lib" >&5
+echo "${ECHO_T}use new lib" >&6; }
+fi
+
+
+ac_config_files="$ac_config_files Makefile src/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, we kill variables containing newlines.
+# 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.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
+echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ *) $as_unset $ac_var ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}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 "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ 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 "$as_me:$LINENO: updating cache $cache_file" >&5
+echo "$as_me: updating cache $cache_file" >&6;}
+ cat confcache >$cache_file
+ else
+ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
+echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+ 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}'
+
+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_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`echo "$ac_i" | sed "$ac_script"`
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+if test -z "${CREATE_PKGCONFIG_TRUE}" && test -z "${CREATE_PKGCONFIG_FALSE}"; then
+ { { echo "$as_me:$LINENO: error: conditional \"CREATE_PKGCONFIG\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"CREATE_PKGCONFIG\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${CREATE_PKGCONFIG_NOARCH_TRUE}" && test -z "${CREATE_PKGCONFIG_NOARCH_FALSE}"; then
+ { { echo "$as_me:$LINENO: error: conditional \"CREATE_PKGCONFIG_NOARCH\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"CREATE_PKGCONFIG_NOARCH\" 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__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
+ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+: ${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 more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+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+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+
+
+# PATH needs CR
+# 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
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+as_nl='
+'
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+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
+IFS=$as_save_IFS
+
+ ;;
+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_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ { (exit 1); exit 1; }
+fi
+
+# Work around bugs in pre-3.0 UWIN ksh.
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
+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) >/dev/null 2>&1 && $as_unset $as_var
+ fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; 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'`
+
+# CDPATH.
+$as_unset CDPATH
+
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
+
+ # 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 after each line using $LINENO; the second 'sed'
+ # does the real work. The second script uses 'N' to pair each
+ # line-number line with the line containing $LINENO, 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
+ # scripts with optimization help from Paolo Bonzini. Blame Lee
+ # E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\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 sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in
+-n*)
+ case `echo 'x\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ *) ECHO_C='\c';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir
+fi
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+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$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p=:
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# 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'"
+
+
+exec 6>&1
+
+# Save the log message, to keep $[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by yast2-gtk $as_me 2.15.9, which was
+generated by GNU Autoconf 2.61. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+config_commands="$ac_config_commands"
+
+_ACEOF
+
+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 and configuration settings, 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 <bug-autoconf(a)gnu.org>."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+ac_cs_version="\\
+yast2-gtk config.status 2.15.9
+configured by $0, generated by GNU Autoconf 2.61,
+ with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright (C) 2006 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+_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
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ echo "$ac_cs_version"; exit ;;
+ --debug | --debu | --deb | --de | --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;;
+ --he | --h)
+ # Conflict between --help and --header
+ { 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 ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) { 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"
+ ac_need_defaults=false ;;
+
+ 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 CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
+ CONFIG_SHELL=$SHELL
+ export CONFIG_SHELL
+ exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ echo "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+#
+# INIT-COMMANDS
+#
+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+
+ *) { { 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 against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp=
+ trap 'exit_status=$?
+ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$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 "./confXXXXXX") 2>/dev/null` &&
+ test -n "$tmp" && test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} ||
+{
+ echo "$me: cannot create a temporary directory in ." >&2
+ { (exit 1); exit 1; }
+}
+
+#
+# Set up the sed scripts for 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
+
+_ACEOF
+
+
+
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ cat >conf$$subs.sed <<_ACEOF
+SHELL!$SHELL$ac_delim
+PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
+PACKAGE_NAME!$PACKAGE_NAME$ac_delim
+PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
+PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
+PACKAGE_STRING!$PACKAGE_STRING$ac_delim
+PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
+exec_prefix!$exec_prefix$ac_delim
+prefix!$prefix$ac_delim
+program_transform_name!$program_transform_name$ac_delim
+bindir!$bindir$ac_delim
+sbindir!$sbindir$ac_delim
+libexecdir!$libexecdir$ac_delim
+datarootdir!$datarootdir$ac_delim
+datadir!$datadir$ac_delim
+sysconfdir!$sysconfdir$ac_delim
+sharedstatedir!$sharedstatedir$ac_delim
+localstatedir!$localstatedir$ac_delim
+includedir!$includedir$ac_delim
+oldincludedir!$oldincludedir$ac_delim
+docdir!$docdir$ac_delim
+infodir!$infodir$ac_delim
+htmldir!$htmldir$ac_delim
+dvidir!$dvidir$ac_delim
+pdfdir!$pdfdir$ac_delim
+psdir!$psdir$ac_delim
+libdir!$libdir$ac_delim
+localedir!$localedir$ac_delim
+mandir!$mandir$ac_delim
+DEFS!$DEFS$ac_delim
+ECHO_C!$ECHO_C$ac_delim
+ECHO_N!$ECHO_N$ac_delim
+ECHO_T!$ECHO_T$ac_delim
+LIBS!$LIBS$ac_delim
+build_alias!$build_alias$ac_delim
+host_alias!$host_alias$ac_delim
+target_alias!$target_alias$ac_delim
+build!$build$ac_delim
+build_cpu!$build_cpu$ac_delim
+build_vendor!$build_vendor$ac_delim
+build_os!$build_os$ac_delim
+host!$host$ac_delim
+host_cpu!$host_cpu$ac_delim
+host_vendor!$host_vendor$ac_delim
+host_os!$host_os$ac_delim
+target!$target$ac_delim
+target_cpu!$target_cpu$ac_delim
+target_vendor!$target_vendor$ac_delim
+target_os!$target_os$ac_delim
+INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
+INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
+INSTALL_DATA!$INSTALL_DATA$ac_delim
+am__isrc!$am__isrc$ac_delim
+CYGPATH_W!$CYGPATH_W$ac_delim
+PACKAGE!$PACKAGE$ac_delim
+VERSION!$VERSION$ac_delim
+ACLOCAL!$ACLOCAL$ac_delim
+AUTOCONF!$AUTOCONF$ac_delim
+AUTOMAKE!$AUTOMAKE$ac_delim
+AUTOHEADER!$AUTOHEADER$ac_delim
+MAKEINFO!$MAKEINFO$ac_delim
+install_sh!$install_sh$ac_delim
+STRIP!$STRIP$ac_delim
+INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
+mkdir_p!$mkdir_p$ac_delim
+AWK!$AWK$ac_delim
+SET_MAKE!$SET_MAKE$ac_delim
+am__leading_dot!$am__leading_dot$ac_delim
+AMTAR!$AMTAR$ac_delim
+am__tar!$am__tar$ac_delim
+am__untar!$am__untar$ac_delim
+RPMNAME!$RPMNAME$ac_delim
+MAINTAINER!$MAINTAINER$ac_delim
+pkgconfigdir!$pkgconfigdir$ac_delim
+pkgconfigdatadir!$pkgconfigdatadir$ac_delim
+yast2dir!$yast2dir$ac_delim
+ybindir!$ybindir$ac_delim
+ystartupdir!$ystartupdir$ac_delim
+plugindir!$plugindir$ac_delim
+potdir!$potdir$ac_delim
+execcompdir!$execcompdir$ac_delim
+ydatadir!$ydatadir$ac_delim
+imagedir!$imagedir$ac_delim
+themedir!$themedir$ac_delim
+clientdir!$clientdir$ac_delim
+moduledir!$moduledir$ac_delim
+yncludedir!$yncludedir$ac_delim
+schemadir!$schemadir$ac_delim
+scrconfdir!$scrconfdir$ac_delim
+agentdir!$agentdir$ac_delim
+desktopdir!$desktopdir$ac_delim
+fillupdir!$fillupdir$ac_delim
+LN_S!$LN_S$ac_delim
+PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
+XGETTEXT!$XGETTEXT$ac_delim
+Y2DEVTOOLS_PREFIX!$Y2DEVTOOLS_PREFIX$ac_delim
+CREATE_PKGCONFIG_TRUE!$CREATE_PKGCONFIG_TRUE$ac_delim
+_ACEOF
+
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
+ break
+ elif $ac_last_try; then
+ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
+echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
+ { (exit 1); exit 1; }; }
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+
+ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
+if test -n "$ac_eof"; then
+ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
+ ac_eof=`expr $ac_eof + 1`
+fi
+
+cat >>$CONFIG_STATUS <<_ACEOF
+cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+_ACEOF
+sed '
+s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
+s/^/s,@/; s/!/@,|#_!!_#|/
+:n
+t n
+s/'"$ac_delim"'$/,g/; t
+s/$/\\/; p
+N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
+' >>$CONFIG_STATUS <conf$$subs.sed
+rm -f conf$$subs.sed
+cat >>$CONFIG_STATUS <<_ACEOF
+CEOF$ac_eof
+_ACEOF
+
+
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ cat >conf$$subs.sed <<_ACEOF
+CREATE_PKGCONFIG_FALSE!$CREATE_PKGCONFIG_FALSE$ac_delim
+CREATE_PKGCONFIG_NOARCH_TRUE!$CREATE_PKGCONFIG_NOARCH_TRUE$ac_delim
+CREATE_PKGCONFIG_NOARCH_FALSE!$CREATE_PKGCONFIG_NOARCH_FALSE$ac_delim
+STYLESHEET_HTML!$STYLESHEET_HTML$ac_delim
+STYLESHEET_PDF!$STYLESHEET_PDF$ac_delim
+STYLESHEET_CSS!$STYLESHEET_CSS$ac_delim
+STYLESHEET_YDOC!$STYLESHEET_YDOC$ac_delim
+STYLESHEET_YCPDOC!$STYLESHEET_YCPDOC$ac_delim
+YDOXYGEN!$YDOXYGEN$ac_delim
+CXX!$CXX$ac_delim
+CXXFLAGS!$CXXFLAGS$ac_delim
+LDFLAGS!$LDFLAGS$ac_delim
+CPPFLAGS!$CPPFLAGS$ac_delim
+ac_ct_CXX!$ac_ct_CXX$ac_delim
+EXEEXT!$EXEEXT$ac_delim
+OBJEXT!$OBJEXT$ac_delim
+DEPDIR!$DEPDIR$ac_delim
+am__include!$am__include$ac_delim
+am__quote!$am__quote$ac_delim
+AMDEP_TRUE!$AMDEP_TRUE$ac_delim
+AMDEP_FALSE!$AMDEP_FALSE$ac_delim
+AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
+CXXDEPMODE!$CXXDEPMODE$ac_delim
+am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
+am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
+CC!$CC$ac_delim
+CFLAGS!$CFLAGS$ac_delim
+ac_ct_CC!$ac_ct_CC$ac_delim
+CCDEPMODE!$CCDEPMODE$ac_delim
+am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
+am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
+CPP!$CPP$ac_delim
+AGENT_LIBADD!$AGENT_LIBADD$ac_delim
+SED!$SED$ac_delim
+GREP!$GREP$ac_delim
+EGREP!$EGREP$ac_delim
+ECHO!$ECHO$ac_delim
+AR!$AR$ac_delim
+RANLIB!$RANLIB$ac_delim
+CXXCPP!$CXXCPP$ac_delim
+F77!$F77$ac_delim
+FFLAGS!$FFLAGS$ac_delim
+ac_ct_F77!$ac_ct_F77$ac_delim
+LIBTOOL!$LIBTOOL$ac_delim
+ALLOCA!$ALLOCA$ac_delim
+PKG_CONFIG!$PKG_CONFIG$ac_delim
+ZYPP_CFLAGS!$ZYPP_CFLAGS$ac_delim
+ZYPP_LIBS!$ZYPP_LIBS$ac_delim
+GTK_CFLAGS!$GTK_CFLAGS$ac_delim
+GTK_LIBS!$GTK_LIBS$ac_delim
+PYUI_LIBS!$PYUI_LIBS$ac_delim
+LIBOBJS!$LIBOBJS$ac_delim
+LTLIBOBJS!$LTLIBOBJS$ac_delim
+_ACEOF
+
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
+ break
+ elif $ac_last_try; then
+ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
+echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
+ { (exit 1); exit 1; }; }
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+
+ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
+if test -n "$ac_eof"; then
+ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
+ ac_eof=`expr $ac_eof + 1`
+fi
+
+cat >>$CONFIG_STATUS <<_ACEOF
+cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
+_ACEOF
+sed '
+s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
+s/^/s,@/; s/!/@,|#_!!_#|/
+:n
+t n
+s/'"$ac_delim"'$/,g/; t
+s/$/\\/; p
+N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
+' >>$CONFIG_STATUS <conf$$subs.sed
+rm -f conf$$subs.sed
+cat >>$CONFIG_STATUS <<_ACEOF
+:end
+s/|#_!!_#|//g
+CEOF$ac_eof
+_ACEOF
+
+
+# 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
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+fi # test -n "$CONFIG_FILES"
+
+
+for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
+echo "$as_me: error: Invalid tag $ac_tag." >&2;}
+ { (exit 1); exit 1; }; };;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
+echo "$as_me: error: cannot find input file: $ac_f" >&2;}
+ { (exit 1); exit 1; }; };;
+ esac
+ ac_file_inputs="$ac_file_inputs $ac_f"
+ done
+
+ # 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. */
+ configure_input="Generated from "`IFS=:
+ echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+ fi
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$tmp/stdin";;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$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'`
+ { as_dir="$ac_dir"
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$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'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+echo "$as_me: error: cannot create directory $as_dir" >&2;}
+ { (exit 1); exit 1; }; }; }
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+
+case `sed -n '/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p
+' $ac_file_inputs` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+ ac_datarootdir_hack='
+ s&@datadir@&$datadir&g
+ s&@docdir@&$docdir&g
+ s&@infodir@&$infodir&g
+ s&@localedir@&$localedir&g
+ s&@mandir@&$mandir&g
+ s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+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&@top_builddir@&$ac_top_builddir_sub&;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&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
+ { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined." >&5
+echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined." >&2;}
+
+ rm -f "$tmp/stdin"
+ case $ac_file in
+ -) cat "$tmp/out"; rm -f "$tmp/out";;
+ *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
+ esac
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
+_ACEOF
+
+# Transform confdefs.h into a sed script `conftest.defines', that
+# substitutes the proper values into config.h.in to produce config.h.
+rm -f conftest.defines conftest.tail
+# First, append a space to every undef/define line, to ease matching.
+echo 's/$/ /' >conftest.defines
+# Then, protect against being on the right side of a sed subst, or in
+# an unquoted here document, in config.status. If some macros were
+# called several times there might be several #defines for the same
+# symbol, which is useless. But do not sort them, since the last
+# AC_DEFINE must be honored.
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
+# NAME is the cpp macro being defined, VALUE is the value it is being given.
+# PARAMS is the parameter list in the macro definition--in most cases, it's
+# just an empty string.
+ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
+ac_dB='\\)[ (].*,\\1define\\2'
+ac_dC=' '
+ac_dD=' ,'
+
+uniq confdefs.h |
+ sed -n '
+ t rset
+ :rset
+ s/^[ ]*#[ ]*define[ ][ ]*//
+ t ok
+ d
+ :ok
+ s/[\\&,]/\\&/g
+ s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
+ s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
+ ' >>conftest.defines
+
+# Remove the space that was appended to ease matching.
+# Then replace #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.
+# (The regexp can be short, since the line contains either #define or #undef.)
+echo 's/ $//
+s,^[ #]*u.*,/* & */,' >>conftest.defines
+
+# Break up conftest.defines:
+ac_max_sed_lines=50
+
+# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
+# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
+# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
+# et cetera.
+ac_in='$ac_file_inputs'
+ac_out='"$tmp/out1"'
+ac_nxt='"$tmp/out2"'
+
+while :
+do
+ # Write a here document:
+ cat >>$CONFIG_STATUS <<_ACEOF
+ # First, check the format of the line:
+ cat >"\$tmp/defines.sed" <<\\CEOF
+/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
+/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
+b
+:def
+_ACEOF
+ sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
+ echo 'CEOF
+ sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
+ ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
+ sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
+ grep . conftest.tail >/dev/null || break
+ rm -f conftest.defines
+ mv conftest.tail conftest.defines
+done
+rm -f conftest.defines conftest.tail
+
+echo "ac_result=$ac_in" >>$CONFIG_STATUS
+cat >>$CONFIG_STATUS <<\_ACEOF
+ if test x"$ac_file" != x-; then
+ echo "/* $configure_input */" >"$tmp/config.h"
+ cat "$ac_result" >>"$tmp/config.h"
+ 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
+ rm -f $ac_file
+ mv "$tmp/config.h" $ac_file
+ fi
+ else
+ echo "/* $configure_input */"
+ cat "$ac_result"
+ fi
+ rm -f "$tmp/out12"
+# 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" >`$as_dirname -- $ac_file ||
+$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
+ ;;
+
+ :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
+echo "$as_me: executing $ac_file commands" >&6;}
+ ;;
+ esac
+
+
+ case $ac_file$ac_mode in
+ "depfiles":C) 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.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
+ dirpart=`$as_dirname -- "$mf" ||
+$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
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. 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 "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/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_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'`
+ { as_dir=$dirpart/$fdir
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$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'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+echo "$as_me: error: cannot create directory $as_dir" >&2;}
+ { (exit 1); exit 1; }; }; }
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+done
+ ;;
+
+ esac
+done # for ac_tag
+
+
+{ (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
+
+
+echo "
+Hello hacker: please read the README carefully while this builds.
+"
Added: trunk/gtk/unstable-libyui/configure.in
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/configure.in…
==============================================================================
--- trunk/gtk/unstable-libyui/configure.in (added)
+++ trunk/gtk/unstable-libyui/configure.in Wed Dec 5 14:14:01 2007
@@ -0,0 +1,233 @@
+dnl configure.in for yast2-gtk
+dnl
+dnl -- This file is generated by y2autoconf 2.15.9 - DO NOT EDIT! --
+dnl (edit configure.in.in instead)
+
+AC_INIT(yast2-gtk, 2.15.9, http://bugs.opensuse.org/, yast2-gtk)
+dnl Check for presence of file 'RPMNAME'
+AC_CONFIG_SRCDIR([RPMNAME])
+
+dnl Checking host/target/build systems, for make, install etc.
+AC_CANONICAL_TARGET
+dnl Perform program name transformation
+AC_ARG_PROGRAM
+
+AC_PREFIX_DEFAULT(/usr)
+
+AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
+
+dnl Important YaST2 variables
+VERSION="2.15.9"
+RPMNAME="yast2-gtk"
+MAINTAINER="Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt> \
+Michael Meeks <michael.meeks(a)novell.com>"
+
+dnl pkgconfig honors lib64
+pkgconfigdir=\${libdir}/pkgconfig
+pkgconfigdatadir=\${datadir}/pkgconfig
+yast2dir=\${prefix}/share/YaST2
+
+ybindir=\${prefix}/lib/YaST2/bin
+# FIXME duplicates execcompdir
+ystartupdir=\${prefix}/lib/YaST2
+plugindir=\${libdir}/YaST2/plugin
+includedir=\${prefix}/include/YaST2
+potdir=\${docdir}/pot
+
+docdir=\${prefix}/share/doc/packages/$RPMNAME
+mandir=\${prefix}/share/man
+
+execcompdir=\${prefix}/lib/YaST2
+agentdir=${execcompdir}/servers_non_y2
+
+ydatadir=${yast2dir}/data
+imagedir=${yast2dir}/images
+themedir=${yast2dir}/theme
+localedir=${yast2dir}/locale
+clientdir=${yast2dir}/clients
+moduledir=${yast2dir}/modules
+yncludedir=${yast2dir}/include
+schemadir=${yast2dir}/schema
+scrconfdir=${yast2dir}/scrconf
+desktopdir=\${prefix}/share/applications/YaST2
+
+AC_SUBST(VERSION)
+AC_SUBST(RPMNAME)
+AC_SUBST(MAINTAINER)
+
+AC_SUBST(pkgconfigdir)
+AC_SUBST(pkgconfigdatadir)
+
+AC_SUBST(yast2dir)
+
+AC_SUBST(ybindir)
+AC_SUBST(ystartupdir)
+AC_SUBST(plugindir)
+AC_SUBST(includedir)
+AC_SUBST(potdir)
+AC_SUBST(execcompdir)
+
+AC_SUBST(docdir)
+AC_SUBST(mandir)
+
+AC_SUBST(ydatadir)
+AC_SUBST(imagedir)
+AC_SUBST(themedir)
+AC_SUBST(localedir)
+AC_SUBST(clientdir)
+AC_SUBST(moduledir)
+AC_SUBST(yncludedir)
+AC_SUBST(schemadir)
+AC_SUBST(scrconfdir)
+AC_SUBST(agentdir)
+AC_SUBST(desktopdir)
+
+fillupdir_d="/var/adm/fillup-templates"
+AC_ARG_WITH(fillupdir,
+ AS_HELP_STRING([--with-fillupdir=DIR],
+ [where to place fillup templates (default $fillupdir_d.]),
+ [ fillupdir="$withval" ],
+ [ fillupdir="$fillupdir_d" ])
+AC_SUBST(fillupdir)
+
+
+
+dnl Checks for programs.
+AC_PROG_INSTALL
+dnl The YCP interpreter checks whether dependent ybc files are older
+dnl so we must preserve their timestamps
+INSTALL="${INSTALL} -p"
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+
+dnl pkgconfig
+AC_ARG_VAR([PKG_CONFIG_PATH], [where to search for pkg-config files])
+dnl devtools
+dnl ...
+
+dnl no need for AC_ARG_VAR
+AC_PATH_PROG(XGETTEXT, xgettext)
+if test -z "$XGETTEXT" ; then
+ AC_MSG_ERROR(xgettext is missing; please install gettext-devel.)
+fi
+
+Y2DEVTOOLS_PREFIX=`pkg-config --print-errors --variable=prefix yast2-devtools`
+AC_SUBST(Y2DEVTOOLS_PREFIX)
+devtools_ybindir=`pkg-config --print-errors --variable=ybindir yast2-devtools`
+devtools_yast2dir=`pkg-config --print-errors --variable=yast2dir yast2-devtools`
+
+dnl producing pkg-config for others?
+AM_CONDITIONAL(CREATE_PKGCONFIG, test "x${CREATE_PKGCONFIG}" != x)
+AM_CONDITIONAL(CREATE_PKGCONFIG_NOARCH, test "x${CREATE_PKGCONFIG}" = xnoarch)
+
+dbdir=${devtools_yast2dir}/data/docbook
+STYLESHEET_HTML=${dbdir}/stylesheets/customize-html.xsl
+STYLESHEET_PDF=${dbdir}/stylesheets/customize-fo.xsl
+STYLESHEET_CSS=${dbdir}/css/yast2docs.css
+STYLESHEET_YDOC=${dbdir}/stylesheets/ydoc.xsl
+STYLESHEET_YCPDOC=${dbdir}/stylesheets/ycpdoc.xsl
+AC_SUBST(STYLESHEET_HTML)
+AC_SUBST(STYLESHEET_PDF)
+AC_SUBST(STYLESHEET_CSS)
+AC_SUBST(STYLESHEET_YDOC)
+AC_SUBST(STYLESHEET_YCPDOC)
+
+
+
+AC_PATH_PROG(YDOXYGEN, ydoxygen, false, $PATH:$devtools_ybindir)
+if test "$YDOXYGEN" = "false"; then
+ AC_MSG_ERROR([ydoxygen is not installed])
+fi
+
+AC_PROG_CXX
+AC_PROG_AWK
+AC_PROG_CC
+AC_PROG_CPP
+
+CFLAGS="${CFLAGS} -Wall -Wformat=2 -Wmissing-prototypes"
+CXXFLAGS="${CXXFLAGS} -Wall -Wformat=2"
+
+: ${AGENT_LIBADD:='-L$(libdir) -lscr'}
+AC_SUBST(AGENT_LIBADD)
+
+AC_DISABLE_STATIC
+AC_PROG_LIBTOOL
+AM_PROG_LIBTOOL dnl for libraries
+
+dnl generate the config header
+AC_CONFIG_HEADERS([config.h]) dnl at the distribution this done
+
+AC_FUNC_ALLOCA
+AC_HEADER_STDC
+
+
+dnl AC_MSG_CHECKING(prefix)
+dnl if test "z${prefix}" != "z/usr"; then
+dnl AC_MSG_ERROR(["Only the /usr prefix is supported, sorry. cf. README"])
+dnl fi
+dnl AC_MSG_RESULT(/usr - good)
+
+dnl pkgconfig
+AC_ARG_VAR([PKG_CONFIG_PATH], [where to search for pkg-config files])
+dnl devtools
+dnl ...
+AC_PATH_PROG(PKG_CONFIG, pkg-config)
+if test ! -x "$PKG_CONFIG" ; then
+ AC_MSG_ERROR([
+*** You need the latest pkg-config.
+*** Get the latest version of pkg-config from
+*** <http://www.freedesktop.org/software/pkgconfig/>.])
+fi
+AC_SUBST(PKG_CONFIG)
+
+
+AC_FUNC_ALLOCA
+AC_HEADER_STDC
+
+dnl Try to find the Zypp includes
+AC_MSG_CHECKING([for zypp 3])
+if test -f /usr/include/zypp/SourceManager.h; then
+ AC_DEFINE(PRE_ZYPP_3, 1, [defined if using an older SL10.1 era zypp])
+ AC_MSG_RESULT([pre 3])
+else
+ AC_MSG_RESULT([found])
+fi
+
+PKG_CHECK_MODULES( ZYPP, libzypp )
+AC_SUBST(ZYPP_LIBS)
+
+PKG_CHECK_MODULES( GTK, gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 )
+AC_SUBST(GTK_CFLAGS)
+AC_SUBST(GTK_LIBS)
+
+# TODO: we may want to check if GtkHtml is installed and set its flag
+#dnl Check if GtkHtml is installed
+#AC_MSG_CHECKING([for gtkhtml])
+#PKG_CHECK_MODULES( GTKHTML, libgtkhtml-3.14 )
+#AC_SUBST(GTKHTML_CFLAGS)
+#AC_SUBST(GTKHTML_LIBS)
+#AC_DEFINE(USE_GTKHTML, 1, [will use GtkHtml as the HTML renderer])
+
+PKG_CHECK_MODULES( ZYPP, libzypp )
+AC_SUBST(ZYPP_LIBS)
+
+verstxt=`pkg-config --modversion yast2-core`
+yast_vers=`echo "$verstxt" | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
+AC_DEFINE_UNQUOTED(YAST2_VERSION, $yast_vers, [yast version for compile conditionals])
+
+dnl new UI library
+AC_MSG_CHECKING([for old libyui])
+PYUI_LIBS='-lpy2UI'
+if test $yast_vers -le 2015006; then
+ PYUI_LIBS='-lyui'
+ AC_MSG_RESULT([found])
+else
+ AC_MSG_RESULT([use new lib])
+fi
+AC_SUBST(PYUI_LIBS)
+
+AC_OUTPUT([Makefile src/Makefile])
+
+echo "
+Hello hacker: please read the README carefully while this builds.
+"
Added: trunk/gtk/unstable-libyui/configure.in.in
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/configure.in…
==============================================================================
--- trunk/gtk/unstable-libyui/configure.in.in (added)
+++ trunk/gtk/unstable-libyui/configure.in.in Wed Dec 5 14:14:01 2007
@@ -0,0 +1,80 @@
+## custom configure.in.in
+
+## initialize
+@YAST2-INIT-COMMON@
+@YAST2-INIT-PROGRAM@
+
+## some common checks
+@YAST2-CHECKS-COMMON@
+@YAST2-CHECKS-PROGRAM@
+
+dnl AC_MSG_CHECKING(prefix)
+dnl if test "z${prefix}" != "z/usr"; then
+dnl AC_MSG_ERROR(["Only the /usr prefix is supported, sorry. cf. README"])
+dnl fi
+dnl AC_MSG_RESULT(/usr - good)
+
+dnl pkgconfig
+AC_ARG_VAR([PKG_CONFIG_PATH], [where to search for pkg-config files])
+dnl devtools
+dnl ...
+AC_PATH_PROG(PKG_CONFIG, pkg-config)
+if test ! -x "$PKG_CONFIG" ; then
+ AC_MSG_ERROR([
+*** You need the latest pkg-config.
+*** Get the latest version of pkg-config from
+*** <http://www.freedesktop.org/software/pkgconfig/>.])
+fi
+AC_SUBST(PKG_CONFIG)
+
+
+AC_FUNC_ALLOCA
+AC_HEADER_STDC
+
+dnl Try to find the Zypp includes
+AC_MSG_CHECKING([for zypp 3])
+if test -f /usr/include/zypp/SourceManager.h; then
+ AC_DEFINE(PRE_ZYPP_3, 1, [defined if using an older SL10.1 era zypp])
+ AC_MSG_RESULT([pre 3])
+else
+ AC_MSG_RESULT([found])
+fi
+
+PKG_CHECK_MODULES( ZYPP, libzypp )
+AC_SUBST(ZYPP_LIBS)
+
+PKG_CHECK_MODULES( GTK, gtk+-2.0 glib-2.0 gthread-2.0 gobject-2.0 )
+AC_SUBST(GTK_CFLAGS)
+AC_SUBST(GTK_LIBS)
+
+# TODO: we may want to check if GtkHtml is installed and set its flag
+#dnl Check if GtkHtml is installed
+#AC_MSG_CHECKING([for gtkhtml])
+#PKG_CHECK_MODULES( GTKHTML, libgtkhtml-3.14 )
+#AC_SUBST(GTKHTML_CFLAGS)
+#AC_SUBST(GTKHTML_LIBS)
+#AC_DEFINE(USE_GTKHTML, 1, [will use GtkHtml as the HTML renderer])
+
+PKG_CHECK_MODULES( ZYPP, libzypp )
+AC_SUBST(ZYPP_LIBS)
+
+verstxt=`pkg-config --modversion yast2-core`
+yast_vers=`echo "$verstxt" | awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
+AC_DEFINE_UNQUOTED(YAST2_VERSION, $yast_vers, [yast version for compile conditionals])
+
+dnl new UI library
+AC_MSG_CHECKING([for old libyui])
+PYUI_LIBS='-lpy2UI'
+if test $yast_vers -le 2015006; then
+ PYUI_LIBS='-lyui'
+ AC_MSG_RESULT([found])
+else
+ AC_MSG_RESULT([use new lib])
+fi
+AC_SUBST(PYUI_LIBS)
+
+AC_OUTPUT([Makefile src/Makefile])
+
+echo "
+Hello hacker: please read the README carefully while this builds.
+"
Added: trunk/gtk/unstable-libyui/depcomp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/depcomp?rev=…
==============================================================================
--- trunk/gtk/unstable-libyui/depcomp (added)
+++ trunk/gtk/unstable-libyui/depcomp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,584 @@
+#! /bin/sh
+# depcomp - compile a program generating dependencies as side-effects
+
+scriptversion=2006-10-15.18
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 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., 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 Alexandre Oliva <oliva(a)dcc.unicamp.br>.
+
+case $1 in
+ '')
+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: depcomp [--help] [--version] PROGRAM [ARGS]
+
+Run PROGRAMS ARGS to compile a file, generating dependencies
+as side-effects.
+
+Environment variables:
+ depmode Dependency tracking mode.
+ source Source file read by `PROGRAMS ARGS'.
+ object Object file output by `PROGRAMS ARGS'.
+ DEPDIR directory where to store dependencies.
+ depfile Dependency file to output.
+ tmpdepfile Temporary file to use when outputing dependencies.
+ libtool Whether libtool is used (yes/no).
+
+Report bugs to <bug-automake(a)gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "depcomp $scriptversion"
+ exit $?
+ ;;
+esac
+
+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
+
+# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
+depfile=${depfile-`echo "$object" |
+ sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
+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.
+## Unfortunately, FreeBSD c89 acceptance of flags depends upon
+## the command line argument order; so add the flags where they
+## appear in depend2.am. Note that the slowdown incurred here
+## affects only configure: in makefiles, %FASTDEP% shortcuts this.
+ for arg
+ do
+ case $arg in
+ -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
+ *) set fnord "$@" "$arg" ;;
+ esac
+ shift # fnord
+ shift # $arg
+ done
+ "$@"
+ 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"
+ ;;
+
+hp2)
+ # The "hp" stanza above does not work with aCC (C++) and HP's ia64
+ # compilers, which have integrated preprocessors. The correct option
+ # to use with these is +Maked; it writes dependencies to a file named
+ # 'foo.d', which lands next to the object file, wherever that
+ # happens to be.
+ # Much of this is similar to the tru64 case; see comments there.
+ 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$base.d
+ tmpdepfile2=$dir.libs/$base.d
+ "$@" -Wc,+Maked
+ else
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir$base.d
+ "$@" +Maked
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
+ # Add `dependent.h:' lines.
+ sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile" "$tmpdepfile2"
+ ;;
+
+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
+ # With Tru64 cc, shared objects can also be used to make a
+ # static library. This mechanism is used in libtool 1.4 series to
+ # handle both shared and static libraries in a single compilation.
+ # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
+ #
+ # With libtool 1.5 this exception was removed, and libtool now
+ # generates 2 separate objects for the 2 libraries. These two
+ # compilations output dependencies in $dir.libs/$base.o.d and
+ # in $dir$base.o.d. We have to check for both files, because
+ # one of the two compilations can be disabled. We should prefer
+ # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
+ # automatically cleaned when .libs/ is deleted, while ignoring
+ # the former would cause a distcleancheck panic.
+ tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
+ tmpdepfile2=$dir$base.o.d # libtool 1.5
+ tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
+ tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
+ "$@" -Wc,-MD
+ else
+ tmpdepfile1=$dir$base.o.d
+ tmpdepfile2=$dir$base.d
+ tmpdepfile3=$dir$base.d
+ tmpdepfile4=$dir$base.d
+ "$@" -MD
+ fi
+
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ 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 -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
+ -e '/^#line [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
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
Added: trunk/gtk/unstable-libyui/gtkize-iso
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/gtkize-iso?r…
==============================================================================
--- trunk/gtk/unstable-libyui/gtkize-iso (added)
+++ trunk/gtk/unstable-libyui/gtkize-iso Wed Dec 5 14:14:01 2007
@@ -0,0 +1,145 @@
+#!/bin/sh
+
+SUDO=sudo
+MOUNTBASE=/data/tmp
+rootimage=/boot/i386/root
+srcfiles=/opt/yast/public/gtk
+
+copy_file()
+{
+ $SUDO mkdir -p "$1/$2"
+ $SUDO cp -a "$2/$3" "$1/$2"
+}
+
+rewrite()
+{
+ dir=$1
+ yastlib="$dir/usr/lib/YaST2"
+ yastshare="$dir/usr/share/YaST2"
+ echo "Re-writing $1"
+ echo -n " pruning qt..."
+ $SUDO cp -f "$srcfiles/integrate/YaST2.call" \
+ "$yastlib/startup"
+#debugging
+ $SUDO cp -f "$srcfiles/integrate/YaST2.Second-Stage" \
+ "$yastlib/startup"
+ $SUDO cp -f "$srcfiles/integrate/logging.sh" \
+ "$yastlib/startup/common"
+#/debugging
+ $SUDO rm -f "$yastshare/locale/*/LC_MESSAGES/packages-qt.mo"
+ $SUDO rm -f "$yastdir/plugin/libpy2qt*"
+ $SUDO rm -Rf "$dir/usr/lib/qt3"
+ $SUDO rm -f "$dir/usr/lib/libqt-mt*"
+ echo " done"
+
+ echo -n " installing gtk..."
+ $SUDO cp -a /usr/lib/YaST2/plugin/libpy2gtk* "$yastlib/plugin"
+ echo " done"
+
+ # gnome libs
+ for lib in libgtk-x11-2.0.so.0 libgdk-x11-2.0.so.0 libatk-1.0.so.0 libgdk_pixbuf-2.0.so.0 libpangocairo-1.0.so.0 libpango-1.0.so.0 libgmodule-2.0.so.0 libgthread-2.0.so.0 libpangoft2-1.0.so.0; do
+ $SUDO cp -a /opt/gnome/lib/$lib* "$dir/opt/gnome/lib"
+ $SUDO strip $dir/opt/gnome/lib/$lib*
+ done
+
+ # system libs
+ # FIXME - if for same system, use same libzypp ...
+ for lib in libcairo.so.2 libglitz.so.1 libdbus-1.so.2 libzypp.so.1; do
+ $SUDO cp -a /usr/lib/$lib* "$dir/usr/lib"
+ $SUDO strip $dir/usr/lib/$lib*
+ done
+
+ # pango modules
+ copy_file $dir "/opt/gnome/lib/pango/1.4.0/modules" "pango-basic-fc.so"
+ copy_file $dir "/opt/gnome/lib/pango/1.4.0/modules" "pango-indic-fc.so"
+ copy_file $dir "/opt/gnome/lib/pango/1.4.0/modules" "pango-arabic-fc.so"
+ # generate config ...
+ PANGORC=`mktemp $MOUNTBASE/ygtk-pangorc.XXXXXX`
+ PANGO_MODULES=`mktemp $MOUNTBASE/ygtk-modules.XXXXXX`
+echo "[Pango]
+ModulesPath=$dir/opt/gnome/lib/pango/1.4.0/modules
+" > $PANGORC
+ PANGO_RC_FILE=$PANGORC pango-querymodules | sed "s|$dir||g" > $PANGO_MODULES
+ $SUDO mkdir -p "$dir/etc/opt/gnome/pango"
+ $SUDO mv $PANGO_MODULES "$dir/etc/opt/gnome/pango/pango.modules"
+ rm -f $PANGORC
+
+ echo " testing..."
+ if LD_LIBRARY_PATH="$dir/lib:$dir/usr/lib:$dir/opt/gnome/lib" ldd $yastlib/plugin/libpy2gtk.so > /dev/null; then
+ echo "warning: failed to link";
+ fi
+}
+
+printhelp()
+{
+ echo "Usage: $0 [OPTIONS] <source-ISO> <dest-ISO>"
+ echo
+ echo "OPTIONS:"
+ echo " -h, --help: help";
+ echo
+}
+
+if (test "z$1" = 'z-h') || (test "z$1" = 'z--help'); then
+ printhelp; exit 0;
+fi
+
+source=$1
+dest=$2
+
+if (test "z$source" = "z") || (test "z$dest" = "z"); then
+ printhelp; exit 1;
+fi
+
+mkcramfs=`which mkcramfs 2>/dev/null`
+if (test "z$mkcramfs" = "z") || (! test -x $mkcramfs); then
+ echo "Must have cramfs installed."
+ exit 1;
+fi
+
+echo "copy from $source $dest";
+
+ISODIR=`mktemp -d $MOUNTBASE/ygtk-iso.XXXXXX`
+$SUDO mount -o loop $source $ISODIR
+echo "Mounted $source"
+
+ROOTDIR=`mktemp -d $MOUNTBASE/ygtk-oldroot.XXXXXX`
+$SUDO mount -o loop "$ISODIR$rootimage" $ROOTDIR
+echo "Mounted old root"
+
+NEWROOT=`mktemp -d $MOUNTBASE/ygtk-newroot.XXXXXX`
+echo "Creating new root at $NEWROOT"
+echo -n " copying..."
+# do this to preserve hard links
+$SUDO tar -C $ROOTDIR -O -c . | $SUDO tar -x -C $NEWROOT >& /dev/null
+echo " done"
+$SUDO umount $ROOTDIR
+rmdir $ROOTDIR
+
+# Do the interesting work ...
+rewrite $NEWROOT
+# End of interesting work ...
+
+echo -n "Compressing image..."
+NEWROOTFS=`mktemp $MOUNTBASE/ygtk-cramfs.XXXXXX`
+$SUDO $mkcramfs $NEWROOT $NEWROOTFS
+echo " done"
+
+echo -n "Creating new CD image..."
+NEWIMAGE=`mktemp -d $MOUNTBASE/ygtk-newimage.XXXXXX`
+$SUDO cp -a $ISODIR/* $NEWIMAGE
+$SUDO cp -a $NEWROOTFS "$NEWIMAGE$rootimage"
+$SUDO umount $ISODIR
+rmdir $ISODIR
+echo " done"
+
+cd $NEWIMAGE ; $SUDO mkisofs -p "Yast-GTK installer" -publisher "Fools, Inc." \
+ -r -J -f -pad -no-emul-boot -boot-load-size 4 -boot-info-table \
+ -b boot/i386/loader/isolinux.bin -c boot/i386/boot.catalog -hide \
+ boot/i386/boot.catalog -hide-joliet boot/i386/boot.catalog -A \
+ "SUSE-Yast-GTK#0" -V SU1010.001 -o $dest .
+
+echo "Done new iso in $dest."
+echo -n "Cleaning up..."
+$SUDO rm -Rf $NEWROOTFS
+$SUDO rm -Rf $NEWIMAGE
+echo " done."
Added: trunk/gtk/unstable-libyui/install-sh
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/install-sh?r…
==============================================================================
--- trunk/gtk/unstable-libyui/install-sh (added)
+++ trunk/gtk/unstable-libyui/install-sh Wed Dec 5 14:14:01 2007
@@ -0,0 +1,507 @@
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2006-10-14.15
+
+# 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.
+
+nl='
+'
+IFS=" "" $nl"
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit="${DOITPROG-}"
+if test -z "$doit"; then
+ doit_exec=exec
+else
+ doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment 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}"
+
+posix_glob=
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chmodcmd=$chmodprog
+chowncmd=
+chgrpcmd=
+stripcmd=
+rmcmd="$rmprog -f"
+mvcmd="$mvprog"
+src=
+dst=
+dir_arg=
+dstarg=
+no_target_directory=
+
+usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+ or: $0 [OPTION]... SRCFILES... DIRECTORY
+ or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+ or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+-c (ignored)
+-d create directories instead of installing files.
+-g GROUP $chgrpprog installed files to GROUP.
+-m MODE $chmodprog installed files to MODE.
+-o USER $chownprog installed files to USER.
+-s $stripprog installed files.
+-t DIRECTORY install into DIRECTORY.
+-T report an error if DSTFILE is a directory.
+--help display this help and exit.
+--version display version info and exit.
+
+Environment variables override the default commands:
+ CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
+"
+
+while test $# -ne 0; do
+ case $1 in
+ -c) shift
+ continue;;
+
+ -d) dir_arg=true
+ shift
+ continue;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift
+ shift
+ continue;;
+
+ --help) echo "$usage"; exit $?;;
+
+ -m) mode=$2
+ shift
+ shift
+ case $mode in
+ *' '* | *' '* | *'
+'* | *'*'* | *'?'* | *'['*)
+ echo "$0: invalid mode: $mode" >&2
+ exit 1;;
+ esac
+ continue;;
+
+ -o) chowncmd="$chownprog $2"
+ shift
+ shift
+ continue;;
+
+ -s) stripcmd=$stripprog
+ shift
+ continue;;
+
+ -t) dstarg=$2
+ shift
+ shift
+ continue;;
+
+ -T) no_target_directory=true
+ shift
+ continue;;
+
+ --version) echo "$0 $scriptversion"; exit $?;;
+
+ --) shift
+ break;;
+
+ -*) echo "$0: invalid option: $1" >&2
+ exit 1;;
+
+ *) break;;
+ esac
+done
+
+if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
+ # When -d is used, all remaining arguments are directories to create.
+ # When -t is used, the destination is already specified.
+ # Otherwise, the last argument is the destination. Remove it from $@.
+ for arg
+ do
+ if test -n "$dstarg"; then
+ # $@ is not empty: it contains at least $arg.
+ set fnord "$@" "$dstarg"
+ shift # fnord
+ fi
+ shift # arg
+ dstarg=$arg
+ done
+fi
+
+if test $# -eq 0; then
+ if test -z "$dir_arg"; then
+ echo "$0: no input file specified." >&2
+ exit 1
+ fi
+ # It's OK to call `install-sh -d' without argument.
+ # This can happen when creating conditional directories.
+ exit 0
+fi
+
+if test -z "$dir_arg"; then
+ trap '(exit $?); exit' 1 2 13 15
+
+ # Set umask so as not to create temps with too-generous modes.
+ # However, 'strip' requires both read and write access to temps.
+ case $mode in
+ # Optimize common cases.
+ *644) cp_umask=133;;
+ *755) cp_umask=22;;
+
+ *[0-7])
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw='% 200'
+ fi
+ cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+ *)
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw=,u+rw
+ fi
+ cp_umask=$mode$u_plus_rw;;
+ esac
+fi
+
+for src
+do
+ # Protect names starting with `-'.
+ case $src in
+ -*) src=./$src ;;
+ esac
+
+ if test -n "$dir_arg"; then
+ dst=$src
+ dstdir=$dst
+ test -d "$dstdir"
+ dstdir_status=$?
+ else
+
+ # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+ # might cause directories to be created, which would be especially bad
+ # if $src (and thus $dsttmp) contains '*'.
+ if test ! -f "$src" && test ! -d "$src"; then
+ echo "$0: $src does not exist." >&2
+ exit 1
+ fi
+
+ if test -z "$dstarg"; then
+ echo "$0: no destination specified." >&2
+ exit 1
+ fi
+
+ dst=$dstarg
+ # Protect names starting with `-'.
+ case $dst in
+ -*) dst=./$dst ;;
+ esac
+
+ # If destination is a directory, append the input filename; won't work
+ # if double slashes aren't ignored.
+ if test -d "$dst"; then
+ if test -n "$no_target_directory"; then
+ echo "$0: $dstarg: Is a directory" >&2
+ exit 1
+ fi
+ dstdir=$dst
+ dst=$dstdir/`basename "$src"`
+ dstdir_status=0
+ else
+ # Prefer dirname, but fall back on a substitute if dirname fails.
+ dstdir=`
+ (dirname "$dst") 2>/dev/null ||
+ expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$dst" : 'X\(//\)[^/]' \| \
+ X"$dst" : 'X\(//\)$' \| \
+ X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
+ echo X"$dst" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'
+ `
+
+ test -d "$dstdir"
+ dstdir_status=$?
+ fi
+ fi
+
+ obsolete_mkdir_used=false
+
+ if test $dstdir_status != 0; then
+ case $posix_mkdir in
+ '')
+ # Create intermediate dirs using mode 755 as modified by the umask.
+ # This is like FreeBSD 'install' as of 1997-10-28.
+ umask=`umask`
+ case $stripcmd.$umask in
+ # Optimize common cases.
+ *[2367][2367]) mkdir_umask=$umask;;
+ .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+ *[0-7])
+ mkdir_umask=`expr $umask + 22 \
+ - $umask % 100 % 40 + $umask % 20 \
+ - $umask % 10 % 4 + $umask % 2
+ `;;
+ *) mkdir_umask=$umask,go-w;;
+ esac
+
+ # With -d, create the new directory with the user-specified mode.
+ # Otherwise, rely on $mkdir_umask.
+ if test -n "$dir_arg"; then
+ mkdir_mode=-m$mode
+ else
+ mkdir_mode=
+ fi
+
+ posix_mkdir=false
+ case $umask in
+ *[123567][0-7][0-7])
+ # POSIX mkdir -p sets u+wx bits regardless of umask, which
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
+ ;;
+ *)
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
+
+ if (umask $mkdir_umask &&
+ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
+ then
+ if test -z "$dir_arg" || {
+ # Check for POSIX incompatibilities with -m.
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+ # other-writeable bit of parent directory when it shouldn't.
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
+ ls_ld_tmpdir=`ls -ld "$tmpdir"`
+ case $ls_ld_tmpdir in
+ d????-?r-*) different_mode=700;;
+ d????-?--*) different_mode=755;;
+ *) false;;
+ esac &&
+ $mkdirprog -m$different_mode -p -- "$tmpdir" && {
+ ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
+ }
+ }
+ then posix_mkdir=:
+ fi
+ rmdir "$tmpdir/d" "$tmpdir"
+ else
+ # Remove any dirs left behind by ancient mkdir implementations.
+ rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
+ fi
+ trap '' 0;;
+ esac;;
+ esac
+
+ if
+ $posix_mkdir && (
+ umask $mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
+ )
+ then :
+ else
+
+ # The umask is ridiculous, or mkdir does not conform to POSIX,
+ # or it failed possibly due to a race condition. Create the
+ # directory the slow way, step by step, checking for races as we go.
+
+ case $dstdir in
+ /*) prefix=/ ;;
+ -*) prefix=./ ;;
+ *) prefix= ;;
+ esac
+
+ case $posix_glob in
+ '')
+ if (set -f) 2>/dev/null; then
+ posix_glob=true
+ else
+ posix_glob=false
+ fi ;;
+ esac
+
+ oIFS=$IFS
+ IFS=/
+ $posix_glob && set -f
+ set fnord $dstdir
+ shift
+ $posix_glob && set +f
+ IFS=$oIFS
+
+ prefixes=
+
+ for d
+ do
+ test -z "$d" && continue
+
+ prefix=$prefix$d
+ if test -d "$prefix"; then
+ prefixes=
+ else
+ if $posix_mkdir; then
+ (umask=$mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
+ # Don't fail if two instances are running concurrently.
+ test -d "$prefix" || exit 1
+ else
+ case $prefix in
+ *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
+ *) qprefix=$prefix;;
+ esac
+ prefixes="$prefixes '$qprefix'"
+ fi
+ fi
+ prefix=$prefix/
+ done
+
+ if test -n "$prefixes"; then
+ # Don't fail if two instances are running concurrently.
+ (umask $mkdir_umask &&
+ eval "\$doit_exec \$mkdirprog $prefixes") ||
+ test -d "$dstdir" || exit 1
+ obsolete_mkdir_used=true
+ fi
+ fi
+ fi
+
+ if test -n "$dir_arg"; then
+ { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
+ { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
+ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
+ else
+
+ # Make a couple of temp file names in the proper directory.
+ dsttmp=$dstdir/_inst.$$_
+ rmtmp=$dstdir/_rm.$$_
+
+ # Trap to clean up those temp files at exit.
+ trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+
+ # Copy the file name to the temp name.
+ (umask $cp_umask && $doit_exec $cpprog "$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 $cpprog $src $dsttmp" command.
+ #
+ { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
+ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
+ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
+ && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
+
+ # Now rename the file to the real destination.
+ { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
+ || {
+ # The rename failed, perhaps because mv can't rename something else
+ # to itself, or perhaps because mv is so ancient that it does not
+ # support -f.
+
+ # 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 test -f "$dst"; then
+ $doit $rmcmd -f "$dst" 2>/dev/null \
+ || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
+ && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
+ || {
+ echo "$0: cannot unlink or rename $dst" >&2
+ (exit 1); exit 1
+ }
+ else
+ :
+ fi
+ } &&
+
+ # Now rename the file to the real destination.
+ $doit $mvcmd "$dsttmp" "$dst"
+ }
+ } || exit 1
+
+ trap '' 0
+ fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
Added: trunk/gtk/unstable-libyui/integrate/YaST2.call
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/integrate/Ya…
==============================================================================
--- trunk/gtk/unstable-libyui/integrate/YaST2.call (added)
+++ trunk/gtk/unstable-libyui/integrate/YaST2.call Wed Dec 5 14:14:01 2007
@@ -0,0 +1,779 @@
+#!/bin/sh
+#================
+# FILE : YaST2.call
+#----------------
+# PROJECT : YaST (Yet another Setup Tool v2)
+# COPYRIGHT : (c) 2004 SUSE Linux AG, Germany. All rights reserved
+# :
+# AUTHORS : Steffen Winterfeldt <snwint(a)suse.de>
+# . Arvin Schnell <arvin(a)suse.de>
+# : Marcus Schaefer <ms(a)suse.de>
+# :
+# BELONGS TO : System installation and Administration
+# :
+# DESCRIPTION : This is the main script to start the YaST2 installer
+# : according to the possible installation environments
+# : These are:
+# : ---
+# : - Standard Installation Qt/X11 or text based
+# : - Via serial line ttyS0/115200 baud, 8N1, RTS/CTS
+# : which is the same as the NCURSES mode
+# : - VNC Installation via browser
+# :
+# :
+# STATUS : $Id: YaST2.call 32688 2006-09-04 14:05:17Z locilka $
+#----------------
+#
+#set -x
+
+. /etc/YaST2/XVersion
+
+#=============================================
+# Functions...
+#---------------------------------------------
+#----[ wait_for_x11 ]----#
+function wait_for_x11() {
+#------------------------------------------------------
+# after a X-Server has been started you can wait until
+# the server is ready for requests using this function
+# ---
+ server_running=0
+ TESTX=/usr/sbin/testX
+ while kill -0 $xserver_pid 2>/dev/null ; do
+ sleep 1
+ if test -e /tmp/.X11-unix/X0 && test -x $TESTX ; then
+ $TESTX "$YaST2color" 2>/dev/null
+ err=$?
+ # exit code 1 -> XOpenDisplay failed...
+ if test $err = 1;then
+ log "\tTestX: XOpenDisplay failed"
+ server_running=0
+ continue
+ fi
+ # exit code 2 -> color or dimensions doesn't fit...
+ if test $err = 2;then
+ log "\tTestX: color or dimensions doesn't fit"
+ kill $xserver_pid
+ server_running=0
+ break;
+ fi
+ server_running=1
+ break
+ fi
+ done
+}
+
+#----[ get_bus_id ]----#
+function get_bus_id () {
+#------------------------------------------------------
+# ask the PCi bus for the location of the first
+# graphics card.
+# ---
+ for line in $(/sbin/lspci -n | grep "Class 0300" | cut -f 1 -d " ");do
+ echo $line |\
+ grep -q -E "^[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]"
+ if [ $? = 0 ];then
+ PCIBus=$(echo $line | cut -f1 -d:);
+ PCISlot=$(echo $line | cut -f2 -d: | cut -f 1 -d.);
+ PCIFunc=$(echo $line | cut -f2 -d.);
+ log "\tFound standard BusID: $PCIBus:$PCISlot:$PCIFunc"
+ printf "PCI:%d@0:%d:%d" \
+ 0x$PCIBus 0x$PCISlot 0x$PCIFunc
+ break
+ else
+ echo $line |\
+ grep -q -E "^[0-9a-f]{4}:[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]"
+ if [ $? = 0 ];then
+ PCIDomain=$(echo $line | cut -f1 -d:);
+ PCIBus=$(echo $line | cut -f2 -d:);
+ PCISlot=$(echo $line | cut -f3 -d: | cut -f 1 -d.);
+ PCIFunc=$(echo $line | cut -f2 -d.);
+ log "\tFound domain BusID: $PCIBus@$PCIDomain:$PCISlot $PCIFunc"
+ printf "PCI:%d@%d:%d:%d" \
+ 0x$PCIBus 0x$PCIDomain 0x$PCISlot 0x$PCIFunc
+ break
+ fi
+ fi
+ done
+}
+
+#----[ count_qt_geometry ]----#
+function count_qt_geometry () {
+ # current X-resolution, display 0
+ XRES=$(/usr/sbin/xquery -d :0 -r)
+
+ log "\t===Qt Geometry==="
+ log "\tResolution: ${XRES}"
+
+ # current X and Y resolution
+ XRES_X=$(echo $XRES | sed 's|[0123456789]\+ \([0123456789]\+\)x[0123456789]\+|\1|') #'
+ XRES_Y=$(echo $XRES | sed 's|[0123456789]\+ [0123456789]\+x\([0123456789]\+\)|\1|') #'
+
+ log "\tX: ${XRES_X}"
+ log "\tY: ${XRES_Y}"
+
+ # default values, minimal window 640x480
+ WINDOW_SIZE_X=640
+ WINDOW_SIZE_Y=480
+ OFFSET_X=0
+ OFFSET_Y=0
+ BACKGROUND_IMAGE=""
+
+ # cannot get any X-resolution
+ if [ "${XRES}" == "" ]; then
+ # cannot find out X resolution
+ WINDOW_SIZE_X=800
+ WINDOW_SIZE_Y=600
+ # reasonable
+ else
+ # FIXME: recount background image
+ BACKGROUND_IMAGE="/usr/lib/YaST2/startup/bkg.png"
+
+ # must be bigger or equal to 1400x1050
+ if [ "$(expr $XRES_X \>= 1400)" == "1" ] && [ "$(expr $XRES_Y \>= 1050)" == "1" ]; then
+ WINDOW_SIZE_X=1024
+ WINDOW_SIZE_Y=786
+ # must be bigger or equal to 800x600
+ elif [ "$(expr $XRES_X \>= 800)" == "1" ] && [ "$(expr $XRES_Y \>= 600)" == "1" ]; then
+ WINDOW_SIZE_X=800
+ WINDOW_SIZE_Y=600
+ fi
+
+ # X and Y offsets
+ OFFSET_X=$(expr ${XRES_X} - ${WINDOW_SIZE_X})
+ OFFSET_X=$(expr ${OFFSET_X} / 2)
+ OFFSET_Y=$(expr ${XRES_Y} - ${WINDOW_SIZE_Y})
+ OFFSET_Y=$(expr ${OFFSET_Y} / 2)
+ fi
+
+ log "\tWindow size X: ${WINDOW_SIZE_X}"
+ log "\tWindow size X: ${WINDOW_SIZE_Y}"
+ log "\tOffset X: ${OFFSET_X}"
+ log "\tOffset X: ${OFFSET_Y}"
+
+ # final window geometry, 'Window_XxWindow_Y+Offset_X+Offset_Y'
+ X_GEOMETRY="${WINDOW_SIZE_X}x${WINDOW_SIZE_Y}+${OFFSET_X}+${OFFSET_Y}"
+
+ log "\tUsed geometry: ${X_GEOMETRY}"
+}
+
+#----[ prepare_for_qt ]----#
+function prepare_for_qt () {
+#------------------------------------------------------
+# prepare Qt installation
+# ---
+ export LD_LIBRARY_PATH="/opt/gnome/lib:$LD_LIBRARY_PATH"
+
+ #=============================================
+ # Setup Qt environment
+ #---------------------------------------------
+ set_inst_qt_env
+ set_splash 100
+
+ #=============================================
+ # patch X11 conf. if not update/continue mode
+ #---------------------------------------------
+ if [ ! -f /var/lib/YaST2/runme_at_boot ];then
+ if [ ! -f /etc/X11/xorg.conf.instorig ];then
+ # create backup copy...
+ cp /etc/X11/xorg.conf /etc/X11/xorg.conf.instorig
+
+ # Activate correct device/screen section...
+ sed -e "s#Screen.*Screen\[.*\]#Screen "\""Screen[$X11_CONFIG_ID]#" \
+ /etc/X11/xorg.conf >/etc/X11/xorg.conf.new
+ mv /etc/X11/xorg.conf.new /etc/X11/xorg.conf
+
+ # update core pointer input device section...
+ if [ -f "/usr/sbin/xupdate" ];then
+ cat /etc/X11/xorg.conf | \
+ /usr/sbin/xupdate > /etc/X11/xorg.conf.new
+ mv /etc/X11/xorg.conf.new /etc/X11/xorg.conf
+ fi
+
+ # update driver and busID if accelerated driver should be used...
+ if [ "$X11_CONFIG_ID" = 0 ];then
+ # replace BusID placeholder with real busID
+ XBusID=$(get_bus_id)
+ if [ ! -z "$XBusID" ];then
+ sed -e 's/#BusID/BusID/' \
+ -e "s#1:0:0#$XBusID#" /etc/X11/xorg.conf \
+ > /etc/X11/xorg.conf.new
+ mv /etc/X11/xorg.conf.new /etc/X11/xorg.conf
+ fi
+
+ # replace driver placeholder with real name
+ sed -e "s#ChangeMe#$XServer#" /etc/X11/xorg.conf \
+ > /etc/X11/xorg.conf.new
+ mv /etc/X11/xorg.conf.new /etc/X11/xorg.conf
+ fi
+ fi
+ fi
+ #=============================================
+ # start X-Server and wait until ready
+ #---------------------------------------------
+ if [ ! -z "$NEED_XSERVER" ];then
+ export DISPLAY=:0
+ [ -z $Xstartpath ] || ln -snf $Xbindir/XFree86 /var/X11R6/bin/X
+ $Xexecutable -deferglyphs 16 2>/dev/tty8 1>&2 vt07 &
+ xserver_pid=$!
+ wait_for_x11
+ if [ "$server_running" = 1 ];then
+ log "\tX-Server is ready: $xserver_pid"
+ fi
+ fi
+ #=============================================
+ # set YaST2 Qt options for local displays
+ #---------------------------------------------
+ if [ ! -z "$NEED_XSERVER" ];then
+ Y2_UI_ARGS="--noborder --auto-fonts"
+ count_qt_geometry
+ if [ "${X_GEOMETRY}" != "" ]; then
+ Y2_UI_ARGS="${Y2_UI_ARGS} -geometry ${X_GEOMETRY}"
+ fi
+ fi
+}
+
+#----[ prepare_for_ncurses ]----#
+function prepare_for_ncurses () {
+#------------------------------------------------------
+# prepare NCURSES installation
+# ---
+ #=============================================
+ # Create Braille config if not update mode
+ #---------------------------------------------
+ if [ $INST_MODE = "normal" ];then
+ if [ ! -z "$Braille" ];then
+ log "Braille config needed, setting up braille display"
+ sed -e "s#brlname=.*#brlname=$Braille#" \
+ -e "s#brlport=.*#brlport=$Brailledevice#" /etc/suse-blinux.conf \
+ >/tmp/suse-blinux.conf
+ mv -f /tmp/suse-blinux.conf /etc
+ /etc/init.d/suse-blinux start
+ fi
+ fi
+ #=============================================
+ # Check for FbIterm
+ #---------------------------------------------
+ check_run_fbiterm
+ log "\tCheck for FB-I-terminal: RUN_FBITERM = $RUN_FBITERM"
+}
+
+#----[ prepare_for_ssh ]----#
+function prepare_for_ssh () {
+#------------------------------------------------------
+# prepare SSH installation
+# ---
+#
+ :
+}
+
+#----[ prepare_for_vnc ]----#
+function prepare_for_vnc () {
+#------------------------------------------------------
+# prepare VNC installation
+# ---
+#
+ #=============================================
+ # Setup splash screen
+ #---------------------------------------------
+ set_splash 100
+
+ #=============================================
+ # Setup y2base options
+ #---------------------------------------------
+ # xxx
+ #Y2_UI_ARGS="--fullscreen --noborder --auto-fonts"
+ Y2_UI_ARGS="--noborder --auto-fonts"
+
+ #=============================================
+ # Setup VNC server and start it
+ #---------------------------------------------
+ setupVNCAuthentication
+ if [ $VNCPASS_EXCEPTION = 0 ];then
+ disable_splash
+ startVNCServer
+ wait_for_x11
+ if [ "$server_running" = 1 ];then
+ log "\tXvnc-Server is ready: $xserver_pid"
+ fi
+ fi
+}
+
+function check_gtk()
+{
+ echo "silly stub check_gtk"
+ return 0
+}
+
+#----[ check_Qt ]----#
+function check_Qt () {
+#------------------------------------------------------
+# check if the prepared medium Qt is valid
+# ---
+ if [ ! -z "$NEED_XSERVER" ];then
+ if [ "$server_running" = 0 ];then
+ # /.../
+ # X-Server couldn't be started, selecting
+ # NCURSES mode as fallback ?
+ # ---
+ log "\tX-Server couldn't be started, falling back to ncurses"
+ Y2_MODE_FLAGS='("text_fallback")'
+ SELECTED_MEDIUM="NCURSES"
+ prepare_for_ncurses
+ Y2_MODE=ncurses
+ fi
+ else
+ /usr/sbin/testX --fast 2>/dev/null
+ if test $? = 1;then
+ log "\tCannot access Display: $DISPLAY, falling back to ncurses"
+ SELECTED_MEDIUM="NCURSES"
+ prepare_for_ncurses
+ Y2_MODE=ncurses
+ fi
+ fi
+}
+
+#----[ check_network ]----#
+function check_network () {
+#------------------------------------------------------
+# check if the prepared medium SSH is valid. It is valid
+# if there is a network interface accessable and we are
+# able to use ncurses or X11
+# ---
+ if ! found_iface ; then
+ # /.../
+ # No network interface found for SSH or VNC installation
+ # this is a fatal error here
+ # ---
+ log "\tNo network interface found, fatal error"
+ fatalError
+ fi
+ if [ ! -z "$DISPLAY" ];then
+ log "\tDisplay: $DISPLAY found for network install"
+ Y2_MODE=gtk
+ fi
+ if ! check_gtk ; then
+ log "\tQt plugin check failed falling back to ncurses"
+ Y2_MODE=ncurses
+ fi
+}
+
+#----[ check_vnc ]----#
+function check_vnc () {
+#------------------------------------------------------
+# check if the prepared medium VNC is valid
+# ---
+ check_network
+ if [ $VNCPASS_EXCEPTION = 1 ];then
+ log "\tVNC access has been disabled due to a password exception"
+ log "\tPlease make sure the password is at least 8 characters long"
+ fatalError
+ fi
+ if [ "$server_running" = 0 ];then
+ # /.../
+ # XVnc server couldn't be started, what to do now, I think
+ # this is a fatal error here
+ # ---
+ log "\tXVnc server couldn't be started, fatal error"
+ fatalError
+ fi
+}
+
+#----[ start_yast ]----#
+function start_yast () {
+#------------------------------------------------------
+# Start YaST2 refering to the contents of the Y2_*
+# startup variables
+# ---
+ local overcommit
+ read overcommit < /proc/sys/vm/overcommit_memory
+ echo "*** Starting YaST2 ***"
+ log "\tAllow big memory allocation: overcommit_memory=1"
+ echo 1 > /proc/sys/vm/overcommit_memory
+ if [ "$SPLASH" = yes -a -x /sbin/splash -a -n "$SPLASHCFG" ];then
+ /sbin/splash -t "YaST running"
+ fi
+ export QT_IM_MODULE=xim
+
+ if [ "$RUN_FBITERM" = "1" ]; then
+ OPT_FBITERM=/usr/bin/fbiterm
+ else
+ OPT_FBITERM=
+ fi
+
+ # set up a background if any needed
+ if [ "${BACKGROUND_IMAGE}" != "" ]; then
+ log "\tUsing background: ${BACKGROUND_IMAGE}"
+ fvwm-root --dither ${BACKGROUND_IMAGE}
+ fi
+
+ log "\tStarting YaST2:"
+ log "\tMODULE_NAME: $Y2_MODULE_NAME"
+ log "\tMODE_FLAGS: $Y2_MODE_FLAGS"
+ log "\tMODULE_ARGS: $Y2_MODULE_ARGS"
+ log "\tMODE: $Y2_MODE"
+ log "\tUI_ARGS: $Y2_UI_ARGS"
+ log "\tQT_IM_MODULE:$QT_IM_MODULE"
+ $OPT_FBITERM y2base \
+ "$Y2_MODULE_NAME" \
+ $Y2_MODE_FLAGS \
+ $Y2_MODULE_ARGS \
+ $Y2_MODE \
+ $Y2_UI_ARGS
+ Y2_EXIT_CODE=$?
+ Y2_ABORT_MESSAGE="YaST seems to be aborted abnormally !"
+ Y2_OK_MESSAGE="YaST procedure ended successfully"
+ if [ -s /etc/yast.inf ];then
+ #=============================================
+ # check yast.inf contents
+ #---------------------------------------------
+ cat /etc/yast.inf | grep -q -i "Aborted: 1"
+ if [ $? = 0 ];then
+ log "\t$Y2_ABORT_MESSAGE"
+ fi
+ else
+ #=============================================
+ # YaST ended successfully
+ #---------------------------------------------
+ log "\t$Y2_OK_MESSAGE"
+ fi
+ if [ $SELECTED_MEDIUM = "SSH" ] && [ ! "$VNC" = 1 ];then
+ echo "*** Preparing SSH installation for reboot ***"
+ echo "*** NOTE: after reboot, you have to reconnect and call ***"
+ echo "*** /usr/lib/YaST2/startup/YaST2.ssh ***"
+ log "\tPreparing SSH installation for reboot"
+ echo $Y2_EXIT_CODE > /tmp/YaST2_ssh_installation_finished
+ fi
+ if [ $Y2_EXIT_CODE -eq 0 ];then
+ start_yast_and_reboot
+ start_yast_again
+ fi
+ log "\tReset memory allocation: overcommit_memory=$overcommit"
+ echo $overcommit > /proc/sys/vm/overcommit_memory
+}
+
+#----[ start_yast_and_reboot ]----#
+function start_yast_and_reboot () {
+#------------------------------------------------------
+# This function will reboot the system and start yast
+# again by touching the file /var/lib/YaST2/runme_at_boot.
+# The function is triggered by the file /var/lib/YaST2/reboot
+# ---
+ if [ -f /var/lib/YaST2/reboot ];then
+ rm -f /var/lib/YaST2/reboot
+ touch /var/lib/YaST2/runme_at_boot
+ /sbin/shutdown -r now
+ fi
+}
+
+#----[ start_yast_again ]----#
+function start_yast_again () {
+#------------------------------------------------------
+# This function will restart yast again with the same
+# options as used before. The function is triggered by
+# the file /var/lib/YaST2/restart_yast
+# ---
+ if [ -f /var/lib/YaST2/restart_yast ];then
+ rm -f /var/lib/YaST2/restart_yast
+ start_yast
+ fi
+}
+
+#=============================================
+# Start the Magic :-)
+#=============================================
+# 1) Source common script functions
+#---------------------------------------------
+. /usr/lib/YaST2/startup/common/functions.sh
+. /usr/lib/YaST2/startup/requires
+. /usr/lib/YaST2/startup/arch/ia64/x11.sh
+
+#=============================================
+# 1.1) set splash progress bar to 90%
+#---------------------------------------------
+set_splash 90
+#=============================================
+# 1.2) set root HOME directory
+#---------------------------------------------
+export HOME=/root
+#=============================================
+# 1.3) set HTTP/FTP proxy and configure syslog
+#---------------------------------------------
+set_syslog ; set_proxy
+
+#=============================================
+# 2) Initialize...
+#---------------------------------------------
+# 2.1) setup PATH
+PATH=$ybindir:$PATH
+[ -z Xstartpath ] || PATH=/var/X11R6/bin:$PATH
+#=============================================
+# 2.2) get X11 driver directory
+#---------------------------------------------
+X11_DRIVER_DIR=$Xdriverpath
+if [ -d $Xdriver64path ];then
+ X11_DRIVER_DIR=$Xdriver64path
+fi
+#=============================================
+# 2.3) obtain RAM size in Kb
+#---------------------------------------------
+MEM_TOTAL=`awk '/^MemTotal:/{ print $2 }' /proc/meminfo`
+if [ ${#MEM_TOTAL} -gt 9 ];then
+ MEM_TOTAL=1000000000
+fi
+#=============================================
+# 2.4) check for valid framebuffer
+#---------------------------------------------
+FBDEV_OK=0
+if (: < /dev/fb0) 2>/dev/null ; then
+ FBDEV_OK=1
+fi
+#=============================================
+# 2.5) setup installation mode (update y/n)
+#---------------------------------------------
+INST_MODE="normal"
+if [ -f /var/lib/YaST2/update_mode ];then
+ INST_MODE="update"
+fi
+#=============================================
+# 2.6) import install.inf
+#---------------------------------------------
+import_install_inf
+
+#=============================================
+# 2.7) set LOG prefix
+#---------------------------------------------
+LOG_PREFIX="Stage [call]"
+
+#=============================================
+# 3) Medium prequalification
+#---------------------------------------------
+# Check which installation mediums can be used. There are
+# four mediums available: Qt(0) SSH(1), VNC(2) and NCURSES(3).
+# The following checks will create an array which contains
+# the possible mediums. An index of 1 indicates "can be used"
+# an index of 0 indicated "cannot be used"
+# ---
+MEDIUM=(1 1 1 1)
+
+#=============================================
+# 3.1) prequalification checks for Qt
+#---------------------------------------------
+log "Starting prequalification checks..."
+log "==================================="
+# 3.1.1) Qt plugin check...
+if ! check_gtk ; then
+ log "\tQt plugin check failed -> Medium Qt disabled"
+ MEDIUM[0]=0
+fi
+# 3.1.2) X-Server module check...
+# BEG IA64: use accelerated X11 driver
+ia64_check_x11
+# END IA64:
+XServerAccel=$XServer
+if [ "$XServer" = "vmware" ];then
+ if [ ! -f "$X11_DRIVER_DIR/${XServer}_drv.so" ];then
+ log "\t$XServer driver not installed -> Medium Qt disabled"
+ MEDIUM[0]=0
+ fi
+ X11_CONFIG_ID=vmware
+else
+ XServer=fbdev
+ if [ $FBDEV_OK -eq 0 ];then
+ log "\tNo Framebuffer available: Using vesa driver"
+ XServer=vesa
+ fi
+ if [ ! -f "$X11_DRIVER_DIR/${XServer}_drv.so" ];then
+ log "\t$XServer driver not installed -> Medium Qt disabled"
+ MEDIUM[0]=0
+ fi
+ X11_CONFIG_ID=$XServer
+fi
+if [ "$acceleratedx" = "1" ];then
+ if [ ! -f "$X11_DRIVER_DIR/${XServerAccel}_drv.so" ];then
+ log "\t$XServerAccel driver not installed -> X11 acceleration disabled"
+ else
+ log "\tUsing accelerated driver -> $XServerAccel"
+ MEDIUM[0]=1
+ XServer=$XServerAccel
+ X11_CONFIG_ID=0
+ fi
+fi
+# 3.1.3) Memory check >= 90MB for Qt/X11...
+if [ $MEM_TOTAL -lt "$MEM_NEEDED" ];then
+ log "\tMemory requirement > 90MB not fulfilled -> Medium Qt disabled"
+ MEDIUM[0]=0
+fi
+# 3.1.4) Check if we need to start our own X11 server...
+if [ -z "$DISPLAY" ];then
+ NEED_XSERVER=1
+fi
+# 3.1.5) Check for xorg.conf...
+if [ ! -f /etc/X11/xorg.conf ];then
+if [ ! -f $Xorgconftempl ];then
+ log "\tNo X11 configuration template found -> Medium Qt disabled"
+ MEDIUM[0]=0
+else
+ cp $Xorgconftempl /etc/X11/xorg.conf
+fi
+fi
+# 3.1.6) Check for WindowManager configuration
+if [ ! -f $Xsharedir/fvwm/fvwmrc.yast2 ];then
+ log "\tNo Windowmanager configuration found -> Medium Qt disabled"
+ MEDIUM[0]=0
+fi
+# 3.1.7) Check for remote display usage
+if [ ! -z $Display_IP ];then
+ log "\tRemote Display usage -> Medium Qt enabled"
+ log "\tExporting DISPLAY to host: $Display_IP:0.0"
+ export DISPLAY="$Display_IP:0.0"
+ NEED_XSERVER=""
+ MEDIUM[0]=1
+fi
+
+#=============================================
+# 3.2) prequalification checks for SSH
+#---------------------------------------------
+# 3.2.1) Check for SSH daemon
+if [ -f /var/run/sshd.*pid ];then
+ ps `cat /var/run/sshd.*pid` >/dev/null || MEDIUM[2]=0
+else
+ log "\tNo SSH daemon running -> Medium SSH disabled"
+ MEDIUM[1]=0
+fi
+
+#=============================================
+# 3.3) prequalification checks for VNC
+#---------------------------------------------
+# 3.3.1) Check for WindowManager configuration
+if [ ! -f $Xsharedir/fvwm/fvwmrc.yast2 ];then
+ log "\tNo Windowmanager configuration found -> Medium VNC disabled"
+ MEDIUM[2]=0
+fi
+# 3.3.2) Check for VNC X-Server binary
+if [ ! -x $Xbindir/Xvnc ] ; then
+ log "\tNo Xvnc server installed -> Medium VNC disabled"
+ MEDIUM[2]=0
+fi
+# 3.3.3) Check for testX binary
+if [ ! -x /usr/sbin/testX ] ; then
+ log "\tNo testX binary installed -> Medium VNC disabled"
+ MEDIUM[2]=0
+fi
+
+#=============================================
+# 4) Evaluate medium selection
+#---------------------------------------------
+# At this point we are evaluating the variables which have
+# been imported from the install.inf file into the current
+# environment. The standard method of installing the system
+# should be Qt based. Refering to the variables Textmode,
+# Braille, UseSSH and VNC another medium could be selected
+# VNC overrides UseSSH
+# ---
+log "Evaluate medium selection..."
+log "============================"
+SELECTED_MEDIUM="QT"
+if [ "$Textmode" = 1 ];then
+ log "\tMedium Textmode (ncurses) has been selected"
+ SELECTED_MEDIUM="NCURSES"
+fi
+if [ ! -z "$Braille" ];then
+ log "\tMedium Braille (ncurses) has been selected"
+ SELECTED_MEDIUM="NCURSES"
+fi
+if [ "$UseSSH" = 1 ];then
+ log "\tMedium SSH has been selected"
+ SELECTED_MEDIUM="SSH"
+fi
+if [ "$VNC" = 1 ];then
+ log "\tMedium VNC has been selected"
+ SELECTED_MEDIUM="VNC"
+fi
+
+#=============================================
+# 5) Check selected medium
+#---------------------------------------------
+# Refering to the prequalification check results we need to
+# check if the selected medium is valid according to the
+# MEDIUM flag entry. If the medium is not valid we will
+# fallback to NCURSES mode
+# ---
+log "Check selected medium..."
+log "========================"
+log "\tWished medium is: $SELECTED_MEDIUM"
+case $SELECTED_MEDIUM in
+ QT) {
+ if [ ${MEDIUM[0]} -eq 0 ];then
+ log "\tMedium Qt not available, falling back to ncurses"
+ SELECTED_MEDIUM="NCURSES"
+ fi
+ } ;;
+ SSH) {
+ if [ ${MEDIUM[1]} -eq 0 ];then
+ log "\tMedium SSH not available, falling back to ncurses"
+ SELECTED_MEDIUM="NCURSES"
+ fi
+ } ;;
+ VNC) {
+ if [ ${MEDIUM[2]} -eq 0 ];then
+ log "\tMedium VNC not available, falling back to ncurses"
+ SELECTED_MEDIUM="NCURSES"
+ fi
+ } ;;
+esac
+log "\tSelected medium is: $SELECTED_MEDIUM"
+
+#=============================================
+# 6) Prepare selected medium
+#---------------------------------------------
+case $SELECTED_MEDIUM in
+ QT) prepare_for_qt ; Y2_MODE=gtk ;;
+ SSH) prepare_for_ssh ; Y2_MODE=ncurses ;;
+ VNC) prepare_for_vnc ; Y2_MODE=gtk ;;
+ NCURSES) prepare_for_ncurses ; Y2_MODE=ncurses ;;
+esac
+
+#=============================================
+# 7) Check prepared medium
+#---------------------------------------------
+case $SELECTED_MEDIUM in
+ QT) check_Qt ;;
+ SSH) check_network ;;
+ VNC) check_vnc ;;
+esac
+
+# The prepare_for_ncurses in step 6 is kinda useless if step 7 can
+# change Y2MODE to ncurses in several ways
+# Anyway, #150799
+if [ "$Y2_MODE" = "ncurses" ]; then
+ Y2_UI_ARGS=--nothreads
+fi
+
+#=============================================
+# 8) Call YaST2
+#---------------------------------------------
+Y2_MODULE_NAME=${1:-installation}; shift
+Y2_MODULE_ARGS=\(\"$*\"\)
+start_yast
+
+#=============================================
+# 9) Clean sweep
+#---------------------------------------------
+# 9.1) clear Qt environment...
+clr_inst_qt_env
+
+# 9.2) kill X-Server...
+if [ "$server_running" = 1 ];then
+ sleep 1 && kill $xserver_pid
+ while kill -0 $xserver_pid 2>/dev/null ; do
+ sleep 1
+ done
+fi
+
+#=============================================
+# 10) exit with YaST2 exit code
+#---------------------------------------------
+exit $Y2_EXIT_CODE
+
+
Added: trunk/gtk/unstable-libyui/integrate/yast2
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/integrate/ya…
==============================================================================
--- trunk/gtk/unstable-libyui/integrate/yast2 (added)
+++ trunk/gtk/unstable-libyui/integrate/yast2 Wed Dec 5 14:14:01 2007
@@ -0,0 +1,280 @@
+#!/bin/bash
+
+# File: /sbin/yast2
+# Module: yast2
+# Summary: YaST2 launch script
+#
+# This script is responsable to start the YaST setup tools. If no arguments
+# are given, a control center should be launched that will call this same script
+# with the wanted setup tool as an argument. In which case, we shall detect the
+# best YaST frontend to provide (eg. gtk for gnome, qt for kde, ncurses for console).
+#
+
+export PATH=/sbin:/usr/sbin:$PATH
+
+# load common script functions
+# (like the detection of frontend plugins)
+. /usr/lib/YaST2/bin/yast2-funcs
+
+# allow user to over-rule the default frontend via a global file
+FRONTEND="auto"
+if test -f /etc/sysconfig/yast2; then
+ . /etc/sysconfig/yast2
+fi
+
+# Arguments to be passed for frontend and the control center (like the --fullscreen)
+YAST_ARGS=""
+
+printhelp()
+{
+ echo "Usage: $0 [OPTIONS] [MODULE] [module specific parameters]"
+ echo
+ echo "OPTIONS:"
+ echo " -l, --list list all available modules"
+ echo " -g, --geometry default window size (graphical frontend only)"
+ echo " --noborder no window manager border for main window (graphical frontend only)"
+ echo " --fullscreen use full screen (graphical frontend only)"
+ echo " -s, --style widget style (qt only)"
+ echo " -h, --help this message"
+ echo
+ echo "exceptional case for installing packages:"
+ echo "$0 OPTION <package> [<package> [...]]"
+ echo
+ echo "OPTION:"
+ echo " -i, --install install rpm package"
+ echo
+ echo "<package> can be a single short package name (e.g. gvim)"
+ echo "which will be installed with dependency checking, or the full"
+ echo "path to an rpm package (e.g /tmp/gvim.rpm) which will be"
+ echo "installed without dependency checking"
+ echo
+}
+
+listmodules()
+{
+ list=`/bin/ls -1 /usr/share/applications/YaST2/*.desktop 2>/dev/null`
+
+ if [ -z "$list" ] ; then
+ echo "No modules installed"
+ else
+ echo "Available modules:"
+ echo
+ grep -h "Exec=/sbin/yast2 " $list | \
+ sed 's|Exec=/sbin/yast2 \([^ ]\+\)\( .*\)\?|\1|' | \
+ sort -u
+ fi
+}
+
+YCP_MENU="$ybindir/y2base menu"
+QT_MENU="$ybindir/y2controlcenter"
+GTK_MENU="/opt/gnome/bin/control-center"
+run_yast_menu()
+{
+ if [ $FRONTEND == "ncurses" ]; then
+ while true ; do
+ $YCP_MENU ncurses $YAST_ARGS
+ if [ ! -e "/var/lib/YaST2/restart_menu" ] ; then
+ break
+ fi
+ done
+ else # gtk or qt
+ if echo $WINDOWMANAGER | grep -qi "gnome" &&
+ [ -e $GTK_MENU ]; then
+ $GTK_MENU $YAST_ARGS
+ elif [ -e $QT_CONTROL_CENTER ]; then
+ $QT_MENU $YAST_ARGS
+ else
+ # run the same YCP menu of ncurses
+ $YCP_MENU $FRONTEND $YAST_ARGS
+ fi
+ fi
+}
+
+## PARSE arguments
+TEMP=`/usr/bin/getopt -o hlg:s:Si --long help,list,kcontrol,geometry:,style:,strings,install,fullscreen,noborder \
+ -n 'yast2' -- "$@"`
+
+if [ $? != 0 ] ; then
+ echo "Exit." >&2
+ exit 1
+fi
+
+# Note the quotes around `$TEMP': they are essential!
+eval set -- "$TEMP"
+
+while true ; do
+ case "$1" in
+ -h|--help) printhelp; exit 0 ;;
+ -l|--list) listmodules; exit 0 ;;
+ -g|--geometry) YAST_ARGS="$YAST_ARGS -geometry $2"; shift 2; ;;
+ -i|--install) Y2_INSTALL_PACKAGES=true; shift ;;
+ --fullscreen) YAST_ARGS="$YAST_ARGS --fullscreen"; shift ;;
+ --noborder) YAST_ARGS="$YAST_ARGS --noborder" ; shift ;;
+ --kcontrol) YAST_ARGS="$YAST_ARGS --kcontrol_id YaST" ; shift ;;
+ --) shift ; break ;;
+ *) echo "Unrecognized option $1" ; exit 1 ;;
+
+ # IMPORTANT: Remember to change that "getopt" call above, too
+ # if you change anything here!
+ esac
+done
+
+if [ "$Y2_INSTALL_PACKAGES" = "true" ]; then
+ export module=sw_single
+else
+ # allow module as argument, defaults to "menu"
+ export module="${1-menu}"
+ shift
+fi
+
+case "`/usr/bin/basename $0`" in
+ YaST|yast|yast1|zast)
+ unset DISPLAY
+ ;;
+esac
+
+if [ "$UID" = 0 ]; then
+ echo $$ > /var/run/yast.pid
+fi
+set_lang_from_sysconfig
+
+## CHECK what frontend we should use
+if [ $FRONTEND != "ncurses" ] && [ $FRONTEND != "qt" ] && [ $FRONTEND != "gtk" ] && \
+ [ $FRONTEND != "auto" ]; then
+ echo "Warning: specified frontend $FRONTEND is unknown."
+ FRONTEND="auto"
+fi
+
+if [ $FRONTEND == "auto" ]; then
+ if [ -z "$DISPLAY" ]; then
+ # using the terminal
+ FRONTEND="ncurses"
+ else
+ # running on X11
+ # TODO: maybe GTK could be the default one? ;-)
+ if echo $WINDOWMANAGER | grep -qi "gnome" || \
+ echo $WINDOWMANAGER | grep -qi "xfce" ; then
+ FRONTEND="gtk"
+ else
+ FRONTEND="qt"
+ fi
+ fi
+fi
+
+# fallbacks should go here so that an user preferred frontend also fallback
+if [ $FRONTEND == "gtk" ] && ! check_gtk && check_qt ; then
+ FRONTEND="qt"
+fi
+if [ $FRONTEND == "qt" ] && ! check_qt && check_gtk ; then
+ FRONTEND="gtk"
+fi
+if [ $FRONTEND != "ncurses" ] && ! check_qt && ! check_gtk ; then
+ FRONTEND="ncurses"
+fi
+if [ $FRONTEND == "ncurses" ] && ! check_ncurses; then
+ echo "Error: please install yast2-ncurses to use the YaST2 text mode interface"
+ exit 1
+fi
+
+## SET frontend specific environment settings and whatever they need
+if [ $FRONTEND == "ncurses" ]; then
+ TTY=`/usr/bin/tty`
+ # on console, start yast in UTF-8 locale (only on a 'local' console)
+ if [ "$TERM" = "linux" -a \( "$TTY" = /dev/console -o "$TTY" != "${TTY#/dev/tty[0-9]}" \) ] ; then
+ case "$LANG" in
+ # if it is known that a language doesn't yet work well with ncurses
+ # on console use English instead:
+ ja*|ko*|zh*)
+ export LANG=en_US.UTF-8
+ export LC_CTYPE=en_US.UTF-8
+ ;;
+ *)
+ # get rid of encoding and/or modifier
+ export LANG=${LANG%%[.(a)]*}.UTF-8
+ export LC_CTYPE=${LANG%%[.(a)]*}.UTF-8
+ ;;
+ esac
+ if /bin/testutf8 ; [ $? -ne 2 ] ; then
+ /usr/bin/test -x /bin/unicode_start && /bin/unicode_start
+ uc_started=1
+ fi
+ else
+ case "$TERM" in
+ vt*|xterm*|linux|screen*)
+ # probe terminal and fix lang settings
+ UTF8TESTED=0
+ # binary /bin/testutf8 is missing at least on s390x, #158001
+ /usr/bin/test -x /bin/testutf8 && UTF8TESTED=1 && /bin/testutf8
+ # return code of the /bin/testutf8
+ # 0=utf-unknown, 1=utf-ok, 2=utf-err
+ UTF8STATUS=$?
+
+ # not tested or not working UTF-8 support
+ if [ "$UTF8TESTED" == "1" ] && [ $UTF8STATUS -ne 2 ] ; then
+ /usr/bin/test -n "$LANG" && LANG=${LANG%.UTF-8}
+ /usr/bin/test -n "$LC_CTYPE" && LC_CTYPE=${LC_CTYPE%.UTF-8}
+ else
+ /usr/bin/test -n "$LANG" && LANG=${LANG%%[.(a)]*}.UTF-8
+ /usr/bin/test -n "$LC_CTYPE" && LC_CTYPE=${LC_CTYPE%%[.(a)]*}.UTF-8
+ fi
+ ;;
+ esac
+ fi
+
+ # this fixes launching of interactive subprocesses, #150799
+ YAST_ARGS="$YAST_ARGS --nothreads"
+fi
+
+if [ $FRONTEND == "qt" ]; then
+ set_qt_home_dir
+
+ # FIXME: why the hack was this done? full screening something that
+ # takes so much time to load is just annoying!
+ if echo $WINDOWMANAGER | grep -qi "kde" ; then
+ if [ $module == "sw_single" ] ; then
+ case "$YAST_ARGS" in
+ *fullscreen*) ;;
+ *) YAST_ARGS="$YAST_ARGS --fullscreen" ;;
+ esac
+ fi
+ fi
+fi
+
+## RUN the requested module
+if [ $module == "menu" ]; then
+ run_yast_menu
+else
+ # we do a cycle because we want to keep the online_update module alive as long
+ # as there are pending patches
+ while true ; do
+ # Transform every argument into a ycp string, that is surround all
+ # args by ("..."). args may contain spaces.
+ a=("$@")
+ b=("${a[@]/#/(\"}")
+ c=("${b[@]/%/\")}")
+ set -- "${c[@]}"
+
+ $ybindir/y2base $module "$@" $FRONTEND "$YAST_ARGS"
+
+ if [ ! $module == "online_update" ] || [ ! -e "/var/lib/YaST2/selected_patches.ycp" ] ; then
+ break
+ fi
+ done
+fi
+
+## LAST frontend specific changes
+if [ $FRONTEND == "ncurses" ]; then
+ if [ "$uc_started" ] ; then
+ /usr/bin/test -x /bin/unicode_stop && /bin/unicode_stop
+ fi
+fi
+
+## EXIT
+exit_code=$?
+
+if [ "$UID" = 0 ]; then
+ rm -f /var/run/yast.pid
+fi
+
+exit $exit_code
+
Added: trunk/gtk/unstable-libyui/integrate/yast2-funcs
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/integrate/ya…
==============================================================================
--- trunk/gtk/unstable-libyui/integrate/yast2-funcs (added)
+++ trunk/gtk/unstable-libyui/integrate/yast2-funcs Wed Dec 5 14:14:01 2007
@@ -0,0 +1,141 @@
+# File: /usr/share/YaST2/bin/yast2-funcs
+# Module: yast2
+# Summary: Common functions for YaST2 start scripts
+# Authors: Arvin Schnell <arvin(a)suse.de>
+#
+# $Id: yast2-funcs 24861 2005-08-12 11:10:25Z locilka $
+
+# some path definitions
+ybindir=/usr/lib/YaST2/bin
+logdir=/var/log/YaST2
+
+
+# font for qt
+# obsolete, we should not need it anymore, adrian
+# Y2_XFONT="-gnu-unifont-medium-r-normal--16-160-75-75-p-80-iso10646-1"
+
+
+#
+# check if plugins are in lib or lib64 subdir and sets the variable
+# plugindir accordingly
+#
+function get_plugindir()
+{
+ plugindir=/usr/lib/YaST2/plugin
+ if `ldd $ybindir/y2base | egrep --quiet "/lib64/(.*/)?libc.so"` ; then
+ plugindir=/usr/lib64/YaST2/plugin
+ fi
+}
+
+#
+# check if the gtk plugin and all necessary libaries are present
+#
+function check_gtk()
+{
+ get_plugindir
+ Y2_GTK=$plugindir/libpy2gtk.so.2
+
+ if [ -e "$Y2_GTK" ] ; then
+ if ! `/usr/bin/ldd "$Y2_GTK" | grep --quiet "=> not found"` ; then
+ return 0 # success
+ fi
+ echo "warning: the gtk frontend is installed but does not work"
+ sleep 1
+ fi
+
+ return 1 # failure
+}
+
+#
+# check if the qt plugin and all necessary libaries are present
+#
+function check_qt()
+{
+ get_plugindir
+ Y2_QT=$plugindir/libpy2qt.so.2
+
+ if [ -e "$Y2_QT" ] ; then
+ if ! `/usr/bin/ldd "$Y2_QT" | grep --quiet "=> not found"` ; then
+ return 0 # success
+ fi
+ echo "warning: the qt frontend is installed but does not work"
+ sleep 1
+ fi
+
+ return 1 # failure
+}
+
+
+#
+# check if the ncurses plugin and all necessary libaries are present
+#
+function check_ncurses()
+{
+ get_plugindir
+ Y2_NCURSES=$plugindir/libpy2ncurses.so.2
+
+ if [ -e "$Y2_NCURSES" ] ; then
+ if ! `/usr/bin/ldd "$Y2_NCURSES" | grep --quiet "=> not found"` ; then
+ return 0 # success
+ fi
+ echo "warning: the ncurses frontend is installed but does not work"
+ sleep 1
+ fi
+
+ return 1 # failure
+}
+
+
+#
+# if LANG is empty set LANG to RC_LANG in /etc/sysconfig/language
+#
+function set_lang_from_sysconfig()
+{
+ # if LANG is "POSIX", unset LANG
+ # SL 9.3 had default LANG set to ""
+ # SL 10.0 has default LANG set to "POSIX"
+ if [ "$LANG" == "POSIX" ] ; then
+ LANG=""
+ fi
+
+ # if LANG is not empty and /etc/sysconfig/language exists
+ if [ -z "$LANG" -a -r /etc/sysconfig/language ] ; then
+ . /etc/sysconfig/language
+ if [ -n "$RC_LANG" ] ; then
+ export LANG=$RC_LANG
+ fi
+ fi
+}
+
+
+function set_qt_home_dir()
+{
+ local user="$USER"
+ if [ "$KDESU_USER" ]; then
+ user="$KDESU_USER"
+ fi
+ temp_QT_HOME_DIR="`eval echo ~$user/.qt/`"
+ if test -r "$temp_QT_HOME_DIR/qtrc"; then
+ export QT_HOME_DIR="$temp_QT_HOME_DIR"
+ fi
+}
+
+
+function set_inst_qt_env()
+{
+ export XCURSOR_THEME="crystalwhite"
+ export QT_HOME_DIR="`eval echo /tmp/.qt/`"
+ mkdir -p /tmp/.qt
+ [ -e /usr/share/desktop-data/qtrc ] && cp /usr/share/desktop-data/qtrc /tmp/.qt/
+}
+
+
+function clr_inst_qt_env()
+{
+ rm -rf /tmp/.qt/
+}
+
+
+### Local Variables: ***
+### mode: shell-script ***
+### End: ***
Added: trunk/gtk/unstable-libyui/libtool
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/libtool?rev=…
==============================================================================
--- trunk/gtk/unstable-libyui/libtool (added)
+++ trunk/gtk/unstable-libyui/libtool Wed Dec 5 14:14:01 2007
@@ -0,0 +1,7587 @@
+#! /bin/sh
+
+# libtoolT - Provide generalized library-building support services.
+# Generated automatically by (GNU yast2-gtk 2.15.9)
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Libtool:
+# Originally by Gordon Matzigkeit <gord(a)gnu.ai.mit.edu>, 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="/usr/bin/sed"
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="/usr/bin/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=" CXX"
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Libtool was configured on host adelia:
+
+# Shell to use when invoking shell scripts.
+SHELL="/bin/sh"
+
+# Whether or not to build shared libraries.
+build_libtool_libs=yes
+
+# Whether or not to build static libraries.
+build_old_libs=no
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=no
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=no
+
+# Whether or not to optimize for fast installation.
+fast_install=yes
+
+# The host system.
+host_alias=
+host=i686-suse-linux-gnu
+host_os=linux-gnu
+
+# The build system.
+build_alias=
+build=i686-suse-linux-gnu
+build_os=linux-gnu
+
+# An echo program that does not interpret backslashes.
+echo="echo"
+
+# The archiver.
+AR="ar"
+AR_FLAGS="cru"
+
+# A C compiler.
+LTCC="gcc"
+
+# LTCC compiler flags.
+LTCFLAGS="-g -O2 -Wall -Wformat=2 -Wmissing-prototypes"
+
+# A language-specific compiler.
+CC="gcc"
+
+# Is the compiler the GNU C compiler?
+with_gcc=yes
+
+# An ERE matcher.
+EGREP="/usr/bin/grep -E"
+
+# The linker used to build libraries.
+LD="/usr/i586-suse-linux/bin/ld"
+
+# Whether we need hard or soft links.
+LN_S="ln -s"
+
+# A BSD-compatible nm program.
+NM="/usr/bin/nm -B"
+
+# A symbol stripping program
+STRIP="strip"
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=file
+
+# 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=.libs
+
+# How to create reloadable object files.
+reload_flag=" -r"
+reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"
+
+# How to pass a linker flag through the compiler.
+wl="-Wl,"
+
+# Object file suffix (normally "o").
+objext="o"
+
+# Old archive suffix (normally "a").
+libext="a"
+
+# Shared library suffix (normally ".so").
+shrext_cmds='.so'
+
+# Executable file suffix (normally "").
+exeext=""
+
+# Additional compiler flags for building library objects.
+pic_flag=" -fPIC -DPIC"
+pic_mode=default
+
+# What is the maximum length of a command?
+max_cmd_len=98304
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o="yes"
+
+# Must we lock files when doing compilation?
+need_locks="no"
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=no
+
+# Do we need a version for libraries?
+need_version=no
+
+# Whether dlopen is supported.
+dlopen_support=unknown
+
+# Whether dlopen of programs is supported.
+dlopen_self=unknown
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=unknown
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag="-static"
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=" -fno-builtin"
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec="\${wl}--export-dynamic"
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive"
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=""
+
+# Library versioning type.
+version_type=linux
+
+# Format of library name prefix.
+libname_spec="lib\$name"
+
+# 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="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}"
+
+# The coded name of the library, if different from the real name.
+soname_spec="\${libname}\${release}\${shared_ext}\$major"
+
+# Commands used to build and install an old-style archive.
+RANLIB="ranlib"
+old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib"
+old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$oldlib"
+old_postuninstall_cmds=""
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=""
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=""
+
+# Commands used to build and install a shared archive.
+archive_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib"
+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"
+postinstall_cmds=""
+postuninstall_cmds=""
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=""
+module_expsym_cmds=""
+
+# Commands to strip libraries.
+old_striplib="strip --strip-debug"
+striplib="strip --strip-unneeded"
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects=""
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects=""
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=""
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps=""
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=""
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method="pass_all"
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd="\$MAGIC_CMD"
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=""
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=""
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=""
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'"
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern int \\1;/p'"
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p' -e 's/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'"
+
+# This is the shared library runtime path variable.
+runpath_var=LD_RUN_PATH
+
+# This is the shared library path variable.
+shlibpath_var=LD_LIBRARY_PATH
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=no
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=immediate
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=yes
+
+# Flag to hardcode $libdir into a binary during linking.
+# This must work even if $libdir does not exist.
+hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir"
+
+# 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=""
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=""
+
+# Set to yes if using DIR/libNAME during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=no
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=no
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=unsupported
+
+# 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=no
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=unknown
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec="/usr/lib/gcc/i586-suse-linux/4.2.1 /usr/i586-suse-linux/lib /usr/lib /lib"
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib/Xaw3d /usr/X11R6/lib /usr/lib/Xaw3d /usr/i386-suse-linux/lib /usr/local/lib /opt/kde3/lib /usr/lib/sidplay/builders "
+
+# Fix the shell variable $srcfile for the compiler.
+fix_srcfile_path=""
+
+# Set to yes if exported symbols are required.
+always_export_symbols=no
+
+# The commands to list exported symbols.
+export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=""
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
+
+# Symbols that must always be exported.
+include_expsyms=""
+
+# ### END LIBTOOL CONFIG
+
+# 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, 2006,
+# 2007 Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit <gord(a)gnu.ai.mit.edu>, 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"
+
+# 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.24
+TIMESTAMP=" (1.1220.2.455 2007/06/24 02:13:29)"
+
+# Be Bourne compatible (taken from Autoconf:_AS_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+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# 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 <<EOF
+$*
+EOF
+ exit $EXIT_SUCCESS
+fi
+
+default_mode=
+help="Try \`$progname --help' for more information."
+magic="%%%MAGIC variable%%%"
+mkdir="mkdir"
+mv="mv -f"
+rm="rm -f"
+
+# 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'
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ SP2NL='tr \040 \012'
+ NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ SP2NL='tr \100 \n'
+ NL2SP='tr \r\n \100\100'
+ ;;
+esac
+
+# NLS nuisances.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+# We save the old values to restore during execute mode.
+for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+do
+ eval "if test \"\${$lt_var+set}\" = set; then
+ save_$lt_var=\$$lt_var
+ $lt_var=C
+ export $lt_var
+ fi"
+done
+
+# Make sure IFS has a sensible default
+lt_nl='
+'
+IFS=" $lt_nl"
+
+if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+ $echo "$modename: not configured to build any kind of library" 1>&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/"
+extracted_archives=
+extracted_serial=0
+
+#####################################
+# 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
+ case "$@ " in
+ " $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_xlib_u=$my_xlib
+ while :; do
+ case " $extracted_archives " in
+ *" $my_xlib_u "*)
+ extracted_serial=`expr $extracted_serial + 1`
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
+ *) break ;;
+ esac
+ done
+ extracted_archives="$extracted_archives $my_xlib_u"
+ my_xdir="$my_gentop/$my_xlib_u"
+
+ $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
+
+Copyright (C) 2007 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."
+ 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 ;;
+ *.[fF][09]?) xform=[fF][09]. ;;
+ *.for) xform=for ;;
+ *.java) xform=java ;;
+ *.obj) xform=obj ;;
+ 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 "$progpath" "$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 <<EOF
+# $libobj - a libtool object file
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+EOF
+
+ # Only build a PIC object if we are building libtool libraries.
+ if test "$build_libtool_libs" = yes; then
+ # Without this assignment, base_compile gets emptied.
+ fbsd_hideous_sh_bug=$base_compile
+
+ if test "$pic_mode" != no; then
+ command="$base_compile $qsrcfile $pic_flag"
+ else
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ fi
+
+ if test ! -d "${xdir}$objdir"; then
+ $show "$mkdir ${xdir}$objdir"
+ $run $mkdir ${xdir}$objdir
+ exit_status=$?
+ if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
+ exit $exit_status
+ fi
+ fi
+
+ if test -z "$output_obj"; then
+ # Place PIC objects in $objdir
+ command="$command -o $lobj"
+ fi
+
+ $run $rm "$lobj" "$output_obj"
+
+ $show "$command"
+ if $run eval "$command"; then :
+ else
+ test -n "$output_obj" && $run $rm $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/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 <<EOF
+pic_object='$objdir/$objname'
+
+EOF
+
+ # Allow error messages only from the first compilation.
+ if test "$suppress_opt" = yes; then
+ suppress_output=' >/dev/null 2>&1'
+ fi
+ else
+ # No PIC object so indicate it doesn't exist in the libtool
+ # object file.
+ test -z "$run" && cat >> ${libobj}T <<EOF
+pic_object=none
+
+EOF
+ fi
+
+ # Only build a position-dependent object if we build old libraries.
+ if test "$build_old_libs" = yes; then
+ if test "$pic_mode" != yes; then
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ else
+ command="$base_compile $qsrcfile $pic_flag"
+ fi
+ if test "$compiler_c_o" = yes; then
+ command="$command -o $obj"
+ fi
+
+ # Suppress compiler output if we already did a PIC compilation.
+ command="$command$suppress_output"
+ $run $rm "$obj" "$output_obj"
+ $show "$command"
+ if $run eval "$command"; then :
+ else
+ $run $rm $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/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 <<EOF
+# Name of the non-PIC object.
+non_pic_object='$objname'
+
+EOF
+ else
+ # 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 <<EOF
+# Name of the non-PIC object.
+non_pic_object=none
+
+EOF
+ fi
+
+ $run $mv "${libobj}T" "${libobj}"
+
+ # Unlock the critical section if it was locked
+ if test "$need_locks" != no; then
+ $run $rm "$lockfile"
+ fi
+
+ exit $EXIT_SUCCESS
+ ;;
+
+ # libtool link mode
+ link | relink)
+ modename="$modename: link"
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+ # It is impossible to link a dll without this setting, and
+ # we shouldn't force the makefile maintainer to figure out
+ # which system we are compiling for in order to pass an extra
+ # flag for every libtool invocation.
+ # allow_undefined=no
+
+ # FIXME: Unfortunately, there are problems with the above when trying
+ # to make a dll which has undefined symbols, in which case not
+ # even a static library is built. For now, we need to specify
+ # -no-undefined on the libtool link line when we can be certain
+ # that all symbols are satisfied, otherwise we get a static library.
+ allow_undefined=yes
+ ;;
+ *)
+ allow_undefined=yes
+ ;;
+ esac
+ libtool_args="$nonopt"
+ base_compile="$nonopt $@"
+ compile_command="$nonopt"
+ finalize_command="$nonopt"
+
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
+ lib_search_path=`pwd`
+ inst_prefix_dir=
+
+ avoid_version=no
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ notinst_path= # paths that contain not-installed libtool libraries
+ precious_files_regex=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+
+ func_infer_tag $base_compile
+
+ # We need to know -static, to get the right output filenames.
+ for arg
+ do
+ case $arg in
+ -all-static | -static | -static-libtool-libs)
+ case $arg in
+ -all-static)
+ if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+ $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
+ fi
+ if test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ -static)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=built
+ ;;
+ -static-libtool-libs)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ esac
+ 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|-threads)
+ 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
+ # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+ # -F/path gives path to uninstalled frameworks, gcc on darwin
+ # @file GCC response files
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
+
+ # 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* | *-*-darwin*)
+ # The PATH hackery in wrapper scripts is required on Windows
+ # and Darwin 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 | -static-libtool-libs)
+ # 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|-threads)
+ 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 "$prefer_static_libs,$installed" = "built,yes"; } ||
+ 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|none)
+ 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`
+ age="$number_minor"
+ revision="$number_minor"
+ lt_irix_increment=no
+ ;;
+ 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`
+ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ ;;
+
+ freebsd-aout)
+ major=".$current"
+ versuffix=".$current.$revision";
+ ;;
+
+ freebsd-elf)
+ major=".$current"
+ versuffix=".$current";
+ ;;
+
+ irix | nonstopux)
+ if test "X$lt_irix_increment" = "Xno"; then
+ major=`expr $current - $age`
+ else
+ major=`expr $current - $age + 1`
+ fi
+ 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 <<EOF
+ int main() { return 0; }
+EOF
+ $rm conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+ name=`expr $i : '-l\(.*\)'`
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" && test "$name" != "0"; then
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: dynamic linker does not accept needed library $i."
+ $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 I believe you do not have"
+ $echo "*** because a test_compile did reveal that the linker did not use it for"
+ $echo "*** its dynamic dependency list that programs get resolved with at runtime."
+ fi
+ fi
+ else
+ newdeplibs="$newdeplibs $i"
+ fi
+ done
+ else
+ # Error occurred in the first compile. Let's try to salvage
+ # the situation: Compile a separate program for each library.
+ for i in $deplibs; do
+ name=`expr $i : '-l\(.*\)'`
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" && test "$name" != "0"; then
+ $rm conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
+ ldd_output=`ldd conftest`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: dynamic linker does not accept needed library $i."
+ $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 a test_compile did reveal that the linker did not use this one"
+ $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
+ fi
+ fi
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning! Library $i is needed by this library but I was not able to"
+ $echo "*** make it link in! You will probably need to install it or some"
+ $echo "*** library that it depends on before this library will be fully"
+ $echo "*** functional. Installing it before continuing would be even better."
+ fi
+ else
+ newdeplibs="$newdeplibs $i"
+ fi
+ done
+ fi
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method
+ file_magic_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 "$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
+ # Follow soft links.
+ if ls -lLd "$potent_lib" 2>/dev/null \
+ | grep " -> " >/dev/null; then
+ continue
+ fi
+ # The statement above tries to avoid entering an
+ # endless loop below, in case of cyclic links.
+ # We might still enter an endless loop, since a link
+ # loop can be closed while we follow links,
+ # but so what?
+ potlib="$potent_lib"
+ while test -h "$potlib" 2>/dev/null; do
+ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
+ case $potliblink in
+ [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
+ *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+ esac
+ done
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
+ | ${SED} 10q \
+ | $EGREP "$file_magic_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: linker path does not have real file for library $a_deplib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $echo "*** with $libname but no candidates were found. (...for file magic test)"
+ else
+ $echo "*** with $libname and none of the candidates passed a file format test"
+ $echo "*** using a file magic. Last file checked: $potlib"
+ fi
+ fi
+ else
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ fi
+ done # Gone through all deplibs.
+ ;;
+ match_pattern*)
+ set dummy $deplibs_check_method
+ match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
+ for a_deplib in $deplibs; do
+ name=`expr $a_deplib : '-l\(.*\)'`
+ # If $name is empty we are operating on a -L argument.
+ if test -n "$name" && test "$name" != "0"; then
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ potlib="$potent_lib" # see symlink-check above in file_magic test
+ if eval $echo \"$potent_lib\" 2>/dev/null \
+ | ${SED} 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: linker path does not have real file for library $a_deplib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
+ else
+ $echo "*** with $libname and none of the candidates passed a file format test"
+ $echo "*** using a regex pattern. Last file checked: $potlib"
+ fi
+ fi
+ else
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ fi
+ done # Gone through all deplibs.
+ ;;
+ none | unknown | *)
+ newdeplibs=""
+ tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
+ -e 's/ -[LR][^ ]*//g'`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ for i in $predeps $postdeps ; do
+ # can't use Xsed below, because $i might contain '/'
+ tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
+ done
+ fi
+ if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
+ | grep . >/dev/null; then
+ $echo
+ if test "X$deplibs_check_method" = "Xnone"; then
+ $echo "*** Warning: inter-library dependencies are not supported in this platform."
+ else
+ $echo "*** Warning: inter-library dependencies are not known to be supported."
+ fi
+ $echo "*** All declared inter-library dependencies are being dropped."
+ droppeddeps=yes
+ fi
+ ;;
+ esac
+ versuffix=$versuffix_save
+ major=$major_save
+ release=$release_save
+ libname=$libname_save
+ name=$name_save
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library is the System framework
+ newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
+ ;;
+ esac
+
+ if test "$droppeddeps" = yes; then
+ if test "$module" = yes; then
+ $echo
+ $echo "*** Warning: libtool could not satisfy all declared inter-library"
+ $echo "*** dependencies of module $libname. Therefore, libtool will create"
+ $echo "*** a static module, that should work as long as the dlopening"
+ $echo "*** application is linked with the -dlopen flag."
+ if test -z "$global_symbol_pipe"; then
+ $echo
+ $echo "*** However, this would only work if libtool was able to extract symbol"
+ $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $echo "*** not find such a program. So, this module is probably useless."
+ $echo "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ else
+ $echo "*** The inter-library dependencies that have been dropped here will be"
+ $echo "*** automatically added whenever a program is linked with this library"
+ $echo "*** or is declared to -dlopen it."
+
+ if test "$allow_undefined" = no; then
+ $echo
+ $echo "*** Since this library must not contain undefined symbols,"
+ $echo "*** because either the platform does not support them or"
+ $echo "*** it was explicitly requested with -no-undefined,"
+ $echo "*** libtool will only create a static version of it."
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ fi
+ fi
+ # Done checking deplibs!
+ deplibs=$newdeplibs
+ fi
+
+
+ # 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
+ case $archive_cmds in
+ *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
+ *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
+ esac
+ 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 and hope we can get by with
+ # turning comma into space..
+ wl=
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec"; then
+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
+ reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
+ 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 >/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" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ else
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ fi
+ ;;
+ * )
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ ;;
+ 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" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
+ fi
+
+ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
+ # Replace the output file specification.
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
+ 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" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
+ 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" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
+ 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 <<EOF
+
+/* $cwrappersource - temporary wrapper executable 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 executable should never be moved out of the build directory.
+ If it is, it will not operate correctly.
+
+ Currently, it simply execs the wrapper *script* "/bin/sh $output",
+ but could eventually absorb all of the scripts functionality and
+ exec $objdir/$outputname directly.
+*/
+EOF
+ cat >> $cwrappersource<<"EOF"
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <string.h>
+#include <ctype.h>
+#include <sys/stat.h>
+
+#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 <<EOF
+ newargz[0] = (char *) xstrdup("$SHELL");
+EOF
+
+ cat >> $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<argc+1; i++)
+ {
+ DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
+ ;
+ }
+
+EOF
+
+ case $host_os in
+ mingw*)
+ cat >> $cwrappersource <<EOF
+ execv("$SHELL",(char const **)newargz);
+EOF
+ ;;
+ *)
+ cat >> $cwrappersource <<EOF
+ execv("$SHELL",newargz);
+EOF
+ ;;
+ esac
+
+ cat >> $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'
+
+# Be Bourne compatible (taken from Autoconf:_AS_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+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# 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.
+"
+ 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 \$*\"
+ 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" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
+ 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
+ newdependency_libs="$newdependency_libs $libdir/$name"
+ ;;
+ *) newdependency_libs="$newdependency_libs $deplib" ;;
+ esac
+ done
+ dependency_libs="$newdependency_libs"
+ newdlfiles=
+ for lib in $dlfiles; do
+ name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ if test -z "$libdir"; then
+ $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+ exit $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
+ $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" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
+ else
+ relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
+ 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" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
+
+ $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
+ if test ! -f "$dir/$dlname"; then
+ $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ 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
+ for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ do
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+ fi"
+ done
+
+ # 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 <bug-libtool(a)gnu.org>."
+ 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 uninstalled libtool libraries
+ -static-libtool-libs
+ 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:
+# ### BEGIN LIBTOOL TAG CONFIG: CXX
+
+# Libtool was configured on host adelia:
+
+# Shell to use when invoking shell scripts.
+SHELL="/bin/sh"
+
+# Whether or not to build shared libraries.
+build_libtool_libs=yes
+
+# Whether or not to build static libraries.
+build_old_libs=no
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=no
+
+# Whether or not to disallow shared libs when runtime libs are static
+allow_libtool_libs_with_static_runtimes=no
+
+# Whether or not to optimize for fast installation.
+fast_install=yes
+
+# The host system.
+host_alias=
+host=i686-suse-linux-gnu
+host_os=linux-gnu
+
+# The build system.
+build_alias=
+build=i686-suse-linux-gnu
+build_os=linux-gnu
+
+# An echo program that does not interpret backslashes.
+echo="echo"
+
+# The archiver.
+AR="ar"
+AR_FLAGS="cru"
+
+# A C compiler.
+LTCC="gcc"
+
+# LTCC compiler flags.
+LTCFLAGS="-g -O2 -Wall -Wformat=2 -Wmissing-prototypes"
+
+# A language-specific compiler.
+CC="g++"
+
+# Is the compiler the GNU C compiler?
+with_gcc=yes
+
+# An ERE matcher.
+EGREP="/usr/bin/grep -E"
+
+# The linker used to build libraries.
+LD="/usr/i586-suse-linux/bin/ld"
+
+# Whether we need hard or soft links.
+LN_S="ln -s"
+
+# A BSD-compatible nm program.
+NM="/usr/bin/nm -B"
+
+# A symbol stripping program
+STRIP="strip"
+
+# Used to examine libraries when file_magic_cmd begins "file"
+MAGIC_CMD=file
+
+# 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=.libs
+
+# How to create reloadable object files.
+reload_flag=" -r"
+reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"
+
+# How to pass a linker flag through the compiler.
+wl="-Wl,"
+
+# Object file suffix (normally "o").
+objext="o"
+
+# Old archive suffix (normally "a").
+libext="a"
+
+# Shared library suffix (normally ".so").
+shrext_cmds='.so'
+
+# Executable file suffix (normally "").
+exeext=""
+
+# Additional compiler flags for building library objects.
+pic_flag=" -fPIC -DPIC"
+pic_mode=default
+
+# What is the maximum length of a command?
+max_cmd_len=98304
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o="yes"
+
+# Must we lock files when doing compilation?
+need_locks="no"
+
+# Do we need the lib prefix for modules?
+need_lib_prefix=no
+
+# Do we need a version for libraries?
+need_version=no
+
+# Whether dlopen is supported.
+dlopen_support=unknown
+
+# Whether dlopen of programs is supported.
+dlopen_self=unknown
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=unknown
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag="-static"
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=" -fno-builtin"
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec="\${wl}--export-dynamic"
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive"
+
+# Compiler flag to generate thread-safe objects.
+thread_safe_flag_spec=""
+
+# Library versioning type.
+version_type=linux
+
+# Format of library name prefix.
+libname_spec="lib\$name"
+
+# 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="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}"
+
+# The coded name of the library, if different from the real name.
+soname_spec="\${libname}\${release}\${shared_ext}\$major"
+
+# Commands used to build and install an old-style archive.
+RANLIB="ranlib"
+old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib"
+old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$oldlib"
+old_postuninstall_cmds=""
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=""
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=""
+
+# Commands used to build and install a shared archive.
+archive_cmds="\$CC -shared -nostdlib \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib"
+archive_expsym_cmds="\$CC -shared -nostdlib \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib"
+postinstall_cmds=""
+postuninstall_cmds=""
+
+# Commands used to build a loadable module (assumed same as above if empty)
+module_cmds=""
+module_expsym_cmds=""
+
+# Commands to strip libraries.
+old_striplib="strip --strip-debug"
+striplib="strip --strip-unneeded"
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predep_objects="/usr/lib/gcc/i586-suse-linux/4.2.1/../../../crti.o /usr/lib/gcc/i586-suse-linux/4.2.1/crtbeginS.o"
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdep_objects="/usr/lib/gcc/i586-suse-linux/4.2.1/crtendS.o /usr/lib/gcc/i586-suse-linux/4.2.1/../../../crtn.o"
+
+# Dependencies to place before the objects being linked to create a
+# shared library.
+predeps=""
+
+# Dependencies to place after the objects being linked to create a
+# shared library.
+postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s"
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path="-L/usr/lib/gcc/i586-suse-linux/4.2.1 -L/usr/lib/gcc/i586-suse-linux/4.2.1 -L/usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/lib -L/usr/lib/gcc/i586-suse-linux/4.2.1/../../.."
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method="pass_all"
+
+# Command to use when deplibs_check_method == file_magic.
+file_magic_cmd="\$MAGIC_CMD"
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=""
+
+# Flag that forces no undefined symbols.
+no_undefined_flag=""
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir"
+
+# Same as above, but a single script fragment to be evaled but not shown.
+finish_eval=""
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'"
+
+# Transform the output of nm in a proper C declaration
+global_symbol_to_cdecl="sed -n -e 's/^. .* \\(.*\\)\$/extern int \\1;/p'"
+
+# Transform the output of nm in a C name address pair
+global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p' -e 's/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'"
+
+# This is the shared library runtime path variable.
+runpath_var=LD_RUN_PATH
+
+# This is the shared library path variable.
+shlibpath_var=LD_LIBRARY_PATH
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=no
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=immediate
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=yes
+
+# Flag to hardcode $libdir into a binary during linking.
+# This must work even if $libdir does not exist.
+hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir"
+
+# 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=""
+
+# Whether we need a single -rpath flag with a separated argument.
+hardcode_libdir_separator=""
+
+# Set to yes if using DIR/libNAME during linking hardcodes DIR into the
+# resulting binary.
+hardcode_direct=no
+
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
+# resulting binary.
+hardcode_minus_L=no
+
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
+# the resulting binary.
+hardcode_shlibpath_var=unsupported
+
+# 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=no
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=unknown
+
+# Compile-time system search path for libraries
+sys_lib_search_path_spec="/usr/lib/gcc/i586-suse-linux/4.2.1 /usr/i586-suse-linux/lib /usr/lib /lib"
+
+# Run-time system search path for libraries
+sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib/Xaw3d /usr/X11R6/lib /usr/lib/Xaw3d /usr/i386-suse-linux/lib /usr/local/lib /opt/kde3/lib /usr/lib/sidplay/builders "
+
+# Fix the shell variable $srcfile for the compiler.
+fix_srcfile_path=""
+
+# Set to yes if exported symbols are required.
+always_export_symbols=no
+
+# The commands to list exported symbols.
+export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=""
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=""
+
+# Symbols that must always be exported.
+include_expsyms=""
+
+# ### END LIBTOOL TAG CONFIG: CXX
+
Added: trunk/gtk/unstable-libyui/ltmain.sh
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/ltmain.sh?re…
==============================================================================
--- trunk/gtk/unstable-libyui/ltmain.sh (added)
+++ trunk/gtk/unstable-libyui/ltmain.sh Wed Dec 5 14:14:01 2007
@@ -0,0 +1,6930 @@
+# 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, 2006,
+# 2007 Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit <gord(a)gnu.ai.mit.edu>, 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"
+
+# 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.24
+TIMESTAMP=" (1.1220.2.455 2007/06/24 02:13:29)"
+
+# Be Bourne compatible (taken from Autoconf:_AS_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+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# 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 <<EOF
+$*
+EOF
+ exit $EXIT_SUCCESS
+fi
+
+default_mode=
+help="Try \`$progname --help' for more information."
+magic="%%%MAGIC variable%%%"
+mkdir="mkdir"
+mv="mv -f"
+rm="rm -f"
+
+# 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'
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ SP2NL='tr \040 \012'
+ NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ SP2NL='tr \100 \n'
+ NL2SP='tr \r\n \100\100'
+ ;;
+esac
+
+# NLS nuisances.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+# We save the old values to restore during execute mode.
+for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+do
+ eval "if test \"\${$lt_var+set}\" = set; then
+ save_$lt_var=\$$lt_var
+ $lt_var=C
+ export $lt_var
+ fi"
+done
+
+# Make sure IFS has a sensible default
+lt_nl='
+'
+IFS=" $lt_nl"
+
+if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+ $echo "$modename: not configured to build any kind of library" 1>&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/"
+extracted_archives=
+extracted_serial=0
+
+#####################################
+# 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
+ case "$@ " in
+ " $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_xlib_u=$my_xlib
+ while :; do
+ case " $extracted_archives " in
+ *" $my_xlib_u "*)
+ extracted_serial=`expr $extracted_serial + 1`
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
+ *) break ;;
+ esac
+ done
+ extracted_archives="$extracted_archives $my_xlib_u"
+ my_xdir="$my_gentop/$my_xlib_u"
+
+ $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
+
+Copyright (C) 2007 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."
+ 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 ;;
+ *.[fF][09]?) xform=[fF][09]. ;;
+ *.for) xform=for ;;
+ *.java) xform=java ;;
+ *.obj) xform=obj ;;
+ 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 "$progpath" "$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 <<EOF
+# $libobj - a libtool object file
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+EOF
+
+ # Only build a PIC object if we are building libtool libraries.
+ if test "$build_libtool_libs" = yes; then
+ # Without this assignment, base_compile gets emptied.
+ fbsd_hideous_sh_bug=$base_compile
+
+ if test "$pic_mode" != no; then
+ command="$base_compile $qsrcfile $pic_flag"
+ else
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ fi
+
+ if test ! -d "${xdir}$objdir"; then
+ $show "$mkdir ${xdir}$objdir"
+ $run $mkdir ${xdir}$objdir
+ exit_status=$?
+ if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
+ exit $exit_status
+ fi
+ fi
+
+ if test -z "$output_obj"; then
+ # Place PIC objects in $objdir
+ command="$command -o $lobj"
+ fi
+
+ $run $rm "$lobj" "$output_obj"
+
+ $show "$command"
+ if $run eval "$command"; then :
+ else
+ test -n "$output_obj" && $run $rm $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/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 <<EOF
+pic_object='$objdir/$objname'
+
+EOF
+
+ # Allow error messages only from the first compilation.
+ if test "$suppress_opt" = yes; then
+ suppress_output=' >/dev/null 2>&1'
+ fi
+ else
+ # No PIC object so indicate it doesn't exist in the libtool
+ # object file.
+ test -z "$run" && cat >> ${libobj}T <<EOF
+pic_object=none
+
+EOF
+ fi
+
+ # Only build a position-dependent object if we build old libraries.
+ if test "$build_old_libs" = yes; then
+ if test "$pic_mode" != yes; then
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ else
+ command="$base_compile $qsrcfile $pic_flag"
+ fi
+ if test "$compiler_c_o" = yes; then
+ command="$command -o $obj"
+ fi
+
+ # Suppress compiler output if we already did a PIC compilation.
+ command="$command$suppress_output"
+ $run $rm "$obj" "$output_obj"
+ $show "$command"
+ if $run eval "$command"; then :
+ else
+ $run $rm $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/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 <<EOF
+# Name of the non-PIC object.
+non_pic_object='$objname'
+
+EOF
+ else
+ # 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 <<EOF
+# Name of the non-PIC object.
+non_pic_object=none
+
+EOF
+ fi
+
+ $run $mv "${libobj}T" "${libobj}"
+
+ # Unlock the critical section if it was locked
+ if test "$need_locks" != no; then
+ $run $rm "$lockfile"
+ fi
+
+ exit $EXIT_SUCCESS
+ ;;
+
+ # libtool link mode
+ link | relink)
+ modename="$modename: link"
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+ # It is impossible to link a dll without this setting, and
+ # we shouldn't force the makefile maintainer to figure out
+ # which system we are compiling for in order to pass an extra
+ # flag for every libtool invocation.
+ # allow_undefined=no
+
+ # FIXME: Unfortunately, there are problems with the above when trying
+ # to make a dll which has undefined symbols, in which case not
+ # even a static library is built. For now, we need to specify
+ # -no-undefined on the libtool link line when we can be certain
+ # that all symbols are satisfied, otherwise we get a static library.
+ allow_undefined=yes
+ ;;
+ *)
+ allow_undefined=yes
+ ;;
+ esac
+ libtool_args="$nonopt"
+ base_compile="$nonopt $@"
+ compile_command="$nonopt"
+ finalize_command="$nonopt"
+
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
+ lib_search_path=`pwd`
+ inst_prefix_dir=
+
+ avoid_version=no
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ notinst_path= # paths that contain not-installed libtool libraries
+ precious_files_regex=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+
+ func_infer_tag $base_compile
+
+ # We need to know -static, to get the right output filenames.
+ for arg
+ do
+ case $arg in
+ -all-static | -static | -static-libtool-libs)
+ case $arg in
+ -all-static)
+ if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+ $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
+ fi
+ if test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ -static)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=built
+ ;;
+ -static-libtool-libs)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ esac
+ 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|-threads)
+ 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
+ # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+ # -F/path gives path to uninstalled frameworks, gcc on darwin
+ # @file GCC response files
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
+
+ # 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* | *-*-darwin*)
+ # The PATH hackery in wrapper scripts is required on Windows
+ # and Darwin 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 | -static-libtool-libs)
+ # 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|-threads)
+ 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 "$prefer_static_libs,$installed" = "built,yes"; } ||
+ 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|none)
+ 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`
+ age="$number_minor"
+ revision="$number_minor"
+ lt_irix_increment=no
+ ;;
+ 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`
+ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ ;;
+
+ freebsd-aout)
+ major=".$current"
+ versuffix=".$current.$revision";
+ ;;
+
+ freebsd-elf)
+ major=".$current"
+ versuffix=".$current";
+ ;;
+
+ irix | nonstopux)
+ if test "X$lt_irix_increment" = "Xno"; then
+ major=`expr $current - $age`
+ else
+ major=`expr $current - $age + 1`
+ fi
+ 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 <<EOF
+ int main() { return 0; }
+EOF
+ $rm conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+ name=`expr $i : '-l\(.*\)'`
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" && test "$name" != "0"; then
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: dynamic linker does not accept needed library $i."
+ $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 I believe you do not have"
+ $echo "*** because a test_compile did reveal that the linker did not use it for"
+ $echo "*** its dynamic dependency list that programs get resolved with at runtime."
+ fi
+ fi
+ else
+ newdeplibs="$newdeplibs $i"
+ fi
+ done
+ else
+ # Error occurred in the first compile. Let's try to salvage
+ # the situation: Compile a separate program for each library.
+ for i in $deplibs; do
+ name=`expr $i : '-l\(.*\)'`
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" && test "$name" != "0"; then
+ $rm conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
+ ldd_output=`ldd conftest`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: dynamic linker does not accept needed library $i."
+ $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 a test_compile did reveal that the linker did not use this one"
+ $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
+ fi
+ fi
+ else
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning! Library $i is needed by this library but I was not able to"
+ $echo "*** make it link in! You will probably need to install it or some"
+ $echo "*** library that it depends on before this library will be fully"
+ $echo "*** functional. Installing it before continuing would be even better."
+ fi
+ else
+ newdeplibs="$newdeplibs $i"
+ fi
+ done
+ fi
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method
+ file_magic_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 "$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
+ # Follow soft links.
+ if ls -lLd "$potent_lib" 2>/dev/null \
+ | grep " -> " >/dev/null; then
+ continue
+ fi
+ # The statement above tries to avoid entering an
+ # endless loop below, in case of cyclic links.
+ # We might still enter an endless loop, since a link
+ # loop can be closed while we follow links,
+ # but so what?
+ potlib="$potent_lib"
+ while test -h "$potlib" 2>/dev/null; do
+ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
+ case $potliblink in
+ [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
+ *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+ esac
+ done
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
+ | ${SED} 10q \
+ | $EGREP "$file_magic_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: linker path does not have real file for library $a_deplib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $echo "*** with $libname but no candidates were found. (...for file magic test)"
+ else
+ $echo "*** with $libname and none of the candidates passed a file format test"
+ $echo "*** using a file magic. Last file checked: $potlib"
+ fi
+ fi
+ else
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ fi
+ done # Gone through all deplibs.
+ ;;
+ match_pattern*)
+ set dummy $deplibs_check_method
+ match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
+ for a_deplib in $deplibs; do
+ name=`expr $a_deplib : '-l\(.*\)'`
+ # If $name is empty we are operating on a -L argument.
+ if test -n "$name" && test "$name" != "0"; then
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ potlib="$potent_lib" # see symlink-check above in file_magic test
+ if eval $echo \"$potent_lib\" 2>/dev/null \
+ | ${SED} 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $echo
+ $echo "*** Warning: linker path does not have real file for library $a_deplib."
+ $echo "*** I have the capability to make that library automatically link in when"
+ $echo "*** you link to this library. But I can only do this if you have a"
+ $echo "*** shared version of the library, which you do not appear to have"
+ $echo "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
+ else
+ $echo "*** with $libname and none of the candidates passed a file format test"
+ $echo "*** using a regex pattern. Last file checked: $potlib"
+ fi
+ fi
+ else
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ fi
+ done # Gone through all deplibs.
+ ;;
+ none | unknown | *)
+ newdeplibs=""
+ tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
+ -e 's/ -[LR][^ ]*//g'`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ for i in $predeps $postdeps ; do
+ # can't use Xsed below, because $i might contain '/'
+ tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
+ done
+ fi
+ if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
+ | grep . >/dev/null; then
+ $echo
+ if test "X$deplibs_check_method" = "Xnone"; then
+ $echo "*** Warning: inter-library dependencies are not supported in this platform."
+ else
+ $echo "*** Warning: inter-library dependencies are not known to be supported."
+ fi
+ $echo "*** All declared inter-library dependencies are being dropped."
+ droppeddeps=yes
+ fi
+ ;;
+ esac
+ versuffix=$versuffix_save
+ major=$major_save
+ release=$release_save
+ libname=$libname_save
+ name=$name_save
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library is the System framework
+ newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
+ ;;
+ esac
+
+ if test "$droppeddeps" = yes; then
+ if test "$module" = yes; then
+ $echo
+ $echo "*** Warning: libtool could not satisfy all declared inter-library"
+ $echo "*** dependencies of module $libname. Therefore, libtool will create"
+ $echo "*** a static module, that should work as long as the dlopening"
+ $echo "*** application is linked with the -dlopen flag."
+ if test -z "$global_symbol_pipe"; then
+ $echo
+ $echo "*** However, this would only work if libtool was able to extract symbol"
+ $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $echo "*** not find such a program. So, this module is probably useless."
+ $echo "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ else
+ $echo "*** The inter-library dependencies that have been dropped here will be"
+ $echo "*** automatically added whenever a program is linked with this library"
+ $echo "*** or is declared to -dlopen it."
+
+ if test "$allow_undefined" = no; then
+ $echo
+ $echo "*** Since this library must not contain undefined symbols,"
+ $echo "*** because either the platform does not support them or"
+ $echo "*** it was explicitly requested with -no-undefined,"
+ $echo "*** libtool will only create a static version of it."
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ fi
+ fi
+ # Done checking deplibs!
+ deplibs=$newdeplibs
+ fi
+
+
+ # 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
+ case $archive_cmds in
+ *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
+ *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
+ esac
+ 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 and hope we can get by with
+ # turning comma into space..
+ wl=
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec"; then
+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
+ reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
+ 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 >/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" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ else
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ fi
+ ;;
+ * )
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
+ ;;
+ 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" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
+ fi
+
+ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
+ # Replace the output file specification.
+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
+ 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" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
+ 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" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
+ 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 <<EOF
+
+/* $cwrappersource - temporary wrapper executable 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 executable should never be moved out of the build directory.
+ If it is, it will not operate correctly.
+
+ Currently, it simply execs the wrapper *script* "/bin/sh $output",
+ but could eventually absorb all of the scripts functionality and
+ exec $objdir/$outputname directly.
+*/
+EOF
+ cat >> $cwrappersource<<"EOF"
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <string.h>
+#include <ctype.h>
+#include <sys/stat.h>
+
+#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 <<EOF
+ newargz[0] = (char *) xstrdup("$SHELL");
+EOF
+
+ cat >> $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<argc+1; i++)
+ {
+ DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
+ ;
+ }
+
+EOF
+
+ case $host_os in
+ mingw*)
+ cat >> $cwrappersource <<EOF
+ execv("$SHELL",(char const **)newargz);
+EOF
+ ;;
+ *)
+ cat >> $cwrappersource <<EOF
+ execv("$SHELL",newargz);
+EOF
+ ;;
+ esac
+
+ cat >> $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'
+
+# Be Bourne compatible (taken from Autoconf:_AS_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+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# 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.
+"
+ 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 \$*\"
+ 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" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
+ 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
+ newdependency_libs="$newdependency_libs $libdir/$name"
+ ;;
+ *) newdependency_libs="$newdependency_libs $deplib" ;;
+ esac
+ done
+ dependency_libs="$newdependency_libs"
+ newdlfiles=
+ for lib in $dlfiles; do
+ name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ if test -z "$libdir"; then
+ $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+ exit $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
+ $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" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
+ else
+ relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
+ 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" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
+
+ $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
+ if test ! -f "$dir/$dlname"; then
+ $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
+ exit $EXIT_FAILURE
+ fi
+ 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
+ for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ do
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+ fi"
+ done
+
+ # 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 <bug-libtool(a)gnu.org>."
+ 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 uninstalled libtool libraries
+ -static-libtool-libs
+ 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:
Added: trunk/gtk/unstable-libyui/missing
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/missing?rev=…
==============================================================================
--- trunk/gtk/unstable-libyui/missing (added)
+++ trunk/gtk/unstable-libyui/missing Wed Dec 5 14:14:01 2007
@@ -0,0 +1,367 @@
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+
+scriptversion=2006-05-10.23
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
+# Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard <pinard(a)iro.umontreal.ca>, 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., 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.
+
+if test $# -eq 0; then
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+fi
+
+run=:
+sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
+sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+
+# 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
+
+msg="missing on your system"
+
+case $1 in
+--run)
+ # Try to run requested program, and just exit if it succeeds.
+ run=
+ shift
+ "$@" && exit 0
+ # Exit code 63 means version mismatch. This often happens
+ # when the user try to use an ancient version of a tool on
+ # a file that requires a minimum version. In this case we
+ # we should proceed has if the program had been absent, or
+ # if --run hadn't been passed.
+ if test $? = 63; then
+ run=:
+ msg="probably too old"
+ fi
+ ;;
+
+ -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'
+ autom4te touch the output file, or create a stub one
+ 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]
+
+Send bug reports to <bug-automake(a)gnu.org>."
+ exit $?
+ ;;
+
+ -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+ echo "missing $scriptversion (GNU Automake)"
+ exit $?
+ ;;
+
+ -*)
+ echo 1>&2 "$0: Unknown \`$1' option"
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+ ;;
+
+esac
+
+# Now exit if we have it, but it failed. Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program).
+case $1 in
+ lex|yacc)
+ # Not GNU programs, they don't have --version.
+ ;;
+
+ tar)
+ if test -n "$run"; then
+ echo 1>&2 "ERROR: \`tar' requires --run"
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ exit 1
+ fi
+ ;;
+
+ *)
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+ # We have it, but it failed.
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ # Could not run --version or --help. This is probably someone
+ # running `$TOOL --version' or `$TOOL --help' to check whether
+ # $TOOL exists and not knowing $TOOL uses missing.
+ exit 1
+ fi
+ ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case $1 in
+ aclocal*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. 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)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. 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)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. 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*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. 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)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, but is $msg.
+ 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 "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ 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' $msg. 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 test $# -ne 1; then
+ eval LASTARG="\${$#}"
+ case $LASTARG in
+ *.y)
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.c
+ fi
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.h
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f y.tab.h; then
+ echo >y.tab.h
+ fi
+ if test ! -f y.tab.c; then
+ echo 'main() { return 0; }' >y.tab.c
+ fi
+ ;;
+
+ lex|flex)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. 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 test $# -ne 1; then
+ eval LASTARG="\${$#}"
+ case $LASTARG in
+ *.l)
+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" lex.yy.c
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f lex.yy.c; then
+ echo 'main() { return 0; }' >lex.yy.c
+ fi
+ ;;
+
+ help2man)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. 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 "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo ".ab help2man is required to generate this page"
+ exit 1
+ fi
+ ;;
+
+ makeinfo)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. 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."
+ # The file to touch is that specified with -o ...
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -z "$file"; then
+ # ... or it is the one specified with @setfilename ...
+ infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ file=`sed -n '
+ /^@setfilename/{
+ s/.* \([^ ]*\) *$/\1/
+ p
+ q
+ }' $infile`
+ # ... or it is derived from the source name (dir/f.texi becomes f.info)
+ test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
+ fi
+ # If the file does not exist, the user really needs makeinfo;
+ # let's fail without touching anything.
+ test -f $file || exit 1
+ touch $file
+ ;;
+
+ tar)
+ shift
+
+ # 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 is $msg.
+ 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
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
Added: trunk/gtk/unstable-libyui/package/yast2-gtk-rpmlintrc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/package/yast…
==============================================================================
--- trunk/gtk/unstable-libyui/package/yast2-gtk-rpmlintrc (added)
+++ trunk/gtk/unstable-libyui/package/yast2-gtk-rpmlintrc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,2 @@
+# yast2 likes a .so file for it's plugin that looks like a -devel pkg thing
+addFilter("devel-file-in-non-devel-package")
Added: trunk/gtk/unstable-libyui/package/yast2-gtk.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/package/yast…
==============================================================================
--- trunk/gtk/unstable-libyui/package/yast2-gtk.changes (added)
+++ trunk/gtk/unstable-libyui/package/yast2-gtk.changes Wed Dec 5 14:14:01 2007
@@ -0,0 +1,107 @@
+-------------------------------------------------------------------
+Wed Oct 6 15:32:01 BST 2007 - mmichael(a)suse.de
+
+- n#300750: big speedup wrt. search / sort
+
+-------------------------------------------------------------------
+Wed Aug 26 15:32:01 BST 2007 - mmichael(a)suse.de
+
+- n#300390: warn if cancelling a non-submitted transaction.
+
+-------------------------------------------------------------------
+Wed Aug 8 15:32:01 BST 2007 - mmichael(a)suse.de
+
+- #296945: pulse progress bar impl.
+
+-------------------------------------------------------------------
+Fri Aug 10 18:01:20 CEST 2007 - mvidner(a)suse.cz
+
+- Finished integrating Feature #120292, UI as a namespace callable
+ from yast2-*-bindings.
+- 2.5.9
+
+-------------------------------------------------------------------
+Wed Aug 8 15:32:01 BST 2007 - mmichael(a)suse.de
+
+- FaTE #302018: details on how to print the license
+- 2.15.8
+
+-------------------------------------------------------------------
+Wed Aug 8 09:22:32 CEST 2007 - mvidner(a)suse.cz
+
+- Don't build-require yast2-devel-doc.
+- 2.15.7.2
+
+-------------------------------------------------------------------
+Mon Aug 6 14:00:37 CEST 2007 - mvidner(a)suse.cz
+
+- Adapted to changes in yast2-core needed for making UI callable from
+ yast2-*-bindings.
+- 2.15.7.1
+
+-------------------------------------------------------------------
+Thu Jul 26 07:28:31 CEST 2007 - jsrain(a)suse.cz
+
+- removed yast2-devel from BuildRequires
+- 2.15.7
+
+-------------------------------------------------------------------
+Mon Jul 23 15:32:01 BST 2007 - mmichael(a)suse.de
+
+- fix crash-on-start n#293065
+- fix uninitialized warnings
+- fix empty-partition divide by 0 case
+- 2.15.6
+
+-------------------------------------------------------------------
+Mon Jul 16 17:07:01 CEST 2007 - jsrain(a)suse.cz
+
+- adapted to new libzypp
+- added support for translations
+- 2.15.5
+
+-------------------------------------------------------------------
+Thu Jun 21 10:24:55 CEST 2007 - mmichael(a)suse.de
+
+- upgrade to yast2-gtk-2.15.4, fixes many bugs, pwrt.
+ package selector, improved search, multi-select for
+ installations &, large scale robustness & functionality
+ table-sorting fix, progress bar fix, initial easter-egg,
+ add rpmlintrc to avoid complaints about plugin .so name
+
+-------------------------------------------------------------------
+Fri May 11 18:19:10 CEST 2007 - mmichael(a)suse.de
+
+- upgrade to yast2-gtk-2.15.3, fixes #268146, #271716
+ and improves package selector search / sort.
+
+-------------------------------------------------------------------
+Tue Apr 17 15:58:40 CEST 2007 - mmichael(a)suse.de
+
+- upgrade to yast2-gtk-2.15.2, fixes upgrade.ycp
+
+-------------------------------------------------------------------
+Fri Mar 16 13:36:04 CET 2007 - mmichael(a)suse.de
+
+- upgrade to yast2-gtk-2.15.1, several fixes, including #247682, #247683
+
+-------------------------------------------------------------------
+Wed Feb 7 11:26:07 CET 2007 - mmichael(a)suse.de
+
+- update to yast2-gtk-2.15.0, fixes build and adds new Frame type
+
+-------------------------------------------------------------------
+Wed Aug 30 10:56:28 CEST 2006 - cthiel(a)suse.de
+
+- added yast2-gtk-autogen.patch to fix build with latests yast2-devtools
+
+-------------------------------------------------------------------
+Mon Aug 28 11:34:13 CEST 2006 - cthiel(a)suse.de
+
+- fix build
+
+-------------------------------------------------------------------
+Wed Aug 23 18:20:30 CEST 2006 - mmichael(a)suse.de
+
+- import yast2-gtk into autobuild.
+
Added: trunk/gtk/unstable-libyui/pluglib-bindings.ami
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/pluglib-bind…
==============================================================================
--- trunk/gtk/unstable-libyui/pluglib-bindings.ami (added)
+++ trunk/gtk/unstable-libyui/pluglib-bindings.ami Wed Dec 5 14:14:01 2007
@@ -0,0 +1,78 @@
+# -*- makefile -*- Automake include file
+# $Id: pluglib-bindings.ami 35906 2007-02-06 15:26:47Z mvidner $
+
+# Wraps a pluglib for use by YaST. Done by using Swig for Perl, adding
+# type information. Compiles, installs.
+
+# expected input:
+# PLUGLIB_MODULE = the name after %module in .i
+# PLUGLIB_LIBRARY = the object file/library that is being wrapped
+# PLUGLIB_DEPEND = dependencies
+# example:
+# PLUGLIB_MODULE = Storage
+# PLUGLIB_LIBRARY = .libs/liby2storage.so
+# PLUGLIB_DEPEND = ../../src/StorageInterface.h
+# include $(top_srcdir)/pluglib-bindings.ami
+
+TARGET_PM = $(PLUGLIB_MODULE).pm
+TARGET_SO = $(PLUGLIB_MODULE).so
+
+# ydatadir or `pkg-config --variable=yast2dir yast2-devtools`/data ?
+# putting files to a directory owned by another package?
+# ok but then they should share prefixes (maybe not really)
+PLGB_BASEDIR = $(ydatadir)/devtools/pluglib-bindings
+
+# TODO configure
+SWIG = swig
+#SWIG = $(HOME)/pfx-swig-1.3.24/bin/swig
+SWIGFLAGS = -I$(PLGB_BASEDIR)/swig -c++
+
+# Process the .i file, creating a wrapper for Perl and a XML parse.
+%_wrap.cc %_wrap.xml: %.i $(PLUGLIB_DEPEND)
+ $(SWIG) -perl $(SWIGFLAGS) -o $*_wrap.cc -xmlout $*_wrap.xml $<
+
+PLGB_TYPEINFO_XSL = $(PLGB_BASEDIR)/stylesheets/swigxml2typeinfo.xsl
+PLGB_TYPEINFO_FILTER = $(PLGB_BASEDIR)/stylesheets/filter.pl
+
+# Add typeinfo
+# (sablotron indeed has fewer build dependencies than xsltproc)
+# PLGB_TYPEINFO_FILTER opens all files in append mode
+# which is strange but we can live with it by deleting the
+# appropriate files beforehand.
+$(TARGET_PM): %.pm: %_wrap.xml
+ if test -d $(PLUGLIB_MODULE); then \
+ rm -f $(PLUGLIB_MODULE)/*.pm; \
+ fi
+ sabcmd $(PLGB_TYPEINFO_XSL) $< > $*.tpi
+ perl $(PLGB_TYPEINFO_FILTER) < $*.tpi
+ rm $*.tpi
+
+# Install the Perl modules
+PLGB_PMdir = $(moduledir)
+PLGB_PM_DATA = $(TARGET_PM)
+# Copy the directory with additional pm modules
+install-data-local:
+ if test -d $(PLUGLIB_MODULE); then \
+ cp --recursive $(PLUGLIB_MODULE) $(DESTDIR)$(PLGB_PMdir); \
+ fi
+# This is to ensure that automake generates the LTCXXCOMPILE variable.
+# We need to use LTCXXCOMPILE because libtool puts in -fPIC on some
+# architectures and also we get RPM_OPT_FLAGS via CXXCLAGS that way.
+noinst_PROGRAMS = dummy_to_have_cxxcompile
+dummy_to_have_cxxcompile_SOURCES = dummy_to_have_cxxcompile.cc
+dummy_to_have_cxxcompile.cc:
+ echo 'int main() {return 0;}' > $@
+
+# Compile the wrapper
+.libs/%_wrap.o: %_wrap.cc
+ $(LTCXXCOMPILE) $(PERL_CFLAGS) -c -o $*_wrap.lo $<
+
+# Link the wrapper and the actual library
+$(TARGET_SO): %.so: .libs/%_wrap.o $(PLUGLIB_LIBRARY)
+ $(CXXCOMPILE) -shared -o $@ $^
+
+# Install the library
+PLGB_SOdir = $(PERL_VENDORARCH)
+PLGB_SO_DATA = $(TARGET_SO)
+
+CLEANFILES = $(PLUGLIB_MODULE)_wrap.*
Added: trunk/gtk/unstable-libyui/src/.cvsignore
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/.cvsigno…
==============================================================================
--- trunk/gtk/unstable-libyui/src/.cvsignore (added)
+++ trunk/gtk/unstable-libyui/src/.cvsignore Wed Dec 5 14:14:01 2007
@@ -0,0 +1,7 @@
+Makefile.in
+Makefile
+*.lo
+*.la
+.libs
+.deps
+dummy
Added: trunk/gtk/unstable-libyui/src/Makefile
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/Makefile…
==============================================================================
--- trunk/gtk/unstable-libyui/src/Makefile (added)
+++ trunk/gtk/unstable-libyui/src/Makefile Wed Dec 5 14:14:01 2007
@@ -0,0 +1,756 @@
+# Makefile.in generated by automake 1.10 from Makefile.am.
+# src/Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006 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.
+
+
+
+
+
+
+pkgdatadir = $(datadir)/yast2-gtk
+pkglibdir = $(libdir)/yast2-gtk
+pkgincludedir = $(includedir)/yast2-gtk
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+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 = :
+build_triplet = i686-suse-linux-gnu
+host_triplet = i686-suse-linux-gnu
+target_triplet = i686-suse-linux-gnu
+noinst_PROGRAMS = dummy$(EXEEXT)
+check_PROGRAMS = test$(EXEEXT)
+subdir = src
+DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(plugindir)"
+pluginLTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(plugin_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+libpy2gtk_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
+am_libpy2gtk_la_OBJECTS = Y2CCGtk.lo YGUtils.lo YGUI.lo YGDialog.lo \
+ YGLayout.lo YGWidget.lo YGLabel.lo YGPushButton.lo \
+ YGProgressBar.lo YGInputField.lo YGMultiLineEdit.lo \
+ YGIntField.lo YGRadioButton.lo YGImage.lo YGFrame.lo \
+ YGSelectionModel.lo YGComboBox.lo YGTable.lo YGMenuButton.lo \
+ YGBarGraph.lo YGDumbTab.lo YGWizard.lo YGTime.lo \
+ YGPackageSelector.lo ygtkratiobox.lo ygtkbargraph.lo \
+ ygtksteps.lo ygtkfieldentry.lo ygtkmenubutton.lo ygtkwizard.lo \
+ ygtkfindentry.lo ygdkmngloader.lo ygtkimage.lo ygtkhtmlwrap.lo \
+ ygtkrichtext.lo yzyppwrapper.lo ygtkzyppwrapper.lo
+libpy2gtk_la_OBJECTS = $(am_libpy2gtk_la_OBJECTS)
+libpy2gtk_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
+ $(CXXFLAGS) $(libpy2gtk_la_LDFLAGS) $(LDFLAGS) -o $@
+PROGRAMS = $(noinst_PROGRAMS)
+am_dummy_OBJECTS = dummy.$(OBJEXT)
+dummy_OBJECTS = $(am_dummy_OBJECTS)
+dummy_DEPENDENCIES = libpy2gtk.la
+am_test_OBJECTS = test.$(OBJEXT)
+test_OBJECTS = $(am_test_OBJECTS)
+test_DEPENDENCIES = $(top_builddir)/src/$(plugin_LTLIBRARIES)
+DEFAULT_INCLUDES = -I. -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(libpy2gtk_la_SOURCES) $(dummy_SOURCES) $(test_SOURCES)
+DIST_SOURCES = $(libpy2gtk_la_SOURCES) $(dummy_SOURCES) \
+ $(test_SOURCES)
+HEADERS = $(noinst_HEADERS)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run aclocal-1.10
+AGENT_LIBADD = -L$(libdir) -lscr
+ALLOCA =
+AMTAR = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run tar
+AR = ar
+AUTOCONF = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run automake-1.10
+AWK = gawk
+CC = gcc
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2 -Wall -Wformat=2 -Wmissing-prototypes
+CPP = gcc -E
+CPPFLAGS =
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2 -Wall -Wformat=2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEPDIR = .deps
+ECHO = echo
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+EGREP = /usr/bin/grep -E
+EXEEXT =
+F77 =
+FFLAGS =
+GREP = /usr/bin/grep
+GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12
+GTK_LIBS = -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0
+INSTALL = /usr/bin/install -c -p
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+LDFLAGS =
+LIBOBJS =
+LIBS =
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LN_S = ln -s
+LTLIBOBJS =
+MAINTAINER = Ricardo Cruz <rpmcruz(a)alunos.dcc.fc.up.pt> Michael Meeks <michael.meeks(a)novell.com>
+MAKEINFO = ${SHELL} /home/rick2/Documents/yast/gtk/unstable/missing --run makeinfo
+MKDIR_P = /bin/mkdir -p
+OBJEXT = o
+PACKAGE = yast2-gtk
+PACKAGE_BUGREPORT = http://bugs.opensuse.org/
+PACKAGE_NAME = yast2-gtk
+PACKAGE_STRING = yast2-gtk 2.15.9
+PACKAGE_TARNAME = yast2-gtk
+PACKAGE_VERSION = 2.15.9
+PATH_SEPARATOR = :
+PKG_CONFIG = /usr/bin/pkg-config
+PKG_CONFIG_PATH =
+PYUI_LIBS = -lpy2UI
+RANLIB = ranlib
+RPMNAME = yast2-gtk
+SED = /usr/bin/sed
+SET_MAKE =
+SHELL = /bin/sh
+STRIP = strip
+STYLESHEET_CSS = /usr/share/YaST2/data/docbook/css/yast2docs.css
+STYLESHEET_HTML = /usr/share/YaST2/data/docbook/stylesheets/customize-html.xsl
+STYLESHEET_PDF = /usr/share/YaST2/data/docbook/stylesheets/customize-fo.xsl
+STYLESHEET_YCPDOC = /usr/share/YaST2/data/docbook/stylesheets/ycpdoc.xsl
+STYLESHEET_YDOC = /usr/share/YaST2/data/docbook/stylesheets/ydoc.xsl
+VERSION = 2.15.9
+XGETTEXT = /usr/bin/xgettext
+Y2DEVTOOLS_PREFIX = /usr
+YDOXYGEN = /usr/lib/YaST2/bin/ydoxygen
+ZYPP_CFLAGS =
+ZYPP_LIBS = -lzypp
+abs_builddir = /home/rick2/Documents/yast/gtk/unstable/src
+abs_srcdir = /home/rick2/Documents/yast/gtk/unstable/src
+abs_top_builddir = /home/rick2/Documents/yast/gtk/unstable
+abs_top_srcdir = /home/rick2/Documents/yast/gtk/unstable
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_F77 =
+agentdir = ${prefix}/lib/YaST2/servers_non_y2
+am__include = include
+am__leading_dot = .
+am__quote =
+am__tar = tar --format=ustar -chf - "$$tardir"
+am__untar = tar -xf -
+bindir = ${exec_prefix}/bin
+build = i686-suse-linux-gnu
+build_alias =
+build_cpu = i686
+build_os = linux-gnu
+build_vendor = suse
+builddir = .
+clientdir = ${prefix}/share/YaST2/clients
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+desktopdir = ${prefix}/share/applications/YaST2
+docdir = ${prefix}/share/doc/packages/yast2-gtk
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+execcompdir = ${prefix}/lib/YaST2
+fillupdir = /var/adm/fillup-templates
+host = i686-suse-linux-gnu
+host_alias =
+host_cpu = i686
+host_os = linux-gnu
+host_vendor = suse
+htmldir = ${docdir}
+imagedir = ${prefix}/share/YaST2/images
+includedir = ${prefix}/include/YaST2
+infodir = ${datarootdir}/info
+install_sh = $(SHELL) /home/rick2/Documents/yast/gtk/unstable/install-sh
+libdir = /usr/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${prefix}/share/YaST2/locale
+localstatedir = ${prefix}/var
+mandir = ${prefix}/share/man
+mkdir_p = /bin/mkdir -p
+moduledir = ${prefix}/share/YaST2/modules
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+pkgconfigdatadir = ${datadir}/pkgconfig
+pkgconfigdir = ${libdir}/pkgconfig
+plugindir = ${libdir}/YaST2/plugin
+potdir = ${docdir}/pot
+prefix = /usr
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+schemadir = ${prefix}/share/YaST2/schema
+scrconfdir = ${prefix}/share/YaST2/scrconf
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target = i686-suse-linux-gnu
+target_alias =
+target_cpu = i686
+target_os = linux-gnu
+target_vendor = suse
+themedir = ${prefix}/share/YaST2/theme
+top_builddir = ..
+top_srcdir = ..
+yast2dir = ${prefix}/share/YaST2
+ybindir = ${prefix}/lib/YaST2/bin
+ydatadir = ${prefix}/share/YaST2/data
+yncludedir = ${prefix}/share/YaST2/include
+ystartupdir = ${prefix}/lib/YaST2
+AM_CFLAGS = $(GTK_CFLAGS) \
+ -DTHEMEDIR=\"${themedir}/current\"
+
+AM_CXXFLAGS = $(GTK_CFLAGS) \
+ -DY2LOG=\"ui-gtk\" \
+ -DTHEMEDIR=\"${themedir}/current\"
+
+noinst_HEADERS = $(wildcard *.h)
+
+# plugin, libtool forces 'lib' prefix
+plugin_LTLIBRARIES = libpy2gtk.la
+libpy2gtk_la_LDFLAGS = -version-info 2:0
+libpy2gtk_la_LIBADD = -L$(plugindir) $(PYUI_LIBS) -L$(libdir) -lycp -ly2 \
+ $(GTK_LIBS) $(ZYPP_LIBS) $(GTKHTML_LIBS)
+
+libpy2gtk_la_SOURCES = \
+ Y2CCGtk.cc \
+ YGUtils.cc \
+ YGUI.cc \
+ YGDialog.cc \
+ YGLayout.cc \
+ YGWidget.cc \
+ YGLabel.cc \
+ YGPushButton.cc \
+ YGProgressBar.cc \
+ YGInputField.cc \
+ YGMultiLineEdit.cc \
+ YGIntField.cc \
+ YGRadioButton.cc \
+ YGImage.cc \
+ YGFrame.cc \
+ YGSelectionModel.cc \
+ YGComboBox.cc \
+ YGTable.cc \
+ YGMenuButton.cc \
+ YGBarGraph.cc \
+ YGDumbTab.cc \
+ YGWizard.cc \
+ YGTime.cc \
+ YGPackageSelector.cc \
+ ygtkratiobox.c \
+ ygtkbargraph.c \
+ ygtksteps.c \
+ ygtkfieldentry.c \
+ ygtkmenubutton.c \
+ ygtkwizard.c \
+ ygtkfindentry.c \
+ ygdkmngloader.c \
+ ygtkimage.c \
+ ygtkhtmlwrap.c \
+ ygtkrichtext.c \
+ yzyppwrapper.cc \
+ ygtkzyppwrapper.cc
+
+# should only append ygtkrichtext.c if USE_GTKHTML is set
+dummy_SOURCES = dummy.cc
+dummy_LDADD = libpy2gtk.la
+TESTS = $(check_PROGRAMS)
+test_SOURCES = test.cc
+test_LDADD = $(top_builddir)/src/$(plugin_LTLIBRARIES)
+INCLUDES = -I$(srcdir)/include -I$(includedir) -I$(includedir)/yui $(ZYPP_CFLAGS)
+EXTRA_DIST =
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .cc .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(plugindir)" || $(MKDIR_P) "$(DESTDIR)$(plugindir)"
+ @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f=$(am__strip_dir) \
+ echo " $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(plugindir)/$$f'"; \
+ $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(plugindir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-pluginLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+ p=$(am__strip_dir) \
+ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$p'"; \
+ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$p"; \
+ done
+
+clean-pluginLTLIBRARIES:
+ -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES)
+ @list='$(plugin_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
+libpy2gtk.la: $(libpy2gtk_la_OBJECTS) $(libpy2gtk_la_DEPENDENCIES)
+ $(libpy2gtk_la_LINK) -rpath $(plugindir) $(libpy2gtk_la_OBJECTS) $(libpy2gtk_la_LIBADD) $(LIBS)
+
+clean-checkPROGRAMS:
+ @list='$(check_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+
+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
+dummy$(EXEEXT): $(dummy_OBJECTS) $(dummy_DEPENDENCIES)
+ @rm -f dummy$(EXEEXT)
+ $(CXXLINK) $(dummy_OBJECTS) $(dummy_LDADD) $(LIBS)
+test$(EXEEXT): $(test_OBJECTS) $(test_DEPENDENCIES)
+ @rm -f test$(EXEEXT)
+ $(CXXLINK) $(test_OBJECTS) $(test_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+include ./$(DEPDIR)/Y2CCGtk.Plo
+include ./$(DEPDIR)/YGBarGraph.Plo
+include ./$(DEPDIR)/YGComboBox.Plo
+include ./$(DEPDIR)/YGDialog.Plo
+include ./$(DEPDIR)/YGDumbTab.Plo
+include ./$(DEPDIR)/YGFrame.Plo
+include ./$(DEPDIR)/YGImage.Plo
+include ./$(DEPDIR)/YGInputField.Plo
+include ./$(DEPDIR)/YGIntField.Plo
+include ./$(DEPDIR)/YGLabel.Plo
+include ./$(DEPDIR)/YGLayout.Plo
+include ./$(DEPDIR)/YGMenuButton.Plo
+include ./$(DEPDIR)/YGMultiLineEdit.Plo
+include ./$(DEPDIR)/YGPackageSelector.Plo
+include ./$(DEPDIR)/YGProgressBar.Plo
+include ./$(DEPDIR)/YGPushButton.Plo
+include ./$(DEPDIR)/YGRadioButton.Plo
+include ./$(DEPDIR)/YGSelectionModel.Plo
+include ./$(DEPDIR)/YGTable.Plo
+include ./$(DEPDIR)/YGTime.Plo
+include ./$(DEPDIR)/YGUI.Plo
+include ./$(DEPDIR)/YGUtils.Plo
+include ./$(DEPDIR)/YGWidget.Plo
+include ./$(DEPDIR)/YGWizard.Plo
+include ./$(DEPDIR)/dummy.Po
+include ./$(DEPDIR)/test.Po
+include ./$(DEPDIR)/ygdkmngloader.Plo
+include ./$(DEPDIR)/ygtkbargraph.Plo
+include ./$(DEPDIR)/ygtkfieldentry.Plo
+include ./$(DEPDIR)/ygtkfindentry.Plo
+include ./$(DEPDIR)/ygtkhtmlwrap.Plo
+include ./$(DEPDIR)/ygtkimage.Plo
+include ./$(DEPDIR)/ygtkmenubutton.Plo
+include ./$(DEPDIR)/ygtkratiobox.Plo
+include ./$(DEPDIR)/ygtkrichtext.Plo
+include ./$(DEPDIR)/ygtksteps.Plo
+include ./$(DEPDIR)/ygtkwizard.Plo
+include ./$(DEPDIR)/ygtkzyppwrapper.Plo
+include ./$(DEPDIR)/yzyppwrapper.Plo
+
+.c.o:
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+# source='$<' object='$@' libtool=no \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(COMPILE) -c $<
+
+.c.obj:
+ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+# source='$<' object='$@' libtool=no \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+# source='$<' object='$@' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
+# $(LTCOMPILE) -c -o $@ $<
+
+.cc.o:
+ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+# source='$<' object='$@' libtool=no \
+# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
+# $(CXXCOMPILE) -c -o $@ $<
+
+.cc.obj:
+ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+# source='$<' object='$@' libtool=no \
+# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
+# $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.cc.lo:
+ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+# source='$<' object='$@' libtool=yes \
+# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
+# $(LTCXXCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+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
+
+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; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+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
+
+check-TESTS: $(TESTS)
+ @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
+ srcdir=$(srcdir); export srcdir; \
+ list=' $(TESTS) '; \
+ if test -n "$$list"; then \
+ for tst in $$list; do \
+ if test -f ./$$tst; then dir=./; \
+ elif test -f $$tst; then dir=; \
+ else dir="$(srcdir)/"; fi; \
+ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *$$ws$$tst$$ws*) \
+ xpass=`expr $$xpass + 1`; \
+ failed=`expr $$failed + 1`; \
+ echo "XPASS: $$tst"; \
+ ;; \
+ *) \
+ echo "PASS: $$tst"; \
+ ;; \
+ esac; \
+ elif test $$? -ne 77; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *$$ws$$tst$$ws*) \
+ xfail=`expr $$xfail + 1`; \
+ echo "XFAIL: $$tst"; \
+ ;; \
+ *) \
+ failed=`expr $$failed + 1`; \
+ echo "FAIL: $$tst"; \
+ ;; \
+ esac; \
+ else \
+ skip=`expr $$skip + 1`; \
+ echo "SKIP: $$tst"; \
+ fi; \
+ done; \
+ if test "$$failed" -eq 0; then \
+ if test "$$xfail" -eq 0; then \
+ banner="All $$all tests passed"; \
+ else \
+ banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
+ fi; \
+ else \
+ if test "$$xpass" -eq 0; then \
+ banner="$$failed of $$all tests failed"; \
+ else \
+ banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
+ fi; \
+ fi; \
+ dashes="$$banner"; \
+ skipped=""; \
+ if test "$$skip" -ne 0; then \
+ skipped="($$skip tests were not run)"; \
+ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$skipped"; \
+ fi; \
+ report=""; \
+ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
+ report="Please report to $(PACKAGE_BUGREPORT)"; \
+ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$report"; \
+ fi; \
+ dashes=`echo "$$dashes" | sed s/./=/g`; \
+ echo "$$dashes"; \
+ echo "$$banner"; \
+ test -z "$$skipped" || echo "$$skipped"; \
+ test -z "$$report" || echo "$$report"; \
+ echo "$$dashes"; \
+ test "$$failed" -eq 0; \
+ else :; fi
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ 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
+ $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS)
+installdirs:
+ for dir in "$(DESTDIR)$(plugindir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+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:
+ -test -z "$(CONFIG_CLEAN_FILES)" || 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-checkPROGRAMS clean-generic clean-libtool \
+ clean-noinstPROGRAMS clean-pluginLTLIBRARIES mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-pluginLTLIBRARIES
+
+install-dvi: install-dvi-am
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+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-pluginLTLIBRARIES
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
+ clean-checkPROGRAMS clean-generic clean-libtool \
+ clean-noinstPROGRAMS clean-pluginLTLIBRARIES ctags distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-pluginLTLIBRARIES \
+ install-ps install-ps-am 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-pluginLTLIBRARIES
+
+# 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:
Added: trunk/gtk/unstable-libyui/src/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/Makefile…
==============================================================================
--- trunk/gtk/unstable-libyui/src/Makefile.am (added)
+++ trunk/gtk/unstable-libyui/src/Makefile.am Wed Dec 5 14:14:01 2007
@@ -0,0 +1,70 @@
+AM_CFLAGS = $(GTK_CFLAGS) \
+ -DTHEMEDIR=\"${themedir}/current\"
+AM_CXXFLAGS = $(GTK_CFLAGS) \
+ -DY2LOG=\"ui-gtk\" \
+ -DTHEMEDIR=\"${themedir}/current\"
+
+noinst_HEADERS = $(wildcard *.h)
+
+# test linkage for missing symbols etc.
+noinst_PROGRAMS = dummy
+
+# plugin, libtool forces 'lib' prefix
+plugin_LTLIBRARIES = libpy2gtk.la
+
+libpy2gtk_la_LDFLAGS = -version-info 2:0
+libpy2gtk_la_LIBADD = -L$(plugindir) $(PYUI_LIBS) -L$(libdir) -lycp -ly2 \
+ $(GTK_LIBS) $(ZYPP_LIBS) $(GTKHTML_LIBS)
+libpy2gtk_la_SOURCES = \
+ Y2CCGtk.cc \
+ YGUtils.cc \
+ YGUI.cc \
+ YGDialog.cc \
+ YGLayout.cc \
+ YGWidget.cc \
+ YGLabel.cc \
+ YGPushButton.cc \
+ YGProgressBar.cc \
+ YGInputField.cc \
+ YGMultiLineEdit.cc \
+ YGIntField.cc \
+ YGRadioButton.cc \
+ YGImage.cc \
+ YGFrame.cc \
+ YGSelectionModel.cc \
+ YGComboBox.cc \
+ YGTable.cc \
+ YGMenuButton.cc \
+ YGBarGraph.cc \
+ YGDumbTab.cc \
+ YGWizard.cc \
+ YGTime.cc \
+ YGPackageSelector.cc \
+ ygtkratiobox.c \
+ ygtkbargraph.c \
+ ygtksteps.c \
+ ygtkfieldentry.c \
+ ygtkmenubutton.c \
+ ygtkwizard.c \
+ ygtkfindentry.c \
+ ygdkmngloader.c \
+ ygtkimage.c \
+ ygtkhtmlwrap.c \
+ ygtkrichtext.c \
+ yzyppwrapper.cc \
+ ygtkzyppwrapper.cc
+# should only append ygtkrichtext.c if USE_GTKHTML is set
+
+dummy_SOURCES = dummy.cc
+dummy_LDADD = libpy2gtk.la
+
+check_PROGRAMS = test
+TESTS = $(check_PROGRAMS)
+
+test_SOURCES = test.cc
+test_LDADD = $(top_builddir)/src/$(plugin_LTLIBRARIES)
+
+INCLUDES = -I$(srcdir)/include -I$(includedir) -I$(includedir)/yui $(ZYPP_CFLAGS)
+
+EXTRA_DIST =
+
Added: trunk/gtk/unstable-libyui/src/Makefile.in
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/Makefile…
==============================================================================
--- trunk/gtk/unstable-libyui/src/Makefile.in (added)
+++ trunk/gtk/unstable-libyui/src/Makefile.in Wed Dec 5 14:14:01 2007
@@ -0,0 +1,756 @@
+# Makefile.in generated by automake 1.10 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006 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@
+
+
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+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 = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+noinst_PROGRAMS = dummy$(EXEEXT)
+check_PROGRAMS = test$(EXEEXT)
+subdir = src
+DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(plugindir)"
+pluginLTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(plugin_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+libpy2gtk_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
+ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
+am_libpy2gtk_la_OBJECTS = Y2CCGtk.lo YGUtils.lo YGUI.lo YGDialog.lo \
+ YGLayout.lo YGWidget.lo YGLabel.lo YGPushButton.lo \
+ YGProgressBar.lo YGInputField.lo YGMultiLineEdit.lo \
+ YGIntField.lo YGRadioButton.lo YGImage.lo YGFrame.lo \
+ YGSelectionModel.lo YGComboBox.lo YGTable.lo YGMenuButton.lo \
+ YGBarGraph.lo YGDumbTab.lo YGWizard.lo YGTime.lo \
+ YGPackageSelector.lo ygtkratiobox.lo ygtkbargraph.lo \
+ ygtksteps.lo ygtkfieldentry.lo ygtkmenubutton.lo ygtkwizard.lo \
+ ygtkfindentry.lo ygdkmngloader.lo ygtkimage.lo ygtkhtmlwrap.lo \
+ ygtkrichtext.lo yzyppwrapper.lo ygtkzyppwrapper.lo
+libpy2gtk_la_OBJECTS = $(am_libpy2gtk_la_OBJECTS)
+libpy2gtk_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
+ $(CXXFLAGS) $(libpy2gtk_la_LDFLAGS) $(LDFLAGS) -o $@
+PROGRAMS = $(noinst_PROGRAMS)
+am_dummy_OBJECTS = dummy.$(OBJEXT)
+dummy_OBJECTS = $(am_dummy_OBJECTS)
+dummy_DEPENDENCIES = libpy2gtk.la
+am_test_OBJECTS = test.$(OBJEXT)
+test_OBJECTS = $(am_test_OBJECTS)
+test_DEPENDENCIES = $(top_builddir)/src/$(plugin_LTLIBRARIES)
+DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+CXXLD = $(CXX)
+CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(libpy2gtk_la_SOURCES) $(dummy_SOURCES) $(test_SOURCES)
+DIST_SOURCES = $(libpy2gtk_la_SOURCES) $(dummy_SOURCES) \
+ $(test_SOURCES)
+HEADERS = $(noinst_HEADERS)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AGENT_LIBADD = @AGENT_LIBADD@
+ALLOCA = @ALLOCA@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+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@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+GREP = @GREP@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_LIBS = @GTK_LIBS@
+INSTALL = @INSTALL@
+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@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINTAINER = @MAINTAINER@
+MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+PYUI_LIBS = @PYUI_LIBS@
+RANLIB = @RANLIB@
+RPMNAME = @RPMNAME@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+STYLESHEET_CSS = @STYLESHEET_CSS@
+STYLESHEET_HTML = @STYLESHEET_HTML@
+STYLESHEET_PDF = @STYLESHEET_PDF@
+STYLESHEET_YCPDOC = @STYLESHEET_YCPDOC@
+STYLESHEET_YDOC = @STYLESHEET_YDOC@
+VERSION = @VERSION@
+XGETTEXT = @XGETTEXT@
+Y2DEVTOOLS_PREFIX = @Y2DEVTOOLS_PREFIX@
+YDOXYGEN = @YDOXYGEN@
+ZYPP_CFLAGS = @ZYPP_CFLAGS@
+ZYPP_LIBS = @ZYPP_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+agentdir = @agentdir@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+clientdir = @clientdir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+desktopdir = @desktopdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+execcompdir = @execcompdir@
+fillupdir = @fillupdir@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+imagedir = @imagedir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+pkgconfigdatadir = @pkgconfigdatadir@
+pkgconfigdir = @pkgconfigdir@
+plugindir = @plugindir@
+potdir = @potdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+schemadir = @schemadir@
+scrconfdir = @scrconfdir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target = @target@
+target_alias = @target_alias@
+target_cpu = @target_cpu@
+target_os = @target_os@
+target_vendor = @target_vendor@
+themedir = @themedir@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+yast2dir = @yast2dir@
+ybindir = @ybindir@
+ydatadir = @ydatadir@
+yncludedir = @yncludedir@
+ystartupdir = @ystartupdir@
+AM_CFLAGS = $(GTK_CFLAGS) \
+ -DTHEMEDIR=\"${themedir}/current\"
+
+AM_CXXFLAGS = $(GTK_CFLAGS) \
+ -DY2LOG=\"ui-gtk\" \
+ -DTHEMEDIR=\"${themedir}/current\"
+
+noinst_HEADERS = $(wildcard *.h)
+
+# plugin, libtool forces 'lib' prefix
+plugin_LTLIBRARIES = libpy2gtk.la
+libpy2gtk_la_LDFLAGS = -version-info 2:0
+libpy2gtk_la_LIBADD = -L$(plugindir) $(PYUI_LIBS) -L$(libdir) -lycp -ly2 \
+ $(GTK_LIBS) $(ZYPP_LIBS) $(GTKHTML_LIBS)
+
+libpy2gtk_la_SOURCES = \
+ Y2CCGtk.cc \
+ YGUtils.cc \
+ YGUI.cc \
+ YGDialog.cc \
+ YGLayout.cc \
+ YGWidget.cc \
+ YGLabel.cc \
+ YGPushButton.cc \
+ YGProgressBar.cc \
+ YGInputField.cc \
+ YGMultiLineEdit.cc \
+ YGIntField.cc \
+ YGRadioButton.cc \
+ YGImage.cc \
+ YGFrame.cc \
+ YGSelectionModel.cc \
+ YGComboBox.cc \
+ YGTable.cc \
+ YGMenuButton.cc \
+ YGBarGraph.cc \
+ YGDumbTab.cc \
+ YGWizard.cc \
+ YGTime.cc \
+ YGPackageSelector.cc \
+ ygtkratiobox.c \
+ ygtkbargraph.c \
+ ygtksteps.c \
+ ygtkfieldentry.c \
+ ygtkmenubutton.c \
+ ygtkwizard.c \
+ ygtkfindentry.c \
+ ygdkmngloader.c \
+ ygtkimage.c \
+ ygtkhtmlwrap.c \
+ ygtkrichtext.c \
+ yzyppwrapper.cc \
+ ygtkzyppwrapper.cc
+
+# should only append ygtkrichtext.c if USE_GTKHTML is set
+dummy_SOURCES = dummy.cc
+dummy_LDADD = libpy2gtk.la
+TESTS = $(check_PROGRAMS)
+test_SOURCES = test.cc
+test_LDADD = $(top_builddir)/src/$(plugin_LTLIBRARIES)
+INCLUDES = -I$(srcdir)/include -I$(includedir) -I$(includedir)/yui $(ZYPP_CFLAGS)
+EXTRA_DIST =
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .cc .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(plugindir)" || $(MKDIR_P) "$(DESTDIR)$(plugindir)"
+ @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f=$(am__strip_dir) \
+ echo " $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(plugindir)/$$f'"; \
+ $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(plugindir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-pluginLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+ p=$(am__strip_dir) \
+ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$p'"; \
+ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$p"; \
+ done
+
+clean-pluginLTLIBRARIES:
+ -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES)
+ @list='$(plugin_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
+libpy2gtk.la: $(libpy2gtk_la_OBJECTS) $(libpy2gtk_la_DEPENDENCIES)
+ $(libpy2gtk_la_LINK) -rpath $(plugindir) $(libpy2gtk_la_OBJECTS) $(libpy2gtk_la_LIBADD) $(LIBS)
+
+clean-checkPROGRAMS:
+ @list='$(check_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+
+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
+dummy$(EXEEXT): $(dummy_OBJECTS) $(dummy_DEPENDENCIES)
+ @rm -f dummy$(EXEEXT)
+ $(CXXLINK) $(dummy_OBJECTS) $(dummy_LDADD) $(LIBS)
+test$(EXEEXT): $(test_OBJECTS) $(test_DEPENDENCIES)
+ @rm -f test$(EXEEXT)
+ $(CXXLINK) $(test_OBJECTS) $(test_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Y2CCGtk.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGBarGraph.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGComboBox.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGDialog.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGDumbTab.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGFrame.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGImage.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGInputField.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGIntField.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGLabel.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGLayout.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGMenuButton.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGMultiLineEdit.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGPackageSelector.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGProgressBar.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGPushButton.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGRadioButton.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGSelectionModel.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGTable.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGTime.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGUI.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGUtils.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGWidget.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/YGWizard.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygdkmngloader.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtkbargraph.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtkfieldentry.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtkfindentry.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtkhtmlwrap.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtkimage.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtkmenubutton.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtkratiobox.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtkrichtext.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtksteps.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtkwizard.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ygtkzyppwrapper.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yzyppwrapper.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+.cc.o:
+@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
+
+.cc.obj:
+@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.cc.lo:
+@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+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
+
+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; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+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
+
+check-TESTS: $(TESTS)
+ @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
+ srcdir=$(srcdir); export srcdir; \
+ list=' $(TESTS) '; \
+ if test -n "$$list"; then \
+ for tst in $$list; do \
+ if test -f ./$$tst; then dir=./; \
+ elif test -f $$tst; then dir=; \
+ else dir="$(srcdir)/"; fi; \
+ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *$$ws$$tst$$ws*) \
+ xpass=`expr $$xpass + 1`; \
+ failed=`expr $$failed + 1`; \
+ echo "XPASS: $$tst"; \
+ ;; \
+ *) \
+ echo "PASS: $$tst"; \
+ ;; \
+ esac; \
+ elif test $$? -ne 77; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *$$ws$$tst$$ws*) \
+ xfail=`expr $$xfail + 1`; \
+ echo "XFAIL: $$tst"; \
+ ;; \
+ *) \
+ failed=`expr $$failed + 1`; \
+ echo "FAIL: $$tst"; \
+ ;; \
+ esac; \
+ else \
+ skip=`expr $$skip + 1`; \
+ echo "SKIP: $$tst"; \
+ fi; \
+ done; \
+ if test "$$failed" -eq 0; then \
+ if test "$$xfail" -eq 0; then \
+ banner="All $$all tests passed"; \
+ else \
+ banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
+ fi; \
+ else \
+ if test "$$xpass" -eq 0; then \
+ banner="$$failed of $$all tests failed"; \
+ else \
+ banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
+ fi; \
+ fi; \
+ dashes="$$banner"; \
+ skipped=""; \
+ if test "$$skip" -ne 0; then \
+ skipped="($$skip tests were not run)"; \
+ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$skipped"; \
+ fi; \
+ report=""; \
+ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
+ report="Please report to $(PACKAGE_BUGREPORT)"; \
+ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$report"; \
+ fi; \
+ dashes=`echo "$$dashes" | sed s/./=/g`; \
+ echo "$$dashes"; \
+ echo "$$banner"; \
+ test -z "$$skipped" || echo "$$skipped"; \
+ test -z "$$report" || echo "$$report"; \
+ echo "$$dashes"; \
+ test "$$failed" -eq 0; \
+ else :; fi
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ 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
+ $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS)
+installdirs:
+ for dir in "$(DESTDIR)$(plugindir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+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:
+ -test -z "$(CONFIG_CLEAN_FILES)" || 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-checkPROGRAMS clean-generic clean-libtool \
+ clean-noinstPROGRAMS clean-pluginLTLIBRARIES mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-pluginLTLIBRARIES
+
+install-dvi: install-dvi-am
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+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-pluginLTLIBRARIES
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
+ clean-checkPROGRAMS clean-generic clean-libtool \
+ clean-noinstPROGRAMS clean-pluginLTLIBRARIES ctags distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-pluginLTLIBRARIES \
+ install-ps install-ps-am 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-pluginLTLIBRARIES
+
+# 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:
Added: trunk/gtk/unstable-libyui/src/Y2CCGtk.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/Y2CCGtk.…
==============================================================================
--- trunk/gtk/unstable-libyui/src/Y2CCGtk.cc (added)
+++ trunk/gtk/unstable-libyui/src/Y2CCGtk.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,68 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <YGUI.h>
+#include <YUIComponent.h>
+#include <ycp/y2log.h>
+
+#if YAST2_VERSION >= 2015006
+// New UI plugin work
+# include <Y2CCUI.h>
+# define NEW_UI_PLUGIN
+# define Y2CCUI_INIT
+#else
+# define Y2CCUI Y2ComponentCreator
+# define Y2CCUI_INIT Y2ComponentBroker::BUILTIN
+#endif
+
+class YGUIComponent : public YUIComponent
+{
+public:
+
+ YGUIComponent() : YUIComponent() {}
+
+ virtual string name() const { return "gtk"; }
+
+ virtual YUI *createUI (int argc, char **argv,
+ bool with_threads, const char * macro_file)
+ {
+#ifdef IMPL_DEBUG
+ fprintf (stderr, "Create a gtk+ UI: %d '%s' !\n", with_threads, macro_file);
+#endif
+ return new YGUI (argc, argv, with_threads, macro_file);
+ }
+};
+
+class Y2CCGtk : public Y2CCUI
+{
+public:
+ Y2CCGtk () : Y2CCUI (Y2CCUI_INIT) { };
+
+ bool isServerCreator () const { return true; };
+
+ Y2Component *create (const char * name) const
+ {
+ y2milestone( "Creating %s component", name );
+ if (!strcmp (name, "gtk") ) {
+#ifdef NEW_UI_PLUGIN
+ Y2Component* ret = YUIComponent::uiComponent ();
+ if (!ret || ret->name () != name) {
+ y2debug ("UI component is %s, creating %s", ret? ret->name().c_str() : "NULL", name);
+ ret = new YGUIComponent();
+ }
+ return ret;
+#else
+ return new YGUIComponent();
+#endif
+ }
+ else
+ return 0;
+ }
+};
+
+// Singleton plugin registration instance.
+Y2CCGtk g_y2ccgtk;
+
+
Added: trunk/gtk/unstable-libyui/src/YGBarGraph.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGBarGra…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGBarGraph.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGBarGraph.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,174 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YGWidget.h"
+#include "ygtkbargraph.h"
+
+#include "YBarGraph.h"
+
+class YGBarGraph : public YBarGraph, public YGWidget
+{
+public:
+ YGBarGraph (YWidget *parent)
+ : YBarGraph (parent)
+ , YGWidget (this, parent, true, YGTK_TYPE_BAR_GRAPH, NULL)
+ {}
+
+ // YBarGraph
+ virtual void doUpdate()
+ {
+ ygtk_bar_graph_create_entries (YGTK_BAR_GRAPH (getWidget()), segments());
+ for (int i = 0; i < segments(); i++) {
+ const YBarGraphSegment &s = segment (i);
+ ygtk_bar_graph_setup_entry (YGTK_BAR_GRAPH (getWidget()), i,
+ s.label().c_str(), s.value());
+ }
+ // FIXME: new libyui colors segments ... We probably should honor it
+ }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+YBarGraph *YGOptionalWidgetFactory::createBarGraph (YWidget *parent)
+{
+ return new YGBarGraph (parent);
+}
+
+#include "YPartitionSplitter.h"
+
+class YGPartitionSplitter : public YPartitionSplitter, public YGWidget
+{
+public:
+ YGtkBarGraph *m_barGraph;
+ GtkWidget *m_scale, *m_free_spin, *m_new_spin;
+
+ YGPartitionSplitter (YWidget *parent, int usedSize, int totalFreeSize, int newPartSize,
+ int minNewPartSize, int minFreeSize, const string &usedLabel, const string &freeLabel,
+ const string &newPartLabel, const string &freeFieldLabel, const string &newPartFieldLabel)
+ : YPartitionSplitter (parent, usedSize, totalFreeSize, newPartSize, minNewPartSize,
+ minFreeSize, usedLabel, freeLabel, newPartLabel, freeFieldLabel, newPartFieldLabel)
+ , YGWidget (this, parent, true, GTK_TYPE_VBOX, NULL)
+ {
+ /* Bar graph widget */
+ GtkWidget *graph = ygtk_bar_graph_new();
+ m_barGraph = YGTK_BAR_GRAPH (graph);
+ ygtk_bar_graph_create_entries (m_barGraph, 3);
+ ygtk_bar_graph_setup_entry (m_barGraph, 0, usedLabel.c_str(), usedSize);
+
+ /* Labels over the slider */
+ GtkWidget *labels_box, *free_label, *new_part_label;
+ labels_box = gtk_hbox_new (FALSE, 0);
+ free_label = gtk_label_new (freeFieldLabel.c_str());
+ new_part_label = gtk_label_new (newPartFieldLabel.c_str());
+ gtk_box_pack_start (GTK_BOX (labels_box), free_label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (labels_box), new_part_label, FALSE, FALSE, 0);
+
+ /* Slider and the spinners */
+ GtkWidget *slider_box = gtk_hbox_new (FALSE, 0);
+ m_scale = gtk_hscale_new_with_range ((gdouble) minFreeSize, maxFreeSize(), 1);
+ gtk_scale_set_draw_value (GTK_SCALE (m_scale), FALSE);
+ m_free_spin = gtk_spin_button_new_with_range
+ (minFreeSize, maxFreeSize(), 1);
+ m_new_spin = gtk_spin_button_new_with_range
+ (minNewPartSize, maxNewPartSize(), 1);
+
+ gtk_box_pack_start (GTK_BOX (slider_box), m_free_spin, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (slider_box), m_scale, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (slider_box), m_new_spin, FALSE, FALSE, 0);
+
+ g_signal_connect (G_OBJECT (m_scale), "value-changed",
+ G_CALLBACK (scale_changed_cb), this);
+ g_signal_connect (G_OBJECT (m_free_spin), "value-changed",
+ G_CALLBACK (free_spin_changed_cb), this);
+ g_signal_connect (G_OBJECT (m_new_spin), "value-changed",
+ G_CALLBACK (new_spin_changed_cb), this);
+
+ /* Main layout */
+ gtk_box_pack_start (GTK_BOX (getWidget()), graph, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (getWidget()), labels_box, FALSE, TRUE, 2);
+ gtk_box_pack_start (GTK_BOX (getWidget()), slider_box, FALSE, TRUE, 2);
+
+ setValue (newPartSize); // initialization
+ gtk_widget_show_all (getWidget());
+ }
+
+ // YPartitionSplitter
+ virtual int value()
+ {
+ return gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (m_new_spin));
+ }
+
+ virtual void setValue (int newValue)
+ {
+ IMPL
+ ygtk_bar_graph_setup_entry (m_barGraph, 1, freeLabel().c_str(),
+ freeSize());
+ ygtk_bar_graph_setup_entry (m_barGraph, 2, newPartLabel().c_str(),
+ newPartSize());
+
+ // block connections
+ g_signal_handlers_block_by_func (m_scale,
+ (gpointer) scale_changed_cb, this);
+ g_signal_handlers_block_by_func (m_free_spin,
+ (gpointer) free_spin_changed_cb, this);
+ g_signal_handlers_block_by_func (m_new_spin,
+ (gpointer) new_spin_changed_cb, this);
+
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (m_free_spin), freeSize());
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (m_new_spin), newPartSize());
+ gtk_range_set_value (GTK_RANGE (m_scale), freeSize());
+
+ // unblock connections
+ g_signal_handlers_unblock_by_func (m_scale,
+ (gpointer) scale_changed_cb, this);
+ g_signal_handlers_unblock_by_func (m_free_spin,
+ (gpointer) free_spin_changed_cb, this);
+ g_signal_handlers_unblock_by_func (m_new_spin,
+ (gpointer) new_spin_changed_cb, this);
+ }
+
+ static void scale_changed_cb (GtkRange *range, YGPartitionSplitter *pThis)
+ {
+ IMPL
+ int newFreeSize = (int) gtk_range_get_value (range);
+ int newPartSize = pThis->totalFreeSize() - newFreeSize;
+
+ pThis->setValue (newPartSize);
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+
+ static void free_spin_changed_cb (GtkSpinButton *spin, YGPartitionSplitter *pThis)
+ {
+ IMPL
+ int newFreeSize = gtk_spin_button_get_value_as_int (spin);
+ int newPartSize = pThis->totalFreeSize() - newFreeSize;
+
+ pThis->setValue (newPartSize);
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+
+ static void new_spin_changed_cb (GtkSpinButton *spin, YGPartitionSplitter *pThis)
+ {
+ IMPL
+ pThis->setValue (gtk_spin_button_get_value_as_int (spin));
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+YPartitionSplitter *YGOptionalWidgetFactory::createPartitionSplitter (YWidget *parent,
+ int usedSize, int totalFreeSize, int newPartSize, int minNewPartSize,
+ int minFreeSize, const string &usedLabel, const string &freeLabel,
+ const string &newPartLabel, const string &freeFieldLabel,
+ const string &newPartFieldLabel)
+{
+ return new YGPartitionSplitter (parent, usedSize, totalFreeSize, newPartSize,
+ minNewPartSize, minFreeSize, usedLabel, freeLabel, newPartLabel, freeFieldLabel,
+ newPartFieldLabel);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGComboBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGComboB…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGComboBox.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGComboBox.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,128 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YGUtils.h"
+#include "YComboBox.h"
+#include "YGSelectionModel.h"
+#include "YGWidget.h"
+
+class YGComboBox : public YComboBox, public YGLabeledWidget, public YGSelectionModel
+{
+ public:
+ YGComboBox (YWidget *parent, const string &label, bool editable)
+ : YComboBox (parent, label, editable)
+ , YGLabeledWidget (this, parent, label, YD_HORIZ, true,
+ editable ? GTK_TYPE_COMBO_BOX_ENTRY : GTK_TYPE_COMBO_BOX, NULL)
+ , YGSelectionModel (true, false)
+ {
+ GtkCellRenderer* cell;
+ if (editable) {
+ gtk_combo_box_entry_set_text_column (GTK_COMBO_BOX_ENTRY (getWidget()), 0);
+ }
+ else {
+ cell = gtk_cell_renderer_text_new ();
+ gtk_cell_layout_pack_end (GTK_CELL_LAYOUT (getWidget()), cell, TRUE);
+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (getWidget()), cell,
+ "text", YGSelectionModel::LABEL_COLUMN, NULL);
+ }
+ cell = gtk_cell_renderer_pixbuf_new ();
+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (getWidget()), cell, FALSE);
+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (getWidget()), cell,
+ "pixbuf", YGSelectionModel::ICON_COLUMN, NULL);
+
+ g_signal_connect (G_OBJECT (getWidget()), "changed",
+ G_CALLBACK (selected_changed_cb), this);
+ }
+
+ inline GtkComboBox *getComboBox()
+ { return GTK_COMBO_BOX (getWidget()); }
+
+ virtual void setModel (GtkTreeModel *model)
+ {
+ gtk_combo_box_set_model (getComboBox(), model);
+ }
+
+ GtkEntry *getEntry()
+ {
+ if (!GTK_IS_COMBO_BOX_ENTRY (getWidget())) {
+ y2error ("YGComboBox: trying to edit read-only combo box");
+ return NULL;
+ }
+
+ GtkWidget *entry = gtk_bin_get_child (GTK_BIN (getWidget()));
+ if (!GTK_IS_ENTRY (entry)) {
+ g_error ("YGComboBox: GtkComboBoxEntry doesn't have a GtkEntry as child");
+ return NULL;
+ }
+
+ return GTK_ENTRY (entry);
+ }
+
+ virtual string text()
+ {
+ return gtk_combo_box_get_active_text (getComboBox());
+ }
+
+ virtual void setText (const string &value)
+ {
+ IMPL
+ gtk_entry_set_text (getEntry(), value.c_str());
+ }
+
+ virtual void focusItem (GtkTreeIter *iter)
+ {
+ gtk_combo_box_set_active_iter (getComboBox(), iter);
+ }
+
+ virtual void unfocusAllItems()
+ {
+ gtk_combo_box_set_active (getComboBox(), -1);
+ }
+
+ virtual YItem *selectedItem()
+ {
+ GtkTreeIter iter;
+ if (gtk_combo_box_get_active_iter (getComboBox(), &iter))
+ return getItem (&iter);
+ return NULL;
+ }
+
+ virtual void setInputMaxLength (const YCPInteger &numberOfChars)
+ {
+ gtk_entry_set_width_chars (getEntry(), numberOfChars->asInteger()->value());
+ }
+
+ virtual void setValidChars (const string &validChars)
+ {
+ YGUtils::setFilter (getEntry(), validChars);
+ YComboBox::setValidChars (validChars);
+ }
+
+ // Events notifications
+ static void selected_changed_cb (GtkComboBox *widget, YGComboBox *pThis)
+ {
+ /* selected_changed_cb() is called when a new item was selected or the user has
+ typed some text on a writable ComboBox. text_changed is true for the later and
+ false for the former. */
+ bool text_changed = GTK_IS_COMBO_BOX_ENTRY (widget)
+ && pThis->selectedItem() == NULL;
+ if (text_changed)
+ pThis->emitEvent (YEvent::ValueChanged, true, true);
+ else
+ pThis->emitEvent (YEvent::SelectionChanged, true, true);
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN (YComboBox)
+ YGSELECTION_WIDGET_IMPL_ALL (YComboBox)
+};
+
+YComboBox *YGWidgetFactory::createComboBox (YWidget *parent, const string &label, bool editable)
+{
+ return new YGComboBox (parent, label, editable);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGDialog.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGDialog…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGDialog.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGDialog.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,404 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include "YGUI.h"
+#include "YGDialog.h"
+#include <gdk/gdkkeysyms.h>
+#include <math.h> // easter
+
+/* In the main dialog case, it doesn't necessarly have a window of its own. If
+ there is already a main window, it should replace its content -- and when closed,
+ the previous dialog restored.
+
+ Therefore, we have a YGDialog (the YDialog implementation), and a YGWindow
+ that does the windowing work and has a YWidget has its children, which can
+ be a YGDialog and is swap-able.
+*/
+
+class YGWindow;
+static YGWindow *main_window = 0;
+
+class YGWindow
+{
+ GtkWidget *m_widget;
+ int m_refcount;
+ // we keep a pointer of the child just for debugging
+ // (ie. dump yast tree)
+ YWidget *m_child;
+
+public:
+ YGWindowCloseFn m_canClose;
+ void *m_canCloseData;
+
+ YGWindow (bool _main_window)
+ {
+ m_widget = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ g_object_ref (G_OBJECT (m_widget));
+ gtk_object_sink (GTK_OBJECT (m_widget));
+
+ m_refcount = 0;
+ m_child = NULL;
+ m_canClose = NULL;
+
+ {
+ GtkWindow *parent = NULL;
+ if (main_window)
+ parent = GTK_WINDOW (main_window->getWidget());
+ GtkWindow *window = GTK_WINDOW (m_widget);
+
+ if (parent) {
+ // if there is a parent, this would be a dialog
+ gtk_window_set_title (window, "");
+ gtk_window_set_modal (window, TRUE);
+ gtk_window_set_transient_for (window, parent);
+ gtk_window_set_type_hint (window, GDK_WINDOW_TYPE_HINT_DIALOG);
+ //gtk_window_set_focus_on_map (window, FALSE);
+ }
+ else {
+ gtk_window_set_title (window, "YaST");
+ if (YGUI::ui()->unsetBorder())
+ gtk_window_set_decorated (window, FALSE);
+ }
+
+ if (_main_window) {
+ int w = YGUI::ui()->getDefaultWidth(),
+ h = YGUI::ui()->getDefaultHeight();
+ gtk_window_set_default_size (window, w, h);
+ }
+
+ gtk_window_set_role (window, "yast-gtk");
+ if (!YGUI::ui()->hasWM())
+ g_signal_connect (G_OBJECT (m_widget), "expose-event",
+ G_CALLBACK (draw_border_cb), this);
+ }
+
+ if (_main_window)
+ main_window = this;
+
+ g_signal_connect (G_OBJECT (m_widget), "delete-event",
+ G_CALLBACK (close_window_cb), this);
+ g_signal_connect_after (G_OBJECT (m_widget), "key-press-event",
+ G_CALLBACK (key_pressed_cb), this);
+ }
+
+ ~YGWindow()
+ {
+ IMPL
+ setChild (NULL);
+ gtk_widget_destroy (m_widget);
+ g_object_unref (G_OBJECT (m_widget));
+ }
+
+ void setChild (YWidget *new_child)
+ {
+ IMPL
+ GtkWidget *child = gtk_bin_get_child (GTK_BIN (m_widget));
+ if (child)
+ gtk_container_remove (GTK_CONTAINER (m_widget), child);
+ if (new_child) {
+ child = YGWidget::get (new_child)->getLayout();
+ gtk_container_add (GTK_CONTAINER (m_widget), child);
+ }
+ m_child = new_child;
+ }
+
+ static void ref (YGWindow *window)
+ {
+ window->m_refcount++;
+ }
+
+ static void unref (YGWindow *window)
+ {
+ if (--window->m_refcount == 0) {
+ bool is_main_window = (window == main_window);
+ delete window;
+ if (is_main_window)
+ main_window = NULL;
+ }
+ }
+
+ // Y(G)Widget-like methods
+ GtkWidget *getWidget() { return m_widget; }
+ YWidget *getChild() { return m_child; }
+
+private:
+ void close()
+ {
+ if (!m_canClose || m_canClose (m_canCloseData))
+ YGUI::ui()->sendEvent (new YCancelEvent());
+ }
+
+ static gboolean close_window_cb (GtkWidget *widget, GdkEvent *event,
+ YGWindow *pThis)
+ {
+ IMPL
+ // never let GTK+ destroy the window! just inform YCP, and let it
+ // do its thing.
+ pThis->close();
+ return TRUE;
+ }
+
+ static gboolean key_pressed_cb (GtkWidget *widget, GdkEventKey *event,
+ YGWindow *pThis)
+ {
+ IMPL
+ // if not main dialog, close it on escape
+ if (event->keyval == GDK_Escape &&
+ /* not main window */ main_window != pThis)
+ {
+ pThis->close();
+ return TRUE;
+
+ }
+
+ if (event->state & GDK_SHIFT_MASK) {
+ switch (event->keyval) {
+ case GDK_F8:
+ YGUI::ui()->askSaveLogs();
+ return TRUE;
+ default:
+ break;
+ }
+ }
+ if ((event->state & GDK_CONTROL_MASK) && (event->state & GDK_SHIFT_MASK)
+ && (event->state & GDK_MOD1_MASK)) {
+ y2milestone ("Caught YaST2 magic key combination");
+ switch (event->keyval) {
+ case GDK_S:
+ YGUI::ui()->makeScreenShot("");
+ return TRUE;
+ case GDK_M:
+ YGUI::ui()->toggleRecordMacro();
+ return TRUE;
+ case GDK_P:
+ YGUI::ui()->askPlayMacro();
+ return TRUE;
+ case GDK_D:
+ YGUI::ui()->sendEvent (new YDebugEvent());
+ return TRUE;
+ case GDK_X:
+ y2milestone ("Starting xterm");
+ system ("/usr/bin/xterm &");
+ return TRUE;
+ case GDK_T:
+ dumpYastTree (pThis->getChild());
+ return TRUE;
+ case GDK_H:
+ dumpYastHtml (pThis->getChild());
+ return TRUE;
+ case GDK_E: // easter egg
+ static guint explode_timeout = 0;
+ if (explode_timeout == 0)
+ explode_timeout = g_timeout_add (10000,
+ expode_window_timeout_cb, pThis);
+ else {
+ g_source_remove (explode_timeout);
+ explode_timeout = 0;
+ }
+ return TRUE;
+ default:
+ break;
+ }
+ }
+ return FALSE;
+ }
+
+ static gboolean draw_border_cb (GtkWidget *widget, GdkEventExpose *event,
+ YGWindow *pThis)
+ {
+ IMPL
+ // to avoid background from overlapping, we emit the expose to the containee
+ // ourselves
+ gtk_container_propagate_expose (GTK_CONTAINER (widget),
+ gtk_bin_get_child (GTK_BIN (widget)),
+ event);
+
+ GtkAllocation *alloc = &widget->allocation;
+ gtk_draw_shadow (gtk_widget_get_style (widget), widget->window,
+ GTK_STATE_NORMAL, GTK_SHADOW_ETCHED_OUT,
+ alloc->x, alloc->y, alloc->width, alloc->height);
+ return TRUE;
+ }
+
+ static gboolean expode_window_timeout_cb (gpointer data)
+ {
+ YGWindow *pThis = (YGWindow *) data;
+ GtkWindow *window = GTK_WINDOW (pThis->m_widget);
+ srand (time (NULL));
+ gint x, y;
+ gtk_window_get_position (window, &x, &y);
+ #if 0
+ // OVAL MOVE
+ for (int i = 180; i < 360+180; i++) {
+ gtk_window_move (window, x+(int)(sin((i*G_PI)/180)*50),
+ y+(int)(cos((i*G_PI)/180)*50)+50);
+ while (gtk_events_pending())
+ gtk_main_iteration();
+ usleep (25);
+ }
+ #else
+ // EXPLOSION
+ for (int i = 0; i < 40; i++) {
+ gtk_window_move (window, x+(int)((((float)(rand())/RAND_MAX)*40)-20),
+ y+(int)((((float)(rand())/RAND_MAX)*40)-20));
+ while (gtk_events_pending())
+ gtk_main_iteration();
+ usleep (200);
+ }
+ #endif
+ gtk_window_move (window, x, y);
+ return TRUE;
+ }
+};
+
+YGDialog::YGDialog (YDialogType dialogType, YDialogColorMode colorMode)
+ : YDialog (dialogType, colorMode),
+ YGWidget (this, NULL, FALSE, GTK_TYPE_HBOX, NULL)
+{
+fprintf(stderr, "ygdialog()\n");
+ setBorder (0);
+fprintf(stderr, "border\n");
+ m_containee = gtk_event_box_new();
+fprintf(stderr, "containee\n");
+ if (dialogType == YMainDialog && main_window)
+{
+fprintf(stderr, "use main window\n");
+ m_window = main_window;
+}
+ else
+{
+fprintf(stderr, "create window\n");
+ m_window = new YGWindow (dialogType == YMainDialog);
+}
+fprintf(stderr, "ygdialog start window: %p\n", m_window);
+ YGWindow::ref (m_window);
+
+ if (colorMode != YDialogNormalColor) {
+ // emulate a warning / info dialog
+ GtkWidget *icon = gtk_image_new_from_stock
+ (colorMode == YDialogWarnColor ? GTK_STOCK_DIALOG_WARNING : GTK_STOCK_DIALOG_INFO,
+ GTK_ICON_SIZE_DIALOG);
+ gtk_misc_set_alignment (GTK_MISC (icon), 0.5, 0);
+ gtk_misc_set_padding (GTK_MISC (icon), 0, 12);
+
+ gtk_box_pack_start (GTK_BOX (getWidget()), icon, FALSE, FALSE, 12);
+ gtk_box_pack_start (GTK_BOX (getWidget()), m_containee, TRUE, TRUE, 0);
+
+ GtkRequisition req;
+ gtk_widget_size_request (icon, &req);
+ }
+ else
+ gtk_box_pack_start (GTK_BOX (getWidget()), m_containee, TRUE, TRUE, 0);
+ gtk_widget_show_all (getWidget());
+
+ // NOTE: we need to add this containter to the window right here, else
+ // weird stuff happens (like if we set a pango font description to a
+ // GtkLabel, size request would output the size without that description
+ // set...)
+ m_window->setChild (this);
+}
+
+YGDialog::~YGDialog()
+{
+ YGWindow::unref (m_window);
+}
+
+void YGDialog::showWindow()
+{
+ IMPL
+ m_window->setChild (this);
+ gtk_widget_show (m_window->getWidget());
+ YGUI::ui()->busyCursor();
+}
+
+void YGDialog::hideWindow()
+{
+ IMPL
+ m_window->setChild (NULL);
+ gtk_widget_hide (m_window->getWidget());
+}
+
+static list <YGDialog *> dialogs_stack;
+
+void YGUI::showDialog (YDialog *_dialog)
+{
+ IMPL
+ YGDialog *dialog = static_cast <YGDialog *> (_dialog);
+ if (dialog->dialogType() == YMainDialog)
+ dialogs_stack.push_back (dialog);
+ dialog->showWindow();
+}
+
+void YGUI::closeDialog (YDialog *_dialog)
+{
+ IMPL
+ YGDialog *dialog = static_cast <YGDialog *> (_dialog);
+ if (dialog->dialogType() == YMainDialog) {
+ dialogs_stack.pop_back();
+ if (!dialogs_stack.empty()) {
+ YGDialog *old_dialog = dialogs_stack.back();
+ old_dialog->showWindow();
+ }
+ else
+ dialog->hideWindow();
+ }
+ else
+ dialog->hideWindow();
+}
+
+YGDialog *YGDialog::currentDialog()
+{
+ YDialog *ydialog = YDialog::currentDialog();
+ if (ydialog)
+ return static_cast <YGDialog *> (ydialog);
+ return NULL;
+}
+
+GtkWindow *YGDialog::currentWindow()
+{
+ YGDialog *ydialog = YGDialog::currentDialog();
+ if (ydialog) {
+fprintf(stderr, "m_window: %p\n", ydialog->m_window);
+ return GTK_WINDOW (ydialog->m_window->getWidget());
+ }
+ return NULL;
+}
+
+void YGDialog::setCloseCallback (YGWindowCloseFn canClose, void *canCloseData)
+{
+ m_window->m_canClose = canClose;
+ m_window->m_canCloseData = canCloseData;
+}
+
+void YGDialog::unsetCloseCallback()
+{
+ m_window->m_canClose = NULL;
+}
+
+void YGDialog::normalCursor()
+{
+ gdk_window_set_cursor (m_window->getWidget()->window, NULL);
+}
+
+void YGDialog::busyCursor()
+{
+ // NOTE: GdkDisplay won't change for new dialogs, so we don't
+ // have to synchronize between them or something.
+ static GdkCursor *cursor = NULL;
+ if (!cursor) {
+ GdkDisplay *display = gtk_widget_get_display (m_window->getWidget());
+ cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
+ }
+ gdk_window_set_cursor (m_window->getWidget()->window, cursor);
+}
+
+YDialog *YGWidgetFactory::createDialog (YDialogType dialogType, YDialogColorMode colorMode)
+{
+ IMPL
+fprintf(stderr, "create dialog\n");
+ return new YGDialog (dialogType, colorMode);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGDialog.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGDialog…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGDialog.h (added)
+++ trunk/gtk/unstable-libyui/src/YGDialog.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,37 @@
+#ifndef YGDIALOG_H
+#define YGDIALOG_H
+
+#include "YGWidget.h"
+#include "YDialog.h"
+
+class YGWindow;
+typedef bool (*YGWindowCloseFn) (void *closure);
+
+class YGDialog : public YDialog, public YGWidget
+{
+ GtkWidget *m_containee;
+ YGWindow *m_window;
+
+public:
+ YGDialog (YDialogType dialogType, YDialogColorMode colorMode);
+ virtual ~YGDialog();
+ void showWindow();
+ void hideWindow();
+
+ void setCloseCallback (YGWindowCloseFn closeCallback, void *closeData);
+ void unsetCloseCallback();
+
+ void normalCursor();
+ void busyCursor();
+
+ // convenience function to be used rather than currentDialog()
+ static YGDialog *currentDialog();
+ static GtkWindow *currentWindow();
+
+ YGWIDGET_IMPL_COMMON
+ YGWIDGET_IMPL_CHILD_ADDED (m_containee)
+ YGWIDGET_IMPL_CHILD_REMOVED (m_containee)
+};
+
+#endif // YGDIALOG_H
+
Added: trunk/gtk/unstable-libyui/src/YGDumbTab.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGDumbTa…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGDumbTab.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGDumbTab.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,163 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YGWidget.h"
+#include "YGUtils.h"
+#include "YDumbTab.h"
+
+#include "ygtkratiobox.h"
+
+class YGDumbTab : public YDumbTab, public YGWidget
+{
+ GtkWidget *m_containee;
+ GtkWidget *m_last_tab;
+
+public:
+ YGDumbTab (YWidget *parent)
+ : YDumbTab (parent),
+ YGWidget (this, parent, true, GTK_TYPE_NOTEBOOK, NULL)
+ {
+ IMPL
+ m_containee = gtk_event_box_new();
+ gtk_widget_show (m_containee);
+ g_object_ref (G_OBJECT (m_containee));
+ gtk_object_sink (GTK_OBJECT (m_containee));
+
+ m_last_tab = 0;
+ // GTK+ keeps the notebook size set to the biggset page. We can't
+ // do this since this is dynamic, but at least don't let the notebook
+ // reduce its size.
+ ygtk_adj_size_set_only_expand (YGTK_ADJ_SIZE (m_adj_size), TRUE);
+
+ g_signal_connect (G_OBJECT (getWidget()), "switch-page",
+ G_CALLBACK (changed_tab_cb), this);
+ }
+
+ ~YGDumbTab()
+ {
+ IMPL
+ gtk_widget_destroy (m_containee);
+ g_object_unref (G_OBJECT (m_containee));
+ }
+
+ virtual void addItem (YItem *item)
+ {
+ GtkWidget *tab_label, *image = 0, *label;
+
+ string str = YGUtils::mapKBAccel (item->label());
+ label = gtk_label_new (str.c_str());
+ gtk_widget_show (label);
+
+ if (item->hasIconName()) {
+ GdkPixbuf *pixbuf = YGUtils::loadPixbuf (item->iconName());
+ if (pixbuf)
+ image = gtk_image_new_from_pixbuf (pixbuf);
+ }
+
+ if (image) {
+ tab_label = gtk_hbox_new (FALSE, 6);
+ gtk_box_pack_start (GTK_BOX (tab_label), image, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (tab_label), label, TRUE, TRUE, 0);
+ }
+ else
+ tab_label = label;
+ gtk_widget_show_all (tab_label);
+
+ GtkNotebook *notebook = GTK_NOTEBOOK (getWidget());
+ g_signal_handlers_block_by_func (notebook, (gpointer) changed_tab_cb, this);
+
+ GtkWidget *empty = gtk_event_box_new();
+
+ g_object_set_data (G_OBJECT (empty), "yitem", item);
+ gtk_widget_show (empty);
+
+ gtk_notebook_append_page (notebook, empty, tab_label);
+
+ if (!m_last_tab)
+ change_tab (0);
+
+ g_signal_handlers_unblock_by_func (notebook, (gpointer) changed_tab_cb, this);
+ }
+
+ virtual void deleteAllItems()
+ {
+ GList *children = gtk_container_get_children (GTK_CONTAINER (getWidget()));
+ for (GList *i = children; i; i = i->next) {
+ GtkWidget *child = (GtkWidget *) i->data;
+ gtk_container_remove (GTK_CONTAINER (getWidget()), child);
+ }
+ g_list_free (children);
+ }
+
+ // to re-use the same widget in all tabs (m_fixed), we will remove and
+ // add to the tabs' child as tabs are changed
+ void change_tab (int tab_nb)
+ {
+ if (m_last_tab)
+ gtk_container_remove (GTK_CONTAINER (m_last_tab), m_containee);
+
+ GtkNotebook *notebook = GTK_NOTEBOOK (getWidget());
+ int nb = gtk_notebook_get_current_page (notebook);
+ GtkWidget *tab = gtk_notebook_get_nth_page (notebook, nb);
+
+ gtk_container_add (GTK_CONTAINER (tab), m_containee);
+ m_last_tab = tab;
+ }
+
+ virtual YItem *selectedItem()
+ {
+ IMPL
+ GtkNotebook *notebook = GTK_NOTEBOOK (getWidget());
+ int nb = gtk_notebook_get_current_page (notebook);
+ GtkWidget *child = gtk_notebook_get_nth_page (notebook, nb);
+ return (YItem *) g_object_get_data (G_OBJECT (child), "yitem");
+ }
+
+ virtual void selectItem (YItem *item, bool selected)
+ {
+ IMPL
+ if (selected) {
+ GList *children = gtk_container_get_children (GTK_CONTAINER (getWidget()));
+ int nb = 0;
+ for (GList *i = children; i; i = i->next) {
+ GtkWidget *child = (GtkWidget *) i->data;
+ if (g_object_get_data (G_OBJECT (child), "yitem") == item) {
+ change_tab (nb);
+ g_signal_handlers_block_by_func (getWidget(),
+ (gpointer) changed_tab_cb, this);
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (getWidget()), nb);
+ g_signal_handlers_unblock_by_func (getWidget(),
+ (gpointer) changed_tab_cb, this);
+ break;
+ }
+ nb++;
+ }
+ g_list_free (children);
+ }
+ }
+
+ static void changed_tab_cb (GtkNotebook *notebook, GtkNotebookPage *page,
+ gint tab_nb, YGDumbTab *pThis)
+ {
+ GtkWidget *child = gtk_notebook_get_nth_page (notebook, tab_nb);
+ YItem *item = (YItem *) g_object_get_data (G_OBJECT (child), "yitem");
+
+ YGUI::ui()->sendEvent (new YMenuEvent (item));
+ pThis->change_tab (tab_nb);
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGWIDGET_IMPL_CHILD_ADDED (m_containee)
+ YGWIDGET_IMPL_CHILD_REMOVED (m_containee)
+};
+
+YDumbTab *YGOptionalWidgetFactory::createDumbTab (YWidget *parent)
+{
+ IMPL
+ return new YGDumbTab (parent);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGFrame.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGFrame.…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGFrame.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGFrame.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,160 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include "YGUI.h"
+#include "YGWidget.h"
+#include "YGUtils.h"
+
+// Instead of traditional looking frames, we use Gnome convention for the
+// frame's look. That is: don't draw a frame, use bold header and pad the child.
+#define CHILD_INDENTATION 15
+
+class YGBaseFrame : public YGWidget
+{
+protected:
+// a GtkAlignment to set some indentation on the child
+GtkWidget *m_containee;
+
+public:
+ YGBaseFrame (YWidget *ywidget, YWidget *parent)
+ : YGWidget (ywidget, parent, true, GTK_TYPE_FRAME,
+ "shadow-type", GTK_SHADOW_NONE, NULL)
+ {
+ IMPL
+ m_containee = gtk_alignment_new (0, 0, 1, 1);
+ gtk_alignment_set_padding (GTK_ALIGNMENT (m_containee), 0, 0, 15, 0);
+ gtk_widget_show (m_containee);
+ gtk_container_add (GTK_CONTAINER (getWidget()), m_containee);
+ }
+ virtual ~YGBaseFrame() {}
+};
+
+#include "YFrame.h"
+
+class YGFrame : public YFrame, public YGBaseFrame
+{
+public:
+ YGFrame (YWidget *parent, const string &label)
+ : YFrame (parent, label),
+ YGBaseFrame (this, parent)
+ {
+ GtkWidget *label_widget = gtk_label_new ("");
+ YGUtils::setWidgetFont (GTK_WIDGET (label_widget), PANGO_WEIGHT_BOLD,
+ PANGO_SCALE_MEDIUM);
+ gtk_widget_show (label_widget);
+ gtk_frame_set_label_widget (GTK_FRAME (getWidget()), label_widget);
+ setLabel (label);
+ }
+
+ virtual ~YGFrame() {}
+
+ // YFrame
+ virtual void setLabel (const string &_str)
+ {
+ IMPL
+ /* Get rid of mnemonics; makes no sense here. */
+ size_t length = _str.length();
+ string str;
+ str.reserve (length);
+ for (size_t i = 0; i < length; i++)
+ if (_str[i] != '&')
+ str += _str[i];
+
+ GtkWidget *label = gtk_frame_get_label_widget (GTK_FRAME (getWidget()));
+ gtk_label_set_text (GTK_LABEL (label), str.c_str());
+
+ YFrame::setLabel (_str);
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGWIDGET_IMPL_CHILD_ADDED (m_containee)
+ YGWIDGET_IMPL_CHILD_REMOVED (getWidget())
+};
+
+
+YFrame *YGWidgetFactory::createFrame (YWidget *parent, const string &label)
+{
+ IMPL
+ return new YGFrame (parent, label);
+}
+
+#include "YCheckBoxFrame.h"
+
+class YGCheckBoxFrame : public YCheckBoxFrame, public YGBaseFrame
+{
+public:
+ YGCheckBoxFrame (YWidget *parent, const string &label, bool checked)
+ : YCheckBoxFrame (parent, label, checked),
+ YGBaseFrame (this, parent)
+ {
+ IMPL
+ GtkWidget *button = gtk_check_button_new_with_mnemonic("");
+ YGUtils::setWidgetFont (GTK_WIDGET (button), PANGO_WEIGHT_BOLD,
+ PANGO_SCALE_MEDIUM);
+ gtk_widget_show_all (button);
+ gtk_frame_set_label_widget (GTK_FRAME (getWidget()), button);
+
+ setLabel (label);
+ setValue (checked);
+ g_signal_connect (G_OBJECT (button), "toggled",
+ G_CALLBACK (toggled_cb), this);
+ }
+ virtual ~YGCheckBoxFrame() {}
+
+ // YCheckBoxFrame
+ virtual void setLabel (const string &_str)
+ {
+ GtkWidget *button = gtk_frame_get_label_widget (GTK_FRAME (getWidget()));
+ GtkLabel *label = GTK_LABEL (GTK_BIN (button)->child);
+
+ string str (YGUtils::mapKBAccel (_str));
+ gtk_label_set_text_with_mnemonic (label, str.c_str());
+ YCheckBoxFrame::setLabel (_str);
+ }
+
+ bool value()
+ {
+ GtkWidget *button = gtk_frame_get_label_widget (GTK_FRAME (getWidget()));
+ return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
+ }
+
+ void setValue (bool value)
+ {
+ GtkWidget *button = gtk_frame_get_label_widget (GTK_FRAME (getWidget()));
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), value);
+ }
+
+ virtual void setEnabling (bool enabled)
+ {
+ GtkWidget *frame = getWidget();
+ if (enabled) {
+ gtk_widget_set_sensitive (frame, TRUE);
+ handleChildrenEnablement (value());
+ }
+ else {
+ gtk_widget_set_sensitive (frame, FALSE);
+ YWidget::setChildrenEnabled (false);
+ }
+ }
+
+ YGWIDGET_IMPL_CHILD_ADDED (m_containee)
+ YGWIDGET_IMPL_CHILD_REMOVED (getWidget())
+
+private:
+ static void toggled_cb (GtkWidget *widget, YGCheckBoxFrame *pThis)
+ {
+ pThis->setEnabling (true);
+ if (pThis->notify())
+ YGUI::ui()->sendEvent (new YWidgetEvent (pThis, YEvent::ValueChanged));
+ }
+};
+
+YCheckBoxFrame *YGWidgetFactory::createCheckBoxFrame (YWidget *parent, const string &label,
+ bool checked)
+{
+ IMPL
+ return new YGCheckBoxFrame (parent, label, checked);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGImage.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGImage.…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGImage.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGImage.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,39 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include "ygdkmngloader.h"
+#include <config.h>
+#include <ycp/y2log.h>
+#include "YGUI.h"
+#include "YGWidget.h"
+#include "YImage.h"
+#include "ygtkimage.h"
+
+class YGImage : public YImage, public YGWidget
+{
+public:
+ YGImage (YWidget *parent, const string &filename, bool animated)
+ : YImage (parent, filename, animated),
+ YGWidget (this, parent, true, YGTK_TYPE_IMAGE, NULL)
+ {
+ IMPL
+ ygtk_image_set_from_file (YGTK_IMAGE (getWidget()), filename.c_str(), animated);
+ }
+
+ virtual void setAutoScale (bool scale)
+ {
+ YGtkImageAlign align = CENTER_IMAGE_ALIGN;
+ if (scale)
+ align = SCALE_IMAGE_ALIGN;
+ ygtk_image_set_props (YGTK_IMAGE (getWidget()), align, NULL);
+ }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+YImage *YGWidgetFactory::createImage (YWidget *parent, const string &filename, bool animated)
+{
+ return new YGImage (parent, filename, animated);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGInputField.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGInputF…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGInputField.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGInputField.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,68 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YInputField.h"
+#include "YGWidget.h"
+#include "YGUtils.h"
+#include "ygtkfieldentry.h"
+
+class YGInputField : public YInputField, public YGLabeledWidget
+{
+public:
+ YGInputField (YWidget *parent, const string &label, bool passwordMode)
+ : YInputField (parent, label, passwordMode),
+ YGLabeledWidget (this, parent, label, YD_HORIZ, true,
+ GTK_TYPE_ENTRY, NULL)
+ {
+ gtk_entry_set_activates_default (GTK_ENTRY (getWidget()), TRUE);
+ if (passwordMode)
+ gtk_entry_set_visibility (GTK_ENTRY (getWidget()), FALSE);
+
+ // Signals to know of any text modification
+ g_signal_connect (G_OBJECT (getWidget()), "changed",
+ G_CALLBACK (text_changed_cb), this);
+ }
+
+ // YTextEntry
+ virtual string value()
+ {
+ return gtk_entry_get_text (GTK_ENTRY (getWidget()));
+ }
+
+ virtual void setValue (const string &text)
+ {
+ /* No need to check for valid chars as that's the responsible of the YCP
+ application programmer. */
+ gtk_entry_set_text (GTK_ENTRY (getWidget()), text.c_str());
+ }
+
+ virtual void setInputMaxLength (int nb)
+ {
+ gtk_entry_set_width_chars (GTK_ENTRY (getWidget()), nb);
+ }
+
+ virtual void setValidChars (const string &validChars)
+ {
+ YGUtils::setFilter (GTK_ENTRY (getWidget()), validChars);
+ YInputField::setValidChars (validChars);
+ }
+
+ static void text_changed_cb (GtkEditable *editable, YGInputField *pThis)
+ {
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN (YInputField)
+};
+
+YInputField *YGWidgetFactory::createInputField (YWidget *parent, const string &label,
+ bool passwordMode)
+{
+ return new YGInputField (parent, label, passwordMode);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGIntField.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGIntFie…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGIntField.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGIntField.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,152 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include "YGUI.h"
+#include "YGUtils.h"
+#include "YGWidget.h"
+
+#define SLIDER_NICESIZE_IN_CHARS 15
+
+class YGSpinBox : public YGLabeledWidget
+{
+ YIntField *m_yfield;
+ GtkWidget *m_spiner, *m_slider;
+
+public:
+ YGSpinBox (YWidget *ywidget, YWidget *parent, const string &label,
+ int minValue, int maxValue, int initialValue, bool show_slider)
+ : YGLabeledWidget (ywidget, parent, label, YD_HORIZ, true,
+ GTK_TYPE_HBOX, NULL)
+ {
+ m_spiner = gtk_spin_button_new_with_range (minValue, maxValue, 1);
+
+ if (show_slider) {
+ m_slider = gtk_hscale_new_with_range (minValue, maxValue, 1);
+ if (maxValue - minValue < 20)
+ // GtkScale by default uses a step of 10 -- use a lower for low values
+ gtk_range_set_increments (GTK_RANGE (m_slider), 1, 2);
+ gtk_scale_set_draw_value (GTK_SCALE (m_slider), TRUE);
+ YGLabeledWidget::setBuddy (m_slider);
+ gtk_widget_set_size_request (m_slider,
+ YGUtils::getCharsWidth (m_slider, SLIDER_NICESIZE_IN_CHARS), -1);
+
+ gtk_box_pack_start (GTK_BOX (getWidget()), m_slider, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (getWidget()), m_spiner, FALSE, FALSE, 5);
+ gtk_widget_show (m_slider);
+ }
+ else {
+ m_slider = NULL;
+ YGLabeledWidget::setBuddy (m_spiner);
+
+ gtk_container_add (GTK_CONTAINER (getWidget()), m_spiner);
+ }
+ gtk_widget_show (m_spiner);
+
+ doSetValue (initialValue);
+ g_signal_connect (G_OBJECT (m_spiner), "value-changed",
+ G_CALLBACK (spiner_changed_cb), this);
+ if (m_slider)
+ g_signal_connect (G_OBJECT (m_slider), "value-changed",
+ G_CALLBACK (slider_changed_cb), this);
+ }
+
+ GtkSpinButton *getSpiner()
+ { return GTK_SPIN_BUTTON (m_spiner); }
+
+ bool useSlider()
+ { return m_slider != NULL; }
+ GtkHScale *getSlider()
+ { return GTK_HSCALE (m_slider); }
+
+ virtual void reportValue (int value) = 0;
+
+ int doGetValue()
+ {
+ return gtk_spin_button_get_value_as_int (getSpiner());
+ }
+
+ void doSetValue (int newValue)
+ {
+ gtk_spin_button_set_value (getSpiner(), newValue);
+ if (useSlider())
+ gtk_range_set_value (GTK_RANGE (getSlider()), newValue);
+ }
+
+ // Events callbacks
+ static void spiner_changed_cb (GtkSpinButton *widget, YGSpinBox *pThis)
+ {
+ int value = gtk_spin_button_get_value_as_int (pThis->getSpiner());
+ pThis->reportValue (value);
+ if (pThis->useSlider())
+ gtk_range_set_value (GTK_RANGE (pThis->getSlider()), value);
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+
+ static void slider_changed_cb (GtkRange *range, YGSpinBox *pThis)
+ {
+ int value = (int) gtk_range_get_value (range);
+ gtk_spin_button_set_value (pThis->getSpiner(), value);
+ pThis->reportValue (value);
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+};
+
+#define YGSPIN_BOX_IMPL_SET_VALUE_CHAIN(ParentClass) \
+ virtual void reportValue (int value) { \
+ ParentClass::setValue (value); \
+ } \
+ virtual int value() { \
+ return doGetValue(); \
+ } \
+ virtual void setValueInternal (int value) { \
+ doSetValue (value); \
+ }
+
+#include "YIntField.h"
+
+class YGIntField : public YIntField, public YGSpinBox
+{
+public:
+ YGIntField (YWidget *parent, const string &label, int minValue, int maxValue,
+ int initialValue)
+ : YIntField (parent, label, minValue, maxValue)
+ , YGSpinBox (this, parent, label, minValue, maxValue, initialValue, false)
+ {}
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN (YIntField)
+ YGSPIN_BOX_IMPL_SET_VALUE_CHAIN (YIntField)
+};
+
+YIntField *YGWidgetFactory::createIntField (YWidget *parent, const string &label,
+ int minValue, int maxValue, int initialValue)
+{
+ return new YGIntField (parent, label, minValue, maxValue, initialValue);
+}
+
+#include "YSlider.h"
+
+class YGSlider : public YSlider, public YGSpinBox
+{
+public:
+ YGSlider (YWidget *parent, const string &label, int minValue, int maxValue,
+ int initialValue)
+ : YSlider (parent, label, minValue, maxValue)
+ , YGSpinBox (this, parent, label, minValue, maxValue, initialValue, true)
+ {}
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN (YSlider)
+ YGSPIN_BOX_IMPL_SET_VALUE_CHAIN (YIntField)
+};
+
+YSlider *YGOptionalWidgetFactory::createSlider (YWidget *parent, const string &label,
+ int minValue, int maxValue, int initialValue)
+{
+ IMPL
+ return new YGSlider (parent, label, minValue, maxValue, initialValue);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGLabel.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGLabel.…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGLabel.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGLabel.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,47 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YGUtils.h"
+#include "YGWidget.h"
+
+#include "YLabel.h"
+
+class YGLabel : public YLabel, public YGWidget
+{
+public:
+ YGLabel (YWidget *parent, const string &text, bool heading, bool outputField)
+ : YLabel (parent, text, heading, outputField),
+ YGWidget (this, parent, true, GTK_TYPE_LABEL, NULL)
+ {
+ IMPL
+ gtk_misc_set_alignment (GTK_MISC (getWidget()), 0.0, 0.5);
+ if (outputField)
+ gtk_label_set_selectable (GTK_LABEL (getWidget()), TRUE);
+ if (heading)
+ YGUtils::setWidgetFont (getWidget(), PANGO_WEIGHT_ULTRABOLD, PANGO_SCALE_XX_LARGE);
+ setLabel (text);
+ }
+
+ virtual void setText (const string &label)
+ {
+ gtk_label_set_label (GTK_LABEL (getWidget()), label.c_str());
+ YLabel::setText (label);
+
+ // Some YCP progs have no labeled labels cluttering the layout
+ label.empty() ? gtk_widget_hide (getWidget()) : gtk_widget_show (getWidget());
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGWIDGET_IMPL_USE_BOLD (YLabel)
+};
+
+YLabel *YGWidgetFactory::createLabel (YWidget *parent, const string &text, bool heading,
+ bool outputField)
+{
+ return new YGLabel (parent, text, heading, outputField);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGLayout.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGLayout…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGLayout.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGLayout.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,361 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include "YGUI.h"
+#include "YGWidget.h"
+#include "YGUtils.h"
+
+#include "YLayoutBox.h"
+#include "ygtkratiobox.h"
+#include "YSpacing.h"
+
+// GtkBox-like container (actually, more like our YGtkRatioBox)
+class YGLayoutBox : public YLayoutBox, public YGWidget
+{
+ // This group is meant to set all YGLabeledWidget with horizontal label
+ // to share the same width (if they belong to the same YSplit), so they
+ // look right
+ GtkSizeGroup *m_labels_group;
+
+public:
+ YGLayoutBox (YWidget *parent, YUIDimension dim)
+ : YLayoutBox (parent, dim),
+ YGWidget (this, parent, true,
+ dim == YD_HORIZ ? YGTK_TYPE_RATIO_HBOX : YGTK_TYPE_RATIO_VBOX, NULL)
+ {
+ setBorder (0);
+ m_labels_group = NULL;
+ }
+
+ ~YGLayoutBox()
+ {
+ if (m_labels_group)
+ g_object_unref (G_OBJECT (m_labels_group));
+ }
+
+ virtual void addChild (YWidget *ychild)
+ {
+ IMPL
+ YLayoutBox::addChild (ychild);
+ YGWidget *ygchild = YGWidget::get (ychild);
+
+ gtk_container_add (GTK_CONTAINER (getWidget()), ygchild->getLayout());
+ sync_stretchable (ychild);
+
+ // set labels of YGLabeledWidgets to the same width
+ // we have to do quite some work due to over-clutter on YCP progs
+ while (ychild) {
+ if (ychild->hasChildren()) { // container
+ // try to see if there is a YGLabeledWidget at start
+ // (and ignore YSpacings)
+ YWidget *container = ychild;
+ for (YWidgetListConstIterator it = container->childrenBegin();
+ it != container->childrenEnd(); it++) {
+ ychild = *it;
+ if (!dynamic_cast <YSpacing *> (ychild))
+ break;
+ }
+ }
+ else {
+ ygchild = YGWidget::get (ychild);
+ YGLabeledWidget *labeled_child = dynamic_cast <YGLabeledWidget *> (ygchild);
+ if (labeled_child && labeled_child->orientation() == YD_HORIZ) {
+ if (!m_labels_group)
+ m_labels_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+ gtk_size_group_add_widget (m_labels_group,
+ labeled_child->getLabelWidget());
+ }
+ break;
+ }
+ }
+ }
+ YGWIDGET_IMPL_CHILD_REMOVED (getWidget())
+
+ virtual void sync_stretchable (YWidget *ychild)
+ {
+ IMPL
+ YGtkRatioBox *box = YGTK_RATIO_BOX (getWidget());
+ YGWidget *child = YGWidget::get (ychild);
+
+ YUIDimension dim = primary();
+ bool horiz_fill = ychild->stretchable (YD_HORIZ) || ychild->hasWeight (YD_HORIZ);
+ bool vert_fill = ychild->stretchable (YD_VERT) || ychild->hasWeight (YD_VERT);
+
+ ygtk_ratio_box_set_child_packing (box, child->getLayout(), ychild->weight (dim),
+ horiz_fill, vert_fill, 0);
+ ygtk_ratio_box_set_child_expand (box, child->getLayout(),
+ ychild->stretchable (dim), isLayoutStretch (ychild, dim));
+ YGWidget::sync_stretchable();
+ }
+
+ virtual void moveChild (YWidget *, int, int) {} // ignore
+};
+
+YLayoutBox *YGWidgetFactory::createLayoutBox (YWidget *parent, YUIDimension dimension)
+{
+ IMPL
+ return new YGLayoutBox (parent, dimension);
+}
+
+#include "YAlignment.h"
+
+class YGAlignment : public YAlignment, public YGWidget
+{
+ GdkPixbuf *m_background_pixbuf;
+
+public:
+ YGAlignment (YWidget *parent, YAlignmentType halign, YAlignmentType valign)
+ : YAlignment (parent, halign, valign),
+ YGWidget (this, parent, true, GTK_TYPE_ALIGNMENT, NULL)
+ {
+ setBorder (0);
+ m_background_pixbuf = 0;
+ }
+
+ virtual ~YGAlignment()
+ {
+ if (m_background_pixbuf)
+ g_object_unref (G_OBJECT (m_background_pixbuf));
+ }
+
+ virtual void childAdded (YWidget *ychild)
+ {
+ YGWidget *child = YGWidget::get (ychild);
+ gtk_container_add (GTK_CONTAINER (getWidget()), child->getLayout());
+
+ /* The padding is used for stuff like making YCP progs nicer for
+ yast-qt wizard, so it hurts us -- it's disabled. */
+ //child->setPadding (topMargin(), bottomMargin(),
+ // leftMargin(), rightMargin());
+ setMinSize (minWidth(), minHeight());
+
+ sync_stretchable (ychild); // alignment will be set here
+ }
+ YGWIDGET_IMPL_CHILD_REMOVED (m_widget)
+
+ virtual void sync_stretchable (YWidget *child)
+ {
+ IMPL
+ setAlignment (alignment (YD_HORIZ), alignment (YD_VERT));
+ YGWidget::sync_stretchable (m_ywidget);
+ }
+
+ void setAlignment (YAlignmentType halign, YAlignmentType valign)
+ {
+ // special case (which YAlignment.cc also uses); let stretchable
+ // children stretch if opt.stretch is set (exploitable by the wizard)
+ GValue hstretch, vstretch;
+ hstretch = YGUtils::floatToGValue (0);
+ if (stretchable (YD_HORIZ))
+ hstretch = YGUtils::floatToGValue (1);
+ vstretch = YGUtils::floatToGValue (0);
+ if (stretchable (YD_VERT))
+ vstretch = YGUtils::floatToGValue (1);
+
+ if (halign != YAlignUnchanged) {
+ GValue xalign = YGUtils::floatToGValue (yToGtkAlign (halign));
+ g_object_set_property (G_OBJECT (getWidget()), "xalign", &xalign);
+ g_object_set_property (G_OBJECT (getWidget()), "xscale", &hstretch);
+ }
+ if (valign != YAlignUnchanged) {
+ GValue yalign = YGUtils::floatToGValue (yToGtkAlign (valign));
+ g_object_set_property (G_OBJECT (getWidget()), "yalign", &yalign);
+ g_object_set_property (G_OBJECT (getWidget()), "yscale", &vstretch);
+ }
+ }
+
+ void setPadding (int top, int bottom, int left, int right)
+ {
+ gtk_alignment_set_padding (GTK_ALIGNMENT (getWidget()),
+ top, bottom, left, right);
+ }
+
+ virtual void setBackgroundPixmap (string filename)
+ {
+ // YAlignment will prepend a path to the image
+ YAlignment::setBackgroundPixmap (filename);
+ filename = YAlignment::backgroundPixmap();
+
+ if (m_background_pixbuf)
+ g_object_unref (G_OBJECT (m_background_pixbuf));
+
+ if (filename.empty()) {
+ m_background_pixbuf = 0;
+ g_signal_handlers_disconnect_by_func (G_OBJECT (getWidget()),
+ (void*) expose_event_cb, this);
+ }
+ else {
+ GError *error = 0;
+ m_background_pixbuf = gdk_pixbuf_new_from_file (filename.c_str(), &error);
+ if (!m_background_pixbuf)
+ g_warning ("Setting YAlignment background - couldn't load image '%s' - %s",
+ filename.c_str(), error->message);
+ else
+ g_signal_connect (G_OBJECT (getWidget()), "expose-event",
+ G_CALLBACK (expose_event_cb), this);
+ }
+ }
+
+ static gboolean expose_event_cb (GtkWidget *widget, GdkEventExpose *event,
+ YGAlignment *pThis)
+ {
+ GtkAllocation *alloc = &widget->allocation;
+ cairo_t *cr = gdk_cairo_create (widget->window);
+
+ gdk_cairo_set_source_pixbuf (cr, pThis->m_background_pixbuf, 0, 0);
+ cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT);
+
+ cairo_rectangle (cr, alloc->x, alloc->y, alloc->width, alloc->height);
+ cairo_fill (cr);
+
+ cairo_destroy (cr);
+
+ gtk_container_propagate_expose (GTK_CONTAINER (widget),
+ GTK_BIN (widget)->child, event);
+ return TRUE;
+ }
+
+ virtual void moveChild (YWidget *, int, int) {}; // ignore
+
+ virtual string getDebugLabel() const
+ {
+ struct inner {
+ static const char *alignLabel (YAlignmentType align)
+ {
+ switch (align) {
+ case YAlignUnchanged:
+ return "unchanged";
+ case YAlignBegin:
+ return "begin";
+ case YAlignEnd:
+ return "end";
+ case YAlignCenter:
+ return "center";
+ }
+ return ""; /*not run*/
+ }
+ };
+
+ string str;
+ str += inner::alignLabel (alignment (YD_HORIZ));
+ str += " x ";
+ str += inner::alignLabel (alignment (YD_VERT));
+ return str;
+ }
+
+private:
+ // helper -- converts YWidget YAlignmentType to Gtk's align float
+ static float yToGtkAlign (YAlignmentType align)
+ {
+ switch (align) {
+ case YAlignBegin: return 0.0;
+ default:
+ case YAlignCenter: return 0.5;
+ case YAlignEnd: return 1.0;
+ }
+ }
+};
+
+YAlignment *YGWidgetFactory::createAlignment (YWidget *parent, YAlignmentType halign,
+ YAlignmentType valign)
+{
+ IMPL
+ return new YGAlignment (parent, halign, valign);
+}
+
+#include "YEmpty.h"
+
+// Just an empty space.
+class YGEmpty : public YEmpty, public YGWidget
+{
+public:
+ YGEmpty (YWidget *parent)
+ : YEmpty (parent),
+ YGWidget (this, parent, true, GTK_TYPE_EVENT_BOX, NULL)
+ {
+ setBorder (0);
+ }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+YEmpty *YGWidgetFactory::createEmpty (YWidget *parent)
+{
+ IMPL
+ return new YGEmpty (parent);
+}
+
+#include "YSpacing.h"
+
+// Empty space, with a fixed size.
+class YGSpacing : public YSpacing, public YGWidget
+{
+public:
+ YGSpacing (YWidget *parent, YUIDimension dim, bool stretchable, YLayoutSize_t size)
+ : YSpacing (parent, dim, stretchable, size),
+ YGWidget (this, parent, true, GTK_TYPE_EVENT_BOX, NULL)
+ {
+ setBorder (0);
+ int width = YSpacing::size (YD_HORIZ), height = YSpacing::size (YD_VERT);
+ gtk_widget_set_size_request (getWidget(), width, height);
+ }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+YSpacing *YGWidgetFactory::createSpacing (YWidget *parent, YUIDimension dim,
+ bool stretchable, YLayoutSize_t size)
+{
+ return new YGSpacing (parent, dim, stretchable, size);
+}
+
+#include "YReplacePoint.h"
+
+// an empty space that will get replaced
+class YGReplacePoint : public YReplacePoint, public YGWidget
+{
+public:
+ YGReplacePoint (YWidget *parent)
+ : YReplacePoint (parent),
+ YGWidget (this, parent, true, GTK_TYPE_EVENT_BOX, NULL)
+ {
+ setBorder (0);
+ }
+
+ YGWIDGET_IMPL_CHILD_ADDED (getWidget())
+ YGWIDGET_IMPL_CHILD_REMOVED (getWidget())
+};
+
+YReplacePoint *YGWidgetFactory::createReplacePoint (YWidget *parent)
+{
+ IMPL
+ return new YGReplacePoint (parent);
+}
+
+#include "YSquash.h"
+
+// A-like YAlignment, YSquash messes around child settings.
+// In this case, it can remove the stretchable attribute.
+class YGSquash : public YSquash, public YGWidget
+{
+public:
+ YGSquash (YWidget *parent, bool hsquash, bool vsquash)
+ : YSquash (parent, hsquash, vsquash),
+ YGWidget (this, parent, true, GTK_TYPE_EVENT_BOX, NULL)
+ {
+ setBorder (0);
+ }
+
+ YGWIDGET_IMPL_CHILD_ADDED (getWidget())
+ YGWIDGET_IMPL_CHILD_REMOVED (getWidget())
+};
+
+YSquash *YGWidgetFactory::createSquash (YWidget *parent, bool hsquash, bool vsquash)
+{
+ IMPL
+ return new YGSquash (parent, hsquash, vsquash);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGMenuButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGMenuBu…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGMenuButton.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGMenuButton.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,78 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YGUtils.h"
+#include "YGWidget.h"
+#include "YMenuButton.h"
+#include "ygtkmenubutton.h"
+
+class YGMenuButton : public YMenuButton, public YGWidget
+{
+public:
+ YGMenuButton (YWidget *parent, const string &label)
+ : YMenuButton (parent, label),
+ YGWidget (this, parent, true, YGTK_TYPE_MENU_BUTTON, NULL)
+ {
+ IMPL
+ string str = YGUtils::mapKBAccel (label.c_str());
+ ygtk_menu_button_set_label (YGTK_MENU_BUTTON (getWidget()), str.c_str());
+ }
+
+ // YMenuButton
+ virtual void rebuildMenuTree()
+ {
+ GtkWidget *menu = doCreateMenu (itemsBegin(), itemsEnd());
+ gtk_widget_show_all (menu);
+ ygtk_menu_button_set_popup (YGTK_MENU_BUTTON (getWidget()), menu);
+ }
+
+ static GtkWidget* doCreateMenu (YItemIterator begin, YItemIterator end)
+ {
+ GtkWidget *menu = gtk_menu_new();
+ for (YItemIterator it = begin; it != end; it++) {
+ GtkWidget *entry, *image = 0;
+ string str = YGUtils::mapKBAccel ((*it)->label());
+
+ if ((*it)->hasIconName()) {
+ GdkPixbuf *pixbuf = YGUtils::loadPixbuf ((*it)->iconName());
+ if (pixbuf)
+ image = gtk_image_new_from_pixbuf (pixbuf);
+ }
+
+ if (image) {
+ entry = gtk_image_menu_item_new_with_mnemonic (str.c_str());
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (entry), image);
+ }
+ else
+ entry = gtk_menu_item_new_with_mnemonic (str.c_str());
+
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), entry);
+
+ if ((*it)->hasChildren())
+ gtk_menu_item_set_submenu (GTK_MENU_ITEM (entry),
+ doCreateMenu ((*it)->childrenBegin(), (*it)->childrenEnd()));
+ else
+ g_signal_connect (G_OBJECT (entry), "activate",
+ G_CALLBACK (selected_item_cb), *it);
+ }
+
+ return menu;
+ }
+
+ static void selected_item_cb (GtkMenuItem *menuitem, YItem *item)
+ {
+ YGUI::ui()->sendEvent (new YMenuEvent (item));
+ }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+YMenuButton *YGWidgetFactory::createMenuButton (YWidget *parent, const string &label)
+{
+ return new YGMenuButton (parent, label);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGMultiLineEdit.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGMultiL…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGMultiLineEdit.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGMultiLineEdit.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,376 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include <string>
+#include "YGUtils.h"
+#include "YGWidget.h"
+
+class YGTextView : public YGScrolledWidget
+{
+int maxChars;
+
+public:
+ YGTextView (YWidget *ywidget, YWidget *parent, const string &label, bool editable)
+ : YGScrolledWidget (ywidget, parent, label, YD_VERT, true,
+ GTK_TYPE_TEXT_VIEW, "wrap-mode", GTK_WRAP_WORD, NULL)
+ {
+ IMPL
+ setMinSizeInChars (20, 10);
+ setPolicy (GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
+
+ maxChars = -1;
+ if (!editable)
+ {
+ gtk_text_view_set_editable (GTK_TEXT_VIEW (getWidget()), FALSE);
+ gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (getWidget()), FALSE);
+ }
+
+ g_signal_connect (G_OBJECT (getBuffer()), "changed",
+ G_CALLBACK (text_changed_cb), this);
+ }
+
+ GtkTextBuffer* getBuffer()
+ { return gtk_text_view_get_buffer (GTK_TEXT_VIEW (getWidget())); }
+
+ int getCharsNb()
+ {
+ IMPL
+ return gtk_text_buffer_get_char_count (getBuffer());
+ }
+
+ void setCharsNb (int max_chars)
+ {
+ IMPL
+ maxChars = max_chars;
+ if (maxChars != -1 && getCharsNb() > maxChars)
+ truncateText (maxChars);
+ }
+
+ void truncateText(int pos)
+ {
+ IMPL
+ GtkTextIter start_it, end_it;
+ gtk_text_buffer_get_iter_at_offset (getBuffer(), &start_it, pos);
+ gtk_text_buffer_get_end_iter (getBuffer(), &end_it);
+
+ g_signal_handlers_block_by_func (getWidget(), (gpointer) text_changed_cb, this);
+ gtk_text_buffer_delete (getBuffer(), &start_it, &end_it);
+ g_signal_handlers_unblock_by_func (getWidget(), (gpointer) text_changed_cb, this);
+ }
+
+ void setText (const string &text)
+ {
+ IMPL
+ gtk_text_buffer_set_text (getBuffer(), text.c_str(), -1);
+ }
+
+ string getText()
+ {
+ IMPL
+ GtkTextIter start_it, end_it;
+ gtk_text_buffer_get_bounds (getBuffer(), &start_it, &end_it);
+
+ gchar* text = gtk_text_buffer_get_text (getBuffer(), &start_it, &end_it, FALSE);
+ string str (text);
+ g_free (text);
+ return str;
+ }
+
+ void scrollToBottom()
+ {
+ YGUtils::scrollTextViewDown (GTK_TEXT_VIEW (getWidget()));
+ }
+
+ // Event callbacks
+ static void text_changed_cb (GtkTextBuffer *buffer, YGTextView *pThis)
+ {
+ if (pThis->maxChars != -1 && pThis->getCharsNb() > pThis->maxChars) {
+ pThis->truncateText (pThis->maxChars);
+ gdk_beep();
+ }
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+};
+
+#include "YMultiLineEdit.h"
+
+class YGMultiLineEdit : public YMultiLineEdit, public YGTextView
+{
+public:
+ YGMultiLineEdit (YWidget *parent, const string &label)
+ : YMultiLineEdit (parent, label)
+ , YGTextView (this, parent, label, true)
+ {}
+
+ // YMultiLineEdit
+ virtual void setValue (const string &text)
+ { YGTextView::setText (text); }
+
+ virtual string value()
+ { return YGTextView::getText(); }
+
+ virtual void setInputMaxLength (int nb)
+ {
+ YGTextView::setCharsNb (nb);
+ YMultiLineEdit::setInputMaxLength (nb);
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN(YMultiLineEdit)
+};
+
+YMultiLineEdit *YGWidgetFactory::createMultiLineEdit (YWidget *parent, const string &label)
+{
+ return new YGMultiLineEdit (parent, label);
+}
+
+#include "YLogView.h"
+
+class YGLogView : public YLogView, public YGTextView
+{
+public:
+ YGLogView (YWidget *parent, const string &label, int visibleLines, int maxLines)
+ : YLogView (parent, label, visibleLines, maxLines)
+ , YGTextView (this, parent, label, false)
+ {}
+
+ // YLogView
+ virtual void displayLogText (const string &text)
+ {
+ setText (text);
+ scrollToBottom();
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN(YLogView)
+};
+
+YLogView *YGWidgetFactory::createLogView (YWidget *parent, const string &label,
+ int visibleLines, int maxLines)
+{
+ return new YGLogView (parent, label, visibleLines, maxLines);
+}
+
+#include "YRichText.h"
+
+class YGPlainText : public YRichText, public YGTextView
+{
+bool m_autoScrollDown;
+
+public:
+ YGPlainText(YWidget *parent, const string &text)
+ : YRichText (parent, text)
+ , YGTextView (this, parent, string(), false)
+ {
+ if (shrinkable())
+ setMinSizeInChars (0, 0);
+ }
+
+ // YRichText
+ virtual void setValue (const string &text)
+ {
+ IMPL
+ YGTextView::setText (text);
+ if (autoScrollDown())
+ scrollToBottom();
+ YRichText::setValue (text);
+ }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+#include "ygtkhtmlwrap.h"
+
+class YGRichText : public YRichText, public YGScrolledWidget
+{
+public:
+ YGRichText (YWidget *parent, const string &text)
+ : YRichText (parent, text)
+ , YGScrolledWidget (this, parent, true, ygtk_html_wrap_get_type(), NULL)
+ {
+ IMPL
+ if (!shrinkable())
+ setMinSizeInChars (20, 8);
+
+ ygtk_html_wrap_init (getWidget());
+ ygtk_html_wrap_connect_link_clicked (getWidget(), G_CALLBACK (link_clicked_cb), this);
+ setValue (text);
+ }
+
+ // YRichText
+ virtual void setValue (const string &_text)
+ {
+ IMPL
+ string text (_text);
+ YGUtils::replace (text, "&product;", 9, YUI::ui()->productName().c_str());
+
+ ygtk_html_wrap_set_text (getWidget(), text.c_str());
+ if (autoScrollDown())
+ ygtk_html_wrap_scroll (getWidget(), FALSE);
+ YRichText::setValue (_text);
+ }
+
+ static void link_clicked_cb (GtkWidget *widget, const char *url, YGRichText *pThis)
+ {
+ YGUI::ui()->sendEvent (new YMenuEvent (YCPString (url)));
+ }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+YRichText *YGWidgetFactory::createRichText (YWidget *parent, const string &text,
+ bool plainTextMode)
+{
+ if (plainTextMode)
+ return new YGPlainText (parent, text);
+ else
+ return new YGRichText (parent, text);
+}
+
+#if 0
+/* Wrote this code, in order to allow the user to print a package license.
+ But they are written in HTML, so that was too much for me. Anyway, might
+ be needed in the future -- it prints text okay. Maybe we could adapt it to
+ YGtkRichText, so that it just iterates through its tags (its a GtkTextView
+ afterall), rather than doing html parsing. ugh. Maybe we could somehow re-use
+ GtkTextView GtkLayouts...*/
+
+typedef struct {
+ gchar *title, *text;
+ PangoLayout *title_layout, *text_layout;
+ gint cur_line;
+} PrintData;
+
+
+static void free_print_data_cb (gpointer _data, GClosure *closure)
+{
+ PrintData *data = _data;
+fprintf (stderr, "freeing print data '%s'\n", data->title);
+ g_free (data->title);
+ g_free (data->text);
+ if (data->title_layout)
+ g_object_unref (G_OBJECT (data->title_layout));
+ if (data->text_layout)
+ g_object_unref (G_OBJECT (data->text_layout));
+ g_free (data);
+}
+
+static void print_begin_cb (GtkPrintOperation *print, GtkPrintContext *context, PrintData *data)
+{
+ int width = gtk_print_context_get_width (context);
+ int height = gtk_print_context_get_height (context);
+
+ PangoFontDescription *desc;
+ desc = pango_font_description_from_string ("Sans 12");
+
+ data->text_layout = gtk_print_context_create_pango_layout (context);
+ pango_layout_set_font_description (data->text_layout, desc);
+ pango_layout_set_width (data->text_layout, width * PANGO_SCALE);
+ pango_layout_set_text (data->text_layout, data->text, -1);
+
+ data->title_layout = gtk_print_context_create_pango_layout (context);
+ pango_layout_set_font_description (data->title_layout, desc);
+ pango_layout_set_width (data->title_layout, width * PANGO_SCALE);
+ pango_layout_set_text (data->title_layout, data->title, -1);
+
+ pango_font_description_free (desc);
+
+ int title_height, text_height;
+ pango_layout_get_pixel_size (data->title_layout, NULL, &title_height);
+ title_height += 10;
+ pango_layout_get_pixel_size (data->text_layout, NULL, &text_height);
+
+ int pages_nb, page_height = height - title_height;
+ pages_nb = text_height / page_height;
+ if (text_height % page_height != 0)
+ pages_nb++;
+ data->cur_line = 0;
+fprintf (stderr, "print begin: will use %d pages\n", pages_nb);
+ gtk_print_operation_set_n_pages (print, pages_nb);
+}
+
+static void print_draw_page_cb (GtkPrintOperation *print, GtkPrintContext *context,
+ gint page_nb, PrintData *data)
+{
+ int title_height;
+ pango_layout_get_pixel_size (data->title_layout, NULL, &title_height);
+ title_height += 10;
+
+ cairo_t *cr = gtk_print_context_get_cairo_context (context);
+ cairo_set_source_rgb (cr, 0, 0, 0);
+
+ cairo_move_to (cr, 6, 3);
+ pango_cairo_show_layout (cr, data->title_layout);
+
+ cairo_move_to (cr, 0, title_height-4);
+ cairo_line_to (cr, gtk_print_context_get_width (context), title_height-4);
+ cairo_stroke (cr);
+
+ int y = title_height, page_height = 0;
+ for (;; data->cur_line++) {
+fprintf (stderr, "printing line: %d\n", data->cur_line);
+ PangoLayoutLine *line = pango_layout_get_line_readonly (data->text_layout,
+ data->cur_line);
+ if (!line)
+{
+fprintf (stderr, "no more lines\n");
+ break;
+}
+ PangoRectangle rect;
+ pango_layout_line_get_pixel_extents (line, NULL, &rect);
+fprintf (stderr, "paragraph rect: %d x %d , %d x %d\n", rect.x, rect.y, rect.width, rect.height);
+ page_height += rect.height;
+ if (page_height >= gtk_print_context_get_height (context))
+{
+fprintf (stderr, "end of page: %f x %d\n", gtk_print_context_get_height (context), page_height);
+ break;
+}
+
+ cairo_move_to (cr, rect.x, y + rect.height);
+ pango_cairo_show_layout_line (cr, line);
+ y += rect.height;
+ }
+}
+
+void ygtk_html_print_text (GtkWindow *parent_window, const gchar *title, const gchar *text)
+{
+ PrintData *data = g_new (PrintData, 1);
+ data->title = g_strdup (title);
+ data->text = g_strdup (text);
+ data->title_layout = data->text_layout = NULL;
+
+ GtkPrintOperation *print = gtk_print_operation_new();
+
+ static GtkPrintSettings *print_settings = NULL;
+ if (print_settings)
+ gtk_print_operation_set_print_settings (print, print_settings);
+
+ g_signal_connect (G_OBJECT (print), "begin-print", G_CALLBACK (print_begin_cb), data);
+ g_signal_connect_data (G_OBJECT (print), "draw-page", G_CALLBACK (print_draw_page_cb),
+ data, free_print_data_cb, 0);
+
+ GError *error;
+ GtkPrintOperationResult res;
+ res = gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG,
+ parent_window, &error);
+ if (res == GTK_PRINT_OPERATION_RESULT_ERROR) {
+ GtkWidget *dialog;
+ dialog = gtk_message_dialog_new (parent_window, GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
+ "<b>Print error</b>\n%s", error->message);
+ gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
+ g_error_free (error);
+ }
+ if (res == GTK_PRINT_OPERATION_RESULT_APPLY) {
+ if (print_settings)
+ g_object_unref (print_settings);
+ print_settings = g_object_ref (gtk_print_operation_get_print_settings (print));
+ }
+}
+#endif
+
Added: trunk/gtk/unstable-libyui/src/YGPackageSelector.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGPackag…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGPackageSelector.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGPackageSelector.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,1758 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+
+#include "YGUI.h"
+#include "YGUtils.h"
+#include "YGi18n.h"
+#include "YGDialog.h"
+
+#include "ygtkwizard.h"
+#include "ygtkfindentry.h"
+#include "ygtkhtmlwrap.h"
+#include "ygtkzyppwrapper.h"
+
+// utilities
+static GtkWidget *createImageFromXPM (const char **xpm)
+{
+ GdkPixbuf *pixbuf = gdk_pixbuf_new_from_xpm_data (xpm);
+ GtkWidget *image = gtk_image_new_from_pixbuf (pixbuf);
+ gtk_widget_show (image);
+ g_object_unref (pixbuf);
+ return image;
+}
+
+#define FILEMANAGER_EXEC "/usr/bin/nautilus"
+inline void FILEMANAGER_LAUNCH (const char *path)
+{ system ((std::string (FILEMANAGER_EXEC) + " -n --no-desktop " + path + " &").c_str()); }
+
+static void busyCursor()
+{
+ YGUI::ui()->busyCursor();
+ // so that the cursor is actually set...
+ while (g_main_context_iteration (NULL, FALSE)) ;
+}
+static void normalCursor()
+{ YGUI::ui()->normalCursor(); }
+
+#include "icons/pkg-list-mode.xpm"
+#include "icons/pkg-tiles-mode.xpm"
+
+class PackagesView
+{
+public:
+ struct Listener {
+ virtual void packagesSelected (const std::list <Ypp::Package *> &selection) = 0;
+ };
+ void setListener (Listener *listener)
+ { m_listener = listener; }
+
+private:
+Listener *m_listener;
+
+ void packagesSelected (const std::list <Ypp::Package *> &selection)
+ {
+ if (m_listener) {
+ busyCursor();
+ m_listener->packagesSelected (selection);
+ normalCursor();
+ }
+ }
+
+ struct View {
+ PackagesView *m_parent;
+ GtkWidget *m_widget;
+ View (PackagesView *parent) : m_parent (parent)
+ {}
+ virtual void setModel (GtkTreeModel *model) = 0;
+
+ void selectedPaths (GtkTreeModel *model, GList *paths)
+ {
+ std::list <Ypp::Package *> packages;
+ for (GList *i = paths; i; i = i->next) {
+ Ypp::Package *package;
+ GtkTreePath *path = (GtkTreePath *) i->data;
+ GtkTreeIter iter;
+ gtk_tree_model_get_iter (model, &iter, path);
+ gtk_tree_model_get (model, &iter, YGtkZyppModel::PTR_COLUMN, &package, -1);
+ gtk_tree_path_free (path);
+
+ packages.push_back (package);
+ }
+ g_list_free (paths);
+ m_parent->packagesSelected (packages);
+ }
+ };
+ struct ListView : public View
+ {
+ ListView (PackagesView *parent)
+ : View (parent)
+ {
+ GtkTreeView *view = GTK_TREE_VIEW (m_widget = gtk_tree_view_new());
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (view), FALSE);
+ gtk_tree_view_set_search_column (GTK_TREE_VIEW (view), 1);
+ GtkTreeViewColumn *column;
+ GtkCellRenderer *renderer;
+ renderer = gtk_cell_renderer_pixbuf_new();
+ column = gtk_tree_view_column_new_with_attributes ("", renderer,
+ "pixbuf", YGtkZyppModel::ICON_COLUMN, NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view), column);
+ renderer = gtk_cell_renderer_text_new();
+ g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
+ column = gtk_tree_view_column_new_with_attributes ("", renderer,
+ "markup", YGtkZyppModel::NAME_DESCRIPTION_COLUMN, NULL);
+ gtk_tree_view_column_set_expand (column, TRUE);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view), column);
+ renderer = gtk_cell_renderer_pixbuf_new();
+ column = gtk_tree_view_column_new_with_attributes ("", renderer,
+ "pixbuf", YGtkZyppModel::SPECIAL_ICON_COLUMN, NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view), column);
+
+ GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (view));
+ gtk_tree_selection_set_mode (selection, GTK_SELECTION_MULTIPLE);
+ g_signal_connect (G_OBJECT (selection), "changed",
+ G_CALLBACK (packages_selected_cb), this);
+ gtk_widget_show (m_widget);
+ }
+
+ virtual void setModel (GtkTreeModel *model)
+ {
+ gtk_tree_view_set_model (GTK_TREE_VIEW (m_widget), model);
+ if (GTK_WIDGET_REALIZED (m_widget))
+ gtk_tree_view_scroll_to_point (GTK_TREE_VIEW (m_widget), 0, 0);
+ }
+
+ static void packages_selected_cb (GtkTreeSelection *selection, View *pThis)
+ {
+ GtkTreeModel *model;
+ GList *paths = gtk_tree_selection_get_selected_rows (selection, &model);
+ pThis->selectedPaths (model, paths);
+ }
+ };
+ struct IconView : public View
+ {
+ IconView (PackagesView *parent)
+ : View (parent)
+ {
+ GtkIconView *view = GTK_ICON_VIEW (m_widget = gtk_icon_view_new());
+ gtk_icon_view_set_text_column (view, YGtkZyppModel::NAME_COLUMN);
+ gtk_icon_view_set_pixbuf_column (view, YGtkZyppModel::ICON_COLUMN);
+ gtk_icon_view_set_selection_mode (view, GTK_SELECTION_MULTIPLE);
+ g_signal_connect (G_OBJECT (m_widget), "selection-changed",
+ G_CALLBACK (packages_selected_cb), this);
+ gtk_widget_show (m_widget);
+ }
+
+ virtual void setModel (GtkTreeModel *model)
+ {
+ gtk_icon_view_set_model (GTK_ICON_VIEW (m_widget), model);
+ if (GTK_WIDGET_REALIZED (m_widget)) {
+ GtkTreePath *path = gtk_tree_path_new_first();
+ gtk_icon_view_scroll_to_path (GTK_ICON_VIEW (m_widget),
+ path, FALSE, 0, 0);
+ gtk_tree_path_free (path);
+ }
+ }
+
+ static void packages_selected_cb (GtkIconView *view, View *pThis)
+ {
+ GtkTreeModel *model = gtk_icon_view_get_model (view);
+ GList *paths = gtk_icon_view_get_selected_items (view);
+ pThis->selectedPaths (model, paths);
+ }
+ };
+
+GtkWidget *m_box, *m_bin, *m_list_button, *m_icon_button;
+GtkTreeModel *m_model;
+View *m_view;
+
+public:
+ GtkWidget *getWidget()
+ { return m_box; }
+
+ PackagesView() : m_listener (NULL), m_model (NULL), m_view (NULL)
+ {
+ m_bin = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (m_bin),
+ GTK_SHADOW_IN);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (m_bin),
+ GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+
+ GtkWidget *buttons = gtk_vbox_new (FALSE, 0), *image;
+ image = createImageFromXPM (pkg_list_mode_xpm);
+ m_list_button = gtk_toggle_button_new();
+ gtk_button_set_image (GTK_BUTTON (m_list_button), image);
+ image = createImageFromXPM (pkg_tiles_mode_xpm);
+ m_icon_button = gtk_toggle_button_new();
+ gtk_button_set_image (GTK_BUTTON (m_icon_button), image);
+ gtk_box_pack_start (GTK_BOX (buttons), gtk_label_new(""), TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (buttons), m_list_button, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (buttons), m_icon_button, FALSE, FALSE, 0);
+ g_signal_connect (G_OBJECT (m_list_button), "toggled",
+ G_CALLBACK (mode_toggled_cb), this);
+ g_signal_connect (G_OBJECT (m_icon_button), "toggled",
+ G_CALLBACK (mode_toggled_cb), this);
+
+ m_box = gtk_hbox_new (FALSE, 2);
+ gtk_box_pack_start (GTK_BOX (m_box), m_bin, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (m_box), buttons, FALSE, TRUE, 0);
+
+ setMode (LIST_MODE);
+ }
+
+ ~PackagesView()
+ {
+ if (m_model)
+ g_object_unref (G_OBJECT (m_model));
+ delete m_view;
+ }
+
+ enum ViewMode {
+ LIST_MODE, ICON_MODE
+ };
+ void setMode (ViewMode mode)
+ {
+ if (GTK_WIDGET_REALIZED (m_bin))
+ busyCursor();
+ g_signal_handlers_block_by_func (m_list_button, (gpointer) mode_toggled_cb, this);
+ g_signal_handlers_block_by_func (m_icon_button, (gpointer) mode_toggled_cb, this);
+
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (m_list_button), mode == LIST_MODE);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (m_icon_button), mode == ICON_MODE);
+
+ g_signal_handlers_unblock_by_func (m_list_button, (gpointer) mode_toggled_cb, this);
+ g_signal_handlers_unblock_by_func (m_icon_button, (gpointer) mode_toggled_cb, this);
+
+ if (m_view)
+ gtk_container_remove (GTK_CONTAINER (m_bin), m_view->m_widget);
+ delete m_view;
+ if (mode == LIST_MODE)
+ m_view = new ListView (this);
+ else
+ m_view = new IconView (this);
+fprintf (stderr, "adding new view to container\n");
+ gtk_container_add (GTK_CONTAINER (m_bin), m_view->m_widget);
+ if (m_model)
+ m_view->setModel (m_model);
+ packagesSelected (std::list <Ypp::Package *> ());
+ normalCursor();
+ }
+
+ void query (Ypp::Query *query)
+ {
+ if (GTK_WIDGET_REALIZED (m_bin))
+ busyCursor();
+
+ if (m_model)
+ g_object_unref (G_OBJECT (m_model));
+
+ YGtkZyppModel *zmodel = ygtk_zypp_model_new (query);
+ m_model = GTK_TREE_MODEL (zmodel);
+ if (m_view) {
+ m_view->setModel (m_model);
+ packagesSelected (std::list <Ypp::Package *> ());
+ }
+ normalCursor();
+ }
+
+private:
+ static void mode_toggled_cb (GtkToggleButton *toggle, PackagesView *pThis)
+ {
+ bool active = gtk_toggle_button_get_active (toggle);
+ if (!active) {
+ // don't let the button be un-pressed
+ g_signal_handlers_block_by_func (toggle, (gpointer) mode_toggled_cb, pThis);
+ gtk_toggle_button_set_active (toggle, TRUE);
+ g_signal_handlers_unblock_by_func (toggle, (gpointer) mode_toggled_cb, pThis);
+ return;
+ }
+ ViewMode mode = GTK_WIDGET (toggle) == pThis->m_list_button ? LIST_MODE : ICON_MODE;
+ pThis->setMode (mode);
+ }
+};
+
+// TEMP: a window of modified packages
+class TrashWindow : PackagesView::Listener
+{
+GtkWidget *m_window, *m_undo_button;
+PackagesView *m_view;
+
+public:
+ TrashWindow()
+ {
+ m_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_title (GTK_WINDOW (m_window), "Changes");
+ gtk_window_set_default_size (GTK_WINDOW (m_window), 200, 250);
+
+ m_view = new PackagesView();
+ Ypp::Query *query = new Ypp::Query (Ypp::Package::PACKAGE_TYPE);
+ query->setIsModified (true);
+ m_view->query (query);
+ m_view->setListener (this);
+
+ GtkWidget *vbox = gtk_vbox_new (FALSE, 6), *undo_align;
+ m_undo_button = gtk_button_new_from_stock (GTK_STOCK_UNDO);
+ gtk_widget_set_sensitive (m_undo_button, FALSE);
+ g_signal_connect (G_OBJECT (m_undo_button), "clicked",
+ G_CALLBACK (undo_clicked_cb), this);
+ undo_align = gtk_alignment_new (1, 0, 0, 0);
+ gtk_container_add (GTK_CONTAINER (undo_align), m_undo_button);
+
+ gtk_box_pack_start (GTK_BOX (vbox), m_view->getWidget(), TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), undo_align, FALSE, FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (m_window), vbox);
+ gtk_widget_show_all (m_window);
+ }
+
+ ~TrashWindow()
+ {
+ delete m_view;
+ gtk_widget_destroy (m_window);
+ }
+
+private:
+std::list <Ypp::Package *> m_selection;
+
+ virtual void packagesSelected (const std::list <Ypp::Package *> &selection)
+ {
+ gtk_widget_set_sensitive (m_undo_button, !selection.empty());
+ m_selection = selection;
+ }
+
+ static void undo_clicked_cb (GtkButton *button, TrashWindow *pThis)
+ {
+ for (std::list <Ypp::Package *>::iterator it = pThis->m_selection.begin();
+ it != pThis->m_selection.end(); it++)
+ (*it)->undo();
+ }
+};
+
+#include "icons/cat-development.xpm"
+#include "icons/cat-documentation.xpm"
+#include "icons/cat-emulators.xpm"
+#include "icons/cat-games.xpm"
+#include "icons/cat-hardware.xpm"
+#include "icons/cat-network.xpm"
+#include "icons/cat-multimedia.xpm"
+#include "icons/cat-office.xpm"
+#include "icons/cat-system.xpm"
+#include "icons/cat-utilities.xpm"
+
+class Filters
+{
+public:
+ struct Listener {
+ virtual void doQuery (Ypp::Query *query) = 0;
+ };
+ void setListener (Listener *listener)
+ { m_listener = listener; signalChanged(); }
+
+private:
+ GtkWidget *m_widget, *m_name, *m_status, *m_categories, *m_repos, *m_type,
+ *m_categories_expander, *m_repos_expander;
+ Listener *m_listener;
+ guint timeout_id;
+ int repoToggled; // how many repos are toggled? if 0, it can speed up query
+ int packageType;
+
+public:
+ GtkWidget *getWidget()
+ { return m_widget; }
+
+ Filters()
+ : m_listener (NULL), timeout_id (0), repoToggled (0), packageType (-1)
+ {
+ GtkWidget *vbox = gtk_vbox_new (FALSE, 4);
+ gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
+ GtkSizeGroup *size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+
+ m_name = ygtk_find_entry_new();
+ g_signal_connect_after (G_OBJECT (m_name), "changed",
+ G_CALLBACK (entry_changed_cb), this);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ labelWidget (_("Name: "), m_name, size_group), FALSE, TRUE, 0);
+
+ m_status = gtk_combo_box_new_text();
+ gtk_combo_box_append_text (GTK_COMBO_BOX (m_status), _("All"));
+ gtk_combo_box_append_text (GTK_COMBO_BOX (m_status), _("Installed"));
+ gtk_combo_box_append_text (GTK_COMBO_BOX (m_status), _("Upgradable"));
+ gtk_combo_box_append_text (GTK_COMBO_BOX (m_status), _("Available"));
+ gtk_combo_box_append_text (GTK_COMBO_BOX (m_status), _("Modified"));
+ gtk_combo_box_set_active (GTK_COMBO_BOX (m_status), 0);
+ g_signal_connect_after (G_OBJECT (m_status), "changed",
+ G_CALLBACK (combo_changed_cb), this);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ labelWidget (_("Status: "), m_status, size_group), FALSE, TRUE, 0);
+
+ gtk_box_pack_start (GTK_BOX (vbox), buildCategories(), FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), buildRepos(), FALSE, TRUE, 0);
+
+ m_type = gtk_combo_box_new_text();
+ gtk_combo_box_append_text (GTK_COMBO_BOX (m_type), _("Packages"));
+ gtk_combo_box_append_text (GTK_COMBO_BOX (m_type), _("Patterns"));
+ gtk_combo_box_append_text (GTK_COMBO_BOX (m_type), _("Languages"));
+ gtk_combo_box_set_active (GTK_COMBO_BOX (m_type), 0);
+ g_signal_connect_after (G_OBJECT (m_type), "changed",
+ G_CALLBACK (combo_changed_cb), this);
+ gtk_box_pack_start (GTK_BOX (vbox), gtk_label_new (""), TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox),
+ labelWidget (_("Type: "), m_type, size_group), FALSE, TRUE, 0);
+
+ m_widget = gtk_notebook_new();
+ gtk_notebook_append_page (GTK_NOTEBOOK (m_widget), vbox,
+ gtk_label_new (_("Filters")));
+ g_object_unref (G_OBJECT (size_group));
+ }
+
+ ~Filters()
+ {
+ if (timeout_id) g_source_remove (timeout_id);
+ }
+
+private:
+ static void entry_changed_cb (GtkEditable *editable, Filters *pThis)
+ { pThis->signalChangedDelay(); }
+ static void combo_changed_cb (GtkComboBox *combo, Filters *pThis)
+ { pThis->signalChanged(); }
+
+ void signalChanged()
+ {
+ if (!m_listener) return;
+
+ Ypp::Package::Type type;
+ switch (gtk_combo_box_get_active (GTK_COMBO_BOX (m_type)))
+ {
+ case 0: default: type = Ypp::Package::PACKAGE_TYPE; break;
+ case 1: type = Ypp::Package::PATTERN_TYPE; break;
+ case 2: type = Ypp::Package::LANGUAGE_TYPE; break;
+
+ }
+
+ Ypp::Query *query = new Ypp::Query (type);
+
+ const char *name = gtk_entry_get_text (GTK_ENTRY (m_name));
+ if (*name)
+ query->setName (std::string (name));
+ switch (gtk_combo_box_get_active (GTK_COMBO_BOX (m_status)))
+ {
+ case 1: query->setIsInstalled (true); break;
+ case 2: query->setHasUpgrade (true); break;
+ case 3: query->setIsInstalled (false); break;
+ case 4: query->setIsModified (true); break;
+ case 0: default: break;
+
+ }
+
+ {
+ GtkTreeSelection *selection = gtk_tree_view_get_selection (
+ GTK_TREE_VIEW (m_categories));
+ GtkTreeModel *model;
+ GtkTreeIter iter;
+ if (gtk_tree_selection_get_selected (selection, &model, &iter)) {
+ Ypp::Node *category;
+ gtk_tree_model_get (model, &iter, 1, &category, -1);
+ if (category)
+ query->setCategory (category);
+ }
+ }
+
+ if (repoToggled) {
+ std::list <int> reposQuery;
+ GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (m_repos));
+ GtkTreeIter iter;
+ if (gtk_tree_model_get_iter_first (model, &iter)) {
+ do {
+ gboolean enabled;
+ gint repo;
+ gtk_tree_model_get (model, &iter, 0, &enabled, 2, &repo, -1);
+ if (enabled)
+ reposQuery.push_back (repo);
+ } while (gtk_tree_model_iter_next (model, &iter));
+ }
+ query->setRepositories (reposQuery);
+ }
+
+ m_listener->doQuery (query);
+ updateCategories (type);
+ }
+
+ void signalChangedDelay()
+ {
+ struct inner {
+ static gboolean timeout_cb (gpointer data)
+ {
+ Filters *pThis = (Filters *) data;
+ pThis->timeout_id = 0;
+ pThis->signalChanged();
+ return FALSE;
+ }
+ };
+ if (timeout_id) g_source_remove (timeout_id);
+ timeout_id = g_timeout_add (500, inner::timeout_cb, this);
+ }
+
+ void updateCategories (Ypp::Package::Type type)
+ {
+ if (packageType == type)
+ return;
+ packageType = type;
+
+ GtkTreeModel *model = NULL;
+
+ if (type == Ypp::Package::PACKAGE_TYPE) {
+ struct inner {
+ static void populate (GtkTreeStore *store, GtkTreeIter *parent,
+ Ypp::Node *category)
+ {
+ if (!category)
+ return;
+ GtkTreeIter iter;
+ gtk_tree_store_append (store, &iter, parent);
+ const std::string &name = category->name;
+ gtk_tree_store_set (store, &iter, 0, name.c_str(), 1, category, -1);
+ if (!parent) {
+ const char **icon = 0;
+ if (name == "Development")
+ icon = cat_development_xpm;
+ else if (name == "Documentation")
+ icon = cat_documentation_xpm;
+ else if (name == "Emulators")
+ icon = cat_emulators_xpm;
+ else if (name == "Games")
+ icon = cat_games_xpm;
+ else if (name == "Hardware")
+ icon = cat_hardware_xpm;
+ else if (name == "Multimedia")
+ icon = cat_multimedia_xpm;
+ else if (name == "Network")
+ icon = cat_network_xpm;
+ else if (name == "Office")
+ icon = cat_office_xpm;
+ else if (name == "System")
+ icon = cat_system_xpm;
+ else if (name == "Utilities")
+ icon = cat_utilities_xpm;
+ if (icon) {
+ GdkPixbuf *pixbuf = gdk_pixbuf_new_from_xpm_data (icon);
+ gtk_tree_store_set (store, &iter, 2, pixbuf, -1);
+ }
+ }
+ populate (store, &iter, category->child());
+ populate (store, parent, category->next());
+ }
+ };
+
+ GtkTreeStore *store = gtk_tree_store_new (3, G_TYPE_STRING, G_TYPE_POINTER,
+ GDK_TYPE_PIXBUF);
+ model = GTK_TREE_MODEL (store);
+
+ GtkTreeIter iter;
+ gtk_tree_store_append (store, &iter, NULL);
+ gtk_tree_store_set (store, &iter, 0, _("All"), 1, NULL, -1);
+
+ inner::populate (store, NULL, Ypp::get()->getFirstCategory (type));
+
+ }
+ else if (type == Ypp::Package::PATTERN_TYPE) {
+ GtkListStore *store = gtk_list_store_new (3, G_TYPE_STRING, G_TYPE_POINTER,
+ GDK_TYPE_PIXBUF);
+ model = GTK_TREE_MODEL (store);
+
+ GtkTreeIter iter;
+ gtk_list_store_append (store, &iter);
+ gtk_list_store_set (store, &iter, 0, _("All"), 1, NULL, -1);
+
+ for (Ypp::Node *i = Ypp::get()->getFirstCategory (type); i; i = i->next()) {
+ gtk_list_store_append (store, &iter);
+ gtk_list_store_set (store, &iter, 0, i->name.c_str(), 1, i, -1);
+ }
+ }
+
+ GtkTreeSelection *selection = gtk_tree_view_get_selection (
+ GTK_TREE_VIEW (m_categories));
+ g_signal_handlers_block_by_func (selection,
+ (gpointer) categories_selection_cb, this);
+
+ gtk_tree_view_set_model (GTK_TREE_VIEW (m_categories), model);
+ if (model) {
+ g_object_unref (G_OBJECT (model));
+ gtk_widget_show (m_categories_expander);
+
+ /* we use gtk_tree_view_set_cursor(), rather than gtk_tree_selection_select_iter()
+ because that one is buggy in that when the user first interacts with the treeview,
+ a change signal is sent, even if he was just expanding one node... */
+ GtkTreePath *path = gtk_tree_path_new_first();
+ gtk_tree_view_set_cursor (GTK_TREE_VIEW (m_categories), path, NULL, FALSE);
+ gtk_tree_path_free (path);
+ }
+ else
+ gtk_widget_hide (m_categories_expander);
+
+ g_signal_handlers_unblock_by_func (selection,
+ (gpointer) categories_selection_cb, this);
+ }
+
+ GtkWidget *buildCategories()
+ {
+ GtkWidget *scroll;
+ GtkTreeViewColumn *column;
+ GtkCellRenderer *renderer;
+
+ m_categories = gtk_tree_view_new();
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (m_categories), FALSE);
+ gtk_tree_view_set_search_column (GTK_TREE_VIEW (m_categories), 0);
+ renderer = gtk_cell_renderer_pixbuf_new();
+ column = gtk_tree_view_column_new_with_attributes ("",
+ renderer, "pixbuf", 2, NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (m_categories), column);
+ renderer = gtk_cell_renderer_text_new();
+ column = gtk_tree_view_column_new_with_attributes ("",
+ renderer, "text", 0, NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (m_categories), column);
+
+ GtkTreeSelection *selection = gtk_tree_view_get_selection (
+ GTK_TREE_VIEW (m_categories));
+ gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
+ g_signal_connect (G_OBJECT (selection), "changed",
+ G_CALLBACK (categories_selection_cb), this);
+
+ scroll = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
+ GTK_SHADOW_IN);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
+ GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+ gtk_widget_set_size_request (scroll, -1, 200);
+ gtk_container_add (GTK_CONTAINER (scroll), m_categories);
+
+ m_categories_expander = gtk_expander_new (_("Categories"));
+ gtk_container_add (GTK_CONTAINER (m_categories_expander), scroll);
+ gtk_expander_set_expanded (GTK_EXPANDER (m_categories_expander), TRUE);
+ return m_categories_expander;
+ }
+
+ GtkWidget *buildRepos()
+ {
+ GtkWidget *scroll;
+ GtkListStore *store;
+ GtkTreeViewColumn *column;
+ GtkCellRenderer *renderer;
+
+ // 0 - enabled, 1 - name, 2 - ptr
+ store = gtk_list_store_new (3, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_INT);
+ for (int i = 0; Ypp::get()->getRepository (i); i++) {
+ const Ypp::Repository *repo = Ypp::get()->getRepository (i);
+ GtkTreeIter iter;
+ gtk_list_store_append (store, &iter);
+ gtk_list_store_set (store, &iter, 0, TRUE, 1, repo->name.c_str(), 2, i, -1);
+ }
+ m_repos = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (m_repos), FALSE);
+ gtk_tree_view_set_search_column (GTK_TREE_VIEW (m_repos), 1);
+ gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (m_repos)),
+ GTK_SELECTION_NONE);
+ g_object_unref (G_OBJECT (store));
+ renderer = gtk_cell_renderer_toggle_new();
+ column = gtk_tree_view_column_new_with_attributes ("", renderer, "active", 0, NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (m_repos), column);
+ g_signal_connect (G_OBJECT (renderer), "toggled",
+ G_CALLBACK (repo_toggled_cb), this);
+ g_signal_connect (G_OBJECT (m_repos), "row-activated",
+ G_CALLBACK (repo_clicked_cb), this);
+ renderer = gtk_cell_renderer_text_new();
+ g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
+ column = gtk_tree_view_column_new_with_attributes ("",
+ renderer, "text", 1, NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (m_repos), column);
+
+ scroll = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
+ GTK_SHADOW_IN);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
+ GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+ gtk_widget_set_size_request (scroll, -1, 80);
+ gtk_container_add (GTK_CONTAINER (scroll), m_repos);
+
+ m_repos_expander = gtk_expander_new (_("Repositories"));
+ gtk_container_add (GTK_CONTAINER (m_repos_expander), scroll);
+ return m_repos_expander;
+ }
+
+ static void categories_selection_cb (GtkTreeSelection *selection, Filters *pThis)
+ {
+fprintf (stderr, "CATEGORIES SELECTED\n");
+ pThis->signalChanged();
+ }
+
+ void toggle_repo (GtkTreePath *path)
+ {
+ IMPL
+ GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (m_repos));
+ GtkListStore *store = GTK_LIST_STORE (model);
+ GtkTreeIter iter;
+ gtk_tree_model_get_iter (model, &iter, path);
+
+ gboolean enabled;
+ gtk_tree_model_get (model, &iter, 0, &enabled, -1);
+ gtk_list_store_set (store, &iter, 0, !enabled, -1);
+ if (enabled) repoToggled--; else repoToggled++;
+fprintf (stderr, "repoToggled count: %d\n", repoToggled);
+ signalChanged();
+ }
+
+ static void repo_toggled_cb (GtkCellRendererToggle *renderer,
+ gchar *path_str, Filters *pThis)
+ {
+ IMPL
+ GtkTreePath *path = gtk_tree_path_new_from_string (path_str);
+ pThis->toggle_repo (path);
+ gtk_tree_path_free (path);
+ }
+
+ static void repo_clicked_cb (GtkTreeView *view, GtkTreePath *path,
+ GtkTreeViewColumn *column, Filters *pThis)
+ {
+ IMPL
+ pThis->toggle_repo (path);
+ }
+
+ // utility
+ static GtkWidget *labelWidget (const char *label_str, GtkWidget *widget,
+ GtkSizeGroup *group)
+ {
+ GtkWidget *hbox = gtk_hbox_new (FALSE, 0);
+ GtkWidget *label = gtk_label_new_with_mnemonic (label_str);
+ gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
+ gtk_label_set_mnemonic_widget (GTK_LABEL (label), widget);
+ gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), widget, TRUE, TRUE, 0);
+ gtk_size_group_add_widget (group, label);
+ return hbox;
+ }
+};
+
+#include "icons/pkg-locked.xpm"
+#include "icons/pkg-unlocked.xpm"
+
+class PackageControl
+{
+GtkWidget *m_vbox, *m_status, *m_lock_button, *m_locked_image, *m_unlocked_image,
+ *m_installed_box, *m_available_box, *m_remove_button, *m_install_button,
+ *m_undo_button, *m_versions_combo, *m_version_repo;
+GtkTreeModel *m_versions_model;
+
+public:
+std::list <Ypp::Package *> m_packages;
+
+ GtkWidget *getWidget()
+ { return m_vbox; }
+
+ PackageControl()
+ {
+ GtkSizeGroup *size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+ m_vbox = gtk_vbox_new (FALSE, 6);
+ GtkWidget *hbox, *label;
+
+ m_lock_button = gtk_toggle_button_new();
+ g_signal_connect (G_OBJECT (m_lock_button), "toggled",
+ G_CALLBACK (locked_toggled_cb), this);
+ m_undo_button = gtk_button_new_from_stock (GTK_STOCK_UNDO);
+ g_signal_connect (G_OBJECT (m_undo_button), "clicked",
+ G_CALLBACK (undo_clicked_cb), this);
+
+ hbox = gtk_hbox_new (FALSE, 6);
+ label = gtk_label_new (_("Status:"));
+ YGUtils::setWidgetFont (label, PANGO_WEIGHT_BOLD, PANGO_SCALE_MEDIUM);
+ gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
+ gtk_size_group_add_widget (size_group, label);
+ m_status = gtk_label_new ("-");
+ gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), m_status, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), m_undo_button, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), gtk_label_new(0), TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), m_lock_button, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (m_vbox), hbox, TRUE, TRUE, 0);
+
+ m_locked_image = createImageFromXPM (pkg_locked_xpm);
+ m_unlocked_image = createImageFromXPM (pkg_unlocked_xpm);
+ g_object_ref_sink (G_OBJECT (m_locked_image));
+ g_object_ref_sink (G_OBJECT (m_unlocked_image));
+
+ m_remove_button = createButton (_("_Remove"), GTK_STOCK_DELETE);
+ g_signal_connect (G_OBJECT (m_remove_button), "clicked",
+ G_CALLBACK (remove_clicked_cb), this);
+ m_install_button = createButton ("", GTK_STOCK_SAVE);
+ g_signal_connect (G_OBJECT (m_install_button), "clicked",
+ G_CALLBACK (install_clicked_cb), this);
+
+ m_installed_box = gtk_hbox_new (FALSE, 6);
+ label = gtk_label_new (_("Installed: "));
+ YGUtils::setWidgetFont (label, PANGO_WEIGHT_BOLD, PANGO_SCALE_MEDIUM);
+ gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
+ gtk_size_group_add_widget (size_group, label);
+ gtk_box_pack_start (GTK_BOX (m_installed_box), label, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (m_installed_box), m_remove_button, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (m_vbox), m_installed_box, TRUE, TRUE, 0);
+
+ m_versions_model = GTK_TREE_MODEL (gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_INT));
+ m_versions_combo = gtk_combo_box_new_with_model (m_versions_model);
+ g_signal_connect (G_OBJECT (m_versions_combo), "changed",
+ G_CALLBACK (version_changed_cb), this);
+
+ GtkCellRenderer *renderer = gtk_cell_renderer_text_new();
+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (m_versions_combo), renderer, TRUE);
+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (m_versions_combo),
+ renderer, "text", 0, NULL);
+
+ m_available_box = gtk_hbox_new (FALSE, 6);
+ label = gtk_label_new (_("Available: "));
+ YGUtils::setWidgetFont (label, PANGO_WEIGHT_BOLD, PANGO_SCALE_MEDIUM);
+ gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
+ gtk_size_group_add_widget (size_group, label);
+ gtk_box_pack_start (GTK_BOX (m_available_box), label, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (m_available_box), m_versions_combo, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (m_available_box), m_install_button, FALSE, TRUE, 0);
+ label = gtk_label_new (_("(Repository:"));
+ gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
+ m_version_repo = gtk_label_new ("");
+ gtk_misc_set_alignment (GTK_MISC (m_version_repo), 0, 0.5);
+ gtk_label_set_ellipsize (GTK_LABEL (m_version_repo), PANGO_ELLIPSIZE_END);
+ gtk_box_pack_start (GTK_BOX (m_available_box), label, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (m_available_box), m_version_repo, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (m_vbox), m_available_box, TRUE, TRUE, 0);
+
+ g_object_unref (G_OBJECT (size_group));
+ }
+
+ ~PackageControl()
+ {
+ gtk_widget_destroy (m_locked_image);
+ g_object_unref (G_OBJECT (m_locked_image));
+ gtk_widget_destroy (m_unlocked_image);
+ g_object_unref (G_OBJECT (m_unlocked_image));
+ }
+
+ void setPackages (const std::list <Ypp::Package *> &packages)
+ {
+fprintf (stderr, "packages selected (%d)\n", packages.size());
+ // FIXME: we'll probably want to re-work the controls interface
+ // for now, let's just handle none-one-multiple selections separatadely
+ m_packages = packages;
+ if (packages.size() == 1) {
+ Ypp::Package *package = packages.front();
+ // status label
+ std::string status;
+ if (package->isInstalled())
+ status = _("Installed ") + package->getInstalledVersion()->number;
+ else
+ status = _("Not installed");
+ if (package->toInstall()) {
+ int nb;
+ const Ypp::Package::Version *version;
+ package->toInstall (&nb);
+ version = package->getAvailableVersion (nb);
+ status += _(" (to install");
+ if (version)
+ status += " " + version->number;
+ status += ")";
+ }
+ else if (package->toRemove())
+ status += _(" (to remove)");
+ gtk_label_set_text (GTK_LABEL (m_status), status.c_str());
+ if (package->isModified())
+ gtk_widget_show (m_undo_button);
+ else
+ gtk_widget_hide (m_undo_button);
+
+ // install version
+ if (package->isInstalled())
+ gtk_widget_show (m_installed_box);
+ else
+ gtk_widget_hide (m_installed_box);
+
+ // available versions
+ gtk_widget_show (m_versions_combo);
+ if (package->getAvailableVersion (0)) {
+ gtk_list_store_clear (GTK_LIST_STORE (m_versions_model));
+ for (int i = 0; package->getAvailableVersion (i); i++) {
+ const char *version = package->getAvailableVersion (i)->number.c_str();
+fprintf (stderr, "adding version: %s\n", version);
+ GtkTreeIter iter;
+ gtk_list_store_append (GTK_LIST_STORE (m_versions_model), &iter);
+ gtk_list_store_set (GTK_LIST_STORE (m_versions_model), &iter,
+ 0, version, 1, i, -1);
+ }
+ gtk_combo_box_set_active (GTK_COMBO_BOX (m_versions_combo), 0);
+ gtk_widget_show (m_available_box);
+ }
+ else
+ gtk_widget_hide (m_available_box);
+
+ // is locked
+ gtk_widget_show (m_lock_button);
+ bool locked = package->isLocked();
+ g_signal_handlers_block_by_func (m_lock_button, (gpointer) locked_toggled_cb, this);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (m_lock_button), locked);
+ g_signal_handlers_unblock_by_func (m_lock_button, (gpointer) locked_toggled_cb, this);
+ gtk_button_set_image (GTK_BUTTON (m_lock_button),
+ locked ? m_locked_image : m_unlocked_image);
+ gtk_widget_set_sensitive (m_install_button, !locked);
+ gtk_widget_set_sensitive (m_remove_button, !locked);
+
+ gtk_widget_show (m_vbox);
+ }
+ else if (packages.size()) {
+ bool allInstalled = true, allNotInstalled = true, allUpgradable = true,
+ allModified = true, allLocked = true, allUnlocked = true;
+ for (std::list <Ypp::Package *>::const_iterator it = packages.begin();
+ it != packages.end(); it++) {
+ if (!(*it)->isInstalled()) {
+ allInstalled = false;
+ allUpgradable = false;
+ }
+ else {
+ allNotInstalled = false;
+ const Ypp::Package::Version *version = (*it)->getAvailableVersion(0);
+ if (!version || version->cmp <= 0)
+ allUpgradable = false;
+ }
+ if (!(*it)->isModified())
+ allModified = false;
+ if ((*it)->isLocked())
+ allUnlocked = false;
+ else
+ allLocked = false;
+ }
+
+ std::string status;
+ if (allInstalled)
+ status = _("Installed");
+ else if (allNotInstalled)
+ status = _("Not installed");
+ else
+ status = _("--");
+
+ if (allModified) {
+ status += _(" (modified)");
+ gtk_widget_show (m_undo_button);
+ }
+ else
+ gtk_widget_hide (m_undo_button);
+ gtk_label_set_text (GTK_LABEL (m_status), status.c_str());
+
+ // install version
+ if (allInstalled)
+ gtk_widget_show (m_installed_box);
+ else
+ gtk_widget_hide (m_installed_box);
+
+ // available versions
+ gtk_widget_hide (m_versions_combo);
+ if (allNotInstalled || allUpgradable) {
+ gtk_widget_show (m_available_box);
+ const char *installLabel = _("Install");
+ if (allUpgradable)
+ installLabel = _("Upgrade");
+ gtk_button_set_label (GTK_BUTTON (m_install_button), installLabel);
+ }
+ else
+ gtk_widget_hide (m_available_box);
+
+ // is locked
+ if (allLocked || allUnlocked) {
+ gtk_widget_show (m_lock_button);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (m_lock_button), allLocked);
+ gtk_button_set_image (GTK_BUTTON (m_lock_button),
+ allLocked ? m_locked_image : m_unlocked_image);
+ gtk_widget_set_sensitive (m_install_button, !allLocked);
+ gtk_widget_set_sensitive (m_remove_button, !allLocked);
+ }
+ else {
+ gtk_widget_hide (m_lock_button);
+ gtk_widget_set_sensitive (m_install_button, TRUE);
+ gtk_widget_set_sensitive (m_remove_button, TRUE);
+ }
+ gtk_widget_show (m_vbox);
+ }
+ else
+ gtk_widget_hide (m_vbox);
+
+#if 0
+ m_package = package;
+ if (package) {
+ if (package->isInstalled()) {
+ gtk_widget_show (m_remove_button);
+ gtk_widget_hide (m_install_button);
+ }
+ else {
+ gtk_widget_show (m_install_button);
+ gtk_widget_hide (m_remove_button);
+ }
+ if (package && package->hasUpgrade())
+ gtk_widget_show (m_upgrade_button);
+ else
+ gtk_widget_hide (m_upgrade_button);
+ }
+ else {
+ gtk_widget_hide (m_install_button);
+ gtk_widget_hide (m_remove_button);
+ gtk_widget_hide (m_upgrade_button);
+ }
+#endif
+ }
+
+private:
+ static void install_clicked_cb (GtkButton *button, PackageControl *pThis)
+ {
+ busyCursor();
+ Ypp::get()->startTransactions();
+ for (std::list <Ypp::Package *>::iterator it = pThis->m_packages.begin();
+ it != pThis->m_packages.end(); it++) {
+ int version;
+ if (GTK_WIDGET_VISIBLE (pThis->m_versions_combo))
+ version = gtk_combo_box_get_active (GTK_COMBO_BOX (
+ pThis->m_versions_combo));
+ else
+ version = 0; // i.e. most recent (on multi-packages)
+ (*it)->install (version);
+ }
+ Ypp::get()->finishTransactions();
+ normalCursor();
+ }
+
+ static void remove_clicked_cb (GtkButton *button, PackageControl *pThis)
+ {
+ busyCursor();
+ Ypp::get()->startTransactions();
+ for (std::list <Ypp::Package *>::iterator it = pThis->m_packages.begin();
+ it != pThis->m_packages.end(); it++)
+ (*it)->remove();
+ Ypp::get()->finishTransactions();
+ normalCursor();
+ }
+
+ static void undo_clicked_cb (GtkButton *button, PackageControl *pThis)
+ {
+ busyCursor();
+ Ypp::get()->startTransactions();
+ for (std::list <Ypp::Package *>::iterator it = pThis->m_packages.begin();
+ it != pThis->m_packages.end(); it++)
+ (*it)->undo();
+ Ypp::get()->finishTransactions();
+ normalCursor();
+ }
+
+ static void locked_toggled_cb (GtkToggleButton *button, PackageControl *pThis)
+ {
+ busyCursor();
+ Ypp::get()->startTransactions();
+ for (std::list <Ypp::Package *>::iterator it = pThis->m_packages.begin();
+ it != pThis->m_packages.end(); it++)
+ (*it)->lock (gtk_toggle_button_get_active (button));
+ Ypp::get()->finishTransactions();
+ normalCursor();
+ }
+
+ static void version_changed_cb (GtkComboBox *combo, PackageControl *pThis)
+ {
+ fprintf (stderr, "version changed\n");
+ if (!pThis->m_packages.empty()) {
+ Ypp::Package *package = pThis->m_packages.front();
+ int nb;
+ GtkTreeIter iter;
+ if (gtk_combo_box_get_active_iter (combo, &iter)) {
+ gtk_tree_model_get (pThis->m_versions_model, &iter, 1, &nb, -1);
+ const Ypp::Package::Version *version;
+ fprintf (stderr, "get available version %d\n", nb);
+ version = package->getAvailableVersion (nb);
+ g_assert (version != NULL);
+
+ const Ypp::Repository *repo = Ypp::get()->getRepository (version->repo);
+ if (repo) {
+ std::string repo_str = repo->name + ")";
+ gtk_label_set_text (GTK_LABEL (pThis->m_version_repo), repo_str.c_str());
+ }
+ else
+ gtk_label_set_text (GTK_LABEL (pThis->m_version_repo),
+ "TODO: hide this for collections)");
+
+ const char *installLabel = _("Install");
+ if (package->isInstalled()) {
+ if (version->cmp > 0)
+ installLabel = _("Upgrade");
+ else if (version->cmp == 0)
+ installLabel = _("Re-install");
+ else //if (version->cmp < 0)
+ installLabel = _("Downgrade");
+ }
+ gtk_button_set_label (GTK_BUTTON (pThis->m_install_button), installLabel);
+ }
+ }
+ }
+
+ // utility
+ static GtkWidget *createButton (const char *label_str, const gchar *stock_id)
+ {
+ GtkWidget *button, *image;
+ button = gtk_button_new_with_mnemonic (label_str);
+ if (stock_id) {
+ image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_image (GTK_BUTTON (button), image);
+ }
+ return button;
+ }
+};
+
+class PackageInfo
+{
+GtkWidget *m_widget, *m_description, *m_filelist, *m_changelog, *m_authors;
+
+public:
+ GtkWidget *getWidget()
+ { return m_widget; }
+
+ PackageInfo()
+ {
+ m_widget = gtk_notebook_new();
+ addPage (_("Description"), createHtmlWidget (&m_description));
+ addPage (_("File List"), createHtmlWidget (&m_filelist));
+ addPage (_("ChangeLog"), createHtmlWidget (&m_changelog));
+ addPage (_("Authors"), createHtmlWidget (&m_authors));
+ gtk_widget_set_size_request (m_widget, -1, 150);
+ ygtk_html_wrap_connect_link_clicked (m_filelist,
+ G_CALLBACK (path_pressed_cb), NULL);
+ }
+
+ void setPackage (Ypp::Package *package)
+ {
+ if (package) {
+ setText (m_description, package->description());
+ setText (m_filelist, package->filelist());
+ setText (m_changelog, package->changelog());
+ setText (m_authors, package->authors());
+ if (!GTK_WIDGET_VISIBLE (m_widget)) {
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (m_widget), 0);
+ gtk_widget_show (m_widget);
+ }
+ }
+ else
+ gtk_widget_hide (m_widget);
+ }
+
+private:
+ static void path_pressed_cb (GtkWidget *text, const gchar *link)
+ { FILEMANAGER_LAUNCH (link); }
+
+ // utilities:
+ static GtkWidget *createHtmlWidget (GtkWidget **html_widget)
+ {
+ *html_widget = ygtk_html_wrap_new();
+ GtkWidget *scroll = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_container_add (GTK_CONTAINER (scroll), *html_widget);
+ return scroll;
+ }
+
+ void addPage (const char *title, GtkWidget *content)
+ {
+ gtk_notebook_append_page (GTK_NOTEBOOK (m_widget), content, gtk_label_new (title));
+ }
+
+ void setText (GtkWidget *rtext, const std::string &text)
+ {
+ if (text.empty()) {
+ const char *empty = _("<i>(only available for installed packages)</i>");
+ ygtk_html_wrap_set_text (rtext, empty);
+ }
+ else
+ ygtk_html_wrap_set_text (rtext, text.c_str());
+ ygtk_html_wrap_scroll (rtext, TRUE);
+ }
+};
+
+class DiskView : public Ypp::Disk::Listener
+{
+GtkWidget *m_widget;
+bool m_hasWarn;
+GtkTreeModel *m_model;
+
+public:
+ GtkWidget *getWidget()
+ { return m_widget; }
+
+ DiskView()
+ : m_hasWarn (false)
+ {
+ m_model = GTK_TREE_MODEL (gtk_list_store_new (
+ // 0 - mount point, 1 - usage percent, 2 - usage string
+ 3, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING));
+ m_widget = createCombo (m_model);
+ g_object_unref (G_OBJECT (m_model));
+
+ Ypp::get()->getDisk()->setListener (this);
+ update();
+ }
+
+private:
+ #define MIN_FREE_MB_WARN (80*1024)
+ virtual void update()
+ {
+ GtkListStore *store = GTK_LIST_STORE (m_model);
+ gtk_list_store_clear (store);
+
+ int warn_part = -1;
+ Ypp::Disk *disk = Ypp::get()->getDisk();
+ for (int i = 0; disk->getPartition (i); i++) {
+ const Ypp::Disk::Partition *part = disk->getPartition (i);
+ long usage = (part->used * 100) / (part->total + 1);
+ std::string usage_str = part->used_str + " (of " + part->total_str + ")";
+ GtkTreeIter iter;
+ gtk_list_store_append (store, &iter);
+ gtk_list_store_set (store, &iter, 0, part->path.c_str(), 1, usage,
+ 2, usage_str.c_str(), -1);
+ if (warn_part < 0 && (part->total > 1024 && part->total - part->used < MIN_FREE_MB_WARN))
+ warn_part = i;
+ }
+ if (warn_part >= 0) {
+ warn();
+ gtk_combo_box_set_active (GTK_COMBO_BOX (m_widget), warn_part);
+ }
+ else
+ gtk_combo_box_set_active (GTK_COMBO_BOX (m_widget), 0);
+ }
+
+ void warn()
+ {
+ if (m_hasWarn) return;
+ m_hasWarn = true;
+
+ GtkWidget *dialog, *view;
+ dialog = gtk_message_dialog_new (YGDialog::currentWindow(),
+ GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING,
+ GTK_BUTTONS_OK, _("Disk Almost Full !"));
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+ "One of the partitions is reaching its limit of capacity. You may "
+ "have to remove packages if you wish to install some.");
+
+ view = createView (m_model);
+ gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), view);
+
+ gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
+ }
+
+ // utilities
+#if 1
+ static GtkWidget *createView (GtkTreeModel *model)
+ {
+ GtkWidget *view = gtk_tree_view_new_with_model (model), *scroll;
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (view), FALSE);
+ gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (view)),
+ GTK_SELECTION_NONE);
+
+ GtkTreeViewColumn *column;
+ column = gtk_tree_view_column_new_with_attributes (_("Mount Point"),
+ gtk_cell_renderer_text_new(), "text", 0, NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view), column);
+ column = gtk_tree_view_column_new_with_attributes (_("Usage"),
+ gtk_cell_renderer_progress_new(), "value", 1, "text", 2, NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view), column);
+
+ scroll = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
+ GTK_SHADOW_IN);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
+ GTK_POLICY_NEVER, GTK_POLICY_NEVER);
+// gtk_widget_set_size_request (scroll, -1, 50);
+ gtk_container_add (GTK_CONTAINER (scroll), view);
+ gtk_widget_show_all (scroll);
+ return scroll;
+ }
+#endif
+ static GtkWidget *createCombo (GtkTreeModel *model)
+ {
+ GtkWidget *combo = gtk_combo_box_new_with_model (model);
+ GtkCellRenderer *renderer;
+ renderer = gtk_cell_renderer_text_new();
+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), renderer, FALSE);
+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo),
+ renderer, "text", 0, NULL);
+ // let's put all columns to the same width, to make it look like a table
+ g_object_set (G_OBJECT (renderer), "width-chars", 14, NULL);
+ renderer = gtk_cell_renderer_progress_new();
+ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), renderer, TRUE);
+ gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo),
+ renderer, "value", 1, "text", 2, NULL);
+ return combo;
+ }
+};
+
+class PackageSelector : public Filters::Listener, public PackagesView::Listener
+{
+PackagesView *m_packages;
+Filters *m_filters;
+PackageInfo *m_info;
+PackageControl *m_control;
+DiskView *m_disk;
+GtkWidget *m_box;
+TrashWindow *m_trashWin;
+
+public:
+ GtkWidget *getWidget()
+ { return m_box; }
+
+ PackageSelector()
+ {
+ m_packages = new PackagesView();
+ m_packages->setListener (this);
+
+ m_control = new PackageControl();
+ m_info = new PackageInfo();
+
+ GtkWidget *vbox = gtk_vbox_new (FALSE, 6);
+ gtk_box_pack_start (GTK_BOX (vbox), m_packages->getWidget(), TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), m_control->getWidget(), FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), m_info->getWidget(), FALSE, TRUE, 0);
+
+ m_filters = new Filters();
+ m_filters->setListener (this);
+ m_disk = new DiskView();
+
+ GtkWidget *left_box = gtk_vbox_new (FALSE, 6);
+ gtk_box_pack_start (GTK_BOX (left_box), m_filters->getWidget(), TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (left_box), m_disk->getWidget(), FALSE, TRUE, 0);
+
+ m_box = gtk_hbox_new (FALSE, 6);
+ gtk_box_pack_start (GTK_BOX (m_box), left_box, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (m_box), vbox, TRUE, TRUE, 0);
+ gtk_widget_show_all (m_box);
+
+ m_control->setPackages (std::list <Ypp::Package*> ());
+ m_info->setPackage (NULL);
+
+ m_trashWin = new TrashWindow();
+ }
+
+ ~PackageSelector()
+ {
+ delete m_packages;
+ delete m_control;
+ delete m_info;
+ delete m_filters;
+ delete m_disk;
+ delete m_trashWin;
+ }
+
+ virtual void doQuery (Ypp::Query *query)
+ {
+ m_packages->query (query);
+ }
+
+ virtual void packagesSelected (const std::list <Ypp::Package *> &packages)
+ {
+ m_control->setPackages (packages);
+ if (packages.size() == 1)
+ m_info->setPackage (packages.front());
+ else
+ m_info->setPackage (NULL);
+ }
+
+ void packageModified (Ypp::Package *package)
+ {
+ // GTK+ doesn't fire selection change when a selected row changes, so we need
+ // to re-load PackageControl in that occasions.
+ std::list <Ypp::Package *>::iterator it;
+ for (it = m_control->m_packages.begin(); it != m_control->m_packages.end(); it++)
+ if (*it == package)
+ break;
+ if (it != m_control->m_packages.end())
+ m_control->setPackages (m_control->m_packages);
+ }
+};
+
+#include "YPackageSelector.h"
+
+class YGPackageSelector : public YPackageSelector, public YGWidget, public Ypp::Interface
+{
+PackageSelector *m_package_selector;
+
+public:
+ YGPackageSelector (YWidget *parent, long mode)
+ : YPackageSelector (parent, mode),
+ YGWidget (this, parent, true, YGTK_TYPE_WIZARD, NULL)
+ {
+ setBorder (0);
+ YGDialog *dialog = YGDialog::currentDialog();
+ dialog->setCloseCallback (confirm_cb, this);
+
+ GtkWindow *window = YGDialog::currentWindow();
+ gtk_window_resize (window, GTK_WIDGET (window)->allocation.width,
+ MAX (580, GTK_WIDGET (window)->allocation.height));
+
+ YGtkWizard *wizard = YGTK_WIZARD (getWidget());
+ ygtk_wizard_set_header_icon (wizard, window,
+ THEMEDIR "/icons/32x32/apps/yast-software.png");
+ ygtk_wizard_set_header_text (wizard, window, _("Package Selector"));
+ ygtk_wizard_set_help_text (wizard,
+ _("TO WRITE")
+ );
+
+ ygtk_wizard_set_abort_button_label (wizard, _("_Cancel"));
+ ygtk_wizard_set_abort_button_id (wizard, g_strdup ("cancel"), g_free);
+ ygtk_wizard_set_back_button_label (wizard, "");
+ ygtk_wizard_set_next_button_label (wizard, _("_Accept"));
+ ygtk_wizard_set_next_button_id (wizard, g_strdup ("accept"), g_free);
+ g_signal_connect (G_OBJECT (getWidget()), "action-triggered",
+ G_CALLBACK (wizard_action_cb), this);
+
+ m_package_selector = new PackageSelector();
+ gtk_container_add (GTK_CONTAINER (wizard), m_package_selector->getWidget());
+
+ Ypp::get()->setInterface (this);
+ }
+
+ virtual ~YGPackageSelector()
+ {
+ delete m_package_selector;
+ ygtk_zypp_model_finish();
+ }
+
+protected:
+ static void wizard_action_cb (YGtkWizard *wizard, gpointer id,
+ gint id_type, YGPackageSelector *pThis)
+ {
+ IMPL
+ const gchar *action = (gchar *) id;
+
+ if (!strcmp (action, "accept")) {
+ y2milestone ("Closing PackageSelector with 'accept'");
+ YGUI::ui()->sendEvent (new YMenuEvent (YCPSymbol ("accept")));
+ }
+ else if (!strcmp (action, "cancel")) {
+ y2milestone ("Closing PackageSelector with 'cancel'");
+ if (pThis->confirmExit())
+ YGUI::ui()->sendEvent (new YCancelEvent());
+ }
+ }
+
+ bool confirmExit()
+ {
+ if (!Ypp::get()->isModified())
+ return true;
+
+ GtkWidget *dialog;
+ dialog = gtk_message_dialog_new
+ (YGDialog::currentWindow(),
+ GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING,
+ GTK_BUTTONS_NONE, _("Changes not saved!"));
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+ _("Quit anyway?"));
+ gtk_dialog_add_buttons (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_NO,
+ GTK_STOCK_QUIT, GTK_RESPONSE_YES, NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
+
+ bool ok = gtk_dialog_run (GTK_DIALOG (dialog)) ==
+ GTK_RESPONSE_YES;
+ gtk_widget_destroy (dialog);
+ return ok;
+ }
+ static bool confirm_cb (void *pThis)
+ { return ((YGPackageSelector *)pThis)->confirmExit(); }
+
+ virtual bool acceptLicense (Ypp::Package *package, const std::string &license)
+ {
+ std::string title = package->name() + _(" License Agreement");
+ GtkWidget *dialog = gtk_dialog_new_with_buttons (title.c_str(),
+ YGDialog::currentWindow(), GTK_DIALOG_NO_SEPARATOR,
+ _("_Reject"), GTK_RESPONSE_REJECT, _("_Accept"), GTK_RESPONSE_ACCEPT, NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
+
+ GtkWidget *license_view, *license_window;
+
+ license_view = ygtk_html_wrap_new();
+ ygtk_html_wrap_set_text (license_view, license.c_str());
+
+ license_window = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (license_window),
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_shadow_type
+ (GTK_SCROLLED_WINDOW (license_window), GTK_SHADOW_IN);
+ gtk_container_add (GTK_CONTAINER (license_window), license_view);
+
+ GtkBox *vbox = GTK_BOX (GTK_DIALOG(dialog)->vbox);
+ gtk_box_pack_start (vbox, license_window, TRUE, TRUE, 6);
+
+ gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 400);
+ gtk_widget_show_all (dialog);
+
+ gint ret = gtk_dialog_run (GTK_DIALOG (dialog));
+ bool confirmed = (ret == GTK_RESPONSE_ACCEPT);
+
+ gtk_widget_destroy (dialog);
+ return confirmed;
+ }
+
+ virtual bool resolveProblems (std::list <Ypp::Problem *> problems)
+ {
+fprintf (stderr, "resolving %d problems\n", problems.size());
+ // we can't use ordinary radio buttons, as gtk+ enforces that in a group
+ // one must be selected...
+
+ enum ColumnAlias {
+ SHOW_TOGGLE_COL, ACTIVE_TOGGLE_COL, TEXT_COL, WEIGHT_TEXT_COL,
+ APPLY_PTR_COL, TOOLTIP_TEXT_COL
+ };
+
+ struct inner {
+ static void solution_toggled (GtkTreeModel *model, GtkTreePath *path)
+ {
+ GtkTreeStore *store = GTK_TREE_STORE (model);
+ GtkTreeIter iter, parent;
+
+ gboolean enabled;
+ bool *apply;
+ gtk_tree_model_get_iter (model, &iter, path);
+ gtk_tree_model_get (model, &iter, ACTIVE_TOGGLE_COL, &enabled,
+ APPLY_PTR_COL, &apply, -1);
+
+ // disable all the other radios on the group, setting current
+ gtk_tree_model_get_iter (model, &iter, path);
+ if (gtk_tree_model_iter_parent (model, &parent, &iter)) {
+ gtk_tree_model_iter_children (model, &iter, &parent);
+ do {
+ gtk_tree_store_set (store, &iter, ACTIVE_TOGGLE_COL, FALSE, -1);
+ bool *apply;
+ gtk_tree_model_get (model, &iter, APPLY_PTR_COL, &apply, -1);
+ *apply = false;
+ } while (gtk_tree_model_iter_next (model, &iter));
+ }
+
+ enabled = !enabled;
+ if (apply)
+ *apply = enabled;
+ gtk_tree_model_get_iter (model, &iter, path);
+ gtk_tree_store_set (store, &iter, ACTIVE_TOGGLE_COL, enabled, -1);
+ }
+#if 0
+ static void renderer_toggled_cb (GtkCellRenderer *render, gchar *path_str,
+ GtkTreeModel *model)
+ {
+ GtkTreePath *path = gtk_tree_path_new_from_string (path_str);
+ solution_toggled (model, path);
+ gtk_tree_path_free (path);
+ }
+#endif
+ static void cursor_changed_cb (GtkTreeView *view, GtkTreeModel *model)
+ {
+ GtkTreePath *path;
+ gtk_tree_view_get_cursor (view, &path, NULL);
+ solution_toggled (model, path);
+ gtk_tree_path_free (path);
+ }
+ static gboolean query_tooltip_cb (GtkWidget *view, gint x, gint y,
+ gboolean keyboard_mode, GtkTooltip *tooltip, gpointer data)
+ {
+ GtkTreeModel *model;
+ GtkTreePath *path;
+ GtkTreeIter iter;
+ if (gtk_tree_view_get_tooltip_context (GTK_TREE_VIEW (view),
+ &x, &y, keyboard_mode, &model, &path, &iter)) {
+ gchar *tooltip_str;
+ gtk_tree_model_get (model, &iter, TOOLTIP_TEXT_COL,
+ &tooltip_str, -1);
+ gtk_tree_view_set_tooltip_row (GTK_TREE_VIEW (view), tooltip, path);
+ gtk_tree_path_free (path);
+ if (tooltip_str) {
+ gtk_tooltip_set_text (tooltip, tooltip_str);
+ g_free (tooltip_str);
+ return TRUE;
+ }
+ }
+ return FALSE;
+
+
+/*
+ GtkTreePath *path;
+ if (gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (view), x, y,
+ &path, NULL, NULL, NULL)) {
+ GtkTreeIter iter;
+ gchar *tooltip_text;
+ gtk_tree_model_get_iter (model, &iter, path);
+ gtk_tree_path_free (path);
+ gtk_tree_model_get (model, &iter,
+ TOOLTIP_TEXT_COL, &tooltip_text, -1);
+ // some strings are just " ", so we need to check that
+ // now,
+ bool empty = true;
+ for (int i = 0; tooltip_text[i] && empty; i++)
+ if (tooltip_text[i] != ' ')
+ empty = false;
+ if (empty)
+ gtk_tooltip_set_text (tooltip, "(no details)");
+ else
+ gtk_tooltip_set_text (tooltip, tooltip_text);
+ g_free (tooltip_text);
+ return TRUE;
+ }
+ return FALSE;
+*/
+ }
+ };
+
+ // model
+ GtkTreeStore *store = gtk_tree_store_new (6, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
+ G_TYPE_STRING, G_TYPE_INT, G_TYPE_POINTER, G_TYPE_STRING);
+ for (std::list <Ypp::Problem *>::iterator it = problems.begin();
+ it != problems.end(); it++) {
+ GtkTreeIter problem_iter;
+ gtk_tree_store_append (store, &problem_iter, NULL);
+ gtk_tree_store_set (store, &problem_iter, SHOW_TOGGLE_COL, FALSE,
+ TEXT_COL, (*it)->description.c_str(),
+ WEIGHT_TEXT_COL, PANGO_WEIGHT_BOLD, APPLY_PTR_COL, NULL,
+ TOOLTIP_TEXT_COL, (*it)->details.c_str(), -1);
+
+ for (int i = 0; (*it)->getSolution (i); i++) {
+ Ypp::Problem::Solution *solution = (*it)->getSolution (i);
+ GtkTreeIter solution_iter;
+ const gchar *tooltip_text = solution->details.c_str();
+ if (solution->details.empty())
+ tooltip_text = NULL;
+ gtk_tree_store_append (store, &solution_iter, &problem_iter);
+ gtk_tree_store_set (store, &solution_iter, SHOW_TOGGLE_COL, TRUE,
+ ACTIVE_TOGGLE_COL, FALSE, TEXT_COL, solution->description.c_str(),
+ APPLY_PTR_COL, &solution->apply,
+ TOOLTIP_TEXT_COL, tooltip_text, -1);
+ }
+ }
+
+ // interface
+ GtkWidget *dialog = gtk_message_dialog_new (YGDialog::currentWindow(),
+ GtkDialogFlags (0), GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE,
+ _("There are some conflicts on the transaction that must be "
+ "solved manually."));
+ gtk_dialog_add_buttons (GTK_DIALOG (dialog),
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_APPLY, GTK_RESPONSE_APPLY, NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_APPLY);
+
+ GtkWidget *view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
+ g_object_unref (G_OBJECT (store));
+ gtk_tree_selection_set_mode (gtk_tree_view_get_selection (
+ GTK_TREE_VIEW (view)), GTK_SELECTION_NONE);
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (view), FALSE);
+ gtk_tree_view_set_search_column (GTK_TREE_VIEW (view), TEXT_COL);
+ GtkTreeViewColumn *column;
+ GtkCellRenderer *renderer;
+ renderer = gtk_cell_renderer_toggle_new();
+ gtk_cell_renderer_toggle_set_radio (
+ GTK_CELL_RENDERER_TOGGLE (renderer), TRUE);
+/* g_signal_connect (G_OBJECT (renderer), "toggled",
+ G_CALLBACK (inner::renderer_toggled_cb), store);*/
+ // we should not connect the actual toggle button, as we toggle on row press
+ g_signal_connect (G_OBJECT (view), "cursor-changed",
+ G_CALLBACK (inner::cursor_changed_cb), store);
+ column = gtk_tree_view_column_new_with_attributes ("", renderer,
+ "visible", SHOW_TOGGLE_COL, "active", ACTIVE_TOGGLE_COL, NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view), column);
+ renderer = gtk_cell_renderer_text_new();
+ column = gtk_tree_view_column_new_with_attributes ("", renderer,
+ "text", TEXT_COL, "weight", WEIGHT_TEXT_COL, NULL);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view), column);
+ gtk_tree_view_expand_all (GTK_TREE_VIEW (view));
+ gtk_widget_set_has_tooltip (view, TRUE);
+ g_signal_connect (G_OBJECT (view), "query-tooltip",
+ G_CALLBACK (inner::query_tooltip_cb), store);
+
+ GtkWidget *scroll = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
+ GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
+ GTK_SHADOW_IN);
+ gtk_container_add (GTK_CONTAINER (scroll), view);
+ gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), scroll);
+
+
+#if 0
+ // version that uses viewport, labels and radio buttons -- unfortunately,
+ // gtk+ enforces that one radio button per group to be selected -- we don't
+ // want that as the user may decide to do nothing for a certain action.
+ // We also don't want to add a "Do nothing" radio, as that would imply would
+ // dismiss the conflict. No, we just want to let the user try to resolve current
+ // conflicts...
+ struct inner {
+ static void solution_toggled (GtkToggleButton *toggle, bool *apply)
+ { *apply = gtk_toggle_button_get_active (toggle); }
+ };
+
+ GtkWidget *dialog = gtk_dialog_new_with_buttons (_("Problem Resolver"),
+ YGUI::ui()->currentWindow(), GtkDialogFlags (0),
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_APPLY, GTK_RESPONSE_APPLY, NULL);
+
+ GtkWidget *view_port = gtk_viewport_new (NULL, NULL);
+ gtk_viewport_set_shadow_type (GTK_VIEWPORT (view_port), GTK_SHADOW_NONE);
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), view_port,
+ TRUE, TRUE, 0);
+ GtkWidget *main_box = gtk_vbox_new (FALSE, 6);
+ gtk_container_add (GTK_CONTAINER (view_port), main_box);
+
+fprintf (stderr, "populating main box\n");
+ for (std::list <Ypp::Problem *>::iterator it = problems.begin();
+ it != problems.end(); it++) {
+ GtkWidget *label, *box;
+fprintf (stderr, "creating label: %s\n", (*it)->description.c_str());
+ label = gtk_label_new ((*it)->description.c_str());
+ YGUtils::setWidgetFont (label, PANGO_WEIGHT_BOLD, PANGO_SCALE_MEDIUM);
+fprintf (stderr, "setting tooltyp: %s\n", (*it)->details.c_str());
+ if (!(*it)->details.empty())
+ gtk_widget_set_tooltip_text (label, (*it)->details.c_str());
+
+ GSList *group = NULL;
+ box = gtk_vbox_new (FALSE, 6);
+ for (int i = 0; (*it)->getSolution (i); i++) {
+ Ypp::Problem::Solution *solution = (*it)->getSolution (i);
+fprintf (stderr, "creating radio: %s\n", solution->description.c_str());
+ GtkWidget *radio = gtk_radio_button_new_with_label (
+ group, solution->description.c_str());
+fprintf (stderr, "setting tooltip: %s\n", (*it)->details.c_str());
+ if (!solution->details.empty())
+ gtk_widget_set_tooltip_text (radio, solution->details.c_str());
+ group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radio));
+ gtk_box_pack_start (GTK_BOX (box), radio, FALSE, TRUE, 0);
+ g_signal_connect (G_OBJECT (radio), "toggled",
+ G_CALLBACK (inner::solution_toggled), &solution->apply);
+ }
+
+ gtk_box_pack_start (GTK_BOX (main_box), label, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (main_box), box, FALSE, TRUE, 0);
+ }
+#endif
+
+ gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
+ gtk_window_set_default_size (GTK_WINDOW (dialog), -1, 480);
+ gtk_widget_show_all (dialog);
+
+ bool apply = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_APPLY);
+ gtk_widget_destroy (dialog);
+ return apply;
+ }
+
+ virtual void packageModified (Ypp::Package *package)
+ {
+ m_package_selector->packageModified (package);
+ }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+YPackageSelector *YGWidgetFactory::createPackageSelector (YWidget *parent, long mode)
+{
+/* if (opt.youMode.value())
+ return new YGPatchSelector (opt, YGWidget::get (parent));
+ else*/
+ return new YGPackageSelector (parent, mode);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGProgressBar.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGProgre…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGProgressBar.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGProgressBar.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,160 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YGWidget.h"
+
+#include "YProgressBar.h"
+
+class YGProgressBar : public YProgressBar, public YGLabeledWidget
+{
+public:
+ YGProgressBar (YWidget *parent, const string &label, int maxValue)
+ : YProgressBar (parent, label, maxValue)
+ // NOTE: its label widget is positionated at the vertical, because its label
+ // may change often and so will its size, which will look odd (we may want
+ // to make the label widget to only grow).
+ , YGLabeledWidget (this, parent, label, YD_VERT, true,
+ GTK_TYPE_PROGRESS_BAR, NULL)
+ {
+ }
+
+ virtual ~YGProgressBar() {}
+
+ // YProgressBar
+ virtual void setValue (int value)
+ {
+ IMPL
+ float fraction = ((float) value) / maxValue();
+ gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (getWidget()), fraction);
+ YProgressBar::setValue (value);
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN (YProgressBar)
+};
+
+YProgressBar *YGWidgetFactory::createProgressBar (YWidget *parent, const string &label,
+ int maxValue)
+{
+ IMPL
+ return new YGProgressBar (parent, label, maxValue);
+}
+
+#include "YDownloadProgress.h"
+
+class YGDownloadProgress : public YDownloadProgress, public YGLabeledWidget
+{
+ guint timeout_id;
+
+public:
+ YGDownloadProgress (YWidget *parent, const string &label,
+ const string &filename, YFileSize_t expectedFileSize)
+ : YDownloadProgress (parent, label, filename, expectedFileSize)
+ , YGLabeledWidget (this, parent, label, YD_HORIZ, true,
+ GTK_TYPE_PROGRESS_BAR, NULL)
+ {
+ timeout_id = g_timeout_add (250, timeout_cb, this);
+ }
+
+ virtual ~YGDownloadProgress()
+ {
+ g_source_remove (timeout_id);
+ }
+
+ virtual void setExpectedSize (YFileSize_t size)
+ {
+ YDownloadProgress::setExpectedSize (size);
+ timeout_cb (this); // force an update
+ }
+
+ static gboolean timeout_cb (void *pData)
+ {
+ YGDownloadProgress *pThis = (YGDownloadProgress*) pData;
+ float fraction = ((float) pThis->currentFileSize()) / pThis->expectedSize();
+ if (fraction > 1) fraction = 1;
+ gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (pThis->getWidget()), fraction);
+ return TRUE;
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN (YDownloadProgress)
+};
+
+YDownloadProgress *YGOptionalWidgetFactory::createDownloadProgress (YWidget *parent,
+ const string &label, const string &filename, YFileSize_t expectedFileSize)
+{
+ IMPL
+ return new YGDownloadProgress (parent, label, filename, expectedFileSize);
+}
+
+#include "ygtkratiobox.h"
+#include "YMultiProgressMeter.h"
+
+class YGMultiProgressMeter : public YMultiProgressMeter, public YGWidget
+{
+public:
+ YGMultiProgressMeter (YWidget *parent, YUIDimension dim, const vector<float> &maxValues)
+ : YMultiProgressMeter (parent, dim, maxValues)
+ , YGWidget (this, parent, true,
+ horizontal() == YD_HORIZ ? YGTK_TYPE_RATIO_HBOX : YGTK_TYPE_RATIO_VBOX, NULL)
+ {
+// ygtk_ratio_box_set_homogeneous (YGTK_RATIO_BOX (getWidget()), TRUE);
+ ygtk_ratio_box_set_spacing (YGTK_RATIO_BOX (getWidget()), 2);
+ for (int s = 0; s < segments(); s++) {
+ GtkWidget* bar = gtk_progress_bar_new();
+ gtk_progress_bar_set_orientation (GTK_PROGRESS_BAR (bar),
+ horizontal() ? GTK_PROGRESS_LEFT_TO_RIGHT : GTK_PROGRESS_BOTTOM_TO_TOP);
+ // Progress bars would ask for too much size with weight...
+ const int min_size = 5;
+ if (horizontal())
+ gtk_widget_set_size_request (bar, min_size, -1);
+ else
+ gtk_widget_set_size_request (bar, -1, min_size);
+ ygtk_ratio_box_pack (YGTK_RATIO_BOX (getWidget()), bar,
+ getSegmentWeight (s), TRUE, TRUE, 0);
+ }
+
+ ygtk_adj_size_set_max (YGTK_ADJ_SIZE (m_adj_size), horizontal() ? 200 : 0,
+ horizontal() ? 0 : 200);
+ gtk_widget_show_all (getWidget());
+ }
+
+ virtual void doUpdate()
+ {
+ GList* children = gtk_container_get_children (GTK_CONTAINER (getWidget()));
+ int s = 0;
+ for (GList *i = children; i && s < segments(); i = i->next, s++) {
+ GtkProgressBar *bar = GTK_PROGRESS_BAR (i->data);
+ gtk_progress_bar_set_fraction (bar, getSegmentValue (s));
+ }
+ g_list_free (children);
+ }
+
+ int getSegmentWeight (int n)
+ {
+ if (vertical())
+ n = (segments() - n) - 1;
+ return maxValue (n);
+ }
+ float getSegmentValue (int n)
+ {
+ if (vertical())
+ n = (segments() - n) - 1;
+ if (currentValue (n) == -1)
+ return 0;
+ return 1.0 - (((float) currentValue (n)) / maxValue (n));
+ }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+YMultiProgressMeter *YGOptionalWidgetFactory::createMultiProgressMeter (YWidget *parent,
+ YUIDimension dim, const vector<float> &maxValues)
+{
+ return new YGMultiProgressMeter (parent, dim, maxValues);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGPushButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGPushBu…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGPushButton.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGPushButton.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,83 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YPushButton.h"
+#include "YGUtils.h"
+#include "YGWidget.h"
+
+class YGPushButton : public YPushButton, public YGWidget
+{
+GtkWidget *m_image;
+
+public:
+ YGPushButton (YWidget *parent, const string &label)
+ : YPushButton (parent, label),
+ YGWidget (this, parent, true, GTK_TYPE_BUTTON, "can-default", TRUE, NULL)
+ {
+ IMPL
+ m_image = NULL;
+ setMinSizeInChars (10, 0);
+ gtk_button_set_use_underline (GTK_BUTTON (getWidget()), TRUE);
+ setLabel (label);
+ g_signal_connect (G_OBJECT (getWidget ()), "clicked",
+ G_CALLBACK (clicked_cb), this);
+ }
+
+ // YPushButton
+ virtual void setLabel (const string &label)
+ {
+ IMPL
+ string str = YGUtils::mapKBAccel (label);
+ gtk_button_set_label (GTK_BUTTON (getWidget()), str.c_str());
+ YGUtils::setStockIcon (getWidget(), str);
+ YPushButton::setLabel (label);
+ }
+
+ virtual void setIcon (const string &icon)
+ {
+ IMPL
+ if (icon.empty())
+ // no need to worry about freeing m_image, let it live with button
+ gtk_widget_hide (m_image);
+ else {
+ string path (icon);
+ if (path[0] != '/')
+ path = ICON_DIR + path;
+
+ GError *error = 0;
+ GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (path.c_str(), &error);
+ if (pixbuf) {
+ m_image = gtk_image_new_from_pixbuf (pixbuf);
+ gtk_button_set_image (GTK_BUTTON (getWidget()), m_image);
+ g_object_unref (G_OBJECT (pixbuf));
+ }
+ else
+ y2warning ("YGPushButton: Couldn't load icon image: %s.\n"
+ "Reason: %s", path.c_str(), error->message);
+ }
+ }
+
+ virtual void setDefaultButton (bool isDefault)
+ {
+ if (isDefault) {
+ gtk_widget_grab_focus (getWidget());
+ gtk_widget_grab_default (getWidget());
+ }
+ YPushButton::setDefaultButton (isDefault);
+ }
+
+ static void clicked_cb (GtkButton *button, YGPushButton *pThis)
+ { pThis->emitEvent (YEvent::Activated, false); }
+
+ YGWIDGET_IMPL_COMMON
+};
+
+YPushButton *YGWidgetFactory::createPushButton (YWidget *parent, const string &label)
+{
+ return new YGPushButton (parent, label);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGRadioButton.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGRadioB…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGRadioButton.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGRadioButton.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,215 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include "YGUI.h"
+#include "YGUtils.h"
+#include "YGWidget.h"
+
+// Sub-class GtkRadioButton to get a widget that renders like
+// a radio-button, but behaves like a check/toggle-button.
+static GType getCheckRadioButtonType()
+{
+ static GType type = 0;
+
+ if (type)
+ return type;
+
+ static const GTypeInfo info = {
+ sizeof (GtkRadioButtonClass), NULL, NULL,
+ NULL, NULL, NULL,
+ sizeof (GtkRadioButton), 0, NULL
+ };
+ type = g_type_register_static (GTK_TYPE_RADIO_BUTTON, "YGRadioButton",
+ &info, GTypeFlags(0));
+ // save a class_init function
+ GtkButtonClass *klass_new = GTK_BUTTON_CLASS (g_type_class_ref (type));
+ GtkButtonClass *klass_sane =
+ GTK_BUTTON_CLASS (g_type_class_ref (GTK_TYPE_TOGGLE_BUTTON));
+ klass_new->clicked = klass_sane->clicked;
+ return type;
+}
+
+#include "YRadioButtonGroup.h"
+#include "YRadioButton.h"
+
+class YGRadioButton : public YRadioButton, public YGWidget
+{
+public:
+ YGRadioButton (YWidget *parent, const std::string &label, bool isChecked)
+ : YRadioButton (parent, label),
+ YGWidget (this, parent, true, getCheckRadioButtonType(), NULL)
+ {
+ IMPL
+ setBorder (0);
+ setValue (isChecked);
+
+ gtk_button_set_use_underline (GTK_BUTTON (getWidget()), TRUE);
+ setLabel (label);
+
+ g_signal_connect (G_OBJECT (getWidget()), "toggled",
+ G_CALLBACK (toggled_cb), this);
+ }
+
+ // YRadioButton
+ virtual void setLabel (const string &text)
+ {
+ // NOTE: we can't just set a gtk_widget_modify() at the initialization
+ // because each gtk_button_set_label() creates a new label
+ IMPL
+ string str = YGUtils::mapKBAccel(text.c_str());
+ gtk_button_set_label (GTK_BUTTON (getWidget()), str.c_str());
+ YRadioButton::setLabel (text);
+ }
+
+ virtual bool value()
+ {
+ IMPL
+ return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (getWidget()));
+ }
+
+ virtual void setValue (bool checked)
+ {
+ IMPL
+ g_signal_handlers_block_by_func (getWidget(), (gpointer) toggled_cb, this);
+
+ if (value())
+ buttonGroup()->uncheckOtherButtons (this);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (getWidget()), checked);
+
+ g_signal_handlers_unblock_by_func (getWidget(), (gpointer) toggled_cb, this);
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGWIDGET_IMPL_USE_BOLD (YRadioButton)
+
+ // callbacks
+ static void toggled_cb (GtkButton *button, YGRadioButton *pThis)
+ {
+ IMPL
+ if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)))
+ pThis->buttonGroup()->uncheckOtherButtons (pThis);
+ else {
+ g_signal_handlers_block_by_func (button, (gpointer) toggled_cb, pThis);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
+ g_signal_handlers_unblock_by_func (button, (gpointer) toggled_cb, pThis);
+ }
+
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+};
+
+YRadioButton *YGWidgetFactory::createRadioButton (YWidget *parent, const string &label,
+ bool isChecked)
+{
+ IMPL
+ return new YGRadioButton (parent, label, isChecked);
+}
+
+// YRadioButtonGroup
+
+class YGRadioButtonGroup : public YRadioButtonGroup, public YGWidget
+{
+public:
+ YGRadioButtonGroup(YWidget *parent)
+ : YRadioButtonGroup (parent),
+ YGWidget (this, parent, true, GTK_TYPE_EVENT_BOX, NULL)
+ {}
+
+ YGWIDGET_IMPL_COMMON
+ YGWIDGET_IMPL_CHILD_ADDED (m_widget)
+ YGWIDGET_IMPL_CHILD_REMOVED (m_widget)
+};
+
+YRadioButtonGroup *YGWidgetFactory::createRadioButtonGroup (YWidget *parent)
+{
+ return new YGRadioButtonGroup (parent);
+}
+
+#include "YCheckBox.h"
+
+class YGCheckBox : public YCheckBox, public YGWidget
+{
+ bool m_isBold;
+
+public:
+ YGCheckBox(YWidget *parent, const string &label, bool isChecked)
+ : YCheckBox (parent, label),
+ YGWidget (this, parent, true, GTK_TYPE_CHECK_BUTTON, NULL)
+ {
+ IMPL
+ setBorder (0);
+
+ gtk_button_set_use_underline (GTK_BUTTON (getWidget()), TRUE);
+ setLabel (label);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (getWidget()), isChecked);
+
+ g_signal_connect (G_OBJECT (getWidget ()), "toggled",
+ G_CALLBACK (toggled_cb), this);
+ }
+
+ // YCheckButton
+ virtual void setLabel (const string &text)
+ {
+ IMPL
+ string str = YGUtils::mapKBAccel(text);
+ gtk_button_set_label (GTK_BUTTON (getWidget()), str.c_str());
+ YCheckBox::setLabel (text);
+ }
+
+ virtual YCheckBoxState value()
+ {
+ IMPL
+ GtkToggleButton *button = GTK_TOGGLE_BUTTON (getWidget());
+
+ if (gtk_toggle_button_get_inconsistent (button))
+ return YCheckBox_dont_care;
+ return gtk_toggle_button_get_active (button) ? YCheckBox_on : YCheckBox_off;
+ }
+
+ virtual void setValue (YCheckBoxState value)
+ {
+ IMPL
+ GtkToggleButton *button = GTK_TOGGLE_BUTTON (getWidget());
+
+ g_signal_handlers_block_by_func (getWidget(), (gpointer) toggled_cb, this);
+
+ switch (value) {
+ case YCheckBox_dont_care:
+ gtk_toggle_button_set_inconsistent (button, TRUE);
+ break;
+ case YCheckBox_on:
+ gtk_toggle_button_set_inconsistent (button, FALSE);
+ gtk_toggle_button_set_active (button, TRUE);
+ break;
+ case YCheckBox_off:
+ gtk_toggle_button_set_inconsistent (button, FALSE);
+ gtk_toggle_button_set_active (button, FALSE);
+ break;
+ }
+
+ g_signal_handlers_unblock_by_func (getWidget(), (gpointer) toggled_cb, this);
+ }
+
+ static void toggled_cb (GtkBox *box, YGCheckBox *pThis)
+ {
+ IMPL
+ GtkToggleButton *button = GTK_TOGGLE_BUTTON (box);
+ if (gtk_toggle_button_get_inconsistent (button))
+ pThis->setValue (YCheckBox_on);
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGWIDGET_IMPL_USE_BOLD (YCheckBox)
+};
+
+YCheckBox *YGWidgetFactory::createCheckBox (YWidget *parent, const string &label,
+ bool isChecked)
+{
+ IMPL
+ return new YGCheckBox (parent, label, isChecked);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGSelectionModel.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGSelect…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGSelectionModel.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGSelectionModel.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,151 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <gtk/gtk.h>
+#include "YGSelectionModel.h"
+#include "YGUtils.h"
+
+YGSelectionModel::YGSelectionModel (bool ordinaryModel, bool isTree)
+ : isTree (isTree)
+{
+ if (ordinaryModel) {
+ vector <GType> cols;
+ cols.push_back (G_TYPE_STRING);
+ cols.push_back (GDK_TYPE_PIXBUF);
+ createModel (cols);
+ }
+}
+
+YGSelectionModel::~YGSelectionModel()
+{ g_object_unref (G_OBJECT (model)); }
+
+void YGSelectionModel::createModel (const vector <GType> &types)
+{
+ int colsNb = types.size()+1;
+ GType types_array [colsNb];
+ int i = 0;
+ for (vector <GType>::const_iterator it = types.begin(); it != types.end(); it++)
+ types_array [i++] = *it;
+ types_array[colsNb-1] = G_TYPE_POINTER;
+
+ if (isTree)
+ model = GTK_TREE_MODEL (gtk_tree_store_newv (colsNb, types_array));
+ else
+ model = GTK_TREE_MODEL (gtk_list_store_newv (colsNb, types_array));
+ setModel (model);
+}
+
+GtkTreeModel *YGSelectionModel::getModel()
+{ return model; }
+
+GtkListStore *YGSelectionModel::getListStore()
+{ return model ? GTK_LIST_STORE (model) : NULL; }
+GtkTreeStore *YGSelectionModel::getTreeStore()
+{ return model ? GTK_TREE_STORE (model) : NULL; }
+
+bool YGSelectionModel::isEmpty()
+{
+ GtkTreeIter iter;
+ return gtk_tree_model_get_iter_first (getModel(), &iter);
+}
+
+void YGSelectionModel::doAddItem (YItem *item)
+{
+ GtkTreeIter iter;
+ addRow (&iter, item);
+ setCellLabel (&iter, LABEL_COLUMN, item->label());
+ setCellIcon (&iter, ICON_COLUMN, item->iconName());
+}
+
+void YGSelectionModel::doDeleteAllItems()
+{
+ if (isTree)
+ gtk_tree_store_clear (getTreeStore());
+ else
+ gtk_list_store_clear (getListStore());
+}
+
+YItem *YGSelectionModel::getItem (GtkTreeIter *iter)
+{
+ gpointer ptr;
+ gtk_tree_model_get (getModel(), iter, getPtrCol(), &ptr, -1);
+ return (YItem *) ptr;
+}
+
+bool YGSelectionModel::getIter (YItem *item, GtkTreeIter *iter)
+{
+ if (!item)
+ return false;
+ if (!gtk_tree_model_get_iter_first (getModel(), iter))
+ return false;
+
+ do {
+ gpointer ptr;
+ gtk_tree_model_get (getModel(), iter, getPtrCol(), &ptr, -1);
+ if (ptr == item)
+ return true;
+ } while (gtk_tree_model_iter_next (getModel(), iter));
+ return false;
+}
+
+void YGSelectionModel::implFocusItem (YItem *item)
+{
+ GtkTreeIter iter;
+ if (getIter (item, &iter))
+ focusItem (&iter);
+}
+
+int YGSelectionModel::getPtrCol()
+{
+ return gtk_tree_model_get_n_columns (getModel()) - 1;
+}
+
+void YGSelectionModel::addRow (GtkTreeIter *iter, YItem *item)
+{
+ bool empty = isEmpty();
+
+ if (isTree) {
+ GtkTreeIter *parent = NULL;
+ getIter (item->parent(), parent);
+ GtkTreeStore *store = getTreeStore();
+ gtk_tree_store_append (store, iter, parent);
+ gtk_tree_store_set (store, iter, getPtrCol(), item, -1);
+ }
+ else {
+ GtkListStore *store = getListStore();
+ gtk_list_store_append (store, iter);
+ gtk_list_store_set (store, iter, getPtrCol(), item, -1);
+ }
+
+ if (item->selected() || empty)
+ implFocusItem (item);
+}
+
+void YGSelectionModel::setCellLabel (GtkTreeIter *iter, int col, const string &label)
+{
+ if (isTree)
+ gtk_tree_store_set (getTreeStore(), iter, col, label.c_str(), -1);
+ else
+ gtk_list_store_set (getListStore(), iter, col, label.c_str(), -1);
+}
+
+void YGSelectionModel::setCellIcon (GtkTreeIter *iter, int col, const string &icon)
+{
+ GdkPixbuf *pixbuf = YGUtils::loadPixbuf (icon);
+ if (isTree)
+ gtk_tree_store_set (getTreeStore(), iter, col, pixbuf, -1);
+ else
+ gtk_list_store_set (getListStore(), iter, col, pixbuf, -1);
+}
+
+void YGSelectionModel::setCellToggle (GtkTreeIter *iter, int col, bool selected)
+{
+ if (isTree)
+ gtk_tree_store_set (getTreeStore(), iter, col, selected, -1);
+ else
+ gtk_list_store_set (getListStore(), iter, col, selected, -1);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGSelectionModel.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGSelect…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGSelectionModel.h (added)
+++ trunk/gtk/unstable-libyui/src/YGSelectionModel.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,85 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* Builds a model for the given YItems to be used by YSelectedWidgets. */
+
+#ifndef YGSELECTION_MODEL_H
+#define YGSELECTION_MODEL_H
+
+#include <YItem.h>
+#include <YSelectionWidget.h>
+#include <gtk/gtktreemodel.h>
+#include <gtk/gtkliststore.h>
+#include <gtk/gtktreestore.h>
+
+struct YGSelectionModel
+{
+ // ordinary model columns
+ enum ColumnIndex {
+ LABEL_COLUMN, ICON_COLUMN
+ };
+
+ YGSelectionModel (bool ordinaryModel, bool isTree);
+ virtual ~YGSelectionModel();
+
+ // the model may not necessarly be created at construction
+ GtkTreeModel *getModel();
+ virtual void setModel (GtkTreeModel *model) = 0;
+ void createModel (const vector <GType> &types);
+
+ void doAddItem (YItem *item);
+ void doDeleteAllItems();
+
+ virtual void focusItem (GtkTreeIter *iter) = 0;
+ virtual void unfocusAllItems() = 0;
+
+ YItem *getItem (GtkTreeIter *iter);
+ bool getIter (YItem *item, GtkTreeIter *iter);
+
+ void addRow (GtkTreeIter *iter, YItem *item);
+ void setCellLabel (GtkTreeIter *iter, int col, const string &label);
+ void setCellIcon (GtkTreeIter *iter, int col, const string &icon);
+ void setCellToggle (GtkTreeIter *iter, int col, bool selected);
+
+ int getPtrCol();
+
+protected:
+ void implFocusItem (YItem *item);
+private:
+ GtkTreeModel *model;
+ bool isTree;
+ GtkListStore *getListStore();
+ GtkTreeStore *getTreeStore();
+ bool isEmpty();
+};
+
+#define YGSELECTION_WIDGET_IMPL_ADD(ParentClass) \
+ virtual void addItem(YItem *item) { \
+ doAddItem (item); \
+ ParentClass::addItem (item); \
+ }
+
+#define YGSELECTION_WIDGET_IMPL_CLEAR(ParentClass) \
+ virtual void deleteAllItems() { \
+ doDeleteAllItems(); \
+ ParentClass::deleteAllItems(); \
+ }
+
+#define YGSELECTION_WIDGET_IMPL_SELECT(ParentClass) \
+ virtual void selectItem (YItem *item) { \
+ implFocusItem (item); \
+ ParentClass::selectItem (item); \
+ } \
+ virtual void deselectAllItems() { \
+ unfocusAllItems(); \
+ ParentClass::deselectAllItems(); \
+ }
+
+#define YGSELECTION_WIDGET_IMPL_ALL(ParentClass) \
+ YGSELECTION_WIDGET_IMPL_ADD(ParentClass) \
+ YGSELECTION_WIDGET_IMPL_CLEAR(ParentClass) \
+ YGSELECTION_WIDGET_IMPL_SELECT(ParentClass)
+
+#endif /*YGSELECTION_MODEL_H*/
+
Added: trunk/gtk/unstable-libyui/src/YGTable.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGTable.…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGTable.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGTable.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,419 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YGUtils.h"
+#include "YGWidget.h"
+#include "YSelectionWidget.h"
+#include "YGSelectionModel.h"
+
+/* A generic widget for table related widgets. */
+class YGTableView : public YGScrolledWidget, public YGSelectionModel
+{
+protected:
+ int m_colsNb;
+
+public:
+ YGTableView (YWidget *ywidget, YWidget *parent, const string &label,
+ bool ordinaryModel, bool isTree)
+ : YGScrolledWidget (ywidget, parent, label, YD_VERT, true,
+ GTK_TYPE_TREE_VIEW, NULL)
+ , YGSelectionModel (ordinaryModel, isTree)
+ {
+ IMPL
+ if (ordinaryModel) {
+ addColumn (G_TYPE_STRING, "", YAlignUnchanged, YGSelectionModel::LABEL_COLUMN);
+ addColumn (GDK_TYPE_PIXBUF, "", YAlignUnchanged, YGSelectionModel::ICON_COLUMN);
+ }
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (getWidget()), FALSE);
+
+ /* Yast tools expect the user to be unable to un-select the row. They
+ generally don't check to see if the returned value is -1. So, just
+ disallow un-selection. */
+ gtk_tree_selection_set_mode (gtk_tree_view_get_selection (
+ GTK_TREE_VIEW (getWidget())), GTK_SELECTION_BROWSE);
+
+ // let the derivates do the event hooks. They have subtile differences.
+ }
+
+ inline GtkTreeView *getView()
+ { return GTK_TREE_VIEW (getWidget()); }
+
+ void addColumn (GType type, string header, YAlignmentType header_align,
+ int col_nb, bool isEllipsize = false)
+ {
+ IMPL
+ GtkTreeViewColumn *column = 0;
+
+ // The allignment of the column items
+ gfloat xalign = 0.0;
+ switch (header_align) {
+ case YAlignUnchanged:
+ case YAlignBegin:
+ break;
+ case YAlignCenter:
+ xalign = 0.5;
+ break;
+ case YAlignEnd:
+ xalign = 1.0;
+ break;
+ }
+
+ if (type == G_TYPE_STRING) {
+ GtkCellRenderer *renderer = gtk_cell_renderer_text_new();
+ g_object_set (renderer, "xalign", xalign, NULL);
+ // set the last column, the expandable one, as wrapable
+ if (isEllipsize)
+ g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
+ column = gtk_tree_view_column_new_with_attributes (header.c_str(),
+ renderer, "text", col_nb, NULL);
+ }
+ else if (type == GDK_TYPE_PIXBUF) {
+ GtkCellRenderer *renderer = gtk_cell_renderer_pixbuf_new();
+ g_object_set (renderer, "xalign", xalign, NULL);
+ column = gtk_tree_view_column_new_with_attributes (header.c_str(),
+ renderer, "pixbuf", col_nb, NULL);
+ }
+ else if (type == G_TYPE_BOOLEAN) { // toggle button
+ GtkCellRenderer *renderer = gtk_cell_renderer_toggle_new();
+ g_object_set_data (G_OBJECT (renderer), "column", GINT_TO_POINTER (col_nb));
+ g_object_set (renderer, "xalign", xalign, NULL);
+ column = gtk_tree_view_column_new_with_attributes (header.c_str(),
+ renderer, "active", col_nb, NULL);
+
+ g_signal_connect (G_OBJECT (renderer), "toggled",
+ G_CALLBACK (toggled_cb), this);
+ }
+ else
+ g_error ("YGTable: no support for column of given type");
+
+ gtk_tree_view_column_set_resizable (column, TRUE);
+ gtk_tree_view_append_column (getView(), column);
+ }
+
+ virtual void setModel (GtkTreeModel *model)
+ { gtk_tree_view_set_model (GTK_TREE_VIEW (getWidget()), model); }
+
+ YItem *getFocusItem()
+ {
+ GtkTreeIter iter;
+ GtkTreePath *path;
+ gtk_tree_view_get_cursor (getView(), &path, NULL);
+ gtk_tree_model_get_iter (getModel(), &iter, path);
+ gtk_tree_path_free (path);
+ return getItem (&iter);
+ }
+
+ virtual void focusItem (GtkTreeIter *iter)
+ {
+ blockEvents();
+ GtkTreePath *path = gtk_tree_model_get_path (getModel(), iter);
+ gtk_tree_view_set_cursor (GTK_TREE_VIEW (getWidget()), path, NULL, false);
+ gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (getWidget()), path, NULL,
+ TRUE, 0.5, 0.5);
+ gtk_tree_path_free (path);
+ unblockEvents();
+ }
+
+ virtual void unfocusAllItems()
+ {
+ blockEvents();
+ GtkTreeSelection *selection = gtk_tree_view_get_selection (getView());
+ gtk_tree_selection_unselect_all (selection);
+ unblockEvents();
+ }
+
+protected:
+ void blockEvents()
+ {
+ g_signal_handlers_block_by_func (getWidget(), (gpointer) selected_cb, this);
+ g_signal_handlers_block_by_func (getWidget(), (gpointer) selected_delayed_cb, this);
+ }
+ void unblockEvents()
+ {
+ g_signal_handlers_unblock_by_func (getWidget(), (gpointer) selected_cb, this);
+ g_signal_handlers_unblock_by_func (getWidget(), (gpointer) selected_delayed_cb, this);
+ }
+
+ // toggled by user (through clicking on the renderer or some other action)
+ void toggle (GtkTreePath *path, gint column)
+ {
+ IMPL
+ GtkTreeIter iter;
+ if (!gtk_tree_model_get_iter (getModel(), &iter, path))
+ return;
+
+ gboolean state;
+ gtk_tree_model_get (getModel(), &iter, column, &state, -1);
+ state = !state;
+ gtk_list_store_set (GTK_LIST_STORE (getModel()), &iter, column, state, -1);
+
+ ((YSelectionWidget *) m_ywidget)->selectItem (getItem (&iter), state);
+ emitEvent (YEvent::ValueChanged);
+ }
+
+ static void selected_cb (GtkTreeView *tree_view, YGTableView* pThis)
+ {
+ IMPL
+ pThis->emitEvent (YEvent::SelectionChanged);
+ }
+
+ static void selected_delayed_cb (GtkTreeView *tree_view, YGTableView* pThis)
+ {
+ IMPL
+ pThis->emitEvent (YEvent::SelectionChanged, true, true, false);
+ }
+
+ static void activated_cb (GtkTreeView *tree_view, GtkTreePath *path,
+ GtkTreeViewColumn *column, YGTableView* pThis)
+ {
+ IMPL
+ pThis->emitEvent (YEvent::Activated);
+ }
+
+ static void toggled_cb (GtkCellRendererToggle *renderer, gchar *path_str,
+ YGTableView *pThis)
+ {
+ IMPL
+ GtkTreePath *path = gtk_tree_path_new_from_string (path_str);
+ gint column = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (renderer), "column"));
+ pThis->toggle (path, column);
+ gtk_tree_path_free (path);
+ }
+};
+
+#include "YTable.h"
+
+class YGTable : public YTable, public YGTableView
+{
+public:
+ YGTable (YWidget *parent, YTableHeader *header)
+ : YTable (parent, header)
+ , YGTableView (this, parent, string(), false, false)
+ {
+ IMPL
+ gtk_tree_view_set_headers_visible (getView(), FALSE);
+ if (columns() >= 3)
+ gtk_tree_view_set_rules_hint (getView(), TRUE);
+
+ g_signal_connect (G_OBJECT (getWidget()), "row-activated",
+ G_CALLBACK (activated_cb), (YGTableView*) this);
+ if (immediateMode())
+ g_signal_connect (G_OBJECT (getWidget()), "cursor-changed",
+ G_CALLBACK (selected_cb), (YGTableView*) this);
+ }
+
+ virtual void setKeepSorting (bool keepSorting)
+ {
+ // TODO: allow to toggle modes
+ if (!keepSorting)
+ YGUtils::tree_view_set_sortable (GTK_TREE_VIEW (getWidget()), 0);
+ }
+
+ virtual void addItem (YItem *_item)
+ {
+ YTableItem *item = dynamic_cast <YTableItem *> (_item);
+ if (item) {
+ if (!getModel()) {
+ vector <GType> types;
+ types.assign (columns(), G_TYPE_STRING);
+ for (int i = 0; i < columns(); i++)
+ if (item->hasIconName (i))
+ types[i] = GDK_TYPE_PIXBUF;
+ createModel (types);
+ for (int i = 0; i < columns(); i++) {
+ bool ellipsize = columns() >= 3 && i == columns()-1;
+ addColumn (types[i], header (i), alignment (i), i, ellipsize);
+ }
+ }
+
+ GtkTreeIter iter;
+ addRow (&iter, _item);
+ for (int i = 0; i < columns(); i++) {
+ if (item->hasIconName (i))
+ setCellIcon (&iter, i, item->iconName (i));
+ else
+ setCellLabel (&iter, i, item->label (i));
+ }
+ }
+ else
+ y2error ("Can only add YTableItems to a YTable.");
+ YTable::addItem (_item);
+ }
+
+ virtual void cellChanged (const YTableCell *cell)
+ {
+ GtkTreeIter iter;
+ if (getIter (cell->parent(), &iter)) {
+ if (cell->hasIconName())
+ setCellIcon (&iter, cell->column(), cell->iconName());
+ else
+ setCellLabel (&iter, cell->column(), cell->label());
+ }
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGSELECTION_WIDGET_IMPL_CLEAR (YTable)
+ YGSELECTION_WIDGET_IMPL_SELECT (YTable)
+};
+
+YTable *YGWidgetFactory::createTable (YWidget *parent, YTableHeader *header)
+{
+ return new YGTable (parent, header);
+}
+
+
+#include "YSelectionBox.h"
+
+class YGSelectionBox : public YSelectionBox, public YGTableView
+{
+public:
+ YGSelectionBox (YWidget *parent, const string &label)
+ : YSelectionBox (parent, label),
+ YGTableView (this, parent, label, true, false)
+ {
+ g_signal_connect (G_OBJECT (getWidget()), "row-activated",
+ G_CALLBACK (activated_cb), (YGTableView*) this);
+ if (immediateMode())
+ g_signal_connect (G_OBJECT (getWidget()), "cursor-changed",
+ G_CALLBACK (selected_cb), (YGTableView*) this);
+ else
+ g_signal_connect (G_OBJECT (getWidget()), "cursor-changed",
+ G_CALLBACK (selected_delayed_cb), (YGTableView*) this);
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGSELECTION_WIDGET_IMPL_ALL (YSelectionBox)
+};
+
+YSelectionBox *YGWidgetFactory::createSelectionBox (YWidget *parent, const string &label)
+{
+ IMPL
+ return new YGSelectionBox (parent, label);
+}
+
+#include "YMultiSelectionBox.h"
+
+class YGMultiSelectionBox : public YMultiSelectionBox, public YGTableView
+{
+public:
+ YGMultiSelectionBox (YWidget *parent, const string &label)
+ : YMultiSelectionBox (parent, label),
+ YGTableView (this, parent, label, false, false)
+ {
+ vector <GType> types;
+ types.push_back (G_TYPE_BOOLEAN);
+ types.push_back (GDK_TYPE_PIXBUF);
+ types.push_back (G_TYPE_STRING);
+ createModel (types);
+ addColumn (G_TYPE_BOOLEAN, "", YAlignUnchanged, 0);
+ addColumn (GDK_TYPE_PIXBUF, "", YAlignUnchanged, 1);
+ addColumn (G_TYPE_STRING, "", YAlignUnchanged, 2);
+
+ g_signal_connect (G_OBJECT (getWidget()), "cursor-changed",
+ G_CALLBACK (selected_cb), (YGTableView*) this);
+ // Let the user toggle, using space/enter or double click (not an event).
+ g_signal_connect_after (G_OBJECT (getWidget()), "row-activated",
+ G_CALLBACK (multi_activated_cb), this);
+ }
+
+ virtual void addItem (YItem *item)
+ {
+ GtkTreeIter iter;
+ addRow (&iter, item);
+ setCellToggle (&iter, 0, item->selected());
+ setCellIcon (&iter, 1, item->iconName());
+ setCellLabel (&iter, 2, item->label());
+ YMultiSelectionBox::addItem (item);
+ }
+
+ virtual void selectItem (YItem *item)
+ {
+ GtkTreeIter iter;
+ if (getIter (item, &iter))
+ setCellToggle (&iter, 0, item->selected());
+ YMultiSelectionBox::selectItem (item);
+ }
+
+ virtual void deselectAllItems()
+ {
+ GtkTreeIter iter;
+ if (gtk_tree_model_get_iter_first (getModel(), &iter)) {
+ do {
+ setCellToggle (&iter, 0, false);
+ } while (gtk_tree_model_iter_next (getModel(), &iter));
+ }
+ YMultiSelectionBox::deselectAllItems();
+ }
+
+ virtual YItem *currentItem()
+ {
+ return getFocusItem();
+ }
+
+ virtual void setCurrentItem (YItem *item)
+ {
+ GtkTreeIter iter;
+ if (getIter (item, &iter))
+ focusItem (&iter);
+ }
+
+ static void multi_activated_cb (GtkTreeView *tree_view, GtkTreePath *path,
+ GtkTreeViewColumn *column, YGMultiSelectionBox* pThis)
+ {
+ IMPL
+ pThis->toggle (path, 1);
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGSELECTION_WIDGET_IMPL_CLEAR (YMultiSelectionBox)
+};
+
+YMultiSelectionBox *YGWidgetFactory::createMultiSelectionBox (YWidget *parent,
+ const string &label)
+{
+ IMPL
+ return new YGMultiSelectionBox (parent, label);
+}
+
+#include "YTree.h"
+
+class YGTree : public YTree, public YGTableView
+{
+public:
+ YGTree (YWidget *parent, const string &label)
+ : YTree (parent, label)
+ , YGTableView (this, parent, label, false, true)
+ {
+ // Events
+ if (notify()) {
+ g_signal_connect (G_OBJECT (getWidget()), "row-activated",
+ G_CALLBACK (activated_cb), (YGTableView*) this);
+ g_signal_connect (G_OBJECT (getWidget()), "cursor-changed",
+ G_CALLBACK (selected_delayed_cb), (YGTableView*) this);
+ }
+ else {
+ GtkTreeSelection *selection = gtk_tree_view_get_selection (getView());
+ gtk_tree_selection_set_mode (selection, GTK_SELECTION_NONE);
+ }
+ }
+
+ // YTree
+ virtual void rebuildTree()
+ {
+ // we are already implement addItem()...
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN (YTree)
+ YGSELECTION_WIDGET_IMPL_ALL (YTree)
+};
+
+YTree *YGWidgetFactory::createTree (YWidget *parent, const string &label)
+{
+ return new YGTree (parent, label);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGTime.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGTime.c…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGTime.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGTime.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,218 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YGWidget.h"
+#include "ygtkfieldentry.h"
+
+#include "YTimeField.h"
+
+class YGTimeField : public YTimeField, public YGLabeledWidget
+{
+public:
+ YGTimeField (YWidget *parent, const string &label)
+ : YTimeField (parent, label),
+ YGLabeledWidget (this, parent, label, YD_HORIZ, true,
+ YGTK_TYPE_FIELD_ENTRY, NULL)
+ {
+ IMPL
+ ygtk_field_entry_add_field (YGTK_FIELD_ENTRY (getWidget()), ':',
+ 2, "0123456789");
+ ygtk_field_entry_add_field (YGTK_FIELD_ENTRY (getWidget()), ':',
+ 2, "0123456789");
+
+ gtk_widget_show_all (getWidget());
+ g_signal_connect (G_OBJECT (getWidget()), "field-entry-changed",
+ G_CALLBACK (value_changed_cb), this);
+ }
+
+ // YTimeField
+ virtual void setValue (const string &time)
+ {
+ IMPL
+ char hours[3], mins[3];
+ sscanf (time.c_str(), "%2s:%2s", hours, mins);
+
+ YGtkFieldEntry *entry = YGTK_FIELD_ENTRY (getWidget());
+ ygtk_field_entry_set_field_text (entry, 0, hours);
+ ygtk_field_entry_set_field_text (entry, 1, mins);
+ }
+
+ virtual string value()
+ {
+ IMPL
+ const gchar *hours, *mins;
+ YGtkFieldEntry *entry = YGTK_FIELD_ENTRY (getWidget());
+ hours = ygtk_field_entry_get_field_text (entry, 0);
+ mins = ygtk_field_entry_get_field_text (entry, 1);
+
+ gchar *time = g_strdup_printf ("%02d:%02d:00", atoi (hours), atoi (mins));
+ string str (time);
+ g_free (time);
+ return str;
+ }
+
+ // callbacks
+ static void value_changed_cb (YGtkFieldEntry *entry, gint field_nb,
+ YGTimeField *pThis)
+ { IMPL; pThis->emitEvent (YEvent::ValueChanged); }
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN (YTimeField)
+};
+
+YTimeField *YGOptionalWidgetFactory::createTimeField (YWidget *parent, const string &label)
+{
+ IMPL
+ return new YGTimeField (parent, label);
+}
+
+#include "YDateField.h"
+#include "ygtkmenubutton.h"
+
+class YGDateField : public YDateField, public YGLabeledWidget
+{
+ GtkWidget *m_entry, *m_calendar, *m_popup_calendar;
+
+public:
+ YGDateField (YWidget *parent, const string &label)
+ : YDateField (parent, label),
+ YGLabeledWidget (this, parent, label, YD_HORIZ, true, GTK_TYPE_HBOX, NULL)
+ {
+ IMPL
+ m_entry = ygtk_field_entry_new();
+ ygtk_field_entry_add_field (YGTK_FIELD_ENTRY (m_entry), '-', 4, "0123456789");
+ ygtk_field_entry_add_field (YGTK_FIELD_ENTRY (m_entry), '-', 2, "0123456789");
+ ygtk_field_entry_add_field (YGTK_FIELD_ENTRY (m_entry), '-', 2, "0123456789");
+
+ GtkWidget *menu_button = ygtk_menu_button_new();
+ m_calendar = gtk_calendar_new();
+ gtk_widget_show (m_calendar);
+ GtkWidget *popup = ygtk_popup_window_new (m_calendar);
+ ygtk_menu_button_set_popup (YGTK_MENU_BUTTON (menu_button), popup);
+
+ gtk_box_pack_start (GTK_BOX (getWidget()), m_entry, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (getWidget()), menu_button, FALSE, TRUE, 6);
+ gtk_widget_show_all (getWidget());
+
+ g_signal_connect (G_OBJECT (m_entry), "field-entry-changed",
+ G_CALLBACK (value_changed_cb), this);
+
+ g_signal_connect (G_OBJECT (m_calendar), "day-selected",
+ G_CALLBACK (calendar_changed_cb), this);
+ g_signal_connect (G_OBJECT (m_calendar), "day-selected-double-click",
+ G_CALLBACK (double_click_cb), popup);
+ }
+
+ GtkCalendar *getCalendar()
+ { return GTK_CALENDAR (m_calendar); }
+
+ YGtkFieldEntry *getEntry()
+ { return YGTK_FIELD_ENTRY (m_entry); }
+
+ // YDate
+ virtual void setValue (const string &date)
+ {
+ IMPL
+ char year[5], month[3], day[3];
+ sscanf (date.c_str(), "%4s-%2s-%2s", year, month, day);
+
+ gtk_calendar_select_month (getCalendar(), atoi (month)-1, atoi (year));
+ gtk_calendar_select_day (getCalendar(), atoi (day));
+
+ YGtkFieldEntry *entry = getEntry();
+ ygtk_field_entry_set_field_text (entry, 0, year);
+ ygtk_field_entry_set_field_text (entry, 1, month);
+ ygtk_field_entry_set_field_text (entry, 2, day);
+ }
+
+ virtual string value()
+ {
+ IMPL
+ const gchar *year, *month, *day;
+ YGtkFieldEntry *entry = getEntry();
+ year = ygtk_field_entry_get_field_text (entry, 0);
+ month = ygtk_field_entry_get_field_text (entry, 1);
+ day = ygtk_field_entry_get_field_text (entry, 2);
+
+ gchar *time = g_strdup_printf ("%04d-%02d-%02d", atoi (year),
+ atoi (month), atoi (day));
+ string str (time);
+ g_free (time);
+ return str;
+ }
+
+ // callbacks
+ static void value_changed_cb (YGtkFieldEntry *entry, gint field_nb,
+ YGDateField *pThis)
+ {
+ IMPL
+ int year, month, day;
+ year = atoi (ygtk_field_entry_get_field_text (pThis->getEntry(), 0));
+ month = atoi (ygtk_field_entry_get_field_text (pThis->getEntry(), 1));
+ day = atoi (ygtk_field_entry_get_field_text (pThis->getEntry(), 2));
+
+ if (day < 1 || day > 31 || month < 1 || month > 12)
+ return; // avoid GtkCalendar warnings
+
+ g_signal_handlers_block_by_func (pThis->getCalendar(),
+ (gpointer) calendar_changed_cb, pThis);
+
+ gtk_calendar_select_month (pThis->getCalendar(), month-1, year);
+ gtk_calendar_select_day (pThis->getCalendar(), day);
+
+ g_signal_handlers_unblock_by_func (pThis->getCalendar(),
+ (gpointer) calendar_changed_cb, pThis);
+
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+
+ static void calendar_changed_cb (GtkCalendar *calendar, YGDateField *pThis)
+ {
+ IMPL
+ guint year, month, day;
+ gtk_calendar_get_date (calendar, &year, &month, &day);
+ month += 1; // GTK calendar months go from 0 to 11
+
+ gchar *year_str, *month_str, *day_str;
+ year_str = g_strdup_printf ("%d", year);
+ month_str = g_strdup_printf ("%d", month);
+ day_str = g_strdup_printf ("%d", day);
+
+ g_signal_handlers_block_by_func (pThis->getEntry(),
+ (gpointer) value_changed_cb, pThis);
+
+ YGtkFieldEntry *entry = pThis->getEntry();
+ ygtk_field_entry_set_field_text (entry, 0, year_str);
+ ygtk_field_entry_set_field_text (entry, 1, month_str);
+ ygtk_field_entry_set_field_text (entry, 2, day_str);
+
+ g_signal_handlers_unblock_by_func (pThis->getEntry(),
+ (gpointer) value_changed_cb, pThis);
+
+ g_free (year_str);
+ g_free (month_str);
+ g_free (day_str);
+
+ pThis->emitEvent (YEvent::ValueChanged);
+ }
+
+ static void double_click_cb (GtkCalendar *calendar, YGtkPopupWindow *popup)
+ {
+ // close popup
+ gtk_widget_hide (GTK_WIDGET (popup));
+ }
+
+ YGWIDGET_IMPL_COMMON
+ YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN (YDateField)
+};
+
+YDateField *YGOptionalWidgetFactory::createDateField (YWidget *parent, const string &label)
+{
+ IMPL
+ return new YGDateField (parent, label);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGTree.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGTree.c…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGTree.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGTree.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,9 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YEvent.h"
+
Added: trunk/gtk/unstable-libyui/src/YGUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGUI.cc?…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGUI.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGUI.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,749 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <stdio.h>
+#include <ycp/y2log.h>
+#include <YEvent.h>
+#include <YMacroRecorder.h>
+#include "YGUI.h"
+#include "YGUtils.h"
+#include "YGDialog.h"
+#include <glib/gthread.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+
+#define DEFAULT_MACRO_FILE_NAME "macro.ycp"
+#define BUSY_CURSOR_TIMEOUT 250
+
+YGUI::YGUI (int argc, char **argv, bool with_threads, const char *macro_file)
+ : YUI (with_threads), busy_timeout (0), m_done_init (false), m_argc (0), m_argv (NULL)
+{
+ IMPL
+ m_have_wm = true;
+ m_no_border = m_fullscreen = false;
+ m_default_size.width = m_default_size.height = 0;
+
+ m_argc = argc;
+ m_argv = g_new0 (char *, argc);
+ memcpy (m_argv, argv, sizeof (char *) * argc);
+ if (!with_threads)
+ checkInit();
+
+#ifdef IMPL_DEBUG
+ fprintf (stderr, "I'm initialized '%s' - come & get me !\n",
+ with_threads ? "with threads !" : "no threads");
+#endif
+
+ for (int i = 1; i < m_argc; i++)
+ {
+ const char *argp = m_argv[i];
+ if (!argp) continue;
+ if (argp[0] != '-') {
+ printf ("Warning: Unknown argument '%s'\n", argp);
+ continue;
+ }
+ argp++;
+ if (argp[0] == '-') argp++;
+
+ if (!strcmp (argp, "no-wm"))
+ m_have_wm = false;
+ else if (!strcmp (argp, "fullscreen"))
+ m_fullscreen = true;
+ else if (!strcmp (argp, "noborder"))
+ m_no_border = true;
+ else if (!strcmp (argp, "geometry")) {
+ argp = argv [++i];
+ if (i == argc)
+ printf ("Warning: no value passed to --geometry\n");
+ else if (sscanf (argp, "%dx%d", &m_default_size.width,
+ &m_default_size.height) == EOF) {
+ printf ("Warning: invalid --geometry value: %s\n", argp);
+ m_default_size.width = m_default_size.height = 0;
+ }
+ }
+ else if (!strcmp (argp, "help")) {
+ printf (
+ "Command line options for the YaST2 Gtk UI:\n"
+ "\n"
+ "--no-wm assume no window manager is running\n"
+ "--noborder no window manager border for main dialogs\n"
+ "--fullscreen use full screen for main dialogs\n"
+ "--geomtry WxH sets a default size of W per H to main dialogs\n"
+ "--nothreads run without additional UI threads\n"
+ "--help prints this help text\n"
+ "\n"
+ );
+ exit (0);
+ }
+ else
+ printf ("Warning: Unknown argument '--%s'\n", argp);
+ }
+
+ if (macro_file)
+ playMacro (macro_file);
+
+ // without this none of the (default) threading action works ...
+ topmostConstructorHasFinished();
+}
+
+YGUI::~YGUI()
+{
+ IMPL
+ g_free (m_argv);
+}
+
+static gboolean ycp_wakeup_fn (GIOChannel *source, GIOCondition condition,
+ gpointer data)
+{
+ *(int *)data = TRUE;
+ return TRUE;
+}
+
+void YGUI::checkInit()
+{
+ if (!m_done_init) {
+ gtk_init (&m_argc, &m_argv);
+ m_done_init = TRUE;
+ }
+}
+
+void YGUI::idleLoop (int fd_ycp)
+{
+ IMPL
+ // The rational for this is that we need somewhere to run
+ // the magic 'main' thread, that can process thread unsafe
+ // incoming CORBA messages for us
+ checkInit();
+
+ GIOChannel *wakeup;
+ wakeup = g_io_channel_unix_new (fd_ycp);
+ g_io_channel_set_encoding (wakeup, NULL, NULL);
+ g_io_channel_set_buffered (wakeup, FALSE);
+
+ int woken = FALSE;
+ guint watch_tag = g_io_add_watch (wakeup, (GIOCondition)(G_IO_IN | G_IO_PRI),
+ ycp_wakeup_fn, &woken);
+ while (!woken)
+ g_main_context_iteration (NULL, TRUE);
+
+ g_source_remove (watch_tag);
+ g_io_channel_unref (wakeup);
+}
+
+static gboolean user_input_timeout_cb (YGUI *pThis)
+{
+ IMPL
+ if (!pThis->pendingEvent())
+ pThis->sendEvent (new YTimeoutEvent());
+ return FALSE;
+}
+
+void YGUI::sendEvent (YEvent *event)
+{
+ m_event_handler.sendEvent (event);
+ g_main_context_wakeup (NULL);
+}
+
+// utility that implements both userInput() and pollInput()
+YEvent *YGUI::waitInput (unsigned long timeout_ms, bool block)
+{
+ IMPL
+ if (!YDialog::currentDialog())
+ return NULL;
+
+ if (block)
+ normalCursor(); // waiting for input, so no more busy
+
+ guint timeout = 0;
+ YEvent *event = NULL;
+
+ if (timeout_ms > 0)
+ timeout = g_timeout_add (timeout_ms,
+ (GSourceFunc) user_input_timeout_cb, this);
+
+ if (block)
+ {
+ while (!pendingEvent())
+ g_main_context_iteration (NULL, TRUE);
+ }
+ else
+ while (g_main_context_iteration (NULL, FALSE)) ;
+
+ if (pendingEvent())
+ event = m_event_handler.consumePendingEvent();
+
+ if (timeout)
+ g_source_remove (timeout);
+
+ if (block) // if YCP keeps working for more than X time, set busy cursor
+ busy_timeout = g_timeout_add (BUSY_CURSOR_TIMEOUT, busy_timeout_cb, this);
+
+ return event;
+}
+
+YEvent *YGUI::userInput (unsigned long timeout_ms)
+{ return waitInput (timeout_ms, true); }
+
+YEvent *YGUI::pollInput()
+{ return waitInput (0, false); }
+
+static inline GdkScreen *getScreen ()
+{ return gdk_display_get_default_screen (gdk_display_get_default()); }
+
+int YGUI::getDisplayWidth()
+{ return gdk_screen_get_width (getScreen()); }
+
+int YGUI::getDisplayHeight()
+{ return gdk_screen_get_height (getScreen()); }
+
+int YGUI::getDisplayDepth()
+{ return gdk_visual_get_best_depth(); }
+
+long YGUI::getDisplayColors()
+{ return 1L << getDisplayDepth(); /*from yast-qt*/ }
+
+int YGUI::getDefaultWidth()
+{
+ if (!m_default_size.width) {
+ if (m_fullscreen)
+ m_default_size.width = getDisplayWidth();
+ else
+ m_default_size.width = MIN (600, getDisplayWidth());
+ }
+ return m_default_size.width;
+}
+
+int YGUI::getDefaultHeight()
+{
+ if (!m_default_size.height) {
+ if (m_fullscreen)
+ m_default_size.height = getDisplayHeight();
+ else
+ m_default_size.height = MIN (450, getDisplayHeight());
+ }
+ return m_default_size.height;
+}
+
+// YWidget layout units -> pixels conversion. Same as yast-qt's.
+int YGUI::deviceUnits (YUIDimension dim, float size)
+{
+ if (dim == YD_HORIZ) return (long) ((size * (640.0/80)) + 0.5);
+ else return (long) ((size * (480.0/25)) + 0.5);
+}
+
+float YGUI::layoutUnits (YUIDimension dim, int device_units)
+{
+ float size = (float) device_units;
+ if (dim == YD_HORIZ) return size * (80/640.0);
+ else return size * (25/480.0);
+}
+
+static void errorMsg (const char *msg)
+{
+ GtkWidget* dialog = gtk_message_dialog_new
+ (NULL, GtkDialogFlags (0), GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_OK, "%s", msg);
+ gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
+}
+
+void YGUI::internalError (const char *msg)
+{
+ errorMsg (msg);
+ abort(); // going down
+}
+
+/* File/directory dialogs. */
+#include <sstream>
+
+static YCPValue askForFileOrDirectory (GtkFileChooserAction action,
+ const YCPString &path, const YCPString &filter_pattern,
+ const YCPString &title)
+{
+ IMPL
+ GtkWidget *dialog;
+ dialog = gtk_file_chooser_dialog_new (title->value_cstr(),
+ YGDialog::currentWindow(), action, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ action == GTK_FILE_CHOOSER_ACTION_SAVE ? GTK_STOCK_SAVE : GTK_STOCK_OPEN,
+ GTK_RESPONSE_ACCEPT, NULL);
+ gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog), TRUE);
+
+ // Yast likes to pass the path and suggested filename as a whole. We will need to
+ // split that up for GTK+.
+ string dirpath (path->value()), filename;
+ if (!dirpath.empty()) {
+ string::size_type i;
+ // we don't support local paths
+ if (dirpath [0] != '/') {
+ filename = dirpath;
+ dirpath = "";
+ }
+ else if (!(g_file_test (dirpath.c_str(), G_FILE_TEST_IS_DIR))) {
+ i = dirpath.find_last_of ("/");
+ if (i == string::npos) {
+ filename = dirpath;
+ dirpath = "";
+ }
+ else {
+ string path (dirpath);
+ dirpath = path.substr (0, i+1);
+ filename = path.substr (i+1);
+ }
+ }
+
+ // check if dirpath and filename are valid
+ if (!dirpath.empty())
+ if (!g_file_test (dirpath.c_str(), G_FILE_TEST_IS_DIR)) {
+ y2warning ("Path passed to file dialog isn't valid: '%s'", path->value_cstr());
+ dirpath = "";
+ }
+ i = filename.find ("/");
+ if (i != string::npos) {
+ y2warning ("Path passed to file dialog isn't valid: '%s'", path->value_cstr());
+ filename = "";
+ }
+ }
+
+ if (!dirpath.empty())
+ gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), dirpath.c_str());
+ if (!filename.empty())
+ gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), filename.c_str());
+
+ string filter_str (filter_pattern->value());
+ if (filter_str != "" && filter_str != "*") {
+ GtkFileFilter *filter = gtk_file_filter_new();
+ gtk_file_filter_set_name (filter, filter_str.c_str());
+ // cut filter_pattern into chuncks like GTK likes
+ std::istringstream stream (filter_str);
+ while (!stream.eof()) {
+ string str;
+ stream >> str;
+ if (!str.empty() && str [str.size()-1] == ',')
+ str.erase (str.size()-1);
+ gtk_file_filter_add_pattern (filter, str.c_str());
+ }
+ gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter);
+ }
+
+ if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
+ char* filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
+ YCPString ret (filename);
+ g_free (filename);
+
+ gtk_widget_destroy (dialog);
+ return ret;
+ }
+ gtk_widget_destroy (dialog);
+ return YCPVoid();
+}
+
+YCPValue YGUI::askForExistingDirectory (const YCPString &path,
+ const YCPString &title)
+{
+ IMPL
+ return askForFileOrDirectory (GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, path,
+ YCPString (""), title);
+}
+
+YCPValue YGUI::askForExistingFile (const YCPString &path,
+ const YCPString &filter, const YCPString &title)
+{
+ IMPL
+ return askForFileOrDirectory (GTK_FILE_CHOOSER_ACTION_OPEN, path, filter, title);
+}
+
+YCPValue YGUI::askForSaveFileName (const YCPString &path,
+ const YCPString &filter, const YCPString &title)
+{
+ IMPL
+ return askForFileOrDirectory (GTK_FILE_CHOOSER_ACTION_SAVE, path, filter, title);
+}
+
+gboolean YGUI::busy_timeout_cb (gpointer data)
+{
+ YGUI *pThis = (YGUI *) data;
+ pThis->busyCursor();
+ pThis->busy_timeout = 0;
+ return FALSE;
+}
+
+void YGUI::busyCursor()
+{
+ YGDialog *dialog = YGDialog::currentDialog();
+ if (dialog)
+ dialog->busyCursor();
+}
+
+void YGUI::normalCursor()
+{
+ if (busy_timeout) {
+ g_source_remove (busy_timeout);
+ busy_timeout = 0;
+ }
+
+ YGDialog *dialog = YGDialog::currentDialog();
+ if (dialog)
+ dialog->normalCursor();
+}
+
+void YGUI::makeScreenShot (string filename)
+{
+ IMPL
+ bool interactive = filename.empty();
+
+ GtkWidget *widget = GTK_WIDGET (YGDialog::currentWindow());
+ if (!widget) {
+ if (interactive)
+ errorMsg ("No dialog to take screenshot of.");
+ return;
+ }
+
+ GError *error = 0;
+ GdkPixbuf *shot =
+ gdk_pixbuf_get_from_drawable (NULL, GDK_DRAWABLE (widget->window),
+ gdk_colormap_get_system(), 0, 0, 0, 0, widget->allocation.width,
+ widget->allocation.height);
+
+ if (!shot) {
+ if (interactive)
+ errorMsg ("Couldn't take a screenshot.");
+ return;
+ }
+
+ if (interactive) {
+ //** ask user for filename
+ // calculate a default directory...
+ if (screenShotNameTemplate.empty()) {
+ string dir;
+ const char *homedir = getenv("HOME");
+ const char *ssdir = getenv("Y2SCREENSHOTS");
+ if (!homedir || !strcmp (homedir, "/")) {
+ // no homedir defined (installer)
+ dir = "/tmp/" + (ssdir ? (string(ssdir)) : (string("")));
+ if (mkdir (dir.c_str(), 0700) == -1)
+ dir = "";
+ }
+ else {
+ dir = homedir + (ssdir ? ("/" + string(ssdir)) : (string("")));
+ mkdir (dir.c_str(), 0750); // create a dir for what to put the pics
+ }
+
+ screenShotNameTemplate = dir + "/%s-%03d.png";
+ }
+
+ // calculate a default filename...
+ const char *baseName = moduleName();
+ if (!baseName)
+ baseName = "scr";
+
+ int nb;
+ map <string, int>::iterator it = screenShotNb.find (baseName);
+ if (it == screenShotNb.end())
+ nb = 0;
+
+ {
+ char *tmp_name = g_strdup_printf (screenShotNameTemplate.c_str(), baseName, nb);
+ filename = tmp_name;
+ g_free (tmp_name);
+ }
+ y2debug ("screenshot: %s", filename.c_str());
+
+ YCPValue ret = askForSaveFileName (YCPString (filename.c_str()),
+ YCPString ("*.png"),
+ YCPString ("Save screenshot to"));
+ if (!ret->isString()) { // user dismissed the dialog
+ y2debug ("Save screen shot canceled by user");
+ goto makeScreenShot_ret;
+ }
+
+ filename = ret->asString()->value();
+ screenShotNb.erase (baseName);
+ screenShotNb[baseName] = nb + 1;
+ }
+
+ y2debug ("Saving screen shot to %s", filename.c_str());
+ if (gdk_pixbuf_save (shot, filename.c_str(), "png", &error, NULL)) {
+ y2error ("Couldn't save screen shot %s", filename.c_str());
+ if (interactive) {
+ string msg = "Couldn't save screenshot to file " + filename
+ + " - " + error->message;
+ errorMsg (msg.c_str());
+ }
+ goto makeScreenShot_ret;
+ }
+
+ if (recordingMacro()) {
+ // save the taking of the screenshot and its name to the macro
+ macroRecorder->beginBlock();
+ YDialog::currentDialog()->saveUserInput (macroRecorder);
+ macroRecorder->recordMakeScreenShot (true, filename.c_str());
+ macroRecorder->recordUserInput (YCPVoid());
+ macroRecorder->endBlock();
+ }
+
+ makeScreenShot_ret:
+ g_object_unref (G_OBJECT (shot));
+}
+
+void YGUI::beep()
+{
+ gdk_beep();
+ GtkWindow *window = YGDialog::currentWindow();
+ if (window)
+ gtk_window_present (window);
+}
+
+YCPString YGUI::glyph (const YCPSymbol &symbol)
+{
+ string sym = symbol->symbol();
+ if (sym == YUIGlyph_ArrowLeft)
+ return YCPString ("\u2190");
+ if (sym == YUIGlyph_ArrowRight)
+ return YCPString ("\u2192");
+ if (sym == YUIGlyph_ArrowUp)
+ return YCPString ("\u2191");
+ if (sym == YUIGlyph_ArrowDown)
+ return YCPString ("\u2193");
+ if (sym == YUIGlyph_CheckMark)
+ return YCPString ("\u2714");
+ if (sym == YUIGlyph_BulletArrowRight)
+ return YCPString ("\u279c");
+ if (sym == YUIGlyph_BulletCircle)
+ return YCPString ("\u274d");
+ if (sym == YUIGlyph_BulletSquare)
+ return YCPString ("\u274f");
+ return YCPString ("");
+}
+
+void YGUI::toggleRecordMacro()
+{
+ if (recordingMacro()) {
+ stopRecordMacro();
+ normalCursor();
+
+ GtkWidget* dialog = gtk_message_dialog_new (NULL,
+ GtkDialogFlags (0), GTK_MESSAGE_INFO, GTK_BUTTONS_OK,
+ "Macro recording done.");
+ gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
+ }
+ else {
+ YCPValue ret = askForSaveFileName (YCPString (DEFAULT_MACRO_FILE_NAME),
+ YCPString ("*.ycp"),
+ YCPString ("Select Macro File to Record to"));
+ if (ret->isString()) {
+ YCPString filename = ret->asString();
+ recordMacro (filename->value_cstr());
+ }
+ }
+}
+
+void YGUI::askPlayMacro()
+{
+ YCPValue ret = askForExistingFile (YCPString (DEFAULT_MACRO_FILE_NAME),
+ YCPString ("*.ycp"), YCPString ("Select Macro File to Play"));
+
+ if (ret->isString()) {
+ busyCursor();
+ YCPString filename = ret->asString();
+
+ playMacro (filename->value_cstr());
+ sendEvent (new YEvent()); // flush
+ }
+}
+
+void YGUI::askSaveLogs()
+{
+ YCPValue file = askForSaveFileName (YCPString ("/tmp/y2logs.tgz"),
+ YCPString ("*.tgz *.tar.gz"), YCPString ("Save y2logs to..."));
+
+ if (file->isString()) {
+ std::string command = "/sbin/save_y2logs";
+ command += " '" + file->asString()->value() + "'";
+ y2milestone ("Saving y2logs: %s", command.c_str());
+ int ret = system (command.c_str());
+ if (ret == 0)
+ y2milestone ("y2logs saved to %s", file->asString()->value_cstr());
+ else {
+ char *error = g_strdup_printf (
+ "Error: couldn't save y2logs: \"%s\" (exit value: %d)",
+ command.c_str(), ret);
+ y2error (error);
+ errorMsg (error);
+ g_free (error);
+ }
+ }
+}
+
+YWidgetFactory *YGUI::createWidgetFactory()
+{ return new YGWidgetFactory; }
+YOptionalWidgetFactory *YGUI::createOptionalWidgetFactory()
+{ return new YGOptionalWidgetFactory; }
+YApplication *YGUI::createApplication()
+{ return new YGApplication(); }
+
+//** debug dialogs
+
+//#define IS_VALID_COL
+void dumpYastTree (YWidget *widget)
+{
+ IMPL
+ struct inner {
+ static void dumpYastTree (YWidget *widget, GtkTreeStore *store,
+ GtkTreeIter *parent_node)
+ {
+ YGWidget *ygwidget;
+ if (!widget || !(ygwidget = YGWidget::get (widget)))
+ return;
+
+ GtkTreeIter iter;
+ gtk_tree_store_append (store, &iter, parent_node);
+
+ gchar *stretch = g_strdup_printf ("%d x %d",
+ widget->stretchable (YD_HORIZ), widget->stretchable (YD_VERT));
+ gchar *weight = g_strdup_printf ("%d x %d",
+ widget->weight (YD_HORIZ), widget->weight (YD_VERT));
+ gtk_tree_store_set (store, &iter, 0, widget->widgetClass(),
+ 1, ygwidget->getDebugLabel().c_str(), 2, stretch, 3, weight,
+#ifdef IS_VALID_COL
+ 4, widget->isValid(),
+#endif
+ -1);
+ g_free (stretch);
+ g_free (weight);
+
+ for (YWidgetListConstIterator it = widget->childrenBegin();
+ it != widget->childrenEnd(); it++)
+ dumpYastTree (*it, store, &iter);
+ }
+ static void dialog_response_cb (GtkDialog *dialog, gint response, YWidget *ywidget)
+ {
+ if (response == 1) {
+ GtkTreeStore *store;
+ GtkTreeView *view;
+ store = (GtkTreeStore *) g_object_get_data (G_OBJECT (dialog), "store");
+ view = (GtkTreeView *) g_object_get_data (G_OBJECT (dialog), "view");
+ gtk_tree_store_clear (store);
+ dumpYastTree (ywidget, store, NULL);
+ gtk_tree_view_expand_all (view);
+ }
+ else
+ gtk_widget_destroy (GTK_WIDGET (dialog));
+ }
+ };
+
+ int cols = 4;
+#ifdef IS_VALID_COL
+ cols++;
+#endif
+ GtkTreeStore *store = gtk_tree_store_new (cols,
+ G_TYPE_STRING, G_TYPE_STRING,
+ G_TYPE_STRING, G_TYPE_STRING
+#ifdef IS_VALID_COL
+ , G_TYPE_BOOLEAN
+#endif
+ );
+
+ GtkWidget *dialog = gtk_dialog_new_with_buttons ("YWidgets Tree", NULL,
+ GtkDialogFlags (GTK_DIALOG_NO_SEPARATOR), GTK_STOCK_REFRESH, 1,
+ GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);
+ gtk_window_set_default_size (GTK_WINDOW (dialog), -1, 400);
+
+ GtkWidget *view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view),
+ gtk_tree_view_column_new_with_attributes ("Type",
+ gtk_cell_renderer_text_new(), "text", 0, NULL));
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view),
+ gtk_tree_view_column_new_with_attributes ("Label",
+ gtk_cell_renderer_text_new(), "text", 1, NULL));
+ gtk_tree_view_column_set_expand (gtk_tree_view_get_column (
+ GTK_TREE_VIEW (view), 1), TRUE);
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view),
+ gtk_tree_view_column_new_with_attributes ("Stretch",
+ gtk_cell_renderer_text_new(), "text", 2, NULL));
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view),
+ gtk_tree_view_column_new_with_attributes ("Weight",
+ gtk_cell_renderer_text_new(), "text", 3, NULL));
+#ifdef IS_VALID_COL
+ gtk_tree_view_append_column (GTK_TREE_VIEW (view),
+ gtk_tree_view_column_new_with_attributes ("Valid",
+ gtk_cell_renderer_toggle_new(), "active", 4, NULL));
+#endif
+ gtk_tree_view_set_enable_tree_lines (GTK_TREE_VIEW (view), TRUE);
+
+ GtkWidget *scroll_win = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll_win),
+ GTK_SHADOW_IN);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll_win),
+ GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+
+ gtk_container_add (GTK_CONTAINER (scroll_win), view);
+ gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), scroll_win);
+
+ inner::dumpYastTree (widget, store, NULL);
+ gtk_tree_view_expand_all (GTK_TREE_VIEW (view));
+
+ g_object_set_data (G_OBJECT (dialog), "view", view);
+ g_object_set_data (G_OBJECT (dialog), "store", store);
+ g_signal_connect (G_OBJECT (dialog), "response",
+ G_CALLBACK (inner::dialog_response_cb), widget);
+
+ gtk_widget_show_all (dialog);
+}
+
+#include <YRichText.h>
+
+void dumpYastHtml (YWidget *widget)
+{
+ struct inner {
+ static void dumpYastHtml (YWidget *widget, GtkBox *box)
+ {
+ YGWidget *ygwidget;
+ if (!widget || !(ygwidget = YGWidget::get (widget)))
+ return;
+
+ YRichText *rtext = dynamic_cast <YRichText *> (widget);
+ if (rtext) {
+ std::string text = rtext->text();
+ char *xml = ygutils_convert_to_xhmlt_and_subst (text.c_str(), NULL);
+
+ GtkWidget *view = gtk_text_view_new();
+ gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (view), GTK_WRAP_WORD);
+ gtk_text_view_set_editable (GTK_TEXT_VIEW (view), FALSE);
+ gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (view), FALSE);
+ GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
+ gtk_text_buffer_set_text (buffer, xml, -1);
+
+ GtkWidget *scroll = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll),
+ GTK_SHADOW_IN);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll),
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_container_add (GTK_CONTAINER (scroll), view);
+ gtk_box_pack_start (box, scroll, TRUE, TRUE, 6);
+
+ g_free (xml);
+ }
+
+ for (YWidgetListConstIterator it = widget->childrenBegin();
+ it != widget->childrenEnd(); it++)
+ dumpYastHtml (*it, box);
+ }
+ static void destroy_dialog (GtkDialog *dialog, gint arg)
+ { gtk_widget_destroy (GTK_WIDGET (dialog)); }
+ };
+
+ IMPL
+ GtkWidget *dialog = gtk_dialog_new_with_buttons ("YWidgets HTML", NULL,
+ GtkDialogFlags (GTK_DIALOG_NO_SEPARATOR), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);
+ gtk_window_set_default_size (GTK_WINDOW (dialog), 400, 300);
+
+ inner::dumpYastHtml (widget, GTK_BOX (GTK_DIALOG (dialog)->vbox));
+
+ gtk_widget_show_all (dialog);
+ g_signal_connect (G_OBJECT (dialog), "response",
+ G_CALLBACK (inner::destroy_dialog), 0);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGUI.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGUI.h?r…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGUI.h (added)
+++ trunk/gtk/unstable-libyui/src/YGUI.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,242 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#ifndef YGUI_H
+#define YGUI_H
+
+#include <gtk/gtk.h>
+#include <YSimpleEventHandler.h>
+
+#define ICON_DIR THEMEDIR "/icons/22x22/apps/"
+
+/* Comment the following line to disable debug messages */
+// #define IMPL_DEBUG
+#define LOC fprintf (stderr, "%s (%s)\n", G_STRLOC, G_STRFUNC)
+#ifdef IMPL_DEBUG
+ #define IMPL { LOC; }
+#else
+ #define IMPL { }
+#endif
+#define IMPL_RET(a) { IMPL; return (a); }
+
+/* Compatibility */
+/*
+#if YAST2_VERSION > 2014004
+# define YAST2_YGUI_CHECKBOX_FRAME 1
+#elif YAST2_VERSION >= 2014000
+# define YAST2_YGUI_CHECKBOX_FRAME 0
+#elif YAST2_VERSION > 2013032
+# define YAST2_YGUI_CHECKBOX_FRAME 1
+#else
+# define YAST2_YGUI_CHECKBOX_FRAME 0
+#endif
+*/
+
+class YGDialog;
+
+#include <YUI.h>
+
+class YGUI: public YUI
+{
+public:
+ YGUI (int argc, char **argv,
+ bool with_threads, const char *macro_file);
+ virtual ~YGUI();
+
+ static YGUI *ui() { return (YGUI *)YUI::ui(); }
+
+protected:
+ virtual YWidgetFactory * createWidgetFactory();
+ virtual YOptionalWidgetFactory * createOptionalWidgetFactory();
+ virtual YApplication * createApplication();
+
+public:
+ YEvent *waitInput (unsigned long timeout_ms, bool block);
+ virtual void idleLoop (int fd_ycp);
+ virtual YEvent *userInput (unsigned long timeout_millisec);
+ virtual YEvent *pollInput();
+
+ virtual void internalError (const char *msg);
+
+ virtual int deviceUnits (YUIDimension dim, float layout_units);
+ virtual float layoutUnits (YUIDimension dim, int device_units);
+ virtual YCPString glyph (const YCPSymbol &glyphSymbol);
+
+ virtual int getDisplayWidth();
+ virtual int getDisplayHeight();
+ virtual int getDisplayDepth();
+ virtual long getDisplayColors();
+ virtual int getDefaultWidth();
+ virtual int getDefaultHeight();
+ virtual bool textMode() IMPL_RET (false)
+ virtual bool hasImageSupport() IMPL_RET (true)
+ virtual bool hasLocalImageSupport() IMPL_RET (true)
+ virtual bool hasAnimationSupport() IMPL_RET (true)
+ virtual bool hasIconSupport() IMPL_RET (true)
+ virtual bool hasFullUtf8Support() IMPL_RET (true)
+ virtual bool richTextSupportsTable() IMPL_RET (false)
+
+ virtual void showDialog (YDialog *dialog);
+ virtual void closeDialog (YDialog *dialog);
+
+ virtual void busyCursor();
+ virtual void normalCursor();
+
+ virtual void makeScreenShot (string filename);
+ virtual void beep();
+
+ virtual YCPValue askForExistingDirectory (const YCPString &startDir,
+ const YCPString &headline);
+ virtual YCPValue askForExistingFile (const YCPString &startWith,
+ const YCPString &filter, const YCPString &headline);
+ virtual YCPValue askForSaveFileName (const YCPString &startWith,
+ const YCPString & filter, const YCPString &headline);
+
+ void toggleRecordMacro();
+
+ // Plays a macro, opening a dialog first to ask for the filename
+ // activated by Ctrl-Shift-Alt-P
+ void askPlayMacro();
+
+ // On Shift-F8, run save_logs
+ void askSaveLogs();
+
+ YSimpleEventHandler m_event_handler;
+ void sendEvent (YEvent *event);
+ YEvent *pendingEvent() const { return m_event_handler.pendingEvent(); }
+ bool eventPendingFor (YWidget *widget) const
+ { return m_event_handler.eventPendingFor (widget); }
+
+private:
+ guint busy_timeout; // for busy cursor
+ static gboolean busy_timeout_cb (gpointer data);
+
+ // window-related arguments
+ bool m_have_wm, m_no_border, m_fullscreen;
+ GtkRequisition m_default_size;
+
+ // for delayed gtk+ init in the right thread
+ bool m_done_init;
+ int m_argc;
+ char **m_argv;
+ void checkInit();
+
+ // for screenshots:
+ map <string, int> screenShotNb;
+ string screenShotNameTemplate;
+
+public:
+ // Helpers for internal use [ visibility hidden ]
+ int getDefaultSize (YUIDimension dim);
+ bool setFullscreen() const { return m_fullscreen || !m_have_wm; }
+ bool hasWM() const { return m_have_wm; }
+ bool unsetBorder() const { return m_no_border; }
+};
+
+// debug helpers.
+void dumpYastTree (YWidget *widget);
+void dumpYastHtml (YWidget *widget);
+
+#include <YWidgetFactory.h>
+
+class YGWidgetFactory : public YWidgetFactory
+{
+ virtual YDialog *createDialog (YDialogType dialogType, YDialogColorMode colorMode);
+
+ virtual YPushButton *createPushButton (YWidget *parent, const string &label);
+ virtual YLabel *createLabel (YWidget *parent, const string &text, bool isHeading, bool isOutputField);
+ virtual YInputField *createInputField (YWidget *parent, const string &label, bool passwordMode);
+ virtual YCheckBox *createCheckBox (YWidget *parent, const string &label, bool isChecked);
+ virtual YRadioButton *createRadioButton (YWidget *parent, const string &label, bool isChecked);
+ virtual YComboBox *createComboBox (YWidget * parent, const string & label, bool editable);
+ virtual YSelectionBox *createSelectionBox (YWidget *parent, const string &label);
+ virtual YTree *createTree (YWidget *parent, const string &label);
+ virtual YTable *createTable (YWidget * parent, YTableHeader *header);
+ virtual YProgressBar *createProgressBar (YWidget *parent, const string &label, int maxValue);
+ virtual YRichText *createRichText (YWidget *parent, const string &text, bool plainTextMode);
+
+ virtual YIntField *createIntField (YWidget *parent, const string &label, int minVal, int maxVal, int initialVal);
+ virtual YMenuButton *createMenuButton (YWidget *parent, const string &label);
+ virtual YMultiLineEdit *createMultiLineEdit (YWidget *parent, const string &label);
+ virtual YImage *createImage (YWidget *parent, const string &imageFileName, bool animated);
+ virtual YLogView *createLogView (YWidget *parent, const string &label, int visibleLines, int storedLines);
+ virtual YMultiSelectionBox *createMultiSelectionBox (YWidget *parent, const string &label);
+
+ virtual YPackageSelector *createPackageSelector (YWidget * parent, long ModeFlags);
+ virtual YWidget *createPkgSpecial (YWidget * parent, const string & subwidgetName)
+ IMPL_RET (NULL) // for ncurses
+
+ virtual YLayoutBox *createLayoutBox (YWidget *parent, YUIDimension dimension);
+
+ virtual YSpacing *createSpacing (YWidget *parent, YUIDimension dim, bool stretchable, YLayoutSize_t size);
+ virtual YEmpty *createEmpty (YWidget *parent);
+ virtual YAlignment *createAlignment (YWidget *parent, YAlignmentType horAlignment, YAlignmentType vertAlignment);
+ virtual YSquash *createSquash (YWidget *parent, bool horSquash, bool vertSquash);
+
+ virtual YFrame *createFrame (YWidget *parent, const string &label);
+ virtual YCheckBoxFrame *createCheckBoxFrame (YWidget *parent, const string &label, bool checked);
+
+ virtual YRadioButtonGroup *createRadioButtonGroup (YWidget *parent);
+ virtual YReplacePoint *createReplacePoint (YWidget *parent);
+};
+
+#include <YOptionalWidgetFactory.h>
+
+class YGOptionalWidgetFactory : public YOptionalWidgetFactory
+{
+public:
+ virtual bool hasWizard() IMPL_RET (true)
+ virtual YWizard *createWizard (YWidget *parent, const string &backButtonLabel,
+ const string &abortButtonLabel, const string &nextButtonLabel,
+ YWizardMode wizardMode);
+
+ virtual bool hasDumbTab() IMPL_RET (true)
+ virtual YDumbTab *createDumbTab (YWidget *parent);
+
+ virtual bool hasSlider() IMPL_RET (true)
+ virtual YSlider *createSlider (YWidget *parent, const string &label, int minVal,
+ int maxVal, int initialVal);
+
+ virtual bool hasDateField() IMPL_RET (true)
+ virtual YDateField *createDateField (YWidget *parent, const string &label);
+
+ virtual bool hasTimeField() IMPL_RET (true)
+ virtual YTimeField *createTimeField (YWidget *parent, const string &label);
+
+ virtual bool hasBarGraph() IMPL_RET (true)
+ virtual YBarGraph *createBarGraph (YWidget *parent);
+
+ virtual bool hasMultiProgressMeter() IMPL_RET (true)
+ virtual YMultiProgressMeter *createMultiProgressMeter (YWidget *parent,
+ YUIDimension dim, const vector<float> &maxValues);
+
+ virtual bool hasPartitionSplitter() IMPL_RET (true)
+ virtual YPartitionSplitter *createPartitionSplitter (YWidget *parent,
+ int usedSize, int totalFreeSize, int newPartSize, int minNewPartSize,
+ int minFreeSize, const string &usedLabel, const string &freeLabel,
+ const string &newPartLabel, const string &freeFieldLabel,
+ const string &newPartFieldLabel);
+
+ virtual bool hasDownloadProgress() IMPL_RET (true)
+ virtual YDownloadProgress *createDownloadProgress (YWidget *parent,
+ const string &label, const string & filename, YFileSize_t expectedFileSize);
+
+ virtual bool hasSimplePatchSelector() IMPL_RET (false)
+ virtual YWidget *createSimplePatchSelector (YWidget *parent, long modeFlags)
+ IMPL_RET (NULL)
+
+ virtual bool hasPatternSelector() IMPL_RET (false)
+ virtual YWidget *createPatternSelector (YWidget *parent, long modeFlags)
+ IMPL_RET (NULL)
+};
+
+#include <YApplication.h>
+
+class YGApplication : public YApplication
+{
+ /* we may need to expand it on the future */
+};
+
+#endif // YGUI_H
+
Added: trunk/gtk/unstable-libyui/src/YGUtils.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGUtils.…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGUtils.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGUtils.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,740 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include "YGUI.h"
+#include "YGUtils.h"
+
+string YGUtils::mapKBAccel (const string &src)
+{
+ // we won't use use replace since we also want to escape _ to __
+ int length = src.length();
+ string str;
+ str.reserve (length);
+ for (int i = 0; i < length; i++) {
+ if (src[i] == '_')
+ str += "__";
+ else if (src[i] == '&')
+ str += '_';
+ else
+ str += src[i];
+ }
+ return str;
+}
+
+void YGUtils::setFilter (GtkEntry *entry, const string &validChars)
+{
+ struct inner {
+ static void insert_text_cb (GtkEditable *editable, const gchar *new_text,
+ gint new_text_length, gint *pos)
+ {
+ const gchar *valid_chars = (gchar *) g_object_get_data (G_OBJECT (editable),
+ "valid-chars");
+ if (valid_chars) {
+ const gchar *i, *j;
+ for (i = new_text; *i; i++) {
+ for (j = valid_chars; *j; j++) {
+ if (*i == *j)
+ break;
+ }
+ if (!*j) {
+ // not valid text
+ g_signal_stop_emission_by_name (editable, "insert_text");
+ gdk_beep();
+ return;
+ }
+ }
+ }
+ }
+ };
+
+ if (!validChars.empty()) {
+ gchar *chars = g_strdup (validChars.c_str());
+ g_object_set_data_full (G_OBJECT (entry), "valid-chars", chars, g_free);
+ g_signal_connect (G_OBJECT (entry), "insert-text",
+ G_CALLBACK (inner::insert_text_cb), NULL);
+ }
+ else
+ g_object_disconnect (G_OBJECT (entry), "insert-text",
+ G_CALLBACK (inner::insert_text_cb), NULL);
+}
+
+void ygutils_setFilter (GtkEntry *entry, const char *validChars)
+{ YGUtils::setFilter (entry, validChars); }
+
+void YGUtils::replace (string &str, const char *mouth, int mouth_len, const char *food)
+{
+ if (mouth_len < 0)
+ mouth_len = strlen (mouth);
+ unsigned int i = 0;
+ while ((i = str.find (mouth, i)) != string::npos)
+ {
+ str.erase (i, mouth_len);
+ str.insert (i, food);
+ }
+}
+
+void YGUtils::scrollTextViewDown(GtkTextView *text_view)
+{
+ GtkTextBuffer *buffer = gtk_text_view_get_buffer (text_view);
+ GtkTextIter end_iter;
+ gtk_text_buffer_get_end_iter (buffer, &end_iter);
+ GtkTextMark *end_mark;
+ end_mark = gtk_text_buffer_create_mark
+ (buffer, NULL, &end_iter, FALSE);
+ gtk_text_view_scroll_to_mark (text_view,
+ end_mark, 0.0, FALSE, 0, 0);
+ gtk_text_buffer_delete_mark (buffer, end_mark);
+}
+
+void YGUtils::escapeMarkup (string &str)
+{
+ for (unsigned int i = 0; i < str.length(); i++) {
+ switch (str[i]) {
+ case '<':
+ str.erase (i, 1);
+ str.insert (i, "<");
+ break;
+ case '>':
+ str.erase (i, 1);
+ str.insert (i, ">");
+ break;
+ case '&':
+ str.erase (i, 1);
+ str.insert (i, "&");
+ break;
+ default:
+ break;
+ }
+ }
+}
+
+#define PROD_ENTITY "&product;"
+
+inline void skipSpace(const char *instr, int &i)
+{
+ while (g_ascii_isspace (instr[i])) i++;
+}
+
+typedef struct {
+ GString *tag;
+ int tag_len : 31;
+ unsigned int early_closer : 1;
+} TagEntry;
+
+static TagEntry *
+tag_entry_new (GString *tag, int tag_len)
+{
+ static const char *early_closers[] = { "p", "li" };
+ TagEntry *entry = g_new (TagEntry, 1);
+ entry->tag = tag;
+ entry->tag_len = tag_len;
+ entry->early_closer = FALSE;
+
+ for (unsigned int i = 0; i < G_N_ELEMENTS (early_closers); i++)
+ if (!g_ascii_strncasecmp (tag->str, early_closers[i], tag_len))
+ entry->early_closer = TRUE;
+ return entry;
+}
+
+static void
+tag_entry_free (TagEntry *entry)
+{
+ if (entry && entry->tag)
+ g_string_free (entry->tag, TRUE);
+ g_free (entry);
+}
+
+static void
+emit_unclosed_tags_for (GString *outp, GQueue *tag_queue, const char *tag_str, int tag_len)
+{
+ gboolean matched = FALSE;
+
+ // top-level tag ...
+ if (g_queue_is_empty (tag_queue))
+ return;
+
+ do {
+ TagEntry *last_entry = (TagEntry *)g_queue_pop_tail (tag_queue);
+ if (!last_entry)
+ break;
+
+ if (last_entry->tag_len != tag_len ||
+ g_ascii_strncasecmp (last_entry->tag->str, tag_str, tag_len)) {
+ /* different tag - emit a close ... */
+ g_string_append (outp, "</");
+ g_string_append_len (outp, last_entry->tag->str, last_entry->tag_len);
+ g_string_append_c (outp, '>');
+ } else
+ matched = TRUE;
+
+ tag_entry_free (last_entry);
+ } while (!matched);
+}
+
+static gboolean
+check_early_close (GString *outp, GQueue *tag_queue, TagEntry *entry)
+{
+ TagEntry *last_tag;
+
+ // Early closers:
+ if (!entry->early_closer)
+ return FALSE;
+
+ last_tag = (TagEntry *) g_queue_peek_tail (tag_queue);
+ if (!last_tag || !last_tag->early_closer)
+ return FALSE;
+
+ if (entry->tag_len != last_tag->tag_len ||
+ g_ascii_strncasecmp (last_tag->tag->str, entry->tag->str, entry->tag_len))
+ return FALSE;
+
+ // Emit close & leave last tag on the stack
+
+ g_string_append (outp, "</");
+ g_string_append_len (outp, entry->tag->str, entry->tag_len);
+ g_string_append_c (outp, '>');
+
+ return TRUE;
+}
+
+
+// We have to:
+// + manually substitute the product entity.
+// + rewrite <br> and <hr> tags
+// + deal with <a attrib=noquotes>
+gchar *ygutils_convert_to_xhmlt_and_subst (const char *instr, const char *product)
+{
+ GString *outp = g_string_new ("");
+ GQueue *tag_queue = g_queue_new();
+ int i = 0;
+
+ skipSpace (instr, i);
+
+ // We must add an outer tag to make GMarkup happy
+ gboolean addOuterTag = TRUE;
+// gboolean addOuterTag = FALSE;
+// if ((addOuterTag = (instr[i] != '<')))
+ g_string_append (outp, "<body>");
+
+ for (; instr[i] != '\0'; i++)
+ {
+ // Tag foo
+ if (instr[i] == '<') {
+ // ignore comments
+ if (strncmp (&instr[i], "<!--", 4) == 0) {
+ for (i += 3; instr[i] != '\0'; i++)
+ if (strncmp (&instr[i], "-->", 3) == 0) {
+ i += 2;
+ break;
+ }
+ continue;
+ }
+
+ gint j;
+ gboolean is_close = FALSE;
+ gboolean in_tag;
+ int tag_len;
+ GString *tag = g_string_sized_new (20);
+
+ i++;
+ skipSpace (instr, i);
+
+ if (instr[i] == '/') {
+ i++;
+ is_close = TRUE;
+ }
+
+ skipSpace (instr, i);
+
+ // find the tag name piece
+ in_tag = TRUE;
+ tag_len = 0;
+ for (; instr[i] != '>' && instr[i]; i++) {
+ if (in_tag) {
+ if (!g_ascii_isalnum(instr[i]))
+ in_tag = FALSE;
+ else
+ tag_len++;
+ }
+ g_string_append_c (tag, instr[i]);
+ }
+
+ // Unmatched tags
+ if ( !is_close && tag_len == 2 &&
+ (!g_ascii_strncasecmp (tag->str, "hr", 2) ||
+ !g_ascii_strncasecmp (tag->str, "br", 2)) &&
+ tag->str[tag->len - 1] != '/')
+ g_string_append_c (tag, '/');
+
+ // Add quoting for un-quoted attributes
+ for (int j = 0; j < (signed) tag->len; j++) {
+ if (tag->str[j] == '=') {
+ if (tag->str[j+1] != '"') {
+ g_string_insert_c (tag, j+1, '"');
+ for (j++; !g_ascii_isspace (tag->str[j]) && tag->str[j]; j++) ;
+ g_string_insert_c (tag, j, '"');
+ }
+ }
+ }
+
+ // Is it an open or close ?
+ j = tag->len - 1;
+
+ while (j > 0 && g_ascii_isspace (tag->str[j])) j--;
+
+ gboolean is_open_close = (tag->str[j] == '/');
+ if (is_open_close)
+ ; // ignore it
+ else if (is_close)
+ emit_unclosed_tags_for (outp, tag_queue, tag->str, tag_len);
+ else {
+ TagEntry *entry = tag_entry_new (tag, tag_len);
+
+ entry->tag = tag;
+ entry->tag_len = tag_len;
+
+ if (!check_early_close (outp, tag_queue, entry))
+ g_queue_push_tail (tag_queue, entry);
+ else {
+ entry->tag = NULL;
+ tag_entry_free (entry);
+ }
+ }
+
+ g_string_append_c (outp, '<');
+ if (is_close)
+ g_string_append_c (outp, '/');
+ g_string_append_len (outp, tag->str, tag->len);
+ g_string_append_c (outp, '>');
+
+ if (is_close || is_open_close)
+ g_string_free (tag, TRUE);
+ }
+/*
+ else if (instr[i] == '&' &&
+ !g_ascii_strncasecmp (instr + i, PROD_ENTITY,
+ sizeof (PROD_ENTITY) - 1)) {
+ // 1 Magic entity
+ g_string_append (outp, product);
+ i += sizeof (PROD_ENTITY) - 2;
+ }
+*/
+ // non-break space entity
+ else if (instr[i] == '&' &&
+ !g_ascii_strncasecmp (instr + i, " ",
+ sizeof (" ") - 1)) {
+ // Replace this by a white-space
+ g_string_append (outp, " ");
+ i += sizeof (" ") - 2;
+ }
+
+#if 0
+ // removing new-lines chars sure isn't a xhtml conversion
+ // but it's still valid xhtml and GtkTextView appreciates it
+ else if (/*cut_breaklines &&*/ instr[i] == '\n') {
+ // In HTML a breakline should be treated as a white space when
+ // not in the start of a paragraph.
+ if (i > 0 && instr[i-1] != '>' && !g_ascii_isspace (instr[i-1]))
+ g_string_append_c (outp, ' ');
+ }
+#endif
+
+ else // Normal text
+ g_string_append_c (outp, instr[i]);
+ }
+
+ emit_unclosed_tags_for (outp, tag_queue, "", 0);
+ g_queue_free (tag_queue);
+
+ if (addOuterTag)
+ g_string_append (outp, "</body>");
+
+ gchar *ret = g_string_free (outp, FALSE);
+ return ret;
+}
+
+int YGUtils::getCharsWidth (GtkWidget *widget, int chars_nb)
+{
+ PangoContext *context = gtk_widget_get_pango_context (widget);
+ PangoFontMetrics *metrics = pango_context_get_metrics (context,
+ widget->style->font_desc, NULL);
+
+ int width = pango_font_metrics_get_approximate_char_width (metrics);
+ pango_font_metrics_unref (metrics);
+
+ return PANGO_PIXELS (width) * chars_nb;
+}
+
+int YGUtils::getCharsHeight (GtkWidget *widget, int chars_nb)
+{
+ PangoContext *context = gtk_widget_get_pango_context (widget);
+ PangoFontMetrics *metrics = pango_context_get_metrics (context,
+ widget->style->font_desc, NULL);
+
+ int height = pango_font_metrics_get_ascent (metrics) +
+ pango_font_metrics_get_descent (metrics);
+ pango_font_metrics_unref (metrics);
+
+ return PANGO_PIXELS (height) * chars_nb;
+}
+
+void YGUtils::setWidgetFont (GtkWidget *widget, PangoWeight weight, double scale)
+{
+ PangoFontDescription *font_desc = widget->style->font_desc;
+ int size = pango_font_description_get_size (font_desc);
+
+ PangoFontDescription* font = pango_font_description_new();
+ pango_font_description_set_weight (font, weight);
+ pango_font_description_set_size (font, (int)(size * scale));
+
+ gtk_widget_modify_font (widget, font);
+ pango_font_description_free (font);
+}
+
+int ygutils_getCharsWidth (GtkWidget *widget, int chars_nb)
+{ return YGUtils::getCharsWidth (widget, chars_nb); }
+int ygutils_getCharsHeight (GtkWidget *widget, int chars_nb)
+{ return YGUtils::getCharsHeight (widget, chars_nb); }
+void ygutils_setWidgetFont (GtkWidget *widget, PangoWeight weight, double scale)
+{ YGUtils::setWidgetFont (widget, weight, scale); }
+
+int YGUtils::strcmp (const char *str1, const char *str2)
+{
+ // (if you think this is ugly, just wait for the Perl version! :P)
+ const char *i, *j;
+ for (i = str1, j = str2; *i && *j; i++, j++) {
+ // number comparasion
+ if (isdigit (*i) && isdigit (*j)) {
+ int n1, n2;
+ for (n1 = 0; isdigit (*i); i++)
+ n1 = (*i - '0') + (n1 * 10);
+ for (n2 = 0; isdigit (*j); j++)
+ n2 = (*j - '0') + (n2 * 10);
+
+ if (n1 != n2)
+ return n1 - n2;
+
+ // prepare for loop
+ i--; j--;
+ }
+
+ // regular character comparasion
+ else if (g_ascii_tolower (*i) != g_ascii_tolower(*j))
+ return g_ascii_tolower (*i) - g_ascii_tolower (*j);
+ }
+ if (*i)
+ return -1;
+ if (*j)
+ return 1;
+ return 0; // identicals
+}
+
+bool YGUtils::contains (const string &haystack, const string &needle)
+{
+ unsigned int i, j;
+ for (i = 0; i < haystack.length(); i++) {
+ for (j = 0; j < needle.length() && i+j < haystack.length(); j++)
+ if (g_ascii_tolower (haystack[i+j]) != g_ascii_tolower (needle[j]))
+ break;
+ if (j == needle.length())
+ return true;
+ }
+ return false;
+}
+
+std::list <string> YGUtils::splitString (const string &str, char separator)
+{
+ std::list <string> parts;
+ unsigned int i, j;
+ // ignore first character, if separator
+ i = j = (str[0] == separator) ? 1 : 0;
+ for (; i < str.length(); i++)
+ if (str[i] == separator) {
+ parts.push_back (str.substr (j, i - j));
+ j = ++i;
+ }
+ parts.push_back (str.substr (j));
+ return parts;
+}
+
+void YGUtils::print_model (GtkTreeModel *model, int string_col)
+{
+ fprintf (stderr, "printing model...\n");
+ int depth = 0;
+ GtkTreeIter iter;
+
+ if (!gtk_tree_model_get_iter_first (model, &iter)) {
+ fprintf (stderr, "Couldn't even get a first iterator\n");
+ return;
+ }
+
+ while (true)
+ {
+ // print node
+ gchar *package_name = 0;
+ gtk_tree_model_get (model, &iter, string_col, &package_name, -1);
+ for (int i = 0; i < depth*4; i++)
+ fprintf (stderr, " ");
+ fprintf (stderr, "%s\n", package_name);
+ g_free (package_name);
+
+ if (gtk_tree_model_iter_has_child (model, &iter)) {
+ GtkTreeIter parent = iter;
+ gtk_tree_model_iter_children (model, &iter, &parent);
+ depth++;
+ }
+ else {
+ if (gtk_tree_model_iter_next (model, &iter))
+ ; // continue
+ else {
+ // let's see if there is a parent
+ GtkTreeIter child = iter;
+ if (gtk_tree_model_iter_parent (model, &iter, &child) &&
+ gtk_tree_model_iter_next (model, &iter))
+ depth--;
+ else
+ break;
+ }
+ }
+ }
+}
+
+void YGUtils::tree_view_radio_toggle_cb (GtkCellRendererToggle *renderer,
+ gchar *path_str, GtkTreeModel *model)
+{
+ // Toggle the box
+ GtkTreePath *path = gtk_tree_path_new_from_string (path_str);
+ gint *column = (gint*) g_object_get_data (G_OBJECT (renderer), "column");
+ GtkTreeIter iter;
+ gtk_tree_model_get_iter (model, &iter, path);
+ gtk_tree_path_free (path);
+
+ // Disable radio buttons from the same parent
+ GtkTreeIter parent_iter, child_iter;
+ if (gtk_tree_model_iter_parent (model, &parent_iter, &iter) &&
+ gtk_tree_model_iter_children (model, &child_iter, &parent_iter)) {
+ do gtk_tree_store_set (GTK_TREE_STORE (model), &child_iter, column, FALSE, -1);
+ while (gtk_tree_model_iter_next (model, &child_iter));
+ gtk_tree_store_set (GTK_TREE_STORE (model), &iter, column, TRUE, -1);
+ }
+}
+
+gint YGUtils::sort_compare_cb (GtkTreeModel *model, GtkTreeIter *a,
+ GtkTreeIter *b, gpointer data)
+{
+ IMPL
+ gint col = GPOINTER_TO_INT (data);
+ gchar *str1 = 0, *str2 = 0;
+ gtk_tree_model_get (model, a, col, &str1, -1);
+ gtk_tree_model_get (model, b, col, &str2, -1);
+ gint cmp = 0;
+ if (str1 && str2)
+ cmp = YGUtils::strcmp (str1, str2);
+
+ if (str1)
+ g_free (str1);
+ if (str2)
+ g_free (str2);
+ return cmp;
+}
+
+static void header_clicked_cb (GtkTreeViewColumn *column, GtkTreeSortable *sortable)
+{
+ IMPL
+ GtkTreeViewColumn *last_sorted =
+ (GtkTreeViewColumn *) g_object_get_data (G_OBJECT (sortable), "last-sorted");
+ int id = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (column), "id"));
+
+ GtkSortType sort = GTK_SORT_ASCENDING;
+ if (last_sorted != column) {
+ if (last_sorted)
+ gtk_tree_view_column_set_sort_indicator (last_sorted, FALSE);
+ gtk_tree_view_column_set_sort_indicator (column, TRUE);
+ g_object_set_data (G_OBJECT (sortable), "last-sorted", column);
+ }
+ else {
+ sort = gtk_tree_view_column_get_sort_order (column);
+ sort = sort == GTK_SORT_ASCENDING ? GTK_SORT_DESCENDING : GTK_SORT_ASCENDING;
+ }
+
+ gtk_tree_view_column_set_sort_order (column, sort);
+ gtk_tree_sortable_set_sort_column_id (sortable, id, sort);
+}
+
+void YGUtils::tree_view_set_sortable (GtkTreeView *view, int default_sort_col)
+{
+ IMPL
+ g_assert (gtk_tree_view_get_headers_visible (view));
+
+ /* Set all string columns clickable. */
+ GtkTreeSortable *sortable = GTK_TREE_SORTABLE (gtk_tree_view_get_model (view));
+ // we need a pointer, this function is used by different stuff, so to we'll
+ // use g_object_*_data() to do of garbage collector
+ g_object_set_data (G_OBJECT (sortable), "last-sorted", NULL);
+
+ GList *columns = gtk_tree_view_get_columns (view);
+ for (GList *i = g_list_first (columns); i; i = i->next) {
+ GtkTreeViewColumn *column = (GtkTreeViewColumn *) i->data;
+ int col_nb = g_list_position (columns, i);
+
+ // check if it really is a string column
+ bool string_col = false;
+ GList *renderers = gtk_tree_view_column_get_cell_renderers (column);
+ for (GList *j = g_list_first (renderers); j; j = j->next)
+ if (GTK_IS_CELL_RENDERER_TEXT (j->data)) {
+ string_col = true;
+ break;
+ }
+ g_list_free (renderers);
+ if (!string_col)
+ continue;
+
+ // set sortable and clickable
+ gtk_tree_sortable_set_sort_func (sortable, col_nb, sort_compare_cb,
+ GINT_TO_POINTER (col_nb), NULL);
+ g_object_set_data (G_OBJECT (column), "id", GINT_TO_POINTER (col_nb));
+ gtk_tree_view_column_set_clickable (column, TRUE);
+ g_signal_connect (G_OBJECT (column), "clicked",
+ G_CALLBACK (header_clicked_cb), sortable);
+ if (col_nb == default_sort_col)
+ header_clicked_cb (column, sortable);
+ }
+ g_list_free (columns);
+}
+
+GValue YGUtils::floatToGValue (float num)
+{
+ GValue value = { 0 };
+ g_value_init (&value, G_TYPE_FLOAT);
+ g_value_set_float (&value, num);
+ return value;
+}
+
+#define SCROLLING_TIME 700
+#define SCROLLING_STEP 100
+struct ScrollData {
+ int orix, oriy, diffx, diffy, time;
+ GtkTreeView *view;
+};
+
+static gboolean scroll_timeout (gpointer _data) {
+ ScrollData *data = (ScrollData *) _data;
+ data->time += SCROLLING_STEP;
+
+ int x = data->orix + data->diffx;
+ int y = ((data->diffy * data->time) / SCROLLING_TIME) + data->oriy;
+
+ gtk_tree_view_scroll_to_point (data->view, x, y);
+ return data->time < SCROLLING_TIME;
+}
+
+void YGUtils::tree_view_smooth_scroll_to_point (GtkTreeView *view, gint x, gint y) {
+ GdkRectangle rect;
+ gtk_tree_view_get_visible_rect (view, &rect);
+ if (rect.x == x && rect.y == y)
+ return;
+
+ ScrollData *data = (ScrollData *) g_malloc (sizeof (ScrollData));
+ data->orix = rect.x;
+ data->oriy = rect.y;
+ data->diffx = x - rect.x;
+ data->diffy = y - rect.y;
+ data->time = 0;
+ data->view = view;
+
+ static int id = 0;
+ if (id)
+ g_source_remove (id);
+ id = g_timeout_add_full (G_PRIORITY_DEFAULT, SCROLLING_STEP, scroll_timeout, data, g_free);
+}
+
+GdkPixbuf *YGUtils::loadPixbuf (const string &filename)
+{
+ GdkPixbuf *pixbuf = NULL;
+ if (!filename.empty()) {
+ GError *error = 0;
+ pixbuf = gdk_pixbuf_new_from_file (filename.c_str(), &error);
+ if (!pixbuf)
+ y2warning ("Could not load icon: %s.\nReason: %s\n",
+ filename.c_str(), error->message);
+ }
+ return pixbuf;
+}
+
+#define ENGLISH_STOCK_ITEMS
+
+#ifdef ENGLISH_STOCK_ITEMS
+struct StockMap { const char *ycp_label, *gtk_stock; };
+static const StockMap stockMap[] = {
+ // keep them sorted!
+ {"Abort", GTK_STOCK_CANCEL },
+ {"Accept", GTK_STOCK_APPLY },
+ {"Add", GTK_STOCK_ADD },
+ {"Back", GTK_STOCK_GO_BACK },
+ {"Cancel", GTK_STOCK_CANCEL },
+ {"Configure", GTK_STOCK_PREFERENCES },
+ {"Continue", GTK_STOCK_OK },
+ {"Delete", GTK_STOCK_DELETE },
+ {"Down", GTK_STOCK_GO_DOWN },
+ {"Edit", GTK_STOCK_EDIT },
+ {"Launch", GTK_STOCK_EXECUTE },
+ {"Next", GTK_STOCK_GO_FORWARD },
+ {"No", GTK_STOCK_NO },
+ {"OK", GTK_STOCK_OK },
+ {"Quit", GTK_STOCK_QUIT },
+ {"Search", GTK_STOCK_FIND },
+ {"Up", GTK_STOCK_GO_UP },
+ {"Yes", GTK_STOCK_YES },
+};
+#define STOCKMAP_SIZE (sizeof (stockMap)/sizeof(StockMap))
+static int strcmp_cb (const void *a, const void *b)
+{ return strcmp ((char *) a, ((StockMap *) b)->ycp_label); }
+
+void YGUtils::setStockIcon (GtkWidget *button, std::string ycp_str)
+{
+ // is English the current locale?
+ static bool firstTime = true, isEnglish;
+ if (firstTime) {
+ char *lang = getenv ("LANG");
+ isEnglish = !lang || (!*lang) || !strcmp (lang, "C") ||
+ (lang[0] == 'e' && lang[1] == 'n') ||
+ !strcmp (lang, "POSIX");
+ firstTime = false;
+ }
+ if (!isEnglish)
+ return;
+
+ unsigned int i = 0;
+ while ((i = ycp_str.find ('_', i)) != string::npos)
+ ycp_str.erase (i, 1);
+
+ bool failed = true;
+ void *ptr;
+ ptr = bsearch (ycp_str.c_str(), stockMap, STOCKMAP_SIZE,
+ sizeof(stockMap[0]), strcmp_cb);
+ if (ptr) {
+ const char *stock = ((StockMap *) ptr)->gtk_stock;
+ GdkPixbuf *pixbuf;
+ pixbuf = gtk_widget_render_icon (button, stock,
+ GTK_ICON_SIZE_BUTTON, NULL);
+ if (pixbuf) {
+ GtkWidget *image = gtk_image_new_from_pixbuf (pixbuf);
+ gtk_button_set_image (GTK_BUTTON (button), image);
+ g_object_unref (G_OBJECT (pixbuf));
+ failed = false;
+ }
+ }
+ if (failed)
+ gtk_button_set_image (GTK_BUTTON (button), NULL);
+}
+
+void ygutils_setStockIcon (GtkWidget *button, const char *ycp_str)
+{ YGUtils::setStockIcon (button, ycp_str); }
+
+#else
+void ygutils_setStockIcon (GtkWidget *button, const char *ycp_str) {}
+#endif
+
Added: trunk/gtk/unstable-libyui/src/YGUtils.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGUtils.…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGUtils.h (added)
+++ trunk/gtk/unstable-libyui/src/YGUtils.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,98 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#ifndef YGUTILS_H
+#define YGUTILS_H
+
+#include <string>
+#include <list>
+#include <gtk/gtktextview.h>
+#include <gtk/gtkentry.h>
+#include <gtk/gtktreeview.h>
+#include <gtk/gtktreemodel.h>
+#include <gtk/gtkcellrenderertoggle.h>
+
+// TODO: do a cleanup here. We should probably split string, gtk and stuff
+// Some GtkTreeView should probably go to their own files
+// Let's avoid GTK+ stuff, better to replicate that, if needed, than leave in
+// this general purpose utils.
+
+/* YGUtils.h/cc have some functionality that is shared between different parts
+ of the code. */
+
+namespace YGUtils
+{
+ /* Replaces Yast's '&' accelerator by Gnome's '_' (and proper escaping). */
+ std::string mapKBAccel (const std::string &src);
+
+ /* Adds filter support to a GtkEntry. */
+ void setFilter (GtkEntry *entry, const std::string &validChars);
+
+ /* Replaces every 'mouth' by 'food' in 'str'. */
+ void replace (std::string &str, const char *mouth, int mouth_len, const char *food);
+
+ /* Escapes markup text (eg. changes '<' by '\<'). */
+ void escapeMarkup (std::string &str);
+
+ /* Adds functionality to GtkTextView to scroll to bottom. */
+ void scrollTextViewDown(GtkTextView *text_view);
+
+ /* Returns the average width of the given number of characters in pixels. */
+ int getCharsWidth (GtkWidget *widget, int chars_nb);
+ int getCharsHeight (GtkWidget *widget, int chars_nb);
+
+ /* Sets some widget font proprities. */
+ void setWidgetFont (GtkWidget *widget, PangoWeight weight, double scale);
+
+ /* A more sane strcmp() from the user point of view that honors numbers.
+ i.e. "20" < "100" */
+ int strcmp (const char *str1, const char *str2);
+
+ /* Checks if a std::string contains some other string (case insensitive). */
+ bool contains (const std::string &haystack, const std::string &needle);
+
+ /* Splits a string into parts as separated by the separator characters.
+ eg: splitString ("Office/Writer", '/') => { "Office", "Writer" } */
+ std::list <std::string> splitString (const std::string &str, char separator);
+
+ /* Prints a GtkTreeModel for debugging purposes. */
+ void print_model (GtkTreeModel *model, int string_col);
+
+ /* To be used as a callback to sort tree views. */
+ gint sort_compare_cb (GtkTreeModel *model, GtkTreeIter *a,
+ GtkTreeIter *b, gpointer data);
+
+ /* To be used as a callback for a GtkTreeView with toggle cells. */
+ void tree_view_radio_toggle_cb (GtkCellRendererToggle *renderer,
+ gchar *path_str, GtkTreeModel *model);
+
+ /* Goes through all GtkTreeView columns and checks for TextCellRenderers,
+ setting those columns as sortable. */
+ void tree_view_set_sortable (GtkTreeView *view, int default_sort_col);
+
+ /* Like gtk_tree_view_scroll_to_point(), but does smooth scroll. */
+ void tree_view_smooth_scroll_to_point (GtkTreeView *view, gint x, gint y);
+
+ /* Converts stuff to GValues */
+ GValue floatToGValue (float num);
+
+ void setStockIcon (GtkWidget *button, std::string ycp_str);
+
+ GdkPixbuf *loadPixbuf (const std::string &fileneme);
+};
+
+extern "C" {
+ int ygutils_getCharsWidth (GtkWidget *widget, int chars_nb);
+ int ygutils_getCharsHeight (GtkWidget *widget, int chars_nb);
+ void ygutils_setWidgetFont (GtkWidget *widget, PangoWeight weight, double scale);
+
+ void ygutils_setFilter (GtkEntry *entry, const char *validChars);
+
+ /* Convert html to xhtml (or at least try) */
+ gchar *ygutils_convert_to_xhmlt_and_subst (const char *instr, const char *product);
+ void ygutils_setStockIcon (GtkWidget *button, const char *ycp_str);
+};
+
+#endif // YGUTILS_H
+
Added: trunk/gtk/unstable-libyui/src/YGWidget.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGWidget…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGWidget.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGWidget.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,258 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <stdarg.h>
+#include "YGWidget.h"
+#include "YGUtils.h"
+#include "ygtkratiobox.h"
+
+// default widgets border -- may be overlapped with a setBorder(..)
+#define DEFAULT_BORDER 6
+#define LABEL_WIDGET_SPACING 4
+
+/* YGWidget follows */
+
+YGWidget::YGWidget(YWidget *ywidget, YWidget *yparent, bool show,
+ GtkType type, const char *property_name, ...)
+ : m_ywidget (ywidget)
+{
+ va_list args;
+ va_start (args, property_name);
+ construct (ywidget, yparent, show, type, property_name, args);
+ va_end (args);
+}
+
+void YGWidget::construct (YWidget *ywidget, YWidget *yparent, bool _show,
+ GType type, const char *property_name, va_list args)
+{
+ m_widget = GTK_WIDGET (g_object_new_valist (type, property_name, args));
+
+ if (type == GTK_TYPE_WINDOW)
+ m_adj_size = m_widget;
+ else {
+ m_adj_size = ygtk_adj_size_new();
+ g_object_ref_sink (G_OBJECT (m_adj_size));
+ gtk_widget_show (m_adj_size);
+ gtk_container_add (GTK_CONTAINER (m_adj_size), m_widget);
+ }
+
+fprintf (stderr, "set widget rep\n");
+ ywidget->setWidgetRep ((void *) this);
+ if (yparent)
+ ywidget->setParent (yparent);
+
+ // Split by two so that with another widget it will have full border...
+ setBorder (DEFAULT_BORDER / 2);
+ if (_show)
+ show();
+}
+
+YGWidget::~YGWidget()
+{
+ IMPL
+ gtk_widget_destroy (m_adj_size);
+ g_object_unref (G_OBJECT (m_adj_size));
+}
+
+void YGWidget::show()
+{
+ gtk_widget_show (m_widget);
+}
+
+YGWidget *YGWidget::get (YWidget *ywidget)
+{
+ g_assert (ywidget != NULL);
+ g_assert (ywidget->widgetRep() != NULL);
+ return (YGWidget *) ywidget->widgetRep();
+}
+
+bool YGWidget::doSetKeyboardFocus()
+{
+ gtk_widget_grab_focus (GTK_WIDGET (getWidget()));
+ return gtk_widget_is_focus (GTK_WIDGET (getWidget()));
+}
+
+void YGWidget::doSetEnabling (bool enabled)
+{
+ gtk_widget_set_sensitive (getWidget(), enabled);
+}
+
+void YGWidget::emitEvent(YEvent::EventReason reason, bool if_notify,
+ bool if_not_pending, bool immediate)
+{
+ struct inner
+ {
+ static gboolean dispatchEvent (gpointer data)
+ {
+ YWidgetEvent *event = (YWidgetEvent *) data;
+ if (!YGUI::ui()->eventPendingFor (event->widget()))
+ YGUI::ui()->sendEvent (event);
+ return FALSE;
+ }
+ };
+
+ if (!if_notify || m_ywidget->notify())
+ {
+ if (!immediate)
+ g_timeout_add (250, inner::dispatchEvent, new YWidgetEvent (m_ywidget, reason));
+ else if (!if_not_pending || !YGUI::ui()->eventPendingFor (m_ywidget))
+ {
+ if (immediate)
+ YGUI::ui()->sendEvent (new YWidgetEvent (m_ywidget, reason));
+ }
+ }
+}
+
+void YGWidget::setBorder (unsigned int border)
+{
+ IMPL
+ gtk_container_set_border_width (GTK_CONTAINER (m_adj_size), border);
+}
+
+void YGWidget::setMinSize (unsigned int width, unsigned int height)
+{
+ IMPL
+ ygtk_adj_size_set_min (YGTK_ADJ_SIZE (m_adj_size), width, height);
+}
+
+void YGWidget::setMinSizeInChars (unsigned int width, unsigned int height)
+{
+ IMPL
+ if (width)
+ width = YGUtils::getCharsWidth (getWidget(), width);
+ if (height)
+ height = YGUtils::getCharsHeight (getWidget(), height);
+ setMinSize (width, height);
+}
+
+void YGWidget::sync_stretchable (YWidget *child)
+{
+ IMPL
+ YWidget *parent = m_ywidget->parent();
+ if (parent)
+ // tell parent to sync too!
+ YGWidget::get (parent)->sync_stretchable (m_ywidget);
+}
+
+/* YGLabeledWidget follows */
+
+YGLabeledWidget::YGLabeledWidget (YWidget *ywidget, YWidget *parent,
+ const std::string &label_text, YUIDimension label_ori,
+ bool show, GType type,
+ const char *property_name, ...)
+ : YGWidget (ywidget, parent, show,
+ label_ori == YD_VERT ? GTK_TYPE_VBOX : GTK_TYPE_HBOX,
+ "spacing", LABEL_WIDGET_SPACING, NULL)
+{
+ // Create the field widget
+ va_list args;
+ va_start (args, property_name);
+ m_field = GTK_WIDGET (g_object_new_valist (type, property_name, args));
+ va_end (args);
+
+ // Create the label
+ m_label = gtk_label_new ("");
+ gtk_misc_set_alignment (GTK_MISC (m_label), 0.0, 0.5);
+ if (label_ori == YD_HORIZ)
+ gtk_label_set_line_wrap (GTK_LABEL (m_label), TRUE);
+ if(show) {
+ gtk_widget_show (m_label);
+ gtk_widget_show (m_field);
+ }
+
+ setBuddy (m_field);
+ doSetLabel (label_text);
+
+ // Set the container and show widgets
+ gtk_box_pack_start (GTK_BOX (m_widget), m_label, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (m_widget), m_field, TRUE, TRUE, 0);
+ m_orientation = label_ori;
+}
+
+void YGLabeledWidget::setLabelVisible (bool show)
+{
+ if (show)
+ gtk_widget_show (m_label);
+ else
+ gtk_widget_hide (m_label);
+}
+
+void YGLabeledWidget::setBuddy (GtkWidget *widget)
+{
+ gtk_label_set_mnemonic_widget (GTK_LABEL (m_label), widget);
+}
+
+void YGLabeledWidget::doSetLabel (const std::string &label)
+{
+ string str = YGUtils::mapKBAccel (label);
+ if (str.empty())
+ gtk_widget_hide (m_label);
+ else {
+ gtk_widget_show (m_label);
+
+ // add a ':' at the end
+ int last = str.length()-1;
+ if (str [last] != ':' && str [last] != '.' && str [last] != ' ')
+ str += ':';
+
+ // set it as upper case
+ unsigned int first = (str [0] == '_') ? 1 : 0;
+ if (str [first] >= 'a' && str [first] <= 'z')
+ str [first] += 'A' - 'a';
+
+ gtk_label_set_text (GTK_LABEL (m_label), str.c_str());
+ gtk_label_set_use_underline (GTK_LABEL (m_label), TRUE);
+ }
+}
+
+/* YGScrolledWidget follows */
+#define MAX_SCROLL_WIDTH 120
+
+YGScrolledWidget::YGScrolledWidget (YWidget *ywidget, YWidget *parent,
+ bool show, GType type,
+ const char *property_name, ...)
+ : YGLabeledWidget (ywidget, parent, string(), YD_VERT, show,
+ YGTK_TYPE_SCROLLED_WINDOW, "shadow-type", GTK_SHADOW_IN, NULL)
+{
+ va_list args;
+ va_start (args, property_name);
+ construct(type, property_name, args);
+ va_end (args);
+
+ setLabelVisible (false);
+}
+
+YGScrolledWidget::YGScrolledWidget (YWidget *ywidget, YWidget *parent,
+ const std::string &label_text, YUIDimension label_ori,
+ bool show, GType type,
+ const char *property_name, ...)
+ : YGLabeledWidget (ywidget, parent, label_text, label_ori, show,
+ YGTK_TYPE_SCROLLED_WINDOW, "shadow-type", GTK_SHADOW_IN, NULL)
+{
+ va_list args;
+ va_start (args, property_name);
+ construct(type, property_name, args);
+ va_end (args);
+}
+
+void YGScrolledWidget::construct (GType type, const char *property_name,
+ va_list args)
+{
+ m_widget = GTK_WIDGET (g_object_new_valist (type, property_name, args));
+ setBuddy (m_widget);
+
+ setPolicy (GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_container_add (GTK_CONTAINER (YGLabeledWidget::getWidget()), m_widget);
+ gtk_widget_show (m_widget);
+}
+
+void YGScrolledWidget::setPolicy (GtkPolicyType hpolicy, GtkPolicyType vpolicy)
+{
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (YGLabeledWidget::getWidget()),
+ hpolicy, vpolicy);
+ ygtk_scrolled_window_set_auto_policy (YGTK_SCROLLED_WINDOW (YGLabeledWidget::getWidget()),
+ hpolicy == GTK_POLICY_AUTOMATIC ? MAX_SCROLL_WIDTH : 0, 0);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGWidget.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGWidget…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGWidget.h (added)
+++ trunk/gtk/unstable-libyui/src/YGWidget.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,155 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#ifndef YGWIDGET_H
+#define YGWIDGET_H
+
+#include <gtk/gtk.h>
+#include <stdarg.h>
+#include "YGUI.h"
+#include "YEvent.h"
+
+class YGWidget
+{
+public:
+ YGWidget(YWidget *ywidget, YWidget *yparent, bool show,
+ GType type, const char *property_name, ...);
+ virtual ~YGWidget();
+
+ virtual GtkWidget *getWidget() { return m_widget; }
+ // containers should use this call rather than getWidget()
+ GtkWidget *getLayout() { return m_adj_size; }
+
+ // Get the YGWidget associated with a YWidget
+ static YGWidget *get (YWidget *y_widget);
+
+ // debug
+ const char *getWidgetName() const { return m_ywidget->widgetClass(); }
+ virtual string getDebugLabel() const // let YWidget::debugLabel() be overloaded
+ { // container debug labels are worse than useless
+ if (m_ywidget->hasChildren()) return string();
+ return m_ywidget->debugLabel(); }
+
+ // for YWidget
+ virtual bool doSetKeyboardFocus();
+ virtual void doSetEnabling (bool enabled);
+
+ // Event handling
+ void emitEvent(YEvent::EventReason reason, bool if_notify = true,
+ bool if_not_pending = false, bool immediate = true);
+
+ // Aesthetics
+ void setBorder (unsigned int border); // in pixels
+ void setMinSize (unsigned int min_width, unsigned int min_height);
+ void setMinSizeInChars (unsigned int min_width, unsigned int min_height);
+
+ // whenever the stretchable property may change (eg. when adding a child
+ // for a container), call this function to make sure it is honored.
+ virtual void sync_stretchable (YWidget *child = 0);
+
+protected:
+ void show();
+
+ GtkWidget *m_widget; // associated GtkWidget -- use getWidget()
+ GtkWidget *m_adj_size; // installed on m_widget, allows better size constrains
+ YWidget *m_ywidget; // associated YWidget
+
+ void construct (YWidget *ywidget, YWidget *yparent,
+ bool show, GType type,
+ const char *property_name, va_list args);
+};
+
+/*
+ * Macros to help implement proxies between common YWidget virtual
+ * methods and the (multiply inherited) YGWidget base implementation
+ * for GTK+.
+ */
+#define YGWIDGET_IMPL_COMMON \
+ virtual bool setKeyboardFocus() \
+ { return doSetKeyboardFocus(); } \
+ virtual void setEnabling (bool enabled) \
+ { doSetEnabling (enabled); } \
+ virtual int preferredWidth() { return 0; } \
+ virtual int preferredHeight() { return 0; } \
+ virtual void moveChild (YWidget *child, int x, int y) {} \
+ virtual void setSize (int width, int height) {}
+
+#define YGWIDGET_IMPL_USE_BOLD(ParentClass) \
+ virtual void setUseBoldFont (bool useBold) { \
+ PangoWeight weight = useBold ? PANGO_WEIGHT_BOLD : PANGO_WEIGHT_NORMAL; \
+ YGUtils::setWidgetFont (getWidget(), weight, PANGO_SCALE_MEDIUM); \
+ ParentClass::setUseBoldFont (useBold); \
+ }
+
+// for containers
+#define YGWIDGET_IMPL_CHILD_ADDED(container) \
+ virtual void addChild (YWidget *ychild) { \
+ YWidget::addChild (ychild); \
+ GtkWidget *child = YGWidget::get (ychild)->getLayout(); \
+ gtk_container_add (GTK_CONTAINER (container), child); \
+ sync_stretchable(); \
+ }
+#define YGWIDGET_IMPL_CHILD_REMOVED(container) \
+ virtual void removeChild (YWidget *ychild) { \
+ YWidget::removeChild (ychild); \
+ GtkWidget *child = YGWidget::get (ychild)->getLayout(); \
+ gtk_container_remove (GTK_CONTAINER (container), child); \
+ }
+
+/* This is a convenience class that allows for a label next to the
+ intended widget. It should be used, in case you have the need for
+ such, as it gives an uniform API. */
+class YGLabeledWidget : public YGWidget
+{
+ public:
+ YGLabeledWidget(YWidget *ywidget, YWidget *yparent,
+ const std::string &label_text, YUIDimension label_ori,
+ bool show, GType type, const char *property_name, ...);
+ virtual ~YGLabeledWidget () {}
+
+ virtual GtkWidget* getWidget() { return m_field; }
+
+ void setLabelVisible(bool show);
+ void setBuddy (GtkWidget *widget);
+ virtual void doSetLabel (const std::string &label);
+
+ YUIDimension orientation() { return m_orientation; }
+ GtkWidget *getLabelWidget() { return m_label; }
+
+ protected:
+ GtkWidget *m_label, *m_field;
+ YUIDimension m_orientation;
+};
+
+#define YGLABEL_WIDGET_IMPL_SET_LABEL_CHAIN(ParentClass) \
+ virtual void setLabel (const std::string &label) { \
+ IMPL \
+ doSetLabel (label); \
+ ParentClass::setLabel (label); \
+ }
+
+/* This is a convenience class for widgets that need scrollbars. */
+class YGScrolledWidget : public YGLabeledWidget
+{
+ public:
+ YGScrolledWidget(YWidget *ywidget, YWidget *yparent,
+ bool show, GType type, const char *property_name, ...);
+ // if you want a label, use:
+ YGScrolledWidget(YWidget *ywidget, YWidget *yparent,
+ const std::string &label_text, YUIDimension label_ori,
+ bool show, GType type, const char *property_name, ...);
+ virtual ~YGScrolledWidget () {}
+
+ virtual GtkWidget *getWidget() { return m_widget; }
+
+ // you should use this method, not gtk_scrolled_window_set...
+ void setPolicy (GtkPolicyType hpolicy, GtkPolicyType vpolicy);
+
+ protected:
+ void construct(GType type, const char *property_name, va_list args);
+ GtkWidget *m_widget;
+};
+
+#endif /*YGWIDGET_H*/
+
Added: trunk/gtk/unstable-libyui/src/YGWizard.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGWizard…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGWizard.cc (added)
+++ trunk/gtk/unstable-libyui/src/YGWizard.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,281 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <ycp/y2log.h>
+#include <YGUI.h>
+#include "YGWidget.h"
+#include "YGUtils.h"
+#include "ygtkwizard.h"
+#include "YWizard.h"
+#include "YPushButton.h"
+#include "YAlignment.h"
+#include "YReplacePoint.h"
+#include "YGDialog.h"
+
+class YGWizard : public YWizard, public YGWidget
+{
+ bool m_verboseCommands;
+ YReplacePoint *m_replacePoint;
+
+ /* YCP requires us to allow people to use YPushButton API on the wizard buttons.
+ Wizard already has handlers for them; this seems like bad design.
+
+ We could support wrapping right in our framework. One way, would be to subclass
+ YWidgetOpt to have a wrapping field where we would set a GtkWidget*. Then,
+ classes should pass opt to YGWidget and it would create a shallow instance
+ around it. However, this isn't really doable. The problem is that, like
+ in this case, the API isn't really exact; events must be sent as YWizard events.
+ */
+ struct YGWButton : public YPushButton {
+ /* Thin class; just changes the associated button label and keeps track
+ of id change. */
+ YGWButton (YWidget *parent, GtkWidget *widget, const std::string &label)
+ : YPushButton (parent, label)
+ { m_widget = widget; setLabel (label); }
+
+ void setLabel (const string &label) {
+ string str = YGUtils::mapKBAccel (label.c_str());
+ gtk_button_set_label (GTK_BUTTON (m_widget), str.c_str());
+ str.empty() ? gtk_widget_hide (m_widget) : gtk_widget_show (m_widget);
+ YGUtils::setStockIcon (m_widget, str);
+ YPushButton::setLabel (label);
+ }
+
+ void setEnabled (bool enable) {
+ gtk_widget_set_sensitive (m_widget, enable);
+ YWidget::setEnabled (enable);
+ }
+
+ int preferredWidth() { return 0; }
+ int preferredHeight() { return 0; }
+ void setSize (int w, int h) {}
+
+ private:
+ GtkWidget *m_widget;
+ };
+
+ YGWButton *m_back_button, *m_abort_button, *m_next_button;
+ // release notes button would be a little more hassle to support; yast-qt
+ // doesn't support it too anyway.
+
+public:
+ YGWizard (YWidget *parent, const string &backButtonLabel,
+ const string &abortButtonLabel, const string &nextButtonLabel,
+ YWizardMode wizardMode)
+ : YWizard (parent, backButtonLabel, abortButtonLabel, nextButtonLabel, wizardMode)
+ , YGWidget (this, parent, true, YGTK_TYPE_WIZARD, NULL)
+ {
+ IMPL
+ setBorder (0);
+ m_verboseCommands = false;
+
+ //** Application area
+ {
+ YAlignment *align = YUI::widgetFactory()->createAlignment (this,
+ YAlignCenter, YAlignCenter);
+ align->setStretchable (YD_HORIZ, true);
+ align->setStretchable (YD_VERT, true);
+
+ m_replacePoint = YUI::widgetFactory()->createReplacePoint ((YWidget *) align);
+ YUI::widgetFactory()->createEmpty ((YWidget *) m_replacePoint);
+ m_replacePoint->showChild();
+ }
+
+ //** Steps/tree pane
+ bool steps_enabled = wizardMode == YWizardMode_Steps;
+ bool tree_enabled = wizardMode == YWizardMode_Tree;
+ if (steps_enabled && tree_enabled) {
+ y2error ("YGWizard doesn't support both steps and tree enabled at the "
+ "same time.\nDisabling the steps...");
+ steps_enabled = false;
+ }
+ if (steps_enabled)
+ ygtk_wizard_enable_steps (getWizard());
+ if (tree_enabled)
+ ygtk_wizard_enable_tree (getWizard());
+
+ //** Setting the bottom buttons
+ m_back_button = new YGWButton (this, getWizard()->m_back_button, backButtonLabel);
+ m_abort_button = new YGWButton (this, getWizard()->m_abort_button, abortButtonLabel);
+ m_next_button = new YGWButton (this, getWizard()->m_next_button, nextButtonLabel);
+
+ //** All event are sent through this signal together with an id
+ g_signal_connect (G_OBJECT (getWidget()), "action-triggered",
+ G_CALLBACK (action_triggered_cb), this);
+ }
+
+ virtual ~YGWizard()
+ {
+ // m_back/abort/next_button are added as children and will be freed by ~YContainerWidget
+ }
+
+ inline YGtkWizard *getWizard()
+ { return YGTK_WIZARD (getWidget()); }
+
+ virtual YReplacePoint *contentsReplacePoint() const
+ { return m_replacePoint; }
+
+ virtual YPushButton *backButton() const
+ { return m_back_button; }
+ virtual YPushButton *abortButton() const
+ { return m_abort_button; }
+ virtual YPushButton *nextButton() const
+ { return m_next_button; }
+
+ virtual void setButtonLabel (YPushButton *button, const string &label)
+ {
+ button->setLabel (label);
+ }
+
+ virtual void setHelpText (const string &text)
+ {
+ ygtk_wizard_set_help_text (getWizard(), text.c_str());
+ }
+
+ virtual void setDialogIcon (const string &icon)
+ {
+ if (!ygtk_wizard_set_header_icon (getWizard(), YGDialog::currentWindow(),
+ icon.c_str()))
+ y2warning ("YGWizard: could not load image: %s", icon.c_str());
+ }
+
+ virtual void setDialogHeading (const string &heading)
+ {
+ ygtk_wizard_set_header_text (getWizard(), YGDialog::currentWindow(),
+ heading.c_str());
+ }
+
+ virtual void addStep (const string &text, const string &id)
+ {
+ ygtk_wizard_add_step (getWizard(), text.c_str(), id.c_str());
+ }
+
+ virtual void addStepHeading (const string &text)
+ {
+ ygtk_wizard_add_step_header (getWizard(), text.c_str());
+ }
+
+ virtual void deleteSteps()
+ {
+ ygtk_wizard_clear_steps (getWizard());
+ }
+
+ virtual void setCurrentStep (const string &id)
+ {
+ if (!ygtk_wizard_set_current_step (getWizard(), id.c_str()))
+ y2error ("YGWizard: there is no step with id %s.", id.c_str());
+ }
+
+ virtual void updateSteps()
+ {}
+
+ virtual void addTreeItem (const string &parentID, const string &text,
+ const string &id)
+ {
+ if (!ygtk_wizard_add_tree_item (getWizard(), parentID.c_str(),
+ text.c_str(), id.c_str()))
+ y2error ("YGWizard: there is no tree item with id '%s'",
+ parentID.c_str());
+ }
+
+ virtual void selectTreeItem (const string &id)
+ {
+ if (!ygtk_wizard_select_tree_item (getWizard(), id.c_str()))
+ y2error ("YGWizard: there is no tree item with id '%s'", id.c_str());
+ }
+
+ virtual string currentTreeSelection()
+ {
+ const char *selected = ygtk_wizard_get_tree_selection (getWizard());
+ if (selected)
+ return selected;
+ return string();
+ }
+
+ virtual void deleteTreeItems()
+ {
+ ygtk_wizard_clear_tree (getWizard());
+ }
+
+ virtual void addMenu (const string &text, const string &id)
+ {
+ string str = YGUtils::mapKBAccel (text);
+ ygtk_wizard_add_menu (getWizard(), str.c_str(), id.c_str());
+ }
+
+ virtual void addSubMenu (const string &parentID, const string &text,
+ const string &id)
+ {
+ string str = YGUtils::mapKBAccel(text);
+ if (!ygtk_wizard_add_sub_menu (getWizard(), parentID.c_str(), str.c_str(),
+ id.c_str()))
+ y2error ("YGWizard: there is no menu item with id '%s'",
+ parentID.c_str());
+ }
+
+ virtual void addMenuEntry (const string &parentID, const string &text,
+ const string &id)
+ {
+ string str = YGUtils::mapKBAccel (text);
+ if (!ygtk_wizard_add_menu_entry (getWizard(), parentID.c_str(),
+ str.c_str(), id.c_str()))
+ y2error ("YGWizard: there is no menu item with id '%s'",
+ parentID.c_str());
+ }
+
+ virtual void addMenuSeparator (const string & parentID)
+ {
+ if (!ygtk_wizard_add_menu_separator (getWizard(), parentID.c_str()))
+ y2error ("YGWizard: there is no menu item with id '%s'",
+ parentID.c_str());
+ }
+
+ virtual void deleteMenus()
+ {
+ ygtk_wizard_clear_menu (getWizard());
+ }
+
+ virtual void showReleaseNotesButton (const string &label, const string &id)
+ {
+ string str = YGUtils::mapKBAccel (label.c_str());
+ ygtk_wizard_set_release_notes_button_label (getWizard(), label.c_str(),
+ g_strdup (id.c_str()), free_string_cb);
+ }
+
+ virtual void hideReleaseNotesButton()
+ {
+ ygtk_wizard_show_release_notes_button (getWizard(), FALSE);
+ }
+
+ virtual void retranslateInternalButtons()
+ {}
+
+ static void action_triggered_cb (YGtkWizard *wizard, gpointer id,
+ gint id_type, YGWizard *pThis)
+ {
+ IMPL
+ if ((GType) id_type == G_TYPE_STRING)
+ YGUI::ui()->sendEvent (new YMenuEvent ((char *) id));
+ else
+ YGUI::ui()->sendEvent (new YMenuEvent (*((YCPValue *) id)));
+ }
+
+ static void free_string_cb (gpointer data)
+ { g_free (data); }
+
+
+ YGWIDGET_IMPL_COMMON
+ YGWIDGET_IMPL_CHILD_ADDED (getWidget())
+ YGWIDGET_IMPL_CHILD_REMOVED (getWidget())
+};
+
+YWizard *YGOptionalWidgetFactory::createWizard (YWidget *parent,
+ const string &backButtonLabel, const string &abortButtonLabel,
+ const string &nextButtonLabel, YWizardMode wizardMode)
+{
+ return new YGWizard (parent, backButtonLabel, abortButtonLabel, nextButtonLabel,
+ wizardMode);
+}
+
Added: trunk/gtk/unstable-libyui/src/YGi18n.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/YGi18n.h…
==============================================================================
--- trunk/gtk/unstable-libyui/src/YGi18n.h (added)
+++ trunk/gtk/unstable-libyui/src/YGi18n.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,38 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: YGi18n.h
+
+ Author: Jiri Srain <jsrain(a)suse.cz>
+
+/-*/
+
+// -*- c++ -*-
+
+#ifndef YGi18n_h
+#define YGi18n_h
+
+#include <libintl.h>
+
+
+inline const char * _( const char * msgid )
+{
+ return ( !msgid || !*msgid ) ? "" : gettext(msgid );
+}
+
+inline const char * _( const char * msgid1, const char * msgid2, unsigned long int n )
+{
+ return ngettext(msgid1, msgid2, n );
+}
+
+
+#endif // YGi18n_h
Added: trunk/gtk/unstable-libyui/src/dummy.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/dummy.cc…
==============================================================================
--- trunk/gtk/unstable-libyui/src/dummy.cc (added)
+++ trunk/gtk/unstable-libyui/src/dummy.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,12 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <YGUI.h>
+
+int main (int argc, char **argv)
+{
+ YGUI(argc, argv, false, "foo");
+ return 0;
+}
Added: trunk/gtk/unstable-libyui/src/icons/cat-development.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/ca…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/cat-development.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/cat-development.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,328 @@
+/* XPM */
+static const char * cat_development_xpm[] = {
+"22 22 303 2",
+" c None",
+". c #C4A61B",
+"+ c #C4A419",
+"@ c #C5A30C",
+"# c #C6A40C",
+"$ c #C7A610",
+"% c #C5A30B",
+"& c #C4A414",
+"* c #C4A71E",
+"= c #C4A417",
+"- c #F7F2E1",
+"; c #F3EDD4",
+"> c #F9F5DB",
+", c #FBFAE7",
+"' c #FAF7E9",
+") c #F9F7EC",
+"! c #EFE7C1",
+"~ c #C5A40C",
+"{ c #C6A406",
+"] c #D9C257",
+"^ c #F9F5E5",
+"/ c #F8EFA2",
+"( c #FAF1A4",
+"_ c #FAF1A2",
+": c #F9F09E",
+"< c #F3EAA1",
+"[ c #E7D779",
+"} c #DDCA72",
+"| c #C6A408",
+"1 c #C8A70D",
+"2 c #D0B333",
+"3 c #EDE1A5",
+"4 c #FDFBE9",
+"5 c #FBF3B0",
+"6 c #FCF4B1",
+"7 c #FDF5B1",
+"8 c #FCF4AC",
+"9 c #FBF2A2",
+"0 c #E9DA7F",
+"a c #F4EDC2",
+"b c #EFE5B8",
+"c c #C5A205",
+"d c #C7A60A",
+"e c #C7A407",
+"f c #F9F4CF",
+"g c #FCF8D9",
+"h c #FDFBE7",
+"i c #FBF4B9",
+"j c #FCF4B6",
+"k c #FCF4B4",
+"l c #FCF4AD",
+"m c #FAF2A4",
+"n c #E8D875",
+"o c #F3E887",
+"p c #F8F0B2",
+"q c #F7F1CF",
+"r c #D6BE52",
+"s c #C6A308",
+"t c #F7F1C8",
+"u c #F9F3C3",
+"v c #F8F1B4",
+"w c #FBF7D5",
+"x c #FBF5C4",
+"y c #FAF3B5",
+"z c #F9F2AF",
+"A c #F9F0A8",
+"B c #F8EF9F",
+"C c #E7D673",
+"D c #F5EA8A",
+"E c #F7EFA7",
+"F c #FAF6D2",
+"G c #EADD9C",
+"H c #C7A40A",
+"I c #C7A408",
+"J c #E9DC9B",
+"K c #F6F0B8",
+"L c #F5EDA5",
+"M c #F7F0B0",
+"N c #F9F3C2",
+"O c #FAF4C3",
+"P c #F8F0AF",
+"Q c #F7EFA8",
+"R c #F7EDA0",
+"S c #F5EB96",
+"T c #EBDC79",
+"U c #F3E782",
+"V c #F8F0B3",
+"W c #F5EB9F",
+"X c #F5EDAD",
+"Y c #E2D082",
+"Z c #C5A202",
+"` c #C4A20E",
+" . c #D7C054",
+".. c #F6F0C3",
+"+. c #F1E790",
+"@. c #F3EA9B",
+"#. c #F4ECA4",
+"$. c #F5EDA8",
+"%. c #F6EFB1",
+"&. c #F5ECA3",
+"*. c #F5EB9D",
+"=. c #F4EA95",
+"-. c #F0E588",
+";. c #F0E37F",
+">. c #F0E379",
+",. c #F5EEAB",
+"'. c #EDDF6C",
+"). c #E9D952",
+"!. c #EFE6AA",
+"~. c #C7A409",
+"{. c #C4A208",
+"]. c #E2D183",
+"^. c #F1E89F",
+"/. c #EEE383",
+"(. c #F0E58B",
+"_. c #F1E792",
+":. c #F2E896",
+"<. c #F2E892",
+"[. c #F1E68D",
+"}. c #F1E586",
+"|. c #EEE07B",
+"1. c #EEE174",
+"2. c #EDE070",
+"3. c #EEE37E",
+"4. c #E8D852",
+"5. c #E5D33E",
+"6. c #F0E79E",
+"7. c #D7BE53",
+"8. c #C5A30A",
+"9. c #F4EFD0",
+"0. c #E8DA68",
+"a. c #EADD71",
+"b. c #ECDF79",
+"c. c #EDE17E",
+"d. c #EEE281",
+"e. c #EEE27F",
+"f. c #EDE17B",
+"g. c #ECE074",
+"h. c #EBDC6B",
+"i. c #EADB64",
+"j. c #E8D856",
+"k. c #E5D447",
+"l. c #E1CF30",
+"m. c #E0CC2A",
+"n. c #E8DA66",
+"o. c #E9DEA8",
+"p. c #C4A209",
+"q. c #F6F2D1",
+"r. c #E5D555",
+"s. c #E6D75D",
+"t. c #E8D964",
+"u. c #E6D658",
+"v. c #E6D654",
+"w. c #E3D243",
+"x. c #E3D343",
+"y. c #E4D243",
+"z. c #E3D140",
+"A. c #E3D03B",
+"B. c #DFCC2A",
+"C. c #DECA26",
+"D. c #DECA24",
+"E. c #DDC921",
+"F. c #DCC81E",
+"G. c #DBC61A",
+"H. c #EDE29E",
+"I. c #C4A30A",
+"J. c #C5A308",
+"K. c #F5F0C9",
+"L. c #DCC92A",
+"M. c #DDC929",
+"N. c #DBC519",
+"O. c #DAC517",
+"P. c #ECE183",
+"Q. c #E9DB6E",
+"R. c #E6D860",
+"S. c #E5D452",
+"T. c #E2D143",
+"U. c #DFCD33",
+"V. c #DCC823",
+"W. c #C5B112",
+"X. c #D9C414",
+"Y. c #D8C311",
+"Z. c #D7C20E",
+"`. c #F4EFC3",
+" + c #C5A40D",
+".+ c #F9F6E1",
+"++ c #D4BD04",
+"@+ c #D5BE05",
+"#+ c #D5BF08",
+"$+ c #D6C00A",
+"%+ c #E2D14A",
+"&+ c #D7C10D",
+"*+ c #D7C10E",
+"=+ c #D7C10C",
+"-+ c #BFAB08",
+";+ c #D6C009",
+">+ c #D5BF07",
+",+ c #D4BE05",
+"'+ c #F3EDBD",
+")+ c #C19F04",
+"!+ c #C3A20A",
+"~+ c #EEE5A9",
+"{+ c #E7DA72",
+"]+ c #D3BC01",
+"^+ c #D3BC00",
+"/+ c #DDCB38",
+"(+ c #BEA900",
+"_+ c #D4BE07",
+":+ c #DFCE43",
+"<+ c #F2EBBD",
+"[+ c #BA9900",
+"}+ c #C9B142",
+"|+ c #E6D791",
+"1+ c #F1E8A6",
+"2+ c #E4D55D",
+"3+ c #DBC92E",
+"4+ c #BFAA00",
+"5+ c #D6C00F",
+"6+ c #E2D355",
+"7+ c #E3D45B",
+"8+ c #EFE6BB",
+"9+ c #A58700",
+"0+ c #967C08",
+"a+ c #D8C360",
+"b+ c #E1D356",
+"c+ c #E7DA6D",
+"d+ c #DECD40",
+"e+ c #DBC82D",
+"f+ c #DAC82B",
+"g+ c #C7B313",
+"h+ c #E1D04B",
+"i+ c #E6D86B",
+"j+ c #E5D867",
+"k+ c #F8F4D8",
+"l+ c #EADEAA",
+"m+ c #CCB337",
+"n+ c #F1E9B9",
+"o+ c #E0D04A",
+"p+ c #E0CF46",
+"q+ c #E1D14E",
+"r+ c #E2D356",
+"s+ c #E1D24F",
+"t+ c #E0CF48",
+"u+ c #E4D55F",
+"v+ c #E8DC76",
+"w+ c #E9DC78",
+"x+ c #E8DC77",
+"y+ c #E8DB73",
+"z+ c #F3ECB7",
+"A+ c #F4EFD3",
+"B+ c #C29F05",
+"C+ c #AE9006",
+"D+ c #D8C25F",
+"E+ c #F2ECBB",
+"F+ c #E9DE7F",
+"G+ c #E2D252",
+"H+ c #E3D45A",
+"I+ c #E5D662",
+"J+ c #E6D86A",
+"K+ c #E7DA71",
+"L+ c #E9DD7D",
+"M+ c #EADE80",
+"N+ c #EADF81",
+"O+ c #EADE7F",
+"P+ c #F7F3D1",
+"Q+ c #F7F3D9",
+"R+ c #D6BD4E",
+"S+ c #886F00",
+"T+ c #B99905",
+"U+ c #D5BC4D",
+"V+ c #F2EBC2",
+"W+ c #F4EEC4",
+"X+ c #ECE18D",
+"Y+ c #E5D765",
+"Z+ c #E7D96D",
+"`+ c #E8DB75",
+" @ c #EBE084",
+".@ c #F0E9AB",
+"+@ c #F8F4D6",
+"@@ c #F9F7E2",
+"#@ c #EEE4B7",
+"$@ c #D6BC4D",
+"%@ c #B09001",
+"&@ c #A58800",
+"*@ c #C19F06",
+"=@ c #E0D085",
+"-@ c #EADFAD",
+";@ c #F2ECCE",
+">@ c #F5F0D7",
+",@ c #F7F3DC",
+"'@ c #F7F3DD",
+")@ c #F4F0D6",
+"!@ c #F2ECCF",
+"~@ c #E3D38B",
+"{@ c #D5BE51",
+"]@ c #C2A006",
+"^@ c #A1860A",
+"/@ c #A78A08",
+"(@ c #AA8C08",
+"_@ c #AC8E08",
+":@ c #B09108",
+"<@ c #9C8109",
+"[@ c #9D830A",
+" . + @ # $ % & * . ",
+" = - ; > , ' ) ! ~ ",
+" { ] ^ / ( _ : < [ } | ",
+" 1 2 3 4 5 6 7 8 9 0 a b c d ",
+" e c f g h i j k l m n o p q r ",
+" s t u v w x y z A B C D E F G H ",
+" I J K L M N O P Q R S T U V W X Y Z ",
+" ` ...+.@.#.$.%.&.*.=.-.;.>.,.'.).!.~. ",
+" {.].^./.(._.:.:.<.[.}.|.1.2.3.4.5.6.7.` ",
+" 8.9.0.a.b.c.d.d.e.f.g.h.i.j.k.l.m.n.o.p. ",
+" 8.q.r.s.t.u.v.w.x.y.z.A.B.C.D.E.F.G.H.I. ",
+" J.K.L.M.N.O.P.Q.R.S.T.U.V.W.O.X.Y.Z.`.{. ",
+" +.+++@+#+$+%+&+*+*+*+&+=+-+;+>+,+#+'+)+ ",
+" !+~+{+]+^+^+/+^+^+^+^+^+^+(+^+^+_+:+<+[+ ",
+" }+|+1+2+_+^+3+^+^+^+^+^+^+4+^+5+6+7+8+9+ ",
+" 0+a+b+c+d+e+f+^+^+^+^+^+^+g+h+i+j+k+l+ ",
+" m+n+o+p+q+r+r+s+o+t+u+v+w+x+y+z+A+B+ ",
+" C+D+E+F+G+H+I+J+K+x+L+M+N+O+P+Q+R+S+ ",
+" T+U+V+W+X+Y+Z+`+L+ @.@+@@@#@$@%@ ",
+" &@*@=@-@;@>@,@'@)@!@~@{@]@ ",
+" ^@/@(@_@:@/@<@[@ ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/cat-documentation.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/ca…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/cat-documentation.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/cat-documentation.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,257 @@
+/* XPM */
+static const char * cat_documentation_xpm[] = {
+"22 22 232 2",
+" c None",
+". c #204A87",
+"+ c #4C6E9F",
+"@ c #879DBE",
+"# c #B3C1D6",
+"$ c #E0E6EE",
+"% c #B4C2D7",
+"& c #879EBE",
+"* c #4C6E9E",
+"= c #29518B",
+"- c #A0B2CC",
+"; c #E6EBF1",
+"> c #A4B5CE",
+", c #7893B7",
+"' c #4E71A1",
+") c #5072A3",
+"! c #7D96BB",
+"~ c #A9BAD2",
+"{ c #E9EDF3",
+"] c #A1B3CD",
+"^ c #29518C",
+"/ c #4A6C9E",
+"( c #DFE5EE",
+"_ c #A9B9D1",
+": c #355C94",
+"< c #2F5791",
+"[ c #335B94",
+"} c #365E96",
+"| c #386098",
+"1 c #396199",
+"2 c #3A6299",
+"3 c #466B9F",
+"4 c #B5C4D9",
+"5 c #4D6EA0",
+"6 c #29528C",
+"7 c #6C88B0",
+"8 c #2D5690",
+"9 c #6281AD",
+"0 c #B5C4D8",
+"a c #E3E8F0",
+"b c #F8F9FB",
+"c c #F3F5F8",
+"d c #DAE2EC",
+"e c #92A9C7",
+"f c #446B9F",
+"g c #41699E",
+"h c #829CBF",
+"i c #E0E6EF",
+"j c #A3B4CD",
+"k c #A8B9D0",
+"l c #345C95",
+"m c #FFFFFF",
+"n c #A9BCD4",
+"o c #4B71A5",
+"p c #486FA3",
+"q c #BAC8DB",
+"r c #A6B8D0",
+"s c #214B87",
+"t c #5071A0",
+"u c #E5EAF1",
+"v c #375E95",
+"w c #345D95",
+"x c #3B639A",
+"y c #A8BAD2",
+"z c #B8C7DB",
+"A c #7B97BD",
+"B c #6688B3",
+"C c #A6BAD4",
+"D c #ECF0F5",
+"E c #547AAC",
+"F c #5177A9",
+"G c #587CAB",
+"H c #5273A2",
+"I c #8CA2C1",
+"J c #42699F",
+"K c #4B72A5",
+"L c #5076A8",
+"M c #557BAC",
+"N c #5A7FB0",
+"O c #6B8DB8",
+"P c #F0F3F7",
+"Q c #5E83B2",
+"R c #5A7FAF",
+"S c #B6C6DB",
+"T c #90A7C5",
+"U c #BAC7DA",
+"V c #7691B6",
+"W c #386097",
+"X c #40679D",
+"Y c #577CAD",
+"Z c #5D82B2",
+"` c #6488B6",
+" . c #CED9E8",
+".. c #C2D1E3",
+"+. c #678BB9",
+"@. c #6287B5",
+"#. c #96ADCB",
+"$. c #BDCBDD",
+"%. c #224C88",
+"&. c #E7ECF2",
+"*. c #4E71A2",
+"=. c #3C649A",
+"-. c #456CA1",
+";. c #4D74A7",
+">. c #6489B7",
+",. c #CBD7E7",
+"'. c #E1E8F1",
+"). c #7799C3",
+"!. c #7093BF",
+"~. c #6B8EBB",
+"{. c #7796BE",
+"]. c #E6EBF2",
+"^. c #E8EDF3",
+"/. c #5074A4",
+"(. c #496FA3",
+"_. c #5278AA",
+":. c #5A80B0",
+"<. c #6387B6",
+"[. c #B2C5DB",
+"}. c #E0E8F2",
+"|. c #83A4CB",
+"1. c #7C9FC8",
+"2. c #789BC5",
+"3. c #7295C0",
+"4. c #6B8FBB",
+"5. c #7C9AC2",
+"6. c #E7ECF3",
+"7. c #224B88",
+"8. c #BECBDD",
+"9. c #7C96BB",
+"0. c #4C72A5",
+"a. c #5E83B3",
+"b. c #E1E9F1",
+"c. c #9EB9D8",
+"d. c #88A9D0",
+"e. c #85A7CE",
+"f. c #80A2CA",
+"g. c #9FB6D3",
+"h. c #C1CEDF",
+"i. c #234D89",
+"j. c #94A8C5",
+"k. c #A6B8D1",
+"l. c #446BA0",
+"m. c #4E74A7",
+"n. c #577DAE",
+"o. c #6185B4",
+"p. c #6A8EBB",
+"q. c #81A2C9",
+"r. c #89AACF",
+"s. c #8EAFD4",
+"t. c #91B2D6",
+"u. c #8DAFD4",
+"v. c #86A7CE",
+"w. c #7D9FC8",
+"x. c #7397C1",
+"y. c #C1D0E2",
+"z. c #97ACC9",
+"A. c #5879A6",
+"B. c #4C71A4",
+"C. c #587DAE",
+"D. c #6286B5",
+"E. c #6B8FBC",
+"F. c #D3DEEB",
+"G. c #E7EDF5",
+"H. c #E9EFF6",
+"I. c #9FBCDC",
+"J. c #9BBBDD",
+"K. c #92B3D7",
+"L. c #88AAD0",
+"M. c #7EA1C9",
+"N. c #7C9DC5",
+"O. c #EEF2F7",
+"P. c #5575A4",
+"Q. c #AFBFD5",
+"R. c #AFC0D6",
+"S. c #6186B4",
+"T. c #E9EFF5",
+"U. c #9FBBDA",
+"V. c #86A8CE",
+"W. c #C8D6E7",
+"X. c #B2C2D8",
+"Y. c #2E568F",
+"Z. c #809BC0",
+"`. c #5F83B3",
+" + c #688CB9",
+".+ c #E9EEF5",
+"++ c #98B5D6",
+"@+ c #89AAD0",
+"#+ c #86A8CF",
+"$+ c #80A3CA",
+"%+ c #A4BBD7",
+"&+ c #E9EEF4",
+"*+ c #2C538D",
+"=+ c #5878A6",
+"-+ c #B5C5DB",
+";+ c #6285B3",
+">+ c #6388B6",
+",+ c #7396C1",
+"'+ c #799CC5",
+")+ c #7DA0C8",
+"!+ c #7FA1C9",
+"~+ c #83A4CA",
+"{+ c #C9D7E7",
+"]+ c #EAEFF5",
+"^+ c #5576A5",
+"/+ c #214B88",
+"(+ c #B4C4D9",
+"_+ c #B7C7DC",
+":+ c #99B1CF",
+"<+ c #7E9DC4",
+"[+ c #83A2C7",
+"}+ c #A3BAD7",
+"|+ c #C1D1E4",
+"1+ c #B5C5DA",
+"2+ c #2C558E",
+"3+ c #214A86",
+"4+ c #5C7CA8",
+"5+ c #9CB0CC",
+"6+ c #C8D3E3",
+"7+ c #EDF1F6",
+"8+ c #C9D4E4",
+"9+ c #9DB1CC",
+"0+ c #5978A5",
+"a+ c #224982",
+"b+ c #132C51",
+"c+ c #193866",
+"d+ c #20457A",
+"e+ c #204985",
+"f+ c #214982",
+"g+ c #1E4173",
+"h+ c #15325A",
+"i+ c #0F2341",
+" ",
+" . . . . . . . . ",
+" . . + @ # $ $ % & * . ",
+" . = - ; > , ' ) ! ~ { ] ^ . ",
+" . / ( _ : < [ } | 1 2 3 4 $ 5 . ",
+" . 6 $ 7 8 9 0 a b c d e f g h i ^ ",
+" . j k 8 l ~ m m m m m m n o p q r s ",
+" . t u v w x y z A B C m m D E F G D H ",
+" . I - [ 2 J K L M N O m m P Q R M S T . ",
+" . U V W X p L Y Z ` .m m ..+.@.Z #.$.%. ",
+" . &.*.=.-.;.M Z >.,.m m '.).!.~.>.{.].s ",
+" . ^./.X (._.:.<.[.m m }.|.1.2.3.4.5.6.7. ",
+" . 8.9.J 0.M a.+.b.m m c.d.e.f.2.!.g.h.i. ",
+" . j.k.l.m.n.o.p.).q.r.s.t.u.v.w.x.y.z.. ",
+" . A.].B.m.C.D.E.F.G.H.I.J.K.L.M.N.O.P. ",
+" . Q.R.m.n.S.p.T.m m U.K.s.V.w.W.X.i. ",
+" Y.&.Z.M `. +.+m m ++@+#+$+%+&+*+ ",
+" s =+6.-+;+>+E.,+'+)+!+~+{+]+^+ ",
+" /+Y.(+&+_+:+<+[+}+|+O.1+2+ ",
+" 3+4+5+6+7+7+8+9+0+a+ ",
+" b+c+d+e+f+g+h+i+ ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/cat-emulators.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/ca…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/cat-emulators.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/cat-emulators.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,193 @@
+/* XPM */
+static const char * cat_emulators_xpm[] = {
+"22 22 168 2",
+" c None",
+". c #888A85",
+"+ c #F7F8F7",
+"@ c #70726D",
+"# c #F9F9F8",
+"$ c #ECEEEB",
+"% c #E6E8E4",
+"& c #DFE1DD",
+"* c #DDDFDB",
+"= c #D8D9D5",
+"- c #D1D4CF",
+"; c #D5D8D3",
+"> c #E6E7E5",
+", c #ECEDEA",
+"' c #446EA0",
+") c #204A87",
+"! c #426D9F",
+"~ c #CDCFCA",
+"{ c #6A7583",
+"] c #6B7888",
+"^ c #6C798D",
+"/ c #6E7D90",
+"( c #989F92",
+"_ c #6F7F95",
+": c #6F7F96",
+"< c #6E7D92",
+"[ c #6E7C8F",
+"} c #6C7A8D",
+"| c #C1C4BE",
+"1 c #6C798B",
+"2 c #6F7E95",
+"3 c #99A297",
+"4 c #B8BB97",
+"5 c #9BA39A",
+"6 c #72859E",
+"7 c #72849E",
+"8 c #72849D",
+"9 c #70839B",
+"0 c #6F8099",
+"a c #6E7E95",
+"b c #B7BAB4",
+"c c #6F7E93",
+"d c #708098",
+"e c #70839D",
+"f c #CDCC97",
+"g c #FEFADE",
+"h c #B9BE9B",
+"i c #738AA6",
+"j c #748AA6",
+"k c #7389A5",
+"l c #7388A3",
+"m c #72879F",
+"n c #495E7B",
+"o c #72859F",
+"p c #9CA79E",
+"q c #E5DF96",
+"r c #FFFFFF",
+"s c #DCD998",
+"t c #778FAD",
+"u c #7790AD",
+"v c #9EADA5",
+"w c #758EAC",
+"x c #738BA7",
+"y c #536F91",
+"z c #2B4A73",
+"A c #193963",
+"B c #4D6487",
+"C c #5F7798",
+"D c #CACB94",
+"E c #FEFADD",
+"F c #ECE596",
+"G c #9AABA3",
+"H c #90A49C",
+"I c #A8B389",
+"J c #778D84",
+"K c #234E7F",
+"L c #214979",
+"M c #1D4573",
+"N c #1D3F6C",
+"O c #1D416E",
+"P c #1F4776",
+"Q c #B0B25E",
+"R c #C8C45C",
+"S c #FEF8CA",
+"T c #92A26D",
+"U c #C8C55E",
+"V c #B2B663",
+"W c #658176",
+"X c #637F73",
+"Y c #637A6F",
+"Z c #60776A",
+"` c #B4BAAE",
+" . c #C6C158",
+".. c #C7C25A",
+"+. c #E2D756",
+"@. c #93A26E",
+"#. c #B4B966",
+"$. c #FDF3A5",
+"%. c #D8D15B",
+"&. c #B3B764",
+"*. c #B1B461",
+"=. c #424904",
+"-. c #B3B965",
+";. c #6A8A80",
+">. c #CAC961",
+",. c #6C8D84",
+"'. c #444D11",
+"). c #C7C35B",
+"!. c #C8C55D",
+"~. c #C9C75E",
+"{. c #6A8A81",
+"]. c #6C8D85",
+"^. c #B6BD6A",
+"/. c #CBCB63",
+"(. c #336FA2",
+"_. c #B5BC69",
+":. c #B3BA67",
+"<. c #B3B765",
+"[. c #B2B563",
+"}. c #B6B9B3",
+"|. c #919E69",
+"1. c #94A571",
+"2. c #2F669A",
+"3. c #316CA0",
+"4. c #99AD79",
+"5. c #9AAF7B",
+"6. c #3775A7",
+"7. c #3571A5",
+"8. c #316BA0",
+"9. c #2B6094",
+"0. c #27598C",
+"a. c #255588",
+"b. c #295C8F",
+"c. c #2D6397",
+"d. c #316B9E",
+"e. c #336FA3",
+"f. c #71978E",
+"g. c #749C92",
+"h. c #3B79AD",
+"i. c #3775A8",
+"j. c #356FA3",
+"k. c #2F699D",
+"l. c #2D6396",
+"m. c #295C8E",
+"n. c #275588",
+"o. c #295E91",
+"p. c #2F6498",
+"q. c #3572A5",
+"r. c #3B78AC",
+"s. c #9DB37F",
+"t. c #3F81B5",
+"u. c #3B7DB1",
+"v. c #3978AB",
+"w. c #336B9F",
+"x. c #2D6398",
+"y. c #295A8F",
+"z. c #C0C3BD",
+"A. c #EBEDEA",
+"B. c #C4C7C1",
+"C. c #F7F8F6",
+"D. c #E2E4E0",
+"E. c #D4D7D2",
+"F. c #C8CBC5",
+"G. c #C2C4BF",
+"H. c #BCBFB9",
+"I. c #C2C5BF",
+"J. c #C6C9C3",
+"K. c #6C6E69",
+" . . . . . . . . . . . . . . . . . . ",
+" . + + + + + + + + + + + + + + + + + + @ ",
+". + # $ % & & & & & & & & & * = - - ; > + . ",
+". + , ' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ! ~ + . ",
+". + % ) { ] ^ / ( _ : : : _ < [ } ] ) | + . ",
+". + & ) 1 / 2 3 4 5 6 6 7 8 9 0 a / ) b + . ",
+". + & ) c d e f g h i j i k l m e n ) b + . ",
+". + & ) 9 o p q r s t u v w x y z A ) b + . ",
+". + & ) B C D E F E G H I J K L M N ) b + . ",
+". + & ) O P Q r R S T U r V W X Y Z ) ` + . ",
+". + & ) ...r +.@.S #.$.%.r &.V *.Q ) ` + . ",
+". + & =.r r r -.;.S >.r ,.S r r r r ) ` + . ",
+". + & '.).!.~.{.].^.r /.(.^._.:.<.[.) }.+ . ",
+". + & ) |.T 1.2.3.4.r 5.6.7.8.2.9.0.) }.+ . ",
+". + & ) a.b.c.d.e.f.$.g.h.i.j.k.l.m.) }.+ . ",
+". + % ) n.o.p.8.q.r.s.t.u.v.7.w.x.y.) z.+ . ",
+". + A.' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ' B.+ . ",
+". + C.D.E.F.G.H.H.H.H.H.H.H.H.H.H.I.B.J.+ . ",
+" . + + + + + + + + + + + + + + + + + + K. ",
+" . . . . . . . . . . . . . . . . . . ",
+" ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/cat-games.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/ca…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/cat-games.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/cat-games.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,166 @@
+/* XPM */
+static const char * cat_games_xpm[] = {
+"22 22 141 2",
+" c None",
+". c #898B86",
+"+ c #8C8E8A",
+"@ c #8D8F8B",
+"# c #9B9C99",
+"$ c #BFC0BE",
+"% c #D5D6D4",
+"& c #959792",
+"* c #8C8E89",
+"= c #8E8F8B",
+"- c #898B87",
+"; c #9C9D99",
+"> c #C2C4C2",
+", c #D2D2D1",
+"' c #A4A6A2",
+") c #91938E",
+"! c #90928E",
+"~ c #90928D",
+"{ c #8F918C",
+"] c #8D8F8A",
+"^ c #8A8C87",
+"/ c #B5B7B4",
+"( c #E1E1E0",
+"_ c #F3F3F3",
+": c #FBFBFB",
+"< c #FDFDFD",
+"[ c #FAFAFA",
+"} c #B1B2AF",
+"| c #DDDEDC",
+"1 c #FCFCFC",
+"2 c #ECEDEC",
+"3 c #FEFEFE",
+"4 c #F8F8F8",
+"5 c #F5F5F5",
+"6 c #F1F1F1",
+"7 c #EDEDED",
+"8 c #ECECEC",
+"9 c #A0A19E",
+"0 c #F6F6F5",
+"a c #F7F7F7",
+"b c #F2F2F2",
+"c c #F0F0F0",
+"d c #EFEFEF",
+"e c #8B8D88",
+"f c #838383",
+"g c #7F7F7F",
+"h c #E7E7E7",
+"i c #A1A29F",
+"j c #F6F6F6",
+"k c #EEEEEE",
+"l c #8E908B",
+"m c #C0C0C0",
+"n c #030303",
+"o c #000000",
+"p c #404040",
+"q c #A1A39F",
+"r c #8B8C88",
+"s c #DBDBDB",
+"t c #707070",
+"u c #171717",
+"v c #F4F4F4",
+"w c #EAEAEA",
+"x c #BBBCB9",
+"y c #D8D8D8",
+"z c #868686",
+"A c #464646",
+"B c #E3E3E3",
+"C c #A2A3A0",
+"D c #ECDCDC",
+"E c #E9CFCF",
+"F c #E8CECE",
+"G c #E8D4D4",
+"H c #EBEBEB",
+"I c #939490",
+"J c #969696",
+"K c #E8E8E8",
+"L c #A2A4A0",
+"M c #E9D0D0",
+"N c #DC5757",
+"O c #DB4E4E",
+"P c #DD6464",
+"Q c #D94545",
+"R c #D84141",
+"S c #E3ABAB",
+"T c #E9E9E9",
+"U c #A3A4A1",
+"V c #F3F3F2",
+"W c #E4A0A0",
+"X c #DB4B4B",
+"Y c #DA4646",
+"Z c #D94242",
+"` c #D83E3E",
+" . c #D73A3A",
+".. c #DB6767",
+"+. c #F1F1F0",
+"@. c #A4A5A1",
+"#. c #E7CBCB",
+"$. c #D94343",
+"%. c #D83F3F",
+"&. c #D63333",
+"*. c #D32323",
+"=. c #DD9696",
+"-. c #E5E5E5",
+";. c #8A8B87",
+">. c #DCDEDC",
+",. c #DC7070",
+"'. c #D11C1C",
+"). c #CE0B0B",
+"!. c #CC0101",
+"~. c #D13B3B",
+"{. c #E1DCDC",
+"]. c #E2E2E2",
+"^. c #E4E4E4",
+"/. c #B2B3AF",
+"(. c #F9F9F9",
+"_. c #E3E1E1",
+":. c #D56161",
+"<. c #CC0000",
+"[. c #D23D3D",
+"}. c #E1DADA",
+"|. c #E1E1E1",
+"1. c #DA9494",
+"2. c #E0DADA",
+"3. c #A3A5A1",
+"4. c #EFEFEE",
+"5. c #EAEAE9",
+"6. c #E0E0E0",
+"7. c #D1D2D0",
+"8. c #AFB1AE",
+"9. c #AAABA8",
+"0. c #EDEDEC",
+"a. c #888A86",
+"b. c #8D8E8A",
+"c. c #CACBC9",
+"d. c #9C9E9A",
+"e. c #8A8C88",
+"f. c #D8D8D7",
+"g. c #FFFFFF",
+"h. c #888985",
+"i. c #888A85",
+"j. c #898A86",
+" . ",
+" + @ . # $ % & ",
+" * = - ; > , ' ) ! ~ { ] ^ ^ ^ . . . = ",
+"] / ( _ : < [ } | 1 1 1 1 < < < < 1 1 1 2 ] ",
+"^ 3 4 5 6 7 8 9 0 a _ _ b b 6 6 c c d c : e ",
+"* : _ c f g h i j 5 6 c c c d d k 7 7 k : e ",
+"l c j m n o p q j 5 c c d d k k 7 8 8 k : r ",
+" s 4 t o o u q 5 v d d k k k 8 8 8 w 8 : ^ ",
+" x : y z A B C v v k k D E 8 F G w w H [ ^ ",
+" I < c d J K L v _ k M N O P Q R S T w : ^ ",
+" ] : _ c d k U V _ 7 W X Y Z ` ...h T : ^ ",
+" l +.j c d k @.b b 8 #.$.%. .&.*.=.-.K : ;.",
+" >.4 k 8 w C c c T w ,.'.).!.~.{.].^.: . ",
+" /.(.-.-.-.L d 7 ^.B _.:.<.[.}.].|.B : . ",
+" { < -.-.-.U d 8 B B B ].1.2.].|.|.B : . ",
+" ] (.T -.-.3.4.8 B B ].].].|.|.|.|.].: . ",
+" l 5.d -.-.@.7 8 B ].].].|.|.|.|.6.].: . ",
+" 7._ -.-.' 7 8 ].].].|.|.|.|.6.6.].: . ",
+" 8.: j 1 9.0.8 ].].|.].].|.|.|.].B 1 a.",
+" b.c.$ d.e.f.g.3 3 3 3 3 3 < < 1 1 w ^ ",
+" h.i.i.i.i.i.i.i.i.i.i.j.. ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/cat-hardware.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/ca…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/cat-hardware.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/cat-hardware.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,89 @@
+/* XPM */
+static const char * cat_hardware_xpm[] = {
+"22 22 64 1",
+" c None",
+". c #2A5700",
+"+ c #8AE234",
+"@ c #788600",
+"# c #6E7729",
+"$ c #555B38",
+"% c #8E9A23",
+"& c #53593A",
+"* c #535939",
+"= c #6B7526",
+"- c #849115",
+"; c #778500",
+"> c #83C020",
+", c #54593F",
+"' c #E0E1DC",
+") c #525741",
+"! c #525839",
+"~ c #CFD0CD",
+"{ c #585C41",
+"] c #768402",
+"^ c #5F6825",
+"/ c #4F543E",
+"( c #828578",
+"_ c #808276",
+": c #7F8275",
+"< c #808375",
+"[ c #7D8072",
+"} c #7E8174",
+"| c #4F5636",
+"1 c #636E1A",
+"2 c #4F543D",
+"3 c #DBDCD8",
+"4 c #BCBDB9",
+"5 c #BFC0BA",
+"6 c #ABACA8",
+"7 c #555753",
+"8 c #4F553C",
+"9 c #8C981F",
+"0 c #859215",
+"a c #878A7C",
+"b c #898C7C",
+"c c #51563A",
+"d c #798709",
+"e c #788405",
+"f c #849117",
+"g c #8A961D",
+"h c #849012",
+"i c #7A8804",
+"j c #889518",
+"k c #7B8905",
+"l c #89951A",
+"m c #839113",
+"n c #BEB400",
+"o c #828D04",
+"p c #EDD400",
+"q c #7D8A08",
+"r c #879104",
+"s c #FCE94F",
+"t c #7D8909",
+"u c #7D8A06",
+"v c #85CD28",
+"w c #8EB41D",
+"x c #275200",
+"y c #264E00",
+" ",
+" ",
+" ",
+" ................... ",
+" .+++++++++++++++++. ",
+" .+@@#$%&%*=%%-;;;>. ",
+" .+@@,')'!~{@]%-;;>. ",
+" .+^/(_:<[}(|1;%-;>. ",
+" .+23(44444(5)%%%;>. ",
+" .+^/(67777(/1@@%@>. ",
+" .+8'(((((((5)9%0@>. ",
+" .+^//a/b/b/c1@9@@>. ",
+" .+@@@/d/e/f0g@@h@>. ",
+" .+iijkk%k%kk9kklk>. ",
+" .+mnn@nnknnknnono>. ",
+" .+@pp@ppqppkpprpr>. ",
+" .+@ss@sstsskssusu>. ",
+" .v>ss>ss>ss>sswsw>. ",
+" x.................y ",
+" ",
+" ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/cat-multimedia.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/ca…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/cat-multimedia.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/cat-multimedia.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,184 @@
+/* XPM */
+static const char * cat_multimedia_xpm[] = {
+"22 22 159 2",
+" c None",
+". c #2F3436",
+"+ c #34383A",
+"@ c #434748",
+"# c #5C5E5F",
+"$ c #2E3335",
+"% c #35393B",
+"& c #454849",
+"* c #4C4F51",
+"= c #585A5A",
+"- c #A2A2A2",
+"; c #DCDCDC",
+"> c #6C6C6C",
+", c #191919",
+"' c #353A3C",
+") c #2F3435",
+"! c #3A3E3F",
+"~ c #4A4E4F",
+"{ c #494C4D",
+"] c #D2D2D2",
+"^ c #D8D8D8",
+"/ c #1F1F1F",
+"( c #090909",
+"_ c #C9C9C9",
+": c #D0D0D0",
+"< c #111111",
+"[ c #3B4042",
+"} c #323738",
+"| c #404446",
+"1 c #505454",
+"2 c #767676",
+"3 c #8A8A8A",
+"4 c #E5E5E5",
+"5 c #999999",
+"6 c #0A0A0A",
+"7 c #616161",
+"8 c #DADADA",
+"9 c #8D8D8D",
+"0 c #050505",
+"a c #656565",
+"b c #A8AAAB",
+"c c #868888",
+"d c #414547",
+"e c #404445",
+"f c #3E4243",
+"g c #737373",
+"h c #5B5B5B",
+"i c #020202",
+"j c #9B9B9B",
+"k c #E6E6E6",
+"l c #2F2F2F",
+"m c #0E0E0E",
+"n c #C2C2C2",
+"o c #A6A8A9",
+"p c #4E5252",
+"q c #393D3F",
+"r c #383D3F",
+"s c #424748",
+"t c #C4C4C4",
+"u c #B6B6B6",
+"v c #9C9C9C",
+"w c #333333",
+"x c #E9E9E9",
+"y c #9B9D9D",
+"z c #575859",
+"A c #3F4446",
+"B c #B7B7B7",
+"C c #A7A7A7",
+"D c #7A7A7A",
+"E c #2E3436",
+"F c #2D3335",
+"G c #585858",
+"H c #B1B1B1",
+"I c #A5A5A5",
+"J c #666666",
+"K c #6F6F6F",
+"L c #A1A1A1",
+"M c #B4B4B4",
+"N c #949494",
+"O c #707070",
+"P c #7F7F7F",
+"Q c #BABABA",
+"R c #B3B3B3",
+"S c #6D6D6D",
+"T c #6B6B6B",
+"U c #C1C1C1",
+"V c #34393B",
+"W c #717171",
+"X c #757575",
+"Y c #777777",
+"Z c #808080",
+"` c #505050",
+" . c #000000",
+".. c #3E3E3E",
+"+. c #FCFCFC",
+"@. c #EDEDED",
+"#. c #1A1A1A",
+"$. c #FDFDFD",
+"%. c #676767",
+"&. c #5E5E5E",
+"*. c #373C3D",
+"=. c #CACACA",
+"-. c #A3A3A3",
+";. c #3A3A3A",
+">. c #4F4F4F",
+",. c #E8E8E8",
+"'. c #434343",
+"). c #AAAAAA",
+"!. c #F1F1F1",
+"~. c #BBBBBB",
+"{. c #E4E4E4",
+"]. c #4B4B4B",
+"^. c #BFBFBF",
+"/. c #444748",
+"(. c #404444",
+"_. c #414445",
+":. c #434546",
+"<. c #414446",
+"[. c #404344",
+"}. c #3F4243",
+"|. c #3F4244",
+"1. c #3E4142",
+"2. c #606264",
+"3. c #5C5C5C",
+"4. c #9D9D9D",
+"5. c #F6F6F6",
+"6. c #595959",
+"7. c #575757",
+"8. c #9F9F9F",
+"9. c #555555",
+"0. c #545454",
+"a. c #535353",
+"b. c #525252",
+"c. c #5E6161",
+"d. c #6C6E6F",
+"e. c #5A5A5A",
+"f. c #F4F4F4",
+"g. c #797979",
+"h. c #515151",
+"i. c #6A6C6C",
+"j. c #727475",
+"k. c #5F5F5F",
+"l. c #C5C5C5",
+"m. c #F7F7F7",
+"n. c #6E6F6F",
+"o. c #787A7A",
+"p. c #9A9A9A",
+"q. c #818282",
+"r. c #565656",
+"s. c #7D7D7D",
+"t. c #898989",
+"u. c #747474",
+"v. c #7B7B7B",
+"w. c #888888",
+"x. c #4E4E4E",
+"y. c #878787",
+"z. c #868686",
+"A. c #848484",
+"B. c #828282",
+" . + @ # ",
+" $ % & * = - ; > , ' ",
+" $ ) ! ~ { > ] ^ / ( _ : < , [ ",
+" } | 1 2 3 4 5 6 7 8 9 0 a b c d e f ",
+" d : g h i j k l m n o p q r % ",
+" s t u v w x y z @ A ",
+" ' B C t D E E F F F F F F F F F F F F E ",
+" F G v H I a J K L M N O P Q R S T Q U V ",
+" F Q W X Y Z ` ...+.@.#. .B $.%. .&.$.*. ",
+" F =.-.;.>.n ,.J '.).!.~.'.G {.{.7 ].^.+ ",
+" E E /.(._.:.:.<.<._._.(.[.}.|.}.1.1.q E ",
+" E 2.h 3.4.3.5.v 6.G 7.8.9.0.8.a.b.c.E ",
+" E d.e.%.$.v f.~.g.G 7.8.G 9.8.b.h.i.E ",
+" E j.k.8.l.m.l.; 8.l.l.8.8.l.8.6.h.n.E ",
+" E o.6.h $.3.h H h 3.I p.Q {.J 0.` 2 E ",
+" E q.r.8.8.8.8.8.8.8.l.l.8.$.8.h.` s.E ",
+" E t.9.9.9.9.9.9.0.0.a.a.u.h.h.` >.v.E ",
+" E w.a.0.0.0.0.a.a.a.b.b.h.` ` >.x.D E ",
+" E 3 w.w.w.y.y.y.y.z.z.z.A.A.A.B.B.g.E ",
+" E E E E E E E E E E E E E E E E E E E ",
+" ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/cat-network.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/ca…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/cat-network.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/cat-network.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,304 @@
+/* XPM */
+static const char * cat_network_xpm[] = {
+"22 22 279 2",
+" c None",
+". c #465586",
+"+ c #3E5E93",
+"@ c #32578F",
+"# c #264E8A",
+"$ c #224C88",
+"% c #2B528D",
+"& c #33558D",
+"* c #38558C",
+"= c #3E5D91",
+"- c #234D89",
+"; c #4570A7",
+"> c #5D89BC",
+", c #6A97C8",
+"' c #719DCC",
+") c #759FCD",
+"! c #6993C2",
+"~ c #4C75AB",
+"{ c #305088",
+"] c #4B6B9D",
+"^ c #4771A7",
+"/ c #6B98C9",
+"( c #93B5D9",
+"_ c #9EB8D9",
+": c #BED0E5",
+"< c #D6E4F4",
+"[ c #D9E5F2",
+"} c #F0F4F9",
+"| c #CBD8E8",
+"1 c #C4D6E9",
+"2 c #87A2C5",
+"3 c #6A85AD",
+"4 c #7C91B5",
+"5 c #98B1CF",
+"6 c #B2CAE4",
+"7 c #DAE2ED",
+"8 c #E6EDF7",
+"9 c #F4F9FE",
+"0 c #FDFEFF",
+"a c #FFFFFF",
+"b c #FDFDFE",
+"c c #F5F8FB",
+"d c #BBCCE0",
+"e c #6083B2",
+"f c #4A75AB",
+"g c #2B508A",
+"h c #8B95B5",
+"i c #C6D2E2",
+"j c #EDF2F8",
+"k c #FCFDFD",
+"l c #E7ECF5",
+"m c #E9F2FC",
+"n c #F4F9FF",
+"o c #FEFEFF",
+"p c #FCFDFE",
+"q c #F6F8FB",
+"r c #EAEEF4",
+"s c #D8E0EB",
+"t c #8EA6C6",
+"u c #6A92C1",
+"v c #406AA2",
+"w c #244884",
+"x c #7992B7",
+"y c #A4B9D3",
+"z c #BECCDD",
+"A c #D9E3EF",
+"B c #E9F4FF",
+"C c #EDF5FF",
+"D c #F6FAFF",
+"E c #F1F7FF",
+"F c #F3F8FD",
+"G c #E5ECF4",
+"H c #CCD8E8",
+"I c #A5BEDB",
+"J c #9DB5D2",
+"K c #C8D3E3",
+"L c #D2DCE8",
+"M c #88ABD1",
+"N c #264E88",
+"O c #9FA7C1",
+"P c #6787B2",
+"Q c #6F8EB8",
+"R c #9BB2D1",
+"S c #DFEEFC",
+"T c #EFF7FF",
+"U c #E8F3FF",
+"V c #DEEEFF",
+"W c #E0EFFF",
+"X c #DFEDFB",
+"Y c #BCD0E6",
+"Z c #6788B4",
+"` c #587DAE",
+" . c #688EBC",
+".. c #688DBB",
+"+. c #5F81AE",
+"@. c #DDE5EF",
+"#. c #7F98BD",
+"$. c #5D75A1",
+"%. c #8AA7CA",
+"&. c #CBDCEF",
+"*. c #E5EEF8",
+"=. c #E9F2FB",
+"-. c #EDF6FE",
+";. c #D6EAFF",
+">. c #D3E9FF",
+",. c #CEE5FC",
+"'. c #B5CFED",
+"). c #4D72A6",
+"!. c #466DA2",
+"~. c #40689F",
+"{. c #3B649C",
+"]. c #39639C",
+"^. c #436CA3",
+"/. c #7B98BE",
+"(. c #C0CDDF",
+"_. c #426193",
+":. c #385B92",
+"<. c #A3BEDC",
+"[. c #E8EEF5",
+"}. c #FAFBFD",
+"|. c #F2F7FC",
+"1. c #E5EFFA",
+"2. c #C7DFF8",
+"3. c #C6DEF8",
+"4. c #BFD9F4",
+"5. c #8FAFD4",
+"6. c #476EA3",
+"7. c #436AA0",
+"8. c #3E679E",
+"9. c #39639B",
+"0. c #345F99",
+"a. c #3E6CA4",
+"b. c #91A9C7",
+"c. c #7F9FC5",
+"d. c #8195B7",
+"e. c #335991",
+"f. c #AAC5E1",
+"g. c #F8F9FC",
+"h. c #FEFEFE",
+"i. c #EFF3F7",
+"j. c #C7D9EB",
+"k. c #B7D1EE",
+"l. c #B4D0EE",
+"m. c #AFCCEB",
+"n. c #96B6DB",
+"o. c #446CA1",
+"p. c #3B659C",
+"q. c #37619A",
+"r. c #325D97",
+"s. c #315E98",
+"t. c #7796BE",
+"u. c #739AC7",
+"v. c #204986",
+"w. c #2C528B",
+"x. c #8EB0D6",
+"y. c #F9FAFC",
+"z. c #F6F8FA",
+"A. c #BDCCDF",
+"B. c #9AB9DA",
+"C. c #A2C2E4",
+"D. c #9EBFE2",
+"E. c #97B9DE",
+"F. c #789ECA",
+"G. c #7299C6",
+"H. c #4C76AB",
+"I. c #345F98",
+"J. c #305B96",
+"K. c #7C97BC",
+"L. c #85A2C4",
+"M. c #6A96C7",
+"N. c #254A86",
+"O. c #9DB6D5",
+"P. c #EEF3F9",
+"Q. c #D6DFEB",
+"R. c #D7E0EB",
+"S. c #E3E9F1",
+"T. c #97ACCA",
+"U. c #6F94C0",
+"V. c #8DB1D8",
+"W. c #87ACD5",
+"X. c #7EA6D0",
+"Y. c #749DCB",
+"Z. c #5D86B8",
+"`. c #4E73A6",
+" + c #5074A6",
+".+ c #88A2C4",
+"++ c #6688B2",
+"@+ c #204A87",
+"#+ c #879DC0",
+"$+ c #C2D4E7",
+"%+ c #94ADCD",
+"&+ c #859FC1",
+"*+ c #5578A8",
+"=+ c #DBE2ED",
+"-+ c #CBD8E7",
+";+ c #88ACD3",
+">+ c #769FCC",
+",+ c #6F99C8",
+"'+ c #729BC8",
+")+ c #81A2C9",
+"!+ c #89A1C2",
+"~+ c #AABBD3",
+"{+ c #ADBED5",
+"]+ c #7393BA",
+"^+ c #9AABC6",
+"/+ c #8FAED2",
+"(+ c #628EC0",
+"_+ c #3E69A1",
+":+ c #3C649C",
+"<+ c #42699F",
+"[+ c #7B9CC3",
+"}+ c #D6E2EF",
+"|+ c #BCCFE4",
+"1+ c #7DA2CB",
+"2+ c #ADC3DA",
+"3+ c #F2F5F8",
+"4+ c #F8F9FB",
+"5+ c #C8D3E2",
+"6+ c #80A5CE",
+"7+ c #28518B",
+"8+ c #395C91",
+"9+ c #446DA3",
+"0+ c #6C98C8",
+"a+ c #406CA5",
+"b+ c #305C96",
+"c+ c #3E6AA2",
+"d+ c #5F8BBE",
+"e+ c #90AFD2",
+"f+ c #C1D2E5",
+"g+ c #D4DFED",
+"h+ c #D4E0ED",
+"i+ c #F7F9FB",
+"j+ c #E5EBF2",
+"k+ c #8DA4C4",
+"l+ c #456493",
+"m+ c #244A83",
+"n+ c #648EBF",
+"o+ c #356099",
+"p+ c #4272AB",
+"q+ c #497BB3",
+"r+ c #4779B2",
+"s+ c #4376B0",
+"t+ c #5B86B6",
+"u+ c #CCD8E7",
+"v+ c #F3F5F9",
+"w+ c #FCFCFD",
+"x+ c #FBFCFD",
+"y+ c #E0E4EB",
+"z+ c #94A4BB",
+"A+ c #1D447C",
+"B+ c #406BA3",
+"C+ c #5D85B5",
+"D+ c #507BAD",
+"E+ c #698DB7",
+"F+ c #8BA6C5",
+"G+ c #B7C6D9",
+"H+ c #99ADC7",
+"I+ c #A4B3CB",
+"J+ c #CAD3E1",
+"K+ c #D6DBE2",
+"L+ c #B4BCC7",
+"M+ c #A0A5AA",
+"N+ c #1C3D6E",
+"O+ c #5D83B2",
+"P+ c #85A6CC",
+"Q+ c #7CA4CF",
+"R+ c #9CBCDD",
+"S+ c #749ECB",
+"T+ c #5983B5",
+"U+ c #4B6C9B",
+"V+ c #526B8F",
+"W+ c #768599",
+"X+ c #939393",
+"Y+ c #405B82",
+"Z+ c #1D437A",
+"`+ c #1F4783",
+" @ c #1F4986",
+".@ c #1C4278",
+"+@ c #173561",
+" ",
+" . + @ # $ % & * ",
+" = - ; > , ' ) ! ~ - { ",
+" ] ^ / ( _ : < [ } | 1 2 3 ",
+" 4 5 6 7 8 9 0 a b c d e ! f g ",
+" h i j k l m n o o p q r s t u v w ",
+" x y z A B C D E F G H I J K L M N ",
+" O P Q R S T U V W X Y Z ` ...+.@.#. ",
+" $.%.&.*.=.-.;.>.,.'.).!.~.{.].^./.(._. ",
+" :.<.[.}.|.1.2.3.4.5.6.7.8.9.0.a.b.c.d. ",
+" e.f.g.h.i.j.k.l.m.n.o.~.p.q.r.s.t.u.v. ",
+" w.x.y.a z.A.B.C.D.E.F.G.H.I.J.K.L.M.v. ",
+" N.O.P.Q.R.S.T.U.V.W.X.Y.Z.`. +.+++> @+ ",
+" #+$+%+&+*+=+-+;+>+,+'+)+!+~+{+]+; @+ ",
+" ^+/+(+_+:+<+[+}+|+1+1+2+3+4+5+6+7+ ",
+" 8+9+0+a+b+c+d+e+f+g+h+i+a h.j+k+l+ ",
+" m+f n+o+p+q+r+s+t+u+v+w+x+y+z+ ",
+" A+B+/ C+D+E+F+G+H+I+J+K+L+M+ ",
+" N+- O+P+Q+R+S+T+U+V+W+X+ ",
+" Y+Z+`+ @`+.@+@ ",
+" ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/cat-office.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/ca…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/cat-office.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/cat-office.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,201 @@
+/* XPM */
+static const char * cat_office_xpm[] = {
+"22 22 176 2",
+" c None",
+". c #6587B3",
+"+ c #5A81B3",
+"@ c #547DB2",
+"# c #5980B3",
+"$ c #BAC9DD",
+"% c #B7C9DF",
+"& c #5981B4",
+"* c #75551A",
+"= c #5B451C",
+"- c #577FB3",
+"; c #C5D3E4",
+"> c #6C92C0",
+", c #AEC2DA",
+"' c #557EB2",
+") c #7F5F22",
+"! c #D1BA80",
+"~ c #A0854B",
+"{ c #567EB2",
+"] c #3F6FAB",
+"^ c #7799C3",
+"/ c #9EB6D2",
+"( c #CBB27E",
+"_ c #E4DAAB",
+": c #9A7D40",
+"< c #587FB2",
+"[ c #658EBE",
+"} c #83A3C8",
+"| c #9FB7D3",
+"1 c #527CB1",
+"2 c #987C45",
+"3 c #DBB46A",
+"4 c #BC8D36",
+"5 c #765619",
+"6 c #577EB2",
+"7 c #6E95C1",
+"8 c #7C9DC5",
+"9 c #99B3D0",
+"0 c #527BB0",
+"a c #C4A770",
+"b c #D09B37",
+"c c #85601D",
+"d c #5B81B3",
+"e c #5880B4",
+"f c #7399C4",
+"g c #90ACCC",
+"h c #93ACCD",
+"i c #577DAE",
+"j c #9A9A98",
+"k c #9A9B99",
+"l c #999997",
+"m c #949492",
+"n c #8F908E",
+"o c #907440",
+"p c #DBB369",
+"q c #B88321",
+"r c #745415",
+"s c #5E83B3",
+"t c #6589B7",
+"u c #7599C2",
+"v c #9AB4D1",
+"w c #7E9EC4",
+"x c #FFFFFF",
+"y c #BB9C64",
+"z c #D19D3B",
+"A c #87631D",
+"B c #888A85",
+"C c #5D82B3",
+"D c #678BB9",
+"E c #6F94BF",
+"F c #9DB6D3",
+"G c #7093BE",
+"H c #6688B3",
+"I c #DBDBDA",
+"J c #D9D9D8",
+"K c #CEC2AB",
+"L c #DAB268",
+"M c #BB8520",
+"N c #79602D",
+"O c #778BA5",
+"P c #6F96C2",
+"Q c #668DBB",
+"R c #9CB5D2",
+"S c #C9C3B7",
+"T c #B59558",
+"U c #D29F3F",
+"V c #8C651B",
+"W c #EEEEEC",
+"X c #8C98A6",
+"Y c #6382A7",
+"Z c #7094BE",
+"` c #6C92BD",
+" . c #98B2D0",
+".. c #7296BF",
+"+. c #6586B2",
+"@. c #D8B166",
+"#. c #BE8E33",
+"$. c #8D8979",
+"%. c #EFEFEE",
+"&. c #FEFEFE",
+"*. c #E7ECF2",
+"=. c #929695",
+"-. c #969996",
+";. c #949796",
+">. c #929694",
+",. c #969790",
+"'. c #97968D",
+"). c #919189",
+"!. c #FDFDFD",
+"~. c #F4F4F4",
+"{. c #E9E9E9",
+"]. c #F3F6F9",
+"^. c #FBFCFD",
+"/. c #B0C4DC",
+"(. c #A2B9D3",
+"_. c #97AEC6",
+":. c #C3B191",
+"<. c #C4BDB1",
+"[. c #FAFBFC",
+"}. c #C8BFAF",
+"|. c #A6BCD5",
+"1. c #99B1CE",
+"2. c #8DA1B6",
+"3. c #D9D9D9",
+"4. c #EBEBEB",
+"5. c #F4F4F3",
+"6. c #EAE5DD",
+"7. c #C8BEAD",
+"8. c #C1B59D",
+"9. c #A7BCD4",
+"0. c #A9B8CA",
+"a. c #92AAC7",
+"b. c #E3E3E2",
+"c. c #F5F5F5",
+"d. c #D2CBBC",
+"e. c #CFC1A9",
+"f. c #BDB198",
+"g. c #BDB7A9",
+"h. c #91A9C5",
+"i. c #7E9DC1",
+"j. c #D4D4D2",
+"k. c #F8F8F8",
+"l. c #878984",
+"m. c #FCFCFC",
+"n. c #C7C1B4",
+"o. c #C9BAA2",
+"p. c #D7C6B2",
+"q. c #D0C3B5",
+"r. c #CBCCCC",
+"s. c #D7D7D7",
+"t. c #91A5BB",
+"u. c #A4B8CE",
+"v. c #F5F6F5",
+"w. c #787A76",
+"x. c #D8D8D8",
+"y. c #F2F2F2",
+"z. c #D0CBC2",
+"A. c #C7B69C",
+"B. c #CEC2B0",
+"C. c #D0CDCB",
+"D. c #CECDCD",
+"E. c #C4C4C4",
+"F. c #DCDCDC",
+"G. c #EFEFEF",
+"H. c #7C7E7A",
+"I. c #82847F",
+"J. c #DADADA",
+"K. c #FBFBFB",
+"L. c #FAF9F8",
+"M. c #FAFAF9",
+"N. c #F6F6F6",
+"O. c #F7F7F7",
+"P. c #C6C7C6",
+"Q. c #747571",
+"R. c #81837E",
+"S. c #71736F",
+". + @ ",
+"# $ % & * = ",
+"- ; > , ' ) ! ~ ",
+". { ] ^ / ' ( _ : ",
+" { < [ } | 1 2 3 4 5 ",
+" - 6 7 8 9 0 a b c ",
+" - d e f g h i j k l m n o p q r ",
+" - # s t u v w . x x x x y z A B ",
+" { d C D E F G H I J K L M N B ",
+" { O + P Q R G H S T U V W B ",
+" B X Y Z ` ...+.@.#.$.%.B ",
+" B &.*.=.-.;.>.,.'.).!.~.B ",
+" B &.&.x x x x x x x {.~.B ",
+" B &.&.].^./.(._.:.<.{.~.B ",
+" B &.&.x [.}.|.1.2.3.4.5.B ",
+" B &.&.x 6.7.8.9.0.a.b.c.B ",
+" B &.!.x d.e.f.g.h.i.j.k.B ",
+" l.m.c.n.o.p.q.r.s.t.u.v.l. ",
+" w.x.y.z.A.B.C.D.E.F.G.{.H. ",
+" I.J.K.L.M.N.c.N.O.P.I. ",
+" Q.I.B B B B B R.S. ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/cat-system.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/ca…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/cat-system.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/cat-system.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,273 @@
+/* XPM */
+static const char * cat_system_xpm[] = {
+"22 22 248 2",
+" c None",
+". c #3A5A8A",
+"+ c #3465A4",
+"@ c #8A9BBA",
+"# c #7F92B2",
+"$ c #7988AC",
+"% c #345F99",
+"& c #537BAE",
+"* c #8A9BB8",
+"= c #5E769E",
+"- c #7484A6",
+"; c #35609A",
+"> c #5F76A2",
+", c #466594",
+"' c #BBC3D3",
+") c #9DA7BC",
+"! c #7796C1",
+"~ c #9DA9C4",
+"{ c #5B729D",
+"] c #8794B1",
+"^ c #7786A5",
+"/ c #969BB8",
+"( c #7A89AF",
+"_ c #34619E",
+": c #899DBB",
+"< c #ABB7CC",
+"[ c #BEC7D8",
+"} c #BFC6D6",
+"| c #C3C8D5",
+"1 c #A3AFC7",
+"2 c #919FBC",
+"3 c #5D739D",
+"4 c #5E749E",
+"5 c #6378A1",
+"6 c #798AAE",
+"7 c #6D7C9C",
+"8 c #7E8FB0",
+"9 c #687BA3",
+"0 c #8A94B5",
+"a c #A1A1BC",
+"b c #466FA8",
+"c c #3D5E92",
+"d c #BFC7D5",
+"e c #BEC7D7",
+"f c #AFB9CF",
+"g c #ADB7CD",
+"h c #7183AA",
+"i c #6377A1",
+"j c #6578A2",
+"k c #6679A3",
+"l c #687AA4",
+"m c #6A7BA5",
+"n c #6C7DA6",
+"o c #6D7EA7",
+"p c #808CB1",
+"q c #8490B4",
+"r c #3E68A4",
+"s c #476CA0",
+"t c #C6CDDC",
+"u c #B2BCD1",
+"v c #9FABC5",
+"w c #7283AA",
+"x c #909DBB",
+"y c #B2BBD0",
+"z c #AAB4CB",
+"A c #94A0BE",
+"B c #7383AA",
+"C c #7584AB",
+"D c #969EBE",
+"E c #496BA0",
+"F c #6683AC",
+"G c #C5CBDB",
+"H c #B6BFD3",
+"I c #ACB6CD",
+"J c #B0B8CF",
+"K c #A0A7BD",
+"L c #6F7F9E",
+"M c #7A87A4",
+"N c #99A2BB",
+"O c #9CA6C3",
+"P c #AAB2CB",
+"Q c #7D89B0",
+"R c #848FB4",
+"S c #888EAB",
+"T c #3462A0",
+"U c #5C83B6",
+"V c #B6C2D7",
+"W c #B9C1D5",
+"X c #ACB5CD",
+"Y c #A5AEC9",
+"Z c #969FB5",
+"` c #376099",
+" . c #929BB3",
+".. c #9FA7C4",
+"+. c #A2AAC6",
+"@. c #98A0C0",
+"#. c #B1B6CD",
+"$. c #A2ABBF",
+"%. c #B0B7C8",
+"&. c #C7CBD9",
+"*. c #BFC6D8",
+"=. c #A3ACC7",
+"-. c #9DA6C3",
+";. c #405E8D",
+">. c #4D5575",
+",. c #ACB1CA",
+"'. c #D1D4E3",
+"). c #BFC3D8",
+"!. c #BFC1D7",
+"~. c #A7AAC7",
+"{. c #9EA1BE",
+"]. c #9A9DB7",
+"^. c #C0C5D9",
+"/. c #ABB2CC",
+"(. c #B0B7CF",
+"_. c #9BA3C2",
+":. c #8E97BA",
+"<. c #858EB5",
+"[. c #C6C9D7",
+"}. c #35619C",
+"|. c #A2A7BE",
+"1. c #E0E2EC",
+"2. c #B7B9D3",
+"3. c #989BC0",
+"4. c #999CC1",
+"5. c #9B9DC2",
+"6. c #AAACCA",
+"7. c #8E95B1",
+"8. c #9299B7",
+"9. c #9DA5C4",
+"0. c #8992B7",
+"a. c #8B93B8",
+"b. c #8C94B9",
+"c. c #C7CBD8",
+"d. c #3B5F94",
+"e. c #CCCEDE",
+"f. c #DADBE8",
+"g. c #9EA0C3",
+"h. c #A4A6C7",
+"i. c #A7A8C3",
+"j. c #9A9BB7",
+"k. c #9395B0",
+"l. c #3464A3",
+"m. c #9EA3C4",
+"n. c #9398BD",
+"o. c #9499BE",
+"p. c #BDC0D7",
+"q. c #858FA9",
+"r. c #3464A2",
+"s. c #7F86A0",
+"t. c #DCDDEA",
+"u. c #C0C0D8",
+"v. c #A6A5C8",
+"w. c #B2B1CF",
+"x. c #4A5D84",
+"y. c #5274A8",
+"z. c #9A9EC1",
+"A. c #9C9FC2",
+"B. c #CECFE0",
+"C. c #939DB4",
+"D. c #4D638C",
+"E. c #5A6D93",
+"F. c #8C92AD",
+"G. c #DEDEEA",
+"H. c #E0E0EB",
+"I. c #ABAACB",
+"J. c #ADABCC",
+"K. c #9698B4",
+"L. c #375F98",
+"M. c #657EAC",
+"N. c #AEB0CD",
+"O. c #A4A4C7",
+"P. c #A7A6C9",
+"Q. c #C3C3DA",
+"R. c #DBDAE9",
+"S. c #DDDCEA",
+"T. c #D2D0E3",
+"U. c #CFCCE1",
+"V. c #B3AFD0",
+"W. c #B8B4D3",
+"X. c #8389A7",
+"Y. c #3364A3",
+"Z. c #436EA7",
+"`. c #ACB0C7",
+" + c #ADABCD",
+".+ c #ACA9CC",
+"++ c #AEAACD",
+"@+ c #AFABCE",
+"#+ c #B1ADCF",
+"$+ c #B3AED0",
+"%+ c #B4AFD0",
+"&+ c #B8B2D2",
+"*+ c #D7D3E5",
+"=+ c #D7D3E6",
+"-+ c #BBB4D4",
+";+ c #BDB5D5",
+">+ c #BAB5CF",
+",+ c #8C93B3",
+"'+ c #3463A1",
+")+ c #A2A9C5",
+"!+ c #B7B5D3",
+"~+ c #B2AECF",
+"{+ c #BEBBD6",
+"]+ c #C0BCD8",
+"^+ c #B8B2D3",
+"/+ c #BAB4D4",
+"(+ c #BCB5D5",
+"_+ c #BEB6D6",
+":+ c #C6C0DC",
+"<+ c #DED9EA",
+"[+ c #B9B3CD",
+"}+ c #C8BEDC",
+"|+ c #C7BDDC",
+"1+ c #A2A1BB",
+"2+ c #36629D",
+"3+ c #33609B",
+"4+ c #476DA4",
+"5+ c #BFBAD8",
+"6+ c #ADACC6",
+"7+ c #456290",
+"8+ c #697CA5",
+"9+ c #C2BCD6",
+"0+ c #C4BBD9",
+"a+ c #C4BAD9",
+"b+ c #C7BED9",
+"c+ c #949CBE",
+"d+ c #385F9A",
+"e+ c #335E97",
+"f+ c #8793B9",
+"g+ c #ADB1D2",
+"h+ c #747B9A",
+"i+ c #305A92",
+"j+ c #325C93",
+"k+ c #446DA8",
+"l+ c #5175AD",
+"m+ c #2F5C96",
+"n+ c #284D7E",
+"o+ c #CFC5E0",
+"p+ c #C9BEDD",
+"q+ c #5D7DB2",
+"r+ c #22426C",
+"s+ c #2C568B",
+"t+ c #3F6599",
+"u+ c #2C5285",
+"v+ c #305E98",
+"w+ c #CCC1DE",
+"x+ c #2D578F",
+"y+ c #2F5B95",
+" . + + + + ",
+" + @ # $ + + ",
+" % & + * = - + ; > + ",
+" , ' ) + + + ! ~ { ] + + + ^ / ( + ",
+" _ : < [ } | 1 2 3 4 5 6 7 8 9 0 a b ",
+" c d e f g h i j k l m n o p q r ",
+" s t u v w x y y z A B C D E ",
+" F G H I J K L M N O P Q R S T ",
+"+ + + U V W X Y Z ` ...+.@.#.+ + + + ",
+"+ $.%.&.*.=.-.&.;. >.,.'.).!.~.{.].+ ",
+"+ ^./.(._.:.<.[.}. |.1.2.3.4.5.6.+ ",
+"+ 7.8.9.0.a.b.c.d. e.f.g.h.i.j.k.+ ",
+"l.+ + + m.n.o.p.q.r. s.t.u.v.w.x.+ + + ",
+" y.z.A.g.B.C.D.E.F.G.H.I.J.K.L. ",
+" l.M.N.O.v.P.Q.R.S.T.U.U.V.W.X.l. ",
+" Y.Z.`. +.+++@+#+$+%+&+*+=+-+;+>+,++ ",
+" '+)+!+~+{+]+^+^+/+(+_+:+<+[+}+|+1+2+ ",
+" 3+4+5+6++ 7+8+9+0+a+b+c+d+e+f+g+h+i+ ",
+" j+k+l+m+ n++ o+p+p+q+r+ s+t+u+ ",
+" v+ + S.w+S.+ ",
+" + S.S.S.+ ",
+" x++ + + y+ "};
Added: trunk/gtk/unstable-libyui/src/icons/cat-utilities.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/ca…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/cat-utilities.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/cat-utilities.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,240 @@
+/* XPM */
+static const char * cat_utilities_xpm[] = {
+"22 22 215 2",
+" c None",
+". c #8F918C",
+"+ c #8D8F8A",
+"@ c #888A85",
+"# c #90928E",
+"$ c #91938E",
+"% c #C2C4C1",
+"& c #9C9D99",
+"* c #90928D",
+"= c #D2D3D1",
+"- c #929490",
+"; c #C4A000",
+"> c #939590",
+", c #D7D8D6",
+"' c #E2E2E2",
+") c #9F9F9C",
+"! c #9B9C98",
+"~ c #ABACA8",
+"{ c #E3E3E3",
+"] c #D0D1D0",
+"^ c #A0A19D",
+"/ c #C6A304",
+"( c #EBEBEB",
+"_ c #DCDDDC",
+": c #8C8E89",
+"< c #E3E3E2",
+"[ c #E0E0E0",
+"} c #D8D9D8",
+"| c #959792",
+"1 c #C5A202",
+"2 c #D5B934",
+"3 c #C4A104",
+"4 c #9D9E9A",
+"5 c #E8E8E8",
+"6 c #E1E1E1",
+"7 c #B2B3B1",
+"8 c #A4A6A2",
+"9 c #C5C6C3",
+"0 c #DFDFDF",
+"a c #989A95",
+"b c #C8A710",
+"c c #FAF1AE",
+"d c #C5A105",
+"e c #E0E0DF",
+"f c #92948F",
+"g c #DEDEDE",
+"h c #CBCCCB",
+"i c #91938F",
+"j c #C6A203",
+"k c #F3E690",
+"l c #FDF6BD",
+"m c #C9C9C8",
+"n c #AAABA8",
+"o c #949691",
+"p c #D4D5D3",
+"q c #DDDDDD",
+"r c #E6D162",
+"s c #FAF09E",
+"t c #C5A204",
+"u c #C5A004",
+"v c #C2C3C0",
+"w c #9C9E9A",
+"x c #A4A5A2",
+"y c #DCDCDC",
+"z c #B1B2B0",
+"A c #D4B82F",
+"B c #FCF3AE",
+"C c #FBE95B",
+"D c #FBF1AC",
+"E c #8A8C87",
+"F c #EAEAE9",
+"G c #D6D6D6",
+"H c #A9ABA7",
+"I c #C1C3C1",
+"J c #DBDBDB",
+"K c #DEDEDD",
+"L c #C8A60D",
+"M c #F9EEA4",
+"N c #FAE96B",
+"O c #F8E44A",
+"P c #FBF2AC",
+"Q c #ADAEAB",
+"R c #B0B2AF",
+"S c #BEBFBD",
+"T c #979995",
+"U c #C6A202",
+"V c #F0E182",
+"W c #F9EB82",
+"X c #ECD539",
+"Y c #F2DD41",
+"Z c #C3A003",
+"` c #DFE0DE",
+" . c #DADADA",
+".. c #D8D8D8",
+"+. c #B3B4B1",
+"@. c #BABCBA",
+"#. c #C6A303",
+"$. c #E2CB54",
+"%. c #F9ED96",
+"&. c #F2DC43",
+"*. c #CBA90A",
+"=. c #F1DB3F",
+"-. c #F8EEA0",
+";. c #9B8F8B",
+">. c #BFC0BE",
+",. c #A99592",
+"'. c #D1B426",
+"). c #F8EC9D",
+"!. c #F2DE4E",
+"~. c #D6B719",
+"{. c #EED83D",
+"]. c #F7EB9B",
+"^. c #B00606",
+"/. c #946F6B",
+"(. c #B6B3B1",
+"_. c #B32304",
+":. c #C7A40A",
+"<. c #F2DF5E",
+"[. c #E2C82B",
+"}. c #E9D237",
+"|. c #C4A003",
+"1. c #B30808",
+"2. c #B50909",
+"3. c #AE0505",
+"4. c #DA3130",
+"5. c #C73A39",
+"6. c #AA0303",
+"7. c #AE0504",
+"8. c #B6100C",
+"9. c #CA582F",
+"0. c #E0B62E",
+"a. c #E9D135",
+"b. c #F1E288",
+"c. c #C4A103",
+"d. c #D41A1A",
+"e. c #DC1F1F",
+"f. c #E12121",
+"g. c #B71809",
+"h. c #B94E04",
+"i. c #E6CD31",
+"j. c #F0E286",
+"k. c #AD0505",
+"l. c #DC1E1E",
+"m. c #C41111",
+"n. c #CE1717",
+"o. c #CB1515",
+"p. c #A40000",
+"q. c #AE5855",
+"r. c #AD2F00",
+"s. c #B31309",
+"t. c #C51D12",
+"u. c #AD0504",
+"v. c #E1C72B",
+"w. c #C3A002",
+"x. c #AE1211",
+"y. c #E72525",
+"z. c #C91313",
+"A. c #D71C1C",
+"B. c #B10707",
+"C. c #BA6A04",
+"D. c #C46215",
+"E. c #B64403",
+"F. c #B0200F",
+"G. c #E1C629",
+"H. c #ECDB78",
+"I. c #AE0D0C",
+"J. c #EF2929",
+"K. c #BE0D0D",
+"L. c #B20808",
+"M. c #E22222",
+"N. c #B40909",
+"O. c #C5A101",
+"P. c #E4CF5E",
+"Q. c #BA1F12",
+"R. c #B41608",
+"S. c #C07A05",
+"T. c #BE0F0C",
+"U. c #B22A0A",
+"V. c #C9A707",
+"W. c #DFC326",
+"X. c #EAD770",
+"Y. c #B00909",
+"Z. c #CC1515",
+"`. c #C71111",
+" + c #E32323",
+".+ c #B60A0A",
+"++ c #D7BD39",
+"@+ c #ECDA74",
+"#+ c #C86A19",
+"$+ c #BA1C0D",
+"%+ c #CC1715",
+"&+ c #B41A0B",
+"*+ c #DDC124",
+"=+ c #DBBF22",
+"-+ c #C5A102",
+";+ c #C4A002",
+">+ c #BC0D0D",
+",+ c #C51212",
+"'+ c #D81A1A",
+")+ c #D01818",
+"!+ c #CBAA16",
+"~+ c #EAD978",
+"{+ c #EBD97A",
+"]+ c #EAD876",
+"^+ c #CA5B33",
+"/+ c #D06B38",
+"(+ c #E5D165",
+"_+ c #E4D063",
+":+ c #E2CE5F",
+"<+ c #B20707",
+"[+ c #C4A001",
+"}+ c #BB6104",
+"|+ c #B63005",
+"1+ c #B73006",
+"2+ c #BD5A05",
+" . + @ # ",
+" $ % & * = - @ ; ",
+" > , ' ) ! > ~ { ] ^ / ; ",
+" . ( ' _ ! : < [ } | 1 2 3 ",
+" @ 4 5 6 7 8 | 9 0 ' a b c d ",
+" @ e [ [ a f 6 g h i j k l d ",
+" @ * ( 0 m n o p q ' : / r s t u ",
+" @ v [ q 4 w x y y z > 1 A B C D 3 ",
+" E F y G H I J K | L M N O P 3 ",
+" @ Q 0 J R S y T U V W X Y ; Z ",
+" E ` ...+.@.! #.$.%.&.*.=.-.3 ",
+" @ ;.' ..>.,. '.).!.~.; {.].3 ",
+" ^./.(. (./._.:.k <.[.1 ; }.t |. ",
+" 1.2.3.4.5.6.5.4.7.8.9.0.#. ; a.b.c. ",
+" 2.d.e.f.f.6.6.6.f.f.e.d.g.h. ; i.j.c. ",
+" k.l.m.^.n.o.p.q.r.o.n.s.t.l.u. ; v.; w. ",
+"x.y.z.3.6.A.B. C.B.A.D.E.z.y.F.; G.H.c. ",
+"I.J.K. L.M.N. O.P.Q.M.R.S.T.J.U.V.W.X.c. ",
+"Y.f.Z.`. +.+ 1 ++@+#+$+ +`.%+f.&+*+=+-+;+ ",
+">+,+'+)+.+.+ !+~+{+]+^+.+)+'+,+/+(+_+:+c. ",
+" 1.<+ ; [+c.c.c.c.}+|+1+2+c.c.c.c.; ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-3D.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-3D.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-3D.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,76 @@
+/* XPM */
+static const char * pkg_3D_xpm[] = {
+"32 32 41 1",
+" c None",
+". c #000000",
+"+ c #151515",
+"@ c #5A5A5A",
+"# c #727272",
+"$ c #3F3F3F",
+"% c #040404",
+"& c #797979",
+"* c #787878",
+"= c #6B6B6B",
+"- c #454545",
+"; c #080808",
+"> c #060606",
+", c #737373",
+"' c #090909",
+") c #686868",
+"! c #0A0A0A",
+"~ c #3E3E3E",
+"{ c #020202",
+"] c #343434",
+"^ c #2E2E2E",
+"/ c #1B1B1B",
+"( c #010101",
+"_ c #2A2A2A",
+": c #6A6A6A",
+"< c #565656",
+"[ c #636363",
+"} c #2D2D2D",
+"| c #0E0E0E",
+"1 c #1C1C1C",
+"2 c #434343",
+"3 c #121212",
+"4 c #050505",
+"5 c #575757",
+"6 c #242424",
+"7 c #030303",
+"8 c #545454",
+"9 c #0D0D0D",
+"0 c #555555",
+"a c #393939",
+"b c #6E6E6E",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ...... ......... ",
+" ........ .......... ",
+" ........+ ........... ",
+" ..@##$..%& ...&&*=-;..> ",
+" &&&,..'&& ...&&&&&)!..~ ",
+" &, {..]&& ...&& ^../& ",
+" ....(,&& ...&& ..'& ",
+" ...(_:&& ...&& ..(&& ",
+" .....>< ...&& ..;&& ",
+" [}..| ...&& ..1&& ",
+" &#..{& ...&& ...2&& ",
+" . {..3&&...&& ...4#&& ",
+" .........2&&...........5&& ",
+" ........6*&&.........78&&& ",
+" .9%(!60&&& ......7+ab&&& ",
+" &&&&&&&&& &&&&&&&&&& ",
+" &&&&&& &&&&&&&&& ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-available-locked.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-available-locked.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-available-locked.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,553 @@
+/* XPM */
+static const char * pkg_available_locked_xpm[] = {
+"32 32 518 2",
+" c None",
+". c #3E4174",
+"+ c #3F4275",
+"@ c #3D3E71",
+"# c #3A3B6C",
+"$ c #3C3E71",
+"% c #3E4074",
+"& c #3C3F73",
+"* c #3B3D71",
+"= c #434475",
+"- c #8588A7",
+"; c #BFC4D6",
+"> c #E3E7EE",
+", c #F1F2F5",
+"' c #F6F7F9",
+") c #E0E6EF",
+"! c #C6D2E4",
+"~ c #A4B2CD",
+"{ c #6B739B",
+"] c #3E3F71",
+"^ c #393B6F",
+"/ c #3F4172",
+"( c #A0A6C0",
+"_ c #EAEEF2",
+": c #D6DDE5",
+"< c #D9DDE2",
+"[ c #FEFEFE",
+"} c #959BA2",
+"| c #BFD4EA",
+"1 c #C0D3E8",
+"2 c #C6D7EA",
+"3 c #C6D5E7",
+"4 c #7A86AB",
+"5 c #3D3E70",
+"6 c #3D3D71",
+"7 c #595B86",
+"8 c #EAECF0",
+"9 c #E8EBEE",
+"0 c #CACED3",
+"a c #C2CAD3",
+"b c #DAE8F6",
+"c c #FDFDFD",
+"d c #C5C7C8",
+"e c #8A9095",
+"f c #ABBAC9",
+"g c #BCD2EA",
+"h c #B4CBE6",
+"i c #ACC4E1",
+"j c #DEE5ED",
+"k c #EFF0F2",
+"l c #C6CCD8",
+"m c #4B4E7C",
+"n c #74779C",
+"o c #F1F2F4",
+"p c #B4BBC3",
+"q c #BEC9D5",
+"r c #C4CDD7",
+"s c #A4B0BC",
+"t c #D7E5F2",
+"u c #ACAEB1",
+"v c #AAB7C6",
+"w c #D0E1F4",
+"x c #B5C1CE",
+"y c #B6CAE0",
+"z c #B9CFE9",
+"A c #DFE6ED",
+"B c #CDD0D3",
+"C c #B5BDC5",
+"D c #E5E6E8",
+"E c #E8E9EC",
+"F c #5D6188",
+"G c #5A5D88",
+"H c #FBFBFC",
+"I c #C1CAD4",
+"J c #CAE0F6",
+"K c #FCFDFD",
+"L c #E2E3E5",
+"M c #D8E7F4",
+"N c #E0EFFE",
+"O c #D0DDEB",
+"P c #DAEAFA",
+"Q c #D5E5F7",
+"R c #CDE0F3",
+"S c #CBDEF1",
+"T c #C2CEDB",
+"U c #A9B6C4",
+"V c #939BA4",
+"W c #E5EAEE",
+"X c #F7F7F7",
+"Y c #EEEEEE",
+"Z c #E7E7E9",
+"` c #4C4E7A",
+" . c #454677",
+".. c #F1F2F3",
+"+. c #ECECED",
+"@. c #C3C4C6",
+"#. c #AFB5BD",
+"$. c #E2F0FF",
+"%. c #DFEDFC",
+"&. c #D8E8F9",
+"*. c #D0E2F5",
+"=. c #BFCEDF",
+"-. c #C3C9CF",
+";. c #FCFCFC",
+">. c #EFEFEF",
+",. c #E9E9E9",
+"'. c #D3D3D8",
+"). c #3D3F71",
+"!. c #A5A8C0",
+"~. c #FFFFFF",
+"{. c #D2D3D5",
+"]. c #ADB7C2",
+"^. c #CDDAE6",
+"/. c #E1F0FF",
+"(. c #DAEAFB",
+"_. c #D1E4F6",
+":. c #CEDFF3",
+"<. c #F0F1F3",
+"[. c #F4F5F5",
+"}. c #F8F9F9",
+"|. c #F2F2F2",
+"1. c #E5E5E5",
+"2. c #E6E6E6",
+"3. c #7D819A",
+"4. c #424475",
+"5. c #A3A6A8",
+"6. c #9FABB6",
+"7. c #D5E5F4",
+"8. c #E0EFFF",
+"9. c #DBEBFC",
+"0. c #D1E4F7",
+"a. c #EAEDF1",
+"b. c #C8CACD",
+"c. c #768697",
+"d. c #A9B1BA",
+"e. c #C2C5CA",
+"f. c #E3E4E5",
+"g. c #F4F4F4",
+"h. c #E7E7E7",
+"i. c #DDDDDD",
+"j. c #DCDCDD",
+"k. c #3C3E6E",
+"l. c #8689A7",
+"m. c #BBBDC0",
+"n. c #B4C5D6",
+"o. c #DEEEFF",
+"p. c #DFEEFF",
+"q. c #DFEFFF",
+"r. c #D9EAFB",
+"s. c #D0E3F6",
+"t. c #BCC6D2",
+"u. c #C6CBD1",
+"v. c #D6DEE7",
+"w. c #ABBED4",
+"x. c #869DB7",
+"y. c #819CB9",
+"z. c #A1AAB4",
+"A. c #E8E8E8",
+"B. c #DBDBDB",
+"C. c #E0E0E0",
+"D. c #626487",
+"E. c #3E4173",
+"F. c #CDCEDA",
+"G. c #CCCED0",
+"H. c #CDCFD1",
+"I. c #899CB0",
+"J. c #CCE2FB",
+"K. c #DCEDFF",
+"L. c #DDEDFE",
+"M. c #D5E7FA",
+"N. c #EFF2F4",
+"O. c #F0F1F2",
+"P. c #F3F5F6",
+"Q. c #DADFE5",
+"R. c #E3E6E9",
+"S. c #D3D3D4",
+"T. c #D4D5D5",
+"U. c #9A9BAB",
+"V. c #3A3D6F",
+"W. c #414476",
+"X. c #EFEFF3",
+"Y. c #818B96",
+"Z. c #88A2BE",
+"`. c #93A8C0",
+" + c #B6D0EB",
+".+ c #C4DDF7",
+"++ c #D0E6FC",
+"@+ c #DDEEFF",
+"#+ c #DCEDFE",
+"$+ c #D7E8FB",
+"%+ c #CFE3F7",
+"&+ c #E3E9F0",
+"*+ c #B0B5BA",
+"=+ c #C3C7CB",
+"-+ c #CFD0D0",
+";+ c #79899C",
+">+ c #A3A7B2",
+",+ c #37396B",
+"'+ c #3F4072",
+")+ c #F8F8FA",
+"!+ c #95A9C0",
+"~+ c #B2C8E0",
+"{+ c #A9C7E8",
+"]+ c #B2CFED",
+"^+ c #BBD6F2",
+"/+ c #C2DCF6",
+"(+ c #CCE2F9",
+"_+ c #D5E8FB",
+":+ c #D3E6FA",
+"<+ c #CEE2F7",
+"[+ c #C8DDF3",
+"}+ c #F7F8F8",
+"|+ c #92A1B2",
+"1+ c #D6D6D6",
+"2+ c #CBCBCB",
+"3+ c #8E9CAE",
+"4+ c #393B6E",
+"5+ c #3A3A6E",
+"6+ c #E0E3E8",
+"7+ c #ECEDEF",
+"8+ c #C7CCD1",
+"9+ c #9DBCDF",
+"0+ c #AAC8E9",
+"a+ c #B1CEED",
+"b+ c #B8D3F0",
+"c+ c #BCD6F3",
+"d+ c #C0D9F4",
+"e+ c #C5DCF4",
+"f+ c #C7DDF4",
+"g+ c #C4DBF2",
+"h+ c #C9DCF2",
+"i+ c #EBEBEB",
+"j+ c #969FA9",
+"k+ c #B2B7BC",
+"l+ c #535F6D",
+"m+ c #8CA1BB",
+"n+ c #39396D",
+"o+ c #3C3D70",
+"p+ c #CCD9EA",
+"q+ c #7D9AB9",
+"r+ c #A2ACB8",
+"s+ c #A6B7CB",
+"t+ c #E1E8F0",
+"u+ c #CBD4DD",
+"v+ c #C3D4E7",
+"w+ c #B0CDEC",
+"x+ c #B2CEED",
+"y+ c #AFCCEB",
+"z+ c #ACC9EA",
+"A+ c #A7C5E6",
+"B+ c #D4D8DC",
+"C+ c #F1F1F1",
+"D+ c #D1D1D2",
+"E+ c #B1B5BA",
+"F+ c #546F90",
+"G+ c #889EBD",
+"H+ c #B9C8DE",
+"I+ c #90B2D7",
+"J+ c #86ABD4",
+"K+ c #8DA2B8",
+"L+ c #F3F3F4",
+"M+ c #B8C9DC",
+"N+ c #A5C4E6",
+"O+ c #A3C2E5",
+"P+ c #9FBFE3",
+"Q+ c #99BBE0",
+"R+ c #91AFCF",
+"S+ c #BABEC3",
+"T+ c #949AA1",
+"U+ c #9FA6AD",
+"V+ c #F9F9F9",
+"W+ c #F5F5F5",
+"X+ c #EAEAEA",
+"Y+ c #DEDEDE",
+"Z+ c #D3D3D3",
+"`+ c #B3B5B6",
+" @ c #426083",
+".@ c #7C90B1",
+"+@ c #383A6E",
+"@@ c #3C3F71",
+"#@ c #96A7C6",
+"$@ c #9DB9DA",
+"%@ c #7EA5D0",
+"&@ c #C1D2E4",
+"*@ c #FBFBFB",
+"=@ c #B2C3D4",
+"-@ c #9BBCE0",
+";@ c #97B9DE",
+">@ c #93B6DC",
+",@ c #8FB2DA",
+"'@ c #89AED6",
+")@ c #799DC5",
+"!@ c #79A0CC",
+"~@ c #739CCA",
+"{@ c #EBEDEE",
+"]@ c #ECECEC",
+"^@ c #848484",
+"/@ c #393939",
+"(@ c #2D2D2D",
+"_@ c #0F1316",
+":@ c #161F29",
+"<@ c #4F5C7A",
+"[@ c #393A6C",
+"}@ c #646F99",
+"|@ c #B1C8E1",
+"1@ c #749DCB",
+"2@ c #D6DDE4",
+"3@ c #E8EAED",
+"4@ c #98B1CE",
+"5@ c #88ADD6",
+"6@ c #83A9D3",
+"7@ c #78A0CD",
+"8@ c #719AC9",
+"9@ c #6994C5",
+"0@ c #A4ADB8",
+"a@ c #707070",
+"b@ c #7B7B7B",
+"c@ c #D2D2D2",
+"d@ c #BBBBBB",
+"e@ c #707072",
+"f@ c #12121D",
+"g@ c #B2C6DF",
+"h@ c #779ECA",
+"i@ c #9DAEC0",
+"j@ c #FAFAFA",
+"k@ c #FBFCFC",
+"l@ c #6C7C90",
+"m@ c #7CA3CF",
+"n@ c #6D98C7",
+"o@ c #6792C4",
+"p@ c #5F8DC0",
+"q@ c #505A66",
+"r@ c #858585",
+"s@ c #BEBEBE",
+"t@ c #3F3F3F",
+"u@ c #1E1E1E",
+"v@ c #1C1D1E",
+"w@ c #4D4D4E",
+"x@ c #B1B1B1",
+"y@ c #6B7BA5",
+"z@ c #9EBAD9",
+"A@ c #6892C2",
+"B@ c #C0C4C9",
+"C@ c #F6F6F6",
+"D@ c #CED0D3",
+"E@ c #6589B1",
+"F@ c #709AC9",
+"G@ c #6C97C7",
+"H@ c #6893C4",
+"I@ c #638FC1",
+"J@ c #5C8ABE",
+"K@ c #5585BA",
+"L@ c #343638",
+"M@ c #C2C2C2",
+"N@ c #212121",
+"O@ c #BCBCBC",
+"P@ c #909295",
+"Q@ c #6C84A5",
+"R@ c #525E89",
+"S@ c #2E2E2E",
+"T@ c #AAAAAA",
+"U@ c #000000",
+"V@ c #3C3F72",
+"W@ c #9BB2D0",
+"X@ c #80A3CC",
+"Y@ c #5F88B6",
+"Z@ c #CED0D2",
+"`@ c #B4B8BB",
+" # c #6089B7",
+".# c #6490C2",
+"+# c #618EC0",
+"@# c #5D8ABE",
+"## c #5886BB",
+"$# c #5282B8",
+"%# c #4B7DB5",
+"&# c #2C2C2C",
+"*# c #C0C0C0",
+"=# c #191919",
+"-# c #989A9C",
+";# c #4C5E75",
+"># c #7385A5",
+",# c #393B6D",
+"'# c #161616",
+")# c #C1C0C0",
+"!# c #474B7C",
+"~# c #A1B9D5",
+"{# c #6E96C4",
+"]# c #B3BAC2",
+"^# c #9EA3A8",
+"/# c #48627E",
+"(# c #5A89BD",
+"_# c #5887BC",
+":# c #5584BA",
+"<# c #5181B8",
+"[# c #4C7EB5",
+"}# c #4779B2",
+"|# c #28486D",
+"1# c #141312",
+"2# c #9B9794",
+"3# c #201D1C",
+"4# c #0B0B07",
+"5# c #040302",
+"6# c #050403",
+"7# c #2F2921",
+"8# c #A8A39E",
+"9# c #1A130B",
+"0# c #2F335E",
+"a# c #4E5785",
+"b# c #9CB5D3",
+"c# c #A8B3C0",
+"d# c #CDCDCD",
+"e# c #CFCFCF",
+"f# c #687685",
+"g# c #4F80B7",
+"h# c #4E7FB6",
+"i# c #4C7DB5",
+"j# c #497BB3",
+"k# c #4678B1",
+"l# c #4175AF",
+"m# c #3E71AB",
+"n# c #A59176",
+"o# c #E0C4A0",
+"p# c #DFC4A3",
+"q# c #DABE9A",
+"r# c #D6BA94",
+"s# c #CDA676",
+"t# c #815A2B",
+"u# c #2E3058",
+"v# c #444977",
+"w# c #B4B9C4",
+"x# c #8F949A",
+"y# c #375A82",
+"z# c #4376B0",
+"A# c #4275AF",
+"B# c #4074AE",
+"C# c #3E72AC",
+"D# c #3E6FA9",
+"E# c #3D6CA4",
+"F# c #3C699F",
+"G# c #E2C5A1",
+"H# c #D8B58C",
+"I# c #CA9F68",
+"J# c #AC8758",
+"K# c #A78252",
+"L# c #A78253",
+"M# c #A37B4B",
+"N# c #BC8849",
+"O# c #AC712E",
+"P# c #202040",
+"Q# c #3A3B6D",
+"R# c #6E718E",
+"S# c #8697AD",
+"T# c #81A0C4",
+"U# c #648AB7",
+"V# c #4E79AC",
+"W# c #4672A6",
+"X# c #3E6BA0",
+"Y# c #446EA0",
+"Z# c #4C71A1",
+"`# c #5E7EA6",
+" $ c #E3C6A2",
+".$ c #D5AE7E",
+"+$ c #B08D5F",
+"@$ c #D5B284",
+"#$ c #CFAB7C",
+"$$ c #CFAC7B",
+"%$ c #CBA471",
+"&$ c #BC8746",
+"*$ c #AA6F2B",
+"=$ c #2A2B50",
+"-$ c #505985",
+";$ c #6D7FA6",
+">$ c #7E93B6",
+",$ c #869BBB",
+"'$ c #8AA1BE",
+")$ c #8297B6",
+"!$ c #798CAC",
+"~$ c #66759A",
+"{$ c #E1C4A0",
+"]$ c #D0A674",
+"^$ c #C79B64",
+"/$ c #AA8455",
+"($ c #A47E4E",
+"_$ c #A07744",
+":$ c #BA8442",
+"<$ c #1D1D37",
+"[$ c #2F3057",
+"}$ c #353765",
+"|$ c #363969",
+"1$ c #39396A",
+"2$ c #363768",
+"3$ c #343664",
+"4$ c #2E2F56",
+"5$ c #E1C29C",
+"6$ c #CEA470",
+"7$ c #AD8D64",
+"8$ c #D2B289",
+"9$ c #CDAC83",
+"0$ c #CEAD83",
+"a$ c #CCA77B",
+"b$ c #B8803E",
+"c$ c #AD7332",
+"d$ c #E0C29E",
+"e$ c #D4AC79",
+"f$ c #CDA66E",
+"g$ c #AF8D5E",
+"h$ c #AB8758",
+"i$ c #AB8858",
+"j$ c #A8814C",
+"k$ c #B47E3E",
+"l$ c #D0A874",
+"m$ c #C6965D",
+"n$ c #BE8D50",
+"o$ c #BA894B",
+"p$ c #BD8C4E",
+"q$ c #BC8A4C",
+"r$ c #BA8647",
+"s$ c #A47136",
+" ",
+" ",
+" . + @ # $ % & ",
+" * = - ; > , ' ) ! ~ { ] ^ ",
+" / ( _ : < [ [ [ } | 1 2 3 4 5 ",
+" 6 7 8 9 0 a b c d e f g h i j k l m ^ ",
+" n o p q r s t u v w x y z A B C D E F ",
+" G H I J K L M N O P Q R S T U V W X Y Z ` ",
+" ., [ [ ..+.@.#.$.$.%.&.*.=.-.;.[ [ ;.>.,.'.). ",
+" !.~.[ [ [ {.].^./././.(._.:.<.[.}.[ [ |.1.2.3. ",
+" 4.H [ [ c 5.6.7.8.8.8.8.9.0.a.b.c.d.e.f.g.h.i.j.k. ",
+" l.~.[ [ m.n.o.p.q.q.q.q.r.s.t.u.v.w.x.y.z.A.B.C.D. ",
+" E.F.;.G.H.I.J.K.o.o.o.o.L.M.s.N.[ [ O.P.Q.R.h.S.T.U.V. ",
+" W.X.Y.Z.`. +.+++@+@+@+#+$+%+&+[ [ [ [ [ [ *+=+-+;+>+,+ ",
+" '+)+!+~+{+]+^+/+(+_+_+:+<+[+}+[ [ [ [ [ ;.+.|+1+2+3+4+ ",
+" 5+6+7+8+9+0+a+b+c+d+e+f+g+h+[ [ [ [ [ [ X i+j+k+l+m+n+ ",
+" o+p+q+r+s+t+u+v+w+x+a+y+z+A+B+[ [ [ [ ;.C+1.D+E+F+G+4+ ",
+" & H+I+J+K+[ [ L+M+N+N+O+P+Q+R+S+T+U+V+W+X+Y+Z+`+ @.@+@ ",
+" @@#@$@%@&@[ [ [ *@=@-@;@>@,@'@)@!@~@{@]@^@/@(@_@:@<@[@ ",
+" }@|@1@2@[ [ [ [ [ 3@4@5@6@%@7@8@9@0@a@b@c@B.B.d@e@f@ ",
+" $ g@h@i@j@[ [ [ [ k@l@m@7@~@n@o@p@q@r@s@t@u@v@w@x@^@ ",
+" y@z@A@B@|.C@V+j@D@E@F@G@H@I@J@K@L@M@N@O@P@Q@R@S@T@U@ ",
+" V@W@X@Y@Z@A.i+]@`@ #.#+#@###$#%#&#*#=#-#;#>#,#'#)#U@ ",
+" !#~#{#]#B.i.^#/#(#_#:#<#[#}#|#1#2#3#4#5#5#6#7#8#9# ",
+" 0#a#b#c#d#e#f#g#h#i#j#k#l#m#U@n#o#p#p#q#q#q#r#s#t#U@",
+" u#v#w#1+x#y#z#A#B#C#D#E#F#U@G#H#I#J#K#K#L#M#N#O#U@",
+" P#Q#R#S#T#U#V#W#X#Y#Z#`#U@ $.$+$@$#$#$$$%$&$*$U@",
+" =$Q#-$;$>$,$'$)$!$~$U@{$]$^$/$($($($_$:$O#U@",
+" <$[$}$|$1$2$3$4$U@5$6$7$8$9$9$0$a$b$c$U@",
+" U@d$e$f$g$h$h$i$j$&$k$U@",
+" U@l$m$n$n$o$o$p$q$r$s$U@",
+" U@U@U@U@U@U@U@U@U@U@ "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-available.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-available.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-available.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,505 @@
+/* XPM */
+static const char * pkg_available_xpm[] = {
+"32 32 470 2",
+" c None",
+". c #3E4174",
+"+ c #3F4275",
+"@ c #3D3E71",
+"# c #3A3B6C",
+"$ c #3C3E71",
+"% c #3E4074",
+"& c #3C3F73",
+"* c #3B3D71",
+"= c #434475",
+"- c #8588A7",
+"; c #BFC4D6",
+"> c #E3E7EE",
+", c #F1F2F5",
+"' c #F6F7F9",
+") c #E0E6EF",
+"! c #C6D2E4",
+"~ c #A4B2CD",
+"{ c #6B739B",
+"] c #3E3F71",
+"^ c #393B6F",
+"/ c #3F4172",
+"( c #A0A6C0",
+"_ c #EAEEF2",
+": c #D6DDE5",
+"< c #D9DDE2",
+"[ c #FEFEFE",
+"} c #959BA2",
+"| c #BFD4EA",
+"1 c #C0D3E8",
+"2 c #C6D7EA",
+"3 c #C6D5E7",
+"4 c #7A86AB",
+"5 c #3D3E70",
+"6 c #3D3D71",
+"7 c #595B86",
+"8 c #EAECF0",
+"9 c #E8EBEE",
+"0 c #CACED3",
+"a c #C2CAD3",
+"b c #DAE8F6",
+"c c #FDFDFD",
+"d c #C5C7C8",
+"e c #8A9095",
+"f c #ABBAC9",
+"g c #BCD2EA",
+"h c #B4CBE6",
+"i c #ACC4E1",
+"j c #DEE5ED",
+"k c #EFF0F2",
+"l c #C6CCD8",
+"m c #4B4E7C",
+"n c #74779C",
+"o c #F1F2F4",
+"p c #B4BBC3",
+"q c #BEC9D5",
+"r c #C4CDD7",
+"s c #A4B0BC",
+"t c #D7E5F2",
+"u c #ACAEB1",
+"v c #AAB7C6",
+"w c #D0E1F4",
+"x c #B5C1CE",
+"y c #B6CAE0",
+"z c #B9CFE9",
+"A c #DFE6ED",
+"B c #CDD0D3",
+"C c #B5BDC5",
+"D c #E5E6E8",
+"E c #E8E9EC",
+"F c #5D6188",
+"G c #5A5D88",
+"H c #FBFBFC",
+"I c #C1CAD4",
+"J c #CAE0F6",
+"K c #FCFDFD",
+"L c #E2E3E5",
+"M c #D8E7F4",
+"N c #E0EFFE",
+"O c #D0DDEB",
+"P c #DAEAFA",
+"Q c #D5E5F7",
+"R c #CDE0F3",
+"S c #CBDEF1",
+"T c #C2CEDB",
+"U c #A9B6C4",
+"V c #939BA4",
+"W c #E5EAEE",
+"X c #F7F7F7",
+"Y c #EEEEEE",
+"Z c #E7E7E9",
+"` c #4C4E7A",
+" . c #454677",
+".. c #F1F2F3",
+"+. c #ECECED",
+"@. c #C3C4C6",
+"#. c #AFB5BD",
+"$. c #E2F0FF",
+"%. c #DFEDFC",
+"&. c #D8E8F9",
+"*. c #D0E2F5",
+"=. c #BFCEDF",
+"-. c #C3C9CF",
+";. c #FCFCFC",
+">. c #EFEFEF",
+",. c #E9E9E9",
+"'. c #D3D3D8",
+"). c #3D3F71",
+"!. c #A5A8C0",
+"~. c #FFFFFF",
+"{. c #D2D3D5",
+"]. c #ADB7C2",
+"^. c #CDDAE6",
+"/. c #E1F0FF",
+"(. c #DAEAFB",
+"_. c #D1E4F6",
+":. c #CEDFF3",
+"<. c #F0F1F3",
+"[. c #F4F5F5",
+"}. c #F8F9F9",
+"|. c #F2F2F2",
+"1. c #E5E5E5",
+"2. c #E6E6E6",
+"3. c #7D819A",
+"4. c #424475",
+"5. c #A3A6A8",
+"6. c #9FABB6",
+"7. c #D5E5F4",
+"8. c #E0EFFF",
+"9. c #DBEBFC",
+"0. c #D1E4F7",
+"a. c #EAEDF1",
+"b. c #C8CACD",
+"c. c #768697",
+"d. c #A9B1BA",
+"e. c #C2C5CA",
+"f. c #E3E4E5",
+"g. c #F4F4F4",
+"h. c #E7E7E7",
+"i. c #DDDDDD",
+"j. c #DCDCDD",
+"k. c #3C3E6E",
+"l. c #8689A7",
+"m. c #BBBDC0",
+"n. c #B4C5D6",
+"o. c #DEEEFF",
+"p. c #DFEEFF",
+"q. c #DFEFFF",
+"r. c #D9EAFB",
+"s. c #D0E3F6",
+"t. c #BCC6D2",
+"u. c #C6CBD1",
+"v. c #D6DEE7",
+"w. c #ABBED4",
+"x. c #869DB7",
+"y. c #819CB9",
+"z. c #A1AAB4",
+"A. c #E8E8E8",
+"B. c #DBDBDB",
+"C. c #E0E0E0",
+"D. c #626487",
+"E. c #3E4173",
+"F. c #CDCEDA",
+"G. c #CCCED0",
+"H. c #CDCFD1",
+"I. c #899CB0",
+"J. c #CCE2FB",
+"K. c #DCEDFF",
+"L. c #DDEDFE",
+"M. c #D5E7FA",
+"N. c #EFF2F4",
+"O. c #F0F1F2",
+"P. c #F3F5F6",
+"Q. c #DADFE5",
+"R. c #E3E6E9",
+"S. c #D3D3D4",
+"T. c #D4D5D5",
+"U. c #9A9BAB",
+"V. c #3A3D6F",
+"W. c #414476",
+"X. c #EFEFF3",
+"Y. c #818B96",
+"Z. c #88A2BE",
+"`. c #93A8C0",
+" + c #B6D0EB",
+".+ c #C4DDF7",
+"++ c #D0E6FC",
+"@+ c #DDEEFF",
+"#+ c #DCEDFE",
+"$+ c #D7E8FB",
+"%+ c #CFE3F7",
+"&+ c #E3E9F0",
+"*+ c #B0B5BA",
+"=+ c #C3C7CB",
+"-+ c #CFD0D0",
+";+ c #79899C",
+">+ c #A3A7B2",
+",+ c #37396B",
+"'+ c #3F4072",
+")+ c #F8F8FA",
+"!+ c #95A9C0",
+"~+ c #B2C8E0",
+"{+ c #A9C7E8",
+"]+ c #B2CFED",
+"^+ c #BBD6F2",
+"/+ c #C2DCF6",
+"(+ c #CCE2F9",
+"_+ c #D5E8FB",
+":+ c #D3E6FA",
+"<+ c #CEE2F7",
+"[+ c #C8DDF3",
+"}+ c #F7F8F8",
+"|+ c #92A1B2",
+"1+ c #D6D6D6",
+"2+ c #CBCBCB",
+"3+ c #8E9CAE",
+"4+ c #393B6E",
+"5+ c #3A3A6E",
+"6+ c #E0E3E8",
+"7+ c #ECEDEF",
+"8+ c #C7CCD1",
+"9+ c #9DBCDF",
+"0+ c #AAC8E9",
+"a+ c #B1CEED",
+"b+ c #B8D3F0",
+"c+ c #BCD6F3",
+"d+ c #C0D9F4",
+"e+ c #C5DCF4",
+"f+ c #C7DDF4",
+"g+ c #C4DBF2",
+"h+ c #C9DCF2",
+"i+ c #EBEBEB",
+"j+ c #969FA9",
+"k+ c #B2B7BC",
+"l+ c #535F6D",
+"m+ c #8CA1BB",
+"n+ c #39396D",
+"o+ c #3C3D70",
+"p+ c #CCD9EA",
+"q+ c #7D9AB9",
+"r+ c #A2ACB8",
+"s+ c #A6B7CB",
+"t+ c #E1E8F0",
+"u+ c #CBD4DD",
+"v+ c #C3D4E7",
+"w+ c #B0CDEC",
+"x+ c #B2CEED",
+"y+ c #AFCCEB",
+"z+ c #ACC9EA",
+"A+ c #A7C5E6",
+"B+ c #D4D8DC",
+"C+ c #F1F1F1",
+"D+ c #D1D1D2",
+"E+ c #B1B5BA",
+"F+ c #546F90",
+"G+ c #889EBD",
+"H+ c #B9C8DE",
+"I+ c #90B2D7",
+"J+ c #86ABD4",
+"K+ c #8DA2B8",
+"L+ c #F3F3F4",
+"M+ c #B8C9DC",
+"N+ c #A5C4E6",
+"O+ c #A3C2E5",
+"P+ c #9FBFE3",
+"Q+ c #99BBE0",
+"R+ c #91AFCF",
+"S+ c #BABEC3",
+"T+ c #949AA1",
+"U+ c #9FA6AD",
+"V+ c #F9F9F9",
+"W+ c #F5F5F5",
+"X+ c #EAEAEA",
+"Y+ c #DEDEDE",
+"Z+ c #D3D3D3",
+"`+ c #B3B5B6",
+" @ c #426083",
+".@ c #7C90B1",
+"+@ c #383A6E",
+"@@ c #3C3F71",
+"#@ c #96A7C6",
+"$@ c #9DB9DA",
+"%@ c #7EA5D0",
+"&@ c #C1D2E4",
+"*@ c #FBFBFB",
+"=@ c #B2C3D4",
+"-@ c #9BBCE0",
+";@ c #97B9DE",
+">@ c #93B6DC",
+",@ c #8FB2DA",
+"'@ c #89AED6",
+")@ c #799DC5",
+"!@ c #79A0CC",
+"~@ c #739CCA",
+"{@ c #EBEDEE",
+"]@ c #ECECEC",
+"^@ c #E2E2E2",
+"/@ c #D7D7D7",
+"(@ c #CCCCCC",
+"_@ c #475566",
+":@ c #5E80A9",
+"<@ c #68789F",
+"[@ c #3A3B6D",
+"}@ c #646F99",
+"|@ c #B1C8E1",
+"1@ c #749DCB",
+"2@ c #D6DDE4",
+"3@ c #E8EAED",
+"4@ c #98B1CE",
+"5@ c #88ADD6",
+"6@ c #83A9D3",
+"7@ c #78A0CD",
+"8@ c #719AC9",
+"9@ c #6994C5",
+"0@ c #AFB9C5",
+"a@ c #E3E3E3",
+"b@ c #D9D9D9",
+"c@ c #CECECE",
+"d@ c #A2A5A8",
+"e@ c #325784",
+"f@ c #7691B3",
+"g@ c #4E5682",
+"h@ c #B2C6DF",
+"i@ c #779ECA",
+"j@ c #9DAEC0",
+"k@ c #FAFAFA",
+"l@ c #FBFCFC",
+"m@ c #6C7C90",
+"n@ c #7CA3CF",
+"o@ c #6D98C7",
+"p@ c #6792C4",
+"q@ c #5F8DC0",
+"r@ c #8DA1B8",
+"s@ c #CFCFCF",
+"t@ c #C5C5C5",
+"u@ c #93969A",
+"v@ c #446897",
+"w@ c #7C92B1",
+"x@ c #3B3C6E",
+"y@ c #6B7BA5",
+"z@ c #9EBAD9",
+"A@ c #6892C2",
+"B@ c #C0C4C9",
+"C@ c #F6F6F6",
+"D@ c #CED0D3",
+"E@ c #6589B1",
+"F@ c #709AC9",
+"G@ c #6C97C7",
+"H@ c #6893C4",
+"I@ c #638FC1",
+"J@ c #5C8ABE",
+"K@ c #5585BA",
+"L@ c #92A7BE",
+"M@ c #BCBCBC",
+"N@ c #909295",
+"O@ c #6C84A5",
+"P@ c #525E89",
+"Q@ c #3C3F72",
+"R@ c #9BB2D0",
+"S@ c #80A3CC",
+"T@ c #5F88B6",
+"U@ c #CED0D2",
+"V@ c #B4B8BB",
+"W@ c #6089B7",
+"X@ c #6490C2",
+"Y@ c #618EC0",
+"Z@ c #5D8ABE",
+"`@ c #5886BB",
+" # c #5282B8",
+".# c #4B7DB5",
+"+# c #889AAF",
+"@# c #C3C3C3",
+"## c #BBBBBB",
+"$# c #989A9C",
+"%# c #4C5E75",
+"&# c #7385A5",
+"*# c #393B6D",
+"=# c #474B7C",
+"-# c #A1B9D5",
+";# c #6E96C4",
+"># c #B3BAC2",
+",# c #9EA3A8",
+"'# c #48627E",
+")# c #5A89BD",
+"!# c #5887BC",
+"~# c #5584BA",
+"{# c #5181B8",
+"]# c #4C7EB5",
+"^# c #4779B2",
+"/# c #4174AF",
+"(# c #597DA6",
+"_# c #B8B8B8",
+":# c #B0B0B0",
+"<# c #898B8F",
+"[# c #798BA8",
+"}# c #3F4371",
+"|# c #2F335E",
+"1# c #4E5785",
+"2# c #9CB5D3",
+"3# c #A8B3C0",
+"4# c #CDCDCD",
+"5# c #687685",
+"6# c #4F80B7",
+"7# c #4E7FB6",
+"8# c #4C7DB5",
+"9# c #497BB3",
+"0# c #4678B1",
+"a# c #4175AF",
+"b# c #3E71AB",
+"c# c #3D6DA5",
+"d# c #3D699E",
+"e# c #A4A5A7",
+"f# c #ACADAD",
+"g# c #7B8392",
+"h# c #464B78",
+"i# c #2C2D56",
+"j# c #2E3058",
+"k# c #444977",
+"l# c #B4B9C4",
+"m# c #8F949A",
+"n# c #375A82",
+"o# c #4376B0",
+"p# c #4275AF",
+"q# c #4074AE",
+"r# c #3E72AC",
+"s# c #3E6FA9",
+"t# c #3D6CA4",
+"u# c #3C699F",
+"v# c #3B6599",
+"w# c #496D9B",
+"x# c #7D8899",
+"y# c #6D788E",
+"z# c #2A2B51",
+"A# c #202040",
+"B# c #6E718E",
+"C# c #8697AD",
+"D# c #81A0C4",
+"E# c #648AB7",
+"F# c #4E79AC",
+"G# c #4672A6",
+"H# c #3E6BA0",
+"I# c #446EA0",
+"J# c #4C71A1",
+"K# c #5E7EA6",
+"L# c #758DAF",
+"M# c #7E91B0",
+"N# c #565E87",
+"O# c #38396B",
+"P# c #1D1D38",
+"Q# c #2A2B50",
+"R# c #505985",
+"S# c #6D7FA6",
+"T# c #7E93B6",
+"U# c #869BBB",
+"V# c #8AA1BE",
+"W# c #8297B6",
+"X# c #798CAC",
+"Y# c #66759A",
+"Z# c #4B517C",
+"`# c #3A3B6B",
+" $ c #292A4D",
+".$ c #1D1D37",
+"+$ c #2F3057",
+"@$ c #353765",
+"#$ c #363969",
+"$$ c #39396A",
+"%$ c #363768",
+"&$ c #343664",
+"*$ c #2E2F56",
+"=$ c #1B1B35",
+" ",
+" ",
+" . + @ # $ % & ",
+" * = - ; > , ' ) ! ~ { ] ^ ",
+" / ( _ : < [ [ [ } | 1 2 3 4 5 ",
+" 6 7 8 9 0 a b c d e f g h i j k l m ^ ",
+" n o p q r s t u v w x y z A B C D E F ",
+" G H I J K L M N O P Q R S T U V W X Y Z ` ",
+" ., [ [ ..+.@.#.$.$.%.&.*.=.-.;.[ [ ;.>.,.'.). ",
+" !.~.[ [ [ {.].^./././.(._.:.<.[.}.[ [ |.1.2.3. ",
+" 4.H [ [ c 5.6.7.8.8.8.8.9.0.a.b.c.d.e.f.g.h.i.j.k. ",
+" l.~.[ [ m.n.o.p.q.q.q.q.r.s.t.u.v.w.x.y.z.A.B.C.D. ",
+" E.F.;.G.H.I.J.K.o.o.o.o.L.M.s.N.[ [ O.P.Q.R.h.S.T.U.V. ",
+" W.X.Y.Z.`. +.+++@+@+@+#+$+%+&+[ [ [ [ [ [ *+=+-+;+>+,+ ",
+" '+)+!+~+{+]+^+/+(+_+_+:+<+[+}+[ [ [ [ [ ;.+.|+1+2+3+4+ ",
+" 5+6+7+8+9+0+a+b+c+d+e+f+g+h+[ [ [ [ [ [ X i+j+k+l+m+n+ ",
+" o+p+q+r+s+t+u+v+w+x+a+y+z+A+B+[ [ [ [ ;.C+1.D+E+F+G+4+ ",
+" & H+I+J+K+[ [ L+M+N+N+O+P+Q+R+S+T+U+V+W+X+Y+Z+`+ @.@+@ ",
+" @@#@$@%@&@[ [ [ *@=@-@;@>@,@'@)@!@~@{@]@^@/@(@_@:@<@[@ ",
+" }@|@1@2@[ [ [ [ [ 3@4@5@6@%@7@8@9@0@a@b@c@d@e@f@g@ ",
+" $ h@i@j@k@[ [ [ [ l@m@n@7@~@o@p@q@r@b@s@t@u@v@w@x@ ",
+" y@z@A@B@|.C@V+k@D@E@F@G@H@I@J@K@L@c@t@M@N@O@P@ ",
+" Q@R@S@T@U@A.i+]@V@W@X@Y@Z@`@ #.#+#@###$#%#&#*# ",
+" =#-#;#>#B.i.,#'#)#!#~#{#]#^#/#(#_#:#<#[#}# ",
+" |#1#2#3#4#s@5#6#7#8#9#0#a#b#c#d#e#f#g#h#i# ",
+" j#k#l#1+m#n#o#p#q#r#s#t#u#v#w#x#y#}#z# ",
+" A#[@B#C#D#E#F#G#H#I#J#K#L#M#N#O#P# ",
+" Q#[@R#S#T#U#V#W#X#Y#Z#`# $ ",
+" .$+$@$#$$$%$&$*$=$ ",
+" ",
+" ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-install-auto.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-install-auto.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-install-auto.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,325 @@
+/* XPM */
+static const char * pkg_install_auto_xpm[] = {
+"32 32 290 2",
+" c None",
+". c #1F4B8A",
+"+ c #214C89",
+"@ c #214C8A",
+"# c #214D8A",
+"$ c #204A88",
+"% c #204B88",
+"& c #2B558F",
+"* c #5B80AF",
+"= c #7998C0",
+"- c #89A6C9",
+"; c #85A2C6",
+"> c #698AB5",
+", c #355D95",
+"' c #1F4C89",
+") c #5377A7",
+"! c #8AA5CA",
+"~ c #8BA7CB",
+"{ c #90ABCE",
+"] c #93ADCE",
+"^ c #96AFD0",
+"/ c #98B1D1",
+"( c #99B2D1",
+"_ c #6C8CB6",
+": c #234E89",
+"< c #1F4987",
+"[ c #5B7CAA",
+"} c #5B7CAB",
+"| c #41669C",
+"1 c #446BA0",
+"2 c #6283B2",
+"3 c #90ABCD",
+"4 c #93ADCF",
+"5 c #8CA7CC",
+"6 c #8AA6CB",
+"7 c #94ADCF",
+"8 c #7C99C1",
+"9 c #325A91",
+"0 c #2D558F",
+"a c #1F4C87",
+"b c #214C88",
+"c c #315891",
+"d c #86A2C7",
+"e c #8DA9CC",
+"f c #84A1C8",
+"g c #809FC6",
+"h c #6587B3",
+"i c #204B8B",
+"j c #224C88",
+"k c #325C93",
+"l c #7F9EC6",
+"m c #7B9BC4",
+"n c #7A9AC3",
+"o c #91ACCE",
+"p c #305991",
+"q c #1E4A86",
+"r c #204A8A",
+"s c #6A8BB7",
+"t c #83A1C8",
+"u c #7697C2",
+"v c #7395C1",
+"w c #86A3C9",
+"x c #6183B1",
+"y c #1F4A87",
+"z c #545454",
+"A c #595959",
+"B c #5C5C5C",
+"C c #4D5766",
+"D c #446798",
+"E c #89A5CB",
+"F c #7193BF",
+"G c #6D90BE",
+"H c #7797C2",
+"I c #7F9DC4",
+"J c #284E83",
+"K c #5B5B5B",
+"L c #585858",
+"M c #535353",
+"N c #AFAFAF",
+"O c #FCFCFC",
+"P c #FEFEFE",
+"Q c #FDFDFD",
+"R c #F0F2F5",
+"S c #6B8FBD",
+"T c #698DBC",
+"U c #6A8EBD",
+"V c #8EA9CC",
+"W c #2A528D",
+"X c #F6F6F6",
+"Y c #F5F5F5",
+"Z c #F4F4F4",
+"` c #F3F3F3",
+" . c #F2F2F2",
+".. c #959595",
+"+. c #AFBCCE",
+"@. c #8CA8CC",
+"#. c #658ABA",
+"$. c #6388B9",
+"%. c #6187B8",
+"&. c #95AECF",
+"*. c #6F89AD",
+"=. c #DEDEDE",
+"-. c #979797",
+";. c #F8F8F8",
+">. c #E5E5E5",
+",. c #9CADC3",
+"'. c #385E95",
+"). c #7A99C2",
+"!. c #8DA8CC",
+"~. c #5F85B8",
+"{. c #5D84B7",
+"]. c #5B82B6",
+"^. c #94AFCF",
+"/. c #97B0D0",
+"(. c #6182B0",
+"_. c #486A9B",
+":. c #D9DADB",
+"<. c #EDEDED",
+"[. c #7E7E7E",
+"}. c #DFDFDF",
+"|. c #ECECEC",
+"1. c #E0E0E0",
+"2. c #E3E3E3",
+"3. c #869BB9",
+"4. c #3A6198",
+"5. c #7B9AC3",
+"6. c #5A82B5",
+"7. c #5981B5",
+"8. c #5880B4",
+"9. c #4E79B0",
+"0. c #4370AB",
+"a. c #3969A7",
+"b. c #6C8FBE",
+"c. c #6889B6",
+"d. c #345A90",
+"e. c #CACDD2",
+"f. c #D7D7D7",
+"g. c #E2E2E2",
+"h. c #C3C3C3",
+"i. c #696969",
+"j. c #FAFAFA",
+"k. c #E1E1E1",
+"l. c #E4E4E4",
+"m. c #E7E7E7",
+"n. c #6C87AC",
+"o. c #42699C",
+"p. c #7B9BC3",
+"q. c #5881B5",
+"r. c #4A76AE",
+"s. c #416EAA",
+"t. c #3666A5",
+"u. c #3364A4",
+"v. c #5C83B6",
+"w. c #7493BE",
+"x. c #2D568F",
+"y. c #BBC3CE",
+"z. c #DCDCDC",
+"A. c #D9D9D9",
+"B. c #E9E9E9",
+"C. c #5F5F5F",
+"D. c #BDBDBD",
+"E. c #F0F0F0",
+"F. c #E0E1E2",
+"G. c #5A78A3",
+"H. c #426A9F",
+"I. c #3A69A7",
+"J. c #4D78B0",
+"K. c #7D9CC4",
+"L. c #315992",
+"M. c #A2B0C2",
+"N. c #DBDBDB",
+"O. c #DADADA",
+"P. c #D8D8D8",
+"Q. c #A2A2A2",
+"R. c #555555",
+"S. c #DDDDDD",
+"T. c #D8D9DA",
+"U. c #486A9A",
+"V. c #476EA2",
+"W. c #6F92BF",
+"X. c #416FAA",
+"Y. c #82A0C7",
+"Z. c #3C6298",
+"`. c #7E93B1",
+" + c #919191",
+".+ c #D6D6D6",
+"++ c #CCCED2",
+"@+ c #395E93",
+"#+ c #557AAC",
+"$+ c #7092BF",
+"%+ c #3D6CA9",
+"&+ c #7E9DC6",
+"*+ c #4A70A2",
+"=+ c #58769F",
+"-+ c #D0D0D0",
+";+ c #D1D1D1",
+">+ c #D2D2D2",
+",+ c #D4D4D4",
+"'+ c #7F7F7F",
+")+ c #D5D5D5",
+"!+ c #BABFC6",
+"~+ c #2F578E",
+"{+ c #5E82B1",
+"]+ c #89A5CA",
+"^+ c #597CAD",
+"/+ c #3C6093",
+"(+ c #C1C3C5",
+"_+ c #CACACA",
+":+ c #CCCCCC",
+"<+ c #CDCDCD",
+"[+ c #676767",
+"}+ c #CECECE",
+"|+ c #C8C8C8",
+"1+ c #AEB4BD",
+"2+ c #2B538C",
+"3+ c #4D72A6",
+"4+ c #2B548D",
+"5+ c #B0B5BB",
+"6+ c #C4C4C4",
+"7+ c #C6C6C6",
+"8+ c #D3D3D3",
+"9+ c #626262",
+"0+ c #B6B6B6",
+"a+ c #EBEBEB",
+"b+ c #CFCFCF",
+"c+ c #CBCBCB",
+"d+ c #A2ABB8",
+"e+ c #9D9D9D",
+"f+ c #555753",
+"g+ c #575955",
+"h+ c #CDD0D5",
+"i+ c #575757",
+"j+ c #DBDCDA",
+"k+ c #BABBB9",
+"l+ c #585A56",
+"m+ c #E8E8E8",
+"n+ c #DCDDDB",
+"o+ c #BBBCBA",
+"p+ c #595B57",
+"q+ c #B7B7B7",
+"r+ c #5A5C58",
+"s+ c #B0B0B0",
+"t+ c #B4B4B4",
+"u+ c #B3B3B3",
+"v+ c #B2B2B2",
+"w+ c #B1B1B1",
+"x+ c #AEAEAE",
+"y+ c #ADADAD",
+"z+ c #ACACAC",
+"A+ c #ABABAB",
+"B+ c #AAAAAA",
+"C+ c #A8A8A8",
+"D+ c #A7A7A7",
+"E+ c #A6A6A6",
+"F+ c #A5A5A5",
+"G+ c #A4A4A4",
+"H+ c #A1A1A1",
+"I+ c #A0A0A0",
+"J+ c #9F9F9F",
+"K+ c #B9B9B9",
+"L+ c #565854",
+"M+ c #DDDEDC",
+"N+ c #989898",
+"O+ c #C5C5C5",
+"P+ c #949494",
+"Q+ c #C2C2C2",
+"R+ c #929292",
+"S+ c #C1C1C1",
+"T+ c #909090",
+"U+ c #BFBFBF",
+"V+ c #DCDDDA",
+"W+ c #C0C1BF",
+"X+ c #C1C2C0",
+"Y+ c #969696",
+"Z+ c #C0C0C0",
+"`+ c #8F8F8F",
+" @ c #C4C5C3",
+".@ c #C3C4C2",
+"+@ c #A9A9A9",
+"@@ c #939393",
+"#@ c #CCCDCB",
+"$@ c #525252",
+"%@ c #D4D5D3",
+"&@ c #C9C9C9",
+"*@ c #C7C7C7",
+"=@ c #BBBBBB",
+"-@ c #515151",
+";@ c #D7D8D6",
+">@ c #505050",
+",@ c #D3D4D2",
+" ",
+" . + @ # $ ",
+" % & * = - ; > , ' ",
+" % ) ! ~ { ] ^ / ( _ : ",
+" < [ } | 1 2 3 4 5 6 7 8 # ",
+" 9 0 a b c d e f g 3 h i ",
+" < j k 3 l m n o p ",
+" q r s t u v w x y ",
+" z A B B B B C D E F G H I J B K K K L M ",
+" M N O P Q Q O R c ~ S T U V W X Y Z ` ... ",
+" z Y +.y y y y y : @.#.$.%.&.y y y y y *.=.M ",
+" -.;.>.,.'.).t w 6 !.~.{.].^./.( / (._.:.<.[. ",
+" M }.|.1.2.3.4.5.#.].6.7.8.9.0.a.b.c.d.e.f.g.h.M ",
+" i.j.k.l.m.m.n.o.p.q.r.s.t.u.u.v.w.x.y.z.A.A.B.C. ",
+" z D.E.k.>.>.l.F.G.H.U I.u.u.u.J.K.L.M.z.N.O.P.l.Q. ",
+" R.E.l.>.l.g.1.S.T.U.V.W.a.u.X.Y.Z.`.P.A.O.O.O.O.P.M ",
+" +Y z.m.1.z.A..+.+++@+#+$+%+&+*+=+-+;+>+,+.+=.,+>.'+ ",
+" M P.m.z.2.}..+)+)+,+;+!+~+{+]+^+/+(+_+:+<+-+P.N.>+N.D.z ",
+" [+Y z.A.f.}.}.f.,+;+}+|+1+2+3+4+5+6+7+_+<+P.A.<+-+8+1.9+ ",
+" 0+a+P.f.f..+O.g.=.f.b+c+|+d+y d+7+_+-+f.O.>+}+b+>+P.S.e+ ",
+" M B.1.f+g+f+f+>+)+.+A.z.z.N.O.h+A.N.A.f.-+}+b+;+8+g.X O.8+i+ ",
+" M X z.g+j+k+l+.+z.N.A.P.f..+,+,+,+)+.+f.f.P.P.P.f..+f.)+m+R. ",
+" M E.1.g+n+o+p+P.}.=.S.S.S.z.z.N.N.O.O.O.A.P.f.f..+.+)+)+-+M ",
+" M B.q+f+n+o+r+s+t+u+v+w+N x+y+z+A+B+C+D+E+F+G+Q.H+I+J+J+K+M ",
+"f+f+f+L+r+M+o+p+f+f+f+f+B+z+y+x+A+B+N+O+-.h.P+Q+R+S+T+U+J+q+M ",
+"f+V+n+M+n+n+W+W+W+W+X+f+B+A+y+y+A+B+N+O+Y+h.P+Q+ +Z+`+U+J+t+M ",
+"f+j+ @.@.@.@.@.@.@.@.@f+B+A+y+z+B++@N+O+Y+h.@@S+ +Z+`+U+J+v+M ",
+"f+f+f+f+f+#@#@l+f+f+f+f+y+B+z+z+B++@-.6+..h.@@S+T+U+`+U+I+x+M ",
+" $@O+k.f+%@%@l+)+f.)+8+;+b+<+c+&@*@6+Q+U+D.=@K+0+t+v+w+N ..-@ ",
+" -@M f+;@;@L+M M M M M M M M M M M M M M M M M M M M M >@ ",
+" f+,@,@g+ ",
+" L+g+g+L+ "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-install.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-install.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-install.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,318 @@
+/* XPM */
+static const char * pkg_install_xpm[] = {
+"32 32 283 2",
+" c None",
+". c #1F4B8A",
+"+ c #214C89",
+"@ c #214C8A",
+"# c #214D8A",
+"$ c #204A88",
+"% c #204B88",
+"& c #2B558F",
+"* c #5B80AF",
+"= c #7998C0",
+"- c #89A6C9",
+"; c #85A2C6",
+"> c #698AB5",
+", c #355D95",
+"' c #1F4C89",
+") c #5377A7",
+"! c #8AA5CA",
+"~ c #8BA7CB",
+"{ c #90ABCE",
+"] c #93ADCE",
+"^ c #96AFD0",
+"/ c #98B1D1",
+"( c #99B2D1",
+"_ c #6C8CB6",
+": c #234E89",
+"< c #1F4987",
+"[ c #5B7CAA",
+"} c #5B7CAB",
+"| c #41669C",
+"1 c #446BA0",
+"2 c #6283B2",
+"3 c #90ABCD",
+"4 c #93ADCF",
+"5 c #8CA7CC",
+"6 c #8AA6CB",
+"7 c #94ADCF",
+"8 c #7C99C1",
+"9 c #325A91",
+"0 c #2D558F",
+"a c #1F4C87",
+"b c #214C88",
+"c c #315891",
+"d c #86A2C7",
+"e c #8DA9CC",
+"f c #84A1C8",
+"g c #809FC6",
+"h c #6587B3",
+"i c #204B8B",
+"j c #224C88",
+"k c #325C93",
+"l c #7F9EC6",
+"m c #7B9BC4",
+"n c #7A9AC3",
+"o c #91ACCE",
+"p c #305991",
+"q c #1E4A86",
+"r c #204A8A",
+"s c #6A8BB7",
+"t c #83A1C8",
+"u c #7697C2",
+"v c #7395C1",
+"w c #86A3C9",
+"x c #6183B1",
+"y c #1F4A87",
+"z c #545454",
+"A c #595959",
+"B c #5C5C5C",
+"C c #4D5766",
+"D c #446798",
+"E c #89A5CB",
+"F c #7193BF",
+"G c #6D90BE",
+"H c #7797C2",
+"I c #7F9DC4",
+"J c #284E83",
+"K c #5B5B5B",
+"L c #585858",
+"M c #535353",
+"N c #AFAFAF",
+"O c #FCFCFC",
+"P c #FEFEFE",
+"Q c #FDFDFD",
+"R c #F0F2F5",
+"S c #6B8FBD",
+"T c #698DBC",
+"U c #6A8EBD",
+"V c #8EA9CC",
+"W c #2A528D",
+"X c #F6F6F6",
+"Y c #F5F5F5",
+"Z c #F4F4F4",
+"` c #F3F3F3",
+" . c #F2F2F2",
+".. c #959595",
+"+. c #AFBCCE",
+"@. c #8CA8CC",
+"#. c #658ABA",
+"$. c #6388B9",
+"%. c #6187B8",
+"&. c #95AECF",
+"*. c #6F89AD",
+"=. c #DEDEDE",
+"-. c #979797",
+";. c #F8F8F8",
+">. c #E5E5E5",
+",. c #9CADC3",
+"'. c #385E95",
+"). c #7A99C2",
+"!. c #8DA8CC",
+"~. c #5F85B8",
+"{. c #5D84B7",
+"]. c #5B82B6",
+"^. c #94AFCF",
+"/. c #97B0D0",
+"(. c #6182B0",
+"_. c #486A9B",
+":. c #D9DADB",
+"<. c #EDEDED",
+"[. c #7E7E7E",
+"}. c #DFDFDF",
+"|. c #ECECEC",
+"1. c #E0E0E0",
+"2. c #E3E3E3",
+"3. c #869BB9",
+"4. c #3A6198",
+"5. c #7B9AC3",
+"6. c #5A82B5",
+"7. c #5981B5",
+"8. c #5880B4",
+"9. c #4E79B0",
+"0. c #4370AB",
+"a. c #3969A7",
+"b. c #6C8FBE",
+"c. c #6889B6",
+"d. c #345A90",
+"e. c #CACDD2",
+"f. c #D7D7D7",
+"g. c #E2E2E2",
+"h. c #C3C3C3",
+"i. c #696969",
+"j. c #FAFAFA",
+"k. c #E1E1E1",
+"l. c #E4E4E4",
+"m. c #E7E7E7",
+"n. c #6C87AC",
+"o. c #42699C",
+"p. c #7B9BC3",
+"q. c #5881B5",
+"r. c #4A76AE",
+"s. c #416EAA",
+"t. c #3666A5",
+"u. c #3364A4",
+"v. c #5C83B6",
+"w. c #7493BE",
+"x. c #2D568F",
+"y. c #BBC3CE",
+"z. c #DCDCDC",
+"A. c #D9D9D9",
+"B. c #E9E9E9",
+"C. c #5F5F5F",
+"D. c #BDBDBD",
+"E. c #F0F0F0",
+"F. c #E0E1E2",
+"G. c #5A78A3",
+"H. c #426A9F",
+"I. c #3A69A7",
+"J. c #4D78B0",
+"K. c #7D9CC4",
+"L. c #315992",
+"M. c #A2B0C2",
+"N. c #DBDBDB",
+"O. c #DADADA",
+"P. c #D8D8D8",
+"Q. c #A2A2A2",
+"R. c #555555",
+"S. c #DDDDDD",
+"T. c #D8D9DA",
+"U. c #486A9A",
+"V. c #476EA2",
+"W. c #6F92BF",
+"X. c #416FAA",
+"Y. c #82A0C7",
+"Z. c #3C6298",
+"`. c #7E93B1",
+" + c #919191",
+".+ c #D6D6D6",
+"++ c #CCCED2",
+"@+ c #395E93",
+"#+ c #557AAC",
+"$+ c #7092BF",
+"%+ c #3D6CA9",
+"&+ c #7E9DC6",
+"*+ c #4A70A2",
+"=+ c #58769F",
+"-+ c #D0D0D0",
+";+ c #D1D1D1",
+">+ c #D2D2D2",
+",+ c #D4D4D4",
+"'+ c #7F7F7F",
+")+ c #D5D5D5",
+"!+ c #BABFC6",
+"~+ c #2F578E",
+"{+ c #5E82B1",
+"]+ c #89A5CA",
+"^+ c #597CAD",
+"/+ c #3C6093",
+"(+ c #C1C3C5",
+"_+ c #CACACA",
+":+ c #CCCCCC",
+"<+ c #CDCDCD",
+"[+ c #676767",
+"}+ c #CECECE",
+"|+ c #C8C8C8",
+"1+ c #AEB4BD",
+"2+ c #2B538C",
+"3+ c #4D72A6",
+"4+ c #2B548D",
+"5+ c #B0B5BB",
+"6+ c #C4C4C4",
+"7+ c #C6C6C6",
+"8+ c #D3D3D3",
+"9+ c #626262",
+"0+ c #B6B6B6",
+"a+ c #EBEBEB",
+"b+ c #CFCFCF",
+"c+ c #CBCBCB",
+"d+ c #A2ABB8",
+"e+ c #9D9D9D",
+"f+ c #F7F7F7",
+"g+ c #CDD0D5",
+"h+ c #575757",
+"i+ c #E8E8E8",
+"j+ c #BABABA",
+"k+ c #B9B9B9",
+"l+ c #B8B8B8",
+"m+ c #B7B7B7",
+"n+ c #B5B5B5",
+"o+ c #B4B4B4",
+"p+ c #B3B3B3",
+"q+ c #B2B2B2",
+"r+ c #B1B1B1",
+"s+ c #AEAEAE",
+"t+ c #ADADAD",
+"u+ c #ACACAC",
+"v+ c #ABABAB",
+"w+ c #AAAAAA",
+"x+ c #A8A8A8",
+"y+ c #A7A7A7",
+"z+ c #A6A6A6",
+"A+ c #A5A5A5",
+"B+ c #A4A4A4",
+"C+ c #A1A1A1",
+"D+ c #A0A0A0",
+"E+ c #9F9F9F",
+"F+ c #EAEAEA",
+"G+ c #848484",
+"H+ c #8A8A8A",
+"I+ c #929292",
+"J+ c #999999",
+"K+ c #9E9E9E",
+"L+ c #A3A3A3",
+"M+ c #989898",
+"N+ c #C5C5C5",
+"O+ c #949494",
+"P+ c #C2C2C2",
+"Q+ c #C1C1C1",
+"R+ c #909090",
+"S+ c #BFBFBF",
+"T+ c #878787",
+"U+ c #969696",
+"V+ c #C0C0C0",
+"W+ c #8F8F8F",
+"X+ c #8E8E8E",
+"Y+ c #8C8C8C",
+"Z+ c #A9A9A9",
+"`+ c #939393",
+" @ c #B0B0B0",
+".@ c #525252",
+"+@ c #C9C9C9",
+"@@ c #C7C7C7",
+"#@ c #BBBBBB",
+"$@ c #515151",
+"%@ c #505050",
+" ",
+" . + @ # $ ",
+" % & * = - ; > , ' ",
+" % ) ! ~ { ] ^ / ( _ : ",
+" < [ } | 1 2 3 4 5 6 7 8 # ",
+" 9 0 a b c d e f g 3 h i ",
+" < j k 3 l m n o p ",
+" q r s t u v w x y ",
+" z A B B B B C D E F G H I J B K K K L M ",
+" M N O P Q Q O R c ~ S T U V W X Y Z ` ... ",
+" z Y +.y y y y y : @.#.$.%.&.y y y y y *.=.M ",
+" -.;.>.,.'.).t w 6 !.~.{.].^./.( / (._.:.<.[. ",
+" M }.|.1.2.3.4.5.#.].6.7.8.9.0.a.b.c.d.e.f.g.h.M ",
+" i.j.k.l.m.m.n.o.p.q.r.s.t.u.u.v.w.x.y.z.A.A.B.C. ",
+" z D.E.k.>.>.l.F.G.H.U I.u.u.u.J.K.L.M.z.N.O.P.l.Q. ",
+" R.E.l.>.l.g.1.S.T.U.V.W.a.u.X.Y.Z.`.P.A.O.O.O.O.P.M ",
+" +Y z.m.1.z.A..+.+++@+#+$+%+&+*+=+-+;+>+,+.+=.,+>.'+ ",
+" M P.m.z.2.}..+)+)+,+;+!+~+{+]+^+/+(+_+:+<+-+P.N.>+N.D.z ",
+" [+Y z.A.f.}.}.f.,+;+}+|+1+2+3+4+5+6+7+_+<+P.A.<+-+8+1.9+ ",
+" 0+a+S.O.P..+O.g.=.f.b+c+|+d+y d+7+_+-+f.O.>+}+b+>+P.S.e+ ",
+" M B.k.f+m.O.A..+)+.+A.z.z.N.O.g+A.N.A.f.-+}+b+;+8+g.X O.8+h+ ",
+" M X z.S.N.z.z.z.z.N.A.P.f..+,+,+,+)+.+f.f.P.P.P.f..+f.)+i+R. ",
+" M E.1.k.k.1.1.}.}.=.S.S.S.z.z.N.N.O.O.O.A.P.f.f..+.+)+)+-+M ",
+" M |.j+j+k+l+m+n+o+p+q+r+N s+t+u+v+w+x+y+z+A+B+Q.C+D+E+E+k+M ",
+" M F+j+j+G+H+I+J+K+L+y+w+u+t+s+v+w+M+N+-.h.O+P+I+Q+R+S+E+m+M ",
+" M B.j+k+T+H+I+J+K+L+y+w+v+t+t+v+w+M+N+U+h.O+P+ +V+W+S+E+o+M ",
+" M m.j+k+X+Y+I+J+K+L+y+w+v+t+u+w+Z+M+N+U+h.`+Q+ +V+W+S+E+q+M ",
+" M l.j+l+l+n+k+p+ @N u+t+w+u+u+w+Z+-.6+..h.`+Q+R+S+W+S+D+s+M ",
+" .(a)N+k.1.=.z.N.A.f.)+8+;+b+<+c++@@@6+P+S+D.#@k+0+o+q+r+N ..$@ ",
+" $@M M M M M M M M M M M M M M M M M M M M M M M M M M %@ ",
+" ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-installed-locked.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-installed-locked.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-installed-locked.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,595 @@
+/* XPM */
+static const char * pkg_installed_locked_xpm[] = {
+"32 32 560 2",
+" c None",
+". c #949594",
+"+ c #909090",
+"@ c #8F8F8F",
+"# c #8D8D8D",
+"$ c #8B8B8B",
+"% c #898989",
+"& c #878787",
+"* c #868686",
+"= c #848484",
+"- c #828282",
+"; c #808080",
+"> c #7E7E7E",
+", c #7D7D7D",
+"' c #7B7B7B",
+") c #797979",
+"! c #777777",
+"~ c #7C7C7C",
+"{ c #959595",
+"] c #F1F2EF",
+"^ c #F5F6F3",
+"/ c #F4F5F3",
+"( c #F4F5F2",
+"_ c #F4F4F2",
+": c #F3F4F2",
+"< c #F3F4F1",
+"[ c #F2F4F1",
+"} c #F2F3F1",
+"| c #EDEEEB",
+"1 c #A2A2A2",
+"2 c #F2F3F0",
+"3 c #B9BBC8",
+"4 c #3E3F8E",
+"5 c #545592",
+"6 c #535491",
+"7 c #525290",
+"8 c #515190",
+"9 c #52528F",
+"0 c #51518F",
+"a c #50508F",
+"b c #51518E",
+"c c #53548D",
+"d c #52538D",
+"e c #52528B",
+"f c #51518B",
+"g c #53538D",
+"h c #55568E",
+"i c #54548E",
+"j c #55558E",
+"k c #54548D",
+"l c #535494",
+"m c #D4D7D0",
+"n c #EEF0ED",
+"o c #858685",
+"p c #AAAAA9",
+"q c #F0F2EE",
+"r c #A7AAC0",
+"s c #6A6A91",
+"t c #7E7E96",
+"u c #7D7D95",
+"v c #7C7C94",
+"w c #7A7A93",
+"x c #797992",
+"y c #777790",
+"z c #767690",
+"A c #75758F",
+"B c #74748D",
+"C c #73738D",
+"D c #71718B",
+"E c #70708B",
+"F c #6F6F8A",
+"G c #6D6D88",
+"H c #6B6B86",
+"I c #6A6A85",
+"J c #696985",
+"K c #494A8B",
+"L c #A4A5A2",
+"M c #CFD1CF",
+"N c #8D8E8D",
+"O c #AFB0AF",
+"P c #EFF0ED",
+"Q c #9697B8",
+"R c #67678C",
+"S c #6E6E89",
+"T c #686884",
+"U c #676783",
+"V c #666683",
+"W c #656582",
+"X c #646482",
+"Y c #636380",
+"Z c #626280",
+"` c #454688",
+" . c #D3D6CF",
+".. c #EAECE8",
+"+. c #959695",
+"@. c #B8B8B7",
+"#. c #EEEFEB",
+"$. c #8284AD",
+"%. c #646488",
+"&. c #6A6A86",
+"*. c #676784",
+"=. c #646481",
+"-. c #616180",
+";. c #61617F",
+">. c #5F5F7F",
+",. c #5F5F7E",
+"'. c #535375",
+"). c #3F4084",
+"!. c #B2B4B0",
+"~. c #B7B8B7",
+"{. c #9B9C9B",
+"]. c #BFBFBE",
+"^. c #ECEDE9",
+"/. c #7173A4",
+"(. c #646486",
+"_. c #696986",
+":. c #676785",
+"<. c #666684",
+"[. c #656583",
+"}. c #646483",
+"|. c #636381",
+"1. c #626281",
+"2. c #616181",
+"3. c #606080",
+"4. c #60607F",
+"5. c #5E5E7E",
+"6. c #5B5B7D",
+"7. c #49496E",
+"8. c #36365F",
+"9. c #292954",
+"0. c #242450",
+"a. c #373880",
+"b. c #D2D5CE",
+"c. c #E5E7E3",
+"d. c #A4A5A3",
+"e. c #C5C5C3",
+"f. c #EAECE7",
+"g. c #61639D",
+"h. c #5F5F80",
+"i. c #5D5D7F",
+"j. c #5C5C7E",
+"k. c #565679",
+"l. c #3E3E66",
+"m. c #2A2A56",
+"n. c #272754",
+"o. c #282855",
+"p. c #34357E",
+"q. c #B8BBB6",
+"r. c #ACADAB",
+"s. c #CACBC9",
+"t. c #E8EAE5",
+"u. c #575998",
+"v. c #606081",
+"w. c #5E5E80",
+"x. c #5C5C7F",
+"y. c #5B5B7E",
+"z. c #5A5A7E",
+"A. c #5A5A7D",
+"B. c #58587C",
+"C. c #545479",
+"D. c #3F3F69",
+"E. c #2C2C59",
+"F. c #2A2A58",
+"G. c #2B2B59",
+"H. c #2B2B5A",
+"I. c #2C2C5A",
+"J. c #2C2C5B",
+"K. c #30317C",
+"L. c #D0D4CD",
+"M. c #E0E2DD",
+"N. c #B0B1AF",
+"O. c #8C8C8C",
+"P. c #CFD0CD",
+"Q. c #E7E9E4",
+"R. c #535595",
+"S. c #5B5B7F",
+"T. c #59597E",
+"U. c #59597D",
+"V. c #58587D",
+"W. c #57577C",
+"X. c #55557C",
+"Y. c #474770",
+"Z. c #31315F",
+"`. c #2D2D5C",
+" + c #2E2E5D",
+".+ c #2F2F5E",
+"++ c #2F2F5F",
+"@+ c #30305F",
+"#+ c #303060",
+"$+ c #2D2D7B",
+"%+ c #BFC1BC",
+"&+ c #A4A4A3",
+"*+ c #B6B7B5",
+"=+ c #5D5D5D",
+"-+ c #8E8E8E",
+";+ c #D3D5D2",
+">+ c #E5E7E2",
+",+ c #525393",
+"'+ c #58587F",
+")+ c #58587E",
+"!+ c #57577D",
+"~+ c #56567D",
+"{+ c #54547C",
+"]+ c #53537B",
+"^+ c #4D4D76",
+"/+ c #393967",
+"(+ c #313160",
+"_+ c #313161",
+":+ c #323262",
+"<+ c #333363",
+"[+ c #333364",
+"}+ c #343465",
+"|+ c #2E2E7A",
+"1+ c #C5C9C7",
+"2+ c #DBDDD8",
+"3+ c #BBBCB9",
+"4+ c #5E5E5E",
+"5+ c #8E8E8D",
+"6+ c #D8D8D6",
+"7+ c #E3E6E0",
+"8+ c #505192",
+"9+ c #54547D",
+"0+ c #52527B",
+"a+ c #4F4F79",
+"b+ c #41416E",
+"c+ c #353565",
+"d+ c #353566",
+"e+ c #353567",
+"f+ c #363667",
+"g+ c #363668",
+"h+ c #373768",
+"i+ c #373769",
+"j+ c #383869",
+"k+ c #38386A",
+"l+ c #303078",
+"m+ c #B8BCC3",
+"n+ c #D8DBD5",
+"o+ c #C0C1BE",
+"p+ c #606060",
+"q+ c #DCDDDA",
+"r+ c #E1E4DE",
+"s+ c #4C4D90",
+"t+ c #51517C",
+"u+ c #50507C",
+"v+ c #50507B",
+"w+ c #4E4E7B",
+"x+ c #464674",
+"y+ c #39396B",
+"z+ c #3A3A6C",
+"A+ c #3A3A6D",
+"B+ c #3B3B6D",
+"C+ c #3B3B6E",
+"D+ c #3C3C6F",
+"E+ c #3C3C70",
+"F+ c #313179",
+"G+ c #ADB0BD",
+"H+ c #D5D9D3",
+"I+ c #C4C6C2",
+"J+ c #8A8A89",
+"K+ c #DFE0DE",
+"L+ c #DFE1DC",
+"M+ c #48498E",
+"N+ c #4B4B7A",
+"O+ c #444474",
+"P+ c #3C3C6E",
+"Q+ c #3D3D70",
+"R+ c #3D3D71",
+"S+ c #3E3E71",
+"T+ c #3E3E72",
+"U+ c #3F3F73",
+"V+ c #404074",
+"W+ c #404075",
+"X+ c #323277",
+"Y+ c #A0A3B9",
+"Z+ c #D4D6D0",
+"`+ c #C8CAC7",
+" @ c #5E5E5C",
+".@ c #E3E3E1",
+"+@ c #DCE0D9",
+"@@ c #41418B",
+"#@ c #404072",
+"$@ c #414175",
+"%@ c #414176",
+"&@ c #424276",
+"*@ c #424277",
+"=@ c #434378",
+"-@ c #434379",
+";@ c #444479",
+">@ c #44447A",
+",@ c #45457A",
+"'@ c #36367B",
+")@ c #9193B1",
+"!@ c #D1D5CF",
+"~@ c #CCCECB",
+"{@ c #585958",
+"]@ c #848584",
+"^@ c #E5E6E3",
+"/@ c #DBDED6",
+"(@ c #3C3C88",
+"_@ c #45457B",
+":@ c #46467C",
+"<@ c #47477D",
+"[@ c #47477E",
+"}@ c #48487E",
+"|@ c #48487F",
+"1@ c #49497F",
+"2@ c #3D3D7E",
+"3@ c #8183AA",
+"4@ c #CFD2CC",
+"5@ c #D1D2CF",
+"6@ c #575756",
+"7@ c #808180",
+"8@ c #E7E9E6",
+"9@ c #D9DCD5",
+"0@ c #383987",
+"a@ c #46467D",
+"b@ c #494980",
+"c@ c #4A4A81",
+"d@ c #4B4B82",
+"e@ c #4B4B83",
+"f@ c #4C4C84",
+"g@ c #4D4D85",
+"h@ c #454583",
+"i@ c #7073A3",
+"j@ c #CDD1CB",
+"k@ c #D3D6D1",
+"l@ c #525252",
+"m@ c #EAEBE8",
+"n@ c #D7DAD2",
+"o@ c #202184",
+"p@ c #3B3C87",
+"q@ c #3B3C88",
+"r@ c #3B3B88",
+"s@ c #3B3C89",
+"t@ c #3C3C89",
+"u@ c #3C3C8A",
+"v@ c #3C3D8A",
+"w@ c #3D3D8A",
+"x@ c #373889",
+"y@ c #66689F",
+"z@ c #CBCFC8",
+"A@ c #D7D9D5",
+"B@ c #4D4D4D",
+"C@ c #787878",
+"D@ c #EAECE9",
+"E@ c #D1D4CE",
+"F@ c #CED2CA",
+"G@ c #CED1CA",
+"H@ c #CDD1C9",
+"I@ c #CDD0C9",
+"J@ c #CCD0C8",
+"K@ c #CCCFC8",
+"L@ c #CBCFC7",
+"M@ c #CBCEC7",
+"N@ c #CACEC6",
+"O@ c #AEB0AB",
+"P@ c #B3B6AF",
+"Q@ c #C9CCC5",
+"R@ c #C8CCC4",
+"S@ c #C8CBC4",
+"T@ c #C7CBC4",
+"U@ c #C7CAC3",
+"V@ c #C6CAC3",
+"W@ c #747672",
+"X@ c #343534",
+"Y@ c #2C2C2B",
+"Z@ c #2B2C2B",
+"`@ c #2F302F",
+" # c #A6A8A5",
+".# c #494949",
+"+# c #D4D6D2",
+"@# c #EBECE9",
+"## c #E9EBE7",
+"$# c #E8EAE6",
+"%# c #E7E9E5",
+"&# c #E6E8E5",
+"*# c #E6E8E4",
+"=# c #E4E6E2",
+"-# c #E3E6E1",
+";# c #E2E5E1",
+"># c #E2E4E0",
+",# c #E1E3DF",
+"'# c #D2D4D1",
+")# c #6F706E",
+"!# c #D2D2D2",
+"~# c #DBDBDB",
+"{# c #BCBCBC",
+"]# c #767676",
+"^# c #272727",
+"/# c #747474",
+"(# c #6E6E6E",
+"_# c #6C6C6C",
+":# c #6A6A6A",
+"<# c #686868",
+"[# c #676767",
+"}# c #656565",
+"|# c #636363",
+"1# c #616161",
+"2# c #5F5F5F",
+"3# c #5C5C5C",
+"4# c #5A5A5A",
+"5# c #585858",
+"6# c #565656",
+"7# c #555555",
+"8# c #535353",
+"9# c #515151",
+"0# c #313131",
+"a# c #838383",
+"b# c #BABABA",
+"c# c #383838",
+"d# c #1D1D1D",
+"e# c #4C4C4C",
+"f# c #B1B1B1",
+"g# c #4F504E",
+"h# c #838581",
+"i# c #ACAFA9",
+"j# c #ADB0AA",
+"k# c #8B8E89",
+"l# c #8D908C",
+"m# c #ABADAA",
+"n# c #A7A7A6",
+"o# c #363636",
+"p# c #C1C1C1",
+"q# c #0D0D0D",
+"r# c #2E2E2E",
+"s# c #AAAAAA",
+"t# c #000000",
+"u# c #525451",
+"v# c #9B9E9A",
+"w# c #AFB2AC",
+"x# c #B1B3AE",
+"y# c #AEB1AB",
+"z# c #A8AAA5",
+"A# c #2C2C2C",
+"B# c #BFBFBF",
+"C# c #141414",
+"D# c #A1A1A1",
+"E# c #A5A5A5",
+"F# c #A8A8A8",
+"G# c #171717",
+"H# c #C1C0C0",
+"I# c #595959",
+"J# c #595958",
+"K# c #585857",
+"L# c #575757",
+"M# c #515150",
+"N# c #505050",
+"O# c #14120F",
+"P# c #9B9794",
+"Q# c #201D1C",
+"R# c #0B0B07",
+"S# c #040302",
+"T# c #050403",
+"U# c #2F2921",
+"V# c #A8A39E",
+"W# c #1A130B",
+"X# c #DCE0D8",
+"Y# c #DFE3DB",
+"Z# c #DFE3DA",
+"`# c #E0E3DA",
+" $ c #E0E3DB",
+".$ c #E1E3DB",
+"+$ c #E0E4DB",
+"@$ c #E0E4DC",
+"#$ c #A59176",
+"$$ c #E0C4A0",
+"%$ c #DFC4A3",
+"&$ c #DABE9A",
+"*$ c #D6BA94",
+"=$ c #CDA676",
+"-$ c #815A2B",
+";$ c #949693",
+">$ c #9F9F9E",
+",$ c #9D9D9D",
+"'$ c #E2C5A1",
+")$ c #D8B58C",
+"!$ c #CA9F68",
+"~$ c #AC8758",
+"{$ c #A78252",
+"]$ c #A78253",
+"^$ c #A37B4B",
+"/$ c #BC8849",
+"($ c #AC712E",
+"_$ c #636463",
+":$ c #BBBDB8",
+"<$ c #9FA09F",
+"[$ c #9C9D9C",
+"}$ c #E3C6A2",
+"|$ c #D5AE7E",
+"1$ c #B08D5F",
+"2$ c #D5B284",
+"3$ c #CFAB7C",
+"4$ c #CFAC7B",
+"5$ c #CBA471",
+"6$ c #BC8746",
+"7$ c #AA6F2B",
+"8$ c #676867",
+"9$ c #BDC0BC",
+"0$ c #A7A9A6",
+"a$ c #AEAEAE",
+"b$ c #ACACAB",
+"c$ c #E1C4A0",
+"d$ c #D0A674",
+"e$ c #C79B64",
+"f$ c #AA8455",
+"g$ c #A47E4E",
+"h$ c #A07744",
+"i$ c #BA8442",
+"j$ c #A4A7A2",
+"k$ c #959991",
+"l$ c #7A7D77",
+"m$ c #A3A6A0",
+"n$ c #777874",
+"o$ c #858782",
+"p$ c #989B94",
+"q$ c #E1C29C",
+"r$ c #CEA470",
+"s$ c #AD8D64",
+"t$ c #D2B289",
+"u$ c #CDAC83",
+"v$ c #CEAD83",
+"w$ c #CCA77B",
+"x$ c #B8803E",
+"y$ c #AD7332",
+"z$ c #D4D9D1",
+"A$ c #E0E5DC",
+"B$ c #E1E5DE",
+"C$ c #E2E5DE",
+"D$ c #E1E6DD",
+"E$ c #E2E6DE",
+"F$ c #E1E6DF",
+"G$ c #E2E7DE",
+"H$ c #E2E7DD",
+"I$ c #E3E7DE",
+"J$ c #E3E8DE",
+"K$ c #E3E8DF",
+"L$ c #E0C29E",
+"M$ c #D4AC79",
+"N$ c #CDA66E",
+"O$ c #AF8D5E",
+"P$ c #AB8758",
+"Q$ c #AB8858",
+"R$ c #A8814C",
+"S$ c #B47E3E",
+"T$ c #575857",
+"U$ c #5A5B5A",
+"V$ c #595A59",
+"W$ c #555655",
+"X$ c #535453",
+"Y$ c #525352",
+"Z$ c #515251",
+"`$ c #525251",
+" % c #D0A874",
+".% c #C6965D",
+"+% c #BE8D50",
+"@% c #BA894B",
+"#% c #BD8C4E",
+"$% c #BC8A4C",
+"%% c #BA8647",
+"&% c #A47136",
+" . + @ @ @ @ @ @ @ @ @ @ # $ % & * = - ; > , ' ) ! ~ ",
+" { ] ^ ^ ^ ^ ^ ^ / / / / ( ( _ _ : : : < < < [ } | ) ",
+" 1 2 3 4 5 5 6 7 8 9 0 a b c d e f g h i j k l m n o ",
+" p q r s t u v w x y z A B C D E F G G H I J K L M N ",
+" O P Q R z A B C D E S G G H I T U V W X Y Z ` ...+. ",
+" @.#.$.%.S G G H &.J T *.V V =.=.Z -.;.>.,.'.).!.~.{. ",
+" ].^./.(._.:.*.<.[.}.|.1.2.3.4.>.5.6.7.8.9.0.a.b.c.d. ",
+" e.f.g.(.}.}.1.2.2.h.h.i.i.j.6.k.l.m.n.n.o.o.p.q.r.r. ",
+" s.t.u.2.v.h.w.x.x.y.z.A.B.C.D.E.F.G.G.H.I.J.K.L.M.N. ",
+" O.P.Q.R.x.S.S.T.U.V.W.W.X.Y.Z.`. + +.+.+++@+#+$+%+&+*+=+ ",
+" -+;+>+,+'+)+!+~+X.{+]+^+/+(+_+_+:+:+<+[+[+}+}+|+1+2+3+4+ ",
+" 5+6+7+8+9+{+{+0+0+a+b+c+}+d+d+e+f+g+h+i+j+k+k+l+m+n+o+p+ ",
+" # q+r+s+t+u+v+w+x+y+i+k+k+y+y+z+z+A+B+C+D+D+E+F+G+H+I+4+ ",
+" J+K+L+M+w+N+O+D+B+C+P+D+E+Q+R+S+T+T+U+U+V+V+W+X+Y+Z+`+ @ ",
+" & .@+@@@#@R+T+T+U+U+V+V+W+$@%@&@*@*@=@-@;@>@,@'@)@!@~@{@ ",
+" ]@^@/@(@%@&@*@*@=@=@;@;@>@_@_@:@:@<@<@[@}@|@1@2@3@4@5@6@ ",
+" 7@8@9@0@_@:@:@a@<@[@}@|@1@b@b@c@c@d@d@e@f@f@g@h@i@j@k@l@ ",
+" ~ m@n@o@p@q@r@r@q@s@t@t@t@s@s@t@u@v@v@v@w@v@v@x@y@z@A@B@ ",
+" C@D@E@F@G@H@I@I@J@K@L@M@N@O@P@Q@R@S@T@U@V@W@X@Y@Z@`@ #.# ",
+" C@+#@#@#..m@##$#$#%#&#*#c.>+=#-#;#>#,#'#)#' !#~#~#{#]#^# ",
+" /#(#_#:#<#[#}#|#1#2#4+3#4#5#6#7#8#9#0#a#b#c#d#d#e#f#a# ",
+" g#h#i#j#k#k#k#k#k#l#m#n#o#p#q# r#s#t# ",
+" u#v#w#x#w#y#j#j#y#y#j#z#A#B#C#D#E#F#E#G#H#t# ",
+" <#|#1#2#4+3#I#5#J#I#K#L#7#8#9#M#N#0#O#P#Q#R#S#S#T#U#V#W# ",
+" |#X#Y#Y#Z#Y#Y#`# $`# $.$+$+$+$@$@$t##$$$%$%$&$&$&$*$=$-$t#",
+" ;$>$,$,$,$,$,$,$,$,$,$,$,$,$,$,$,$t#'$)$!$~${${$]$^$/$($t#",
+" _$:$E#E#E#<$[$[$[$[$[$[$[$[$[$[$E#E#t#}$|$1$2$3$3$4$5$6$7$t#",
+" 8$9$s#s#s#0$a$a$a$a$a$a$a$a$a$b$&+a$t#c$d$e$f$g$g$g$h$i$($t#",
+" j$k$l$l$l$m$n$n$n$n$n$n$n$n$n$o$p$l$t#q$r$s$t$u$u$v$w$x$y$t#",
+" 2#z$@$@$A$A$B$C$D$E$D$F$G$G$H$G$I$J$K$t#L$M$N$O$P$P$Q$R$6$S$t#",
+" I#T$U$V$T$W$X$Y$Y$Y$Z$Z$Z$Z$`$`$`$`$`$t# %.%+%+%@%@%#%$%%%&%t#",
+" t#t#t#t#t#t#t#t#t#t# "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-installed-upgradable-locked.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-installed-upgradable-locked.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-installed-upgradable-locked.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,595 @@
+/* XPM */
+static const char * pkg_installed_upgradable_locked_xpm[] = {
+"32 32 560 2",
+" c None",
+". c #949594",
+"+ c #909090",
+"@ c #8F8F8F",
+"# c #8D8D8D",
+"$ c #8B8B8B",
+"% c #898989",
+"& c #878787",
+"* c #868686",
+"= c #848382",
+"- c #B76F2C",
+"; c #CB6913",
+"> c #CE5F05",
+", c #CE5C00",
+"' c #CD5F04",
+") c #C66512",
+"! c #986B47",
+"~ c #7C7C7C",
+"{ c #959595",
+"] c #F1F2EF",
+"^ c #F5F6F3",
+"/ c #F4F5F3",
+"( c #F4F5F2",
+"_ c #F4F4F2",
+": c #DFB994",
+"< c #D16911",
+"[ c #E0811C",
+"} c #F0A132",
+"| c #F7AE3B",
+"1 c #F8B13E",
+"2 c #F7AC3B",
+"3 c #F09F32",
+"4 c #DD7F1E",
+"5 c #C36110",
+"6 c #A2A2A2",
+"7 c #F2F3F0",
+"8 c #B9BBC8",
+"9 c #3E3F8E",
+"0 c #545592",
+"a c #535491",
+"b c #525290",
+"c c #515190",
+"d c #52528F",
+"e c #51518F",
+"f c #50508F",
+"g c #51518E",
+"h c #53548D",
+"i c #52538D",
+"j c #795659",
+"k c #CF6005",
+"l c #EE9C2F",
+"m c #F8AC3D",
+"n c #F79A38",
+"o c #F79537",
+"p c #F79938",
+"q c #F8A63B",
+"r c #E9972E",
+"s c #CC5D00",
+"t c #AAAAA9",
+"u c #F0F2EE",
+"v c #A7AAC0",
+"w c #6A6A91",
+"x c #7E7E96",
+"y c #7D7D95",
+"z c #7C7C94",
+"A c #7A7A93",
+"B c #797992",
+"C c #777790",
+"D c #767690",
+"E c #75758F",
+"F c #74748D",
+"G c #73738D",
+"H c #717087",
+"I c #CE660D",
+"J c #EE9C2E",
+"K c #F8A33B",
+"L c #FBD8B7",
+"M c #FFFFFF",
+"N c #FBD5B0",
+"O c #F89E39",
+"P c #E7952B",
+"Q c #CC5C00",
+"R c #AFB0AF",
+"S c #EFF0ED",
+"T c #9697B8",
+"U c #67678C",
+"V c #71718B",
+"W c #70708B",
+"X c #6E6E89",
+"Y c #6D6D88",
+"Z c #6B6B86",
+"` c #AE672B",
+" . c #E1811D",
+".. c #F8AB3C",
+"+. c #FBD5B2",
+"@. c #F8A43A",
+"#. c #DA7A14",
+"$. c #B8B8B7",
+"%. c #EEEFEB",
+"&. c #8284AD",
+"*. c #646488",
+"=. c #6A6A86",
+"-. c #696985",
+";. c #686884",
+">. c #676784",
+",. c #666683",
+"'. c #CA6510",
+"). c #F69130",
+"!. c #FAC796",
+"~. c #FBD4AE",
+"{. c #FAC898",
+"]. c #F79837",
+"^. c #E7962A",
+"/. c #BFBFBE",
+"(. c #ECEDE9",
+"_. c #7173A4",
+":. c #646486",
+"<. c #696986",
+"[. c #676785",
+"}. c #666684",
+"|. c #656583",
+"1. c #646483",
+"2. c #636381",
+"3. c #626281",
+"4. c #616181",
+"5. c #606080",
+"6. c #F7AB3B",
+"7. c #F69132",
+"8. c #F9B97B",
+"9. c #FBCEA3",
+"0. c #F8B778",
+"a. c #F78E2A",
+"b. c #F79333",
+"c. c #EFA033",
+"d. c #CD5B00",
+"e. c #C5C5C3",
+"f. c #EAECE7",
+"g. c #61639D",
+"h. c #5F5F80",
+"i. c #5D5D7F",
+"j. c #5C5C7E",
+"k. c #F8AD3D",
+"l. c #F79434",
+"m. c #F58416",
+"n. c #F6A352",
+"o. c #F9BD82",
+"p. c #F8A85B",
+"q. c #F57900",
+"r. c #F57A01",
+"s. c #F68517",
+"t. c #F7912E",
+"u. c #F1A235",
+"v. c #CACBC9",
+"w. c #E8EAE5",
+"x. c #575998",
+"y. c #606081",
+"z. c #5E5E80",
+"A. c #5C5C7F",
+"B. c #5B5B7E",
+"C. c #5A5A7E",
+"D. c #5A5A7D",
+"E. c #58587C",
+"F. c #545479",
+"G. c #CB5D02",
+"H. c #F6A531",
+"I. c #F78F29",
+"J. c #F68415",
+"K. c #F57A02",
+"L. c #EB9929",
+"M. c #8C8C8C",
+"N. c #CFD0CD",
+"O. c #E7E9E4",
+"P. c #535595",
+"Q. c #5B5B7F",
+"R. c #59597E",
+"S. c #59597D",
+"T. c #58587D",
+"U. c #57577C",
+"V. c #55557C",
+"W. c #474770",
+"X. c #31315F",
+"Y. c #BE5B0C",
+"Z. c #F0921D",
+"`. c #F57E04",
+" + c #F57D04",
+".+ c #E69426",
+"++ c #8E8E8E",
+"@+ c #D3D5D2",
+"#+ c #E5E7E2",
+"$+ c #525393",
+"%+ c #58587F",
+"&+ c #58587E",
+"*+ c #57577D",
+"=+ c #56567D",
+"-+ c #54547C",
+";+ c #53537B",
+">+ c #4D4D76",
+",+ c #393967",
+"'+ c #313160",
+")+ c #313161",
+"!+ c #744334",
+"~+ c #D87814",
+"{+ c #F79116",
+"]+ c #EC9222",
+"^+ c #D87712",
+"/+ c #8E8E8D",
+"(+ c #D8D8D6",
+"_+ c #E3E6E0",
+":+ c #505192",
+"<+ c #54547D",
+"[+ c #52527B",
+"}+ c #4F4F79",
+"|+ c #41416E",
+"1+ c #353565",
+"2+ c #343465",
+"3+ c #353566",
+"4+ c #353567",
+"5+ c #BA580D",
+"6+ c #EA9020",
+"7+ c #F6870D",
+"8+ c #F58A13",
+"9+ c #D88B26",
+"0+ c #DCDDDA",
+"a+ c #E1E4DE",
+"b+ c #4C4D90",
+"c+ c #51517C",
+"d+ c #50507C",
+"e+ c #50507B",
+"f+ c #4E4E7B",
+"g+ c #464674",
+"h+ c #39396B",
+"i+ c #373769",
+"j+ c #38386A",
+"k+ c #3A3A6C",
+"l+ c #544058",
+"m+ c #C65A04",
+"n+ c #E38E23",
+"o+ c #F79117",
+"p+ c #EF9425",
+"q+ c #DC9433",
+"r+ c #C65B05",
+"s+ c #8A8A89",
+"t+ c #DFE0DE",
+"u+ c #DFE1DC",
+"v+ c #48498E",
+"w+ c #4B4B7A",
+"x+ c #444474",
+"y+ c #3C3C6F",
+"z+ c #3B3B6D",
+"A+ c #3B3B6E",
+"B+ c #3C3C6E",
+"C+ c #3C3C70",
+"D+ c #3D3D70",
+"E+ c #3D3D71",
+"F+ c #3E3E71",
+"G+ c #3E3E72",
+"H+ c #533F55",
+"I+ c #AF5313",
+"J+ c #D17518",
+"K+ c #DD8C25",
+"L+ c #EC9727",
+"M+ c #F19927",
+"N+ c #E09029",
+"O+ c #DD912E",
+"P+ c #D0802B",
+"Q+ c #C66D25",
+"R+ c #765D47",
+"S+ c #E3E3E1",
+"T+ c #DCE0D9",
+"U+ c #41418B",
+"V+ c #404072",
+"W+ c #3F3F73",
+"X+ c #404074",
+"Y+ c #404075",
+"Z+ c #414175",
+"`+ c #414176",
+" @ c #424276",
+".@ c #424277",
+"+@ c #434378",
+"@@ c #6E433A",
+"#@ c #A04F19",
+"$@ c #C15706",
+"%@ c #CB5A00",
+"&@ c #BF5706",
+"*@ c #B05F24",
+"=@ c #B18762",
+"-@ c #CCCECB",
+";@ c #585958",
+">@ c #848584",
+",@ c #E5E6E3",
+"'@ c #DBDED6",
+")@ c #3C3C88",
+"!@ c #444479",
+"~@ c #44447A",
+"{@ c #45457B",
+"]@ c #46467C",
+"^@ c #47477D",
+"/@ c #47477E",
+"(@ c #48487E",
+"_@ c #48487F",
+":@ c #49497F",
+"<@ c #3D3D7E",
+"[@ c #8183AA",
+"}@ c #CFD2CC",
+"|@ c #D1D2CF",
+"1@ c #575756",
+"2@ c #808180",
+"3@ c #E7E9E6",
+"4@ c #D9DCD5",
+"5@ c #383987",
+"6@ c #46467D",
+"7@ c #494980",
+"8@ c #4A4A81",
+"9@ c #4B4B82",
+"0@ c #4B4B83",
+"a@ c #4C4C84",
+"b@ c #4D4D85",
+"c@ c #454583",
+"d@ c #7073A3",
+"e@ c #CDD1CB",
+"f@ c #D3D6D1",
+"g@ c #525252",
+"h@ c #EAEBE8",
+"i@ c #D7DAD2",
+"j@ c #202184",
+"k@ c #3B3C87",
+"l@ c #3B3C88",
+"m@ c #3B3B88",
+"n@ c #3B3C89",
+"o@ c #3C3C89",
+"p@ c #3C3C8A",
+"q@ c #3C3D8A",
+"r@ c #3D3D8A",
+"s@ c #373889",
+"t@ c #66689F",
+"u@ c #CBCFC8",
+"v@ c #D7D9D5",
+"w@ c #4D4D4D",
+"x@ c #787878",
+"y@ c #EAECE9",
+"z@ c #D1D4CE",
+"A@ c #CED2CA",
+"B@ c #CED1CA",
+"C@ c #CDD1C9",
+"D@ c #CDD0C9",
+"E@ c #CCD0C8",
+"F@ c #CCCFC8",
+"G@ c #CBCFC7",
+"H@ c #CBCEC7",
+"I@ c #CACEC6",
+"J@ c #AEB0AB",
+"K@ c #B3B6AF",
+"L@ c #C9CCC5",
+"M@ c #C8CCC4",
+"N@ c #C8CBC4",
+"O@ c #C7CBC4",
+"P@ c #C7CAC3",
+"Q@ c #C6CAC3",
+"R@ c #747672",
+"S@ c #343534",
+"T@ c #2C2C2B",
+"U@ c #2B2C2B",
+"V@ c #2F302F",
+"W@ c #A6A8A5",
+"X@ c #494949",
+"Y@ c #D4D6D2",
+"Z@ c #EBECE9",
+"`@ c #EAECE8",
+" # c #E9EBE7",
+".# c #E8EAE6",
+"+# c #E7E9E5",
+"@# c #E6E8E5",
+"## c #E6E8E4",
+"$# c #E5E7E3",
+"%# c #E4E6E2",
+"&# c #E3E6E1",
+"*# c #E2E5E1",
+"=# c #E2E4E0",
+"-# c #E1E3DF",
+";# c #D2D4D1",
+"># c #6F706E",
+",# c #7B7B7B",
+"'# c #D2D2D2",
+")# c #DBDBDB",
+"!# c #BCBCBC",
+"~# c #767676",
+"{# c #272727",
+"]# c #747474",
+"^# c #6E6E6E",
+"/# c #6C6C6C",
+"(# c #6A6A6A",
+"_# c #686868",
+":# c #676767",
+"<# c #656565",
+"[# c #636363",
+"}# c #616161",
+"|# c #5F5F5F",
+"1# c #5E5E5E",
+"2# c #5C5C5C",
+"3# c #5A5A5A",
+"4# c #585858",
+"5# c #565656",
+"6# c #555555",
+"7# c #535353",
+"8# c #515151",
+"9# c #313131",
+"0# c #838383",
+"a# c #BABABA",
+"b# c #383838",
+"c# c #1D1D1D",
+"d# c #4C4C4C",
+"e# c #B1B1B1",
+"f# c #4F504E",
+"g# c #838581",
+"h# c #ACAFA9",
+"i# c #ADB0AA",
+"j# c #8B8E89",
+"k# c #8D908C",
+"l# c #ABADAA",
+"m# c #A7A7A6",
+"n# c #363636",
+"o# c #C1C1C1",
+"p# c #0D0D0D",
+"q# c #2E2E2E",
+"r# c #AAAAAA",
+"s# c #000000",
+"t# c #525451",
+"u# c #9B9E9A",
+"v# c #AFB2AC",
+"w# c #B1B3AE",
+"x# c #AEB1AB",
+"y# c #A8AAA5",
+"z# c #2C2C2C",
+"A# c #BFBFBF",
+"B# c #141414",
+"C# c #A1A1A1",
+"D# c #A5A5A5",
+"E# c #A8A8A8",
+"F# c #171717",
+"G# c #C1C0C0",
+"H# c #595959",
+"I# c #595958",
+"J# c #585857",
+"K# c #575757",
+"L# c #515150",
+"M# c #505050",
+"N# c #14120F",
+"O# c #9B9794",
+"P# c #201D1C",
+"Q# c #0B0B07",
+"R# c #040302",
+"S# c #050403",
+"T# c #2F2921",
+"U# c #A8A39E",
+"V# c #1A130B",
+"W# c #DCE0D8",
+"X# c #DFE3DB",
+"Y# c #DFE3DA",
+"Z# c #E0E3DA",
+"`# c #E0E3DB",
+" $ c #E1E3DB",
+".$ c #E0E4DB",
+"+$ c #E0E4DC",
+"@$ c #A59176",
+"#$ c #E0C4A0",
+"$$ c #DFC4A3",
+"%$ c #DABE9A",
+"&$ c #D6BA94",
+"*$ c #CDA676",
+"=$ c #815A2B",
+"-$ c #949693",
+";$ c #9F9F9E",
+">$ c #9D9D9D",
+",$ c #E2C5A1",
+"'$ c #D8B58C",
+")$ c #CA9F68",
+"!$ c #AC8758",
+"~$ c #A78252",
+"{$ c #A78253",
+"]$ c #A37B4B",
+"^$ c #BC8849",
+"/$ c #AC712E",
+"($ c #636463",
+"_$ c #BBBDB8",
+":$ c #9FA09F",
+"<$ c #9C9D9C",
+"[$ c #E3C6A2",
+"}$ c #D5AE7E",
+"|$ c #B08D5F",
+"1$ c #D5B284",
+"2$ c #CFAB7C",
+"3$ c #CFAC7B",
+"4$ c #CBA471",
+"5$ c #BC8746",
+"6$ c #AA6F2B",
+"7$ c #676867",
+"8$ c #BDC0BC",
+"9$ c #A7A9A6",
+"0$ c #AEAEAE",
+"a$ c #ACACAB",
+"b$ c #A4A4A3",
+"c$ c #E1C4A0",
+"d$ c #D0A674",
+"e$ c #C79B64",
+"f$ c #AA8455",
+"g$ c #A47E4E",
+"h$ c #A07744",
+"i$ c #BA8442",
+"j$ c #A4A7A2",
+"k$ c #959991",
+"l$ c #7A7D77",
+"m$ c #A3A6A0",
+"n$ c #777874",
+"o$ c #858782",
+"p$ c #989B94",
+"q$ c #E1C29C",
+"r$ c #CEA470",
+"s$ c #AD8D64",
+"t$ c #D2B289",
+"u$ c #CDAC83",
+"v$ c #CEAD83",
+"w$ c #CCA77B",
+"x$ c #B8803E",
+"y$ c #AD7332",
+"z$ c #D4D9D1",
+"A$ c #E0E5DC",
+"B$ c #E1E5DE",
+"C$ c #E2E5DE",
+"D$ c #E1E6DD",
+"E$ c #E2E6DE",
+"F$ c #E1E6DF",
+"G$ c #E2E7DE",
+"H$ c #E2E7DD",
+"I$ c #E3E7DE",
+"J$ c #E3E8DE",
+"K$ c #E3E8DF",
+"L$ c #E0C29E",
+"M$ c #D4AC79",
+"N$ c #CDA66E",
+"O$ c #AF8D5E",
+"P$ c #AB8758",
+"Q$ c #AB8858",
+"R$ c #A8814C",
+"S$ c #B47E3E",
+"T$ c #575857",
+"U$ c #5A5B5A",
+"V$ c #595A59",
+"W$ c #555655",
+"X$ c #535453",
+"Y$ c #525352",
+"Z$ c #515251",
+"`$ c #525251",
+" % c #D0A874",
+".% c #C6965D",
+"+% c #BE8D50",
+"@% c #BA894B",
+"#% c #BD8C4E",
+"$% c #BC8A4C",
+"%% c #BA8647",
+"&% c #A47136",
+" . + @ @ @ @ @ @ @ @ @ @ # $ % & * = - ; > , ' ) ! ~ ",
+" { ] ^ ^ ^ ^ ^ ^ / / / / ( ( _ _ : < [ } | 1 2 3 4 5 ",
+" 6 7 8 9 0 0 a b c d e f g h i j k l m n o o o p q r s ",
+" t u v w x y z A B C D E F G H I J K o o L M N o o O P Q ",
+" R S T U D E F G V W X Y Y Z ` ...o o o L M +.o o o @.#. ",
+" $.%.&.*.X Y Y Z =.-.;.>.,.,.'.3 p o o ).!.~.{.o o o ].^., ",
+" /.(._.:.<.[.>.}.|.1.2.3.4.5.' 6.o o o 7.8.9.0.a.b.o o c.d.",
+" e.f.g.:.1.1.3.4.4.h.h.i.i.j., k.o o l.m.n.o.p.q.r.s.t.u., ",
+" v.w.x.4.y.h.z.A.A.B.C.D.E.F.G.H.I.J.K.q.q.q.q.q.q.q.q.L., ",
+" M.N.O.P.A.Q.Q.R.S.T.U.U.V.W.X.Y.Z.`.q.q.q.o.M 8.q.q.q. +.+, ",
+" ++(a)+#+$+%+&+*+=+V.-+;+>+,+'+)+!+~+{+q.q.q.o.M 8.q.q.q.]+^+ ",
+" /+(+_+:+<+-+-+[+[+}+|+1+2+3+3+4+5+6+7+q.q.q.q.q.q.q.8+9+, ",
+" # 0+a+b+c+d+e+f+g+h+i+j+j+h+h+k+l+m+n+o+ +q.q.q. +p+q+r+ ",
+" s+t+u+v+f+w+x+y+z+A+B+y+C+D+E+F+G+H+I+J+K+L+M+N+O+P+Q+R+ ",
+" & S+T+U+V+E+G+G+W+W+X+X+Y+Z+`+ @.@.@+@@@#@$@%@&@*@=@-@;@ ",
+" >@,@'@)@`+ @.@.@+@+@!@!@~@{@{@]@]@^@^@/@(@_@:@<@[@}@|@1@ ",
+" 2@3@4@5@{@]@]@6@^@/@(@_@:@7@7@8@8@9@9@0@a@a@b@c@d@e@f@g@ ",
+" ~ h@i@j@k@l@m@m@l@n@o@o@o@n@n@o@p@q@q@q@r@q@q@s@t@u@v@w@ ",
+" x@y@z@A@B@C@D@D@E@F@G@H@I@J@K@L@M@N@O@P@Q@R@S@T@U@V@W@X@ ",
+" x@Y@Z@Z@`@h@ #.#.#+#@###$##+%#&#*#=#-#;#>#,#'#)#)#!#~#{# ",
+" ]#^#/#(#_#:#<#[#}#|#1#2#3#4#5#6#7#8#9#0#a#b#c#c#d#e#0# ",
+" f#g#h#i#j#j#j#j#j#k#l#m#n#o#p# q#r#s# ",
+" t#u#v#w#v#x#i#i#x#x#i#y#z#A#B#C#D#E#D#F#G#s# ",
+" _#[#}#|#1#2#H#4#I#H#J#K#6#7#8#L#M#9#N#O#P#Q#R#R#S#T#U#V# ",
+" [#W#X#X#Y#X#X#Z#`#Z#`# $.$.$.$+$+$s#@$#$$$$$%$%$%$&$*$=$s#",
+" -$;$>$>$>$>$>$>$>$>$>$>$>$>$>$>$>$s#,$'$)$!$~$~${$]$^$/$s#",
+" ($_$D#D#D#:$<$<$<$<$<$<$<$<$<$<$D#D#s#[$}$|$1$2$2$3$4$5$6$s#",
+" 7$8$r#r#r#9$0$0$0$0$0$0$0$0$0$a$b$0$s#c$d$e$f$g$g$g$h$i$/$s#",
+" j$k$l$l$l$m$n$n$n$n$n$n$n$n$n$o$p$l$s#q$r$s$t$u$u$v$w$x$y$s#",
+" |#z$+$+$A$A$B$C$D$E$D$F$G$G$H$G$I$J$K$s#L$M$N$O$P$P$Q$R$5$S$s#",
+" H#T$U$V$T$W$X$Y$Y$Y$Z$Z$Z$Z$`$`$`$`$`$s# %.%+%+%@%@%#%$%%%&%s#",
+" s#s#s#s#s#s#s#s#s#s# "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-installed-upgradable.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-installed-upgradable.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-installed-upgradable.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,557 @@
+/* XPM */
+static const char * pkg_installed_upgradable_xpm[] = {
+"32 32 522 2",
+" c None",
+". c #949594",
+"+ c #909090",
+"@ c #8F8F8F",
+"# c #8D8D8D",
+"$ c #8B8B8B",
+"% c #898989",
+"& c #878787",
+"* c #868686",
+"= c #848382",
+"- c #B76F2C",
+"; c #CB6913",
+"> c #CE5F05",
+", c #CE5C00",
+"' c #CD5F04",
+") c #C66512",
+"! c #986B47",
+"~ c #7C7C7C",
+"{ c #959595",
+"] c #F1F2EF",
+"^ c #F5F6F3",
+"/ c #F4F5F3",
+"( c #F4F5F2",
+"_ c #F4F4F2",
+": c #DFB994",
+"< c #D16911",
+"[ c #E0811C",
+"} c #F0A132",
+"| c #F7AE3B",
+"1 c #F8B13E",
+"2 c #F7AC3B",
+"3 c #F09F32",
+"4 c #DD7F1E",
+"5 c #C36110",
+"6 c #A2A2A2",
+"7 c #F2F3F0",
+"8 c #B9BBC8",
+"9 c #3E3F8E",
+"0 c #545592",
+"a c #535491",
+"b c #525290",
+"c c #515190",
+"d c #52528F",
+"e c #51518F",
+"f c #50508F",
+"g c #51518E",
+"h c #53548D",
+"i c #52538D",
+"j c #795659",
+"k c #CF6005",
+"l c #EE9C2F",
+"m c #F8AC3D",
+"n c #F79A38",
+"o c #F79537",
+"p c #F79938",
+"q c #F8A63B",
+"r c #E9972E",
+"s c #CC5D00",
+"t c #AAAAA9",
+"u c #F0F2EE",
+"v c #A7AAC0",
+"w c #6A6A91",
+"x c #7E7E96",
+"y c #7D7D95",
+"z c #7C7C94",
+"A c #7A7A93",
+"B c #797992",
+"C c #777790",
+"D c #767690",
+"E c #75758F",
+"F c #74748D",
+"G c #73738D",
+"H c #717087",
+"I c #CE660D",
+"J c #EE9C2E",
+"K c #F8A33B",
+"L c #FBD8B7",
+"M c #FFFFFF",
+"N c #FBD5B0",
+"O c #F89E39",
+"P c #E7952B",
+"Q c #CC5C00",
+"R c #AFB0AF",
+"S c #EFF0ED",
+"T c #9697B8",
+"U c #67678C",
+"V c #71718B",
+"W c #70708B",
+"X c #6E6E89",
+"Y c #6D6D88",
+"Z c #6B6B86",
+"` c #AE672B",
+" . c #E1811D",
+".. c #F8AB3C",
+"+. c #FBD5B2",
+"@. c #F8A43A",
+"#. c #DA7A14",
+"$. c #B8B8B7",
+"%. c #EEEFEB",
+"&. c #8284AD",
+"*. c #646488",
+"=. c #6A6A86",
+"-. c #696985",
+";. c #686884",
+">. c #676784",
+",. c #666683",
+"'. c #CA6510",
+"). c #F69130",
+"!. c #FAC796",
+"~. c #FBD4AE",
+"{. c #FAC898",
+"]. c #F79837",
+"^. c #E7962A",
+"/. c #BFBFBE",
+"(. c #ECEDE9",
+"_. c #7173A4",
+":. c #646486",
+"<. c #696986",
+"[. c #676785",
+"}. c #666684",
+"|. c #656583",
+"1. c #646483",
+"2. c #636381",
+"3. c #626281",
+"4. c #616181",
+"5. c #606080",
+"6. c #F7AB3B",
+"7. c #F69132",
+"8. c #F9B97B",
+"9. c #FBCEA3",
+"0. c #F8B778",
+"a. c #F78E2A",
+"b. c #F79333",
+"c. c #EFA033",
+"d. c #CD5B00",
+"e. c #C5C5C3",
+"f. c #EAECE7",
+"g. c #61639D",
+"h. c #5F5F80",
+"i. c #5D5D7F",
+"j. c #5C5C7E",
+"k. c #F8AD3D",
+"l. c #F79434",
+"m. c #F58416",
+"n. c #F6A352",
+"o. c #F9BD82",
+"p. c #F8A85B",
+"q. c #F57900",
+"r. c #F57A01",
+"s. c #F68517",
+"t. c #F7912E",
+"u. c #F1A235",
+"v. c #CACBC9",
+"w. c #E8EAE5",
+"x. c #575998",
+"y. c #606081",
+"z. c #5E5E80",
+"A. c #5C5C7F",
+"B. c #5B5B7E",
+"C. c #5A5A7E",
+"D. c #5A5A7D",
+"E. c #58587C",
+"F. c #545479",
+"G. c #CB5D02",
+"H. c #F6A531",
+"I. c #F78F29",
+"J. c #F68415",
+"K. c #F57A02",
+"L. c #EB9929",
+"M. c #8C8C8C",
+"N. c #CFD0CD",
+"O. c #E7E9E4",
+"P. c #535595",
+"Q. c #5B5B7F",
+"R. c #59597E",
+"S. c #59597D",
+"T. c #58587D",
+"U. c #57577C",
+"V. c #55557C",
+"W. c #474770",
+"X. c #31315F",
+"Y. c #BE5B0C",
+"Z. c #F0921D",
+"`. c #F57E04",
+" + c #F57D04",
+".+ c #E69426",
+"++ c #8E8E8E",
+"@+ c #D3D5D2",
+"#+ c #E5E7E2",
+"$+ c #525393",
+"%+ c #58587F",
+"&+ c #58587E",
+"*+ c #57577D",
+"=+ c #56567D",
+"-+ c #54547C",
+";+ c #53537B",
+">+ c #4D4D76",
+",+ c #393967",
+"'+ c #313160",
+")+ c #313161",
+"!+ c #744334",
+"~+ c #D87814",
+"{+ c #F79116",
+"]+ c #EC9222",
+"^+ c #D87712",
+"/+ c #8E8E8D",
+"(+ c #D8D8D6",
+"_+ c #E3E6E0",
+":+ c #505192",
+"<+ c #54547D",
+"[+ c #52527B",
+"}+ c #4F4F79",
+"|+ c #41416E",
+"1+ c #353565",
+"2+ c #343465",
+"3+ c #353566",
+"4+ c #353567",
+"5+ c #BA580D",
+"6+ c #EA9020",
+"7+ c #F6870D",
+"8+ c #F58A13",
+"9+ c #D88B26",
+"0+ c #DCDDDA",
+"a+ c #E1E4DE",
+"b+ c #4C4D90",
+"c+ c #51517C",
+"d+ c #50507C",
+"e+ c #50507B",
+"f+ c #4E4E7B",
+"g+ c #464674",
+"h+ c #39396B",
+"i+ c #373769",
+"j+ c #38386A",
+"k+ c #3A3A6C",
+"l+ c #544058",
+"m+ c #C65A04",
+"n+ c #E38E23",
+"o+ c #F79117",
+"p+ c #EF9425",
+"q+ c #DC9433",
+"r+ c #C65B05",
+"s+ c #8A8A89",
+"t+ c #DFE0DE",
+"u+ c #DFE1DC",
+"v+ c #48498E",
+"w+ c #4B4B7A",
+"x+ c #444474",
+"y+ c #3C3C6F",
+"z+ c #3B3B6D",
+"A+ c #3B3B6E",
+"B+ c #3C3C6E",
+"C+ c #3C3C70",
+"D+ c #3D3D70",
+"E+ c #3D3D71",
+"F+ c #3E3E71",
+"G+ c #3E3E72",
+"H+ c #533F55",
+"I+ c #AF5313",
+"J+ c #D17518",
+"K+ c #DD8C25",
+"L+ c #EC9727",
+"M+ c #F19927",
+"N+ c #E09029",
+"O+ c #DD912E",
+"P+ c #D0802B",
+"Q+ c #C66D25",
+"R+ c #765D47",
+"S+ c #E3E3E1",
+"T+ c #DCE0D9",
+"U+ c #41418B",
+"V+ c #404072",
+"W+ c #3F3F73",
+"X+ c #404074",
+"Y+ c #404075",
+"Z+ c #414175",
+"`+ c #414176",
+" @ c #424276",
+".@ c #424277",
+"+@ c #434378",
+"@@ c #6E433A",
+"#@ c #A04F19",
+"$@ c #C15706",
+"%@ c #CB5A00",
+"&@ c #BF5706",
+"*@ c #B05F24",
+"=@ c #B18762",
+"-@ c #CCCECB",
+";@ c #585958",
+">@ c #848584",
+",@ c #E5E6E3",
+"'@ c #DBDED6",
+")@ c #3C3C88",
+"!@ c #444479",
+"~@ c #44447A",
+"{@ c #45457B",
+"]@ c #46467C",
+"^@ c #47477D",
+"/@ c #47477E",
+"(@ c #48487E",
+"_@ c #48487F",
+":@ c #49497F",
+"<@ c #3D3D7E",
+"[@ c #8183AA",
+"}@ c #CFD2CC",
+"|@ c #D1D2CF",
+"1@ c #575756",
+"2@ c #808180",
+"3@ c #E7E9E6",
+"4@ c #D9DCD5",
+"5@ c #383987",
+"6@ c #46467D",
+"7@ c #494980",
+"8@ c #4A4A81",
+"9@ c #4B4B82",
+"0@ c #4B4B83",
+"a@ c #4C4C84",
+"b@ c #4D4D85",
+"c@ c #454583",
+"d@ c #7073A3",
+"e@ c #CDD1CB",
+"f@ c #D3D6D1",
+"g@ c #525252",
+"h@ c #EAEBE8",
+"i@ c #D7DAD2",
+"j@ c #202184",
+"k@ c #3B3C87",
+"l@ c #3B3C88",
+"m@ c #3B3B88",
+"n@ c #3B3C89",
+"o@ c #3C3C89",
+"p@ c #3C3C8A",
+"q@ c #3C3D8A",
+"r@ c #3D3D8A",
+"s@ c #373889",
+"t@ c #66689F",
+"u@ c #CBCFC8",
+"v@ c #D7D9D5",
+"w@ c #4D4D4D",
+"x@ c #787878",
+"y@ c #EAECE9",
+"z@ c #D1D4CE",
+"A@ c #CED2CA",
+"B@ c #CED1CA",
+"C@ c #CDD1C9",
+"D@ c #CDD0C9",
+"E@ c #CCD0C8",
+"F@ c #CCCFC8",
+"G@ c #CBCFC7",
+"H@ c #CBCEC7",
+"I@ c #CACEC6",
+"J@ c #AEB0AB",
+"K@ c #B3B6AF",
+"L@ c #C9CCC5",
+"M@ c #C8CCC4",
+"N@ c #C8CBC4",
+"O@ c #C7CBC4",
+"P@ c #C7CAC3",
+"Q@ c #C6CAC3",
+"R@ c #C6C9C3",
+"S@ c #C5C9C3",
+"T@ c #C5C8C2",
+"U@ c #C4C8C2",
+"V@ c #C5C9C2",
+"W@ c #D9DBD7",
+"X@ c #4A4A4A",
+"Y@ c #D4D6D2",
+"Z@ c #EBECE9",
+"`@ c #EAECE8",
+" # c #E9EBE7",
+".# c #E8EAE6",
+"+# c #E7E9E5",
+"@# c #E6E8E5",
+"## c #E6E8E4",
+"$# c #E5E7E3",
+"%# c #E4E6E2",
+"&# c #E3E6E1",
+"*# c #E2E5E1",
+"=# c #E2E4E0",
+"-# c #E1E3DF",
+";# c #E0E2DE",
+"># c #DFE2DD",
+",# c #DEE1DC",
+"'# c #DEE0DC",
+")# c #DDDFDB",
+"!# c #DCDEDA",
+"~# c #C0C2BE",
+"{# c #4D4D4C",
+"]# c #747474",
+"^# c #6E6E6E",
+"/# c #6C6C6C",
+"(# c #6A6A6A",
+"_# c #686868",
+":# c #676767",
+"<# c #656565",
+"[# c #636363",
+"}# c #616161",
+"|# c #5F5F5F",
+"1# c #5E5E5E",
+"2# c #5C5C5C",
+"3# c #5A5A5A",
+"4# c #585858",
+"5# c #565656",
+"6# c #555555",
+"7# c #535353",
+"8# c #515151",
+"9# c #4F4F4F",
+"0# c #4C4C4C",
+"a# c #484848",
+"b# c #4F504E",
+"c# c #838581",
+"d# c #ACAFA9",
+"e# c #ADB0AA",
+"f# c #8B8E89",
+"g# c #8D908C",
+"h# c #ABADAA",
+"i# c #A7A7A6",
+"j# c #A1A1A0",
+"k# c #7C7D7C",
+"l# c #525451",
+"m# c #9B9E9A",
+"n# c #AFB2AC",
+"o# c #B1B3AE",
+"p# c #AEB1AB",
+"q# c #A8AAA5",
+"r# c #9D9F9D",
+"s# c #939392",
+"t# c #A1A1A1",
+"u# c #A5A5A5",
+"v# c #A8A8A8",
+"w# c #595959",
+"x# c #595958",
+"y# c #585857",
+"z# c #575757",
+"A# c #515150",
+"B# c #505050",
+"C# c #4E4E4E",
+"D# c #AAAAAA",
+"E# c #A7A7A7",
+"F# c #ACACAC",
+"G# c #DCE0D8",
+"H# c #DFE3DB",
+"I# c #DFE3DA",
+"J# c #E0E3DA",
+"K# c #E0E3DB",
+"L# c #E1E3DB",
+"M# c #E0E4DB",
+"N# c #E0E4DC",
+"O# c #E1E4DB",
+"P# c #E1E4DC",
+"Q# c #DDE2D9",
+"R# c #545654",
+"S# c #949693",
+"T# c #9F9F9E",
+"U# c #9D9D9D",
+"V# c #9A9B9A",
+"W# c #DADDD5",
+"X# c #9B9B9A",
+"Y# c #9B9B9B",
+"Z# c #9A9B99",
+"`# c #959792",
+" $ c #636463",
+".$ c #BBBDB8",
+"+$ c #9FA09F",
+"@$ c #9C9D9C",
+"#$ c #C9CCC6",
+"$$ c #A0A19F",
+"%$ c #BCC0B9",
+"&$ c #5C5D5C",
+"*$ c #ABABAB",
+"=$ c #676867",
+"-$ c #BDC0BC",
+";$ c #A7A9A6",
+">$ c #AEAEAE",
+",$ c #ACACAB",
+"'$ c #A4A4A3",
+")$ c #B1B2B0",
+"!$ c #B4B6B1",
+"~$ c #AAABAA",
+"{$ c #BEC1BC",
+"]$ c #606160",
+"^$ c #A4A7A2",
+"/$ c #959991",
+"($ c #7A7D77",
+"_$ c #A3A6A0",
+":$ c #777874",
+"<$ c #858782",
+"[$ c #989B94",
+"}$ c #989B95",
+"|$ c #D2D4CD",
+"1$ c #868983",
+"2$ c #848882",
+"3$ c #9EA19A",
+"4$ c #A6A9A4",
+"5$ c #D4D9D1",
+"6$ c #E0E5DC",
+"7$ c #E1E5DE",
+"8$ c #E2E5DE",
+"9$ c #E1E6DD",
+"0$ c #E2E6DE",
+"a$ c #E1E6DF",
+"b$ c #E2E7DE",
+"c$ c #E2E7DD",
+"d$ c #E3E7DE",
+"e$ c #E3E8DE",
+"f$ c #E3E8DF",
+"g$ c #E4E8DF",
+"h$ c #E5E8E0",
+"i$ c #E4E9E0",
+"j$ c #E5E9E0",
+"k$ c #E5E9E1",
+"l$ c #DCE1D9",
+"m$ c #575857",
+"n$ c #5A5B5A",
+"o$ c #595A59",
+"p$ c #555655",
+"q$ c #535453",
+"r$ c #525352",
+"s$ c #515251",
+"t$ c #525251",
+"u$ c #535352",
+"v$ c #545453",
+"w$ c #4D4E4D",
+" . + @ @ @ @ @ @ @ @ @ @ # $ % & * = - ; > , ' ) ! ~ ",
+" { ] ^ ^ ^ ^ ^ ^ / / / / ( ( _ _ : < [ } | 1 2 3 4 5 ",
+" 6 7 8 9 0 0 a b c d e f g h i j k l m n o o o p q r s ",
+" t u v w x y z A B C D E F G H I J K o o L M N o o O P Q ",
+" R S T U D E F G V W X Y Y Z ` ...o o o L M +.o o o @.#. ",
+" $.%.&.*.X Y Y Z =.-.;.>.,.,.'.3 p o o ).!.~.{.o o o ].^., ",
+" /.(._.:.<.[.>.}.|.1.2.3.4.5.' 6.o o o 7.8.9.0.a.b.o o c.d.",
+" e.f.g.:.1.1.3.4.4.h.h.i.i.j., k.o o l.m.n.o.p.q.r.s.t.u., ",
+" v.w.x.4.y.h.z.A.A.B.C.D.E.F.G.H.I.J.K.q.q.q.q.q.q.q.q.L., ",
+" M.N.O.P.A.Q.Q.R.S.T.U.U.V.W.X.Y.Z.`.q.q.q.o.M 8.q.q.q. +.+, ",
+" ++(a)+#+$+%+&+*+=+V.-+;+>+,+'+)+!+~+{+q.q.q.o.M 8.q.q.q.]+^+ ",
+" /+(+_+:+<+-+-+[+[+}+|+1+2+3+3+4+5+6+7+q.q.q.q.q.q.q.8+9+, ",
+" # 0+a+b+c+d+e+f+g+h+i+j+j+h+h+k+l+m+n+o+ +q.q.q. +p+q+r+ ",
+" s+t+u+v+f+w+x+y+z+A+B+y+C+D+E+F+G+H+I+J+K+L+M+N+O+P+Q+R+ ",
+" & S+T+U+V+E+G+G+W+W+X+X+Y+Z+`+ @.@.@+@@@#@$@%@&@*@=@-@;@ ",
+" >@,@'@)@`+ @.@.@+@+@!@!@~@{@{@]@]@^@^@/@(@_@:@<@[@}@|@1@ ",
+" 2@3@4@5@{@]@]@6@^@/@(@_@:@7@7@8@8@9@9@0@a@a@b@c@d@e@f@g@ ",
+" ~ h@i@j@k@l@m@m@l@n@o@o@o@n@n@o@p@q@q@q@r@q@q@s@t@u@v@w@ ",
+" x@y@z@A@B@C@D@D@E@F@G@H@I@J@K@L@M@N@O@P@Q@R@S@T@U@V@W@X@ ",
+" x@Y@Z@Z@`@h@ #.#.#+#@###$##+%#&#*#=#-#-#;#>#,#'#)#!#~#{# ",
+" ]#^#/#(#_#:#<#[#}#|#1#2#3#4#5#6#7#8#9#w@0#X@a#a#a#w@ ",
+" b#c#d#e#f#f#f#f#f#g#h#i#j#k# ",
+" l#m#n#o#n#p#e#e#p#p#e#q#r#s#6 t#u#v#u# ",
+" _#[#}#|#1#2#w#4#x#w#y#z#6#7#8#A#B#9#w@0#0#0#w@C#<#D#E#F# ",
+" [#G#H#H#I#H#H#J#K#J#K#L#M#M#M#N#N#M#N#M#N#O#P#Q#R# v#D#",
+" S#T#U#U#U#U#U#U#U#U#U#U#U#U#U#U#U#U#V#W#X#Y#Y#Z#`# 6 v#",
+" $.$u#u#u#+$@$@$@$@$@$@$@$@$@$@$u#u#u#u##$$$u#u#u#%$&$E#*$ ",
+" =$-$D#D#D#;$>$>$>$>$>$>$>$>$>$,$'$>$>$>$)$!$~$D#D#{$]$ ",
+" ^$/$($($($_$:$:$:$:$:$:$:$:$:$<$[$($($($}$|$1$2$2$3$4$ ",
+" |#5$N#N#6$6$7$8$9$0$9$a$b$b$c$b$d$e$f$g$g$h$i$j$i$i$k$l$8# ",
+" w#m$n$o$m$p$q$r$r$r$s$s$s$s$t$t$t$t$t$t$t$t$u$u$u$u$v$B#w$ ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-installed.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-installed.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-installed.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,558 @@
+/* XPM */
+static const char * pkg_installed_xpm[] = {
+"32 32 523 2",
+" c None",
+". c #949594",
+"+ c #909090",
+"@ c #8F8F8F",
+"# c #8D8D8D",
+"$ c #8B8B8B",
+"% c #898989",
+"& c #878787",
+"* c #868686",
+"= c #848484",
+"- c #828282",
+"; c #808080",
+"> c #7E7E7E",
+", c #7D7D7D",
+"' c #7B7B7B",
+") c #797979",
+"! c #777777",
+"~ c #7C7C7C",
+"{ c #959595",
+"] c #F1F2EF",
+"^ c #F5F6F3",
+"/ c #F4F5F3",
+"( c #F4F5F2",
+"_ c #F4F4F2",
+": c #F3F4F2",
+"< c #F3F4F1",
+"[ c #F2F4F1",
+"} c #F2F3F1",
+"| c #EDEEEB",
+"1 c #A2A2A2",
+"2 c #F2F3F0",
+"3 c #B9BBC8",
+"4 c #3E3F8E",
+"5 c #545592",
+"6 c #535491",
+"7 c #525290",
+"8 c #515190",
+"9 c #52528F",
+"0 c #51518F",
+"a c #50508F",
+"b c #51518E",
+"c c #53548D",
+"d c #52538D",
+"e c #52528B",
+"f c #51518B",
+"g c #53538D",
+"h c #55568E",
+"i c #54548E",
+"j c #55558E",
+"k c #54548D",
+"l c #535494",
+"m c #D4D7D0",
+"n c #EEF0ED",
+"o c #858685",
+"p c #AAAAA9",
+"q c #F0F2EE",
+"r c #A7AAC0",
+"s c #6A6A91",
+"t c #7E7E96",
+"u c #7D7D95",
+"v c #7C7C94",
+"w c #7A7A93",
+"x c #797992",
+"y c #777790",
+"z c #767690",
+"A c #75758F",
+"B c #74748D",
+"C c #73738D",
+"D c #71718B",
+"E c #70708B",
+"F c #6F6F8A",
+"G c #6D6D88",
+"H c #6B6B86",
+"I c #6A6A85",
+"J c #696985",
+"K c #494A8B",
+"L c #A4A5A2",
+"M c #CFD1CF",
+"N c #8D8E8D",
+"O c #AFB0AF",
+"P c #EFF0ED",
+"Q c #9697B8",
+"R c #67678C",
+"S c #6E6E89",
+"T c #686884",
+"U c #676783",
+"V c #666683",
+"W c #656582",
+"X c #646482",
+"Y c #636380",
+"Z c #626280",
+"` c #454688",
+" . c #D3D6CF",
+".. c #EAECE8",
+"+. c #959695",
+"@. c #B8B8B7",
+"#. c #EEEFEB",
+"$. c #8284AD",
+"%. c #646488",
+"&. c #6A6A86",
+"*. c #676784",
+"=. c #646481",
+"-. c #616180",
+";. c #61617F",
+">. c #5F5F7F",
+",. c #5F5F7E",
+"'. c #535375",
+"). c #3F4084",
+"!. c #B2B4B0",
+"~. c #B7B8B7",
+"{. c #9B9C9B",
+"]. c #BFBFBE",
+"^. c #ECEDE9",
+"/. c #7173A4",
+"(. c #646486",
+"_. c #696986",
+":. c #676785",
+"<. c #666684",
+"[. c #656583",
+"}. c #646483",
+"|. c #636381",
+"1. c #626281",
+"2. c #616181",
+"3. c #606080",
+"4. c #60607F",
+"5. c #5E5E7E",
+"6. c #5B5B7D",
+"7. c #49496E",
+"8. c #36365F",
+"9. c #292954",
+"0. c #242450",
+"a. c #373880",
+"b. c #D2D5CE",
+"c. c #E5E7E3",
+"d. c #A4A5A3",
+"e. c #C5C5C3",
+"f. c #EAECE7",
+"g. c #61639D",
+"h. c #5F5F80",
+"i. c #5D5D7F",
+"j. c #5C5C7E",
+"k. c #565679",
+"l. c #3E3E66",
+"m. c #2A2A56",
+"n. c #272754",
+"o. c #282855",
+"p. c #34357E",
+"q. c #B8BBB6",
+"r. c #ACADAB",
+"s. c #CACBC9",
+"t. c #E8EAE5",
+"u. c #575998",
+"v. c #606081",
+"w. c #5E5E80",
+"x. c #5C5C7F",
+"y. c #5B5B7E",
+"z. c #5A5A7E",
+"A. c #5A5A7D",
+"B. c #58587C",
+"C. c #545479",
+"D. c #3F3F69",
+"E. c #2C2C59",
+"F. c #2A2A58",
+"G. c #2B2B59",
+"H. c #2B2B5A",
+"I. c #2C2C5A",
+"J. c #2C2C5B",
+"K. c #30317C",
+"L. c #D0D4CD",
+"M. c #E0E2DD",
+"N. c #B0B1AF",
+"O. c #8C8C8C",
+"P. c #CFD0CD",
+"Q. c #E7E9E4",
+"R. c #535595",
+"S. c #5B5B7F",
+"T. c #59597E",
+"U. c #59597D",
+"V. c #58587D",
+"W. c #57577C",
+"X. c #55557C",
+"Y. c #474770",
+"Z. c #31315F",
+"`. c #2D2D5C",
+" + c #2E2E5D",
+".+ c #2F2F5E",
+"++ c #2F2F5F",
+"@+ c #30305F",
+"#+ c #303060",
+"$+ c #2D2D7B",
+"%+ c #BFC1BC",
+"&+ c #A4A4A3",
+"*+ c #B6B7B5",
+"=+ c #5D5D5D",
+"-+ c #8E8E8E",
+";+ c #D3D5D2",
+">+ c #E5E7E2",
+",+ c #525393",
+"'+ c #58587F",
+")+ c #58587E",
+"!+ c #57577D",
+"~+ c #56567D",
+"{+ c #54547C",
+"]+ c #53537B",
+"^+ c #4D4D76",
+"/+ c #393967",
+"(+ c #313160",
+"_+ c #313161",
+":+ c #323262",
+"<+ c #333363",
+"[+ c #333364",
+"}+ c #343465",
+"|+ c #2E2E7A",
+"1+ c #C5C9C7",
+"2+ c #DBDDD8",
+"3+ c #BBBCB9",
+"4+ c #5E5E5E",
+"5+ c #8E8E8D",
+"6+ c #D8D8D6",
+"7+ c #E3E6E0",
+"8+ c #505192",
+"9+ c #54547D",
+"0+ c #52527B",
+"a+ c #4F4F79",
+"b+ c #41416E",
+"c+ c #353565",
+"d+ c #353566",
+"e+ c #353567",
+"f+ c #363667",
+"g+ c #363668",
+"h+ c #373768",
+"i+ c #373769",
+"j+ c #383869",
+"k+ c #38386A",
+"l+ c #303078",
+"m+ c #B8BCC3",
+"n+ c #D8DBD5",
+"o+ c #C0C1BE",
+"p+ c #606060",
+"q+ c #DCDDDA",
+"r+ c #E1E4DE",
+"s+ c #4C4D90",
+"t+ c #51517C",
+"u+ c #50507C",
+"v+ c #50507B",
+"w+ c #4E4E7B",
+"x+ c #464674",
+"y+ c #39396B",
+"z+ c #3A3A6C",
+"A+ c #3A3A6D",
+"B+ c #3B3B6D",
+"C+ c #3B3B6E",
+"D+ c #3C3C6F",
+"E+ c #3C3C70",
+"F+ c #313179",
+"G+ c #ADB0BD",
+"H+ c #D5D9D3",
+"I+ c #C4C6C2",
+"J+ c #8A8A89",
+"K+ c #DFE0DE",
+"L+ c #DFE1DC",
+"M+ c #48498E",
+"N+ c #4B4B7A",
+"O+ c #444474",
+"P+ c #3C3C6E",
+"Q+ c #3D3D70",
+"R+ c #3D3D71",
+"S+ c #3E3E71",
+"T+ c #3E3E72",
+"U+ c #3F3F73",
+"V+ c #404074",
+"W+ c #404075",
+"X+ c #323277",
+"Y+ c #A0A3B9",
+"Z+ c #D4D6D0",
+"`+ c #C8CAC7",
+" @ c #5E5E5C",
+".@ c #E3E3E1",
+"+@ c #DCE0D9",
+"@@ c #41418B",
+"#@ c #404072",
+"$@ c #414175",
+"%@ c #414176",
+"&@ c #424276",
+"*@ c #424277",
+"=@ c #434378",
+"-@ c #434379",
+";@ c #444479",
+">@ c #44447A",
+",@ c #45457A",
+"'@ c #36367B",
+")@ c #9193B1",
+"!@ c #D1D5CF",
+"~@ c #CCCECB",
+"{@ c #585958",
+"]@ c #848584",
+"^@ c #E5E6E3",
+"/@ c #DBDED6",
+"(@ c #3C3C88",
+"_@ c #45457B",
+":@ c #46467C",
+"<@ c #47477D",
+"[@ c #47477E",
+"}@ c #48487E",
+"|@ c #48487F",
+"1@ c #49497F",
+"2@ c #3D3D7E",
+"3@ c #8183AA",
+"4@ c #CFD2CC",
+"5@ c #D1D2CF",
+"6@ c #575756",
+"7@ c #808180",
+"8@ c #E7E9E6",
+"9@ c #D9DCD5",
+"0@ c #383987",
+"a@ c #46467D",
+"b@ c #494980",
+"c@ c #4A4A81",
+"d@ c #4B4B82",
+"e@ c #4B4B83",
+"f@ c #4C4C84",
+"g@ c #4D4D85",
+"h@ c #454583",
+"i@ c #7073A3",
+"j@ c #CDD1CB",
+"k@ c #D3D6D1",
+"l@ c #525252",
+"m@ c #EAEBE8",
+"n@ c #D7DAD2",
+"o@ c #202184",
+"p@ c #3B3C87",
+"q@ c #3B3C88",
+"r@ c #3B3B88",
+"s@ c #3B3C89",
+"t@ c #3C3C89",
+"u@ c #3C3C8A",
+"v@ c #3C3D8A",
+"w@ c #3D3D8A",
+"x@ c #373889",
+"y@ c #66689F",
+"z@ c #CBCFC8",
+"A@ c #D7D9D5",
+"B@ c #4D4D4D",
+"C@ c #787878",
+"D@ c #EAECE9",
+"E@ c #D1D4CE",
+"F@ c #CED2CA",
+"G@ c #CED1CA",
+"H@ c #CDD1C9",
+"I@ c #CDD0C9",
+"J@ c #CCD0C8",
+"K@ c #CCCFC8",
+"L@ c #CBCFC7",
+"M@ c #CBCEC7",
+"N@ c #CACEC6",
+"O@ c #AEB0AB",
+"P@ c #B3B6AF",
+"Q@ c #C9CCC5",
+"R@ c #C8CCC4",
+"S@ c #C8CBC4",
+"T@ c #C7CBC4",
+"U@ c #C7CAC3",
+"V@ c #C6CAC3",
+"W@ c #C6C9C3",
+"X@ c #C5C9C3",
+"Y@ c #C5C8C2",
+"Z@ c #C4C8C2",
+"`@ c #C5C9C2",
+" # c #D9DBD7",
+".# c #4A4A4A",
+"+# c #D4D6D2",
+"@# c #EBECE9",
+"## c #E9EBE7",
+"$# c #E8EAE6",
+"%# c #E7E9E5",
+"&# c #E6E8E5",
+"*# c #E6E8E4",
+"=# c #E4E6E2",
+"-# c #E3E6E1",
+";# c #E2E5E1",
+"># c #E2E4E0",
+",# c #E1E3DF",
+"'# c #E0E2DE",
+")# c #DFE2DD",
+"!# c #DEE1DC",
+"~# c #DEE0DC",
+"{# c #DDDFDB",
+"]# c #DCDEDA",
+"^# c #C0C2BE",
+"/# c #4D4D4C",
+"(# c #747474",
+"_# c #6E6E6E",
+":# c #6C6C6C",
+"<# c #6A6A6A",
+"[# c #686868",
+"}# c #676767",
+"|# c #656565",
+"1# c #636363",
+"2# c #616161",
+"3# c #5F5F5F",
+"4# c #5C5C5C",
+"5# c #5A5A5A",
+"6# c #585858",
+"7# c #565656",
+"8# c #555555",
+"9# c #535353",
+"0# c #515151",
+"a# c #4F4F4F",
+"b# c #4C4C4C",
+"c# c #484848",
+"d# c #4F504E",
+"e# c #838581",
+"f# c #ACAFA9",
+"g# c #ADB0AA",
+"h# c #8B8E89",
+"i# c #8D908C",
+"j# c #ABADAA",
+"k# c #A7A7A6",
+"l# c #A1A1A0",
+"m# c #7C7D7C",
+"n# c #525451",
+"o# c #9B9E9A",
+"p# c #AFB2AC",
+"q# c #B1B3AE",
+"r# c #AEB1AB",
+"s# c #A8AAA5",
+"t# c #9D9F9D",
+"u# c #939392",
+"v# c #A1A1A1",
+"w# c #A5A5A5",
+"x# c #A8A8A8",
+"y# c #595959",
+"z# c #595958",
+"A# c #585857",
+"B# c #575757",
+"C# c #515150",
+"D# c #505050",
+"E# c #4E4E4E",
+"F# c #AAAAAA",
+"G# c #A7A7A7",
+"H# c #ACACAC",
+"I# c #DCE0D8",
+"J# c #DFE3DB",
+"K# c #DFE3DA",
+"L# c #E0E3DA",
+"M# c #E0E3DB",
+"N# c #E1E3DB",
+"O# c #E0E4DB",
+"P# c #E0E4DC",
+"Q# c #E1E4DB",
+"R# c #E1E4DC",
+"S# c #DDE2D9",
+"T# c #545654",
+"U# c #949693",
+"V# c #9F9F9E",
+"W# c #9D9D9D",
+"X# c #9A9B9A",
+"Y# c #DADDD5",
+"Z# c #9B9B9A",
+"`# c #9B9B9B",
+" $ c #9A9B99",
+".$ c #959792",
+"+$ c #636463",
+"@$ c #BBBDB8",
+"#$ c #9FA09F",
+"$$ c #9C9D9C",
+"%$ c #C9CCC6",
+"&$ c #A0A19F",
+"*$ c #BCC0B9",
+"=$ c #5C5D5C",
+"-$ c #ABABAB",
+";$ c #676867",
+">$ c #BDC0BC",
+",$ c #A7A9A6",
+"'$ c #AEAEAE",
+")$ c #ACACAB",
+"!$ c #B1B2B0",
+"~$ c #B4B6B1",
+"{$ c #AAABAA",
+"]$ c #BEC1BC",
+"^$ c #606160",
+"/$ c #A4A7A2",
+"($ c #959991",
+"_$ c #7A7D77",
+":$ c #A3A6A0",
+"<$ c #777874",
+"[$ c #858782",
+"}$ c #989B94",
+"|$ c #989B95",
+"1$ c #D2D4CD",
+"2$ c #868983",
+"3$ c #848882",
+"4$ c #9EA19A",
+"5$ c #A6A9A4",
+"6$ c #D4D9D1",
+"7$ c #E0E5DC",
+"8$ c #E1E5DE",
+"9$ c #E2E5DE",
+"0$ c #E1E6DD",
+"a$ c #E2E6DE",
+"b$ c #E1E6DF",
+"c$ c #E2E7DE",
+"d$ c #E2E7DD",
+"e$ c #E3E7DE",
+"f$ c #E3E8DE",
+"g$ c #E3E8DF",
+"h$ c #E4E8DF",
+"i$ c #E5E8E0",
+"j$ c #E4E9E0",
+"k$ c #E5E9E0",
+"l$ c #E5E9E1",
+"m$ c #DCE1D9",
+"n$ c #575857",
+"o$ c #5A5B5A",
+"p$ c #595A59",
+"q$ c #555655",
+"r$ c #535453",
+"s$ c #525352",
+"t$ c #515251",
+"u$ c #525251",
+"v$ c #535352",
+"w$ c #545453",
+"x$ c #4D4E4D",
+" . + @ @ @ @ @ @ @ @ @ @ # $ % & * = - ; > , ' ) ! ~ ",
+" { ] ^ ^ ^ ^ ^ ^ / / / / ( ( _ _ : : : < < < [ } | ) ",
+" 1 2 3 4 5 5 6 7 8 9 0 a b c d e f g h i j k l m n o ",
+" p q r s t u v w x y z A B C D E F G G H I J K L M N ",
+" O P Q R z A B C D E S G G H I T U V W X Y Z ` ...+. ",
+" @.#.$.%.S G G H &.J T *.V V =.=.Z -.;.>.,.'.).!.~.{. ",
+" ].^./.(._.:.*.<.[.}.|.1.2.3.4.>.5.6.7.8.9.0.a.b.c.d. ",
+" e.f.g.(.}.}.1.2.2.h.h.i.i.j.6.k.l.m.n.n.o.o.p.q.r.r. ",
+" s.t.u.2.v.h.w.x.x.y.z.A.B.C.D.E.F.G.G.H.I.J.K.L.M.N. ",
+" O.P.Q.R.x.S.S.T.U.V.W.W.X.Y.Z.`. + +.+.+++@+#+$+%+&+*+=+ ",
+" -+;+>+,+'+)+!+~+X.{+]+^+/+(+_+_+:+:+<+[+[+}+}+|+1+2+3+4+ ",
+" 5+6+7+8+9+{+{+0+0+a+b+c+}+d+d+e+f+g+h+i+j+k+k+l+m+n+o+p+ ",
+" # q+r+s+t+u+v+w+x+y+i+k+k+y+y+z+z+A+B+C+D+D+E+F+G+H+I+4+ ",
+" J+K+L+M+w+N+O+D+B+C+P+D+E+Q+R+S+T+T+U+U+V+V+W+X+Y+Z+`+ @ ",
+" & .@+@@@#@R+T+T+U+U+V+V+W+$@%@&@*@*@=@-@;@>@,@'@)@!@~@{@ ",
+" ]@^@/@(@%@&@*@*@=@=@;@;@>@_@_@:@:@<@<@[@}@|@1@2@3@4@5@6@ ",
+" 7@8@9@0@_@:@:@a@<@[@}@|@1@b@b@c@c@d@d@e@f@f@g@h@i@j@k@l@ ",
+" ~ m@n@o@p@q@r@r@q@s@t@t@t@s@s@t@u@v@v@v@w@v@v@x@y@z@A@B@ ",
+" C@D@E@F@G@H@I@I@J@K@L@M@N@O@P@Q@R@S@T@U@V@W@X@Y@Z@`@ #.# ",
+" C@+#@#@#..m@##$#$#%#&#*#c.>+=#-#;#>#,#,#'#)#!#~#{#]#^#/# ",
+" (#_#:#<#[#}#|#1#2#3#4+4#5#6#7#8#9#0#a#B@b#.#c#c#c#B@ ",
+" d#e#f#g#h#h#h#h#h#i#j#k#l#m# ",
+" n#o#p#q#p#r#g#g#r#r#g#s#t#u#1 v#w#x#w# ",
+" [#1#2#3#4+4#y#6#z#y#A#B#8#9#0#C#D#a#B@b#b#b#B@E#|#F#G#H# ",
+" 1#I#J#J#K#J#J#L#M#L#M#N#O#O#O#P#P#O#P#O#P#Q#R#S#T# x#F#",
+" U#V#W#W#W#W#W#W#W#W#W#W#W#W#W#W#W#W#X#Y#Z#`#`# $.$ 1 x#",
+" +$@$w#w#w##$$$$$$$$$$$$$$$$$$$$$w#w#w#w#%$&$w#w#w#*$=$G#-$ ",
+" ;$>$F#F#F#,$'$'$'$'$'$'$'$'$'$)$&+'$'$'$!$~${$F#F#]$^$ ",
+" /$($_$_$_$:$<$<$<$<$<$<$<$<$<$[$}$_$_$_$|$1$2$3$3$4$5$ ",
+" 3#6$P#P#7$7$8$9$0$a$0$b$c$c$d$c$e$f$g$h$h$i$j$k$j$j$l$m$0# ",
+" y#n$o$p$n$q$r$s$s$s$t$t$t$t$u$u$u$u$u$u$u$u$v$v$v$v$w$D#x$ ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-list-mode.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-list-mode.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-list-mode.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,22 @@
+/* XPM */
+static const char * pkg_list_mode_xpm[] = {
+"16 16 3 1",
+" c None",
+". c #000000",
+"+ c #707070",
+" ",
+" ......... ",
+" +++++++++ ",
+" ",
+" ",
+" ............ ",
+" ++++++++++++ ",
+" ",
+" ",
+" ......... ",
+" +++++++++ ",
+" ",
+" ",
+" ............ ",
+" ++++++++++++ ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-locked.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-locked.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-locked.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,109 @@
+/* XPM */
+static const char * pkg_locked_xpm[] = {
+"16 16 90 1",
+" c None",
+". c #000000",
+"+ c #1E1E1E",
+"@ c #7A7A7A",
+"# c #D2D2D2",
+"$ c #DBDBDB",
+"% c #BCBCBC",
+"& c #727272",
+"* c #080808",
+"= c #848484",
+"- c #BEBEBE",
+"; c #383838",
+"> c #1C1C1C",
+", c #4D4D4D",
+"' c #B1B1B1",
+") c #2D2D2D",
+"! c #C2C2C2",
+"~ c #090909",
+"{ c #2E2E2E",
+"] c #AAAAAA",
+"^ c #2B2B2B",
+"/ c #C0C0C0",
+"( c #161616",
+"_ c #C1C0C0",
+": c #13110E",
+"< c #9B9794",
+"[ c #201D1C",
+"} c #0B0B07",
+"| c #040302",
+"1 c #050403",
+"2 c #2F2921",
+"3 c #A8A39E",
+"4 c #1A130B",
+"5 c #A59176",
+"6 c #E0C4A0",
+"7 c #DFC4A3",
+"8 c #DABE9A",
+"9 c #D6BA94",
+"0 c #CDA676",
+"a c #815A2B",
+"b c #E2C5A1",
+"c c #D8B58C",
+"d c #CA9F68",
+"e c #AC8758",
+"f c #A78252",
+"g c #A78253",
+"h c #A37B4B",
+"i c #BC8849",
+"j c #AC712E",
+"k c #E3C6A2",
+"l c #D5AE7E",
+"m c #B08D5F",
+"n c #D5B284",
+"o c #CFAB7C",
+"p c #CFAC7B",
+"q c #CBA471",
+"r c #BC8746",
+"s c #AA6F2B",
+"t c #E1C4A0",
+"u c #D0A674",
+"v c #C79B64",
+"w c #AA8455",
+"x c #A47E4E",
+"y c #A07744",
+"z c #BA8442",
+"A c #E1C29C",
+"B c #CEA470",
+"C c #AD8D64",
+"D c #D2B289",
+"E c #CDAC83",
+"F c #CEAD83",
+"G c #CCA77B",
+"H c #B8803E",
+"I c #AD7332",
+"J c #E0C29E",
+"K c #D4AC79",
+"L c #CDA66E",
+"M c #AF8D5E",
+"N c #AB8758",
+"O c #AB8858",
+"P c #A8814C",
+"Q c #B47E3E",
+"R c #D0A874",
+"S c #C6965D",
+"T c #BE8D50",
+"U c #BA894B",
+"V c #BD8C4E",
+"W c #BC8A4C",
+"X c #BA8647",
+"Y c #A47136",
+" ",
+" .... ",
+" +@#$$%&* ",
+" =-;>>,'= ",
+" )!~ {]. ",
+" ^/. (_. ",
+" :<[}||1234 ",
+" .567788890a. ",
+" .bcdeffghij. ",
+" .klmnoopqrs. ",
+" .tuvwxxxyzj. ",
+" .ABCDEEFGHI. ",
+" .JKLMNNOPrQ. ",
+" .RSTTUUVWXY. ",
+" .......... ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-remove-auto.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-remove-auto.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-remove-auto.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,424 @@
+/* XPM */
+static const char * pkg_remove_auto_xpm[] = {
+"32 32 389 2",
+" c None",
+". c #8D8E89",
+"+ c #888A85",
+"@ c #8B8D88",
+"# c #8D8F8A",
+"$ c #F3F3F3",
+"% c #F7F7F7",
+"& c #F6F6F6",
+"* c #F5F5F5",
+"= c #F2F2F2",
+"- c #E6E6E6",
+"; c #E5E5E5",
+"> c #E4E4E4",
+", c #E3E3E3",
+"' c #E2E2E2",
+") c #E1E1E1",
+"! c #F4F4F4",
+"~ c #204B88",
+"{ c #234D8A",
+"] c #868A88",
+"^ c #F1F1F1",
+"/ c #CACACA",
+"( c #C3C3C3",
+"_ c #C2C2C2",
+": c #C1C1C1",
+"< c #C8C8C8",
+"[ c #E0E0E0",
+"} c #244E8C",
+"| c #224C89",
+"1 c #5485C5",
+"2 c #598BCB",
+"3 c #7D8181",
+"4 c #DDDDDD",
+"5 c #CECECE",
+"6 c #CDCDCD",
+"7 c #CCCCCC",
+"8 c #CBCBCB",
+"9 c #DEDEDE",
+"0 c #7D7F7A",
+"a c #4C7DBC",
+"b c #214C89",
+"c c #3965A2",
+"d c #6090CD",
+"e c #727676",
+"f c #C9C9C9",
+"g c #BABABA",
+"h c #A6A6A6",
+"i c #9F9F9F",
+"j c #9E9E9E",
+"k c #A4A4A4",
+"l c #B8B8B8",
+"m c #B7B7B7",
+"n c #B6B6B6",
+"o c #727470",
+"p c #325F9C",
+"q c #5B86C1",
+"r c #406492",
+"s c #646763",
+"t c #6B6D69",
+"u c #6A6B67",
+"v c #6D6E6A",
+"w c #395983",
+"x c #224C8A",
+"y c #28528E",
+"z c #769FD4",
+"A c #5A8BCB",
+"B c #3B5D88",
+"C c #243953",
+"D c #243954",
+"E c #263B56",
+"F c #263B57",
+"G c #273D59",
+"H c #273E5A",
+"I c #283E5B",
+"J c #283F5D",
+"K c #29405E",
+"L c #29415F",
+"M c #2A4261",
+"N c #2B4362",
+"O c #2B4463",
+"P c #2C4565",
+"Q c #2D4666",
+"R c #2D4768",
+"S c #2E4869",
+"T c #2E496A",
+"U c #2F4A6C",
+"V c #304B6D",
+"W c #3C5074",
+"X c #5C85C2",
+"Y c #5E8ECC",
+"Z c #2B5793",
+"` c #5179B1",
+" . c #739DD3",
+".. c #5F81BC",
+"+. c #89425D",
+"@. c #AB1213",
+"#. c #AB1314",
+"$. c #884B67",
+"%. c #5477AE",
+"&. c #7499C8",
+"*. c #6794CE",
+"=. c #588ACA",
+"-. c #667AB0",
+";. c #BE4E52",
+">. c #E18080",
+",. c #E17E7E",
+"'. c #B84C52",
+"). c #758BBC",
+"!. c #234D89",
+"~. c #224D8A",
+"{. c #7A9AC5",
+"]. c #5581BA",
+"^. c #4978B5",
+"/. c #4878B5",
+"(. c #4976B2",
+"_. c #704D72",
+":. c #6B5178",
+"<. c #4877B3",
+"[. c #668DC1",
+"}. c #2F5892",
+"|. c #214B88",
+"1. c #587BAB",
+"2. c #809DC2",
+"3. c #819EC3",
+"4. c #809DC3",
+"5. c #7F9DC2",
+"6. c #7E9BC1",
+"7. c #7C9AC1",
+"8. c #7C9AC0",
+"9. c #7A98C0",
+"0. c #7998BF",
+"a. c #7897BE",
+"b. c #7796BE",
+"c. c #7595BD",
+"d. c #7494BD",
+"e. c #7393BC",
+"f. c #7192BB",
+"g. c #7191BB",
+"h. c #7091BB",
+"i. c #6E8FBA",
+"j. c #6D8FBA",
+"k. c #6C8EB9",
+"l. c #6A8CB7",
+"m. c #29518C",
+"n. c #204A85",
+"o. c #204A87",
+"p. c #204986",
+"q. c #898A89",
+"r. c #B8B9B6",
+"s. c #8B8D89",
+"t. c #838581",
+"u. c #C6C6C5",
+"v. c #BDBEBD",
+"w. c #B3B4B3",
+"x. c #B0B0AF",
+"y. c #A9AAA8",
+"z. c #B0B1B0",
+"A. c #C4C5C4",
+"B. c #B1B2B1",
+"C. c #ADADAC",
+"D. c #B6B7B5",
+"E. c #ABACAA",
+"F. c #B5B5B4",
+"G. c #787A76",
+"H. c #9D9E9B",
+"I. c #BFC0BD",
+"J. c #C3C4C3",
+"K. c #7D7F7C",
+"L. c #888985",
+"M. c #848581",
+"N. c #C0C1C0",
+"O. c #BBBBBB",
+"P. c #BCBDBC",
+"Q. c #B4B5B4",
+"R. c #BFC0BF",
+"S. c #BFBFBE",
+"T. c #A4A4A3",
+"U. c #B2B3B2",
+"V. c #C8C8C7",
+"W. c #C6C6C6",
+"X. c #B1B1B0",
+"Y. c #B4B5B3",
+"Z. c #B9B9B8",
+"`. c #7C7D7A",
+" + c #A9AAA6",
+".+ c #C8C8C6",
+"++ c #C0C1BE",
+"@+ c #727371",
+"#+ c #BEBFBC",
+"$+ c #8E908A",
+"%+ c #898B86",
+"&+ c #BDBDBC",
+"*+ c #BEBFBE",
+"=+ c #B6B7B6",
+"-+ c #BEBEBD",
+";+ c #D2D2D2",
+">+ c #A6A7A5",
+",+ c #C7C8C7",
+"'+ c #C9C9C8",
+")+ c #B2B3B1",
+"!+ c #C1C2C1",
+"~+ c #CFCFCF",
+"{+ c #B8B9B8",
+"]+ c #BABAB9",
+"^+ c #B8B9B5",
+"/+ c #D2D3D0",
+"(+ c #BCBDBA",
+"_+ c #686A66",
+":+ c #C4C5C2",
+"<+ c #92948F",
+"[+ c #CBCCCB",
+"}+ c #C4C4C3",
+"|+ c #BDBEBC",
+"1+ c #C3C3C2",
+"2+ c #D3D3D3",
+"3+ c #AFB0AE",
+"4+ c #CDCDCC",
+"5+ c #D1D1D1",
+"6+ c #BBBCBA",
+"7+ c #B7B7B6",
+"8+ c #C5C6C5",
+"9+ c #D6D6D6",
+"0+ c #8F918C",
+"a+ c #BFC0BC",
+"b+ c #D8D9D6",
+"c+ c #B5B7B3",
+"d+ c #C8C9C7",
+"e+ c #999A93",
+"f+ c #92938E",
+"g+ c #D9D9D9",
+"h+ c #C9CAC9",
+"i+ c #C7C7C6",
+"j+ c #BFC0BE",
+"k+ c #DBDBDB",
+"l+ c #BEBFBD",
+"m+ c #C2C2C1",
+"n+ c #D0D0CF",
+"o+ c #DFDFDF",
+"p+ c #C1C2C0",
+"q+ c #C3C4C2",
+"r+ c #CACAC9",
+"s+ c #B6B6B5",
+"t+ c #989994",
+"u+ c #C8C8C4",
+"v+ c #DEDEDC",
+"w+ c #ABADA9",
+"x+ c #C8C9C6",
+"y+ c #9C9E9A",
+"z+ c #91938F",
+"A+ c #EAEAEA",
+"B+ c #D8D8D7",
+"C+ c #D2D2D1",
+"D+ c #A0A09D",
+"E+ c #CFCFCE",
+"F+ c #CBCBCA",
+"G+ c #D6D6D5",
+"H+ c #E0E0DF",
+"I+ c #D1D2D1",
+"J+ c #B2B3B0",
+"K+ c #9EA09B",
+"L+ c #CCCDC9",
+"M+ c #E2E3E0",
+"N+ c #A1A29E",
+"O+ c #555753",
+"P+ c #565854",
+"Q+ c #A0A19E",
+"R+ c #E7E7E6",
+"S+ c #E3E4E3",
+"T+ c #E8E8E8",
+"U+ c #929490",
+"V+ c #DEDEDD",
+"W+ c #D5D5D4",
+"X+ c #DDDEDD",
+"Y+ c #DADAD9",
+"Z+ c #D3D4D2",
+"`+ c #DCDCDC",
+" @ c #D4D5D4",
+".@ c #AAABA8",
+"+@ c #E4E4E3",
+"@@ c #A0A29E",
+"#@ c #D1D2CE",
+"$@ c #E7E7E5",
+"%@ c #90928F",
+"&@ c #575955",
+"*@ c #DBDCDA",
+"=@ c #BABBB9",
+"-@ c #585A56",
+";@ c #EDEDEC",
+">@ c #EFEFEE",
+",@ c #D3D3D2",
+"'@ c #AFB1AB",
+")@ c #C4C4C2",
+"!@ c #E9E9E9",
+"~@ c #D9D9D8",
+"{@ c #E7E7E7",
+"]@ c #D1D2D0",
+"^@ c #D7D8D7",
+"/@ c #EBEBEA",
+"(@ c #F0F0F0",
+"_@ c #9A9B96",
+":@ c #EEEEED",
+"<@ c #D4D5D1",
+"[@ c #EBEBE9",
+"}@ c #838480",
+"|@ c #DCDDDB",
+"1@ c #595B57",
+"2@ c #949591",
+"3@ c #E1E2E1",
+"4@ c #D2D3D1",
+"5@ c #AEAFAC",
+"6@ c #B5B7B1",
+"7@ c #A0A29D",
+"8@ c #BABBB8",
+"9@ c #AEB0AC",
+"0@ c #E2E3E2",
+"a@ c #9D9E99",
+"b@ c #A2A39F",
+"c@ c #B5B6B2",
+"d@ c #D7D8D3",
+"e@ c #767774",
+"f@ c #A9ABA5",
+"g@ c #9FA09B",
+"h@ c #969794",
+"i@ c #BBBDB7",
+"j@ c #B3B5AF",
+"k@ c #959792",
+"l@ c #999A96",
+"m@ c #9B9D98",
+"n@ c #A2A39E",
+"o@ c #ABADA7",
+"p@ c #979995",
+"q@ c #989995",
+"r@ c #9A9C97",
+"s@ c #A6A7A2",
+"t@ c #B2B4AE",
+"u@ c #C8C9C3",
+"v@ c #EBECEA",
+"w@ c #5A5C58",
+"x@ c #DDDEDC",
+"y@ c #B9BBB5",
+"z@ c #CBCDC7",
+"A@ c #D7D8D4",
+"B@ c #DCDDDA",
+"C@ c #C0C1BF",
+"D@ c #CDCEC8",
+"E@ c #D9DAD6",
+"F@ c #E8E8E6",
+"G@ c #C4C5C3",
+"H@ c #AEB0AA",
+"I@ c #C6C8C2",
+"J@ c #DADAD6",
+"K@ c #E3E4E1",
+"L@ c #CCCDCB",
+"M@ c #AFB1AD",
+"N@ c #B0B1AE",
+"O@ c #B0B2AE",
+"P@ c #B1B2AD",
+"Q@ c #B1B3AF",
+"R@ c #B2B3AE",
+"S@ c #B2B4AF",
+"T@ c #B2B3AF",
+"U@ c #B3B4B1",
+"V@ c #B4B5B1",
+"W@ c #B4B5B0",
+"X@ c #B5B6B1",
+"Y@ c #B4B5B2",
+"Z@ c #BEC0BC",
+"`@ c #D3D4D1",
+" # c #D8D9D5",
+".# c #D4D5D3",
+"+# c #C3C4C1",
+"@# c #C7C7C5",
+"## c #C7C7C4",
+"$# c #C6C7C4",
+"%# c #C6C6C3",
+"&# c #C5C6C3",
+"*# c #C5C5C3",
+"=# c #C5C5C2",
+"-# c #C6C6C4",
+";# c #DBDBD9",
+"># c #D7D8D6",
+",# c #D9D9D7",
+"'# c #DDDDDC",
+")# c #DEDFDD",
+"!# c #DFDFDD",
+"~# c #DFDFDE",
+"{# c #5F5F5D",
+"]# c #454744",
+"^# c #414541",
+" ",
+" . + + + + + + + + + + + + + + + + + + @ ",
+" # $ % & & & & & & & & & & & & * * * * + ",
+" @ = - ; > > , , , , , ' ' ' ' ) ' , ! + ",
+" ~ { ] ^ , / ( ( _ _ _ _ _ _ _ _ : : < [ $ + } | ",
+" | 1 2 3 4 5 6 7 8 8 8 8 / 8 7 7 8 8 8 8 / 9 0 2 a b ",
+" c d 2 e f g h i i i i j j k l m m m m m n / o 2 2 p ",
+" { q d r s t u u u u u u u u u u u u u u u u v u w 2 a x ",
+" y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ",
+" | ` .2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ..+.@.#.$.%.{ ",
+" } &.*.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.-.;.>.,.'.).!. ",
+" ~.{.].^.^.^.^.^.^.^.^.^././././././././././././.(._.:.<.[.}. ",
+" |.1.2.3.3.3.3.3.3.3.4.5.6.7.8.9.0.a.b.c.d.e.f.g.h.i.j.k.l.m. ",
+" n.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.p. ",
+" q.r.s.t.u.v.v.w._ x.f y.z.A.f B.C.v.5 D.E.F.G.H.I.J. ",
+" K.r.L.M.N.O.P.Q.R.S.5 T.U.V.W.X.X._ 6 Y.C.Z.`. +.+++ ",
+" @+#+$+%+( &+*+=+S.-+;+>+Q.,+'+Y.)+!+~+{+B.]+%+^+/+(+ ",
+" _+:+<+# [+}+A.|+1+-+2+3+{+4+5+6+7+8+9+N.7+v.0+a+b+c+ ",
+" d+e+f+g+4 h+i+4+j+k+l+m+n+o+p+q+r+[ ;+s+m+t+u+v+w+ ",
+" x+y+z+A+4+B+C+, D+, E+F+G+H+F+I+E+> ; J+'+K+L+M+N+ ",
+" O+P+O+O+Q+R+S+T+U+V+[ W+X+Y+Z+`+ @- = .@+@@@#@$@%@ ",
+" &@*@=@-@<+;@>@,@'@)@!@~@{@]@4+{@^@/@(@_@:@3+<@[@}@ ",
+" P+|@6+1@2@3@4@5@6@7@{@,@V+8@9@W+W+3@0@a@b@c@d@[@e@ ",
+" O+|@6+1@f@g@h@'@i@j@k@l@m@n@o@7@p@q@r@s@t@u@d@v@ ",
+"O+O+O+P+w@x@6+w@O+O+O+O+i@i@i@i@y@i@i@i@i@i@i@i@i@z@A@v@ ",
+"O+B@|@x@|@|@C@C@C@C@p+O+i@i@i@i@i@i@i@i@i@i@i@i@i@D@E@F@ ",
+"O+*@G@q+q+q+q+q+q+q+q+O+H@H@H@H@H@H@H@H@H@H@H@H@H@I@J@K@ ",
+"O+O+O+O+O+L@L@-@O+O+O+O+M@N@O@P@Q@R@S@T@U@V@W@X@Y@Z@`@ # ",
+" O+.#.#-@+#@#@###$#$#$#$#%#%#&#&#&#&#*#*#=#-#;#(+ ",
+" O+>#>#-@,#'#'#X+V+v+v+v+V+V+)#)#)#!#!#~#~#B@m+{# ",
+" O+Z+Z+P+]#]#]#]#]#]#]#]#]#]#]#]#]#]#]#]#]#]#^# ",
+" P+&@&@P+ "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-remove.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-remove.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-remove.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,435 @@
+/* XPM */
+static const char * pkg_remove_xpm[] = {
+"32 32 400 2",
+" c None",
+". c #8D8E89",
+"+ c #888A85",
+"@ c #8B8D88",
+"# c #8D8F8A",
+"$ c #F3F3F3",
+"% c #F7F7F7",
+"& c #F6F6F6",
+"* c #F5F5F5",
+"= c #F2F2F2",
+"- c #E6E6E6",
+"; c #E5E5E5",
+"> c #E4E4E4",
+", c #E3E3E3",
+"' c #E2E2E2",
+") c #E1E1E1",
+"! c #F4F4F4",
+"~ c #204B88",
+"{ c #234D8A",
+"] c #868A88",
+"^ c #F1F1F1",
+"/ c #CACACA",
+"( c #C3C3C3",
+"_ c #C2C2C2",
+": c #C1C1C1",
+"< c #C8C8C8",
+"[ c #E0E0E0",
+"} c #244E8C",
+"| c #224C89",
+"1 c #5485C5",
+"2 c #598BCB",
+"3 c #7D8181",
+"4 c #DDDDDD",
+"5 c #CECECE",
+"6 c #CDCDCD",
+"7 c #CCCCCC",
+"8 c #CBCBCB",
+"9 c #DEDEDE",
+"0 c #7D7F7A",
+"a c #4C7DBC",
+"b c #214C89",
+"c c #3965A2",
+"d c #6090CD",
+"e c #727676",
+"f c #C9C9C9",
+"g c #BABABA",
+"h c #A6A6A6",
+"i c #9F9F9F",
+"j c #9E9E9E",
+"k c #A4A4A4",
+"l c #B8B8B8",
+"m c #B7B7B7",
+"n c #B6B6B6",
+"o c #727470",
+"p c #325F9C",
+"q c #5B86C1",
+"r c #406492",
+"s c #646763",
+"t c #6B6D69",
+"u c #6A6B67",
+"v c #6D6E6A",
+"w c #395983",
+"x c #224C8A",
+"y c #28528E",
+"z c #769FD4",
+"A c #5A8BCB",
+"B c #3B5D88",
+"C c #243953",
+"D c #243954",
+"E c #263B56",
+"F c #263B57",
+"G c #273D59",
+"H c #273E5A",
+"I c #283E5B",
+"J c #283F5D",
+"K c #29405E",
+"L c #29415F",
+"M c #2A4261",
+"N c #2B4362",
+"O c #2B4463",
+"P c #2C4565",
+"Q c #2D4666",
+"R c #2D4768",
+"S c #2E4869",
+"T c #2E496A",
+"U c #2F4A6C",
+"V c #304B6D",
+"W c #3C5074",
+"X c #5C85C2",
+"Y c #5E8ECC",
+"Z c #2B5793",
+"` c #5179B1",
+" . c #739DD3",
+".. c #5F81BC",
+"+. c #89425D",
+"@. c #AB1213",
+"#. c #AB1314",
+"$. c #884B67",
+"%. c #5477AE",
+"&. c #7499C8",
+"*. c #6794CE",
+"=. c #588ACA",
+"-. c #667AB0",
+";. c #BE4E52",
+">. c #E18080",
+",. c #E17E7E",
+"'. c #B84C52",
+"). c #758BBC",
+"!. c #234D89",
+"~. c #224D8A",
+"{. c #7A9AC5",
+"]. c #5581BA",
+"^. c #4978B5",
+"/. c #4878B5",
+"(. c #4976B2",
+"_. c #704D72",
+":. c #6B5178",
+"<. c #4877B3",
+"[. c #668DC1",
+"}. c #2F5892",
+"|. c #214B88",
+"1. c #587BAB",
+"2. c #809DC2",
+"3. c #819EC3",
+"4. c #809DC3",
+"5. c #7F9DC2",
+"6. c #7E9BC1",
+"7. c #7C9AC1",
+"8. c #7C9AC0",
+"9. c #7A98C0",
+"0. c #7998BF",
+"a. c #7897BE",
+"b. c #7796BE",
+"c. c #7595BD",
+"d. c #7494BD",
+"e. c #7393BC",
+"f. c #7192BB",
+"g. c #7191BB",
+"h. c #7091BB",
+"i. c #6E8FBA",
+"j. c #6D8FBA",
+"k. c #6C8EB9",
+"l. c #6A8CB7",
+"m. c #29518C",
+"n. c #204A85",
+"o. c #204A87",
+"p. c #204986",
+"q. c #898A89",
+"r. c #B8B9B6",
+"s. c #8B8D89",
+"t. c #838581",
+"u. c #C6C6C5",
+"v. c #BDBEBD",
+"w. c #B3B4B3",
+"x. c #B0B0AF",
+"y. c #A9AAA8",
+"z. c #B0B1B0",
+"A. c #C4C5C4",
+"B. c #B1B2B1",
+"C. c #ADADAC",
+"D. c #B6B7B5",
+"E. c #ABACAA",
+"F. c #B5B5B4",
+"G. c #787A76",
+"H. c #9D9E9B",
+"I. c #BFC0BD",
+"J. c #C3C4C3",
+"K. c #7D7F7C",
+"L. c #888985",
+"M. c #848581",
+"N. c #C0C1C0",
+"O. c #BBBBBB",
+"P. c #BCBDBC",
+"Q. c #B4B5B4",
+"R. c #BFC0BF",
+"S. c #BFBFBE",
+"T. c #A4A4A3",
+"U. c #B2B3B2",
+"V. c #C8C8C7",
+"W. c #C6C6C6",
+"X. c #B1B1B0",
+"Y. c #B4B5B3",
+"Z. c #B9B9B8",
+"`. c #7C7D7A",
+" + c #A9AAA6",
+".+ c #C8C8C6",
+"++ c #C0C1BE",
+"@+ c #727371",
+"#+ c #BEBFBC",
+"$+ c #8E908A",
+"%+ c #898B86",
+"&+ c #BDBDBC",
+"*+ c #BEBFBE",
+"=+ c #B6B7B6",
+"-+ c #BEBEBD",
+";+ c #D2D2D2",
+">+ c #A6A7A5",
+",+ c #C7C8C7",
+"'+ c #C9C9C8",
+")+ c #B2B3B1",
+"!+ c #C1C2C1",
+"~+ c #CFCFCF",
+"{+ c #B8B9B8",
+"]+ c #BABAB9",
+"^+ c #B8B9B5",
+"/+ c #D2D3D0",
+"(+ c #BCBDBA",
+"_+ c #686A66",
+":+ c #C4C5C2",
+"<+ c #92948F",
+"[+ c #CBCCCB",
+"}+ c #C4C4C3",
+"|+ c #BDBEBC",
+"1+ c #C3C3C2",
+"2+ c #D3D3D3",
+"3+ c #AFB0AE",
+"4+ c #CDCDCC",
+"5+ c #D1D1D1",
+"6+ c #BBBCBA",
+"7+ c #B7B7B6",
+"8+ c #C5C6C5",
+"9+ c #D6D6D6",
+"0+ c #8F918C",
+"a+ c #BFC0BC",
+"b+ c #D8D9D6",
+"c+ c #B5B7B3",
+"d+ c #C8C9C7",
+"e+ c #999A93",
+"f+ c #92938E",
+"g+ c #D9D9D9",
+"h+ c #C9CAC9",
+"i+ c #C7C7C6",
+"j+ c #BFC0BE",
+"k+ c #DBDBDB",
+"l+ c #BEBFBD",
+"m+ c #C2C2C1",
+"n+ c #D0D0CF",
+"o+ c #DFDFDF",
+"p+ c #C1C2C0",
+"q+ c #C3C4C2",
+"r+ c #CACAC9",
+"s+ c #B6B6B5",
+"t+ c #989994",
+"u+ c #C8C8C4",
+"v+ c #DEDEDC",
+"w+ c #ABADA9",
+"x+ c #CCCDCA",
+"y+ c #9EA09C",
+"z+ c #929490",
+"A+ c #EAEAEA",
+"B+ c #D8D8D7",
+"C+ c #D2D2D1",
+"D+ c #A0A09D",
+"E+ c #CFCFCE",
+"F+ c #CBCBCA",
+"G+ c #D6D6D5",
+"H+ c #E0E0DF",
+"I+ c #D1D2D1",
+"J+ c #B2B3B0",
+"K+ c #9EA09B",
+"L+ c #CCCDC9",
+"M+ c #E2E3E0",
+"N+ c #A1A29E",
+"O+ c #CACBC8",
+"P+ c #A7A9A3",
+"Q+ c #AEAEAC",
+"R+ c #A3A4A1",
+"S+ c #E7E7E6",
+"T+ c #E3E4E3",
+"U+ c #E8E8E8",
+"V+ c #DEDEDD",
+"W+ c #D5D5D4",
+"X+ c #DDDEDD",
+"Y+ c #DADAD9",
+"Z+ c #D3D4D2",
+"`+ c #DCDCDC",
+" @ c #D4D5D4",
+".@ c #AAABA8",
+"+@ c #E4E4E3",
+"@@ c #A0A29E",
+"#@ c #D1D2CE",
+"$@ c #E7E7E5",
+"%@ c #90928F",
+"&@ c #CACAC8",
+"*@ c #A9ABA7",
+"=@ c #DCDDDC",
+"-@ c #F8F8F8",
+";@ c #959792",
+">@ c #EDEDEC",
+",@ c #EFEFEE",
+"'@ c #D3D3D2",
+")@ c #AFB1AB",
+"!@ c #C4C4C2",
+"~@ c #E9E9E9",
+"{@ c #D9D9D8",
+"]@ c #E7E7E7",
+"^@ c #D1D2D0",
+"/@ c #D7D8D7",
+"(@ c #EBEBEA",
+"_@ c #F0F0F0",
+":@ c #9A9B96",
+"<@ c #EEEEED",
+"[@ c #D4D5D1",
+"}@ c #EBEBE9",
+"|@ c #838480",
+"1@ c #C6C7C4",
+"2@ c #BABCB6",
+"3@ c #A2A4A0",
+"4@ c #989995",
+"5@ c #E1E2E1",
+"6@ c #D2D3D1",
+"7@ c #AEAFAC",
+"8@ c #B5B7B1",
+"9@ c #A0A29D",
+"0@ c #BABBB8",
+"a@ c #AEB0AC",
+"b@ c #E2E3E2",
+"c@ c #9D9E99",
+"d@ c #A2A39F",
+"e@ c #B5B6B2",
+"f@ c #D7D8D3",
+"g@ c #767774",
+"h@ c #C1C2BE",
+"i@ c #BDBFBC",
+"j@ c #A3A5A0",
+"k@ c #9FA19C",
+"l@ c #AEB0AA",
+"m@ c #9FA09B",
+"n@ c #969794",
+"o@ c #BBBDB7",
+"p@ c #B3B5AF",
+"q@ c #999A96",
+"r@ c #9B9D98",
+"s@ c #A2A39E",
+"t@ c #ABADA7",
+"u@ c #979995",
+"v@ c #9A9C97",
+"w@ c #A6A7A2",
+"x@ c #B2B4AE",
+"y@ c #C8C9C3",
+"z@ c #EBECEA",
+"A@ c #BBBCB9",
+"B@ c #C1C3BE",
+"C@ c #B9BBB5",
+"D@ c #CBCDC7",
+"E@ c #D7D8D4",
+"F@ c #C4C5C0",
+"G@ c #CDCEC8",
+"H@ c #D9DAD6",
+"I@ c #E8E8E6",
+"J@ c #AAADA9",
+"K@ c #C7C8C4",
+"L@ c #B4B6B0",
+"M@ c #C6C8C2",
+"N@ c #DADAD6",
+"O@ c #E3E4E1",
+"P@ c #C5C5C3",
+"Q@ c #B2B4AF",
+"R@ c #ADAFAB",
+"S@ c #AEAFAB",
+"T@ c #B0B1AC",
+"U@ c #B0B2AC",
+"V@ c #AFB1AD",
+"W@ c #B0B1AE",
+"X@ c #B0B2AE",
+"Y@ c #B1B2AD",
+"Z@ c #B1B3AF",
+"`@ c #B2B3AE",
+" # c #B2B3AF",
+".# c #B3B4B1",
+"+# c #B4B5B1",
+"@# c #B4B5B0",
+"## c #B5B6B1",
+"$# c #B4B5B2",
+"%# c #BEC0BC",
+"&# c #D3D4D1",
+"*# c #D8D9D5",
+"=# c #6B6D6B",
+"-# c #C7C8C5",
+";# c #C7C7C5",
+"># c #C7C7C4",
+",# c #C6C6C3",
+"'# c #C5C6C3",
+")# c #C5C5C2",
+"!# c #C6C6C4",
+"~# c #DBDBD9",
+"{# c #484946",
+"]# c #B3B3B0",
+"^# c #DCDDDB",
+"/# c #DDDDDB",
+"(# c #DDDDDC",
+"_# c #DEDFDD",
+":# c #DFDFDD",
+"<# c #DFDFDE",
+"[# c #DCDDDA",
+"}# c #5F5F5D",
+"|# c #424442",
+"1# c #454643",
+"2# c #454744",
+"3# c #414541",
+" ",
+" . + + + + + + + + + + + + + + + + + + @ ",
+" # $ % & & & & & & & & & & & & * * * * + ",
+" @ = - ; > > , , , , , ' ' ' ' ) ' , ! + ",
+" ~ { ] ^ , / ( ( _ _ _ _ _ _ _ _ : : < [ $ + } | ",
+" | 1 2 3 4 5 6 7 8 8 8 8 / 8 7 7 8 8 8 8 / 9 0 2 a b ",
+" c d 2 e f g h i i i i j j k l m m m m m n / o 2 2 p ",
+" { q d r s t u u u u u u u u u u u u u u u u v u w 2 a x ",
+" y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ",
+" | ` .2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ..+.@.#.$.%.{ ",
+" } &.*.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.=.-.;.>.,.'.).!. ",
+" ~.{.].^.^.^.^.^.^.^.^.^././././././././././././.(._.:.<.[.}. ",
+" |.1.2.3.3.3.3.3.3.3.4.5.6.7.8.9.0.a.b.c.d.e.f.g.h.i.j.k.l.m. ",
+" n.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.o.p. ",
+" q.r.s.t.u.v.v.w._ x.f y.z.A.f B.C.v.5 D.E.F.G.H.I.J. ",
+" K.r.L.M.N.O.P.Q.R.S.5 T.U.V.W.X.X._ 6 Y.C.Z.`. +.+++ ",
+" @+#+$+%+( &+*+=+S.-+;+>+Q.,+'+Y.)+!+~+{+B.]+%+^+/+(+ ",
+" _+:+<+# [+}+A.|+1+-+2+3+{+4+5+6+7+8+9+N.7+v.0+a+b+c+ ",
+" d+e+f+g+4 h+i+4+j+k+l+m+n+o+p+q+r+[ ;+s+m+t+u+v+w+ ",
+" x+y+z+A+4+B+C+, D+, E+F+G+H+F+I+E+> ; J+'+K+L+M+N+ ",
+" O+P+Q+& R+S+T+U+z+V+[ W+X+Y+Z+`+ @- = .@+@@@#@$@%@ ",
+" &@*@=@-@;@>@,@'@)@!@~@{@]@^@4+]@/@(@_@:@<@3+[@}@|@ ",
+" 1@2@3@H+4@5@6@7@8@9@]@'@V+0@a@W+W+5@b@c@d@e@f@}@g@ ",
+" h@i@j@k@l@m@n@)@o@p@;@q@r@s@t@9@u@4@v@w@x@y@f@z@ ",
+" A@B@o@o@o@o@o@o@o@o@o@o@C@o@o@o@o@o@o@o@o@D@E@z@ ",
+" F.F@o@o@o@o@o@o@o@o@o@o@o@o@o@o@o@o@o@o@o@G@H@I@ ",
+" J@K@L@l@l@l@l@l@l@l@l@l@l@l@l@l@l@l@l@l@l@M@N@O@ ",
+" q@P@Q@R@S@a@T@U@V@W@X@Y@Z@`@Q@ #.#+#@###$#%#&#*# ",
+" =#W+x+-#-#;#;#>#1@1@1@1@,#,#'#'#'#'#P@P@)#!#~#(+ ",
+" {#]#^#/#/#(#(#X+V+v+v+v+V+V+_#_#_#:#:#<#<#[#m+}# ",
+" |#1#2#2#2#2#2#2#2#2#2#2#2#2#2#2#2#2#2#2#2#3# ",
+" "};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-tiles-mode.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-tiles-mode.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-tiles-mode.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,22 @@
+/* XPM */
+static const char * pkg_tiles_mode_xpm[] = {
+"16 16 3 1",
+" c None",
+". c #000000",
+"+ c #707070",
+" ",
+" ...... ...... ",
+" .++++.+ .++++.+",
+" .+ .+ .+ .+",
+" .+ .+ .+ .+",
+" .+ .+ .+ .+",
+" ......+ ......+",
+" ++++++ ++++++",
+" ",
+" ...... ...... ",
+" .++++.+ .++++.+",
+" .+ .+ .+ .+",
+" .+ .+ .+ .+",
+" .+ .+ .+ .+",
+" ......+ ......+",
+" ++++++ ++++++"};
Added: trunk/gtk/unstable-libyui/src/icons/pkg-unlocked.xpm
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/icons/pk…
==============================================================================
--- trunk/gtk/unstable-libyui/src/icons/pkg-unlocked.xpm (added)
+++ trunk/gtk/unstable-libyui/src/icons/pkg-unlocked.xpm Wed Dec 5 14:14:01 2007
@@ -0,0 +1,107 @@
+/* XPM */
+static const char * pkg_unlocked_xpm[] = {
+"16 16 88 1",
+" c None",
+". c #000000",
+"+ c #1E1E1E",
+"@ c #7A7A7A",
+"# c #D2D2D2",
+"$ c #DBDBDB",
+"% c #727272",
+"& c #080808",
+"* c #848484",
+"= c #BEBEBE",
+"- c #363636",
+"; c #1D1D1D",
+"> c #B1B1B1",
+", c #2D2D2D",
+"' c #C2C2C2",
+") c #090909",
+"! c #2E2E2E",
+"~ c #AAAAAA",
+"{ c #2B2B2B",
+"] c #C0C0C0",
+"^ c #161616",
+"/ c #C1C0C0",
+"( c #13110E",
+"_ c #9B9794",
+": c #201D1C",
+"< c #0B0B07",
+"[ c #040302",
+"} c #050403",
+"| c #0D0C09",
+"1 c #282624",
+"2 c #1A130B",
+"3 c #A59176",
+"4 c #E0C4A0",
+"5 c #DFC4A3",
+"6 c #DABE9A",
+"7 c #D6BA94",
+"8 c #CDA676",
+"9 c #815A2B",
+"0 c #E2C5A1",
+"a c #D8B58C",
+"b c #CA9F68",
+"c c #AC8758",
+"d c #A78252",
+"e c #A78253",
+"f c #A37B4B",
+"g c #BC8849",
+"h c #AC712E",
+"i c #E3C6A2",
+"j c #D5AE7E",
+"k c #B08D5F",
+"l c #D5B284",
+"m c #CFAB7C",
+"n c #CFAC7B",
+"o c #CBA471",
+"p c #BC8746",
+"q c #AA6F2B",
+"r c #E1C4A0",
+"s c #D0A674",
+"t c #C79B64",
+"u c #AA8455",
+"v c #A47E4E",
+"w c #A07744",
+"x c #BA8442",
+"y c #E1C29C",
+"z c #CEA470",
+"A c #AD8D64",
+"B c #D2B289",
+"C c #CDAC83",
+"D c #CEAD83",
+"E c #CCA77B",
+"F c #B8803E",
+"G c #AD7332",
+"H c #E0C29E",
+"I c #D4AC79",
+"J c #CDA66E",
+"K c #AF8D5E",
+"L c #AB8758",
+"M c #AB8858",
+"N c #A8814C",
+"O c #B47E3E",
+"P c #D0A874",
+"Q c #C6965D",
+"R c #BE8D50",
+"S c #BA894B",
+"T c #BD8C4E",
+"U c #BC8A4C",
+"V c #BA8647",
+"W c #A47136",
+" ",
+" .. ",
+" +@#$%& ",
+" *=-;>* ",
+",') !~. ",
+"{]. ^/. ",
+" (_:<[[}|12 ",
+" .3455666789.",
+" .0abcddefgh.",
+" .ijklmmnopq.",
+" .rstuvvvwxh.",
+" .yzABCCDEFG.",
+" .HIJKLLMNpO.",
+" .PQRRSSTUVW.",
+" .......... ",
+" "};
Added: trunk/gtk/unstable-libyui/src/mng-loader.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/mng-load…
==============================================================================
--- trunk/gtk/unstable-libyui/src/mng-loader.c (added)
+++ trunk/gtk/unstable-libyui/src/mng-loader.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,342 @@
+#include "mng-loader.h"
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <assert.h>
+#include <sys/mman.h>
+
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+/* Some select chunk IDs, from libmng.h */
+#define MNG_UINT_MHDR 0x4d484452L
+#define MNG_UINT_BACK 0x4241434bL
+#define MNG_UINT_PLTE 0x504c5445L
+#define MNG_UINT_tRNS 0x74524e53L
+#define MNG_UINT_IHDR 0x49484452L
+#define MNG_UINT_IDAT 0x49444154L
+#define MNG_UINT_IEND 0x49454e44L
+#define MNG_UINT_MEND 0x4d454e44L
+#define MNG_UINT_FRAM 0x4652414dL
+#define MNG_UINT_LOOP 0x4c4f4f50L
+#define MNG_UINT_ENDL 0x454e444cL
+#define MNG_UINT_TERM 0x5445524dL
+
+//** Utilities to read the MNG file
+
+typedef gboolean (*ChunkParser)(YGdkMngPixbuf*, guint8*, GError**);
+
+struct ChunkLoad {
+ guint8 Id;
+ ChunkParser Function;
+
+};
+
+static gboolean read_signature (FILE *file)
+{
+ guchar buf[8];
+ fread (buf, 1, 8, file);
+ return memcmp (buf, "\212MNG\r\n\032\n", 8) == 0;
+}
+
+static gboolean read_uint8 (FILE *file, guint8 *value)
+{
+ return fread (value, 1, 1, file) >= 1;
+}
+
+static gboolean read_uint32 (FILE *file, guint32 *value)
+{
+ guint8 buffer[4];
+ if (fread (buffer, 1, 4, file) < 4)
+ return FALSE;
+ *value = buffer[0] << 24; *value |= buffer[1] << 16;
+ *value |= buffer[2] << 8; *value |= buffer[3];
+ return TRUE;
+}
+
+static gboolean read_data (FILE *file, guint32 size, GdkPixbufLoader *loader,
+ GError **error)
+{
+ guchar data [size];
+ if (fread (data, 1, size, file) < size)
+ {
+ g_set_error (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
+ "Unexpected end of file when reading PNG chunk");
+ return FALSE;
+ }
+ return gdk_pixbuf_loader_write (loader, data, size, error);
+}
+
+static void image_prepared_cb (GdkPixbufLoader *loader, YGdkMngPixbuf *mng_pixbuf)
+{
+ GdkPixbuf *pix = gdk_pixbuf_loader_get_pixbuf (loader);
+ mng_pixbuf->frames = g_list_append (mng_pixbuf->frames, pix);
+}
+
+//** YGdkMngPixbuf
+
+G_DEFINE_TYPE (YGdkMngPixbuf, ygdk_mng_pixbuf, GDK_TYPE_PIXBUF_ANIMATION)
+
+static void ygdk_mng_pixbuf_init (YGdkMngPixbuf *pixbuf)
+{
+}
+
+GdkPixbufAnimation *ygdk_mng_pixbuf_new_from_file (const gchar *filename,
+ GError **error_msg)
+{
+ gboolean error = FALSE;
+ #define SET_ERROR(msg) { error = TRUE; \
+ g_set_error (error_msg, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE, msg); }
+
+ FILE *file = fopen (filename, "rb");
+ if (!file)
+ {
+ SET_ERROR ("Could not open specified file")
+ return NULL;
+ }
+
+ if (!read_signature (file))
+ {
+ SET_ERROR ("Not a MNG file")
+ return NULL;
+ }
+
+ YGdkMngPixbuf *mng_pixbuf = g_object_new (YGDK_TYPE_MNG_PIXBUF, NULL);
+ mng_pixbuf->iteration_max = 0x7fffffff;
+
+ guint32 chunk_size, chunk_id;
+ long offset;
+ GdkPixbufLoader *loader = NULL; /* currently loading... */
+ gboolean first_read = TRUE;
+
+ do {
+ error = !read_uint32 (file, &chunk_size);
+ error = error || !read_uint32 (file, &chunk_id);
+ if (error)
+ {
+ SET_ERROR ("Unexpected end of file on new chunk")
+ break;
+ }
+ offset = ftell (file) + chunk_size + 4/*CRC*/;
+
+ if (first_read && chunk_id != MNG_UINT_MHDR)
+ {
+ SET_ERROR ("MHDR chunk must come first")
+ break;
+ }
+
+ // not currently reading a PNG stream
+ if (!loader)
+ {
+ switch (chunk_id)
+ {
+ case MNG_UINT_MHDR:
+ if (!first_read)
+ {
+ SET_ERROR ("Only one MHDR chunk allowed")
+ break;
+ }
+
+ if (chunk_size == 7*4)
+ {
+ // Read MHDR chunk data
+ error = !read_uint32 (file, &mng_pixbuf->frame_width);
+ error = error || !read_uint32 (file, &mng_pixbuf->frame_height);
+ error = error || !read_uint32 (file, &mng_pixbuf->ticks_per_second);
+ if (error)
+ SET_ERROR ("Unexpected end of file on MHDR chunk")
+
+ /* Next atttributes: Nominal_layer_count, Nominal_frame_count,
+ Nominal_play_time, Simplicity_profile */
+ else if (mng_pixbuf->frame_width <= 0 ||
+ mng_pixbuf->frame_height <= 0 ||
+ mng_pixbuf->ticks_per_second < 0)
+ SET_ERROR ("Invalid MHDR parameter")
+ }
+ else
+ SET_ERROR ("MHDR chunk must be 28 bytes long")
+ break;
+ case MNG_UINT_IHDR:
+ loader = gdk_pixbuf_loader_new_with_type ("png", NULL);
+ g_signal_connect (G_OBJECT (loader), "area-prepared",
+ G_CALLBACK (image_prepared_cb), mng_pixbuf);
+ gdk_pixbuf_loader_set_size (loader, mng_pixbuf->frame_width,
+ mng_pixbuf->frame_height);
+
+ {
+ const guchar sig[8] = { 137, 80, 78, 71, 13, 10, 26, 10 };
+ if(!gdk_pixbuf_loader_write (loader, sig, 8, error_msg))
+ {
+ error = TRUE;
+ break;
+ }
+ }
+ break;
+ case MNG_UINT_TERM:
+ if (chunk_size > 1)
+ {
+ // Read TERM chunk data
+ guint8 t;
+ error = !read_uint8 (file, &t); // term action
+ if (t == 3 && chunk_size == 2+8)
+ {
+ error = error || !read_uint8 (file, &t); // after term action
+ error = error || !read_uint32 (file, &mng_pixbuf->last_frame_delay);
+ error = error || !read_uint32 (file, &mng_pixbuf->iteration_max);
+ if (error)
+ SET_ERROR ("Unexpected end of file on TERM chunk")
+ }
+ else
+ SET_ERROR ("TERM chunk must be 10 bytes when term action is 3")
+ }
+ else
+ SET_ERROR ("TERM chunk must have at least 1 byte")
+ break;
+ case MNG_UINT_BACK:
+ // TODO:
+ break;
+ case MNG_UINT_IDAT:
+ case MNG_UINT_IEND:
+ if (loader != NULL)
+ SET_ERROR ("Corrupted PNG chunk closures")
+ break;
+ case MNG_UINT_MEND:
+ default:
+ break;
+ }
+ }
+
+ if (error)
+ break;
+
+ // loading a PNG stream
+ if (loader)
+ {
+ fseek (file, -8, SEEK_CUR);
+ if (!read_data (file, chunk_size+8+4, loader, error_msg))
+ error = TRUE;
+ else if (chunk_id == MNG_UINT_IEND)
+ {
+ if (!gdk_pixbuf_loader_close (loader, error_msg))
+ {
+ error = TRUE;
+ break;
+ }
+ loader = NULL;
+ }
+ }
+
+ fseek (file, offset, SEEK_SET);
+ first_read = FALSE;
+ } while (chunk_id != MNG_UINT_MEND && !error);
+
+ if (error)
+ {
+ g_object_unref (G_OBJECT (mng_pixbuf));
+ return NULL;
+ }
+ #undef SET_ERROR
+
+ return GDK_PIXBUF_ANIMATION (mng_pixbuf);
+}
+
+gboolean ygdk_mng_pixbuf_is_static_image (GdkPixbufAnimation *anim)
+{
+ return FALSE;
+}
+
+GdkPixbuf *ygdk_mng_pixbuf_get_static_image (GdkPixbufAnimation *anim)
+{
+ YGdkMngPixbuf *mng_anim = YGDK_MNG_PIXBUF (anim);
+ return g_list_nth_data (mng_anim->frames, 0);
+}
+
+void ygdk_mng_pixbuf_get_size (GdkPixbufAnimation *anim, int *width, int *height)
+{
+ YGdkMngPixbuf *mng_anim = YGDK_MNG_PIXBUF (anim);
+ if (width) *width = mng_anim->frame_width;
+ if (height) *height = mng_anim->frame_height;
+}
+
+GdkPixbufAnimationIter *ygdk_mng_pixbuf_get_iter (GdkPixbufAnimation *anim,
+ const GTimeVal *start_time)
+{
+ YGdkMngPixbufIter *iter = g_object_new (YGDK_TYPE_MNG_PIXBUF_ITER, NULL);
+ iter->mng_pixbuf = YGDK_MNG_PIXBUF( anim );
+ iter->cur_frame = 0;
+ return GDK_PIXBUF_ANIMATION_ITER( iter );
+}
+
+static void ygdk_mng_pixbuf_class_init (YGdkMngPixbufClass *klass)
+{
+ ygdk_mng_pixbuf_parent_class = g_type_class_peek_parent (klass);
+
+ GdkPixbufAnimationClass *pixbuf_class = GDK_PIXBUF_ANIMATION_CLASS (klass);
+ pixbuf_class->is_static_image = ygdk_mng_pixbuf_is_static_image;
+ pixbuf_class->get_static_image = ygdk_mng_pixbuf_get_static_image;
+ pixbuf_class->get_size = ygdk_mng_pixbuf_get_size;
+ pixbuf_class->get_iter = ygdk_mng_pixbuf_get_iter;
+}
+
+//** YGdkMngPixbufIter
+
+G_DEFINE_TYPE (YGdkMngPixbufIter, ygdk_mng_pixbuf_iter, GDK_TYPE_PIXBUF_ANIMATION_ITER)
+
+static void ygdk_mng_pixbuf_iter_init (YGdkMngPixbufIter *iter)
+{
+}
+
+GdkPixbuf *ygdk_mng_pixbuf_iter_get_pixbuf (GdkPixbufAnimationIter *iter)
+{
+ YGdkMngPixbufIter *mng_iter = YGDK_MNG_PIXBUF_ITER (iter);
+ return g_list_nth_data (mng_iter->mng_pixbuf->frames, mng_iter->cur_frame);
+}
+
+gboolean ygdk_mng_pixbuf_iter_on_currently_loading_frame (GdkPixbufAnimationIter *iter)
+{
+ return FALSE;
+}
+
+int ygdk_mng_pixbuf_iter_get_delay_time (GdkPixbufAnimationIter *iter)
+{
+ YGdkMngPixbufIter *mng_iter = YGDK_MNG_PIXBUF_ITER (iter);
+ int delay = mng_iter->mng_pixbuf->ticks_per_second;
+ if (mng_iter->cur_frame == g_list_length (mng_iter->mng_pixbuf->frames)-1)
+ delay += mng_iter->mng_pixbuf->last_frame_delay;
+ return delay;
+}
+
+gboolean ygdk_mng_pixbuf_iter_advance (GdkPixbufAnimationIter *iter,
+ const GTimeVal *current_time)
+{
+ YGdkMngPixbufIter *mng_iter = YGDK_MNG_PIXBUF_ITER (iter);
+ YGdkMngPixbuf *mng_pixbuf = mng_iter->mng_pixbuf;
+ if (!mng_pixbuf->frames)
+ return FALSE;
+
+ gboolean can_advance = TRUE;
+ int frames_len = g_list_length (mng_pixbuf->frames);
+ if (mng_iter->cur_frame+1 == frames_len)
+ {
+ if (mng_pixbuf->iteration_max == 0x7fffffff ||
+ mng_iter->cur_iteration < mng_pixbuf->iteration_max)
+ mng_iter->cur_iteration++;
+ else
+ can_advance = FALSE;
+ }
+
+ if (can_advance)
+ mng_iter->cur_frame = (mng_iter->cur_frame+1) % frames_len;
+ return can_advance;
+}
+
+static void ygdk_mng_pixbuf_iter_class_init (YGdkMngPixbufIterClass *klass)
+{
+ ygdk_mng_pixbuf_iter_parent_class = g_type_class_peek_parent (klass);
+
+ GdkPixbufAnimationIterClass *iter_class = GDK_PIXBUF_ANIMATION_ITER_CLASS (klass);
+ iter_class->get_delay_time = ygdk_mng_pixbuf_iter_get_delay_time;
+ iter_class->get_pixbuf = ygdk_mng_pixbuf_iter_get_pixbuf;
+ iter_class->on_currently_loading_frame = ygdk_mng_pixbuf_iter_on_currently_loading_frame;
+ iter_class->advance = ygdk_mng_pixbuf_iter_advance;
+}
+
Added: trunk/gtk/unstable-libyui/src/mng-loader.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/mng-load…
==============================================================================
--- trunk/gtk/unstable-libyui/src/mng-loader.h (added)
+++ trunk/gtk/unstable-libyui/src/mng-loader.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,72 @@
+/* GdkPixbuf doesn't support MNG files... MNG is a wrapper around PNG
+ that adds movie playback capabilities.
+ This code doesn't even cover MNG-VLC (smallest subset of the format),
+ but is hopefully enough for common uses. */
+
+#ifndef YGDK_MNG_PIXBUF_H
+#define YGDK_MNG_PIXBUF_H
+
+#define GDK_PIXBUF_ENABLE_BACKEND
+#include <gdk-pixbuf/gdk-pixbuf-animation.h>
+
+G_BEGIN_DECLS
+#define YGDK_TYPE_MNG_PIXBUF (ygdk_mng_pixbuf_get_type ())
+#define YGDK_MNG_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGDK_TYPE_MNG_PIXBUF, YGdkMngPixbuf))
+#define YGDK_MNG_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGDK_TYPE_MNG_PIXBUF, YGdkMngPixbufClass))
+#define YGDK_IS_MNG_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGDK_TYPE_MNG_PIXBUF))
+#define YGDK_IS_MNG_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGDK_TYPE_MNG_PIXBUF))
+#define YGDK_MNG_PIXBUF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGK_TYPE_MNG_PIXBUF, YGdkMngPixbufClass))
+
+typedef struct YGdkMngPixbuf
+{
+ GdkPixbufAnimation parent;
+
+ // private: (use GdkPixbufAnimation API)
+ GList *frames; // of GdkPixbufs
+ // MHDR header
+ guint32 frame_width, frame_height, ticks_per_second;
+ // TERM header
+ guint32 last_frame_delay, iteration_max;
+} YGdkMngPixbuf;
+
+typedef struct YGdkMngPixbufClass
+{
+ GdkPixbufAnimationClass parent_class;
+} YGdkMngPixbufClass;
+
+GdkPixbufAnimation *ygdk_mng_pixbuf_new_from_file (const gchar *filename, GError **error_msg);
+
+GType ygdk_mng_pixbuf_get_type (void) G_GNUC_CONST;
+
+#define YGDK_TYPE_MNG_PIXBUF_ITER (ygdk_mng_pixbuf_iter_get_type ())
+#define YGDK_MNG_PIXBUF_ITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGDK_TYPE_MNG_PIXBUF_ITER, YGdkMngPixbufIter))
+#define YGDK_MNG_PIXBUF_ITER_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), YGDK_TYPE_MNG_PIXBUF_ITER, YGdkMngPixbufIterClass))
+#define YGDK_IS_MNG_PIXBUF_ITER_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), YGDK_TYPE_MNG_PIXBUF_ITER))
+#define YGDK_MNG_PIXBUF_ITER_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), YGDK_TYPE_MNG_PIXBUF_ITER, YGdkMngPixbufIterClass))
+
+typedef struct YGdkMngPixbufIter {
+ GdkPixbufAnimationIter parent;
+
+ // private:
+ YGdkMngPixbuf *mng_pixbuf;
+ int cur_frame, cur_iteration;
+} YGdkMngPixbufIter;
+
+typedef struct YGdkMngPixbufIterClass {
+ GdkPixbufAnimationIterClass parent_class;
+} YGdkMngPixbufIterClass;
+
+GType ygdk_mng_pixbuf_iter_get_type (void) G_GNUC_CONST;
+
+G_END_DECLS
+#endif /*YGDK_MNG_PIXBUF_H*/
+
Added: trunk/gtk/unstable-libyui/src/test.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/test.cc?…
==============================================================================
--- trunk/gtk/unstable-libyui/src/test.cc (added)
+++ trunk/gtk/unstable-libyui/src/test.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,186 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+#include <config.h>
+#include <stdio.h>
+#include <YUI.h>
+#include <gtk/gtk.h>
+#include <YGUtils.h>
+
+bool testMapKBAccel()
+{
+ fprintf (stderr, "Test map KB accels\t");
+ struct {
+ const char *in;
+ const char *out;
+ } aTests[] = {
+ { "Foo&", "Foo_" },
+ { "B&aa", "B_aa" },
+ { "&Foo", "_Foo" },
+ { "_Foo", "__Foo" },
+// FIXME - unfortunately it seems yast has noescaping policy
+// for labels (hmm) at least judging from the code at
+// ncurses/src/NCstring.cc (getHotKey)
+// { "&&Foo", "&Foo" },
+ { NULL, NULL }
+ };
+ for (int i = 0; aTests[i].in; i++) {
+ string mapped = YGUtils::mapKBAccel(aTests[i].in);
+ if (mapped != aTests[i].out) {
+ fprintf (stderr, "Mis-mapped accel '%s' vs '%s'\n",
+ mapped.c_str(), aTests[i].out);
+ return false;
+ }
+ fprintf (stderr, "%d ", i);
+ }
+ fprintf (stderr, "\n");
+ return true;
+}
+
+bool testFilterText ()
+{
+ fprintf (stderr, "Test filter text\t");
+ struct {
+ const char *in;
+ const char *valid;
+ const char *out;
+ } aTests[] = {
+ { "Foo", "F", "F" },
+ { "Foo", "Fo", "Foo" },
+ { "Baa", "a", "aa" },
+ { "Kuckles", "Ks", "Ks" },
+ { NULL, NULL }
+ };
+ for (int i = 0; aTests[i].in; i++) {
+ string filtered = YGUtils::filterText
+ (aTests[i].in, strlen (aTests[i].in), aTests[i].valid);
+ if (filtered != aTests[i].out) {
+ fprintf (stderr, "Mis-filtered text '%s' vs '%s'\n",
+ filtered.c_str(), aTests[i].out);
+ return false;
+ }
+ fprintf (stderr, "%d ", i);
+ }
+ fprintf (stderr, "\n");
+ return true;
+}
+
+bool testXHtmlConvert()
+{
+ fprintf (stderr, "Test HTML->XML rewrite \t");
+ struct {
+ const char *in;
+ const char *out;
+ } aTests[] = {
+ // preservation
+ { "<p>foo</p>", "<body><p>foo</p></body>" },
+ // product substitution
+ { "&product;", "<body>foo</body>" },
+ { " <p>&product;</p>", "<body><p>foo</p></body>" },
+ // outer tag
+ { "some text", "<body>some text</body>" },
+ // unquoted attributes
+ { "<foo baa=Foo></foo>", "<body><foo baa=\"Foo\"></foo></body>" },
+ // break tags
+ { "<br>", "<body><br/></body>" },
+ { "<hr>", "<body><hr/></body>" },
+ // unclosed tags
+ { "<p>", "<body><p></p></body>" },
+ { "<b>unclosed", "<body><b>unclosed</b></body>" },
+ { "<b><i>bold</i>", "<body><b><i>bold</i></b></body>" },
+ { "<i><i>bold</i>", "<body><i><i>bold</i></i></body>" },
+ { "<unclosed foo=baa>",
+ "<body><unclosed foo=\"baa\"></unclosed></body>" },
+ // unclosed 'early close' tags
+ { "<i>Some<p>text<p> here<p></i>",
+ "<body><i>Some<p>text</p><p> here</p><p></p></i></body>" },
+ { "<ul><li>foo<li>baa",
+ "<body><ul><li>foo</li><li>baa</li></ul></body>" },
+ { "no outer<p>unclosed<p>several<b>unclosed bold",
+ "<body>no outer<p>unclosed</p><p>several<b>unclosed bold</b></p></body>" },
+ // multiple white spacing -- proper HTML would had collapsed those multiple
+ // spaces -- not important anyway
+ { "one day I will do", "<body>one day I will do</body>" },
+ // comment
+ { "we need <b>to <!-- really need to? --> do something</b> about it.",
+ "<body>we need <b>to do something</b> about it.</body>" },
+ { NULL, NULL }
+ };
+ for (int i = 0; aTests[i].in; i++) {
+ gchar *out = ygutils_convert_to_xhmlt_and_subst (aTests[i].in, "foo");
+ if (strcmp (out, aTests[i].out)) {
+ fprintf (stderr, "Mis-converted entry %d XML '%s' should be '%s'\n",
+ i, out, aTests[i].out);
+ return false;
+ }
+ fprintf (stderr, "%d ", i);
+ g_free (out);
+ }
+ fprintf (stderr, "\n");
+ return true;
+}
+
+bool testStrCmp()
+{
+ fprintf (stderr, "Test our strcmp\t");
+ struct {
+ const char *in1, *in2;
+ int out;
+ } aTests[] = {
+ { "aaa", "aaaa", 1 },
+ { "29", "235", -1 },
+ { "aA", "Aa", 0 },
+ { "200rt9", "200rT9", 0 },
+ { NULL, NULL }
+ };
+ for (int i = 0; aTests[i].in1; i++) {
+ int ret = YGUtils::strcmp(aTests[i].in1, aTests[i].in2);
+ if (ret * aTests[i].out < 0 || (ret && !aTests[i].out) || (!ret && aTests[i].out)) {
+ fprintf (stderr, "Mis-mapped str comp '%d' vs '%d' ('%s' to '%s')\n",
+ ret, aTests[i].out, aTests[i].in1, aTests[i].in2);
+ return false;
+ }
+ fprintf (stderr, "%d ", i);
+ }
+ fprintf (stderr, "\n");
+ return true;
+}
+
+bool testMarkupEscape()
+{
+ fprintf (stderr, "Test markup escape\t");
+ struct {
+ const char *in;
+ const char *out;
+ bool escape_br;
+ } aTests[] = {
+ { "< text />", "< text />" },
+ { "um\ndois\ntres", "um\ndois\ntres" },
+ { NULL, NULL }
+ };
+ for (int i = 0; aTests[i].in; i++) {
+ string out = YGUtils::escape_markup (aTests[i].in);
+ if (out != aTests[i].out) {
+ fprintf (stderr, "Mis-converted entry %d XML '%s' should be '%s'\n",
+ i, out.c_str(), aTests[i].out);
+ return false;
+ }
+ fprintf (stderr, "%d ", i);
+ }
+ fprintf (stderr, "\n");
+ return true;
+}
+
+int main (int argc, char **argv)
+{
+ bool bSuccess = true;
+
+ bSuccess &= testMapKBAccel();
+ bSuccess &= testFilterText();
+ bSuccess &= testXHtmlConvert();
+ bSuccess &= testStrCmp();
+ bSuccess &= testMarkupEscape();
+
+ return !bSuccess;
+}
Added: trunk/gtk/unstable-libyui/src/ygdkmngloader.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygdkmngl…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygdkmngloader.c (added)
+++ trunk/gtk/unstable-libyui/src/ygdkmngloader.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,411 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGdkMngLoader image loader */
+// check the header file for information about this loader
+
+#include "ygdkmngloader.h"
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <assert.h>
+#include <sys/mman.h>
+
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+/* A few chunks ids */
+#define MNG_UINT_MHDR 0x4d484452L
+#define MNG_UINT_BACK 0x4241434bL
+#define MNG_UINT_PLTE 0x504c5445L
+#define MNG_UINT_tRNS 0x74524e53L
+#define MNG_UINT_IHDR 0x49484452L
+#define MNG_UINT_IDAT 0x49444154L
+#define MNG_UINT_IEND 0x49454e44L
+#define MNG_UINT_MEND 0x4d454e44L
+#define MNG_UINT_FRAM 0x4652414dL
+#define MNG_UINT_LOOP 0x4c4f4f50L
+#define MNG_UINT_ENDL 0x454e444cL
+#define MNG_UINT_TERM 0x5445524dL
+
+//** Utilities to read the MNG file
+
+typedef struct DataStream {
+ const guint8 *data;
+ const long size;
+ long offset;
+} DataStream;
+static DataStream data_stream_constructor (const guint8 *raw_data, long size)
+{
+ DataStream data = { raw_data, size, 0 };
+ return data;
+}
+
+static gboolean read_signature (DataStream *data)
+{
+ if (data->offset+8 > data->size)
+ return FALSE;
+ data->offset += 8;
+ return memcmp (data->data + data->offset-8, "\212MNG\r\n\032\n", 8) == 0;
+}
+
+static gboolean read_uint8 (DataStream *data, guint8 *value)
+{
+ if (data->offset+1 > data->size)
+ return FALSE;
+ *value = data->data [data->offset++];
+ return TRUE;
+}
+
+static gboolean read_uint32 (DataStream *data, guint32 *value)
+{
+ if (data->offset+4 > data->size)
+ return FALSE;
+ *value = data->data[data->offset+0] << 24;
+ *value |= data->data[data->offset+1] << 16;
+ *value |= data->data[data->offset+2] << 8;
+ *value |= data->data[data->offset+3];
+ data->offset += 4;
+ return TRUE;
+}
+
+static gboolean read_data (DataStream *data, guint32 size, GdkPixbufLoader *loader,
+ GError **error)
+{
+ if (data->offset+size > data->size)
+ {
+ g_set_error (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
+ "Unexpected end of file when reading PNG chunk");
+ return FALSE;
+ }
+ gboolean ret;
+ ret = gdk_pixbuf_loader_write (loader, data->data + data->offset, size, error);
+ data->offset += size;
+ return ret;
+}
+
+static void image_prepared_cb (GdkPixbufLoader *loader, YGdkMngPixbuf *mng_pixbuf)
+{
+ GdkPixbuf *pix = gdk_pixbuf_loader_get_pixbuf (loader);
+ mng_pixbuf->frames = g_list_append (mng_pixbuf->frames, pix);
+}
+
+//** YGdkMngPixbuf
+
+G_DEFINE_TYPE (YGdkMngPixbuf, ygdk_mng_pixbuf, GDK_TYPE_PIXBUF_ANIMATION)
+
+static void ygdk_mng_pixbuf_init (YGdkMngPixbuf *pixbuf)
+{
+}
+
+gboolean ygdk_mng_pixbuf_is_file_mng (const gchar *filename)
+{
+ FILE *file = fopen (filename, "rb");
+ if (!file)
+ goto is_file_mng_failed;
+
+ guchar raw_data [8];
+ if (fread (raw_data, 1, 8, file) < 8)
+ goto is_file_mng_failed;
+
+ gboolean ret = ygdk_mng_pixbuf_is_data_mng (raw_data, 8);
+ fclose (file);
+ return ret;
+
+is_file_mng_failed:
+ if (file)
+ fclose (file);
+ return FALSE;
+}
+
+gboolean ygdk_mng_pixbuf_is_data_mng (const guint8 *raw_data, long size)
+{
+ DataStream data = data_stream_constructor (raw_data, size);
+ return read_signature (&data);
+}
+
+#define SET_ERROR(msg) { error = TRUE; \
+ g_set_error (error_msg, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE, msg); }
+
+GdkPixbufAnimation *ygdk_mng_pixbuf_new_from_file (const gchar *filename,
+ GError **error_msg)
+{
+ gboolean error = FALSE;
+ FILE *file = fopen (filename, "rb");
+ if (!file)
+ {
+ SET_ERROR ("Could not open specified file")
+ return NULL;
+ }
+
+ fseek (file, 0, SEEK_END);
+ long file_size = ftell (file);
+ fseek (file, 0, SEEK_SET);
+
+ GdkPixbufAnimation *mng_pixbuf = 0;
+ guchar *data = mmap (NULL, file_size, PROT_READ, MAP_PRIVATE,
+ fileno (file), 0);
+ if (data == MAP_FAILED)
+ SET_ERROR ("Could not map file")
+ else
+ {
+ mng_pixbuf = ygdk_mng_pixbuf_new_from_data (data, file_size, error_msg);
+ munmap (data, file_size);
+ }
+ fclose (file);
+ return mng_pixbuf;
+}
+
+GdkPixbufAnimation *ygdk_mng_pixbuf_new_from_data (const guint8 *raw_data, long size,
+ GError **error_msg)
+{
+ DataStream data = data_stream_constructor (raw_data, size);
+
+ gboolean error = FALSE;
+ if (!read_signature (&data))
+ {
+ SET_ERROR ("Not a MNG file")
+ return NULL;
+ }
+
+ YGdkMngPixbuf *mng_pixbuf = g_object_new (YGDK_TYPE_MNG_PIXBUF, NULL);
+ mng_pixbuf->iteration_max = 0x7fffffff;
+
+ guint32 chunk_size, chunk_id;
+ long chunk_offset;
+ GdkPixbufLoader *loader = NULL; /* currently loading... */
+ gboolean first_read = TRUE;
+
+ do {
+ error = !read_uint32 (&data, &chunk_size);
+ error = error || !read_uint32 (&data, &chunk_id);
+ if (error)
+ {
+ SET_ERROR ("Unexpected end of file on new chunk")
+ break;
+ }
+ chunk_offset = data.offset + chunk_size + 4/*CRC*/;
+
+ if (first_read && chunk_id != MNG_UINT_MHDR)
+ {
+ SET_ERROR ("MHDR chunk must come first")
+ break;
+ }
+
+ // not currently reading a PNG stream
+ if (!loader)
+ {
+ switch (chunk_id)
+ {
+ case MNG_UINT_MHDR:
+ if (!first_read)
+ {
+ SET_ERROR ("Only one MHDR chunk allowed")
+ break;
+ }
+
+ if (chunk_size == 7*4)
+ {
+ // Read MHDR chunk data
+ error = !read_uint32 (&data, &mng_pixbuf->frame_width);
+ error = error || !read_uint32 (&data, &mng_pixbuf->frame_height);
+ error = error || !read_uint32 (&data, &mng_pixbuf->ticks_per_second);
+ if (error)
+ SET_ERROR ("Unexpected end of file on MHDR chunk")
+ /* Next atttributes: Nominal_layer_count, Nominal_frame_count,
+ Nominal_play_time, Simplicity_profile */
+ else if (mng_pixbuf->frame_width <= 0 ||
+ mng_pixbuf->frame_height <= 0 ||
+ mng_pixbuf->ticks_per_second < 0)
+ SET_ERROR ("Invalid MHDR parameter")
+//fprintf(stderr, "ticks per second: %d\n", mng_pixbuf->ticks_per_second);
+ }
+ else
+ SET_ERROR ("MHDR chunk must be 28 bytes long")
+ break;
+ case MNG_UINT_IHDR:
+ loader = gdk_pixbuf_loader_new_with_type ("png", NULL);
+ g_signal_connect (G_OBJECT (loader), "area-prepared",
+ G_CALLBACK (image_prepared_cb), mng_pixbuf);
+ gdk_pixbuf_loader_set_size (loader, mng_pixbuf->frame_width,
+ mng_pixbuf->frame_height);
+
+ {
+ const guchar sig[8] = { 137, 80, 78, 71, 13, 10, 26, 10 };
+ if(!gdk_pixbuf_loader_write (loader, sig, 8, error_msg))
+ {
+ error = TRUE;
+ break;
+ }
+ }
+ break;
+ case MNG_UINT_TERM:
+ if (chunk_size > 1)
+ {
+ // Read TERM chunk data
+ guint8 t;
+ error = !read_uint8 (&data, &t); // term action
+ if (t == 3 && chunk_size == 2+8)
+ {
+ error = error || !read_uint8 (&data, &t); // after term action
+ error = error || !read_uint32 (&data, &mng_pixbuf->last_frame_delay);
+ error = error || !read_uint32 (&data, &mng_pixbuf->iteration_max);
+ if (error)
+ SET_ERROR ("Unexpected end of file on TERM chunk")
+ }
+ else
+ SET_ERROR ("TERM chunk must be 10 bytes when term action is 3")
+ }
+ else
+ SET_ERROR ("TERM chunk must have at least 1 byte")
+ break;
+ case MNG_UINT_BACK:
+ // TODO:
+ break;
+ case MNG_UINT_IDAT:
+ case MNG_UINT_IEND:
+ if (loader != NULL)
+ SET_ERROR ("Corrupted PNG chunk closures")
+ break;
+ case MNG_UINT_MEND:
+ default:
+ break;
+ }
+ }
+
+ if (error)
+ break;
+
+ // loading a PNG stream
+ if (loader)
+ {
+ data.offset -= 8;
+ if (!read_data (&data, chunk_size+8+4, loader, error_msg))
+ error = TRUE;
+ else if (chunk_id == MNG_UINT_IEND)
+ {
+ if (!gdk_pixbuf_loader_close (loader, error_msg))
+ {
+ error = TRUE;
+ break;
+ }
+ loader = NULL;
+ }
+ }
+
+ data.offset = chunk_offset;
+ first_read = FALSE;
+ } while (chunk_id != MNG_UINT_MEND && !error);
+
+ if (error)
+ {
+ g_object_unref (G_OBJECT (mng_pixbuf));
+ return NULL;
+ }
+ return GDK_PIXBUF_ANIMATION (mng_pixbuf);
+}
+
+#undef SET_ERROR
+
+static gboolean ygdk_mng_pixbuf_is_static_image (GdkPixbufAnimation *anim)
+{
+ YGdkMngPixbuf *mng_anim = YGDK_MNG_PIXBUF (anim);
+ return g_list_length (mng_anim->frames) == 1;
+}
+
+static GdkPixbuf *ygdk_mng_pixbuf_get_static_image (GdkPixbufAnimation *anim)
+{
+ YGdkMngPixbuf *mng_anim = YGDK_MNG_PIXBUF (anim);
+ return g_list_nth_data (mng_anim->frames, 0);
+}
+
+static void ygdk_mng_pixbuf_get_size (GdkPixbufAnimation *anim, int *width, int *height)
+{
+ YGdkMngPixbuf *mng_anim = YGDK_MNG_PIXBUF (anim);
+ if (width) *width = mng_anim->frame_width;
+ if (height) *height = mng_anim->frame_height;
+}
+
+static GdkPixbufAnimationIter *ygdk_mng_pixbuf_get_iter (GdkPixbufAnimation *anim,
+ const GTimeVal *start_time)
+{
+ YGdkMngPixbufIter *iter = g_object_new (YGDK_TYPE_MNG_PIXBUF_ITER, NULL);
+ iter->mng_pixbuf = YGDK_MNG_PIXBUF( anim );
+ iter->cur_frame = 0;
+ return GDK_PIXBUF_ANIMATION_ITER( iter );
+}
+
+static void ygdk_mng_pixbuf_class_init (YGdkMngPixbufClass *klass)
+{
+ ygdk_mng_pixbuf_parent_class = g_type_class_peek_parent (klass);
+
+ GdkPixbufAnimationClass *pixbuf_class = GDK_PIXBUF_ANIMATION_CLASS (klass);
+ pixbuf_class->is_static_image = ygdk_mng_pixbuf_is_static_image;
+ pixbuf_class->get_static_image = ygdk_mng_pixbuf_get_static_image;
+ pixbuf_class->get_size = ygdk_mng_pixbuf_get_size;
+ pixbuf_class->get_iter = ygdk_mng_pixbuf_get_iter;
+}
+
+//** YGdkMngPixbufIter
+
+G_DEFINE_TYPE (YGdkMngPixbufIter, ygdk_mng_pixbuf_iter, GDK_TYPE_PIXBUF_ANIMATION_ITER)
+
+static void ygdk_mng_pixbuf_iter_init (YGdkMngPixbufIter *iter)
+{
+}
+
+static GdkPixbuf *ygdk_mng_pixbuf_iter_get_pixbuf (GdkPixbufAnimationIter *iter)
+{
+ YGdkMngPixbufIter *mng_iter = YGDK_MNG_PIXBUF_ITER (iter);
+ return g_list_nth_data (mng_iter->mng_pixbuf->frames, mng_iter->cur_frame);
+}
+
+static gboolean ygdk_mng_pixbuf_iter_on_currently_loading_frame (GdkPixbufAnimationIter *iter)
+{
+ return FALSE;
+}
+
+static int ygdk_mng_pixbuf_iter_get_delay_time (GdkPixbufAnimationIter *iter)
+{
+ YGdkMngPixbufIter *mng_iter = YGDK_MNG_PIXBUF_ITER (iter);
+ int delay = 1000.0 / mng_iter->mng_pixbuf->ticks_per_second;
+ if (mng_iter->cur_frame == g_list_length (mng_iter->mng_pixbuf->frames)-1)
+ delay += mng_iter->mng_pixbuf->last_frame_delay;
+ return delay;
+}
+
+static gboolean ygdk_mng_pixbuf_iter_advance (GdkPixbufAnimationIter *iter,
+ const GTimeVal *current_time)
+{
+ YGdkMngPixbufIter *mng_iter = YGDK_MNG_PIXBUF_ITER (iter);
+ YGdkMngPixbuf *mng_pixbuf = mng_iter->mng_pixbuf;
+ if (!mng_pixbuf->frames)
+ return FALSE;
+
+ gboolean can_advance = TRUE;
+ int frames_len = g_list_length (mng_pixbuf->frames);
+ if (mng_iter->cur_frame+1 == frames_len)
+ {
+ if (mng_pixbuf->iteration_max == 0x7fffffff ||
+ mng_iter->cur_iteration < mng_pixbuf->iteration_max)
+ mng_iter->cur_iteration++;
+ else
+ can_advance = FALSE;
+ }
+
+ if (can_advance)
+ mng_iter->cur_frame = (mng_iter->cur_frame+1) % frames_len;
+ return can_advance;
+}
+
+static void ygdk_mng_pixbuf_iter_class_init (YGdkMngPixbufIterClass *klass)
+{
+ ygdk_mng_pixbuf_iter_parent_class = g_type_class_peek_parent (klass);
+
+ GdkPixbufAnimationIterClass *iter_class = GDK_PIXBUF_ANIMATION_ITER_CLASS (klass);
+ iter_class->get_delay_time = ygdk_mng_pixbuf_iter_get_delay_time;
+ iter_class->get_pixbuf = ygdk_mng_pixbuf_iter_get_pixbuf;
+ iter_class->on_currently_loading_frame = ygdk_mng_pixbuf_iter_on_currently_loading_frame;
+ iter_class->advance = ygdk_mng_pixbuf_iter_advance;
+}
+
Added: trunk/gtk/unstable-libyui/src/ygdkmngloader.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygdkmngl…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygdkmngloader.h (added)
+++ trunk/gtk/unstable-libyui/src/ygdkmngloader.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,80 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* GdkPixbuf doesn't support MNG files... MNG extends PNG adding movie playback
+ capabilities.
+ This code aims for MNG-VLC (smallest subset of the format), though
+ it isn't completely compliable.
+*/
+
+#ifndef YGDK_MNG_PIXBUF_H
+#define YGDK_MNG_PIXBUF_H
+
+#define GDK_PIXBUF_ENABLE_BACKEND
+#include <gdk-pixbuf/gdk-pixbuf-animation.h>
+G_BEGIN_DECLS
+
+#define YGDK_TYPE_MNG_PIXBUF (ygdk_mng_pixbuf_get_type ())
+#define YGDK_MNG_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGDK_TYPE_MNG_PIXBUF, YGdkMngPixbuf))
+#define YGDK_MNG_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGDK_TYPE_MNG_PIXBUF, YGdkMngPixbufClass))
+#define YGDK_IS_MNG_PIXBUF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGDK_TYPE_MNG_PIXBUF))
+#define YGDK_IS_MNG_PIXBUF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGDK_TYPE_MNG_PIXBUF))
+#define YGDK_MNG_PIXBUF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGK_TYPE_MNG_PIXBUF, YGdkMngPixbufClass))
+
+typedef struct YGdkMngPixbuf
+{
+ GdkPixbufAnimation parent;
+
+ // private: (use GdkPixbufAnimation API)
+ GList *frames; // of GdkPixbufs
+ // MHDR header
+ guint32 frame_width, frame_height, ticks_per_second;
+ // TERM header
+ guint32 last_frame_delay, iteration_max;
+} YGdkMngPixbuf;
+
+typedef struct YGdkMngPixbufClass
+{
+ GdkPixbufAnimationClass parent_class;
+} YGdkMngPixbufClass;
+
+GdkPixbufAnimation *ygdk_mng_pixbuf_new_from_file (const gchar *filename, GError **error);
+GdkPixbufAnimation *ygdk_mng_pixbuf_new_from_data (const guint8 *data, long size, GError **error);
+gboolean ygdk_mng_pixbuf_is_file_mng (const gchar *filename);
+gboolean ygdk_mng_pixbuf_is_data_mng (const guint8 *data, long size);
+
+GType ygdk_mng_pixbuf_get_type (void) G_GNUC_CONST;
+
+#define YGDK_TYPE_MNG_PIXBUF_ITER (ygdk_mng_pixbuf_iter_get_type ())
+#define YGDK_MNG_PIXBUF_ITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGDK_TYPE_MNG_PIXBUF_ITER, YGdkMngPixbufIter))
+#define YGDK_MNG_PIXBUF_ITER_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), YGDK_TYPE_MNG_PIXBUF_ITER, YGdkMngPixbufIterClass))
+#define YGDK_IS_MNG_PIXBUF_ITER_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), YGDK_TYPE_MNG_PIXBUF_ITER))
+#define YGDK_MNG_PIXBUF_ITER_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), YGDK_TYPE_MNG_PIXBUF_ITER, YGdkMngPixbufIterClass))
+
+typedef struct YGdkMngPixbufIter {
+ GdkPixbufAnimationIter parent;
+
+ // private:
+ YGdkMngPixbuf *mng_pixbuf;
+ int cur_frame, cur_iteration;
+} YGdkMngPixbufIter;
+
+typedef struct YGdkMngPixbufIterClass {
+ GdkPixbufAnimationIterClass parent_class;
+} YGdkMngPixbufIterClass;
+
+GType ygdk_mng_pixbuf_iter_get_type (void) G_GNUC_CONST;
+
+G_END_DECLS
+#endif /*YGDK_MNG_PIXBUF_H*/
+
Added: trunk/gtk/unstable-libyui/src/ygtkbargraph.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkbarg…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkbargraph.c (added)
+++ trunk/gtk/unstable-libyui/src/ygtkbargraph.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,196 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkBarGraph widget */
+// check the header file for information about this widget
+
+#include <config.h>
+#include "ygtkbargraph.h"
+#include <gtk/gtklabel.h>
+#include <gtk/gtkframe.h>
+#include <gtk/gtkeventbox.h>
+
+G_DEFINE_TYPE (YGtkBarGraph, ygtk_bar_graph, YGTK_TYPE_RATIO_HBOX)
+
+static void ygtk_bar_graph_init (YGtkBarGraph *bar)
+{
+// ygtk_ratio_box_set_homogeneous (YGTK_RATIO_BOX (bar), TRUE);
+
+ bar->m_tooltips = gtk_tooltips_new();
+ gtk_container_set_border_width (GTK_CONTAINER (bar), 12);
+}
+
+/* Just to avoid the size getting too big, when we have little bars. */
+static void ygtk_bar_graph_size_request (GtkWidget *widget, GtkRequisition *requisition)
+{
+ GTK_WIDGET_CLASS (ygtk_bar_graph_parent_class)->size_request (widget, requisition);
+ const int max_width = 250;
+ if (requisition->width > max_width)
+ requisition->width = max_width;
+ requisition->height += 6;
+}
+
+GtkWidget *ygtk_bar_graph_new (void)
+{
+ return g_object_new (YGTK_TYPE_BAR_GRAPH, NULL);
+}
+
+void ygtk_bar_graph_create_entries (YGtkBarGraph *bar, guint entries)
+{
+ // Remove the ones in excess
+ guint i;
+ for (i = entries; i < g_list_length (YGTK_RATIO_BOX (bar)->children); i++)
+ gtk_container_remove (GTK_CONTAINER (bar),
+ (GtkWidget*) g_list_nth_data (YGTK_RATIO_BOX (bar)->children, i));
+
+ // Add new ones, if missing
+ for (i = g_list_length (YGTK_RATIO_BOX (bar)->children); i < entries; i++) {
+ GtkWidget *label = ygtk_colored_label_new();
+ gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_CENTER);
+
+ YGtkColoredLabel *color_label = YGTK_COLORED_LABEL (label);
+ ygtk_colored_label_set_shadow_type (color_label, GTK_SHADOW_OUT);
+
+ // we need a GtkEventBox or something, so we may assign a tooltip to it
+ GtkWidget *box = gtk_event_box_new();
+ gtk_container_add (GTK_CONTAINER (box), label);
+ gtk_container_add (GTK_CONTAINER (bar), box);
+
+ gtk_widget_show_all (box);
+ }
+}
+
+void ygtk_bar_graph_setup_entry (YGtkBarGraph *bar, int index,
+ const gchar *label_entry, int value)
+{
+ YGtkRatioBoxChild *box_child = (YGtkRatioBoxChild *)
+ g_list_nth_data (YGTK_RATIO_BOX (bar)->children, index);
+
+ g_return_if_fail (box_child);
+ GtkWidget *box = box_child->widget;
+ GtkWidget *label = gtk_bin_get_child (GTK_BIN (box));
+
+ if (value < 0)
+ value = 0;
+
+ // Reading label text
+ if (label_entry) {
+ GString *label_text = g_string_new (label_entry);
+ { // Replace %1 by value(i)
+ guint i;
+ for (i = 0; i < label_text->len; i++)
+ if (label_text->str[i] == '%' && label_text->str[i+1] == '1') {
+ gchar *value_str = g_strdup_printf ("%d", value);
+ label_text = g_string_erase (label_text, i, 2);
+ label_text = g_string_insert (label_text, i, value_str);
+ g_free (value_str);
+ }
+ }
+ gtk_label_set_label (GTK_LABEL (label), label_text->str);
+
+ // Tooltip with the label -- useful if the bar entry gets too small
+ gtk_tooltips_set_tip (bar->m_tooltips, box, label_text->str, NULL);
+ }
+
+ // Set proportion
+ gtk_widget_set_size_request (box, 10, -1); // for homogeneous...
+ ygtk_ratio_box_set_child_packing (YGTK_RATIO_BOX (bar), box, MAX (value, 1),
+ TRUE, TRUE, 0);
+
+ // Set background color
+ // The Tango palette
+ const guint palette [][3] = {
+ { 138, 226, 52 }, // Chameleon 1
+ { 252, 175, 62 }, // Orange 1
+ { 114, 159, 207 }, // Sky Blue 1
+ { 233, 185, 110 }, // Chocolate 1
+ { 239, 41, 41 }, // Scarlet Red 1
+ { 252, 233, 79 }, // Butter 1
+ { 173, 127, 168 }, // Plum 1
+ { 115, 210, 22 }, // Chameleon 2
+ { 245, 121, 0 }, // Orange 2
+ { 52, 101, 164 }, // Sky Blue 2
+ { 193, 125, 17 }, // Chocolate 2
+ { 204, 0, 0 }, // Scarlet Red 2
+ { 237, 212, 0 }, // Butter 2
+ { 117, 80, 123 }, // Plum 2
+ { 78, 154, 6 }, // Chameleon 3
+ { 206, 92, 0 }, // Orange 3
+ { 32, 74, 135 }, // Sky Blue 3
+ { 143, 89, 2 }, // Chocolate 3
+ { 164, 0, 0 }, // Scarlet Red 3
+ { 196, 160, 0 }, // Butter 3
+ { 92, 53, 102 }, // Plum 3
+ { 238, 238, 236 }, // Aluminium 1
+ { 211, 215, 207 }, // Aluminium 2
+ { 186, 189, 182 }, // Aluminium 3
+ { 136, 138, 133 }, // Aluminium 4
+ { 85, 87, 83 }, // Aluminium 5
+ { 46, 52, 54 }, // Aluminium 6
+ };
+
+ const guint *color = palette [index % G_N_ELEMENTS (palette)];
+
+ YGtkColoredLabel *color_label = YGTK_COLORED_LABEL (label);
+ ygtk_colored_label_set_background (color_label, color[0], color[1], color[2]);
+}
+
+static void ygtk_bar_graph_class_init (YGtkBarGraphClass *klass)
+{
+ ygtk_bar_graph_parent_class = g_type_class_peek_parent (klass);
+
+ GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->size_request = ygtk_bar_graph_size_request;
+}
+
+//** YGtkColoredLabel
+
+G_DEFINE_TYPE (YGtkColoredLabel, ygtk_colored_label, GTK_TYPE_LABEL)
+
+static void ygtk_colored_label_init (YGtkColoredLabel *label)
+{
+ label->shadow = GTK_SHADOW_NONE;
+}
+
+static gboolean ygtk_colored_label_expose_event (GtkWidget *widget, GdkEventExpose *event)
+{
+ GtkStyle *style = gtk_widget_get_style (widget);
+ GtkAllocation *alloc = &widget->allocation;
+ gtk_paint_box (style, widget->window, GTK_STATE_NORMAL,
+ YGTK_COLORED_LABEL (widget)->shadow, &event->area,
+ widget, NULL, alloc->x, alloc->y, alloc->width, alloc->height);
+
+ GTK_WIDGET_CLASS (ygtk_colored_label_parent_class)->expose_event (widget, event);
+ return FALSE;
+}
+
+GtkWidget *ygtk_colored_label_new (void)
+{ return g_object_new (YGTK_TYPE_COLORED_LABEL, NULL); }
+
+void ygtk_colored_label_set_foreground (YGtkColoredLabel *label, guint red,
+ guint green, guint blue)
+{
+ GdkColor color = { 0, red << 8, green << 8, blue << 8 };
+ gtk_widget_modify_fg (GTK_WIDGET (label), GTK_STATE_NORMAL, &color);
+}
+
+void ygtk_colored_label_set_background (YGtkColoredLabel *label, guint red,
+ guint green, guint blue)
+{
+ GdkColor color = { 0, red << 8, green << 8, blue << 8 };
+ gtk_widget_modify_bg (GTK_WIDGET (label), GTK_STATE_NORMAL, &color);
+}
+
+void ygtk_colored_label_set_shadow_type (YGtkColoredLabel *label, GtkShadowType type)
+{
+ label->shadow = type;
+}
+
+static void ygtk_colored_label_class_init (YGtkColoredLabelClass *klass)
+{
+ ygtk_colored_label_parent_class = g_type_class_peek_parent (klass);
+
+ GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->expose_event = ygtk_colored_label_expose_event;
+}
Added: trunk/gtk/unstable-libyui/src/ygtkbargraph.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkbarg…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkbargraph.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtkbargraph.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,101 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkBarGraph is just a simple graph of bars that may be
+ changed during run-time (see ygtk_bar_graph_setup_entry()).
+*/
+
+#ifndef YGTK_BAR_GRAPH_H
+#define YGTK_BAR_GRAPH_H
+
+#include "ygtkratiobox.h"
+#include <gtk/gtktooltips.h>
+G_BEGIN_DECLS
+
+#define YGTK_TYPE_BAR_GRAPH (ygtk_bar_graph_get_type ())
+#define YGTK_BAR_GRAPH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_BAR_GRAPH, YGtkBarGraph))
+#define YGTK_BAR_GRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_BAR_GRAPH, YGtkBarGraphClass))
+#define YGTK_IS_BAR_GRAPH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_BAR_GRAPH))
+#define YGTK_IS_BAR_GRAPH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_BAR_GRAPH))
+#define YGTK_BAR_GRAPH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_BAR_GRAPH, YGtkBarGraphClass))
+
+typedef struct _YGtkBarGraph YGtkBarGraph;
+typedef struct _YGtkBarGraphClass YGtkBarGraphClass;
+
+struct _YGtkBarGraph
+{
+ YGtkRatioHBox parent;
+
+ // private
+ GtkTooltips *m_tooltips;
+};
+
+struct _YGtkBarGraphClass
+{
+ YGtkRatioBoxClass parent_class;
+};
+
+GtkWidget *ygtk_bar_graph_new (void);
+GType ygtk_bar_graph_get_type (void) G_GNUC_CONST;
+
+void ygtk_bar_graph_create_entries (YGtkBarGraph *bar, guint entries);
+void ygtk_bar_graph_setup_entry (YGtkBarGraph *bar, int index,
+ const gchar *label_entry, int value);
+
+G_END_DECLS
+#endif /*YGTK_BAR_GRAPH_H*/
+
+#ifndef YGTK_COLORED_LABEL_H
+#define YGTK_COLORED_LABEL_H
+
+#include <gtk/gtklabel.h>
+G_BEGIN_DECLS
+
+/* YGtkColoredLabel is a GtkLabel where gtk_modify_bg() can be used. It also
+ allows a frame around it. */
+
+#define YGTK_TYPE_COLORED_LABEL (ygtk_colored_label_get_type ())
+#define YGTK_COLORED_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_COLORED_LABEL, YGtkColoredLabel))
+#define YGTK_COLORED_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_COLORED_LABEL, YGtkColoredLabelClass))
+#define YGTK_IS_COLORED_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_COLORED_LABEL))
+#define YGTK_IS_COLORED_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_COLORED_LABEL))
+#define YGTK_COLORED_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_COLORED_LABEL, YGtkColoredLabelClass))
+
+typedef struct _YGtkColoredLabel
+{
+ GtkLabel parent;
+
+ // private
+ GtkShadowType shadow;
+} YGtkColoredLabel;
+
+typedef struct _YGtkColoredLabelClass
+{
+ GtkLabelClass parent_class;
+} YGtkColoredLabelClass;
+
+GtkWidget *ygtk_colored_label_new (void);
+GType ygtk_colored_label_get_type (void) G_GNUC_CONST;
+
+// A convenience function (you may use gtk_widget_modify_fg() and
+// gtk_widget_modify_bg() instead), where colors range is [0, 255]
+void ygtk_colored_label_set_foreground (YGtkColoredLabel *label, guint red,
+ guint green, guint blue);
+void ygtk_colored_label_set_background (YGtkColoredLabel *label, guint red,
+ guint green, guint blue);
+
+void ygtk_colored_label_set_shadow_type (YGtkColoredLabel *label, GtkShadowType type);
+
+G_END_DECLS
+#endif /*YGTK_COLORED_LABEL*/
Added: trunk/gtk/unstable-libyui/src/ygtkfieldentry.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkfiel…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkfieldentry.c (added)
+++ trunk/gtk/unstable-libyui/src/ygtkfieldentry.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,153 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkFieldEntry widget */
+// check the header file for information about this widget
+
+#include <config.h>
+#include "ygtkfieldentry.h"
+#include <gtk/gtk.h>
+#include <string.h>
+
+void ygutils_setFilter (GtkEntry *entry, const char *validChars);
+static guint filter_entry_signal = 0;
+
+//** YGtkFieldEntry
+
+G_DEFINE_TYPE (YGtkFieldEntry, ygtk_field_entry, GTK_TYPE_HBOX)
+
+static void ygtk_field_entry_init (YGtkFieldEntry *entry)
+{
+ gtk_box_set_spacing (GTK_BOX (entry), 4);
+}
+
+static GtkEntry *ygtk_field_entry_focus_next_entry (YGtkFieldEntry *fields,
+ GtkEntry *current_entry, gint side)
+{
+ GList *children = gtk_container_get_children (GTK_CONTAINER (fields));
+ gint pos = g_list_index (children, current_entry);
+
+ GtkEntry *next_entry = g_list_nth_data (children, pos + (2 * side));
+ g_list_free (children);
+
+ if (next_entry)
+ gtk_widget_grab_focus (GTK_WIDGET (next_entry));
+ return next_entry;
+}
+
+// If max characters reached, jump to next field
+static void ygtk_field_entry_insert_text (GtkEditable *editable, const gchar *new_text,
+ gint new_text_length, gint *position, YGtkFieldEntry *fields)
+{
+ if (*position == gtk_entry_get_max_length (GTK_ENTRY (editable))) {
+ GtkEntry *next_entry = ygtk_field_entry_focus_next_entry (fields,
+ GTK_ENTRY (editable), 1);
+ if (next_entry) {
+ gint pos = 0;
+ gtk_editable_insert_text (GTK_EDITABLE (next_entry), new_text,
+ new_text_length, &pos);
+ gtk_editable_set_position (GTK_EDITABLE (next_entry), pos);
+
+ // it would not insert the text anyway, but to avoid the beep
+ g_signal_stop_emission_by_name (editable, "insert_text");
+ }
+ }
+}
+
+static void ygtk_field_entry_move_cursor (GtkEntry *entry, GtkMovementStep move,
+ gint count, gboolean selection, YGtkFieldEntry *fields)
+{
+ if (move == GTK_MOVEMENT_VISUAL_POSITIONS) {
+ if (count > 0)
+ ygtk_field_entry_focus_next_entry (fields, GTK_ENTRY (entry), 1);
+ else
+ ygtk_field_entry_focus_next_entry (fields, GTK_ENTRY (entry), -1);
+ }
+}
+
+
+GtkWidget *ygtk_field_entry_new (void)
+{
+ return g_object_new (YGTK_TYPE_FIELD_ENTRY, NULL);
+}
+
+static void ygtk_field_entry_entry_changed (GtkEditable *editable, YGtkFieldEntry *fields)
+{
+ GList *children = gtk_container_get_children (GTK_CONTAINER (fields));
+ gint nb = g_list_index (children, editable) / 2;
+ g_list_free (children);
+
+ g_signal_emit (fields, filter_entry_signal, 0, nb);
+}
+
+void ygtk_field_entry_add_field (YGtkFieldEntry *fields, gchar separator,
+ guint max_length, const gchar *valid_chars)
+{
+ GtkWidget *label = 0, *entry;
+ if (fields->use_separator) {
+ const gchar str[2] = { separator, '\0' };
+ label = gtk_label_new (str);
+ }
+ entry = gtk_entry_new();
+ gtk_entry_set_max_length (GTK_ENTRY (entry), max_length);
+ gtk_entry_set_width_chars (GTK_ENTRY (entry), (max_length == 0) ? -1 : max_length);
+ ygutils_setFilter (GTK_ENTRY (entry), valid_chars);
+
+ g_signal_connect (G_OBJECT (entry), "insert-text",
+ G_CALLBACK (ygtk_field_entry_insert_text), fields);
+ g_signal_connect (G_OBJECT (entry), "move-cursor",
+ G_CALLBACK (ygtk_field_entry_move_cursor), fields);
+
+ g_signal_connect (G_OBJECT (entry), "changed",
+ G_CALLBACK (ygtk_field_entry_entry_changed), fields);
+
+ GtkBox *box = GTK_BOX (fields);
+ if (label)
+ gtk_box_pack_start (box, label, FALSE, FALSE, 0);
+ gtk_box_pack_start (box, entry, TRUE, TRUE, 0);
+
+ fields->use_separator = TRUE;
+}
+
+static GtkEntry *ygtk_field_entry_get_field (YGtkFieldEntry *fields, guint nb)
+{
+ GtkEntry *entry;
+ GList *children = gtk_container_get_children (GTK_CONTAINER (fields));
+ entry = g_list_nth_data (children, nb * 2);
+ g_list_free (children);
+ return entry;
+}
+
+void ygtk_field_entry_set_field_text (YGtkFieldEntry *fields, guint nb, const gchar *text)
+{
+ GtkEntry *entry = ygtk_field_entry_get_field (fields, nb);
+ g_signal_handlers_block_by_func (entry,
+ (gpointer) ygtk_field_entry_entry_changed, fields);
+ g_signal_handlers_block_by_func (entry,
+ (gpointer) ygtk_field_entry_insert_text, fields);
+
+ gtk_entry_set_text (entry, text);
+
+ g_signal_handlers_unblock_by_func (entry,
+ (gpointer) ygtk_field_entry_entry_changed, fields);
+ g_signal_handlers_unblock_by_func (entry,
+ (gpointer) ygtk_field_entry_insert_text, fields);
+}
+
+const gchar *ygtk_field_entry_get_field_text (YGtkFieldEntry *fields, guint nb)
+{
+ GtkEntry *entry = ygtk_field_entry_get_field (fields, nb);
+ return gtk_entry_get_text (entry);
+}
+
+static void ygtk_field_entry_class_init (YGtkFieldEntryClass *klass)
+{
+ ygtk_field_entry_parent_class = g_type_class_peek_parent (klass);
+
+ filter_entry_signal = g_signal_new ("field_entry_changed",
+ G_OBJECT_CLASS_TYPE (klass), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
+ G_STRUCT_OFFSET (YGtkFieldEntryClass, filter_entry_changed),
+ NULL, NULL, gtk_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
+}
+
Added: trunk/gtk/unstable-libyui/src/ygtkfieldentry.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkfiel…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkfieldentry.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtkfieldentry.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,60 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkFieldEntry is an extension of GtkEntry with the added
+ functionality of being able to define fields (useful for when
+ you need the user to set a IP address or time/date). The number
+ of fields, their individual range and separation character
+ is all customizable.
+*/
+
+#ifndef YGTK_FIELD_ENTRY_H
+#define YGTK_FIELD_ENTRY_H
+
+#include <gtk/gtkhbox.h>
+G_BEGIN_DECLS
+
+#define YGTK_TYPE_FIELD_ENTRY (ygtk_field_entry_get_type ())
+#define YGTK_FIELD_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_FIELD_ENTRY, YGtkFieldEntry))
+#define YGTK_FIELD_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_FIELD_ENTRY, YGtkFieldEntryClass))
+#define IS_YGTK_FIELD_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_FIELD_ENTRY))
+#define IS_YGTK_FIELD_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_FIELD_ENTRY))
+#define YGTK_FIELD_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_FIELD_ENTRY, YGtkFieldEntryClass))
+
+typedef struct _YGtkFieldEntry
+{
+ GtkHBox parent;
+
+ // private:
+ // used to disable separator for the first field
+ gboolean use_separator;
+} YGtkFieldEntry;
+
+typedef struct _YGtkFieldEntryClass
+{
+ GtkHBoxClass parent_class;
+
+ void (* filter_entry_changed) (YGtkFieldEntry *entry, gint field_nb);
+} YGtkFieldEntryClass;
+
+GtkWidget* ygtk_field_entry_new (void);
+GType ygtk_field_entry_get_type (void) G_GNUC_CONST;
+
+// if this is the first field, separator will be ignored. max_length can be 0 to
+// disable it. valids_chars can be NULL to disable it.
+void ygtk_field_entry_add_field (YGtkFieldEntry *entry, gchar separator,
+ guint max_length, const gchar *valid_chars);
+
+// convinience
+void ygtk_field_entry_set_field_text (YGtkFieldEntry *entry, guint nb, const gchar *text);
+const gchar *ygtk_field_entry_get_field_text (YGtkFieldEntry *entry, guint nb);
+
+G_END_DECLS
+#endif /*YGTK_FIELD_ENTRY_H*/
+
Added: trunk/gtk/unstable-libyui/src/ygtkfindentry.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkfind…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkfindentry.c (added)
+++ trunk/gtk/unstable-libyui/src/ygtkfindentry.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,517 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkExtEntry widget */
+// check the header file for information about this widget
+
+#include <config.h>
+#include "ygtkfindentry.h"
+#include <gtk/gtk.h>
+
+G_DEFINE_TYPE (YGtkExtEntry, ygtk_ext_entry, GTK_TYPE_ENTRY)
+
+static void ygtk_ext_entry_init (YGtkExtEntry *entry)
+{
+}
+
+static void ygtk_ext_entry_destroy (GtkObject *object)
+{
+ GTK_OBJECT_CLASS (ygtk_ext_entry_parent_class)->destroy (object);
+
+ YGtkExtEntry *entry = YGTK_EXT_ENTRY (object);
+ ygtk_ext_entry_set_border_window_size (entry, YGTK_EXT_ENTRY_LEFT_WIN, 0);
+ ygtk_ext_entry_set_border_window_size (entry, YGTK_EXT_ENTRY_RIGHT_WIN, 0);
+}
+
+static void ygtk_ext_entry_map (GtkWidget *widget)
+{
+ if (GTK_WIDGET_REALIZED (widget) && !GTK_WIDGET_MAPPED (widget)) {
+ GTK_WIDGET_CLASS (ygtk_ext_entry_parent_class)->map (widget);
+
+ YGtkExtEntry *entry = YGTK_EXT_ENTRY (widget);
+ if (entry->left_window)
+ gdk_window_show (entry->left_window);
+ if (entry->right_window)
+ gdk_window_show (entry->right_window);
+ }
+}
+
+static void ygtk_ext_entry_unmap (GtkWidget *widget)
+{
+ if (GTK_WIDGET_MAPPED (widget)) {
+ YGtkExtEntry *entry = YGTK_EXT_ENTRY (widget);
+ if (entry->left_window)
+ gdk_window_hide (entry->left_window);
+ if (entry->right_window)
+ gdk_window_hide (entry->right_window);
+
+ GTK_WIDGET_CLASS (ygtk_ext_entry_parent_class)->unmap (widget);
+ }
+}
+
+static void ygtk_ext_entry_sync_color (YGtkExtEntry *entry)
+{
+ /* We don't use gtk_style_set_background() since we want to reflect
+ gtk_widget_modify_base() color, if changed. */
+
+ GtkWidget *widget = GTK_WIDGET (entry);
+ GdkColor color = widget->style->base [GTK_STATE_NORMAL];
+ gdk_rgb_find_color (gtk_widget_get_colormap (widget), &color);
+
+ if (entry->left_window)
+ gdk_window_set_background (entry->left_window, &color);
+ if (entry->right_window)
+ gdk_window_set_background (entry->right_window, &color);
+}
+
+static void ygtk_ext_entry_style_set (GtkWidget *widget, GtkStyle *prev_style)
+{
+ GTK_WIDGET_CLASS (ygtk_ext_entry_parent_class)->style_set (widget, prev_style);
+ ygtk_ext_entry_sync_color (YGTK_EXT_ENTRY (widget));
+}
+
+GdkWindow *ygtk_ext_entry_get_window (YGtkExtEntry *entry,
+ YGtkExtEntryWindowType type)
+{
+ switch (type) {
+ case YGTK_EXT_ENTRY_WIDGET_WIN:
+ return gtk_widget_get_parent_window (GTK_WIDGET (entry));
+ case YGTK_EXT_ENTRY_TEXT_WIN:
+ return GTK_ENTRY (entry)->text_area;
+ case YGTK_EXT_ENTRY_LEFT_WIN:
+ return entry->left_window;
+ case YGTK_EXT_ENTRY_RIGHT_WIN:
+ return entry->right_window;
+ }
+ return NULL;
+}
+
+void ygtk_ext_entry_set_border_window_size (YGtkExtEntry *entry,
+ YGtkExtEntryWindowType type, gint size)
+{
+ GtkWidget *widget = GTK_WIDGET (entry);
+ g_return_if_fail (type == YGTK_EXT_ENTRY_LEFT_WIN || type == YGTK_EXT_ENTRY_RIGHT_WIN);
+
+ GdkWindow **window;
+ if (type == YGTK_EXT_ENTRY_LEFT_WIN)
+ window = &entry->left_window;
+ else
+ window = &entry->right_window;
+
+ if (size) {
+ if (!*window) {
+ // must be realized to create a window
+ GdkWindowAttr attributes;
+ gint attributes_mask;
+ attributes.window_type = GDK_WINDOW_CHILD;
+ attributes.wclass = GDK_INPUT_OUTPUT;
+ attributes.visual = gtk_widget_get_visual (widget);
+ attributes.colormap = gtk_widget_get_colormap (widget);
+ attributes.event_mask = gtk_widget_get_events (widget);
+ attributes.event_mask |= GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK
+ | GDK_BUTTON_RELEASE_MASK | GDK_LEAVE_NOTIFY_MASK
+ | GDK_ENTER_NOTIFY_MASK | GDK_POINTER_MOTION_MASK
+ | GDK_POINTER_MOTION_HINT_MASK;
+ attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
+ // this will be tuned on size_allocate
+ if (type == YGTK_EXT_ENTRY_LEFT_WIN)
+ attributes.x = 0;
+ else
+ attributes.x = widget->allocation.width - size;
+ attributes.y = widget->allocation.y;
+ attributes.width = size;
+ attributes.height = widget->allocation.height;
+
+ *window = gdk_window_new (widget->window,
+ &attributes, attributes_mask);
+ gdk_window_set_user_data (*window, widget);
+ // set background style
+ ygtk_ext_entry_sync_color (entry);
+
+ if (GTK_WIDGET_MAPPED (widget))
+ gdk_window_show (*window);
+ gtk_widget_queue_resize (widget);
+ }
+ else {
+ gint width, height;
+ gdk_drawable_get_size (GDK_DRAWABLE (*window), &width, &height);
+ if (width != size) {
+ gdk_window_resize (*window, size, height);
+ gtk_widget_queue_resize (widget);
+ }
+ }
+ }
+ else { // remove the window
+ if (*window) {
+ gdk_window_set_user_data (*window, NULL);
+ gdk_window_destroy (*window);
+ *window = NULL;
+ gtk_widget_queue_resize (widget);
+ }
+ }
+}
+
+gint ygtk_ext_entry_get_border_window_size (YGtkExtEntry *entry,
+ YGtkExtEntryWindowType type)
+{
+ g_return_val_if_fail (type == YGTK_EXT_ENTRY_LEFT_WIN || type == YGTK_EXT_ENTRY_RIGHT_WIN, 0);
+ GdkWindow *window = ygtk_ext_entry_get_window (entry, type);
+ gint size = 0;
+ if (window && gdk_window_is_visible (window))
+ gdk_drawable_get_size (GDK_DRAWABLE (window), &size, NULL);
+ return size;
+}
+
+static void ygtk_ext_entry_size_request (GtkWidget *widget, GtkRequisition *req)
+{
+ GTK_WIDGET_CLASS (ygtk_ext_entry_parent_class)->size_request (widget, req);
+
+ YGtkExtEntry *entry = YGTK_EXT_ENTRY (widget);
+ req->width += ygtk_ext_entry_get_border_window_size (entry,
+ YGTK_EXT_ENTRY_LEFT_WIN);
+ req->width += ygtk_ext_entry_get_border_window_size (entry,
+ YGTK_EXT_ENTRY_RIGHT_WIN);
+}
+
+static void ygtk_ext_entry_size_allocate (GtkWidget *widget,
+ GtkAllocation *allocation)
+{
+ GTK_WIDGET_CLASS (ygtk_ext_entry_parent_class)->size_allocate
+ (widget, allocation);
+ if (!GTK_WIDGET_REALIZED (widget))
+ return;
+
+ YGtkExtEntry *entry = YGTK_EXT_ENTRY (widget);
+ gint left_border, right_border;
+ left_border = ygtk_ext_entry_get_border_window_size (entry,
+ YGTK_EXT_ENTRY_LEFT_WIN);
+ right_border = ygtk_ext_entry_get_border_window_size (entry,
+ YGTK_EXT_ENTRY_RIGHT_WIN);
+
+ GdkWindow *window;
+ gint _x, _y, _w, _h, x, w;
+
+ // text window
+ window = ygtk_ext_entry_get_window (entry, YGTK_EXT_ENTRY_TEXT_WIN);
+ gdk_window_get_geometry (window, &_x, &_y, &_w, &_h, NULL);
+ if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR)
+ x = _x + left_border;
+ else
+ x = _x + right_border;
+ w = _w - (left_border + right_border);
+ gdk_window_move_resize (window, x, _y, w, _h);
+
+ // left window
+ window = ygtk_ext_entry_get_window (entry, YGTK_EXT_ENTRY_LEFT_WIN);
+ if (window && gdk_window_is_visible (window)) {
+ if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR)
+ x = _x;
+ else
+ x = _x + _w - left_border;
+ w = left_border;
+ gdk_window_move_resize (window, x, _y, w, _h);
+ }
+
+ // right window
+ window = ygtk_ext_entry_get_window (entry, YGTK_EXT_ENTRY_RIGHT_WIN);
+ if (window && gdk_window_is_visible (window)) {
+ if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR)
+ x = _x + _w - right_border;
+ else
+ x = _x;
+ w = right_border;
+ gdk_window_move_resize (window, x, _y, w, _h);
+ }
+}
+
+GtkWidget *ygtk_ext_entry_new (void)
+{
+ return g_object_new (YGTK_TYPE_EXT_ENTRY, NULL);
+}
+
+static void ygtk_ext_entry_class_init (YGtkExtEntryClass *klass)
+{
+ GtkWidgetClass *gtkwidget_class = GTK_WIDGET_CLASS (klass);
+ gtkwidget_class->map = ygtk_ext_entry_map;
+ gtkwidget_class->unmap = ygtk_ext_entry_unmap;
+ gtkwidget_class->style_set = ygtk_ext_entry_style_set;
+ gtkwidget_class->size_request = ygtk_ext_entry_size_request;
+ gtkwidget_class->size_allocate = ygtk_ext_entry_size_allocate;
+
+ GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass);
+ gtkobject_class->destroy = ygtk_ext_entry_destroy;
+}
+
+/* YGtkFindEntry widget */
+// check the header file for information about this widget
+
+#include <string.h>
+#define ARROW_SIZE 7
+
+static void ygtk_find_entry_editable_init (GtkEditableClass *iface);
+
+G_DEFINE_TYPE_WITH_CODE (YGtkFindEntry, ygtk_find_entry, YGTK_TYPE_EXT_ENTRY,
+ G_IMPLEMENT_INTERFACE (GTK_TYPE_EDITABLE, ygtk_find_entry_editable_init))
+
+static void ygtk_find_entry_init (YGtkFindEntry *entry)
+{
+}
+
+static void ygtk_find_entry_destroy (GtkObject *object)
+{
+ GTK_OBJECT_CLASS (ygtk_find_entry_parent_class)->destroy (object);
+
+ YGtkFindEntry *entry = YGTK_FIND_ENTRY (object);
+
+#define DESTROY_ICON(icon) \
+ if (icon) { g_object_unref (G_OBJECT (icon)); icon = NULL; }
+
+ DESTROY_ICON (entry->find_icon)
+ DESTROY_ICON (entry->find_hover_icon)
+ DESTROY_ICON (entry->clear_icon)
+ DESTROY_ICON (entry->clear_hover_icon)
+#undef DESTROY_ICON
+}
+
+// Code from Banshee: shades a pixbuf a bit, used to provide the hover effect
+static inline guchar pixel_clamp (int val)
+{ return MAX (0, MIN (255, val)); }
+static GdkPixbuf *pixbuf_color_shift (const GdkPixbuf *src, int shift)
+{
+ if (!src)
+ return NULL;
+
+ int width = gdk_pixbuf_get_width (src), height = gdk_pixbuf_get_height (src);
+ gboolean has_alpha = gdk_pixbuf_get_has_alpha (src);
+
+ GdkPixbuf *dest = gdk_pixbuf_new (gdk_pixbuf_get_colorspace (src),
+ has_alpha, gdk_pixbuf_get_bits_per_sample (src), width, height);
+
+ guchar *src_pixels_orig = gdk_pixbuf_get_pixels (src);
+ guchar *dest_pixels_orig = gdk_pixbuf_get_pixels (dest);
+
+ int src_rowstride = gdk_pixbuf_get_rowstride (src);
+ int dest_rowstride = gdk_pixbuf_get_rowstride (dest);
+ int i, j;
+ for (i = 0; i < height; i++) {
+ guchar *src_pixels = src_pixels_orig + (i * src_rowstride);
+ guchar *dest_pixels = dest_pixels_orig + (i * dest_rowstride);
+ for (j = 0; j < width; j++) {
+ *(dest_pixels++) = pixel_clamp (*(src_pixels++) + shift);
+ *(dest_pixels++) = pixel_clamp (*(src_pixels++) + shift);
+ *(dest_pixels++) = pixel_clamp (*(src_pixels++) + shift);
+ if (has_alpha)
+ *(dest_pixels++) = *(src_pixels++);
+ }
+ }
+ return dest;
+}
+
+static void ygtk_find_entry_set_borders (YGtkFindEntry *entry)
+{
+ YGtkExtEntry *eentry = YGTK_EXT_ENTRY (entry);
+ int left_border = 0, right_border = 0;
+ if (entry->find_icon) {
+ left_border = gdk_pixbuf_get_width (entry->find_icon) + 2;
+ if (entry->context_menu)
+ left_border += ARROW_SIZE - 1;
+ }
+ if (entry->clear_icon)
+ right_border = gdk_pixbuf_get_width (entry->clear_icon) + 2;
+
+ ygtk_ext_entry_set_border_window_size (eentry,
+ YGTK_EXT_ENTRY_LEFT_WIN, left_border);
+ ygtk_ext_entry_set_border_window_size (eentry,
+ YGTK_EXT_ENTRY_RIGHT_WIN, right_border);
+ gtk_widget_queue_resize (GTK_WIDGET (entry));
+}
+
+static void ygtk_find_entry_realize (GtkWidget *widget)
+{
+ GTK_WIDGET_CLASS (ygtk_find_entry_parent_class)->realize (widget);
+
+ YGtkExtEntry *eentry = YGTK_EXT_ENTRY (widget);
+ YGtkFindEntry *fentry = YGTK_FIND_ENTRY (widget);
+ fentry->find_icon = gtk_widget_render_icon (widget, GTK_STOCK_FIND,
+ GTK_ICON_SIZE_MENU, NULL);
+ fentry->clear_icon = gtk_widget_render_icon (widget, GTK_STOCK_CLEAR,
+ GTK_ICON_SIZE_MENU, NULL);
+
+ fentry->find_hover_icon = pixbuf_color_shift (fentry->find_icon, 30);
+ fentry->clear_hover_icon = pixbuf_color_shift (fentry->clear_icon, 30);
+
+ ygtk_find_entry_set_borders (fentry);
+
+ GdkDisplay *display = gtk_widget_get_display (widget);
+ GdkCursor *cursor = gdk_cursor_new_for_display (display, GDK_HAND1);
+
+ gdk_window_set_cursor (eentry->left_window, cursor);
+ gdk_window_set_cursor (eentry->right_window, cursor);
+ gdk_cursor_unref (cursor);
+}
+
+static void ygtk_find_entry_map (GtkWidget *widget)
+{
+ if (GTK_WIDGET_REALIZED (widget) && !GTK_WIDGET_MAPPED (widget)) {
+ GTK_WIDGET_CLASS (ygtk_find_entry_parent_class)->map (widget);
+ // only show clear icon when the entry has text
+ GdkWindow *clear_win = YGTK_EXT_ENTRY (widget)->right_window;
+ if (clear_win)
+ gdk_window_hide (clear_win);
+ }
+}
+
+static gboolean ygtk_find_entry_expose (GtkWidget *widget, GdkEventExpose *event)
+{
+ YGtkExtEntry *eentry = YGTK_EXT_ENTRY (widget);
+ YGtkFindEntry *fentry = YGTK_FIND_ENTRY (widget);
+
+ GdkWindow *hover_window = gdk_display_get_window_at_pointer (
+ gtk_widget_get_display (widget), NULL, NULL);
+
+ if (event->window == eentry->left_window ||
+ event->window == eentry->right_window) {
+ gboolean hover = hover_window == event->window;
+ GdkPixbuf *pixbuf;
+ if (event->window == eentry->left_window)
+ pixbuf = hover ? fentry->find_hover_icon : fentry->find_icon;
+ else
+ pixbuf = hover ? fentry->clear_hover_icon : fentry->clear_icon;
+
+ int pix_height = gdk_pixbuf_get_height (pixbuf), win_width, win_height, y;
+ gdk_drawable_get_size (event->window, &win_width, &win_height);
+ y = (win_height - pix_height) / 2;
+
+ gdk_draw_pixbuf (event->window, widget->style->fg_gc[0], pixbuf,
+ 0, 0, 1, y, -1, -1, GDK_RGB_DITHER_NONE, 0, 0);
+
+ if (fentry->context_menu && event->window == eentry->left_window)
+ gtk_paint_arrow (widget->style, event->window, GTK_STATE_NORMAL,
+ GTK_SHADOW_NONE, &event->area, widget, NULL,
+ GTK_ARROW_DOWN, FALSE,
+ win_width - ARROW_SIZE - 1, win_height - ARROW_SIZE,
+ ARROW_SIZE, ARROW_SIZE);
+ }
+ else
+ GTK_WIDGET_CLASS (ygtk_find_entry_parent_class)->expose_event (widget, event);
+ return TRUE;
+}
+
+/* Re-draw find/clear windows on mouse hover. */
+static gboolean ygtk_find_entry_enter_leave_notify_event (GtkWidget *widget,
+ GdkEventCrossing *event)
+{
+ if (widget == gtk_get_event_widget ((GdkEvent*) event)) {
+ YGtkExtEntry *eentry = YGTK_EXT_ENTRY (widget);
+ if (event->window == eentry->left_window ||
+ event->window == eentry->right_window)
+ gdk_window_invalidate_rect (event->window, NULL, FALSE);
+ }
+ return FALSE;
+}
+
+static void ygtk_find_entry_actual_popup_menu (GtkWidget *widget, guint button,
+ guint32 time)
+{
+ GtkMenu *menu = YGTK_FIND_ENTRY (widget)->context_menu;
+ gtk_menu_popup (menu, NULL, NULL, NULL, NULL, button, time);
+}
+
+static gboolean ygtk_find_entry_popup_menu (GtkWidget *widget)
+{
+ if (YGTK_FIND_ENTRY (widget)->context_menu) {
+ ygtk_find_entry_actual_popup_menu (widget, 0, gtk_get_current_event_time());
+ return TRUE;
+ }
+ return GTK_WIDGET_CLASS (ygtk_find_entry_parent_class)->popup_menu (widget);
+}
+
+static gboolean ygtk_find_entry_button_press_event (GtkWidget *widget,
+ GdkEventButton *event)
+{
+ YGtkFindEntry *fentry = YGTK_FIND_ENTRY (widget);
+ YGtkExtEntry *eentry = YGTK_EXT_ENTRY (widget);
+ if (event->window == eentry->left_window) {
+ // If the entry has an associated context menu, use it.
+ // Otherwise, find icon selects entry's text.
+ gtk_widget_grab_focus (widget);
+ if (fentry->context_menu)
+ ygtk_find_entry_actual_popup_menu (widget, event->button, event->time);
+ else
+ gtk_editable_select_region (GTK_EDITABLE (widget), 0, -1);
+ }
+ else if (event->window == eentry->right_window) {
+ gtk_editable_delete_text (GTK_EDITABLE (widget), 0, -1);
+ gtk_widget_grab_focus (widget);
+ }
+ else
+ return GTK_WIDGET_CLASS (ygtk_find_entry_parent_class)->button_press_event
+ (widget, event);
+ return TRUE;
+}
+
+static void ygtk_find_entry_insert_text (GtkEditable *editable,
+ const gchar *new_text, gint new_text_len, gint *pos)
+{
+ GtkEditableClass *parent_editable_iface = g_type_interface_peek
+ (ygtk_find_entry_parent_class, GTK_TYPE_EDITABLE);
+ parent_editable_iface->insert_text (editable, new_text, new_text_len, pos);
+
+ GdkWindow *clear_win = YGTK_EXT_ENTRY (editable)->right_window;
+ if (clear_win)
+ gdk_window_show (clear_win);
+}
+
+static void ygtk_find_entry_delete_text (GtkEditable *editable, gint start_pos,
+ gint end_pos)
+{
+ GtkEditableClass *parent_editable_iface = g_type_interface_peek
+ (ygtk_find_entry_parent_class, GTK_TYPE_EDITABLE);
+ parent_editable_iface->delete_text (editable, start_pos, end_pos);
+
+ int has_text = strlen (gtk_entry_get_text (GTK_ENTRY (editable)));
+ if (!has_text) {
+ /* Set or delete text may be called while the widget has not yet been
+ realized. */
+ GdkWindow *clear_win = YGTK_EXT_ENTRY (editable)->right_window;
+ if (clear_win)
+ gdk_window_hide (clear_win);
+ }
+}
+
+void ygtk_find_entry_attach_menu (YGtkFindEntry *entry, GtkMenu *menu)
+{
+ if (entry->context_menu)
+ gtk_menu_detach (entry->context_menu);
+ entry->context_menu = menu;
+ if (menu)
+ gtk_menu_attach_to_widget (menu, GTK_WIDGET (entry), NULL);
+ ygtk_find_entry_set_borders (entry);
+}
+
+GtkWidget *ygtk_find_entry_new (void /*gboolean will_use_find_icon */)
+{
+ return g_object_new (YGTK_TYPE_FIND_ENTRY, NULL);
+}
+
+static void ygtk_find_entry_class_init (YGtkFindEntryClass *klass)
+{
+ GtkWidgetClass *gtkwidget_class = GTK_WIDGET_CLASS (klass);
+ gtkwidget_class->realize = ygtk_find_entry_realize;
+ gtkwidget_class->map = ygtk_find_entry_map;
+ gtkwidget_class->expose_event = ygtk_find_entry_expose;
+ gtkwidget_class->enter_notify_event = ygtk_find_entry_enter_leave_notify_event;
+ gtkwidget_class->leave_notify_event = ygtk_find_entry_enter_leave_notify_event;
+ gtkwidget_class->button_press_event = ygtk_find_entry_button_press_event;
+ gtkwidget_class->popup_menu = ygtk_find_entry_popup_menu;
+
+ GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass);
+ gtkobject_class->destroy = ygtk_find_entry_destroy;
+}
+
+static void ygtk_find_entry_editable_init (GtkEditableClass *iface)
+{
+ iface->insert_text = ygtk_find_entry_insert_text;
+ iface->delete_text = ygtk_find_entry_delete_text;
+}
Added: trunk/gtk/unstable-libyui/src/ygtkfindentry.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkfind…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkfindentry.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtkfindentry.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,99 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkExtEntry extends GtkEntry adding two optional GdkWindows, at each
+ horizontal corner, which are created at demand. Very useful to create
+ a panel, an icon or something inside of it.
+ GtkTextView provides something similar and would be nice to have this
+ right on GtkEntry; in fact, GtkSpinButton could be simplified if it
+ were for this.
+ Right-to-left is supported at this level (borders are mirrored, if it
+ is set). If you don't want that, use gtk_widget_set_direction().
+
+ YGtkFindEntry is a convinience widget that has a find icon, with an
+ optional menu, at the left, and an erase icon at the right.
+*/
+
+#ifndef YGTK_FIND_ENTRY_H
+#define YGTK_FIND_ENTRY_H
+
+#include <gtk/gtkentry.h>
+G_BEGIN_DECLS
+
+//** YGtkExtEntry
+
+#define YGTK_TYPE_EXT_ENTRY (ygtk_ext_entry_get_type ())
+#define YGTK_EXT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_EXT_ENTRY, YGtkExtEntry))
+#define YGTK_EXT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_EXT_ENTRY, YGtkExtEntryClass))
+#define YGTK_IS_EXT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_EXT_ENTRY))
+#define YGTK_IS_EXT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_EXT_ENTRY))
+#define YGTK_EXT_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_EXT_ENTRY, YGtkExtEntryClass))
+
+typedef struct _YGtkExtEntry
+{
+ GtkEntry parent;
+ // members:
+ GdkWindow *left_window, *right_window;
+} YGtkExtEntry;
+
+typedef struct _YGtkExtEntryClass
+{
+ GtkEntryClass parent_class;
+} YGtkExtEntryClass;
+
+GtkWidget* ygtk_ext_entry_new (void);
+GType ygtk_ext_entry_get_type (void) G_GNUC_CONST;
+
+// API based on that of GtkTextView -- limited to our needs
+typedef enum
+{ YGTK_EXT_ENTRY_WIDGET_WIN, YGTK_EXT_ENTRY_TEXT_WIN,
+ YGTK_EXT_ENTRY_LEFT_WIN, YGTK_EXT_ENTRY_RIGHT_WIN
+} YGtkExtEntryWindowType;
+
+GdkWindow *ygtk_ext_entry_get_window (YGtkExtEntry *entry,
+ YGtkExtEntryWindowType type);
+void ygtk_ext_entry_set_border_window_size (YGtkExtEntry *entry,
+ YGtkExtEntryWindowType type, gint size);
+gint ygtk_ext_entry_get_border_window_size (YGtkExtEntry *entry,
+ YGtkExtEntryWindowType type);
+
+//** YGtkFindEntry
+
+#define YGTK_TYPE_FIND_ENTRY (ygtk_find_entry_get_type ())
+#define YGTK_FIND_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_FIND_ENTRY, YGtkFindEntry))
+#define YGTK_FIND_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_FIND_ENTRY, YGtkFindEntryClass))
+#define YGTK_IS_FIND_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_FIND_ENTRY))
+#define YGTK_IS_FIND_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_FIND_ENTRY))
+#define YGTK_FIND_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_FIND_ENTRY, YGtkFindEntryClass))
+
+typedef struct _YGtkFindEntry
+{
+ YGtkExtEntry parent;
+ // members
+ GdkPixbuf *find_icon, *clear_icon, *find_hover_icon, *clear_hover_icon;
+ GtkMenu *context_menu;
+} YGtkFindEntry;
+
+typedef struct _YGtkFindEntryClass
+{
+ YGtkExtEntryClass parent_class;
+} YGtkFindEntryClass;
+
+GtkWidget* ygtk_find_entry_new (void);
+GType ygtk_find_entry_get_type (void) G_GNUC_CONST;
+
+void ygtk_find_entry_attach_menu (YGtkFindEntry *entry, GtkMenu *popup_menu);
+
+G_END_DECLS
+#endif /*YGTK_FIND_ENTRY_H*/
Added: trunk/gtk/unstable-libyui/src/ygtkhtmlwrap.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkhtml…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkhtmlwrap.c (added)
+++ trunk/gtk/unstable-libyui/src/ygtkhtmlwrap.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,170 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkHtmlWrap widget */
+// check the header file for information about this widget
+
+#include <config.h>
+#include <gtk/gtkversion.h>
+#include <string.h>
+#include "ygtkhtmlwrap.h"
+
+GtkWidget *ygtk_html_wrap_new (void)
+{
+ return g_object_new (ygtk_html_wrap_get_type(), NULL);
+}
+
+
+// Utilities
+static inline void adjust_scroll (GtkAdjustment *vadj, gboolean top)
+{
+ g_assert (vadj != 0);
+ if (top)
+ gtk_adjustment_set_value (vadj, vadj->lower);
+ else /* bottom */
+ gtk_adjustment_set_value (vadj, vadj->upper - vadj->page_size);
+}
+
+static void gdkwindow_set_background (GdkWindow *window, const char *image)
+{
+ if (image) {
+ GError *error = 0;
+ GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (image, &error);
+ if (!pixbuf) {
+ g_warning ("ygtkrichtext: could not open background image: '%s'"
+ " - %s", image, error->message);
+ return;
+ }
+
+ GdkPixmap *pixmap;
+ gdk_pixbuf_render_pixmap_and_mask_for_colormap (pixbuf,
+ gdk_drawable_get_colormap (GDK_DRAWABLE (window)), &pixmap, NULL, 0);
+ g_object_unref (G_OBJECT (pixbuf));
+
+ gdk_window_set_back_pixmap (window, pixmap, FALSE);
+ }
+ else
+ gdk_window_clear (window);
+}
+
+// GtkHTML
+#ifdef USE_GTKHTML
+#include <libgtkhtml-3.14/gtkhtml/gtkhtml.h>
+#include <libgtkhtml-3.14/gtkhtml/gtkhtml-stream.h>
+#include <libgtkhtml-3.14/gtkhtml/gtkhtml-search.h>
+
+GType ygtk_html_wrap_get_type (void)
+{
+ return GTK_TYPE_HTML;
+}
+
+static void gtkhtml_url_requested_cb (GtkHTML *html, const gchar *url, GtkHTMLStream *stream)
+{ // to load images (and possibly other external embed files)
+ FILE *file = fopen (url, "rb");
+
+ fseek (file, 0, SEEK_END);
+ size_t file_size = ftell (file);
+ rewind (file);
+
+ gboolean error;
+ gchar *data = g_new (gchar, file_size);
+ error = fread (data, 1, file_size, file) < file_size;
+ fclose (file);
+
+ if (!error)
+ gtk_html_stream_write (stream, data, file_size);
+ g_free (data);
+}
+
+void ygtk_html_wrap_init (GtkWidget *widget)
+{
+ gtk_html_set_editable (GTK_HTML (widget), FALSE);
+ g_signal_connect (G_OBJECT (widget), "url-requested",
+ G_CALLBACK (gtkhtml_url_requested_cb), NULL);
+}
+
+void ygtk_html_wrap_set_text (GtkWidget *widget, const gchar* text)
+{
+ GtkHTMLStream *stream = gtk_html_begin (GTK_HTML (widget));
+ gtk_html_write (GTK_HTML (widget), stream, text, strlen (text));
+ gtk_html_end (GTK_HTML (widget), stream, GTK_HTML_STREAM_OK);
+}
+
+void ygtk_html_wrap_scroll (GtkWidget *widget, gboolean top)
+{
+ adjust_scroll (GTK_LAYOUT (widget)->vadjustment, top);
+}
+
+gboolean ygtk_html_wrap_search (GtkWidget *widget, const gchar *text)
+{
+/* if (*text == '\0')
+ return TRUE;*/
+ return gtk_html_engine_search (GTK_HTML (widget), text, FALSE, TRUE, FALSE);
+}
+
+gboolean ygtk_html_wrap_search_next (GtkWidget *widget, const gchar *text)
+{
+ return gtk_html_engine_search_next (GTK_HTML (widget));
+}
+
+void ygtk_html_wrap_connect_link_clicked (GtkWidget *widget, GCallback callback, gpointer data)
+{
+ g_signal_connect (G_OBJECT (widget), "link-clicked", callback, data);
+}
+
+void ygtk_html_wrap_set_background (GtkWidget *widget, const char *image)
+{
+ // TODO
+}
+
+// YGtkRichText
+#else
+#include "ygtkrichtext.h"
+
+GType ygtk_html_wrap_get_type()
+{
+ return YGTK_TYPE_RICH_TEXT;
+}
+
+void ygtk_html_wrap_init (GtkWidget *widget)
+{
+}
+
+void ygtk_html_wrap_set_text (GtkWidget *widget, const gchar* text)
+{
+ ygtk_rich_text_set_text (YGTK_RICH_TEXT (widget), text, TRUE);
+}
+
+void ygtk_html_wrap_scroll (GtkWidget *widget, gboolean top)
+{
+ adjust_scroll (GTK_TEXT_VIEW (widget)->vadjustment, top);
+}
+
+gboolean ygtk_html_wrap_search (GtkWidget *widget, const gchar *text)
+{
+ gboolean ret = ygtk_rich_text_mark_text (YGTK_RICH_TEXT (widget), text);
+ ygtk_rich_text_forward_mark (YGTK_RICH_TEXT (widget), text);
+ return ret;
+}
+
+gboolean ygtk_html_wrap_search_next (GtkWidget *widget, const gchar *text)
+{
+ return ygtk_rich_text_forward_mark (YGTK_RICH_TEXT (widget), text);
+}
+
+void ygtk_html_wrap_connect_link_clicked (GtkWidget *widget, GCallback callback, gpointer data)
+{
+ g_signal_connect (G_OBJECT (widget), "link-clicked", callback, data);
+}
+
+void ygtk_html_wrap_set_background (GtkWidget *widget, const char *image)
+{
+ g_return_if_fail (GTK_WIDGET_REALIZED (widget));
+ GdkWindow *window = gtk_text_view_get_window
+ (GTK_TEXT_VIEW (widget), GTK_TEXT_WINDOW_TEXT);
+ gdkwindow_set_background (window, image);
+}
+
+#endif
+
Added: trunk/gtk/unstable-libyui/src/ygtkhtmlwrap.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkhtml…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkhtmlwrap.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtkhtmlwrap.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,37 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkHtmlWrap is a wrapper around either GtkHtml and YGtkRichText, as
+ set at compilation time. GtkHtml is superior, but to avoid dependencies,
+ we use our customized in case it isn't installed.
+ If you flag it as plain_text, it will simply wrap GtkTextView.
+*/
+
+#ifndef YGTK_HTML_WRAP_H
+#define YGTK_HTML_WRAP_H
+
+#include <gtk/gtkwidget.h>
+G_BEGIN_DECLS
+
+GtkWidget *ygtk_html_wrap_new (void);
+
+GType ygtk_html_wrap_get_type (void);
+void ygtk_html_wrap_init (GtkWidget *widget); // if you use g_object_new(), call this
+
+void ygtk_html_wrap_set_text (GtkWidget *widget, const gchar* text);
+void ygtk_html_wrap_scroll (GtkWidget *widget, gboolean top /* or bottom */);
+
+// callback of type: void (GtkWidget *htmlwrap, const gchar *url, gpointer data)
+void ygtk_html_wrap_connect_link_clicked (GtkWidget *widget, GCallback callback, gpointer data);
+
+// not supported on plain text
+gboolean ygtk_html_wrap_search (GtkWidget *widget, const gchar *text);
+gboolean ygtk_html_wrap_search_next (GtkWidget *widget, const gchar *text); // F3
+
+// set a background image -- to be done on (or after) realize
+void ygtk_html_wrap_set_background (GtkWidget *widget, const char *image);
+
+G_END_DECLS
+#endif /* YGTK_HTML_WRAP_H */
+
Added: trunk/gtk/unstable-libyui/src/ygtkimage.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkimag…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkimage.c (added)
+++ trunk/gtk/unstable-libyui/src/ygtkimage.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,288 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkImage widget */
+// check the header file for information about this widget
+
+#include <config.h>
+#include "ygdkmngloader.h"
+#include "ygtkimage.h"
+#include <gtk/gtkiconfactory.h>
+
+G_DEFINE_TYPE (YGtkImage, ygtk_image, GTK_TYPE_DRAWING_AREA)
+
+static void ygtk_image_init (YGtkImage *image)
+{
+}
+
+static void ygtk_image_free_pixbuf (YGtkImage *image)
+{
+ if (image->animated) {
+ if (image->animation) {
+ g_object_unref (G_OBJECT (image->animation->pixbuf));
+ if (image->animation->timeout_id)
+ g_source_remove (image->animation->timeout_id);
+ g_free (image->animation);
+ image->animation = NULL;
+ }
+ }
+ else {
+ if (image->pixbuf) {
+ g_object_unref (G_OBJECT (image->pixbuf));
+ image->pixbuf = NULL;
+ }
+ }
+}
+
+static void ygtk_image_destroy (GtkObject *object)
+{
+ YGtkImage *image = YGTK_IMAGE (object);
+ if (image->alt_text)
+ g_free (image->alt_text);
+ image->alt_text = NULL;
+ ygtk_image_free_pixbuf (image);
+ GTK_OBJECT_CLASS (ygtk_image_parent_class)->destroy (object);
+}
+
+static void ygtk_image_set_pixbuf (YGtkImage *image, GdkPixbuf *pixbuf, const char *error_msg)
+{
+ ygtk_image_free_pixbuf (image);
+ gtk_widget_queue_resize (GTK_WIDGET (image));
+
+ if (pixbuf) {
+ image->animated = FALSE;
+ image->pixbuf = pixbuf;
+ image->loaded = TRUE;
+ }
+/* else
+ g_warning ("Couldn't load image - %s", error_msg);*/
+}
+
+static gboolean ygtk_image_advance_frame_cb (gpointer data)
+{
+ YGtkImage *image = (YGtkImage *) data;
+ struct _YGtkImageAnimation *animation = image->animation;
+
+ if (!animation->frame) // no frame yet loaded
+ animation->frame = gdk_pixbuf_animation_get_iter (animation->pixbuf, NULL);
+ else
+ if (gdk_pixbuf_animation_iter_advance (animation->frame, NULL))
+ gtk_widget_queue_draw (GTK_WIDGET (image));
+
+ // shedule next frame
+ int delay = gdk_pixbuf_animation_iter_get_delay_time (animation->frame);
+ if (delay != -1)
+ animation->timeout_id = g_timeout_add (delay, ygtk_image_advance_frame_cb, data);
+ return FALSE;
+}
+
+static void ygtk_image_set_animation (YGtkImage *image, GdkPixbufAnimation *pixbuf,
+ const char *error_msg)
+{
+ ygtk_image_free_pixbuf (image);
+ gtk_widget_queue_resize (GTK_WIDGET (image));
+
+ if (pixbuf) {
+ image->animated = TRUE;
+ image->animation = g_new0 (struct _YGtkImageAnimation, 1);
+ image->animation->pixbuf = pixbuf;
+ image->loaded = TRUE;
+ ygtk_image_advance_frame_cb (image);
+ }
+/* else
+ g_warning ("Couldn't load image - %s", error_msg);*/
+}
+
+void ygtk_image_set_from_file (YGtkImage *image, const char *filename, gboolean anim)
+{
+ GError *error = 0;
+ if (anim) {
+ GdkPixbufAnimation *pixbuf;
+ if (ygdk_mng_pixbuf_is_file_mng (filename))
+ pixbuf = ygdk_mng_pixbuf_new_from_file (filename, &error);
+ else
+ pixbuf = gdk_pixbuf_animation_new_from_file (filename, &error);
+ ygtk_image_set_animation (image, pixbuf, error ? error->message : "(undefined)");
+ }
+ else {
+ GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (filename, &error);
+ ygtk_image_set_pixbuf (image, pixbuf, error ? error->message : "(undefined)");
+ }
+}
+
+static void ygtk_image_loaded_cb (GdkPixbufLoader *loader, YGtkImage *image)
+{
+ if (image->animated) {
+ if (image->animation) {
+ // a new frame loaded -- just redraw the widget
+ if (gdk_pixbuf_animation_iter_on_currently_loading_frame
+ (image->animation->frame))
+ gtk_widget_queue_draw (GTK_WIDGET (image));
+ }
+ else {
+ GdkPixbufAnimation *pixbuf = gdk_pixbuf_loader_get_animation (loader);
+ g_object_ref (G_OBJECT (pixbuf));
+ ygtk_image_set_animation (image, pixbuf, "on block data reading callback");
+ }
+ }
+ else {
+ GdkPixbuf *pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
+ g_object_ref (G_OBJECT (pixbuf));
+ ygtk_image_set_pixbuf (image, pixbuf, "on block data reading callback");
+ }
+}
+
+void ygtk_image_set_from_data (YGtkImage *image, const guint8 *data, long data_size, gboolean anim)
+{
+ GError *error = 0;
+ if (anim && ygdk_mng_pixbuf_is_data_mng (data, data_size)) {
+ GdkPixbufAnimation *pixbuf;
+ pixbuf = ygdk_mng_pixbuf_new_from_data (data, data_size, &error);
+ ygtk_image_set_animation (image, pixbuf, error ? error->message : "(undefined)");
+ }
+ else {
+ image->animated = anim;
+ GdkPixbufLoader *loader = gdk_pixbuf_loader_new();
+ g_signal_connect (G_OBJECT (loader), "area-prepared",
+ G_CALLBACK (ygtk_image_loaded_cb), image);
+ if (!gdk_pixbuf_loader_write (loader, data, data_size, &error))
+ g_warning ("Could not load image from data blocks: %s", error->message);
+ gdk_pixbuf_loader_close (loader, &error);
+ }
+}
+
+void ygtk_image_set_props (YGtkImage *image, YGtkImageAlign align, const gchar *alt_text)
+{
+ image->align = align;
+ if (image->alt_text)
+ g_free (image->alt_text);
+ if (alt_text)
+ image->alt_text = g_strdup (alt_text);
+ gtk_widget_queue_draw (GTK_WIDGET (image));
+}
+
+static void ygtk_image_size_request (GtkWidget *widget, GtkRequisition *requisition)
+{
+ YGtkImage *image = YGTK_IMAGE (widget);
+ int width = 0, height = 0;
+ if (image->loaded) {
+ if (image->animated) {
+ width = gdk_pixbuf_animation_get_width (image->animation->pixbuf);
+ height = gdk_pixbuf_animation_get_height (image->animation->pixbuf);
+ }
+ else {
+ width = gdk_pixbuf_get_width (image->pixbuf);
+ height = gdk_pixbuf_get_height (image->pixbuf);
+ }
+ }
+ else if (image->alt_text) {
+ PangoLayout *layout;
+ layout = gtk_widget_create_pango_layout (widget, image->alt_text);
+ pango_layout_get_pixel_size (layout, &width, &height);
+ }
+ requisition->width = width;
+ requisition->height = height;
+}
+
+static GdkPixbuf *ygtk_image_render_state (GtkWidget *widget, GdkPixbuf *pixbuf)
+{
+ // as in GtkImage
+ GtkIconSource *source = gtk_icon_source_new();
+ GdkPixbuf *rendered;
+ gtk_icon_source_set_pixbuf (source, pixbuf);
+ gtk_icon_source_set_size (source, GTK_ICON_SIZE_SMALL_TOOLBAR);
+ gtk_icon_source_set_size_wildcarded (source, FALSE);
+ rendered = gtk_style_render_icon (widget->style, source,
+ gtk_widget_get_direction (widget), GTK_WIDGET_STATE (widget),
+ /* arbitrary */ (GtkIconSize)-1, widget, "gtk-image");
+ gtk_icon_source_free (source);
+ return rendered;
+}
+
+static gboolean ygtk_image_expose_event (GtkWidget *widget, GdkEventExpose *event)
+{
+ YGtkImage *image = YGTK_IMAGE (widget);
+ int width, height;
+ width = widget->allocation.width;
+ height = widget->allocation.height;
+
+ cairo_t *cr = gdk_cairo_create (widget->window);
+
+ if (!image->loaded) {
+ if (image->alt_text) {
+ // show alt text if no image was loaded
+ PangoLayout *layout;
+ layout = gtk_widget_create_pango_layout (widget, image->alt_text);
+
+ int x, y;
+ x = (width - widget->requisition.width) / 2;
+ y = (height - widget->requisition.height) / 2;
+
+ cairo_move_to (cr, x, y);
+ pango_cairo_show_layout (cr, layout);
+
+ g_object_unref (layout);
+ }
+ cairo_destroy (cr);
+ return FALSE;
+ }
+
+ GdkPixbuf *pixbuf;
+ if (image->animated)
+ pixbuf = gdk_pixbuf_animation_iter_get_pixbuf (image->animation->frame);
+ else
+ pixbuf = image->pixbuf;
+
+ gboolean needs_transform = GTK_WIDGET_STATE (widget) != GTK_STATE_NORMAL;
+ if (needs_transform)
+ pixbuf = ygtk_image_render_state (widget, pixbuf);
+ int x = 0, y = 0;
+ if (image->align == CENTER_IMAGE_ALIGN) {
+ x = (width - widget->requisition.width) / 2;
+ y = (height - widget->requisition.height) / 2;
+ }
+
+ gdk_cairo_set_source_pixbuf (cr, pixbuf, x, y);
+
+ switch (image->align) {
+ case CENTER_IMAGE_ALIGN:
+ break;
+ case SCALE_IMAGE_ALIGN:
+ {
+ double scale_x = (double) gdk_pixbuf_get_width (pixbuf) / width;
+ double scale_y = (double) gdk_pixbuf_get_height (pixbuf) / height;
+ cairo_matrix_t matrix;
+ cairo_matrix_init_scale (&matrix, scale_x, scale_y);
+ cairo_pattern_set_matrix (cairo_get_source (cr), &matrix);
+ break;
+ }
+ case TILE_IMAGE_ALIGN:
+ cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT);
+ break;
+ }
+
+ cairo_rectangle (cr, x, y, width, height);
+ cairo_fill (cr);
+
+ cairo_destroy (cr);
+ if (needs_transform)
+ g_object_unref (G_OBJECT (pixbuf));
+ return FALSE;
+}
+
+GtkWidget* ygtk_image_new (void)
+{
+ return g_object_new (YGTK_TYPE_IMAGE, NULL);
+}
+
+static void ygtk_image_class_init (YGtkImageClass *klass)
+{
+ GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->expose_event = ygtk_image_expose_event;
+ widget_class->size_request = ygtk_image_size_request;
+
+ GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass);
+ gtkobject_class->destroy = ygtk_image_destroy;
+}
+
Added: trunk/gtk/unstable-libyui/src/ygtkimage.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkimag…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkimage.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtkimage.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,75 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* GtkImage doesn't provide all the functionality asked by libyui,
+ such as scaling and tiling. Thus, YGtkImage is a more powerful
+ GtkImage.
+*/
+
+#ifndef YGTK_IMAGE_H
+#define YGTK_IMAGE_H
+
+#include <gtk/gtkdrawingarea.h>
+#include <gdk/gdkpixbuf.h>
+
+G_BEGIN_DECLS
+
+#define YGTK_TYPE_IMAGE (ygtk_image_get_type ())
+#define YGTK_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_IMAGE, YGtkImage))
+#define YGTK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_IMAGE, YGtkImageClass))
+#define YGTK_IS_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_IMAGE))
+#define YGTK_IS_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_IMAGE))
+#define YGTK_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_IMAGE, YGtkImageClass))
+
+typedef enum {
+ CENTER_IMAGE_ALIGN, SCALE_IMAGE_ALIGN, TILE_IMAGE_ALIGN
+} YGtkImageAlign;
+
+struct _YGtkImageAnimation {
+ GdkPixbufAnimation *pixbuf;
+ GdkPixbufAnimationIter *frame;
+ guint timeout_id;
+};
+
+typedef struct _YGtkImage
+{
+ GtkDrawingArea parent;
+
+ // properties:
+ YGtkImageAlign align;
+
+ gboolean animated;
+ union {
+ GdkPixbuf *pixbuf;
+ struct _YGtkImageAnimation *animation;
+ };
+
+ gboolean loaded;
+ gchar *alt_text;
+
+} YGtkImage;
+
+typedef struct _YGtkImageClass
+{
+ GtkDrawingAreaClass parent_class;
+} YGtkImageClass;
+
+GtkWidget* ygtk_image_new (void);
+GType ygtk_image_get_type (void) G_GNUC_CONST;
+
+void ygtk_image_set_from_file (YGtkImage *image, const char *filename, gboolean anim);
+void ygtk_image_set_from_data (YGtkImage *image, const guint8 *data, long size, gboolean anim);
+void ygtk_image_set_props (YGtkImage *image, YGtkImageAlign align, const gchar *alt_text);
+
+// as we don't have a window,
+
+G_END_DECLS
+
+#endif /* YGTK_IMAGE_H */
+
Added: trunk/gtk/unstable-libyui/src/ygtkmenubutton.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkmenu…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkmenubutton.c (added)
+++ trunk/gtk/unstable-libyui/src/ygtkmenubutton.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,247 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkMenuButton widget */
+// check the header file for information about this widget
+
+#include <config.h>
+#include "ygtkmenubutton.h"
+#include <gtk/gtk.h>
+#include <gdk/gdkkeysyms.h>
+
+//** YGtkPopupWindow
+
+G_DEFINE_TYPE (YGtkPopupWindow, ygtk_popup_window, GTK_TYPE_WINDOW)
+
+static void ygtk_popup_window_init (YGtkPopupWindow *popup)
+{
+ GtkWindow *window = GTK_WINDOW (popup);
+ gtk_window_set_resizable (window, FALSE);
+
+ GtkWidget *frame = gtk_frame_new (NULL);
+ gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_OUT);
+ gtk_widget_show (frame);
+ gtk_container_add (GTK_CONTAINER (window), frame);
+}
+
+static void ygtk_popup_window_hide (GtkWidget *widget)
+{
+ gtk_grab_remove (widget);
+ GTK_WIDGET_CLASS (ygtk_popup_window_parent_class)->hide (widget);
+}
+
+static gboolean ygtk_popup_window_key_press_event (GtkWidget *widget, GdkEventKey *event)
+{
+ if (event->keyval == GDK_Escape) {
+ gtk_widget_hide (widget);
+ return TRUE;
+ }
+ return GTK_WIDGET_CLASS (ygtk_popup_window_parent_class)->key_press_event
+ (widget, event);
+}
+
+static gboolean ygtk_popup_window_button_press_event (GtkWidget *widget,
+ GdkEventButton *event)
+{
+ // NOTE: You can't rely on events x and y since the event may take place
+ // outside of the window.
+ // So, we'll check if this widget (or any of its kids) got the event
+ // If that's not the case, close the menu
+
+ GtkWidget *child = gtk_get_event_widget ((GdkEvent *) event);
+ if (child != widget)
+ while (child) {
+ if (child == widget)
+ return FALSE;
+ child = child->parent;
+ }
+ gtk_widget_hide (widget);
+ return TRUE;
+}
+
+GtkWidget *ygtk_popup_window_new (GtkWidget *child)
+{
+ GtkWidget *widget = g_object_new (YGTK_TYPE_POPUP_WINDOW,
+ "type", GTK_WINDOW_POPUP, NULL);
+ GtkWidget *frame = gtk_bin_get_child (GTK_BIN (widget));
+ gtk_container_add (GTK_CONTAINER (frame), child);
+ return widget;
+}
+
+void ygtk_popup_window_popup (GtkWidget *widget, gint x, gint y, guint activate_time)
+{
+ gtk_grab_add (widget);
+ gtk_window_move (GTK_WINDOW (widget), x, y);
+ gtk_widget_grab_focus (widget);
+ gtk_widget_show (widget);
+
+ // grab this with your teeth
+ if (gdk_pointer_grab (widget->window, TRUE,
+ GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK,
+ NULL, NULL, activate_time) == 0)
+ if (gdk_keyboard_grab (widget->window, TRUE, activate_time) != 0)
+ gdk_pointer_ungrab(activate_time);
+}
+
+static void ygtk_popup_window_class_init (YGtkPopupWindowClass *klass)
+{
+ ygtk_popup_window_parent_class = g_type_class_peek_parent (klass);
+
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->key_press_event = ygtk_popup_window_key_press_event;
+ widget_class->button_press_event = ygtk_popup_window_button_press_event;
+ widget_class->hide = ygtk_popup_window_hide;
+}
+
+//** YGtkMenuButton
+
+G_DEFINE_TYPE (YGtkMenuButton, ygtk_menu_button, GTK_TYPE_TOGGLE_BUTTON)
+
+static void ygtk_menu_button_init (YGtkMenuButton *button)
+{
+ button->popup = NULL;
+ button->label = gtk_label_new ("");
+
+ GtkWidget *hbox, *arrow;
+ hbox = gtk_hbox_new (FALSE, 0);
+ arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_IN);
+
+ if (gtk_widget_get_direction (arrow) == GTK_TEXT_DIR_LTR) {
+ gtk_container_add (GTK_CONTAINER (hbox), button->label);
+ gtk_container_add (GTK_CONTAINER (hbox), arrow);
+ }
+ else {
+ gtk_container_add (GTK_CONTAINER (hbox), arrow);
+ gtk_container_add (GTK_CONTAINER (hbox), button->label);
+ }
+
+ gtk_box_set_child_packing (GTK_BOX (hbox), arrow, FALSE, FALSE,
+ 5, GTK_PACK_START);
+
+ gtk_widget_show_all (hbox);
+ gtk_container_add (GTK_CONTAINER (button), hbox);
+}
+
+static void ygtk_menu_button_free_popup (YGtkMenuButton *button)
+{
+ if (button->popup) {
+ gtk_widget_destroy (GTK_WIDGET (button->popup));
+ g_object_unref (G_OBJECT (button->popup));
+ button->popup = NULL;
+ }
+}
+
+static void ygtk_menu_button_finalize (GObject *object)
+{
+ ygtk_menu_button_free_popup (YGTK_MENU_BUTTON (object));
+ G_OBJECT_CLASS (ygtk_menu_button_parent_class)->finalize (object);
+}
+
+static void ygtk_menu_button_get_menu_pos (GtkMenu *menu, gint *x, gint *y,
+ gboolean *push_in, gpointer pointer)
+{
+ GtkWidget *widget = (GtkWidget*) pointer;
+ gdk_window_get_origin (widget->window, x, y);
+ *x += widget->allocation.x;
+ *y += widget->allocation.y + widget->allocation.height;
+ *push_in = TRUE;
+}
+
+static void ygtk_menu_button_show_popup (YGtkMenuButton *button)
+{
+ GtkWidget *widget = GTK_WIDGET (button);
+ GtkWidget *popup = button->popup;
+ if (!popup)
+ return;
+
+ guint activate_time = gtk_get_current_event_time();
+
+ if (GTK_IS_MENU (popup))
+ gtk_menu_popup (GTK_MENU (popup), NULL, NULL, ygtk_menu_button_get_menu_pos,
+ widget, 0, activate_time);
+ else { // GTK_IS_WINDOW
+ gint x, y;
+ gdk_window_get_origin (GDK_WINDOW (widget->window), &x, &y);
+ x += widget->allocation.x;
+ y += widget->allocation.y + widget->allocation.height;
+
+ ygtk_popup_window_popup (popup, x, y, activate_time);
+ }
+
+ if (widget->allocation.width > popup->allocation.width)
+ gtk_widget_set_size_request (popup, widget->allocation.width, -1);
+}
+
+static void ygtk_menu_button_hide_popup (YGtkMenuButton *button)
+{
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE);
+}
+
+static void ygtk_menu_button_button_toggle (GtkToggleButton *button)
+{
+ if (gtk_toggle_button_get_active (button))
+ ygtk_menu_button_show_popup (YGTK_MENU_BUTTON (button));
+ else
+ ygtk_menu_button_hide_popup (YGTK_MENU_BUTTON (button));
+}
+
+static gint ygtk_menu_button_button_press (GtkWidget *widget, GdkEventButton *event)
+{
+ if (event->type == GDK_BUTTON_PRESS && event->button == 1) {
+ if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget))) {
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
+ ygtk_menu_button_show_popup (YGTK_MENU_BUTTON (widget));
+ }
+ else
+ ygtk_menu_button_hide_popup (YGTK_MENU_BUTTON (widget));
+ return TRUE;
+ }
+ return FALSE;
+}
+
+GtkWidget *ygtk_menu_button_new (void)
+{
+ return g_object_new (YGTK_TYPE_MENU_BUTTON, NULL);
+}
+
+void ygtk_menu_button_set_label (YGtkMenuButton *button, const gchar *label)
+{
+ gtk_label_set_text_with_mnemonic (GTK_LABEL (button->label), label);
+ gtk_widget_show (button->label);
+}
+
+static void menu_button_hide_popup (GtkWidget *widget, YGtkMenuButton *button)
+{ ygtk_menu_button_hide_popup (button); }
+
+void ygtk_menu_button_set_popup (YGtkMenuButton *button, GtkWidget *popup)
+{
+ ygtk_menu_button_free_popup (button);
+
+ if (!GTK_IS_MENU (popup) && !IS_YGTK_POPUP_WINDOW (popup)) {
+ // install widget on a YGtkPopupMenu
+ button->popup = ygtk_popup_window_new (popup);
+ }
+ else
+ button->popup = popup;
+
+ g_object_ref (G_OBJECT (button->popup));
+ gtk_object_sink (GTK_OBJECT (button->popup));
+
+ g_signal_connect (G_OBJECT (popup), "hide",
+ G_CALLBACK (menu_button_hide_popup), button);
+}
+
+static void ygtk_menu_button_class_init (YGtkMenuButtonClass *klass)
+{
+ ygtk_menu_button_parent_class = g_type_class_peek_parent (klass);
+
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+ gobject_class->finalize = ygtk_menu_button_finalize;
+
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->button_press_event = ygtk_menu_button_button_press;
+
+ GtkToggleButtonClass *toggle_button_class = GTK_TOGGLE_BUTTON_CLASS (klass);
+ toggle_button_class->toggled = ygtk_menu_button_button_toggle;
+}
Added: trunk/gtk/unstable-libyui/src/ygtkmenubutton.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkmenu…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkmenubutton.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtkmenubutton.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,90 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkMenuButton is a button that displays a widget when pressed.
+ This widget can either be of type GtkMenu or another, like a
+ GtkCalendar and we'll do the proper "emulation" (the work of
+ the YGtkPopupWindow widget).
+*/
+
+#ifndef YGTK_POPUP_WINDOW_H
+#define YGTK_POPUP_WINDOW_H
+
+#include <gtk/gtkwindow.h>
+G_BEGIN_DECLS
+
+#define YGTK_TYPE_POPUP_WINDOW (ygtk_popup_window_get_type ())
+#define YGTK_POPUP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_POPUP_WINDOW, YGtkPopupWindow))
+#define YGTK_POPUP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_POPUP_WINDOW, YGtkPopupWindowClass))
+#define IS_YGTK_POPUP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_POPUP_WINDOW))
+#define IS_YGTK_POPUP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_POPUP_WINDOW))
+#define YGTK_POPUP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_POPUP_WINDOW, YGtkPopupWindowClass))
+
+typedef struct _YGtkPopupWindow
+{
+ GtkWindow parent;
+} YGtkPopupWindow;
+
+typedef struct _YGtkPopupWindowClass
+{
+ GtkWindowClass parent_class;
+} YGtkPopupWindowClass;
+
+// don't forget to use gtk_widget_show() on the child!
+GtkWidget* ygtk_popup_window_new (GtkWidget *child);
+GType ygtk_popup_window_get_type (void) G_GNUC_CONST;
+
+void ygtk_popup_window_popup (GtkWidget *widget, gint x, gint y, guint activate_time);
+
+G_END_DECLS
+#endif /*YGTK_POPUP_WINDOW_H*/
+
+#ifndef YGTK_MENU_BUTTON_H
+#define YGTK_MENU_BUTTON_H
+
+#include <gtk/gtktogglebutton.h>
+#include <gtk/gtkmenu.h>
+G_BEGIN_DECLS
+
+#define YGTK_TYPE_MENU_BUTTON (ygtk_menu_button_get_type ())
+#define YGTK_MENU_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_MENU_BUTTON, YGtkMenuButton))
+#define YGTK_MENU_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_MENU_BUTTON, YGtkMenuButtonClass))
+#define IS_YGTK_MENU_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_MENU_BUTTON))
+#define IS_YGTK_MENU_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_MENU_BUTTON))
+#define YGTK_MENU_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_MENU_BUTTON, YGtkMenuButtonClass))
+
+typedef struct _YGtkMenuButton
+{
+ GtkToggleButton parent;
+
+ // private:
+ GtkWidget *label, *popup;
+} YGtkMenuButton;
+
+typedef struct _YGtkMenuButtonClass
+{
+ GtkToggleButtonClass parent_class;
+} YGtkMenuButtonClass;
+
+GtkWidget* ygtk_menu_button_new (void);
+GType ygtk_menu_button_get_type (void) G_GNUC_CONST;
+
+void ygtk_menu_button_set_label (YGtkMenuButton *button, const gchar *label);
+
+/* Popup must be either a GtkMenu or a YGtkPopupWindow. */
+// You may hide your popup "manually" issueing a gtk_widget_hide() on it
+void ygtk_menu_button_set_popup (YGtkMenuButton *button, GtkWidget *popup);
+
+G_END_DECLS
+#endif /*YGTK_MENU_BUTTON_H*/
Added: trunk/gtk/unstable-libyui/src/ygtkratiobox.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkrati…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkratiobox.c (added)
+++ trunk/gtk/unstable-libyui/src/ygtkratiobox.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,585 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkRatioBox widget */
+// check the header file for information about this widget
+
+#include <config.h>
+#include "ygtkratiobox.h"
+
+G_DEFINE_ABSTRACT_TYPE (YGtkRatioBox, ygtk_ratio_box, GTK_TYPE_CONTAINER)
+
+static void ygtk_ratio_box_init (YGtkRatioBox *box)
+{
+ GTK_WIDGET_SET_FLAGS (box, GTK_NO_WINDOW);
+ gtk_widget_set_redraw_on_allocate (GTK_WIDGET (box), FALSE);
+}
+
+static GType ygtk_ratio_box_child_type (GtkContainer* container)
+{ return GTK_TYPE_WIDGET; }
+
+void ygtk_ratio_box_pack (YGtkRatioBox *box, GtkWidget *child,
+ gfloat ratio, gboolean xfill, gboolean yfill,
+ guint padding)
+{
+ YGtkRatioBoxChild* child_info;
+ child_info = g_new (YGtkRatioBoxChild, 1);
+ child_info->widget = child;
+ child_info->ratio = ratio;
+ child_info->padding = padding;
+ child_info->xfill = xfill;
+ child_info->yfill = yfill;
+ child_info->expand = 0;
+
+ box->children = g_list_append (box->children, child_info);
+
+ gtk_widget_freeze_child_notify (child);
+ gtk_widget_set_parent (child, GTK_WIDGET (box));
+ gtk_widget_thaw_child_notify (child);
+}
+
+static YGtkRatioBoxChild *ygtk_ratio_get_child_info (YGtkRatioBox *box, GtkWidget *child)
+{
+ YGtkRatioBoxChild *i = NULL;
+ GList *list;
+ for (list = box->children; list; list = list->next) {
+ i = (YGtkRatioBoxChild*) list->data;
+ if (i->widget == child)
+ break;
+ }
+ if (!list)
+ return NULL;
+ return i;
+}
+
+static void ygtk_ratio_box_add (GtkContainer *container, GtkWidget *child)
+{
+ ygtk_ratio_box_pack (YGTK_RATIO_BOX (container), child, 1.0, TRUE, TRUE, 0);
+}
+
+static void ygtk_ratio_box_remove (GtkContainer *container, GtkWidget *widget)
+{
+ YGtkRatioBox* box = YGTK_RATIO_BOX (container);
+
+ GList* child = box->children;
+ for (child = box->children; child; child = child->next) {
+ YGtkRatioBoxChild *box_child = (YGtkRatioBoxChild*) child->data;
+ if (box_child->widget == widget) {
+ gboolean was_visible = GTK_WIDGET_VISIBLE (widget);
+ gtk_widget_unparent (widget);
+
+ box->children = g_list_remove_link (box->children, child);
+ g_list_free (child);
+ g_free (box_child);
+
+ if (was_visible)
+ gtk_widget_queue_resize (GTK_WIDGET (container));
+ break;
+ }
+ }
+}
+
+static void ygtk_ratio_box_forall (GtkContainer *container, gboolean include_internals,
+ GtkCallback callback, gpointer callback_data)
+{
+ g_return_if_fail (callback != NULL);
+
+ YGtkRatioBox* box = YGTK_RATIO_BOX (container);
+
+ GList* children = box->children;
+ while (children) {
+ YGtkRatioBoxChild* child = (YGtkRatioBoxChild*) children->data;
+ children = children->next;
+ (* callback) (child->widget, callback_data);
+ }
+}
+
+/* We put size_request and _allocate in the same functions for both
+ orientations because it's just easier to maintain having the
+ logic in the same place. */
+
+static void ygtk_ratio_box_size_request (GtkWidget *widget,
+ GtkRequisition *requisition,
+ GtkOrientation orientation)
+{
+ YGtkRatioBox* box = YGTK_RATIO_BOX (widget);
+ gfloat ratios_sum = 0;
+ box->has_must_expand = FALSE;
+ GList* child;
+ for (child = box->children; child; child = child->next) {
+ YGtkRatioBoxChild* box_child = (YGtkRatioBoxChild*) child->data;
+ if (!GTK_WIDGET_VISIBLE (box_child->widget))
+ continue;
+ if (box_child->ratio)
+ ratios_sum += box_child->ratio;
+ if (box_child->must_expand)
+ box->has_must_expand = TRUE;
+ }
+
+ // If we want to calculate horizontal size, primary_req would be horizontal
+ // length, while secondary the height. Idem for the inverse.
+ guint primary_req = 0, secondary_req = 0;
+ box->weight_length = 0; // biggest ratio of widget-size / widget-ratio
+
+ for (child = box->children; child; child = child->next) {
+ YGtkRatioBoxChild* box_child = (YGtkRatioBoxChild*) child->data;
+ if (!GTK_WIDGET_VISIBLE (box_child->widget))
+ continue;
+
+ GtkRequisition child_req;
+ gtk_widget_size_request (box_child->widget, &child_req);
+
+ guint prim_length, sec_length;
+ if (orientation == GTK_ORIENTATION_HORIZONTAL) {
+ prim_length = child_req.width;
+ sec_length = child_req.height;
+ }
+ else {
+ prim_length = child_req.height;
+ sec_length = child_req.width;
+ }
+
+ if (box_child->ratio)
+ {
+ int length = (prim_length * ratios_sum) / box_child->ratio;
+ box->weight_length = MAX (box->weight_length, length);
+ }
+ else
+ primary_req += prim_length;
+ primary_req += box_child->padding + box->spacing;
+ secondary_req = MAX (secondary_req, sec_length);
+ }
+
+ primary_req += box->weight_length;
+
+ guint border = GTK_CONTAINER (widget)->border_width * 2;
+ primary_req += border*2; secondary_req += border*2;
+
+ if (orientation == GTK_ORIENTATION_HORIZONTAL) {
+ requisition->width = primary_req;
+ requisition->height = secondary_req;
+ }
+ else {
+ requisition->width = secondary_req;
+ requisition->height = primary_req;
+ }
+}
+
+static void ygtk_ratio_box_size_allocate (GtkWidget *widget,
+ GtkAllocation *allocation,
+ GtkOrientation orientation)
+{
+ YGtkRatioBox* box = YGTK_RATIO_BOX (widget);
+ guint border = GTK_CONTAINER (widget)->border_width;
+
+ // a first loop to get some data for expansibles (ie. childs with weight)
+ gfloat ratios_sum = 0;
+ gint expand_num = 0, max_ratio = 0;
+ gint expansable_length;
+ if (orientation == GTK_ORIENTATION_HORIZONTAL)
+ expansable_length = allocation->width - border*2;
+ else
+ expansable_length = allocation->height - border*2;
+
+ GList* child;
+ for (child = box->children; child; child = child->next) {
+ YGtkRatioBoxChild* box_child = (YGtkRatioBoxChild*) child->data;
+ if (!GTK_WIDGET_VISIBLE (box_child->widget))
+ continue;
+
+ if (box_child->expand)
+ expand_num++;
+ if (box_child->ratio)
+ {
+ ratios_sum += box_child->ratio;
+ max_ratio = MAX (max_ratio, box_child->ratio);
+ }
+
+ if (!box_child->ratio)
+ {
+ GtkRequisition child_req;
+ gtk_widget_get_child_requisition (box_child->widget, &child_req);
+ if (orientation == GTK_ORIENTATION_HORIZONTAL)
+ expansable_length -= child_req.width;
+ else
+ expansable_length -= child_req.height;
+ }
+ expansable_length -= box->spacing - box_child->padding;
+ }
+ expansable_length -= box->weight_length;
+
+ gint child_pos = 0;
+ if (orientation == GTK_ORIENTATION_HORIZONTAL)
+ child_pos = allocation->x + border;
+ else
+ child_pos = allocation->y + border;
+
+ gboolean right_to_left = gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL;
+ for (child = box->children; child; child = child->next) {
+ YGtkRatioBoxChild* box_child = (YGtkRatioBoxChild*) child->data;
+ if (!GTK_WIDGET_VISIBLE (box_child->widget))
+ continue;
+
+ GtkAllocation child_alloc;
+ gint length;
+
+ GtkRequisition child_req;
+ gtk_widget_get_child_requisition (box_child->widget, &child_req);
+
+ if (!box_child->ratio)
+ {
+ if (orientation == GTK_ORIENTATION_HORIZONTAL)
+ length = child_req.width;
+ else
+ length = child_req.height;
+ }
+
+ // give extra size (honor stretch order)
+ if (box_child->ratio)
+ {
+ int available_length = box->weight_length;
+ if (!box->has_must_expand)
+ available_length += expansable_length;
+ length = (box_child->ratio * available_length) / ratios_sum;
+ }
+ else if (box_child->expand && (ratios_sum == 0 || box_child->must_expand))
+ {
+ // FIXME: something is wrong for expansable_length being < 0 at times
+ // we aren't asking for enough size!
+ if (expansable_length > 0)
+ length += expansable_length / expand_num;
+ }
+
+ if (orientation == GTK_ORIENTATION_HORIZONTAL) {
+ child_alloc.x = child_pos;
+ child_alloc.y = allocation->y + border;
+ child_alloc.width = length;
+ child_alloc.height = allocation->height - border*2;
+ }
+ else { // GTK_ORIENTATION_VERTICAL
+ child_alloc.x = allocation->x + border;
+ child_alloc.y = child_pos;
+ child_alloc.width = allocation->width - border*2;
+ child_alloc.height = length;
+ }
+
+ if (!box_child->xfill) {
+ // we also need to center the widget
+ gint width = MIN (child_alloc.width, child_req.width);
+ child_alloc.x += MAX ((child_alloc.width - width) / 2, 0);
+ child_alloc.width = width;
+ }
+ if (!box_child->yfill) {
+ gint height = MIN (child_alloc.height, child_req.height);
+ child_alloc.y += MAX ((child_alloc.height - height) / 2, 0);
+ child_alloc.height = height;
+ }
+
+ if (right_to_left)
+ child_alloc.x = allocation->width - child_alloc.x - child_alloc.width;
+
+ gtk_widget_size_allocate (box_child->widget, &child_alloc);
+ child_pos += length + box->spacing + box_child->padding;
+ }
+}
+
+void ygtk_ratio_box_set_child_packing (YGtkRatioBox *box, GtkWidget *child,
+ gfloat ratio, gboolean xfill, gboolean yfill,
+ guint padding)
+{
+ YGtkRatioBoxChild *child_info;
+ child_info = ygtk_ratio_get_child_info (box, child);
+
+ if (child_info) {
+ gtk_widget_freeze_child_notify (child);
+
+ child_info->ratio = ratio;
+ child_info->xfill = xfill;
+ child_info->yfill = yfill;
+ child_info->padding = padding;
+ child_info->expand = 0;
+ child_info->must_expand = 0;
+
+ if (GTK_WIDGET_VISIBLE (child) && GTK_WIDGET_VISIBLE (box))
+ gtk_widget_queue_resize (child);
+
+ gtk_widget_thaw_child_notify (child);
+ }
+}
+
+void ygtk_ratio_box_get_child_packing (YGtkRatioBox *box, GtkWidget *child,
+ gfloat *ratio, gboolean *xfill,
+ gboolean *yfill, guint *padding,
+ gboolean *expand)
+{
+ YGtkRatioBoxChild *child_info;
+ child_info = ygtk_ratio_get_child_info (box, child);
+
+ if (child_info) {
+ gtk_widget_freeze_child_notify (child);
+
+ if (ratio) *ratio = child_info->ratio;
+ if (xfill) *xfill = child_info->xfill;
+ if (yfill) *yfill = child_info->yfill;
+ if (padding) *padding = child_info->padding;
+ if (expand) *expand = child_info->expand;
+ }
+}
+
+void ygtk_ratio_box_set_child_expand (YGtkRatioBox *box, GtkWidget *child,
+ gboolean expand, gboolean must_expand)
+{
+ YGtkRatioBoxChild *child_info;
+ child_info = ygtk_ratio_get_child_info (box, child);
+ if (child_info)
+ {
+ child_info->expand = expand;
+ if (expand)
+ child_info->must_expand = must_expand;
+ }
+}
+
+void ygtk_ratio_box_set_child_ratio (YGtkRatioBox *box, GtkWidget *child,
+ gfloat ratio)
+{
+ YGtkRatioBoxChild *child_info;
+ child_info = ygtk_ratio_get_child_info (box, child);
+ if (child_info)
+ child_info->ratio = ratio;
+}
+
+void ygtk_ratio_box_set_spacing (YGtkRatioBox *box, gint spacing)
+{
+ box->spacing = spacing;
+}
+
+static void ygtk_ratio_box_class_init (YGtkRatioBoxClass *klass)
+{
+ ygtk_ratio_box_parent_class = (GtkContainerClass*) g_type_class_peek_parent (klass);
+
+ GtkContainerClass *container_class = GTK_CONTAINER_CLASS (klass);
+ container_class->add = ygtk_ratio_box_add;
+ container_class->remove = ygtk_ratio_box_remove;
+ container_class->forall = ygtk_ratio_box_forall;
+ container_class->child_type = ygtk_ratio_box_child_type;
+}
+
+//** RatioHBox
+
+G_DEFINE_TYPE (YGtkRatioHBox, ygtk_ratio_hbox, YGTK_TYPE_RATIO_BOX)
+
+static void ygtk_ratio_hbox_init (YGtkRatioHBox *box)
+{
+}
+
+static void ygtk_ratio_hbox_size_request (GtkWidget *widget,
+ GtkRequisition *requisition)
+{
+ ygtk_ratio_box_size_request (widget, requisition, GTK_ORIENTATION_HORIZONTAL);
+}
+
+static void ygtk_ratio_hbox_size_allocate (GtkWidget *widget,
+ GtkAllocation *allocation)
+{
+ ygtk_ratio_box_size_allocate (widget, allocation, GTK_ORIENTATION_HORIZONTAL);
+}
+
+GtkWidget* ygtk_ratio_hbox_new (gint spacing)
+{
+ YGtkRatioBox* box = (YGtkRatioBox*) g_object_new (YGTK_TYPE_RATIO_HBOX, NULL);
+ box->spacing = spacing;
+ return GTK_WIDGET (box);
+}
+
+static void ygtk_ratio_hbox_class_init (YGtkRatioHBoxClass *klass)
+{
+ ygtk_ratio_hbox_parent_class = (YGtkRatioBoxClass*) g_type_class_peek_parent (klass);
+
+ GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->size_request = ygtk_ratio_hbox_size_request;
+ widget_class->size_allocate = ygtk_ratio_hbox_size_allocate;
+}
+
+//** RatioVBox
+
+G_DEFINE_TYPE (YGtkRatioVBox, ygtk_ratio_vbox, YGTK_TYPE_RATIO_BOX)
+
+static void ygtk_ratio_vbox_init (YGtkRatioVBox *box)
+{
+}
+
+static void ygtk_ratio_vbox_size_request (GtkWidget *widget,
+ GtkRequisition *requisition)
+{
+ ygtk_ratio_box_size_request (widget, requisition, GTK_ORIENTATION_VERTICAL);
+}
+
+static void ygtk_ratio_vbox_size_allocate (GtkWidget *widget,
+ GtkAllocation *allocation)
+{
+ ygtk_ratio_box_size_allocate (widget, allocation, GTK_ORIENTATION_VERTICAL);
+}
+
+GtkWidget* ygtk_ratio_vbox_new (gint spacing)
+{
+ YGtkRatioBox* box = (YGtkRatioBox*) g_object_new (YGTK_TYPE_RATIO_VBOX, NULL);
+ box->spacing = spacing;
+ return GTK_WIDGET (box);
+}
+
+static void ygtk_ratio_vbox_class_init (YGtkRatioVBoxClass *klass)
+{
+ ygtk_ratio_vbox_parent_class = g_type_class_peek_parent (klass);
+
+ GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->size_request = ygtk_ratio_vbox_size_request;
+ widget_class->size_allocate = ygtk_ratio_vbox_size_allocate;
+}
+
+//** YGtkAdjSize
+
+G_DEFINE_TYPE (YGtkAdjSize, ygtk_adj_size, GTK_TYPE_BIN)
+
+static void ygtk_adj_size_init (YGtkAdjSize *adj_size)
+{
+ GTK_WIDGET_SET_FLAGS (adj_size, GTK_NO_WINDOW);
+ gtk_widget_set_redraw_on_allocate (GTK_WIDGET (adj_size), FALSE);
+}
+
+static void ygtk_adj_size_size_request (GtkWidget *widget,
+ GtkRequisition *requisition)
+{
+ GtkWidget *child = GTK_BIN (widget)->child;
+ requisition->width = requisition->height = 0;
+ if (child && GTK_WIDGET_VISIBLE (child)) {
+ gtk_widget_size_request (child, requisition);
+ guint border = GTK_CONTAINER (widget)->border_width;
+ requisition->width += border * 2;
+ requisition->height += border * 2;
+
+ YGtkAdjSize *adj_size = YGTK_ADJ_SIZE (widget);
+ requisition->width = MAX (requisition->width, adj_size->min_width);
+ requisition->height = MAX (requisition->height, adj_size->min_height);
+
+ if (adj_size->max_width)
+ requisition->width = MIN (requisition->width, adj_size->max_width);
+ if (adj_size->max_height)
+ requisition->height = MIN (requisition->height, adj_size->max_height);
+
+ if (adj_size->only_expand) {
+ adj_size->min_width = requisition->width;
+ adj_size->min_height = requisition->height;
+ }
+ }
+}
+
+static void ygtk_adj_size_size_allocate (GtkWidget *widget,
+ GtkAllocation *allocation)
+{
+ GtkWidget *child = GTK_BIN (widget)->child;
+ if (child && GTK_WIDGET_VISIBLE (child)) {
+ GtkAllocation child_alloc = *allocation;
+ guint border = GTK_CONTAINER (widget)->border_width;
+ child_alloc.x += border;
+ child_alloc.y += border;
+ child_alloc.width -= border * 2;
+ child_alloc.height -= border * 2;
+ gtk_widget_size_allocate (child, &child_alloc);
+ }
+ GTK_WIDGET_CLASS (ygtk_adj_size_parent_class)->size_allocate (widget, allocation);
+}
+
+GtkWidget* ygtk_adj_size_new (void)
+{
+ return GTK_WIDGET (g_object_new (YGTK_TYPE_ADJ_SIZE, NULL));
+}
+
+void ygtk_adj_size_set_min (YGtkAdjSize *adj_size, guint min_width, guint min_height)
+{
+ adj_size->min_width = min_width;
+ adj_size->min_height = min_height;
+}
+
+void ygtk_adj_size_set_max (YGtkAdjSize *adj_size, guint max_width, guint max_height)
+{
+ adj_size->max_width = max_width;
+ adj_size->max_height = max_height;
+}
+
+void ygtk_adj_size_set_only_expand (YGtkAdjSize *adj_size, gboolean only_expand)
+{
+ adj_size->only_expand = only_expand;
+}
+
+static void ygtk_adj_size_class_init (YGtkAdjSizeClass *klass)
+{
+ ygtk_adj_size_parent_class = g_type_class_peek_parent (klass);
+
+ GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->size_request = ygtk_adj_size_size_request;
+ widget_class->size_allocate = ygtk_adj_size_size_allocate;
+}
+
+//** YGtkScrolledWindow
+
+G_DEFINE_TYPE (YGtkScrolledWindow, ygtk_scrolled_window, GTK_TYPE_SCROLLED_WINDOW)
+
+static void ygtk_scrolled_window_init (YGtkScrolledWindow *scroll)
+{
+}
+
+static void ygtk_scrolled_window_size_request (GtkWidget *widget,
+ GtkRequisition *requisition)
+{
+ YGtkScrolledWindow *scroll = YGTK_SCROLLED_WINDOW (widget);
+
+ GtkRequisition child_req;
+ GtkWidget *child = GTK_BIN (widget)->child;
+ gtk_widget_size_request (child, &child_req);
+
+ GtkScrolledWindow *gscroll = GTK_SCROLLED_WINDOW (widget);
+ GtkPolicyType hpolicy, vpolicy;
+ gtk_scrolled_window_get_policy (gscroll, &hpolicy, &vpolicy);
+
+ if (scroll->max_width) {
+ if (child_req.width < scroll->max_width)
+ gscroll->hscrollbar_policy = GTK_POLICY_NEVER;
+ else
+ gscroll->hscrollbar_policy = GTK_POLICY_AUTOMATIC;
+ }
+ if (scroll->max_height) {
+ if (child_req.height < scroll->max_height)
+ gscroll->vscrollbar_policy = GTK_POLICY_NEVER;
+ else
+ gscroll->vscrollbar_policy = GTK_POLICY_AUTOMATIC;
+ }
+
+ GTK_WIDGET_CLASS (ygtk_scrolled_window_parent_class)->size_request (widget, requisition);
+ // to avoid disruptions:
+ requisition->width = MIN (requisition->width, scroll->max_width);
+ requisition->height = MIN (requisition->height, scroll->max_height);
+}
+
+GtkWidget* ygtk_scrolled_window_new (GtkWidget *child)
+{
+ YGtkScrolledWindow *scroll = g_object_new (YGTK_TYPE_SCROLLED_WINDOW, NULL);
+ if (child)
+ gtk_container_add (GTK_CONTAINER (scroll), child);
+ return GTK_WIDGET (scroll);
+}
+
+void ygtk_scrolled_window_set_auto_policy (YGtkScrolledWindow *scroll,
+ guint max_width, guint max_height)
+{
+ scroll->max_width = max_width;
+ scroll->max_height = max_height;
+}
+
+static void ygtk_scrolled_window_class_init (YGtkScrolledWindowClass *klass)
+{
+ ygtk_scrolled_window_parent_class = g_type_class_peek_parent (klass);
+
+ GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->size_request = ygtk_scrolled_window_size_request;
+}
Added: trunk/gtk/unstable-libyui/src/ygtkratiobox.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkrati…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkratiobox.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtkratiobox.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,239 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkRatioBox is an improvement over the GtkBox container that
+ allows the programmer to set stretch weights to containees.
+
+ It is similar to GtkBox in usage but instead of feeding an
+ expand boolean, a weight is given instead. In fact, it should
+ behave just the same as a GtkBox if you give 0 for not expand
+ and 1 to.
+*/
+/*
+ Quirks (cause of yast-core):
+ if one of the children has certain special properties, then only widgets with
+ the same properties will be expanded. These are, by order:
+ both stretch and rubber-band
+ both stretch and weight
+ weight
+ stretch
+
+ We use different naming:
+ stretch = expand
+ rubber-band or layout-stretch = must expand
+ weight = ratio
+*/
+
+#ifndef YGTK_RATIO_BOX_H
+#define YGTK_RATIO_BOX_H
+
+#include <gdk/gdk.h>
+#include <gtk/gtkcontainer.h>
+G_BEGIN_DECLS
+
+#define YGTK_TYPE_RATIO_BOX (ygtk_ratio_box_get_type ())
+#define YGTK_RATIO_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_RATIO_BOX, YGtkRatioBox))
+#define YGTK_RATIO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_RATIO_BOX, YGtkRatioBoxClass))
+#define YGTK_IS_RATIO_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_RATIO_BOX))
+#define YGTK_IS_RATIO_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_RATIO_BOX))
+#define YGTK_RATIO_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_RATIO_BOX, YGtkRatioBoxClass))
+
+typedef struct _YGtkRatioBox
+{
+ GtkContainer parent;
+
+ // private (read-only):
+ GList *children;
+ gint16 spacing;
+ guint weight_length; // min-length for weight widgets
+ guint has_must_expand : 1; // cache
+} YGtkRatioBox;
+
+typedef struct _YGtkRatioBoxClass
+{
+ GtkContainerClass parent_class;
+} YGtkRatioBoxClass;
+
+typedef struct _YGtkRatioBoxChild
+{
+ GtkWidget *widget;
+ // members
+ guint16 padding;
+ gfloat ratio;
+ guint xfill : 1;
+ guint yfill : 1;
+ guint expand : 1; // twilight zone flag; use ratio
+ guint must_expand : 1; // higher order expand
+} YGtkRatioBoxChild;
+
+GType ygtk_ratio_box_get_type (void) G_GNUC_CONST;
+
+void ygtk_ratio_box_set_spacing (YGtkRatioBox *box, gint spacing);
+
+void ygtk_ratio_box_pack (YGtkRatioBox *box, GtkWidget *child, gfloat ratio,
+ gboolean xfill, gboolean yfill, guint padding);
+
+// If you don't want to use ratios, you can use the ordinary expand flag. NOTE:
+// If some other child has ratio > 0, this one won't expand.
+// All this mess is so we can conform with yast-core.
+void ygtk_ratio_box_set_child_expand (YGtkRatioBox *box, GtkWidget *child,
+ gboolean expand, gboolean must_expand);
+void ygtk_ratio_box_set_child_ratio (YGtkRatioBox *box, GtkWidget *child,
+ gfloat ratio);
+
+void ygtk_ratio_box_set_child_packing (YGtkRatioBox *box, GtkWidget *child,
+ gfloat ratio, gboolean xfill,
+ gboolean yfill, guint padding);
+
+void ygtk_ratio_box_get_child_packing (YGtkRatioBox *box, GtkWidget *child,
+ gfloat *ratio, gboolean *xfill,
+ gboolean *yfill, guint *padding,
+ gboolean *expandable);
+
+/* RatioHBox */
+
+#define YGTK_TYPE_RATIO_HBOX (ygtk_ratio_hbox_get_type ())
+#define YGTK_RATIO_HBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_RATIO_HBOX, YGtkRatioHBox))
+#define YGTK_RATIO_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_RATIO_HBOX, YGtkRatioHBoxClass))
+#define YGTK_IS_RATIO_HBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_RATIO_HBOX))
+#define YGTK_IS_RATIO_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_RATIO_HBOX))
+#define YGTK_RATIO_HBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_RATIO_HBOX, YGtkRatioHBoxClass))
+
+typedef struct _YGtkRatioHBox
+{
+ YGtkRatioBox parent;
+} YGtkRatioHBox;
+
+typedef struct _YGtkRatioHBoxClass
+{
+ YGtkRatioBoxClass parent_class;
+} YGtkRatioHBoxClass;
+
+GtkWidget* ygtk_ratio_hbox_new (gint spacing);
+GType ygtk_ratio_hbox_get_type (void) G_GNUC_CONST;
+
+/* RatioVBox */
+
+#define YGTK_TYPE_RATIO_VBOX (ygtk_ratio_vbox_get_type ())
+#define YGTK_RATIO_VBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_RATIO_VBOX, YGtkRatioVBox))
+#define YGTK_RATIO_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_RATIO_VBOX, YGtkRatioVBoxClass))
+#define YGTK_IS_RATIO_VBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_RATIO_VBOX))
+#define YGTK_IS_RATIO_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_RATIO_VBOX))
+#define YGTK_RATIO_VBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_RATIO_VBOX, YGtkRatioVBoxClass))
+
+typedef struct _YGtkRatioVBox
+{
+ YGtkRatioBox parent;
+} YGtkRatioVBox;
+
+typedef struct _YGtkRatioVBoxClass
+{
+ YGtkRatioBoxClass parent_class;
+} YGtkRatioVBoxClass;
+
+GtkWidget* ygtk_ratio_vbox_new (gint spacing);
+GType ygtk_ratio_vbox_get_type (void) G_GNUC_CONST;
+
+G_END_DECLS
+#endif /* YGTK_RATIO_BOX_H */
+
+/* YGtkAdjSize container allows for better fine grained size constrains. */
+#ifndef YGTK_ADJ_SIZE_H
+#define YGTK_ADJ_SIZE_H
+
+#include <gtk/gtkbin.h>
+G_BEGIN_DECLS
+
+#define YGTK_TYPE_ADJ_SIZE (ygtk_adj_size_get_type ())
+#define YGTK_ADJ_SIZE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_ADJ_SIZE, YGtkAdjSize))
+#define YGTK_ADJ_SIZE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_ADJ_SIZE, YGtkAdjSizeClass))
+#define YGTK_IS_ADJ_SIZE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_ADJ_SIZE))
+#define YGTK_IS_ADJ_SIZE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_ADJ_SIZE))
+#define YGTK_ADJ_SIZE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_ADJ_SIZE, YGtkAdjSizeClass))
+
+typedef struct _YGtkAdjSize
+{
+ GtkBin parent;
+ // members
+ guint min_width, min_height, max_width, max_height;
+ gboolean only_expand;
+} YGtkAdjSize;
+
+typedef struct _YGtkAdjSizeClass
+{
+ GtkBinClass parent_class;
+} YGtkAdjSizeClass;
+
+GType ygtk_adj_size_get_type (void) G_GNUC_CONST;
+GtkWidget* ygtk_adj_size_new (void);
+
+void ygtk_adj_size_set_min (YGtkAdjSize *adj_size, guint min_width, guint min_height);
+void ygtk_adj_size_set_max (YGtkAdjSize *adj_size, guint max_width, guint max_height);
+
+/* Only allow the child to grow (ie. to ask for bigger sizes). */
+void ygtk_adj_size_set_only_expand (YGtkAdjSize *adj_size, gboolean only_expand);
+
+G_END_DECLS
+#endif /*YGTK_ADJ_SIZE_H*/
+
+/* YGtkScrolledWindow gives some a more fine-grained automatic scroll policy.
+ It allows the user to specify from which size scrolling should be applied. */
+#ifndef YGTK_SCROLLED_WIDOW_H
+#define YGTK_SCROLLED_WIDOW_H
+
+#include <gtk/gtkscrolledwindow.h>
+G_BEGIN_DECLS
+
+#define YGTK_TYPE_SCROLLED_WINDOW (ygtk_scrolled_window_get_type ())
+#define YGTK_SCROLLED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_SCROLLED_WINDOW, YGtkScrolledWindow))
+#define YGTK_SCROLLED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_SCROLLED_WINDOW, YGtkScrolledWindowClass))
+#define YGTK_IS_SCROLLED_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_SCROLLED_WINDOW))
+#define YGTK_IS_SCROLLED_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_SCROLLED_WINDOW))
+#define YGTK_SCROLLED_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_SCROLLED_WINDOW, YGtkScrolledWindowClass))
+
+typedef struct _YGtkScrolledWindow
+{
+ GtkScrolledWindow parent;
+ // members
+ guint max_width, max_height;
+} YGtkScrolledWindow;
+
+typedef struct _YGtkScrolledWindowClass
+{
+ GtkScrolledWindowClass parent_class;
+} YGtkScrolledWindowClass;
+
+GType ygtk_scrolled_window_get_type (void) G_GNUC_CONST;
+GtkWidget* ygtk_scrolled_window_new (GtkWidget *child /*or NULL*/);
+
+void ygtk_scrolled_window_set_auto_policy (YGtkScrolledWindow *scroll,
+ guint max_width, guint max_height);
+
+G_END_DECLS
+#endif /*YGTK_SCROLLED_WIDOW_H*/
Added: trunk/gtk/unstable-libyui/src/ygtkrichtext.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkrich…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkrichtext.c (added)
+++ trunk/gtk/unstable-libyui/src/ygtkrichtext.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,716 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkRichText widget */
+// check the header file for information about this widget
+
+#include <config.h>
+#include "ygtkrichtext.h"
+#include <gtk/gtkversion.h>
+#include <string.h>
+
+#define IDENT_MARGIN 20
+#define PARAGRAPH_SPACING 12
+
+//#define PRINT_WARNINGS
+
+// Sucky - but we mix C & C++ so ...
+/* Convert html to xhtml (or at least try) */
+gchar *ygutils_convert_to_xhmlt_and_subst (const char *instr, const char *product);
+
+G_DEFINE_TYPE (YGtkRichText, ygtk_rich_text, GTK_TYPE_TEXT_VIEW)
+
+static GdkCursor *hand_cursor, *regular_cursor;
+static guint ref_cursor = 0;
+static guint link_clicked_signal;
+static GdkColor link_color = { 0, 0, 0, 0xeeee };
+
+// utilities
+// Looks at all tags covering the position of iter in the text view,
+// and returns the link the text points to, in case that text is a link.
+static const char* get_link (GtkTextView *text_view, gint x, gint y)
+{
+ GtkTextIter iter;
+ gtk_text_view_get_iter_at_location (text_view, &iter, x, y);
+
+ char *link = NULL;
+ GSList *tags = gtk_text_iter_get_tags (&iter), *tagp;
+ for (tagp = tags; tagp != NULL; tagp = tagp->next) {
+ GtkTextTag *tag = (GtkTextTag*) tagp->data;
+ link = (char*) g_object_get_data (G_OBJECT (tag), "link");
+ if (link)
+ break;
+ }
+
+ if (tags)
+ g_slist_free (tags);
+ return link;
+}
+
+// callbacks
+// Links can also be activated by clicking.
+static gboolean event_after (GtkWidget *text_view, GdkEvent *ev)
+{
+ GtkTextIter start, end;
+ GtkTextBuffer *buffer;
+ GdkEventButton *event;
+ gint x, y;
+
+ if (ev->type != GDK_BUTTON_RELEASE)
+ return FALSE;
+
+ event = (GdkEventButton *)ev;
+ if (event->button != 1)
+ return FALSE;
+
+ buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (text_view));
+
+ // We shouldn't follow a link if the user is selecting something.
+ gtk_text_buffer_get_selection_bounds (buffer, &start, &end);
+ if (gtk_text_iter_get_offset (&start) != gtk_text_iter_get_offset (&end))
+ return FALSE;
+
+ gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (text_view),
+ GTK_TEXT_WINDOW_WIDGET, (gint) event->x, (gint) event->y, &x, &y);
+
+ const char *link = get_link (GTK_TEXT_VIEW (text_view), x, y);
+ if (link) // report link
+ g_signal_emit (YGTK_RICH_TEXT (text_view), link_clicked_signal, 0, link);
+ return FALSE;
+}
+
+#include <stdlib.h>
+static int mystrcmp(void *a, void *b)
+{ return g_ascii_strcasecmp (*(char **)a, *(char **)b); }
+
+static gboolean isBlockTag (const char *tag)
+{
+ static const char *Tags[] =
+ { "blockquote", "h1", "h2", "h3", "h4", "h5", "li", "p", "pre" };
+ void *ret;
+ ret = bsearch (&tag, Tags, sizeof (Tags)/sizeof(char*), sizeof(char *), (void*)mystrcmp);
+ return ret != 0;
+}
+static gboolean isIdentTag (const char *tag)
+{
+ static const char *Tags[] =
+ { "blockquote", "ol", "ul" };
+ void *ret;
+ ret = bsearch (&tag, Tags, sizeof (Tags)/sizeof(char*), sizeof(char *), (void*)mystrcmp);
+ return ret != 0;
+}
+
+void ygtk_rich_text_init (YGtkRichText *rtext)
+{
+ rtext->prodname = NULL;
+
+ GtkTextView *tview = GTK_TEXT_VIEW (rtext);
+ gtk_text_view_set_wrap_mode (tview, GTK_WRAP_WORD_CHAR);
+ gtk_text_view_set_editable (tview, FALSE);
+ gtk_text_view_set_cursor_visible (tview, FALSE);
+ gtk_text_view_set_pixels_below_lines (tview, 4);
+
+ // Init link support
+ if (!ref_cursor) {
+ GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET (rtext));
+ hand_cursor = gdk_cursor_new_for_display (display, GDK_HAND2);
+ regular_cursor = gdk_cursor_new_for_display (display, GDK_XTERM);
+ }
+ ref_cursor++;
+
+#if GTK_CHECK_VERSION(2,10,0)
+ gtk_widget_style_get (GTK_WIDGET (rtext), "link_color", &link_color, NULL);
+#endif
+
+ g_signal_connect (tview, "event-after",
+ G_CALLBACK (event_after), NULL);
+
+ // Create a few tags like 'h3', 'b', 'i'. others need to be created as we parse
+ GtkTextBuffer *buffer = gtk_text_view_get_buffer (tview);
+ PangoFontDescription *font_desc = GTK_WIDGET (rtext)->style->font_desc;
+ int size = pango_font_description_get_size (font_desc);
+ if (pango_font_description_get_size_is_absolute (font_desc))
+ size /= PANGO_SCALE;
+
+ gtk_text_buffer_create_tag (buffer, "h1", "weight", PANGO_WEIGHT_HEAVY,
+ "size", (int)(size * PANGO_SCALE_XX_LARGE), "pixels-below-lines", 16, NULL);
+ gtk_text_buffer_create_tag (buffer, "h2", "weight", PANGO_WEIGHT_ULTRABOLD,
+ "size", (int)(size * PANGO_SCALE_X_LARGE), "pixels-below-lines", 15, NULL);
+ gtk_text_buffer_create_tag (buffer, "h3", "weight", PANGO_WEIGHT_BOLD,
+ "size", (int)(size * PANGO_SCALE_LARGE), "pixels-below-lines", 14, NULL);
+ gtk_text_buffer_create_tag (buffer, "h4", "weight", PANGO_WEIGHT_SEMIBOLD,
+ "size", (int)(size * PANGO_SCALE_LARGE), "pixels-below-lines", 13, NULL);
+ gtk_text_buffer_create_tag (buffer, "h5",
+ "size", (int)(size * PANGO_SCALE_LARGE), NULL);
+ gtk_text_buffer_create_tag (buffer, "p", "pixels-below-lines", 12, NULL);
+ gtk_text_buffer_create_tag (buffer, "big",
+ "size", (int)(size * PANGO_SCALE_LARGE), NULL);
+ gtk_text_buffer_create_tag (buffer, "small",
+ "size", (int)(size * PANGO_SCALE_SMALL), NULL);
+ gtk_text_buffer_create_tag (buffer, "tt", "family", "monospace", NULL);
+ gtk_text_buffer_create_tag (buffer, "pre", "family", "monospace", NULL);
+ gtk_text_buffer_create_tag (buffer, "b", "weight", PANGO_WEIGHT_BOLD, NULL);
+ gtk_text_buffer_create_tag (buffer, "i", "style", PANGO_STYLE_ITALIC, NULL);
+ gtk_text_buffer_create_tag (buffer, "u", "underline", PANGO_UNDERLINE_SINGLE, NULL);
+ gtk_text_buffer_create_tag (buffer, "center", "justification", GTK_JUSTIFY_CENTER,
+ NULL);
+ // helpers
+ gtk_text_buffer_create_tag (buffer, "keyword", "background", "yellow", NULL);
+}
+
+static void ygtk_rich_text_destroy (GtkObject *object)
+{
+ YGtkRichText *rtext = YGTK_RICH_TEXT (object);
+
+ if (rtext->prodname)
+ // destroy can be called multiple times, and we must ref only once
+ if (ref_cursor > 0 && (--ref_cursor == 0)) {
+ gdk_cursor_unref (hand_cursor);
+ gdk_cursor_unref (regular_cursor);
+ }
+
+ if (rtext->prodname)
+ g_free (rtext->prodname);
+ rtext->prodname = NULL;
+
+ GTK_OBJECT_CLASS (ygtk_rich_text_parent_class)->destroy (object);
+}
+
+// Change the cursor to the "hands" cursor typically used by web browsers,
+// if there is a link in the given position.
+static void set_cursor_if_appropriate (GtkTextView *text_view, gint x, gint y)
+ {
+ static gboolean hovering_over_link = FALSE;
+ gboolean hovering = get_link (text_view, x, y) != NULL;
+
+ if (hovering != hovering_over_link) {
+ hovering_over_link = hovering;
+
+ if (hovering_over_link)
+ gdk_window_set_cursor (gtk_text_view_get_window
+ (text_view, GTK_TEXT_WINDOW_TEXT), hand_cursor);
+ else
+ gdk_window_set_cursor (gtk_text_view_get_window
+ (text_view, GTK_TEXT_WINDOW_TEXT), regular_cursor);
+ }
+}
+
+// Update the cursor image if the pointer moved.
+static gboolean ygtk_rich_text_motion_notify_event (GtkWidget *text_view,
+ GdkEventMotion *event)
+{
+ gint x, y;
+ gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (text_view),
+ GTK_TEXT_WINDOW_WIDGET,
+ (gint) event->x, (gint) event->y,
+ &x, &y);
+ set_cursor_if_appropriate (GTK_TEXT_VIEW (text_view), x, y);
+
+ gdk_window_get_pointer (text_view->window, NULL, NULL, NULL);
+ return TRUE;
+}
+
+// Also update the cursor image if the window becomes visible
+// (e.g. when a window covering it got iconified).
+static gboolean ygtk_rich_text_visibility_notify_event (GtkWidget *text_view,
+ GdkEventVisibility *event)
+{
+ gint wx, wy, bx, by;
+
+ gdk_window_get_pointer (text_view->window, &wx, &wy, NULL);
+ gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (text_view),
+ GTK_TEXT_WINDOW_WIDGET,
+ wx, wy, &bx, &by);
+ set_cursor_if_appropriate (GTK_TEXT_VIEW (text_view), bx, by);
+ return TRUE;
+}
+
+/* Rich Text parsing methods. */
+
+typedef struct _HTMLList
+{
+ gboolean ordered;
+ char enumeration;
+} HTMLList;
+
+static void HTMLList_init (HTMLList *list, gboolean ordered)
+{
+ list->ordered = ordered;
+ list->enumeration = 1;
+}
+
+typedef struct GRTPTag {
+ GtkTextMark *mark;
+ GtkTextTag *tag;
+} GRTPTag;
+typedef struct GRTParseState {
+ GtkTextBuffer *buffer;
+ GtkTextTagTable *tags;
+ GList *htags; // of GRTPTag
+
+ // Attributes for tags that affect their children
+ gboolean pre_mode;
+ gboolean default_color;
+ int left_margin;
+ GList *html_list; // of HTMLList
+} GRTParseState;
+
+static void GRTParseState_init (GRTParseState *state, GtkTextBuffer *buffer)
+{
+ state->buffer = buffer;
+ state->pre_mode = FALSE;
+ state->default_color = TRUE;
+ state->left_margin = 0;
+ state->tags = gtk_text_buffer_get_tag_table (buffer);
+ state->html_list = NULL;
+ state->htags = NULL;
+}
+
+static void free_list (GList *list)
+{
+ GList *i;
+ for (i = g_list_first (list); i; i = i->next)
+ g_free (i->data);
+ g_list_free (list);
+}
+
+static void GRTParseState_free (GRTParseState *state)
+{
+ // NOTE: some elements might not have been freed because of bad html
+ free_list (state->html_list);
+ free_list (state->htags);
+}
+
+static char *elide_whitespace (const char *instr, int len);
+
+// Tags to support: <p> and not </p>:
+// either 'elide' \ns (turn off with <pre> I guess
+static void
+rt_start_element (GMarkupParseContext *context,
+ const gchar *element_name,
+ const gchar **attribute_names,
+ const gchar **attribute_values,
+ gpointer user_data,
+ GError **error)
+{ // Called for open tags <foo bar="baz">
+ if (!g_ascii_strcasecmp (element_name, "body"))
+ return;
+
+ GRTParseState *state = (GRTParseState*) user_data;
+ GRTPTag *tag = g_malloc (sizeof (GRTPTag));
+ GtkTextIter iter;
+ gtk_text_buffer_get_end_iter (state->buffer, &iter);
+ tag->mark = gtk_text_buffer_create_mark (state->buffer, NULL, &iter, TRUE);
+
+ if (!g_ascii_strcasecmp (element_name, "pre"))
+ state->pre_mode = TRUE;
+
+ // Check if this is a block tag
+ if (isBlockTag (element_name)) {
+ // make sure this opens a new paragraph
+ if (!gtk_text_iter_starts_line (&iter))
+ {
+ gtk_text_buffer_insert (state->buffer, &iter, "\n", -1);
+ gtk_text_buffer_get_end_iter (state->buffer, &iter);
+ }
+ }
+
+ char *lower = g_ascii_strdown (element_name, -1);
+ tag->tag = gtk_text_tag_table_lookup (state->tags, lower);
+
+ // Special tags that must be inserted manually
+ if (!tag->tag) {
+ if (!g_ascii_strcasecmp (element_name, "font")) {
+ if (attribute_names[0] &&
+ !g_ascii_strcasecmp (attribute_names[0], "color")) {
+ tag->tag = gtk_text_buffer_create_tag (state->buffer, NULL,
+ "foreground", attribute_values[0],
+ NULL);
+ state->default_color = FALSE;
+ }
+#ifdef PRINT_WARNINGS
+ else
+ g_warning ("Unknown font attribute: '%s'", attribute_names[0]);
+#endif
+ }
+ else if (!g_ascii_strcasecmp (element_name, "a")) {
+ if (attribute_names[0] &&
+ !g_ascii_strcasecmp (attribute_names[0], "href")) {
+ tag->tag = gtk_text_buffer_create_tag (state->buffer, NULL,
+ "underline", PANGO_UNDERLINE_SINGLE,
+ NULL);
+ if (state->default_color)
+ g_object_set (tag->tag, "foreground-gdk", &link_color, NULL);
+ g_object_set_data (G_OBJECT (tag->tag), "link", g_strdup (attribute_values[0]));
+ }
+#ifdef PRINT_WARNINGS
+ else
+ g_warning ("Unknown a attribute: '%s'", attribute_names[0]);
+#endif
+ }
+ else if (!g_ascii_strcasecmp (element_name, "li")) {
+ HTMLList *front_list;
+
+ if (state->html_list &&
+ (front_list = g_list_first (state->html_list)->data) &&
+ (front_list->ordered)) {;
+ gchar *str = g_strdup_printf ("%d. ", front_list->enumeration++);
+ gtk_text_buffer_insert (state->buffer, &iter, str, -1);
+ g_free (str);
+ }
+ else { // \\u25cf for bigger bullets
+ gtk_text_buffer_insert (state->buffer, &iter, "\u2022 ", -1);
+ }
+ }
+ // Tags that affect the margin
+ else if (!g_ascii_strcasecmp (element_name, "ul") ||
+ !g_ascii_strcasecmp (element_name, "ol")) {
+ HTMLList *list = g_malloc (sizeof (HTMLList));
+ HTMLList_init (list, !g_ascii_strcasecmp (element_name, "ol"));
+ state->html_list = g_list_append (state->html_list, list);
+ }
+
+ else if (!g_ascii_strcasecmp (element_name, "img")) {
+ if (attribute_names[0] &&
+ !g_ascii_strcasecmp (attribute_names[0], "src")) {
+ GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (attribute_values[0], NULL);
+ if (pixbuf) {
+ gtk_text_buffer_insert_pixbuf (state->buffer, &iter, pixbuf);
+ g_object_unref (G_OBJECT (pixbuf));
+ }
+ }
+#ifdef PRINT_WARNINGS
+ else
+ g_warning ("Unknown img attribute: '%s'", attribute_names[0]);
+#endif
+ }
+
+ // for tags like <br/>, GMarkup will pass them through the end
+ // tag callback too, so we'll deal with them there
+ else if (!g_ascii_strcasecmp (element_name, "br"))
+ ;
+
+ else
+ {
+#ifdef PRINT_WARNINGS
+ if (isBlockTag (element_name))
+ ;
+ else
+ g_warning ("Unknown tag '%s'", element_name);
+#endif
+ }
+ }
+
+ if (!tag->tag && isIdentTag (element_name)) {
+ state->left_margin += IDENT_MARGIN;
+ tag->tag = gtk_text_buffer_create_tag (state->buffer, NULL,
+ "left-margin", state->left_margin, NULL);
+ }
+
+ g_free (lower);
+ state->htags = g_list_append (state->htags, tag);
+}
+
+static void
+rt_end_element (GMarkupParseContext *context,
+ const gchar *element_name,
+ gpointer user_data,
+ GError **error)
+{ // Called for close tags </foo>
+ if (!g_ascii_strcasecmp (element_name, "body"))
+ return;
+
+ GRTParseState *state = (GRTParseState*) user_data;
+
+ if (g_list_length (state->htags) == 0) {
+ g_warning ("Urgh - empty tag queue closing '%s'", element_name);
+ return;
+ }
+
+ g_return_if_fail (state->htags != NULL);
+ GRTPTag *tag = g_list_last (state->htags)->data;
+ state->htags = g_list_remove (state->htags, tag);
+
+ GtkTextIter start, end;
+ gtk_text_buffer_get_iter_at_mark (state->buffer, &start, tag->mark);
+ gtk_text_buffer_get_end_iter (state->buffer, &end);
+
+ gint appendLines = 0;
+
+ if (isIdentTag (element_name))
+ state->left_margin -= IDENT_MARGIN;
+
+ if (!g_ascii_strcasecmp (element_name, "ul") ||
+ !g_ascii_strcasecmp (element_name, "ol")) {
+ HTMLList *last_list = g_list_last (state->html_list)->data;
+ state->html_list = g_list_remove (state->html_list, last_list);
+ g_free (last_list);
+ }
+ else if (!g_ascii_strcasecmp (element_name, "font"))
+ state->default_color = TRUE;
+
+ else if (!g_ascii_strcasecmp (element_name, "pre")) {
+ state->pre_mode = FALSE;
+/*
+ // \n must be inserted as <br>
+ char *txt = gtk_text_buffer_get_text (state->buffer,
+ &start, &end, TRUE);
+ char endc = txt ? txt[strlen(txt) - 1] : '\0';
+ appendLines = (endc != '\r' && endc != '\n') ? 1 : 0;
+ g_free (txt);*/
+ }
+
+ else if (!g_ascii_strcasecmp (element_name, "br"))
+ appendLines = 1;
+
+ if (isBlockTag (element_name))
+ {
+// appendLines = 2;
+// if (!g_ascii_strcasecmp (element_name, "li"))
+ appendLines = 1;
+ }
+
+
+ if (appendLines) {
+ gtk_text_buffer_insert (state->buffer, &end,
+ appendLines == 1 ? "\n" : "\n\n", -1);
+ gtk_text_buffer_get_iter_at_mark (state->buffer, &start, tag->mark);
+ gtk_text_buffer_get_end_iter (state->buffer, &end);
+ }
+
+ if (tag->tag)
+ gtk_text_buffer_apply_tag (state->buffer, tag->tag, &start, &end);
+
+ gtk_text_buffer_delete_mark (state->buffer, tag->mark);
+ g_free (tag);
+}
+
+static void
+rt_text (GMarkupParseContext *context,
+ const gchar *text,
+ gsize text_len,
+ gpointer user_data,
+ GError **error)
+{ // Called for character data, NB. text NOT nul-terminated
+ GRTParseState *state = (GRTParseState*) user_data;
+ GtkTextIter start, end;
+ gtk_text_buffer_get_end_iter (state->buffer, &start);
+ if (state->pre_mode)
+ gtk_text_buffer_insert_with_tags (state->buffer, &start,
+ text, text_len, NULL, NULL);
+ else {
+ char *real = elide_whitespace (text, text_len);
+ gtk_text_buffer_insert_with_tags (state->buffer, &start,
+ real, -1, NULL, NULL);
+ g_free (real);
+ }
+ gtk_text_buffer_get_end_iter (state->buffer, &end);
+}
+
+static void
+rt_passthrough (GMarkupParseContext *context,
+ const gchar *passthrough_text,
+ gsize text_len,
+ gpointer user_data,
+ GError **error)
+{
+ // ignore comments etc.
+}
+
+static void
+rt_error (GMarkupParseContext *context,
+ GError *error,
+ gpointer user_data)
+{
+}
+
+static GMarkupParser rt_parser = {
+ rt_start_element,
+ rt_end_element,
+ rt_text,
+ rt_passthrough,
+ rt_error
+};
+
+GtkWidget *ygtk_rich_text_new (void)
+{
+ return g_object_new (YGTK_TYPE_RICH_TEXT, NULL);
+}
+
+/* String preparation methods. */
+
+#define IS_WHITE(c) (g_ascii_isspace (c) || (c) == '\t')
+
+static char *elide_whitespace (const char *instr, int len)
+{
+ GString *dest = g_string_new ("");
+ if (len < 0)
+ len = strlen (instr);
+ gboolean last_white = FALSE;
+ int i;
+// FIXME: whitespace elision needs to happen across tags [urk]
+// FIXME: perhaps post-process non-pre sections when they are complete ?
+ for (i = 0; i < len; i++)
+ {
+ char ch = instr[i];
+ if (ch == '\r' || ch == '\n')
+ continue;
+ if (ch == '\t')
+ ch = ' ';
+ gboolean cur_white = IS_WHITE (ch);
+ if (!cur_white || !last_white)
+ g_string_append_c (dest, ch);
+ last_white = cur_white;
+ }
+
+ return g_string_free (dest, FALSE);
+}
+
+void ygtk_richttext_set_prodname (YGtkRichText *rtext, const char *prodname)
+{
+ rtext->prodname = g_strdup (prodname);
+}
+
+void ygtk_rich_text_set_text (YGtkRichText* rtext, const gchar* text,
+ gboolean rich_text)
+{
+ GtkTextBuffer *buffer;
+ buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (rtext));
+
+ if (!rich_text) {
+ gtk_text_buffer_set_text (buffer, text, -1);
+ return;
+ }
+
+ // remove any possible existing text
+ gtk_text_buffer_set_text (buffer, "", 0);
+
+ GRTParseState state;
+ GRTParseState_init (&state, buffer);
+
+ GMarkupParseContext *ctx;
+ ctx = g_markup_parse_context_new (&rt_parser, (GMarkupParseFlags)0, &state, NULL);
+
+ char *xml = ygutils_convert_to_xhmlt_and_subst (text, rtext->prodname);
+ GError *error = NULL;
+ if (!g_markup_parse_context_parse (ctx, xml, -1, &error)) {
+#ifdef PRINT_WARNINGS
+ g_warning ("Markup parse error '%s'", error ? error->message : "Unknown");
+#endif
+ }
+ g_free (xml);
+
+ g_markup_parse_context_free (ctx);
+ GRTParseState_free (&state);
+
+ // remove last empty line, if any
+ GtkTextIter end_it, before_end_it;
+ gtk_text_buffer_get_end_iter (buffer, &end_it);
+ before_end_it = end_it;
+ if (gtk_text_iter_backward_char (&before_end_it) &&
+ gtk_text_iter_get_char (&before_end_it) == '\n')
+ gtk_text_buffer_delete (buffer, &before_end_it, &end_it);
+}
+
+/* gtk_text_iter_forward_search() is case-sensitive so we roll our own.
+ The idea is to keep use get_text and strstr there, but to be more
+ efficient we check per line. */
+static gboolean ygtk_rich_text_forward_search (const GtkTextIter *begin,
+ const GtkTextIter *end, const gchar *_key, GtkTextIter *match_start,
+ GtkTextIter *match_end)
+{
+ if (*_key == 0)
+ return FALSE;
+
+ /* gtk_text_iter_get_char() returns a gunichar (ucs4 coding), so we
+ convert the given string (which is utf-8, like anyhting in gtk+) */
+ gunichar *key = g_utf8_to_ucs4 (_key, -1, NULL, NULL, NULL);
+ if (!key) // conversion error -- should not happen
+ return FALSE;
+
+ // convert key to lower case, to avoid work later
+ gunichar *k;
+ for (k = key; *k; k++)
+ *k = g_unichar_tolower (*k);
+
+ GtkTextIter iter = *begin, iiter;
+ while (!gtk_text_iter_is_end (&iter) && gtk_text_iter_compare (&iter, end) <= 0) {
+ iiter = iter;
+ for (k = key; *k == g_unichar_tolower (gtk_text_iter_get_char (&iiter)) && (*k);
+ k++, gtk_text_iter_forward_char (&iiter))
+ ;
+ if (!*k) {
+ *match_start = iter;
+ *match_end = iiter;
+ return TRUE;
+ }
+ gtk_text_iter_forward_char (&iter);
+ }
+ return FALSE;
+}
+
+gboolean ygtk_rich_text_mark_text (YGtkRichText *rtext, const gchar *text)
+{
+ GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (rtext));
+ GtkTextIter iter, end, match_start, match_end;
+
+ gtk_text_buffer_get_bounds (buffer, &iter, &end);
+ gtk_text_buffer_remove_tag_by_name (buffer, "keyword", &iter, &end);
+
+ gtk_text_buffer_select_range (buffer, &iter, &iter); // unselect text
+ if (!text || *text == '\0')
+ return TRUE;
+
+ gboolean found = FALSE;
+ while (ygtk_rich_text_forward_search (&iter, &end, text,
+ &match_start, &match_end)) {
+ found = TRUE;
+ gtk_text_buffer_apply_tag_by_name (buffer, "keyword", &match_start, &match_end);
+ iter = match_end;
+ gtk_text_iter_forward_char (&iter);
+ }
+ return found;
+}
+
+gboolean ygtk_rich_text_forward_mark (YGtkRichText *rtext, const gchar *text)
+{
+ GtkTextIter start_iter, end_iter;
+ GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (rtext));
+ gtk_text_buffer_get_iter_at_mark (buffer, &start_iter,
+ gtk_text_buffer_get_selection_bound (buffer));
+ gtk_text_buffer_get_end_iter (buffer, &end_iter);
+
+ gboolean found;
+ found = ygtk_rich_text_forward_search (&start_iter, &end_iter, text,
+ &start_iter, &end_iter);
+ if (!found) {
+ gtk_text_buffer_get_start_iter (buffer, &start_iter);
+ found = ygtk_rich_text_forward_search (&start_iter, &end_iter, text,
+ &start_iter, &end_iter);
+ }
+
+ if (found) {
+ gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (rtext), &start_iter, 0.10,
+ FALSE, 0, 0);
+ gtk_text_buffer_select_range (buffer, &start_iter, &end_iter);
+ return TRUE;
+ }
+ return FALSE;
+}
+
+void ygtk_rich_text_class_init (YGtkRichTextClass *klass)
+{
+ GtkWidgetClass *gtkwidget_class = GTK_WIDGET_CLASS (klass);
+ gtkwidget_class->motion_notify_event = ygtk_rich_text_motion_notify_event;
+ gtkwidget_class->visibility_notify_event = ygtk_rich_text_visibility_notify_event;
+
+ GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass);
+ gtkobject_class->destroy = ygtk_rich_text_destroy;
+
+ link_clicked_signal = g_signal_new ("link-clicked",
+ G_TYPE_FROM_CLASS (G_OBJECT_CLASS (klass)), G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (YGtkRichTextClass, link_clicked), NULL, NULL,
+ g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
+}
+
Added: trunk/gtk/unstable-libyui/src/ygtkrichtext.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkrich…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkrichtext.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtkrichtext.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,59 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkRichText is a very simple widget that displays HTML code.
+ It was done, since GTK+ doesn't offer one out of box, and to
+ avoid dependencies.
+*/
+
+#ifndef YGTK_RICH_TEXT_H
+#define YGTK_RICH_TEXT_H
+
+#include <gtk/gtktextview.h>
+G_BEGIN_DECLS
+
+#define YGTK_TYPE_RICH_TEXT (ygtk_rich_text_get_type ())
+#define YGTK_RICH_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_RICH_TEXT, YGtkRichText))
+#define YGTK_RICH_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_RICH_TEXT, YGtkRichTextClass))
+#define YGTK_IS_RICH_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_RICH_TEXT))
+#define YGTK_IS_RICH_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_RICH_TEXT))
+#define YGTK_RICH_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_RICH_TEXT, YGtkRichTextClass))
+
+typedef struct _YGtkRichText
+{
+ GtkTextView parent;
+ // private:
+ char *prodname;
+} YGtkRichText;
+
+typedef struct _YGtkRichTextClass
+{
+ GtkTextViewClass parent_class;
+
+ // signals:
+ void (*link_clicked) (YGtkRichText *rich_text, const gchar *link);
+} YGtkRichTextClass;
+
+GtkWidget* ygtk_rich_text_new (void);
+GType ygtk_rich_text_get_type (void) G_GNUC_CONST;
+
+/* Sets some text to YGtkRichText, may be HTML or plain text, as indicated by
+ rich_text. */
+void ygtk_rich_text_set_text (YGtkRichText* rtext, const gchar* text,
+ gboolean rich_text);
+
+void ygtk_richttext_set_prodname (YGtkRichText *rtext, const char *prodname);
+
+// To be used together with an entry box to search for text
+gboolean ygtk_rich_text_mark_text (YGtkRichText *rtext, const gchar *text);
+gboolean ygtk_rich_text_forward_mark (YGtkRichText *rtext, const gchar *text); // F3
+
+G_END_DECLS
+#endif /* YGTK_RICH_TEXT_H */
+
Added: trunk/gtk/unstable-libyui/src/ygtksteps.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkstep…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtksteps.c (added)
+++ trunk/gtk/unstable-libyui/src/ygtksteps.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,324 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkSteps widget */
+// check the header file for information about this widget
+
+#include <config.h>
+#include "ygtksteps.h"
+#include <gtk/gtkhbox.h>
+#include <gtk/gtkalignment.h>
+#include <gtk/gtklabel.h>
+#include <gtk/gtkimage.h>
+#include <string.h>
+
+#define BORDER 6
+#define STEPS_HEADER_SPACING 8
+#define STEPS_SPACING 2
+#define STEPS_IDENTATION 30
+#define CURRENT_MARK_ANIMATION_TIME 250
+#define CURRENT_MARK_ANIMATION_OFFSET 3
+#define CURRENT_MARK_FRAMES_NB (CURRENT_MARK_ANIMATION_OFFSET*2)
+
+G_DEFINE_TYPE (YGtkSteps, ygtk_steps, GTK_TYPE_WIDGET)
+
+static void ygtk_steps_init (YGtkSteps *steps)
+{
+ GTK_WIDGET_SET_FLAGS (steps, GTK_NO_WINDOW);
+
+ PangoContext *context = gtk_widget_get_pango_context (GTK_WIDGET (steps));
+ steps->check_mark_layout = pango_layout_new (context);
+ steps->current_mark_layout = pango_layout_new (context);
+ pango_layout_set_markup (steps->check_mark_layout, "\u2714", -1);
+ pango_layout_set_markup (steps->current_mark_layout, "<b>\u2192</b>", -1);
+ steps->current_mark_timeout_id = steps->current_mark_frame = 0;
+}
+
+static void ygtk_steps_destroy (GtkObject *object)
+{
+ YGtkSteps *steps = YGTK_STEPS (object);
+
+ if (steps->current_mark_timeout_id) {
+ g_source_remove (steps->current_mark_timeout_id);
+ steps->current_mark_timeout_id = 0;
+ }
+
+ g_object_unref (steps->check_mark_layout);
+ steps->check_mark_layout = NULL;
+
+ g_object_unref (steps->current_mark_layout);
+ steps->current_mark_layout = NULL;
+
+ ygtk_steps_clear (steps);
+ GTK_OBJECT_CLASS (ygtk_steps_parent_class)->destroy (object);
+}
+
+
+static inline YGtkSingleStep *ygtk_steps_get_step (YGtkSteps *steps, guint step_nb)
+{
+ return g_list_nth_data (steps->steps, step_nb);
+}
+
+static void ygtk_step_invalidate_layout (YGtkSingleStep *step)
+{
+ if (step->layout) {
+ g_object_unref (G_OBJECT (step->layout));
+ step->layout = NULL;
+ }
+ if (step->layout_bold) {
+ g_object_unref (G_OBJECT (step->layout_bold));
+ step->layout_bold = NULL;
+ }
+}
+
+// should be called rather than accessing step->layout
+static PangoLayout *ygtk_steps_get_step_layout (YGtkSteps *steps, guint step_nb)
+{
+ YGtkSingleStep *step = ygtk_steps_get_step (steps, step_nb);
+
+ if (!step->layout) {
+ step->layout = gtk_widget_create_pango_layout (GTK_WIDGET (steps), NULL);
+
+ gchar *text, *text_bold = 0;
+ if (step->is_heading) {
+ text = g_strdup_printf ("<span size=\"x-large\" weight=\"heavy\">%s</span>",
+ step->text);
+ pango_layout_set_spacing (step->layout, STEPS_HEADER_SPACING * PANGO_SCALE);
+ }
+ else {
+ if (!step->layout_bold)
+ step->layout_bold = gtk_widget_create_pango_layout (GTK_WIDGET (steps), NULL);
+ g_assert (step->layout_bold);
+ text = g_strdup (step->text);
+ text_bold = g_strdup_printf ("<b>%s</b>", step->text);
+ pango_layout_set_indent (step->layout, STEPS_IDENTATION * PANGO_SCALE);
+ pango_layout_set_indent (step->layout_bold, STEPS_IDENTATION * PANGO_SCALE);
+ pango_layout_set_spacing (step->layout, STEPS_SPACING * PANGO_SCALE);
+ pango_layout_set_spacing (step->layout_bold, STEPS_SPACING * PANGO_SCALE);
+ }
+
+ pango_layout_set_markup (step->layout, text, -1);
+ g_free (text);
+ if (step->layout_bold)
+ {
+ pango_layout_set_markup (step->layout_bold, text_bold, -1);
+ g_free (text_bold);
+ }
+ }
+
+ if (steps->current_step == step_nb)
+ return step->layout_bold;
+ return step->layout;
+}
+
+// If PangoContext got invalidated (eg. system language change), re-compute it!
+static void ygtk_steps_recompute_layout (YGtkSteps *steps)
+{
+ GList *it;
+ for (it = steps->steps; it; it = it->next) {
+ YGtkSingleStep *step = it->data;
+ if (step->layout)
+ pango_layout_context_changed (step->layout);
+ if (step->layout_bold)
+ pango_layout_context_changed (step->layout_bold);
+ }
+}
+
+static void ygtk_steps_direction_changed (GtkWidget *widget, GtkTextDirection dir)
+{
+ ygtk_steps_recompute_layout (YGTK_STEPS (widget));
+ GTK_WIDGET_CLASS (ygtk_steps_parent_class)->direction_changed (widget, dir);
+}
+
+static void ygtk_steps_style_set (GtkWidget *widget, GtkStyle *style)
+{
+ ygtk_steps_recompute_layout (YGTK_STEPS (widget));
+ GTK_WIDGET_CLASS (ygtk_steps_parent_class)->style_set (widget, style);
+}
+
+static void ygtk_steps_size_request (GtkWidget *widget, GtkRequisition *requisition)
+{
+ requisition->width = requisition->height = 0;
+
+ YGtkSteps *steps = YGTK_STEPS (widget);
+ int i;
+ for (i = 0; i < ygtk_steps_total (steps); i++) {
+ PangoLayout *layout = ygtk_steps_get_step_layout (steps, i);
+ YGtkSingleStep *step = ygtk_steps_get_step (steps, i);
+ if (!step->is_heading)
+ layout = step->layout_bold;
+
+ int w, h;
+ pango_layout_get_pixel_size (layout, &w, &h);
+ w += PANGO_PIXELS (pango_layout_get_indent (layout));
+ h += PANGO_PIXELS (pango_layout_get_spacing (layout)) * 2;
+
+ requisition->width = MAX (w, requisition->width);
+ requisition->height += h;
+ }
+
+ requisition->width += BORDER * 2;
+ requisition->height += BORDER * 2;
+}
+
+static gboolean ygtk_steps_expose_event (GtkWidget *widget, GdkEventExpose *event)
+{
+ int x = widget->allocation.x + BORDER, y = widget->allocation.y + BORDER;
+ GtkStyle *style = gtk_widget_get_style (widget);
+
+ YGtkSteps *steps = YGTK_STEPS (widget);
+ int i;
+ for (i = 0; i < ygtk_steps_total (steps); i++) {
+ PangoLayout *layout = ygtk_steps_get_step_layout (steps, i);
+
+ // as opposite to identation, we need to apply spacing ourselves, since we aren't
+ // really using paragraphs
+ y += PANGO_PIXELS (pango_layout_get_spacing (layout));
+
+ gtk_paint_layout (style, widget->window, GTK_STATE_NORMAL, TRUE,
+ NULL, /*event->area,*/ widget, NULL, x, y, layout);
+
+ if (i <= steps->current_step && !ygtk_steps_get_step (steps, i)->is_heading) {
+ PangoLayout *mark = (i == steps->current_step) ? steps->current_mark_layout
+ : steps->check_mark_layout;
+ int x_;
+ pango_layout_get_pixel_size (mark, &x_, NULL);
+ x_ = x + STEPS_IDENTATION - x_ - 6;
+ if (i == steps->current_step) {
+ if (steps->current_mark_frame < CURRENT_MARK_FRAMES_NB/2)
+ x_ -= steps->current_mark_frame * CURRENT_MARK_ANIMATION_OFFSET;
+ else
+ x_ -= (CURRENT_MARK_FRAMES_NB - steps->current_mark_frame) *
+ CURRENT_MARK_ANIMATION_OFFSET;
+ }
+
+ gtk_paint_layout (style, widget->window, GTK_STATE_NORMAL, TRUE,
+ NULL, /*event->area,*/ widget, NULL, x_, y, mark);
+ }
+
+ int h;
+ pango_layout_get_pixel_size (layout, NULL, &h);
+ // we need spacing for both sides
+ y += h + PANGO_PIXELS (pango_layout_get_spacing (layout));
+ }
+ return FALSE;
+}
+
+GtkWidget* ygtk_steps_new (void)
+{
+ return g_object_new (YGTK_TYPE_STEPS, NULL);
+}
+
+guint ygtk_steps_append (YGtkSteps *steps, const gchar *step_text)
+{
+ gint steps_nb;
+
+ g_return_val_if_fail (YGTK_IS_STEPS (steps), 0);
+
+ steps_nb = ygtk_steps_total (steps);
+
+ // check if the text is the same as the previous...
+ if (steps_nb) {
+ YGtkSingleStep *last_step = g_list_last (steps->steps)->data;
+ if (!g_strcasecmp (last_step->text, step_text)) {
+ last_step->strength++;
+ return steps_nb-1;
+ }
+ }
+
+ // New step
+ YGtkSingleStep *step = g_new0 (YGtkSingleStep, 1);
+ step->is_heading = FALSE;
+ step->text = g_strdup (step_text);
+ step->strength = 1;
+ step->layout = step->layout_bold = NULL;
+
+ steps->steps = g_list_append (steps->steps, step);
+ gtk_widget_queue_resize (GTK_WIDGET (steps));
+ return steps_nb;
+}
+
+void ygtk_steps_append_heading (YGtkSteps *steps, const gchar *heading)
+{
+ YGtkSingleStep *step;
+
+ g_return_if_fail (YGTK_IS_STEPS (steps));
+
+ step = g_new0 (YGtkSingleStep, 1);
+ step->is_heading = TRUE;
+ step->text = g_strdup (heading);
+ step->strength = 1; // not important anyway
+ step->layout = step->layout_bold = NULL;
+
+ steps->steps = g_list_append (steps->steps, step);
+ gtk_widget_queue_resize (GTK_WIDGET (steps));
+}
+
+void ygtk_steps_advance (YGtkSteps *steps)
+{
+ if (steps->current_step + 1 < ygtk_steps_total (steps))
+ ygtk_steps_set_current (steps, steps->current_step + 1);
+}
+
+static gboolean current_mark_animation_cb (void *steps_ptr)
+{
+ YGtkSteps *steps = steps_ptr;
+
+ // ugly -- should use gtk_widget_queue_draw_area (widget, x, y, w, h)
+ // but we need to iterate through all steps to get current location and
+ // all, so...
+ gtk_widget_queue_draw (GTK_WIDGET (steps));
+
+ if (++steps->current_mark_frame == CURRENT_MARK_FRAMES_NB) {
+ steps->current_mark_frame = 0;
+ return FALSE;
+ }
+ return TRUE;
+}
+
+void ygtk_steps_set_current (YGtkSteps *steps, guint step)
+{
+ guint old_step = steps->current_step;
+ steps->current_step = step;
+
+ // update step icons
+ ygtk_step_invalidate_layout (ygtk_steps_get_step (steps, old_step));
+ ygtk_step_invalidate_layout (ygtk_steps_get_step (steps, step));
+
+ steps->current_mark_frame = 0;
+ steps->current_mark_timeout_id = g_timeout_add
+ (CURRENT_MARK_ANIMATION_TIME / CURRENT_MARK_FRAMES_NB,
+ current_mark_animation_cb, steps);
+}
+
+guint ygtk_steps_total (YGtkSteps *steps)
+{
+ return g_list_length (steps->steps);
+}
+
+void ygtk_steps_clear (YGtkSteps *steps)
+{
+ GList *it;
+ for (it = steps->steps; it; it = it->next) {
+ YGtkSingleStep *step = it->data;
+ ygtk_step_invalidate_layout (step);
+ g_free (step->text);
+ g_free (step);
+ }
+ g_list_free (steps->steps);
+ steps->steps = NULL;
+}
+
+static void ygtk_steps_class_init (YGtkStepsClass *klass)
+{
+ GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->expose_event = ygtk_steps_expose_event;
+ widget_class->size_request = ygtk_steps_size_request;
+ widget_class->direction_changed = ygtk_steps_direction_changed;
+ widget_class->style_set = ygtk_steps_style_set;
+
+ GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass);
+ gtkobject_class->destroy = ygtk_steps_destroy;
+}
+
Added: trunk/gtk/unstable-libyui/src/ygtksteps.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkstep…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtksteps.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtksteps.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,82 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkSteps is a widget that displays a list of steps, useful
+ to show the progress of some configuration tool as it does
+ the work of updating files or services or whatever.
+
+ You use the append functions to initializate the steps. If,
+ for some reason, you want one step to count as more than one
+ (ie. so that a ygtk_steps_advance() needs to be called more than
+ once to actually advance for a given step), you may append a
+ step with the same name of the previous, that they'll be collapsed.
+ (Internally, we call that the 'strength' of the step.)
+
+ TODO: the PangoLayout usage is getting a bit hacky. We may want to
+ replace it with Cairo methods.
+*/
+
+#ifndef YGTK_STEPS_H
+#define YGTK_STEPS_H
+
+#include <gdk/gdk.h>
+#include <gtk/gtkwidget.h>
+
+G_BEGIN_DECLS
+
+#define YGTK_TYPE_STEPS (ygtk_steps_get_type ())
+#define YGTK_STEPS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_STEPS, YGtkSteps))
+#define YGTK_STEPS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_STEPS, YGtkStepsClass))
+#define YGTK_IS_STEPS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_STEPS))
+#define YGTK_IS_STEPS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_STEPS))
+#define YGTK_STEPS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_STEPS, YGtkStepsClass))
+
+typedef struct _YGtkSteps
+{
+ GtkWidget parent;
+
+ // private:
+ GList *steps; // of YGtkSingleStep
+ guint current_step;
+ PangoLayout *check_mark_layout, *current_mark_layout;
+ // for current_mark little animation
+ guint current_mark_timeout_id, current_mark_frame;
+
+} YGtkSteps;
+
+typedef struct _YGtkStepsClass
+{
+ GtkWidgetClass parent_class;
+} YGtkStepsClass;
+
+typedef struct _YGtkSingleStep
+{
+ gboolean is_heading;
+ gchar *text;
+ guint strength; // check the text at top
+
+ // private -- don't access it, call ygtk_step_get_layout() instead
+ PangoLayout *layout, *layout_bold; // cache
+} YGtkSingleStep;
+
+GtkWidget* ygtk_steps_new (void);
+GType ygtk_steps_get_type (void) G_GNUC_CONST;
+
+guint ygtk_steps_append (YGtkSteps *steps, const gchar *label);
+void ygtk_steps_append_heading (YGtkSteps *steps, const gchar *heading);
+
+void ygtk_steps_advance (YGtkSteps *steps);
+void ygtk_steps_set_current (YGtkSteps *steps, guint step);
+guint ygtk_steps_total (YGtkSteps *steps);
+
+void ygtk_steps_clear (YGtkSteps *steps);
+
+G_END_DECLS
+
+#endif /* YGTK_STEPS_H */
Added: trunk/gtk/unstable-libyui/src/ygtkwizard.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkwiza…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkwizard.c (added)
+++ trunk/gtk/unstable-libyui/src/ygtkwizard.c Wed Dec 5 14:14:01 2007
@@ -0,0 +1,1282 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkWizard widget */
+// check the header file for information about this widget
+
+#include <config.h>
+#include "ygtkwizard.h"
+#include <atk/atk.h>
+#include <gtk/gtk.h>
+#include <gdk/gdkkeysyms.h>
+#include <string.h>
+#include "ygtkhtmlwrap.h"
+#include "ygtksteps.h"
+#include "ygtkfindentry.h"
+
+#define BUTTONS_SPACING 12
+#define BORDER 4
+#define CHILD_BORDER 6
+
+// YGUtils bridge
+extern void ygutils_setWidgetFont (GtkWidget *widget, PangoWeight weight,
+ double scale);
+extern void ygutils_setStockIcon (GtkWidget *button, const char *ycp_str);
+
+//** YGtkHelpDialog
+
+G_DEFINE_TYPE (YGtkHelpDialog, ygtk_help_dialog, GTK_TYPE_WINDOW)
+
+// callbacks
+static void ygtk_help_dialog_find_next (YGtkHelpDialog *dialog)
+{
+ const gchar *text = gtk_entry_get_text (GTK_ENTRY (dialog->search_entry));
+ ygtk_html_wrap_search_next (dialog->help_text, text);
+}
+
+static void search_entry_modified_cb (GtkEditable *editable, YGtkHelpDialog *dialog)
+{
+ gchar *key = gtk_editable_get_chars (editable, 0, -1);
+ if (!ygtk_html_wrap_search (dialog->help_text, key)) {
+ GdkColor red = { 0, 255 << 8, 102 << 8, 102 << 8 },
+ white = { 0, 255 << 8, 255 << 8, 255 << 8 };
+ gtk_widget_modify_base (dialog->search_entry, GTK_STATE_NORMAL, &red);
+ gtk_widget_modify_text (dialog->search_entry, GTK_STATE_NORMAL, &white);
+ gdk_beep();
+ }
+ else {
+ gtk_widget_modify_base (dialog->search_entry, GTK_STATE_NORMAL, NULL);
+ gtk_widget_modify_text (dialog->search_entry, GTK_STATE_NORMAL, NULL);
+ }
+ g_free (key);
+}
+static void search_entry_activated_cb (GtkEntry *entry, YGtkHelpDialog *dialog)
+{ ygtk_help_dialog_find_next (dialog); }
+static void close_button_clicked_cb (GtkButton *button, YGtkHelpDialog *dialog)
+{ gtk_widget_hide (GTK_WIDGET (dialog)); }
+
+static void ygtk_help_dialog_init (YGtkHelpDialog *dialog)
+{
+ gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
+ gtk_window_set_type_hint (GTK_WINDOW (dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+
+ gtk_window_set_title (GTK_WINDOW (dialog), "Help");
+ gtk_window_set_default_size (GTK_WINDOW (dialog), 400, 350);
+
+ // title
+ GtkStockItem help_item;
+ gtk_stock_lookup (GTK_STOCK_HELP, &help_item);
+
+ dialog->title_box = gtk_hbox_new (FALSE, 6);
+ gtk_container_set_border_width (GTK_CONTAINER (dialog->title_box), 6);
+ dialog->title_image = gtk_image_new_from_stock (GTK_STOCK_HELP,
+ GTK_ICON_SIZE_LARGE_TOOLBAR);
+ dialog->title_label = gtk_label_new ("Help");
+ gtk_widget_modify_fg (dialog->title_label, GTK_STATE_NORMAL,
+ &dialog->title_label->style->fg [GTK_STATE_SELECTED]);
+ ygutils_setWidgetFont (dialog->title_label, PANGO_WEIGHT_ULTRABOLD,
+ PANGO_SCALE_LARGE);
+ gtk_box_pack_start (GTK_BOX (dialog->title_box), dialog->title_image,
+ FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (dialog->title_box), dialog->title_label,
+ FALSE, FALSE, 0);
+
+ // help text
+ dialog->help_box = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (dialog->help_box),
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (dialog->help_box),
+ GTK_SHADOW_IN);
+ dialog->help_text = ygtk_html_wrap_new();
+ gtk_container_add (GTK_CONTAINER (dialog->help_box), dialog->help_text);
+
+ // bottom part (search entry + close button)
+ GtkWidget *bottom_box;
+ bottom_box = gtk_hbox_new (FALSE, 0);
+ dialog->search_entry = ygtk_find_entry_new();
+ gtk_widget_set_size_request (dialog->search_entry, 140, -1);
+ dialog->close_button = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
+ GTK_WIDGET_SET_FLAGS (dialog->close_button, GTK_CAN_DEFAULT);
+
+ gtk_box_pack_start (GTK_BOX (bottom_box), dialog->search_entry, FALSE, FALSE, 0);
+ gtk_box_pack_end (GTK_BOX (bottom_box), dialog->close_button, FALSE, FALSE, 0);
+
+ g_signal_connect (G_OBJECT (dialog->search_entry), "changed",
+ G_CALLBACK (search_entry_modified_cb), dialog);
+ g_signal_connect (G_OBJECT (dialog->search_entry), "activate",
+ G_CALLBACK (search_entry_activated_cb), dialog);
+
+ // glue it
+ dialog->vbox = gtk_vbox_new (FALSE, 12);
+ gtk_box_pack_start (GTK_BOX (dialog->vbox), dialog->title_box, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (dialog->vbox), dialog->help_box, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (dialog->vbox), bottom_box, FALSE, FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (dialog), dialog->vbox);
+ gtk_widget_show_all (dialog->vbox);
+
+ g_signal_connect (G_OBJECT (dialog->close_button), "clicked",
+ G_CALLBACK (close_button_clicked_cb), dialog);
+ g_signal_connect (G_OBJECT (dialog), "delete-event",
+ G_CALLBACK (gtk_widget_hide_on_delete), NULL);
+}
+
+static void ygtk_help_dialog_realize (GtkWidget *widget)
+{
+ GTK_WIDGET_CLASS (ygtk_help_dialog_parent_class)->realize (widget);
+ YGtkHelpDialog *dialog = YGTK_HELP_DIALOG (widget);
+
+ // set help text background
+ gtk_widget_realize (dialog->help_text);
+ ygtk_html_wrap_set_background (dialog->help_text, THEMEDIR "/wizard/help-background.png");
+
+ // set close as default widget
+ gtk_widget_grab_default (dialog->close_button);
+ gtk_widget_grab_focus (dialog->close_button);
+}
+
+static gboolean ygtk_help_dialog_expose_event (GtkWidget *widget, GdkEventExpose *event)
+{
+ YGtkHelpDialog *dialog = YGTK_HELP_DIALOG (widget);
+
+ // draw rect on title
+ int x, y, w, h;
+ x = dialog->title_box->allocation.x;
+ y = dialog->title_box->allocation.y;
+ w = dialog->title_box->allocation.width;
+ h = dialog->title_box->allocation.height;
+ if (x + w >= event->area.x && x <= event->area.x + event->area.width &&
+ y + h >= event->area.y && x <= event->area.y + event->area.height) {
+ cairo_t *cr = gdk_cairo_create (widget->window);
+ gdk_cairo_set_source_color (cr, &widget->style->bg [GTK_STATE_SELECTED]);
+ cairo_rectangle (cr, x, y, w, h);
+ cairo_fill (cr);
+
+ cairo_destroy (cr);
+ }
+
+ gtk_container_propagate_expose (GTK_CONTAINER (dialog), dialog->vbox, event);
+ return FALSE;
+}
+
+static void ygtk_help_dialog_close (YGtkHelpDialog *dialog)
+{ gtk_widget_hide (GTK_WIDGET (dialog)); }
+
+GtkWidget *ygtk_help_dialog_new (GtkWindow *parent)
+{
+ GtkWidget *dialog = g_object_new (YGTK_TYPE_HELP_DIALOG, NULL);
+ if (parent)
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), parent);
+ return dialog;
+}
+
+void ygtk_help_dialog_set_text (YGtkHelpDialog *dialog, const gchar *text)
+{
+ gtk_editable_delete_text (GTK_EDITABLE (dialog->search_entry), 0, -1);
+ ygtk_html_wrap_set_text (dialog->help_text, text);
+}
+
+static void ygtk_help_dialog_class_init (YGtkHelpDialogClass *klass)
+{
+ klass->find_next = ygtk_help_dialog_find_next;
+ klass->close = ygtk_help_dialog_close;
+
+ GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->expose_event = ygtk_help_dialog_expose_event;
+ widget_class->realize = ygtk_help_dialog_realize;
+
+ // key bindings (F3 for next word, Esc to close the window)
+ g_signal_new ("find_next", G_TYPE_FROM_CLASS (G_OBJECT_CLASS (klass)),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
+ G_STRUCT_OFFSET (YGtkHelpDialogClass, find_next),
+ NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+ g_signal_new ("close", G_TYPE_FROM_CLASS (G_OBJECT_CLASS (klass)),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
+ G_STRUCT_OFFSET (YGtkHelpDialogClass, close),
+ NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+
+ GtkBindingSet *binding_set = gtk_binding_set_by_class (klass);
+ gtk_binding_entry_add_signal (binding_set, GDK_F3, 0, "find_next", 0);
+ gtk_binding_entry_add_signal (binding_set, GDK_Escape, 0, "close", 0);
+}
+
+//** YGtkWizard
+
+static gint get_header_padding (GtkWidget *widget)
+{
+#if 0
+// TODO: read GtkAssistance style_rc attributes
+ gint padding;
+ gtk_widget_style_get (widget, "header-padding", &padding, NULL);
+ return padding;
+#else
+ return 6;
+#endif
+}
+
+static gint get_content_padding (GtkWidget *widget)
+{
+#if 0
+ gint padding;
+ gtk_widget_style_get (widget, "content-padding", &padding, NULL);
+ return padding;
+#else
+ return 1;
+#endif
+}
+
+// callbacks
+static void destroy_tree_path (gpointer data)
+{
+ GtkTreePath *path = data;
+ gtk_tree_path_free (path);
+}
+
+// signals
+static guint action_triggered_signal;
+
+static void ygtk_marshal_VOID__POINTER_INT (GClosure *closure,
+ GValue *return_value, guint n_param_values, const GValue *param_values,
+ gpointer invocation_hint, gpointer marshal_data)
+{
+ typedef void (*GMarshalFunc_VOID__POINTER_INT) (gpointer data1, gpointer arg_1,
+ gint arg_2, gpointer data2);
+ register GMarshalFunc_VOID__POINTER_INT callback;
+ register GCClosure *cc = (GCClosure*) closure;
+ register gpointer data1, data2;
+
+ g_return_if_fail (n_param_values == 3);
+
+ if (G_CCLOSURE_SWAP_DATA (closure)) {
+ data1 = closure->data;
+ data2 = g_value_peek_pointer (param_values + 0);
+ }
+ else {
+ data1 = g_value_peek_pointer (param_values + 0);
+ data2 = closure->data;
+ }
+ callback = (GMarshalFunc_VOID__POINTER_INT)
+ (marshal_data ? marshal_data : cc->callback);
+
+ callback (data1, g_value_get_pointer (param_values + 1),
+ g_value_get_int (param_values + 2), data2);
+}
+
+static void button_clicked_cb (GtkButton *button, YGtkWizard *wizard)
+{
+ gpointer id = g_object_get_data (G_OBJECT (button), "id");
+ g_signal_emit (wizard, action_triggered_signal, 0, id, G_TYPE_POINTER);
+}
+
+static GtkWidget *button_new (YGtkWizard *wizard)
+{
+ GtkWidget *button = gtk_button_new_with_mnemonic ("");
+ GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
+ g_signal_connect (G_OBJECT (button), "clicked",
+ G_CALLBACK (button_clicked_cb), wizard);
+ return button;
+}
+
+static void ygtk_wizard_popup_help (YGtkWizard *wizard)
+{
+ if (!wizard->m_help_dialog) {
+ GtkWindow *window = (GtkWindow *) gtk_widget_get_ancestor (
+ GTK_WIDGET (wizard), GTK_TYPE_WINDOW);
+ wizard->m_help_dialog = ygtk_help_dialog_new (window);
+ ygtk_help_dialog_set_text (YGTK_HELP_DIALOG (wizard->m_help_dialog),
+ wizard->m_help);
+ }
+ gtk_widget_show (wizard->m_help_dialog);
+}
+
+static void help_button_clicked_cb (GtkWidget *button, YGtkWizard *wizard)
+{ ygtk_wizard_popup_help (wizard); }
+
+G_DEFINE_TYPE (YGtkWizard, ygtk_wizard, GTK_TYPE_BIN)
+
+static void ygtk_wizard_init (YGtkWizard *wizard)
+{
+ wizard->menu_ids = g_hash_table_new_full (g_str_hash, g_str_equal,
+ g_free, NULL);
+ wizard->tree_ids = g_hash_table_new_full (g_str_hash, g_str_equal,
+ g_free, destroy_tree_path);
+ wizard->steps_ids = g_hash_table_new_full (g_str_hash, g_str_equal,
+ g_free, NULL);
+
+ gtk_container_set_border_width (GTK_CONTAINER (wizard), BORDER);
+
+ //** Title
+ wizard->m_title = gtk_hbox_new (FALSE, 0);
+
+ wizard->m_title_image = gtk_image_new();
+ wizard->m_title_label = gtk_label_new("");
+ gtk_label_set_ellipsize (GTK_LABEL (wizard->m_title_label), PANGO_ELLIPSIZE_END);
+ gtk_misc_set_alignment (GTK_MISC (wizard->m_title_label), 0, 0.5);
+
+ // setup label look
+ gtk_widget_modify_fg (wizard->m_title_label, GTK_STATE_NORMAL,
+ &wizard->m_title_label->style->fg [GTK_STATE_SELECTED]);
+ // set a strong font to the heading label
+ ygutils_setWidgetFont (wizard->m_title_label, PANGO_WEIGHT_ULTRABOLD,
+ PANGO_SCALE_XX_LARGE);
+
+ gtk_box_pack_start (GTK_BOX (wizard->m_title), wizard->m_title_label,
+ TRUE, TRUE, 0);
+ gtk_box_pack_end (GTK_BOX (wizard->m_title), wizard->m_title_image,
+ FALSE, FALSE, 0);
+
+ gtk_widget_set_parent (wizard->m_title, GTK_WIDGET (wizard));
+ gtk_widget_show_all (wizard->m_title);
+
+ //** Adding the bottom buttons
+ wizard->m_next_button = button_new (wizard);
+ wizard->m_back_button = button_new (wizard);
+ wizard->m_abort_button = button_new (wizard);
+ wizard->m_release_notes_button = button_new (wizard);
+
+ wizard->m_help_button = gtk_button_new_from_stock (GTK_STOCK_HELP);
+ GTK_WIDGET_SET_FLAGS (wizard->m_help_button, GTK_CAN_DEFAULT);
+ g_signal_connect (G_OBJECT (wizard->m_help_button), "clicked",
+ G_CALLBACK (help_button_clicked_cb), wizard);
+
+ // we need to protect this button against insensitive in some cases
+ // this is a flag to enable that
+ ygtk_wizard_protect_next_button (wizard, FALSE);
+
+ wizard->m_buttons = gtk_hbox_new (FALSE, 12);
+
+ gtk_box_pack_start (GTK_BOX (wizard->m_buttons), wizard->m_help_button, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (wizard->m_buttons), wizard->m_release_notes_button,
+ FALSE, TRUE, 0);
+
+ gtk_box_pack_end (GTK_BOX (wizard->m_buttons), wizard->m_next_button, FALSE, TRUE, 0);
+ gtk_box_pack_end (GTK_BOX (wizard->m_buttons), wizard->m_back_button, FALSE, TRUE, 0);
+ gtk_box_pack_end (GTK_BOX (wizard->m_buttons), wizard->m_abort_button, FALSE, TRUE, 0);
+
+ gtk_widget_set_parent (wizard->m_buttons, GTK_WIDGET (wizard));
+ gtk_widget_show (wizard->m_buttons);
+
+ // make buttons all having the same size
+ GtkSizeGroup *buttons_group = gtk_size_group_new (GTK_SIZE_GROUP_BOTH);
+ gtk_size_group_add_widget (buttons_group, wizard->m_help_button);
+ gtk_size_group_add_widget (buttons_group, wizard->m_release_notes_button);
+ gtk_size_group_add_widget (buttons_group, wizard->m_next_button);
+ gtk_size_group_add_widget (buttons_group, wizard->m_back_button);
+ gtk_size_group_add_widget (buttons_group, wizard->m_abort_button);
+ g_object_unref (G_OBJECT (buttons_group));
+
+ //** The menu and the navigation widgets will be created when requested.
+ //** Help dialog will be build on realize so we can give it a parent window.
+}
+
+static void ygtk_wizard_realize (GtkWidget *widget)
+{
+ YGtkWizard *wizard = YGTK_WIZARD (widget);
+
+ GTK_WIDGET_CLASS (ygtk_wizard_parent_class)->realize (widget);
+
+ gtk_widget_grab_default (wizard->m_next_button);
+ gtk_widget_grab_focus (wizard->m_next_button);
+}
+
+static void destroy_hash (GHashTable **hash)
+{
+ if (*hash)
+ g_hash_table_destroy (*hash);
+ *hash = NULL;
+}
+
+static void ygtk_wizard_destroy (GtkObject *object)
+{
+ YGtkWizard *wizard = YGTK_WIZARD (object);
+
+ destroy_hash (&wizard->menu_ids);
+ destroy_hash (&wizard->tree_ids);
+ destroy_hash (&wizard->steps_ids);
+
+ if (wizard->m_help) {
+ g_free (wizard->m_help);
+ wizard->m_help = NULL;
+ }
+
+/* We must unparent these widgets from the wizard as they would try
+ to use gtk_container_remove() on it. We ref them since we still
+ want to call destroy on them so they children die. */
+#define DESTROY_WIDGET(widget) \
+ if (widget) { \
+ g_object_ref (G_OBJECT (widget)); \
+ gtk_widget_unparent (widget); \
+ gtk_widget_destroy (widget); \
+ widget = NULL; \
+ }
+ DESTROY_WIDGET (wizard->m_title)
+ DESTROY_WIDGET (wizard->m_buttons)
+ DESTROY_WIDGET (wizard->m_menu)
+ DESTROY_WIDGET (wizard->m_steps)
+ DESTROY_WIDGET (wizard->m_title)
+ DESTROY_WIDGET (wizard->m_pane)
+#undef DESTROY_WIDGET
+
+ if (wizard->m_help_dialog) {
+ gtk_widget_destroy (wizard->m_help_dialog);
+ wizard->m_help_dialog = NULL;
+ }
+
+ GTK_OBJECT_CLASS (ygtk_wizard_parent_class)->destroy (object);
+}
+
+GtkWidget *ygtk_wizard_new (void)
+{
+ return g_object_new (YGTK_TYPE_WIZARD, NULL);
+}
+
+static void selected_menu_item_cb (GtkMenuItem *item, const char *id)
+{
+ YGtkWizard *wizard = g_object_get_data (G_OBJECT (item), "wizard");
+ g_signal_emit (wizard, action_triggered_signal, 0, id, G_TYPE_STRING);
+}
+
+static void tree_item_selected_cb (GtkTreeView *tree_view, YGtkWizard *wizard)
+{
+ const gchar *id = ygtk_wizard_get_tree_selection (wizard);
+ if (id)
+ g_signal_emit (wizard, action_triggered_signal, 0, id, G_TYPE_STRING);
+}
+
+void ygtk_wizard_enable_steps (YGtkWizard *wizard)
+{
+ g_return_if_fail (wizard->m_steps == NULL);
+
+ wizard->m_steps = ygtk_steps_new();
+ gtk_widget_modify_text (wizard->m_steps, GTK_STATE_NORMAL,
+ &wizard->m_steps->style->fg [GTK_STATE_SELECTED]);
+
+ gtk_widget_set_parent (wizard->m_steps, GTK_WIDGET (wizard));
+ gtk_widget_show (wizard->m_steps);
+ gtk_widget_queue_resize (GTK_WIDGET (wizard));
+}
+
+void ygtk_wizard_enable_tree (YGtkWizard *wizard)
+{
+ g_return_if_fail (wizard->m_tree == NULL);
+
+ wizard->m_tree_view = gtk_tree_view_new_with_model
+ (GTK_TREE_MODEL (gtk_tree_store_new (1, G_TYPE_STRING)));
+ gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (wizard->m_tree_view),
+ 0, "", gtk_cell_renderer_text_new(), "text", 0, NULL);
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (wizard->m_tree_view), FALSE);
+ gtk_tree_selection_set_mode (gtk_tree_view_get_selection (
+ GTK_TREE_VIEW (wizard->m_tree_view)), GTK_SELECTION_BROWSE);
+
+ g_signal_connect (G_OBJECT (wizard->m_tree_view), "cursor-changed",
+ G_CALLBACK (tree_item_selected_cb), wizard);
+
+ wizard->m_tree = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (wizard->m_tree),
+ GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (wizard->m_tree),
+ GTK_SHADOW_IN);
+
+ gtk_container_add (GTK_CONTAINER (wizard->m_tree), wizard->m_tree_view);
+ gtk_widget_set_size_request (wizard->m_tree, 180, -1);
+
+ GtkWidget *child = wizard->m_child, *pane;
+ pane = gtk_hpaned_new();
+ gtk_paned_pack1 (GTK_PANED (pane), wizard->m_tree, TRUE, TRUE);
+ gtk_widget_show_all (pane);
+ ygtk_wizard_set_child (wizard, pane);
+ wizard->m_pane = pane;
+ if (child)
+ gtk_container_add (GTK_CONTAINER (wizard), child);
+}
+
+static void ygtk_wizard_add_child (GtkContainer *container, GtkWidget *child)
+{
+ YGtkWizard *wizard = YGTK_WIZARD (container);
+ wizard->m_child = child;
+ if (wizard->m_pane)
+ gtk_paned_pack2 (GTK_PANED (wizard->m_pane), child, TRUE, FALSE);
+ else
+ GTK_CONTAINER_CLASS (ygtk_wizard_parent_class)->add (container, child);
+}
+
+static void ygtk_wizard_remove_child (GtkContainer *container, GtkWidget *child)
+{
+ YGtkWizard *wizard = YGTK_WIZARD (container);
+ wizard->m_child = NULL;
+ if (wizard->m_pane)
+ gtk_container_remove (GTK_CONTAINER (wizard->m_pane), child);
+ else
+ GTK_CONTAINER_CLASS (ygtk_wizard_parent_class)->remove (container, child);
+}
+
+void ygtk_wizard_set_child (YGtkWizard *wizard, GtkWidget *new_child)
+{
+ if (wizard->m_child)
+ gtk_container_remove (GTK_CONTAINER (wizard), wizard->m_child);
+ if (new_child)
+ gtk_container_add (GTK_CONTAINER (wizard), new_child);
+}
+
+#define ENABLE_WIDGET(enable, widget) \
+ (enable ? gtk_widget_show (widget) : gtk_widget_hide (widget))
+#define ENABLE_WIDGET_STR(str, widget) \
+ (str && str[0] ? gtk_widget_show (widget) : gtk_widget_hide (widget))
+
+/* Commands */
+
+void ygtk_wizard_set_help_text (YGtkWizard *wizard, const gchar *text)
+{
+ if (wizard->m_help)
+ g_free (wizard->m_help);
+ wizard->m_help = g_strdup (text);
+ if (wizard->m_help_dialog)
+ ygtk_help_dialog_set_text (YGTK_HELP_DIALOG (wizard->m_help_dialog), text);
+ ENABLE_WIDGET_STR (text, wizard->m_help_button);
+}
+
+gboolean ygtk_wizard_add_tree_item (YGtkWizard *wizard, const char *parent_id,
+ const char *text, const char *id)
+{
+ GtkTreeModel *model = gtk_tree_view_get_model
+ (GTK_TREE_VIEW (wizard->m_tree_view));
+ GtkTreeIter iter;
+
+ if (!parent_id || !*parent_id)
+ gtk_tree_store_append (GTK_TREE_STORE (model), &iter, NULL);
+ else {
+ GtkTreePath *path = g_hash_table_lookup (wizard->tree_ids, parent_id);
+ if (path == NULL)
+ return FALSE;
+ GtkTreeIter parent_iter;
+ gtk_tree_model_get_iter (model, &parent_iter, path);
+ gtk_tree_store_append (GTK_TREE_STORE (model), &iter, &parent_iter);
+ }
+
+ gtk_tree_store_set (GTK_TREE_STORE (model), &iter, 0, text, -1);
+ g_hash_table_insert (wizard->tree_ids, g_strdup (id),
+ gtk_tree_model_get_path (model, &iter));
+ return TRUE;
+}
+
+/* this is g_hash_table_remove_all in new glib */
+static gboolean hash_table_clear_cb (gpointer key, gpointer value, gpointer data)
+{
+ return TRUE;
+}
+static void yg_hash_table_remove_all (GHashTable *hash_table)
+{
+ g_hash_table_foreach_remove (hash_table, hash_table_clear_cb, NULL);
+}
+
+void ygtk_wizard_clear_tree (YGtkWizard *wizard)
+{
+ GtkTreeView *tree = GTK_TREE_VIEW (wizard->m_tree_view);
+ gtk_tree_store_clear (GTK_TREE_STORE (gtk_tree_view_get_model (tree)));
+ yg_hash_table_remove_all (wizard->tree_ids);
+}
+
+gboolean ygtk_wizard_select_tree_item (YGtkWizard *wizard, const char *id)
+{
+ GtkTreePath *path = g_hash_table_lookup (wizard->tree_ids, id);
+ if (path == NULL)
+ return FALSE;
+
+ g_signal_handlers_block_by_func (wizard->m_tree_view,
+ (gpointer) tree_item_selected_cb, wizard);
+
+ GtkWidget *widget = wizard->m_tree_view;
+ gtk_tree_view_expand_to_path (GTK_TREE_VIEW (widget), path);
+ gtk_tree_view_set_cursor (GTK_TREE_VIEW (widget), path,
+ NULL, FALSE);
+ gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (widget), path, NULL,
+ TRUE, 0.5, 0.5);
+
+ g_signal_handlers_unblock_by_func (wizard->m_tree_view,
+ (gpointer) tree_item_selected_cb, wizard);
+ return TRUE;
+}
+
+void ygtk_wizard_set_header_text (YGtkWizard *wizard, GtkWindow *window,
+ const char *text)
+{
+ gtk_label_set_text (GTK_LABEL (wizard->m_title_label), text);
+ if (window) {
+ char *title = g_strdup_printf ("%s - YaST", text);
+ gtk_window_set_title (window, title);
+ g_free (title);
+ }
+}
+
+gboolean ygtk_wizard_set_header_icon (YGtkWizard *wizard, GtkWindow *window,
+ const char *icon)
+{
+ GError *error = 0;
+ GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (icon, &error);
+ if (!pixbuf)
+ return FALSE;
+
+ gtk_image_set_from_pixbuf (GTK_IMAGE (wizard->m_title_image), pixbuf);
+ if (window)
+ gtk_window_set_icon (window, pixbuf);
+ g_object_unref (G_OBJECT (pixbuf));
+ return TRUE;
+}
+
+void ygtk_wizard_set_abort_button_label (YGtkWizard *wizard, const char *text)
+{
+ gtk_button_set_label (GTK_BUTTON (wizard->m_abort_button), text);
+ ENABLE_WIDGET_STR (text, wizard->m_abort_button);
+ ygutils_setStockIcon (wizard->m_abort_button, text);
+}
+
+void ygtk_wizard_set_back_button_label (YGtkWizard *wizard, const char *text)
+{
+ gtk_button_set_label (GTK_BUTTON (wizard->m_back_button), text);
+ ENABLE_WIDGET_STR (text, wizard->m_back_button);
+ ygutils_setStockIcon (wizard->m_back_button, text);
+}
+
+void ygtk_wizard_set_next_button_label (YGtkWizard *wizard, const char *text)
+{
+ gtk_button_set_label (GTK_BUTTON (wizard->m_next_button), text);
+ ENABLE_WIDGET_STR (text, wizard->m_next_button);
+ ygutils_setStockIcon (wizard->m_next_button, text);
+}
+
+void ygtk_wizard_set_back_button_id (YGtkWizard *wizard, gpointer id,
+ GDestroyNotify destroy_cb)
+{
+ g_object_set_data_full (G_OBJECT (wizard->m_back_button), "id", id, destroy_cb);
+}
+
+void ygtk_wizard_set_next_button_id (YGtkWizard *wizard, gpointer id,
+ GDestroyNotify destroy_cb)
+{
+ g_object_set_data_full (G_OBJECT (wizard->m_next_button), "id", id, destroy_cb);
+}
+
+void ygtk_wizard_set_abort_button_id (YGtkWizard *wizard, gpointer id,
+ GDestroyNotify destroy_cb)
+{
+ g_object_set_data_full (G_OBJECT (wizard->m_abort_button), "id", id, destroy_cb);
+}
+
+void ygtk_wizard_set_release_notes_button_label (YGtkWizard *wizard,
+ const gchar *text, gpointer id,
+ GDestroyNotify destroy_cb)
+{
+ gtk_button_set_label (GTK_BUTTON (wizard->m_release_notes_button), text);
+ g_object_set_data_full (G_OBJECT (wizard->m_release_notes_button), "id",
+ id, destroy_cb);
+ gtk_widget_show (wizard->m_release_notes_button);
+}
+
+void ygtk_wizard_show_release_notes_button (YGtkWizard *wizard, gboolean enable)
+{
+ ENABLE_WIDGET (enable, wizard->m_release_notes_button);
+}
+
+void ygtk_wizard_enable_back_button (YGtkWizard *wizard, gboolean enable)
+{
+ gtk_widget_set_sensitive (GTK_WIDGET (wizard->m_back_button), enable);
+}
+
+void ygtk_wizard_enable_next_button (YGtkWizard *wizard, gboolean enable)
+{
+ if (enable || !ygtk_wizard_is_next_button_protected (wizard))
+ gtk_widget_set_sensitive (GTK_WIDGET (wizard->m_next_button), enable);
+}
+
+void ygtk_wizard_enable_abort_button (YGtkWizard *wizard, gboolean enable)
+{
+ gtk_widget_set_sensitive (GTK_WIDGET (wizard->m_abort_button), enable);
+}
+
+gboolean ygtk_wizard_is_next_button_protected (YGtkWizard *wizard)
+{
+ return GPOINTER_TO_INT (g_object_get_data (
+ G_OBJECT (wizard->m_next_button), "protect"));
+}
+
+void ygtk_wizard_protect_next_button (YGtkWizard *wizard, gboolean protect)
+{
+ g_object_set_data (G_OBJECT (wizard->m_abort_button), "protect",
+ GINT_TO_POINTER (protect));
+}
+
+void ygtk_wizard_focus_next_button (YGtkWizard *wizard)
+{
+ gtk_widget_grab_focus (wizard->m_next_button);
+}
+
+void ygtk_wizard_focus_back_button (YGtkWizard *wizard)
+{
+ gtk_widget_grab_focus (wizard->m_back_button);
+}
+
+void ygtk_wizard_add_menu (YGtkWizard *wizard, const char *text,
+ const char *id)
+{
+ if (!wizard->m_menu) {
+ wizard->m_menu = gtk_menu_bar_new();
+ gtk_widget_set_parent (wizard->m_menu, GTK_WIDGET (wizard));
+ gtk_widget_queue_draw (GTK_WIDGET (wizard));
+ }
+
+ GtkWidget *entry = gtk_menu_item_new_with_mnemonic (text);
+ gtk_menu_shell_append (GTK_MENU_SHELL (wizard->m_menu), entry);
+
+ GtkWidget *submenu = gtk_menu_new();
+ gtk_menu_item_set_submenu (GTK_MENU_ITEM (entry), submenu);
+
+ g_hash_table_insert (wizard->menu_ids, g_strdup (id), submenu);
+ gtk_widget_show_all (wizard->m_menu);
+}
+
+gboolean ygtk_wizard_add_menu_entry (YGtkWizard *wizard, const char *parent_id,
+ const char *text, const char *id)
+{
+ GtkWidget *parent = g_hash_table_lookup (wizard->menu_ids, parent_id);
+ if (!parent)
+ return FALSE;
+
+ GtkWidget *entry = gtk_menu_item_new_with_mnemonic (text);
+ gtk_menu_shell_append (GTK_MENU_SHELL (parent), entry);
+ gtk_widget_show (entry);
+
+ // we need to get YGtkWizard to send signal
+ g_object_set_data (G_OBJECT (entry), "wizard", wizard);
+ g_signal_connect_data (G_OBJECT (entry), "activate",
+ G_CALLBACK (selected_menu_item_cb), g_strdup (id),
+ (GClosureNotify) g_free, 0);
+ return TRUE;
+}
+
+gboolean ygtk_wizard_add_sub_menu (YGtkWizard *wizard, const char *parent_id,
+ const char *text, const char *id)
+{
+ GtkWidget *parent = g_hash_table_lookup (wizard->menu_ids, parent_id);
+ if (!parent)
+ return FALSE;
+
+ GtkWidget *entry = gtk_menu_item_new_with_mnemonic (text);
+ gtk_menu_shell_append (GTK_MENU_SHELL (parent), entry);
+
+ GtkWidget *submenu = gtk_menu_new();
+ gtk_menu_item_set_submenu (GTK_MENU_ITEM (entry), submenu);
+
+ g_hash_table_insert (wizard->menu_ids, g_strdup (id), submenu);
+ gtk_widget_show_all (entry);
+ return TRUE;
+}
+
+gboolean ygtk_wizard_add_menu_separator (YGtkWizard *wizard, const char *parent_id)
+{
+ GtkWidget *parent = g_hash_table_lookup (wizard->menu_ids, parent_id);
+ if (!parent)
+ return FALSE;
+
+ GtkWidget *separator = gtk_separator_menu_item_new();
+ gtk_menu_shell_append (GTK_MENU_SHELL (parent), separator);
+ gtk_widget_show (separator);
+ return TRUE;
+}
+
+void ygtk_wizard_clear_menu (YGtkWizard *wizard)
+{
+ if (!wizard->m_menu)
+ return;
+ yg_hash_table_remove_all (wizard->menu_ids);
+ GList *children = gtk_container_get_children (GTK_CONTAINER (wizard->m_menu)), *i;
+ for (i = children; i; i = i->next) {
+ GtkWidget *child = (GtkWidget *) i->data;
+ gtk_container_remove (GTK_CONTAINER (wizard->m_menu), child);
+ }
+}
+
+void ygtk_wizard_add_step_header (YGtkWizard *wizard, const char *text)
+{
+ g_return_if_fail (wizard->m_steps != NULL);
+ ygtk_steps_append_heading (YGTK_STEPS (wizard->m_steps), text);
+}
+
+void ygtk_wizard_add_step (YGtkWizard *wizard, const char* text, const char *id)
+{
+ guint step_nb;
+ g_return_if_fail (wizard->m_steps != NULL);
+ step_nb = ygtk_steps_append (YGTK_STEPS (wizard->m_steps), text);
+ g_hash_table_insert (wizard->steps_ids, g_strdup (id), GINT_TO_POINTER (step_nb));
+}
+
+gboolean ygtk_wizard_set_current_step (YGtkWizard *wizard, const char *id)
+{
+ gpointer step_nb = g_hash_table_lookup (wizard->steps_ids, id);
+ if (!step_nb)
+ return FALSE;
+ ygtk_steps_set_current (YGTK_STEPS (wizard->m_steps), GPOINTER_TO_INT (step_nb));
+ return TRUE;
+}
+
+void ygtk_wizard_clear_steps (YGtkWizard *wizard)
+{
+ ygtk_steps_clear (YGTK_STEPS (wizard->m_steps));
+ yg_hash_table_remove_all (wizard->steps_ids);
+}
+
+static const gchar *found_key;
+static void hash_lookup_tree_path_value (gpointer _key, gpointer _value,
+ gpointer user_data)
+{
+ gchar *key = _key;
+ GtkTreePath *value = _value;
+ GtkTreePath *needle = user_data;
+
+ if (gtk_tree_path_compare (value, needle) == 0)
+ found_key = key;
+}
+
+const gchar *ygtk_wizard_get_tree_selection (YGtkWizard *wizard)
+{
+ GtkTreePath *path;
+ gtk_tree_view_get_cursor (GTK_TREE_VIEW (wizard->m_tree_view),
+ &path, NULL);
+ if (path == NULL)
+ return NULL;
+
+ /* A more elegant solution would be using a crossed hash table, but there
+ is none out of box, so we'll just iterate the hash table. */
+ found_key = 0;
+ g_hash_table_foreach (wizard->tree_ids, hash_lookup_tree_path_value, path);
+
+ gtk_tree_path_free (path);
+ return found_key;
+}
+
+void ygtk_wizard_set_sensitive (YGtkWizard *wizard, gboolean sensitive)
+{
+ // TODO: check if this chains through
+ gtk_widget_set_sensitive (GTK_WIDGET (wizard), sensitive);
+
+ if (ygtk_wizard_is_next_button_protected (wizard))
+ gtk_widget_set_sensitive (wizard->m_next_button, TRUE);
+}
+
+static void ygtk_wizard_size_request (GtkWidget *widget, GtkRequisition *requisition)
+{
+ YGtkWizard *wizard = YGTK_WIZARD (widget);
+
+ gint border = GTK_CONTAINER (wizard)->border_width;
+ gint header_padding = get_header_padding (GTK_WIDGET (wizard));
+ gint content_padding = get_content_padding (GTK_WIDGET (wizard));
+ GtkRequisition req; // temp usage
+
+ requisition->width = 0;
+ requisition->height = border * 2;
+
+ if (wizard->m_menu) {
+ gtk_widget_size_request (wizard->m_menu, &req);
+ requisition->width = MAX (requisition->width, req.width);
+ requisition->height += req.height;
+ }
+
+ // title
+ gtk_widget_size_request (wizard->m_title, &req);
+ req.width += header_padding * 2 + border*2;
+ req.height += header_padding * 2;
+
+ requisition->width = MAX (MIN (req.width, 40), requisition->width);
+ requisition->height += req.height;
+
+ // body
+ {
+ GtkRequisition nav_req, child_req;
+
+ if (wizard->m_steps) {
+ gtk_widget_size_request (wizard->m_steps, &nav_req);
+ nav_req.width += content_padding * 2;
+ nav_req.height += content_padding * 2;
+ }
+ else
+ nav_req.width = nav_req.height = 0;
+
+ GtkWidget *child = GTK_BIN (wizard)->child;
+ if (child && GTK_WIDGET_VISIBLE (child))
+ gtk_widget_size_request (child, &child_req);
+ else
+ child_req.width = child_req.height = 0;
+ child_req.width += content_padding * 2 + CHILD_BORDER*2;
+ child_req.height += content_padding * 2 + CHILD_BORDER*2;
+
+ req.width = nav_req.width + child_req.width + border*2;
+ req.height = MAX (nav_req.height, child_req.height);
+
+ requisition->width = MAX (requisition->width, req.width);
+ requisition->height += req.height;
+ }
+
+ // buttons
+ gtk_widget_size_request (wizard->m_buttons, &req);
+ req.width += border*2;
+ req.height += BUTTONS_SPACING + border;
+
+ requisition->width = MAX (requisition->width, req.width);
+ requisition->height += req.height;
+}
+
+// helper -- applies padding to a GtkAllocation
+static inline void apply_allocation_padding (GtkAllocation *alloc, gint padding)
+{
+ alloc->x += padding;
+ alloc->y += padding;
+ alloc->width -= padding * 2;
+ alloc->height -= padding * 2;
+}
+
+static void ygtk_wizard_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
+{
+ YGtkWizard *wizard = YGTK_WIZARD (widget);
+
+ gint border = GTK_CONTAINER (wizard)->border_width;
+ gint header_padding = get_header_padding (widget);
+ gint content_padding = get_content_padding (widget);
+ GtkRequisition req; // temp usage
+ // we use "areas" because we need to do some tweaking when doing the actual
+ // allocation and this makes it easier to place the other widgets.
+ GtkAllocation menu_area, title_area, nav_area, child_area, buttons_area;
+
+ // menu
+ menu_area.x = allocation->x;
+ menu_area.y = allocation->y;
+ if (wizard->m_menu) {
+ gtk_widget_get_child_requisition (wizard->m_menu, &req);
+ menu_area.width = allocation->width;
+ menu_area.height = req.height;
+ }
+ else
+ menu_area.width = menu_area.height = 0;
+
+ // title
+ gtk_widget_get_child_requisition (wizard->m_title, &req);
+ title_area.x = allocation->x + border;
+ title_area.y = menu_area.y + menu_area.height + border;
+ title_area.width = allocation->width - border*2;
+ title_area.height = req.height + header_padding*2;
+
+ // buttons
+ gtk_widget_get_child_requisition (wizard->m_buttons, &req);
+ buttons_area.x = title_area.x;
+ buttons_area.y = (allocation->y + allocation->height) - req.height - border;
+ buttons_area.width = title_area.width;
+ buttons_area.height = req.height;
+
+ // child (aka content aka containee)
+ child_area.x = title_area.x;
+ child_area.y = title_area.y + title_area.height;
+ child_area.width = title_area.width;
+ child_area.height = allocation->height - menu_area.height - title_area.height -
+ buttons_area.height - border*2 - BUTTONS_SPACING;
+
+ // navigation pane
+ nav_area.x = child_area.x;
+ nav_area.y = child_area.y;
+ nav_area.height = child_area.height;
+ if (wizard->m_steps) {
+ gtk_widget_get_child_requisition (wizard->m_steps, &req);
+ nav_area.width = req.width + content_padding*2;
+
+ child_area.x += nav_area.width;
+ child_area.width -= nav_area.width;
+ /* // align to child
+ title_area.x += nav_area.width;
+ title_area.width -= nav_area.width;*/
+ }
+ else
+ nav_area.width = 0;
+
+ // Actual allocations
+ // menu
+ if (wizard->m_menu)
+ gtk_widget_size_allocate (wizard->m_menu, &menu_area);
+
+ // title
+ apply_allocation_padding (&title_area, header_padding);
+ gtk_widget_size_allocate (wizard->m_title, &title_area);
+
+ // child
+ GtkWidget *child = GTK_BIN (wizard)->child;
+ if (child && GTK_WIDGET_VISIBLE (child)) {
+ apply_allocation_padding (&child_area, content_padding + CHILD_BORDER);
+ gtk_widget_size_allocate (child, &child_area);
+ }
+
+ // navigation pane
+ if (wizard->m_steps) {
+ apply_allocation_padding (&nav_area, content_padding);
+ gtk_widget_size_allocate (wizard->m_steps, &nav_area);
+ }
+
+ // buttons
+ gtk_widget_size_allocate (wizard->m_buttons, &buttons_area);
+
+ GTK_WIDGET_CLASS (ygtk_wizard_parent_class)->size_allocate (widget, allocation);
+}
+
+static gboolean ygtk_wizard_expose_event (GtkWidget *widget, GdkEventExpose *event)
+{
+ if (!GTK_WIDGET_DRAWABLE (widget))
+ return FALSE;
+ YGtkWizard *wizard = YGTK_WIZARD (widget);
+
+ gint border = GTK_CONTAINER (wizard)->border_width;
+ gint header_padding = get_header_padding (widget);
+ gint content_padding = get_content_padding (widget);
+
+ // paint a colored box
+ cairo_t *cr = gdk_cairo_create (widget->window);
+ int x, y, w, h;
+
+ // (outer rectangle)
+ x = border;
+ y = border;
+ w = widget->allocation.width - border*2;
+ h = wizard->m_buttons->allocation.y - border - BUTTONS_SPACING;
+ if (wizard->m_menu) {
+ y += wizard->m_menu->allocation.height;
+ h -= wizard->m_menu->allocation.height;
+ }
+
+ gdk_cairo_set_source_color (cr, &widget->style->bg [GTK_STATE_SELECTED]);
+ cairo_rectangle (cr, x, y, w, h);
+ cairo_fill (cr);
+
+ // (inner rectangle)
+ x += content_padding;
+ w -= content_padding*2;
+ y += wizard->m_title->allocation.height + header_padding*2 + content_padding;
+ h -= wizard->m_title->allocation.height + header_padding*2 + content_padding*2;
+ if (wizard->m_steps) {
+ int steps_w = wizard->m_steps->allocation.width;
+ x += steps_w + content_padding;
+ w -= steps_w + content_padding;
+ }
+
+ gdk_cairo_set_source_color (cr, &widget->style->bg [GTK_STATE_NORMAL]);
+ cairo_rectangle (cr, x, y, w, h);
+ cairo_fill (cr);
+
+ cairo_destroy (cr);
+
+ // propagate expose
+ GtkContainer *container = GTK_CONTAINER (wizard);
+ if (wizard->m_menu)
+ gtk_container_propagate_expose (container, wizard->m_menu, event);
+ gtk_container_propagate_expose (container, wizard->m_title, event);
+ if (wizard->m_steps)
+ gtk_container_propagate_expose (container, wizard->m_steps, event);
+ gtk_container_propagate_expose (container, wizard->m_buttons, event);
+ if (GTK_BIN (container)->child)
+ gtk_container_propagate_expose (container, GTK_BIN (container)->child, event);
+ return TRUE;
+}
+
+static void ygtk_wizard_forall (GtkContainer *container, gboolean include_internals,
+ GtkCallback callback, gpointer callback_data)
+{
+ YGtkWizard *wizard = YGTK_WIZARD (container);
+ if (include_internals) {
+ (*callback) (wizard->m_title, callback_data);
+ (*callback) (wizard->m_buttons, callback_data);
+ if (wizard->m_menu)
+ (*callback) (wizard->m_menu, callback_data);
+ if (wizard->m_steps)
+ (*callback) (wizard->m_steps, callback_data);
+ }
+
+ GtkWidget *containee = GTK_BIN (container)->child;
+ if (containee)
+ (*callback) (containee, callback_data);
+}
+
+/* Accessibility support */
+
+static gint ygtk_wizard_accessible_get_n_children (AtkObject *accessible)
+{
+ return 1 /* content*/ + 5 /* buttons*/;
+}
+
+static AtkObject *ygtk_wizard_accessible_ref_child (AtkObject *accessible,
+ gint index)
+{
+ GtkWidget *widget = GTK_ACCESSIBLE (accessible)->widget;
+ if (!widget)
+ return NULL;
+ YGtkWizard *wizard = YGTK_WIZARD (widget);
+
+ if (index == 0) {
+ GtkWidget *child = GTK_BIN (wizard)->child;
+ if (child)
+ return g_object_ref (G_OBJECT (child));
+ return NULL;
+ }
+
+ if (index >= 1 && index <= 5) {
+ GtkWidget *buttons[5] = { wizard->m_back_button, wizard->m_abort_button,
+ wizard->m_next_button, wizard->m_help_button,
+ wizard->m_release_notes_button };
+ GtkWidget *button = buttons [index-1];
+
+ if (GTK_WIDGET_VISIBLE (button))
+ return g_object_ref (G_OBJECT (button));
+ return NULL;
+ }
+ // out of range
+ return NULL;
+}
+
+static void ygtk_wizard_accessible_class_init (AtkObjectClass *class)
+{
+ class->get_n_children = ygtk_wizard_accessible_get_n_children;
+ class->ref_child = ygtk_wizard_accessible_ref_child;
+}
+
+static GType ygtk_wizard_accessible_get_type (void)
+{
+ static GType type = 0;
+ if (!type) {
+ AtkObjectFactory *factory;
+ GType derived_type;
+ GTypeQuery query;
+ GType derived_atk_type;
+
+ derived_type = g_type_parent (YGTK_TYPE_WIZARD);
+ factory = atk_registry_get_factory (atk_get_default_registry (), derived_type);
+ derived_atk_type = atk_object_factory_get_accessible_type (factory);
+ g_type_query (derived_atk_type, &query);
+
+ GTypeInfo type_info = { 0 };
+ type_info.class_size = query.class_size;
+ type_info.class_init = (GClassInitFunc) ygtk_wizard_accessible_class_init;
+ type_info.instance_size = query.instance_size;
+
+ type = g_type_register_static (derived_atk_type, "YGtkWizardAccessible",
+ &type_info, 0);
+
+/*
+ type = g_type_register_static_simple (derived_atk_type,
+ "YGtkWizardAccessible", query.class_size,
+ (GClassInitFunc) ygtk_wizard_accessible_class_init,
+ query.instance_size, NULL, 0);
+*/
+ }
+ return type;
+}
+
+static AtkObject *ygtk_wizard_accessible_new (GObject *obj)
+{
+ AtkObject *accessible;
+ g_return_val_if_fail (YGTK_IS_WIZARD (obj), NULL);
+
+ accessible = g_object_new (ygtk_wizard_accessible_get_type (), NULL);
+ atk_object_initialize (accessible, obj);
+ return accessible;
+}
+
+static GType ygtk_wizard_accessible_factory_get_accessible_type()
+{
+ return ygtk_wizard_accessible_get_type ();
+}
+
+static AtkObject*ygtk_wizard_accessible_factory_create_accessible (GObject *obj)
+{
+ return ygtk_wizard_accessible_new (obj);
+}
+
+static void ygtk_wizard_accessible_factory_class_init (AtkObjectFactoryClass *class)
+{
+ class->create_accessible = ygtk_wizard_accessible_factory_create_accessible;
+ class->get_accessible_type = ygtk_wizard_accessible_factory_get_accessible_type;
+}
+
+static GType ygtk_wizard_accessible_factory_get_type (void)
+{
+ static GType type = 0;
+ if (!type) {
+ GTypeInfo type_info = { 0 };
+ type_info.class_size = sizeof (AtkObjectFactoryClass);
+ type_info.class_init = (GClassInitFunc) ygtk_wizard_accessible_factory_class_init;
+ type_info.instance_size = sizeof (AtkObjectFactory);
+
+ type = g_type_register_static (ATK_TYPE_OBJECT_FACTORY,
+ "YGtkWizardAccessibleFactory", &type_info, 0);
+
+/*
+ type = g_type_register_static_simple (ATK_TYPE_OBJECT_FACTORY,
+ "YGtkWizardAccessibleFactory", sizeof (AtkObjectFactoryClass),
+ (GClassInitFunc) ygtk_wizard_accessible_factory_class_init,
+ sizeof (AtkObjectFactory), NULL, 0);
+*/
+ }
+ return type;
+}
+
+static AtkObject *ygtk_wizard_get_accessible (GtkWidget *widget)
+{
+ static gboolean first_time = TRUE;
+ if (first_time) {
+ AtkObjectFactory *factory;
+ AtkRegistry *registry;
+ GType derived_type;
+ GType derived_atk_type;
+
+ derived_type = g_type_parent (YGTK_TYPE_WIZARD);
+ registry = atk_get_default_registry ();
+ factory = atk_registry_get_factory (registry, derived_type);
+ derived_atk_type = atk_object_factory_get_accessible_type (factory);
+ if (g_type_is_a (derived_atk_type, GTK_TYPE_ACCESSIBLE)) {
+ atk_registry_set_factory_type (registry, YGTK_TYPE_WIZARD,
+ ygtk_wizard_accessible_factory_get_type ());
+ }
+ first_time = FALSE;
+ }
+ return GTK_WIDGET_CLASS (ygtk_wizard_parent_class)->get_accessible (widget);
+}
+
+static void ygtk_wizard_class_init (YGtkWizardClass *klass)
+{
+ ygtk_wizard_parent_class = g_type_class_peek_parent (klass);
+
+ GtkWidgetClass* widget_class = GTK_WIDGET_CLASS (klass);
+ //** Get expose, so we can draw line border
+ widget_class->expose_event = ygtk_wizard_expose_event;
+ widget_class->realize = ygtk_wizard_realize;
+ widget_class->size_request = ygtk_wizard_size_request;
+ widget_class->size_allocate = ygtk_wizard_size_allocate;
+ widget_class->get_accessible = ygtk_wizard_get_accessible;
+
+ GtkContainerClass *container_class = GTK_CONTAINER_CLASS (klass);
+ container_class->forall = ygtk_wizard_forall;
+ container_class->add = ygtk_wizard_add_child;
+ container_class->remove = ygtk_wizard_remove_child;
+
+ GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass);
+ gtkobject_class->destroy = ygtk_wizard_destroy;
+
+ action_triggered_signal = g_signal_new ("action-triggered",
+ G_TYPE_FROM_CLASS (G_OBJECT_CLASS (klass)), G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (YGtkWizardClass, action_triggered),
+ NULL, NULL, ygtk_marshal_VOID__POINTER_INT, G_TYPE_NONE,
+ 2, G_TYPE_POINTER, G_TYPE_INT);
+
+ // on F1, popup the help box
+ klass->popup_help = ygtk_wizard_popup_help;
+ g_signal_new ("popup_help", G_TYPE_FROM_CLASS (G_OBJECT_CLASS (klass)),
+ G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
+ G_STRUCT_OFFSET (YGtkWizardClass, popup_help),
+ NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
+
+ GtkBindingSet *binding_set = gtk_binding_set_by_class (klass);
+ gtk_binding_entry_add_signal (binding_set, GDK_F1, 0, "popup_help", 0);
+}
+
Added: trunk/gtk/unstable-libyui/src/ygtkwizard.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkwiza…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkwizard.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtkwizard.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,176 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkWizard is a widget based on GtkAssistant, which we couldn't
+ use (for starters, GtkAssistant comes from GtkWindow and we need
+ a widget, not a window).
+*/
+
+#ifndef YGTK_WIZARD_H
+#define YGTK_WIZARD_H
+
+#include <gdk/gdk.h>
+#include <gtk/gtkbin.h>
+#include <gtk/gtkwindow.h>
+G_BEGIN_DECLS
+
+// YGtkHelpDialog (for showing help text)
+/* Shows help text. It is GtkWindow-inherited, rather than GtkDialog, because
+ we want to place a search entry next to the buttons. */
+
+#define YGTK_TYPE_HELP_DIALOG (ygtk_help_dialog_get_type ())
+#define YGTK_HELP_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_HELP_DIALOG, YGtkHelpDialog))
+#define YGTK_HELP_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_HELP_DIALOG, YGtkHelpDialogClass))
+#define YGTK_IS_HELP_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_HELP_DIALOG))
+#define YGTK_IS_HELP_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_HELP_DIALOG))
+#define YGTK_HELP_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_HELP_DIALOG, YGtkHelpDialogClass))
+
+typedef struct _YGtkHelpDialog
+{
+ GtkWindow parent;
+
+ // parent:
+ GtkWidget *title_box, *title_label, *title_image;
+ GtkWidget *help_box, *help_text;
+ GtkWidget *search_entry, *close_button;
+ GtkWidget *vbox;
+} YGtkHelpDialog;
+
+typedef struct _YGtkHelpDialogClass
+{
+ GtkWindowClass parent_class;
+
+ // signals
+ void (*find_next) (YGtkHelpDialog *dialog);
+ void (*close) (YGtkHelpDialog *dialog);
+} YGtkHelpDialogClass;
+
+GtkWidget *ygtk_help_dialog_new (GtkWindow *parent);
+GType ygtk_help_dialog_get_type (void) G_GNUC_CONST;
+
+void ygtk_help_dialog_set_text (YGtkHelpDialog *dialog, const char *text);
+
+// YGtkWizard
+
+#define YGTK_TYPE_WIZARD (ygtk_wizard_get_type ())
+#define YGTK_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_WIZARD, YGtkWizard))
+#define YGTK_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_WIZARD, YGtkWizardClass))
+#define YGTK_IS_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ YGTK_TYPE_WIZARD))
+#define YGTK_IS_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ YGTK_TYPE_WIZARD))
+#define YGTK_WIZARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_WIZARD, YGtkWizardClass))
+
+typedef struct _YGtkWizard
+{
+ GtkBin bin;
+
+ // private:
+ /* Hash tables to assign Yast Ids to Gtk entries. */
+ GHashTable *menu_ids; /* gchar* -> GtkWidget* */
+ GHashTable *tree_ids; /* gchar* -> GtkTreePath* */
+ GHashTable *steps_ids; /* gchar* -> guint */
+
+ /* Widgets for layout. */
+ GtkWidget *m_menu, *m_title, *m_steps, *m_tree, *m_buttons;
+ GtkWidget *m_child, *m_pane;
+ // containee can be accessed via GTK_BIN (wizard)->child
+
+ /* Widgets we need to have access to. */
+ GtkWidget *m_title_label, *m_title_image, *m_tree_view,
+ *m_back_button, *m_abort_button, *m_next_button, *m_help_button,
+ *m_release_notes_button;
+
+ /* The help text. */
+ gchar *m_help;
+ GtkWidget *m_help_dialog;
+} YGtkWizard;
+
+typedef struct _YGtkWizardClass
+{
+ GtkBinClass parent_class;
+
+ // signals:
+ void (*action_triggered) (YGtkWizard *wizard, gpointer id, gint id_type);
+ void (*popup_help) (YGtkWizard *dialog);
+} YGtkWizardClass;
+
+GtkWidget *ygtk_wizard_new (void);
+GType ygtk_wizard_get_type (void) G_GNUC_CONST;
+
+// Enable a steps or tree pane widget -- should be called right after
+// initilization and only _one_ of them
+void ygtk_wizard_enable_steps (YGtkWizard *wizard);
+void ygtk_wizard_enable_tree (YGtkWizard *wizard);
+
+// convinience method that removes the current child, if set, and swaps it by
+// the given one (you may pass NULL to just remove current child)
+void ygtk_wizard_set_child (YGtkWizard *wizard, GtkWidget *widget);
+
+// commands
+// (commands that may fail return a sucess boolean.)
+void ygtk_wizard_set_help_text (YGtkWizard *wizard, const gchar *text);
+
+// you may pass a window widget if you want the title/icon to be set on it as well
+void ygtk_wizard_set_header_text (YGtkWizard *wizard, GtkWindow *window,
+ const char *text);
+gboolean ygtk_wizard_set_header_icon (YGtkWizard *wizard, GtkWindow *window,
+ const char *icon);
+
+void ygtk_wizard_set_back_button_label (YGtkWizard *wizard, const char *text);
+void ygtk_wizard_set_abort_button_label (YGtkWizard *wizard, const char *text);
+void ygtk_wizard_set_next_button_label (YGtkWizard *wizard, const char *text);
+void ygtk_wizard_set_back_button_id (YGtkWizard *wizard, gpointer id,
+ GDestroyNotify destroy_cb);
+void ygtk_wizard_set_next_button_id (YGtkWizard *wizard, gpointer id,
+ GDestroyNotify destroy_cb);
+void ygtk_wizard_set_abort_button_id (YGtkWizard *wizard, gpointer id,
+ GDestroyNotify destroy_cb);
+void ygtk_wizard_enable_back_button (YGtkWizard *wizard, gboolean enable);
+void ygtk_wizard_enable_next_button (YGtkWizard *wizard, gboolean enable);
+void ygtk_wizard_enable_abort_button (YGtkWizard *wizard, gboolean enable);
+gboolean ygtk_wizard_is_next_button_protected (YGtkWizard *wizard);
+void ygtk_wizard_protect_next_button (YGtkWizard *wizard, gboolean protect);
+void ygtk_wizard_focus_next_button (YGtkWizard *wizard);
+void ygtk_wizard_focus_back_button (YGtkWizard *wizard);
+
+void ygtk_wizard_add_menu (YGtkWizard *wizard, const char *text,
+ const char *id);
+gboolean ygtk_wizard_add_menu_entry (YGtkWizard *wizard, const char *parent_id,
+ const char *text, const char *id);
+gboolean ygtk_wizard_add_sub_menu (YGtkWizard *wizard, const char *parent_id,
+ const char *text, const char *id);
+gboolean ygtk_wizard_add_menu_separator (YGtkWizard *wizard, const char *parent_id);
+void ygtk_wizard_clear_menu (YGtkWizard *wizard);
+
+void ygtk_wizard_add_step_header (YGtkWizard *wizard, const char *text);
+void ygtk_wizard_add_step (YGtkWizard *wizard, const char* text, const char *id);
+gboolean ygtk_wizard_set_current_step (YGtkWizard *wizard, const char *id);
+void ygtk_wizard_clear_steps (YGtkWizard *wizard);
+
+gboolean ygtk_wizard_add_tree_item (YGtkWizard *wizard, const char *parent_id,
+ const char *text, const char *id);
+void ygtk_wizard_clear_tree (YGtkWizard *wizard);
+gboolean ygtk_wizard_select_tree_item (YGtkWizard *wizard, const char *id);
+const gchar *ygtk_wizard_get_tree_selection (YGtkWizard *wizard);
+
+void ygtk_wizard_set_release_notes_button_label (YGtkWizard *wizard,
+ const gchar *text, gpointer id,
+ GDestroyNotify destroy_cb);
+void ygtk_wizard_show_release_notes_button (YGtkWizard *wizard, gboolean enable);
+
+// You should call this method rather than GtkWidget's if you want
+// to honor next_button protect flag
+void ygtk_wizard_set_sensitive (YGtkWizard *wizard, gboolean sensitive);
+
+G_END_DECLS
+#endif /* YGTK_WIZARD_H */
Added: trunk/gtk/unstable-libyui/src/ygtkzyppwrapper.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkzypp…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkzyppwrapper.cc (added)
+++ trunk/gtk/unstable-libyui/src/ygtkzyppwrapper.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,333 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* YGtkZyppWrapper, gtk+ hooks for zypp wrapper */
+// check the header file for information about these hooks
+
+#include <config.h>
+#include "ygtkzyppwrapper.h"
+#include "YGUtils.h"
+
+#include "icons/pkg-installed.xpm"
+#include "icons/pkg-installed-upgradable.xpm"
+#include "icons/pkg-installed-upgradable-locked.xpm"
+#include "icons/pkg-installed-locked.xpm"
+#include "icons/pkg-available.xpm"
+#include "icons/pkg-available-locked.xpm"
+#include "icons/pkg-install.xpm"
+#include "icons/pkg-remove.xpm"
+#include "icons/pkg-install-auto.xpm"
+#include "icons/pkg-remove-auto.xpm"
+#include "icons/pkg-3D.xpm"
+
+// bridge as we don't want to mix c++ class polymorphism and gobject
+struct YGtkZyppModel::PoolNotify : public Ypp::Pool::Listener {
+YGtkZyppModel *model;
+ virtual void entryChanged (Ypp::Pool::Iter iter, Ypp::Package *package)
+ { ygtk_zypp_model_entry_changed (model, iter); }
+ virtual void entryInserted (Ypp::Pool::Iter iter, Ypp::Package *package)
+ { ygtk_zypp_model_entry_inserted (model, iter); }
+ virtual void entryDeleted (Ypp::Pool::Iter iter, Ypp::Package *package)
+ { ygtk_zypp_model_entry_deleted (model, iter); }
+};
+
+// Icons resources
+struct PackageIcons {
+ GdkPixbuf *installed, *installed_upgradable, *installed_locked,
+ *installed_upgradable_locked, *available, *available_locked,
+ *to_install, *to_remove, *to_auto_install, *to_auto_remove,
+ *is_3D;
+ PackageIcons() {
+ installed = gdk_pixbuf_new_from_xpm_data (pkg_installed_xpm);
+ installed_upgradable =
+ gdk_pixbuf_new_from_xpm_data (pkg_installed_upgradable_xpm);
+ installed_locked = gdk_pixbuf_new_from_xpm_data (pkg_installed_locked_xpm);
+ installed_upgradable_locked =
+ gdk_pixbuf_new_from_xpm_data (pkg_installed_upgradable_locked_xpm);
+ available = gdk_pixbuf_new_from_xpm_data (pkg_available_xpm);
+ available_locked = gdk_pixbuf_new_from_xpm_data (pkg_available_locked_xpm);
+ to_install = gdk_pixbuf_new_from_xpm_data (pkg_install_xpm);
+ to_remove = gdk_pixbuf_new_from_xpm_data (pkg_remove_xpm);
+ to_auto_install = gdk_pixbuf_new_from_xpm_data (pkg_install_auto_xpm);
+ to_auto_remove = gdk_pixbuf_new_from_xpm_data (pkg_remove_auto_xpm);
+ is_3D = gdk_pixbuf_new_from_xpm_data (pkg_3D_xpm);
+ }
+ ~PackageIcons() {
+ g_object_unref (G_OBJECT (installed));
+ g_object_unref (G_OBJECT (installed_upgradable));
+ g_object_unref (G_OBJECT (installed_upgradable_locked));
+ g_object_unref (G_OBJECT (installed_locked));
+ g_object_unref (G_OBJECT (available));
+ g_object_unref (G_OBJECT (available_locked));
+ g_object_unref (G_OBJECT (to_install));
+ g_object_unref (G_OBJECT (to_remove));
+ g_object_unref (G_OBJECT (to_auto_install));
+ g_object_unref (G_OBJECT (to_auto_remove));
+ g_object_unref (G_OBJECT (is_3D));
+ }
+};
+
+static PackageIcons *icons = NULL;
+void ygtk_zypp_model_finish()
+{
+ delete icons; icons = NULL;
+ Ypp::finish();
+}
+
+static void ygtk_zypp_model_tree_model_init (GtkTreeModelIface *iface);
+
+G_DEFINE_TYPE_WITH_CODE (YGtkZyppModel, ygtk_zypp_model, G_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL, ygtk_zypp_model_tree_model_init))
+
+static void ygtk_zypp_model_init (YGtkZyppModel *zmodel)
+{
+ if (!icons)
+ icons = new PackageIcons();
+}
+
+static void ygtk_zypp_model_finalize (GObject *object)
+{
+ YGtkZyppModel *zmodel = YGTK_ZYPP_MODEL (object);
+ delete zmodel->notify;
+ zmodel->notify = NULL;
+ delete zmodel->pool;
+ zmodel->pool = NULL;
+ G_OBJECT_CLASS (ygtk_zypp_model_parent_class)->finalize (object);
+}
+
+static GtkTreeModelFlags ygtk_zypp_model_get_flags (GtkTreeModel *)
+{
+ return GtkTreeModelFlags (GTK_TREE_MODEL_ITERS_PERSIST | GTK_TREE_MODEL_LIST_ONLY);
+}
+
+static gboolean ygtk_zypp_model_get_iter (GtkTreeModel *model, GtkTreeIter *iter,
+ GtkTreePath *path)
+{
+ YGtkZyppModel *zmodel = YGTK_ZYPP_MODEL (model);
+ gint row = gtk_tree_path_get_indices (path)[0];
+
+ iter->user_data = (gpointer) zmodel->pool->getIter (row);
+ return iter->user_data != NULL;
+}
+
+static GtkTreePath *ygtk_zypp_model_get_path (GtkTreeModel *model, GtkTreeIter *iter)
+{
+ YGtkZyppModel *zmodel = YGTK_ZYPP_MODEL (model);
+ int row = zmodel->pool->getIndex (iter->user_data);
+fprintf (stderr, "get index: %d\n", row);
+
+ GtkTreePath *path = gtk_tree_path_new();
+ gtk_tree_path_append_index (path, row);
+ return path;
+}
+
+static gboolean ygtk_zypp_model_iter_next (GtkTreeModel *model, GtkTreeIter *iter)
+{
+ YGtkZyppModel *zmodel = YGTK_ZYPP_MODEL (model);
+ iter->user_data = zmodel->pool->getNext (iter->user_data);
+ return iter->user_data != NULL;
+}
+
+void ygtk_zypp_model_entry_changed (YGtkZyppModel *model, Ypp::Pool::Iter it)
+{
+ GtkTreeIter iter;
+ iter.user_data = it;
+ GtkTreePath *path = ygtk_zypp_model_get_path (GTK_TREE_MODEL (model), &iter);
+ gtk_tree_model_row_changed (GTK_TREE_MODEL (model), path, &iter);
+ gtk_tree_path_free (path);
+}
+
+void ygtk_zypp_model_entry_inserted (YGtkZyppModel *model, Ypp::Pool::Iter it)
+{
+fprintf (stderr, "inserted row\n");
+ GtkTreeIter iter;
+ iter.user_data = it;
+ GtkTreePath *path = ygtk_zypp_model_get_path (GTK_TREE_MODEL (model), &iter);
+fprintf (stderr, "signal\n");
+ gtk_tree_model_row_inserted (GTK_TREE_MODEL (model), path, &iter);
+fprintf (stderr, "done\n");
+ gtk_tree_path_free (path);
+}
+
+void ygtk_zypp_model_entry_deleted (YGtkZyppModel *model, Ypp::Pool::Iter it)
+{
+ GtkTreeIter iter;
+ iter.user_data = it;
+ GtkTreePath *path = ygtk_zypp_model_get_path (GTK_TREE_MODEL (model), &iter);
+ gtk_tree_model_row_deleted (GTK_TREE_MODEL (model), path);
+ gtk_tree_path_free (path);
+}
+
+static gint ygtk_zypp_model_get_n_columns (GtkTreeModel *model)
+{
+ return YGtkZyppModel::TOTAL_COLUMNS;
+}
+
+static GType ygtk_zypp_model_get_column_type (GtkTreeModel *tree_model, gint column)
+{
+ switch (column)
+ {
+ case YGtkZyppModel::ICON_COLUMN:
+ return GDK_TYPE_PIXBUF;
+ case YGtkZyppModel::NAME_COLUMN:
+ case YGtkZyppModel::NAME_DESCRIPTION_COLUMN:
+ return G_TYPE_STRING;
+ case YGtkZyppModel::PTR_COLUMN:
+ return G_TYPE_POINTER;
+ case YGtkZyppModel::SPECIAL_ICON_COLUMN:
+ return GDK_TYPE_PIXBUF;
+ }
+ return 0;
+}
+
+static void ygtk_zypp_model_get_value (GtkTreeModel *model, GtkTreeIter *iter,
+ gint column, GValue *value)
+{
+ YGtkZyppModel *zmodel = YGTK_ZYPP_MODEL (model);
+ Ypp::Package *package = zmodel->pool->get (iter->user_data);
+
+ g_value_init (value, ygtk_zypp_model_get_column_type (model, column));
+ switch (column)
+ {
+ case YGtkZyppModel::ICON_COLUMN:
+ {
+ GdkPixbuf *pixbuf;
+ bool locked = package->isLocked();
+ bool auto_ = package->isAuto();
+ if (package->toInstall()) {
+ if (auto_)
+ pixbuf = icons->to_auto_install;
+ else
+ pixbuf = icons->to_install;
+ }
+ else if (package->toRemove()) {
+ if (auto_)
+ pixbuf = icons->to_auto_remove;
+ else
+ pixbuf = icons->to_remove;
+ }
+ else if (package->hasUpgrade()) {
+ if (locked)
+ pixbuf = icons->installed_upgradable_locked;
+ else
+ pixbuf = icons->installed_upgradable;
+ }
+ else if (package->isInstalled()) {
+ if (locked)
+ pixbuf = icons->installed_locked;
+ else
+ pixbuf = icons->installed;
+ }
+ else {
+ if (locked)
+ pixbuf = icons->available_locked;
+ else
+ pixbuf = icons->available;
+ }
+ g_value_set_object (value, (GObject *) pixbuf);
+ break;
+ }
+ case YGtkZyppModel::NAME_COLUMN:
+ {
+ std::string name = package->name();
+ const unsigned int max_width = 15;
+ if (name.size() > max_width) {
+ name.erase (max_width-3);
+ name += "...";
+ }
+ g_value_set_string (value, g_strdup (name.c_str()));
+ break;
+ }
+ case YGtkZyppModel::NAME_DESCRIPTION_COLUMN:
+ {
+ std::string str = package->name();
+ std::string summary = package->summary();
+ if (!summary.empty()) {
+ YGUtils::escapeMarkup (summary);
+ str += "\n<small>" + summary + "</small>";
+ }
+ g_value_set_string (value, g_strdup (str.c_str()));
+ break;
+ }
+ case YGtkZyppModel::PTR_COLUMN:
+ {
+ void *ptr;
+ ptr = (void *) package;
+ g_value_set_pointer (value, ptr);
+ break;
+ }
+ case YGtkZyppModel::SPECIAL_ICON_COLUMN:
+ {
+ if (package->is3D())
+ g_value_set_object (value, (GObject *) icons->is_3D);
+ else
+ g_value_set_object (value, NULL);
+ break;
+ }
+ default:
+ g_warning ("YGtkZyppModel column %d doesn't exist.", column);
+ break;
+ }
+}
+
+static gboolean ygtk_zypp_model_iter_children (GtkTreeModel *model, GtkTreeIter *iter,
+ GtkTreeIter *parent)
+{
+ return FALSE;
+}
+
+static gboolean ygtk_zypp_model_iter_has_child (GtkTreeModel *model, GtkTreeIter *iter)
+{
+ return FALSE;
+}
+
+static gint ygtk_zypp_model_iter_n_children (GtkTreeModel *model, GtkTreeIter *iter)
+{
+ return 0;
+}
+
+static gboolean ygtk_zypp_model_iter_nth_child (GtkTreeModel *model, GtkTreeIter *iter,
+ GtkTreeIter *parent, gint n)
+{
+ return FALSE;
+}
+
+static gboolean ygtk_zypp_model_iter_parent (GtkTreeModel *model, GtkTreeIter *iter,
+ GtkTreeIter *child)
+{
+ return FALSE;
+}
+
+YGtkZyppModel *ygtk_zypp_model_new (Ypp::Query *query)
+{
+ YGtkZyppModel *zmodel = (YGtkZyppModel *) g_object_new (YGTK_TYPE_ZYPP_MODEL, NULL);
+ zmodel->notify = new YGtkZyppModel::PoolNotify();
+ zmodel->notify->model = zmodel;
+ zmodel->pool = new Ypp::Pool (query);
+ zmodel->pool->setListener (zmodel->notify);
+ return zmodel;
+}
+
+static void ygtk_zypp_model_class_init (YGtkZyppModelClass *klass)
+{
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+ gobject_class->finalize = ygtk_zypp_model_finalize;
+}
+
+static void ygtk_zypp_model_tree_model_init (GtkTreeModelIface *iface)
+{
+ iface->get_flags = ygtk_zypp_model_get_flags;
+ iface->get_n_columns = ygtk_zypp_model_get_n_columns;
+ iface->get_column_type = ygtk_zypp_model_get_column_type;
+ iface->get_iter = ygtk_zypp_model_get_iter;
+ iface->get_path = ygtk_zypp_model_get_path;
+ iface->get_value = ygtk_zypp_model_get_value;
+ iface->iter_next = ygtk_zypp_model_iter_next;
+ iface->iter_children = ygtk_zypp_model_iter_children;
+ iface->iter_has_child = ygtk_zypp_model_iter_has_child;
+ iface->iter_n_children = ygtk_zypp_model_iter_n_children;
+ iface->iter_nth_child = ygtk_zypp_model_iter_nth_child;
+ iface->iter_parent = ygtk_zypp_model_iter_parent;
+}
+
Added: trunk/gtk/unstable-libyui/src/ygtkzyppwrapper.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/ygtkzypp…
==============================================================================
--- trunk/gtk/unstable-libyui/src/ygtkzyppwrapper.h (added)
+++ trunk/gtk/unstable-libyui/src/ygtkzyppwrapper.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,54 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* Contains ZyppWrapper query results in a GtkTreeModel.
+*/
+
+#ifndef YGTK_ZYPP_WRAPPER_H
+#define YGTK_ZYPP_WRAPPER_H
+
+#include "yzyppwrapper.h"
+#include <gtk/gtktreemodel.h>
+
+#define YGTK_TYPE_ZYPP_MODEL (ygtk_zypp_model_get_type ())
+#define YGTK_ZYPP_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ YGTK_TYPE_ZYPP_MODEL, YGtkZyppModel))
+#define YGTK_ZYPP_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ YGTK_TYPE_ZYPP_MODEL, YGtkZyppModelClass))
+#define YGTK_IS_ZYPP_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YGTK_TYPE_ZYPP_MODEL))
+#define YGTK_IS_ZYPP_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YGTK_TYPE_ZYPP_MODEL))
+#define YGTK_ZYPP_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ YGTK_TYPE_ZYPP_MODEL, YGtkZyppModelClass))
+
+struct YGtkZyppModel
+{
+ GObject parent;
+
+ enum Columns {
+ ICON_COLUMN, NAME_COLUMN, NAME_DESCRIPTION_COLUMN, PTR_COLUMN,
+ SPECIAL_ICON_COLUMN, TOTAL_COLUMNS
+ };
+
+ Ypp::Pool *pool;
+
+ struct PoolNotify;
+ PoolNotify *notify;
+};
+
+struct YGtkZyppModelClass
+{
+ GObjectClass parent_class;
+};
+
+YGtkZyppModel *ygtk_zypp_model_new (Ypp::Query *query);
+GType ygtk_zypp_model_get_type (void) G_GNUC_CONST;
+// besides calling Ypp for cleaning, it also cleans the icons of this hook
+void ygtk_zypp_model_finish();
+
+void ygtk_zypp_model_entry_changed (YGtkZyppModel *model, Ypp::Pool::Iter iter);
+void ygtk_zypp_model_entry_inserted (YGtkZyppModel *model, Ypp::Pool::Iter iter);
+void ygtk_zypp_model_entry_deleted (YGtkZyppModel *model, Ypp::Pool::Iter iter);
+
+#endif /*YGTK_ZYPP_WRAPPER_H*/
+
Added: trunk/gtk/unstable-libyui/src/yzyppwrapper.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/yzyppwra…
==============================================================================
--- trunk/gtk/unstable-libyui/src/yzyppwrapper.cc (added)
+++ trunk/gtk/unstable-libyui/src/yzyppwrapper.cc Wed Dec 5 14:14:01 2007
@@ -0,0 +1,1478 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* Ypp, zypp wrapper */
+// check the header file for information about this wrapper
+
+#include <config.h>
+#include "YGi18n.h"
+#include "yzyppwrapper.h"
+
+#include <ycp/y2log.h>
+#include <zypp/ZYppFactory.h>
+#include <zypp/ResObject.h>
+#include <zypp/ResPoolProxy.h>
+#include <zypp/ui/Selectable.h>
+#include <zypp/Patch.h>
+#include <zypp/Selection.h>
+#include <zypp/Package.h>
+#include <zypp/Pattern.h>
+#include <zypp/Language.h>
+#include <zypp/Product.h>
+#include <zypp/Repository.h>
+#include <zypp/RepoManager.h>
+
+#include <glib/gslist.h>
+#include "YGUtils.h"
+
+//** Zypp shortcuts
+
+typedef zypp::ResPoolProxy ZyppPool;
+inline ZyppPool zyppPool() { return zypp::getZYpp()->poolProxy(); }
+typedef zypp::ui::Selectable::Ptr ZyppSelectable;
+typedef zypp::ui::Selectable* ZyppSelectablePtr;
+typedef zypp::ResObject::constPtr ZyppObject;
+typedef zypp::ResObject* ZyppObjectPtr;
+typedef zypp::Package::constPtr ZyppPackage;
+typedef zypp::Patch::constPtr ZyppPatch;
+typedef zypp::Pattern::constPtr ZyppPattern;
+typedef zypp::Language::constPtr ZyppLanguage;
+inline ZyppPackage tryCastToZyppPkg (ZyppObject obj)
+{ return zypp::dynamic_pointer_cast <const zypp::Package> (obj); }
+inline ZyppPatch tryCastToZyppPatch (ZyppObject obj)
+{ return zypp::dynamic_pointer_cast <const zypp::Patch> (obj); }
+inline ZyppPattern tryCastToZyppPattern (ZyppObject obj)
+{ return zypp::dynamic_pointer_cast <const zypp::Pattern> (obj); }
+inline ZyppLanguage tryCastToZyppLanguage (ZyppObject obj)
+{ return zypp::dynamic_pointer_cast <const zypp::Language> (obj); }
+
+//** Utilities
+
+// converts a set of tree representation in a form of a strings to a tree structure.
+// String tree representations are, for instance, filenames: /dir1/dir2/file
+struct StringTree {
+ typedef int (*Compare)(const char *, const char *);
+ Compare compare;
+ char delim;
+ GNode *root;
+
+ StringTree (Compare compare, char delim)
+ : compare (compare), delim (delim)
+ {
+ // the root is a dummy node to keep GNode happy
+ root = g_node_new (NULL);
+ }
+
+ ~StringTree()
+ {
+ struct inner {
+ static void free (GNode *node, void *_data)
+ { delete ((Ypp::Node *) node->data); }
+ };
+ g_node_children_foreach (root, G_TRAVERSE_ALL, inner::free, NULL);
+ g_node_destroy (root);
+ }
+
+ Ypp::Node *getFirst()
+ {
+ return (Ypp::Node *) root->children->data;
+ }
+
+ Ypp::Node *add (const std::string &tree_str)
+ {
+ const std::list <std::string> nodes_str = YGUtils::splitString (tree_str, delim);
+ GNode *parent = root, *sibling = 0;
+ Ypp::Node *ret = 0;
+
+ std::list <std::string>::const_iterator it;
+ for (it = nodes_str.begin(); it != nodes_str.end(); it++) {
+ bool found = false;
+ for (sibling = parent->children; sibling; sibling = sibling->next) {
+ Ypp::Node *yNode = (Ypp::Node *) sibling->data;
+ int cmp = (*compare) (it->c_str(), yNode->name.c_str());
+ if (cmp == 0) {
+ found = true;
+ ret = yNode;
+ break;
+ }
+ else if (cmp < 0)
+ break;
+ }
+ if (!found)
+ break;
+ parent = sibling;
+ }
+
+ for (; it != nodes_str.end(); it++) {
+ Ypp::Node *yNode = new Ypp::Node();
+ GNode *n = g_node_new ((void *) yNode);
+ yNode->name = *it;
+ yNode->impl = (void *) n;
+ g_node_insert_before (parent, sibling, n);
+ parent = n;
+ sibling = NULL;
+ ret = yNode;
+ }
+ return ret;
+ }
+};
+
+//** Singleton
+
+static Ypp *ypp = 0;
+
+Ypp *Ypp::get()
+{
+ if (!ypp)
+ ypp = new Ypp();
+ return ypp;
+}
+
+void Ypp::finish()
+{
+ delete ypp; ypp = NULL;
+}
+
+// Ypp::Impl declaration, to expose some methods for usage
+struct Ypp::Impl
+{
+public:
+ Impl();
+ ~Impl();
+
+ const Repository *getRepository (int nb);
+ int getRepository (const std::string &zyppId);
+ Disk *getDisk();
+
+ // for Packages
+ bool acceptLicense (Ypp::Package *package, const std::string &license);
+ void packageModified (Ypp::Package *package);
+
+ // for Pools
+ void addPool (Pool::Impl *pool);
+ void removePool (Pool::Impl *pool);
+ GSList *getPackages (Package::Type type);
+
+private:
+ bool resolveProblems();
+ Node *addCategory (Package::Type type, const std::string &str, Package *package);
+ void polishCategories (Ypp::Package::Type type);
+
+ void startTransactions();
+ void finishTransactions();
+
+ friend class Ypp;
+ GSList *packages [Package::TOTAL_TYPES]; // primitive pools
+ StringTree *categories [Package::TOTAL_TYPES];
+ GSList *repos;
+ Disk *disk;
+ Interface *interface;
+ GSList *pools;
+ bool inTransaction;
+ GSList *transactions;
+};
+
+//** Package
+
+struct Ypp::Package::Impl
+{
+ Impl (ZyppSelectable sel)
+ : zyppSel (sel), index (-1), availableVersions (NULL), installedVersion (NULL), is3D (false)
+ {
+ // don't use getAvailableVersion(0) for hasUpgrade() has its inneficient.
+ // let's just cache candidate() at start, which should point to the newest version.
+ hasUpgrade = false;
+ ZyppObject candidate = zyppSel->candidateObj();
+ ZyppObject installed = zyppSel->installedObj();
+ if (!!candidate && !!installed)
+ hasUpgrade = zypp::Edition::compare (candidate->edition(), installed->edition()) > 0;
+ setUnmodified();
+ }
+
+ ~Impl()
+ {
+ delete installedVersion;
+ for (GSList *i = availableVersions; i; i = i->next)
+ delete ((Version *) i->data);
+ g_slist_free (availableVersions);
+ }
+
+ inline bool isModified()
+ { return curStatus != zyppSel->status(); }
+ inline void setUnmodified()
+ { curStatus = zyppSel->status(); }
+
+ std::string name, summary;
+ ZyppSelectable zyppSel;
+ int index; // used for Pools syncing
+ Type type;
+ Ypp::Node *category;
+ GSList *availableVersions;
+ Version *installedVersion;
+ bool hasUpgrade;
+ bool is3D;
+ zypp::ui::Status curStatus; // so we know if resolver touched it
+};
+
+Ypp::Package::Package (Ypp::Package::Impl *impl)
+: impl (impl)
+{}
+Ypp::Package::~Package()
+{ delete impl; }
+
+Ypp::Package::Type Ypp::Package::type()
+{ return impl->type; }
+
+const std::string &Ypp::Package::name()
+{
+ std::string &ret = impl->name;
+ if (ret.empty()) {
+ ZyppSelectable sel = impl->zyppSel;
+ ZyppObject obj = sel->theObj();
+ switch (impl->type) {
+ case PATTERN_TYPE:
+ ret = obj->summary();
+ case LANGUAGE_TYPE:
+ ret = obj->description();
+ default:
+ ret = sel->name();
+ }
+ }
+ return ret;
+}
+
+const std::string &Ypp::Package::summary()
+{
+ std::string &ret = impl->summary;
+ if (ret.empty()) {
+ if (impl->type == PACKAGE_TYPE)
+ ret = impl->zyppSel->theObj()->summary();
+ }
+ return ret;
+}
+
+std::string Ypp::Package::description()
+{
+ ZyppObject object = impl->zyppSel->theObj();
+ std::string text = object->description(), br = "<br>";
+ if (impl->type == PACKAGE_TYPE) {
+ // if it has this header, then it is HTML
+ const char *header = "<!-- DT:Rich -->", header_len = 16;
+ if (!text.compare (0, header_len, header, header_len))
+ text.erase (0, header_len);
+ else {
+ // add breakline for every double one...
+ YGUtils::replace (text, "\n\n", 2, "<br>");
+/* std::string::size_type i = 0;
+ while ((i = text.find ("\n\n", i)) < std::string::npos) {
+ text.erase (i, 2); // remove it, so we don't trip on it again
+ text.insert (i, "<br>");
+ }*/
+ }
+
+ ZyppPackage package = tryCastToZyppPkg (object);
+ std::string url = package->url(), license = package->license();
+ if (!url.empty())
+ text += br + _("Website: ") + url;
+ if (!license.empty())
+ text += br + _("License: ") + license;
+ }
+ text += br + _("Size: ") + object->size().asString();
+ return text;
+}
+
+std::string Ypp::Package::filelist()
+{
+ std::string text;
+ ZyppObject object = impl->zyppSel->installedObj();
+ ZyppPackage package = tryCastToZyppPkg (object);
+ if (package) {
+ StringTree tree (YGUtils::strcmp, '/');
+
+ const std::list <std::string> &filesList = package->filenames();
+ for (std::list <std::string>::const_iterator it = filesList.begin();
+ it != filesList.end(); it++)
+ tree.add (*it);
+
+ struct inner {
+ static std::string getPath (GNode *node)
+ {
+ Node *yNode = (Node *) node->data;
+ if (!yNode)
+ return std::string();
+ return getPath (node->parent) + "/" + yNode->name;
+ }
+ static bool hasNextLeaf (GNode *node)
+ {
+ GNode *i;
+ for (i = node->next; i; i = i->next)
+ if (!i->children)
+ return true;
+ return false;
+ }
+ static bool hasPrevLeaf (GNode *node)
+ {
+ GNode *i;
+ for (i = node->prev; i; i = i->prev)
+ if (!i->children)
+ return true;
+ return false;
+ }
+ static gboolean traverse (GNode *node, void *_data)
+ {
+ Node *yNode = (Node *) node->data;
+ if (yNode) {
+ std::string *str = (std::string *) _data;
+ if (!hasPrevLeaf (node)) {
+ std::string path = getPath (node->parent);
+ *str += "<a href=" + path + ">" + path + "</a>";
+ *str += "<blockquote>";
+ }
+ else
+ *str += ", ";
+ *str += yNode->name;
+
+ if (!hasNextLeaf (node))
+ *str += "</blockquote>";
+ }
+ return FALSE;
+ }
+ };
+ g_node_traverse (tree.root, G_LEVEL_ORDER, G_TRAVERSE_LEAFS, -1,
+ inner::traverse, (void *) &text);
+ }
+ return text;
+}
+
+std::string Ypp::Package::changelog()
+{
+ string text;
+ ZyppObject object = impl->zyppSel->installedObj();
+ ZyppPackage package = tryCastToZyppPkg (object);
+ if (package) {
+ const std::list <zypp::ChangelogEntry> &changelogList = package->changelog();
+ for (std::list <zypp::ChangelogEntry>::const_iterator it = changelogList.begin();
+ it != changelogList.end(); it++) {
+ std::string author = it->author(), changes = it->text();
+ YGUtils::escapeMarkup (author);
+ YGUtils::escapeMarkup (changes);
+ YGUtils::replace (changes, "\n", 1, "<br>");
+ text += it->date().asString() + author + ":<br>"
+ + "<blockquote>" + changes + "</blockqute>";
+ }
+ }
+ return text;
+}
+
+std::string Ypp::Package::authors()
+{
+fprintf (stderr, "authors %s\n", name().c_str());
+ std::string text;
+ ZyppObject object = impl->zyppSel->theObj();
+ ZyppPackage package = tryCastToZyppPkg (object);
+ if (package) {
+ std::string packager = package->packager(), authors;
+ YGUtils::escapeMarkup (packager);
+ const std::list <std::string> &authorsList = package->authors();
+ for (std::list <std::string>::const_iterator it = authorsList.begin();
+ it != authorsList.end(); it++) {
+ std::string author = *it;
+ YGUtils::escapeMarkup (author);
+ if (!authors.empty())
+ authors += "<br>";
+ authors += author;
+fprintf (stderr, "\t add author %s\n", author.c_str());
+ }
+ // Some packagers put Authors over the Descriptions field. This seems to be rare
+ // on, so I'm not even going to bother.
+
+ if (!packager.empty())
+ text += _("Packaged by:") + ("<blockquote>" + packager) + "</blockquote>";
+ if (!authors.empty())
+ text += _("Developed by:") + ("<blockquote>" + authors) + "</blockquote>";
+ }
+ return text;
+}
+
+std::string Ypp::Package::provides()
+{
+ std::string text;
+ ZyppObject object = impl->zyppSel->theObj();
+ const zypp::CapSet &capSet = object->dep (zypp::Dep::PROVIDES);
+ for (zypp::CapSet::const_iterator it = capSet.begin();
+ it != capSet.end(); it++) {
+ if (!text.empty())
+ text += "\n";
+ text += it->asString();
+ }
+ return text;
+}
+
+std::string Ypp::Package::requires()
+{
+ std::string text;
+ ZyppObject object = impl->zyppSel->theObj();
+ const zypp::CapSet &capSet = object->dep (zypp::Dep::REQUIRES);
+ for (zypp::CapSet::const_iterator it = capSet.begin();
+ it != capSet.end(); it++) {
+ if (!text.empty())
+ text += "\n";
+ text += it->asString();
+ }
+ return text;
+}
+
+Ypp::Node *Ypp::Package::category()
+{
+ return impl->category;
+}
+
+bool Ypp::Package::is3D()
+{
+ return impl->is3D;
+}
+
+
+bool Ypp::Package::isInstalled()
+{
+ return impl->zyppSel->hasInstalledObj();
+}
+
+bool Ypp::Package::hasUpgrade()
+{
+ return impl->hasUpgrade;
+}
+
+bool Ypp::Package::isLocked()
+{
+ zypp::ui::Status status = impl->zyppSel->status();
+ return status == zypp::ui::S_Taboo || status == zypp::ui::S_Protected;
+}
+
+bool Ypp::Package::toInstall (int *nb)
+{
+ if (nb) {
+ ZyppObject candidate = impl->zyppSel->candidateObj();
+ for (int i = 0; getAvailableVersion (i); i++) {
+ const Version *version = getAvailableVersion (i);
+ ZyppObject i_obj = (ZyppObjectPtr) version->impl;
+ if (i_obj == candidate) {
+ *nb = i;
+ break;
+ }
+ }
+ }
+ return impl->zyppSel->toInstall();
+}
+
+bool Ypp::Package::toRemove()
+{
+ return impl->zyppSel->toDelete();
+}
+
+bool Ypp::Package::isModified()
+{
+ return impl->zyppSel->toModify();
+}
+
+bool Ypp::Package::isAuto()
+{
+ zypp::ui::Status status = impl->zyppSel->status();
+ return status == zypp::ui::S_AutoInstall || status == zypp::ui::S_AutoUpdate ||
+ status == zypp::ui::S_AutoDel;
+}
+
+void Ypp::Package::install (int nb)
+{
+ if (isLocked())
+ return;
+ if (!impl->zyppSel->hasLicenceConfirmed())
+ {
+ const std::string &license = impl->zyppSel->candidateObj()->licenseToConfirm();
+ if (!license.empty())
+ if (!ypp->impl->acceptLicense (this, license))
+ return;
+ impl->zyppSel->setLicenceConfirmed();
+ }
+
+ zypp::ui::Status status = impl->zyppSel->status();
+ switch (status) {
+ // not applicable
+ case zypp::ui::S_Protected:
+ case zypp::ui::S_Taboo:
+ case zypp::ui::S_Install:
+ case zypp::ui::S_Update:
+ break;
+ // undo
+ case zypp::ui::S_Del:
+ status = zypp::ui::S_KeepInstalled;
+ break;
+ // nothing to do about it
+ case zypp::ui::S_AutoDel:
+ break;
+ // action
+ case zypp::ui::S_NoInst:
+ case zypp::ui::S_AutoInstall:
+ status = zypp::ui::S_Install;
+ break;
+ case zypp::ui::S_KeepInstalled:
+ case zypp::ui::S_AutoUpdate:
+ status = zypp::ui::S_Update;
+ break;
+ }
+
+ impl->zyppSel->set_status (status);
+ if (toInstall()) {
+ const Version *version = getAvailableVersion (nb);
+ ZyppObject candidate = (ZyppObjectPtr) version->impl;
+ if (!impl->zyppSel->setCandidate (candidate)) {
+ y2warning ("Error: Could not set package '%s' candidate to '%s'\n",
+ name().c_str(), version->number.c_str());
+ return;
+ }
+ }
+
+ ypp->impl->packageModified (this);
+}
+
+void Ypp::Package::remove()
+{
+ zypp::ui::Status status = impl->zyppSel->status();
+ switch (status) {
+ // not applicable
+ case zypp::ui::S_Protected:
+ case zypp::ui::S_Taboo:
+ case zypp::ui::S_NoInst:
+ case zypp::ui::S_Del:
+ break;
+ // undo
+ case zypp::ui::S_Install:
+ status = zypp::ui::S_NoInst;
+ break;
+ // nothing to do about it
+ case zypp::ui::S_AutoInstall:
+ case zypp::ui::S_AutoUpdate:
+ break;
+ case zypp::ui::S_Update:
+ status = zypp::ui::S_KeepInstalled;
+ break;
+ // action
+ case zypp::ui::S_KeepInstalled:
+ case zypp::ui::S_AutoDel:
+ status = zypp::ui::S_Del;
+ break;
+ }
+
+ impl->zyppSel->set_status (status);
+ ypp->impl->packageModified (this);
+}
+
+void Ypp::Package::undo()
+{
+ zypp::ui::Status status = impl->zyppSel->status();
+ switch (status) {
+ // not applicable
+ case zypp::ui::S_Protected:
+ case zypp::ui::S_Taboo:
+ case zypp::ui::S_NoInst:
+ case zypp::ui::S_KeepInstalled:
+ break;
+
+ // undo
+ case zypp::ui::S_Install:
+ status = zypp::ui::S_NoInst;
+ break;
+ case zypp::ui::S_Update:
+ case zypp::ui::S_Del:
+ status = zypp::ui::S_KeepInstalled;
+ break;
+
+ // for auto status, undo them by locking them
+ case zypp::ui::S_AutoInstall:
+ status = zypp::ui::S_Taboo;
+ break;
+ case zypp::ui::S_AutoUpdate:
+ case zypp::ui::S_AutoDel:
+ status = zypp::ui::S_Protected;
+ break;
+ }
+
+ impl->zyppSel->set_status (status);
+ ypp->impl->packageModified (this);
+}
+
+void Ypp::Package::lock (bool lock)
+{
+ undo();
+
+ zypp::ui::Status status;
+ if (lock)
+ status = isInstalled() ? zypp::ui::S_Protected : zypp::ui::S_Taboo;
+ else
+ status = isInstalled() ? zypp::ui::S_KeepInstalled : zypp::ui::S_NoInst;
+
+ impl->zyppSel->set_status (status);
+ ypp->impl->packageModified (this);
+}
+
+static Ypp::Package::Version *constructVersion (ZyppObject object)
+{
+ Ypp::Package::Version *version = new Ypp::Package::Version();
+ version->number = object->edition().version();
+ version->repo = ypp->impl->getRepository (object->repository().info().alias());
+ version->cmp = 0;
+ version->impl = (void *) get_pointer (object);
+ return version;
+}
+
+const Ypp::Package::Version *Ypp::Package::getInstalledVersion()
+{
+ if (!impl->installedVersion) {
+ const ZyppObject installedObj = impl->zyppSel->installedObj();
+ if (installedObj)
+ impl->installedVersion = constructVersion (installedObj);
+ }
+ return impl->installedVersion;
+}
+
+const Ypp::Package::Version *Ypp::Package::getAvailableVersion (int nb)
+{
+ if (!impl->availableVersions) {
+ const ZyppObject installedObj = impl->zyppSel->installedObj();
+ for (zypp::ui::Selectable::available_iterator it = impl->zyppSel->availableBegin();
+ it != impl->zyppSel->availableEnd(); it++) {
+ Version *version = constructVersion (*it);
+ if (installedObj)
+ version->cmp = zypp::Edition::compare ((*it)->edition(), installedObj->edition());
+ impl->availableVersions = g_slist_append (impl->availableVersions, version);
+ }
+ struct inner {
+ static gint version_compare (gconstpointer pa, gconstpointer pb)
+ {
+ ZyppObjectPtr a = (ZyppObjectPtr) ((Version *) pa)->impl;
+ ZyppObjectPtr b = (ZyppObjectPtr) ((Version *) pb)->impl;
+ // swapped arguments, as we want them sorted from newer to older
+ return zypp::Edition::compare (b->edition(), a->edition());
+ }
+ };
+ impl->availableVersions = g_slist_sort (impl->availableVersions,
+ inner::version_compare);
+ }
+ return (Version *) g_slist_nth_data (impl->availableVersions, nb);
+}
+
+bool Ypp::Package::isOnRepository (int repo_nb)
+{
+ int i;
+ for (i = 0; getAvailableVersion (i); i++)
+ if (getAvailableVersion (i)->repo == repo_nb)
+ return true;
+ // if there are no availables, answer yes to all repos
+ return i == 0;
+}
+
+//** Query
+
+struct Ypp::Query::Impl
+{
+ template <typename T>
+ struct Key
+ {
+ Key()
+ : defined (false)
+ {}
+ void define (T v)
+ {
+ defined = true;
+ value = v;
+ }
+ bool is (const T &v) const
+ {
+// if (!defined) return true;
+ return value == v;
+ }
+ bool defined;
+ T value;
+ };
+
+ Key <Ypp::Package::Type> type;
+ Key <std::list <std::string> > name;
+ Key <Ypp::Node *> category;
+ Key <bool> isInstalled;
+ Key <bool> hasUpgrade;
+ Key <bool> isModified;
+ Key <std::list <int> > onRepositories;
+
+ Impl()
+ {}
+
+ bool match (Package *package)
+ {
+ bool match = true;
+// we must avoid passing values by copy, as well as zypp calls
+ if (match && type.defined)
+ match = type.is (package->type());
+ if (match && isInstalled.defined)
+ match = isInstalled.is (package->isInstalled());
+ if (match && hasUpgrade.defined)
+ match = hasUpgrade.is (package->hasUpgrade());
+ if (match && isModified.defined)
+ match = isModified.is (package->isModified());
+ if (match && name.defined) {
+ const std::list <std::string> &names = name.value;
+ std::list <std::string>::const_iterator it;
+ for (it = names.begin(); it != names.end(); it++) {
+ if (!YGUtils::contains (package->name(), *it) &&
+ !YGUtils::contains (package->summary(), *it) &&
+ !YGUtils::contains (package->provides(), *it)) {
+ match = false;
+ break;
+ }
+ }
+ }
+ if (match && category.defined) {
+ Ypp::Node *query_category = category.value;
+ Ypp::Node *pkg_category = package->category();
+ GNode *node = (GNode *) query_category->impl;
+ if (!g_node_find (node, G_PRE_ORDER, G_TRAVERSE_ALL, pkg_category))
+ match = false;
+ }
+ if (match && onRepositories.defined) {
+ const std::list <int> &repos = onRepositories.value;
+ std::list <int>::const_iterator it;
+ for (it = repos.begin(); it != repos.end(); it++)
+ if (package->isOnRepository (*it))
+ break;
+ match = it != repos.end();
+ }
+ return match;
+ }
+};
+
+Ypp::Query::Query (Ypp::Package::Type type)
+{
+ impl = new Impl();
+ impl->type.define (type);
+}
+Ypp::Query::~Query()
+{ delete impl; }
+
+void Ypp::Query::setName (std::string value)
+{ impl->name.define (YGUtils::splitString (value, ' ')); }
+void Ypp::Query::setCategory (Ypp::Node *value)
+{ impl->category.define (value); }
+void Ypp::Query::setIsInstalled (bool value)
+{ impl->isInstalled.define (value); }
+void Ypp::Query::setHasUpgrade (bool value)
+{ impl->hasUpgrade.define (value); }
+void Ypp::Query::setIsModified (bool value)
+{ impl->isModified.define (value); }
+void Ypp::Query::setRepositories (std::list <int> value)
+{ impl->onRepositories.define (value); }
+
+//** Pool
+
+struct Ypp::Pool::Impl
+{
+Query *query;
+GSList *packages;
+Pool::Listener *listener;
+
+ Impl (Query *query)
+ : query (query), listener (NULL)
+ {
+ packages = buildPool (query);
+fprintf (stderr, "created pool, adding to Ypp\n");
+ ypp->impl->addPool (this);
+ }
+
+ ~Impl()
+ {
+fprintf (stderr, "destroyed pool, removing from Ypp\n");
+ ypp->impl->removePool (this);
+ delete query;
+ g_slist_free (packages);
+ }
+
+ void packageModified (Package *package)
+ {
+ bool match = query->impl->match (package);
+ int cmp = 1;
+ GSList *i;
+ for (i = packages; i; i = i->next) {
+ Package *pkg = (Package *) i->data;
+ if (pkg->impl->index == package->impl->index)
+ cmp = 0;
+ if (pkg->impl->index >= package->impl->index)
+ break;
+ }
+ if (cmp == 0) {
+ if (match) { // modified
+fprintf (stderr, "pool (%d) - touched: %s\n", g_slist_length (packages), package->name().c_str());
+ if (listener)
+ listener->entryChanged ((Iter) i, package);
+ }
+ else { // removed
+fprintf (stderr, "pool (%d) - remove: %s\n", g_slist_length (packages), package->name().c_str());
+ if (listener)
+ listener->entryDeleted ((Iter) i, package);
+ packages = g_slist_delete_link (packages, i);
+ }
+ }
+ else {
+ if (match) { // inserted
+fprintf (stderr, "pool (%d) - insert: %s\n", g_slist_length (packages), package->name().c_str());
+ if (i == NULL) {
+ packages = g_slist_append (packages, (gpointer) package);
+ i = g_slist_last (packages);
+ }
+ else {
+ packages = g_slist_insert_before (packages, i, (gpointer) package);
+ int index = g_slist_position (packages, i) - 1;
+ i = g_slist_nth (packages, index);
+ }
+ if (listener)
+ listener->entryInserted ((Iter) i, package);
+ }
+ }
+ }
+
+private:
+ static GSList *buildPool (Query *query) // at construction
+ {
+long time1 = time(NULL);
+fprintf (stderr, "build pool...\n");
+ GSList *pool = NULL;
+ GSList *entire_pool = ypp->impl->getPackages (query->impl->type.value);
+ int index = 0;
+ for (GSList *i = entire_pool; i; i = i->next) {
+ Package *pkg = (Package *) i->data;
+ if (query->impl->match (pkg))
+ pool = g_slist_append (pool, i->data);
+ if (pkg->impl->index == -1)
+ pkg->impl->index = index++;
+ }
+fprintf (stderr, "delta time: %ld\n", time(NULL)-time1);
+ return pool;
+ }
+};
+
+Ypp::Pool::Pool (Query *query)
+{ impl = new Impl (query); }
+Ypp::Pool::~Pool()
+{ delete impl; }
+
+Ypp::Pool::Iter Ypp::Pool::getFirst()
+{ return impl->packages; }
+
+Ypp::Pool::Iter Ypp::Pool::getNext (Ypp::Pool::Iter iter)
+{ return ((GSList *) iter)->next; }
+
+Ypp::Package *Ypp::Pool::get (Ypp::Pool::Iter iter)
+{ return (Ypp::Package *) ((GSList *) iter)->data; }
+
+int Ypp::Pool::getIndex (Ypp::Pool::Iter iter)
+{ return g_slist_position (impl->packages, (GSList *) iter); }
+
+Ypp::Pool::Iter Ypp::Pool::getIter (int index)
+{ return g_slist_nth (impl->packages, index); }
+
+void Ypp::Pool::setListener (Ypp::Pool::Listener *listener)
+{ impl->listener = listener; }
+
+//** Misc
+
+struct Ypp::Disk::Impl
+{
+Ypp::Disk::Listener *listener;
+GSList *partitions;
+
+ Impl()
+ : partitions (NULL)
+ {
+ if (zypp::getZYpp()->diskUsage().empty())
+ zypp::getZYpp()->setPartitions (
+ zypp::DiskUsageCounter::detectMountPoints());
+ }
+
+ ~Impl()
+ {
+ clearPartitions();
+ }
+
+ void packageModified (Package *package)
+ {
+ clearPartitions();
+ if (listener)
+ listener->update();
+ }
+
+ void clearPartitions()
+ {
+ for (GSList *i = partitions; i; i = i->next)
+ delete ((Partition *) i->data);
+ g_slist_free (partitions);
+ partitions = NULL;
+ }
+
+ const Partition *getPartition (int nb)
+ {
+ if (!partitions) {
+ typedef zypp::DiskUsageCounter::MountPoint ZyppDu;
+ typedef zypp::DiskUsageCounter::MountPointSet ZyppDuSet;
+ typedef zypp::DiskUsageCounter::MountPointSet::iterator ZyppDuSetIterator;
+
+ ZyppDuSet diskUsage = zypp::getZYpp()->diskUsage();
+ for (ZyppDuSetIterator it = diskUsage.begin(); it != diskUsage.end(); it++) {
+ if (!it->readonly) {
+ // partition fields: dir, used_size, total_size (size on Kb)
+ Ypp::Disk::Partition *partition = new Partition();
+ partition->path = it->dir;
+ partition->used = it->pkg_size;
+ partition->total = it->total_size;
+ partition->used_str =
+ zypp::ByteCount (partition->used, zypp::ByteCount::K).asString();
+ partition->total_str =
+ zypp::ByteCount (partition->total, zypp::ByteCount::K).asString();
+ partitions = g_slist_append (partitions, (gpointer) partition);
+ }
+ }
+ }
+ return (Partition *) g_slist_nth_data (partitions, nb);
+ }
+};
+
+Ypp::Disk::Disk()
+{ impl = new Impl(); }
+Ypp::Disk::~Disk()
+{ delete impl; }
+
+void Ypp::Disk::setListener (Ypp::Disk::Listener *listener)
+{ impl->listener = listener; }
+
+const Ypp::Disk::Partition *Ypp::Disk::getPartition (int nb)
+{ return impl->getPartition (nb); }
+
+Ypp::Node *Ypp::getFirstCategory (Ypp::Package::Type type)
+{
+ return impl->categories[type]->getFirst();
+}
+
+Ypp::Node *Ypp::Node::next()
+{
+ GNode *ret = ((GNode *) impl)->next;
+ if (ret) return (Ypp::Node *) ret->data;
+ return NULL;
+}
+
+Ypp::Node *Ypp::Node::child()
+{
+ GNode *ret = ((GNode *) impl)->children;
+ if (ret) return (Ypp::Node *) ret->data;
+ return NULL;
+}
+
+struct CatConversor {
+ const char *from, *to;
+};
+static const CatConversor catConversor[] = {
+ { "Amusements/Games/3D", "Games/Action" },
+ { "Amusements/Games/Board/Puzzle", "Games/Logic" },
+ { "Amusements/Games/Board/Card", "Games/Card" },
+ { "Amusements/Games", "Games" },
+ { "Amusements", "Games" },
+ { "Applications/Publishing", "Office" },
+ { "Applications/Internet", "Network" },
+ { "Applications", "" },
+ { "Development/C", "Development/Libraries/C and C++" },
+ { "Development/Python", "Development/Libraries/Python" },
+ { "Development/Libraries/C", "Development/Libraries/C and C++" },
+ { "Libraries", "Development/Libraries" },
+ { "Productivity/Multimedia/Player", "Multimedia/Sound/Players" },
+ { "Productivity/Multimedia/Audio", "Multimedia/Sound/Players" },
+ { "Video", "Multimedia/Video" },
+ { "Productivity/Multimedia", "Multimedia" },
+ { "Productivity/Graphics", "Multimedia/Graphics" },
+ { "Productivity/Networking", "Network" },
+ { "Productivity/Network", "Network" },
+ { "Productivity/Office", "Office" },
+ { "Productivity/Publishing", "Office/Publishing" },
+ { "Productivity/Telephony", "Network/Telephony" },
+ { "Productivity", "Utilities" },
+ { "System/Emulators", "Emulators" },
+ { "System/GUI", "Utilities/GUI" },
+ { "System/Video", "Emulators" },
+ { "System/Libraries", "Development/Libraries/C and C++/System" },
+ { "X11/Applications/Multimedia", "Multimedia" },
+ { "X11/GNOME/Multimedia", "Multimedia" },
+ { "X11/Applications", "Utilities/GUI" },
+};
+#define CAT_CONVERSOR_SIZE (sizeof (catConversor)/sizeof (CatConversor))
+struct TypoConversor {
+ const char *from, *to, len;
+};
+static const TypoConversor catTypos[] = {
+ { "Others", "Other", 6 }, { "Utilites", "Utilities", 8 },
+ { "AOLInstantMessenge", "AOLInstantMessenger", 18 },
+ { "Library", "Libraries", 7 }, { "Libs", "Libraries", 4 },
+};
+#define CAT_TYPOS_SIZE (sizeof (catTypos)/sizeof (TypoConversor))
+
+Ypp::Node *Ypp::Impl::addCategory (Ypp::Package::Type type,
+ const std::string &category_str, Package *pkg)
+{
+ struct inner {
+ static int cmp (const char *a, const char *b)
+ {
+ // Other group should always go as last
+ if (!strcmp (a, "Other"))
+ return !strcmp (b, "Other") ? 0 : 1;
+ if (!strcmp (b, "Other"))
+ return -1;
+ return YGUtils::strcmp (a, b);
+ }
+
+ // Package categories guide-line don't seem to be enforced, some categories
+ // are duplicated, or don't make much sense. Let's try to cut on that.
+
+ static std::string treatCategory (const std::string &category, Package *pkg)
+ {
+ std::string ret (category);
+
+ // typos (end group only)
+ for (unsigned int c = 0; c < CAT_TYPOS_SIZE; c++) {
+ const char *from = catTypos[c].from, from_len = catTypos[c].len;
+ int ret_index = ret.length() - from_len;
+
+ if (ret_index >= 0 && ret.compare (ret_index, from_len, from, from_len) == 0) {
+ const char *to = catTypos[c].to;
+ ret.erase (ret_index);
+ ret.append (to);
+ break;
+ }
+ }
+
+ for (unsigned int c = 0; c < CAT_CONVERSOR_SIZE; c++) {
+ const char *from = catConversor[c].from;
+ unsigned int i;
+ for (i = 0; from[i] && i < ret.length(); i++)
+ if (from[i] != ret[i])
+ break;
+ if (!from[i] && (i == ret.length() || ret[i] == '/')) {
+ const char *to = catConversor[c].to;
+ ret.erase (0, i);
+ ret.insert (0, to);
+ if (c == 0 && pkg)
+ pkg->impl->is3D = true;
+ break;
+ }
+ }
+ return ret;
+ }
+ };
+
+ if (!categories[type])
+ categories[type] = new StringTree (inner::cmp, '/');
+ if (type == Package::PACKAGE_TYPE)
+ return categories[type]->add (inner::treatCategory (category_str, pkg));
+ else
+ return categories[type]->add (category_str);
+}
+
+void Ypp::Impl::polishCategories (Ypp::Package::Type type)
+{
+ // some treatment on categories
+ // Put all packages under a node (as opposite to packages on a leaf) to
+ // the Other category.
+ if (type == Package::PACKAGE_TYPE) {
+ GSList *pool = ypp->impl->getPackages (type);
+ for (GSList *i = pool; i; i = i->next) {
+ Package *pkg = (Package *) i->data;
+ Ypp::Node *ynode = pkg->category();
+ if (ynode->child()) {
+ GNode *node = (GNode *) ynode->impl;
+ GNode *last = g_node_last_child (node);
+ if (((Ypp::Node *) last->data)->name == "Other")
+ pkg->impl->category = (Ypp::Node *) last->data;
+ else {
+ // must create a "Other" node
+ fprintf (stderr, "creating Other\n");
+ Ypp::Node *yN = new Ypp::Node();
+ GNode *n = g_node_new ((void *) yN);
+ yN->name = "Other";
+ yN->impl = (void *) n;
+ g_node_insert_before (node, NULL, n);
+ pkg->impl->category = yN;
+ }
+ }
+ }
+ }
+}
+
+//** Ypp top methods & internal connections
+
+Ypp::Impl::Impl()
+: repos (NULL), disk (NULL), interface (NULL), pools (NULL),
+ inTransaction (false), transactions (NULL)
+{
+ for (int i = 0; i < Package::TOTAL_TYPES; i++) {
+ packages[i] = NULL;
+ categories[i] = NULL;
+ }
+}
+
+Ypp::Impl::~Impl()
+{
+ struct inner {
+ static void free_package (void *data, void *_data)
+ { delete ((Package *) data); }
+ static void free_repo (void *data, void *_data)
+ { delete ((Repository *) data); }
+ };
+
+ for (int t = 0; t < Package::TOTAL_TYPES; t++) {
+ g_slist_foreach (packages[t], inner::free_package, NULL);
+ g_slist_free (packages[t]);
+ delete categories[t];
+ }
+
+ g_slist_foreach (repos, inner::free_repo, NULL);
+ g_slist_free (repos);
+
+ // don't delete pools as they don't actually belong to Ypp, just listeners
+ g_slist_free (pools);
+ delete disk;
+}
+
+const Ypp::Repository *Ypp::Impl::getRepository (int nb)
+{
+ if (!repos) {
+ zypp::RepoManager manager;
+ std::list <zypp::RepoInfo> zrepos = manager.knownRepositories();
+ for (std::list <zypp::RepoInfo>::const_iterator it = zrepos.begin();
+ it != zrepos.end(); it++) {
+ if (it->enabled()) {
+ Repository *repo = new Repository();
+ repo->name = it->name();
+ repo->alias = it->alias();
+ repos = g_slist_append (repos, repo);
+ }
+ }
+ }
+ return (Repository *) g_slist_nth_data (repos, nb);
+}
+
+int Ypp::Impl::getRepository (const std::string &alias)
+{
+ for (int i = 0; getRepository (i); i++)
+ if (getRepository (i)->alias == alias)
+ return i;
+ return -1; /*error*/
+}
+
+Ypp::Disk *Ypp::Impl::getDisk()
+{
+ if (!disk)
+ disk = new Disk();
+ return disk;
+}
+
+bool Ypp::Impl::acceptLicense (Ypp::Package *package, const std::string &license)
+{
+ if (interface)
+ interface->acceptLicense (package, license);
+ return false;
+}
+
+Ypp::Problem::Solution *Ypp::Problem::getSolution (int nb)
+{
+ return (Ypp::Problem::Solution *) g_slist_nth_data ((GSList *) impl, nb);
+}
+
+bool Ypp::Impl::resolveProblems()
+{
+ zypp::Resolver_Ptr zResolver = zypp::getZYpp()->resolver();
+ bool resolved = false;
+ while (true) {
+ if (zResolver->resolvePool()) {
+ resolved = true;
+ break;
+ }
+ zypp::ResolverProblemList zProblems = zResolver->problems();
+ if ((resolved = zProblems.empty()))
+ break;
+
+ if (!interface)
+ break;
+
+ std::list <Problem *> problems;
+ for (zypp::ResolverProblemList::iterator it = zProblems.begin();
+ it != zProblems.end(); it++) {
+ Problem *problem = new Problem();
+ problem->description = (*it)->description();
+ problem->details = (*it)->details();
+ GSList *solutions = NULL;
+ zypp::ProblemSolutionList zSolutions = (*it)->solutions();
+ for (zypp::ProblemSolutionList::iterator jt = zSolutions.begin();
+ jt != zSolutions.end(); jt++) {
+ Problem::Solution *solution = new Problem::Solution();
+ solution->description = (*jt)->description();
+ solution->details = (*jt)->details();
+ solution->apply = false;
+ solution->impl = (void *) get_pointer (*jt);
+ solutions = g_slist_append (solutions, solution);
+ }
+ problem->impl = (void *) solutions;
+ problems.push_back (problem);
+ }
+
+ resolved = interface->resolveProblems (problems);
+
+ zypp::ProblemSolutionList choices;
+ for (std::list <Problem *>::iterator it = problems.begin();
+ it != problems.end(); it++) {
+ for (int i = 0; (*it)->getSolution (i); i++) {
+ Problem::Solution *solution = (*it)->getSolution (i);
+ if (resolved && solution->apply)
+ choices.push_back ((zypp::ProblemSolution *) solution->impl);
+ delete solution;
+ }
+ delete *it;
+ }
+
+ if (resolved)
+ zResolver->applySolutions (choices);
+ else
+ break;
+ }
+
+ if (!resolved)
+ zResolver->undo();
+ return resolved;
+}
+
+void Ypp::Impl::packageModified (Ypp::Package *package)
+{
+ // notify listeners of package change
+ for (GSList *i = pools; i; i = i->next) {
+fprintf (stderr, "ypp: informing pool of package modified\n");
+ ((Pool::Impl *) i->data)->packageModified (package);
+ }
+ if (disk)
+ disk->impl->packageModified (package);
+ if (interface)
+ interface->packageModified (package);
+
+ transactions = g_slist_append (transactions, package);
+ if (!inTransaction)
+ finishTransactions();
+}
+
+void Ypp::Impl::startTransactions()
+{
+ inTransaction = true;
+}
+
+void Ypp::Impl::finishTransactions()
+{
+ inTransaction = true;
+ bool resolved = resolveProblems();
+ if (resolved) {
+ // resolver won't tell us what changed -- tell pools about Auto packages
+ for (GSList *p = packages [Ypp::Package::PACKAGE_TYPE]; p; p = p->next) {
+ Ypp::Package *pkg = (Ypp::Package *) p->data;
+ if (pkg->impl->isModified()) {
+ for (GSList *i = pools; i; i = i->next)
+ ((Pool::Impl *) i->data)->packageModified (pkg);
+ pkg->impl->setUnmodified();
+ }
+ }
+ }
+ else {
+ // user canceled resolver -- undo all
+ for (GSList *i = transactions; i; i = i->next)
+ ((Ypp::Package *) i->data)->undo();
+ }
+ g_slist_free (transactions);
+ transactions = NULL;
+ inTransaction = false;
+}
+
+void Ypp::Impl::addPool (Pool::Impl *pool)
+{ fprintf (stderr, "ypp: adding pool\n"); pools = g_slist_append (pools, pool); }
+void Ypp::Impl::removePool (Pool::Impl *pool)
+{ fprintf (stderr, "ypp: removing pool\n"); pools = g_slist_remove (pools, pool); }
+
+#if 0
+// using auxiliary GSequence tree -- not yet shiped by Glib :X
+// in any case, a sort merge is very fast, as packages are more or less
+// sorted anyway...
+GSList *Ypp::Impl::getPackages (Ypp::Package::Type type)
+{
+ if (!packages[type]) {
+ // auxiliary for efficient alphabetic sorting
+ GSequence *pool = g_sequence_new (NULL);
+ struct inner {
+ static gint compare (gconstpointer _a, gconstpointer _b, gpointer _data)
+ {
+ Package *a = (Package *) _a;
+ Package *b = (Package *) _b;
+ return YGUtils::strcmp (a->name().c_str(), b->name().c_str());
+ }
+/* static void pool_foreach (gpointer data, gpointer _list)
+ {
+ GSList **list = (GSList **) _list;
+ *list = g_slist_append (*list, data);
+ }*/
+ };
+
+ ZyppPool::const_iterator it, end;
+ switch (type)
+ {
+ case Package::PACKAGE_TYPE:
+ it = zyppPool().byKindBegin <zypp::Package>();
+ end = zyppPool().byKindEnd <zypp::Package>();
+ break;
+ case Package::PATTERN_TYPE:
+ it = zyppPool().byKindBegin <zypp::Pattern>();
+ end = zyppPool().byKindEnd <zypp::Pattern>();
+ break;
+ case Package::LANGUAGE_TYPE:
+ it = zyppPool().byKindBegin <zypp::Language>();
+ end = zyppPool().byKindEnd <zypp::Language>();
+ break;
+ default:
+ break;
+ }
+ for (; it != end; it++)
+ {
+ Package *package = new Package (new Package::Impl (*it));
+ g_sequence_insert_sorted (pool, package, inner::compare, NULL);
+ }
+
+ // add stuff to the actual pool now
+ int index = 0;
+ for (GSequenceIter *it = g_sequence_get_begin_iter (pool);
+ !g_sequence_iter_is_end (it); it = g_sequence_iter_next (it)) {
+ gpointer data = g_sequence_get (it);
+ Package *pkg = (Package *) data;
+ pkg->impl->index = index++;
+ pkg->impl->type = type;
+ packages[type] = g_slist_append (packages[type], data);
+ }
+
+// g_sequence_foreach (pool, inner::pool_foreach, &);
+ g_sequence_free (pool);
+ }
+ return packages[type];
+}
+#else
+GSList *Ypp::Impl::getPackages (Ypp::Package::Type type)
+{
+ if (!packages[type]) {
+long time1 = time(NULL);
+fprintf (stderr, "creating pool of %d...\n", type);
+ GSList *pool = NULL;
+ struct inner {
+ static gint compare (gconstpointer _a, gconstpointer _b)
+ {
+ Package *a = (Package *) _a;
+ Package *b = (Package *) _b;
+ return YGUtils::strcmp (a->name().c_str(), b->name().c_str());
+ }
+ };
+
+ ZyppPool::const_iterator it, end;
+ switch (type) {
+ case Package::PACKAGE_TYPE:
+ it = zyppPool().byKindBegin <zypp::Package>();
+ end = zyppPool().byKindEnd <zypp::Package>();
+ break;
+ case Package::PATTERN_TYPE:
+ it = zyppPool().byKindBegin <zypp::Pattern>();
+ end = zyppPool().byKindEnd <zypp::Pattern>();
+ break;
+ case Package::LANGUAGE_TYPE:
+ it = zyppPool().byKindBegin <zypp::Language>();
+ end = zyppPool().byKindEnd <zypp::Language>();
+ break;
+ default:
+ break;
+ }
+ for (; it != end; it++) {
+ Package *package = new Package (new Package::Impl (*it));
+ Ypp::Node *category = 0;
+ if (type == Package::PACKAGE_TYPE) {
+ ZyppObject object = (*it)->theObj();
+ ZyppPackage zpackage = tryCastToZyppPkg (object);
+ if (!zpackage)
+ continue;
+ category = addCategory (type, zpackage->group(), package);
+ }
+ else if (type == Package::PATTERN_TYPE) {
+ ZyppObject object = (*it)->theObj();
+ ZyppPattern pattern = tryCastToZyppPattern (object);
+ if (!pattern || !pattern->userVisible())
+ continue;
+ category = addCategory (type, pattern->category(), 0);
+ }
+
+ package->impl->type = type;
+ package->impl->category = category;
+ pool = g_slist_prepend (pool, package);
+ }
+ // its faster to prepend then reverse, as we avoid iterating for each append
+ // lets reverse before sorting, as they are somewhat sorted already
+ pool = g_slist_reverse (pool);
+ // a sort merge. Don't use g_slist_insert_sorted() -- its linear
+ pool = g_slist_sort (pool, inner::compare);
+ packages[type] = pool;
+
+ polishCategories (type);
+fprintf (stderr, "delta time: %ld\n", time(NULL)-time1);
+ }
+ return packages[type];
+}
+#endif
+
+Ypp::Ypp()
+{
+ impl = new Impl();
+
+ zyppPool().saveState<zypp::Package >();
+ zyppPool().saveState<zypp::Pattern >();
+ zyppPool().saveState<zypp::Selection>();
+ zyppPool().saveState<zypp::Language >();
+ zyppPool().saveState<zypp::Patch >();
+}
+
+Ypp::~Ypp()
+{
+ delete impl;
+}
+
+const Ypp::Repository *Ypp::getRepository (int nb)
+{ return impl->getRepository (nb); }
+
+Ypp::Disk *Ypp::getDisk()
+{ return impl->getDisk(); }
+
+void Ypp::setInterface (Ypp::Interface *interface)
+{ impl->interface = interface; }
+
+bool Ypp::isModified()
+{
+ return zyppPool().diffState<zypp::Package >() ||
+ zyppPool().diffState<zypp::Pattern >() ||
+ zyppPool().diffState<zypp::Selection>() ||
+ zyppPool().diffState<zypp::Language >() ||
+ zyppPool().diffState<zypp::Patch >();
+}
+
+void Ypp::startTransactions()
+{ impl->startTransactions(); }
+
+void Ypp::finishTransactions()
+{ impl->finishTransactions(); }
+
Added: trunk/gtk/unstable-libyui/src/yzyppwrapper.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/src/yzyppwra…
==============================================================================
--- trunk/gtk/unstable-libyui/src/yzyppwrapper.h (added)
+++ trunk/gtk/unstable-libyui/src/yzyppwrapper.h Wed Dec 5 14:14:01 2007
@@ -0,0 +1,196 @@
+/********************************************************************
+ * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
+ ********************************************************************/
+
+/* A simplification of libzypp's API.
+
+ To get a list of packages, setup a Query object and create a Pool with
+ it. Package has a set of manipulation methods, the results of which are
+ then reported to Pool listeners, which you can choose to act on your
+ interface, if you want them reflected on the viewer.
+ Iterate the pool using Pool::Iter. Don't keep it around though, instead use
+ getIndex() and getIter(index).
+
+ You must register an object that implements Interface, as some transactions
+ are bound by user decisions. Ypp is a singleton; first call to get() will
+ initialize it; you should call finish() when you're done to de-allocate
+ caches.
+ The only thing you should free is Pool objects. A Query will be freed by
+ the Pool object you pass it to.
+*/
+
+#ifndef ZYPP_WRAPPER_H
+#define ZYPP_WRAPPER_H
+
+#include <string>
+#include <list>
+
+struct Ypp
+{
+ // Utilities
+ struct Node {
+ std::string name;
+ Node *next();
+ Node *child();
+ void *impl;
+ };
+
+ // Entries
+ struct Package {
+ enum Type {
+ PACKAGE_TYPE, PATTERN_TYPE, LANGUAGE_TYPE, TOTAL_TYPES
+ };
+
+ Type type();
+ const std::string &name();
+ const std::string &summary();
+ Node *category();
+ bool is3D();
+
+ std::string description();
+ std::string filelist();
+ std::string changelog();
+ std::string authors();
+
+ std::string provides();
+ std::string requires();
+
+ bool isInstalled();
+ bool hasUpgrade();
+ bool isLocked();
+
+ bool toInstall (int *nb = 0);
+ bool toRemove();
+ bool isModified();
+ bool isAuto(); /* installing/removing cause of dependency */
+
+ void install (int nb); /* if installed, will replace it by that version */
+ void remove();
+ void undo();
+ void lock (bool lock);
+
+ struct Version {
+ std::string number;
+ int repo, cmp /*relatively to installed*/;
+ void *impl;
+ };
+ const Version *getInstalledVersion();
+ const Version *getAvailableVersion (int nb);
+
+ // convinience -- true if any available is from the given repo
+ bool isOnRepository (int repo);
+
+ struct Impl;
+ Impl *impl;
+ Package (Impl *impl);
+ ~Package();
+ };
+
+ // when installing/removing/... a few packages at a time, you should use this methods,
+ // so that problem resolver gets only kicked after they are all queued
+ void startTransactions();
+ void finishTransactions();
+
+ // Query
+ struct Query {
+ Query (Package::Type type);
+ void setName (std::string name);
+ void setCategory (Ypp::Node *category);
+ void setIsInstalled (bool installed);
+ void setHasUpgrade (bool upgradable);
+ void setIsModified (bool modified);
+ void setRepositories (std::list <int> repositories);
+
+ ~Query();
+ struct Impl;
+ Impl *impl;
+ };
+
+ // Pool
+ struct Pool {
+ Pool (Query *query);
+
+ typedef void * Iter;
+ Iter getFirst();
+ Iter getNext (Iter it);
+ Package *get (Iter it);
+ int getIndex (Iter it);
+ Iter getIter (int index);
+
+ struct Listener {
+ virtual void entryChanged (Iter iter, Package *package) = 0;
+ virtual void entryInserted (Iter iter, Package *package) = 0;
+ virtual void entryDeleted (Iter iter, Package *package) = 0;
+ };
+ void setListener (Listener *listener);
+
+ ~Pool();
+ struct Impl;
+ Impl *impl;
+ };
+
+ // Resolver
+ struct Problem {
+ std::string description, details;
+ struct Solution {
+ std::string description, details;
+ bool apply;
+ void *impl;
+ };
+ Solution *getSolution (int nb);
+ void *impl;
+ };
+
+ // Module
+ static Ypp *get();
+ static void finish();
+
+ struct Interface {
+ virtual bool acceptLicense (Package *package, const std::string &license) = 0;
+ // resolveProblems = false to cancel the action that had that effect
+ virtual bool resolveProblems (std::list <Problem *> problems) = 0;
+
+ // FIXME: this is mostly a hack; the thing is that GtkTreeSelection doesn't
+ // signal when a selected row changes values. Anyway, to be done differently.
+ virtual void packageModified (Package *package) = 0;
+ };
+ void setInterface (Interface *interface);
+
+ bool isModified(); // any change made?
+
+ // Misc
+ struct Repository {
+ std::string name, alias /*internal use*/;
+ };
+ const Repository *getRepository (int nb);
+
+ Node *getFirstCategory (Package::Type type);
+
+ struct Disk
+ {
+ struct Partition {
+ std::string path, used_str, total_str;
+ long long used, total;
+ };
+ const Partition *getPartition (int nb);
+
+ struct Listener {
+ virtual void update() = 0;
+ };
+ void setListener (Listener *listener);
+
+ Disk();
+ ~Disk();
+ struct Impl;
+ Impl *impl;
+ };
+ Disk *getDisk();
+
+ Ypp();
+ ~Ypp();
+ struct Impl;
+ Impl *impl;
+};
+
+#endif /*ZYPP_WRAPPER_H*/
+
Added: trunk/gtk/unstable-libyui/stamp-h1
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/stamp-h1?rev…
==============================================================================
--- trunk/gtk/unstable-libyui/stamp-h1 (added)
+++ trunk/gtk/unstable-libyui/stamp-h1 Wed Dec 5 14:14:01 2007
@@ -0,0 +1 @@
+timestamp for config.h
Added: trunk/gtk/unstable-libyui/test.sh
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/test.sh?rev=…
==============================================================================
--- trunk/gtk/unstable-libyui/test.sh (added)
+++ trunk/gtk/unstable-libyui/test.sh Wed Dec 5 14:14:01 2007
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+echo "Hackish script to run a ton of yast2-gtk test that we know"
+echo "should work and layout fairly nicely."
+
+if test "z$1" = "z"; then
+ tests="Label3 HelloWorld PushButton2 RichText1 Spacing1 Frame2"
+else
+ tests="$@"
+fi
+yast="/usr/lib/YaST2/bin/y2base"
+
+for test in $tests; do
+ $yast /usr/share/doc/packages/yast2-core/libyui/examples/$test.ycp gtk >& /dev/null &
+done
Added: trunk/gtk/unstable-libyui/tests/Beep.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Beep.y…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Beep.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Beep.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,19 @@
+// Test for UI::Beep()
+{
+ UI::OpenDialog (
+ `Label ("Doing some operations...")
+ );
+ sleep (4000);
+ UI::CloseDialog();
+
+ UI::OpenDialog (
+ `VBox (
+ `Label ("Done. Now prooceed to answer the next questions."),
+ `PushButton ("Ok")
+ )
+ );
+ UI::Beep();
+
+ UI::UserInput();
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Cursor.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Cursor…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Cursor.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Cursor.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,21 @@
+// Cursor test
+{
+ UI::OpenDialog (
+ `VBox (
+ `IntField (`id (`time), "Work for (secs):", 0, 10, 2),
+ `PushButton (`id (`work), "&Work!"),
+ `PushButton (`id (`cancel), "&Close")
+ )
+ );
+
+ any ret = nil;
+ repeat {
+ ret = UI::UserInput();
+
+ if (ret == `work)
+ sleep ((integer) UI::QueryWidget (`time, `Value) * 1000);
+
+ } until (ret == `cancel);
+
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/FileDialog.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/FileDi…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/FileDialog.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/FileDialog.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,62 @@
+// Tests for file dialog calls:
+// string UI::AskForExistingFile (startWith, filter, headline)
+// string UI::AskForSaveFileName (startWith, filter, headline)
+// string UI::AskForExistingDirectory (startWith, headline)
+
+{
+ define void show_selected (string selected)
+ {
+ UI::OpenDialog (
+ `VBox (
+ `HBox (
+ `Label ("You have selected:"),
+ `Label (`opt (`outputField), selected)
+ ),
+ `PushButton ("OK")
+ )
+ );
+ UI::UserInput();
+ UI::CloseDialog();
+ };
+
+ while (true) {
+ UI::OpenDialog (
+ `VBox (
+ `ComboBox (`id (`combo_action), "Action:",
+ [
+ `item (`id (`open_file), "Open File"),
+ `item (`id (`save_file), "Save File"),
+ `item (`id (`select_folder), "Select Folder")
+ ] ),
+ `TextEntry (`id (`entry_path), "Some path:"),
+ `TextEntry (`id (`entry_filter), "Filter:", "*"),
+ `HBox (
+ `PushButton (`id (`ok), "OK"),
+ `PushButton (`id (`cancel), "Cancel")
+ )
+ )
+ );
+ any ret = UI::UserInput();
+
+ if (ret == `cancel)
+ break;
+
+ string start_path = (string) UI::QueryWidget (`id (`entry_path), `Value);
+ string filter_str = (string) UI::QueryWidget (`id (`entry_filter), `Value);
+
+ string ret_path = nil;
+
+ any action = UI::QueryWidget (`id (`combo_action), `Value);
+ UI::CloseDialog();
+
+ if (action == `open_file)
+ ret_path = UI::AskForSaveFileName (start_path, filter_str, "Choose a File");
+ else if (action == `save_file)
+ ret_path = UI::AskForSaveFileName (start_path, filter_str, "Choose a File");
+ else if (action == `select_folder)
+ ret_path = UI::AskForSaveFileName (start_path, filter_str, "Choose a Folder");
+
+ if (ret_path != nil)
+ show_selected (ret_path);
+ }
+}
Added: trunk/gtk/unstable-libyui/tests/Frame.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Frame.…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Frame.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Frame.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,27 @@
+{
+UI::OpenDialog (
+ `VBox (
+ `Frame ("CPU &Speed",
+ `VBox (
+ `RadioButtonGroup(
+ `VBox (
+ `Left(`RadioButton("Normal")),
+ `Left(`RadioButton("Overclocked")),
+ `Left(`RadioButton("Red Hot")),
+ `Left(`RadioButton("Melting", true)),
+ `Left(`TextEntry ("Delay:", "20"))
+ )
+ ),
+ `Frame
+ ( "Exact speed",
+ `Slider ("CPU", 0, 100, 85)
+ )
+ )
+ ),
+ `PushButton("&OK")
+ )
+ );
+
+UI::UserInput();
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/IconButton.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/IconBu…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/IconButton.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/IconButton.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,20 @@
+// PushButton with icons (relative path)
+{
+ UI::OpenDialog (
+ `VBox (
+ `Heading( "YaST2 Mini Control Center" ),
+ `IconButton (`id ("keyboard "), "yast-keyboard.png", "Keyboard"),
+ `IconButton (`id ("mouse" ), "yast-mouse.png", "Mouse"),
+ `IconButton (`id ("timezone" ), "yast-timezone.png", "Time zone"),
+ `IconButton (`id ("lan" ), "yast-lan.png", "Network"),
+ `IconButton (`id ("sw_single"), "yast-software.png", "Software")
+ )
+ );
+
+ string tool = (string) UI::UserInput();
+ UI::CloseDialog();
+
+ UI::OpenDialog (`Label ("Running " + tool + "..."));
+ sleep (4000);
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/IconItems-ComboBox.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/IconIt…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/IconItems-ComboBox.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/IconItems-ComboBox.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,25 @@
+// ComboBox with icons
+{
+ UI::OpenDialog (
+ `VBox (
+ `Heading( "YaST2 Mini Control Center" ),
+ `ComboBox (`id (`mod), `opt (`editable), "Modules",
+ [ "Auto-Yast",
+ `item(`id ("keyboard" ), `icon( "yast-keyboard.png"), "Keyboard" ),
+ `item(`id ("mouse" ), `icon( "yast-mouse.png" ), "Mouse" ),
+ `item(`id ("timezone" ), `icon( "yast-timezone.png"), "Time zone"),
+ `item(`id ("lan" ), `icon( "yast-lan.png" ), "Network" ),
+ `item(`id ("sw_single"), `icon( "yast-software.png"), "Software" )
+ ] ),
+ `PushButton("&OK")
+ )
+ );
+
+ UI::UserInput();
+ string tool = (string) UI::QueryWidget (`id(`mod ), `Value);
+ UI::CloseDialog();
+
+ UI::OpenDialog (`Label ("Running " + tool + "..."));
+ sleep (4000);
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/IconItems-MultiSelectionBox.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/IconIt…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/IconItems-MultiSelectionBox.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/IconItems-MultiSelectionBox.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,31 @@
+// ComboBox with icons
+{
+ UI::OpenDialog (
+ `VBox (
+ `Heading( "YaST2 Mini Control Center" ),
+ `MultiSelectionBox (`id (`mod), "Modules",
+ [ "auto-yast",
+ `item(`id ("keyboard" ), `icon( "yast-keyboard.png"), "Keyboard", true ),
+ `item(`id ("mouse" ), `icon( "yast-mouse.png" ), "Mouse", true ),
+ `item(`id ("timezone" ), `icon( "yast-timezone.png"), "Time zone"),
+ `item(`id ("lan" ), `icon( "yast-lan.png" ), "Network" ),
+ `item(`id ("sw_single"), `icon( "yast-software.png"), "Software" )
+ ] ),
+ `PushButton("&OK")
+ )
+ );
+
+ UI::UserInput();
+ list mods = (list) UI::QueryWidget (`id(`mod ), `SelectedItems);
+ UI::CloseDialog();
+
+ string text = "Running ";
+ foreach (`it, mods,
+ ``{ text = sformat( "%1, %2", text, it); }
+ );
+ text = text + "...";
+
+ UI::OpenDialog (`Label (text));
+ sleep (4000);
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/IconItems-SelectionBox.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/IconIt…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/IconItems-SelectionBox.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/IconItems-SelectionBox.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,25 @@
+// ComboBox with icons
+{
+ UI::OpenDialog (
+ `VBox (
+ `Heading( "YaST2 Mini Control Center" ),
+ `SelectionBox (`id (`mod), "Modules",
+ [ "Auto-Yast",
+ `item(`id ("keyboard" ), `icon( "yast-keyboard.png"), "Keyboard" ),
+ `item(`id ("mouse" ), `icon( "yast-mouse.png" ), "Mouse" ),
+ `item(`id ("timezone" ), `icon( "yast-timezone.png"), "Time zone"),
+ `item(`id ("lan" ), `icon( "yast-lan.png" ), "Network" ),
+ `item(`id ("sw_single"), `icon( "yast-software.png"), "Software" )
+ ] ),
+ `PushButton("&OK")
+ )
+ );
+
+ UI::UserInput();
+ string mod = (string) UI::QueryWidget (`id(`mod ), `CurrentItem);
+ UI::CloseDialog();
+
+ UI::OpenDialog (`Label ("Running " + mod + "..."));
+ sleep (4000);
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Image.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Image.…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Image.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Image.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,68 @@
+// Image test
+string filename = "tests/image.gif";
+
+{
+ UI::OpenDialog (
+ `VBox (
+ `ReplacePoint (`id (`replace_image),
+ `ColoredLabel ("Choose an image type option!", `rgb (0, 0, 0),
+ `rgb (255, 0, 0), 5)
+ ),
+
+ `Frame ("Image type:",
+ `RadioButtonGroup (`id(`rb),
+ `VBox(
+ `Left (`RadioButton(`id (`static),`opt(`notify), "&Static")),
+ `Left (`RadioButton(`id (`animation), `opt(`notify), "&Animation"))
+ )
+ )
+ ),
+
+ `Frame ("Image effect:",
+ `RadioButtonGroup (`id(`rb),
+ `VBox(
+ `Left (`RadioButton(`id (`no_effect), `opt(`notify), "&None", true)),
+ `Left (`RadioButton(`id (`tiled_effect),`opt(`notify), "&Tiled")),
+ `Left (`RadioButton(`id (`scaled_effect), `opt(`notify), "&Scaled"))
+ )
+ )
+ ),
+ `Right (`Label ("Resize the window!")),
+ `PushButton(`id (`close), "&Close")
+ )
+ );
+
+ any ret = nil;
+ while (true)
+ {
+ ret = UI::UserInput();
+ if (ret == `close || ret == `cancel)
+ break;
+
+ any type_opt = nil;
+ if (!(boolean) UI::QueryWidget(`id(`static), `Value))
+ type_opt = `animated;
+
+ any effect_opt = nil;
+ if ((boolean) UI::QueryWidget(`id(`tiled_effect), `Value))
+ effect_opt = `tiled;
+ else if ((boolean) UI::QueryWidget(`id(`scaled_effect), `Value))
+ effect_opt = `scaleToFit;
+
+ // needed for tiling (scaling sets this automatically, anyway...)
+ any zerowidth = nil;
+ any zeroheight = nil;
+ if (effect_opt != nil) {
+ zerowidth = `zeroWidth;
+ zeroheight = `zeroHeight;
+ }
+
+ UI::ReplaceWidget (`replace_image,
+ `Image (`opt (type_opt, effect_opt, zerowidth, zeroheight),
+ filename, filename + " not found"));
+
+ }
+
+ UI::CloseDialog();
+}
+
Added: trunk/gtk/unstable-libyui/tests/ImageMng.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/ImageM…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/ImageMng.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/ImageMng.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,103 @@
+// Image test
+// TODO: make it getting the filename as an argument
+
+{
+ UI::OpenDialog (
+ `VBox (
+ `Heading ("Movie"),
+ `ReplacePoint (`id (`replace_image),
+ `ColoredLabel (`opt(`hstretch, `vstretch), "Pick an image!",
+ `rgb (0, 0, 0), `rgb (255, 0, 0), 5)
+ ),
+
+ `VSquash (`HBox (
+ `Top (`Frame ("Which MNG file:",
+ `RadioButtonGroup (`id(`rb),
+ `VBox(
+ `Left (`RadioButton(`id (`movie1), `opt(`notify), "&Movie1")),
+ `Left (`RadioButton(`id (`movie2), `opt(`notify), "&Movie2")),
+ `Left (`RadioButton(`id (`movie3), `opt(`notify), "&Movie3")),
+ `Left (`RadioButton(`id (`movie4), `opt(`notify), "&Movie4")),
+ `Left (`RadioButton(`id (`movie5), `opt(`notify), "&Movie5")),
+ `Left (`RadioButton(`id (`movie6), `opt(`notify), "&Movie6")),
+ `Left (`RadioButton(`id (`movie7), `opt(`notify), "&Movie7")),
+ `Left (`RadioButton(`id (`movie8), `opt(`notify), "&Movie8"))
+ )
+ )
+ )),
+
+ `Top (`VBox (
+ `Frame ("Image effect:",
+ `RadioButtonGroup (`id(`rb),
+ `VBox(
+ `Left (`RadioButton(`id (`no_effect), `opt(`notify), "&None", true)),
+ `Left (`RadioButton(`id (`tiled_effect),`opt(`notify), "&Tiled")),
+ `Left (`RadioButton(`id (`scaled_effect), `opt(`notify), "&Scaled"))
+ )
+ )
+ ),
+ `Left (`CheckBox(`id (`enabled), `opt(`notify), "&Enabled", true))
+ ))
+ )),
+
+ `Right (`Label ("Resize the window!")),
+ `PushButton(`id (`close), "&Close")
+ )
+ );
+
+ any ret = nil;
+ while (true)
+ {
+ ret = UI::UserInput();
+ if (ret == `close || ret == `cancel)
+ break;
+
+ any effect_opt = nil;
+ if ((boolean) UI::QueryWidget(`id(`tiled_effect), `Value))
+ effect_opt = `tiled;
+ else if ((boolean) UI::QueryWidget(`id(`scaled_effect), `Value))
+ effect_opt = `scaleToFit;
+
+ // needed for tiling (scaling sets this automatically, anyway...)
+ any zerowidth = nil;
+ any zeroheight = nil;
+ if (effect_opt != nil) {
+ zerowidth = `zeroWidth;
+ zeroheight = `zeroHeight;
+ }
+
+ string filename = "";
+ if ((boolean) UI::QueryWidget(`id(`movie1), `Value))
+ filename = "tests/movie1.mng";
+ else if ((boolean) UI::QueryWidget(`id(`movie2), `Value))
+ filename = "tests/movie2.mng";
+ else if ((boolean) UI::QueryWidget(`id(`movie3), `Value))
+ filename = "tests/movie3.mng";
+ else if ((boolean) UI::QueryWidget(`id(`movie4), `Value))
+ filename = "tests/movie4.mng";
+ else if ((boolean) UI::QueryWidget(`id(`movie5), `Value))
+ filename = "tests/movie5.mng";
+ else if ((boolean) UI::QueryWidget(`id(`movie6), `Value))
+ filename = "tests/movie6.mng";
+ else if ((boolean) UI::QueryWidget(`id(`movie7), `Value))
+ filename = "tests/movie7.mng";
+ else
+ filename = "tests/movie8.mng";
+
+ any enabled_opt = nil;
+ boolean check = (boolean) UI::QueryWidget(`enabled, `Value);
+ if (!check)
+ enabled_opt = `disabled;
+
+ // to test inline images, uncomment next line and pass it to `Image
+ //byteblock data = (byteblock) SCR::Read (.target.byte, filename);
+ term image = `Image (`id (`image),
+ `opt (`animated, effect_opt, enabled_opt, `hstretch, `vstretch),
+ filename, filename + " not found");
+
+ UI::ReplaceWidget (`replace_image, image);
+ }
+
+ UI::CloseDialog();
+}
+
Added: trunk/gtk/unstable-libyui/tests/Layout-Align-Weight.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-Align-Weight.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-Align-Weight.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,11 @@
+// alignment - weight test
+{
+UI::OpenDialog(
+ `HBox(
+ `Right (`HWeight (1, `PushButton ("Left"))),
+ `Left (`HWeight (1, `PushButton ("Right")))
+ )
+);
+UI::UserInput();
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Layout-AlignStretch.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-AlignStretch.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-AlignStretch.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,15 @@
+// alignment (test case for inst_productsources bug)
+{
+UI::OpenDialog(
+ `VBox(
+ `HBox(
+ `PushButton ("Fixed"),
+ `Bottom (`PushButton ("Test"))
+ ),
+ `VWeight( 1, `MultiLineEdit("Description", "bla bla") )
+ )
+);
+UI::UserInput();
+UI::CloseDialog();
+}
+
Added: trunk/gtk/unstable-libyui/tests/Layout-Expand.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-Expand.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-Expand.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,32 @@
+// Widgets expand and align
+{
+// stand-alone
+UI::OpenDialog(
+ `HBox(
+ `VBox (
+ `MultiLineEdit ("Multi Line Edit", "some text"),
+ `PushButton ("Yes")
+ ),
+ `PushButton ("No")
+ )
+ );
+UI::UserInput();
+
+// on wizard
+UI::OpenDialog(
+ `Wizard (`back, "&Back", `abort, "Ab&ort", `next, "&Next")
+ );
+
+UI::ReplaceWidget (`id (`contents),
+ `HBox(
+ `VBox (
+ `MultiLineEdit ("Multi Line Edit", "some text"),
+ `PushButton ("Yes")
+ ),
+ `PushButton ("No")
+ )
+ );
+
+UI::UserInput();
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Layout-Frame2.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-Frame2.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-Frame2.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,18 @@
+{
+ UI::OpenDialog( `VBox(
+ `Frame ( `opt (`vstretch), "CPU &Speed",
+ `RadioButtonGroup(
+ `VBox(
+ `Left(`RadioButton("Normal" )),
+ `Left(`RadioButton("Overclocked" )),
+ `Left(`RadioButton("Red Hot" )),
+ `Left(`RadioButton("Melting", true ))
+ )
+ )
+ ),
+ `PushButton("&OK")
+ )
+ );
+ UI::UserInput();
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Layout-HVCenter-Align.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-HVCenter-Align.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-HVCenter-Align.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,9 @@
+// HVCenter alignment test
+{
+UI::OpenDialog(
+ `HVCenter (`ColoredLabel(`opt (`hstretch, `vstretch), "Hello, World!", `rgb (200, 0, 0), `rgb (200, 200, 50), 20))
+);
+
+UI::UserInput();
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Layout-ReplacePoint.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-ReplacePoint.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-ReplacePoint.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,13 @@
+// replacement stretchable test
+{
+UI::OpenDialog(
+ `ReplacePoint (`id (`rp), `PushButton ("Push Me!"))
+);
+
+UI::UserInput();
+
+UI::ReplaceWidget (`rp, `MultiLineEdit ("", "I should be all stretched!"));
+
+UI::UserInput();
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Layout-Split-Split.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-Split-Split.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-Split-Split.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,21 @@
+// Split in a split behavior
+{
+UI::OpenDialog (`opt (`defaultsize), `HBox (`PushButton ("Okay")));
+UI::UserInput();
+
+UI::OpenDialog (`opt (`defaultsize), `HBox (`PushButton ("Okay"), `VBox (`PushButton ("Nay"), `PushButton ("Pay"))));
+UI::UserInput();
+
+UI::OpenDialog(`opt (`defaultsize), `Wizard (`back, "&Back", `abort, "Ab&ort", `next, "&Next"));
+UI::ReplaceWidget (`contents, `HBox (`VBox(`PushButton ("Okay")), `VBox (`PushButton ("Nay"), `PushButton ("Pay"))));
+UI::UserInput();
+
+UI::OpenDialog (`opt (`defaultsize), `VBox (`HBox (`VBox(`PushButton ("Okay")), `VBox (`PushButton ("Nay"), `PushButton ("Pay")))));
+UI::UserInput();
+
+UI::OpenDialog (`opt (`defaultsize), `VBox (`HBox(`PushButton ("Okay"))));
+UI::UserInput();
+
+UI::OpenDialog (`opt (`defaultsize), `HBox (`VBox(`PushButton ("Okay"))));
+UI::UserInput();
+}
Added: trunk/gtk/unstable-libyui/tests/Layout-Truncated-Widget.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-Truncated-Widget.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-Truncated-Widget.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,43 @@
+// Let's create and destroy something
+
+{
+
+list strings =
+ [ "What a long button I am :D", ":/" ];
+integer cur_string = 1;
+
+UI::OpenDialog
+ (
+ `VBox
+ (
+ `ReplacePoint(`id(`kill_replaceable), `PushButton( `id(`kill),
+ "I am a waste of space" )),
+ `PushButton( `id(`transform), select(strings, cur_string, nil) ),
+ `PushButton( `id(`quit), "Exit" )
+ )
+ );
+
+any button_id = nil;
+
+while (true)
+ {
+ button_id = UI::UserInput();
+
+ if (button_id == `quit)
+ break;
+
+ if (button_id == `transform)
+ {
+ cur_string = (cur_string + 1) % 2;
+ UI::ChangeWidget (`transform, `Label, select(strings, cur_string, nil));
+ }
+
+ if (button_id == `kill)
+ {
+ UI::ReplaceWidget (`kill_replaceable, `Empty());
+ }
+
+
+ }
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Layout-Wizard-BackgroundWidget.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-Wizard-BackgroundWidget.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-Wizard-BackgroundWidget.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,15 @@
+// Widget with background on wizard
+{
+UI::OpenDialog (`opt(`defaultsize),
+ `Wizard (`back, "&Back", `abort, "Ab&ort", `next, "&Next")
+ );
+
+ UI::ReplaceWidget (`contents,
+ `VBox (
+ `HVCenter (`BackgroundPixmap ("wallpapers/welcome.jpg"),
+ `MultiLineEdit ("", "I should have a background around me."))
+ )
+ );
+UI::UserInput();
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Layout-Wizard-OneWidget.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-Wizard-OneWidget.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-Wizard-OneWidget.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,13 @@
+// wizard, one widget test
+{
+UI::OpenDialog(
+ `Wizard (`back, "&Back", `abort, "Ab&ort", `next, "&Next")
+);
+
+UI::ReplaceWidget (`contents, `ColoredLabel(`opt (`hstretch, `vstretch), "Hello, World!", `rgb (200, 0, 0), `rgb (200, 200, 50), 20));
+// non-stretchable:
+//UI::ReplaceWidget (`contents, `ColoredLabel("Hello, World!", `rgb (200, 0, 0), `rgb (200, 200, 50), 20));
+
+UI::UserInput();
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Layout-Wizard3.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Layout…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Layout-Wizard3.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Layout-Wizard3.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,30 @@
+// The widget should get center aligned on wizard, but not ordinary dialogs
+{
+// stand-alone
+UI::OpenDialog(
+ `VBox(
+ `Heading ("Header"),
+ `VSpacing (0.5),
+ `Label ("This text should get on top")
+ )
+ );
+UI::UserInput();
+
+// on wizard
+UI::OpenDialog(
+ `Wizard (`back, "&Back", `abort, "Ab&ort", `next, "&Next")
+ );
+
+
+UI::ReplaceWidget (`id (`contents),
+ `VBox(
+ `Heading ("Header"),
+ `VSpacing (0.5),
+ `Label ("This text should get centered")
+ )
+ );
+
+
+UI::UserInput();
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/MainDialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/MainDi…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/MainDialogs.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/MainDialogs.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,38 @@
+// This is a test for the usage of multiple main dialogs
+// (that is with the defaultsize attribute). They should
+// all share the same window.
+
+{
+ UI::OpenDialog (`opt (`defaultsize),
+ `VBox (
+ `Heading ("First dialog"),
+ `PushButton (`id (`next), "Next"),
+ `PushButton ("Close")
+ )
+ );
+
+ while (UI::UserInput() == `next) {
+ UI::OpenDialog (`opt (`defaultsize),
+ `VBox (
+ `Heading ("Second dialog"),
+ `PushButton (`id (`next), "Next"),
+ `PushButton ("Back")
+ )
+ );
+
+ while (UI::UserInput() == `next) {
+ UI::OpenDialog (`opt (`defaultsize),
+ `VBox (
+ `Heading ("Third dialog"),
+ `PushButton ("Close")
+ )
+ );
+ UI::UserInput();
+ UI::CloseDialog();
+ }
+
+ UI::CloseDialog();
+ }
+
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/MultiProgressMeter.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/MultiP…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/MultiProgressMeter.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/MultiProgressMeter.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,30 @@
+// Simple example for MultiProgressMeter
+{
+ UI::OpenDialog(
+ `VBox(
+ `VMultiProgressMeter(`id(`vprog), [ 100, 200, 500, 20, 100 ] ),
+ `HMultiProgressMeter(`id(`hprog), [ 100, 200, 500, 20, 100 ] ),
+ `PushButton(`opt(`default), "&Ok" )
+ )
+ );
+
+ UI::ChangeWidget(`vprog, `Values, [ 200, 200, 500, 20, 100 ] );
+ UI::ChangeWidget(`hprog, `Values, [ 200, 200, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`vprog, `Values, [ 0, 200, 500, 20, 100 ] );
+ UI::ChangeWidget(`hprog, `Values, [ 0, 200, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`vprog, `Values, [ 0, 100, 500, 20, 100 ] );
+ UI::ChangeWidget(`hprog, `Values, [ 0, 100, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`vprog, `Values, [ 0, 20, 500, 20, 100 ] );
+ UI::ChangeWidget(`hprog, `Values, [ 0, 20, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`vprog, `Values, [ 0, 0, 500, 20, 100 ] );
+ UI::ChangeWidget(`hprog, `Values, [ 0, 0, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`vprog, `Values, [ 0, 0, 400, 20, 100 ] );
+ UI::ChangeWidget(`hprog, `Values, [ 0, 0, 400, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`vprog, `Values, [ 0, 0, 300, 20, 100 ] );
+ UI::ChangeWidget(`hprog, `Values, [ 0, 0, 300, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`vprog, `Values, [ 0, 0, 200, 20, 100 ] );
+ UI::ChangeWidget(`hprog, `Values, [ 0, 0, 200, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`vprog, `Values, [ 0, 0, 100, 20, 100 ] );
+ UI::ChangeWidget(`hprog, `Values, [ 0, 0, 100, 20, 100 ] ); UI::UserInput();
+}
+
Added: trunk/gtk/unstable-libyui/tests/MultiProgressMeterHuge.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/MultiP…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/MultiProgressMeterHuge.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/MultiProgressMeterHuge.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,39 @@
+// Simple example for MultiProgressMeter
+{
+ if ( ! UI::HasSpecialWidget(`HMultiProgressMeter ) )
+ {
+ UI::OpenDialog(
+ `VBox(
+ `Label("Error: This UI doesn't support the MultiProgressMeter widget!"),
+ `PushButton(`opt(`default), "&OK")
+ )
+ );
+ UI::UserInput();
+ UI::CloseDialog();
+
+ return;
+ }
+
+
+ UI::OpenDialog(
+ `VBox(
+ `HMultiProgressMeter(`id(`prog), [ 10000, 200, 500, 20, 100 ] ),
+ `PushButton(`opt(`default), "&Ok" )
+ )
+ );
+
+ UI::ChangeWidget(`prog, `Values, [ 1000, 200, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`prog, `Values, [ 800, 200, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`prog, `Values, [ 500, 200, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`prog, `Values, [ 200, 200, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`prog, `Values, [ 0, 200, 500, 20, 100 ] ); UI::UserInput();
+
+ UI::ChangeWidget(`prog, `Values, [ 0, 100, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`prog, `Values, [ 0, 20, 500, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`prog, `Values, [ 0, 0, 500, 20, 100 ] ); UI::UserInput();
+
+ UI::ChangeWidget(`prog, `Values, [ 0, 0, 400, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`prog, `Values, [ 0, 0, 300, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`prog, `Values, [ 0, 0, 200, 20, 100 ] ); UI::UserInput();
+ UI::ChangeWidget(`prog, `Values, [ 0, 0, 100, 20, 100 ] ); UI::UserInput();
+}
Added: trunk/gtk/unstable-libyui/tests/MultiSelectionBox.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/MultiS…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/MultiSelectionBox.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/MultiSelectionBox.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,16 @@
+// MultiSelectionBox -- test notify flag
+{
+list items =
+ [ "Spaghetti", "Steak Sandwich", "Chili", "Salami Baguette" ];
+
+UI::OpenDialog (
+ `MinSize (30, 10,
+ `MultiSelectionBox (`id(`list), `opt (`notify),
+ "Plates", items)
+ )
+ );
+
+UI::UserInput();
+UI::CloseDialog();
+}
+
Added: trunk/gtk/unstable-libyui/tests/ProgressPulse.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Progre…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/ProgressPulse.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/ProgressPulse.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,30 @@
+// Simple ProgressBar example
+{
+ integer max_progress = 0;
+ integer progress = 0;
+
+ UI::OpenDialog(
+ `VBox(
+ `ProgressBar(`id(`pr), "Sample progress bar", max_progress, progress ),
+ `PushButton(`id(`next), "Next"),
+ `Right(`PushButton(`id(`close), "&Close" ) )
+ )
+ );
+
+
+ while ( progress < 20 )
+ {
+ symbol button = (symbol) UI::UserInput();
+
+ if ( button == `next )
+ {
+ progress = progress + 1;
+ UI::ChangeWidget(`id(`pr), `Value, progress);
+ UI::ChangeWidget(`id(`pr), `Label, sformat("Progress %1 of %2", progress, max_progress ));
+ }
+ else if ( button == `close )
+ break;
+ }
+
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/RichText1.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/RichTe…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/RichText1.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/RichText1.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,26 @@
+// RichText test
+
+{
+ UI::OpenDialog (
+ `VBox (
+ `RichText (`id (`rtext), ""),
+ `MultiLineEdit (`id (`source), `opt(`notify), "Source code", ""),
+ `PushButton (`id (`close), `opt(`default), "&Close")
+ )
+ );
+
+ any ret = nil;
+ repeat
+ {
+ ret = UI::UserInput();
+
+ if (ret == `source)
+ {
+ UI::ChangeWidget (`id (`rtext), `Value,
+ (string) UI::QueryWidget(`id(`source), `Value));
+ }
+
+ } until (ret == `close || ret == `cancel);
+
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/RichText2.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/RichTe…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/RichText2.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/RichText2.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,89 @@
+// RichText test (with a list of examples)
+{
+ list texts = [
+ // simple
+ "<p><a href=\"nowhere\">Hello world!</a></p>",
+ "<h1>Operating Systems</h1><h2>Linux</h2> Suse",
+
+ // the br & hr tags
+ "Drinking <u>ice</u> tea <br> <hr> is <b>good</b> for you.",
+
+ // Broken end element
+ "Broken end element </ul> elided",
+
+ // the li tags
+ "Things to do <li>foo <li>baa <li>baz.",
+
+ // unclosed tags
+ "No outer tag<p>Unclosed paragraphs<p>several of them <b>unclosed bold</b>",
+
+ // Some more complete text, with an image
+ "<center><h1><font color=blue>Super <font color=red>Man</font></font> "
+ + "to the rescue</h1></center><a "
+ + "href=http://en.wikipedia.org/wiki/Superman>Super Man</a> is a very "
+ + "estimated super hero in Metropolis, but he is looked down by others "
+ + "like mad scientists and politiceans. <img src=\"tests/image.gif\">",
+
+ // table (from SlideShow)
+ "<table cellspacing=\"10\" cellpadding=\"5\">"
+ + "<tr>"
+ + "<td width =\"*\">"
+ + "<img src=\"/opt/gnome/share/icons/hicolor/32x32/apps/gnome-media-player.png\""
+ + "width=\"100\" align=\"left\">"
+ + "</td>"
+ + "<td width=\"*\">"
+ + "<p><font color=\"#00007f\"><b>XMMS and JuK - Powerful Jukeboxes</b></font></p>"
+ + "<p>XMMS is an excellent sound player for Linux. It is easy to use and supports"
+ + "various formats, including audio CDs. Test the many visualization plug-ins or"
+ + "download your favorite XMMS skins from the web.</p>"
+ + "<p>New in KDE: JuK, which classifies your MP3s and organizes your music"
+ + "collection.</p>"
+ + "<p><b>Want More?</b></p>"
+ + "<p>The SUSE distribution features a wide range of applications for playing"
+ + "your CDs and MP3 songs. For example, KsCD is a user-friendly CD player. The"
+ + "track information for most CDs is available on the Internet. Simply activate"
+ + "the respective function to display the list.</p>"
+ + "</td>"
+ + "</tr>"
+ + "</table>"
+ ];
+
+ UI::OpenDialog (
+ `VBox (
+ `RichText (`id (`rtext), texts[0]:nil),
+ `MultiLineEdit (`id (`source), `opt(`notify), "Source code", texts[0]:nil),
+ `Label (`id(`link), `opt(`hstretch), ""),
+ `Slider (`id (`slider), `opt(`notify), "Test text case:", 0, size (texts)-1, 0),
+ `PushButton (`id (`close), `opt(`icon ("close")), "&Close")
+ )
+ );
+
+ any ret = nil;
+ repeat
+ {
+ ret = UI::UserInput();
+
+ if (ret == `slider)
+ {
+ integer cur_text = (integer) UI::QueryWidget(`id(`slider), `Value );
+ UI::ChangeWidget (`id (`source), `Value, texts[cur_text]:nil);
+ UI::ChangeWidget (`id (`rtext), `Value, texts[cur_text]:nil);
+ UI::ChangeWidget (`id(`link), `Value, "");
+ }
+
+ else if (ret == `source)
+ {
+ UI::ChangeWidget (`id (`rtext), `Value,
+ (string) UI::QueryWidget(`id(`source), `Value));
+ }
+
+ else
+ { // RichText doesn't seem to pass its id...
+ string url = sformat ("%1", ret);
+ UI::ChangeWidget (`id(`link), `Value, "You pressed: " + url);
+ }
+
+ } until (ret == `close || ret == `cancel);
+
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/SelectionBox.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Select…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/SelectionBox.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/SelectionBox.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,45 @@
+// SelectionBox change and lookup test
+{
+list itemlist1 =
+ [ "Spaghetti", "Steak Sandwich", "Chili", "Salami Baguette" ];
+
+list itemlist2 =
+ [ "Mercedes", "AUDI", "VW", "BMW", "Porsche" ];
+
+list itemslists = [ itemlist1, itemlist2 ];
+
+integer listnum = 0;
+
+UI::OpenDialog (
+ `VBox (
+ `MinSize (30, 10,
+ `SelectionBox (`id(`list), `opt (`immediate),
+ "Prices", itemlist1)
+ ),
+ `TextEntry (`id(`text), "Current item:", ""),
+ `Right (
+ `HBox (
+ `PushButton (`id (`next), "Change &List Contents"),
+ `PushButton (`id (`cancel), "&Close")
+ )
+ )
+ )
+ );
+
+any ret = nil;
+while (ret != `cancel) {
+ ret = UI::UserInput();
+
+ if (ret == `next) {
+ listnum = 1 - listnum;
+ UI::ChangeWidget (`id(`list), `Items, select (itemslists, listnum, nil));
+ }
+
+ if (ret == `list) {
+ string item = (string) UI::QueryWidget(`id(`list), `CurrentItem);
+ UI::ChangeWidget (`id (`text), `Value, item);
+ }
+}
+
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/StockIcons.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/StockI…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/StockIcons.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/StockIcons.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,55 @@
+// Stock Icons test
+
+{
+ list stock_icons = [
+ "ok",
+ "cancel",
+ "abort",
+ "apply",
+ "about",
+ "connect",
+ "disconnect",
+ "edit",
+ "open",
+ "close",
+ "new",
+ "quit",
+ "print",
+ "save",
+ "save-as",
+ "yes",
+ "no",
+
+ ];
+ integer i = 0;
+
+ UI::OpenDialog (
+ `ReplacePoint (`id (`rp),
+ `PushButton (`opt (`icon (stock_icons[i]:nil)), stock_icons[i]:"")
+ )
+ );
+
+ any ret = nil;
+ while (true)
+ {
+ ret = UI::TimeoutUserInput (1000);
+
+ if (ret == `timeout)
+ {
+ i = i + 1;
+ if (i == size (stock_icons))
+ break;
+ else
+ UI::ReplaceWidget (`rp,
+ `PushButton (`opt (`icon (stock_icons[i]:nil)), stock_icons[i]:"")
+ );
+ UI::RecalcLayout();
+ }
+
+ else
+ break;
+
+ };
+
+ UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/Table3-4.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Table3…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Table3-4.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Table3-4.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,68 @@
+// merge of Table3 and Table4 tests
+{
+list itemlist1 =
+ [ `item(`id(3), "Spaghetti", 8),
+ `item(`id(4), "Steak Sandwich", 12),
+ `item(`id(1), "Chili", 6),
+ `item(`id(2), "Salami Baguette", nil)
+ ];
+
+list itemlist2 =
+ [ `item(`id(0), "Mercedes", 60000),
+ `item(`id(1), "AUDI", 50000),
+ `item(`id(2), "VW", 40000),
+ `item(`id(3), "BMW", 60000),
+ `item(`id(3), "Porsche", 80000)
+ ];
+
+list itemslists = [ itemlist1, itemlist2 ];
+
+integer listnum = 0;
+
+UI::OpenDialog (
+ `VBox (
+ `Heading ("Prices"),
+ `MinSize (30, 10,
+ `Table (`id(`table), `header("Name", "price"), itemlist1)
+ ),
+ `Right (
+ `HBox (
+ `PushButton (`id (`lookup), "&Lookup"),
+ `PushButton (`id (`next), "Change &Table Contents"),
+ `PushButton (`id (`cancel), "&Close")
+ )
+ )
+ )
+ );
+
+any ret = nil;
+while (ret != `cancel) {
+ ret = UI::UserInput();
+
+ if (ret == `next) {
+ listnum = 1 - listnum;
+ UI::ChangeWidget(`id(`table), `Items, select(itemslists, listnum, nil));
+ }
+
+ if (ret == `lookup) {
+ any id = UI::QueryWidget(`id(`table), `CurrentItem);
+ if (is(id, integer)) {
+ string text = sformat (
+ "Line: %1", UI::QueryWidget(`id(`table), `Item(id)));
+ UI::OpenDialog (
+ `MarginBox (1, 0.2,
+ `VBox (
+ `Left (`Label ("Current Table Item")),
+ `Label(`opt(`outputField), text),
+ `PushButton("&OK")
+ )
+ )
+ );
+ UI::UserInput();
+ UI::CloseDialog();
+ }
+ }
+}
+
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/TransientDialog.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Transi…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/TransientDialog.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/TransientDialog.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,24 @@
+{
+
+
+UI::OpenDialog (`opt (`defaultsize), `PushButton ("Button1"));
+UI::TimeoutUserInput (4 * 1000);
+
+UI::OpenDialog (`opt (`defaultsize), `PushButton ("Button2"));
+UI::TimeoutUserInput (4 * 1000);
+
+UI::OpenDialog (`PushButton ("Button"));
+UI::TimeoutUserInput (4 * 1000);
+}
+
+// simple
+/*
+{
+UI::OpenDialog (`opt (`defaultsize), `PushButton ("Button"));
+UI::TimeoutUserInput (4 * 1000);
+
+UI::OpenDialog (`PushButton ("Button"));
+UI::TimeoutUserInput (8 * 1000);
+}
+*/
+
Added: trunk/gtk/unstable-libyui/tests/Tree3.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Tree3.…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/Tree3.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/Tree3.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,123 @@
+{
+ // Build a dialog with a tree for directory selection, three
+ // buttons with common values and a label that directly echoes any
+ // selected directory.
+ //
+ // The tree in this example uses the `notify option that makes
+ // UI::UserInput() return immediately as soon as the user selects a
+ // tree item rather than the default behaviour which waits for the
+ // user to activate a button.
+
+ UI::OpenDialog(
+ `MinWidth( 50,
+ `VBox(
+ `Tree(`id(`dest_dir),
+ `opt(`notify),
+ "Select destination directory:",
+ [
+ `item( "/" , true,
+ [
+ `item( "etc",
+ [
+ `item("opt"),
+ `item("SuSEconfig"),
+ `item("X11")
+ ]
+ ),
+ `item( "usr", false,
+ [
+ "bin",
+ "lib",
+ `item("share",
+ [
+ "man",
+ "info",
+ "emacs"
+ ]
+ ),
+ `item( `id(`usr_local), "local" ),
+ `item("X11R6",
+ [
+ "bin",
+ "lib",
+ "share",
+ "man",
+ "etc"
+ ]
+ )
+ ]
+ ),
+ `item( `id(`opt), "opt", true,
+ [
+ "kde",
+ "netscape",
+ "Office51"
+ ]
+ ),
+ `item("home"),
+ "work",
+ `item( "<other>")
+ ]
+ )
+ ] ),
+ `HBox(
+ `PushButton(`id(`sel_opt), `opt(`hstretch), "/&opt" ),
+ `PushButton(`id(`sel_usr), `opt(`hstretch), "/&usr" ),
+ `PushButton(`id(`sel_usr_local), `opt(`hstretch), "/usr/&local" )
+ ),
+ `HBox(
+ `HWeight( 2, `Label("Current Item:") ),
+ `HWeight( 5, `Label(`id(`echoItem), `opt(`outputField, `hstretch), "") )
+ ),
+ `HBox(
+ `HWeight( 2, `Label("Current Branch:") ),
+ `HWeight( 5, `Label(`id(`echoBranch), `opt(`outputField, `hstretch), "") )
+ ),
+ `HBox(
+ `HWeight( 2, `Label("Current Path:") ),
+ `HWeight( 5, `Label(`id(`echoPath), `opt(`outputField, `hstretch), "") )
+ ),
+ `PushButton(`id(`ok), `opt(`default, `icon ("ok")), "&OK")
+ )
+ )
+ );
+
+ any id = nil;
+
+ repeat
+ {
+ id = UI::UserInput();
+
+ if ( id == `sel_usr) UI::ChangeWidget( `id( `dest_dir ), `CurrentItem, "usr" );
+ else if ( id == `sel_usr_local) UI::ChangeWidget( `id( `dest_dir ), `CurrentItem, `usr_local );
+ else if ( id == `sel_opt) UI::ChangeWidget( `id( `dest_dir ), `CurrentItem, `opt );
+ else if ( id == `dest_dir)
+ {
+ any current_dir = UI::QueryWidget(`dest_dir, `CurrentItem );
+
+ if ( current_dir != nil )
+ UI::ChangeWidget( `id( `echoItem ), `Value, sformat( "%1", current_dir ) );
+
+ list<string> current_branch = (list<string>) UI::QueryWidget(`dest_dir, `CurrentBranch );
+
+ if ( current_branch != nil )
+ {
+ UI::ChangeWidget(`echoBranch, `Value, sformat( "%1", current_branch) );
+
+ string current_path = mergestring( current_branch, "/" );
+ if ( size( current_path ) > 2 )
+ // Remove duplicate "/" at start
+ current_path = substring( current_path, 1, size( current_path )-1 );
+
+ UI::ChangeWidget(`echoPath, `Value, sformat( "%1", current_path ) );
+ }
+ }
+
+ } until ( id == `ok );
+
+
+ // Close the dialog.
+ // Remember to read values from the dialog's widgets BEFORE closing it!
+ UI::CloseDialog();
+
+}
Added: trunk/gtk/unstable-libyui/tests/WizardList.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/Wizard…
==============================================================================
--- trunk/gtk/unstable-libyui/tests/WizardList.ycp (added)
+++ trunk/gtk/unstable-libyui/tests/WizardList.ycp Wed Dec 5 14:14:01 2007
@@ -0,0 +1,33 @@
+{
+UI::OpenDialog(
+ `Wizard (`opt (`treeEnabled),
+ `back, "", `cancel, "", `cancel, "&Exit")
+ );
+
+UI::WizardCommand (`AddTreeItem ("", "Computer", "computer"));
+UI::WizardCommand (`AddTreeItem ("computer", "Hardware", "hardware"));
+UI::WizardCommand (`AddTreeItem ("hardware", "CPU", "cpu@hardware"));
+UI::WizardCommand (`AddTreeItem ("cpu@hardware", "MMU", "mmu"));
+UI::WizardCommand (`AddTreeItem ("hardware", "RAM", "ram@hardware"));
+UI::WizardCommand (`AddTreeItem ("computer", "Software", "software"));
+
+any ret = nil;
+repeat {
+ ret = UI::UserInput();
+
+ string selected = (string) UI::QueryWidget (`id(`wizard), `CurrentItem );
+
+ if (selected == "mmu") {
+ UI::ReplaceWidget (`id (`contents),
+ `Label ("MMU setup")
+ );
+ }
+ if (selected == "ram@hardware") {
+ UI::ReplaceWidget (`id (`contents),
+ `Label ("RAM setup")
+ );
+ }
+} until (ret == `cancel);
+
+UI::CloseDialog();
+}
Added: trunk/gtk/unstable-libyui/tests/image.gif
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/image.…
==============================================================================
Binary file - no diff available.
Added: trunk/gtk/unstable-libyui/tests/movie-endless.mng-old
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/movie-…
==============================================================================
Binary file - no diff available.
Added: trunk/gtk/unstable-libyui/tests/movie1.mng
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/movie1…
==============================================================================
Binary file - no diff available.
Added: trunk/gtk/unstable-libyui/tests/movie2.mng
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/movie2…
==============================================================================
Binary file - no diff available.
Added: trunk/gtk/unstable-libyui/tests/movie3.mng
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/movie3…
==============================================================================
Binary file - no diff available.
Added: trunk/gtk/unstable-libyui/tests/movie4.mng
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/movie4…
==============================================================================
Binary file - no diff available.
Added: trunk/gtk/unstable-libyui/tests/movie5.mng
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/movie5…
==============================================================================
Binary file - no diff available.
Added: trunk/gtk/unstable-libyui/tests/movie6.mng
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/movie6…
==============================================================================
Binary file - no diff available.
Added: trunk/gtk/unstable-libyui/tests/movie7.mng
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/movie7…
==============================================================================
Binary file - no diff available.
Added: trunk/gtk/unstable-libyui/tests/movie8.mng
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/tests/movie8…
==============================================================================
Binary file - no diff available.
Added: trunk/gtk/unstable-libyui/yast2-gtk.spec.in
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/yast2-gtk.sp…
==============================================================================
--- trunk/gtk/unstable-libyui/yast2-gtk.spec.in (added)
+++ trunk/gtk/unstable-libyui/yast2-gtk.spec.in Wed Dec 5 14:14:01 2007
@@ -0,0 +1,35 @@
+@HEADER-COMMENT@
+
+@HEADER@
+Source2: yast2-gtk-rpmlintrc
+BuildRequires: blocxx-devel gcc-c++ libxcrypt-devel libzypp-devel yast2-core-devel yast2-devtools gtk2-devel
+Summary: YaST2 - Gtk Graphical User Interface
+Provides: yast2_ui
+
+%description
+One of several user interfaces available for YaST2, based on GTK and
+the X Window System.
+
+
+
+Authors:
+--------
+ Ricardo Cruz
+ Michael Meeks
+
+@PREP@
+
+@BUILD@
+
+@INSTALL@
+rm $RPM_BUILD_ROOT%{_libdir}/YaST2/plugin/libpy2gtk.la
+
+@CLEAN@
+
+%files
+%defattr (-, root, root)
+%doc @docdir@
+%{_libdir}/YaST2/plugin/libpy2gtk.so.*
+%{_libdir}/YaST2/plugin/libpy2gtk.so
+
+
Added: trunk/gtk/unstable-libyui/ycc.sh
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/unstable-libyui/ycc.sh?rev=4…
==============================================================================
--- trunk/gtk/unstable-libyui/ycc.sh (added)
+++ trunk/gtk/unstable-libyui/ycc.sh Wed Dec 5 14:14:01 2007
@@ -0,0 +1,53 @@
+#!/bin/sh
+# Usage: Run this script with no argument to be presented
+# with Yast modules. 'z' argument for Yast-core shipped
+# examples. 'x' for our own set of tests.
+
+ZENITY_BINARY=zenity
+Y2BASE_BINARY="/usr/lib/YaST2/bin/y2base -l /dev/stderr"
+
+DEFAULT_DIR=/usr/share/YaST2/clients
+RUN_QT=0
+
+if [ $# -gt 0 ]; then
+ if [ "$1" == "z" ]; then
+ DEFAULT_DIR=/usr/share/doc/packages/yast2-core/libyui/examples
+ fi
+ if [ "$1" == "x" ]; then
+ DEFAULT_DIR=.
+ # go to the tests directory
+ # (this doesn't affect user's cwd because this
+ # is running in its own shell.)
+ cd "`dirname $0`/tests"
+ fi
+ if [ "$1" == "help" ]; then
+ echo "ycc.sh usage:"
+ echo " \"$0\" - yast modules"
+ echo " \"$0 z\" - yast-core examples"
+ echo " \"$0 x\" - our set of tests"
+ echo " pass \"qt\" to also run the qt frontend"
+ echo ""
+ exit
+ fi
+ if [ "$1" == "qt" ]; then
+ RUN_QT=1
+ fi
+fi
+
+if [ $# -eq 2 ] && [ "$2" == "qt" ]; then
+ RUN_QT=1
+fi
+
+module_list=`ls $DEFAULT_DIR/*.ycp | sed 's/.*\///'`
+while true; do
+ module=`$ZENITY_BINARY --title "Yast Control Center" \
+ --list --column "Available modules:" $module_list`;
+ if [ "$module" ]; then
+ if [ $RUN_QT -eq 1 ]; then
+ $Y2BASE_BINARY "$DEFAULT_DIR/$module" qt &
+ fi
+ $Y2BASE_BINARY "$DEFAULT_DIR/$module" gtk
+ else
+ exit 0;
+ fi
+done
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
1
0
05 Dec '07
Author: jsuchome
Date: Wed Dec 5 13:18:24 2007
New Revision: 42710
URL: http://svn.opensuse.org/viewcvs/yast?rev=42710&view=rev
Log:
Created tag stable-2_16_6 for product-creator
Added:
tags/stable-2_16_6/product-creator/
- copied from r42709, trunk/product-creator/
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
1
0