diff -Nru quickplot-0.8.15/about.htm.in quickplot-0.9.11/about.htm.in --- quickplot-0.8.15/about.htm.in 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/about.htm.in 2011-12-22 02:42:20.000000000 +0000 @@ -0,0 +1,293 @@ + + + + + +About Quickplot + + + + + + +
+

About Quickplot

+
+ +

+a fast interactive 2D plotter +

+ +

+Version @VERSION@   repo version @repo_version@ +

+ + + +

Quickplot Home-page

+ + +@PACKAGE_URL@ + + +

What is Quickplot?

+ + +

+Quickplot is an interactive 2D plotter.  +You can very quickly swim through data with Quickplot.  +

+ + + +

What can Quickplot do other 2D plotters can't do?

+ + +

+The difference between Quickplot and most 2D plotters is that +the primary purpose of Quickplot is to help you quickly interact with +your data.  Of secondary importance is to make a pretty static +picture of your data.  Features that distinguish Quickplot +include: unlimited mouse press (pointer move) and +release zooming, mouse grab and slide +(new in version 0.9.0), any number of plots with different scales +displayed at one time, value picking for any number of plots +displayed at one time, and reading data from standard +input (a pipe).  +These features become indispensable when you're looking +at data sets with 10,000 to 10,000,000 and more data points.  You +can't look at a 2D plot with a million points unless you can quickly +zoom.  If you need to look at hundreds of files each with 100,000 +or more points Quickplot may save your sanity. +

+ +

+Quickplot has lots of command line options that let you +customize your graphs in one line command.  +With the Quickplot graphical user interface +(GUI) you can read files and remove buffers, +add and remove plots in graphs, add and remove graphs, +add and remove main windows with any number of graphs, +change individual plot line and point widths, +change colors of lines, points, background and grid, +change graph grid line spacings and line width, +copy and remove graphs, save image files, +rescale, zoom in and out any number of times, grab and move graphs, +examine plotted numbers, and so on.  +Quickplot is excellent presenting 2D plots to groups of people +if you would like an interactive and flexible presentation format.  +Quickplot can also make png images with translucent colors +(version 0.9.*). +

+ +

+In most use cases the command to plot your data is +quickplot FILENAME and Quickplot's default +graphs may be all you need. +

+ +

+Quickplot is more like an interactive data browser than an +interactive picture editor. +

+ +

All future versions of Quickplot will keep the show me the +data quickly theme.  This does not rule out +additions that make Quickplot a more full-featured 2D plotter +that one can make pretty pictures with. +

+ + + +

New features in version 0.9.*

+ + + + + + + +

Installation prerequisites

+ + +

+Quickplot uses the GNU Autotools (./configure) to build and install.  +To build Quickplot from the distribution source tarball (example: +quickplot-@VERSION@.tar.bz2) +the following packages are required to be +installed: +

+ + + + + + +

Development prerequisites

+ + +

+To build and develop Quickplot from the SVN source +the following packages, in addition to the above packages, are +required to be installed: +

+ + + + + +

The name and history of this program

+ + +

We call it Lanceman's Quickplot in order to distinguish it +from another program called Quickplot which predates this +program.  It used to be on NeXT computers.  It may have died +with NeXT. +

+ +

This is a complete rewrite, by the original author of the +Lanceman's Quickplot which first appeared in 1998, and managed to find +its way into the Debian GNU/Linux +distribution soon after. +

+ +

Quickplot started out in 1998 as an Athena Widgets X11 GUI +(graphical user interface) program.  In 2003 it was rewritten as +a QT GUI +program.  In 2004 it was changed to +a GTK+ GUI program using +the gtkmm C++ wrapper to +GTK+.  In 2011 it was rewritten again with C using GTK+, without +GTKmm. +

+ + + +

Copy Right and Legal Notice

+ + +

Quickplot -- an interactive 2D plotter

+ +

Copyright (C) 1998-2011 Lance Arsenault

+ +

Quickplot 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 3 of the License, or (at your option) any later + version. +

+ +

Quickplot 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 Quickplot.  If not, + see http://www.gnu.org/licenses/gpl.html.

+ + + +@FOOTER_HTM@ + + + + diff -Nru quickplot-0.8.15/about.html quickplot-0.9.11/about.html --- quickplot-0.8.15/about.html 2009-03-09 01:19:10.000000000 +0000 +++ quickplot-0.9.11/about.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,206 +0,0 @@ - - - - - -About Quickplot - - - - -
-

Quickplot

- -Version 0.8.15 -

-A fast interactive 2D plotter - -

- - - -


- -

Quickplot Home-page

- -
http://quickplot.sourceforge.net/ - - - -
- -

What good is Quickplot?

- -
You can very quickly swim through data with -Quickplot.  I wrote it to do my dynamics work and if other people can -use it, that's great.
- - -
- -

What can Quickplot do other 2D plotters can't do?

- -
- -The difference between this 2D plotter and most 2D plotters is that -the primary purpose of Quickplot is to help you quickly interact with -your data.  Of secondary importance is to make a pretty static -picture of your data.  Features that distinguish Quickplot -include: one click zooming, any number of plots with different scales -displayed at one time, value picking for any number of plots with -different scales displayed at one time, and reading data from standard -input.  These features become indispensable when you're looking -at data sets with 10,000 to 1,000,000 and more data points.  You -can't look at a 2D plot with 100,000 points unless you can quickly -zoom.  If you need to look at hundreds of files each with 100,000 -points, the command line options in Quickplot may save your -sanity. - -

Quickplot can display sound files with many sound formats. -

- -

Quickplot is more like an interactive data browser than an -interactive picture editor.

- -

All future versions of Quickplot will keep the show me the -data quickly theme.  So all future additions to this program -must preserve this quick and lean theme.  This does not rule out -the additions that make this program a more full-featured 2D plotter -that one can make pretty pictures with.

- - -
- - - -
- -

Installation prerequisites

- -
- -Quickplot uses the GNU Autotools (./configure) to build and install. -To build Quickplot from the distribution source tarball -(example: quickplot-0.8.15.tar.bz2) the following packages are required to be -installed: - - - -To build and develop Quickplot from the SVN source -the following packages, in addition to the above packages, are -required to be installed: - - - - -
- - - -
- -

The name and history of this program

- -
We call it Lanceman's Quickplot in order to -distinguish it from another program called Quickplot which predates -this program.  It used to be on NeXT computers.  It may have -died with NeXT. - -

This is a complete rewrite, by the original author, of the -Lanceman's Quickplot which first appeared in 1998, and managed to find -its way into the Debian GNU/Linux -distribution soon after.

- -

Quickplot started out in 1998 as an Athena Widgets X11 GUI -program, in 2003 it was rewritten as a QT GUI program, and -in 2004 it was changed to a GTK+ GUI -program using the gtkmm C++ -wrapper to GTK+.

- -
- - - - - -
- -

Copy Right and Legal Notice

- -
- -Quickplot is free software, distributed under the terms of -the GNU General Public -License (v2+). - -

Quickplot -- a fast interactive 2D plotter
- -Copyright (C) 1998, 1999, 2003, 2004 Lance Arsenault
- -

Quickplot 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. - -

Quickplot 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 Quickplot, in a file named COPYING; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, -USA.

- - -
  -

-Top
-Quickplot -   version 0.8.15    -release date: Sun Mar 8 16:19:23 EDT 2009 -
- - diff -Nru quickplot-0.8.15/about_html.cpp quickplot-0.9.11/about_html.cpp --- quickplot-0.8.15/about_html.cpp 2009-03-09 01:19:10.000000000 +0000 +++ quickplot-0.9.11/about_html.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,210 +0,0 @@ -// about_html.cpp Generated by running: cat about.html | ./html2CString about_html.cpp - -const char *about_html = -"\n" -"\n" -"\n" -"\n" -"\n" -"About Quickplot\n" -"\n" -"\n" -"\n" -"\n" -"
\n" -"

Quickplot

\n" -"\n" -"Version 0.8.15\n" -"

\n" -"A fast interactive 2D plotter\n" -"\n" -"

\n" -"\n" -"\n" -"\n" -"


\n" -"\n" -"

Quickplot Home-page

\n" -"\n" -"
http://quickplot.sourceforge.net/\n" -"\n" -"\n" -"\n" -"
\n" -"\n" -"

What good is Quickplot?

\n" -"\n" -"
You can very quickly swim through data with\n" -"Quickplot.  I wrote it to do my dynamics work and if other people can\n" -"use it, that's great.
\n" -"\n" -"\n" -"
\n" -"\n" -"

What can Quickplot do other 2D plotters can't do?

\n" -"\n" -"
\n" -"\n" -"The difference between this 2D plotter and most 2D plotters is that\n" -"the primary purpose of Quickplot is to help you quickly interact with\n" -"your data.  Of secondary importance is to make a pretty static\n" -"picture of your data.  Features that distinguish Quickplot\n" -"include: one click zooming, any number of plots with different scales\n" -"displayed at one time, value picking for any number of plots with\n" -"different scales displayed at one time, and reading data from standard\n" -"input.  These features become indispensable when you're looking\n" -"at data sets with 10,000 to 1,000,000 and more data points.  You\n" -"can't look at a 2D plot with 100,000 points unless you can quickly\n" -"zoom.  If you need to look at hundreds of files each with 100,000\n" -"points, the command line options in Quickplot may save your\n" -"sanity.\n" -"\n" -"

Quickplot can display sound files with many sound formats.\n" -"

\n" -"\n" -"

Quickplot is more like an interactive data browser than an\n" -"interactive picture editor.

\n" -"\n" -"

All future versions of Quickplot will keep the show me the\n" -"data quickly theme.  So all future additions to this program\n" -"must preserve this quick and lean theme.  This does not rule out\n" -"the additions that make this program a more full-featured 2D plotter\n" -"that one can make pretty pictures with.

\n" -"\n" -"\n" -"
\n" -"\n" -"\n" -"\n" -"
\n" -"\n" -"

Installation prerequisites

\n" -"\n" -"
\n" -"\n" -"Quickplot uses the GNU Autotools (./configure) to build and install.\n" -"To build Quickplot from the distribution source tarball\n" -"(example: quickplot-0.8.15.tar.bz2) the following packages are required to be\n" -"installed:\n" -"\n" -"
    \n" -"\n" -"
  • gtkmm  \n" -"has many prerequisites, but comes with most GNU/Linux\n" -"distributions.  gtkmm is the official C++ interface for the\n" -"popular GUI library GTK+.\n" -"\n" -"
      \n" -"
    • Quickplot version 0.7.8 (and below) works with gtkmm-2.2.* and will not work with gtkmm-2.4.*.
    • \n" -"
    • Quickplot version 0.8.0 (and above) works with gtkmm-2.4.* and\n" -"will not work with gtkmm-2.2.*.
    • \n" -"
    \n" -"\n" -"
  • libsndfile\n" -"(optional)   is a C library for reading and writing\n" -"files containing sampled sound (such as microsoft WAV and the\n" -"Apple/SGI AIFF format) through one standard library\n" -"interface. Quickplot will not read sound files without libsndfile.\n" -"\n" -"
\n" -"\n" -"To build and develop Quickplot from the SVN source\n" -"the following packages, in addition to the above packages, are\n" -"required to be installed:\n" -"\n" -"
    \n" -"\n" -"
  • The GNU Autotools   Autoconf version 2.58\n" -"or greater, Automake version\n" -"1.7 or greater, and Libtool version 1.4.3\n" -"or greater are used to build the Quickplot source.\n" -"\n" -"
  • ImageMagick   The\n" -"convert program (from ImageMagick) is used to make xpm images\n" -"from PNG images in the Quickplot source.\n" -"\n" -"\n" -"
\n" -"\n" -"\n" -"
\n" -"\n" -"\n" -"\n" -"
\n" -"\n" -"

The name and history of this program

\n" -"\n" -"
We call it Lanceman's Quickplot in order to\n" -"distinguish it from another program called Quickplot which predates\n" -"this program.  It used to be on NeXT computers.  It may have\n" -"died with NeXT.\n" -"\n" -"

This is a complete rewrite, by the original author, of the\n" -"Lanceman's Quickplot which first appeared in 1998, and managed to find\n" -"its way into the Debian GNU/Linux\n" -"distribution soon after.

\n" -"\n" -"

Quickplot started out in 1998 as an Athena Widgets X11 GUI\n" -"program, in 2003 it was rewritten as a QT GUI program, and\n" -"in 2004 it was changed to a GTK+ GUI\n" -"program using the gtkmm C++\n" -"wrapper to GTK+.

\n" -"\n" -"
\n" -"\n" -"\n" -"\n" -"\n" -"\n" -"
\n" -"\n" -"

Copy Right and Legal Notice

\n" -"\n" -"
\n" -"\n" -"Quickplot is free software, distributed under the terms of\n" -"the GNU General Public\n" -"License (v2+).\n" -"\n" -"

Quickplot -- a fast interactive 2D plotter
\n" -"\n" -"Copyright (C) 1998, 1999, 2003, 2004 Lance Arsenault
\n" -"\n" -"

Quickplot is free software; you can redistribute it\n" -"and/or modify it under the terms of the GNU General Public License as\n" -"published by the Free Software\n" -"Foundation; either version 2, or (at your option) any later\n" -"version.\n" -"\n" -"

Quickplot is distributed in the hope that it will be\n" -"useful, but WITHOUT ANY WARRANTY; without even the implied warranty of\n" -"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n" -"General Public License for more details.\n" -"\n" -"

You should have received a copy of the GNU General Public\n" -"License along with Quickplot, in a file named COPYING; if not, write to the Free Software\n" -"Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,\n" -"USA.

\n" -"\n" -"\n" -"
 \n" -"

\n" -"Top
\n" -"Quickplot\n" -"   version 0.8.15   \n" -"release date: Sun Mar 8 16:19:23 EDT 2009\n" -"
\n" -"\n" -"\n" -; diff -Nru quickplot-0.8.15/about.html.in quickplot-0.9.11/about.html.in --- quickplot-0.8.15/about.html.in 2009-03-08 21:47:45.000000000 +0000 +++ quickplot-0.9.11/about.html.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,195 +0,0 @@ - - -About Quickplot - - - - -
-

Quickplot

- -Version %VERSION% -

-A fast interactive 2D plotter - -

- - - -


- -

Quickplot Home-page

- -
%HOMEPAGE% - - - -
- -

What good is Quickplot?

- -
You can very quickly swim through data with -Quickplot.  I wrote it to do my dynamics work and if other people can -use it, that's great.
- - -
- -

What can Quickplot do other 2D plotters can't do?

- -
- -The difference between this 2D plotter and most 2D plotters is that -the primary purpose of Quickplot is to help you quickly interact with -your data.  Of secondary importance is to make a pretty static -picture of your data.  Features that distinguish Quickplot -include: one click zooming, any number of plots with different scales -displayed at one time, value picking for any number of plots with -different scales displayed at one time, and reading data from standard -input.  These features become indispensable when you're looking -at data sets with 10,000 to 1,000,000 and more data points.  You -can't look at a 2D plot with 100,000 points unless you can quickly -zoom.  If you need to look at hundreds of files each with 100,000 -points, the command line options in Quickplot may save your -sanity. - -

Quickplot can display sound files with many sound formats. -

- -

Quickplot is more like an interactive data browser than an -interactive picture editor.

- -

All future versions of Quickplot will keep the show me the -data quickly theme.  So all future additions to this program -must preserve this quick and lean theme.  This does not rule out -the additions that make this program a more full-featured 2D plotter -that one can make pretty pictures with.

- - -
- - - -
- -

Installation prerequisites

- -
- -Quickplot uses the GNU Autotools (./configure) to build and install. -To build Quickplot from the distribution source tarball -(example: quickplot-%VERSION%.tar.bz2) the following packages are required to be -installed: - -
    - -
  • gtkmm   - has many prerequisites, but comes with most GNU/Linux -distributions.  gtkmm is the official C++ interface for the -popular GUI library GTK+. - -
      -
    • Quickplot version 0.7.8 (and below) works with gtkmm-2.2.* and will not work with gtkmm-2.4.*.
    • -
    • Quickplot version 0.8.0 (and above) works with gtkmm-2.4.* and - will not work with gtkmm-2.2.*.
    • -
    - -
  • libsndfile -(optional)   is a C library for reading and writing -files containing sampled sound (such as microsoft WAV and the -Apple/SGI AIFF format) through one standard library -interface. Quickplot will not read sound files without libsndfile. - -
- -To build and develop Quickplot from the SVN source -the following packages, in addition to the above packages, are -required to be installed: - -
    - -
  • The GNU Autotools   Autoconf version 2.58 -or greater, Automake version -1.7 or greater, and Libtool version 1.4.3 -or greater are used to build the Quickplot source. - -
  • ImageMagick   The -convert program (from ImageMagick) is used to make xpm images -from PNG images in the Quickplot source. - - -
- - -
- - - -
- -

The name and history of this program

- -
We call it Lanceman's Quickplot in order to -distinguish it from another program called Quickplot which predates -this program.  It used to be on NeXT computers.  It may have -died with NeXT. - -

This is a complete rewrite, by the original author, of the -Lanceman's Quickplot which first appeared in 1998, and managed to find -its way into the Debian GNU/Linux -distribution soon after.

- -

Quickplot started out in 1998 as an Athena Widgets X11 GUI -program, in 2003 it was rewritten as a QT GUI program, and -in 2004 it was changed to a GTK+ GUI -program using the gtkmm C++ -wrapper to GTK+.

- -
- - - - - -
- -

Copy Right and Legal Notice

- -
- -Quickplot is free software, distributed under the terms of -the GNU General Public -License (v2+). - -

Quickplot -- a fast interactive 2D plotter
- -Copyright (C) 1998, 1999, 2003, 2004 Lance Arsenault
- -

Quickplot 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. - -

Quickplot 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 Quickplot, in a file named COPYING; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, -USA.

- - -
  diff -Nru quickplot-0.8.15/about.txt quickplot-0.9.11/about.txt --- quickplot-0.8.15/about.txt 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/about.txt 2011-12-30 06:17:08.000000000 +0000 @@ -0,0 +1,173 @@ + + About Quickplot + + a fast interactive 2D plotter + + Version 0.9.11 repo version 178 + + Quickplot Home-page + + [1]http://quickplot.sourceforge.net/ + + What is Quickplot? + + Quickplot is an interactive 2D plotter. You can very quickly swim + through data with Quickplot. + + What can Quickplot do other 2D plotters can't do? + + The difference between Quickplot and most 2D plotters is that the + primary purpose of Quickplot is to help you quickly interact with your + data. Of secondary importance is to make a pretty static picture of + your data. Features that distinguish Quickplot include: unlimited + mouse press (pointer move) and release zooming, mouse grab and slide + (new in version 0.9.0), any number of plots with different scales + displayed at one time, value picking for any number of plots displayed + at one time, and reading data from standard input (a pipe). These + features become indispensable when you're looking at data sets with + 10,000 to 10,000,000 and more data points. You can't look at a 2D plot + with a million points unless you can quickly zoom. If you need to look + at hundreds of files each with 100,000 or more points Quickplot may + save your sanity. + + Quickplot has lots of command line options that let you customize your + graphs in one line command. With the Quickplot graphical user + interface (GUI) you can read files and remove buffers, add and remove + plots in graphs, add and remove graphs, add and remove main windows + with any number of graphs, change individual plot line and point + widths, change colors of lines, points, background and grid, change + graph grid line spacings and line width, copy and remove graphs, save + image files, rescale, zoom in and out any number of times, grab and + move graphs, examine plotted numbers, and so on. Quickplot is + excellent presenting 2D plots to groups of people if you would like an + interactive and flexible presentation format. Quickplot can also make + png images with translucent colors (version 0.9.*). + + In most use cases the command to plot your data is quickplot FILENAME + and Quickplot's default graphs may be all you need. + + Quickplot is more like an interactive data browser than an interactive + picture editor. + + All future versions of Quickplot will keep the show me the data quickly + theme. This does not rule out additions that make Quickplot a more + full-featured 2D plotter that [2]one can make pretty pictures with. + + New features in version 0.9.* + + * draws much faster then version 0.8.* + * has many more command line options + * the new mouse grab and slide with left mouse button is very + intuitive + * more robust text data file reading + + better locale support + + reads rows with missing number entries + + more row comment formats + + reads infinity and nan, using nan as a line break + + will read any text file and pick out the numbers + + reads CSV files + * Cairo drawing that provides translucent and transparent colors + using RGBA + * makes graphs with the X11 shape extension that float graphs on your + screen letting you see though them to your other windows below + * has fullscreen draw mode for presentations + * reads more sound file formats with newer libsndfile + * reads sound files from standard input (pipe input) with newer + libsndfile + * better double buffer drawing with super quick re-expose redraws, + fixes previous versions slow re-expose redraws + * Quickplot is no longer written in C++ so it builds and installs + faster with less prerequisites + * an interactive command line shell + + Installation prerequisites + + Quickplot uses the GNU Autotools (./configure) to build and install. + To build Quickplot from the distribution source tarball (example: + quickplot-0.9.11.tar.bz2) the following packages are required to be + installed: + * [3]GTK+ has many prerequisites, but they all come with most + GNU/Linux distributions. GTK+ version 3 is required for Quickplot + version 0.9.11. + * [4]GNU readline allows users to edit command lines as they are + typed in. Quickplot has an optional command shell interface that + uses readline, and lets you interactively edit all aspects of + Quickplot graphs. + * [5]libsndfile is a C library for reading and writing files + containing sampled sound, such as Ogg/Vorbis, microsoft WAV, and + the Apple/SGI AIFF format, through one standard library interface. + + Development prerequisites + + To build and develop Quickplot from the [6]SVN source the following + packages, in addition to the above packages, are required to be + installed: + * The GNU Autotools [7]Autoconf, [8]Automake, and [9]Libtool are + used to build the Quickplot source. + * [10]ImageMagick The convert program, from ImageMagick, is used to + make xpm images from PNG images in the Quickplot source. + * [11]Lynx Lynx is a fully-featured World Wide Web (WWW) client, or + web browser, that can display inside of a tty terminal. We use + Lynx to generate ASCII text files from our html files, like for + example the simple ASCII text version of this file you are reading + now. The text version of the help page is used to make the man + page. + + The name and history of this program + + We call it Lanceman's Quickplot in order to distinguish it from another + program called Quickplot which predates this program. It used to be on + NeXT computers. It may have died with NeXT. + + This is a complete rewrite, by the original author of the Lanceman's + Quickplot which first appeared in 1998, and managed to find its way + into the [12]Debian GNU/Linux distribution soon after. + + Quickplot started out in 1998 as an Athena Widgets X11 GUI (graphical + user interface) program. In 2003 it was rewritten as a [13]QT GUI + program. In 2004 it was changed to a [14]GTK+ GUI program using the + [15]gtkmm C++ wrapper to GTK+. In 2011 it was rewritten again with C + using GTK+, without GTKmm. + + Copy Right and Legal Notice + + Quickplot -- an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + Quickplot is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + [16]Free Software Foundation, either version 3 of the License, or (at + your option) any later version. + + Quickplot 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 Quickplot. If not, see [17]http://www.gnu.org/licenses/gpl.html. + + [18] Top | About | [19] Help Quickplot Version 0.9.11 + +References + + 1. http://quickplot.sourceforge.net/ + 2. file:help.html#house + 3. http://www.gtk.org/ + 4. http://tiswww.case.edu/php/chet/readline/rltop.html + 5. http://www.mega-nerd.com/libsndfile/ + 6. https://sourceforge.net/svn/?group_id=82651 + 7. http://www.gnu.org/software/autoconf/ + 8. http://www.gnu.org/software/automake/ + 9. http://www.gnu.org/software/libtool/ + 10. http://www.imagemagick.org/ + 11. http://lynx.isc.org/ + 12. http://www.debian.org/ + 13. http://www.trolltech.com/products/qt/ + 14. http://www.gtk.org/ + 15. http://www.gtkmm.org/ + 16. http://www.fsf.org/ + 17. http://www.gnu.org/licenses/gpl.html + 18. file:index.html + 19. file:help.html diff -Nru quickplot-0.8.15/aclocal.m4 quickplot-0.9.11/aclocal.m4 --- quickplot-0.8.15/aclocal.m4 2009-03-09 01:18:50.000000000 +0000 +++ quickplot-0.9.11/aclocal.m4 2011-12-30 06:16:52.000000000 +0000 @@ -1,7 +1,7 @@ -# generated automatically by aclocal 1.10.1 -*- Autoconf -*- +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# 2005, 2006, 2007, 2008, 2009 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. @@ -13,13 +13,8613 @@ m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(AC_AUTOCONF_VERSION, [2.61],, -[m4_warning([this file was generated for autoconf 2.61. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, +[m4_warning([this file was generated for autoconf 2.68. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) -# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, +# Inc. +# Written by Gordon Matzigkeit, 1996 +# +# 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. + +m4_define([_LT_COPYING], [dnl +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, +# Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool 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. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +]) + +# serial 57 LT_INIT + + +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_defun([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) + + +# _LT_CHECK_BUILDDIR +# ------------------ +# Complain if the absolute build directory name contains unusual characters +m4_defun([_LT_CHECK_BUILDDIR], +[case `pwd` in + *\ * | *\ *) + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; +esac +]) + + +# LT_INIT([OPTIONS]) +# ------------------ +AC_DEFUN([LT_INIT], +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +])# LT_INIT + +# Old names: +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +m4_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 "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +]) + + +# _LT_FILEUTILS_DEFAULTS +# ---------------------- +# It is okay to use these file commands and assume they have been set +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. +m4_defun([_LT_FILEUTILS_DEFAULTS], +[: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +])# _LT_FILEUTILS_DEFAULTS + + +# _LT_SETUP +# --------- +m4_defun([_LT_SETUP], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl + +_LT_DECL([], [host_alias], [0], [The host system])dnl +_LT_DECL([], [host], [0])dnl +_LT_DECL([], [host_os], [0])dnl +dnl +_LT_DECL([], [build_alias], [0], [The build system])dnl +_LT_DECL([], [build], [0])dnl +_LT_DECL([], [build_os], [0])dnl +dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +dnl +AC_REQUIRE([AC_PROG_LN_S])dnl +test -z "$LN_S" && LN_S="ln -s" +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl +dnl +AC_REQUIRE([LT_CMD_MAX_LEN])dnl +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl +dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl +m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_CHECK_MAGIC_METHOD])dnl +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl +m4_require([_LT_CMD_OLD_ARCHIVE])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_WITH_SYSROOT])dnl + +_LT_CONFIG_LIBTOOL_INIT([ +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi +]) +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +_LT_CHECK_OBJDIR + +m4_require([_LT_TAG_COMPILER])dnl + +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 + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + _LT_PATH_MAGIC + fi + ;; +esac + +# Use C for the default configuration in the libtool script +LT_SUPPORTED_TAG([CC]) +_LT_LANG_C_CONFIG +_LT_LANG_DEFAULT_CONFIG +_LT_CONFIG_COMMANDS +])# _LT_SETUP + + +# _LT_PREPARE_SED_QUOTE_VARS +# -------------------------- +# Define a few sed substitution that help us do robust quoting. +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], +[# Backslashify metacharacters that are still active within +# double-quoted strings. +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 delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' +]) + +# _LT_PROG_LTMAIN +# --------------- +# Note that this code is called both from `configure', and `config.status' +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, +# `config.status' has no value for ac_aux_dir unless we are using Automake, +# so we pass a copy along to make sure it has a sensible value anyway. +m4_defun([_LT_PROG_LTMAIN], +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) +ltmain="$ac_aux_dir/ltmain.sh" +])# _LT_PROG_LTMAIN + + + +# So that we can recreate a full libtool script including additional +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS +# in macros and then make a single call at the end using the `libtool' +# label. + + +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) +# ---------------------------------------- +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL_INIT], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) + + +# _LT_CONFIG_LIBTOOL([COMMANDS]) +# ------------------------------ +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) + + +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) +# ----------------------------------------------------- +m4_defun([_LT_CONFIG_SAVE_COMMANDS], +[_LT_CONFIG_LIBTOOL([$1]) +_LT_CONFIG_LIBTOOL_INIT([$2]) +]) + + +# _LT_FORMAT_COMMENT([COMMENT]) +# ----------------------------- +# Add leading comment marks to the start of each line, and a trailing +# full-stop to the whole comment if one is not present already. +m4_define([_LT_FORMAT_COMMENT], +[m4_ifval([$1], [ +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) +)]) + + + + + +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) +# ------------------------------------------------------------------- +# CONFIGNAME is the name given to the value in the libtool script. +# VARNAME is the (base) name used in the configure script. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on +# VARNAME. Any other value will be used directly. +m4_define([_LT_DECL], +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], + [m4_ifval([$1], [$1], [$2])]) + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) + m4_ifval([$4], + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) + lt_dict_add_subkey([lt_decl_dict], [$2], + [tagged?], [m4_ifval([$5], [yes], [no])])]) +]) + + +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) +# -------------------------------------------------------- +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) + + +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_tag_varnames], +[_lt_decl_filter([tagged?], [yes], $@)]) + + +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) +# --------------------------------------------------------- +m4_define([_lt_decl_filter], +[m4_case([$#], + [0], [m4_fatal([$0: too few arguments: $#])], + [1], [m4_fatal([$0: too few arguments: $#: $1])], + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], + [lt_dict_filter([lt_decl_dict], $@)])[]dnl +]) + + +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) +# -------------------------------------------------- +m4_define([lt_decl_quote_varnames], +[_lt_decl_filter([value], [1], $@)]) + + +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_dquote_varnames], +[_lt_decl_filter([value], [2], $@)]) + + +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_varnames_tagged], +[m4_assert([$# <= 2])dnl +_$0(m4_quote(m4_default([$1], [[, ]])), + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) +m4_define([_lt_decl_varnames_tagged], +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) + + +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_all_varnames], +[_$0(m4_quote(m4_default([$1], [[, ]])), + m4_if([$2], [], + m4_quote(lt_decl_varnames), + m4_quote(m4_shift($@))))[]dnl +]) +m4_define([_lt_decl_all_varnames], +[lt_join($@, lt_decl_varnames_tagged([$1], + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl +]) + + +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) +# ------------------------------------ +# Quote a variable value, and forward it to `config.status' so that its +# declaration there will have the same value as in `configure'. VARNAME +# must have a single quote delimited value for this to work. +m4_define([_LT_CONFIG_STATUS_DECLARE], +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) + + +# _LT_CONFIG_STATUS_DECLARATIONS +# ------------------------------ +# We delimit libtool config variables with single quotes, so when +# we write them to config.status, we have to be sure to quote all +# embedded single quotes properly. In configure, this macro expands +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: +# +# ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAGS +# ---------------- +# Output comment and list of tags supported by the script +m4_defun([_LT_LIBTOOL_TAGS], +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl +available_tags="_LT_TAGS"dnl +]) + + +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) +# ----------------------------------- +# Extract the dictionary values for VARNAME (optionally with TAG) and +# expand to a commented shell variable setting: +# +# # Some comment about what VAR is for. +# visible_name=$lt_internal_name +m4_define([_LT_LIBTOOL_DECLARE], +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], + [description])))[]dnl +m4_pushdef([_libtool_name], + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), + [0], [_libtool_name=[$]$1], + [1], [_libtool_name=$lt_[]$1], + [2], [_libtool_name=$lt_[]$1], + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl +]) + + +# _LT_LIBTOOL_CONFIG_VARS +# ----------------------- +# Produce commented declarations of non-tagged libtool config variables +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG +# section) are produced by _LT_LIBTOOL_TAG_VARS. +m4_defun([_LT_LIBTOOL_CONFIG_VARS], +[m4_foreach([_lt_var], + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAG_VARS(TAG) +# ------------------------- +m4_define([_LT_LIBTOOL_TAG_VARS], +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) + + +# _LT_TAGVAR(VARNAME, [TAGNAME]) +# ------------------------------ +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) + + +# _LT_CONFIG_COMMANDS +# ------------------- +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of +# variables for single and double quote escaping we saved from calls +# to _LT_DECL, we can put quote escaped variables declarations +# into `config.status', and then the shell code to quote escape them in +# for loops in `config.status'. Finally, any additional code accumulated +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. +m4_defun([_LT_CONFIG_COMMANDS], +[AC_PROVIDE_IFELSE([LT_OUTPUT], + dnl If the libtool generation code has been placed in $CONFIG_LT, + dnl instead of duplicating it all over again into config.status, + dnl then we will have config.status run $CONFIG_LT later, so it + dnl needs to know what name is stored there: + [AC_CONFIG_COMMANDS([libtool], + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], + dnl If the libtool generation code is destined for config.status, + dnl expand the accumulated commands and init code now: + [AC_CONFIG_COMMANDS([libtool], + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) +])#_LT_CONFIG_COMMANDS + + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], +[ + +# 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 + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +_LT_CONFIG_STATUS_DECLARATIONS +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$[]1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_quote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_dquote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +_LT_OUTPUT_LIBTOOL_INIT +]) + +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) +# ------------------------------------ +# Generate a child script FILE with all initialization necessary to +# reuse the environment learned by the parent script, and make the +# file executable. If COMMENT is supplied, it is inserted after the +# `#!' sequence but before initialization text begins. After this +# macro, additional text can be appended to FILE to form the body of +# the child script. The macro ends with non-zero status if the +# file could not be fully written (such as if the disk is full). +m4_ifdef([AS_INIT_GENERATED], +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], +[m4_defun([_LT_GENERATED_FILE_INIT], +[m4_require([AS_PREPARE])]dnl +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl +[lt_write_fail=0 +cat >$1 <<_ASEOF || lt_write_fail=1 +#! $SHELL +# Generated by $as_me. +$2 +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$1 <<\_ASEOF || lt_write_fail=1 +AS_SHELL_SANITIZE +_AS_PREPARE +exec AS_MESSAGE_FD>&1 +_ASEOF +test $lt_write_fail = 0 && chmod +x $1[]dnl +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT + +# LT_OUTPUT +# --------- +# This macro allows early generation of the libtool script (before +# AC_OUTPUT is called), incase it is used in configure for compilation +# tests. +AC_DEFUN([LT_OUTPUT], +[: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], +[# Run this file to recreate a libtool stub with the current configuration.]) + +cat >>"$CONFIG_LT" <<\_LTEOF +lt_cl_silent=false +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +\`$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2010 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." + +while test $[#] != 0 +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try \`$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try \`$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +lt_cl_success=: +test "$silent" = yes && + lt_config_lt_args="$lt_config_lt_args --quiet" +exec AS_MESSAGE_LOG_FD>/dev/null +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false +exec AS_MESSAGE_LOG_FD>>config.log +$lt_cl_success || AS_EXIT(1) +])# LT_OUTPUT + + +# _LT_CONFIG(TAG) +# --------------- +# If TAG is the built-in tag, 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 TAG from the +# matching tagged config vars. +m4_defun([_LT_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_CONFIG_SAVE_COMMANDS([ + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl + m4_if(_LT_TAG, [C], [ + # 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 + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +_LT_COPYING +_LT_LIBTOOL_TAGS + +# ### BEGIN LIBTOOL CONFIG +_LT_LIBTOOL_CONFIG_VARS +_LT_LIBTOOL_TAG_VARS +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_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 +_LT_EOF + ;; + esac + + _LT_PROG_LTMAIN + + # 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) + + _LT_PROG_REPLACE_SHELLFNS + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +], +[cat <<_LT_EOF >> "$ofile" + +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded +dnl in a comment (ie after a #). +# ### BEGIN LIBTOOL TAG CONFIG: $1 +_LT_LIBTOOL_TAG_VARS(_LT_TAG) +# ### END LIBTOOL TAG CONFIG: $1 +_LT_EOF +])dnl /m4_if +], +[m4_if([$1], [], [ + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile'], []) +])dnl /_LT_CONFIG_SAVE_COMMANDS +])# _LT_CONFIG + + +# LT_SUPPORTED_TAG(TAG) +# --------------------- +# Trace this macro to discover what tags are supported by the libtool +# --tag option, using: +# autoconf --trace 'LT_SUPPORTED_TAG:$1' +AC_DEFUN([LT_SUPPORTED_TAG], []) + + +# C support is built-in for now +m4_define([_LT_LANG_C_enabled], []) +m4_define([_LT_TAGS], []) + + +# LT_LANG(LANG) +# ------------- +# Enable libtool support for the given language if not already enabled. +AC_DEFUN([LT_LANG], +[AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +])# LT_LANG + + +# _LT_LANG(LANGNAME) +# ------------------ +m4_defun([_LT_LANG], +[m4_ifdef([_LT_LANG_]$1[_enabled], [], + [LT_SUPPORTED_TAG([$1])dnl + m4_append([_LT_TAGS], [$1 ])dnl + m4_define([_LT_LANG_]$1[_enabled], [])dnl + _LT_LANG_$1_CONFIG($1)])dnl +])# _LT_LANG + + +# _LT_LANG_DEFAULT_CONFIG +# ----------------------- +m4_defun([_LT_LANG_DEFAULT_CONFIG], +[AC_PROVIDE_IFELSE([AC_PROG_CXX], + [LT_LANG(CXX)], + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) + +AC_PROVIDE_IFELSE([AC_PROG_F77], + [LT_LANG(F77)], + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) + +AC_PROVIDE_IFELSE([AC_PROG_FC], + [LT_LANG(FC)], + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) + +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal +dnl pulling things in needlessly. +AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], + [LT_LANG(GCJ)], + [m4_ifdef([AC_PROG_GCJ], + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([A][M_PROG_GCJ], + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([LT_PROG_GCJ], + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) + +AC_PROVIDE_IFELSE([LT_PROG_RC], + [LT_LANG(RC)], + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) +])# _LT_LANG_DEFAULT_CONFIG + +# Obsolete macros: +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) +dnl AC_DEFUN([AC_LIBTOOL_F77], []) +dnl AC_DEFUN([AC_LIBTOOL_FC], []) +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) +dnl AC_DEFUN([AC_LIBTOOL_RC], []) + + +# _LT_TAG_COMPILER +# ---------------- +m4_defun([_LT_TAG_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])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_TAG_COMPILER + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +m4_defun([_LT_COMPILER_BOILERPLATE], +[m4_require([_LT_DECL_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. +m4_defun([_LT_LINKER_BOILERPLATE], +[m4_require([_LT_DECL_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 -r conftest* +])# _LT_LINKER_BOILERPLATE + +# _LT_REQUIRED_DARWIN_CHECKS +# ------------------------- +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + AC_CHECK_TOOL([LIPO], [lipo], [:]) + AC_CHECK_TOOL([OTOOL], [otool], [:]) + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) + _LT_DECL([], [DSYMUTIL], [1], + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) + _LT_DECL([], [NMEDIT], [1], + [Tool to change global to local symbols on Mac OS X]) + _LT_DECL([], [LIPO], [1], + [Tool to manipulate fat objects and archives on Mac OS X]) + _LT_DECL([], [OTOOL], [1], + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) + _LT_DECL([], [OTOOL64], [1], + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi]) + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS="$save_LDFLAGS" + ]) + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], + [lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + ]) + case $host_os in + rhapsody* | darwin1.[[012]]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[[012]]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac +]) + + +# _LT_DARWIN_LINKER_FEATURES +# -------------------------- +# Checks for linker and compiler features on darwin +m4_defun([_LT_DARWIN_LINKER_FEATURES], +[ + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_automatic, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='' + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + m4_if([$1], [CXX], +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then + _LT_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${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" + fi +],[]) + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi +]) + +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) +# ---------------------------------- +# 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. +# Store the results from the different compilers for each TAGNAME. +# Allow to override them for all tags through lt_cv_aix_libpath. +m4_defun([_LT_SYS_MODULE_PATH_AIX], +[m4_require([_LT_DECL_SED])dnl +if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ + lt_aix_libpath_sed='[ + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }]' + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`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 "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi],[]) + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" + fi + ]) + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) +fi +])# _LT_SYS_MODULE_PATH_AIX + + +# _LT_SHELL_INIT(ARG) +# ------------------- +m4_define([_LT_SHELL_INIT], +[m4_divert_text([M4SH-INIT], [$1 +])])# _LT_SHELL_INIT + + + +# _LT_PROG_ECHO_BACKSLASH +# ----------------------- +# Find how we can fake an echo command that does not interpret backslash. +# In particular, with Autoconf 2.60 or later we add some code to the start +# of the generated configure script which will find a shell with a builtin +# printf (which we can use as an echo command). +m4_defun([_LT_PROG_ECHO_BACKSLASH], +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +AC_MSG_CHECKING([how to print strings]) +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$[]1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + +case "$ECHO" in + printf*) AC_MSG_RESULT([printf]) ;; + print*) AC_MSG_RESULT([print -r]) ;; + *) AC_MSG_RESULT([cat]) ;; +esac + +m4_ifdef([_AS_DETECT_SUGGESTED], +[_AS_DETECT_SUGGESTED([ + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test "X`printf %s $ECHO`" = "X$ECHO" \ + || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) + +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) +])# _LT_PROG_ECHO_BACKSLASH + + +# _LT_WITH_SYSROOT +# ---------------- +AC_DEFUN([_LT_WITH_SYSROOT], +[AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], +[ --with-sysroot[=DIR] Search for dependent libraries within DIR + (or the compiler's sysroot if not specified).], +[], [with_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + AC_MSG_RESULT([${with_sysroot}]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac + + AC_MSG_RESULT([${lt_sysroot:-no}]) +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl +[dependent libraries, and in which our libraries should be installed.])]) + +# _LT_ENABLE_LOCK +# --------------- +m4_defun([_LT_ENABLE_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AS_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 '$LINENO' "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*|s390*-*tpf*|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*|s390*-*tpf*) + 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_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[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" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" +])# _LT_ENABLE_LOCK + + +# _LT_PROG_AR +# ----------- +m4_defun([_LT_PROG_AR], +[AC_CHECK_TOOLS(AR, [ar], false) +: ${AR=ar} +: ${AR_FLAGS=cru} +_LT_DECL([], [AR], [1], [The archiver]) +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) + +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], + [lt_cv_ar_at_file=no + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], + [echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' + AC_TRY_EVAL([lt_ar_try]) + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + AC_TRY_EVAL([lt_ar_try]) + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + ]) + ]) + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi +_LT_DECL([], [archiver_list_spec], [1], + [How to feed a file listing to the archiver]) +])# _LT_PROG_AR + + +# _LT_CMD_OLD_ARCHIVE +# ------------------- +m4_defun([_LT_CMD_OLD_ARCHIVE], +[_LT_PROG_AR + +AC_CHECK_TOOL(STRIP, strip, :) +test -z "$STRIP" && STRIP=: +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) + +AC_CHECK_TOOL(RANLIB, ranlib, :) +test -z "$RANLIB" && RANLIB=: +_LT_DECL([], [RANLIB], [1], + [Commands used to install an old-style archive]) + +# 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 + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac +_LT_DECL([], [old_postinstall_cmds], [2]) +_LT_DECL([], [old_postuninstall_cmds], [2]) +_LT_TAGDECL([], [old_archive_cmds], [2], + [Commands used to build an old-style archive]) +_LT_DECL([], [lock_old_archive_extraction], [0], + [Whether to use a lock for old archive extraction]) +])# _LT_CMD_OLD_ARCHIVE + + +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([_LT_COMPILER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$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:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $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 "$_lt_compiler_boilerplate" | $SED '/^$/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 + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +])# _LT_COMPILER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) + + +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------- +# Check whether the given linker option works +AC_DEFUN([_LT_LINKER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_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 "$_lt_linker_boilerplate" | $SED '/^$/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 -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +])# _LT_LINKER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) + + +# LT_CMD_MAX_LEN +#--------------- +AC_DEFUN([LT_CMD_MAX_LEN], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +# 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* | cegcc*) + # 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; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + 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 + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + 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 +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +])# LT_CMD_MAX_LEN + +# Old name: +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) + + +# _LT_HEADER_DLFCN +# ---------------- +m4_defun([_LT_HEADER_DLFCN], +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl +])# _LT_HEADER_DLFCN + + +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ---------------------------------------------------------------- +m4_defun([_LT_TRY_DLOPEN_SELF], +[m4_require([_LT_HEADER_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 <<_LT_EOF +[#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 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; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +}] +_LT_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_TRY_DLOPEN_SELF + + +# LT_SYS_DLOPEN_SELF +# ------------------ +AC_DEFUN([LT_SYS_DLOPEN_SELF], +[m4_require([_LT_HEADER_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* | cegcc*) + 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="-ldld"], + [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="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + 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_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_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 +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +])# LT_SYS_DLOPEN_SELF + +# Old name: +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) + + +# _LT_COMPILER_C_O([TAGNAME]) +# --------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler. +# This macro does not hard code the compiler like AC_PROG_CC_C_O. +m4_defun([_LT_COMPILER_C_O], +[m4_require([_LT_DECL_SED])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_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:$LINENO: $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:$LINENO: \$? = $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 "$_lt_compiler_boilerplate" | $SED '/^$/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_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 .. + $RM -r conftest + $RM conftest* +]) +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], + [Does compiler simultaneously support -c and -o options?]) +])# _LT_COMPILER_C_O + + +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) +# ---------------------------------- +# Check to see if we can do hard links to lock some files if needed +m4_defun([_LT_COMPILER_FILE_LOCKS], +[m4_require([_LT_ENABLE_LOCK])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_COMPILER_C_O([$1]) + +hard_links="nottested" +if test "$_LT_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 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) +])# _LT_COMPILER_FILE_LOCKS + + +# _LT_CHECK_OBJDIR +# ---------------- +m4_defun([_LT_CHECK_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 +_LT_DECL([], [objdir], [0], + [The name of the directory that contains temporary libtool files])dnl +m4_pattern_allow([LT_OBJDIR])dnl +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", + [Define to the sub-directory in which libtool stores uninstalled libraries.]) +])# _LT_CHECK_OBJDIR + + +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) +# -------------------------------------- +# Check hardcoding attributes. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || + test -n "$_LT_TAGVAR(runpath_var, $1)" || + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$_LT_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_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) + +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; 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 +_LT_TAGDECL([], [hardcode_action], [0], + [How to hardcode a shared library path into an executable]) +])# _LT_LINKER_HARDCODE_LIBPATH + + +# _LT_CMD_STRIPLIB +# ---------------- +m4_defun([_LT_CMD_STRIPLIB], +[m4_require([_LT_DECL_EGREP]) +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 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) +_LT_DECL([], [striplib], [1]) +])# _LT_CMD_STRIPLIB + + +# _LT_SYS_DYNAMIC_LINKER([TAG]) +# ----------------------------- +# PORTME Fill in your ld.so characteristics +m4_defun([_LT_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_OBJDUMP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +m4_if([$1], + [], [ +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # 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 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # 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; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +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' + ;; + +aix[[4-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + 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=`func_echo_all "$lib" | $SED '\''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' + ;; + esac + ;; + +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* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + 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~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + 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}' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + 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 + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH. + 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 + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # 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}${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 + # Handle Gentoo/FreeBSD as it was Linux + case $host_vendor in + gentoo) + version_type=linux ;; + *) + version_type=freebsd-$objformat ;; + esac + + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + linux) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + need_lib_prefix=no + need_version=no + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # 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 + ;; + +haiku*) + version_type=linux + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + 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=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + 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' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +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 | kopensolaris*-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 + + # Some binutils ld are patched to set DT_RUNPATH + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], + [lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], + [lt_cv_shlibpath_overrides_runpath=yes])]) + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + ]) + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # 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;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=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +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 + 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 + shlibpath_overrides_runpath=yes + 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' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + 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' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +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 + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + +_LT_DECL([], [variables_saved_for_relink], [1], + [Variables whose values should be saved in libtool wrapper scripts and + restored at link time]) +_LT_DECL([], [need_lib_prefix], [0], + [Do we need the "lib" prefix for modules?]) +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) +_LT_DECL([], [version_type], [0], [Library versioning type]) +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) +_LT_DECL([], [shlibpath_overrides_runpath], [0], + [Is shlibpath searched before the hard-coded library search path?]) +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) +_LT_DECL([], [library_names_spec], [1], + [[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]]) +_LT_DECL([], [soname_spec], [1], + [[The coded name of the library, if different from the real name]]) +_LT_DECL([], [install_override_mode], [1], + [Permission mode override for installation of shared libraries]) +_LT_DECL([], [postinstall_cmds], [2], + [Command to use after installation of a shared archive]) +_LT_DECL([], [postuninstall_cmds], [2], + [Command to use after uninstallation of a shared archive]) +_LT_DECL([], [finish_cmds], [2], + [Commands used to finish a libtool library installation in a directory]) +_LT_DECL([], [finish_eval], [1], + [[As "finish_cmds", except a single script fragment to be evaled but + not shown]]) +_LT_DECL([], [hardcode_into_libs], [0], + [Whether we should hardcode library paths into libraries]) +_LT_DECL([], [sys_lib_search_path_spec], [2], + [Compile-time system search path for libraries]) +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], + [Run-time system search path for libraries]) +])# _LT_SYS_DYNAMIC_LINKER + + +# _LT_PATH_TOOL_PREFIX(TOOL) +# -------------------------- +# find a file program which can recognize shared library +AC_DEFUN([_LT_PATH_TOOL_PREFIX], +[m4_require([_LT_DECL_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="m4_if([$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 <<_LT_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@gnu.org + +_LT_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 +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +])# _LT_PATH_TOOL_PREFIX + +# Old name: +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) + + +# _LT_PATH_MAGIC +# -------------- +# find a file program which can recognize a shared library +m4_defun([_LT_PATH_MAGIC], +[_LT_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 + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# _LT_PATH_MAGIC + + +# LT_PATH_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([LT_PATH_LD], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl + +AC_ARG_WITH([gnu-ld], + [AS_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])dnl + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +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 + ;; + +haiku*) + 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])(-bit)?( [LM]SB)? 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 | kopensolaris*-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=pass_all + ;; + +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 + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + 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 + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` + fi + ;; + esac +fi + +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 + +_LT_DECL([], [deplibs_check_method], [1], + [Method to check whether dependent libraries are shared objects]) +_LT_DECL([], [file_magic_cmd], [1], + [Command to use when deplibs_check_method = "file_magic"]) +_LT_DECL([], [file_magic_glob], [1], + [How to find potential files when deplibs_check_method = "file_magic"]) +_LT_DECL([], [want_nocaseglob], [1], + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) +])# _LT_CHECK_MAGIC_METHOD + + +# LT_PATH_NM +# ---------- +# find the pathname to a BSD- or MS-compatible name lister +AC_DEFUN([LT_PATH_NM], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (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 + : ${lt_cv_path_NM=no} +fi]) +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +])# LT_PATH_NM + +# Old names: +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_NM], []) +dnl AC_DEFUN([AC_PROG_NM], []) + +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB +# -------------------------------- +# how to determine the name of the shared library +# associated with a specific link library. +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +m4_require([_LT_DECL_DLLTOOL]) +AC_CACHE_CHECK([how to associate runtime and link libraries], +lt_cv_sharedlib_from_linklib_cmd, +[lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac +]) +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + +_LT_DECL([], [sharedlib_from_linklib_cmd], [1], + [Command to associate shared and link libraries]) +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB + + +# _LT_PATH_MANIFEST_TOOL +# ---------------------- +# locate the manifest tool +m4_defun([_LT_PATH_MANIFEST_TOOL], +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], + [lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&AS_MESSAGE_LOG_FD + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest*]) +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl +])# _LT_PATH_MANIFEST_TOOL + + +# LT_LIB_M +# -------- +# check for math library +AC_DEFUN([LT_LIB_M], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-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_SUBST([LIBM]) +])# LT_LIB_M + +# Old name: +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_CHECK_LIBM], []) + + +# _LT_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------- +m4_defun([_LT_COMPILER_NO_RTTI], +[m4_require([_LT_TAG_COMPILER])dnl + +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; + *) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; + esac + + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], + [Compiler flag to turn off builtin functions]) +])# _LT_COMPILER_NO_RTTI + + +# _LT_CMD_GLOBAL_SYMBOLS +# ---------------------- +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([LT_PATH_NM])dnl +AC_REQUIRE([LT_PATH_LD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_TAG_COMPILER])dnl + +# 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]]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + 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 + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \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\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# 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 + +# Try without a prefix underscore, 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. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK ['"\ +" {last_section=section; section=\$ 3};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx]" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_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 <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[[]] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_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_globsym_save_LIBS + CFLAGS=$lt_globsym_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 -rf 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 + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], + [Take the output of nm and produce a listing of raw symbols and C names]) +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], + [Transform the output of nm in a proper C declaration]) +_LT_DECL([global_symbol_to_c_name_address], + [lt_cv_sys_global_symbol_to_c_name_address], [1], + [Transform the output of nm in a C name address pair]) +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], + [Transform the output of nm in a C name address pair when lib prefix is needed]) +_LT_DECL([], [nm_file_list_spec], [1], + [Specify filename containing input files for $NM]) +]) # _LT_CMD_GLOBAL_SYMBOLS + + +# _LT_COMPILER_PIC([TAGNAME]) +# --------------------------- +m4_defun([_LT_COMPILER_PIC], +[m4_require([_LT_TAG_COMPILER])dnl +_LT_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_TAGVAR(lt_prog_compiler_static, $1)= + +m4_if([$1], [CXX], [ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_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_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # 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_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # 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 + m4_if([$1], [GCJ], [], + [_LT_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_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $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_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_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 + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # 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). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_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_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_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_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_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_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_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_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # 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_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # 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 + m4_if([$1], [GCJ], [], + [_LT_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_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + 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_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # 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). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + hpux9* | hpux10* | hpux11*) + _LT_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_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' + ;; + nagfor*) + # NAG Fortran compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ F* | *Sun*Fortran*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + *Sun\ C*) + # Sun C 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + esac + ;; + + newsos6) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + solaris*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" + ;; +esac + +AC_CACHE_CHECK([for $compiler option to produce PIC], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], + [Additional compiler flags for building library objects]) + +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], + [How to pass a linker flag through the compiler]) +# +# Check to make sure the static flag actually works. +# +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], + [Compiler flag to prevent dynamic linking]) +])# _LT_COMPILER_PIC + + +# _LT_LINKER_SHLIBS([TAGNAME]) +# ---------------------------- +# See if the linker supports building shared libraries. +m4_defun([_LT_LINKER_SHLIBS], +[AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +m4_if([$1], [CXX], [ + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + case $host_os in + aix[[4-9]]*) + # 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 + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_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_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + ;; + esac + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac +], [ + runpath_var= + _LT_TAGVAR(allow_undefined_flag, $1)= + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(archive_cmds, $1)= + _LT_TAGVAR(archive_expsym_cmds, $1)= + _LT_TAGVAR(compiler_needs_object, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(hardcode_automatic, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= + _LT_TAGVAR(hardcode_libdir_separator, $1)= + _LT_TAGVAR(hardcode_minus_L, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(inherit_rpath, $1)=no + _LT_TAGVAR(link_all_deplibs, $1)=unknown + _LT_TAGVAR(module_cmds, $1)= + _LT_TAGVAR(module_expsym_cmds, $1)= + _LT_TAGVAR(old_archive_from_new_cmds, $1)= + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_TAGVAR(thread_safe_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_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_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # 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. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # 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_TAGVAR(ld_shlibs, $1)=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; + *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = 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_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_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_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [[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 + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, 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 install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_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_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_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_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_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_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_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_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* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$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' ;; + lf95*) # Lahey Fortran 8.1 + _LT_TAGVAR(whole_archive_flag_spec, $1)= + tmp_sharedflag='--shared' ;; + xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + _LT_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 + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_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~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $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_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_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. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_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_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 + ;; + *) + # 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. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_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_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_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_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_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_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_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + 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 + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_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]].*|aix[[5-9]]*) + 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_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + 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_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_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_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 + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_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_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_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_SYS_MODULE_PATH_AIX([$1]) + _LT_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_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_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*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_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_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + bsdi[[45]]*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # 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. + case $cc_basename in + cl*) + # Native MSVC + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # 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_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_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_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + esac + ;; + + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + freebsd1*) + _LT_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_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${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_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_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_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_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_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_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + m4_if($1, [], [ + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + _LT_LINKER_OPTION([if $CC understands -b], + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], + [_LT_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_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_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_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], + [lt_cv_irix_exported_symbol], + [save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + AC_LINK_IFELSE( + [AC_LANG_SOURCE( + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], + [C++], [[int foo (void) { return 0; }]], + [Fortran 77], [[ + subroutine foo + end]], + [Fortran], [[ + subroutine foo + end]])])], + [lt_cv_irix_exported_symbol=yes], + [lt_cv_irix_exported_symbol=no]) + LDFLAGS="$save_LDFLAGS"]) + if test "$lt_cv_irix_exported_symbol" = yes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_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_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_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_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + solaris*) + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_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' + ;; + *) + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_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} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_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_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_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_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_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_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' + ;; + esac + fi + fi +]) +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld + +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl +_LT_DECL([], [extract_expsyms_cmds], [2], + [The commands to extract the exported symbol list from a shared archive]) + +# +# Do we need to explicitly link libc? +# +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_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_CACHE_CHECK([whether -lc should be explicitly linked in], + [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), + [$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_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) + _LT_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) + then + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no + else + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + ]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) + ;; + esac + fi + ;; +esac + +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], + [Whether or not to add -lc for building shared libraries]) +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], + [enable_shared_with_static_runtimes], [0], + [Whether or not to disallow shared libs when runtime libs are static]) +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], + [Compiler flag to allow reflexive dlopens]) +_LT_TAGDECL([], [whole_archive_flag_spec], [1], + [Compiler flag to generate shared objects directly from archives]) +_LT_TAGDECL([], [compiler_needs_object], [1], + [Whether the compiler copes with passing no objects directly]) +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], + [Create an old-style archive from a shared archive]) +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], + [Create a temporary old-style archive to link instead of a shared archive]) +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) +_LT_TAGDECL([], [archive_expsym_cmds], [2]) +_LT_TAGDECL([], [module_cmds], [2], + [Commands used to build a loadable module if different from building + a shared archive.]) +_LT_TAGDECL([], [module_expsym_cmds], [2]) +_LT_TAGDECL([], [with_gnu_ld], [1], + [Whether we are building with GNU ld or not]) +_LT_TAGDECL([], [allow_undefined_flag], [1], + [Flag that allows shared libraries with undefined symbols to be built]) +_LT_TAGDECL([], [no_undefined_flag], [1], + [Flag that enforces no undefined symbols]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], + [Flag to hardcode $libdir into a binary during linking. + This must work even if $libdir does not exist]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [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]]) +_LT_TAGDECL([], [hardcode_libdir_separator], [1], + [Whether we need a single "-rpath" flag with a separated argument]) +_LT_TAGDECL([], [hardcode_direct], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary]) +_LT_TAGDECL([], [hardcode_direct_absolute], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary and the resulting library dependency is + "absolute", i.e impossible to change by setting ${shlibpath_var} if the + library is relocated]) +_LT_TAGDECL([], [hardcode_minus_L], [0], + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_automatic], [0], + [Set to "yes" if building a shared library automatically hardcodes DIR + into the library and all subsequent libraries and executables linked + against it]) +_LT_TAGDECL([], [inherit_rpath], [0], + [Set to yes if linker adds runtime paths of dependent libraries + to runtime path list]) +_LT_TAGDECL([], [link_all_deplibs], [0], + [Whether libtool must link a program against all its dependency libraries]) +_LT_TAGDECL([], [always_export_symbols], [0], + [Set to "yes" if exported symbols are required]) +_LT_TAGDECL([], [export_symbols_cmds], [2], + [The commands to list exported symbols]) +_LT_TAGDECL([], [exclude_expsyms], [1], + [Symbols that should not be listed in the preloaded symbols]) +_LT_TAGDECL([], [include_expsyms], [1], + [Symbols that must always be exported]) +_LT_TAGDECL([], [prelink_cmds], [2], + [Commands necessary for linking programs (against libraries) with templates]) +_LT_TAGDECL([], [postlink_cmds], [2], + [Commands necessary for finishing linking programs]) +_LT_TAGDECL([], [file_list_spec], [1], + [Specify filename containing input files]) +dnl FIXME: Not yet implemented +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], +dnl [Compiler flag to generate thread safe objects]) +])# _LT_LINKER_SHLIBS + + +# _LT_LANG_C_CONFIG([TAG]) +# ------------------------ +# Ensure that the configuration variables for a C compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_C_CONFIG], +[m4_require([_LT_DECL_EGREP])dnl +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_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_TAG_COMPILER +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + LT_SYS_DLOPEN_SELF + _LT_CMD_STRIPLIB + + # 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 + ;; + + aix[[4-9]]*) + 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_CONFIG($1) +fi +AC_LANG_POP +CC="$lt_save_CC" +])# _LT_LANG_C_CONFIG + + +# _LT_LANG_CXX_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a C++ compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_CXX_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +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 +else + _lt_caught_CXX_error=yes +fi + +AC_LANG_PUSH(C++) +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(compiler_needs_object, $1)=no +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # 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_TAG_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_CFLAGS=$CFLAGS + 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++"} + CFLAGS=$CXXFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + else + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + LT_PATH_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_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_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_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_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_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 -v "^Configured with:" | $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_TAGVAR(ld_shlibs, $1)=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + 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]].*|aix[[5-9]]*) + 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_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + 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_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_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_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 + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + _LT_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_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_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_SYS_MODULE_PATH_AIX([$1]) + _LT_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_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + _LT_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_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # 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_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_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_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_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + freebsd[[12]]*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + freebsd-elf*) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + gnu*) + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + hpux9*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_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_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_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_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_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; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${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_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_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_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_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_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-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_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_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-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_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_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; func_echo_all "$list"' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_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_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # 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_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_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_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_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_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_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' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_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_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_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=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_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 -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_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_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # 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_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_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::"' + ;; + + *nto* | *qnx*) + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_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_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_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + osf3* | 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_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_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + case $host in + osf3*) + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + ;; + *) + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_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_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + ;; + esac + + _LT_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=`func_echo_all "$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; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + _LT_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_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 -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_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_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_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_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='func_echo_all' + + # 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_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_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_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_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -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 -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_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 -v "^Configured with:" | $GREP "\-L"' + fi + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_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_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_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. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ + '"$_LT_TAGVAR(old_archive_cmds, $1)" + _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ + '"$_LT_TAGVAR(reload_cmds, $1)" + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$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_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + + _LT_TAGVAR(GCC, $1)="$GXX" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + 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 +fi # test "$_lt_caught_CXX_error" != yes + +AC_LANG_POP +])# _LT_LANG_CXX_CONFIG + + +# _LT_FUNC_STRIPNAME_CNF +# ---------------------- +# func_stripname_cnf prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# +# This function is identical to the (non-XSI) version of func_stripname, +# except this one can be used by m4 code that may be executed by configure, +# rather than the libtool script. +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl +AC_REQUIRE([_LT_DECL_SED]) +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf +])# _LT_FUNC_STRIPNAME_CNF + +# _LT_SYS_HIDDEN_LIBDEPS([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. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl +# Dependencies to place before and after the object being linked: +_LT_TAGVAR(predep_objects, $1)= +_LT_TAGVAR(postdep_objects, $1)= +_LT_TAGVAR(predeps, $1)= +_LT_TAGVAR(postdeps, $1)= +_LT_TAGVAR(compiler_lib_search_path, $1)= + +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... +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF +int a; +void foo (void) { a = 0; } +_LT_EOF +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer*4 a + a=0 + return + end +_LT_EOF +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer a + a=0 + return + end +_LT_EOF +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF +public class foo { + private int a; + public void bar (void) { + a = 0; + } +}; +_LT_EOF +]) + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +esac + +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 + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${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 + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} 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_TAGVAR(compiler_lib_search_path, $1)"; then + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" + else + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_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_TAGVAR(postdeps, $1)"; then + _LT_TAGVAR(postdeps, $1)="${prev}${p}" + else + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$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_TAGVAR(predep_objects, $1)"; then + _LT_TAGVAR(predep_objects, $1)="$p" + else + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" + fi + else + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then + _LT_TAGVAR(postdep_objects, $1)="$p" + else + _LT_TAGVAR(postdep_objects, $1)="$_LT_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 +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +m4_if([$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_TAGVAR(predep_objects,$1)= + _LT_TAGVAR(postdep_objects,$1)= + _LT_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_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # 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_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac +]) + +case " $_LT_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac + _LT_TAGVAR(compiler_lib_search_dirs, $1)= +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], + [The directories searched by this compiler when creating a shared library]) +_LT_TAGDECL([], [predep_objects], [1], + [Dependencies to place before and after the objects being linked to + create a shared library]) +_LT_TAGDECL([], [postdep_objects], [1]) +_LT_TAGDECL([], [predeps], [1]) +_LT_TAGDECL([], [postdeps], [1]) +_LT_TAGDECL([], [compiler_lib_search_path], [1], + [The library search path used internally by the compiler when linking + a shared library]) +])# _LT_SYS_HIDDEN_LIBDEPS + + +# _LT_LANG_F77_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a Fortran 77 compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_F77_CONFIG], +[AC_LANG_PUSH(Fortran 77) +if test -z "$F77" || test "X$F77" = "Xno"; then + _lt_disable_F77=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_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_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the F77 compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_F77" != yes; then + # 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_TAG_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_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${F77-"f77"} + CFLAGS=$FFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + GCC=$G77 + if test -n "$compiler"; then + 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 + ;; + aix[[4-9]]*) + 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_TAGVAR(GCC, $1)="$G77" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC="$lt_save_CC" + CFLAGS="$lt_save_CFLAGS" +fi # test "$_lt_disable_F77" != yes + +AC_LANG_POP +])# _LT_LANG_F77_CONFIG + + +# _LT_LANG_FC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for a Fortran compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_FC_CONFIG], +[AC_LANG_PUSH(Fortran) + +if test -z "$FC" || test "X$FC" = "Xno"; then + _lt_disable_FC=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for fc test sources. +ac_ext=${ac_fc_srcext-f} + +# Object file extension for compiled fc test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the FC compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_FC" != yes; then + # 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_TAG_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_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${FC-"f95"} + CFLAGS=$FCFLAGS + compiler=$CC + GCC=$ac_cv_fc_compiler_gnu + + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + 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 + ;; + aix[[4-9]]*) + 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_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS +fi # test "$_lt_disable_FC" != yes + +AC_LANG_POP +])# _LT_LANG_FC_CONFIG + + +# _LT_LANG_GCJ_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Java Compiler compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_GCJ_CONFIG], +[AC_REQUIRE([LT_PROG_GCJ])dnl +AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_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_TAG_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_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GCJ-"gcj"} +CFLAGS=$GCJFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)="$LD" +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GCJ_CONFIG + + +# _LT_LANG_RC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for the Windows resource compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_RC_CONFIG], +[AC_REQUIRE([LT_PROG_RC])dnl +AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_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_TAG_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_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +CFLAGS= +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +if test -n "$compiler"; then + : + _LT_CONFIG($1) +fi + +GCC=$lt_save_GCC +AC_LANG_RESTORE +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_RC_CONFIG + + +# LT_PROG_GCJ +# ----------- +AC_DEFUN([LT_PROG_GCJ], +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) + + +# LT_PROG_RC +# ---------- +AC_DEFUN([LT_PROG_RC], +[AC_CHECK_TOOL(RC, windres,) +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_RC], []) + + +# _LT_DECL_EGREP +# -------------- +# If we don't have a new enough Autoconf to choose the best grep +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_EGREP], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_REQUIRE([AC_PROG_FGREP])dnl +test -z "$GREP" && GREP=grep +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) +_LT_DECL([], [EGREP], [1], [An ERE matcher]) +_LT_DECL([], [FGREP], [1], [A literal string matcher]) +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too +AC_SUBST([GREP]) +]) + + +# _LT_DECL_OBJDUMP +# -------------- +# If we don't have a new enough Autoconf to choose the best objdump +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_OBJDUMP], +[AC_CHECK_TOOL(OBJDUMP, objdump, false) +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) +AC_SUBST([OBJDUMP]) +]) + +# _LT_DECL_DLLTOOL +# ---------------- +# Ensure DLLTOOL variable is set. +m4_defun([_LT_DECL_DLLTOOL], +[AC_CHECK_TOOL(DLLTOOL, dlltool, false) +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) +AC_SUBST([DLLTOOL]) +]) + +# _LT_DECL_SED +# ------------ +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +m4_defun([_LT_DECL_SED], +[AC_PROG_SED +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) +])# _LT_DECL_SED + +m4_ifndef([AC_PROG_SED], [ +# 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. # + +m4_defun([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]) +])#AC_PROG_SED +])#m4_ifndef + +# Old name: +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_SED], []) + + +# _LT_CHECK_SHELL_FEATURES +# ------------------------ +# Find out whether the shell is Bourne or XSI compatible, +# or has some other useful features. +m4_defun([_LT_CHECK_SHELL_FEATURES], +[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +AC_MSG_RESULT([$xsi_shell]) +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) + +AC_MSG_CHECKING([whether the shell understands "+="]) +lt_shell_append=no +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +AC_MSG_RESULT([$lt_shell_append]) +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl + +# 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 + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl +])# _LT_CHECK_SHELL_FEATURES + + +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) +# ------------------------------------------------------ +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. +m4_defun([_LT_PROG_FUNCTION_REPLACE], +[dnl { +sed -e '/^$1 ()$/,/^} # $1 /c\ +$1 ()\ +{\ +m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: +]) + + +# _LT_PROG_REPLACE_SHELLFNS +# ------------------------- +# Replace existing portable implementations of several shell functions with +# equivalent extended shell implementations where those features are available.. +m4_defun([_LT_PROG_REPLACE_SHELLFNS], +[if test x"$xsi_shell" = xyes; then + _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac]) + + _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl + func_basename_result="${1##*/}"]) + + _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}"]) + + _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"}]) + + _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl + func_split_long_opt_name=${1%%=*} + func_split_long_opt_arg=${1#*=}]) + + _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl + func_split_short_opt_arg=${1#??} + func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) + + _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac]) + + _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) + + _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) + + _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) +fi + +if test x"$lt_shell_append" = xyes; then + _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) + + _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl + func_quote_for_eval "${2}" +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ + eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) +fi +]) + +# _LT_PATH_CONVERSION_FUNCTIONS +# ----------------------------- +# Determine which file name conversion functions should be used by +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed +# for certain cross-compile configurations and native mingw. +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_MSG_CHECKING([how to convert $build file names to $host format]) +AC_CACHE_VAL(lt_cv_to_host_file_cmd, +[case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac +]) +to_host_file_cmd=$lt_cv_to_host_file_cmd +AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], + [0], [convert $build file names to $host format])dnl + +AC_MSG_CHECKING([how to convert $build file names to toolchain format]) +AC_CACHE_VAL(lt_cv_to_tool_file_cmd, +[#assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac +]) +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], + [0], [convert $build files to toolchain format])dnl +])# _LT_PATH_CONVERSION_FUNCTIONS + +# Helper functions for option handling. -*- Autoconf -*- +# +# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# Written by Gary V. Vaughan, 2004 +# +# 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 7 ltoptions.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) + + +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) +# ------------------------------------------ +m4_define([_LT_MANGLE_OPTION], +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) + + +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) +# --------------------------------------- +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a +# matching handler defined, dispatch to it. Other OPTION-NAMEs are +# saved as a flag. +m4_define([_LT_SET_OPTION], +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), + _LT_MANGLE_DEFUN([$1], [$2]), + [m4_warning([Unknown $1 option `$2'])])[]dnl +]) + + +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) +# ------------------------------------------------------------ +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +m4_define([_LT_IF_OPTION], +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) + + +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) +# ------------------------------------------------------- +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME +# are set. +m4_define([_LT_UNLESS_OPTIONS], +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), + [m4_define([$0_found])])])[]dnl +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 +])[]dnl +]) + + +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) +# ---------------------------------------- +# OPTION-LIST is a space-separated list of Libtool options associated +# with MACRO-NAME. If any OPTION has a matching handler declared with +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about +# the unknown option and exit. +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [_LT_SET_OPTION([$1], _LT_Option)]) + +m4_if([$1],[LT_INIT],[ + dnl + dnl Simply set some default values (i.e off) if boolean options were not + dnl specified: + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no + ]) + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no + ]) + dnl + dnl If no reference was made to various pairs of opposing options, then + dnl we run the default mode handler for the pair. For example, if neither + dnl `shared' nor `disable-shared' was passed, we enable building of shared + dnl archives by default: + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], + [_LT_ENABLE_FAST_INSTALL]) + ]) +])# _LT_SET_OPTIONS + + + +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) +# ----------------------------------------- +m4_define([_LT_MANGLE_DEFUN], +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) + + +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) +# ----------------------------------------------- +m4_define([LT_OPTION_DEFINE], +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl +])# LT_OPTION_DEFINE + + +# dlopen +# ------ +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes +]) + +AU_DEFUN([AC_LIBTOOL_DLOPEN], +[_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) + + +# win32-dll +# --------- +# Declare package support for building win32 dll's. +LT_OPTION_DEFINE([LT_INIT], [win32-dll], +[enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; +esac + +test -z "$AS" && AS=as +_LT_DECL([], [AS], [1], [Assembler program])dnl + +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl + +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl +])# win32-dll + +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) + + +# _LT_ENABLE_SHARED([DEFAULT]) +# ---------------------------- +# implement the --enable-shared flag, and supports the `shared' and +# `disable-shared' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_SHARED], +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]_LT_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=]_LT_ENABLE_SHARED_DEFAULT) + + _LT_DECL([build_libtool_libs], [enable_shared], [0], + [Whether or not to build shared libraries]) +])# _LT_ENABLE_SHARED + +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) + +AC_DEFUN([AC_DISABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) + +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_SHARED], []) +dnl AC_DEFUN([AM_DISABLE_SHARED], []) + + + +# _LT_ENABLE_STATIC([DEFAULT]) +# ---------------------------- +# implement the --enable-static flag, and support the `static' and +# `disable-static' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_STATIC], +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([static], + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]_LT_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=]_LT_ENABLE_STATIC_DEFAULT) + + _LT_DECL([build_old_libs], [enable_static], [0], + [Whether or not to build static libraries]) +])# _LT_ENABLE_STATIC + +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) + +AC_DEFUN([AC_DISABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], [disable-static]) +]) + +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_STATIC], []) +dnl AC_DEFUN([AM_DISABLE_STATIC], []) + + + +# _LT_ENABLE_FAST_INSTALL([DEFAULT]) +# ---------------------------------- +# implement the --enable-fast-install flag, and support the `fast-install' +# and `disable-fast-install' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_FAST_INSTALL], +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([fast-install], + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]_LT_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=]_LT_ENABLE_FAST_INSTALL_DEFAULT) + +_LT_DECL([fast_install], [enable_fast_install], [0], + [Whether or not to optimize for fast installation])dnl +])# _LT_ENABLE_FAST_INSTALL + +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) + +# Old names: +AU_DEFUN([AC_ENABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) + +AU_DEFUN([AC_DISABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) + + +# _LT_WITH_PIC([MODE]) +# -------------------- +# implement the --with-pic flag, and support the `pic-only' and `no-pic' +# LT_INIT options. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +m4_define([_LT_WITH_PIC], +[AC_ARG_WITH([pic], + [AS_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=m4_default([$1], [default]) + +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl +])# _LT_WITH_PIC + +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) + +# Old name: +AU_DEFUN([AC_LIBTOOL_PICMODE], +[_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) + + +m4_define([_LTDL_MODE], []) +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], + [m4_define([_LTDL_MODE], [nonrecursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [recursive], + [m4_define([_LTDL_MODE], [recursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [subproject], + [m4_define([_LTDL_MODE], [subproject])]) + +m4_define([_LTDL_TYPE], []) +LT_OPTION_DEFINE([LTDL_INIT], [installable], + [m4_define([_LTDL_TYPE], [installable])]) +LT_OPTION_DEFINE([LTDL_INIT], [convenience], + [m4_define([_LTDL_TYPE], [convenience])]) + +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# 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 6 ltsugar.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) + + +# lt_join(SEP, ARG1, [ARG2...]) +# ----------------------------- +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their +# associated separator. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier +# versions in m4sugar had bugs. +m4_define([lt_join], +[m4_if([$#], [1], [], + [$#], [2], [[$2]], + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) +m4_define([_lt_join], +[m4_if([$#$2], [2], [], + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) + + +# lt_car(LIST) +# lt_cdr(LIST) +# ------------ +# Manipulate m4 lists. +# These macros are necessary as long as will still need to support +# Autoconf-2.59 which quotes differently. +m4_define([lt_car], [[$1]]) +m4_define([lt_cdr], +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], + [$#], 1, [], + [m4_dquote(m4_shift($@))])]) +m4_define([lt_unquote], $1) + + +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) +# ------------------------------------------ +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. +# Note that neither SEPARATOR nor STRING are expanded; they are appended +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). +# No SEPARATOR is output if MACRO-NAME was previously undefined (different +# than defined and empty). +# +# This macro is needed until we can rely on Autoconf 2.62, since earlier +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. +m4_define([lt_append], +[m4_define([$1], + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) + + + +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) +# ---------------------------------------------------------- +# Produce a SEP delimited list of all paired combinations of elements of +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list +# has the form PREFIXmINFIXSUFFIXn. +# Needed until we can rely on m4_combine added in Autoconf 2.62. +m4_define([lt_combine], +[m4_if(m4_eval([$# > 3]), [1], + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl +[[m4_foreach([_Lt_prefix], [$2], + [m4_foreach([_Lt_suffix], + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) + + +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) +# ----------------------------------------------------------------------- +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. +m4_define([lt_if_append_uniq], +[m4_ifdef([$1], + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], + [lt_append([$1], [$2], [$3])$4], + [$5])], + [lt_append([$1], [$2], [$3])$4])]) + + +# lt_dict_add(DICT, KEY, VALUE) +# ----------------------------- +m4_define([lt_dict_add], +[m4_define([$1($2)], [$3])]) + + +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) +# -------------------------------------------- +m4_define([lt_dict_add_subkey], +[m4_define([$1($2:$3)], [$4])]) + + +# lt_dict_fetch(DICT, KEY, [SUBKEY]) +# ---------------------------------- +m4_define([lt_dict_fetch], +[m4_ifval([$3], + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) + + +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) +# ----------------------------------------------------------------- +m4_define([lt_if_dict_fetch], +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], + [$5], + [$6])]) + + +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) +# -------------------------------------------------------------- +m4_define([lt_dict_filter], +[m4_if([$5], [], [], + [lt_join(m4_quote(m4_default([$4], [[, ]])), + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl +]) + +# ltversion.m4 -- version numbers -*- Autoconf -*- +# +# Copyright (C) 2004 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004 +# +# 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. + +# @configure_input@ + +# serial 3293 ltversion.m4 +# This file is part of GNU Libtool + +m4_define([LT_PACKAGE_VERSION], [2.4]) +m4_define([LT_PACKAGE_REVISION], [1.3293]) + +AC_DEFUN([LTVERSION_VERSION], +[macro_version='2.4' +macro_revision='1.3293' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) + +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004. +# +# 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 lt~obsolete.m4 + +# These exist entirely to fool aclocal when bootstrapping libtool. +# +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) +# which have later been changed to m4_define as they aren't part of the +# exported API, or moved to Autoconf or Automake where they belong. +# +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us +# using a macro with the same name in our local m4/libtool.m4 it'll +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define +# and doesn't know about Autoconf macros at all.) +# +# So we provide this file, which has a silly filename so it's always +# included after everything else. This provides aclocal with the +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything +# because those macros already exist, or will be overwritten later. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. +# +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. +# Yes, that means every name once taken will need to remain here until +# we give up compatibility with versions before 1.7, at which point +# we need to keep only those names which we still refer to. + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) + +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) + +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# serial 1 (pkg-config-0.24) +# +# Copyright © 2004 Scott James Remnant . +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# PKG_PROG_PKG_CONFIG([MIN-VERSION]) +# ---------------------------------- +AC_DEFUN([PKG_PROG_PKG_CONFIG], +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) +AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) +AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) + +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. +# +# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +# only at the first occurence in configure.ac, so if the first place +# it's called might be skipped (such as if it is within an "if", you +# have 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_default([$2], [:]) +m4_ifvaln([$3], [else + $3])dnl +fi]) + +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) +# --------------------------------------------- +m4_define([_PKG_CONFIG], +[if test -n "$$1"; then + pkg_cv_[]$1="$$1" + elif test -n "$PKG_CONFIG"; then + PKG_CHECK_EXISTS([$3], + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes ], + [pkg_failed=yes]) + 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 + AC_MSG_RESULT([no]) + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + + m4_default([$4], [AC_MSG_ERROR( +[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])[]dnl + ]) +elif test $pkg_failed = untried; then + AC_MSG_RESULT([no]) + m4_default([$4], [AC_MSG_FAILURE( +[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 .])[]dnl + ]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + AC_MSG_RESULT([yes]) + $3 +fi[]dnl +])# PKG_CHECK_MODULES + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -31,10 +8631,10 @@ # 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' +[am__api_version='1.11' 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.1], [], +m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -48,12 +8648,12 @@ # 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. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10.1])dnl +[AM_AUTOMAKE_VERSION([1.11.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- @@ -110,14 +8710,14 @@ # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # 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 +# serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- @@ -130,6 +8730,7 @@ AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' @@ -143,14 +8744,14 @@ Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # 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 +# serial 10 # 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, @@ -207,6 +8808,16 @@ if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + 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 @@ -224,7 +8835,17 @@ done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + # 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. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested @@ -234,19 +8855,23 @@ break fi ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; 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} \ + source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + $SHELL ./depcomp $depcc -c $am__minus_obj 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 && + grep $am__obj 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 @@ -303,57 +8928,68 @@ # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # 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 +#serial 5 # _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 -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/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" +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + 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 -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/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 -done +} ])# _AM_OUTPUT_DEPENDENCY_COMMANDS @@ -385,13 +9021,13 @@ # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006, 2008 Free Software Foundation, Inc. +# 2005, 2006, 2008, 2009 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 13 +# serial 16 # 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. @@ -408,7 +9044,7 @@ # 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 +[AC_PREREQ([2.62])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 @@ -459,8 +9095,8 @@ 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_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. @@ -468,24 +9104,37 @@ 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([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 + [_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 + [_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 + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header @@ -508,7 +9157,7 @@ done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -519,7 +9168,14 @@ # 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"} +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. @@ -545,13 +9201,13 @@ # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 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 +# serial 4 # AM_MAKE_INCLUDE() # ----------------- @@ -560,7 +9216,7 @@ [am_make=${MAKE-make} cat > confinc << 'END' am__doit: - @echo done + @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. @@ -570,24 +9226,24 @@ _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 +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac # 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 + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) @@ -595,16 +9251,51 @@ rm -f confinc confmf ]) +# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 +# 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 6 + +# AM_PROG_CC_C_O +# -------------- +# Like AC_PROG_CC_C_O, but changed for automake. +AC_DEFUN([AM_PROG_CC_C_O], +[AC_REQUIRE([AC_PROG_CC_C_O])dnl +AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([compile])dnl +# FIXME: we rely on the cache variable name because +# there is no other way. +set dummy $CC +am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o +if test "$am_t" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +dnl Make sure AC_PROG_CC is never called again, or it will override our +dnl setting of CC. +m4_define([AC_PROG_CC], + [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) +]) + # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # 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 +# serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ @@ -621,7 +9312,14 @@ 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" +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " @@ -659,13 +9357,13 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 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 +# serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- @@ -682,7 +9380,7 @@ # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- @@ -692,14 +9390,14 @@ # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # 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 +# serial 5 # AM_SANITY_CHECK # --------------- @@ -708,16 +9406,29 @@ # Just in case sleep 1 echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + # 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` + 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` + set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ @@ -770,18 +9481,25 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008 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_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) +# AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. diff -Nru quickplot-0.8.15/App.cpp quickplot-0.9.11/App.cpp --- quickplot-0.8.15/App.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/App.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,312 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include -#include - -#include - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "GraphConfig.h" -#include "Globel.h" - -#include "PlotLister.h" -#include "PlotConfig.h" -#include "StatusBar.h" -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Source.h" -#include "FileList.h" -#include "File.h" - -// There should be only one app. -App *app = NULL; -MainWindow *currentMainWindow = NULL; - -// Calling parseArgs() in this constructor initialization is a trick -// to get the static variable app set and get some options set before -// mainWindow is created. -App::App(int *argc, char ***argv): - Main(argc, argv) -{ - isInvalid = true; - fileSelection = NULL; - currentMainWindow = NULL; - - if(app) return; // error there can only be one app - app = this; - - if(parseArgs1(*argc, *argv)) - return; // failure - - createMainWindow(); - - if(parseArgs2(*argc, *argv)) - return; // failure - - if(opShowGraphConfig) - currentMainWindow->showGraphConfig(); - - isInvalid = false; -} - -void App::_createMainWindow(bool makeGraph) -{ - MainWindow *mainWindow = new MainWindow(makeGraph); - // add it to the list. - push_back(mainWindow); - - mainWindow->show(); - - if(!currentMainWindow) - currentMainWindow = mainWindow; - - if(size() == 2) - { - // for size == 3 and higher the deleteFrameMenuItem sensitive is - // set to true in MainMenuBar.cpp. - std::list::const_iterator win = begin(); - for(;win != end(); win++) - { - (*win)->menuBar.deleteFrameMenuItem.set_sensitive(true); - } - } -} - - -// create a main window and add it to the list. -void App::createMainWindow(void) -{ - _createMainWindow(true); -} - -void App::copyCurrentMainWindow(void) -{ - _createMainWindow(false); - - // copy the Graphs - back()->graphsNotebook.copy(&(currentMainWindow->graphsNotebook)); - - // copy width and height - if(back()->get_width() != currentMainWindow->get_width() || - back()->get_height() != currentMainWindow->get_height()) - { - back()->resize(currentMainWindow->get_width(), currentMainWindow->get_height()); - } - - // copy what is showing - if(back()->menuBar.is_visible() != currentMainWindow->menuBar.is_visible()) - { - if(currentMainWindow->menuBar.is_visible()) - back()->menuBar.show(); - else - back()->menuBar.hide(); - } - if(back()->buttonBar.is_visible() != currentMainWindow->buttonBar.is_visible()) - { - if(currentMainWindow->buttonBar.is_visible()) - back()->buttonBar.show(); - else - back()->buttonBar.hide(); - } - if(back()->graphsNotebook.get_show_tabs() != - currentMainWindow->graphsNotebook.get_show_tabs()) - { - back()->graphsNotebook.set_show_tabs(currentMainWindow->graphsNotebook.get_show_tabs()); - } - if(back()->statusBar.is_visible() != currentMainWindow->statusBar.is_visible()) - { - if(currentMainWindow->statusBar.is_visible()) - back()->statusBar.show(); - else - back()->statusBar.hide(); - } -} - - -void App::destroyMainWindow(MainWindow *mainWindow) -{ - if(size() > 1) - { - if(mainWindow == currentMainWindow) - { - // set a different currentMainWindow. - std::list::const_iterator win = begin(); - for(;win != end(); win++) - { - if(*win != mainWindow) - { - currentMainWindow = *win; - break; - } - } - } - } - else - { - quit(); - return; - } - - if(opVerbose) - opSpew << "Quickplot INFO: removing main window \"" - << mainWindow->get_title() << "\"" << std::endl; - - remove(mainWindow); - - if(mainWindow) - delete mainWindow; - - if(size() <= 1) - { - currentMainWindow->menuBar.deleteFrameMenuItem.set_sensitive(false); - } -} - - -extern "C" -{ - int *dummyData; - - static gboolean quitLater(gpointer data) - { - gtk_idle_remove_by_data(data); - Main::quit(); - return ((gint) 0); - } -} - -void App::quit(void) -{ - // This seems to do the trick. - gtk_idle_add(quitLater, dummyData); -} - -App::~App(void) -{ - if(size() > 0) - { - std::list::const_iterator win = begin(); - for(;win != end(); win++) - delete *win; - clear(); // empty the list. - } - - // delete all the source - while(sources.size() > 0) - { - delete (*(sources.begin())); - } - sources.clear(); - app = NULL; - - if(fileSelection) - { - delete fileSelection; - fileSelection = NULL; - } - - if(opVerbose) - printf("App::~App() line=%d file=%s\n",__LINE__, __FILE__); -} - -// This gets a full path file name and then calls openFile if it can. -void App::openDialog(void) -{ - if(!fileSelection) - { - fileSelection = new FileSelection("Choose a Data File to Open"); - } - - fileSelection->set_transient_for(*currentMainWindow); - switch(fileSelection->run()) - { - case(RESPONSE_OK): - openFile(fileSelection->get_filename().c_str()); - break; - default: - break; // Closed window or hit cancel. - } - fileSelection->hide(); -} - -void App::openFile(const char *filename) -{ - using std::endl; - File *file = new File(filename); - - if(!file->isValid) - { - if(!opSilent) - opSpew << "Failed to open " << filename << endl - << errorStr << endl; - // reset the error string - errorStr[0] = '\0'; - delete file; - return; - } - - if(!opNoDefaultPlots && file->size() > 1 && opMaxNumDefaultPlots > 0) - { - Graph *graph = NULL; - - // find the first empty Graph in the graphsNotebook. - int n = currentMainWindow->graphsNotebook.get_n_pages(); - int i; - for(i=0;i - (currentMainWindow->graphsNotebook.get_nth_page(i)); - if(graph && graph->size() < 1) - break; - else - graph = NULL; - } - - if(!graph) - { - currentMainWindow->makeNewGraphTab(); - graph = currentMainWindow->currentGraph; - } - else - { - currentMainWindow->graphsNotebook. - set_current_page(currentMainWindow->graphsNotebook.page_num(*graph)); - } - - - graph->createDefaultPlots(file); - - if(currentMainWindow->graphConfig) - currentMainWindow->graphConfig->setTitle(); - if(currentMainWindow->plotLister) - currentMainWindow->plotLister->setTitle(); - } - else - { - currentMainWindow->showGraphConfig(); - - // Calling hide() before show() will make it visible even if the - // window was icon-ified. show() alone will not cause the window to - // be visible if it is icon-ified. We think "blinking" the window - // is better than not seeing it some times. There does not appear - // to be a function gboolean gtk_window_get_iconified(GtkWindow - // *window), or a corrisponding method in GTKmm. - currentMainWindow->graphConfig->hide(); - currentMainWindow->graphConfig->show(); - } - -} diff -Nru quickplot-0.8.15/App.h quickplot-0.9.11/App.h --- quickplot-0.8.15/App.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/App.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,54 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -class GraphConfig; -class MainWindow; - -// There can only be one App per process. - -class App : public Main, public std::list -{ -public: - - bool isInvalid; - - void quit(void); - - - // create a main window and add it to the list. - void createMainWindow(void); - void copyCurrentMainWindow(void); - void destroyMainWindow(MainWindow *mainWindow); - - - private: - - // parseArgs1() gets options that need to be parsed before others - // like --verbose, options that cause this program to exit like - // --help, and options that change the way the main window looks - // like --no-buttons. parseArgs1() returns non-zero on error. - int parseArgs1(int argc, char **argv); - - // parseArgs2() returns non-zero on error. parseArgs2 parses stuff - // to open files and more. parseArgs2 needs to be called after - // parseArgs1() and createMainWindow(). - int parseArgs2(int argc, char **argv); - - // used by createMainWindow() and copyCurrentMainWindow() - void _createMainWindow(bool makeFirstGraph); - - FileSelection *fileSelection; - - public: - - App(int *argc, char ***argv); - virtual ~App(void); - - - void openDialog(void); // slot - void openFile(const char *filename); - -}; - -extern App *app; -extern MainWindow *currentMainWindow; diff -Nru quickplot-0.8.15/App_parseArgs.cpp quickplot-0.9.11/App_parseArgs.cpp --- quickplot-0.8.15/App_parseArgs.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/App_parseArgs.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,792 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#include - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" -#include "Globel.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "Globel.h" -#include "PlotList.h" -#include "config.h" - -// from help_html.cpp -extern const char *help_html; - -// from about_html.cpp -extern const char *about_html; - -// from usage.cpp -extern int usage(void); - -// from getOpt.cpp -extern char *getOpt(const char *shorT, const char *lonG, - int argc, const char **argv, int *i); - -enum ReadStdin { NO=0, YES=1, CHECK=2 }; -static ReadStdin readStdin = CHECK; - - -// from file: help_html.cpp which was generated from help.html.in -extern const char *help_html; - -// from file: about_html.cpp which was generated from about.html.in -extern const char *about_html; - - -// From file: launchBrowser.cpp -extern int sLaunchBrowser(const char *doc, const char *suffix); - -void showAbout(void) -{ - // first we attack with a browser - sLaunchBrowser(about_html, "about.html"); - - // next we spew to stdout. - printf("%s version %s : released on %s\n", PACKAGE_NAME, VERSION, RELEASE_DATE); - printf("The %s home-page is at %s\n", PACKAGE_NAME, HOMEPAGE); - printf("Send BUG reports to: %s\n", PACKAGE_BUGREPORT); - printf("This was configured on: %s\n", CONFIGURE_DATE); - printf("%s is free software, distributed under the " - "terms of the\nGNU General Public License (version 2 or higher).\n", - PACKAGE_NAME); - exit(1); // exit with an error. -} - -void showHelp(void) -{ - // first we attack with a browser - sLaunchBrowser(help_html, "help.html"); - // next we spew to stdout. - printf("%s is a fast interactive 2D plotter.\n\n", PACKAGE_NAME); - printf("%s uses html files for its reference documentation\n", PACKAGE_NAME); - printf("If you're not seeing a browser now with the %s Help\ndocument loaded " - "than you may not be using a windowing system\nor something else went " - "wrong.\n\n", PACKAGE_NAME); - printf("The %s HTML help document can be printed to standard output by\n" - "running `quickplot --print-help'.\n\n", PACKAGE_NAME); - printf("The %s home-page is at %s\n", PACKAGE_NAME, HOMEPAGE); - exit(1); // exit with an error. -} - - -// first get options that need to be parsed before others like -// --verbose, options that cause this program to exit like --help, and -// options that change the way the main window looks like --no-buttons -// and --same-scale (which can change the first Graph). -int App::parseArgs1(int argc, char **argv) -{ - int i; - - // look for just option --silent - for(i=1;iMAX_GRID_LINE_WIDTH) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option -g or --grid-line-width" - << std::endl; - if(!opSilent && opGridLineWidth>MAX_GRID_LINE_WIDTH) - opSpew << "the grid line width may not be larger than " - << MAX_GRID_LINE_WIDTH << " ." << std::endl; - return -1; // error - } - } - else if(!strcmp("--help",argv[i]) || !strcmp("-h",argv[i])) - { - showHelp(); - } - else if((s = getOpt("-I", "--line-width", argc, - (const char **) argv, &i))) - { - errno = 0; - char *ptr = s; - opLineWidth = strtol(s, &ptr, 10); - if(ptr==s || errno || opLineWidth<0 || opLineWidth>MAXMAX_PLOT_LINE_WIDTH) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option --line-width or -I" - << std::endl; - if(!opSilent && opLineWidth>MAXMAX_PLOT_LINE_WIDTH) - opSpew << "the line width may not be larger than " - << MAXMAX_PLOT_LINE_WIDTH << " ." << std::endl; - return -1; // error - } - opUserSetLineOrPointOption = true; - } - else if(!strcmp("--no-grid",argv[i]) || !strcmp("-G",argv[i])) - { - opShowAutoGrid = false; - i++; - } - else if(!strcmp("--no-gui",argv[i])) - { - opShowButtons = false; - opShowMenuBar = false; - opShowGraphTabs = false; - opShowStatusBar = false; - i++; - } - else if(!strcmp("--no-lines",argv[i]) || !strcmp("-i",argv[i])) - { - opShowLines = false; - opUserSetLineOrPointOption = true; - i++; - } - else if(!strcmp("--no-points",argv[i]) || !strcmp("-o",argv[i])) - { - opShowPoints = false; - opUserSetLineOrPointOption = true; - i++; - } - else if(!strcmp("--no-statusbar",argv[i])) - { - opShowStatusBar = false; - i++; - } - else if(!strcmp("--no-tabs",argv[i])) - { - opShowGraphTabs = false; - i++; - } - else if((s = getOpt("-O", "--point-size", argc, - (const char **) argv, &i))) - { - errno = 0; - char *ptr = s; - opPointSize = strtol(s, &ptr, 10); - if(ptr==s || errno || opPointSize<0 || opPointSize>MAXMAX_POINT_SIZE) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option " - "-O or --point-size\n" << std::endl; - return -1; // error - } - opUserSetLineOrPointOption = true; - } - else if(!strcmp("--same-scale",argv[i]) || !strcmp("-s",argv[i])) - { - opSameScale = true; - i++; - } - else if(!strcmp("--verbose",argv[i]) || !strcmp("-v",argv[i])) - { - if(!opSilent) - { - opVerbose = true; - opSilent = false; - } - i++; - } - else if(!strcmp("--version",argv[i]) || !strcmp("-V",argv[i])) - { - printf("%s\n", VERSION); - exit(0); - } - else if(!strcmp("--print-about",argv[i])) - { - printf("%s\n", about_html); - exit(0); // must return success so make will continue - } - else if(!strcmp("--print-help",argv[i])) - { - printf("%s\n", help_html); - exit(0); // must return success so make will continue - } - else if(!strcmp("--no-menubar",argv[i]) || !strcmp("-M",argv[i])) - { - opShowMenuBar = false; - i++; - } - else if(!strcmp("--with-libsndfile",argv[i])) - { - if(!opSilent) - printf("%s\n", SNDFILE_VERSION); -#ifdef USE_LIBSNDFILE - exit(0); -#else - exit(1); -#endif - } - - // looking for all other single '-' options not handled above. - else if(strlen(argv[i]) > (size_t) 2 && - argv[i][0] == '-' && - ( - argv[i][1] == 'a' || - argv[i][1] == 'B' || - argv[i][1] == 'd' || - argv[i][1] == 'G' || - argv[i][1] == 'h' || - argv[i][1] == 'i' || - argv[i][1] == 'L' || - argv[i][1] == 'M' || - argv[i][1] == 'N' || - argv[i][1] == 'o' || - argv[i][1] == 'P' || - argv[i][1] == 's' || - argv[i][1] == 'V' || - argv[i][1] == 'v' - ) - ) - { - int j=1; - for(;argv[i][j];j++) - { - switch (argv[i][j]) - { - case 'a': - showAbout(); - break; - case 'B': - opShowButtons = false; - break; - case 'd': - opSameScale = false; - opAutoSameScale = false; - break; - case 'G': - opShowAutoGrid = false; - break; - case 'h': - showHelp(); - break; - case 'i': - opShowLines = false; - break; - case 'L': // handled later. - break; - case 'M': - opShowMenuBar = false; - break; - case 'N': - readStdin = NO; - break; - case 'o': - opShowPoints = false; - break; - case 'P': - readStdin = YES; - break; - case 's': - opSameScale = true; - break; - case 'V': - printf("%s\n",VERSION); - return -1; - break; - case 'v': - opVerbose = true; - opSilent = false; - break; - default: - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option(s) '" - << argv[i] << "'" << std::endl; - return -1; // error - break; - } - } - } - i++; - } - // skipping the processing of other options. - else - i++; - } - return 0; // success -} - - - -// This is called after App::parseArgs1() and other things. -int App::parseArgs2(int argc, char **argv) -{ - - // The first file will be stdin if we are reading stdin. - FileList *fileList = new FileList(NULL); - PlotList *plotList = NULL; - - int i; - for(i=1;ilabelSeparator = s[0]; - } - else if(!strcmp("--no-default-plots",argv[i])) - { - opNoDefaultPlots = true; - i++; - } - else if(!strcmp("--no-pipe",argv[i]) || !strcmp("-N",argv[i])) - { - readStdin = NO; - i++; - } - else if(!strcmp("--pipe",argv[i]) || !strcmp("-P",argv[i])) - { - readStdin = YES; - i++; - } - else if(!strcmp("-l",argv[i]) || !strcmp("--linear-field",argv[i])) - { - i++; - fileList->hasLinearField = true; - int j=0; - while(j<2) // check for options --start or -r or OR --step or -t. - // Since both may be persent we check for either one - // twice. - { - if((s = getOpt("-r", "--start", argc, (const char **) argv, &i))) - { - errno = 0; - char *ptr = s; - fileList->linearFieldStart = STRINGTOVALUE(s, &ptr); - if(ptr==s || errno) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option --start or -r" << std::endl; - return -1; // error - } - } - else if((s = getOpt("-t","--step", argc, (const char **) argv, &i))) - { - errno = 0; - char *ptr = s; - fileList->linearFieldStep = STRINGTOVALUE(s, &ptr); - if(ptr==s || errno) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option --step or -t" << std::endl; - return -1; // error - } - } - else - break; - j++; - } - } -#if 0 - else if(!strcmp("--log",argv[i])) - { - fileList->takeLog = true; - i++; - } -#endif - else if((s = getOpt("-p", "--plot", argc, (const char **) argv, &i))) - { - errno = 0; - char *ptr = s; - int count = 0; - plotList = new PlotList; - for(;;count++) - { - s = ptr; - int x = strtol(s, &ptr, 10); - if(ptr==s || errno) - break; - s = ptr; - int y = strtol(s, &ptr, 10); - if(ptr==s || errno) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option" - " --plot or -p\n" << std::endl; - return -1; // error - } - - plotList->add(x, y); - } - if(count < 1) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option --plot or -p\n" << std::endl; - return -1; // error - } - } - else if((s = getOpt("-n", "--number-of-plots", - argc, (const char **) argv, &i))) - { - errno = 0; - char *ptr = s; - opMaxNumDefaultPlots = strtol(s, &ptr, 10); - if(ptr==s || errno) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option " - "-n or --number-of-plots\n" << std::endl; - return -1; // error - } - if(opMaxNumDefaultPlots > 10000) - { - if(!opSilent) - { - opSpew << "quickplot INFO: funny option " - "-n or --number-of-plots\n" << std::endl - << "How do you expect to see " << opMaxNumDefaultPlots - << " plots in one Graph?" << std::endl; - } - opMaxNumDefaultPlots = 10000; - } - } - else if((s = getOpt("-S", "--skip-lines", - argc, (const char **) argv, &i))) - { - errno = 0; - char *ptr = s; - int skip = strtol(s, &ptr, 10); - if(ptr==s || errno || skip < 0) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option -S or " - "--skip-lines\n" << std::endl; - return -1; // error - } - fileList->skipLines = skip; - } - else if(!strcmp("-L",argv[i]) || !strcmp("--labels",argv[i])) - { - fileList->readLabels = true; - i++; - } - else if((s = getOpt("-b", "--label-seperator", argc, (const char **) argv, &i))) - { - if(s[0] == '\n' || - s[0] == (char) EOF || - s[0] == 0) - { - printf("quickplot ERROR: bad option -b or " - "--label-seperator: invalid seperator character\n"); - return -1; // error - } - fileList->labelSeparator = s[0]; - } - else if(strlen(argv[i]) > (size_t) 2 && - argv[i][0] == '-' && - ( argv[i][1] == 'a' || - argv[i][1] == 'B' || - argv[i][1] == 'G' || - argv[i][1] == 'i' || - argv[i][1] == 'h' || - argv[i][1] == 'L' || - argv[i][1] == 'M' || - argv[i][1] == 'N' || - argv[i][1] == 'o' || - argv[i][1] == 'P' || - argv[i][1] == 's' || - argv[i][1] == 'v' - ) - ) - { - int j=1; - for(;argv[i][j];j++) - { - switch (argv[i][j]) - { - case 'L': - fileList->readLabels = true; - break; - // all of the cases below are handled above in - // App::parseArgs1() already. - case 'a': - case 'B': - case 'G': - case 'i': - case 'h': - case 'M': - case 'N': - case 'o': - case 'P': - case 's': - case 'v': - default: - break; - } - } - i++; - } - - else // get a file name to load - { - fileList = new FileList(argv[i]); - i++; - } - } - - if(readStdin == CHECK) - { // Check for standard input -#if MINGW - readStdin = NO; -#else - fd_set rfds; - struct timeval tv = { 0/* sec */, 200000 /* usec */ }; - FD_ZERO(&rfds); - FD_SET(0, &rfds); - - if(select(1, &rfds, NULL, NULL, &tv) == 1) - readStdin = YES; -#endif - } - - if(readStdin == YES) - { - fileList = FileList::first; - File *file = new File(fileList); - - if(!file->isValid) - { - delete file; - // Let the app contiune to run if it fails to read stdin. - //return -1; //error - } - fclose(stdin); - } - - // The first file in the list is stdin, so skip to the next one. - if(FileList::first->next) - { - fileList = FileList::first->next; - for(;fileList && fileList->getFileName();fileList = fileList->next) - { - File *file = new File(fileList); - - if(!file->isValid) - { - delete file; - return -1; //error - } - } - } - - // delete all the file lists. - while(FileList::first) - delete FileList::first; - - - if(!(PlotList::first) && !opNoDefaultPlots) - { - // make the default plot list. - int fieldCount = 0; - std::list::const_iterator source = sources.begin(); - for(;source != sources.end(); source++) - { - int numPlots = (*source)->size() - 1; - if(numPlots > opMaxNumDefaultPlots) - numPlots = opMaxNumDefaultPlots; - - if(numPlots > 0) - { - plotList = new PlotList; - - int i; - for(i=0;iadd(fieldCount,i+1+fieldCount); - } - - fieldCount += (*source)->size(); - } - } - } - - - if(PlotList::first) // is there a plot list - { - plotList = PlotList::first; - for(; plotList; plotList=plotList->next) - { - if(plotList != PlotList::first) - { - currentMainWindow->makeNewGraphTab(); - } - - int i; - for(i=0;igetNumberOfPlots();i++) - { - int x, y; - plotList->get(x,y); - Field *X=NULL, *Y=NULL; - int fieldCount = 0; - std::list::const_iterator source = sources.begin(); - for(;source != sources.end(); source++) - { - std::list::const_iterator field = (*source)->begin(); - for(;field != (*source)->end(); field++) - { - if(x == fieldCount) - X = *field; - if(y == fieldCount) - Y = *field; - fieldCount++; - if(X && Y) - break; - } - if(X && Y) - break; - } - if(!X || !Y) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad option --plot or -p\n" - << std::endl; - return -1; // error - } - currentMainWindow->currentGraph->createPlot(X, Y); - } - } - // flip to the first page (tab) in the graph notebook. - currentMainWindow->graphsNotebook.set_current_page(0); - } - - // delete all the plot lists. - while(PlotList::first) - delete PlotList::first; - - - return 0; // success -} diff -Nru quickplot-0.8.15/ArrayField.h quickplot-0.9.11/ArrayField.h --- quickplot-0.8.15/ArrayField.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/ArrayField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,162 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -#include -#include -#include - -/* The data type the quickplot uses to plot is a kind of float set in - * value_t.h. The type that the Field stores the values as can be any - * type, which may save memory in most cases. - */ -template class ArrayField : public Field -{ - public: - - ArrayField(Source *source, count_t numberOfValues); - virtual ~ArrayField(void); - - // read the list and advance the pointer to the next value in the - // series. - inline value_t read(void) - { - return static_cast(value[index++]); - } - - // find the maximum values in the range of indexes - // indexing starts at 0. - inline value_t max(count_t i_max=((count_t) -1), count_t i_min=0) - { - value_t Max = -MAXVALUE; - if(i_max == ((count_t) -1)) - i_max = _numberOfValues - 1; - count_t i; - for(i=i_min;i<=i_max;i++) - if(value[i] > Max) - Max = value[i]; - return Max; - } - - // find the minimum values in the range of indexes - // indexing starts at 0. - inline value_t min(count_t i_max=((count_t) -1), count_t i_min=0) - { - value_t Min = MAXVALUE; - if(i_max == ((count_t) -1)) - i_max = _numberOfValues - 1; - count_t i; - for(i=i_min;i<=i_max;i++) - if(value[i] < Min) - Min = value[i]; - return Min; - } - - // move the pointer to the first value. - inline void rewind(void) { index = 0; } - - void write(T t); - - struct Dequeuer - { - count_t index, numberOfValuesMinus1; - }; - - - void *makeDequeuer(count_t number_of_values); - void destroyDequeuer(void *dequeuer); - - // The FieldReader object can use this to read. - inline value_t read(void *dequeuer) - { - struct Dequeuer *d = (struct Dequeuer *) dequeuer; - value_t val = static_cast(value[d->index]); - if(d->index < d->numberOfValuesMinus1) - (d->index)++; - return val; - } - - // read backwards through the list. - virtual value_t readBack(void *dequeuer) - { - struct Dequeuer *d = (struct Dequeuer *) dequeuer; - value_t val = static_cast(value[d->index]); - if(d->index > 0) - (d->index)--; - return val; - } - - // The FieldReader object can use this to rewind. - inline void rewind(void *dequeuer) - { - ((struct Dequeuer *) dequeuer)->index = 0; - } - -private: - - // Index to the element to be read or written. - count_t index; - T *value; -}; - -template -ArrayField::ArrayField(Source *source, count_t NumberOfValues): - Field(source) -{ - value = static_cast(malloc(sizeof(T) * NumberOfValues)); - if(!value) - { - snprintf(errorStr, ERRORSTR_LENGTH, - "Quickplot ERROR: malloc(%ld) failed: " - "system error number %d: %s", - sizeof(T) * NumberOfValues, errno, strerror(errno)); - error = 1; - } - // We assume that this many values will be written. - _numberOfValues = NumberOfValues; - index = 0; -} - - -template -ArrayField::~ArrayField(void) -{ - if(value) - free(value); -} - - -template -void ArrayField::write(T x_in) -{ - // You can't write more than _numberOfValues values. - value[index++] = x_in; - - // assuming T is not the same type as value_t - value_t x = x_in; // convert to value type. - if(x > _max) - _max = x; - else if(_isIncreasing) - _isIncreasing = false; - - if(x < _min) - _min = x; - else if(_isDecreasing) - _isDecreasing = false; -} - -template -void *ArrayField::makeDequeuer(count_t number_of_values) -{ - struct Dequeuer *d = (struct Dequeuer *) malloc(sizeof(struct Dequeuer)); - d->numberOfValuesMinus1 = - ((number_of_values<_numberOfValues)?number_of_values:_numberOfValues) - -1; - d->index = 0; - return (void *) d; -} - -template -void ArrayField::destroyDequeuer(void *dequeuer) -{ - free(dequeuer); -} diff -Nru quickplot-0.8.15/AUTHORS quickplot-0.9.11/AUTHORS --- quickplot-0.8.15/AUTHORS 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/AUTHORS 2011-11-16 14:38:37.000000000 +0000 @@ -1 +1 @@ -Lance Arsenault +Lance Arsenault lanceman_at_users.sourceforge.net diff -Nru quickplot-0.8.15/ax_lib_readline.m4 quickplot-0.9.11/ax_lib_readline.m4 --- quickplot-0.8.15/ax_lib_readline.m4 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/ax_lib_readline.m4 2011-12-22 05:23:35.000000000 +0000 @@ -0,0 +1,107 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_lib_readline.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_LIB_READLINE +# +# DESCRIPTION +# +# Searches for a readline compatible library. If found, defines +# `HAVE_LIBREADLINE'. If the found library has the `add_history' function, +# sets also `HAVE_READLINE_HISTORY'. Also checks for the locations of the +# necessary include files and sets `HAVE_READLINE_H' or +# `HAVE_READLINE_READLINE_H' and `HAVE_READLINE_HISTORY_H' or +# 'HAVE_HISTORY_H' if the corresponding include files exists. +# +# The libraries that may be readline compatible are `libedit', +# `libeditline' and `libreadline'. Sometimes we need to link a termcap +# library for readline to work, this macro tests these cases too by trying +# to link with `libtermcap', `libcurses' or `libncurses' before giving up. +# +# Here is an example of how to use the information provided by this macro +# to perform the necessary includes or declarations in a C file: +# +# #ifdef HAVE_LIBREADLINE +# # if defined(HAVE_READLINE_READLINE_H) +# # include +# # elif defined(HAVE_READLINE_H) +# # include +# # else /* !defined(HAVE_READLINE_H) */ +# extern char *readline (); +# # endif /* !defined(HAVE_READLINE_H) */ +# char *cmdline = NULL; +# #else /* !defined(HAVE_READLINE_READLINE_H) */ +# /* no readline */ +# #endif /* HAVE_LIBREADLINE */ +# +# #ifdef HAVE_READLINE_HISTORY +# # if defined(HAVE_READLINE_HISTORY_H) +# # include +# # elif defined(HAVE_HISTORY_H) +# # include +# # else /* !defined(HAVE_HISTORY_H) */ +# extern void add_history (); +# extern int write_history (); +# extern int read_history (); +# # endif /* defined(HAVE_READLINE_HISTORY_H) */ +# /* no history */ +# #endif /* HAVE_READLINE_HISTORY */ +# +# LICENSE +# +# Copyright (c) 2008 Ville Laurikari +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + +#serial 6 + +AU_ALIAS([VL_LIB_READLINE], [AX_LIB_READLINE]) +AC_DEFUN([AX_LIB_READLINE], [ + AC_CACHE_CHECK([for a readline compatible library], + ax_cv_lib_readline, [ + ORIG_LIBS="$LIBS" + for readline_lib in readline edit editline; do + for termcap_lib in "" termcap curses ncurses; do + if test -z "$termcap_lib"; then + TRY_LIB="-l$readline_lib" + else + TRY_LIB="-l$readline_lib -l$termcap_lib" + fi + LIBS="$ORIG_LIBS $TRY_LIB" + AC_TRY_LINK_FUNC(readline, ax_cv_lib_readline="$TRY_LIB") + if test -n "$ax_cv_lib_readline"; then + break + fi + done + if test -n "$ax_cv_lib_readline"; then + break + fi + done + if test -z "$ax_cv_lib_readline"; then + ax_cv_lib_readline="no" + fi + LIBS="$ORIG_LIBS" + ]) + + if test "$ax_cv_lib_readline" != "no"; then + LIBS="$LIBS $ax_cv_lib_readline" + AC_DEFINE(HAVE_LIBREADLINE, 1, + [Define if you have a readline compatible library]) + AC_CHECK_HEADERS(readline.h readline/readline.h) + AC_CACHE_CHECK([whether readline supports history], + ax_cv_lib_readline_history, [ + ax_cv_lib_readline_history="no" + AC_TRY_LINK_FUNC(add_history, ax_cv_lib_readline_history="yes") + ]) + if test "$ax_cv_lib_readline_history" = "yes"; then + AC_DEFINE(HAVE_READLINE_HISTORY, 1, + [Define if your readline library has \`add_history']) + AC_CHECK_HEADERS(history.h readline/history.h) + fi + fi +])dnl Binary files /tmp/yKsuTgpbVV/quickplot-0.8.15/background_ft.png and /tmp/Ocqs54f4Rr/quickplot-0.9.11/background_ft.png differ Binary files /tmp/yKsuTgpbVV/quickplot-0.8.15/background_h1.png and /tmp/Ocqs54f4Rr/quickplot-0.9.11/background_h1.png differ Binary files /tmp/yKsuTgpbVV/quickplot-0.8.15/background_h2.png and /tmp/Ocqs54f4Rr/quickplot-0.9.11/background_h2.png differ diff -Nru quickplot-0.8.15/bootstrap quickplot-0.9.11/bootstrap --- quickplot-0.8.15/bootstrap 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/bootstrap 2011-11-04 21:25:19.000000000 +0000 @@ -1,111 +1,49 @@ -#! /bin/sh +#! /bin/bash -# bootstrap, Copyright (c) 2004 Lance Arsenault +# Quickplot - an interactive 2D plotter # -# 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. +# Copyright (C) 1998-2011 Lance Arsenault + +# This file is part of Quickplot. +# +# Quickplot 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 3 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. +# Quickplot 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; see the file COPYING. If not, see it in -# the web at http://www.gnu.org/copyleft/gpl.html or write to the Free -# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA -# 02111-1307, USA. - +# along with Quickplot. If not, see . +# #--------------------------------------------------------------------- # WHAT'S THIS FOR -# Run this if you just got this package from SVN. +# Run this if you just got this package from Subversion. -# This is run to generate files (./configure and Makefile.in) -# needed to make the files in this directory into something closer to -# a package for source distribution (packages source tar-ball files). -# The files that this starts with commonly come from a CVS or other -# file repository. This uses the GNU Autotools. +# This is run to generate files, configure, Makefile.in and the-like, +# that are needed to make the files in this directory into something +# closer to a package for source distribution, packages source +# tar-ball files. The files that this starts with commonly come from +# a Subversion or other file repository. This uses the GNU Autotools. #--------------------------------------------------------------------- - - -######################################################################## -# This block was taken from Daniel Elstner's autogen.sh. -######################################################################## -dir=`echo "$0" | sed 's,[^/]*$,,'` -test "x${dir}" = "x" && dir='.' -if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`" +d=$(echo "$0"|sed 's/[^/]*$//') +[ -z "$d" ] && d='.' +if [ "$(cd "$d" 2>/dev/null && echo "${PWD}")" != "${PWD}" ] then echo "This script ($0) must be executed directly\ from the top $0 source directory." exit 1 fi -# end taken from Daniel Elstner -######################################################################## - - -touch stamp-h -script="$0" -error=0 +# Today bootscrap is easy with autoreconf -# This function, run(), just helps by adding more spew for debugging -# when running programs. If any thing fails to run it stops running -# programs and spews what it would like to run. -run() -{ - if [ $error = 0 ] - then - echo "$script RUNNING: $@" - if ! $@ - then - echo - echo "-------------------------- ERROR ---------------------------" - echo "$script had an error while running: $@" - echo "------------------------------------------------------------" - error=1 - fi - else - echo "+++++ $script DID NOT RUN: $@" - fi -} - - - -# WANT_AUTOCONF, WANT_AUTOMAKE and WANT_LIBTOOL will help find usable -# versions of autoconf, automake and libtoolize on Gentoo GNU/Linux -# systems when there are multiple versions installed. On Gentoo -# GNU/Linux when there are multiple versions of a package installed -# the executables are installed as wrappers that parse the -# WANT_"PACKAGE_NAME" environment variable. - -#export WANT_AUTOCONF=2.58 -#export WANT_AUTOMAKE=1.7 -#export WANT_LIBTOOL=1.4.3 - - -run aclocal -run libtoolize --force --automake -run autoheader -run automake --add-missing -run autoconf - - -# final spew -if [ $error = 0 ] -then - echo "$script ran successfully" - echo "-----------------------------------------" - echo " Now you are ready to run './configure'" - echo "-----------------------------------------" -else - echo "$script did not run successfully" -fi +autoreconf --force --verbose --install -exit $error diff -Nru quickplot-0.8.15/ButtonBar.cpp quickplot-0.9.11/ButtonBar.cpp --- quickplot-0.8.15/ButtonBar.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/ButtonBar.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,109 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Globel.h" - - -ButtonBar::ButtonBar(MainWindow *mainWindow_in): - HButtonBox(BUTTONBOX_START), // makes all the buttons the same size. - openButton("_Open File ...", true), - newButton("_New Graph Tab", true), - showGraphConfigButton(opShowGraphConfig? - "Hide Config":"Show Config", true), - savePNGButton("Save PNG _Image ...", true) -{ - mainWindow = mainWindow_in; - add(openButton); - add(newButton); - add(showGraphConfigButton); - add(savePNGButton); - - openButton.signal_activate().connect(sigc::mem_fun(*app, &App::openDialog)); - openButton.signal_pressed().connect(sigc::mem_fun(*app, &App::openDialog)); - - newButton.signal_activate(). - connect(sigc::mem_fun(*mainWindow, - &MainWindow::makeNewGraphWithGraphConfig)); - newButton.signal_pressed(). - connect(sigc::mem_fun(*mainWindow, - &MainWindow::makeNewGraphWithGraphConfig)); - savePNGButton.signal_pressed().connect(sigc::mem_fun(*mainWindow, - &MainWindow::savePNGFile)); - - showGraphConfigButton.signal_activate(). - connect(sigc::mem_fun(*this, - &ButtonBar::on_showGraphConfigButton)); - showGraphConfigButton.signal_pressed(). - connect(sigc::mem_fun(*this, - &ButtonBar::on_showGraphConfigButton)); - - signal_show().connect(sigc::mem_fun(mainWindow->menuBar, - &MainMenuBar::checkButtonBarState)); - signal_hide().connect(sigc::mem_fun(mainWindow->menuBar, - &MainMenuBar::checkButtonBarState)); - - openButton.show(); - newButton.show(); - showGraphConfigButton.show(); - savePNGButton.show(); -} - -void ButtonBar::checkGraphConfigButton(void) -{ - if(mainWindow->graphConfig && mainWindow->graphConfig->is_visible() && - showGraphConfigButton.get_label() != "Hide Config") - showGraphConfigButton.set_label("Hide Config"); - else if((!mainWindow->graphConfig || !mainWindow->graphConfig->is_visible()) && - showGraphConfigButton.get_label() != "Show Config") - showGraphConfigButton.set_label("Show Config"); -} - -void ButtonBar::on_showGraphConfigButton(void) -{ - if(!mainWindow->graphConfig || !mainWindow->graphConfig->is_visible()) - { - mainWindow->showGraphConfig(); - } - else if(mainWindow->graphConfig && mainWindow->graphConfig->is_visible()) - { - mainWindow->graphConfig->hide(); - } -} - - -FancyButton::FancyButton(const Glib::ustring& label, bool mnemonic) : - Button(label, mnemonic) -{ - // plan to add more here -} diff -Nru quickplot-0.8.15/ButtonBar.h quickplot-0.9.11/ButtonBar.h --- quickplot-0.8.15/ButtonBar.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/ButtonBar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -class FancyButton : public Button -{ -public: - FancyButton(const Glib::ustring& label, bool mnemonic=false); -}; - - -class ButtonBar : public HButtonBox -{ -public: - - ButtonBar(MainWindow *mainWindow_in); - - void checkGraphConfigButton(void); - void on_showGraphConfigButton(void); - - FancyButton openButton, newButton, - showGraphConfigButton, savePNGButton; - -private: - - MainWindow *mainWindow; -}; - diff -Nru quickplot-0.8.15/callbacks.c quickplot-0.9.11/callbacks.c --- quickplot-0.8.15/callbacks.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/callbacks.c 2011-12-22 21:05:39.000000000 +0000 @@ -0,0 +1,1596 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#include +#include +#include +#include +#include +#include +#include + + +#include +#include +#include +#include + +#include "quickplot.h" + +#include "config.h" +#include "debug.h" +#include "list.h" +#include "callbacks.h" +#include "channel.h" +#include "channel_double.h" +#include "qp.h" +#include "plot.h" +#include "zoom.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +int save_x, save_y, start_x, start_y; +int mouse_num = 0, got_motion = 0; + +#define L_SHIFT (01<<0) +#define R_SHIFT (01<<1) +#define L_CNTL (01<<2) +#define R_CNTL (01<<3) + + +/* optionally, we use the shift/cntl key press/release + * in the zoom box adjusting */ +static int got_mod_key = 0; + + +gboolean ecb_close(GtkWidget *w, GdkEvent *event, gpointer data) +{ + ASSERT(data); + ASSERT(app && app->is_gtk_init); + ASSERT(app->main_window_count > 0); + + if(app->gui_can_exit && app->main_window_count == 1) + { + cb_quit(NULL, data); + return TRUE; + } + + cb_delete_window(NULL, data); + return TRUE; /* TRUE means event is handled */ +} + +void cb_delete_window(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + ASSERT(data); + VASSERT(app->main_window_count > 1, + "the delete window menu item should be deactivated if" + " there is just one main quickplot window"); + qp = data; + +DEBUG("qp->initializing=%d\n", qp->initializing); + + if(qp->initializing) + /* let the initializing callback + * function delete the window. */ + qp->initializing = 2; + else + qp_win_destroy(qp); +} + +void cb_quit(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + ASSERT(app && app->is_gtk_init); + + while((qp = qp_sllist_last(app->qps))) + qp_win_destroy(qp); + + ASSERT(qp_sllist_length(app->qps) == 0); + + gtk_main_quit(); +} + +gboolean ecb_key_release(GtkWidget *w, GdkEvent *event, gpointer data) +{ + switch(event->key.keyval) + { + case GDK_KEY_Shift_L: + got_mod_key &= ~L_SHIFT; + break; + case GDK_KEY_Shift_R: + got_mod_key &= ~R_SHIFT; + break; + case GDK_KEY_Control_L: + got_mod_key &= ~L_CNTL; + break; + case GDK_KEY_Control_R: + got_mod_key &= ~R_CNTL; + break; + } + return FALSE; +} + +static inline +void toggle_all_guis(struct qp_win *qp) +{ + int showing; + + showing = + gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_menubar)) + || + gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_buttonbar)) + || + gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_graph_tabs)) + || + gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_statusbar)) + || + gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_graph_detail)); + + + if(showing) + { + /* Hide them */ + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_menubar))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_menubar)); + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_buttonbar))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_buttonbar)); + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_graph_tabs))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_graph_tabs)); + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_statusbar))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_statusbar)); + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_graph_detail))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_graph_detail)); + + return; + } + + /* Show them */ + if(!gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_menubar))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_menubar)); + if(!gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_buttonbar))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_buttonbar)); + if(!gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_graph_tabs))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_graph_tabs)); + if(!gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_statusbar))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_statusbar)); +#if 0 + /* Maybe not this one */ + if(!gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_graph_detail))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_graph_detail)); +#endif +} + +gboolean ecb_key_press(GtkWidget *w, GdkEvent *event, gpointer data) +{ + struct qp_win *qp; + ASSERT(data); + ASSERT(event->type == GDK_KEY_PRESS); + qp = data; + + //DEBUG("got press keyval=0x%x\n", event->key.keyval); + + // Since the key accelerators that are associated with the menus + // above do not work if the menu is not visible we just handle the + // key press here. We still need the key letter to be labeled on + // the menu item which the accelerator does, so we setup the + // accelerators just for the label, but otherwise the accelerators + // could be removed since we override them here. + /******************************************************************** + * MAP KEY PRESSES for main window * + ********************************************************************/ + // KEEP THESE KEY MAPPING CONSISTENT WITH THE MENU ITEMS ABOVE. + // Yes, this is a not so nice hack. And GTK+ sucks, because it + // stops accelerators when widgets are not visible, but it beats QT + // (with butt ugly moc preprocessor) and GTKmm (which is a wrapper + // that makes you go under the covers to get shit done). I prefer + // this hack to making another abstraction layer that you put keys + // and actions into. This is the most straight forward method. + + switch(event->key.keyval) + { + case GDK_KEY_A: + case GDK_KEY_a: + cb_about(NULL, NULL); + break; + case GDK_KEY_B: + case GDK_KEY_b: + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_buttonbar)); + break; + case GDK_KEY_C: + case GDK_KEY_c: + if(gtk_widget_get_sensitive(qp->copy_window_menu_item)) + cb_copy_window(NULL, qp); + break; + case GDK_KEY_D: + case GDK_KEY_d: + if(app->main_window_count > 1) + ecb_close(NULL, NULL, qp); + break; + case GDK_KEY_Escape: + if(qp->graph_detail && qp->graph_detail->window == w) + cb_graph_detail_show_hide(NULL, qp); + else if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_fullscreen))) + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_fullscreen)); + else if(app->main_window_count > 1) + ecb_close(NULL, NULL, qp); + break; + case GDK_KEY_E: + case GDK_KEY_e: + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_border)); + break; + case GDK_KEY_F: + case GDK_KEY_f: + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_fullscreen)); + break; + case GDK_KEY_G: + case GDK_KEY_g: + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_graph_detail)); + break; + case GDK_KEY_H: + case GDK_KEY_h: + cb_help(NULL, NULL); + break; + case GDK_KEY_I: + case GDK_KEY_i: + cb_save_png_image_file(NULL, qp); + break; + case GDK_KEY_M: + case GDK_KEY_m: + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_menubar)); + break; + case GDK_KEY_N: + case GDK_KEY_n: + cb_new_graph_tab(NULL, qp); + break; + case GDK_KEY_O: + case GDK_KEY_o: + cb_open_file(NULL, qp); + break; + case GDK_KEY_P: + case GDK_KEY_p: + break; + case GDK_KEY_Q: + case GDK_KEY_q: + cb_quit(qp->window, NULL); + break; + case GDK_KEY_R: + case GDK_KEY_r: + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_cairo_draw)); + break; + case GDK_KEY_S: + case GDK_KEY_s: + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_statusbar)); + break; + case GDK_KEY_T: + case GDK_KEY_t: + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_graph_tabs)); + break; + case GDK_KEY_U: + case GDK_KEY_u: + toggle_all_guis(qp); + break; + case GDK_KEY_W: + case GDK_KEY_w: + cb_new_window(NULL, NULL); + break; + case GDK_KEY_X: + case GDK_KEY_x: + gtk_menu_item_activate(GTK_MENU_ITEM(qp->view_shape)); + break; + case GDK_KEY_Z: + qp_graph_zoom_out(qp->current_graph, 1); + break; + case GDK_KEY_z: + qp_graph_zoom_out(qp->current_graph, 0); + break; + case GDK_KEY_Shift_L: + got_mod_key |= L_SHIFT; + break; + case GDK_KEY_Shift_R: + got_mod_key |= R_SHIFT; + break; + case GDK_KEY_Control_L: + got_mod_key |= L_CNTL; + break; + case GDK_KEY_Control_R: + got_mod_key |= R_CNTL; + break; + case GDK_KEY_Left: + case GDK_KEY_leftarrow: + if(gtk_notebook_get_show_tabs(GTK_NOTEBOOK(qp->notebook)) || + gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_buttonbar))) + return FALSE; + else + gtk_notebook_prev_page(GTK_NOTEBOOK(qp->notebook)); + break; + case GDK_KEY_Right: + case GDK_KEY_rightarrow: + if(gtk_notebook_get_show_tabs(GTK_NOTEBOOK(qp->notebook)) || + gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_buttonbar))) + return FALSE; + else + gtk_notebook_next_page(GTK_NOTEBOOK(qp->notebook)); + break; + default: + return FALSE; /* FALSE means the event is not handled. */ + } + + return TRUE; /* TRUE means the event is handled. */ +} + +void cb_zoom_out(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + qp = data; + qp_graph_zoom_out(qp->current_graph, 0); +} + +void cb_zoom_out_all(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + qp = data; + qp_graph_zoom_out(qp->current_graph, 1); +} + +void cb_view_menubar(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + ASSERT(data); + qp = data; + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_menubar))) + gtk_widget_show(qp->menubar); + else + gtk_widget_hide(qp->menubar); + + gdk_window_set_cursor(gtk_widget_get_window(qp->window), app->waitCursor); +} + +void cb_view_graph_tabs(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + ASSERT(data); + qp = data; + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_graph_tabs))) + { + struct qp_graph *gr; + /* GTK+ does not like having a showing widget in a + * hidden tab. */ + for(gr = qp_sllist_begin(qp->graphs);gr;gr=qp_sllist_next(qp->graphs)) + gtk_widget_show(gr->tab_label_hbox); + gtk_notebook_set_show_tabs(GTK_NOTEBOOK(qp->notebook), TRUE); + } + else + { + struct qp_graph *gr; + /* GTK+ does not like having a showing widget in a + * hidden tab. */ + for(gr = qp_sllist_begin(qp->graphs);gr;gr=qp_sllist_next(qp->graphs)) + gtk_widget_hide(gr->tab_label_hbox); + gtk_notebook_set_show_tabs(GTK_NOTEBOOK(qp->notebook), FALSE); + } + + gdk_window_set_cursor(gtk_widget_get_window(qp->window), app->waitCursor); +} + +void cb_view_buttonbar(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + ASSERT(data); + qp = data; + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_buttonbar))) + gtk_widget_show(qp->buttonbar); + else + gtk_widget_hide(qp->buttonbar); + + gdk_window_set_cursor(gtk_widget_get_window(qp->window), app->waitCursor); +} + +void cb_view_statusbar(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + ASSERT(data); + qp = data; + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_statusbar))) + gtk_widget_show(qp->statusbar); + else + gtk_widget_hide(qp->statusbar); + + gdk_window_set_cursor(gtk_widget_get_window(qp->window), app->waitCursor); +} + + +void cb_view_border(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + gboolean i; + ASSERT(data); + qp = data; + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_border))) + { + gtk_window_set_decorated(GTK_WINDOW(qp->window), qp->border = TRUE); + i = gtk_window_get_decorated(GTK_WINDOW(qp->window)); + if(!i) + { + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(qp->view_border), FALSE); + qp->border = FALSE; + } + } + else + { + gtk_window_set_decorated(GTK_WINDOW(qp->window), qp->border = FALSE); + i = gtk_window_get_decorated(GTK_WINDOW(qp->window)); + if(i) + { + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(qp->view_border), TRUE); + qp->border = TRUE; + } + } +} + +#ifdef NO_BIG_WIN_COPY +gboolean ecb_window_state(GtkWidget *widget, GdkEventWindowState *e, struct qp_win *qp) +{ + if((e->changed_mask & ( + GDK_WINDOW_STATE_MAXIMIZED |GDK_WINDOW_STATE_FULLSCREEN))) + { + if((e->new_window_state & ( + GDK_WINDOW_STATE_MAXIMIZED |GDK_WINDOW_STATE_FULLSCREEN))) + gtk_widget_set_sensitive(qp->copy_window_menu_item, FALSE); + else + gtk_widget_set_sensitive(qp->copy_window_menu_item, TRUE); + } + + return TRUE; +} +#endif + +void cb_view_fullscreen(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + ASSERT(data); + qp = data; + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_fullscreen))) + gtk_window_fullscreen(GTK_WINDOW(qp->window)); + else + gtk_window_unfullscreen(GTK_WINDOW(qp->window)); + + /* if we set the waitCursor but do not have a redraw happen it would + * be bad, given the wait cursor would not change back until the + * next redraw. So maybe it would be better to force the redraw + * which would do nothing if it works and will add an extra redraw + * if the set fullscreen failed and the wait cursor will not be stuck. + * + * tracking the window-state-event may not work, because the + * wait cursor will get set too late to show. + * + * If will work in all cases and in the off chance that + * gtk_window_*fullscreen() fails the results not too bad. + * */ + gtk_widget_queue_draw(qp->current_graph->drawing_area); + qp->current_graph->pixbuf_needs_draw = 1; + gdk_window_set_cursor(gtk_widget_get_window(qp->window), app->waitCursor); +} + +static __thread int cairo_draw_ignore_event = 0; + +void cb_view_cairo_draw(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + + if(cairo_draw_ignore_event) + { + //DEBUG("ignoring\n"); + return; + } + + ASSERT(data); + qp = data; + + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_cairo_draw))) + qp->x11_draw = 0; + else + qp->x11_draw = 1; + + qp_graph_switch_draw_mode(qp->current_graph); + ecb_graph_configure(NULL, NULL, qp->current_graph); + + gtk_widget_queue_draw(qp->current_graph->drawing_area); + gdk_window_set_cursor(gtk_widget_get_window(qp->window), app->waitCursor); +} + +void cb_view_shape(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + struct qp_graph *gr; + ASSERT(data); + qp = data; + + /* this must set the gr->background_color consistant + * with qp_graph_create() in graph.c */ + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_shape))) + { + DEBUG("shape on\n"); + /* turn on shape */ + + for(gr=qp_sllist_begin(qp->graphs);gr;gr=qp_sllist_next(qp->graphs)) + { + /* Full redraw needed to unset anti-aliasing */ + gr->pixbuf_needs_draw = 1; + if(gr->background_color.a >= 0.5) + gr->background_color.a = 0.4; + } + + qp->shape = 1; + gdk_window_set_cursor(gtk_widget_get_window(qp->window),app->waitCursor); + } + else + { + DEBUG("shape off\n"); + /* turn off shape */ + + for(gr=qp_sllist_begin(qp->graphs);gr;gr=qp_sllist_next(qp->graphs)) + { + /* Full redraw needed to set anti-aliasing */ + gr->pixbuf_needs_draw = 1; + if(gr->background_color.a != gr->bg_alpha_preshape) + gr->background_color.a = gr->bg_alpha_preshape; + } + + qp->shape = 0; + + /* This should remove the current shape thingy */ + /* by applying a NULL shape_region */ + gtk_widget_shape_combine_region(qp->window, NULL); + + if(qp->last_shape_region) + { + cairo_region_destroy(qp->last_shape_region); + qp->last_shape_region = NULL; + /* now it is NULL in our record of it */ + } + + if(qp->current_graph->pixbuf_needs_draw) + gdk_window_set_cursor(gtk_widget_get_window(qp->window),app->waitCursor); + } + + + gtk_widget_queue_draw(qp->current_graph->drawing_area); +} + +void cb_close_tab(GtkWidget *w, gpointer data) +{ + ASSERT(data); + qp_graph_destroy((struct qp_graph *) data); +} + +gboolean ecb_graph_draw(GtkWidget *w, cairo_t *cr, gpointer data) +{ + struct qp_graph *gr; + ASSERT(data); + gr = data; + + qp_graph_draw(gr, cr); + + return TRUE; /* TRUE means the event is handled. */ +} + +void cb_about(GtkWidget *w, gpointer data) +{ + qp_launch_browser("about.html"); + + if(data) + { + printf("Quickplot version " VERSION "\n" + "The Quickplot home-page is at <" PACKAGE_URL ">\n" + "This was compiled on: " __DATE__ " at the time: " __TIME__ "\n" + "Quickplot is free software, distributed under the terms of the\n" + "GNU General Public License (version 3 or higher).\n" +#ifdef QP_DEBUG + "This Quickplot installation was built with extra debuging code.\n" + "You do not want that unless you are writing/debuging Quickplot code.\n" +#endif + ); + exit(0); + } +} + +void cb_help(GtkWidget *w, gpointer data) +{ + qp_launch_browser("help.html"); + + if(data) + { + printf("Quickplot is a fast interactive 2D plotter.\n" + "\n" + "Quickplot uses html files for its reference documentation.\n" + "Quickplot also has a man page.\n" + "If you're not seeing a browser now with the\n" + "Quickplot Help document loaded than you may not be using a\n" + "windowing system or something else went wrong.\n" + "\n" + "The Quickplot text help document can be printed to standard\n" + "output by running `quickplot --print-help'.\n" + "\n" + "The lastest copy of the Quickplot reference documentation can be\n" + "found at <" PACKAGE_URL "help.html>.\n" + "The Quickplot home-page is at <" PACKAGE_URL ">.\n"); + exit(1); + } +} + +gboolean ecb_graph_configure(GtkWidget *wdgt, GdkEvent *event, gpointer data) +{ + struct qp_graph *gr; + GtkAllocation allocation; + int w1, w2, h1, h2, h, w; + int old_xscale, old_yscale; + ASSERT(data); + gr = data; + ASSERT(gr->drawing_area); + gtk_widget_get_allocation(gr->drawing_area, &allocation); + + w1 = 2*allocation.width; + w2 = 1.5*app->root_window_width; + h1 = 2*allocation.height; + h2 = 1.5*app->root_window_height; + w = (w1 > w2)?w1:w2; + h = (h1 > h2)?h1:h2; + + if(!gr->pixbuf_surface || w > gr->pixbuf_width || h > gr->pixbuf_height) + { + + if(gr->x11) + { + /* Drawing with X11 and Cairo */ + + unsigned int depth; + Display *dsp; + Window win; + int screen; + + if(!gr->x11->dsp) + dsp = (gr->x11->dsp = gdk_x11_get_default_xdisplay()); + else + dsp = gr->x11->dsp; + + screen = DefaultScreen(gr->x11->dsp); + depth = DefaultDepth(dsp, screen); + + ASSERT(depth > 7); + + win = gdk_x11_window_get_xid(gtk_widget_get_window(gr->drawing_area)); + + if(gr->pixbuf_surface) + cairo_surface_destroy(gr->pixbuf_surface); + + if(gr->x11->gc) + XFreeGC(dsp, gr->x11->gc); + + if(gr->x11->pixmap) + XFreePixmap(dsp, gr->x11->pixmap); + + gr->x11->pixmap = + XCreatePixmap(dsp, win, w, h, depth); + + + gr->x11->gc = XCreateGC(dsp, gr->x11->pixmap, 0, 0); + XSetLineAttributes(dsp, gr->x11->gc, 4, LineSolid, CapButt, JoinRound); + + gr->pixbuf_surface = + cairo_xlib_surface_create(dsp, gr->x11->pixmap, + DefaultVisual(dsp, screen), w, h); + + //DEBUG("Using X11 Pixmap\n"); + + } + else + { + /* Drawing just with Cairo */ + + if(gr->pixbuf_surface) + cairo_surface_destroy(gr->pixbuf_surface); + + gr->pixbuf_surface = + cairo_image_surface_create(CAIRO_FORMAT_ARGB32, w, h); + } + + /* The drawing_area widget fits inside the pixbuf */ + + + ////////pixbuf//////// + // // + // ********** // + // * * // + gr->pixbuf_width = w; // * widget * // + gr->pixbuf_height = h; // * * // + // ********** // + // // + ////////////////////// + } + + gr->pixbuf_x = (gr->pixbuf_width - allocation.width)/2; + gr->pixbuf_y = (gr->pixbuf_height - allocation.height)/2; + + gr->pixbuf_needs_draw = 1; + gr->draw_value_pick = 0; + + // Too bad this does not work + gdk_window_set_cursor(gtk_widget_get_window(gr->qp->window), + app->waitCursor); + + /* plot_val = scale*(zoomed plot val) + shift */ + + /* if we have any grab shifting we scale that to work + * with the new tranformation */ + + old_xscale = gr->xscale; + old_yscale = gr->yscale; + + gr->xscale = allocation.width; + gr->yscale = - allocation.height; + + gr->xshift = 0; + gr->yshift = allocation.height; + + /* multiply out the new scale to the grab. */ + /* If this is the first configure event the + * old gr->scale will be zero, but the + * gr->grab_x (y) may not be 0 if this is a copied gr. + * So we have gr->scale start at 0 to catch this case. */ + if(gr->grab_x && old_xscale) + gr->grab_x *= ((double)gr->xscale)/((double)old_xscale); + if(gr->grab_y && old_xscale) + gr->grab_y *= ((double)gr->yscale)/((double)old_yscale); + + gr->waiting_to_resize_draw = 1; + + + if(ABSVAL(gr->grab_x) > gr->pixbuf_x || + ABSVAL(gr->grab_y) > gr->pixbuf_y) + { + qp_zoom_push_shift(&(gr->z), - gr->grab_x/gr->xscale, + - gr->grab_y/gr->yscale); + ++gr->zoom_level; + gr->grab_x = 0; + gr->grab_y = 0; + } + + gr->qp->pointer_x = -1; + gr->qp->pointer_y = -1; + + + //DEBUG("graph named: \"%s\" surface=%p\n", gr->name, gr->surface); + return TRUE; /* TRUE means the event is handled. */ +} + +/* We use this to zoom in and out at the pointer */ +gboolean ecb_graph_scroll(GtkWidget *w, GdkEvent *event, gpointer data) +{ +#ifdef QP_DEBUG + const char *dir[] = { "up", "down", "left", "right"}; + DEBUG("x=%g y=%g direction=%s time=%u\n", + event->scroll.x, event->scroll.y, + dir[((int) (event->scroll.direction)) % 4], + event->scroll.time); + +#endif + + return TRUE; +} + +gboolean cb_switch_page(GtkNotebook *notebook, GtkWidget *page, + guint page_num, gpointer data) +{ + struct qp_graph *gr; + ASSERT(page); + gr = g_object_get_data(G_OBJECT(page), "qp_graph"); + ASSERT(gr); + + /* gtk_notebook_get_current_page(GTK_NOTEBOOK(qp->notebook)) is broken + * so we catch this event to get the current graph that is showing here. */ + gr->qp->current_graph = gr; + + //WARN("page_num=%d graph named=\"%s\"\n", page_num, gr->name); + + qp_win_set_status(gr->qp); + + if((gtk_check_menu_item_get_active( + GTK_CHECK_MENU_ITEM(gr->qp->view_cairo_draw)) && + gr->x11) || + (!gtk_check_menu_item_get_active( + GTK_CHECK_MENU_ITEM(gr->qp->view_cairo_draw)) && + !gr->x11) ) + { + cairo_draw_ignore_event = 1; + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(gr->qp->view_cairo_draw), + (gr->x11)?FALSE:TRUE); + cairo_draw_ignore_event = 0; + } + + // redraw queuing is not needed + //gtk_widget_queue_draw(gr->drawing_area); + + /* a new graph will use the draw mode of this graph */ + gr->qp->x11_draw = (gr->x11)?1:0; + + if(gr->qp->shape) + gdk_window_set_cursor(gtk_widget_get_window(gr->qp->window),app->waitCursor); + + gr->qp->update_graph_detail = 0; + + if(gr->qp->graph_detail) + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(gr->qp->view_graph_detail))) + /* qp->graph_detail is showing + * We need to update it, but if there is a new graph we will + * wait until after the graph drawn. */ + gr->qp->update_graph_detail = 1; + + return TRUE; +} + +/* i is the current index starting at 0 and + * ending at num_points-1. So when i == -1 + * we must start over and when i == num_points + * we end (start). */ +static inline +void get_next_val(struct qp_plot *p, ssize_t *i) +{ + double x = NAN, y; + if(*i == -1) + { + x = p->channel_x_begin(p->x_picker); + y = p->channel_y_begin(p->y_picker); + ++(*i); + } + while((!is_good_double(x) || !is_good_double(y)) && + *i < p->num_points-1) + { + x = p->channel_x_next(p->x_picker); + y = p->channel_y_next(p->y_picker); + ++(*i); + } + if(is_good_double(x) && is_good_double(y)) + { + p->xval = x; + p->yval = y; + } +} + +static inline +void get_prev_val(struct qp_plot *p, ssize_t *i) +{ + double x = NAN, y; + if(*i == p->num_points) + { + x = p->channel_x_end(p->x_picker); + y = p->channel_y_end(p->y_picker); + --(*i); + } + while((!is_good_double(x) || !is_good_double(y)) && + *i > 0) + { + x = p->channel_x_prev(p->x_picker); + y = p->channel_y_prev(p->y_picker); + --(*i); + } + if(is_good_double(x) && is_good_double(y)) + { + p->xval = x; + p->yval = y; + } +} + +void set_value_pick_entries(struct qp_graph *gr, int x, int y) +{ + struct qp_plot *p; + int mode; + mode = ((gr->value_mode) & 3); + ASSERT(mode == 0 || mode == 1 || mode == 2); + + if(mode == 0) + { + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + char text[64]; + snprintf(text, 64, "%.*g", p->sig_fig_x, qp_plot_get_xval(p, x)); + gtk_entry_set_text(GTK_ENTRY(p->x_entry), text); + + snprintf(text, 64, "%.*g", p->sig_fig_y, qp_plot_get_yval(p, y)); + gtk_entry_set_text(GTK_ENTRY(p->y_entry), text); + } + return; + } + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + double xval, yval, x_pix; + char text[64]; + ssize_t i; + + /* the channel p->x_picker is assumed to be + * monotonically increasing. */ + + x_pix = qp_plot_get_xval(p, x); + + if(!p->x_picker) + { + ssize_t j; + + ASSERT(p->x->form == QP_CHANNEL_FORM_SERIES); + p->x_picker = qp_channel_series_create(p->x, 0); + p->y_picker = qp_channel_series_create(p->y, 0); + i = -1; + get_next_val(p, &i); + p->picker_i = i; + p->num_points = qp_channel_series_length(p->x_picker); + j = qp_channel_series_length(p->y_picker); + if(p->num_points > j) + p->num_points = j; + } + else + i = p->picker_i; + + /* TODO: Make work for the case when values can be NAN and INFINTY */ + + xval = p->xval; + yval = p->yval; + + if(xval == x_pix || (i == p->num_points-1 && xval <= x_pix) || + p->num_points == 1 || (i == 0 && xval >= x_pix)) + goto finish; + + while(i < p->num_points-1 && p->xval < x_pix) + { + xval = p->xval; + yval = p->yval; + get_next_val(p, &i); + } + + if(i == p->num_points-1 && p->xval <= x_pix) + { + xval = p->xval; + yval = p->yval; + goto finish; + } + + if(i < p->num_points-1 && xval < x_pix) /* p->xval >= x_pix */ + { + if(mode == 1) + { + /* interpolate the y value */ + yval = yval + (x_pix - xval)*(p->yval - yval)/(p->xval - xval); + xval = x_pix; + } + else /* mode == 2 */ + { + /* pick the closest value */ + if(p->xval - x_pix < x_pix - xval) + { + xval = p->xval; + yval = p->yval; + } + else /* xval, yval are the closest values */ + { + /* go to the previous value */ + if(i>1) + { + /* goto i-1 */ + get_prev_val(p, &i); + xval = p->xval; + yval = p->yval; + } + else + { + /* i == 1 goto i = 0 */ + i = -1; + get_next_val(p, &i); + } + } + } + + goto finish; + } + + ASSERT(p->xval >= x_pix); + + /* Now: p->xval >= x_pix */ + + while(i > 0 && p->xval > x_pix) + { + xval = p->xval; + yval = p->yval; + get_prev_val(p, &i); + } + + if(p->xval > x_pix) + { + /* i == 0 */ + xval = p->xval; + yval = p->yval; + goto finish; + } + + /* p->xval <= x_pix && xval > x_pix */ + + /* interpolate the y value */ + if(mode == 1) + { + yval = p->yval + (x_pix - p->xval)*(yval - p->yval)/(xval - p->xval); + xval = x_pix; + } + else /* mode == 2 */ + { + /* pick the closest value */ + if(x_pix - p->xval < xval - x_pix) + { + xval = p->xval; + yval = p->yval; + } + else if(i < p->num_points-2) + { + get_next_val(p, &i); + } + else + { + /* i == p->num_points-2 goto i = num_points -1 */ + i = p->num_points; + get_prev_val(p, &i); + xval = p->xval; + yval = p->yval; + } + } + + finish: + + if(xval == p->xval) + { + gr->value_pick_x = qp_plot_get_xpixel(p, xval); + gr->value_pick_y = qp_plot_get_ypixel(p, yval); + snprintf(text, 64, "%.16g", xval); + gtk_entry_set_text(GTK_ENTRY(p->x_entry), text); + snprintf(text, 64, "%.16g", yval); + gtk_entry_set_text(GTK_ENTRY(p->y_entry), text); + } + else + { + snprintf(text, 64, "%.*g", p->sig_fig_x, xval); + gtk_entry_set_text(GTK_ENTRY(p->x_entry), text); + snprintf(text, 64, "%.*g", p->sig_fig_y, yval); + gtk_entry_set_text(GTK_ENTRY(p->y_entry), text); + } + + if(i == 0) + { + i = -1; + get_next_val(p, &i); + } + else if(i == p->num_points-1) + { + i = p->num_points; + get_prev_val(p, &i); + } + p->picker_i = i; + } +} + +static inline +void get_value_picks(struct qp_graph *gr, int x, int y) +{ + gr->value_pick_x = x + gr->pixbuf_x + gr->grab_x; + gr->value_pick_y = y + gr->pixbuf_y + gr->grab_y; +} + +gboolean ecb_graph_button_press(GtkWidget *w, GdkEvent *event, gpointer data) +{ + struct qp_graph *gr; + gr = data; + ASSERT(data); + ASSERT(event->type == GDK_BUTTON_PRESS || + event->type == GDK_2BUTTON_PRESS || + event->type == GDK_3BUTTON_PRESS); + + /* We can get a button press without a release when + * we include the double and triple press events. + * Double presses can come without a single press + * before. */ + + gr->qp->pointer_x = event->button.x; + gr->qp->pointer_y = event->button.y; + + //ERROR("graph named: \"%s\" [type=%d] mouse at=(%g,%g) button=%d\n", + // gr->name, event->type, + // event->button.x, event->button.y, event->button.button); + + if(event->button.button == GRAB_BUTTON || + event->button.button == PICK_BUTTON || + event->button.button == ZOOM_BUTTON) + { + if(mouse_num) + { + /* we do not do multi-button stuff + * We just take care of the first button press + * hoping we will get a button release event that resets + * mouse_num to 0. */ + return TRUE; + } + start_x = save_x = (int) event->button.x; + start_y = save_y = (int) event->button.y; + mouse_num = event->button.button; + got_motion = 0; + /* we use the shift in the zoom box drawing to + * shift the zoom box instead of just pulling it. + * We ignore all shift key presses before the box + * is started from this button press. */ + got_mod_key = 0; + } + else + return FALSE; + + switch(mouse_num) + { + case GRAB_BUTTON: + gdk_window_set_cursor(gtk_widget_get_window(gr->drawing_area), app->grabCursor); + break; + case PICK_BUTTON: + if(gr->qp->graph_detail) + { + struct qp_plot *p; + + get_value_picks(gr, save_x, save_y); + if((p = qp_sllist_last(gr->plots)) && !p->sig_fig_x) + { + GtkAllocation a; + gtk_widget_get_allocation(gr->drawing_area, &a); + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + qp_plot_get_sig_fig(p, a.width, a.height); + } + + set_value_pick_entries(gr, gr->value_pick_x, gr->value_pick_y); + gr->draw_value_pick = 1; + gtk_widget_queue_draw(gr->drawing_area); + } + break; + case ZOOM_BUTTON: + gdk_window_set_cursor(gtk_widget_get_window(gr->drawing_area), app->zoomCursor); + break; + } + + return TRUE; /* TRUE means the event is handled. */ +} + +/* sort it so that y >= x */ +static inline +void Order(int *x, int *y) +{ + if(*x > *y) + { + int i; + i = *x; + *x = *y; + *y = i; + } +} + +gboolean ecb_graph_button_release(GtkWidget *w, GdkEvent *event, gpointer data) +{ + double width, height; + struct qp_graph *gr; + gr = data; + ASSERT(data); + ASSERT(event->type == GDK_BUTTON_RELEASE); + //DEBUG("graph named: \"%s\"\n", gr->name); + if(qp_sllist_length(gr->plots) == 0) + return TRUE; + + gr->qp->pointer_x = event->button.x; + gr->qp->pointer_y = event->button.y; + + if(mouse_num != GRAB_BUTTON) + qp_win_set_status(gr->qp); + + if(event->button.button != GRAB_BUTTON && + event->button.button != PICK_BUTTON && + event->button.button != ZOOM_BUTTON) + return FALSE; + + /* in order to keep things working in the most cases we + * accept any button release event to finish the mouse + * press and pointer/motion action. */ + + // this test shows the the pointer can move + // between motion and this release event + // We just ignore this motion since it would + // just make things looks jiggley (bad). + //ASSERT(save_x == (int) event->button.x); + //ASSERT(save_y == (int) event->button.y); + + width = gtk_widget_get_allocated_width(gr->drawing_area); + height = gtk_widget_get_allocated_height(gr->drawing_area); + + switch(mouse_num) + { + case GRAB_BUTTON: + gdk_window_set_cursor(gtk_widget_get_window(gr->drawing_area), NULL); + + if(ABSVAL(gr->grab_x) > gr->pixbuf_x || + ABSVAL(gr->grab_y) > gr->pixbuf_y) + { + qp_zoom_push_shift(&(gr->z), - gr->grab_x/gr->xscale, + - gr->grab_y/gr->yscale); + ++gr->zoom_level; + gr->grab_x = 0; + gr->grab_y = 0; + gr->pixbuf_needs_draw = 1; + gdk_window_set_cursor(gtk_widget_get_window(gr->qp->window), + app->waitCursor); + gtk_widget_queue_draw(gr->drawing_area); + gr->draw_value_pick = 0; + } + else + /* In case there is mouse motion */ + qp_win_set_status(gr->qp); + break; + case PICK_BUTTON: + if(gr->qp->graph_detail) + { + get_value_picks(gr, gr->qp->pointer_x, gr->qp->pointer_y); + set_value_pick_entries(gr, gr->value_pick_x, gr->value_pick_y); + gtk_widget_queue_draw(gr->drawing_area); + } + break; + case ZOOM_BUTTON: + { + int queue_draw = 0; + int starting_zoom_level; + starting_zoom_level = gr->zoom_level; + gr->draw_value_pick = 0; + + gdk_window_set_cursor(gtk_widget_get_window(gr->drawing_area), NULL); + if(gr->draw_zoom_box) + { + gr->draw_zoom_box = 0; + queue_draw = 1; + } + + /* order the x and y values so save >= start */ + Order(&start_x, &save_x); + Order(&start_y, &save_y); + + /* We will zoom in under these conditions + * But we will save the grab to a zoom first + * if we zoom in at all */ + if((start_x >= 0 && save_x < width && + start_y >= 0 && start_y < height) || + save_x - start_x < 2 || + save_y - start_y < 2) + { + if(gr->grab_x || gr->grab_y) + { + qp_zoom_push_shift(&(gr->z), - gr->grab_x/gr->xscale, + - gr->grab_y/gr->yscale); + ++gr->zoom_level; + gr->grab_x = 0; + gr->grab_y = 0; + } + } + + /* We have a zoom box defined by start_x, start_y, + * and save_x, save_y. */ + + + if((save_x - start_x)*(save_y - start_y) < 9) + { + /* we just shrink the plots a little */ + /* We make a zoom level that zooms out */ + qp_zoom_push(&(gr->z), 0.8, 0.1, 0.8, 0.1); + ++gr->zoom_level; + } + else if(start_x >= 0 && save_x < width && + start_y >= 0 && save_y < height) + { + /* We make a new zoom from the zoom box */ + double xmin, ymin, xmax, ymax; + xmin = start_x; + xmax = save_x; + ymin = height - save_y; + ymax = height - start_y; + xmin /= width; + xmax /= width; + ymin /= height; + ymax /= height; + qp_zoom_push_mm(&(gr->z), xmin, ymin, xmax, ymax); + ++gr->zoom_level; + } + else if((start_x >= 0 && save_x < width) || + (start_y >= 0 && save_y < height)) + { + if(gr->grab_x || gr->grab_y) + { + gr->grab_x = gr->grab_y = 0; + queue_draw = 1; + } + else if(gr->zoom_level) + { + /* zoom out one level */ + qp_zoom_pop(&(gr->z)); + --gr->zoom_level; + } + } + else + { + if(gr->zoom_level) + { + /* zoom out all levels */ + qp_zoom_pop_all(&(gr->z)); + gr->zoom_level = 0; + } + if(gr->grab_x || gr->grab_y) + { + gr->grab_x = gr->grab_y = 0; + queue_draw = 1; + } + } + + if(gr->zoom_level != starting_zoom_level) + { + gdk_window_set_cursor(gtk_widget_get_window(gr->qp->window), + app->waitCursor); + queue_draw = 1; + gr->pixbuf_needs_draw = 1; + } + + if(queue_draw) + { + qp_win_set_status(gr->qp); + gtk_widget_queue_draw(gr->drawing_area); + } + + break; + } + } + + + /* reset the mouse_num */ + mouse_num = 0; + + return TRUE; /* TRUE means the event is handled. */ +} + +gboolean ecb_graph_pointer_motion(GtkWidget *w, GdkEvent *event, gpointer data) +{ + struct qp_win *qp; + struct qp_graph *gr; + gr = data; + ASSERT(data); + ASSERT(event->type == GDK_MOTION_NOTIFY); + + if(qp_sllist_length(gr->plots) == 0) + return TRUE; + + qp = gr->qp; + + gr->qp->pointer_x = event->motion.x; + gr->qp->pointer_y = event->motion.y; + + if(mouse_num != GRAB_BUTTON) + qp_win_set_status(gr->qp); + + + if(!mouse_num) return FALSE; + + //DEBUG("graph named: \"%s\"\n", gr->name); + + + switch(mouse_num) + { + case GRAB_BUTTON: + if(!got_motion) + { + gdk_window_set_cursor(gtk_widget_get_window(gr->drawing_area), + app->holdCursor); + } + + //DEBUG("from (x,y) %d, %d to %d, %d\n", save_x, save_y, + // (int)event->motion.x, (int) event->motion.y); + + gr->grab_x += save_x - (int) event->motion.x; + gr->grab_y += save_y - (int) event->motion.y; + + gtk_widget_queue_draw(gr->drawing_area); + + if(!got_motion) + qp_win_set_status(qp); + + break; + case PICK_BUTTON: + if(gr->qp->graph_detail) + { + get_value_picks(gr, gr->qp->pointer_x, gr->qp->pointer_y); + set_value_pick_entries(gr, gr->value_pick_x, gr->value_pick_y); + gr->draw_value_pick = 1; + gtk_widget_queue_draw(gr->drawing_area); + } + break; + case ZOOM_BUTTON: + { + if(got_mod_key & (L_SHIFT | R_SHIFT)) + { + start_x -= save_x - (int) event->motion.x; + start_y -= save_y - (int) event->motion.y; + } + else if(got_mod_key & (L_CNTL | R_CNTL)) + { + start_x += save_x - (int) event->motion.x; + start_y += save_y - (int) event->motion.y; + } + + if(start_x != (int) event->motion.x && + start_y != (int) event->motion.y) + { + gr->draw_zoom_box = 1; + gr->z_x = start_x; + gr->z_y = start_y; + gr->z_w = (int) event->motion.x - start_x; + gr->z_h = (int) event->motion.y - start_y; + /* clear the old zoom box and draw a new one */ + gtk_widget_queue_draw(gr->drawing_area); + } + else if(gr->draw_zoom_box) + { + gr->draw_zoom_box = 0; + /* clear the old zoom box and do not draw a new one */ + gtk_widget_queue_draw(gr->drawing_area); + } + } + break; + } + + save_x = (int) event->motion.x; + save_y = (int) event->motion.y; + + got_motion = 1; + + return TRUE; /* TRUE means the event is handled. */ +} + +void cb_open_file(GtkWidget *w, gpointer data) +{ + GtkWidget *dialog; + struct qp_win *qp; + struct qp_source *s = NULL; + ASSERT(data); + qp = data; + + dialog = gtk_file_chooser_dialog_new ("Open File", + GTK_WINDOW(qp->window), + GTK_FILE_CHOOSER_ACTION_OPEN, + GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, + GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, + NULL); + if(gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) + { + char *filename; + filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); + ASSERT(filename && filename[0]); + gtk_widget_destroy(dialog); + + s = qp_source_create(filename, QP_TYPE_UNKNOWN); + +#if 0 +#ifdef QP_DEBUG + if(s) + qp_source_debug_print(s); +#endif +#endif + + g_free(filename); + } + else + gtk_widget_destroy(dialog); + + /* TODO: make defaults plots or open the plot builder gui */ + + if(s && app->op_default_graph) + qp_win_graph_default_source(qp, s, NULL); + + +#if 0 + if(s) + qp_win_make_default_plots(qp, s); +#endif + +} + +void cb_remove_source(GtkWidget *w, gpointer data) +{ + ASSERT(data); + qp_source_destroy((struct qp_source*)data); +} + +void cb_new_window(GtkWidget *w, gpointer data) +{ + qp_win_create(); +} + +void cb_copy_window(GtkWidget *w, gpointer data) +{ + ASSERT(data); + qp_win_copy_create((struct qp_win*) data); +} + +void cb_new_graph_tab(GtkWidget *w, gpointer data) +{ + ASSERT(data); + qp_graph_create((struct qp_win*)data, NULL); +} + +void cb_save_png_image_file(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + struct qp_graph *gr; + int page_num; + char *filename = NULL; + ASSERT(data); + qp = data; + page_num = gtk_notebook_get_current_page(GTK_NOTEBOOK(qp->notebook)); + w = gtk_notebook_get_nth_page(GTK_NOTEBOOK(qp->notebook), page_num); + gr = g_object_get_data(G_OBJECT(w), "qp_graph"); + + { + GtkWidget *dialog; + char name[64]; + snprintf(name, 64, "%.60s.png", gr->name); + + dialog = gtk_file_chooser_dialog_new ("Save PNG File", + GTK_WINDOW(qp->window), + GTK_FILE_CHOOSER_ACTION_SAVE, + GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, + GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, + NULL); + gtk_file_chooser_set_do_overwrite_confirmation( + GTK_FILE_CHOOSER(dialog), TRUE); + gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), name); + if(gtk_dialog_run(GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) + filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); + gtk_widget_destroy (dialog); + } + + if(filename) + { + qp_win_save_png(qp, gr, filename); + g_free(filename); + } +} + diff -Nru quickplot-0.8.15/callbacks.h quickplot-0.9.11/callbacks.h --- quickplot-0.8.15/callbacks.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/callbacks.h 2011-12-20 13:29:54.000000000 +0000 @@ -0,0 +1,85 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#ifdef CB +#error "Oh shit: CB() is defined already" +#endif +#ifdef ECB +#error "Oh shit: ECB() is defined already" +#endif + + +#define CB(X) extern void cb_##X(GtkWidget *w, gpointer data) +#define ECB(X) extern gboolean ecb_##X(GtkWidget *w,\ + GdkEvent *event, gpointer data) + +ECB(close); +CB(quit); +ECB(key_release); +ECB(key_press); +CB(zoom_out); +CB(zoom_out_all); +CB(view_menubar); +CB(view_graph_tabs); +CB(view_buttonbar); +CB(view_statusbar); +CB(view_border); +//#undef NO_BIG_WIN_COPY +/* Define NO_BIG_WIN_COPY to have the "copy window" disabled when the window + * is in fullscreen or maximized. */ +#define NO_BIG_WIN_COPY +#ifdef NO_BIG_WIN_COPY +extern +gboolean ecb_window_state(GtkWidget *widget, GdkEventWindowState *event, + struct qp_win *qp); +#endif +CB(view_fullscreen); +CB(view_cairo_draw); +CB(view_shape); +CB(close_tab); +CB(delete_window); +extern gboolean ecb_graph_draw(GtkWidget *w, cairo_t *cr, gpointer data); +CB(help); +CB(about); +ECB(graph_configure); +ECB(graph_scroll); +gboolean cb_switch_page(GtkNotebook *notebook, GtkWidget *page, + guint page_num, gpointer data); +ECB(graph_button_press); +ECB(graph_button_release); +ECB(graph_pointer_motion); +CB(open_file); +CB(remove_source); +CB(new_window); +CB(copy_window); +CB(new_graph_tab); +CB(save_png_image_file); + + +// graph_details.c +CB(graph_detail_show_hide); +CB(view_graph_detail); + +#undef ECB +#undef CB + diff -Nru quickplot-0.8.15/ChangeLog quickplot-0.9.11/ChangeLog --- quickplot-0.8.15/ChangeLog 2009-03-08 21:42:36.000000000 +0000 +++ quickplot-0.9.11/ChangeLog 2011-12-18 17:29:31.000000000 +0000 @@ -1,178 +1,33 @@ -Sun Mar 8 14:13:29 EDT 2009 Lance Arsenault - * === released version 0.8.15 === - * Updates from some Debain patches (thanks to Debain) - * Added middle mouse un-zoom action, thanks to Torben - Still need to document it, but this feature will change in the - next quickplot rewrite. - * Minor edits for libsigc++ changes, thanks to all that told me - -Thu May 15 19:57:37 EDT 2008 Lance Arsenault - * Added changes like the gentoo patch quickplot-0.8.13-gcc43.patch - * Minor edits to remove more compiler warnings - -Mon Sep 3 22:47 EDT 2007 Lance Arsenault - * fixed svn URL in docs - -Thu Aug 17 23:48:45 EDT 2006 Lance Arsenault - * === released version 0.8.13 === - * fix for read file bug when decimal point character is a ',' - like in Austria - -Thu Aug 17 12:10:36 EDT 2006 Lance Arsenault - * === released version 0.8.10 === - * fixed filenames of xpm image files to be compatable - with lastest ImageMagick (just for development). - * made install_portage use Portage overlay for gentoo systems - * This should make any diff if you're not developing quickplot - -Sat Aug 5 11:34:22 EDT 2006 Lance Arsenault - * === released version 0.8.9 === - * Fixed the zoom box and other over-lay lines color so that they - are always well seen. - -Thu Aug 3 20:05:09 EDT 2006 Lance Arsenault - * === released version 0.8.8 === - * Stopped using CVS and started using Sourceforge Subversion - Repository. - * Added one line to Field.h which may fix a compiler error on some - RedHat systems. - * Made it so that the first graph has the same default - colors as the all other graphs. I think this is a work around of a - GTKmm bug. - * minor edits of homepage. - * Removed @ from email, which may cut back on SPAM I receive. - -Fri Jan 7 14:33:35 EST 2005 Lance Arsenault - * === released version 0.8.7 === - * fixed configure libsndfile bug which excluded the - use of libsndfile in some cases when it should not - have - -Thu Jan 6 20:26:45 EST 2005 Lance Arsenault - * === released version 0.8.6 === - * added --with-html-dir=DIR configure option - * made it so that quickplot will not exit if reading stdin - fails at startup. - -Wed Jan 5 21:25:45 EST 2005 Lance Arsenault - * === released version 0.8.5 === - * fixed PlotLister bug that caused SegFault - -Wed Jan 5 19:06:46 EST 2005 Lance Arsenault - * === released version 0.8.4 === - * applied patch for amd64 - * quickplot.ebuild from Gentoo - * minor edits to configure.ac - -Sun Dec 5 18:31:53 EST 2004 Lance Arsenault - * === released version 0.8.3 === - * minor edits - -Thu Aug 26 19:22:36 EDT 2004 Lance Arsenault - * === release version 0.8.2 === - -Thu Aug 26 18:17:57 EDT 2004 Lance Arsenault - * === released version 0.8.1 === - * this may be a good OS X Darwin port of quickplot - -Thu Aug 26 10:53:03 EDT 2004 Lance Arsenault - * === released version 0.8.0 === - * requires gtkmm-2.4.x - * get quickplot-0.7.8 to use with gtkmm-2.2.x - it's pretty much the same otherwise - -Wed Aug 25 19:55:07 EDT 2004 Lance Arsenault - * === released version 0.7.8 === - * this may be the last release that uses gtkmm version 2.2.x we - will be using gtkmm version 2.4.x in future releases. gtkmm - version 2.2.x is not does not provide all the same interfaces as - gtkmm version 2.4.x. - -Thu Aug 5 21:06:09 EDT 2004 Lance Arsenault - * === released version 0.7.7 === - * minor edits - -Sun Jul 11 21:50:48 EDT 2004 Lance Arsenault - * === released version 0.7.6 === - * removed released files for version 0.7.5 because of bug - * fixed a nasty bug in the GraphConfig widget which caused - segfault - -Sun Jul 11 00:03:22 EDT 2004 Lance Arsenault - *=== released version 0.7.5 === - *split GraphConfig widget into two notebook tabs - -Thu Jun 17 17:57:12 EDT 2004 Lance Arsenault - *=== released version 0.7.4 === - *cleaned up scripts to better use GNU Autotools - *minor bug fixes - -2004-05-16 23:49 EDT Version 0.7.3 lanceman - Fixed some minor bugs. Added --silent command line option. Made - accelerator keys work better. Documented accelerator keys. Made - linking with libsndfile optional. Open and Save PNG dialogs are - reused; this way the directories will be the same as last time. - -2004-05-01 23:36 EDT Version 0.7.2 lanceman - Fixed Accelerator keys. Fixed frame copy bug. - -2004-04-23 14:17 EDT Version 0.7.1 lanceman - Just minor edits to docs and scripts. - -2004-04-22 21:35 EST Version 0.7.0 lanceman - - The last release of Quickplot was version 0.6.5. In this version, 0.7.0, - we changed the widget API from QT to GTK using GTKmm - (http://www.gtkmm.org/). Most of the code was rewritten when going from - version 0.6.5 to 0.7.0. - - Some command line options are not interpreted the same. - - - Fixed: - - reading WAV sound files works for more WAV files types - - the plot manager has been replaced with a better GUI - - - Added features include: - - Graph Tabs -- kind of like page tabs in a web browser - - multiple main window frames. Like Emacs has "New Frame". Each - main window frame uses the same plot data, but the plots are not - the same, kind of like Emacs buffers are shared between frames. - - reads many sound file types using the package libsndfile - (http://www.mega-nerd.com/libsndfile/) - - can plot any field against any field -- version 0.6.5 could not - plot the same field against itself or fields against fields with - a different number of values - - zoom levels do not change when plots are added or removed until - it's zoomed back all the way out, or is forced to by the plots - added - - by default the scales are set to fit all plots in a graph so long - as the span of x,y values in all the plots are within an order of - magnitude of each other. We retained the "same scales" and - "different scales" options in addition to this new default called - "auto scale". - - added the use of the GNU autotools (./configure) to build and install - - added the default GTK command line options - - - Lost features: - - the QT command line options -- we no longer use QT - - No longer saves xpm image files, since PNG files are much better - for most purposes, and you can always convert png files to xpm - files using `convert' from http://www.imagemagick.org/ - - The action of the mouse buttons has changed. - +This ChangeLog just keeps a summary see: +svn log https://quickplot.svn.sf.net/svnroot/quickplot/trunk +for a more. + +Wed 16 Nov 2011 Lance Arsenault + * complete rewrite initial checkin to SVN server at + https://quickplot.svn.sf.net/svnroot/quickplot/trunk + +Sun 11 Dec 2011 Lance Arsenault + * Released version 0.9.0 the GTK+3, just C, no C++, complete + rewrite + +Sun 12 Dec 2011 Lance Arsenault + * Added a workaround to a bug in + libsndfile version 1.0.25 which caused reading of Ogg sound + files from pipes to fail due to calling lseek() on a pipe + * Released version 0.9.1 + +Tue 13 Dec 2011 Lance Arsenault + * Fixed X11 draw mode bug which happened when there is + transparent background with alpha less than 0.01. Redrawing + would not remove the drawing from the draw events before. So + it drew a mess of lines and points from previous zoom levels. + * Released version 0.9.2 + +Sat 17 Dec 2011 Lance Arsenault + * Released version 0.9.3 + * Then fixed memory corruption bug so then + * Released version 0.9.4 + +Sat 18 Dec 2011 Lance Arsenault + * Found and fixed pipe reading bug in non-debug builds + * Released version 0.9.5 diff -Nru quickplot-0.8.15/channel.c quickplot-0.9.11/channel.c --- quickplot-0.8.15/channel.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/channel.c 2011-12-14 18:35:08.000000000 +0000 @@ -0,0 +1,252 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + + +#include "quickplot.h" + +#include "config.h" +#include "debug.h" +#include "list.h" +#include "channel.h" +#include "spew.h" +#include "channel_double.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +static +uint64_t channel_create_count = 0; + + +qp_channel_t qp_channel_func_double_create(double (*func)(double), + double xmin, double xmax, double ymin, double ymax) +{ + struct qp_channel *c; + + c = (struct qp_channel *) qp_malloc(sizeof(*c)); + c->form = QP_CHANNEL_FORM_FUNC; + c->value_type = QP_TYPE_DOUBLE; + c->id = (++channel_create_count); + c->func_double.func = func; + c->func_double.xmin = xmin; + c->func_double.xmax = xmax; + c->func_double.ymin = ymin; + c->func_double.ymax = ymax; + return c; +} + +qp_channel_t qp_channel_linear_create(double start, double step) +{ + struct qp_channel *c; + + /* TODO: rewrite this making this a function and not a + * big memory pig like it is now. */ + + c = qp_channel_create(QP_CHANNEL_FORM_SERIES, QP_TYPE_DOUBLE); + c->data = qp_malloc(2*sizeof(double)); + ((double *) c->data)[0] = start; + ((double *) c->data)[1] = step; + + return c; +} + + +qp_channel_t qp_channel_create(int form, int value_type) +{ + struct qp_channel *channel; + + ASSERT(value_type >= 0 && value_type <= QP_TYPE_MAX); + ASSERT(form == QP_CHANNEL_FORM_SERIES || + form == QP_CHANNEL_FORM_FUNC); + + if(form != QP_CHANNEL_FORM_SERIES && + form != QP_CHANNEL_FORM_FUNC) + { + WARN("Bad form arg\n"); + QP_NOTICE("Bad form arg\n"); + return NULL; + } + if(value_type < 0 || value_type > QP_TYPE_MAX) + { + WARN("Bad value_type arg\n"); + QP_NOTICE("Bad value_type arg\n"); + return NULL; + } + + channel = (struct qp_channel *) qp_malloc(sizeof(*channel)); + channel->form = form; + channel->value_type = value_type; + channel->id = (++channel_create_count); + channel->data = 0; + + + switch(form) + { + case QP_CHANNEL_FORM_SERIES: + { + channel->series.array_current_index = (size_t) -1; + channel->series.array_last_index = ARRAY_LENGTH -1; + channel->series.last_array = NULL; + channel->series.arrays = qp_dllist_create(NULL); + channel->series.ref_count = (int *)qp_malloc(sizeof(int)); + *(channel->series.ref_count) = 1; + } + break; + + /* TODO: add other value_type cases */ + + case QP_CHANNEL_FORM_FUNC: + /* TODO: this code */ + VASSERT(0, "Need more code here\n"); + break; + +#ifdef QP_DEBUG + default: + VASSERT(0, "Bad form arg\n"); + break; +#endif + } + + return channel; +} + + +void qp_channel_destroy(qp_channel_t channel) +{ + ASSERT(channel); + if(!channel) return; + + /* TODO: add other value types */ + ASSERT(channel->value_type == QP_TYPE_UNKNOWN || + channel->value_type == QP_TYPE_DOUBLE); + + ASSERT(channel->form == QP_CHANNEL_FORM_SERIES || + channel->form == QP_CHANNEL_FORM_FUNC); + + switch(channel->form) + { + case QP_CHANNEL_FORM_SERIES: + ASSERT(*(channel->series.ref_count) > 0); + if(*(channel->series.ref_count) == 1) + { + /* This will free the arrays too */ + qp_dllist_destroy(channel->series.arrays, 1); + free(channel->series.ref_count); + } + else + { + /* This will not free the arrays, just the list reader */ + qp_dllist_destroy(channel->series.arrays, 0); + --(*(channel->series.ref_count)); + } + break; + + case QP_CHANNEL_FORM_FUNC: + /* nothing needed here for QP_CHANNEL_FORM_FUNC */ + break; + +#ifdef QP_DEBUG + default: + ASSERT(0); + break; +#endif + } + + free(channel); +} + +#ifdef QP_DEBUG +void qp_channel_debug_append(struct qp_channel *c) +{ + ASSERT(c); + switch(c->form) + { + case QP_CHANNEL_FORM_SERIES: + + ASSERT(*(c->series.ref_count) > 0); + + switch(c->value_type) + { + case QP_TYPE_DOUBLE: + { +#if 1 + double val; + APPEND(" [%zu values, min=%G, max=%g " + "is_increasing=%d is_decreasing=%d]", + qp_channel_series_length(c), + c->series.min, + c->series.max, + c->series.is_increasing, + c->series.is_decreasing); + for(val = qp_channel_series_double_begin(c); + qp_channel_series_is_reading(c); + val = qp_channel_series_double_next(c)) + APPEND(" %G", val); +#if 1 + APPEND("\nreverse [%zu]", + qp_channel_series_length(c)); + for(val = qp_channel_series_double_end(c); + qp_channel_series_is_reading(c); + val = qp_channel_series_double_prev(c)) + APPEND(" %G", val); +#endif + +#else + double *array; + struct qp_channel_series *cs; + cs = &c->series; + for(array = (double *) qp_dllist_begin(cs->arrays); + array; + array = (double *) qp_dllist_next(cs->arrays)) + { + size_t i; + size_t len; + len = (array != cs->last_array)? + ARRAY_LENGTH: + cs->array_last_index+1; + ASSERT(len > 0); + for(i=0; i. + +*/ + +#include + +#include "quickplot.h" + +#include "config.h" +#include "debug.h" +#include "list.h" +#include "channel.h" +#include "spew.h" +#include "channel_double.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +size_t qp_channel_series_double_find_lt(qp_channel_t c, double *v) +{ + size_t i, len; + double val, r; + struct qp_channel_series *cs; + val = *v; + ASSERT(c); + ASSERT(c->form == QP_CHANNEL_FORM_SERIES); + ASSERT(c->value_type == QP_TYPE_DOUBLE); + ASSERT(c->series.is_increasing); + cs = &c->series; + ASSERT(cs->min != cs->max); + len = qp_channel_series_length(c); + + if(val <= cs->min) + { + *v = qp_channel_series_double_begin(c); + ASSERT(*v == cs->min); + return 0; + } + if(val > cs->max) + { + *v = qp_channel_series_double_end(c); + ASSERT(*v == cs->max); + return len -1; + } + + /* guess that the values increase linearly */ + i = len*(cs->max - val)/(cs->max - cs->min); + if(i < 0) i = 0; + else if(i > len -1) i = len -1; + + r = qp_channel_series_double_index(c, i); + while(r < val) + r = qp_channel_series_double_next(c); + ASSERT(qp_channel_series_is_reading(c)); + + while(r >= val) + r = qp_channel_series_double_prev(c); + ASSERT(qp_channel_series_is_reading(c)); + + *v = r; + return qp_channel_series_double_get_index(c); +} + +size_t qp_channel_series_double_find_gt(qp_channel_t c, double *v) +{ + size_t i, len; + double val, r; + struct qp_channel_series *cs; + val = *v; + ASSERT(c); + ASSERT(c->form == QP_CHANNEL_FORM_SERIES); + ASSERT(c->value_type == QP_TYPE_DOUBLE); + ASSERT(c->series.is_increasing); + cs = &c->series; + ASSERT(cs->min != cs->max); + len = qp_channel_series_length(c); + + if(val < cs->min) + { + *v = qp_channel_series_double_begin(c); + ASSERT(*v == cs->min); + return 0; + } + if(val >= cs->max) + { + *v = qp_channel_series_double_end(c); + ASSERT(*v == cs->max); + return len -1; + } + + /* guess that the values increase linearly */ + i = len*(cs->max - val)/(cs->max - cs->min); + if(i < 0) i = 0; + else if(i > len -1) i = len -1; + + r = qp_channel_series_double_index(c, i); + while(r > val) + r = qp_channel_series_double_prev(c); + ASSERT(qp_channel_series_is_reading(c)); + + while(r <= val) + r = qp_channel_series_double_next(c); + ASSERT(qp_channel_series_is_reading(c)); + + *v = r; + return qp_channel_series_double_get_index(c); +} + +double qp_channel_series_double_begin(qp_channel_t c) +{ + double *array; + struct qp_channel_series *cs; + ASSERT(c); + ASSERT(c->form == QP_CHANNEL_FORM_SERIES); + ASSERT(c->value_type == QP_TYPE_DOUBLE); + ASSERT(c->series.arrays); + ASSERT(*(c->series.ref_count) > 0); + + cs = &c->series; + + array = (double *) qp_dllist_begin(cs->arrays); + if(array) + { + cs->array_current_index = 0; + return array[0]; + } + ASSERT(qp_dllist_length(cs->arrays) == 0); + ASSERT(cs->last_array == NULL); + return END_DOUBLE; +} + +double qp_channel_series_double_end(qp_channel_t c) +{ + double *array; + struct qp_channel_series *cs; + ASSERT(c); + ASSERT(c->form == QP_CHANNEL_FORM_SERIES); + ASSERT(c->value_type == QP_TYPE_DOUBLE); + ASSERT(c->series.arrays); + ASSERT(*(c->series.ref_count) > 0); + + cs = &c->series; + + array = (double *) qp_dllist_end(cs->arrays); + if(array) + { + ASSERT(array == cs->last_array); + + cs->array_current_index = cs->array_last_index; + return array[cs->array_current_index]; + } + ASSERT(qp_dllist_length(cs->arrays) == 0); + ASSERT(cs->last_array == NULL); + return END_DOUBLE; +} + +static inline +void check_min_max(struct qp_channel_series *cs, double val) +{ + if(!is_good_double(val)) return; + + if(val > cs->max) + cs->max = val; + else + cs->is_increasing = 0; + + if(val < cs->min) + cs->min = val; + else + cs->is_decreasing = 0; +} + +void qp_channel_series_double_append(qp_channel_t c, double val) +{ + double *array; + struct qp_channel_series *cs; + + ASSERT(c); + ASSERT(c->form == QP_CHANNEL_FORM_SERIES); + ASSERT(c->value_type == QP_TYPE_DOUBLE); + ASSERT(c->series.arrays); + /* We disallow having the channel written to when there + * is more than one copy of the channel. */ + ASSERT(*(c->series.ref_count) == 1); + + cs = &c->series; + + /* get the last without moving the list current pointer */ + array = (double *) qp_dllist_last(cs->arrays); + + ASSERT(array == cs->last_array); + + if(array) + { + ASSERT(cs->array_last_index < ARRAY_LENGTH); + ASSERT(cs->last_array); + + ++(cs->array_last_index); + + if(cs->array_last_index == ARRAY_LENGTH) + { + /* add an array */ + array = (double *) + qp_malloc(sizeof(*array)*ARRAY_LENGTH); + cs->array_last_index = 0; + qp_dllist_append(cs->arrays, array); + cs->last_array = array; + } + array[cs->array_last_index] = val; + check_min_max(cs, val); + return; + } + + ASSERT(qp_dllist_length(cs->arrays) == 0); + ASSERT(cs->last_array == NULL); + + /* We must make the first array */ + array = (double *) qp_malloc(sizeof(*array)*ARRAY_LENGTH); + qp_dllist_append(cs->arrays, array); + cs->array_last_index = 0; + cs->array_current_index = 0; + cs->last_array = array; + cs->max = -INFINITY; + cs->min = INFINITY; + check_min_max(cs, val); + cs->is_increasing = 1; + cs->is_decreasing = 1; + /* and add the value */ + array[0] = val; +} + diff -Nru quickplot-0.8.15/channel_double.h quickplot-0.9.11/channel_double.h --- quickplot-0.8.15/channel_double.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/channel_double.h 2011-10-25 23:51:35.000000000 +0000 @@ -0,0 +1,218 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#include +#include + + +#ifndef _QP_DEBUG_H_ +#error "You must include qp_debug.h before this file." +#endif + + +#ifndef NAN +#error "number NAN is not defined" +#endif +#ifndef INFINITY +#error "number INFINITY not defined" +#endif + +#define END_DOUBLE (NAN) + + +extern +void qp_channel_series_double_append(qp_channel_t channel, double val); + +extern +double qp_channel_series_double_begin(qp_channel_t channel); + +extern +double qp_channel_series_double_end(qp_channel_t channel); + + +/* Find the value that is less than and next to or as close as possible + * For series that is increasing + * *v in is the value to search on + * *v out is the value found from the channel + * sets the current read to that value in the channel + * returns the index to the value in the channel + * returns 0 if a value was not found and the value + * is set to the first value + * */ +extern +size_t qp_channel_series_double_find_lt(qp_channel_t channel, double *v); + + +/* Find the value that is greater than and next to or as close as possible + * For series that is increasing + * *v in is the value to search on + * *v out is the value found from the channel + * sets the current read to that value in the channel + * returns the index to the value in the channel + * returns length - 1 if the value was not found + * and the value is set to the last value + * */ +extern +size_t qp_channel_series_double_find_gt(qp_channel_t channel, double *v); + + + +/* Check that i is in bounds before this call */ +/* This is a little slow, so don't iterate with it + * you can use it to start an iteration at a point + * not necessarily at the first or last value. It is + * a lot faster than iterating to the i-th value + * with qp_channel_series_double_next() and + * qp_channel_series_double_prev() + * + * Returns the i-th value where i = [ 0, length-1 ] and + * sets the current value to that value */ +static inline +double qp_channel_series_double_index(qp_channel_t c, size_t i) +{ + double *array; + ASSERT(c->form == QP_CHANNEL_FORM_SERIES); + ASSERT(i >= 0); + ASSERT(i < qp_channel_series_length(c)); + ASSERT(c->value_type == QP_TYPE_DOUBLE); + ASSERT(*(c->series.ref_count) > 0); + + array = qp_dllist_begin(c->series.arrays); + for(;i >= ARRAY_LENGTH; i -= ARRAY_LENGTH) + array = qp_dllist_next(c->series.arrays); + + c->series.array_current_index = i; + + return array[i]; +} + +/* This is not so fast. Do not use in a tight loop. */ +/* This returns the current index or (size_t) -1 if their is none. */ +static inline +size_t qp_channel_series_double_get_index(qp_channel_t c) +{ + size_t ret = 0; + void *current_array, *array; + ASSERT(c->form == QP_CHANNEL_FORM_SERIES); + ASSERT(c->value_type == QP_TYPE_DOUBLE); + ASSERT(qp_channel_series_is_reading(c)); + ASSERT(*(c->series.ref_count) > 0); + + if(!qp_channel_series_is_reading(c)) + return (size_t) -1; + + ret += c->series.array_current_index; + current_array = qp_dllist_val(c->series.arrays); + + array = qp_dllist_begin(c->series.arrays); + while(array != current_array) + { + ret += ARRAY_LENGTH; + array = qp_dllist_next(c->series.arrays); + ASSERT(array); + } + + return ret; +} + +static inline +double qp_channel_series_double_next(qp_channel_t c) +{ + double *array; + struct qp_channel_series *cs; + ASSERT(c); + ASSERT(c->form == QP_CHANNEL_FORM_SERIES || + c->form == QP_CHANNEL_FORM_FUNC); + ASSERT(c->value_type == QP_TYPE_DOUBLE); + ASSERT(c->series.arrays); + ASSERT(*(c->series.ref_count) > 0); + + cs = &c->series; + + ++(cs->array_current_index); + + array = (double *) qp_dllist_val(cs->arrays); + + if(!array) return END_DOUBLE; + + if(array != cs->last_array) + { + if(cs->array_current_index < ARRAY_LENGTH) + return array[cs->array_current_index]; + array = (double *) qp_dllist_next(cs->arrays); + cs->array_current_index = 0; + } + if(array != cs->last_array) + return array[cs->array_current_index]; + if(array && cs->array_current_index <= cs->array_last_index) + return array[cs->array_current_index]; + if(array) + { + /* push it past the end */ + qp_dllist_next(cs->arrays); + ASSERT(!qp_dllist_val(cs->arrays)); + return END_DOUBLE; + } + /* there are no values left or there are no values */ + return END_DOUBLE; +} + +static inline +double qp_channel_series_double_prev(qp_channel_t c) +{ + double *array; + struct qp_channel_series *cs; + ASSERT(c); + ASSERT(c->form == QP_CHANNEL_FORM_SERIES || + c->form == QP_CHANNEL_FORM_FUNC); + ASSERT(c->value_type == QP_TYPE_DOUBLE); + ASSERT(*(c->series.ref_count) > 0); + + ASSERT(c->series.arrays); + + cs = &c->series; + + --(cs->array_current_index); + + array = (double *) qp_dllist_val(cs->arrays); + + if(array) + { + if(cs->array_current_index != (size_t) -1) + { + return array[cs->array_current_index]; + } + else + { + array = (double *) qp_dllist_prev(cs->arrays); + if(array) + { + cs->array_current_index = ARRAY_LENGTH - 1; + return array[cs->array_current_index]; + } + } + } + + return END_DOUBLE; +} + diff -Nru quickplot-0.8.15/channel.h quickplot-0.9.11/channel.h --- quickplot-0.8.15/channel.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/channel.h 2011-12-07 15:07:39.000000000 +0000 @@ -0,0 +1,218 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#include +#include +#include +#include + + +#ifndef _QP_DEBUG_H_ +#error "You must include qp_debug.h before this file." +#endif + + + +/* QP_CHANNEL_FORM_SERIES 0 + QP_CHANNEL_FORM_FUNC 1 + + QP_TYPE_UNKNOWN 0 + QP_TYPE_SHORT 1 + QP_TYPE_INT 2 + . + . + etc + . + . + . + QP_TYPE_MAX + */ + + +#define ARRAY_LENGTH (4*1024) + +/* a small positive double used to avoid dividing + * by zero when scaling plot values. */ +#define SMALL_DOUBLE (100.0*DBL_EPSILON) +#define LARGE_DOUBLE (DBL_MAX/10.0) + + +struct qp_channel_series +{ + /* TYPE_SHORT or TYPE_INT ... etc type in the arrays */ + + /* each element in the qp_dllist is an array of values */ + size_t array_current_index; /* index of the current value + read in the current array */ + size_t array_last_index; /* the index of the last value + in the last array */ + void *last_array; /* points to last array */ + + /* The copies of this channel will share these arrays. + * So the larger memory usage is not replicated. */ + struct qp_dllist *arrays; /* list of arrays. The value + * in each list element is just + * the array of value_types that + * was made with malloc(). */ + + int is_increasing; + int is_decreasing; + + double min, max; /* for zoom/scale calculations */ + + /* We can make copies of qp_channel_series. + * The qp_channel_series is just a writer/reader of the + * arrays. Once you start making copies you can no + * longer write. */ + int *ref_count; +}; + + + +struct qp_channel_func_double +{ + double (*func)(double x); + double xmax, xmin; + double ymax, ymin; +}; + + +struct qp_channel +{ + int form; + int value_type; + /* A pointer to put extra stuff at */ + void *data; + uint64_t id; /* unique id for this channel and all copies */ + union + { + struct qp_channel_series series; + struct qp_channel_func_double func_double; + }; +}; + +static +inline +int is_good_double(double x) +{ + if(x > -LARGE_DOUBLE && x < LARGE_DOUBLE && + x != NAN && x != -NAN) + return 1; + return 0; +} + + +/* return 1 if the value last read is valid and not past + * a leading or trailing edge. */ +static inline +int qp_channel_series_is_reading(qp_channel_t channel) +{ + ASSERT(channel->form == QP_CHANNEL_FORM_SERIES); + return (qp_dllist_val(channel->series.arrays))?1:0; +} + +extern +qp_channel_t qp_channel_create(int channel_form, int value_type); + +extern +qp_channel_t qp_channel_linear_create(double start, double step); + +/* if orig != NULL this returns a channel that points to the + * same data as orig. After a copy is made you may not write + * to the channel any more. */ + +extern +qp_channel_t qp_channel_func_double_create(double (*func)(double), + double xmin, double xmax, double ymin, double ymax); + + +static inline +qp_channel_t qp_channel_series_create(qp_channel_t orig, int value_type) +{ + if(orig) + { + /* make a copy that is a channel reader */ + struct qp_channel *c; + + ASSERT(orig->value_type > 0 && orig->value_type <= QP_TYPE_MAX); + ASSERT(orig->form == QP_CHANNEL_FORM_SERIES); + ASSERT(orig->series.arrays); + + c = (struct qp_channel *) qp_malloc(sizeof(*c)); + c->form = QP_CHANNEL_FORM_SERIES; + c->id = orig->id; + c->value_type = orig->value_type; + c->series.array_current_index = (size_t) -1; + c->series.array_last_index = orig->series.array_last_index; + c->series.last_array = orig->series.last_array; + c->series.arrays = qp_dllist_create(orig->series.arrays); + c->series.ref_count = orig->series.ref_count; + c->series.is_increasing = orig->series.is_increasing; + c->series.is_decreasing = orig->series.is_decreasing; + c->series.min = orig->series.min; + c->series.max = orig->series.max; + + ++(*(c->series.ref_count)); + return c; + } + else + /* make a new one */ + return qp_channel_create(QP_CHANNEL_FORM_SERIES, value_type); +} + + +extern +void qp_channel_destroy(qp_channel_t channel); + + +static inline +size_t qp_channel_series_length(struct qp_channel *c) +{ + ASSERT(c); + ASSERT(c->form == QP_CHANNEL_FORM_SERIES); + ASSERT(c->series.arrays); + + return (qp_dllist_length(c->series.arrays)-1)*ARRAY_LENGTH + + c->series.array_last_index + 1; +} + + +static inline +int qp_channel_equals(struct qp_channel *c1, struct qp_channel *c2) +{ + ASSERT(c1); + ASSERT(c2); + if(!c1 || !c2) + return 0; + if(c1->id == c2->id) + return 1; + return 0; +} + + + +#ifdef QP_DEBUG +extern +void qp_channel_debug_append(struct qp_channel *c); +#endif + diff -Nru quickplot-0.8.15/color_gen.c quickplot-0.9.11/color_gen.c --- quickplot-0.8.15/color_gen.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/color_gen.c 2011-12-14 18:35:36.000000000 +0000 @@ -0,0 +1,246 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ +#include +#include +#include +#include + + +#include "color_gen.h" +#include "config.h" +#include "debug.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +#define DELTA_HUE (6.0/4.6575324428) +#define DELTA_SAT (0.18255); +#define DELTA_VAL (0.160324/6.0); + +#if 1 +/* constants for hue_func() */ +#define HM0 (1.0/1.3) +#define HM1 (2.0/1.3) +#define HA1 (HM0 * 0.2 - 0.2 * HM1) +#define HM2 HM0 +#define HA2 (HA1 + HM1 * 0.5 - 0.5 * HM2) + +static +double hue_func(double x) +{ + /* This makes the colors tend to be less green. */ + double y; + + while(x < 0.0) + x += 1.0; + while(x >= 1.0) + x -= 1.0; + + if(x < 0.2) + return HM0 * x; + if(x < 0.5) + return HA1 + HM1 * x; + /* x < 1.0 */ + y = HA2 + HM2 * x; + + if(y >= 1.0) + y -= 1.0; + return y; +} +#else +static +double hue_func(double x) +{ + return x; +} +#endif + +#define SAT_MAX 0.85 +#define VAL_MAX 0.92 +#define SAT_MIN 0.40 +#define VAL_MIN 0.50 + + + +static +void GetNextHue(struct qp_color_gen *cg) +{ + cg->hue_x += DELTA_HUE; + + if(cg->hue_x > 1.0) + { + cg->hue_x -= 1.0; + +//#define SINES + +#ifndef SINES + /* This looks better */ + cg->value -= DELTA_VAL; + if(cg->value < VAL_MIN) + { + cg->value += VAL_MAX - VAL_MIN; + cg->saturation += DELTA_SAT; + if(cg->saturation > SAT_MAX) + cg->saturation += SAT_MIN - SAT_MAX; + } +#endif + } + +#ifdef SINES + cg->saturation_x += 0.2121212*2*M_PI; + cg->value_x = 0.02233233124*2*M_PI; + + cg->saturation = 0.5*(SAT_MAX + SAT_MIN) + + 0.5*(SAT_MAX - SAT_MIN) * cos(cg->saturation_x); + + cg->value = 0.5*(VAL_MAX + VAL_MIN) + + 0.5*(VAL_MAX - VAL_MIN) * sin(cg->value_x); +#endif + + cg->hue = hue_func(cg->hue_x); +} + +struct qp_color_gen *qp_color_gen_create(void) +{ + struct qp_color_gen *cg; + + cg = qp_malloc(sizeof(*cg)); + + cg->hue = 0; + cg->hue_x = -DELTA_HUE + 0.0001; + + cg->saturation = SAT_MAX; + cg->value = VAL_MAX; + +#ifdef SINES + cg->saturation_x = 0; + cg->value_x = 0; +#endif + + return cg; +} + +void qp_color_gen_destroy(struct qp_color_gen *cg) +{ + ASSERT(cg); + free(cg); +} + + +double qp_color_gen_next(struct qp_color_gen *cg, + double *red, + double *green, + double *blue, + double hue) +/* Returns red, blue, and green as determined from the + * value, saturation, and hue which are all bounded by [0,1). + */ + +#if 1 +/* See reference: http://en.wikipedia.org/wiki/HSL_color_space + * + * We use difference normalization than that reference does. */ +{ + double max, lower, slope; + + if(hue < 0.0 || hue >= 1.0) + { + GetNextHue(cg); + hue = cg->hue; + } + + lower = cg->value*(1.0 - cg->saturation); + max = cg->value; + slope = 6*(max-lower); + + /* One color chances linearly with hue in the space of hue + * that is divided into 6 parts. */ + + if(hue < 1 * 1.0/6.0) + { + *red = max; + *blue = lower; + *green = lower + hue*slope; + } + else if(hue < 2 * 1.0/6.0) + { + *red = - lower + 2*max - hue*slope; + *blue = lower; + *green = max; + } + else if(hue < 3 * 1.0/6.0) + { + *red = lower; + *blue = hue*slope - 2*max + 3*lower; + *green = max; + } + else if(hue < 4 * 1.0/6.0) + { + *red = lower; + *blue = max; + *green = 4*max - 3*lower - hue*slope; + } + else if(hue < 5 * 1.0/6.0) + { + *red = hue*slope - 4*max + 5*lower; + *blue = max; + *green = lower; + } + else if(hue < 6 * 1.0/6.0) + { + *red = max; + *blue = 6*max - 5*lower - hue*slope; + *green = lower; + } + + return hue; +} + +#else + +{ + /* Lets try three shifted and scaled sine waves in place of the + * piece-wise linear stuff above. The piece-wise linear method + * incases the sine waves when plotted together. Okay that was fun. + */ + double amp, shift; + + if(hue < 0.0 || hue >= 1.0) + { + GetNextHue(cg); + hue = cg->hue; + } + + amp = cg->value*cg->saturation/2.0; + shift = cg->value*(1.0 - cg->saturation) + amp; + + *red = shift + amp*cos(hue*2.0F*M_PI); + *blue = shift + amp*cos(hue*2.0F*M_PI - 2.0F*M_PI*2/3); + *green = shift + amp*cos(hue*2.0F*M_PI - 2.0F*M_PI/3); + + return hue; +} +#endif + diff -Nru quickplot-0.8.15/ColorGen.cpp quickplot-0.9.11/ColorGen.cpp --- quickplot-0.8.15/ColorGen.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/ColorGen.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,79 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -/* class ColorGen generates all the default colors for Quickplot - * Graphs */ - -#include -#include "ColorGen.h" - -// color= default line and point colors -const gushort ColorGen::color[NUM_COLORS][3] = -{ - { 228*256, 45*256, 4*256 }, - { 101*256, 255*256, 54*256 }, - { 224*256, 18*256, 224*256 }, - - { 0, 189*256, 203*256 }, - { 40*256, 17*256, 211*256 }, - { 225*256, 229*256, 12*256 }, - - { 45*256, 148*256, 32*256}, - { 148*256, 61*256, 32*256}, - { 33*256, 154*256, 154*256}, - - { 122*256, 31*256, 142*256}, - { 157*256, 149*256, 34*256}, - { 31*256, 50*256, 143*256} -}; - -// default grid color -gushort ColorGen::gridColor[3] = -{ - 255*256/3, 255*256/3, 255*256/3 -}; - -// default graph background color -gushort ColorGen::backgroundColor[3] = -{ - 0, 0, 0 -}; - - -ColorGen::ColorGen(void) -{ - count = 0; -} - -void ColorGen::getGridColor(gushort &r, gushort &g, gushort &b) -{ - r = gridColor[0]; - g = gridColor[1]; - b = gridColor[2]; -} - -void ColorGen::getBackgroundColor(gushort &r, gushort &g, gushort &b) -{ - r = backgroundColor[0]; - g = backgroundColor[1]; - b = backgroundColor[2]; -} - - -// get line and point colors. -void ColorGen::getColors(gushort &lr, gushort &lg, gushort &lb, - gushort &pr, gushort &pg, gushort &pb) -{ - lr = color[count%NUM_COLORS][0]; - lg = color[count%NUM_COLORS][1]; - lb = color[count%NUM_COLORS][2]; - - pr = color[(count+NUM_COLORS/2)%NUM_COLORS][0]; - pg = color[(count+NUM_COLORS/2)%NUM_COLORS][1]; - pb = color[(count+NUM_COLORS/2)%NUM_COLORS][2]; - - count++; - - if(count >= NUM_COLORS*32) - count = 0; -} diff -Nru quickplot-0.8.15/color_gen.h quickplot-0.9.11/color_gen.h --- quickplot-0.8.15/color_gen.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/color_gen.h 2011-10-29 21:01:50.000000000 +0000 @@ -0,0 +1,44 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + + +struct qp_color_gen +{ + double hue, saturation, value, + hue_x, saturation_x, value_x; +}; + + +extern +struct qp_color_gen *qp_color_gen_create(void); + +extern +void qp_color_gen_destroy(struct qp_color_gen *cg); + +/* returns the hue which is in [0,1) */ +extern +double qp_color_gen_next(struct qp_color_gen *cg, + double *red, + double *green, + double *blue, + double hue); diff -Nru quickplot-0.8.15/ColorGen.h quickplot-0.9.11/ColorGen.h --- quickplot-0.8.15/ColorGen.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/ColorGen.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - - - -#define NUM_COLORS 12 - -class ColorGen // keeps a list of colors and cycles through them. -{ -public: - - ColorGen(void); - - // get line and point colors. - void getColors(gushort &lr, gushort &lg, gushort &lb, - gushort &pr, gushort &pg, gushort &pb); - - void getGridColor(gushort &r, gushort &g, gushort &b); - - void getBackgroundColor(gushort &r, gushort &g, gushort &b); - - static gushort gridColor[3]; - static gushort backgroundColor[3]; - - -private: - - unsigned int count; - - static const gushort color[NUM_COLORS][3]; -}; diff -Nru quickplot-0.8.15/compile quickplot-0.9.11/compile --- quickplot-0.8.15/compile 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/compile 2011-12-30 06:16:54.000000000 +0000 @@ -0,0 +1,143 @@ +#! /bin/sh +# Wrapper for compilers which do not understand `-c -o'. + +scriptversion=2009-10-06.20; # UTC + +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software +# Foundation, Inc. +# Written by Tom Tromey . +# +# 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, see . + +# 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. + +# This file is maintained in Automake, please report +# bugs to or send patches to +# . + +case $1 in + '') + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: compile [--help] [--version] PROGRAM [ARGS] + +Wrapper for compilers which do not understand `-c -o'. +Remove `-o dest.o' from ARGS, run PROGRAM with the remaining +arguments, and rename the output as expected. + +If you are trying to build a whole package this is not the +right script to run: please start by reading the file `INSTALL'. + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "compile $scriptversion" + exit $? + ;; +esac + +ofile= +cfile= +eat= + +for arg +do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as `compile cc -o foo foo.c'. + # So we strip `-o arg' only if arg is an object. + eat=1 + case $2 in + *.o | *.obj) + ofile=$2 + ;; + *) + set x "$@" -o "$2" + shift + ;; + esac + ;; + *.c) + cfile=$1 + set x "$@" "$1" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift +done + +if test -z "$ofile" || test -z "$cfile"; then + # If no `-o' option was seen then we might have been invoked from a + # pattern rule where we don't need one. That is ok -- this is a + # normal compilation that the losing compiler can handle. If no + # `.c' file was seen then we are probably linking. That is also + # ok. + exec "$@" +fi + +# Name of file we expect compiler to create. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` + +# Create the lock directory. +# Note: use `[/\\:.-]' here to ensure that we don't use the same name +# that we are using for the .o file. Also, base the name on the expected +# object file name, since that is what matters with a parallel build. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d +while true; do + if mkdir "$lockdir" >/dev/null 2>&1; then + break + fi + sleep 1 +done +# FIXME: race condition here if user kills between mkdir and trap. +trap "rmdir '$lockdir'; exit 1" 1 2 15 + +# Run the compile. +"$@" +ret=$? + +if test -f "$cofile"; then + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" +elif test -f "${cofile}bj"; then + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" +fi + +rmdir "$lockdir" +exit $ret + +# 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-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff -Nru quickplot-0.8.15/config.guess quickplot-0.9.11/config.guess --- quickplot-0.8.15/config.guess 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/config.guess 2011-12-30 06:16:54.000000000 +0000 @@ -0,0 +1,1526 @@ +#! /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, 2007, 2008, 2009, 2010, +# 2011 Free Software Foundation, Inc. + +timestamp='2011-02-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. Please send patches (context +# diff format) to and include a 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. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 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@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_SYSTEM}" in +Linux|GNU/*) + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #ifdef __UCLIBC__ + # ifdef __UCLIBC_CONFIG_VERSION__ + LIBC=uclibc __UCLIBC_CONFIG_VERSION__ + # else + LIBC=uclibc + # endif + #else + # ifdef __dietlibc__ + LIBC=dietlibc + # else + LIBC=gnu + # endif + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + ;; +esac + +# 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 ;; + sh5el) machine=sh5le-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 -q __ELF__ + 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'` + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + 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:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH="i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH="x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + case ${UNAME_MACHINE} in + pc98) + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + 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 ;; + *: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 ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-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-${LIBC}`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/[-(].*//'`-${LIBC} + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + 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 -q ld.so.1 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + cris:Linux:*:*) + echo cris-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo frv-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + or32:Linux:*:*) + echo or32-unknown-linux-${LIBC} + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-${LIBC} + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-tilera-linux-gnu + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + 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.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configury will decide that + # this is a cross-build. + echo i586-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; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + 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; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; 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.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + 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 ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-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 + i386) + eval $set_cc_for_build + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + UNAME_PROCESSOR="x86_64" + fi + fi ;; + 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 ;; + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + 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 ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff -Nru quickplot-0.8.15/config.h quickplot-0.9.11/config.h --- quickplot-0.8.15/config.h 2009-03-09 01:18:59.000000000 +0000 +++ quickplot-0.9.11/config.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,49 +0,0 @@ -/* config.h. Generated from config.h.in by configure. */ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* The date on which the Quickplot (quickplot) was configured by running the - GNU Autotools autoconf configure script. */ -#define CONFIGURE_DATE "Sun Mar 8 21:18:58 EDT 2009" - -/* The Quickplot (quickplot) home-page. */ -#define HOMEPAGE "http://quickplot.sourceforge.net/" - -/* Name of package */ -#define PACKAGE "quickplot" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "lanceman@users.sourceforge.net" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "Quickplot" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "Quickplot 0.8.15" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "quickplot" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "0.8.15" - -/* The OS or architecture which was output from `uname' when configure ran. */ -/* #undef QP_ARCH_DARWIN */ - -/* The OS or architecture which was output from `uname' when configure ran. */ -/* #undef QP_ARCH_IRIX */ - -/* The OS or architecture which was output from `uname' when configure ran. */ -#define QP_ARCH_LINUX - -/* The date on which the Quickplot (quickplot) release was generated. */ -#define RELEASE_DATE "Sun Mar 8 16:19:23 EDT 2009" - -/* The version of libsndfile we're linking Quickplot with. */ -#define SNDFILE_VERSION "1.0.17" - -/* If we are linking with the libsndfile package USE_LIBSNDFILE will be - defined. */ -#define USE_LIBSNDFILE - -/* Version number of package */ -#define VERSION "0.8.15" diff -Nru quickplot-0.8.15/config.h.in quickplot-0.9.11/config.h.in --- quickplot-0.8.15/config.h.in 2009-03-09 01:18:51.000000000 +0000 +++ quickplot-0.9.11/config.h.in 2011-12-30 06:16:54.000000000 +0000 @@ -1,11 +1,77 @@ /* config.h.in. Generated from configure.ac by autoheader. */ -/* The date on which the Quickplot (quickplot) was configured by running the - GNU Autotools autoconf configure script. */ -#undef CONFIGURE_DATE +/* The default font used when drawing the numbers on the grid */ +#undef DEFAULT_GRID_FONT -/* The Quickplot (quickplot) home-page. */ -#undef HOMEPAGE +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_HISTORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define if you have a readline compatible library */ +#undef HAVE_LIBREADLINE + +/* Define to 1 if you have the header file. */ +#undef HAVE_MATH_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the `powl' function. */ +#undef HAVE_POWL + +/* Define to 1 if you have the header file. */ +#undef HAVE_READLINE_H + +/* Define if your readline library has \`add_history' */ +#undef HAVE_READLINE_HISTORY + +/* Define to 1 if you have the header file. */ +#undef HAVE_READLINE_HISTORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_READLINE_READLINE_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to 1 if you have the `vsnprintf' function. */ +#undef HAVE_VSNPRINTF + +/* Quickplot Library version number */ +#undef LIB_VERSION + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ +#undef NO_MINUS_C_MINUS_O + +/* The default maximum number of plot per file */ +#undef NUMBER_OF_PLOTS /* Name of package */ #undef PACKAGE @@ -22,27 +88,22 @@ /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME +/* Define to the home page for this package. */ +#undef PACKAGE_URL + /* Define to the version of this package. */ #undef PACKAGE_VERSION -/* The OS or architecture which was output from `uname' when configure ran. */ -#undef QP_ARCH_DARWIN - -/* The OS or architecture which was output from `uname' when configure ran. */ -#undef QP_ARCH_IRIX - -/* The OS or architecture which was output from `uname' when configure ran. */ -#undef QP_ARCH_LINUX - -/* The date on which the Quickplot (quickplot) release was generated. */ -#undef RELEASE_DATE - -/* The version of libsndfile we're linking Quickplot with. */ -#undef SNDFILE_VERSION +/* If QP_DEBUG is defined we add extra debug code to quickplot and + libquickplot. */ +#undef QP_DEBUG + +/* Factor switch plot values may differ to be on the same scale when auto + scale is selected */ +#undef SCALE_FACTOR -/* If we are linking with the libsndfile package USE_LIBSNDFILE will be - defined. */ -#undef USE_LIBSNDFILE +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS /* Version number of package */ #undef VERSION diff -Nru quickplot-0.8.15/config.sub quickplot-0.9.11/config.sub --- quickplot-0.8.15/config.sub 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/config.sub 2011-12-30 06:16:54.000000000 +0000 @@ -0,0 +1,1757 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, +# 2011 Free Software Foundation, Inc. + +timestamp='2011-02-02' + +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Please send patches to . Submit a context +# diff and a properly formatted GNU 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. + +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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-android* | linux-dietlibc | linux-newlib* | \ + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-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 | -microblaze) + os= + basic_machine=$1 + ;; + -bluegene*) + os=-cnk + ;; + -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 | dvp \ + | fido | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep | metag \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64octeon | mips64octeonel \ + | mips64orion | mips64orionel \ + | mips64r5900 | mips64r5900el \ + | mips64vr | mips64vrel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ + | msp430 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 \ + | ns16k | ns32k \ + | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | rx \ + | score \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | 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 | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \ + | v850 | v850e \ + | we32k \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ + | z8k | z80) + basic_machine=$basic_machine-unknown + ;; + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | picochip) + # 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-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | lm32-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64octeon-* | mips64octeonel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64r5900-* | mips64r5900el-* \ + | mips64vr-* | mips64vrel-* \ + | 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-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* | rx-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | 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-* \ + | tile-* | tilegx-* \ + | tron-* \ + | ubicom32-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa*-* \ + | ymp-* \ + | z8k-* | z80-*) + ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; + # 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 + ;; + aros) + basic_machine=i386-pc + os=-aros + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + bluegene*) + basic_machine=powerpc-ibm + os=-cnk + ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + cegcc) + basic_machine=arm-unknown + os=-cegcc + ;; + 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 + ;; + cr16 | cr16-*) + basic_machine=cr16-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 + ;; + dicos) + basic_machine=i686-pc + os=-dicos + ;; + 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 + ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + microblaze) + basic_machine=microblaze-xilinx + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mipsEE* | ee | ps2) + basic_machine=mips64r5900el-scei + case $os in + -linux*) + ;; + *) + os=-elf + ;; + esac + ;; + iop) + basic_machine=mipsel-scei + os=-irx + ;; + dvp) + basic_machine=dvp-scei + os=-elf + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; + 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 + ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; + 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 + ;; + sh5el) + basic_machine=sh5le-unknown + ;; + 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 + ;; + # This must be matched before tile*. + tilegx*) + basic_machine=tilegx-unknown + os=-linux-gnu + ;; + tile*) + basic_machine=tile-unknown + os=-linux-gnu + ;; + 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 + ;; + z80-*-coff) + basic_machine=z80-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[24]aeb | 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. + -auroraux) + os=-auroraux + ;; + -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* | -cnk* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ + | -sym* | -kopensolaris* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* \ + | -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* | -cegcc* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-android* \ + | -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* | -irx* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) + # 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 + ;; + -dicos*) + os=-dicos + ;; + -nacl*) + ;; + -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 + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + 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 + ;; + mep-*) + os=-elf + ;; + 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 + ;; + -cnk*|-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: diff -Nru quickplot-0.8.15/configure quickplot-0.9.11/configure --- quickplot-0.8.15/configure 2009-03-09 01:18:52.000000000 +0000 +++ quickplot-0.9.11/configure 2011-12-30 06:16:53.000000000 +0000 @@ -1,62 +1,85 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61 for Quickplot 0.8.15. +# Generated by GNU Autoconf 2.68 for quickplot 0.9.11. +# +# Report bugs to . # -# Report bugs to . # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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. ## -## --------------------- ## +## -------------------- ## +## 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 +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 + # Pre-4.2 versions of Zsh do 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 ;; + 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=';' +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' else - PATH_SEPARATOR=: + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' fi - rm -f conf$$.sh + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi @@ -65,20 +88,19 @@ # 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= +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 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -89,32 +111,286 @@ 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; } + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + 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 +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && 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 +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do 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_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + # Preserve -v and -x to the replacement shell. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; + esac + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." else - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: http://quickplot.sourceforge.net/ about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." fi -done + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_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 || +$as_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" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error -# Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -128,13 +404,17 @@ as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=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" | +$as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -149,1540 +429,9363 @@ } s/.*/./; q'` -# CDPATH. -$as_unset CDPATH +# 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 -if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes -else - as_have_required=no -fi + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # 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" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - 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 + # 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 } -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. +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 2>/dev/null fi - -if as_func_ret_success; then - : +if (echo >conf$$.file) 2>/dev/null; then + 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 else - exitcode=1 - echo as_func_ret_success failed. + as_ln_s='cp -p' fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false fi -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' else - exitcode=1 - echo positional parameters were not saved. + 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 -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 +# 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'" - 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 +SHELL=${CONFIG_SHELL-/bin/sh} -fi +test -n "$DJDIR" || exec 7<&0 &1 -: -_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 +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` -fi +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='quickplot' +PACKAGE_TARNAME='quickplot' +PACKAGE_VERSION='0.9.11' +PACKAGE_STRING='quickplot 0.9.11' +PACKAGE_BUGREPORT='http://quickplot.sourceforge.net/' +PACKAGE_URL='http://quickplot.sourceforge.net/' + +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +HAVE_LOCAL_SCREENSHOTS_FALSE +HAVE_LOCAL_SCREENSHOTS_TRUE +IS_SVN_CO_FALSE +IS_SVN_CO_TRUE +NUMBER_OF_PLOTS +SCALE_FACTOR +QP_DEBUG_FALSE +QP_DEBUG_TRUE +LIB_AGE +LIB_REVISION +LIB_CURRENT +LIB_VERSION +DEFAULT_GRID_FONT +RELEASE_DATE +HAVE_GNU_LIB_NAMES_H_FALSE +HAVE_GNU_LIB_NAMES_H_TRUE +sndfile_LIBS +sndfile_CFLAGS +gtk_3_LIBS +gtk_3_CFLAGS +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG +readline_LIBS +USE_CONVERT_FALSE +USE_CONVERT_TRUE +USE_LYNX_FALSE +USE_LYNX_TRUE +HAVE_CONVERT +HAVE_LYNX +CPP +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +DLLTOOL +OBJDUMP +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +EGREP +GREP +SED +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +LIBTOOL +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='STYLE_CSS +FOOTER_HTM' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +enable_developer +enable_debug +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +PKG_CONFIG +PKG_CONFIG_PATH +PKG_CONFIG_LIBDIR +gtk_3_CFLAGS +gtk_3_LIBS +sndfile_CFLAGS +sndfile_LIBS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# 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= ;; + *) 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_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=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_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$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_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=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 ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_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'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +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 + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +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 + $as_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 .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# 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 -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + 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 .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + 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 quickplot 0.9.11 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/quickplot] + --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] +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of quickplot 0.9.11:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --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-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + --enable-developer if you wish to edit Quickplot source image files and + Quickplot documentation files enabling this option + will add addition make file targets which are built + using the programs lynx and the ImageMagick program + convert. (default is no developer targets). + --enable-debug compile more debugging code into quickplot and + libquickplot (default is no debugging code). You do + not want this unless you are developing quickplot. + This is unrelated to debug compile options. Adding + this option makes Quickplot become Slowplot. + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CPP C preprocessor + PKG_CONFIG path to pkg-config utility + PKG_CONFIG_PATH + directories to add to pkg-config's search path + PKG_CONFIG_LIBDIR + path overriding pkg-config's built-in search path + gtk_3_CFLAGS + C compiler flags for gtk_3, overriding pkg-config + gtk_3_LIBS linker flags for gtk_3, overriding pkg-config + sndfile_CFLAGS + C compiler flags for sndfile, overriding pkg-config + sndfile_LIBS + linker flags for sndfile, 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 . +quickplot home page: . +_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" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && 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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_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 + $as_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 +quickplot configure 0.9.11 +generated by GNU Autoconf 2.68 + +Copyright (C) 2010 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 + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + 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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + 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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* 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 $2 (); +/* 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_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if eval \${$3+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------------------------ ## +## Report this to http://quickplot.sourceforge.net/ ## +## ------------------------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel +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 quickplot $as_me 0.9.11, which was +generated by GNU Autoconf 2.68. 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=. + $as_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=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append 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 + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset 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 + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + 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_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; 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 + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_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'; as_fn_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 + +$as_echo "/* confdefs.h */" > 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 + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + 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. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_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,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_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 + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_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. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +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 + + + + +# LIB_VERSION=LIB_CURRENT:LIB_REVISION:LIB_AGE + +LIB_CURRENT=0 +LIB_REVISION=0 +LIB_AGE=0 + +# +# See LIB_VERSION notes at the very bottom of this file +# + + +################################################################# +############## END: Configure a release here #################### +################################################################# + + +# Stuff that may be configured to change constants that +# get compiled in. + + +NUMBER_OF_PLOTS="12" # default number of plots at startup + + +# if auto scale is set this is the factor that the span of the +# plots values may differ by to be on the same scales +SCALE_FACTOR="50" + + +DEFAULT_GRID_FONT="Sans 10" + + + +################################################################ +# setting many variables before AC_PROG_* +################################################################ + + +#AM_INIT_AUTOMAKE(option1 option2 ...) +am__api_version='1.11' + +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 + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +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. + + +# 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. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&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 + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$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' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# 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". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&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 + + test -d ./--version && rmdir ./--version + 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. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "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 + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + 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='quickplot' + VERSION='0.9.11' + + +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"} + +# 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"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + + + +ac_config_headers="$ac_config_headers config.h" + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_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 + + +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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "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:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM 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. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; 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 | *.dSYM | *.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 +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; 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 | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* 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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; 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 | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : + $as_echo_n "(cached) " >&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 confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -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" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +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) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&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 + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + 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 + + # 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. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + 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 + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj 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 $am__obj 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +if test "x$CC" != xcc; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 +$as_echo_n "checking whether cc understands -c and -o together... " >&6; } +fi +set dummy $CC; ac_cc=`$as_echo "$2" | + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +# Make sure it works both with $CC and with simple cc. +# We do the test twice because some compilers refuse to overwrite an +# existing .o file with -o, though they will create one. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' +rm -f conftest2.* +if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; +then + eval ac_cv_prog_cc_${ac_cc}_c_o=yes + if test "x$CC" != xcc; then + # Test first that cc exists at all. + if { ac_try='cc -c conftest.$ac_ext >&5' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' + rm -f conftest2.* + if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; + then + # cc works too. + : + else + # cc exists but doesn't like -o. + eval ac_cv_prog_cc_${ac_cc}_c_o=no + fi + fi + fi +else + eval ac_cv_prog_cc_${ac_cc}_c_o=no +fi +rm -f core conftest* + +fi +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h + +fi + +# FIXME: we rely on the cache variable name because +# there is no other way. +set dummy $CC +am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o +if test "$am_t" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi + + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4' +macro_revision='1.3293' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if ${ac_cv_build+:} false; then : + $as_echo_n "(cached) " >&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 && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +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 + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if ${ac_cv_host+:} false; then : + $as_echo_n "(cached) " >&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` || + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +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 + + +# Backslashify metacharacters that are still active within +# double-quoted strings. +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 delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_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 +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_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_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + 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 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_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 + as_fn_arith $ac_count + 1 && ac_count=$as_val + 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 + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + 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 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_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 + as_fn_arith $ac_count + 1 && ac_count=$as_val + 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 + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_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 fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_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_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# 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. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&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 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&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 + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # 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_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&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* | cegcc*) + # 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; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + 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 + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + 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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# 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 + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$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 + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + 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 + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { 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_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&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 +aix[4-9]*) + 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. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && 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 + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +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 + ;; + +haiku*) + 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])(-bit)?( [LM]SB)? 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 | kopensolaris*-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=pass_all + ;; + +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 + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + 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 + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +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 test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { 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_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&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$ac_prog" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&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="$ac_prog" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# 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 + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# 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 for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&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]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + 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 + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \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\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# 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 + +# Try without a prefix underscore, 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. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$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=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && 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 <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_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 -rf 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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + +# 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\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; 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 '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; 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*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; 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*|s390*-*tpf*) + 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" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&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 confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$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\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +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 + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + 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 confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + + + +# Set options + + + + enable_dlopen=no + + + enable_win32_dll=no + + + # 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-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --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 + + + + + + + + # 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 + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +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 + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&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 <<_LT_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@gnu.org -: -(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 -} +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi -exitcode=0 -if as_func_success; then - : +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } else - exitcode=1 - echo as_func_success failed. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&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 <<_LT_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@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac fi -if as_func_ret_success; then - : +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } else - exitcode=1 - echo as_func_ret_success failed. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } 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. + else + MAGIC_CMD=: + fi fi -test $exitcode = 0) || { (exit 1); exit 1; } + fi + ;; +esac -( - 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; } +# Use C for the default configuration in the libtool script -_ASEOF -}; then - break -fi +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 -fi - done +# Source file extension for C test sources. +ac_ext=c - 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 +# 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;" - 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 +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' -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 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 the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$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 -r conftest* + + +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&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:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $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 "$_lt_compiler_boilerplate" | $SED '/^$/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* -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } -if as_func_ret_success; then - : +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 - 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@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 -} + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' -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';; + 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*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # 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' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # 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' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + 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 + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + lt_prog_compiler_pic='-Xcompiler -fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # 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' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # 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' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ F* | *Sun*Fortran*) + # 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='' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + 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* | sunf77* | sunf90* | sunf95*) + 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 + +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 -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_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:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $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 "$_lt_compiler_boilerplate" | $SED '/^$/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_pic_works=yes + fi + fi + $RM conftest* -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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac else - test -d ./-p && rmdir ./-p - as_mkdir_p=false + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no 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 7<&0 &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. +# Check to make sure the static flag actually works. # -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_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 "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" -# Identity of this package. -PACKAGE_NAME='Quickplot' -PACKAGE_TARNAME='quickplot' -PACKAGE_VERSION='0.8.15' -PACKAGE_STRING='Quickplot 0.8.15' -PACKAGE_BUGREPORT='lanceman@users.sourceforge.net' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } -ac_unique_file="config.h.in" -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 -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 -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 -PKGCONFIG -GTKMM_CXXFLAGS -GTKMM_LIBS -SNDFILE_CFLAGS -SNDFILE_LIBS -RELEASE_DATE -HOMEPAGE -CONFIGURE_DATE -TARNAME -LIBOBJS -LTLIBOBJS' -ac_subst_files='' - ac_precious_vars='build_alias -host_alias -target_alias -CXX -CXXFLAGS -LDFLAGS -LIBS -CPPFLAGS -CCC -CC -CFLAGS -CPP' +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi -# 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 ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&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 - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; + 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:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $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 "$_lt_compiler_boilerplate" | $SED '/^$/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 .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } - -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 ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&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:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $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 "$_lt_compiler_boilerplate" | $SED '/^$/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 .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_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 - -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 ;; + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # 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_|_GLOBAL__F[ID]_.*' + # 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. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # 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 - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = 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>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [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 + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, 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 install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + 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 + ;; + esac + ;; - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' + 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/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + 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 + ;; - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; + 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' + ;; - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + 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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # 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; func_echo_all \"$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' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; + 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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; + if test "x$supports_anon_versioning" = xyes; 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 + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld='-rpath $libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; 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~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; + 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 $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_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. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; + 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. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; +_LT_EOF + ;; + *) + # 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. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + 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 + ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; - -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 ;; + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; + 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 + ;; - -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 ;; + aix[4-9]*) + 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 + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + 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") || (\$ 2 == "W")) && (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 - -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 ;; + # 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].*|aix[5-9]*) + 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 - -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 ;; + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; + # 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_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + 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 - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; + export_dynamic_flag_spec='${wl}-bexpall' + # 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. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; +int +main () +{ - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : - -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 ;; + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_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 "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; +fi - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; + aix_libpath=$lt_cv_aix_libpath_ +fi - -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 ;; + 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 func_echo_all "${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. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; +int +main () +{ - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_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 "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi - -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 ;; +fi - -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 ;; + aix_libpath=$lt_cv_aix_libpath_ +fi - --x) - # Obsolete; use --with-x. - with_x=yes ;; + 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' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + 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 + ;; - -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 ;; + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + 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 + ;; + esac + ;; - -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 ;; + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; + cygwin* | mingw* | pw32* | cegcc*) + # 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. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # 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 $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + 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 `func_echo_all "$deplibs" | $SED '\''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' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; - *=*) - 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 ;; + darwin* | rhapsody*) - *) - # 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} - ;; + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; esac -done + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" -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 + else + ld_shlibs=no + 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 + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; -# 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 + freebsd1*) + ld_shlibs=no + ;; -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- + # 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 + ;; -test "$silent" = yes && exec 6>/dev/null + # 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 $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; -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; }; } + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${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 && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${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_flag_spec_ld='+b $libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=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 + ;; -# 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 + hpux11*) + if test "$GCC" = yes && test "$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 $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag ${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' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + 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 "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else - ac_srcdir_defaulted=no + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 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; }; } + + ;; + 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_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=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 $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no 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=. +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" 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 Quickplot 0.8.15 to adapt to many kinds of systems. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; -Usage: $0 [OPTION]... [VAR=VALUE]... + 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 + ;; -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. + 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 + ;; -Defaults for the options are specified in brackets. + *nto* | *qnx*) + ;; -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 \`..'] + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + 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 + ;; -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] + 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' + ;; -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'. + 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; -For better control, use the options below. + 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} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${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='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-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; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' -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/quickplot] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; - cat <<\_ACEOF + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${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 $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + 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' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + 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 + ;; -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 -_ACEOF -fi + 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 + ;; -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of Quickplot 0.8.15:";; - esac - cat <<\_ACEOF + 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 + ;; -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 + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-libsndfile link with the libsndfile library, - http://www.mega-nerd.com/libsndfile/ (default is Yes - if it is found, No if not) - --with-html-dir=DIR directory to install html documents. The default is - ${datadir}/doc/quickplot/html + 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 + ;; -Some influential environment variables: - CXX C++ compiler command - CXXFLAGS C++ compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CC C compiler command - CFLAGS C compiler flags - CPP C preprocessor + 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 + ;; -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. + 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='${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,$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 + ;; -Report bugs to . -_ACEOF -ac_status=$? -fi + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; -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=. + *) + ld_shlibs=no + ;; + esac -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 + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi -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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no - 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 +with_gnu_ld=$with_gnu_ld -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -Quickplot configure 0.8.15 -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 Quickplot $as_me 0.8.15, 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 +# +# 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. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 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\":${as_lineno-$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=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* -# 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'" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; 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; } + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + -# 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 @@ -1708,688 +9811,613 @@ -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 -RELEASE_DATE="Sun Mar 8 16:19:23 EDT 2009" -HOMEPAGE="http://quickplot.sourceforge.net/" -########################################################## -######## END: Configure a release here #################### -########################################################## -#AM_INIT_AUTOMAKE(option1 option2 ...) -am__api_version='1.10' -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. -# 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; } -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 -# 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='quickplot' - VERSION='0.8.15' -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@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@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"} -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' -ac_config_headers="$ac_config_headers config.h" -# Checks for programs. -missing_dir=`cd $ac_aux_dir && pwd` -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} -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 + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # 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 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # 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 -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. + 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; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 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 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +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' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH fi -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 +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + 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=`func_echo_all "$lib" | $SED '\''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' + ;; + esac + ;; +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; - test -n "$ac_ct_CXX" && break -done +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* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + 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~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + 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="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + 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 + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + 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 + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # 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}${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 + ;; - if test "x$ac_ct_CXX" = x; then - CXX="g++" +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 $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@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@gnu.org." >&2;} -ac_tool_warned=yes ;; -esac - CXX=$ac_ct_CXX + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac fi -fi + # Handle Gentoo/FreeBSD as it was Linux + case $host_vendor in + gentoo) + version_type=linux ;; + *) + version_type=freebsd-$objformat ;; + esac + + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + linux) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + need_lib_prefix=no + need_version=no + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # 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 + ;; + +haiku*) + version_type=linux + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + 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=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + 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' + # or fails outright, so override atomically: + install_override_mode=555 + ;; - 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); } +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 + ;; -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +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 | kopensolaris*-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 + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2400,2138 +10428,1911 @@ 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= +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir -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 + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath -{ { 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 + # 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 -ac_exeext=$ac_cv_exeext + # 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;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi -# 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 + # 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 - 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 + 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=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +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 -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;; +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 + 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 -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; } +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 + ;; -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. */ +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 + shlibpath_overrides_runpath=yes + 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' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + 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' + ;; -int -main () -{ +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; - ; - 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;; +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 -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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no -{ { 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; }; } +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 -rm -f conftest.$ac_cv_objext conftest.$ac_ext +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 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 -#AC_PROG_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 -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@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@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@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@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" + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent 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_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink else - CFLAGS= + # 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; 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 -{ 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 + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown 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 -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} + lt_cv_dlopen=no + lt_cv_dlopen_libs= -/* 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]; + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; -/* 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]; + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; -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; + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* 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 f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; +return dlopen (); ; 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 +if ac_fn_c_try_link "$LINENO"; 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 - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else -depcc="$CC" am_compiler_list= + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes -{ 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 +fi - 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 + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - cd .. - rm -rf conftest.dir +/* 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 +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes else - am_cv_CC_dependencies_compiler_type=none -fi - + ac_cv_lib_dld_shl_load=no 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 +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' +/* 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 +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= + ac_cv_lib_dl_dlopen=no fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ +/* 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 -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include + +/* 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 - Syntax error +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} _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 - : +if ac_fn_c_try_link "$LINENO"; 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$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + - # 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 -_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 +fi + - # 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 + + ;; + 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" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 else - ac_cv_prog_CPP=$CPP -fi -{ echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include + 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 <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL #else -# include +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif #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 + +/* 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 + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 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; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 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 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && 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* + - # Broken: fails on valid input. -continue fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } -rm -f conftest.err conftest.$ac_ext + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&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 <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" - # 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 -_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 +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 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; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 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 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && 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* + - # Passes both tests. -ac_preproc_ok=: -break fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac -rm -f conftest.err conftest.$ac_ext + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac -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; }; } + 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_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 -# 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/* ) ;; + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&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" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "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" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; *) - # 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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ;; -esac -done -IFS=$as_save_IFS + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&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 + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +CC="$lt_save_CC" -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' -#AC_PROG_LN_S -{ 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 -#AC_PROG_RANLIB -# `info autoconf' says use this order -# -- checks for types -# -- checks for structures -# -- checks for compiler characteristics -# -- checks for library functions -# -- checks for system services -########################################################## -ARCH="`uname`" -#These three we know so far -# Linux -# IRIX or IRIX64 -# Darwin -case "${ARCH}" in - Darwin) -cat >>confdefs.h <<\_ACEOF -#define QP_ARCH_DARWIN -_ACEOF + ac_config_commands="$ac_config_commands libtool" - ;; - Linux) -cat >>confdefs.h <<\_ACEOF -#define QP_ARCH_LINUX -_ACEOF - ;; +# Only expand once: - # Hope to have a port to IRIX - IRIX*) -cat >>confdefs.h <<\_ACEOF -#define QP_ARCH_IRIX -_ACEOF +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 - ;; +################################################################# -esac +LIB_VERSION="${LIB_CURRENT}:${LIB_REVISION}:${LIB_AGE}" +################################################################ -################################################## -# check for program pkg-config -################################################## +# initialize the error flag +error=no -# 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_prog_PKGCONFIG+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +# Check whether --enable-developer was given. +if test "${enable_developer+set}" = set; then : + enableval=$enable_developer; enable_developer="$enableval" +else + enable_developer=no +fi + + +USE_LYNX=no +USE_CONVERT=no + +if test "$enable_developer" != "no"; then + USE_LYNX=yes + USE_CONVERT=yes + # Extract the first word of "lynx", so it can be a program name with args. +set dummy lynx; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_HAVE_LYNX+:} false; then : + $as_echo_n "(cached) " >&6 else - if test -n "$PKGCONFIG"; then - ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test. + if test -n "$HAVE_LYNX"; then + ac_cv_prog_HAVE_LYNX="$HAVE_LYNX" # 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 + 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_PKGCONFIG="yes" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + ac_cv_prog_HAVE_LYNX="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_HAVE_LYNX" && ac_cv_prog_HAVE_LYNX="no" +fi +fi +HAVE_LYNX=$ac_cv_prog_HAVE_LYNX +if test -n "$HAVE_LYNX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LYNX" >&5 +$as_echo "$HAVE_LYNX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + # Extract the first word of "convert", so it can be a program name with args. +set dummy convert; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_HAVE_CONVERT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAVE_CONVERT"; then + ac_cv_prog_HAVE_CONVERT="$HAVE_CONVERT" # 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_HAVE_CONVERT="yes" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi done + done IFS=$as_save_IFS - test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no" + test -z "$ac_cv_prog_HAVE_CONVERT" && ac_cv_prog_HAVE_CONVERT="no" fi fi -PKGCONFIG=$ac_cv_prog_PKGCONFIG -if test -n "$PKGCONFIG"; then - { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 -echo "${ECHO_T}$PKGCONFIG" >&6; } +HAVE_CONVERT=$ac_cv_prog_HAVE_CONVERT +if test -n "$HAVE_CONVERT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CONVERT" >&5 +$as_echo "$HAVE_CONVERT" >&6; } else - { echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -if test "$PKGCONFIG" = "no" ; then - { { echo "$as_me:$LINENO: error: - You need the program pkg-config in your PATH. - See: http://www.freedesktop.org/software/pkgconfig/ - for more information. Without this it's hard to say - what else you need. + if test x$HAVE_LYNX != xyes; then + error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + lynx is required with --enable-developer + homepage: http://lynx.isc.org/" >&5 +$as_echo "$as_me: WARNING: + lynx is required with --enable-developer + homepage: http://lynx.isc.org/" >&2;} + fi + if test x$HAVE_CONVERT != xyes; then + error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + convert from ImageMagick is required with --enable-developer + homepage: http://www.imagemagick.org/" >&5 +$as_echo "$as_me: WARNING: + convert from ImageMagick is required with --enable-developer + homepage: http://www.imagemagick.org/" >&2;} + fi +fi -configure failed. -" >&5 -echo "$as_me: error: + if test x$USE_LYNX = xyes; then + USE_LYNX_TRUE= + USE_LYNX_FALSE='#' +else + USE_LYNX_TRUE='#' + USE_LYNX_FALSE= +fi + + if test x$USE_CONVERT = xyes; then + USE_CONVERT_TRUE= + USE_CONVERT_FALSE='#' +else + USE_CONVERT_TRUE='#' + USE_CONVERT_FALSE= +fi - You need the program pkg-config in your PATH. - See: http://www.freedesktop.org/software/pkgconfig/ - for more information. Without this it's hard to say - what else you need. -configure failed. -" >&2;} - { (exit 1); exit 1; }; } + +for ac_header in math.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" +if test "x$ac_cv_header_math_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MATH_H 1 +_ACEOF + fi +done -##################################################### -# Looking for packages using pkg-config -##################################################### -# will set later if we have a valid version of gtkmm -have_gtkmm=no +for ac_func in vsnprintf \ +powl -# will set later if we have a valid version of libsndfile -have_libsndfile=no +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF +fi +done -######################################### -# check for package gtkmm -######################################### -gtkmm_need_version=2.4.5 +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_lib_readline.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_LIB_READLINE +# +# DESCRIPTION +# +# Searches for a readline compatible library. If found, defines +# `HAVE_LIBREADLINE'. If the found library has the `add_history' function, +# sets also `HAVE_READLINE_HISTORY'. Also checks for the locations of the +# necessary include files and sets `HAVE_READLINE_H' or +# `HAVE_READLINE_READLINE_H' and `HAVE_READLINE_HISTORY_H' or +# 'HAVE_HISTORY_H' if the corresponding include files exists. +# +# The libraries that may be readline compatible are `libedit', +# `libeditline' and `libreadline'. Sometimes we need to link a termcap +# library for readline to work, this macro tests these cases too by trying +# to link with `libtermcap', `libcurses' or `libncurses' before giving up. +# +# Here is an example of how to use the information provided by this macro +# to perform the necessary includes or declarations in a C file: +# +# #ifdef HAVE_LIBREADLINE +# # if defined(HAVE_READLINE_READLINE_H) +# # include +# # elif defined(HAVE_READLINE_H) +# # include +# # else /* !defined(HAVE_READLINE_H) */ +# extern char *readline (); +# # endif /* !defined(HAVE_READLINE_H) */ +# char *cmdline = NULL; +# #else /* !defined(HAVE_READLINE_READLINE_H) */ +# /* no readline */ +# #endif /* HAVE_LIBREADLINE */ +# +# #ifdef HAVE_READLINE_HISTORY +# # if defined(HAVE_READLINE_HISTORY_H) +# # include +# # elif defined(HAVE_HISTORY_H) +# # include +# # else /* !defined(HAVE_HISTORY_H) */ +# extern void add_history (); +# extern int write_history (); +# extern int read_history (); +# # endif /* defined(HAVE_READLINE_HISTORY_H) */ +# /* no history */ +# #endif /* HAVE_READLINE_HISTORY */ +# +# LICENSE +# +# Copyright (c) 2008 Ville Laurikari +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + +#serial 6 + +# This is what autoupdate's m4 run will expand. It fires +# the warning (with _au_warn_XXX), outputs it into the +# updated configure.ac (with AC_DIAGNOSE), and then outputs +# the replacement expansion. + + +# This is an auxiliary macro that is also run when +# autoupdate runs m4. It simply calls m4_warning, but +# we need a wrapper so that each warning is emitted only +# once. We break the quoting in m4_warning's argument in +# order to expand this macro's arguments, not AU_DEFUN's. + + +# Finally, this is the expansion that is picked up by +# autoconf. It tells the user to run autoupdate, and +# then outputs the replacement expansion. We do not care +# about autoupdate's warning because that contains +# information on what to do *after* running autoupdate. -echo -n "checking for gtkmm version >= $gtkmm_need_version ..." -GTKMM_PKG_NAME=gtkmm-2.4 -# is gtkmm-2.4 there -if ! pkg-config --exists $GTKMM_PKG_NAME ; then - { echo "$as_me:$LINENO: WARNING: + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 +$as_echo_n "checking for a readline compatible library... " >&6; } +if ${ax_cv_lib_readline+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ORIG_LIBS="$LIBS" + for readline_lib in readline edit editline; do + for termcap_lib in "" termcap curses ncurses; do + if test -z "$termcap_lib"; then + TRY_LIB="-l$readline_lib" + else + TRY_LIB="-l$readline_lib -l$termcap_lib" + fi + LIBS="$ORIG_LIBS $TRY_LIB" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* 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 readline (); +int +main () +{ +return readline (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_lib_readline="$TRY_LIB" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -n "$ax_cv_lib_readline"; then + break + fi + done + if test -n "$ax_cv_lib_readline"; then + break + fi + done + if test -z "$ax_cv_lib_readline"; then + ax_cv_lib_readline="no" + fi + LIBS="$ORIG_LIBS" - You need gtkmm installed. At least version $gtkmm_need_version - The gtkmm home page is at http://www.gtkmm.org/ +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5 +$as_echo "$ax_cv_lib_readline" >&6; } -" >&5 -echo "$as_me: WARNING: + if test "$ax_cv_lib_readline" != "no"; then + LIBS="$LIBS $ax_cv_lib_readline" +$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h - You need gtkmm installed. At least version $gtkmm_need_version - The gtkmm home page is at http://www.gtkmm.org/ + for ac_header in readline.h readline/readline.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF -" >&2;} +fi -# is it at least version -elif ! pkg-config --atleast-version=$gtkmm_need_version $GTKMM_PKG_NAME ; then - GTKMM_VERSION=$(pkg-config --modversion $GTKMM_PKG_NAME) - { echo "$as_me:$LINENO: WARNING: +done + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 +$as_echo_n "checking whether readline supports history... " >&6; } +if ${ax_cv_lib_readline_history+:} false; then : + $as_echo_n "(cached) " >&6 +else - You have version $GTKMM_VERSION of gtkmm. - You need at least version $gtkmm_need_version of gtkmm. - The gtkmm home page is at http://www.gtkmm.org/ + ax_cv_lib_readline_history="no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -" >&5 -echo "$as_me: WARNING: +/* 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 add_history (); +int +main () +{ +return add_history (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ax_cv_lib_readline_history="yes" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5 +$as_echo "$ax_cv_lib_readline_history" >&6; } + if test "$ax_cv_lib_readline_history" = "yes"; then + +$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h + + for ac_header in history.h readline/history.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + fi + fi - You have version $GTKMM_VERSION of gtkmm. - You need at least version $gtkmm_need_version of gtkmm. - The gtkmm home page is at http://www.gtkmm.org/ +if test "$ax_cv_lib_readline" != "no"; then + readline_LIBS="$ax_cv_lib_readline" -" >&2;} else - GTKMM_VERSION=$(pkg-config --modversion $GTKMM_PKG_NAME) - have_gtkmm=yes - echo " yes" + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + libreadline version >= 6.2 is required + homepage: http://tiswww.case.edu/php/chet/readline/rltop.html" >&5 +$as_echo "$as_me: WARNING: + libreadline version >= 6.2 is required + homepage: http://tiswww.case.edu/php/chet/readline/rltop.html" >&2;} + error=yes fi +#AM_CONDITIONAL([HAVE_READLINE], [test "$ax_cv_lib_readline" != "no"]) -######################################### -# check for package lib sndfile -######################################### -sndfile_need_version=1.0.5 -have_libsndfile=no -echo -n "checking for lib sndfile version >= $sndfile_need_version ..." -# is it there -if ! pkg-config --exists sndfile ; then - { echo "$as_me:$LINENO: - The libsndfile library was not found. - Quickplot can't read sound files without libsndfile. - The lib sndfile home page is at http://www.mega-nerd.com/libsndfile/ -" >&5 -echo "$as_me: +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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - The libsndfile library was not found. - Quickplot can't read sound files without libsndfile. - The lib sndfile home page is at http://www.mega-nerd.com/libsndfile/ + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -" >&6;} -# is it at least version -elif ! pkg-config --atleast-version=$sndfile_need_version sndfile ; then - { echo "$as_me:$LINENO: WARNING: +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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : + $as_echo_n "(cached) " >&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" + $as_echo "$as_me:${as_lineno-$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 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - You have version $SNDFILE_VERSION of libsndfile. - You need at least version $sndfile_need_version of libsndfile. - Quickplot can't read sound files without lib sndfile. - The lib sndfile home page is at http://www.mega-nerd.com/libsndfile/ + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi +fi + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk_3" >&5 +$as_echo_n "checking for gtk_3... " >&6; } + +if test -n "$gtk_3_CFLAGS"; then + pkg_cv_gtk_3_CFLAGS="$gtk_3_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.0.12\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.0.12") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_gtk_3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.0.12" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$gtk_3_LIBS"; then + pkg_cv_gtk_3_LIBS="$gtk_3_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.0.12\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.0.12") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_gtk_3_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.0.12" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi -" >&5 -echo "$as_me: WARNING: - You have version $SNDFILE_VERSION of libsndfile. - You need at least version $sndfile_need_version of libsndfile. - Quickplot can't read sound files without lib sndfile. - The lib sndfile home page is at http://www.mega-nerd.com/libsndfile/ +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } -" >&2;} +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes else - have_libsndfile=yes - echo " yes" + _pkg_short_errors_supported=no fi + if test $_pkg_short_errors_supported = yes; then + gtk_3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.0.12" 2>&1` + else + gtk_3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.0.12" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$gtk_3_PKG_ERRORS" >&5 + error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + gtk+-3.0 version >= 3.0.12 is required + homepage: http://www.gtk.org/" >&5 +$as_echo "$as_me: WARNING: + gtk+-3.0 version >= 3.0.12 is required + homepage: http://www.gtk.org/" >&2;} -######################################### -# fail if gtkmm package is not found -######################################### -case "$have_gtkmm" in - no) - { { echo "$as_me:$LINENO: error: see WARNING(s) above: a usable\ - version of gtkmm was not found: configure failed. -" >&5 -echo "$as_me: error: see WARNING(s) above: a usable\ - version of gtkmm was not found: configure failed. -" >&2;} - { (exit 1); exit 1; }; } - ;; -esac +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + gtk+-3.0 version >= 3.0.12 is required + homepage: http://www.gtk.org/" >&5 +$as_echo "$as_me: WARNING: + gtk+-3.0 version >= 3.0.12 is required + homepage: http://www.gtk.org/" >&2;} + + +else + gtk_3_CFLAGS=$pkg_cv_gtk_3_CFLAGS + gtk_3_LIBS=$pkg_cv_gtk_3_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndfile" >&5 +$as_echo_n "checking for sndfile... " >&6; } + +if test -n "$sndfile_CFLAGS"; then + pkg_cv_sndfile_CFLAGS="$sndfile_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_sndfile_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$sndfile_LIBS"; then + pkg_cv_sndfile_LIBS="$sndfile_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.5\""; } >&5 + ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.5") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_sndfile_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.5" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi -######################################### -# get library gtkmm compiler options -######################################### +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +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 + sndfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.5" 2>&1` + else + sndfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.5" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$sndfile_PKG_ERRORS" >&5 -GTKMM_CXXFLAGS=$(pkg-config --cflags $GTKMM_PKG_NAME) + error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + lib sndfile version >= 1.0.5 is required + homepage: http://www.mega-nerd.com/libsndfile/" >&5 +$as_echo "$as_me: WARNING: + lib sndfile version >= 1.0.5 is required + homepage: http://www.mega-nerd.com/libsndfile/" >&2;} -GTKMM_LIBS=$(pkg-config --libs $GTKMM_PKG_NAME) +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: + lib sndfile version >= 1.0.5 is required + homepage: http://www.mega-nerd.com/libsndfile/" >&5 +$as_echo "$as_me: WARNING: + lib sndfile version >= 1.0.5 is required + homepage: http://www.mega-nerd.com/libsndfile/" >&2;} +else + sndfile_CFLAGS=$pkg_cv_sndfile_CFLAGS + sndfile_LIBS=$pkg_cv_sndfile_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } -######################################### -# get library sndfile compiler options -######################################### +fi +################################################################ +# --enable-debug +################################################################ -# Check whether --with-libsndfile was given. -if test "${with_libsndfile+set}" = set; then - withval=$with_libsndfile; use_libsndfile=$withval +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; enable_debug="$enableval" else - use_libsndfile=$have_libsndfile + enable_debug=no fi -case "$use_libsndfile" in +case "$enable_debug" in y* | Y* ) - use_libsndfile=yes + debug=yes ;; * ) - use_libsndfile=no + debug=no ;; esac -USE_LIBSNDFILE=0 -SNDFILE_CFLAGS="" -SNDFILE_LIBS="" -SNDFILE_VERSION="none" +################################################################ +# test for gnu/lib-names.h +################################################################ + +HAVE_GNU_LIB_NAMES_H=no + +# This is so we can see if the file gnu/lib-names.h is present and +# works so that we can make the libraries executable. See that this +# compiles will be a good enough test. Used in +# libquickplot/lib_main.c +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gnu/lib-names.h is present and works\ + so we can make libraries executable" >&5 +$as_echo_n "checking if gnu/lib-names.h is present and works\ + so we can make libraries executable... " >&6; } + +# Below the real code requires a "const char my_interp[] __att.... " +# etc, but I don't know how to make a '[' in an autoconf string. + +if test "$cross_compiling" = yes; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: CROSS-COMPILING" >&5 +$as_echo "CROSS-COMPILING" >&6; } + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#include + +#ifdef __i386__ +# define LIBDIR "/lib/" +#endif + +#ifdef __x86_64__ +# define LIBDIR "/lib64/" +#endif -if test x${use_libsndfile} = xyes && test x${have_libsndfile} = xno; then - { { echo "$as_me:$LINENO: error: - A usable version of the libsndfile package was not found: configure failed. +#ifndef LIBDIR +# error "The compiler did not define __i386__ or __x86_64__" +#endif + +const char my_interp[] __attribute__ + ((section(".interp")))= LIBDIR LD_SO; - " >&5 -echo "$as_me: error: - A usable version of the libsndfile package was not found: configure failed. +int main(void) +{ + /* do something so the compiler does not give a warning */ + char *ptr = (char *) my_interp; + ptr += 1; + return 0; +} - " >&2;} - { (exit 1); exit 1; }; } +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + HAVE_GNU_LIB_NAMES_H=yes +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -if test x${use_libsndfile} = xyes ; then - # Using libsndfile with quickplot - USE_LIBSNDFILE=1 - SNDFILE_CFLAGS=$(pkg-config --cflags sndfile) - SNDFILE_LIBS=$(pkg-config --libs sndfile) - SNDFILE_VERSION=$(pkg-config --modversion sndfile) + + if test x$HAVE_GNU_LIB_NAMES_H = xyes; then + HAVE_GNU_LIB_NAMES_H_TRUE= + HAVE_GNU_LIB_NAMES_H_FALSE='#' +else + HAVE_GNU_LIB_NAMES_H_TRUE='#' + HAVE_GNU_LIB_NAMES_H_FALSE= fi -if test "$USE_LIBSNDFILE" == "1" -then + + +################################################################# + +# AC_SUBST() go into Makefile.am files and other .in files +# AC_DEFINE*() go into config.h + +# replace @STYLE_CSS@ with the file style.css +STYLE_CSS="${srcdir}/style.css" + + +# replace @FOOTER_HTM@ with the file footer.htm +FOOTER_HTM="footer.htm" + + +RELEASE_DATE="`${srcdir}/release_date.sh ${srcdir}/RELEASE_DATE`" + + + cat >>confdefs.h <<_ACEOF -#define USE_LIBSNDFILE +#define DEFAULT_GRID_FONT "$DEFAULT_GRID_FONT" _ACEOF -fi + + cat >>confdefs.h <<_ACEOF -#define SNDFILE_VERSION "$SNDFILE_VERSION" +#define LIB_VERSION "$LIB_VERSION" _ACEOF -######################################## -# --with-html-dir=PATH -######################################## - -htmldir=${datadir}/doc/quickplot/html -# Check whether --with-html-dir was given. -if test "${with_html_dir+set}" = set; then - withval=$with_html_dir; htmldir=$withval + if test x$debug = xyes; then + QP_DEBUG_TRUE= + QP_DEBUG_FALSE='#' else - htmldir=${datadir}/doc/quickplot/html + QP_DEBUG_TRUE='#' + QP_DEBUG_FALSE= fi +if test x$debug == xyes ; then +cat >>confdefs.h <<_ACEOF +#define QP_DEBUG 1 +_ACEOF - -######################################### -# extra variables -######################################### +fi -# put RELEASE_DATE in Makefile -# put RELEASE_DATE in config.h cat >>confdefs.h <<_ACEOF -#define RELEASE_DATE "$RELEASE_DATE" +#define SCALE_FACTOR $SCALE_FACTOR _ACEOF -# put HOMEPAGE in Makefile - -# put HOMEPAGE in config.h - -cat >>confdefs.h <<_ACEOF -#define HOMEPAGE "$HOMEPAGE" -_ACEOF -CONFIGURE_DATE="`date`" -# put CONFIGURE_DATE in the Makefiles -# put CONFIGURE_DATE in config.h cat >>confdefs.h <<_ACEOF -#define CONFIGURE_DATE "$CONFIGURE_DATE" +#define NUMBER_OF_PLOTS $NUMBER_OF_PLOTS _ACEOF + if test -f .svn/all-wcprops; then + IS_SVN_CO_TRUE= + IS_SVN_CO_FALSE='#' +else + IS_SVN_CO_TRUE='#' + IS_SVN_CO_FALSE= +fi -if test "${MAKE}" = "" ; then - MAKE_ifset="Is not set, but that is likely OK." + if test -f screenshots.html.in; then + HAVE_LOCAL_SCREENSHOTS_TRUE= + HAVE_LOCAL_SCREENSHOTS_FALSE='#' else - MAKE_ifset="${MAKE}" + HAVE_LOCAL_SCREENSHOTS_TRUE='#' + HAVE_LOCAL_SCREENSHOTS_FALSE= fi -#################################################################### -ac_config_files="$ac_config_files Makefile VERSION" + + +################################################################# +# We show all warnings to the user before erroring out. This +# beats having the user fix one error in order to get to the next. +# Instead we show all the warnings (errors) that we can. + +if test x$error = xyes ; then + as_fn_error $? " + + Failed to configure quickplot version $VERSION. + See above WARNING(s). + +" "$LINENO" 5 +fi + +################################################################# + +ac_config_files="$ac_config_files Makefile quickplot.pc footer.htm about.htm help_head.htm help_tail.htm index.htm quickplot.1.head quickplot.1.tail" cat >confcache <<\_ACEOF @@ -4561,12 +12362,13 @@ 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;} ;; + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( - *) $as_unset $ac_var ;; + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -4574,8 +12376,8 @@ (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 \). + # `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" @@ -4597,13 +12399,24 @@ :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 + if test "x$cache_file" != "x/dev/null"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi else - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 -echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -4616,48 +12429,70 @@ ac_libobjs= ac_ltlibobjs= +U= 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"` + ac_i=`$as_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' + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +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; }; } + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 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; }; } + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then + as_fn_error $? "conditional \"USE_LYNX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${USE_CONVERT_TRUE}" && test -z "${USE_CONVERT_FALSE}"; then + as_fn_error $? "conditional \"USE_CONVERT\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_GNU_LIB_NAMES_H_TRUE}" && test -z "${HAVE_GNU_LIB_NAMES_H_FALSE}"; then + as_fn_error $? "conditional \"HAVE_GNU_LIB_NAMES_H\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${QP_DEBUG_TRUE}" && test -z "${QP_DEBUG_FALSE}"; then + as_fn_error $? "conditional \"QP_DEBUG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IS_SVN_CO_TRUE}" && test -z "${IS_SVN_CO_FALSE}"; then + as_fn_error $? "conditional \"IS_SVN_CO\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LOCAL_SCREENSHOTS_TRUE}" && test -z "${HAVE_LOCAL_SCREENSHOTS_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LOCAL_SCREENSHOTS\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi -: ${CONFIG_STATUS=./config.status} +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 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 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. @@ -4667,59 +12502,79 @@ debug=false ac_cs_recheck=false ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## 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 +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 + # Pre-4.2 versions of Zsh do 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 ;; + 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=';' +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' else - PATH_SEPARATOR=: + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' fi - rm -f conf$$.sh + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } fi @@ -4728,20 +12583,19 @@ # 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= +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 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -4752,32 +12606,111 @@ 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; } + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + 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 +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && 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 +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + -# Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr @@ -4791,13 +12724,17 @@ as_basename=false fi +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=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" | +$as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -4812,104 +12749,103 @@ } 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 +# 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 ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; 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 + mkdir conf$$.dir 2>/dev/null 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 || +if (echo >conf$$.file) 2>/dev/null; then + 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' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln + fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_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 || +$as_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" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false @@ -4926,12 +12862,12 @@ as_test_x=' eval sh -c '\'' if test -d "$1"; then - test -d "$1/."; + test -d "$1/."; else - case $1 in - -*)set "./$1";; + case $1 in #( + -*)set "./$1";; esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' @@ -4946,13 +12882,19 @@ exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 -# Save the log message, to keep $[0] and so on meaningful, and to +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=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 Quickplot $as_me 0.8.15, which was -generated by GNU Autoconf 2.61. Invocation command line was +This file was extended by quickplot $as_me 0.9.11, which was +generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -4965,7 +12907,16 @@ _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" @@ -4973,22 +12924,25 @@ _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. -Usage: $0 [OPTIONS] [FILE]... +Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit - -q, --quiet do not print progress messages + --config print configuration, then exit + -q, --quiet, --silent + 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 + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE Configuration files: $config_files @@ -4999,16 +12953,18 @@ Configuration commands: $config_commands -Report bugs to ." +Report bugs to . +quickplot home page: ." _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -Quickplot config.status 0.8.15 -configured by $0, generated by GNU Autoconf 2.61, - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +quickplot config.status 0.9.11 +configured by $0, generated by GNU Autoconf 2.68, + with options \\"\$ac_cs_config\\" -Copyright (C) 2006 Free Software Foundation, Inc. +Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -5016,20 +12972,26 @@ srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk _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. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. 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=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; *) ac_option=$1 ac_optarg=$2 @@ -5042,34 +13004,41 @@ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - echo "$ac_cs_version"; exit ;; + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append 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; }; };; + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; --help | --hel | -h ) - echo "$ac_cs_usage"; exit ;; + $as_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; }; } ;; + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; - *) ac_config_targets="$ac_config_targets $1" + *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac @@ -5084,35 +13053,314 @@ fi _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 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 + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' export CONFIG_SHELL - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + exec "\$@" fi _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - echo "$ac_log" + $as_echo "$ac_log" } >&5 _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +# 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 + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in SHELL \ +ECHO \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +OBJDUMP \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +DLLTOOL \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +nm_file_list_spec \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_flag_spec_ld \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets @@ -5120,12 +13368,18 @@ case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "VERSION") CONFIG_FILES="$CONFIG_FILES VERSION" ;; + "quickplot.pc") CONFIG_FILES="$CONFIG_FILES quickplot.pc" ;; + "footer.htm") CONFIG_FILES="$CONFIG_FILES footer.htm" ;; + "about.htm") CONFIG_FILES="$CONFIG_FILES about.htm" ;; + "help_head.htm") CONFIG_FILES="$CONFIG_FILES help_head.htm" ;; + "help_tail.htm") CONFIG_FILES="$CONFIG_FILES help_tail.htm" ;; + "index.htm") CONFIG_FILES="$CONFIG_FILES index.htm" ;; + "quickplot.1.head") CONFIG_FILES="$CONFIG_FILES quickplot.1.head" ;; + "quickplot.1.tail") CONFIG_FILES="$CONFIG_FILES quickplot.1.tail" ;; - *) { { 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; }; };; + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done @@ -5148,204 +13402,336 @@ # after its creation but before its name has been assigned to `$tmp'. $debug || { - tmp= + tmp= ac_tmp= trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + trap 'as_fn_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" + 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. -# +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then -_ACEOF +if $AWK 'BEGIN { getline <"/dev/null" }' /dev/null; then + ac_cs_awk_getline=: + ac_cs_awk_pipe_init= + ac_cs_awk_read_file=' + while ((getline aline < (F[key])) > 0) + print(aline) + close(F[key])' + ac_cs_awk_pipe_fini= +else + ac_cs_awk_getline=false + ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" + ac_cs_awk_read_file=' + print "|#_!!_#|" + print "cat " F[key] " &&" + '$ac_cs_awk_pipe_init + # The final `:' finishes the AND list. + ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' +fi +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF +# Create commands to substitute file output variables. +{ + echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && + echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && + echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && + echo "_ACAWK" && + echo "_ACEOF" +} >conf$$files.sh && +. ./conf$$files.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +rm -f conf$$files.sh +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 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 -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 -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 -PKGCONFIG!$PKGCONFIG$ac_delim -GTKMM_CXXFLAGS!$GTKMM_CXXFLAGS$ac_delim -GTKMM_LIBS!$GTKMM_LIBS$ac_delim -SNDFILE_CFLAGS!$SNDFILE_CFLAGS$ac_delim -SNDFILE_LIBS!$SNDFILE_LIBS$ac_delim -RELEASE_DATE!$RELEASE_DATE$ac_delim -HOMEPAGE!$HOMEPAGE$ac_delim -CONFIGURE_DATE!$CONFIGURE_DATE$ac_delim -TARNAME!$TARNAME$ac_delim -LIBOBJS!$LIBOBJS$ac_delim -LTLIBOBJS!$LTLIBOBJS$ac_delim -_ACEOF + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; 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; }; } + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done +rm -f conf$$subs.sh -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 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 >$CONFIG_STATUS <<_ACEOF -:end -s/|#_!!_#|//g -CEOF$ac_eof +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + \$ac_cs_awk_pipe_init +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + if (nfields == 3 && !substed) { + key = field[2] + if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { + \$ac_cs_awk_read_file + next + } + } + print line +} +\$ac_cs_awk_pipe_fini +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries 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/ + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// s/^[^=]*=[ ]*$// }' fi -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # 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. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag 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; }; };; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -5364,7 +13750,7 @@ for ac_f do case $ac_f in - -) ac_f="$tmp/stdin";; + -) ac_f="$ac_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 `:'. @@ -5373,26 +13759,34 @@ [\\/$]*) 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; }; };; + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac - ac_file_inputs="$ac_file_inputs $ac_f" + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append 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." + configure_input='Generated from '` + $as_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;} + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin";; + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac @@ -5402,42 +13796,7 @@ 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" | +$as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -5455,20 +13814,15 @@ 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; }; }; } + as_dir="$ac_dir"; as_fn_mkdir_p 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,^\.[\\/],,'` + ac_dir_suffix=/`$as_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,/,,'` + ac_top_builddir_sub=`$as_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/ ;; @@ -5513,12 +13867,12 @@ esac _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # 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/ { +ac_sed_dataroot=' +/datarootdir/ { p q } @@ -5526,36 +13880,37 @@ /@docdir@/p /@infodir@/p /@localedir@/p -/@mandir@/p -' $ac_file_inputs` in +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $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;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF -cat >>$CONFIG_STATUS <<_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 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' ;; + 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 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub $extrasub _ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s&@configure_input@&$configure_input&;t t +s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t @@ -5566,121 +13921,56 @@ 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" >$tmp/out +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | +if $ac_cs_awk_getline; then + $AWK -f "$ac_tmp/subs.awk" +else + $AWK -f "$ac_tmp/subs.awk" | $SHELL +fi \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 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;} + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_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" + rm -f "$ac_tmp/stdin" case $ac_file in - -) cat "$tmp/out"; rm -f "$tmp/out";; - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; - esac + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :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;} + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} else - rm -f $ac_file - mv "$tmp/config.h" $ac_file + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else - echo "/* $configure_input */" - cat "$ac_result" + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 fi - rm -f "$tmp/out12" -# Compute $ac_file's index in $config_headers. -_am_arg=$ac_file +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in @@ -5695,7 +13985,7 @@ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || -echo X"$_am_arg" | +$as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -5715,30 +14005,40 @@ 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;} + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_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 -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + 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 -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/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" | +$as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -5756,68 +14056,33 @@ 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" || + 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" | +$as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -5835,27 +14100,656 @@ q } s/.*/./; q'` - test -d "$as_dir" && break + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" 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 +} + ;; + "libtool":C) + + # 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 + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, +# Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool 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. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool 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 GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="" + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# 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 + +# 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//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# An object symbol dumper. +OBJDUMP=$lt_OBJDUMP + +# 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 + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# 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 + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# 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 + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# 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 + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# 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 + +# 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 + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# 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 + +# 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 + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# 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 a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# 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 DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# 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 + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# 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 + +# 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 + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_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 +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # 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) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + ;; esac done # for ac_tag -{ (exit 0); exit 0; } +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. @@ -5875,47 +14769,88 @@ 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; } + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi # you can add spew here -{ echo "$as_me:$LINENO: result: - ------------------------------------------------------ - done configuring: $PACKAGE_NAME version $VERSION - ------------------------------------------------------ - - Linking with lib gtkmm version: $GTKMM_VERSION - Linking with libsndfile?: $use_libsndfile - Linking with libsndfile version: $SNDFILE_VERSION - C++ Compiler (CXX): $CXX - C++ Compiler Flags (CXXFLAGS): $CXXFLAGS - C++ Linker Flags (LDFLAGS): $LDFLAGS - Linker (LD): $LD - C/C++ preprocessor flags (CPPFLAGS): $CPPFLAGS - Installer (INSTALL): $INSTALL - Make (MAKE): $MAKE_ifset - htmldir $htmldir - Installation prefix (prefix): $prefix +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: + ------------------------------------------------------------ + done configuring: $PACKAGE_NAME version $VERSION + ------------------------------------------------------------ + + extra debug code: $debug + extra developer targets: $enable_developer + + C Compiler (CC): $CC + C Compiler Flags (CFLAGS): $CFLAGS + C Linker Flags (LDFLAGS): $LDFLAGS + Installation prefix (prefix): $prefix + srcdir: $srcdir " >&5 -echo "${ECHO_T} - ------------------------------------------------------ - done configuring: $PACKAGE_NAME version $VERSION - ------------------------------------------------------ - - Linking with lib gtkmm version: $GTKMM_VERSION - Linking with libsndfile?: $use_libsndfile - Linking with libsndfile version: $SNDFILE_VERSION - C++ Compiler (CXX): $CXX - C++ Compiler Flags (CXXFLAGS): $CXXFLAGS - C++ Linker Flags (LDFLAGS): $LDFLAGS - Linker (LD): $LD - C/C++ preprocessor flags (CPPFLAGS): $CPPFLAGS - Installer (INSTALL): $INSTALL - Make (MAKE): $MAKE_ifset - htmldir $htmldir - Installation prefix (prefix): $prefix +$as_echo " + ------------------------------------------------------------ + done configuring: $PACKAGE_NAME version $VERSION + ------------------------------------------------------------ + + extra debug code: $debug + extra developer targets: $enable_developer + + C Compiler (CC): $CC + C Compiler Flags (CFLAGS): $CFLAGS + C Linker Flags (LDFLAGS): $LDFLAGS + Installation prefix (prefix): $prefix + srcdir: $srcdir " >&6; } + + +###################################################################### +# LIB_VERSION notes +###################################################################### + +# Updating library version interface information +# (from libtool version 1.4.3 info page) + +# GNU LibTool library interface numbers +# +# CURRENT +# The most recent interface number that this library implements. +# +# REVISION +# The implementation number of the CURRENT interface. +# +# AGE +# The difference between the newest and oldest interfaces that +# this library implements. In other words, the library implements +# all the interface numbers in the range from number `CURRENT - +# AGE' to `CURRENT'. +# + +# +# 1. Start with version information of `0:0:0' for each libtool +# library. +# +# 2. Update the version information only immediately before a public +# release of your software. More frequent updates are +# unnecessary, and only guarantee that the current interface +# number gets larger faster. We do it just after a release. +# +# 3. If the library source code has changed at all since the last +# update, then increment REVISION (`C:R:A' becomes `C:r+1:A'). +# +# 4. If any interfaces have been added, removed, or changed since the +# last update, increment CURRENT, and set REVISION to 0. +# +# 5. If any interfaces have been added since the last public release, +# then increment AGE. +# +# 6. If any interfaces have been removed since the last public +# release, then set AGE to 0. +# diff -Nru quickplot-0.8.15/configure.ac quickplot-0.9.11/configure.ac --- quickplot-0.8.15/configure.ac 2009-03-08 20:20:31.000000000 +0000 +++ quickplot-0.9.11/configure.ac 2011-12-30 06:14:36.000000000 +0000 @@ -1,361 +1,397 @@ -# This file is for people developing quickplot. This file is used to -# generate many other files using the GNU autotools. You do this by -# running `./bootstrap'. If you're not developing or hacking -# quickplot you likely don't want to run `./bootstrap' or -# `./cvsclean'. +# Quickplot - an interactive 2D plotter +# +# Copyright (C) 1998-2011 Lance Arsenault + +# This file is part of Quickplot. +# +# Quickplot 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 3 of the License, +# or (at your option) any later version. +# +# Quickplot 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 Quickplot. If not, see . +# + # require autoconf version -AC_PREREQ(2.58) +AC_PREREQ(2.59) -########################################################## -############ Configure a release here #################### -########################################################## +################################################################# +############### Configure a release here ######################## +################################################################# -# AC_INIT( PACKAGE, VERSION, PACKAGE_BUGREPORT, TARNAME ) -AC_INIT([Quickplot], - 0.8.15, - [lanceman@users.sourceforge.net], - quickplot) +# AC_INIT( PACKAGE, VERSION, BUGREPORT, TARNAME , URL) +AC_INIT([quickplot], 0.9.11, + [http://quickplot.sourceforge.net/], + [quickplot], + [http://quickplot.sourceforge.net/]) -RELEASE_DATE="Sun Mar 8 16:19:23 EDT 2009" -HOMEPAGE="http://quickplot.sourceforge.net/" +# LIB_VERSION=LIB_CURRENT:LIB_REVISION:LIB_AGE -########################################################## -######## END: Configure a release here #################### -########################################################## +LIB_CURRENT=0 +LIB_REVISION=0 +LIB_AGE=0 +# +# See LIB_VERSION notes at the very bottom of this file +# -#AM_INIT_AUTOMAKE(option1 option2 ...) -AM_INIT_AUTOMAKE(dist-bzip2) -AM_CONFIG_HEADER(config.h) +################################################################# +############## END: Configure a release here #################### +################################################################# -# Checks for programs. -missing_dir=`cd $ac_aux_dir && pwd` -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) - - -AC_CONFIG_SRCDIR([config.h.in]) - - -AC_PROG_CXX -#AC_PROG_CC -AC_PROG_CPP -AC_PROG_INSTALL -#AC_PROG_LN_S -AC_PROG_MAKE_SET -#AC_PROG_RANLIB - -# `info autoconf' says use this order -# -- checks for types -# -- checks for structures -# -- checks for compiler characteristics -# -- checks for library functions -# -- checks for system services - -########################################################## - -ARCH="`uname`" - -#These three we know so far -# Linux -# IRIX or IRIX64 -# Darwin - -case "${ARCH}" in - - Darwin) - AC_DEFINE(QP_ARCH_DARWIN, [], - [The OS or architecture which was output\ - from `uname' when configure ran.]) - ;; - - Linux) - AC_DEFINE(QP_ARCH_LINUX, [], - [The OS or architecture which was output\ - from `uname' when configure ran.]) - ;; - - # Hope to have a port to IRIX - IRIX*) - AC_DEFINE(QP_ARCH_IRIX, [], - [The OS or architecture which was output\ - from `uname' when configure ran.]) - ;; +# Stuff that may be configured to change constants that +# get compiled in. -esac +NUMBER_OF_PLOTS="12" # default number of plots at startup -################################################## -# check for program pkg-config -################################################## +# if auto scale is set this is the factor that the span of the +# plots values may differ by to be on the same scales +SCALE_FACTOR="50" -AC_CHECK_PROG(PKGCONFIG, pkg-config, [yes], [no]) -if test "$PKGCONFIG" = "no" ; then - AC_MSG_ERROR([ +DEFAULT_GRID_FONT="Sans 10" - You need the program pkg-config in your PATH. - See: http://www.freedesktop.org/software/pkgconfig/ - for more information. Without this it's hard to say - what else you need. -configure failed. -]) -fi +################################################################ +# setting many variables before AC_PROG_* +################################################################ -##################################################### -# Looking for packages using pkg-config -##################################################### -# will set later if we have a valid version of gtkmm -have_gtkmm=no - -# will set later if we have a valid version of libsndfile -have_libsndfile=no - - -######################################### -# check for package gtkmm -######################################### +#AM_INIT_AUTOMAKE(option1 option2 ...) +AM_INIT_AUTOMAKE(dist-bzip2 dist-xz) +AC_CONFIG_MACRO_DIR([m4]) -gtkmm_need_version=2.4.5 +AM_CONFIG_HEADER(config.h) +AC_PROG_CC_C_O +AM_PROG_CC_C_O -echo -n "checking for gtkmm version >= $gtkmm_need_version ..." +AC_PROG_LIBTOOL +AC_LANG(C) -GTKMM_PKG_NAME=gtkmm-2.4 +################################################################# -# is gtkmm-2.4 there -if ! pkg-config --exists $GTKMM_PKG_NAME ; then +LIB_VERSION="${LIB_CURRENT}:${LIB_REVISION}:${LIB_AGE}" + +################################################################ + +# initialize the error flag +error=no + + +AC_ARG_ENABLE([developer], + AS_HELP_STRING([--enable-developer], + [if you wish to edit Quickplot source image files and\ + Quickplot documentation files enabling this option will add addition\ + make file targets which are built using the programs lynx and\ + the ImageMagick program convert.\ + (default is no developer targets).]), + [enable_developer="$enableval"], + [enable_developer=no]) + +USE_LYNX=no +USE_CONVERT=no + +if test "$enable_developer" != "no"; then + USE_LYNX=yes + USE_CONVERT=yes + AC_CHECK_PROG(HAVE_LYNX, lynx, [yes], [no]) + AC_CHECK_PROG(HAVE_CONVERT, convert, [yes], [no]) + + if test x$HAVE_LYNX != xyes; then + error=yes AC_MSG_WARN([ + lynx is required with --enable-developer + homepage: http://lynx.isc.org/]) + fi + if test x$HAVE_CONVERT != xyes; then + error=yes + AC_MSG_WARN([ + convert from ImageMagick is required with --enable-developer + homepage: http://www.imagemagick.org/]) + fi +fi - - You need gtkmm installed. At least version $gtkmm_need_version - The gtkmm home page is at http://www.gtkmm.org/ - -]) - -# is it at least version -elif ! pkg-config --atleast-version=$gtkmm_need_version $GTKMM_PKG_NAME ; then - GTKMM_VERSION=$(pkg-config --modversion $GTKMM_PKG_NAME) - AC_MSG_WARN([ +AM_CONDITIONAL([USE_LYNX], [test x$USE_LYNX = xyes]) +AM_CONDITIONAL([USE_CONVERT], [test x$USE_CONVERT = xyes]) - You have version $GTKMM_VERSION of gtkmm. - You need at least version $gtkmm_need_version of gtkmm. - The gtkmm home page is at http://www.gtkmm.org/ +AC_CHECK_HEADERS(math.h) -]) +AC_CHECK_FUNCS( +vsnprintf \ +powl +) + +m4_include([ax_lib_readline.m4]) +AX_LIB_READLINE +if test "$ax_cv_lib_readline" != "no"; then + readline_LIBS="$ax_cv_lib_readline" + AC_SUBST(readline_LIBS) else - GTKMM_VERSION=$(pkg-config --modversion $GTKMM_PKG_NAME) - have_gtkmm=yes - echo " yes" + AC_MSG_WARN([ + libreadline version >= 6.2 is required + homepage: http://tiswww.case.edu/php/chet/readline/rltop.html]) + error=yes fi +#AM_CONDITIONAL([HAVE_READLINE], [test "$ax_cv_lib_readline" != "no"]) -######################################### -# check for package lib sndfile -######################################### +PKG_CHECK_MODULES([gtk_3], [gtk+-3.0 >= 3.0.12], + [], + [error=yes + AC_MSG_WARN([ + gtk+-3.0 version >= 3.0.12 is required + homepage: http://www.gtk.org/]) + ] +) + +PKG_CHECK_MODULES([sndfile], [sndfile >= 1.0.5], + [], + [error=yes + AC_MSG_WARN([ + lib sndfile version >= 1.0.5 is required + homepage: http://www.mega-nerd.com/libsndfile/]) + ] +) + + +################################################################ +# --enable-debug +################################################################ + +AC_ARG_ENABLE([debug], + AS_HELP_STRING([--enable-debug], + [compile more debugging code into quickplot and libquickplot\ + (default is no debugging code). You do not want this unless\ + you are developing quickplot. This is unrelated to debug compile\ + options. Adding this option makes Quickplot become Slowplot.]), + [enable_debug="$enableval"], + [enable_debug=no]) -sndfile_need_version=1.0.5 -have_libsndfile=no +case "$enable_debug" in + y* | Y* ) + debug=yes + ;; + * ) + debug=no + ;; +esac -echo -n "checking for lib sndfile version >= $sndfile_need_version ..." -# is it there -if ! pkg-config --exists sndfile ; then - AC_MSG_NOTICE([ +################################################################ +# test for gnu/lib-names.h +################################################################ +HAVE_GNU_LIB_NAMES_H=no - The libsndfile library was not found. - Quickplot can't read sound files without libsndfile. - The lib sndfile home page is at http://www.mega-nerd.com/libsndfile/ +# This is so we can see if the file gnu/lib-names.h is present and +# works so that we can make the libraries executable. See that this +# compiles will be a good enough test. Used in +# libquickplot/lib_main.c +AC_MSG_CHECKING([if gnu/lib-names.h is present and works\ + so we can make libraries executable]) -]) +# Below the real code requires a "const char my_interp[] __att.... " +# etc, but I don't know how to make a '[' in an autoconf string. -# is it at least version -elif ! pkg-config --atleast-version=$sndfile_need_version sndfile ; then - AC_MSG_WARN([ +AC_RUN_IFELSE([AC_LANG_SOURCE([[ +#include - You have version $SNDFILE_VERSION of libsndfile. - You need at least version $sndfile_need_version of libsndfile. - Quickplot can't read sound files without lib sndfile. - The lib sndfile home page is at http://www.mega-nerd.com/libsndfile/ +#ifdef __i386__ +# define LIBDIR "/lib/" +#endif -]) -else - have_libsndfile=yes - echo " yes" -fi +#ifdef __x86_64__ +# define LIBDIR "/lib64/" +#endif +#ifndef LIBDIR +# error "The compiler did not define __i386__ or __x86_64__" +#endif -######################################### -# fail if gtkmm package is not found -######################################### - -case "$have_gtkmm" in - no) - AC_MSG_ERROR([see WARNING(s) above: a usable\ - version of gtkmm was not found: configure failed. -]) - ;; -esac +const char my_interp[] __attribute__ + ((section(".interp")))= LIBDIR LD_SO; +int main(void) +{ + /* do something so the compiler does not give a warning */ + char *ptr = (char *) my_interp; + ptr += 1; + return 0; +} +]])], + [AC_MSG_RESULT([yes])] + HAVE_GNU_LIB_NAMES_H=yes, + [AC_MSG_RESULT([no])], + [AC_MSG_RESULT([CROSS-COMPILING])] +) +AM_CONDITIONAL([HAVE_GNU_LIB_NAMES_H], + [test x$HAVE_GNU_LIB_NAMES_H = xyes]) -######################################### -# get library gtkmm compiler options -######################################### -GTKMM_CXXFLAGS=$(pkg-config --cflags $GTKMM_PKG_NAME) -AC_SUBST(GTKMM_CXXFLAGS) -GTKMM_LIBS=$(pkg-config --libs $GTKMM_PKG_NAME) -AC_SUBST(GTKMM_LIBS) +################################################################# +# AC_SUBST() go into Makefile.am files and other .in files +# AC_DEFINE*() go into config.h +# replace @STYLE_CSS@ with the file style.css +STYLE_CSS="${srcdir}/style.css" +AC_SUBST_FILE(STYLE_CSS) -######################################### -# get library sndfile compiler options -######################################### +# replace @FOOTER_HTM@ with the file footer.htm +FOOTER_HTM="footer.htm" +AC_SUBST_FILE(FOOTER_HTM) +RELEASE_DATE="`${srcdir}/release_date.sh ${srcdir}/RELEASE_DATE`" +AC_SUBST(RELEASE_DATE) -AC_ARG_WITH([libsndfile], - AS_HELP_STRING([--with-libsndfile], - [link with the libsndfile library, http://www.mega-nerd.com/libsndfile/\ - (default is Yes if it is found, No if not)]), - [use_libsndfile=$withval], [use_libsndfile=$have_libsndfile]) +AC_SUBST(DEFAULT_GRID_FONT) +AC_DEFINE_UNQUOTED(DEFAULT_GRID_FONT, "$DEFAULT_GRID_FONT", + [The default font used when drawing the numbers on the grid]) -case "$use_libsndfile" in - y* | Y* ) - use_libsndfile=yes - ;; - * ) - use_libsndfile=no - ;; -esac -USE_LIBSNDFILE=0 -SNDFILE_CFLAGS="" -SNDFILE_LIBS="" -SNDFILE_VERSION="none" - -if test x${use_libsndfile} = xyes && test x${have_libsndfile} = xno; then - AC_MSG_ERROR([ - A usable version of the libsndfile package was not found: configure failed. +AC_DEFINE_UNQUOTED(LIB_VERSION, "$LIB_VERSION", + [Quickplot Library version number]) - ]) -fi +AC_SUBST(LIB_VERSION) +AC_SUBST(LIB_CURRENT) +AC_SUBST(LIB_REVISION) +AC_SUBST(LIB_AGE) -if test x${use_libsndfile} = xyes ; then - # Using libsndfile with quickplot - USE_LIBSNDFILE=1 - SNDFILE_CFLAGS=$(pkg-config --cflags sndfile) - SNDFILE_LIBS=$(pkg-config --libs sndfile) - SNDFILE_VERSION=$(pkg-config --modversion sndfile) -fi +AM_CONDITIONAL([QP_DEBUG], [test x$debug = xyes]) -if test "$USE_LIBSNDFILE" == "1" -then - AC_DEFINE_UNQUOTED(USE_LIBSNDFILE, [], - [If we are linking with the libsndfile\ - package USE_LIBSNDFILE will be defined.]) +if test x$debug == xyes ; then + AC_DEFINE_UNQUOTED(QP_DEBUG,[1], + [If QP_DEBUG is defined we add extra debug \ +code to quickplot and libquickplot.]) fi -AC_DEFINE_UNQUOTED(SNDFILE_VERSION, "$SNDFILE_VERSION", - [The version of libsndfile we're linking Quickplot with.]) -AC_SUBST(SNDFILE_CFLAGS) -AC_SUBST(SNDFILE_LIBS) +AC_SUBST(SCALE_FACTOR) +AC_DEFINE_UNQUOTED(SCALE_FACTOR, $SCALE_FACTOR, + [Factor switch plot values may differ to be \ +on the same scale when auto scale is selected]) -######################################## -# --with-html-dir=PATH -######################################## -htmldir=${datadir}/doc/quickplot/html -AC_ARG_WITH([html-dir], - AS_HELP_STRING([--with-html-dir=DIR], - [directory to install html documents. \ -The default is ${datadir}/doc/quickplot/html]), - [htmldir=$withval], [htmldir=${datadir}/doc/quickplot/html]) +AC_SUBST(NUMBER_OF_PLOTS) +AC_DEFINE_UNQUOTED(NUMBER_OF_PLOTS, $NUMBER_OF_PLOTS, + [The default maximum number of plot per file]) -AC_SUBST(htmldir) +AM_CONDITIONAL([IS_SVN_CO], [test -f .svn/all-wcprops]) -######################################### -# extra variables -######################################### +AM_CONDITIONAL([HAVE_LOCAL_SCREENSHOTS], [test -f screenshots.html.in]) -# put RELEASE_DATE in Makefile -AC_SUBST(RELEASE_DATE) -# put RELEASE_DATE in config.h -AC_DEFINE_UNQUOTED(RELEASE_DATE, "$RELEASE_DATE", - [The date on which the Quickplot (quickplot)\ - release was generated.]) - -# put HOMEPAGE in Makefile -AC_SUBST(HOMEPAGE) -# put HOMEPAGE in config.h -AC_DEFINE_UNQUOTED(HOMEPAGE, "$HOMEPAGE", - [The Quickplot (quickplot) home-page.]) - -CONFIGURE_DATE="`date`" -# put CONFIGURE_DATE in the Makefiles -AC_SUBST(CONFIGURE_DATE) -# put CONFIGURE_DATE in config.h -AC_DEFINE_UNQUOTED(CONFIGURE_DATE, "$CONFIGURE_DATE", - [The date on which the Quickplot (quickplot) was\ - configured by running the GNU Autotools autoconf configure script.]) -AC_SUBST(TARNAME) +################################################################# +# We show all warnings to the user before erroring out. This +# beats having the user fix one error in order to get to the next. +# Instead we show all the warnings (errors) that we can. -if test "${MAKE}" = "" ; then - MAKE_ifset="Is not set, but that is likely OK." -else - MAKE_ifset="${MAKE}" -fi +if test x$error = xyes ; then + AC_MSG_ERROR([ -#################################################################### + Failed to configure quickplot version $VERSION. + See above WARNING(s). +]) +fi + +################################################################# -AC_CONFIG_FILES([ +AC_CONFIG_FILES( Makefile -VERSION -]) +quickplot.pc +footer.htm +about.htm +help_head.htm +help_tail.htm +index.htm +quickplot.1.head +quickplot.1.tail +) AC_OUTPUT # you can add spew here AC_MSG_RESULT([ - ------------------------------------------------------ - done configuring: $PACKAGE_NAME version $VERSION - ------------------------------------------------------ - - Linking with lib gtkmm version: $GTKMM_VERSION - Linking with libsndfile?: $use_libsndfile - Linking with libsndfile version: $SNDFILE_VERSION - C++ Compiler (CXX): $CXX - C++ Compiler Flags (CXXFLAGS): $CXXFLAGS - C++ Linker Flags (LDFLAGS): $LDFLAGS - Linker (LD): $LD - C/C++ preprocessor flags (CPPFLAGS): $CPPFLAGS - Installer (INSTALL): $INSTALL - Make (MAKE): $MAKE_ifset - htmldir $htmldir - Installation prefix (prefix): $prefix + ------------------------------------------------------------ + done configuring: $PACKAGE_NAME version $VERSION + ------------------------------------------------------------ + + extra debug code: $debug + extra developer targets: $enable_developer + + C Compiler (CC): $CC + C Compiler Flags (CFLAGS): $CFLAGS + C Linker Flags (LDFLAGS): $LDFLAGS + Installation prefix (prefix): $prefix + srcdir: $srcdir ]) + + +###################################################################### +# LIB_VERSION notes +###################################################################### + +# Updating library version interface information +# (from libtool version 1.4.3 info page) + +# GNU LibTool library interface numbers +# +# CURRENT +# The most recent interface number that this library implements. +# +# REVISION +# The implementation number of the CURRENT interface. +# +# AGE +# The difference between the newest and oldest interfaces that +# this library implements. In other words, the library implements +# all the interface numbers in the range from number `CURRENT - +# AGE' to `CURRENT'. +# + +# +# 1. Start with version information of `0:0:0' for each libtool +# library. +# +# 2. Update the version information only immediately before a public +# release of your software. More frequent updates are +# unnecessary, and only guarantee that the current interface +# number gets larger faster. We do it just after a release. +# +# 3. If the library source code has changed at all since the last +# update, then increment REVISION (`C:R:A' becomes `C:r+1:A'). +# +# 4. If any interfaces have been added, removed, or changed since the +# last update, increment CURRENT, and set REVISION to 0. +# +# 5. If any interfaces have been added since the last public release, +# then increment AGE. +# +# 6. If any interfaces have been removed since the last public +# release, then set AGE to 0. +# diff -Nru quickplot-0.8.15/COPYING quickplot-0.9.11/COPYING --- quickplot-0.8.15/COPYING 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/COPYING 2011-09-23 17:00:12.000000000 +0000 @@ -1,285 +1,626 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - Preamble + Preamble - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of this License. - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it @@ -287,15 +628,15 @@ To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least +state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) - This program is free software; you can redistribute it and/or modify + 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 + the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -304,37 +645,30 @@ 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 - + along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff -Nru quickplot-0.8.15/debian/changelog quickplot-0.9.11/debian/changelog --- quickplot-0.8.15/debian/changelog 2011-12-03 04:16:49.000000000 +0000 +++ quickplot-0.9.11/debian/changelog 2011-12-31 17:38:04.000000000 +0000 @@ -1,21 +1,62 @@ -quickplot (0.8.15-2ubuntu2) precise; urgency=low +quickplot (0.9.11-1) unstable; urgency=low - * No-change rebuild to drop spurious libsfgcc1 dependency on armhf. + * New upstream release. + * debian/control: + + libreadline6-dev was added to the Build-Depends field. + * quickplot.symbols file has been removed and an override has been added. + + -- Muammar El Khatib Sat, 31 Dec 2011 18:03:58 +0100 + +quickplot (0.9.7-4) experimental; urgency=low + + * debian/quickplot.symbols file was updated to avoid FTBFS on armel, armhf, + ia64, mips, mipsel, powerpc, s390, s390x, and sparc. + + -- Muammar El Khatib Fri, 30 Dec 2011 13:13:48 +0100 + +quickplot (0.9.7-3) unstable; urgency=low - -- Adam Conrad Fri, 02 Dec 2011 21:16:49 -0700 + * debian/quickplot.symbols file was updated to not reflect the revision of the + package and thus avoiding fails in the building process. -quickplot (0.8.15-2ubuntu1) oneiric; urgency=low + -- Muammar El Khatib Wed, 28 Dec 2011 11:54:35 +0100 - * Changed Linker Flags from LDFLAGS to LDADD in Makefile.am to fix FTBFS (LP: #770785) +quickplot (0.9.7-2) unstable; urgency=low + + * Adding symbols file. + * debian/control: + + Updated build dependency to debhelper >= 7. + + Build-Depends: libgtkmm-2.4-dev changed to libgtkmm-3.0-dev. + + -- Muammar El Khatib Tue, 27 Dec 2011 16:33:51 +0100 + +quickplot (0.9.7-1) unstable; urgency=low + + * New upstream release. + * The program should compile when ld defaults is set to --as-needed. Thanks to + Felix Geyer for providing a patch. (Closes: #647443) + * dependency_libs field has been cleared in this revision. + * debian/copyright file has been updated for complying with DEP5 format. + * debian/quickplot.doc-base has been updated for containing the changes in + this new upstream release. + * quickplot.postinst has been added for running ldconfig. + + -- Muammar El Khatib Sun, 25 Dec 2011 20:53:21 +0100 + +quickplot (0.8.15-3) unstable; urgency=low + + * Bump Standards-Version to 3.9.2. + * Switch to dpkg-source 3.0 (quilt) format. + * Maintainer's mail has been changed. - -- Florian Brandes Tue, 06 Sep 2011 11:17:07 +0200 + -- Muammar El Khatib Wed, 24 Aug 2011 14:17:30 +0200 quickplot (0.8.15-2) unstable; urgency=low * Bump Standards-Version to 3.8.4. No changes were needed. * ${misc:Depends} has been added to Depends fields in order to fix a lintian - warning because the source package uses debhelper. - * debian/quickplot.doc-base has been added to register documentation files + warning because the source package uses debhelper. + * debian/quickplot.doc-base has been added to register documentation files making use of doc-base. -- Muammar El Khatib Mon, 22 Feb 2010 12:54:50 -0430 diff -Nru quickplot-0.8.15/debian/compat quickplot-0.9.11/debian/compat --- quickplot-0.8.15/debian/compat 2011-09-14 13:16:17.000000000 +0000 +++ quickplot-0.9.11/debian/compat 2011-12-31 17:03:48.000000000 +0000 @@ -1 +1 @@ -5 +7 diff -Nru quickplot-0.8.15/debian/control quickplot-0.9.11/debian/control --- quickplot-0.8.15/debian/control 2011-09-14 13:16:34.000000000 +0000 +++ quickplot-0.9.11/debian/control 2011-12-31 17:17:47.000000000 +0000 @@ -1,9 +1,15 @@ Source: quickplot Section: math Priority: optional -Maintainer: Muammar El Khatib -Build-Depends: debhelper (>> 5), libgtkmm-2.4-dev, libsndfile1-dev, docbook-to-man, dh-autoreconf -Standards-Version: 3.8.4 +Maintainer: Muammar El Khatib +Build-Depends: debhelper (>= 7), + libgtkmm-3.0-dev, + libsndfile1-dev, + docbook-to-man, + dh-autoreconf, + lynx, + libreadline6-dev +Standards-Version: 3.9.2 Homepage: http://quickplot.sourceforge.net/ Package: quickplot diff -Nru quickplot-0.8.15/debian/copyright quickplot-0.9.11/debian/copyright --- quickplot-0.8.15/debian/copyright 2011-09-14 13:16:17.000000000 +0000 +++ quickplot-0.9.11/debian/copyright 2011-12-31 17:03:48.000000000 +0000 @@ -1,32 +1,29 @@ -This package was debianized by Gopal Narayanan gopal@debian.org on -Fri, 2 Jul 1999 20:38:30 -0400. - -It was downloaded from: - http://quickplot.sourceforge.net/ - -Upstream Author: Lance Arsenault - -Copyright: - -* This is GNU CopyLefted (GPL) - -Modifications for Debian are copyright (C) 1998 Johnie Ingram and -Gopal Narayanan 2002-2005, and also released under -the terms of the GPL -- version 2, or any later version. - -Quickplot 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 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 software; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. - -On Debian GNU/Linux systems, the text of the GPL can be found in -/usr/share/common-licenses/GPL. +Format: http://dep.debian.net/deps/dep5/ +Upstream-Name: quickplot +Upstream-Contact: Lance Arsenault +Source: http://quickplot.sourceforge.net/ + +Files: * +Copyright: 2011, Lance Arsenault +License: GPL-3 + +Files: debian/* +Copyright: 2011, Muammar El Khatib +License: GPL-3 + +License: GPL-3 + 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 3 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, see . + . + On Debian GNU/Linux systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-3' diff -Nru quickplot-0.8.15/debian/dirs quickplot-0.9.11/debian/dirs --- quickplot-0.8.15/debian/dirs 2011-09-14 13:16:17.000000000 +0000 +++ quickplot-0.9.11/debian/dirs 2011-12-31 17:36:51.000000000 +0000 @@ -1 +1,2 @@ usr/share/doc/quickplot +usr/share/lintian/overrides diff -Nru quickplot-0.8.15/debian/patches/01_move_libs_to_ldadd.diff quickplot-0.9.11/debian/patches/01_move_libs_to_ldadd.diff --- quickplot-0.8.15/debian/patches/01_move_libs_to_ldadd.diff 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/debian/patches/01_move_libs_to_ldadd.diff 2011-12-31 17:10:38.000000000 +0000 @@ -0,0 +1,30 @@ +Index: quickplot-0.9.11/Makefile.am +=================================================================== +--- quickplot-0.9.11.orig/Makefile.am 2011-12-30 07:13:30.000000000 +0100 ++++ quickplot-0.9.11/Makefile.am 2011-12-31 18:10:22.307238829 +0100 +@@ -218,6 +218,7 @@ + quickplot_SHORTNAME = qp + quickplot_CFLAGS = $(gtk_3_CFLAGS) $(sndfile_CFLAGS) + quickplot_LDADD = libquickplot.la $(gtk_3_LIBS) $(sndfile_LIBS) ++quickplot_LDFLAGS = -Wall + #if USE_READLINE + quickplot_LDADD += $(readline_LIBS) + #endif +@@ -408,7 +409,7 @@ + sha256: $(gzfile).sha256 $(bz2file).sha256 $(xzfile).sha256 + sha512: $(gzfile).sha512 $(bz2file).sha512 $(xzfile).sha512 + +-.gz.gz.md5: ++.gz.gz.md5: + md5sum $< > $@ + .gz.gz.sha1: + sha1sum $< > $@ +@@ -417,7 +418,7 @@ + .gz.gz.sha512: + sha512sum $< > $@ + +-.bz2.bz2.md5: ++.bz2.bz2.md5: + md5sum $< > $@ + .bz2.bz2.sha1: + sha1sum $< > $@ diff -Nru quickplot-0.8.15/debian/patches/fix-linker-flags.patch quickplot-0.9.11/debian/patches/fix-linker-flags.patch --- quickplot-0.8.15/debian/patches/fix-linker-flags.patch 2011-09-14 13:16:34.000000000 +0000 +++ quickplot-0.9.11/debian/patches/fix-linker-flags.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -Description: Changed the linker flags in Makefile.am to LDADD instead of -LDFLAGS in order to put the libraries at the end of the linker command line. - -Bug Ubuntu: https://bugs.launchpad.net/ubuntu/+source/quickplot/+bug/770785 - -Author: Florian Brandes -Last-Update: 2011-09-06 ---- a/Makefile.am -+++ b/Makefile.am -@@ -53,7 +53,7 @@ - quickplot_CXXFLAGS = -Wall $(GTKMM_CXXFLAGS) $(SNDFILE_CFLAGS) -DHTMLDIR=\"$(htmldir)\" - - --quickplot_LDFLAGS = -Wall $(GTKMM_LIBS) $(SNDFILE_LIBS) -+quickplot_LDADD = $(GTKMM_LIBS) $(SNDFILE_LIBS) - # -lefence - - # require automake 1.7 diff -Nru quickplot-0.8.15/debian/patches/series quickplot-0.9.11/debian/patches/series --- quickplot-0.8.15/debian/patches/series 2011-09-14 13:16:34.000000000 +0000 +++ quickplot-0.9.11/debian/patches/series 2011-12-31 17:07:49.000000000 +0000 @@ -1 +1 @@ -fix-linker-flags.patch +01_move_libs_to_ldadd.diff diff -Nru quickplot-0.8.15/debian/quickplot.1 quickplot-0.9.11/debian/quickplot.1 --- quickplot-0.8.15/debian/quickplot.1 2011-09-14 13:16:17.000000000 +0000 +++ quickplot-0.9.11/debian/quickplot.1 2011-12-31 17:03:48.000000000 +0000 @@ -233,4 +233,4 @@ On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. -.\" created by instant / docbook-to-man, Mon 22 Feb 2010, 13:26 +.\" created by instant / docbook-to-man, Tue 27 Dec 2011, 16:49 diff -Nru quickplot-0.8.15/debian/quickplot.doc-base quickplot-0.9.11/debian/quickplot.doc-base --- quickplot-0.8.15/debian/quickplot.doc-base 2011-09-14 13:16:17.000000000 +0000 +++ quickplot-0.9.11/debian/quickplot.doc-base 2011-12-31 17:03:48.000000000 +0000 @@ -1,15 +1,15 @@ Document: quickplot Title: Quickplot Documentation Author: Lance Arsenault -Abstract: Quickplot is a fast interactive 2D plotter with infinite zooming, - value picking, pipe input, and almost unlimited plots displayed. Quickplot is - meant for looking at your data quickly and of secondary importance is making +Abstract: Quickplot is a fast interactive 2D plotter with infinite zooming, + value picking, pipe input, and almost unlimited plots displayed. Quickplot is + meant for looking at your data quickly and of secondary importance is making static pictures of your data. It's a data viewer, not a plot editor. It reads ASCII text and sound files. It has lots of command line options, making it very - shell script friendly. It currently runs on GNU/Linux systems and I hear it - works on Mac OS X Darwin. + shell script friendly. It currently runs on GNU/Linux systems and I hear it + works on Mac OS X Darwin. Section: Graphics Format: HTML -Index: /usr/share/doc/quickplot/html/index.html -Files: /usr/share/doc/quickplot/html/*.html +Index: /usr/share/doc/quickplot/index.html +Files: /usr/share/doc/quickplot/*.html diff -Nru quickplot-0.8.15/debian/quickplot.override quickplot-0.9.11/debian/quickplot.override --- quickplot-0.8.15/debian/quickplot.override 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/debian/quickplot.override 2011-12-31 17:32:36.000000000 +0000 @@ -0,0 +1 @@ +quickplot: no-symbols-control-file usr/lib/libquickplot.so.0.0.0 diff -Nru quickplot-0.8.15/debian/quickplot.postinst quickplot-0.9.11/debian/quickplot.postinst --- quickplot-0.8.15/debian/quickplot.postinst 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/debian/quickplot.postinst 2011-12-31 17:03:48.000000000 +0000 @@ -0,0 +1,8 @@ +#!/bin/sh +#DEBHELPER# + +set -e + +if [ "$1" = "configure" ]; then + ldconfig +fi diff -Nru quickplot-0.8.15/debian/rules quickplot-0.9.11/debian/rules --- quickplot-0.8.15/debian/rules 2011-09-14 13:16:34.000000000 +0000 +++ quickplot-0.9.11/debian/rules 2011-12-31 17:42:54.000000000 +0000 @@ -10,39 +10,51 @@ configure-stamp: dh_testdir dh_autoreconf - ./configure --prefix=/usr + ./configure --prefix=/usr touch configure-stamp -build: build-stamp +build: build-stamp build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. - $(MAKE) + $(MAKE) touch build-stamp clean: dh_testdir dh_testroot - rm -f build-stamp configure-stamp install-stamp + rm -f build-stamp configure-stamp install-stamp debian/substvars # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean + dh_autoreconf_clean + dh_clean install: install-stamp install-stamp: build-stamp dh_testdir dh_testroot - dh_clean -k + dh_prep dh_installdirs # Add here commands to install the package into debian/tmp. $(MAKE) install prefix=$(CURDIR)/debian/quickplot/usr # mv debian/tmp/usr/X11R6/html debian/tmp/usr/share/doc/$(package) - -rm debian/quickplot/usr/share/doc/quickplot/html/COPYING* + + # Cleaning out the dependency_libs field + for file in debian/quickplot/usr/lib/*.la; do \ + sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \ + done + + #rm debian/quickplot/usr/share/doc/quickplot/html/COPYING* + install -D -m 0644 debian/quickplot.override \ + $(CURDIR)/debian/quickplot/usr/share/lintian/overrides/quickplot touch install-stamp # Build architecture-independent files here. @@ -62,13 +74,14 @@ dh_strip dh_compress dh_fixperms + dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb -source diff: +source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch diff -Nru quickplot-0.8.15/debug.h quickplot-0.9.11/debug.h --- quickplot-0.8.15/debug.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/debug.h 2011-12-14 18:31:56.000000000 +0000 @@ -0,0 +1,235 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + + +#ifndef _QP_DEBUG_H_ +#define _QP_DEBUG_H_ + +#include +#include +#include +#include +#include +#include + + +#ifndef PACKAGE_TARNAME +# error "You must include config.h before this file" +#endif + + + +#ifndef QP_DEBUG + + +#define DEBUG(fmt, ...) /* empty macro */ +#define INFO(fmt, ...) /* empty macro */ +#define NOTICE(fmt, ...) /* empty macro */ +#define WARN(fmt, ...) /* empty macro */ +#define ERROR(fmt, ...) /* empty macro */ +#define EDEBUG(fmt, ...) /* empty macro */ +#define EINFO(fmt, ...) /* empty macro */ +#define ENOTICE(fmt, ...) /* empty macro */ +#define EWARN(fmt, ...) /* empty macro */ +#define EERROR(fmt, ...) /* empty macro */ +#define APPEND(fmt, ...) /* empty macro */ +#define ASSERT(x) /* empty macro */ +#define VASSERT(x, ...) /* empty macro */ +#define APPEND_ON() (0) + + +#else /* #ifndef QP_DEBUG */ + + + +/* This adds addition compiler checks for the printf formating. */ +#define __printf(a,b) __attribute__((format(printf,a,b))) + +extern +void _qp_spew(const char *file, int line, const char *func, int level, + int show_errno, const char *format, ...) + __printf(6,7); + +extern +void _qp_spew_append(const char *format, ...) + __printf(1,2); + +extern +void _qp_assert(const char *file, int line, + const char *func, long long bool_arg, + const char *arg, const char *format, ...) + __printf(6,7); + + +#define DEBUG(fmt, ...) \ + _qp_spew(__FILE__, __LINE__, __func__, 0, 0, fmt, ##__VA_ARGS__ ) +#define INFO(fmt, ...) \ + _qp_spew(__FILE__, __LINE__, __func__, 1, 0, fmt, ##__VA_ARGS__ ) +#define NOTICE(fmt, ...) \ + _qp_spew(__FILE__, __LINE__, __func__, 2, 0, fmt, ##__VA_ARGS__ ) +#define WARN(fmt, ...) \ + _qp_spew(__FILE__, __LINE__, __func__, 3, 0, fmt, ##__VA_ARGS__ ) +#define ERROR(fmt, ...) \ + _qp_spew(__FILE__, __LINE__, __func__, 4, 0, fmt, ##__VA_ARGS__ ) + +#define EDEBUG(fmt, ...) \ + _qp_spew(__FILE__, __LINE__, __func__, 0, 1, fmt, ##__VA_ARGS__ ) +#define EINFO(fmt, ...) \ + _qp_spew(__FILE__, __LINE__, __func__, 1, 1, fmt, ##__VA_ARGS__ ) +#define ENOTICE(fmt, ...) \ + _qp_spew(__FILE__, __LINE__, __func__, 2, 1, fmt, ##__VA_ARGS__ ) +#define EWARN(fmt, ...) \ + _qp_spew(__FILE__, __LINE__, __func__, 3, 1, fmt, ##__VA_ARGS__ ) +#define EERROR(fmt, ...) \ + _qp_spew(__FILE__, __LINE__, __func__, 4, 1, fmt, ##__VA_ARGS__ ) + + +#define APPEND(fmt, ...) \ + _qp_spew_append(fmt, ##__VA_ARGS__ ) + + +#define ASSERT(x) _qp_assert(__FILE__, __LINE__, \ + __func__, (long long) (x), #x, " ") +#define VASSERT(x, fmt, ...) \ + _qp_assert(__FILE__, __LINE__, __func__, \ + (long long) (x), #x, fmt, ##__VA_ARGS__) + + + +extern int +_qp_spew_debug_append_is_on(void); + +#define APPEND_ON() _qp_spew_debug_append_is_on() + + + +#endif /* #ifndef QP_DEBUG #else */ + + +#define qp_malloc(x) _qp_malloc((x), __FILE__, __LINE__, __func__) + +/** malloc() wrapper that checks for failure */ +static inline +void *_qp_malloc(size_t s, const char *file, int line, + const char *func) +{ + void *p; + errno = 0; + p = malloc(s); +#ifdef QP_DEBUG + _qp_assert(file, line, func, (long long) p, "malloc()", + " malloc(%zu) failed\n", s); +#endif + if(!s) /* for non-debug build case failure */ + { + char errstr[128]; + strerror_r(errno, errstr, 128); + printf("%s:%d:%s() malloc(%zu) failed: errno=%d: %s\n", + file, line, func, s, errno, errstr); + exit(1); + } + return p; +} + +#define qp_realloc(x,s) _qp_realloc((x),(s), __FILE__, __LINE__, __func__) + +/** realloc() wrapper that checks for failure */ +static inline +void *_qp_realloc(void *x, size_t s, const char *file, int line, + const char *func) +{ + void *p; + errno = 0; + p = realloc(x,s); +#ifdef QP_DEBUG + _qp_assert(file, line, func, (long long) p, "realloc()", + " realloc(%p,%zu) failed\n", x, s); +#endif + if(!s) /* for non-debug build case failure */ + { + char errstr[128]; + strerror_r(errno, errstr, 128); + printf("%s:%d:%s() realloc(%p,%zu) failed: errno=%d: %s\n", + file, line, func, x, s, errno, errstr); + exit(1); + } + return p; +} + +#define qp_strdup(x) _qp_strdup((x), __FILE__, __LINE__, __func__) + +/** strdup() wrapper that checks for failure */ +static inline +char *_qp_strdup(const char *s, const char *file, int line, + const char *func) +{ + char *p; + errno = 0; + p = strdup(s); +#ifdef QP_DEBUG + _qp_assert(file, line, func, (long long) p, "strdup()", + " strdup(\"%s\") failed\n", s); +#endif + if(!s) /* for non-debug build case failure */ + { + char errstr[128]; + strerror_r(errno, errstr, 128); + printf("%s:%d:%s() strdup(\"%s\") failed: errno=%d: %s\n", + file, line, func, s, errno, errstr); + exit(1); + } + return p; +} + +#define qp_strndup(x, n) _qp_strndup((x), (n), __FILE__, __LINE__, __func__) + +/** strndup() wrapper that checks for failure */ +static inline +char *_qp_strndup(const char *s, size_t n, const char *file, int line, + const char *func) +{ + char *p; + errno = 0; + p = strndup(s, n); +#ifdef QP_DEBUG + _qp_assert(file, line, func, (long long) p, "strndup()", + " strndup(\"%s\", %zu) failed\n", s, n); +#endif + if(!s) /* for non-debug build case failure */ + { + char errstr[128]; + strerror_r(errno, errstr, 128); + printf("%s:%d:%s() strndup(\"%s\", %zu) failed: errno=%d: %s\n", + file, line, func, s, n, errno, errstr); + exit(1); + } + return p; +} + + + +#else /* #ifndef _QP_DEBUG_H_ */ + +#error "You included this file twice." + +#endif /* #ifndef _QP_DEBUG_H_ */ diff -Nru quickplot-0.8.15/debug_spew.c quickplot-0.9.11/debug_spew.c --- quickplot-0.8.15/debug_spew.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/debug_spew.c 2011-12-22 17:22:16.000000000 +0000 @@ -0,0 +1,385 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +/* This file will not be used if --enable-debug was not set + * as a ./configure option. + */ + +#include +#include +#include +#include +#include + +#include "config.h" +#include "debug.h" +#include "term_color.h" +#include "list.h" + +#ifndef QP_DEBUG +# error This file should not be complied with QP_DEBUG not defined +#endif + + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + +static int spew_level = -1; +static FILE *spew_file = NULL; +static int last_spewed = 0; /* bool */ + + +struct flag +{ + char *file; + int level; + int line; +}; + +/* list of spew levels for a given source code file */ +static struct qp_sllist *file_spew_list = NULL; + + +static char *color[] = +{ + "\033[1;032m", /* DEBUG 0 */ + "\033[1;036m", /* INFO 1 */ + "\033[1;035m", /* NOTICE 2 */ + "\033[1;033m", /* WARN 3 */ + "\033[1;031m" /* ERROR 4 */ +}; + +static const char * const prefix[] = +{ + "QP_DEBUG", /* 0 */ + "QP_INFO", /* 1 */ + "QP_NOTICE", /* 2 */ + "QP_WARNING",/* 3 */ + "QP_ERROR" /* 4 */ +}; + + +static void _qp_spew_init(void) +{ + char *env; + + spew_file = stdout; /* default value */ + spew_level = 2; /* default value */ + + env = getenv("SPEW_FILE"); + if(!env) + env = getenv("QP_SPEW_FILE"); + + if(env && env[0]) + { + if(strncasecmp(env, "none", 4) == 0 || + env[0] == '\0') + { + spew_level = 5; /* OFF */ + spew_file = NULL; + } + else if(strncasecmp(env, "stdout", 4) == 0 || + strncasecmp(env, "out", 1) == 0 || + env[0] == '1') + ; + else if(strncasecmp(env, "stderr", 4) == 0 || + strncasecmp(env, "err", 1) == 0 || + env[0] == '2') + spew_file = stderr; + else + { + spew_file = fopen(env, "a"); + if(!spew_file) + spew_file = stdout; + } + } + + + env = getenv("SPEW_LEVEL"); + if(!env) + env = getenv("QP_SPEW_LEVEL"); + + if(spew_level == 5 /* if NO SPEW */) + env = NULL; + + if(env && env[0]) + { + if(strncasecmp(env, "off", 2) == 0 || + strcasecmp(env, "no") == 0 || + env[0] == '5' || env[0] == '6' || + env[0] == '7' || env[0] == '8' || + env[0] == '9') + spew_level = 5; /* NO SPEW */ + else if( strncasecmp(env, "error", 1) == 0 || + env[0] == '4') + spew_level = 4; /* ERROR */ + else if(strncasecmp(env, "on", 1) == 0 || + strncasecmp(env, "info", 1) == 0 || + strncasecmp(env, "yes", 1) == 0 || + env[0] == '1') + spew_level = 1; /* INFO */ + else if(strncasecmp(env, "notice", 3) == 0 || + env[0] == '2') + spew_level = 2; /* NOTICE */ + else if(strncasecmp(env, "debug", 1) == 0 || + env[0] == '0') + spew_level = 0; /* DEBUG */ + else if(strncasecmp(env, "warn", 1) == 0 || + env[0] == '3') + spew_level = 3; /* WARN */ + } + + if(!qp_term_color_init()) + { + int i; + for(i=0; i<5; ++i) + color[i] = nul; + } + + + env = getenv("SPEW_FILES"); + if(!env) + env = getenv("QP_SPEW_FILES"); + + if(env && env[0]) + { + file_spew_list = qp_sllist_create(NULL); + + /* form: QP_SPEW_FILES="file:[level:[line:]]file:..." + * Since levels are just 0,1,2,3,4 the valid line numbers + * will always be larger. + * QP_SPEW_FILES="file1.c:321:2:file2.h:file3.c:450:1" + * Extra colons (:) are ignored. */ + + while(*env == ':') + ++env; + + while(*env) + { + struct flag *f; + char *p; + int i; + int got_line = 0; + int got_level = 0; + + p = env+1; + f = (struct flag *) qp_malloc(sizeof(*f)); + f->level = spew_level; + f->line = 0; + while(*p && *p != ':') + ++p; + f->file = strndup(env, (size_t) (p - env)); + VASSERT(f->file, "strndup() failed\n"); + + qp_sllist_append(file_spew_list, f); + + if(*p) + ++p; + while(*p == ':') + ++p; + + for(i=0; *p && i<2; ++i) + { + int j; + char *endptr = NULL; + + j = strtol(p, &endptr, 10); + //DEBUG("strtol(\"%s\",)=%d endptr=\"%s\"\n", p, j, endptr); + + if(endptr[0] != '\0' && + endptr[0] != ':') + /* it did not read to the next ':' or '\0' */ + break; + + if(j > 5) + { + f->line = j; + got_line = 1; + } + else + { + f->level = (j>0)?j:0; + got_level = 1; + } + + ++p; + while(*p && *p != ':') + ++p; + while(*p == ':') + ++p; + } + + if(got_line && !got_level) + f->level = 0; + + env = p; + } + + if(!qp_sllist_begin(file_spew_list)) + { + WARN("Got %s set with no files listed\n", env); + qp_sllist_destroy(file_spew_list, 0); + file_spew_list = NULL; + } + +#if 1 + if(qp_sllist_begin(file_spew_list)) + { + struct flag *f; + DEBUG("Got the following per file spew list with %zu entries\n" + " file line level\n", + qp_sllist_length(file_spew_list)); + f = qp_sllist_begin(file_spew_list); + for(;f; f = qp_sllist_next(file_spew_list)) + APPEND(" %d\r" + " %d\r" + "%s\n", + f->level, f->line, f->file); + } + else + DEBUG("Got %s set with no files listed\n", env); +#endif + + } +} + +/* returns: -1 spew off level from QP_SPEW_FILE was > 4 + * 0 spew set from globel spew level + * 1 spew on + */ +static inline int +got_per_file_spew(const char *file, int level, int line) +{ + struct flag *f; + int ret = 0; + if(!file_spew_list) return 0; + + for(f = (struct flag *) qp_sllist_begin(file_spew_list); + f ; f = (struct flag *) qp_sllist_next(file_spew_list)) + if(strcmp(f->file, file) == 0) + { + /* Files may be listed more than once + * so we let the last entry in the list + * have the last word unless we get + * file and line */ + if(line == f->line) + { + if(level >= f->level) + return 1; + else + return -1; + } + + if(f->line == 0) + { + if(level >= f->level) + ret = 1; + else + ret = -1; + } + } + return ret; +} + +void _qp_spew(const char *file, int line, const char *func, + int level, int show_errno, const char *format, ...) +{ + int env_spew_set; + if(spew_level == -1) + _qp_spew_init(); + + if(level > 4) + level = 4; + else if(level < 0) + level = 0; + + env_spew_set = got_per_file_spew(file, level, line); + + if((level >= spew_level && env_spew_set != -1) || + env_spew_set == 1) + { + last_spewed = 1; + + if(!show_errno) + fprintf(spew_file, "%s%s%s:%s%s:%d%s:%s%s()%s: ", + color[level], prefix[level], trm, + bblu, file, line, trm, btur, func, trm); + else + { + char errstr[128]; + /* thread safe strerror() */ + strerror_r(errno, errstr, 128); + fprintf(spew_file, "%s%s%s:%s%s:%d%s:%s%s()%s:errno=%d:\"%s\": ", + color[level], prefix[level], trm, + bblu, file, line, trm, btur, func, trm, errno, errstr); + } + + va_list ap; + va_start(ap, format); + vfprintf(spew_file, format, ap); + fflush(spew_file); + va_end(ap); + } + else + last_spewed = 0; +} + +int _qp_spew_debug_append_is_on(void) +{ + return last_spewed; +} + +void _qp_spew_append(const char *format, ...) +{ + if(last_spewed) + { + va_list ap; + va_start(ap, format); + vfprintf(spew_file, format, ap); + fflush(spew_file); + va_end(ap); + } +} + +void _qp_assert(const char *file, int line, + const char *func, long long bool_arg, + const char *arg, const char *format, ...) +{ + if(!bool_arg) + { + va_list ap; + + _qp_spew(file, line, func, 4 /* ERROR */, 1, + "%sASSERTION(%s%s%s%s%s) FAILED%s: pid: %d\n", + btur, trm, yel, arg, trm, btur, trm, getpid()); + va_start(ap, format); + vfprintf(spew_file, format, ap); + va_end(ap); + _qp_spew_append("\nsignal to exit, quickplot sleeping here ..."); + + while(1) + sleep(10); + } +} + diff -Nru quickplot-0.8.15/depcomp quickplot-0.9.11/depcomp --- quickplot-0.8.15/depcomp 2008-05-03 02:38:24.000000000 +0000 +++ quickplot-0.9.11/depcomp 2011-12-30 06:16:55.000000000 +0000 @@ -1,10 +1,10 @@ #! /bin/sh # depcomp - compile a program generating dependencies as side-effects -scriptversion=2007-03-29.01 +scriptversion=2009-04-28.21; # UTC -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software -# Foundation, Inc. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 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 @@ -17,9 +17,7 @@ # 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. +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -87,6 +85,15 @@ depmode=dashmstdout fi +cygpath_u="cygpath -u -f -" +if test "$depmode" = msvcmsys; then + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u="sed s,\\\\\\\\,/,g" + depmode=msvisualcpp +fi + case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what @@ -192,14 +199,14 @@ ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' -' ' ' >> $depfile - echo >> $depfile +' ' ' >> "$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 + >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile @@ -328,7 +335,12 @@ 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" + sed -ne '2,${ + s/^ *// + s/ \\*$// + s/$/:/ + p + }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi @@ -404,7 +416,7 @@ # Remove the call to Libtool. if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do + while test "X$1" != 'X--mode=compile'; do shift done shift @@ -455,32 +467,39 @@ "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do + while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift - cleared=no - for arg in "$@"; do + cleared=no eat=no + for arg + do case $cleared in no) set ""; shift cleared=yes ;; esac + if test $eat = yes; then + eat=no + continue + fi 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. + -arch) + eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done - obj_suffix="`echo $object | sed 's/^.*\././'`" + obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" @@ -500,7 +519,7 @@ # Remove the call to Libtool. if test "$libtool" = yes; then - while test $1 != '--mode=compile'; do + while test "X$1" != 'X--mode=compile'; do shift done shift @@ -538,13 +557,27 @@ 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. + # always write the preprocessed file to stdout. "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + IFS=" " for arg do case "$arg" in + -o) + shift + ;; + $object) + shift + ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift @@ -557,16 +590,23 @@ ;; esac done - "$@" -E | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" + "$@" -E 2>/dev/null | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; +msvcmsys) + # 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 + ;; + none) exec "$@" ;; @@ -585,5 +625,6 @@ # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru quickplot-0.8.15/errorStr.cpp quickplot-0.9.11/errorStr.cpp --- quickplot-0.8.15/errorStr.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/errorStr.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,9 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -#include -#include "errorStr.h" - -// Initialize the quickplot error string to a zero length string. -char errorStr[ERRORSTR_LENGTH] = ""; -int error = 0; diff -Nru quickplot-0.8.15/errorStr.h quickplot-0.9.11/errorStr.h --- quickplot-0.8.15/errorStr.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/errorStr.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -#define ERRORSTR_LENGTH ((size_t) 256) -extern char errorStr[ERRORSTR_LENGTH]; - -extern int error; diff -Nru quickplot-0.8.15/exec_lib.c quickplot-0.9.11/exec_lib.c --- quickplot-0.8.15/exec_lib.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/exec_lib.c 2011-12-30 05:08:38.000000000 +0000 @@ -0,0 +1,113 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#include +#include +#include + +#include +#include +#include "config.h" + +#ifdef HAVE_LIBREADLINE +# if defined(HAVE_READLINE_READLINE_H) +# include +# elif defined(HAVE_READLINE_H) +# include +# else /* !defined(HAVE_READLINE_H) */ +# undef HAVE_LIBREADLINE +# endif +#endif + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +/* This is the stuff that will tell the compiler to make this library + * one that can be executed. */ +#ifdef __i386__ +# define LIBDIR "/lib/" +#endif + +#ifdef __x86_64__ +# define LIBDIR "/lib64/" +#endif + + +#ifndef LIBDIR +# error "The compiler did not define __i386__ or __x86_64__" +#endif + +const char my_interp[] __attribute__((section(".interp"))) = LIBDIR LD_SO; + + + +/* Here's what to execute when this library is executed. */ +void qp_exec_lib(void) +{ + char *sndfile_version; + sndfile_version = (char *) sf_version_string(); + while(*sndfile_version && (*sndfile_version < '0' || *sndfile_version > '9')) + ++sndfile_version; + + printf(" =============================================\n" + " " PACKAGE_NAME " version: " VERSION "\n" + " =============================================\n" + "\n" + " Compiled ("__FILE__") on date: "__DATE__ "\n" + " at: "__TIME__ "\n" + "\n" + " libquickplot version: " LIB_VERSION "\n" + "\n" + " Was built with\n" + " GTK+ version: %d.%d.%d\n" + " libsndfile version: %s\n" +#ifdef HAVE_LIBREADLINE + " libreadline version: %d.%d\n" +#endif + " ------------------------------------------------\n" +#ifdef QP_DEBUG + " QP_DEBUG was defined in this build.\n" +#else + " QP_DEBUG was NOT defined in this build.\n" +#endif + " ------------------------------------------------\n" + "\n" + " The Quickplot homepage is:\n" + " "PACKAGE_URL "\n" + "\n" + " Copyright (C) 1998-2011 - Lance Arsenault\n" + " This is free software licensed under the GNU GPL (v3).\n", + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION, + sndfile_version +#ifdef HAVE_LIBREADLINE + , RL_VERSION_MAJOR, RL_VERSION_MINOR +#endif + ); + + /* This needs to call exit and not return 0 since this is not main() + * and main is not called. */ + exit(0); +} + diff -Nru quickplot-0.8.15/Field.cpp quickplot-0.9.11/Field.cpp --- quickplot-0.8.15/Field.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/Field.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,139 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include - - -using namespace Gtk; -#include "value_t.h" -#include "Field.h" -#include "FieldReader.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" -#include "Source.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Globel.h" - -static int fieldCount = 0; - -Field::Field(Source *s): - source(s) -{ - _max = -MAXVALUE; - _min = MAXVALUE; - _numberOfValues = 0; - _isIncreasing = true; - _isDecreasing = true; - name = NULL; - label = NULL; - fieldReader = NULL; - - { - char s[32]; - sprintf(s, "field %d", fieldCount++); - setName(s); - } - - // add this to the list of Fields in the source. - source->push_back(this); -} - -void Field::setName(const char *name_in) -{ - if(name_in && name_in[0]) - { - if(name) - free(name); - - name = strdup(name_in); - - if(!label) - label = strdup(name_in); - } -} - -void Field::setLabel(const char *label_in) -{ - if(label_in && label_in[0]) - { - if(label) - free(label); - - label = strdup(label_in); - } -} - -Field::~Field(void) -{ - if(name) - free(name); - - if(label) - free(label); - - source->remove(this); -} - - -// Find the minimum values in the range of indexes indexing starts at -// 0. Over-write this method if you've got a faster way in your -// Field. -value_t Field::max(count_t i_max, count_t i_min) -{ - rewind(); - count_t i; - if(i_max == ((count_t) -1)) - i_max = _numberOfValues - 1; - value_t x, Max = -MAXVALUE; - if(i_min > 0) - for(i=0;i Max) - Max = x; - rewind(); - return Max; -} - -// Find the minimum values in the range of indexes indexing starts at -// 0. Over-write this method if you've got a faster way in your Field. -value_t Field::min(count_t i_max, count_t i_min) -{ - rewind(); - count_t i; - if(i_max == ((count_t) -1)) - i_max = _numberOfValues - 1; - value_t x, Min = MAXVALUE; - if(i_min > 0) - for(i=0;i -#include -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#ifdef USE_LIBSNDFILE -# include -#endif - -using namespace Gtk; -#include "value_t.h" -#include "Field.h" -#include "FieldReader.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Globel.h" - -FieldReader::FieldReader(Field *f) : - Field(f->source) -{ - field = f; - next = NULL; - - // add this object to the list of FieldReaders in the object field. - if(field->fieldReader) - { - FieldReader *f = field->fieldReader; - while(f->next) f = f->next; - // f is the last in the list. - f->next = this; - } - else // this is the first in the list - field->fieldReader = this; - - dequeuer = field->makeDequeuer(field->numberOfValues()); -} - -FieldReader::~FieldReader(void) -{ - // Remove this from the Field::fieldReader list. - FieldReader *prev=NULL, *f=field->fieldReader; - while(f) - { - if(this == f) - { - if(prev) - prev->next = next; - else // this == field->fieldReader - field->fieldReader = next; - break; - } - - prev = f; - f = f->next; - } - - field->destroyDequeuer(dequeuer); -} - -void *FieldReader::makeDequeuer(count_t NumberOfValues) -{ - return field->makeDequeuer(NumberOfValues); -} - -void FieldReader::destroyDequeuer(void *dequeuer) -{ - field->destroyDequeuer(dequeuer); -} diff -Nru quickplot-0.8.15/FieldReader.h quickplot-0.9.11/FieldReader.h --- quickplot-0.8.15/FieldReader.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/FieldReader.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,94 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -// The class FileReader is a Field that can read() another Field (the -// source Field) without effecting the reading by the methods, -// read(void), and rewind(void) of the source Field object that it is -// reading with. The FileReader makes it so that you can have more -// than one object read the data in a Field. This saves having to -// have more than one copy of the data in memory. An example when -// this is needed is when your wish to read two fields which are -// derived from the same series of numbers. The two Fields can share -// the data if one (or both) of them is a FieldReader. This is some -// kind of clone of the source Field, without the memory for the data -// in the Field. This saves memory. We do this stuff because there -// are many different kinds of fields which store and retrieve the -// series (Field) data in many ways. - -class Field; - -class FieldReader : public Field -{ -public: - - FieldReader(Field *f); - ~FieldReader(void); - - - // read the list and advance the pointer to the next value in the - // series. - virtual inline value_t read(void) - { - return field->read(dequeuer); - } - - // move the pointer to the first value in the series. - virtual inline void rewind(void) - { - field->rewind(dequeuer); - } - - virtual inline count_t numberOfValues(void) { return field->numberOfValues(); } - - // append the value to the end of the list. - // virtual write(T value); - - - // Find the minimum values in the range of indexes. Indexing starts - // at 0. i_max=-1 means upto the numberOfValues. - virtual inline value_t max(count_t i_max=((count_t) -1), count_t i_min=0) - { - return field->max(i_max, i_min); - } - - // find the minimum values in the range of indexes. Indexing starts - // at 0. i_max=-1 means upto the numberOfValues. - virtual inline value_t min(count_t i_max=((count_t) -1), count_t i_min=0) - { - return field->min(i_max, i_min); - } - - - // Is monotonically increasing, like time. - virtual inline bool isIncreasing(void) { return field->isIncreasing(); } - virtual inline bool isDecreasing(void) { return field->isDecreasing(); } - - virtual void *makeDequeuer(count_t NumberOfValues); - virtual void destroyDequeuer(void *dequeuer); - - // The FieldReader object can use this to read. - virtual inline value_t read(void *dequeuer) - { - return field->read(dequeuer); - } - - // The FieldReader object can use this to rewind. - virtual inline void rewind(void *dequeuer) - { - field->rewind(dequeuer); - } - - -private: - - friend class Field; - - // next is used in a linked list of FieldReaders is kept in the - // source Field object in Field::fieldReader. - FieldReader *next; - - void *dequeuer; - - // The data source for this Field. - Field *field; -}; diff -Nru quickplot-0.8.15/File.cpp quickplot-0.9.11/File.cpp --- quickplot-0.8.15/File.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/File.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,141 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include -#include -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#include - -#include - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Globel.h" - -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "errorStr.h" - -#ifdef MINGW /* MinGW on windoz */ -# define DIR_CHAR '\\' -#else -# define DIR_CHAR '/' -#endif - -File::File(const char *filename) -{ - FileList fileList; - fileList.setFileName(filename); - init(&fileList); -} - -File::File(const FileList *fileList) -{ - init(fileList); -} - - -void File::init(const FileList *fileList) -{ - isValid=false; - char *filename = fileList->getFileName(); - - bool isStdin = (filename)? false: true; - - - // Check for errors in filename. - if(filename && !filename[0]) - { - // zero length file name. - sprintf(errorStr,"File name \"%s\" is invalid.", filename); - return; // failed. - } - - if(filename) - { - size_t len=strlen(filename); - // Check for errors in filename again. - if(filename[len-1] == DIR_CHAR) - { - // The filename end with a DIR_CHAR (/). - snprintf(errorStr, ERRORSTR_LENGTH, - "Invalid file name \"%s\".", filename); - return; // failed. - } - } - - // Set the fileName - if(filename) // It's not stdin. - fileName = strdup(filename); - else // It's stdin. - fileName = strdup(STDIN_FILENAME); - - { - size_t len=strlen(fileName); - size_t i; - for(i=len-1; i>0 && fileName[i] != DIR_CHAR; i--); - if(i>0) i++; - baseFileName = strdup(&fileName[i]); - } - - error = 0; - -#ifdef USE_LIBSNDFILE - - // readSndFile() or readASCIIFile() may set error. - if(!isStdin && readSndFile(fileList)) - isValid = !error; - else - -#endif // #ifdef USE_LIBSNDFILE - - if(readASCIIFile(isStdin ? stdin : 0, fileList)) - isValid = !error; - else - isValid = false; - - - if(isValid) - { - // signal that the files that are loaded changed. - m_signal_addedSource.emit(this); - // Add a File->"Close fileName" to the MainMenu. Base class - // Source::~Source() will remove it automatically. - addCloseMenus(); - } -} - - -//File::~File(void) -//{ -// Source::~Source() will remove all the fields. -//} diff -Nru quickplot-0.8.15/File.h quickplot-0.9.11/File.h --- quickplot-0.8.15/File.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/File.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,47 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -// For amd64. Why in here I don't know. -#ifdef USE_LIBSNDFILE -#include -#endif - -class Source; -class FileReader; -class FileList; - -class File : public Source -{ - -public: - - // if filename=NULL then use stdin - File(const FileList *fileList); - File(const char *filename); - - -private: - - void init(const FileList *fileList); - -#ifdef USE_LIBSNDFILE - - // This will not work with stdin. - bool readSndFile(const FileList *fileList, int fd=-1); - - void readSndShort (::SNDFILE *sf, int samplerate, - count_t numberOfValues, int channels); - void readSndInt (::SNDFILE *sf, int samplerate, - count_t numberOfValues, int channels); - void readSndFloat (::SNDFILE *sf, int samplerate, - count_t numberOfValues, int channels); - void readSndDouble (::SNDFILE *sf, int samplerate, - count_t numberOfValues, int channels); - -#endif // #ifdef USE_LIBSNDFILE - - - // This will work with stdin. - bool readASCIIFile(FILE *file, const FileList *fileList); - - int getValue(FileReader *file, value_t *val); -}; diff -Nru quickplot-0.8.15/FileList.cpp quickplot-0.9.11/FileList.cpp --- quickplot-0.8.15/FileList.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/FileList.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,77 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include - -#include - -#include "value_t.h" -#include "Globel.h" -#include "FileList.h" - - -FileList *FileList::first = NULL; - -FileList::FileList(char *filename) -{ - if(filename) - fileName = strdup(filename); - else - fileName = NULL; - - skipLines = 0; - readLabels = 0; - labelSeparator = LABEL_SEPARATOR; - hasLinearField = false; - linearFieldStep = (value_t) 1.0; - linearFieldStart = (value_t) 0.0; - takeLog = false; - - next = NULL; - - if(first) - { - FileList *l = first; - while(l->next) - l = l->next; - l->next = this; - } - else - first = this; -} - -void FileList::setFileName(const char *filename) -{ - if(fileName) - free(fileName); - - if(filename) - fileName = strdup(filename); - else - fileName = NULL; -} - -FileList::~FileList(void) -{ - if(fileName) - { - free(fileName); - fileName = NULL; - } - FileList *l = first, *prev = NULL; - for(;l;l = l->next) - { - if(this == l) - break; - prev = l; - } - if(l) // this == l - { - if(prev) - prev->next = next; - else // this == first - first = next; - } -} diff -Nru quickplot-0.8.15/FileList.h quickplot-0.9.11/FileList.h --- quickplot-0.8.15/FileList.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/FileList.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,38 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -// This is just to keep a list of filenames and there associated -// options. This is just used in App_parseArgs.cpp. - - - -class FileList -{ - public: - - FileList(char *filename=NULL); - ~FileList(void); - - void setFileName(const char *filename); - inline char *getFileName(void) const - { - return fileName; - } - - // ASCII file options, ignored for other file types. - count_t skipLines; - bool readLabels; - char labelSeparator; - - bool hasLinearField; - value_t linearFieldStep, linearFieldStart; - bool takeLog; - - FileList *next; - static FileList *first; - - private: - - char *fileName; - -}; diff -Nru quickplot-0.8.15/File_readASCIIFile.cpp quickplot-0.9.11/File_readASCIIFile.cpp --- quickplot-0.8.15/File_readASCIIFile.cpp 2009-03-08 20:17:37.000000000 +0000 +++ quickplot-0.9.11/File_readASCIIFile.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,488 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#include -#include -#include - - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Globel.h" -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "Field.h" -#include "ListField.h" -#include "LinearField.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "errorStr.h" -#include "FileReader.h" - - -#define IS_SEPARATOR_CHAR(x) (!(((x)>='0'&&(x)<='9')||(x)=='\n'||(x)== '.'|| \ - (x)==','|| \ - (x)=='-'||(x)=='+'||(x)=='e'||(x)=='E'||(x)<01)) - -#define IS_COMMENT_CHAR(x) (x=='#') - -// The maximum number of chars that can be in a number when it is read -// in in a ASCII file. -#define NUM_STR_SIZE ((size_t) 128) - -// return values from File::getValue() -#define READERROR 001 -#define ENDOFFILE 002 -#define ENDOFLINE 004 -#define GOTVALUE 010 - -#define LINE_END ('\n') - -// lastNum is used in File::getValue(FileReader *file, value_t *val) -static char lastNum = '\0'; - -static count_t numberOfLines=0; - - -// This will get a value as a value_t. -int File::getValue(FileReader *file, value_t *val) -{ - int i= file->readChar(); - - while( IS_COMMENT_CHAR((char) i) ) - { - while( ((char) i) != LINE_END && i!=EOF ) { - i = file->readChar(); - } - if( i!=EOF ) - i = file->readChar(); - } - - if(!lastNum) - while((IS_SEPARATOR_CHAR((char) i) || ((char) i) == LINE_END) && i!=EOF) - { - i = file->readChar(); - if(((char) i) == LINE_END) - numberOfLines++; - } - - size_t j = 0; - char buf[NUM_STR_SIZE+1]; - // Put this last char that was read in the last time this was - // called. - if(lastNum) - { - buf[j++] = lastNum; - lastNum = '\0'; - } - while(!IS_SEPARATOR_CHAR((char) i) && ((char) i)!=LINE_END && - i!=EOF && jreadChar(); - } - if(error) - return READERROR; - else if(j==NUM_STR_SIZE) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad data in file '" << fileName - << "' on line number " << numberOfLines+1 << std::endl; - error = 1; - return READERROR; - } - if(j==0 && i==EOF) - return ENDOFFILE; - - buf[j] = '\0'; - - //opSpew << std::endl << __LINE__ << " file=" << __FILE__ - // << " buf=" << buf - // <readChar(); - } - if(i!=EOF) - lastNum = i; - } - - if(i == EOF) - returnVal |= ENDOFFILE; - - errno = 0; - char *ptr = buf; - *val = STRINGTOVALUE(buf, &ptr); - if(ptr==buf || errno) - { - if(!opSilent) - opSpew << "quickplot ERROR: bad data in file '" << fileName - << "' on line number " << numberOfLines+1 << std::endl; - error = 1; - lastNum = '\0'; - return READERROR; - } - - return returnVal; -} - - -bool File::readASCIIFile(FILE *file_in, const FileList *fileList) -{ - FileReader file(fileName, file_in); - if(error) - { - return false; - } - - numberOfLines=0; - lastNum = '\0'; - - int i=0; - // Skip fileList->skipLines lines in the file. - for(;i!=EOF && numberOfLines < fileList->skipLines; numberOfLines++) - for(i=file.readChar(); i!=EOF && LINE_END != (char) i;) - i = file.readChar(); - - // Skip labels from the file for now. - if(i!=EOF && fileList->readLabels) - for(i=0;LINE_END != (char) i && i!=EOF;) - i = file.readChar(); - - if(i==EOF) - { - if(!opSilent) - opSpew << "quickplot ERROR: reading file '" << fileName - << "': file is too short." << std::endl; - error = 1; - return false; - } - - // Count the number of Fields. - value_t val; - // Reset File::getValue(FileReader *file, value_t *val) - lastNum = '\0'; - - int numberOfFields = 0; - - for(i=0;!(i&ENDOFFILE) && !(i&READERROR) && !(i&ENDOFLINE);numberOfFields++) - i = getValue(&file, &val); - - if(numberOfFields < 1) - { - if(fileList->skipLines < 1) - { - if(!opSilent) - opSpew << "quickplot ERROR: reading file '" << fileName - << "': contains no fields." << std::endl; - - } - else - { - if(!opSilent) - opSpew << "quickplot ERROR reading file '" << fileName - << "': read no fields after skipping the first " - << fileList->skipLines << " lines." << std::endl; - } - error = 1; - return false; - } -#if 0 // Including this block will disable the possibility of loading - // fields with one value. - else if(i&ENDOFFILE) - { - if(!opSilent) - opSpew << "quickplot ERROR: reading file '" << fileName - << "': file is too short, and can " - << "only load one value per field." << std::endl; - error = 1; - return false; - } -#endif - else if(i&READERROR) - return false; // error - - - // add all the new fields for the data to read into. - ListField *firstField = new ListField(this); - { - ListField *f = firstField; - for(i=0;inext = new ListField(this); - f = f->next; - } - f->next = NULL; - } - - file.rewind(); - file.freeRewind(); - numberOfLines=0; - - // Skip fileList->skipLines lines in the file. - //printf("skipping %d\n",fileList->skipLines); - for(i=0;i!=EOF && numberOfLines < fileList->skipLines; numberOfLines++) - { - //printf("%d\n",numberOfLines); - for(i=file.readChar(); i!=EOF && LINE_END!=(char) i;) - i = file.readChar(); - } - - // Read labels from the file. - if(i!=EOF && fileList->readLabels) - { - int fieldCount=0; - i = 0; - - ListField *field = firstField; - - while(LINE_END != ((char) i) &&i!=EOF && field) - { - i = file.readChar(); - while(fileList->labelSeparator == (char) i) - i = file.readChar(); - -#define NAME_LENGTH 32 - char label[NAME_LENGTH+1]; - int j=0; - if(i!=EOF && LINE_END != (char) i) - label[j++] = i; - while(i!=EOF && - LINE_END != (char) i && - fileList->labelSeparator != (char) i && - jlabelSeparator != (char) i) - i = file.readChar(); - - if(j>0) - field->setLabel(label); - - field = field->next; - - if(!field) break; - fieldCount++; - } - numberOfLines++; - - // If there were not enough labels in the line make some. - for(;field;field = field->next) - { - char s[NAME_LENGTH]; - snprintf(s,NAME_LENGTH,"%s", baseFileName); - field->setLabel(s); - snprintf(s,NAME_LENGTH,"%d", fieldCount++); - field->setName(s); - } - - // Read to the end of the line. - while(i!=EOF && - LINE_END != (char) i) - i = file.readChar(); - } - else - { - // make some default field labels. - ListField *field = firstField; - int fieldCount=0; - for(;field;field = field->next) - { - char s[NAME_LENGTH]; -#if 0 - if(fileList->takeLog) - snprintf(s,NAME_LENGTH,"Log[%s]", baseFileName); - else -#endif - snprintf(s,NAME_LENGTH,"%s", baseFileName); - field->setLabel(s); - - - snprintf(s,NAME_LENGTH,"%d", fieldCount++); - field->setName(s); - } - } - - - if(i==EOF) - { - if(!opSilent) - opSpew << "quickplot ERROR: reading file '" << fileName - << "': file is too short." << std::endl; - error = 1; - return false; - } - - // Reset File::getValue(FileReader *file, value_t *val) - lastNum = '\0'; - i = 0; - - // read data into the fields - while(!(i&ENDOFFILE) && !(i&READERROR)) - { - ListField *field = firstField; - int j=0; - for(;jtakeLog) - { - if(val <= (value_t) 0.0) - { - if(!opSilent) - opSpew << "quickplot ERROR: reading file '" << fileName - << "': near line number " << numberOfLines+1 - << ": can't compute the log of value=" - << val << std::endl; - error = 1; - setType(ASCII_FILE); - return true; - } - field->write(LOG10(val)); - } - else -#endif - field->write(val); - field = field->next; - } - i = getValue(&file, &val); - if(!(i&GOTVALUE && (i&ENDOFFILE || i&ENDOFLINE))) - { - if(!opSilent) - opSpew << "quickplot ERROR: reading file '" << fileName - << "': near line number " << numberOfLines+1 - << std::endl; - error = 1; - setType(ASCII_FILE); - return true; - } -#if 0 - if(fileList->takeLog) - { - if(val <= (value_t) 0.0) - { - if(!opSilent) - opSpew << "quickplot ERROR: reading file '" << fileName - << "': near line number " << numberOfLines+1 - << ": can't compute the log of value=" - << val << std::endl; - error = 1; - setType(ASCII_FILE); - return true; - } - field->write(LOG10(val)); - } - else -#endif - field->write(val); - } - - if(i&READERROR) - { - error = 1; - setType(ASCII_FILE); - return true; - } - - if((*begin())->numberOfValues() < 1) - { - if(fileList->skipLines < 1) - { - - if(!opSilent) - opSpew << "quickplot ERROR: reading file '" << fileName - << "': read no fields." << std::endl; - } - else - { - if(!opSilent) - opSpew << "quickplot ERROR: reading file '" << fileName - << "': read no fields after skipping the first " - << fileList->skipLines << "lines." << std::endl; - } - error = 1; - setType(ASCII_FILE); - return true; - } - - // For adding a Linear sequence field if requested or needed. We - // need to add it before we create the other fields so that it is - // the first in the list of fields in this File object. We add this - // Linear sequence field so that the File object has two Fields at - // least. - bool hasLinearField = fileList->hasLinearField; - - if(hasLinearField || numberOfFields == 1) - { - LinearField *lf = - new LinearField(this, fileList->linearFieldStep, fileList->linearFieldStart); - // make it first in the list - remove(lf); - push_front(lf); - numberOfFields++; - hasLinearField = true; - } - - if(opVerbose) - { - // C++ streams suck! It's twice the code of C streams and it runs - // slower. - opSpew << "Read ASCII file " << fileName << std::endl - << "created: " - << ((hasLinearField)? " 1 linear field and ":"") - << numberOfFields-((hasLinearField)?1:0)<< " ListFields with " - << firstField->numberOfValues() << " values in each." << std::endl; - } - - setType(ASCII_FILE); - return true; // success -} - diff -Nru quickplot-0.8.15/FileReader.cpp quickplot-0.9.11/FileReader.cpp --- quickplot-0.8.15/FileReader.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/FileReader.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,129 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include -#include -#include -#include -#include - -#include - -#include "value_t.h" -#include "FileReader.h" -#include "errorStr.h" -#include "Globel.h" - -FileReader::FileReader(const char *filename_in, FILE *file_in) -{ - isFree = 0; - openedFile = 0; - file = NULL; - buffer = NULL; - bufferSize = 0; - in = 0; - out = 0; - error = 0; - // user end of file - endOfFile = 0; - // if end of file is set - _endOfFile = 0; - - if(!file_in) - { - file = fopen(filename_in, "r"); - if(!file) - { - snprintf(errorStr, ERRORSTR_LENGTH, - "quickplot ERROR: Failed to open file '%s' for reading: " - "system error number %d: %s.", - filename_in, errno, strerror(errno)); - if(!opSilent) - opSpew << errorStr << std::endl; - error = 1; - endOfFile = 1; - return; - } - openedFile = 1; - } - else - file = file_in; - -} - -FileReader::~FileReader(void) -{ - if(buffer) - { - free(buffer); - buffer = NULL; - bufferSize = 0; - } - if(file && openedFile) - { - fclose(file); - file = NULL; - openedFile = 0; - } -} - - -void FileReader::rewind(void) -{ - out = 0; - endOfFile = 0; -} - -void FileReader::freeRewind(void) -{ - isFree = 1; -} - -int FileReader::readChar(void) -{ - if(isFree && in == out) - { - if(_endOfFile) return EOF; - - // no longer buffered. - int i = fgetc(file); - if(i == EOF) - _endOfFile = endOfFile = 1; - //printf("%c", (char) i); - return i; - } - // enough data in the buffer. - else if(in > out) - { - //printf("%c", (char) buffer[out]); - return ((int) buffer[out++]); - } - else if(_endOfFile) - { - return EOF; - } - else // If need more data in the buffer. - { - // is the buffer big enough - if(in + 1 > bufferSize) - buffer = (unsigned char *) - realloc(buffer, sizeof(unsigned char)*(bufferSize += CHUNK)); - - int i = fgetc(file); - - if(i == EOF) - { - _endOfFile = endOfFile = 1; - return EOF; - } - else - { - buffer[in++] = ((unsigned char) i); - out = in; - //printf("%c", (char) buffer[in-1]); - return i; - } - } -} diff -Nru quickplot-0.8.15/FileReader.h quickplot-0.9.11/FileReader.h --- quickplot-0.8.15/FileReader.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/FileReader.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,43 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - - -// This is a fgetc() wrapper that lets me have an effectively have -// rewind() for the standard input file, stdin. - - -#define CHUNK ((size_t) 64) - - - -class FileReader -{ - public: - - FileReader(const char *filename, FILE *file=NULL); - ~FileReader(void); - - int readChar(void); // like fgetc() - - - void rewind(void); // like rewind(). - - // stops saving the data read, so you may not call - // FileReader::rewind() after this. - void freeRewind(void); - - int endOfFile; - - private: - - FILE *file; - unsigned char *buffer; - size_t bufferSize; - - size_t in; // in from file - size_t out; // out to user of this class - int isFree; - int openedFile; - int _endOfFile; -}; - diff -Nru quickplot-0.8.15/File_readSndDouble.cpp quickplot-0.9.11/File_readSndDouble.cpp --- quickplot-0.8.15/File_readSndDouble.cpp 2009-03-09 01:19:10.000000000 +0000 +++ quickplot-0.9.11/File_readSndDouble.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,155 +0,0 @@ -// File_readSndDouble.cpp Generated from make and File_readSndShort.cpp -#define TYPE_DOUBLE -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#ifdef USE_LIBSNDFILE - -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#include -#include - -#include - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" -#include "Globel.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "errorStr.h" -#include "ArrayField.h" -#include "LinearField.h" - - -#ifdef TYPE_INT -# define TYPE int -# define readSndTYPE readSndInt -# define readFunc sf_readf_int -#endif - -#ifdef TYPE_FLOAT -# define TYPE float -# define readSndTYPE readSndFloat -# define readFunc sf_readf_float -#endif - -#ifdef TYPE_DOUBLE -# define TYPE double -# define readSndTYPE readSndDouble -# define readFunc sf_readf_double -#endif - -// The default case is TYPE short -#if (!defined TYPE_INT &&\ - !defined TYPE_FLOAT &&\ - !defined TYPE_DOUBLE) -# define TYPE short -# define readSndTYPE readSndShort -# define readFunc sf_readf_short -#endif - - -// C++ Templates will not make methods with templates without making -// the whole class a template. I did not want to make the class File a -// template, that would be lots more work than this. So I generate -// the code from this file for the following 4 methods: - -// by default File::readSndShort() -// by defining TYPE_INT File::readSndInt() -// by defining TYPE_FLOAT File::readSndFloat() -// by defining TYPE_DOUBLE File::readSndDouble() - - -void File:: -readSndTYPE(::SNDFILE *sndfile, int samplerate, - count_t numberOfValues, int channels) -{ - ArrayField **field = - static_cast **> - (malloc(sizeof(ArrayField *)*channels)); - TYPE *data = static_cast(malloc(sizeof(TYPE)*channels)); - - int i; - count_t j=0; - error = 0; - // get the fields - for(i=0;i(this, numberOfValues); - if(error) - { - int k; - for(k=0;k<=i;k++) - delete field[k]; - goto cleanup; - } - } - - { - // add a linear field and add fields to the list - Field *lField = new LinearField(this, 1.0/((value_t) samplerate)); - // Make this LinearField first in the list. - remove(lField); - push_front(lField); - lField->setName("seconds"); - lField->setLabel("time"); - } - - for(i=0;isetName(str); - field[i]->setLabel("channel"); - } - - // read the data and put it in the field - for(;jwrite(data[i]); - } - - cleanup: - - free(data); - free(field); -} - -#endif // #ifdef USE_LIBSNDFILE diff -Nru quickplot-0.8.15/File_readSndFile.cpp quickplot-0.9.11/File_readSndFile.cpp --- quickplot-0.8.15/File_readSndFile.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/File_readSndFile.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,155 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#ifdef USE_LIBSNDFILE - -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#include -#include - -#include - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Field.h" -#include "LinearField.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" -#include "Globel.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "errorStr.h" -#include "ArrayField.h" - - -/* This opens and reads in a sound file using libsndfile. - */ -bool File::readSndFile(const FileList *fileList, int fd) -{ - using std::endl; - SF_INFO info; - ::SNDFILE * sndfile = NULL; - - if(fd == -1) - sndfile = sf_open(getFileName(), SFM_READ, &info); - else - sndfile = sf_open_fd(fd, SFM_READ, &info, 1 /* close fd */); - - if(!sndfile || info.frames < (sf_count_t) 1) - { - if(opVerbose) - opSpew << "quickplot INFO: Can't read file " << fileName << endl - << "with libsndfile as a sound file." << endl; - return false; // not a sound file. - } - - if(opVerbose) - { - // C++ streams suck! It's twice the code of C streams and it runs - // slower. - opSpew << "quickplot Reading sound file " << fileName << endl - << "----------------------------------" << endl - << "frames = " << info.frames << endl - << "samplerate = " << info.samplerate << endl - << "channels = " << info.channels << endl - << "format = 0x" << std::setw(8) << - std::setfill('0') << std::hex << info.format << - std::setw(0) << std::dec << endl - << "seekable = " << info.sections << endl - << "fmt_check = " << sf_format_check(&info) << endl; - } - - - int soundSubType = SF_FORMAT_SUBMASK & info.format; - bool returnVal = true; - - // handle all libsndfile Subtypes - switch (soundSubType) - { - case SF_FORMAT_PCM_S8: - case SF_FORMAT_PCM_16: - case SF_FORMAT_PCM_U8: - case SF_FORMAT_DWVW_12: - case SF_FORMAT_DWVW_16: - readSndShort(sndfile, info.samplerate, - static_cast(info.frames), - info.channels); - break; - - case SF_FORMAT_PCM_24: - case SF_FORMAT_PCM_32: - case SF_FORMAT_ULAW: - case SF_FORMAT_ALAW: - case SF_FORMAT_IMA_ADPCM: - case SF_FORMAT_MS_ADPCM: - case SF_FORMAT_GSM610: - case SF_FORMAT_VOX_ADPCM: - case SF_FORMAT_G721_32: - case SF_FORMAT_G723_24: - case SF_FORMAT_G723_40: - case SF_FORMAT_DWVW_24: - case SF_FORMAT_DWVW_N: - readSndInt(sndfile, info.samplerate, - static_cast(info.frames), - info.channels); - break; - - case SF_FORMAT_FLOAT: - readSndFloat(sndfile, info.samplerate, - static_cast(info.frames), - info.channels); - break; - - case SF_FORMAT_DOUBLE: - readSndDouble(sndfile, info.samplerate, - static_cast(info.frames), - info.channels); - break; - } - - - sf_close(sndfile); - setType(Source::SNDFILE); - - - if(!error && fileList->hasLinearField) - { - // For adding a Linear sequence field if requested. We need to - // add it before we create the other fields so that it is the - // first in the list of fields in this File object. - LinearField *lf = - new LinearField(this, fileList->linearFieldStep, fileList->linearFieldStart); - // make it first in the list - remove(lf); - push_front(lf); - } - - return returnVal; -} - -#endif // #ifdef USE_LIBSNDFILE diff -Nru quickplot-0.8.15/File_readSndFloat.cpp quickplot-0.9.11/File_readSndFloat.cpp --- quickplot-0.8.15/File_readSndFloat.cpp 2009-03-09 01:19:10.000000000 +0000 +++ quickplot-0.9.11/File_readSndFloat.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,155 +0,0 @@ -// File_readSndFloat.cpp Generated from make and File_readSndShort.cpp -#define TYPE_FLOAT -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#ifdef USE_LIBSNDFILE - -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#include -#include - -#include - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" -#include "Globel.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "errorStr.h" -#include "ArrayField.h" -#include "LinearField.h" - - -#ifdef TYPE_INT -# define TYPE int -# define readSndTYPE readSndInt -# define readFunc sf_readf_int -#endif - -#ifdef TYPE_FLOAT -# define TYPE float -# define readSndTYPE readSndFloat -# define readFunc sf_readf_float -#endif - -#ifdef TYPE_DOUBLE -# define TYPE double -# define readSndTYPE readSndDouble -# define readFunc sf_readf_double -#endif - -// The default case is TYPE short -#if (!defined TYPE_INT &&\ - !defined TYPE_FLOAT &&\ - !defined TYPE_DOUBLE) -# define TYPE short -# define readSndTYPE readSndShort -# define readFunc sf_readf_short -#endif - - -// C++ Templates will not make methods with templates without making -// the whole class a template. I did not want to make the class File a -// template, that would be lots more work than this. So I generate -// the code from this file for the following 4 methods: - -// by default File::readSndShort() -// by defining TYPE_INT File::readSndInt() -// by defining TYPE_FLOAT File::readSndFloat() -// by defining TYPE_DOUBLE File::readSndDouble() - - -void File:: -readSndTYPE(::SNDFILE *sndfile, int samplerate, - count_t numberOfValues, int channels) -{ - ArrayField **field = - static_cast **> - (malloc(sizeof(ArrayField *)*channels)); - TYPE *data = static_cast(malloc(sizeof(TYPE)*channels)); - - int i; - count_t j=0; - error = 0; - // get the fields - for(i=0;i(this, numberOfValues); - if(error) - { - int k; - for(k=0;k<=i;k++) - delete field[k]; - goto cleanup; - } - } - - { - // add a linear field and add fields to the list - Field *lField = new LinearField(this, 1.0/((value_t) samplerate)); - // Make this LinearField first in the list. - remove(lField); - push_front(lField); - lField->setName("seconds"); - lField->setLabel("time"); - } - - for(i=0;isetName(str); - field[i]->setLabel("channel"); - } - - // read the data and put it in the field - for(;jwrite(data[i]); - } - - cleanup: - - free(data); - free(field); -} - -#endif // #ifdef USE_LIBSNDFILE diff -Nru quickplot-0.8.15/File_readSndInt.cpp quickplot-0.9.11/File_readSndInt.cpp --- quickplot-0.8.15/File_readSndInt.cpp 2009-03-09 01:19:10.000000000 +0000 +++ quickplot-0.9.11/File_readSndInt.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,155 +0,0 @@ -// File_readSndInt.cpp Generated from make and File_readSndShort.cpp -#define TYPE_INT -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#ifdef USE_LIBSNDFILE - -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#include -#include - -#include - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" -#include "Globel.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "errorStr.h" -#include "ArrayField.h" -#include "LinearField.h" - - -#ifdef TYPE_INT -# define TYPE int -# define readSndTYPE readSndInt -# define readFunc sf_readf_int -#endif - -#ifdef TYPE_FLOAT -# define TYPE float -# define readSndTYPE readSndFloat -# define readFunc sf_readf_float -#endif - -#ifdef TYPE_DOUBLE -# define TYPE double -# define readSndTYPE readSndDouble -# define readFunc sf_readf_double -#endif - -// The default case is TYPE short -#if (!defined TYPE_INT &&\ - !defined TYPE_FLOAT &&\ - !defined TYPE_DOUBLE) -# define TYPE short -# define readSndTYPE readSndShort -# define readFunc sf_readf_short -#endif - - -// C++ Templates will not make methods with templates without making -// the whole class a template. I did not want to make the class File a -// template, that would be lots more work than this. So I generate -// the code from this file for the following 4 methods: - -// by default File::readSndShort() -// by defining TYPE_INT File::readSndInt() -// by defining TYPE_FLOAT File::readSndFloat() -// by defining TYPE_DOUBLE File::readSndDouble() - - -void File:: -readSndTYPE(::SNDFILE *sndfile, int samplerate, - count_t numberOfValues, int channels) -{ - ArrayField **field = - static_cast **> - (malloc(sizeof(ArrayField *)*channels)); - TYPE *data = static_cast(malloc(sizeof(TYPE)*channels)); - - int i; - count_t j=0; - error = 0; - // get the fields - for(i=0;i(this, numberOfValues); - if(error) - { - int k; - for(k=0;k<=i;k++) - delete field[k]; - goto cleanup; - } - } - - { - // add a linear field and add fields to the list - Field *lField = new LinearField(this, 1.0/((value_t) samplerate)); - // Make this LinearField first in the list. - remove(lField); - push_front(lField); - lField->setName("seconds"); - lField->setLabel("time"); - } - - for(i=0;isetName(str); - field[i]->setLabel("channel"); - } - - // read the data and put it in the field - for(;jwrite(data[i]); - } - - cleanup: - - free(data); - free(field); -} - -#endif // #ifdef USE_LIBSNDFILE diff -Nru quickplot-0.8.15/File_readSndShort.cpp quickplot-0.9.11/File_readSndShort.cpp --- quickplot-0.8.15/File_readSndShort.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/File_readSndShort.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,153 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#ifdef USE_LIBSNDFILE - -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#include -#include - -#include - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" -#include "Globel.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "errorStr.h" -#include "ArrayField.h" -#include "LinearField.h" - - -#ifdef TYPE_INT -# define TYPE int -# define readSndTYPE readSndInt -# define readFunc sf_readf_int -#endif - -#ifdef TYPE_FLOAT -# define TYPE float -# define readSndTYPE readSndFloat -# define readFunc sf_readf_float -#endif - -#ifdef TYPE_DOUBLE -# define TYPE double -# define readSndTYPE readSndDouble -# define readFunc sf_readf_double -#endif - -// The default case is TYPE short -#if (!defined TYPE_INT &&\ - !defined TYPE_FLOAT &&\ - !defined TYPE_DOUBLE) -# define TYPE short -# define readSndTYPE readSndShort -# define readFunc sf_readf_short -#endif - - -// C++ Templates will not make methods with templates without making -// the whole class a template. I did not want to make the class File a -// template, that would be lots more work than this. So I generate -// the code from this file for the following 4 methods: - -// by default File::readSndShort() -// by defining TYPE_INT File::readSndInt() -// by defining TYPE_FLOAT File::readSndFloat() -// by defining TYPE_DOUBLE File::readSndDouble() - - -void File:: -readSndTYPE(::SNDFILE *sndfile, int samplerate, - count_t numberOfValues, int channels) -{ - ArrayField **field = - static_cast **> - (malloc(sizeof(ArrayField *)*channels)); - TYPE *data = static_cast(malloc(sizeof(TYPE)*channels)); - - int i; - count_t j=0; - error = 0; - // get the fields - for(i=0;i(this, numberOfValues); - if(error) - { - int k; - for(k=0;k<=i;k++) - delete field[k]; - goto cleanup; - } - } - - { - // add a linear field and add fields to the list - Field *lField = new LinearField(this, 1.0/((value_t) samplerate)); - // Make this LinearField first in the list. - remove(lField); - push_front(lField); - lField->setName("seconds"); - lField->setLabel("time"); - } - - for(i=0;isetName(str); - field[i]->setLabel("channel"); - } - - // read the data and put it in the field - for(;jwrite(data[i]); - } - - cleanup: - - free(data); - free(field); -} - -#endif // #ifdef USE_LIBSNDFILE diff -Nru quickplot-0.8.15/footer.htm.in quickplot-0.9.11/footer.htm.in --- quickplot-0.8.15/footer.htm.in 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/footer.htm.in 2011-12-16 22:37:43.000000000 +0000 @@ -0,0 +1,97 @@ + + +
+
+ + + + + + + + + + + + + + +
+ + + + @Top@ | + @About@ | + @Help@ + + + + Quickplot Version @VERSION@ + +
+ diff -Nru quickplot-0.8.15/get_opt.c quickplot-0.9.11/get_opt.c --- quickplot-0.8.15/get_opt.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/get_opt.c 2011-12-14 18:36:32.000000000 +0000 @@ -0,0 +1,75 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ +#include + +#include "get_opt.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +char *get_opt(const char * const shorT, + const char * const lonG, + int argc, char **argv, int *i) +{ + // check for form long=VALUE + size_t len = 0; + if(*i < argc) + { + char *str = (char *) argv[*i]; + for(;*str && *str != '=';str++); + if(*str == '=') + { + len = (size_t) str - (size_t) argv[*i]; + str++; + } + if(len && !strncmp(argv[*i],lonG,len) + && *str != '\0') + { + (*i)++; + return str; + } + } + + + // check for -a VALUE or --long VALUE + if(((*i + 1) < argc) && + (!strcmp(argv[*i],lonG) || + (shorT && shorT[0] && !strcmp(argv[*i],shorT)))) + { + (*i)++; + return (char *) argv[(*i)++]; + } + + if(!shorT || !shorT[0]) return 0; + // check for -aVALUE + len=strlen(shorT); + if( (*i < argc) && !strncmp(argv[*i],shorT,len) + && argv[*i][len] != '\0') + return (char *) &(argv[(*i)++][len]); + + return 0; +} + + diff -Nru quickplot-0.8.15/getOpt.cpp quickplot-0.9.11/getOpt.cpp --- quickplot-0.8.15/getOpt.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/getOpt.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,46 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -#include - -// Get an option argument at index *i; -// if found index the counter *i to the next string. - -char *getOpt(const char *shorT, const char *lonG, - int argc, const char **argv, int *i) -{ - // check for form long=VALUE - size_t len = 0; - if(*i < argc) - { - char *str = (char *) argv[*i]; - for(;*str && *str != '=';str++); - if(*str == '=') - { - len = (size_t) str - (size_t) argv[*i]; - str++; - } - if(len && !strncmp(argv[*i],lonG,len) - && *str != '\0') - { - (*i)++; - return str; - } - } - - // check for -a VALUE or --long VALUE - if(((*i + 1) < argc) && - (!strcmp(argv[*i],lonG) || !strcmp(argv[*i],shorT))) - { - (*i)++; - return (char *) argv[(*i)++]; - } - - // check for -aVALUE - len=strlen(shorT); - if( (*i < argc) && !strncmp(argv[*i],shorT,len) && argv[*i][len] != '\0') - return (char *) &(argv[(*i)++][len]); - - - return (char *) NULL; -} diff -Nru quickplot-0.8.15/get_opt.h quickplot-0.9.11/get_opt.h --- quickplot-0.8.15/get_opt.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/get_opt.h 2011-11-02 17:50:42.000000000 +0000 @@ -0,0 +1,27 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +extern char *get_opt(const char * const shorT, + const char * const lonG, + int argc, char **argv, int *i); + diff -Nru quickplot-0.8.15/Globel.cpp quickplot-0.9.11/Globel.cpp --- quickplot-0.8.15/Globel.cpp 2009-03-08 21:22:58.000000000 +0000 +++ quickplot-0.9.11/Globel.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,86 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#include -#include -#include - -#include "value_t.h" -#include "Globel.h" - - -bool opVerbose = false; // more spew then default -bool opSilent = false; // no spew, even on error -std::ostream &opSpew = std::cout; - - - -// tipical values are mouse button 1, 2, or 3. -guint opPickButton = 1; -guint opMidButton = 2; -guint opZoomButton = 3; - - -// just at startup -bool opShowMenuBar = true; -bool opShowButtons = true; -bool opShowGraphConfig = false; -bool opShowGraphTabs = true; -bool opShowStatusBar = true; - - -// start up and when loading a file from GUI -bool opNoDefaultPlots = false; -int opMaxNumDefaultPlots = 12; // plots per Graph - -// main window geometry -char *opGeometry = NULL; - - -// class Graph default properties. Since there can be more then one -// Graph (Tab) and each Graph can change their properties, these are -// just startup defaults. - -bool opSameScale = false; // strictly the scales are the same on - // all graph plots. opSameScale - // over-rides opAutoScale. - -bool opAutoSameScale = true; // The scales are the same if it works - // well. -bool opShowAutoGrid = true; -int opGridLineWidth = 3; -int opGridXLineSpace = 290; -int opGridYLineSpace = 170; -//int opGridXLineSpace = 390; -//int opGridYLineSpace = 270; - - - -// class Plot default properties. Since there can be more then one Plot and -// each Plot can change their properties, these are just startup -// defaults. - -bool opShowLines = true; -bool opShowPoints = true; - -// How these defaults are interpeted depends on the point and line type. -int opPointSize = 5; // pixels. A diameter like measure. -int opLineWidth = 3; // pixels. A diameter (width) like measure. - -// This is set to show that the user has used a command line option to -// set opShowLines, opShowPoints, opPointSize or opLineWidth from the -// command line. -bool opUserSetLineOrPointOption = false; - - -// default LogField option -value_t opLogBase = (value_t) 10; diff -Nru quickplot-0.8.15/Globel.h quickplot-0.9.11/Globel.h --- quickplot-0.8.15/Globel.h 2009-03-08 21:22:58.000000000 +0000 +++ quickplot-0.9.11/Globel.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,87 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - - -// Globel option flags effect can be changed after start up. - -#define LABEL_SEPARATOR_STR " " -#define LABEL_SEPARATOR LABEL_SEPARATOR_STR[0] - -// In sizes in pixels -#define MAX_GRID_LINE_WIDTH 40 -#define MAX_PLOT_LINE_WIDTH 40 -#define MAXMAX_PLOT_LINE_WIDTH 200 -#define MAX_POINT_SIZE 40 -#define MAXMAX_POINT_SIZE 200 - -#define MAX_GRIDXLINESPACE 1500 -#define MIN_GRIDXLINESPACE 1 -#define MAX_GRIDYLINESPACE 1500 -#define MIN_GRIDYLINESPACE 1 - - - -// Are todays C++ compilers smart enough to put many (32 or 64) bool -// types in one unsigned integer? - - -extern bool opVerbose; // more spew then default -extern bool opSilent; // no spew, even on error -extern std::ostream &opSpew; - -extern guint opPickButton; -extern guint opZoomButton; -extern guint opMidButton; - - - - - -// at startup -extern bool opShowMenuBar; -extern bool opShowButtons; -extern bool opShowGraphConfig; -extern bool opShowGraphTabs; -extern bool opShowStatusBar; - -// start up and when loading a file from GUI -extern bool opNoDefaultPlots; -extern int opMaxNumDefaultPlots; // plots per Graph - - - -// main window geometry -extern char *opGeometry; - - -// class Graph default properties. Since there can be more then one -// Graph (Tab) and each Graph can change their properties, these are -// just startup defaults. - -extern bool opSameScale; -extern bool opAutoSameScale; -extern bool opShowAutoGrid; -extern int opGridLineWidth; -extern int opGridXLineSpace; -extern int opGridYLineSpace; - - -// class Plot default properties. Since there can be more then one -// Plot and each Plot can change their properties, these are just -// startup defaults. - -extern bool opShowLines; -extern bool opShowPoints; - -// How these defaults are interpeted depends on the point and line type. -extern int opPointSize; // pixels. A diameter like measure. -extern int opLineWidth; // pixels. A diameter (width) like measure. - -// This is set to show that the user has used a command line option to -// set opShowLines, opShowPoints, opPointSize or opLineWidth from the -// command line. -extern bool opUserSetLineOrPointOption; - - -// default LogField option -extern value_t opLogBase; diff -Nru quickplot-0.8.15/graph.c quickplot-0.9.11/graph.c --- quickplot-0.8.15/graph.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/graph.c 2011-12-20 13:29:54.000000000 +0000 @@ -0,0 +1,562 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#include +#include + +#include "quickplot.h" + +#include "config.h" +#include "debug.h" +#include "list.h" +#include "channel.h" +#include "channel_double.h" +#include "callbacks.h" +#include "qp.h" +#include "plot.h" +#include "zoom.h" +#include "color_gen.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +static +size_t graph_create_count = 0; + + +/* drawing area minimal size restriction are + * required so that the graph drawing algorithms do not fail. */ +const gint EDGE_BUF_MIN = 10; + + + +/* returns a molloc() allocated string + * Return a unique name for the qp */ +static inline +char *unique_name(struct qp_win *qp, const char *name) +{ + char buf[32]; + char *test_name = NULL; + size_t len = 0; + int i = 1; + + ++graph_create_count; + + if(!name || !name[0]) + { + snprintf(buf, 32, "graph %zu", graph_create_count); + name = buf; + } + + test_name = (char*) (name= qp_strdup(name)); + + while(1) + { + struct qp_graph *gr; + /* We compare with the name of all graphs + * in the qp main window. */ + for(gr=qp_sllist_begin(qp->graphs); gr; + gr=qp_sllist_next(qp->graphs)) + if(strcmp(test_name, gr->name) == 0) + break; + + if(gr) + { + if(test_name == name) + test_name = (char*) qp_malloc(len = (strlen(name)+16)); + snprintf(test_name, len, "%s[%d]", name, ++i); + } + else + { + if(test_name != name) + free((char*) name); + return test_name; + } + } +} + +void add_graph_close_button(struct qp_graph *gr) +{ + GtkWidget *close_button, *image; + ASSERT(gr->close_button == NULL); + + gr->close_button = (close_button = gtk_button_new()); + gtk_widget_set_size_request(close_button, 5, 5); + + image = + gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU); + gtk_button_set_image(GTK_BUTTON(close_button), image); + gtk_button_set_relief(GTK_BUTTON(close_button), GTK_RELIEF_NONE); + gtk_widget_show(image); + + gtk_box_pack_start(GTK_BOX(gr->tab_label_hbox), close_button, + FALSE, FALSE, 0); + g_signal_connect(G_OBJECT(close_button), "clicked", + G_CALLBACK(cb_close_tab), gr); + + gtk_widget_set_name(close_button, "tab_close_button"); + gtk_widget_set_tooltip_text(close_button,"Close tab"); + gtk_widget_show(close_button); +} + +/* the gr is assumed to be a gr that was just created and + * has not been drawn yet. */ +void qp_graph_copy(struct qp_graph *gr, struct qp_graph *old_gr) +{ + struct qp_plot *p; + ASSERT(gr->name); + free(gr->name); + gr->name = qp_strdup(old_gr->name); + gtk_label_set_text(GTK_LABEL(gr->tab_label), gr->name); + + if(!old_gr->x11 && gr->x11) + { + free(gr->x11); + gr->x11 = NULL; + } + else if(old_gr->x11 && !gr->x11) + { + gr->x11 = qp_malloc(sizeof(*(gr->x11))); + gr->x11->gc = 0; + gr->x11->pixmap = 0; + gr->x11->dsp = 0; + gr->x11->background = 0; + gr->x11->background_set = 0; + } + + for(p=qp_sllist_begin(old_gr->plots);p;p=qp_sllist_next(old_gr->plots)) + qp_plot_copy_create(gr, p); + + memcpy(gr->color_gen, old_gr->color_gen, sizeof(*(gr->color_gen))); + memcpy(&gr->background_color, &old_gr->background_color, sizeof(gr->background_color)); + memcpy(&gr->grid_line_color, &old_gr->grid_line_color, sizeof(gr->grid_line_color)); + memcpy(&gr->grid_text_color, &old_gr->grid_text_color, sizeof(gr->grid_text_color)); + + gr->same_x_limits = old_gr->same_x_limits; + gr->same_y_limits = old_gr->same_y_limits; + gr->show_grid = old_gr->show_grid; + gr->grid_numbers = old_gr->grid_numbers; + gr->grid_line_width = old_gr->grid_line_width; + gr->grid_on_top = old_gr->grid_on_top; + + gr->grid_x_space = old_gr->grid_x_space; + gr->grid_y_space = old_gr->grid_y_space; + + + gr->grab_x = old_gr->grab_x; + gr->grab_y = old_gr->grab_y; + gr->pixbuf_x = old_gr->pixbuf_x; + gr->pixbuf_y = old_gr->pixbuf_y; + gr->value_mode = old_gr->value_mode; + qp_zoom_copy(gr->z, old_gr->z); + gr->zoom_level = old_gr->zoom_level; + gr->value_pick_x = old_gr->value_pick_x; + gr->value_pick_y = old_gr->value_pick_y; + + if(old_gr->grid_font) + { + if(gr->grid_font) + free(gr->grid_font); + gr->grid_font = qp_strdup(old_gr->grid_font); + } + + /* TODO: copy pangolayout?? May save memory by adding another + * reference to it. Also copying the pangolayout maybe + * better incase the old_gr->grid_font is not a valid font. */ + + /* does not copy the X11 shape mode */ +} + +qp_graph_t qp_graph_create(qp_win_t qp, const char *name) +{ + struct qp_graph *gr; + ASSERT(qp); + ASSERT(qp->graphs); + ASSERT(qp->window); + /* graphs do not exist unless they are + * in a qp_win with a gtk window. */ + if(!qp || !qp->window) + return NULL; + + gr = (struct qp_graph *) qp_malloc(sizeof(*gr)); + gr->name = unique_name(qp, name); + gr->color_gen = qp_color_gen_create(); + gr->zoom_level = 0; + gr->plots = qp_sllist_create(NULL); + qp_sllist_append(qp->graphs, gr); + gr->qp = qp; + gr->pangolayout = NULL; + gr->grid_font = qp_strdup(app->op_grid_font); + + gr->drawing_area = NULL; + gr->close_button = NULL; + gr->pixbuf_surface = NULL; + + + gr->same_x_scale = 1; + gr->same_y_scale = 1; + gr->same_x_limits = 1; + gr->same_y_limits = 1; + gr->value_mode = (2<<2) | 1; + gr->draw_value_pick = 0; + + /* the first configure event will fix the struct qp_graph + * xscale, yscale, xshift, and yshift. We initialize + * xscale to 0 so we can tell it is not initialized. */ + gr->xscale = 0; + gr->yscale = 0; + + /* This is the initial zoom in normalized units */ + /* qp_zoom_create(xscale, xshift, yscale, yshift) */ + gr->z = qp_zoom_create(0.95,0.025,0.92,0.04); + + memcpy(&gr->background_color, &app->op_background_color, + sizeof(gr->background_color)); + memcpy(&gr->grid_line_color, &app->op_grid_line_color, + sizeof(gr->grid_line_color)); + memcpy(&gr->grid_text_color, &app->op_grid_text_color, + sizeof(gr->grid_text_color)); + + gr->bg_alpha_preshape = gr->background_color.a; + + if(gr->qp->shape) + { + /* must be like in cb_view_shape() in callbacks.c */ + if(gr->background_color.a >= 0.5) + gr->background_color.a = 0.4; + } + + gr->show_grid = app->op_grid; + gr->grid_numbers = app->op_grid_numbers; + gr->grid_x_space = app->op_grid_x_space; + gr->grid_y_space = app->op_grid_y_space; + gr->grid_line_width = app->op_grid_line_width; + gr->grid_on_top = app->op_grid_on_top; + gr->grab_x = 0; + gr->grab_y = 0; + + if(qp->x11_draw) + { + gr->x11 = qp_malloc(sizeof(*(gr->x11))); + gr->x11->gc = 0; + gr->x11->pixmap = 0; + gr->x11->dsp = 0; + gr->x11->background = 0; + gr->x11->background_set = 0; + } + else + gr->x11 = NULL; + + gr->pixbuf_width = 0; + gr->pixbuf_height = 0; + gr->draw_zoom_box = 0; + gr->draw_value_pick = 0; + + /* cairo/pango set antialiasing by default + * we need this flag for when we unset + * antialiasing in X11 shape drawing mode. */ + gr->font_antialias_set = 1; /* boolean */ + + ASSERT(app->root_window_width > 10); + + gr->drawing_area = gtk_drawing_area_new(); + gtk_widget_set_app_paintable(gr->drawing_area, TRUE); + + + g_object_set_data(G_OBJECT(gr->drawing_area), "qp_graph", gr); + + gtk_widget_set_events(gr->drawing_area, + gtk_widget_get_events(gr->drawing_area) | + GDK_EXPOSURE_MASK | + GDK_SCROLL_MASK | + GDK_LEAVE_NOTIFY_MASK | + GDK_BUTTON_PRESS_MASK | + GDK_BUTTON_RELEASE_MASK | + GDK_POINTER_MOTION_MASK); + + /* We will do our own version of double buffering. + * Not that it is better than GTK, but we add an additional + * user interaction at the same time we copy image buffers. + * Before we found this we were inadvertently triple + * buffering the drawing of the graph. */ + gtk_widget_set_double_buffered(gr->drawing_area, FALSE); + +#if 1 + { + const GdkRGBA rgba = QP_DA_BG_RGBA; + gtk_widget_override_background_color(gr->drawing_area, + GTK_STATE_FLAG_NORMAL, &rgba); + } +#endif + + gr->tab_label_hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3); + gtk_box_set_homogeneous(GTK_BOX(gr->tab_label_hbox), FALSE); + g_object_set(G_OBJECT(gr->tab_label_hbox), "border-width", 0, NULL); + + { + /************************************************************ + * Tab Label * + ************************************************************/ + GtkWidget *image; + size_t num_graphs; + + image = gtk_image_new_from_stock(GTK_STOCK_DND, GTK_ICON_SIZE_MENU); + gtk_box_pack_start(GTK_BOX(gr->tab_label_hbox), image, FALSE, FALSE, 0); + gtk_widget_show(image); + + gr->tab_label = gtk_label_new(gr->name); + //gtk_label_set_selectable(GTK_LABEL(gr->tab_label), TRUE); + //gtk_widget_set_size_request(gr->tab_label, 60, 24); + gtk_box_pack_start(GTK_BOX(gr->tab_label_hbox), gr->tab_label, + FALSE, FALSE, 0); + gtk_widget_show(gr->tab_label); + + num_graphs = qp_sllist_length(qp->graphs); + if(num_graphs > 1) + add_graph_close_button(gr); + if(num_graphs == 2) + { + ASSERT(qp_sllist_first(qp->graphs) != (void *)gr); + add_graph_close_button((struct qp_graph*)qp_sllist_first(qp->graphs)); + } + } + + gtk_notebook_append_page(GTK_NOTEBOOK(qp->notebook), gr->drawing_area, + gr->tab_label_hbox); + + +#if 0 + gtk_notebook_set_tab_label_packing(GTK_NOTEBOOK(qp->notebook), + gr->drawing_area, + FALSE, /* expand */ + FALSE, /* fill */ + GTK_PACK_START); // GTK_PACK_START or GTK_PACK_END +#endif + gtk_widget_set_size_request(gr->drawing_area, + 2*EDGE_BUF_MIN+1, + 2*EDGE_BUF_MIN+1); + + g_signal_connect(G_OBJECT(gr->drawing_area), "draw", + G_CALLBACK(ecb_graph_draw), gr); + g_signal_connect(G_OBJECT(gr->drawing_area),"configure-event", + G_CALLBACK(ecb_graph_configure), gr); + g_signal_connect(G_OBJECT(gr->drawing_area), "button-press-event", + G_CALLBACK(ecb_graph_button_press), gr); + g_signal_connect(G_OBJECT(gr->drawing_area), "button-release-event", + G_CALLBACK(ecb_graph_button_release), gr); + g_signal_connect(G_OBJECT(gr->drawing_area), "motion-notify-event", + G_CALLBACK(ecb_graph_pointer_motion), gr); + g_signal_connect(G_OBJECT(gr->drawing_area), "scroll-event", + G_CALLBACK(ecb_graph_scroll), qp); + + //g_object_set_data(G_OBJECT(gr->drawing_area), "Graph", &wrapper); + + // Give gr->drawing_area a minimum size so things do not fail. + + gtk_notebook_set_current_page(GTK_NOTEBOOK(qp->notebook), + gtk_notebook_page_num(GTK_NOTEBOOK(qp->notebook), gr->drawing_area)); + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_graph_tabs))) + gtk_widget_show(gr->tab_label_hbox); + gtk_widget_show(gr->drawing_area); + + /* GtkNotebook refuses to switch to a page unless the child + * widget is visible. So this is after the show */ + gtk_notebook_set_current_page(GTK_NOTEBOOK(qp->notebook), + gtk_notebook_get_n_pages(GTK_NOTEBOOK(qp->notebook)) - 1); + + + return gr; +} + +static inline +void set_x11_draw_mode(struct qp_graph *gr) +{ + struct qp_plot *p; + + ASSERT(gr->x11 == NULL); + + gr->x11 = qp_malloc(sizeof(*(gr->x11))); + gr->x11->gc = 0; + gr->x11->pixmap = 0; + gr->x11->dsp = 0; + gr->x11->background = 0; + gr->x11->background_set = 0; + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + /* gr->x11 needs to be set so the X11 colors + * may be made */ + qp_plot_set_x11_draw_mode(p, gr); +} + +static inline +void set_cairo_draw_mode(struct qp_graph *gr) +{ + struct qp_plot *p; + + ASSERT(gr->x11); + + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + /* gr->x11 needs to be set so the X11 colors + * may be freed */ + qp_plot_set_cairo_draw_mode(p, gr); + + + if(gr->x11) + { + if(gr->x11->gc) + XFreeGC(gr->x11->dsp, gr->x11->gc); + if(gr->x11->pixmap) + XFreePixmap(gr->x11->dsp, gr->x11->pixmap); + free(gr->x11); + gr->x11 = NULL; + } +} + +void qp_graph_switch_draw_mode(struct qp_graph *gr) +{ + + if((gr->x11 && gr->qp->x11_draw) || + (!gr->x11 && !gr->qp->x11_draw)) + return; + + if(gr->qp->x11_draw) + set_x11_draw_mode(gr); + else + set_cairo_draw_mode(gr); + + if(gr->pixbuf_surface) + { + /* This gets recreated in the drawing */ + cairo_surface_destroy(gr->pixbuf_surface); + gr->pixbuf_surface = NULL; + } + gr->pixbuf_needs_draw = 1; +} + +void qp_graph_destroy(qp_graph_t gr) +{ + struct qp_win *qp; + ASSERT(gr); + ASSERT(gr->qp); + ASSERT(gr->qp->graphs); + ASSERT(gr->name); + ASSERT(gr->plots); + if(!gr) return; + + qp = gr->qp; + ASSERT(qp); + ASSERT(qp->window); + + { + struct qp_plot *p; + p = qp_sllist_begin(gr->plots); + for(; p; p = qp_sllist_next(gr->plots)) + qp_plot_destroy(p, gr); + qp_sllist_destroy(gr->plots, 0); + } + + /* this will remove the tab */ + gtk_widget_destroy(gr->drawing_area); + qp_color_gen_destroy(gr->color_gen); + + free(gr->name); + qp_sllist_remove(gr->qp->graphs, gr, 0); + qp_zoom_destroy(gr->z); + + if(gr->pixbuf_surface) + cairo_surface_destroy(gr->pixbuf_surface); + + if(gr->x11) + { + /* TODO: Not sure how to free X11 colors that + * may be still in use by other graphs. There + * is not likely much client side memory used + * and the X Server will likely free the colors + * when the program exits. Adding a list to manage + * the X colors may use more memory than it + * saves. ??? */ + + if(gr->x11->gc) + XFreeGC(gr->x11->dsp, gr->x11->gc); + if(gr->x11->pixmap) + XFreePixmap(gr->x11->dsp, gr->x11->pixmap); + free(gr->x11); + } + + ASSERT(gr->grid_font); + + free(gr->grid_font); + + if(gr->pangolayout) + g_object_unref(G_OBJECT(gr->pangolayout)); + + free(gr); + /* done with this graph */ + + if(qp_sllist_length(qp->graphs) == 1) + { + /* Reusing the gr pointer */ + /* Remove the tab close button */ + gr = qp_sllist_first(qp->graphs); + ASSERT(gr->close_button); + gtk_widget_destroy(gr->close_button); + gr->close_button = NULL; + } +} + +void qp_graph_zoom_out(struct qp_graph *gr, int all) +{ + if(gr->zoom_level == 0 && !gr->grab_x && !gr->grab_y) + return; + + if(all) + { + /* zoom all the way out */ + if(gr->zoom_level) + gr->pixbuf_needs_draw = 1; + gr->zoom_level = 0; + qp_zoom_pop_all(&(gr->z)); + gr->grab_x = gr->grab_y = 0; + gdk_window_set_cursor(gtk_widget_get_window(gr->qp->window), app->waitCursor); + } + else if(gr->grab_x || gr->grab_y) + { + gr->grab_x = gr->grab_y = 0; + } + else + { + /* zoom out one level */ + --gr->zoom_level; + gr->pixbuf_needs_draw = 1; + qp_zoom_pop(&(gr->z)); + gdk_window_set_cursor(gtk_widget_get_window(gr->qp->window), app->waitCursor); + } + + qp_win_set_status(gr->qp); + gtk_widget_queue_draw(gr->drawing_area); +} + diff -Nru quickplot-0.8.15/GraphConfig.cpp quickplot-0.9.11/GraphConfig.cpp --- quickplot-0.8.15/GraphConfig.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/GraphConfig.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,592 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include - -#include - -using namespace Gtk; -#include "value_t.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "errorStr.h" -#include "Globel.h" -#include "Field.h" -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "GraphConfig.h" - -#include "quickplot_icon.xpm" - -#define SMALL_INT INT_MIN - - -GraphConfig::GraphConfig(MainWindow *mainWindow_in): - mainWindow(mainWindow_in), - topLabel("Graph Configuration"), - - showGridCB("Show Grid"), - showGridNumbersCB("Show Grid Numbers"), - showLinesCB("Show Lines"), - showPointsCB("Show Points"), - showPlotConfigB("Configure Plots ..."), - - bgColorB("Background Color ..."), - gridColorB("Grid Color ..."), - - lineWidthVS (0, MAX_PLOT_LINE_WIDTH, MAXMAX_PLOT_LINE_WIDTH, - "Plots Line Width"), - pointSizeVS (0, MAX_POINT_SIZE, MAXMAX_POINT_SIZE, - "Point Size"), - gridLineWidthVS(0, MAX_GRID_LINE_WIDTH, MAX_GRID_LINE_WIDTH, - "Grid Line Width"), - gridFontSizeVS(8, 40, 40, "Grid Font Size"), - gridXLineSpaceVS(2, MAX_GRIDXLINESPACE, "Grid X Line Space"), - gridYLineSpaceVS(2, MAX_GRIDYLINESPACE, "Grid Y Line Space"), - plotSelector(mainWindow) -{ - set_position(WIN_POS_MOUSE); - - - /********************* stacking the widgets ***********************/ - - //set_default_size(315, 300); - set_border_width(5); - //topVBox.set_border_width(5); - topLabel.set_size_request(-1, 30); - topVBox.set_spacing(20); - topHBox.set_spacing(12); - lVBox.set_spacing(5); - rVBox.set_spacing(5); - lowerVBox.set_spacing(5); - linePointHBox.set_spacing(5); - grid1HBox.set_spacing(5); - grid2HBox.set_spacing(5); - - gridFontSizeVS.set_sensitive(false); - gridFontSizeVS.setValue(10); - - //lFrame.set_shadow_type(SHADOW_ETCHED_IN); - //rFrame.set_shadow_type(SHADOW_ETCHED_IN); - //showGridOM.set_label("Show Grid"); - - add(notebook); - notebook.append_page(topVBox, "Configure Graph", "menu label"); - - topVBox.pack_start(topLabelFrame, PACK_SHRINK); - topVBox.pack_start(topHBox, PACK_SHRINK); - topVBox.pack_start(lowerVBox, PACK_SHRINK); - - notebook.append_page(plotSelector, "Select Fields to Plot", "menu label"); - - topLabelFrame.add(topLabel); - - topHBox.pack_start(lVBox, PACK_EXPAND_WIDGET); - topHBox.pack_start(rVBox, PACK_EXPAND_WIDGET); - - lVBox.pack_start(showGridCB, PACK_SHRINK); - lVBox.pack_start(showGridNumbersCB, PACK_SHRINK); - lVBox.pack_start(showLinesCB, PACK_SHRINK); - lVBox.pack_start(showPointsCB, PACK_SHRINK); - - rVBox.pack_start(sameScaleStatusFrame, PACK_EXPAND_WIDGET); - sameScaleStatusFrame.add(sameScaleStatusLabel); - sameScaleStatusFrame.set_label("Plots Scaled the Same?"); - rVBox.pack_start(sameScaleOM, PACK_SHRINK); - rVBox.pack_start(showPlotConfigB, PACK_SHRINK); - - lowerVBox.pack_start(colorHBox, PACK_SHRINK); - colorHBox.pack_start(bgColorB, PACK_EXPAND_WIDGET); - colorHBox.pack_start(gridColorB, PACK_EXPAND_WIDGET); - - lowerVBox.pack_start(linePointHBox, PACK_SHRINK); - linePointHBox.add(lineWidthVS); - linePointHBox.add(pointSizeVS); - lowerVBox.pack_start(grid1HBox, PACK_SHRINK); - grid1HBox.add(gridLineWidthVS); - grid1HBox.add(gridFontSizeVS); - lowerVBox.pack_start(grid2HBox, PACK_SHRINK); - grid2HBox.add(gridXLineSpaceVS); - grid2HBox.add(gridYLineSpaceVS); - - // same scale menu. - - sameScaleOM.set_menu(sameScaleM); - Gtk::Menu::MenuList& menulist = sameScaleM.items(); - - menulist.push_back( Gtk::Menu_Helpers::MenuElem("Same Scale", - sigc::mem_fun(*this, &GraphConfig::on_sameScaleOn) ) ); - - menulist.push_back( Gtk::Menu_Helpers::MenuElem("Different Scales", - sigc::mem_fun(*this, &GraphConfig::on_sameScaleOff) ) ); - - menulist.push_back( Gtk::Menu_Helpers::MenuElem("Automatic Scales", - sigc::mem_fun(*this, &GraphConfig::on_sameScaleAuto) ) ); - - - setValuesFromGraph(); - - /******************************************************************/ - - showGridCB.signal_clicked(). - connect( sigc::mem_fun(*this, &GraphConfig::on_showGrid)); - showGridNumbersCB.signal_clicked(). - connect( sigc::mem_fun(*this, &GraphConfig::on_showGridNumbers)); - showLinesCB.signal_clicked(). - connect( sigc::mem_fun(*this, &GraphConfig::on_showLines)); - showPointsCB.signal_clicked(). - connect( sigc::mem_fun(*this, &GraphConfig::on_showPoints)); - - Graph::signal_changedSameScale(). - connect( sigc::mem_fun(*this, &GraphConfig::on_sameScaleChange)); - - bgColorB.signal_clicked(). - connect( sigc::mem_fun(*this, &GraphConfig::on_bgColor)); - - gridColorB.signal_clicked(). - connect( sigc::mem_fun(*this, &GraphConfig::on_gridColor)); - - showPlotConfigB.signal_clicked(). - connect( sigc::mem_fun(*this, &GraphConfig::on_showPlotConfig)); - - gridXLineSpaceVS.signal_valueChanged(). - connect( sigc::mem_fun(*this, &GraphConfig::on_gridXLineSpace)); - - gridYLineSpaceVS.signal_valueChanged(). - connect( sigc::mem_fun(*this, &GraphConfig::on_gridYLineSpace)); - - gridLineWidthVS.signal_valueChanged(). - connect( sigc::mem_fun(*this, &GraphConfig::on_gridLineWidth)); - - lineWidthVS.signal_valueChanged(). - connect( sigc::mem_fun(*this, &GraphConfig::on_lineWidth)); - - pointSizeVS.signal_valueChanged(). - connect( sigc::mem_fun(*this, &GraphConfig::on_pointSize)); - - mainWindow->graphsNotebook. - signal_switch_page(). - connect(sigc::mem_fun(*this, &GraphConfig::on_notebookFlip)); - - mainWindow->graphsNotebook.signal_tabLabelChanged(). - connect(sigc::mem_fun(*this, &GraphConfig::on_tabLabelChanged)); - - signal_show().connect(sigc::mem_fun(mainWindow->menuBar, - &MainMenuBar::checkGraphConfigState)); - signal_hide().connect(sigc::mem_fun(mainWindow->menuBar, - &MainMenuBar::checkGraphConfigState)); - - signal_show().connect(sigc::mem_fun(mainWindow->buttonBar, - &ButtonBar::checkGraphConfigButton)); - signal_hide().connect(sigc::mem_fun(mainWindow->buttonBar, - &ButtonBar::checkGraphConfigButton)); - - Glib::RefPtr pix = - Gdk::Pixbuf::create_from_xpm_data(quickplot_icon); - set_icon(pix); - - show_all_children(); - - x = SMALL_INT; - - // need to get key presses. - add_events(Gdk::KEY_PRESS_MASK); -} - -void GraphConfig::on_map(void) -{ - Window::on_map(); - - // This is to force the PlotSelector widget to be realized so that - // all it's needed data is setup so that some methods in the - // PlotSelector object do not cause a segfault when called from the - // callbacks in here. - if(!plotSelector.wasMapped) - notebook.set_current_page(1); -} - -void GraphConfig::on_tabLabelChanged(Graph *graph) -{ - if(mainWindow->currentGraph == graph) - { - setTitle(); - } -} - -void GraphConfig::setValuesFromGraph(void) -{ - showGridCB.set_active(mainWindow->currentGraph->showAutoGrid); - showGridNumbersCB.set_active(mainWindow->currentGraph->showGridNumbers); - showLinesCB.set_active(mainWindow->currentGraph->showLines); - showPointsCB.set_active(mainWindow->currentGraph->showPoints); - - gridXLineSpaceVS.setValue(mainWindow->currentGraph->gridXLineSpace); - gridYLineSpaceVS.setValue(mainWindow->currentGraph->gridYLineSpace); - gridLineWidthVS.setValue(mainWindow->currentGraph->gridLineWidth); - - lineWidthVS.setValue(mainWindow->currentGraph->lineWidth); - pointSizeVS.setValue(mainWindow->currentGraph->pointSize); - - - // sameScale - if(mainWindow->currentGraph->sameScale) - { - sameScaleM.set_active(0); - sameScaleOM.set_history(0); - } - else if(mainWindow->currentGraph->autoSameScale) - { - sameScaleM.set_active(2); - sameScaleOM.set_history(2); - } - else - { - sameScaleM.set_active(1); - sameScaleOM.set_history(1); - } - - if(mainWindow->currentGraph->isSameScale) - sameScaleStatusLabel.set_text("Yes"); - else - sameScaleStatusLabel.set_text("No"); - - setTitle(); -} - -void GraphConfig::on_notebookFlip(GtkNotebookPage* , guint ) -{ - setValuesFromGraph(); -} - -void GraphConfig::setTitle(void) -{ - char s[16]; - - if(mainWindow->mainWindowNumber > 1) - { - sprintf(s, "(%d) ", mainWindow->mainWindowNumber); - } - else - s[0] = '\0'; - - Glib::ustring str = s; - - GraphTab *l = dynamic_cast - (mainWindow->graphsNotebook.get_tab_label(*(mainWindow->currentGraph))); - if(l) - str += l->label.get_text(); - - str += ": Configure Graph"; - set_title(str); - - str = "Configure Graph: "; - str += l->label.get_text(); - - topLabel.set_text(str); -} - -void GraphConfig::on_unmap() -{ - // Remember where the window was positioned if it is not showing - // now. - get_position(x , y); - Window::on_unmap(); -} - -void GraphConfig::on_hide() -{ - // Don't know if this helps or not. - // Remember where the window was positioned if it is not showing - // now. - //if(is_visible()) - //get_position(x , y); - - Window::on_hide(); -} - - -void GraphConfig::show() -{ - // Remember where the window was positioned. - if(!is_visible() && x != SMALL_INT) - move(x, y); - - Window::show(); -} - -void GraphConfig::on_sameScaleOn(void) -{ - //opSpew << "GraphConfig::on_sameScaleOn()" << std::endl; - - if(!(mainWindow->currentGraph->sameScale)) - { - mainWindow->currentGraph->sameScale = true; - if(!(mainWindow->currentGraph->isSameScale)) - { - mainWindow->currentGraph->checkScales(); - } - } -} - -void GraphConfig::on_sameScaleOff(void) -{ - //opSpew << "GraphConfig::on_sameScaleOff()" << std::endl; - - if(mainWindow->currentGraph->sameScale || - mainWindow->currentGraph->autoSameScale) - { - mainWindow->currentGraph->sameScale = false; - mainWindow->currentGraph->autoSameScale = false; - if(mainWindow->currentGraph->isSameScale && - mainWindow->currentGraph->size() > 1) - { - mainWindow->currentGraph->checkScales(); - } - } -} - -void GraphConfig::on_sameScaleAuto(void) -{ - //opSpew << "GraphConfig::on_sameScaleAuto()" << std::endl; - - if(!(mainWindow->currentGraph->autoSameScale) || - mainWindow->currentGraph->sameScale) - { - mainWindow->currentGraph->sameScale = false; - mainWindow->currentGraph->autoSameScale = true; - if(mainWindow->currentGraph->size() > 1) - { - mainWindow->currentGraph->checkScales(); - } - } -} - -void GraphConfig::on_sameScaleChange(Graph *graph) -{ - if(graph == mainWindow->currentGraph) - { - if(graph->isSameScale) - sameScaleStatusLabel.set_text("Yes"); - else - sameScaleStatusLabel.set_text("No"); - } -} - -void GraphConfig::on_showGrid(void) -{ - int isShowingGrid = mainWindow->currentGraph->isShowingGrid(); - if(showGridCB.get_active() != mainWindow->currentGraph->showAutoGrid) - { - mainWindow->currentGraph->showAutoGrid = showGridCB.get_active(); - - if((isShowingGrid && !showGridCB.get_active()) - || - (!isShowingGrid && showGridCB.get_active()) - ) - { - mainWindow->currentGraph->queueRedraw(); - } - } -} - -void GraphConfig::on_showGridNumbers(void) -{ - mainWindow->currentGraph->showGridNumbers = showGridNumbersCB.get_active(); - mainWindow->currentGraph->queueRedraw(); -} - -void GraphConfig::on_showLines(void) -{ - mainWindow->currentGraph->setShowLines(showLinesCB.get_active()); - plotSelector.drawArea.queueRedraw(); -} - -void GraphConfig::on_showPoints(void) -{ - mainWindow->currentGraph->setShowPoints(showPointsCB.get_active()); - plotSelector.drawArea.queueRedraw(); -} - -void GraphConfig::on_gridXLineSpace(void) -{ - mainWindow->currentGraph->gridXLineSpace = gridXLineSpaceVS.getValue(); - mainWindow->currentGraph->queueRedraw(); -} - -void GraphConfig::on_gridYLineSpace(void) -{ - mainWindow->currentGraph->gridYLineSpace = gridYLineSpaceVS.getValue(); - mainWindow->currentGraph->queueRedraw(); -} - -void GraphConfig::on_gridLineWidth(void) -{ - mainWindow->currentGraph->gridLineWidth = gridLineWidthVS.getValue(); - mainWindow->currentGraph->queueRedraw(); -} - -void GraphConfig::on_lineWidth(void) -{ - mainWindow->currentGraph->setLineWidth(lineWidthVS.getValue()); - mainWindow->currentGraph->queueRedraw(); - plotSelector.drawArea.queueRedraw(); -} - -void GraphConfig::on_pointSize(void) -{ - mainWindow->currentGraph->setPointSize(pointSizeVS.getValue()); - mainWindow->currentGraph->queueRedraw(); - plotSelector.drawArea.queueRedraw(); -} - -void GraphConfig::on_showPlotConfig(void) -{ - mainWindow->showPlotLister(); -} - -void GraphConfig::on_bgColor(void) -{ - Gtk::ColorSelectionDialog dialog; - - //Set the current color: - Gtk::ColorSelection* pColorSel = dialog.get_colorsel(); - - { // set dialog title - char s[16]; - if(mainWindow->mainWindowNumber > 1) - { - sprintf(s, "(%d) ", mainWindow->mainWindowNumber); - } - else - s[0] = '\0'; - - Glib::ustring str = s; - str += "Graph Background Color: "; - GraphTab *l = dynamic_cast - (mainWindow->graphsNotebook.get_tab_label(*(mainWindow->currentGraph))); - if(l) - str += l->label.get_text(); - dialog.set_title(str); - } - - pColorSel->set_current_color(mainWindow->currentGraph->backgroundColor); - - int result = dialog.run(); - - //Handle the response: - switch(result) - { - case(Gtk::RESPONSE_OK): - { - const Gdk::Color color = pColorSel->get_current_color(); - mainWindow->currentGraph->setBackgroundColor(color); - mainWindow->currentGraph->queueRedraw(); - plotSelector.drawArea.get_window()-> - set_background(mainWindow->currentGraph->backgroundColor); - plotSelector.drawArea.queueRedraw(); - break; - } - case(Gtk::RESPONSE_CANCEL): - { - //opSpew << "Cancel clicked." << std::endl; - break; - } - default: - { - //opSpew << "Unexpected button clicked." << std::endl; - break; - } - } - -} - -void GraphConfig::on_gridColor(void) -{ - Gtk::ColorSelectionDialog dialog; - - //Set the current color: - Gtk::ColorSelection* pColorSel = dialog.get_colorsel(); - pColorSel->set_current_color(mainWindow->currentGraph->gridColor); - - { // set dialog title - char s[16]; - if(mainWindow->mainWindowNumber > 1) - { - sprintf(s, "(%d) ", mainWindow->mainWindowNumber); - } - else - s[0] = '\0'; - - Glib::ustring str = s; - str += "Graph Grid Color: "; - GraphTab *l = dynamic_cast - (mainWindow->graphsNotebook.get_tab_label(*(mainWindow->currentGraph))); - if(l) - str += l->label.get_text(); - dialog.set_title(str); - } - - int result = dialog.run(); - - //Handle the response: - switch(result) - { - case(Gtk::RESPONSE_OK): - { - const Gdk::Color color = pColorSel->get_current_color(); - mainWindow->currentGraph->setGridColor(color); - mainWindow->currentGraph->queueRedraw(); - plotSelector.drawArea.queueRedraw(); - break; - } - case(Gtk::RESPONSE_CANCEL): - { - //opSpew << "Cancel clicked." << std::endl; - break; - } - default: - { - //opSpew << "Unexpected button clicked." << std::endl; - break; - } - } - -} - -// Widget Key Accelerators don't work all the time, so we get the key -// strokes the hard way. Also there is no way to use Widget Key -// Accelerators with Gtk::Window. -bool GraphConfig::on_key_press_event(GdkEventKey* event) -{ - // Can add checks on GdkModifierType in event->state. - - switch(event->keyval) - { - case GDK_Escape: - { - hide(); - return true; - break; - } - default: - if(mainWindow->commonKeyPress(event)) - return true; - break; - } - - return Window::on_key_press_event(event); -} diff -Nru quickplot-0.8.15/GraphConfig.h quickplot-0.9.11/GraphConfig.h --- quickplot-0.8.15/GraphConfig.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/GraphConfig.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,89 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -class PlotSelector; -class ValueSlider; - -class GraphConfig : public Window -{ -public: - - GraphConfig(MainWindow *m); - - void show(); - - void setTitle(void); - -private: - - - void on_notebookFlip(GtkNotebookPage* , guint ); - - void on_unmap(void); - void on_hide(void); - - - int x, y; - - MainWindow *mainWindow; - - VBox topVBox; - Notebook notebook; - Frame topLabelFrame; - Label topLabel; - HBox topHBox; - VBox lVBox, rVBox; - - CheckButton - showGridCB, showGridNumbersCB, showLinesCB, showPointsCB; - - OptionMenu sameScaleOM; - Menu sameScaleM; - Frame sameScaleStatusFrame; - Label sameScaleStatusLabel; - Button showPlotConfigB; - - VBox lowerVBox; - HButtonBox colorHBox; - Button bgColorB, gridColorB; - - HBox linePointHBox, grid1HBox, grid2HBox; - ValueSlider lineWidthVS, pointSizeVS; - ValueSlider gridLineWidthVS, gridFontSizeVS; - LogValueSlider gridXLineSpaceVS, gridYLineSpaceVS; - -public: - PlotSelector plotSelector; - - void on_map(void); - -private: - - void on_sameScaleOn(void); - void on_sameScaleOff(void); - void on_sameScaleAuto(void); - void on_showGrid(void); - void on_showGridNumbers(void); - void on_showLines(void); - void on_showPoints(void); - void on_tabLabelChanged(Graph *graph); - - void on_sameScaleChange(Graph *graph); - void on_showPlotConfig(void); - - // set widget state from graph - void setValuesFromGraph(void); - - void on_bgColor(void); - void on_gridColor(void); - - void on_gridXLineSpace(void); - void on_gridYLineSpace(void); - - void on_gridLineWidth(void); - void on_lineWidth(void); - void on_pointSize(void); - - bool on_key_press_event(GdkEventKey* event); -}; - diff -Nru quickplot-0.8.15/Graph.cpp quickplot-0.9.11/Graph.cpp --- quickplot-0.8.15/Graph.cpp 2009-03-08 21:22:58.000000000 +0000 +++ quickplot-0.9.11/Graph.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,1226 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#ifdef USE_LIBSNDFILE -# include -#endif - -#include - -using namespace Gtk; -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Globel.h" -#include "Source.h" - -#define SMALL_INT INT_MIN -#define ZRO ((value_t) 0.0) -#define ABSVAL(x) (((x) > 0)? (x) : (-(x))) - - - -Graph::Graph(MainWindow *mainWindow_in): - win(0) -{ - mainWindow = mainWindow_in; - - isDeleting = false; - - pickerType = INTERPOLATED; - highestPickerType = NONINTERPOLATED; - - // minimum size - set_size_request(20, 20); - - win.clear(); - gc.clear(); - - set_events(Gdk::EXPOSURE_MASK| - Gdk::POINTER_MOTION_MASK| - Gdk::BUTTON_PRESS_MASK| - Gdk::BUTTON_RELEASE_MASK); - - xPress = yPress = xmouse = ymouse = xpick = ypick = SMALL_INT; - - // Do the current plots have the same scale. - isSameScale = true; - - // Do we force all plots to have the same scale. - sameScale = opSameScale; - - // Do we make all plots the same scale if it works well. - autoSameScale = opAutoSameScale; - - showAutoGrid = opShowAutoGrid; - showGridNumbers = true; - - gridLineWidth = opGridLineWidth; - gridXLineSpace = opGridXLineSpace; - gridYLineSpace = opGridYLineSpace; - - - // defaults for plots - showLines = opShowLines; - showPoints = opShowPoints; - lineWidth = opLineWidth; - pointSize = opPointSize; - - checkScalesQueued = false; - - // We'll have to see about how to get a theme color here. - // set the default colors. - gushort r, g, b; - colorGen.getBackgroundColor(r, g, b); - - backgroundColor.set_red(r); - backgroundColor.set_green(g); - backgroundColor.set_blue(b); - - colorGen.getGridColor(r, g, b); - gridColor.set_red(r); - gridColor.set_green(g); - gridColor.set_blue(b); - - pangolayout.clear(); // set to null. - - lastPickerType = NONE; - buttonPressed = 0; - - // old_width and old_height are used for seeing if there is a - // resize. - old_width = old_height = SMALL_INT; -} - -// a copy the plots and properties from a graph. -void Graph::copy(Graph *graph) -{ - pickerType = graph->pickerType; - highestPickerType = graph->highestPickerType; - - isSameScale = graph->isSameScale; - sameScale = graph->sameScale; - autoSameScale = graph->autoSameScale; - - showAutoGrid = graph->showAutoGrid; - showGridNumbers = graph->showGridNumbers; - - setGridColor(graph->gridColor); - setBackgroundColor(graph->backgroundColor); - - gridLineWidth = graph->gridLineWidth; - gridXLineSpace = graph->gridXLineSpace; - gridYLineSpace = graph->gridYLineSpace; - - - // defaults for plots - showLines = graph->showLines; - showPoints = graph->showPoints; - lineWidth = graph->lineWidth; - pointSize = graph->pointSize; - - - checkScalesQueued = graph->checkScalesQueued; - - // copy all the plots - std::list::const_iterator plot = graph->begin(); - for(;plot != graph->end(); plot++) - { - new Plot(this, *plot); - } -} - -Graph::~Graph(void) -{ - isDeleting = true; - - // remove and delete all the plots. - while(size() > 0) - { - delete (*begin()); // This will remove it from the list too. - } -} - - -// create and add a Plot to the list. -Plot *Graph::createPlot(Field *x, Field *y) -{ - Plot *plot = new Plot(this, x, y); // Plot adds itself to the - // list. - checkZoomLevelForNewPlot(plot); - setPickerType(); - - if(size() == 1) - { - GraphTab *tab = dynamic_cast - (mainWindow->graphsNotebook.get_tab_label(*this)); - if(tab) - { - tab->setText(y->source->getBaseFileName()); - mainWindow->graphsNotebook.m_signal_tabLabelChanged.emit(this); - } - } - - m_signal_addedPlot.emit(this); - - return plot; -} - -void Graph::setPickerType(void) -{ - - highestPickerType = NONINTERPOLATED; - - if(size() > 0) - { - std::list::const_iterator p = begin(); - Field *X = (*p)->x(); - count_t numValues = (*p)->getNumberOfPoints(); - - if(!((*p)->x()->isIncreasing())) - { - pickerType = highestPickerType = OFF_PLOT; - return; - } - - for(;p != end(); p++) - { - if(!((*p)->x()->isIncreasing())) - { - // We will not try to pick values in a nonFunction plot. - pickerType = highestPickerType = OFF_PLOT; - return; - } - if((*p)->x() != X || numValues != (*p)->getNumberOfPoints()) - { - // We will not try to pick plot points if all the plots do not - // use the same X values. - highestPickerType = INTERPOLATED; - if(pickerType > highestPickerType) - pickerType = highestPickerType; - } - } - } -} - - - -void Graph::checkZoomLevelForNewPlot(Plot *plot) -{ - if(size() < 2) - { - queueRedraw(); - return; - } - if(isZoomedOutToTop()) - { - checkScales(); - return; - } - - // Figure out the scales (zoom levels) for this new plot. - if(isSameScale) - { - // fix the scales later. - checkScalesQueued = true; - queueRedraw(); - - // Copy all the ZoomLevels - Plot *p = *begin(); - ZoomLevel *z = p->firstZoomLevel; - plot->currentZoomLevel->copy(z); - - for(z = z->next; z != p->lastZoomLevel->next; z = z->next) - { - // make a new zoomLevel - plot->zoomIn(0,0,10,10); - // set this zoomLevel to match. - plot->currentZoomLevel->copy(z); - } - - // Find the Current ZoomLevel - plot->zoomOutToTop(); - z = p->firstZoomLevel; - for(;z != p->currentZoomLevel; z = z->next) - { - plot->zoomBackIn(); - } - } - else - { - // If we have any zooming than now we will have Plots with mixed - // levels of zoom and there's nothing wrong with that. There on - // different scales anyway. - - queueRedraw(); - } -} - -void Graph::remove(Plot *plot) -{ - std::list::remove(plot); - - // we let the plot get deleted by other things. - if(isZoomedOutToTop()) - checkScales(); - else - { - if(size() < 2 && (autoSameScale || sameScale)) - isSameScale = true; - checkScalesQueued = true; - queueRedraw(); - } - - setPickerType(); - m_signal_removedPlot.emit(this, plot); -} - -void Graph::checkScales(void) -{ - bool old_isSameScale = isSameScale; - - //opSpew << "void Graph::checkScales(void)" << std::endl; - if(size() > 1 && sameScale) - { - value_t xmax=-MAXVALUE, xmin=MAXVALUE, ymax=-MAXVALUE, ymin=MAXVALUE; - - // get the max and min values from all plots. - std::list::const_iterator p; - for(p=begin();p != end(); p++) - { - if((*p)->xmax > xmax) - xmax = (*p)->xmax; - if((*p)->xmin < xmin) - xmin = (*p)->xmin; - - if((*p)->ymax > ymax) - ymax = (*p)->ymax; - if((*p)->ymin < ymin) - ymin = (*p)->ymin; - } - - if(xmax == xmin) - { - xmax += (value_t) 0.5; - xmin -= (value_t) 0.5; - } - if(ymax == ymin) - { - ymax += (value_t) 0.5; - ymin -= (value_t) 0.5; - } - - for(p = begin();p != end(); p++) - { - (*p)->resetZoomLevels(xmax, xmin, ymax, ymin); - } - isSameScale = true; - } - else if(size() > 1 && autoSameScale) - { - value_t xmax=-MAXVALUE, xmin=MAXVALUE, ymax=-MAXVALUE, ymin=MAXVALUE; - value_t xminspan=MAXVALUE, yminspan=MAXVALUE; - - // get the max and min values and xmaxspan, xminspan, ymaxspan, - // yminspan from all plots. - std::list::const_iterator p; - - for(p=begin();p != end(); p++) - { - if((*p)->xmax > xmax) - xmax = (*p)->xmax; - if((*p)->xmin < xmin) - xmin = (*p)->xmin; - - if((*p)->ymax > ymax) - ymax = (*p)->ymax; - if((*p)->ymin < ymin) - ymin = (*p)->ymin; - - if((*p)->xmax != (*p)->xmin && (*p)->xmax - (*p)->xmin < xminspan) - xminspan = (*p)->xmax - (*p)->xmin; - - if((*p)->ymax != (*p)->ymin && (*p)->ymax - (*p)->ymin < yminspan) - yminspan = (*p)->ymax - (*p)->ymin; - } - - if((xminspan == MAXVALUE || (xmax - xmin)/xminspan < ((value_t) 10.0)) && - (yminspan == MAXVALUE || (ymax - ymin)/yminspan < ((value_t) 10.0)) ) - { - if(xmax == xmin) - { - xmax += (value_t) 0.5; - xmin -= (value_t) 0.5; - } - if(ymax == ymin) - { - ymax += (value_t) 0.5; - ymin -= (value_t) 0.5; - } - - for(p = begin();p != end(); p++) - { - (*p)->resetZoomLevels(xmax, xmin, ymax, ymin); - } - isSameScale = true; - } - else - { - std::list::const_iterator p; - for(p = begin();p != end(); p++) - { - (*p)->resetZoomLevels(); - } - isSameScale = false; - } - } - else if(size() == 1) - { - (*begin())->resetZoomLevels(); - isSameScale = true; - } - else if(size() > 1) - { - std::list::const_iterator p; - for(p = begin();p != end(); p++) - { - (*p)->resetZoomLevels(); - } - isSameScale = false; - } - - if(isSameScale != old_isSameScale) - // Tell the world the news. - m_signal_changedSameScale.emit(this); - - checkScalesQueued = false; - queueRedraw(); -} - - -void Graph::savePNG(const char *filename) -{ - Glib::RefPtr window = get_window(); - Glib::RefPtr _gc = Gdk::GC::create(window); - int w, h, depth = window->get_depth(); - window->get_size(w,h); - - Glib::RefPtr pixmap = - Gdk::Pixmap::create(window, w, h, depth); - - _gc->set_foreground(backgroundColor); - pixmap->draw_rectangle(_gc, true, 0, 0, w, h); - - draw(pixmap, _gc); - - Glib::RefPtr colormap = get_default_colormap(); - - Glib::RefPtr pixbuf = - Gdk::Pixbuf::create(pixmap, colormap, 0, 0, 0, 0, w, h); - - try - { - pixbuf->save(filename, "png"); - } - catch(Glib::FileError e) - { - if(!opSilent) - opSpew << "Quickplot WARNING: Can't save PNG file: " - << filename << " Glib::FileError::code()=" - << e.code() << "." << std::endl; - } - catch(Gdk::PixbufError e) - { - if(!opSilent) - opSpew << "Quickplot WARNING: Can't save PNG file: " - << filename << " Gdk::PixbufError::code()=" - << e.code() << "." << std::endl; - } -} - -void Graph::queueRedraw(void) -{ - // ignore additional redraw requests until after - // Graph::on_expose_event() and don't do this if this was called - // while in Graph::~Graph(). Like when Plot::~Plot() calls this. - if(isDeleting) - return; - - GdkRectangle rec = - { - 0, 0, get_width(), get_height() - }; - - gdk_window_invalidate_rect(get_window()->gobj(), &rec, true); - //gdk_window_process_updates(get_window()->gobj(), true); - -} - -void Graph::draw(Glib::RefPtr _win, - Glib::RefPtr _gc) -{ - if(size() > 0) // there is one plot or more. - { - std::list::const_iterator plot = begin(); - if(showAutoGrid && isSameScale) - { - drawAutoGrid(_win, _gc); - } - - for(; plot != end(); plot++) - { - (*plot)->draw(_win, _gc); - } - } -} - -// This seems to be like QT's qtWidget::draw(). -bool Graph::on_expose_event(GdkEventExpose *expose) -{ - if(!win) - { - win = get_window(); - gc = Gdk::GC::create(win); - inverted_gc = Gdk::GC::create(win); - inverted_gc->set_function(Gdk::XOR); - - Glib::RefPtr colormap = get_default_colormap(); - - colormap->alloc_color(backgroundColor); - win->set_background(backgroundColor); - colormap->alloc_color(gridColor); - - Gdk::Color gray; - // By doing an XOR with 1 in the most significant bit we always - // flip the most significant bit and draw pretty good - // contrasting line. Flipping all bits will not work all the - // time, because some numbers are close to being equal to their - // one's-complement. Like 0111 ~= 1000, but 0111 !~= 1111 (~= - // meaning approximately equal to). - gray.set_rgb(0x8000,0x8000,0x8000); - colormap->alloc_color(gray); - inverted_gc->set_foreground(gray); - } - else - { - // It may be that this should not have to be called, but this - // seems to fix a bug: The first Graph produced from a loaded - // file from the command line will not have the right background - // color. - win->set_background(backgroundColor); - } - - if(currentMainWindow->statusBar.is_visible()) - { - currentMainWindow->statusBar.positionEntry.set_text(""); - } - - win->clear(); - - draw(win, gc); - - // This is just for zoom boxes and mouse value pick lines. - if(lastPickerType != NONE && - old_width == get_width() && - old_height == get_height() ) - { - // Need to draw some lines. - - if(lastPickerType == OFF_PLOT) - { - if(xpick != SMALL_INT) - { - // draw the cross. - win->draw_line(inverted_gc, 0, ypick, get_width(), ypick); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - } - } - else // lastPickerType == INTERPOLATED || lastPickerType == NONINTERPOLATED - { - if(xpick != SMALL_INT) - { - // draw the line. - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - } - } - } - else if(old_width != get_width() || - old_height != get_height()) - { - lastPickerType = NONE; - old_width = get_width(); - old_height = get_height(); - } - - return true; -} - - - -bool Graph::isZoomedOutToTop(void) -{ - if(size() < 1) return true; - std::list::const_iterator plot; - for(plot=begin(); plot != end(); plot++) - { - if(!((*plot)->isZoomedOutToTop())) - break; - } - return (plot == end()); -} - - -void Graph::zoomToTop(void) -{ - if(isZoomedOutToTop()) return; // already there. - - std::list::const_iterator plot; - for(plot=begin(); plot != end(); plot++) - (*plot)->zoomOutToTop(); - - if(checkScalesQueued == true) - checkScales(); - else - queueRedraw(); -} - -void Graph::zoomOut(void) -{ - if(isZoomedOutToTop()) return; // already zoomed to top. - - std::list::const_iterator plot; - for(plot=begin(); plot != end(); plot++) - { - (*plot)->zoomOut(); - } - - if(isZoomedOutToTop() && checkScalesQueued == true) - checkScales(); - else - queueRedraw(); -} - -void Graph::zoomIn(int x, int y, int w, int h) -{ - if(size() < 1) return; // no plots in list - - std::list::const_iterator plot; - for(plot=begin(); plot != end(); plot++) - (*plot)->zoomIn(x,y,w,h); - - queueRedraw(); -} - - -// These following 3 methods will act on a button that is pressed when -// no other buttons are pressed. So these will ignore -// multi-button-presses. -bool Graph::on_button_press_event(GdkEventButton *event) -{ - //opSpew << "Graph::on_button_press_event() button=" << event->button - // << " x=" << event->x << " y=" << event->y << std::endl; - - if(lastPickerType != NONE && event->button != opZoomButton) - { - // Need to undraw some lines. - - if(lastPickerType == OFF_PLOT) - { - if(xpick != SMALL_INT) - { - // undraw the cross. - win->draw_line(inverted_gc, 0, ypick, get_width(), ypick); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - xpick = SMALL_INT; - } - } - else // lastPickerType == INTERPOLATED || lastPickerType == NONINTERPOLATED - { - if(xpick != SMALL_INT) - { - // undraw the line. - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - xpick = SMALL_INT; - } - } - lastPickerType = NONE; - } - - // Ignore more button presses until buttonPressed is unset. - if(buttonPressed) return true; - - if(event->button == opPickButton) - { - buttonPressed = opPickButton; - if(size() > 0) - { - currentMainWindow->showPlotLister(); - - std::list::const_iterator plot = begin(); - if(pickerType == OFF_PLOT) - { - xpick = (int) event->x; - ypick = (int) event->y; - win->draw_line(inverted_gc, 0, ypick, get_width(), ypick); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - - for(plot=begin(); plot != end(); plot++) - (*plot)->emitDisplayValues(xpick, ypick); - - lastPickerType = OFF_PLOT; - } - else if(pickerType == INTERPOLATED) - { - xpick = (int) event->x; - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - for(plot=begin(); plot != end(); plot++) - (*plot)->emitInterpolatedDisplayValues(xpick); - - lastPickerType = INTERPOLATED; - } - else // pickerType == NONINTERPOLATED - { - for(plot=begin(); plot != end(); plot++) - xpick = (*plot)->emitDisplayValues((int) event->x); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - - lastPickerType = NONINTERPOLATED; - } - } - } - else if(event->button == opZoomButton) - { - xPress = (int) event->x; - yPress = (int) event->y; - buttonPressed = opZoomButton; - xmouse = SMALL_INT; - } - else if(event->button == opMidButton) - { - xPress = (int) event->x; - yPress = (int) event->y; - buttonPressed = opMidButton; - xmouse = SMALL_INT; - } - - return true; -} - -bool Graph::on_motion_notify_event(GdkEventMotion *event) -{ - //opSpew << "Graph::on_motion_notify_event()" << std::endl; - - if(size() > 0 && isSameScale && currentMainWindow->statusBar.is_visible()) - { - setStatusXYValues(event->x, event->y); - } - else if(currentMainWindow->statusBar.is_visible()) - { - currentMainWindow->statusBar.positionEntry.set_text(""); - } - - if(!buttonPressed) return true; - - - if(buttonPressed == opPickButton) - { - if(size() > 0) - { - std::list::const_iterator plot = begin(); - - if(pickerType == OFF_PLOT) - { - if(xpick != SMALL_INT) - { - // undraw the cross. - win->draw_line(inverted_gc, 0, ypick, get_width(), ypick); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - } - - xpick = (int) event->x; - ypick = (int) event->y; - win->draw_line(inverted_gc, 0, ypick, get_width(), ypick); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - - for(plot=begin(); plot != end(); plot++) - (*plot)->emitDisplayValues(xpick, ypick); - } - else if(pickerType == INTERPOLATED) - { - if(xpick != SMALL_INT) - { - // undraw the line. - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - } - xpick = (int) event->x; - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - for(plot=begin(); plot != end(); plot++) - (*plot)->emitInterpolatedDisplayValues(xpick); - } - else // pickerType == NONINTERPOLATED - { - if(xpick != SMALL_INT) - { - // undraw the line. - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - } - for(plot=begin(); plot != end(); plot++) - xpick = (*plot)->emitDisplayValues((int) event->x); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - } - } - } - else if(buttonPressed == opZoomButton) - { - if(xmouse != SMALL_INT) // undraw the past zoom box. - { - win->draw_line(inverted_gc, xPress, yPress, xmouse, yPress); - win->draw_line(inverted_gc, xmouse, yPress, xmouse, ymouse); - win->draw_line(inverted_gc, xmouse, ymouse, xPress, ymouse); - win->draw_line(inverted_gc, xPress, ymouse, xPress, yPress); - xmouse = SMALL_INT; - } - - if(xPress != (int) event->x && yPress != (int) event->y) - { - // draw the zoom box - xmouse = (int) event->x; - ymouse = (int) event->y; - win->draw_line(inverted_gc, xPress, yPress, xmouse, yPress); - win->draw_line(inverted_gc, xmouse, yPress, xmouse, ymouse); - win->draw_line(inverted_gc, xmouse, ymouse, xPress, ymouse); - win->draw_line(inverted_gc, xPress, ymouse, xPress, yPress); - } - } - - return true; -} - -bool Graph::on_button_release_event(GdkEventButton *event) -{ - //opSpew << "Graph::on_button_release_event() button=" << event->button - // << " x=" << event->x << " y=" << event->y << std::endl; - - - // Ignore other button releases. - if(buttonPressed != event->button) return true; - - - if(buttonPressed == opPickButton) - { - if(size() > 0) - { - std::list::const_iterator plot = begin(); - - if(pickerType == OFF_PLOT) - { - if(xpick != SMALL_INT) - { - // undraw the cross. - win->draw_line(inverted_gc, 0, ypick, get_width(), ypick); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - } - - xpick = (int) event->x; - ypick = (int) event->y; - win->draw_line(inverted_gc, 0, ypick, get_width(), ypick); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - - for(plot=begin(); plot != end(); plot++) - (*plot)->emitDisplayValues(xpick, ypick); - } - else if(pickerType == INTERPOLATED) - { - if(xpick != SMALL_INT) - { - // undraw the line. - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - } - xpick = (int) event->x; - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - for(plot=begin(); plot != end(); plot++) - (*plot)->emitInterpolatedDisplayValues(xpick); - } - else // pickerType == NONINTERPOLATED - { - if(xpick != SMALL_INT) - { - // undraw the line. - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - } - for(plot=begin(); plot != end(); plot++) - xpick = (*plot)->emitDisplayValues((int) event->x); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - } - } - } - else if(buttonPressed == opZoomButton) - { - if(xmouse != SMALL_INT) // undraw the past zoom box. - { - win->draw_line(inverted_gc, xPress, yPress, xmouse, yPress); - win->draw_line(inverted_gc, xmouse, yPress, xmouse, ymouse); - win->draw_line(inverted_gc, xmouse, ymouse, xPress, ymouse); - win->draw_line(inverted_gc, xPress, ymouse, xPress, yPress); - xmouse = SMALL_INT; - } - - // zoom box is a line or a point. - if(xPress == (int) event->x || yPress == (int) event->y) - { - } - - // zoom box is out side of one side of the Graph. - else if( - ( - (get_width() <= (int) event->x || 0 > (int) event->x) - && - (get_height() > (int) event->y && 0 <= (int) event->y) - ) - || - ( - (get_height() <= (int) event->y || 0 > (int) event->y) - && - (get_width() > (int) event->x && 0 <= (int) event->x) - ) - ) - { - zoomOut(); - } - else if((get_width() <= (int) event->x || 0 > (int) event->x) - && - (get_height() <= (int) event->y || 0 > (int) event->y) - ) - { - zoomToTop(); - } - else - { - // get the zoom box parameters x, y, w, and h. - int x = (xPress < (int) event->x)? xPress : (int) event->x; - int y = (yPress < (int) event->y)? yPress : (int) event->y; - int w = ABSVAL(xPress - (int) event->x); - int h = ABSVAL(yPress - (int) event->y); - - zoomIn(x,y,w,h); - } - - if(lastPickerType != NONE) - { - // Need to undraw some lines. - - if(lastPickerType == OFF_PLOT) - { - if(xpick != SMALL_INT) - { - // undraw the cross. - win->draw_line(inverted_gc, 0, ypick, get_width(), ypick); - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - xpick = SMALL_INT; - } - } - else // lastPickerType == INTERPOLATED || lastPickerType == NONINTERPOLATED - { - if(xpick != SMALL_INT) - { - // undraw the line. - win->draw_line(inverted_gc, xpick, 0, xpick, get_height()); - xpick = SMALL_INT; - } - } - lastPickerType = NONE; - } - } - else if(buttonPressed == opMidButton) - { - int x = (xPress - (int) event->x); - int y = (yPress - (int) event->y); - zoomIn( x,y,get_width(), get_height() ); - } - - if(size() > 0 && isSameScale && currentMainWindow->statusBar.is_visible()) - { - // need to show the x,y values with this new scale. - setStatusXYValues(event->x, event->y); - } - else if(currentMainWindow->statusBar.is_visible()) - { - currentMainWindow->statusBar.positionEntry.set_text(""); - } - - - buttonPressed = 0; - return true; -} - -void Graph::setStatusXYValues(gdouble x, gdouble y) -{ - ZoomLevel *z = front()->currentZoomLevel; - - // x - value_t X = (x - z->shiftX)/z->scaleX; - value_t Y = (y - z->shiftY)/z->scaleY; - char s[48]; - snprintf(s,48,FORMAT" "FORMAT, X, Y); - currentMainWindow->statusBar.positionEntry.set_text(s); -} - -void Graph::createDefaultPlots(Source *source) -{ - if(!source) return; // this shouldn't happen. - - int numPlots = source->size() - 1; - if(numPlots > opMaxNumDefaultPlots) - numPlots = opMaxNumDefaultPlots; - - if(numPlots > 0) - { - int i = 0; - std::list::const_iterator field = source->begin(); - Field *x = *field; - for(field++;field != source->end() && i < numPlots; field++) - { - createPlot(x, *field); - i++; - } - } -} - -void Graph::setShowLines(bool do_show) -{ - showLines = do_show; - - // set the current plots - std::list::const_iterator plot = begin(); - for(;plot != end(); plot++) - { - (*plot)->setShowLines(showLines); - } - queueRedraw(); -} - -void Graph::setShowPoints(bool do_show) -{ - showPoints = do_show; - - // set the current plots - std::list::const_iterator plot = begin(); - for(;plot != end(); plot++) - { - (*plot)->setShowPoints(showPoints); - } - queueRedraw(); -} - -void Graph::setLineWidth(int width, bool oldPlotsToo) -{ - lineWidth = width; - - if(oldPlotsToo) - { - // set the current plots - std::list::const_iterator plot = begin(); - for(;plot != end(); plot++) - { - (*plot)->setLineWidth(lineWidth); - } - } - queueRedraw(); -} - -void Graph::setPointSize(int size, bool oldPlotsToo) -{ - pointSize = size; - - if(oldPlotsToo) - { - // set the current plots - std::list::const_iterator plot = begin(); - for(;plot != end(); plot++) - { - (*plot)->setPointSize(pointSize); - } - } - queueRedraw(); -} - -void Graph::setBackgroundColor(const Gdk::Color& color) -{ - backgroundColor = color; - - if(win) - { - get_default_colormap()->alloc_color(backgroundColor); - win = get_window(); - win->set_background(backgroundColor); - } - - m_signal_backgroundColorChanged.emit(); -} - -void Graph::setGridColor(const Gdk::Color& color) -{ - gridColor = color; - - if(win) - { - get_default_colormap()->alloc_color(gridColor); - } -} - - - - -GraphTab::GraphTab(int count, MainWindow *mainWindow_in, Graph *graph_in) : - closeImage(Stock::CLOSE, ICON_SIZE_MENU) -{ - graph = graph_in; - mainWindow = mainWindow_in; - - set_spacing(6); - - char s[16]; - snprintf(s, 16, "Graph %d", count); - label.set_text(s); - add(label); - add(removeButton); - - removeButton.set_size_request(15,15); - removeButton.add(closeImage); - - removeButton.signal_pressed(). - connect(sigc::mem_fun(*this, &GraphTab::on_close)); - - closeImage.show(); - label.show(); - removeButton.show(); -} - -// Checks size and that it's not the same as another in this main window. -void GraphTab::setText(const char *str) -{ - if(!str || !str[0]) return; - - const size_t maxSize = 20; - char s[maxSize]; - - // truncated copy. - snprintf(s, maxSize, "%s", str); - size_t end = strlen(s); - - int n = mainWindow->graphsNotebook.get_n_pages(); - - int j; - for(j=2;j<1000; j++) - { - int i; - for(i=0;i - (mainWindow->graphsNotebook - .get_tab_label(*(mainWindow->graphsNotebook.get_nth_page(i)))); - //printf("comparing \"%s\" \"%s\"\n",tab->label.get_text().c_str(), s); - if(tab && !strcmp(tab->label.get_text().c_str(), s) && tab != this) - break; - } - - if(i != n) // We have a matching label - { - // Put a different number at the end of the label. - - if(strlen(s) > end) - s[end] = '\0'; - - // clear the end of the string. - if(j<10) - s[maxSize-5] = '\0'; - else if(j<100) - s[maxSize-6] = '\0'; - else - s[maxSize-7] = '\0'; - - sprintf(&s[strlen(s)], " (%d)", j); - } - else // no matching labels - break; - } - - label.set_text(s); -} - - -extern "C" -{ - static gboolean GraphTab_deleteLater(gpointer data) - { - gtk_idle_remove_by_data(data); - GraphTab::DeleteLater *d = (GraphTab::DeleteLater *) data; - d->graphTab->mainWindow->removeGraphTab(d->graphTab->graph); - return ((gboolean) 0); - } -} - - -void GraphTab::on_close(void) -{ - deleteLater.graphTab = this; - gtk_idle_add(GraphTab_deleteLater, &deleteLater); -} - - - -sigc::signal1 Graph::signal_addedPlot(void) -{ - return m_signal_addedPlot; -} - -sigc::signal2 Graph::signal_removedPlot(void) -{ - return m_signal_removedPlot; -} - -sigc::signal1 Graph::m_signal_addedPlot; - -sigc::signal2 Graph::m_signal_removedPlot; - - - -sigc::signal1 Graph::signal_changedSameScale(void) -{ - return m_signal_changedSameScale; -} - -sigc::signal1 Graph::m_signal_changedSameScale; - - -sigc::signal0 Graph::signal_backgroundColorChanged(void) -{ - return m_signal_backgroundColorChanged; -} - diff -Nru quickplot-0.8.15/graph_detail.c quickplot-0.9.11/graph_detail.c --- quickplot-0.8.15/graph_detail.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/graph_detail.c 2011-12-20 13:29:54.000000000 +0000 @@ -0,0 +1,2084 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#include +#include +#include +#include +#include +#include + + +#include +#include + +#include "quickplot.h" + +#include "config.h" +#include "debug.h" +#include "list.h" +#include "qp.h" +#include "callbacks.h" + +#include "channel.h" +#include "channel_double.h" +#include "plot.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +static __thread int _cb_view_graph_detail_reenter = 0; + +static +gboolean graph_detail_hide(struct qp_win *qp) +{ + ASSERT(qp); + ASSERT(qp->graph_detail); + ASSERT(qp->graph_detail->window); + + if(qp->graph_detail->window) + gtk_widget_hide(qp->graph_detail->window); + return TRUE; /* TRUE means event is handled */ +} + +static inline +void set_color_button(GtkWidget *w, struct qp_colora *c) +{ + GdkRGBA rgba; + + rgba.red = c->r; + rgba.green = c->g; + rgba.blue = c->b; + rgba.alpha = c->a; + //DEBUG("%g %g %g %g\n", c->r, c->g, c->b, c->a); + gtk_color_button_set_rgba(GTK_COLOR_BUTTON(w), &rgba); +} + +static inline +void set_combo_box_text(GtkWidget *w, int same_scale, + int same_limits) +{ + ASSERT((same_limits && same_scale) || !same_limits); + + + gtk_combo_box_set_button_sensitivity(GTK_COMBO_BOX(w), GTK_SENSITIVITY_ON); + gtk_combo_box_set_active(GTK_COMBO_BOX(w), same_scale); + + if(same_limits) + gtk_combo_box_set_button_sensitivity(GTK_COMBO_BOX(w), GTK_SENSITIVITY_OFF); + else + gtk_combo_box_set_button_sensitivity(GTK_COMBO_BOX(w), GTK_SENSITIVITY_ON); +} + +static +void cb_same_y_scale(GtkComboBox *w, gpointer data) +{ + struct qp_graph *gr; + + gr = ((struct qp_win *)data)->current_graph; + if(!gr) + return; + + ASSERT(!gr->same_y_limits); + + gr->same_y_scale = gtk_combo_box_get_active(w); + + if(gr->same_y_scale) + { + struct qp_plot *p; + double min=INFINITY, max=-INFINITY; + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + ASSERT(p->y->form == QP_CHANNEL_FORM_SERIES); + if(max < p->y->series.max) + max = p->y->series.max; + if(min > p->y->series.min) + min = p->y->series.min; + } + if(max == min) + { + max += 1; + min -= 1; + } + else if(max - min < SMALL_DOUBLE) + { + max += SMALL_DOUBLE; + min -= SMALL_DOUBLE; + } + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + qp_plot_y_rescale(p, min, max); + + } + else + { + struct qp_plot *p; + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + double min, max; + max = p->y->series.max; + min = p->y->series.min; + if(max == min) + { + max += 1; + min -= 1; + } + else if(max - min < SMALL_DOUBLE) + { + max += SMALL_DOUBLE; + min -= SMALL_DOUBLE; + } + + qp_plot_y_rescale(p, min, max); + } + } + + gr->pixbuf_needs_draw = 1; +} + +static __thread int _ignore_slider_cb = 0; + +static +void set_slider_val(int val, struct qp_slider *s) +{ + if(s->val) + *(s->val) = val; + else if(s->dval) + *(s->dval) = val; + else if(s->is_plot_line_width) + { + struct qp_sllist *plots; + struct qp_plot *p; + ASSERT(s->gr); + plots = s->gr->plots; + for(p=qp_sllist_begin(plots);p;p=qp_sllist_next(plots)) + p->line_width = val; + } + else + { + struct qp_sllist *plots; + struct qp_plot *p; + ASSERT(s->gr); + plots = s->gr->plots; + for(p=qp_sllist_begin(plots);p;p=qp_sllist_next(plots)) + p->point_size = val; + } + + if(s->callback) + s->callback(s); +} + +static +void cb_scale_change(GtkRange *range, struct qp_slider *s) +{ + int val; + char str[8]; + + if(_ignore_slider_cb) + return; + + val = INT((s->max - s->min)*gtk_range_get_value(range) + s->min); + snprintf(str, 8, "%d", val); + + _ignore_slider_cb = 1; + gtk_entry_set_text(GTK_ENTRY(s->entry), str); + _ignore_slider_cb = 0; + + set_slider_val(val, s); +} + +static +void cb_text_entry(GtkEntry *entry, struct qp_slider *s) +{ + char str[8], *ss; + const char *text; + int val; + double dval; + + if(_ignore_slider_cb) + return; + + text = gtk_entry_get_text(entry); + + strncpy(str, text, 7); + str[7] = '\0'; + + for(ss = str; *ss; ++ss) + if(*ss < '0' && *ss > '9') + { + /* Remove non-number chars */ + char *c; + for(c = ss; *c; ++c) + *c = *(c+1); + } + + + val = strtol(str, NULL, 10); + + if(val < s->min) + val = s->min; + else if(val > s->max) + { + if(val > s->extended_max) + val = s->max = s->extended_max; + else + s->max = val; + } + + snprintf(str, 8, "%d", val); + + if(strcmp(str, text)) + gtk_entry_set_text(entry, str); + + dval = s->max - s->min; + dval = val/dval - s->min/dval; + + _ignore_slider_cb = 1; + gtk_range_set_value(GTK_RANGE(s->scale), dval); + _ignore_slider_cb = 0; + + set_slider_val(val, s); +} + +static +struct qp_slider *create_slider_input(const char *label, + GtkWidget **vbox, + int min, int max, int extended_max) +{ + GtkWidget *frame, *scale, *entry, *hbox; + int max_len; + double v,step; + char text[16]; + struct qp_slider *slider; + + slider = qp_malloc(sizeof(*slider)); + slider->min = min; + slider->max = max; + slider->callback = NULL; + slider->extended_max = extended_max; + slider->val = NULL; + slider->dval = NULL; + slider->is_plot_line_width = 0; + slider->gr = NULL; + + frame = gtk_frame_new(label); + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 2); + gtk_box_set_homogeneous(GTK_BOX(hbox), FALSE); + + v = 0.3; + step = 1.0/((double)(max - min)); + + scale = gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL, 0.0, 1.0, 0.001); + gtk_range_set_increments(GTK_RANGE(scale), step, 2*step); + gtk_range_set_value(GTK_RANGE(scale), v); + gtk_widget_set_size_request(scale, 100, -1); + gtk_scale_set_draw_value(GTK_SCALE(scale), FALSE); + g_signal_connect(G_OBJECT(scale), "value-changed", G_CALLBACK(cb_scale_change), slider); + gtk_box_pack_start(GTK_BOX(hbox), scale, TRUE, TRUE, 2); + gtk_widget_show(scale); + + entry = gtk_entry_new(); + snprintf(text, 16, "%d", extended_max); + max_len = strlen(text); + ASSERT(max_len <= 4); + gtk_entry_set_max_length(GTK_ENTRY(entry), max_len); + gtk_entry_set_width_chars(GTK_ENTRY(entry), 4); + //g_signal_connect(G_OBJECT(entry), "focus-out-event", G_CALLBACK(cb_text_entry_focus_out), slider); + g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(cb_text_entry), slider); + gtk_box_pack_start(GTK_BOX(hbox), entry, FALSE, FALSE, 2); + gtk_widget_show(entry); + + slider->scale = scale; + slider->entry = entry; + + gtk_container_add(GTK_CONTAINER(frame), hbox); + gtk_widget_show(hbox); + gtk_widget_show(frame); + if(*vbox) + gtk_box_pack_start(GTK_BOX(*vbox), frame, FALSE, FALSE, 8); + else + /* let the user stuff the frame in something */ + *vbox = frame; + return slider; +} + +static +void set_slider_entry(struct qp_slider *slider, int val) +{ + char text[8]; + snprintf(text, 8, "%d", val); + gtk_entry_set_text(GTK_ENTRY(slider->entry), text); + cb_text_entry(GTK_ENTRY(slider->entry), slider); +} + +static +gboolean cb_plot_list_draw(GtkWidget *w, cairo_t *cr, struct qp_win *qp) +{ + struct qp_graph *gr; + GtkAllocation da_a; + struct qp_plot *p; + size_t i = 0; + + if(qp->update_graph_detail) + /* We need to wait for a graph draw + * and then this will be called again. */ + return TRUE; + + gtk_widget_get_allocation(w, &da_a); + + gr = qp->current_graph; + + cairo_set_operator(cr, CAIRO_OPERATOR_CLEAR); + cairo_paint(cr); + cairo_set_operator(cr, CAIRO_OPERATOR_OVER); + + cairo_set_source_rgba(cr, gr->background_color.r, + gr->background_color.g, gr->background_color.b, + gr->background_color.a); + cairo_paint(cr); + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + GtkAllocation a; + int width; + double w2, y; + + gtk_widget_get_allocation(p->x_entry, &a); + y = a.y - da_a.y + a.height/2.0; + + if(p->lines || !(p->lines || p->points)) + { + width = p->line_width; + if(width > 18) + width = 18; + + cairo_set_source_rgba(cr, p->l.c.r, p->l.c.g, p->l.c.b, p->l.c.a); + cairo_set_line_width(cr, width); + + cairo_move_to(cr, 0, y); + cairo_line_to(cr, da_a.width, y); + cairo_stroke(cr); + } + + if(p->points || !(p->lines || p->points)) + { + width = p->point_size; + if(width > 18) + width = 18; + w2 = width/2.0; + y -= w2; + + cairo_set_source_rgba(cr, p->p.c.r, p->p.c.g, p->p.c.b, p->p.c.a); + cairo_rectangle(cr, da_a.width/3.0 - w2, y, width, width); + cairo_rectangle(cr, 2*da_a.width/3.0 - w2, y, width, width); + cairo_fill(cr); + } + + ++i; + } + + return TRUE; +} + +void qp_graph_detail_set_value_mode(struct qp_graph *gr) +{ + struct qp_plot *p, *p0; + if(!gr->same_x_scale) + { + gr->value_mode = 0; + return; + } + + p0 = qp_sllist_begin(gr->plots); + if(!p0->x->series.is_increasing) + { + gr->value_mode = 0; + return; + } + + for(p=qp_sllist_next(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + if(!qp_channel_equals(p0->x, p->x) || !p->x->series.is_increasing) + { + gr->value_mode = 0; + return; + } + } + + gr->value_mode = (1 | (2<<2)); + +} + +void cb_plot_list_redraw(struct qp_slider *s) +{ + if(s->gr->qp->graph_detail->plot_list_drawing_area) + gtk_widget_queue_draw(s->gr->qp->graph_detail->plot_list_drawing_area); +} + +static inline +void set_rgba(GtkColorButton *w, struct qp_colora *c) +{ + GdkRGBA rgba; + gtk_color_button_get_rgba(w, &rgba); + c->r = rgba.red; + c->g = rgba.green; + c->b = rgba.blue; + c->a = rgba.alpha; +} + +static +void cb_plot_line_color(GtkColorButton *w, struct qp_plot *p) +{ + set_rgba(w, &(p->l.c)); + if(p->gr->x11) + qp_plot_set_X11_color(p, &(p->l)); + gtk_widget_queue_draw(p->gr->qp->graph_detail->plot_list_drawing_area); +} + +static +void cb_plot_point_color(GtkColorButton *w, struct qp_plot *p) +{ + set_rgba(w, &(p->p.c)); + if(p->gr->x11) + qp_plot_set_X11_color(p, &(p->p)); + gtk_widget_queue_draw(p->gr->qp->graph_detail->plot_list_drawing_area); +} + +static inline +GtkWidget *color_button_create(const char *text, + void (*callback)(GtkColorButton *w, struct qp_plot *p), + struct qp_colora *c, + void *data) +{ + GtkWidget *label, *picker, *hbox; + char t[64]; + snprintf(t, 64, "%s:", text); + + label = gtk_label_new(t); + gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); + picker = gtk_color_button_new(); + gtk_color_button_set_title(GTK_COLOR_BUTTON(picker), text); + gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(picker), TRUE); + set_color_button(picker, c); + + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 1); + gtk_box_set_homogeneous(GTK_BOX(hbox), FALSE); + gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(hbox), picker, FALSE, FALSE, 0); + + g_signal_connect(G_OBJECT(picker), "color-set", G_CALLBACK(callback), data); + gtk_widget_show(label); + gtk_widget_show(picker); + gtk_widget_show(hbox); + + return hbox; +} + +static inline +void set_margin(GtkWidget *w, int left, int right, int top, int bottom) +{ + gtk_widget_set_margin_left(w, left); + gtk_widget_set_margin_right(w, right); + gtk_widget_set_margin_top(w, top); + gtk_widget_set_margin_bottom(w, bottom); +} + +static +void set_plot_lines(GtkToggleButton *button, struct qp_plot *p) +{ + p->lines = gtk_toggle_button_get_active(button); + gtk_widget_queue_draw(p->gr->qp->graph_detail->plot_list_drawing_area); +} + +static +void set_plot_points(GtkToggleButton *button, struct qp_plot *p) +{ + p->points = gtk_toggle_button_get_active(button); + gtk_widget_queue_draw(p->gr->qp->graph_detail->plot_list_drawing_area); +} + + +#define CHAR_WIDTH (24) + +/* make plot list for a particular graph */ +static +void plot_list_make(struct qp_win *qp) +{ + GtkWidget *grid, *w; + const GdkRGBA rgba = QP_DA_BG_RGBA; + int row = 0; + struct qp_graph *gr; + struct qp_plot *p; + struct qp_graph_detail *gd; + PangoFontDescription *pfd; + int num_plots; + gr = qp->current_graph; + gd = qp->graph_detail; + + if(qp_sllist_length(gr->plots) == 0) + return; + + pfd = pango_font_description_from_string("Monospace Bold 11"); + + num_plots = qp_sllist_length(gr->plots); + + gd->plot_line_width_slider = qp_malloc( + sizeof(struct qp_slider *)*(num_plots+1)); + gd->plot_point_size_slider = qp_malloc( + sizeof(struct qp_slider *)*(num_plots+1)); + gd->plot_list_button_lines = qp_malloc( + sizeof(GtkWidget *)*(num_plots+1)); + gd->plot_list_button_points = qp_malloc( + sizeof(GtkWidget *)*(num_plots+1)); + + gd->plot_line_width_slider[num_plots] = NULL; + gd->plot_point_size_slider[num_plots] = NULL; + gd->plot_list_button_lines[num_plots] = NULL; + gd->plot_list_button_points[num_plots] = NULL; + + + grid = gtk_grid_new(); + + qp->graph_detail->plot_list_drawing_area = w = gtk_drawing_area_new(); + set_margin(w, 0, 0, 4, 4); + gtk_widget_set_size_request(w, 100, -1); + g_signal_connect(G_OBJECT(w), "draw", G_CALLBACK(cb_plot_list_draw), qp); + gtk_grid_attach(GTK_GRID(grid), w, 0, 0, 1, 2*num_plots+2); + gtk_widget_override_background_color(w, GTK_STATE_FLAG_NORMAL, &rgba); + gtk_widget_show(w); + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + GtkWidget *f; + + w = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); + set_margin(w, 0, 0, 4, 4); + gtk_grid_attach(GTK_GRID(grid), w, 1, 2*row, 8, 1); + gtk_widget_show(w); + + w = gtk_entry_new(); + set_margin(w, 5, 2, 0, 0); + if(pfd) + gtk_widget_override_font(w, pfd); + p->x_entry = w; + gtk_entry_set_width_chars(GTK_ENTRY(w), CHAR_WIDTH); + gtk_grid_attach(GTK_GRID(grid), w, 1, 2*row+1, 1, 1); + gtk_widget_show(w); + + w = gtk_entry_new(); + set_margin(w, 0, 0, 0, 0); + if(pfd) + gtk_widget_override_font(w, pfd); + p->y_entry = w; + gtk_entry_set_width_chars(GTK_ENTRY(w), CHAR_WIDTH); + gtk_grid_attach(GTK_GRID(grid), w, 2, 2*row+1, 1, 1); + gtk_widget_show(w); + + w = gtk_label_new(p->name); + set_margin(w, 8, 8, 8, 8); + gtk_grid_attach(GTK_GRID(grid), w, 3, 2*row+1, 1, 1); + gtk_widget_show(w); + + f = gtk_box_new(GTK_ORIENTATION_VERTICAL, 1); + gtk_box_set_homogeneous(GTK_BOX(f), TRUE); + gd->plot_list_button_lines[row] = + w = gtk_check_button_new_with_label("Show Lines"); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), p->lines); + gtk_box_pack_start(GTK_BOX(f), w, TRUE, TRUE, 0); + g_signal_connect(G_OBJECT(w), "toggled", G_CALLBACK(set_plot_lines), p); + gtk_widget_show(w); + gd->plot_list_button_points[row] = + w = gtk_check_button_new_with_label("Show Points"); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), p->points); + gtk_box_pack_start(GTK_BOX(f), w, TRUE, TRUE, 0); + g_signal_connect(G_OBJECT(w), "toggled", G_CALLBACK(set_plot_points), p); + gtk_widget_show(w); + gtk_widget_set_margin_left(f, 5); + gtk_widget_set_margin_right(f, 5); + gtk_grid_attach(GTK_GRID(grid), f, 4, 2*row+1, 1, 1); + gtk_widget_show(f); + + w = NULL; + gd->plot_line_width_slider[row] = create_slider_input( + "Line Width", &w, 1, 20, 40); + set_margin(w, 4, 6, 0, 0); + gd->plot_line_width_slider[row]->dval = &(p->line_width); + gtk_grid_attach(GTK_GRID(grid), w, 5, 2*row+1, 1, 1); + set_slider_entry(gd->plot_line_width_slider[row], p->line_width); + gd->plot_line_width_slider[row]->callback = cb_plot_list_redraw; + gd->plot_line_width_slider[row]->gr = gr; + + w = NULL; + gd->plot_point_size_slider[row] = create_slider_input( + "Point Size", &w, 1, 20, 40); + set_margin(w, 4, 6, 0, 0); + gd->plot_point_size_slider[row]->dval = &(p->point_size); + gtk_grid_attach(GTK_GRID(grid), w, 6, 2*row+1, 1, 1); + set_slider_entry(gd->plot_point_size_slider[row], p->point_size); + gd->plot_point_size_slider[row]->callback = cb_plot_list_redraw; + gd->plot_point_size_slider[row]->gr = gr; + + w = color_button_create("Line Color", cb_plot_line_color, &(p->l.c), p); + set_margin(w, 4, 4, 6, 4); + gtk_grid_attach(GTK_GRID(grid), w, 7, 2*row+1, 1, 1); + + w = color_button_create("Point Color", cb_plot_point_color, &(p->p.c), p); + set_margin(w, 4, 8, 6, 4); + gtk_grid_attach(GTK_GRID(grid), w, 8, 2*row+1, 1, 1); + + ++row; + } + + w = gtk_separator_new(GTK_ORIENTATION_VERTICAL); + set_margin(w, 0, 1, 4, 4); + gtk_grid_attach(GTK_GRID(grid), w, 9, 0, 1, 2*row+1); + gtk_widget_show(w); + + w = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); + set_margin(w, 0, 0, 4, 5); + gtk_grid_attach(GTK_GRID(grid), w, 1, 2*row, 8, 1); + gtk_widget_show(w); + + + if(pfd) + pango_font_description_free(pfd); + + gtk_box_pack_start(GTK_BOX(qp->graph_detail->plot_list_hbox), + grid, FALSE, FALSE, 8); + gtk_widget_show(grid); + + if(gr->draw_value_pick) + set_value_pick_entries(gr, gr->value_pick_x, gr->value_pick_y); +} + +#define free_null_term_pointer_array(T, ptr) \ + do { \ + T **p; \ + p = (ptr); \ + for(;*p;++p) \ + free(*p); \ + free(ptr); \ + ptr = NULL; \ + } while(0) + +/* called this when the main window is destroyed */ +void qp_graph_detail_destory(struct qp_win *qp) +{ + struct qp_graph_detail *gd; + ASSERT(qp); + gd = qp->graph_detail; + ASSERT(gd); + gtk_widget_destroy(gd->window); + + if(gd->plot_line_width_slider) + { + free_null_term_pointer_array(struct qp_slider, gd->plot_line_width_slider); + free_null_term_pointer_array(struct qp_slider, gd->plot_point_size_slider); + free(gd->plot_list_button_lines); + free(gd->plot_list_button_points); + } + + free(gd->line_width_slider); + free(gd->point_size_slider); + free(gd->grid_line_width_slider); + free(gd->grid_x_line_space_slider); + free(gd->grid_y_line_space_slider); + + free(gd); + qp->graph_detail = NULL; +} + +static +void plot_list_remake(struct qp_win *qp) +{ + GList *l, *list; + + list = gtk_container_get_children( + GTK_CONTAINER(qp->graph_detail->plot_list_hbox)); + for(l=list;l;l=l->next) + gtk_widget_destroy(GTK_WIDGET(l->data)); + g_list_free(list); + + ASSERT(qp->graph_detail); + + if(qp->graph_detail->plot_line_width_slider) + { + free_null_term_pointer_array(struct qp_slider, qp->graph_detail->plot_line_width_slider); + free_null_term_pointer_array(struct qp_slider, qp->graph_detail->plot_point_size_slider); + free(qp->graph_detail->plot_list_button_lines); + free(qp->graph_detail->plot_list_button_points); + qp->graph_detail->plot_list_button_lines = + qp->graph_detail->plot_list_button_points = NULL; + } + + qp->graph_detail->plot_list_drawing_area = NULL; + + plot_list_make(qp); +} + +#undef free_null_term_pointer_array + + +static +void plot_list_combo_box_init(struct qp_graph *gr, struct qp_graph_detail *gd) +{ + int modes, current_modes; + GtkWidget *combo; + combo = gd->plot_list_combo_box; + + + modes = (((gr->value_mode) & (3<<2)) >> 2); /* possible modes */ + current_modes = (((gd->plot_list_modes) & (3<<2)) >> 2); /* current possible modes */ + + if(current_modes != modes) + { + if(modes > current_modes) + { + if(current_modes < 1) + gtk_combo_box_text_insert_text(GTK_COMBO_BOX_TEXT(combo), 1, "Interpolate Plot Values"); + if(modes == 2) + gtk_combo_box_text_insert_text(GTK_COMBO_BOX_TEXT(combo), 2, "Pick Plot Values"); + } + else + { + if(modes < 2 && current_modes == 2) + gtk_combo_box_text_remove(GTK_COMBO_BOX_TEXT(combo), 2); + if(current_modes >= 1 && modes == 0) + gtk_combo_box_text_remove(GTK_COMBO_BOX_TEXT(combo), 1); + } + } + gtk_combo_box_set_active(GTK_COMBO_BOX(combo), gr->value_mode & 3); + + if(modes & 3) + gtk_combo_box_set_button_sensitivity(GTK_COMBO_BOX(combo), GTK_SENSITIVITY_ON); + else + gtk_combo_box_set_button_sensitivity(GTK_COMBO_BOX(combo), GTK_SENSITIVITY_OFF); + + gd->plot_list_modes = ((gd->plot_list_modes) & PL_IS_SHOWING) | gr->value_mode; +} + +static inline +void configure_graph_init(struct qp_win *qp) +{ + struct qp_graph *gr; + struct qp_graph_detail *gd; + + ASSERT(qp); + ASSERT(qp->graph_detail); + ASSERT(qp->graph_detail->window); + + gd = qp->graph_detail; + gr = qp->current_graph; + + { + /************************************************** + * Setup Show Check Buttons + **************************************************/ + struct qp_plot *p; + int lines = 0, points = 0; + GList *list, *l; + GtkWidget *w; + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + if(p->lines) + lines = 1; + if(p->points) + points = 1; + } + + /* Set to NULL so that the callbacks do not do anything. */ + qp->current_graph = NULL; + + l = list = gtk_container_get_children(GTK_CONTAINER(gd->show_container)); + /* Show Grid */ + w = l->data; + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), gr->show_grid); + /* Show Grid Numbers */ + l = l->next; + w = l->data; + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), gr->grid_numbers); + /* Show Lines */ + l = l->next; + w = l->data; + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), lines); + /* Show Points */ + l = l->next; + w = l->data; + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), points); + /************************/ + g_list_free(list); + } + + set_color_button(gd->background_color_picker,&(gr->background_color)); + set_color_button(gd->grid_color_picker,&(gr->grid_line_color)); + set_color_button(gd->numbers_color_picker,&(gr->grid_text_color)); + gtk_font_button_set_font_name(GTK_FONT_BUTTON(gd->font_picker), gr->grid_font); + + set_combo_box_text(gd->x_scale, gr->same_x_scale, gr->same_x_limits); + set_combo_box_text(gd->y_scale, gr->same_y_scale, gr->same_y_limits); + + + gd->line_width_slider->gr = gr; + gd->line_width_slider->is_plot_line_width = 1; + if(qp_sllist_first(gr->plots)) + set_slider_entry(gd->line_width_slider, + ((struct qp_plot*)qp_sllist_first(gr->plots))->line_width); + else + set_slider_entry(gd->line_width_slider, 4); + + gd->point_size_slider->gr = gr; + if(qp_sllist_first(gr->plots)) + set_slider_entry(gd->point_size_slider, + ((struct qp_plot*)qp_sllist_first(gr->plots))->point_size); + else + set_slider_entry(gd->point_size_slider, 4); + + gd->grid_line_width_slider->val = &(gr->grid_line_width); + set_slider_entry(gd->grid_line_width_slider, gr->grid_line_width); + gd->grid_x_line_space_slider->val = &(gr->grid_x_space); + set_slider_entry(gd->grid_x_line_space_slider, gr->grid_x_space); + gd->grid_y_line_space_slider->val = &(gr->grid_y_space); + set_slider_entry(gd->grid_y_line_space_slider, gr->grid_y_space); + + qp->current_graph = gr; +} + +/* Setup the widget for a particular graph */ +void qp_win_graph_detail_init(struct qp_win *qp) +{ + struct qp_graph *gr; + struct qp_graph_detail *gd; + + ASSERT(qp); + ASSERT(qp->graph_detail); + ASSERT(qp->graph_detail->window); + + gd = qp->graph_detail; + gr = qp->current_graph; + + { + char title[256]; + snprintf(title, 256, "%s Graph Details", gr->name); + gtk_window_set_title(GTK_WINDOW(gd->window), title); + } + { + char text[128]; + snprintf(text, 128, "Configure Graph: %s", gr->name); + gtk_label_set_text(GTK_LABEL(gd->config_label), text); + } + + if(gtk_notebook_get_current_page(GTK_NOTEBOOK(gd->notebook)) == 0) + { + qp->current_graph = gr; + configure_graph_init(qp); + qp->current_graph = NULL; + } + + gtk_widget_queue_draw(qp->graph_detail->selecter_drawing_area); + + plot_list_combo_box_init(gr, gd); + + qp->current_graph = gr; + + plot_list_remake(qp); +} + +static +void cb_plot_list_mode(GtkComboBox *w, struct qp_win *qp) +{ + int mode; + mode = gtk_combo_box_get_active(w); + if(mode < 0 || mode > 2) + return; + + if(qp->current_graph) + { + qp->current_graph->value_mode = + (((qp->current_graph->value_mode) & (7<<2)) | mode); + qp->graph_detail->plot_list_modes = + ((qp->graph_detail->plot_list_modes & (7<<2)) | mode); + } +} + +static +void cb_show_grid(GtkWidget *w, void *data) +{ + struct qp_graph *gr; + gr = ((struct qp_win *)data)->current_graph; + + if(!gr) + return; + + gr->show_grid = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); +} + +static +void cb_show_grid_numbers(GtkWidget *w, void *data) +{ + struct qp_graph *gr; + gr = ((struct qp_win *)data)->current_graph; + + if(!gr) + return; + + gr->grid_numbers = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); +} + +static +void cb_show_lines(GtkWidget *w, void *data) +{ + struct qp_graph *gr; + struct qp_plot *p; + int on; + gr = ((struct qp_win *)data)->current_graph; + + if(!gr) + return; + + on = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + p->lines = on; +} + +static +void cb_show_points(GtkWidget *w, void *data) +{ + struct qp_graph *gr; + struct qp_plot *p; + int on; + gr = ((struct qp_win *)data)->current_graph; + + if(!gr) + return; + + on = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + p->points = on; +} + +static +void cb_background_color(GtkColorButton *w, gpointer data) +{ + struct qp_graph *gr; + gr = ((struct qp_win *)data)->current_graph; + if(!gr) + return; + set_rgba(w, &(gr->background_color)); +} + +static +void cb_grid_color(GtkColorButton *w, gpointer data) +{ + struct qp_graph *gr; + gr = ((struct qp_win *)data)->current_graph; + if(!gr) + return; + set_rgba(w, &(gr->grid_line_color)); +} + +static +void cb_grid_numbers_color(GtkColorButton *w, gpointer data) +{ + struct qp_graph *gr; + gr = ((struct qp_win *)data)->current_graph; + if(!gr) + return; + set_rgba(w, &(gr->grid_text_color)); +} + +static +void cb_grid_font(GtkFontButton *w, gpointer data) +{ + struct qp_graph *gr; + gr = ((struct qp_win *)data)->current_graph; + if(!gr) + return; + + if(gr->grid_font) + free(gr->grid_font); + + gr->grid_font = qp_strdup(gtk_font_button_get_font_name(w)); + + if(gr->pangolayout) + /* If there is no pangolayout there is no reason to call this */ + qp_graph_set_grid_font(gr); +} + +static +void create_show_check_button(const char *label, + void (*callback)(GtkWidget*, void*), struct qp_win *qp, + GtkWidget *vbox, gboolean checked) +{ + GtkWidget *b; + b = gtk_check_button_new_with_label(label); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(b), checked); + + if(callback) + g_signal_connect(G_OBJECT(b), "toggled", G_CALLBACK(callback), qp); + gtk_box_pack_start(GTK_BOX(vbox), b, FALSE, FALSE, 0); + gtk_widget_show(b); +} + +static +gboolean ecb_close_graph_detail( + GtkWidget *w, GdkEvent *event, gpointer data) +{ + cb_graph_detail_show_hide(NULL, data); + return TRUE;/* TRUE means event is handled */ +} + +static +void cb_same_x_scale(GtkComboBox *w, struct qp_win *qp) +{ + struct qp_graph *gr; + struct qp_plot *p; + double min=INFINITY, max=-INFINITY; + + gr = qp->current_graph; + if(!gr) + return; + + ASSERT(!gr->same_x_limits); + + gr->same_x_scale = gtk_combo_box_get_active(w); + + if(gr->same_x_scale) + { + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + ASSERT(p->x->form == QP_CHANNEL_FORM_SERIES); + if(max > p->x->series.max) + max = p->x->series.max; + if(min < p->x->series.min) + min = p->x->series.min; + } + if(max == min) + { + max += 1; + min -= 1; + } + else if(max - min < SMALL_DOUBLE) + { + max += SMALL_DOUBLE; + min -= SMALL_DOUBLE; + } + } + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + qp_plot_x_rescale(p, min, max); + + gr->pixbuf_needs_draw = 1; +} + + +static +void cb_redraw(GtkButton *button, struct qp_win *qp) +{ + if(qp->graph_detail->plot_list_drawing_area) + gtk_widget_queue_draw(qp->graph_detail->plot_list_drawing_area); + gtk_widget_queue_draw(qp->current_graph->drawing_area); + qp->current_graph->pixbuf_needs_draw = 1; + //qp->current_graph->draw_value_pick = 0; + gdk_window_set_cursor(gtk_widget_get_window(qp->window), app->waitCursor); +} + +static inline +void add_grid_label(GtkWidget *grid, const char *text, + int with_frame, int vertical, int left, int top) +{ + GtkWidget *label, *frame; + label = gtk_label_new(text); + + if(vertical) + gtk_label_set_angle(GTK_LABEL(label), 80); + + frame = gtk_frame_new(NULL); + + + if(!with_frame) + gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_NONE); + + gtk_container_add(GTK_CONTAINER(frame), label); + gtk_widget_show(label); + + gtk_grid_attach(GTK_GRID(grid), frame, left, top, 1, 1); + + gtk_widget_show(frame); +} + + +struct qp_plotter +{ + struct qp_win *qp; + GtkWidget *radio; + ssize_t channel_num; + struct qp_source *source; + struct qp_channel *channel; + int is_y; /* 0 = x 1 = y */ +}; + +static +void cb_plotter(GtkButton *w, struct qp_plotter *pr) +{ + GtkWidget *vbox; + GList *l, *list; + struct qp_plot *p; + struct qp_graph *gr; + struct qp_plotter *o_pr = NULL, *x_pr = NULL, *y_pr = NULL; + + if(!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))) + return; + + /* Get the other channel */ + if(pr->is_y) + { + vbox = pr->qp->graph_detail->selecter_x_vbox; + y_pr = pr; + } + else + { + vbox = pr->qp->graph_detail->selecter_y_vbox; + x_pr = pr; + } + l = list = gtk_container_get_children(GTK_CONTAINER(vbox)); + /* first check the "none" radio button */ + if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(l->data))) + return; /* It is "none" */ + + for(l=list->next;l;l=l->next) + { + o_pr = g_object_get_data(G_OBJECT(l->data), "plotter"); + if(o_pr && gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(l->data))) + break; + else + o_pr = NULL; + } + g_list_free(list); + + ASSERT(o_pr); + if(!o_pr) + return; /* WTF */ + + if(x_pr) + y_pr = o_pr; + else + x_pr = o_pr; + + gr = pr->qp->current_graph; + + /* we have the two channels x_pr and y_pr */ + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + if(qp_channel_equals(p->x, x_pr->channel) && + qp_channel_equals(p->y, y_pr->channel)) + break; + + if(p) + { + qp_sllist_remove(gr->plots, p, 0); + qp_plot_destroy(p, gr); + } + else + { + char pname[128]; + + qp_source_get_plot_name(pname, 128, x_pr->source, y_pr->source, + x_pr->channel_num, y_pr->channel_num); + + qp_plot_create(gr, x_pr->channel, y_pr->channel , pname, + x_pr->channel->series.min, x_pr->channel->series.max, + y_pr->channel->series.min, y_pr->channel->series.max); + } + + + if(qp_sllist_length(gr->plots)) + { + /* We must rescale all the plots */ + /* TODO: make this code suck less */ + double dx_min = INFINITY, xmin = INFINITY, xmax = -INFINITY, + dy_min = INFINITY, ymin = INFINITY, ymax = -INFINITY; + struct qp_channel_series *csx0, *csy0; + p=qp_sllist_begin(gr->plots); + ASSERT(p->x->form == QP_CHANNEL_FORM_SERIES); + ASSERT(p->y->form == QP_CHANNEL_FORM_SERIES); + csx0 = &(p->x->series); + csy0 = &(p->y->series); + gr->same_x_limits = 1; + gr->same_y_limits = 1; + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + double dx, dy; + struct qp_channel_series *cs; + ASSERT(p->x->form == QP_CHANNEL_FORM_SERIES); + ASSERT(p->y->form == QP_CHANNEL_FORM_SERIES); + cs = &(p->x->series); + dx = cs->max - cs->min; + if(xmin > cs->min) + xmin = cs->min; + if(xmax < cs->max) + xmax = cs->max; + if(dx > SMALL_DOUBLE && dx_min > dx) + dx_min = dx; + if(csx0->max != cs->max || csx0->min != cs->min) + gr->same_x_limits = 0; + + cs = &(p->y->series); + dy = cs->max - cs->min; + if(ymin > cs->min) + ymin = cs->min; + if(ymax < cs->max) + ymax = cs->max; + if(dy > SMALL_DOUBLE && dy_min > dy) + dy_min = dy; + if(csy0->max != cs->max || csy0->min != cs->min) + gr->same_y_limits = 0; + } + + if(gr->same_x_limits) + { + gr->same_x_scale = 1; + } + + if(gr->same_x_scale) + { + if(xmax == xmin) + { + /* It could be just one point so lets give it a + * decent scale, not like the 1e-14 crap. */ + xmax += 1; + xmin -= 1; + } + else if(xmax - xmin < SMALL_DOUBLE) + { + xmax += SMALL_DOUBLE; + xmin -= SMALL_DOUBLE; + } + } + else if(xmax == xmin) + { + /* It could be just one point so lets give it a + * decent scale, not like the 1e-14 crap. */ + xmax += 1; + xmin -= 1; + } + else if(xmax - xmin < SMALL_DOUBLE) + { + /* they requested different scales but the values + * are too close together, so we make it same scale */ + xmax += SMALL_DOUBLE; + xmin -= SMALL_DOUBLE; + } + else + { + /* use different scales */ + xmin = INFINITY; + xmax = -INFINITY; + } + + if(gr->same_y_limits) + gr->same_y_scale = 1; + + if(gr->same_y_scale) + { + if(ymax == ymin) + { + /* It could be just one point so lets give it a + * decent scale, not like the 1e-14 crap. */ + ymax += 1; + ymin -= 1; + } + else if(ymax - ymin < SMALL_DOUBLE) + { + ymax += SMALL_DOUBLE; + ymin -= SMALL_DOUBLE; + } + } + else if(ymax == ymin) + { + /* It could be just one point so lets give it a + * decent scale, not like the 1e-14 crap. */ + ymax += 1; + ymin -= 1; + } + else if(ymax - ymin < SMALL_DOUBLE) + { + /* they requested different scales but the values + * are too close together, so we make it same scale */ + ymax += SMALL_DOUBLE; + ymin -= SMALL_DOUBLE; + } + else + { + /* use different scales */ + ymin = INFINITY; + ymax = -INFINITY; + } + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + qp_plot_x_rescale(p, xmin, xmax); + qp_plot_y_rescale(p, ymin, ymax); + } + } + + gdk_window_set_cursor(gtk_widget_get_window(gr->qp->window), app->waitCursor); + gtk_widget_queue_draw(gr->qp->graph_detail->selecter_drawing_area); + /* We will queue the Graph draw in the selecter_drawing_area draw + * so that we see the selecter draw before the graph */ + gr->pixbuf_needs_draw = 1; + gr->draw_value_pick = 0; + + + //qp_win_graph_detail_init(gr->qp); + + qp_graph_detail_set_value_mode(gr); + plot_list_remake(gr->qp); + +#if 0 + DEBUG("chan_num=%zd toggled=%d\n", + pr->channel_num, + gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))); +#endif +} + +static +GtkWidget *make_channel_selecter_column(GtkWidget *hbox, struct qp_win *qp, int is_y) +{ + GtkWidget *radio, *vbox; + struct qp_source *s; + + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous(GTK_BOX(vbox), FALSE); + + radio = gtk_radio_button_new_with_label(NULL, "none"); + gtk_box_pack_start(GTK_BOX(vbox), radio, FALSE, FALSE, 0); + gtk_widget_show(radio); + + for(s=qp_sllist_begin(app->sources);s;s=qp_sllist_next(app->sources)) + { + size_t i; + GtkWidget *label; + + label = gtk_label_new(s->name); + gtk_widget_set_margin_top(label, 8); + gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 8); + gtk_widget_show(label); + + for(i=0;inum_channels;++i) + { + char text[128]; + struct qp_plotter *pr; + + if(i >= s->num_labels) + snprintf(text, 128, "%s[%zu]", s->name, i); + else + snprintf(text, 128, "%s", s->labels[i]); + + radio = gtk_radio_button_new_with_label_from_widget( + GTK_RADIO_BUTTON(radio), text); + pr = qp_malloc(sizeof(*pr)); + pr->qp = qp; + pr->source = s; + pr->radio = radio; + pr->channel = s->channels[i]; + pr->channel_num = i; + pr->is_y = is_y; + g_object_set_data(G_OBJECT(radio), "plotter", pr); + g_signal_connect(G_OBJECT(radio), "clicked", G_CALLBACK(cb_plotter), pr); + gtk_widget_set_margin_top(radio, 0); + gtk_widget_set_margin_bottom(radio, 0); + gtk_box_pack_start(GTK_BOX(vbox), radio, FALSE, FALSE, 0); + gtk_widget_show(radio); + } + } + + gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); + gtk_widget_show(vbox); + return vbox; +} + +static +gboolean cb_selecter_draw(GtkWidget *w, cairo_t *cr, struct qp_win *qp) +{ + struct qp_graph *gr; + GtkAllocation da_a; + GList *l, *list; + struct qp_plot *p; + + if(qp->update_graph_detail) + /* We need to wait for a graph draw + * and then this will be called again. */ + return TRUE; + + gtk_widget_get_allocation(w, &da_a); + + gr = qp->current_graph; + + cairo_set_operator(cr, CAIRO_OPERATOR_CLEAR); + cairo_paint(cr); + cairo_set_operator(cr, CAIRO_OPERATOR_OVER); + + + cairo_set_source_rgba(cr, gr->background_color.r, + gr->background_color.g, gr->background_color.b, + gr->background_color.a); + cairo_paint(cr); + + cairo_set_source_rgba(cr, gr->grid_line_color.r, + gr->grid_line_color.g, gr->grid_line_color.b, + gr->grid_line_color.a); + + l = gtk_container_get_children( + GTK_CONTAINER(qp->graph_detail->selecter_x_vbox)); + /* The first toggle button is the "none" button. */ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(l->data), TRUE); + g_list_free(l); + + + l = list = gtk_container_get_children( + GTK_CONTAINER(qp->graph_detail->selecter_y_vbox)); + /* The first toggle button is the "none" button. */ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(l->data), TRUE); + + + /* Set the X and Y Channel "none" radio buttons. */ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(l->data), TRUE); + + cairo_set_line_cap(cr, CAIRO_LINE_CAP_ROUND); + + /* skip the "none" radio button */ + for(l=list->next;l;l=l->next) + { + GtkAllocation a; + gtk_widget_get_allocation(GTK_WIDGET(l->data), &a); + if(g_object_get_data(G_OBJECT(l->data), "plotter")) + { + cairo_rectangle(cr, 0, a.y - da_a.y + 2, a.height/2, a.height-4); + cairo_rectangle(cr, da_a.width - a.height/2, a.y - da_a.y + 2, + a.height/2, a.height-4); + } + else + cairo_rectangle(cr, 0, a.y - da_a.y, da_a.width, a.height); + } + cairo_fill(cr); + + for(p=qp_sllist_begin(gr->plots);p;p=qp_sllist_next(gr->plots)) + { + int x_y = 0, y_y = 0, width; + double w2; + + for(l=list->next;l;l=l->next) + { + struct qp_plotter *pr; + pr = g_object_get_data(G_OBJECT(l->data), "plotter"); + if(!x_y && pr && qp_channel_equals(pr->channel, p->x)) + { + GtkAllocation a; + gtk_widget_get_allocation(GTK_WIDGET(l->data), &a); + x_y = a.y - da_a.y + a.height/2; + if(y_y) + break; + } + if(!y_y && pr && qp_channel_equals(pr->channel, p->y)) + { + GtkAllocation a; + gtk_widget_get_allocation(GTK_WIDGET(l->data), &a); + y_y = a.y - da_a.y + a.height/2; + if(x_y) + break; + } + } + width = p->line_width; + if(width > 22) + width = 22; + + cairo_set_source_rgba(cr, p->l.c.r, p->l.c.g, p->l.c.b, p->l.c.a); + cairo_set_line_width(cr, width); + cairo_move_to(cr, 0, x_y); + cairo_line_to(cr, da_a.width, y_y); + cairo_stroke(cr); + + if(p->points) + { + width = p->point_size; + if(width > 22) + width = 22; + + w2 = width/2.0; + + cairo_set_source_rgba(cr, p->p.c.r, p->p.c.g, p->p.c.b, p->p.c.a); + cairo_rectangle(cr, da_a.width/3 - w2, x_y + (y_y - x_y)/3 - w2, + width, width); + cairo_rectangle(cr, 2*da_a.width/3 - w2, x_y + 2*(y_y - x_y)/3 - w2, + width, width); + cairo_fill(cr); + } + } + + g_list_free(list); + + if(qp->current_graph->pixbuf_needs_draw) + gtk_widget_queue_draw(qp->current_graph->drawing_area); + + return TRUE; /* TRUE means the event is handled. */ +} + +static +void plot_selecter_make(struct qp_win *qp) +{ + GtkWidget *hbox, *da; + const GdkRGBA rgba = QP_DA_BG_RGBA; + + hbox = qp->graph_detail->selecter_hbox; + + qp->graph_detail->selecter_x_vbox = make_channel_selecter_column(hbox, qp, 0); + + qp->graph_detail->selecter_drawing_area = da = gtk_drawing_area_new(); + gtk_widget_set_size_request(da, 100, -1); + g_signal_connect(G_OBJECT(da), "draw", G_CALLBACK(cb_selecter_draw), qp); + gtk_box_pack_start(GTK_BOX(hbox), da, TRUE, TRUE, 0); + gtk_widget_override_background_color(da, GTK_STATE_FLAG_NORMAL, &rgba); + gtk_widget_show(da); + + qp->graph_detail->selecter_y_vbox = make_channel_selecter_column(hbox, qp, 1); +} + +/* Call this if there are sources added or removed + * and qp->graph_detail is non NULL. */ +static +void plot_selecter_remake(struct qp_win *qp) +{ + GList *l, *list; + + l = list = gtk_container_get_children( + GTK_CONTAINER(qp->graph_detail->selecter_x_vbox)); + for(l=list->next;l;l=l->next) + { + void *pr; + pr = g_object_get_data(G_OBJECT(l->data), "plotter"); + if(pr) + free(pr); + } + g_list_free(list); + + l = list = gtk_container_get_children( + GTK_CONTAINER(qp->graph_detail->selecter_y_vbox)); + + for(l=list->next;l;l=l->next) + { + void *pr; + pr = g_object_get_data(G_OBJECT(l->data), "plotter"); + if(pr) + free(pr); + } + g_list_free(list); + + /* Remove the widgets from the selecter_hbox */ + list = l = gtk_container_get_children( + GTK_CONTAINER(qp->graph_detail->selecter_hbox)); + for(;l && l->data;l=l->next) + gtk_widget_destroy(GTK_WIDGET(l->data)); + g_list_free(list); + + + plot_selecter_make(qp); +} + +static +GtkWidget *make_pretty_header_label(const char *text, GtkBox *vbox) +{ + GtkWidget *hbox, *frame, *label; + + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 14); + gtk_box_set_homogeneous(GTK_BOX(hbox), TRUE); + frame = gtk_frame_new(NULL); + label = gtk_label_new(text); + + gtk_container_add(GTK_CONTAINER(frame), label); + gtk_widget_show(label); + gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 8); + gtk_widget_show(frame); + gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 10); + gtk_widget_show(hbox); + return label; +} + +static +void make_redraw_button(GtkWidget *vbox, struct qp_win *qp) +{ + GtkWidget *button, *hbox; + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 14); + gtk_box_set_homogeneous(GTK_BOX(hbox), TRUE); + button = gtk_button_new_with_label("Redraw Graph"); + g_signal_connect(button, "clicked", G_CALLBACK(cb_redraw), qp); + gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 8); + gtk_widget_show(button); + gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 8); + gtk_widget_show(hbox); +} + +/* Call this when a source is added or removed */ +void qp_app_graph_detail_source_remake(void) +{ + struct qp_win *qp; + ASSERT(app); + ASSERT(app->qps); + + for(qp=qp_sllist_begin(app->qps);qp;qp=qp_sllist_next(app->qps)) + if(qp->graph_detail) + { + plot_list_remake(qp); + plot_selecter_remake(qp); + } +} + +gboolean cb_graph_detail_switch_page(GtkNotebook *notebook, + GtkWidget *page, guint page_num, struct qp_win *qp) +{ + // page_num = 0 Configure Graph 1 Select Channels to Plot 2 Plots List + + if(page_num == 2 && qp->graph_detail && + qp->graph_detail->plot_line_width_slider) /* Plots List */ + { + struct qp_slider **lws, **pss; + struct qp_plot *p; + struct qp_sllist *l; + struct qp_graph *gr; + GtkWidget **lines, **points; + /* Go through 5 lists in one loop. All lists the same length + * which is the number of plots. */ + gr = qp->current_graph; + l = gr->plots; + p = qp_sllist_begin(l); + pss = qp->graph_detail->plot_point_size_slider; + lines = qp->graph_detail->plot_list_button_lines; + points = qp->graph_detail->plot_list_button_points; + + for(lws=qp->graph_detail->plot_line_width_slider;lws && *lws;++lws) + { + int val; + set_slider_entry(*lws, p->line_width); + set_slider_entry(*pss, p->point_size); + val = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(*lines)); + if((val && !p->lines) || (!val && p->lines)) + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(*lines), p->lines); + val = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(*points)); + if((val && !p->points) || (!val && p->points)) + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(*points), p->points); + p=qp_sllist_next(l); + ++pss; + ++lines; + ++points; + } + qp->graph_detail->plot_list_modes |= PL_IS_SHOWING; + plot_list_combo_box_init(gr, qp->graph_detail); + if(gr->draw_value_pick) + set_value_pick_entries(gr, gr->value_pick_x, gr->value_pick_y); + } + else if(qp->graph_detail) + qp->graph_detail->plot_list_modes &= ~PL_IS_SHOWING; + + if(page_num == 0 && qp->graph_detail) + configure_graph_init(qp); + + return TRUE; +} + +/* Make a graph detail main window widget */ +static +void graph_detail_create(struct qp_win *qp) +{ + struct qp_graph *gr; + struct qp_graph_detail *gd; + + ASSERT(qp); + + gr = qp->current_graph; + + ASSERT(!qp->graph_detail); + + gd = (qp->graph_detail = qp_malloc(sizeof(*gd))); + memset(gd, 0, sizeof(*gd)); + + + gd->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); + + gtk_window_set_icon(GTK_WINDOW(gd->window), + gtk_window_get_icon(GTK_WINDOW(qp->window))); + + gtk_window_set_default_size(GTK_WINDOW(gd->window), 600, 490); + + g_signal_connect(G_OBJECT(gd->window), "delete_event", + G_CALLBACK(ecb_close_graph_detail), qp); + g_signal_connect(G_OBJECT(gd->window), "key-press-event", + G_CALLBACK(ecb_key_press), qp); + + { + GtkWidget *notebook; + + notebook = gtk_notebook_new(); + gd->notebook = notebook; + g_object_set(G_OBJECT(notebook), "scrollable", TRUE, NULL); + + { + /************************************************************************* + * Configure Graph + *************************************************************************/ + + GtkWidget *vbox; + GtkWidget *tab_label; + GtkWidget *hbox; + + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous(GTK_BOX(vbox), FALSE); + + gd->config_label = make_pretty_header_label("Configure Graph", GTK_BOX(vbox)); + + { + GtkWidget *scrollwin; + scrollwin = gtk_scrolled_window_new(gtk_adjustment_new(0,0,0,0,0,0), + gtk_adjustment_new(0,0,0,0,0,0)); + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_box_set_homogeneous(GTK_BOX(hbox), FALSE); + + { + /***************************************************************************** + * Left VBox + *****************************************************************************/ + GtkWidget *ivbox; + ivbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4); + gtk_box_set_homogeneous(GTK_BOX(ivbox), FALSE); + gd->show_container = ivbox; + + { + /****************************************** + * Show check buttons + ******************************************/ + create_show_check_button("Show Grid", + cb_show_grid, qp, ivbox, gr->show_grid); + create_show_check_button("Show Grid Numbers", + cb_show_grid_numbers, qp, ivbox, gr->grid_numbers); + create_show_check_button("Show Lines", + cb_show_lines, qp, ivbox, 1); + create_show_check_button("Show Points", + cb_show_points, qp, ivbox, 1); + } + + { + /****************************************** + * X and Y Scales + ******************************************/ + GtkWidget *combo_box; + gd->x_scale = combo_box = gtk_combo_box_text_new(); + gtk_combo_box_text_insert_text(GTK_COMBO_BOX_TEXT(combo_box), 0, "Different X Scales"); + gtk_combo_box_text_insert_text(GTK_COMBO_BOX_TEXT(combo_box), 1, "Same X Scales"); + g_signal_connect(G_OBJECT(combo_box), "changed", G_CALLBACK(cb_same_x_scale), qp); + gtk_box_pack_start(GTK_BOX(ivbox), combo_box, FALSE, FALSE, 0); + gtk_widget_show(combo_box); + + gd->y_scale = combo_box = gtk_combo_box_text_new(); + gtk_combo_box_text_insert_text(GTK_COMBO_BOX_TEXT(combo_box), 0, "Different Y Scales"); + gtk_combo_box_text_insert_text(GTK_COMBO_BOX_TEXT(combo_box), 1, "Same Y Scales"); + g_signal_connect(G_OBJECT(combo_box), "changed", G_CALLBACK(cb_same_y_scale), qp); + gtk_box_pack_start(GTK_BOX(ivbox), combo_box, FALSE, FALSE, 0); + gtk_widget_show(combo_box); + } + + { + /******************************************** + * Color and Font + ********************************************/ + GtkWidget *grid; + grid = gtk_grid_new(); + gtk_grid_set_row_spacing(GTK_GRID(grid), 3); + gtk_grid_set_column_spacing(GTK_GRID(grid), 10); + { + GtkWidget *label, *picker; + label = gtk_label_new ("Background Color:"); + gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); + gd->background_color_picker = picker = gtk_color_button_new(); + gtk_color_button_set_title(GTK_COLOR_BUTTON(picker), + "Select the Graph Background Color"); + gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(picker), TRUE); + gtk_grid_attach(GTK_GRID(grid), label, 0, 0, 1, 1); + gtk_grid_attach(GTK_GRID(grid), picker, 1, 0, 1, 1); + g_signal_connect(G_OBJECT(picker), "color-set", + G_CALLBACK(cb_background_color), qp); + gtk_widget_show(label); + gtk_widget_show(picker); + + label = gtk_label_new("Grid Lines Color:"); + gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); + gd->grid_color_picker = picker = gtk_color_button_new(); + gtk_color_button_set_title(GTK_COLOR_BUTTON(picker), + "Select the Graph Grid Color"); + gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(picker), TRUE); + gtk_grid_attach(GTK_GRID(grid), label, 0, 1, 1, 1); + gtk_grid_attach(GTK_GRID(grid), picker, 1, 1, 1, 1); + g_signal_connect(G_OBJECT(picker), "color-set", + G_CALLBACK(cb_grid_color), qp); + gtk_widget_show(label); + gtk_widget_show(picker); + + label = gtk_label_new ("Grid Numbers Color:"); + gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); + gd->numbers_color_picker = picker = gtk_color_button_new(); + gtk_color_button_set_title(GTK_COLOR_BUTTON(picker), + "Select the Graph Grid Numbers Color"); + gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(picker), TRUE); + gtk_grid_attach(GTK_GRID(grid), label, 0, 2, 1, 1); + gtk_grid_attach(GTK_GRID(grid), picker, 1, 2, 1, 1); + g_signal_connect(G_OBJECT(picker), "color-set", + G_CALLBACK(cb_grid_numbers_color), qp); + gtk_widget_show(label); + gtk_widget_show(picker); + + label = gtk_label_new ("Grid Numbers Font:"); + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); + gd->font_picker = picker = gtk_font_button_new (); + gtk_font_button_set_title(GTK_FONT_BUTTON(picker), + "Select the Graph Grid Numbers Font"); + gtk_grid_attach(GTK_GRID(grid), label, 0, 3, 1, 1); + gtk_grid_attach(GTK_GRID(grid), picker, 1, 3, 1, 1); + g_signal_connect(G_OBJECT(picker), "font-set", + G_CALLBACK(cb_grid_font), qp); + gtk_widget_show(label); + gtk_widget_show(picker); + } + + gtk_box_pack_start(GTK_BOX(ivbox), grid, FALSE, FALSE, 0); + gtk_widget_show(grid); + } + + + gtk_box_pack_start(GTK_BOX(hbox), ivbox, FALSE, FALSE, 10); + gtk_widget_show(ivbox); + + + /***************************************************************************** + * Right VBox + *****************************************************************************/ + ivbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 2); + gtk_box_set_homogeneous(GTK_BOX(ivbox), FALSE); + { + /*********************************************** + * Int Number Sliders + ***********************************************/ + gd->line_width_slider = create_slider_input( + "Plots Line Width", &ivbox, 1, 20, 200); + + gd->point_size_slider = create_slider_input( + "Plots Point Size", &ivbox, 1, 20, 200); + + gd->grid_line_width_slider = create_slider_input( + "Grid Line Width", &ivbox, 1, 20, 200); + + gd->grid_x_line_space_slider = create_slider_input( + "Grid X Line Space", &ivbox, 30, 600, 2000); + + gd->grid_y_line_space_slider = create_slider_input( + "Grid Y Line Space", &ivbox, 30, 600, 2000); + } + + gtk_box_pack_start(GTK_BOX(hbox), ivbox, FALSE, FALSE, 10); + gtk_widget_show(ivbox); + + /*****************************************************************************/ + } + + gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrollwin), hbox); + gtk_widget_show(hbox); + gtk_box_pack_start(GTK_BOX(vbox), scrollwin, TRUE, TRUE, 8); + gtk_widget_show(scrollwin); + + make_redraw_button(vbox, qp); + } + + + tab_label = gtk_label_new("Configure Graph"); + gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, tab_label); + + + gtk_widget_show(tab_label); + gtk_widget_show(vbox); + } + { + /************************************************************************* + * Select Plots + *************************************************************************/ + + GtkWidget *vbox, *tab_label, *scrollwin, *label, *hbox; + + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous(GTK_BOX(vbox), FALSE); + + make_pretty_header_label("Select Channels to Plot or Unplot", GTK_BOX(vbox)); + + + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_box_set_homogeneous(GTK_BOX(hbox), FALSE); + label = gtk_label_new("X Channel"); + gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 20); + gtk_widget_show(label); + label = gtk_label_new("Y Channel"); + gtk_box_pack_end(GTK_BOX(hbox), label, FALSE, FALSE, 30); + gtk_widget_show(label); + gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); + gtk_widget_show(hbox); + + scrollwin = gtk_scrolled_window_new(gtk_adjustment_new(0,0,0,0,0,0), + gtk_adjustment_new(0,0,0,0,0,0)); + { + GtkWidget *box; + gd->selecter_hbox = box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 2); + gtk_box_set_homogeneous(GTK_BOX(box), FALSE); + plot_selecter_make(qp); + gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrollwin), box); + gtk_widget_show(box); + } + gtk_box_pack_start(GTK_BOX(vbox), scrollwin, TRUE, TRUE, 8); + gtk_widget_show(scrollwin); + + //make_redraw_button(vbox, qp); + + gtk_widget_show(vbox); + tab_label = gtk_label_new("Select Channels to Plot"); + gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, tab_label); + gtk_widget_show(tab_label); + + } + + { + /************************************************************************* + * Plots List + *************************************************************************/ + + GtkWidget *vbox, *tab_label, *scrollwin; + + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous(GTK_BOX(vbox), FALSE); + + { + GtkWidget *combo_box, *hbox; + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_box_set_homogeneous(GTK_BOX(hbox), TRUE); + gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 10); + + gd->plot_list_combo_box = combo_box = gtk_combo_box_text_new(); + gtk_widget_set_size_request(combo_box, 260, -1); + gd->plot_list_modes = 0; + gtk_combo_box_text_insert_text(GTK_COMBO_BOX_TEXT(combo_box), 0, "Pointer Value"); + g_signal_connect(G_OBJECT(combo_box), "changed", G_CALLBACK(cb_plot_list_mode), qp); + gtk_box_pack_start(GTK_BOX(hbox), combo_box, FALSE, FALSE, 0); + //gtk_widget_set_margin_top(combo_box, 26); + //gtk_widget_set_margin_bottom(combo_box, 14); + gtk_widget_show(combo_box); + gtk_widget_show(hbox); + } + + + scrollwin = gtk_scrolled_window_new(gtk_adjustment_new(0,0,0,0,0,0), + gtk_adjustment_new(0,0,0,0,0,0)); + { + GtkWidget *box; + gd->plot_list_hbox = box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_box_set_homogeneous(GTK_BOX(box), FALSE); + plot_list_make(qp); + gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrollwin), box); + gtk_widget_show(box); + } + gtk_box_pack_start(GTK_BOX(vbox), scrollwin, TRUE, TRUE, 8); + gtk_widget_show(scrollwin); + + + make_redraw_button(vbox, qp); + + tab_label = gtk_label_new("Plots List and Values"); + gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, tab_label); + + gtk_widget_show(tab_label); + gtk_widget_show(vbox); + } + + g_signal_connect(G_OBJECT(notebook), "switch-page", + G_CALLBACK(cb_graph_detail_switch_page), qp); + + gtk_container_add(GTK_CONTAINER(qp->graph_detail->window), notebook); + gtk_widget_show(notebook); + } + + qp_win_graph_detail_init(qp); +} + +static +void graph_detail_show(struct qp_win *qp) +{ + ASSERT(qp); + + if(!qp->graph_detail) + graph_detail_create(qp); + + qp_win_graph_detail_init(qp); + + gtk_widget_show(qp->graph_detail->window); + gtk_window_present(GTK_WINDOW(qp->graph_detail->window)); +} + +/* We let the view menu be the holder of the state of whether + * or not the graph_detail should be showing or not, instead + * of declaring another variable. */ +void +cb_view_graph_detail(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + qp = data; + + if(_cb_view_graph_detail_reenter) + return; + + _cb_view_graph_detail_reenter = 1; + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_graph_detail))) + graph_detail_show(qp); + else + graph_detail_hide(qp); + + _cb_view_graph_detail_reenter = 0; +} + +void +cb_graph_detail_show_hide(GtkWidget *w, gpointer data) +{ + struct qp_win *qp; + qp = data; + + if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(qp->view_graph_detail))) + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(qp->view_graph_detail), FALSE); + else + gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(qp->view_graph_detail), TRUE); +} + + diff -Nru quickplot-0.8.15/Graph_drawAutoGrid.cpp quickplot-0.9.11/Graph_drawAutoGrid.cpp --- quickplot-0.8.15/Graph_drawAutoGrid.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/Graph_drawAutoGrid.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,261 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#include - -#include -#include - - -using namespace Gtk; -#include "value_t.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "Globel.h" - - - -#define ABSVAL(x) (((x) > ((value_t) 0.0)) ? (x) : (-(x))) -#define TICKMIN 5.0 -#define TICKMAX 8.0 - -#define SMALL_NUM ABSVAL(MINVALUE) -#define ZERO ((value_t) 0.0) -#define ONE ((value_t) 1.0) -#define TEN ((value_t) 10.0) - - -// Auto draw a x-y grid. The code in this method is not too pretty. -// This will draw a x-y grid with value labels on each line. This -// grid keeps somewhat even spacing when the Graph window resizes. -// The x-y values of the grid lines try to stay "nice". - -void Graph::drawAutoGrid(Glib::RefPtr _win, - Glib::RefPtr _gc) -{ - // check that the plot scales are consistant with this Graph. - (*begin())->preDrawCheckResize(); - - value_t scaleX = (*begin())->currentZoomLevel->scaleX; - value_t shiftX = (*begin())->currentZoomLevel->shiftX; - value_t scaleY = (*begin())->currentZoomLevel->scaleY; - value_t shiftY = (*begin())->currentZoomLevel->shiftY; - - // Find the x,y max and min values in the window. - value_t xmax = (get_width() - shiftX)/scaleX; - value_t xmin = (0 - shiftX)/scaleX; - value_t ymax = (0 - shiftY)/scaleY; - value_t ymin = (get_height() - shiftY)/scaleY; - - - /***************************************************/ - /* get the x value lines calculated */ - /***************************************************/ - - //printf("get_width()=%d xmin=%g xmax=%g\n", get_width(), xmin, xmax); - - value_t delta = (xmax - xmin)/(2 + ((value_t) get_width()/gridXLineSpace)); - - //printf("xdelta=%g\n", delta); - - int delta_p = (int) log10(ABSVAL(delta) > SMALL_NUM ? ABSVAL(delta) : SMALL_NUM); - - if(delta_p <= 0) delta_p--; - - // printf("xdelta_p=%d\n", delta_p); - - value_t xpow_part = POW(TEN, delta_p); - { - // strip off the round-off error off of xpow_part. - char s[16]; - //for example: xpow_part=0.20005465 --> s=0.20 --> ypow_part=0.2000000 - sprintf(s, TWO_DIGIT_FORMAT, xpow_part); - sscanf(s, SCAN_FORMAT, &xpow_part); - //printf("s=%s xpow_part=%.15g\n",s, xpow_part); - } - - int64_t xmin_mat = (int64_t) (xmin/xpow_part); - int64_t xmax_mat = (int64_t) (xmax/xpow_part); - - //printf(" xmin = %lldx10%+d xmax = %lldx10%+d\n", - // xmin_mat, delta_p, xmax_mat, delta_p); - - int64_t xinc; - - if(get_width() > gridXLineSpace) - xinc = (int64_t) ((xmax_mat-xmin_mat)/((value_t) get_width()/gridXLineSpace)); - else - xinc = xmax_mat-xmin_mat; - - //printf(" xinc=%lld\n", xinc); - - // round to 1, 2, 5, times 10^N - if (xinc < (int64_t) 2) xinc = 1; - else if(xinc < (int64_t) 5) xinc = 2; - else if(xinc < (int64_t) 10) xinc = 5; - else if(xinc < (int64_t) 20) xinc = 10; - else if(xinc < (int64_t) 50) xinc = 20; - else if(xinc < (int64_t) 100) xinc = 50; - else if(xinc < (int64_t) 200) xinc = 100; - else xinc = 200; - - int64_t xstart = xmin_mat; - - //printf("xinc=%lld\n", xinc); - - if(xmin_mat > (int64_t) 0 && xmin_mat%xinc) - xstart -= xmin_mat%xinc; - else if(xmin_mat < (int64_t) 0 && xmin_mat%xinc) - xstart -= xinc + xmin_mat%xinc; - - - /***************************************************/ - /* get the y value lines calculated */ - /***************************************************/ - - delta = (ymax - ymin)/(2 + ((value_t) get_height()/gridYLineSpace)); - - delta_p = (int) log10(ABSVAL(delta) > SMALL_NUM ? ABSVAL(delta) : SMALL_NUM); - - if(delta_p <= 0) delta_p--; - - //printf("ydelta_p=%d\n", delta_p); - - value_t ypow_part = POW(TEN, delta_p); - { - // strip off the round-off error off of ypow_part. - char s[16]; - //for example: ypow_part=0.20005465 --> s=0.20 --> ypow_part=0.2000000 - sprintf(s, "%.2g", ypow_part); - sscanf(s, "%lf", &ypow_part); - } - - int64_t ymin_mat = (int64_t) (ymin/ypow_part); - int64_t ymax_mat = (int64_t) (ymax/ypow_part); - - //printf(" ymin = %lldx10%+d ymax = %lldx10%+d\n", - // ymin_mat, delta_p, max_mat, delta_p); - - int64_t yinc; - - if(get_height() > gridYLineSpace) - yinc = (int64_t) ((ymax_mat-ymin_mat)/((value_t) get_height()/gridYLineSpace)); - else - yinc = ymax_mat-ymin_mat; - - if (yinc < (int64_t) 2) yinc = 1; - else if(yinc < (int64_t) 5) yinc = 2; - else if(yinc < (int64_t) 10) yinc = 5; - else if(yinc < (int64_t) 20) yinc = 10; - else if(yinc < (int64_t) 50) yinc = 20; - else if(yinc < (int64_t) 100) yinc = 50; - else if(yinc < (int64_t) 200) yinc = 100; - else yinc = 200; - - - int64_t ystart = ymin_mat; - - //printf("yinc=%lld\n", yinc); - - if(ymin_mat > (int64_t) 0 && ymin_mat%yinc) - ystart -= ymin_mat%yinc; - else if(ymin_mat < (int64_t) 0 && ymin_mat%yinc) - ystart -= yinc + ymin_mat%yinc; - - - /******************************************************/ - /* find where to put the value text for x and y lines */ - /******************************************************/ - - int x_ylinetext = (int) ((xstart + xinc*0.2)*xpow_part*scaleX + shiftX); - if(x_ylinetext < 3) - x_ylinetext = (int) ((xstart + xinc*1.2)*xpow_part*scaleX + shiftX); - - int y_xlinetext = (int) ((ystart + yinc*0.5)*ypow_part*scaleY + shiftY); - if(y_xlinetext > get_height() - 20) - y_xlinetext = (int) ((ystart + yinc*1.5)*ypow_part*scaleY + shiftY); - - - - /****************************************************/ - /* setup for drawing */ - /****************************************************/ - - _gc->set_foreground(gridColor); - _gc->set_line_attributes(gridLineWidth, Gdk::LINE_SOLID, - Gdk::CAP_ROUND, Gdk::JOIN_ROUND); - if(!pangolayout && showGridNumbers) - { - pangolayout = create_pango_layout(""); - } - - - /***************************************************/ - /* draw the y lines */ - /***************************************************/ - - int64_t i; - - - for(i=ystart;i<=ymax_mat;i += yinc) - { - char str[64]; - snprintf(str,64, GRID_PRINT_FORMAT, i*ypow_part); - //snprintf(str,64, "%*.*g", digit_count,digit_count, i*ypow_part); - //printf(GRID_PRINT_FORMAT" ", str); - int y = (int) (i*ypow_part*scaleY + shiftY); - if(showGridNumbers) - { - pangolayout->set_text((const char *) str); - _win->draw_layout(_gc, x_ylinetext, y+gridLineWidth/2, pangolayout); - } - - _win->draw_line(_gc, 0, y, get_width(), y); - } - //printf("\n"); - - - /***************************************************/ - /* draw the x lines */ - /***************************************************/ - - for(i=xstart;i<=xmax_mat;i += xinc) - { - char str[64]; - snprintf(str,64, GRID_PRINT_FORMAT, i*xpow_part); - - //printf(" xpow_part=%.15g\n",xpow_part); - - //printf(GRID_PRINT_FORMAT" ", i*xpow_part); - int x = (int) (i*xpow_part*scaleX + shiftX); - - if(showGridNumbers) - { - pangolayout->set_text((const char *) str); - _win->draw_layout(_gc, x+6+gridLineWidth/2, y_xlinetext, pangolayout); - } - - _win->draw_line(_gc, x, 0, x, get_height()); - } - //printf("\n"); -} diff -Nru quickplot-0.8.15/graph_draw.c quickplot-0.9.11/graph_draw.c --- quickplot-0.8.15/graph_draw.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/graph_draw.c 2011-12-20 13:29:54.000000000 +0000 @@ -0,0 +1,1045 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ +#include +#include +#include + +#include "quickplot.h" + +#include "config.h" +#include "spew.h" +#include "debug.h" +#include "list.h" +#include "callbacks.h" +#include "channel.h" +#include "channel_double.h" +#include "qp.h" +#include "plot.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +static +inline +void x11_DrawLine(struct qp_graph *gr, + int *new_line, + double from_x, double from_y, + double to_x, double to_y) +{ + /* This draws a line at least 10 times faster than Cairo */ + XDrawLine(gr->x11->dsp, gr->x11->pixmap, gr->x11->gc, + INT(from_x), INT(from_y), INT(to_x), INT(to_y)); +} + +/* + * This must be FAST! + * + * terminate is a boolean 1 -> terminate the line and next time + * start a new line + * + * new_line is a boolean that tells us if the last time this was + * called the line terminated, and we need to start a + * new line. This must be initialized to 1 on the first call. + */ + +static +inline +void cairo_DrawLine(struct qp_graph *gr, + int *new_line, + double from_x, double from_y, + double to_x, double to_y) +{ +/* Tests show that defining this EXTRA_CULL makes + * drawing a little faster when there are greater + * than 1,000,000 points. But this speed + * increase is not significant. Just like 0.25 + * seconds out of 4 seconds. We think simple is + * better. It appears that the cairo line drawing + * is already doing something to give good results. */ +//#define EXTRA_CULL +#ifdef EXTRA_CULL + /* yes this is not thread safe */ + static int prev_to_x = INT_MAX, prev_to_y = INT_MAX; + int x, y; +#endif + + /* If numbers of out of range we need to know. If the line width + * is too large this will not work. */ + ASSERT(to_x > -50. && to_x < 3.0*app->root_window_width + 50); + ASSERT(from_x > -50. && from_x < 3.0*app->root_window_width + 50); + ASSERT(to_y > -50. && to_y < 3.0*app->root_window_height + 50); + ASSERT(from_y > -50. && from_y < 3.0*app->root_window_height + 50); + + + if(*new_line) + { + /* Tests show that casting to int makes drawing faster in cairo */ + cairo_move_to(gr->cr, INT(from_x), INT(from_y)); +#ifdef EXTRA_CULL + /* reset the prev_to values */ + prev_to_x = INT_MAX; + prev_to_y = INT_MAX; +#endif + } + +#ifdef EXTRA_CULL + x = INT(to_x); + y = INT(to_y); + /* Do not draw if we are drawing to the same point again. + * This is slower for small data files, but a big gain + * in speed for large data files. */ + if(prev_to_x != x || prev_to_y != y) + cairo_line_to(gr->cr, x, y); + prev_to_x = x; + prev_to_y = y; +#else + cairo_line_to(gr->cr, INT(to_x), INT(to_y)); +#endif + + + *new_line = 0; +} + + +/* + * This must be FAST! + * + * new_line is a boolean that tells us if the last time this was + * called the line terminated, and we need to start a + * new line. This must be initialized to 1 on the first call. + * + * Quickplot must cull when drawing lines, after zooming, + * so that we do not try to draw lines "out of bounds". + * Like for example, after zooming we may have points that + * are way out side the drawing area. Drawing lines with + * end points outside the drawing area will/may give undefined + * results. We have seen examples without culling where + * the lines look like they are drawn from random end points, + * when that was clearly not what we wanted to see. Even + * though cario uses doubles it does not map end points of + * lines that are outside the drawing area to edges where + * we would expect to see them, at least not all the time. + * + * Besides that, it turns out that culling out lines + * is faster than trying to draw them. Which is what + * you would expect. + * + * In this function, we find the points on the drawing area + * edges where the line would intersect and draw lines "in + * bounds" to represent lines that would otherwise be drawn + * off the drawing area. + */ +static +inline +void CullDrawLine(struct qp_graph *gr, + + int *new_line, /* if (*new_line) then we start a + * new line, else we continue the last + * line */ + + /* We treat the drawing area (x0,y0) to (x1,y1) like it is + * (minusLWidthP1,minusLWidthP1) to (widthPlus,heightPlus) + * though the real drawing area is smaller we use a larger + * area in order to catch edges of thick lines that may + * pass through the edge of the real drawing area. + */ + double minusLWidthP1, double widthPlus, double heightPlus, + + /* fromX, fromY and toX, toY are in pixels that define + * a line that we wish to draw. But if they are + * not in the drawing region we must find the line that + * they would make though the drawing region by finding + * side intersection points. You can not draw lines from + * points like (x,y) 10, -1e10 to 10, 1e10 but we can find + * edge intersections of a line that we can draw from. + * The number 1e10 is to large to be used to draw lines + * with. */ + double fromX, double fromY, + double toX, double toY) +{ + if(!is_good_double(fromX) || !is_good_double(fromY) || + !is_good_double(toX) || !is_good_double(toY)) + { + /* We need to do this uncommon case first because bad + * values can not be used well in the code that follows. */ + *new_line = 1; + return; + } + + + // The common cases come first. + + // If both points are in the drawing area + if(fromX > minusLWidthP1 && fromX < widthPlus && + toX > minusLWidthP1 && toX < widthPlus && + fromY > minusLWidthP1 && fromY < heightPlus && + toY > minusLWidthP1 && toY < heightPlus) + { + gr->DrawLine(gr, new_line, fromX, fromY, toX, toY); + return; + } + + + // Do some quick Culls for both points way off to one side: right, + // left, up, or down. This will Cull MOST points out! Speed is + // the result. + + //points all on right side, + if((fromX >= widthPlus && toX >= widthPlus) || + // on the left side, + (fromX <= minusLWidthP1 && toX <= minusLWidthP1) || + // on top (up), + (fromY <= minusLWidthP1 && toY <= minusLWidthP1) || + // or on bottom (down) + (fromY >= heightPlus && toY >= heightPlus)) + { + /* we start over the next line draw */ + *new_line = 1; + return; // Culled + } + + + // now both points are not in the drawing area (maybe one point is). + // Below we refer to the line formed by the two points fromX, fromY and + // toX, toY as "line" or "the line" ... + + + /* close to horizontal lines are more common than close + * to vertical lines */ + + + if(ABSVAL(toX - fromX) > 0.01) + { + double m; /* slope of the line */ + m = (toY - fromY)/(toX - fromX); + + if(ABSVAL(m) < 1.0e+5) + { + /* The slope is not large */ + double a; + a = fromY - m * fromX; + + /* the equation for the line is: Y = m * X + a */ + + if(fromX < minusLWidthP1) + { + fromX = minusLWidthP1; + fromY = m * fromX + a; + } + else if(fromX > widthPlus) + { + fromX = widthPlus; + fromY = m * fromX + a; + } + + if(toX < minusLWidthP1) + { + toX = minusLWidthP1; + toY = m * toX + a; + } + else if(toX > widthPlus) + { + toX = widthPlus; + toY = m * toX + a; + } + + if((fromY < minusLWidthP1 && toY < minusLWidthP1) + || + (fromY > heightPlus && toY > heightPlus)) + { + /* The line is above or below the drawing area */ + *new_line = 1; + return; // Culled + } + + if(toY < minusLWidthP1) + { + toY = minusLWidthP1; + toX = (toY - a)/m; + } + else if(toY > heightPlus) + { + toY = heightPlus; + toX = (toY - a)/m; + } + + if(fromY < minusLWidthP1) + { + fromY = minusLWidthP1; + fromX = (fromY - a)/m; + } + else if(fromY > heightPlus) + { + fromY = heightPlus; + fromX = (fromY - a)/m; + } + + gr->DrawLine(gr, new_line, fromX, fromY, toX, toY); + return; + } + } + + + /* Now we do the more vertical line case */ + + if(ABSVAL(toY - fromY) > 0.01) + { + double u; /* inverse slope of the line */ + u = (toX - fromX)/(toY - fromY); + + if(ABSVAL(u) < 1.0e5) + { + /* The inverse slope is not too large */ + double b; + b = fromX - u * fromY; + + /* the equation for the line is: X = u * Y + b */ + + if(fromY < minusLWidthP1) + { + fromY = minusLWidthP1; + fromX = u * fromY + b; + } + else if(fromY > heightPlus) + { + fromY = heightPlus; + fromX = u * fromY + b; + } + + if(toY < minusLWidthP1) + { + toY = minusLWidthP1; + toX = u * toY + b; + } + else if(toY > heightPlus) + { + toY = heightPlus; + toX = u * toY + b; + } + + if((fromX < minusLWidthP1 && toX < minusLWidthP1) + || + (fromX > widthPlus && toX > widthPlus)) + { + /* The line is to the left or right of the drawing area */ + *new_line = 1; + return; // Culled + } + + /* The line goes through the drawing area */ + + if(toX < minusLWidthP1) + { + toX = minusLWidthP1; + toY = (toX - b)/u; + } + else if(toX > widthPlus) + { + toX = widthPlus; + toY = (toX - b)/u; + } + + if(fromX < minusLWidthP1) + { + fromX = minusLWidthP1; + fromY = (fromX - b)/u; + } + else if(fromX > widthPlus) + { + fromX = widthPlus; + fromY = (fromX - b)/u; + } + + gr->DrawLine(gr, new_line, fromX, fromY, toX, toY); + return; + } + } + + /* The points are close to each other and not in the + * drawing area */ + + *new_line = 1; + // Culled +} + +static inline +void draw_grid(struct qp_graph *gr, cairo_t *cr, + double xscale, double xshift, double yscale, double yshift, + int width, int height) +{ + if((gr->same_x_scale || gr->same_y_scale) && + qp_sllist_length(gr->plots) > 0 && + gr->show_grid) + { + struct qp_plot *p; + p = qp_sllist_first(gr->plots); + ASSERT(p); + /* We need to initialize the plot scaling for this + * graph grid drawing */ + qp_plot_scale(p, xscale, xshift, yscale, yshift); + qp_graph_grid_draw(gr, p, cr, width, height); + } +} + + +/* width, height give the size of the thing being drawn + * on in pixels + * + * x, y draw at x, y on this cairo surface. + * translate the plots, in pixels, which + * is where the origin is on the + * width by height surface + * + * the graph (gr) keep a shift and scale that map the plot + * data from qp_plot_begin_x() and qp_plot_nextx() and etc + * from an square area of in doubles x,y [0,0 to 1,1] to an + * area that is the size of the drawing_area in pixels like + * x,y [0,0 to 800,600] + * + * width, height is not necessarily the same size as the + * drawing_area widget, likely it is larger + * like 2000 by 3000 + */ +static inline +void graph_draw(struct qp_graph *gr, cairo_t *cr, + int x, int y, int width, int height) +{ + struct qp_plot *p; + /* These doubles will hold the net result of zoom and pixel scaling + * the zoom, gr->z, changes as the user zooms in and out and the + * pixel scaling changes with the drawing area widget size allocation */ + double xscale, xshift, yscale, yshift; + xscale = gr->xscale*gr->z->xscale; + yscale = gr->yscale*gr->z->yscale; + xshift = gr->xscale*gr->z->xshift + gr->xshift + x; + yshift = gr->yscale*gr->z->yshift + gr->yshift + y; + + if(gr->x11 && gr->background_color.a < 0.05) + { + /* For some reason when drawing with X11 + * and having mostly-transparent background the + * drawing seems to fail to cover the old + * drawing. Painting the whole area to + * start with seems to fix it. */ + cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); + cairo_set_source_rgba(cr, 1,1,1,1.0); + cairo_paint(cr); + } + + cairo_set_operator(cr, CAIRO_OPERATOR_CLEAR); + cairo_paint(cr); + cairo_set_operator(cr, CAIRO_OPERATOR_OVER); + + cairo_set_source_rgba(cr, gr->background_color.r, + gr->background_color.g, gr->background_color.b, + gr->background_color.a); + + cairo_paint(cr); + + cairo_set_line_cap(cr, CAIRO_LINE_CAP_ROUND); + cairo_set_line_join(cr, CAIRO_LINE_JOIN_ROUND); + + + if(gr->qp->shape) + cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE); + else + cairo_set_antialias(cr, CAIRO_ANTIALIAS_DEFAULT); + + + draw_grid(gr, cr, xscale, xshift, yscale, yshift, width, height); + + if(gr->show_grid && (gr->same_x_scale || gr->same_y_scale) && + qp_sllist_length(gr->plots) > 0) + { + struct qp_plot *p; + p = (struct qp_plot *)qp_sllist_first(gr->plots); + /* We need to initialize the plot scaling for this + * graph grid drawing */ + qp_plot_scale(p, xscale, xshift, yscale, yshift); + qp_graph_grid_draw(gr, p, cr, width, height); + } + + if(gr->x11) + { + /* Get ready to draw with X11 API calls now */ + cairo_surface_flush(cairo_get_target(cr)); + gr->DrawLine = x11_DrawLine; + } + else + { + gr->DrawLine = cairo_DrawLine; + gr->cr = cr; + } + + p = (struct qp_plot *) qp_sllist_begin(gr->plots); + + while(p) + { + double x_val, y_val; + + if(p->lines) + { + /* draw lines */ + + double minusLineWidthPlus1, widthPlus, heightPlus; + double prev_x, prev_y; + int new_line = 1; + + minusLineWidthPlus1 = - p->line_width - 1; + widthPlus = width + p->line_width; + heightPlus = height + p->line_width; + + if(gr->x11) + { + XSetLineAttributes(gr->x11->dsp, gr->x11->gc, INT(p->line_width), + LineSolid, CapRound, JoinRound); + XSetForeground(gr->x11->dsp, gr->x11->gc, p->l.x); + } + else + { + cairo_set_source_rgba(cr, p->l.c.r, p->l.c.g, p->l.c.b, p->l.c.a); + cairo_set_line_width(cr, p->line_width); + } + + if(qp_plot_begin(p, xscale, xshift, yscale, yshift, + INT(minusLineWidthPlus1), INT(minusLineWidthPlus1), + INT(widthPlus), INT(heightPlus), + &prev_x, &prev_y)) + { + /* We start with a good point in prev_x, prev_y */ + while((!is_good_double(prev_x) || !is_good_double(prev_y)) && + qp_plot_next(p, &prev_x, &prev_y)); + + while(qp_plot_next(p, &x_val, &y_val)) + { + CullDrawLine(gr, &new_line, + minusLineWidthPlus1, widthPlus, heightPlus, + prev_x, prev_y, x_val, y_val); + if(p->gaps) + { + prev_x = x_val; + prev_y = y_val; + } + else /* no gaps */ + { + /* do not lift up the pen if no gaps */ + if(is_good_double(x_val) && is_good_double(y_val)) + { + /* This may be any number of points from before + * if there where an NAN or something. */ + prev_x = x_val; + prev_y = y_val; + } + if(new_line) + new_line = 0; + } + } + + if(!gr->x11) + cairo_stroke(cr); + } + } + + if(p->points) + { + double point_w, point_w2; + int ipoint_w; + double point_min, point_xmax, point_ymax; + point_w2 = (point_w = p->point_size)/2; + point_min = - point_w2 - 2; + point_xmax = width + point_w2 + 1; + point_ymax = height + point_w2 + 1; + ipoint_w = INT(point_w); + + if(gr->x11) + XSetForeground(gr->x11->dsp, gr->x11->gc, p->p.x); + else + cairo_set_source_rgba(cr, p->p.c.r, p->p.c.g, p->p.c.b, p->p.c.a); + + + /* Putting the point width offset (point_w2) into + * the plot data reader object is faster than adding + * the point width offset in the tight loop in the + * cairo_rectangle() call where we would add it + * every loop interation. */ + + if(qp_plot_begin(p, xscale, xshift - point_w2, + yscale, yshift - point_w2, + INT(point_min), INT(point_min), + INT(point_xmax), INT(point_ymax), + &x_val, &y_val)) + { + int prev_x = INT_MAX, prev_y = INT_MAX; + do + { + //DEBUG("%g %g\n", x_val, y_val); + if(is_good_double(x_val) && is_good_double(y_val) && + /* point culling is easy */ + point_min < x_val && point_min < y_val && + x_val < point_xmax && y_val < point_ymax) + { + int x, y; + x = INT(x_val); + y = INT(y_val); + /* speed up point drawing by not drawing points + * that are on top of adjacent points more than once. + * This can be the biggest time saver when there are + * over 100,000 points. Note this assumes that + * points that as close in x,y space are adjacent + * in the series (channel). This will slow down + * plotting of small files, but not enough that + * we can measure. Tests show that cairo rectangle + * drawing is much slower than line drawing. Cairo + * does not appear to be opimised for small rectangle + * drawing. Single pixel drawing in cairo uses + * 1x1 rectangles, which are no faster to draw. + * We convert the doubles to ints in the call to + * cairo_rectangle() just because it speeds up + * drawing. */ + if(prev_x != x || prev_y != y) + { + if(gr->x11) + XFillRectangle(gr->x11->dsp, gr->x11->pixmap, + gr->x11->gc, x, y, ipoint_w, ipoint_w); + else + cairo_rectangle(cr, x, y, point_w, point_w); + } + prev_x = x; + prev_y = y; + } + } while(qp_plot_next(p, &x_val, &y_val)); + + if(!gr->x11) + cairo_fill(cr); + } + } + /* The mouse pointer value picker needs this to be reset from the + * - point_w2 offset above. Needed for all plots when + * using the value picker GUI */ + qp_plot_scale(p, xscale, xshift, yscale, yshift); + + p = (struct qp_plot *) qp_sllist_next(gr->plots); + } +} + +static inline +void draw_from_pixbuf(cairo_t *cr, struct qp_graph *gr, + int gr_pixel_width, int gr_pixel_height) +{ + /* This is where we draw from the back buffer to another buffer */ + cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); + cairo_set_source_surface(cr, gr->pixbuf_surface, + -INT(gr->pixbuf_x+gr->grab_x), -INT(gr->pixbuf_y+gr->grab_y)); + cairo_rectangle(cr, 0, 0, gr_pixel_width, gr_pixel_height); + cairo_fill(cr); + + // debuging by seeing a PNG of what we drew + //cairo_surface_write_to_png(cairo_get_target(gdk_cr), "y.png"); +} + +static +gboolean idle_callback(gpointer data) +{ + struct qp_graph *gr; + gr = (struct qp_graph*) data; + gr->waiting_to_resize_draw = 0; + gtk_widget_queue_draw(gr->drawing_area); + //WARN("QUEUED the draw\n"); + return FALSE; +} + +static +inline +void draw_zoom_box(cairo_t *gdk_cr, struct qp_graph *gr) +{ + cairo_set_operator(gdk_cr, CAIRO_OPERATOR_OVER); + cairo_set_source_rgba(gdk_cr, 0.84, 0.9, 1.0, 0.5); + cairo_rectangle(gdk_cr, gr->z_x, gr->z_y, gr->z_w, gr->z_h); + cairo_fill(gdk_cr); + gr->draw_zoom_box = 2; +} + +static inline +void draw_value_pick_line(cairo_t *gdk_cr, struct qp_graph *gr, + int width, int height) +{ + int x, y, mode; + mode = gr->value_mode & 3; + x = gr->value_pick_x - gr->pixbuf_x - gr->grab_x; + y = gr->value_pick_y - gr->pixbuf_y - gr->grab_y; + + cairo_set_operator(gdk_cr, CAIRO_OPERATOR_OVER); + cairo_set_line_width(gdk_cr, 4); + cairo_set_source_rgba(gdk_cr, 0.94, 0.94, 1.0, 0.65); + cairo_move_to(gdk_cr, x, 0); + cairo_line_to(gdk_cr, x, height); + if(!mode) + { + cairo_move_to(gdk_cr, 0, y); + cairo_line_to(gdk_cr, width, y); + } + cairo_stroke(gdk_cr); + cairo_set_line_width(gdk_cr, 2); + cairo_set_source_rgba(gdk_cr, 0.004, 0.004, .004, 0.7); + cairo_move_to(gdk_cr, x, 0); + cairo_line_to(gdk_cr, x, height); + if(!mode) + { + cairo_move_to(gdk_cr, 0, y); + cairo_line_to(gdk_cr, width, y); + } + cairo_stroke(gdk_cr); +} + + +static inline +cairo_region_t * +get_cairo_region_create_from_surface(struct qp_graph *gr, + cairo_surface_t *surface, int width, int height) +{ + /* TODO: this is a resource pig. Make it better. */ + + cairo_rectangle_int_t rect; + cairo_surface_t *image; + cairo_region_t *region; + cairo_t *cr; + uint32_t *data, bg; + int x, y, stride; + + if(!gr->x11) + /* Creates region that covers the area where the + * given surface is more than 50% opaque. + * The below code copies this method. This GDK + * code is a pig too. */ + return gdk_cairo_region_create_from_surface(surface); + + if(!gr->x11->background_set) + { + /* We need to see what the background color is when it is + * applied to an image. A small image. */ + image = cairo_image_surface_create(CAIRO_FORMAT_RGB24, 1, 1); + cr = cairo_create(image); + cairo_set_source_rgba(cr, gr->background_color.r, + gr->background_color.g, gr->background_color.b, + gr->background_color.a); + cairo_paint (cr); + cairo_destroy (cr); + data = (void *) cairo_image_surface_get_data(image); + gr->x11->background = (data[0] & 0x00FFFFFF); + cairo_surface_destroy(image); + gr->x11->background_set = 1; + } + + bg = gr->x11->background; + + image = cairo_image_surface_create(CAIRO_FORMAT_RGB24, width, height); + cr = cairo_create(image); + cairo_set_source_surface(cr, surface, 0, 0); + cairo_paint (cr); + cairo_destroy (cr); + + data = (void *) cairo_image_surface_get_data(image); + stride = cairo_image_surface_get_stride(image); + + region = cairo_region_create(); + + for(y=0; y < height; y++) + { + for(x=0; x < width; x++) + { + /* Search for a continuous range of "background pixels"*/ + gint x0=x; + while(x < width) + { + if((data[x] & 0x00FFFFFF) == bg) + /* This pixel is the background color */ + break; + x++; + } + + if(x > x0) + { + /* Add the pixels (x0, y) to (x, y+1) as a new rectangle + * in the region + */ + rect.x = x0; + rect.width = x - x0; + rect.y = y; + rect.height = 1; + + cairo_region_union_rectangle(region, &rect); + } + } + data += stride/4; + } + + cairo_surface_destroy(image); + + return region; +} + + +/* We double buffer the image. It looks nice and it enables + * grabing the graph with the pointer and translating it. + * We draw on our own larger surface and then copy part of that + * to the gdk surface. + * + * We assume that this function is drawing to an exposed/showing + * drawing area, so the status update will reflect the current + * exposed/showing drawing area. */ +void qp_graph_draw(struct qp_graph *gr, cairo_t *gdk_cr) +{ + GtkAllocation allocation; + + if(gr->waiting_to_resize_draw && !gr->qp->shape) + { + cairo_set_source_rgba(gdk_cr, gr->background_color.r, + gr->background_color.g, gr->background_color.b, + gr->background_color.a); + + cairo_paint(gdk_cr); + g_idle_add_full(G_PRIORITY_LOW, idle_callback, gr, NULL); + /* We draw after the other widgets are drawn, incase drawing + * takes a long time. This waiting also gives a chance + * for the watch cursor to show. But that seems to only + * show if the window had focus at the right time. */ + return; + } + + gtk_widget_get_allocation(gr->drawing_area, &allocation); + + if(gr->pixbuf_needs_draw) + { + cairo_t *db_cr; /* double buffer cr */ + + db_cr = cairo_create(gr->pixbuf_surface); + graph_draw(gr, db_cr, gr->pixbuf_x, gr->pixbuf_y, + gr->pixbuf_width, gr->pixbuf_height); + cairo_destroy(db_cr); + // debuging + //cairo_surface_write_to_png(gr->pixbuf_surface, "x.png"); + qp_win_set_status(gr->qp); + } + + /* the GTK cairo_t *gdk_cr has no alpha bits so all the + * alpha drawn to it will be smushed. */ + //WARN("content=0x%lx\n", (unsigned long)cairo_get_target(gdk_cr)); + + + if(!gr->qp->shape) + { + /* Not using the shape X11 extension */ + + /* This is where we go from the back buffer to the drawing area */ + draw_from_pixbuf(gdk_cr, gr, allocation.width, allocation.height); + + if(gr->draw_zoom_box == 1) + draw_zoom_box(gdk_cr, gr); + if(gr->draw_value_pick) + draw_value_pick_line(gdk_cr, gr, allocation.width, allocation.height); + + + if(gr->pixbuf_needs_draw) + { + gdk_window_set_cursor(gtk_widget_get_window(gr->qp->window), NULL); + gr->pixbuf_needs_draw = 0; + // gr->qp->wait_warning_showing = 0; + } + } + else + { + /* Use the X11 shape extension */ + + + /* TODO: This is a resource pig. Fix it. */ + + cairo_region_t *reg_draw_area, *window_region; + /* empty flag */ + int empty; + cairo_surface_t *mask_surface; + GtkAllocation all; + + /* Make sure the surface is up to date */ + //cairo_surface_flush(gr->pixbuf_surface); + + /* make a sub surface that is the size of the graph drawing area */ + mask_surface = cairo_surface_create_for_rectangle(gr->pixbuf_surface, + INT(gr->pixbuf_x+gr->grab_x), + INT(gr->pixbuf_y+gr->grab_y), + allocation.width, allocation.height); + + reg_draw_area = get_cairo_region_create_from_surface(gr, + mask_surface, allocation.width, allocation.height); + + cairo_surface_destroy(mask_surface); + + cairo_region_translate(reg_draw_area, allocation.x, allocation.y); + + gtk_widget_get_allocation(gr->qp->window, &all); + all.x = all.y = 0; + + window_region = cairo_region_create_rectangle(&all); + + cairo_region_subtract_rectangle(window_region, &allocation); + + empty = cairo_region_is_empty(reg_draw_area); + + if(!empty) + cairo_region_union(window_region, reg_draw_area); + + cairo_region_destroy(reg_draw_area); + + /* window_region is a region with a hole in it the + * size of the drawing area with the graph and grid added back. */ + + + if(gr->draw_zoom_box && !empty) + { + cairo_rectangle_int_t rec; + rec.x = allocation.x + gr->z_x; + rec.y = allocation.y + gr->z_y; + rec.width = gr->z_w; + rec.height = gr->z_h; + /* regions do not like negitive values or + * maybe shapes do not like negitive values + * in any case we keep width and height + * positive */ + if(rec.width < 0) + { + rec.width *= -1; + rec.x -= rec.width; + } + if(rec.height < 0) + { + rec.height *= -1; + rec.y -= rec.height; + } + + cairo_region_union_rectangle(window_region, &rec); + /* now we have the zoom box added to window_region */ + } + + + /* This is where we go from the back buffer to the drawing area */ + draw_from_pixbuf(gdk_cr, gr, allocation.width, allocation.height); + if(gr->draw_zoom_box) + draw_zoom_box(gdk_cr, gr); + if(gr->draw_value_pick) + draw_value_pick_line(gdk_cr, gr, allocation.width, allocation.height); + + + if(empty) + { + /* we have nothing to make a shape with */ + if(gr->qp->last_shape_region) + { + cairo_region_destroy(gr->qp->last_shape_region); + gr->qp->last_shape_region = NULL; + } + cairo_region_destroy(window_region); + /* remove the old shape region */ + gtk_widget_shape_combine_region(gr->qp->window, NULL); + } + else if(!gr->qp->last_shape_region || + !cairo_region_equal(gr->qp->last_shape_region, window_region)) + { + // DEBUG("creating new shape region\n"); + + /* We need to undo the old shape first */ + gtk_widget_shape_combine_region(gr->qp->window, NULL); + + gtk_widget_shape_combine_region(gr->qp->window, window_region); + + if(gr->qp->last_shape_region) + cairo_region_destroy(gr->qp->last_shape_region); + + gr->qp->last_shape_region = window_region; + } + else + cairo_region_destroy(window_region); + + + gr->pixbuf_needs_draw = 0; + + gdk_window_set_cursor(gtk_widget_get_window(gr->qp->window), NULL); + // debuging + //cairo_surface_write_to_png(cairo_get_target(gdk_cr), "y.png"); + } + + if(gr->qp->update_graph_detail && gr->qp->graph_detail) + { + gr->qp->update_graph_detail = 0; + /* make the graph configure window show stuff about this graph */ + qp_win_graph_detail_init(gr->qp); + } +} + + +int qp_win_save_png(struct qp_win *qp, + struct qp_graph *gr, const char *filename) +{ + cairo_surface_t *surface; + cairo_t *cr; + GtkAllocation allocation; + int ret = 0; + + ASSERT(qp); + ASSERT(qp->window); + if(!gr) + { + int page_num; + GtkWidget *w; + page_num = gtk_notebook_get_current_page(GTK_NOTEBOOK(qp->notebook)); + w = gtk_notebook_get_nth_page(GTK_NOTEBOOK(qp->notebook), page_num); + gr = (struct qp_graph*) g_object_get_data(G_OBJECT(w), "qp_graph"); + } + + gtk_widget_get_allocation(gr->drawing_area, &allocation); + surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, + allocation.width, allocation.height); + cr = cairo_create(surface); + + + /* This is where we go from the back buffer to the image */ + draw_from_pixbuf(cr, gr, allocation.width, allocation.height); + + + errno = 0; + if(CAIRO_STATUS_SUCCESS == + cairo_surface_write_to_png(surface, filename)) + QP_NOTICE("Saved %s\n", filename); + else + { + WARN("Failed to save: %s\n", filename); + QP_WARN("Failed to save: %s\n", filename); + ret = 1; + } + + cairo_destroy(cr); + cairo_surface_destroy(surface); + + return ret; +} + diff -Nru quickplot-0.8.15/graph_grid.c quickplot-0.9.11/graph_grid.c --- quickplot-0.8.15/graph_grid.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/graph_grid.c 2011-12-14 18:37:18.000000000 +0000 @@ -0,0 +1,643 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ +#include +#include + +#include "quickplot.h" + +#include "config.h" +#include "spew.h" +#include "debug.h" +#include "list.h" +#include "callbacks.h" +#include "channel.h" +#include "channel_double.h" +#include "qp.h" +#include "plot.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + + +#define SMALL_NUM SMALL_DOUBLE +#define TICKMIN 5.0 +#define TICKMAX 8.0 +#define TWO_DIGIT_FORMAT "%.2g" +#define SCAN_FORMAT "%lf" +#define FORMAT_LEN 8 +/* must be smaller than FORMAT_LEN */ +#define H_GRID_PRINT_FORMAT "%.15g" // High res +#define L_GRID_PRINT_FORMAT "%.6g" // Low res +#define POW pow +#define TEN 10.0 + +#define MAX_ABS(x,y) ((ABSVAL(x) > ABSVAL(y))?ABSVAL(x):ABSVAL(y)) + + +/* This is not too trival. Number round-off must be avoided. We + * require the grid lines be drawn with the same method that the plot + * points plot lines, so that they are not off by one pixel. We must + * not have plots that miss-lead the user in any way. */ +static +void PreDrawGrid(struct qp_graph *gr, struct qp_plot *z, + + int64_t *xmin_mat, int64_t *xmax_mat, + int64_t *xinc, double *xpow_part, + + int64_t *ymin_mat, int64_t *ymax_mat, + int64_t *yinc, double *ypow_part, + int width, int height) +{ + double xmin = qp_plot_get_xval(z, 0); + double xmax = qp_plot_get_xval(z, width); + double ymax = qp_plot_get_yval(z, 0); + double ymin = qp_plot_get_yval(z, height); + + /***************************************************/ + /* get the x value lines calculated */ + /***************************************************/ + + //DEBUG("pix width=%d values xmin=%g xmax=%g\n", width, xmin, xmax); + //DEBUG("pix height=%d values ymin=%g ymax=%g\n", height, ymin, ymax); + + + double delta; + /* change in x values between vertical grid lines */ + delta = (xmax - xmin)/(2 + ((double) width/gr->grid_x_space)); + + //printf("xdelta=%g gr->grid_x_space=%d\n", delta, + //gr->grid_x_space); + + gint delta_p = (gint) log10(ABSVAL(delta) > SMALL_NUM ? + ABSVAL(delta) : SMALL_NUM); + + if(delta_p <= 0) delta_p--; + + + *xpow_part = POW(TEN, delta_p); + + //printf("xdelta_p=%d xpow_part=%g\n", delta_p, *xpow_part); + + { + // strip off the round-off error off of xpow_part. + char s[16]; + //for example: xpow_part=0.20005465 --> + // s=0.20 --> xpow_part=0.2000000 + sprintf(s, TWO_DIGIT_FORMAT, *xpow_part); + sscanf(s, SCAN_FORMAT, xpow_part); + //printf("s=%s xpow_part=%.15g\n",s, xpow_part); + } + + *xmin_mat = (int64_t) (xmin/(*xpow_part)); + *xmax_mat = (int64_t) (xmax/(*xpow_part)); + + //printf(" xmin = %ldx10%+d xmax = %ldx10%+d\n", + // *xmin_mat, delta_p, *xmax_mat, delta_p); + + if(width > gr->grid_x_space) + *xinc = (int64_t) ((*xmax_mat - *xmin_mat)/ + ((double) width/ + gr->grid_x_space)); + else + *xinc = *xmax_mat - *xmin_mat; + + //printf(" xinc=%ld\n", *xinc); + + // round to 1, 2, 5, times 10^N + if (*xinc < (int64_t) 2) *xinc = 1; + else if(*xinc < (int64_t) 5) *xinc = 2; + else if(*xinc < (int64_t) 10) *xinc = 5; + else if(*xinc < (int64_t) 20) *xinc = 10; + else if(*xinc < (int64_t) 50) *xinc = 20; + else if(*xinc < (int64_t) 100) *xinc = 50; + else if(*xinc < (int64_t) 200) *xinc = 100; + else *xinc = 200; + + + //DEBUG("xinc=%ld xmin_mat=%ld\n", *xinc, *xmin_mat); + + if(*xmin_mat > (int64_t) 0 && (*xmin_mat)%(*xinc)) + *xmin_mat -= (*xmin_mat)%(*xinc); + else if(*xmin_mat < (int64_t) 0 && (*xmin_mat)%(*xinc)) + *xmin_mat -= *xinc + (*xmin_mat)%(*xinc); + + + //printf(" xinc=%ld\n", *xinc); + + /***************************************************/ + /* get the y value lines calculated */ + /***************************************************/ + + delta = (ymax - ymin)/(2 + ((double) height/ + gr->grid_y_space)); + + delta_p = (gint) log10(ABSVAL(delta) > SMALL_NUM ? + ABSVAL(delta) : SMALL_NUM); + + if(delta_p <= 0) delta_p--; + + //printf("ydelta_p=%d\n", delta_p); + + *ypow_part = POW(TEN, delta_p); + { + // strip off the round-off error off of ypow_part. + char s[16]; + //for example: ypow_part=0.20005465 --> + // s=0.20 --> ypow_part=0.2000000 + sprintf(s, TWO_DIGIT_FORMAT, *ypow_part); + sscanf(s, SCAN_FORMAT, ypow_part); + } + + *ymin_mat = (int64_t) (ymin/(*ypow_part)); + *ymax_mat = (int64_t) (ymax/(*ypow_part)); + + //printf(" ymin = %ldx10%+d ymax = %ldx10%+d\n", + // *ymin_mat, delta_p, *ymax_mat, delta_p); + + if(height > gr->grid_y_space) + *yinc = (int64_t) ((*ymax_mat - *ymin_mat)/ + ((double) height/ + gr->grid_y_space)); + else + *yinc = *ymax_mat - *ymin_mat; + + if (*yinc < (int64_t) 2) *yinc = 1; + else if(*yinc < (int64_t) 5) *yinc = 2; + else if(*yinc < (int64_t) 10) *yinc = 5; + else if(*yinc < (int64_t) 20) *yinc = 10; + else if(*yinc < (int64_t) 50) *yinc = 20; + else if(*yinc < (int64_t) 100) *yinc = 50; + else if(*yinc < (int64_t) 200) *yinc = 100; + else *yinc = 200; + + + //printf("yinc=%ld\n", *yinc); + + if(*ymin_mat > (int64_t) 0 && (*ymin_mat)%(*yinc)) + *ymin_mat -= (*ymin_mat)%(*yinc); + else if(*ymin_mat < (int64_t) 0 && (*ymin_mat)%(*yinc)) + *ymin_mat -= *yinc + (*ymin_mat)%(*yinc); + + + +} + +static inline +void DrawXGrid(cairo_t *cr, PangoLayout *pangolayout, + struct qp_graph *gr, struct qp_plot *z, + int64_t xmin_mat, int64_t xmax_mat, + int64_t xinc, double xpow_part, + int64_t ymin_mat, int64_t ymax_mat, + int64_t yinc, double ypow_part, + int width, int height, int view_height) +{ + /******************************************************/ + /* find where to put the value text for x lines */ + /******************************************************/ + + int64_t yLabel_start, yLabel_inc, yLabel_max; + int64_t i, max; + char FMT[FORMAT_LEN]; + + if(gr->grid_numbers) + { + /* We can get better Y position precision if we + * increase the range of the numbers in Y. */ + yinc *= 100; + ymin_mat *= 100; + ymax_mat *= 100; + ypow_part /= 100; + + if(gr->same_y_scale) + { + yLabel_inc = (qp_plot_get_yval(z, 0) - + qp_plot_get_yval(z, view_height))/ + ypow_part; + + // make yLabel_inc a multiple of yinc + if(yLabel_inc < 14*yinc/10) + yLabel_inc = yinc; + else if(yLabel_inc < 24*yinc/10) + yLabel_inc = 2*yinc; + else if(yLabel_inc < 34*yinc/10) + yLabel_inc = 3*yinc; + else + yLabel_inc -= yLabel_inc%yinc; + + + yLabel_start = qp_plot_get_yval(z, view_height - 15 + + gr->pixbuf_y)/ + ypow_part; + + + yLabel_start -= + ((int64_t)(yLabel_start - ymin_mat + yinc*0.5))%yinc; + + if(qp_plot_get_ypixel(z, yLabel_start*ypow_part) > + view_height + gr->pixbuf_y + - 10/* font height */ + - 3 /* padding */) + yLabel_start += yinc; + + yLabel_start += - ((int64_t)(yLabel_start - + ymin_mat + yinc*0.5)) + + ((int64_t)(yLabel_start - ymin_mat + yinc*0.5))%yLabel_inc; + + yLabel_max = ymax_mat - yinc*0.5; + yLabel_max -= ((yLabel_max - yLabel_start)% yLabel_inc); + } + else + { + yLabel_inc = (qp_plot_get_yval(z,0) - + qp_plot_get_yval(z,view_height))/ + ypow_part; + + yLabel_start = qp_plot_get_yval(z,view_height - 15 + + gr->pixbuf_y)/ + ypow_part; + + yLabel_start += - ((int64_t)(yLabel_start - ymin_mat)) + + ((int64_t)(yLabel_start - ymin_mat))%yLabel_inc; + + yLabel_max = ymax_mat; + yLabel_max -= ((yLabel_max - yLabel_start)% yLabel_inc); + } + } + + + max = ABSVAL(xmin_mat); + if(ABSVAL(xmax_mat) > max) + max = ABSVAL(xmax_mat); + + + if(max/xinc > 10000) { + strcpy(FMT, H_GRID_PRINT_FORMAT); + //printf("x high res\n"); + } + else + strcpy(FMT, L_GRID_PRINT_FORMAT); + + + /**************************************************** + * draw x labels + ****************************************************/ + if(gr->grid_numbers) + { + cairo_set_source_rgba(cr, gr->grid_text_color.r, + gr->grid_text_color.g, gr->grid_text_color.b, + gr->grid_text_color.a); + + for(i=xmin_mat; i <= xmax_mat; i += xinc) + { + char str[64]; + int x; + int64_t j; + + snprintf(str,64, FMT, i*xpow_part); + + //printf(" xpow_part=%.15g\n",xpow_part); + //printf(GRID_PRINT_FORMAT" ", i*xpow_part); + + x = qp_plot_get_xpixel(z, i*xpow_part); + + for(j = yLabel_start; j <= yLabel_max; j += yLabel_inc) + { + cairo_translate(cr, x+3+ gr->grid_line_width/2, + qp_plot_get_ypixel(z, j*ypow_part) + - 5 /* 1/2 font height */); + pango_layout_set_text(pangolayout, str, -1); + + pango_cairo_update_layout(cr, pangolayout); + pango_cairo_show_layout(cr, pangolayout); + + /* clear the translation */ + cairo_identity_matrix(cr); + + //printf("%g\n", j*ypow_part); + } + } + } + + /**************************************************** + * draw vertical lines at x values + ****************************************************/ + cairo_set_source_rgba(cr, gr->grid_line_color.r, + gr->grid_line_color.g, gr->grid_line_color.b, + gr->grid_line_color.a); + cairo_set_line_width(cr, gr->grid_line_width); + + for(i=xmin_mat; i <= xmax_mat; i += xinc) + { + int x; + x = qp_plot_get_xpixel(z, i*xpow_part); // gr->grid_line_width; + cairo_move_to(cr, x, 0); + cairo_line_to(cr, x, height); + } + /* draw the lines */ + cairo_stroke(cr); +} + +static inline +void DrawYGrid(cairo_t *cr, PangoLayout *pangolayout, + struct qp_graph *gr, struct qp_plot *z, + int64_t xmin_mat, int64_t xmax_mat, + int64_t xinc, double xpow_part, + int64_t ymin_mat, int64_t ymax_mat, + int64_t yinc, double ypow_part, + int width, int height, int view_width) +{ + /******************************************************/ + /* find where to put the value text for y lines */ + /******************************************************/ + + int64_t xLabel_start, xLabel_inc, xLabel_max; + gint x_ylinetext; + int64_t i, max; + char FMT[FORMAT_LEN]; + + + x_ylinetext = qp_plot_get_xpixel(z, (xmin_mat + xinc*0.2)*xpow_part); + if(x_ylinetext < 3) + x_ylinetext = qp_plot_get_xpixel(z, (xmin_mat + xinc*1.2)*xpow_part); + + + if(gr->grid_numbers) + { + /* We can get better X position precision if we + * increase the range of the numbers in X. */ + + xmin_mat *= 100; + xmax_mat *= 100; + xinc *= 100; + xpow_part /= 100; + + if(gr->same_x_scale) + { + xLabel_inc = (qp_plot_get_xval(z, view_width) - + qp_plot_get_xval(z, 0))/ + xpow_part; + + // make xLabel_inc a multiple of xinc + if(xLabel_inc < 14*xinc/10) + xLabel_inc = xinc; + else if(xLabel_inc < 24*xinc/10) + xLabel_inc = 2*xinc; + else if(xLabel_inc < 34*xinc/10) + xLabel_inc = 3*xinc; + else + xLabel_inc -= xLabel_inc%xinc; + + xLabel_start = qp_plot_get_xval(z, gr->pixbuf_x + - 14 /* padding from grid line */)/ + xpow_part; + + xLabel_start -= + ((int64_t)(xLabel_start - xmin_mat))%xinc; + + if(qp_plot_get_xpixel(z, xLabel_start*xpow_part) < + gr->pixbuf_x - 14 /* padding */) + xLabel_start += xinc; + + xLabel_start += - ((int64_t)(xLabel_start - xmin_mat)) + + ((int64_t)(xLabel_start - xmin_mat))%xLabel_inc; + + xLabel_max = xmax_mat; + xLabel_max -= ((xLabel_max - xLabel_start)%xLabel_inc); + } + else + { + xLabel_inc = ( + qp_plot_get_xval(z, view_width) - + qp_plot_get_xval(z, 0) + )/xpow_part; + + xLabel_start = qp_plot_get_xval(z, gr->pixbuf_x)/xpow_part; + + xLabel_start += - ((int64_t)(xLabel_start - xmin_mat)) + + ((int64_t)(xLabel_start - xmin_mat))%xLabel_inc; + + xLabel_max = xmax_mat; + xLabel_max -= ((xLabel_max - xLabel_start)%xLabel_inc); + } + } + + + max = ABSVAL(ymin_mat); + if(ABSVAL(ymax_mat) > max) + max = ABSVAL(ymax_mat); + + + if(max/yinc > 10000) { + strcpy(FMT, H_GRID_PRINT_FORMAT); + //printf("y high res\n"); + } else + strcpy(FMT, L_GRID_PRINT_FORMAT); + + + /**************************************************** + * draw y labels + ****************************************************/ + if(gr->grid_numbers) + { + cairo_set_source_rgba(cr, gr->grid_text_color.r, + gr->grid_text_color.g, gr->grid_text_color.b, + gr->grid_text_color.a); + + for(i=ymin_mat; i <= ymax_mat; i += yinc) + { + char str[64]; + int y; + int64_t j; + + snprintf(str,64, FMT, i*ypow_part); + + //snprintf(str,64, "%*.*g", digit_count,digit_count, i*ypow_part); + //printf(GRID_PRINT_FORMAT" ", str); + + y = qp_plot_get_ypixel(z, i*ypow_part); + + for(j = xLabel_start; j <= xLabel_max; j += xLabel_inc) + { + cairo_translate(cr, + qp_plot_get_xpixel(z, j*xpow_part) + gr->grid_line_width/2 + 10, + y+ gr->grid_line_width/2); + pango_layout_set_text(pangolayout, str, -1); + pango_cairo_update_layout(cr, pangolayout); + pango_cairo_show_layout(cr, pangolayout); + /* clear the translation */ + cairo_identity_matrix(cr); + } + } + } + /**************************************************** + * draw horizontal lines at y values + ****************************************************/ + cairo_set_source_rgba(cr, gr->grid_line_color.r, + gr->grid_line_color.g, gr->grid_line_color.b, + gr->grid_line_color.a); + cairo_set_line_width(cr, gr->grid_line_width); + + for(i=ymin_mat; i <= ymax_mat; i += yinc) + { + int y; + y = qp_plot_get_ypixel(z, i*ypow_part); // - gr->grid_line_width; + cairo_move_to(cr, 0, y); + cairo_line_to(cr, width, y); + } + /* draw the lines */ + cairo_stroke(cr); +} + +void qp_graph_set_grid_font(struct qp_graph *gr) +{ + PangoFontDescription *desc = NULL; + desc = pango_font_description_from_string(gr->grid_font); + if(!desc) + QP_WARN("Failed to get grid font \"%s\"\n", gr->grid_font); + if(!desc) + desc = pango_font_description_from_string(DEFAULT_GRID_FONT); + ASSERT(desc); + if(!desc) + { + QP_WARN("Failed to get default grid font \"%s\".\n" + " Will not show numbers on the grid.\n", DEFAULT_GRID_FONT); + gr->grid_numbers = 0; + } + else + { + pango_layout_set_font_description(gr->pangolayout, desc); + pango_font_description_free(desc); + } +} + +static +PangoLayout *get_pangolayout(struct qp_graph *gr, cairo_t *cr) +{ + if(!gr->pangolayout) + { + gr->pangolayout = pango_cairo_create_layout(cr); + qp_graph_set_grid_font(gr); + } + else + { + pango_cairo_update_layout(cr, gr->pangolayout); + } + + if((gr->font_antialias_set && gr->qp->shape) || + (!gr->font_antialias_set && !gr->qp->shape)) + { + /* Doing a lot of crap just to set one bit */ + cairo_font_options_t *fopt; + PangoContext *pc; + + fopt = cairo_font_options_create(); + + if(gr->qp->shape) + { + cairo_font_options_set_antialias(fopt, CAIRO_ANTIALIAS_NONE); + gr->font_antialias_set = 0; + } + else + { + cairo_font_options_set_antialias(fopt, CAIRO_ANTIALIAS_DEFAULT); + gr->font_antialias_set = 1; + } + + pc = pango_layout_get_context(gr->pangolayout); + pango_cairo_context_set_font_options(pc, fopt); + cairo_font_options_destroy(fopt); + } + + + return gr->pangolayout; +} + +void qp_graph_grid_draw(struct qp_graph *gr, struct qp_plot *p, + cairo_t *cr, int width, int height) +{ + int64_t + xmin_mat, xmax_mat, xinc, + ymin_mat, ymax_mat, yinc; + double xpow_part, ypow_part; + PangoLayout *pangolayout = NULL; + int view_width, view_height; + + ASSERT(gr); + ASSERT(p); + ASSERT(gr->drawing_area); + ASSERT(gr->qp); + ASSERT(gr->qp->window); + + PreDrawGrid(gr, p, + &xmin_mat, &xmax_mat, &xinc, &xpow_part, + &ymin_mat, &ymax_mat, &yinc, &ypow_part, + width, height); + + + if(!gr->show_grid) return; + + + view_width = gtk_widget_get_allocated_width(gr->drawing_area); + view_height = gtk_widget_get_allocated_height(gr->drawing_area); + + + if(gr->grid_numbers) + pangolayout = get_pangolayout(gr, cr); + + + + +#if 0 + DEBUG("\nxmin=%g xmax=%g\n", + qp_plot_get_xval(p, 0), qp_plot_get_xval(p, width)); + APPEND("ymin=%g ymax=%g\n", + qp_plot_get_yval(p, height), qp_plot_get_yval(p, 0)); + APPEND("xmin_mat=%ld xmax_mat=%ld xinc=%ld xpow_part=%g \n", + xmin_mat, xmax_mat, xinc, xpow_part); + APPEND("ymin_mat=%ld ymax_mat=%ld yinc=%ld ypow_part=%g \n", + ymin_mat, ymax_mat, yinc, ypow_part); + APPEND("delta_x pixels between lines=%d\n", + qp_plot_get_xpixel(p, xpow_part*(xmin_mat + xinc)) - + qp_plot_get_xpixel(p, xpow_part*(xmin_mat))); + APPEND("delta_y pixels between lines=%d\n", + qp_plot_get_ypixel(p, ypow_part*ymin_mat) - + qp_plot_get_ypixel(p, ypow_part*(ymin_mat + yinc))); + APPEND("sig_fig_x=%d sig_fig_y=%d\n", gr->sig_fig_x, gr->sig_fig_y); +#endif + + + + if(gr->same_x_scale) + DrawXGrid(cr, pangolayout, gr, p, + xmin_mat, xmax_mat, xinc, xpow_part, + ymin_mat, ymax_mat, yinc, ypow_part, + width, height, view_height); + if(gr->same_y_scale) + DrawYGrid(cr, pangolayout, gr, p, + xmin_mat, xmax_mat, xinc, xpow_part, + ymin_mat, ymax_mat, yinc, ypow_part, + width, height, view_width); +} + diff -Nru quickplot-0.8.15/Graph.h quickplot-0.9.11/Graph.h --- quickplot-0.8.15/Graph.h 2009-03-08 20:13:59.000000000 +0000 +++ quickplot-0.9.11/Graph.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,166 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - - -class ColorGen; -class Field; -class MainWindow; - -class Graph : public DrawingArea, public std::list -{ - public: - - Graph(MainWindow *mainWindow_in); - void copy(Graph *graph); - ~Graph(void); - - Plot *createPlot(Field *x, Field *y); - void createDefaultPlots(Source *s); - - // Having a color generater for each graph will make the auto color - // on all graphs behave similarly. - ColorGen colorGen; - - void queueRedraw(void); - - void remove(Plot *plot); - - void checkScales(void); - - void drawAutoGrid(Glib::RefPtr win, - Glib::RefPtr gc); - void savePNG(const char *filename); - - void zoomToTop(void); - void zoomOut(void); - void zoomIn(int x, int y, int w, int h); - bool isZoomedOutToTop(void); - - void setShowLines(bool show); - void setShowPoints(bool show); - - void setLineWidth(int width, bool oldPlotsToo=true); - void setPointSize(int size, bool oldPlotsToo=true); - - void setBackgroundColor(const Gdk::Color& color); - void setGridColor(const Gdk::Color& color); - - void draw(Glib::RefPtr win, - Glib::RefPtr gc); - - /************************************************************/ - /**************** Properties of a Graph **************/ - /************************************************************/ - // Do the current plots have the same scale. - bool isSameScale; - - // Do we force all plots to have the same scale. - bool sameScale; - - // Do we make all plots the same scale if it works well. - bool autoSameScale; - - // Draw the auto Grid. This requires the Plots to have the same - // scale (i.e. isSameScale is true). - bool showAutoGrid; - bool showGridNumbers; - - inline bool isShowingGrid() { return (showAutoGrid && isSameScale); } - /************************************************************/ - - static sigc::signal1 signal_changedSameScale(void); - static sigc::signal1 signal_addedPlot(void); - static sigc::signal2 signal_removedPlot(void); - sigc::signal0 signal_backgroundColorChanged(void); - - - Gdk::Color gridColor, backgroundColor; - - int gridXLineSpace, gridYLineSpace, gridLineWidth; - - int showLines, showPoints, lineWidth, pointSize; - - enum PICKER_TYPE - { - OFF_PLOT=0, - INTERPOLATED=1, - NONINTERPOLATED=2, - NONE=3 - }; - - PICKER_TYPE pickerType, highestPickerType; - - MainWindow *mainWindow; - -protected: - - bool on_expose_event(GdkEventExpose*); - bool on_button_press_event(GdkEventButton *event); - bool on_button_release_event(GdkEventButton *event); - bool on_motion_notify_event(GdkEventMotion *event); - -private: - - void setPickerType(void); - - void setStatusXYValues(gdouble x, gdouble y); - - static sigc::signal1 m_signal_changedSameScale; - - static sigc::signal1 m_signal_addedPlot; - static sigc::signal2 m_signal_removedPlot; - - sigc::signal0 m_signal_backgroundColorChanged; - - - // used by createPlot(Field *x, Field *y) - void checkZoomLevelForNewPlot(Plot *plot); - - Glib::RefPtr win; - Glib::RefPtr gc, inverted_gc; - - // used in Graph::drawAutoGrid() - Glib::RefPtr pangolayout; - - // for saving event state info - guint buttonPressed; - - PICKER_TYPE lastPickerType; - - // Pointer x,y values when the button of interest was pressed - int xPress, yPress; - // The moving corner of the zoom box. - int xmouse, ymouse, xpick, ypick; - - bool checkScalesQueued; - bool isDeleting; // flag that says we are in ~Graph() - - int old_width, old_height; -}; - - -class GraphTab : public HBox -{ -public: - - GraphTab(int graphNumber, MainWindow *m, Graph *graph); - - void setText(const char *str); - - Label label; - Button removeButton; - Image closeImage; - - struct DeleteLater - { - GraphTab *graphTab; - } deleteLater; - - MainWindow *mainWindow; - Graph *graph; - -private: - - void on_close(void); - -}; diff -Nru quickplot-0.8.15/help_head.htm.in quickplot-0.9.11/help_head.htm.in --- quickplot-0.8.15/help_head.htm.in 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/help_head.htm.in 2011-12-17 17:17:39.000000000 +0000 @@ -0,0 +1,474 @@ + + + + + +Quickplot Help + + + + + + + + +
+

Quickplot Help

+
+ + +

Terminology

+ + +

+We need to distinguish between the two terms plot and graph.  +In Quickplot a graph displays one or more plots.  +Quickplot displays each graph in a page tab, like pages in +a web browser. +

+ +

+Quickplot can load data from: GUIs (graphical user interfaces), files listed +on the command line, and from standard input (pipes too).  Data +is loaded into channels.  A channel represents a series of numbers, +like for example the values for one variable, or a column of numbers in +a spreadsheet.  Other names for channel may be +dimension, coordinate, degree-of-freedom, field, or component.  +We call them all channels in Quickplot.  +Any two channels may be plotted against each other +whether they are from the same file or not.  +A plot is a graphically representation of two channels, call them the X and Y +channels.  +Any number of plots may be made on a graph.  +The graph is like the paper we put the plots on. +

+ + +

Zooming

+ + +
    + +
  • +

    +Grab Zooming    Put the pointer (mouse) in the graph +window.  Press the left mouse button and hold +it while dragging the graph by moving the pointer.  Release the left +mouse button and the graph will stop moving with the pointer. +

    +
  • + + +
  • +

    +Zooming In   Put the pointer (mouse) on a corner of a +graph region you want to zoom to.  Press the right mouse button +and hold and drag the zoom box.  Release the +right mouse button then it is at another corner of the zoom +region.  Now Quickplot will zoom into that zoom region.  You +can zoom in as many times as you like. +

    + +

    +While holding the left mouse button +you can press the shift key or the control key while +pulling the zoom box to "shift" or "resize about the center" +respectively. +

    + +

    +You can zoom to a view of smaller plots by just pressing and +releasing the right mouse button, without moving the pointer.  +Do it again and the plots get even smaller.  +You can do this any number of times. +

    + +
  • + + +
  • + +

    +Zooming Out    Put the pointer (mouse) in the graph +window.  Press the right mouse button and hold and drag the zoom +box.  Release the right mouse button then it (the zoom box) is +past one edge of the graph window.  Now Quickplot will zoom out to +the previous zoom level.  Pressing the z key will do the same thing. +

    + +

    Or to zoom out to a full view (top zoom level) of the graph: put +the pointer (mouse) in the graph window.  Press the right mouse +button and hold and drag the zoom box.  Release the right mouse +button then the zoom box is past two edges (a corner) of the graph +window.  Now Quickplot will zoom out to the top zoom level (no +zoom).  Pressing Z (shift-z) will do the same thing. +

    +
  • + + + +
+ + + +

Graph Value Picking

+ + + +

+First open the Graph Details window by typing 'g', by using the +View menu, or by clicking the Graph Details button on the button bar.  +Then select the "Plots List and Values" tab.  +The middle mouse button is used for picking and +displaying X and Y values from the graph.  Just try it and see. +

+ +

There are three modes of number display value picking, which may +be selected on the top of the "Plots List and Values" page (tab): +

+ +
    + +
  • Pointer Values   shows values where the mouse +pointer is in the scale of the respective plot
  • + +
  • Interpolate Plot Values   shows values where the +X position of the mouse pointer is with the Y value displayed being a +linearly interpolated value.  +This requires that all plots be functions of one particular channel.
  • + +
  • Pick Plot Point Values   shows X and Y plot point +positions that are closest to mouse pointer X position.  +This also requires that all plots be functions of one particular channel. +
  • + +
+ +

+For the "Pointer Values" and "Interpolate Plot Values" modes the +number of significant digits displayed will vary with the value change +per pixel.  +So you will not see digits that are not representative of the +mouse position.  +Zooming will change the number of significant digits displayed. +

+ + + +

Loadable File Formats

+ +

+Quickplot can read ASCII text and sound files: +

+ + +

ASCII text

+

+Quickplot can load ASCII text (plan +text) files.  The number of values on each line need not be the same, +but any missing values will be filled with NAN.  +Any number of non-number characters other than a new +line character may used to separate numbers on a given line.  +NAN, INF, -NAN, -INF, +NAN, and +INF (lower case too) are numbers that +can be read by quickplot.  +Any line starting with zero or more white space characters +and then a any one of    ! " # $ % & ' ( ) / + < = > ? @ C c    is a comment line that +is ignored.  +Any lines with no numbers that can be read will be ignored.  +If you wish to have a break in a +plot line put a NAN (stands for not-a-number) in the channel +(column) at the point +(or non-point) where you wish to put the break at. +

+ + + + + + + + + + +
+ +

+Example: +

+ + + + + + + + + +
1e2 0 -1
2.1e2 1 0
3e2 NAN 1
4.01e2 1 2
5e2 0.87 3
6.1e2 -0.65 3.2
7e2 1 3
5.4e2 0.7 2
+ +
+ + + + + + + +
+ example plot +
+ Graph with two plots: column 1 versus column 0 and column 2 versus column + 0.  + Note that when Quickplot plots a point with a x or y value of NAN (or INF) + the point is skipped and there is not a connecting line to the + adjacent points. +
+
+ +

+In Austria it may look like: +

+ + + + + + + + + +
1e2 0 -1
2,1e2 1 0
3e2 NAN 1
4,01e2 1 2
5e2 0,87 3
6,1e2 -0,65 3,2
7e2 1 3
5,4e2 0,7 2
+ + +
+ + +

+The above example has three channels and eight samples (set of values) for each +channel.  A file may have any counting number of channels, that's +1,2,3,4 or more channels. +

+ + + +

+With the use of NAN, as a kind of plot line terminator, +you can use Quickplot to draw figures composed of +straight line segments.  +Here's a silly example.  +Copy and paste the following command to draw this house: +

+ + + + + + +
+ picture of house + +
+echo -e "-10 8 -8 1 -1.5 -6\n-10 -6 -4 1 1.5 -6\n\
+10 -6 -4 5 1.5 3\n10 8 -8 5 -1.5 3\nnan nan -8 1 -1.5 -6\n\
+-13 8 nan nan\n13 8 4 1\n0 20 8 1\n-13 8 8 5\nnan nan 4 5\n\
+nan nan 4 1" | quickplot -P --line-width=2 --no-grid \
+--no-border --cairo-draw -C 'rgba(0,0,0,0)' --no-gui \
+--no-points --geometry 79x87 -F -g "0 1 2 3 4 5"
+
+
+ + +

+Using NAN as a line terminator can be very handy when drawing +phase plots when you need to avoid connecting points that +should not be connected and you don't want to make more +channels (degrees of freedom).  +For phase space plots the NAN can be thought of as a place +holder where you removed part of the series +because it is not accessible in the current model sampling. +

+ +

+If a file is loaded with a single channel +an additional channel, with the same number of values as the channel in +the file, will be added before the channel from the file. +

+ +

+Quickplot can read +CSV +files. +

+ + + +

libsndfile sound file

+

+Using the package libsndfile Quickplot can +read many sound file formats.  An incomplete list of readable +sound file formats includes: Ogg/Vorbis, +Microsoft WAV, SGI/Apple AIFF/AIFC, and +Sun/DEC/NeXT AU/SND.  See the libsndfile home-page +for a full list of supported sound file formats.

+ +

+When loading a sound file the first channel (sequence) loaded will be +the time sequence, then each sound channel will follow in separate +channels.  + +Quickplot may be a little slow with sound files larger than thirty +seconds long.  Thirty seconds of sound sampled at 44 kHz +with one channel would load 1.32 million data points. +

+ + + + +

Command Line Options

+ + + + + +

Usage: quickplot [OPTIONS]

+ + + +

+Graphs will be generated for each file loaded, unless options are +given that tell Quickplot to do otherwise.  The default number of +plots in a graph will be up to @NUMBER_OF_PLOTS@ plots or just the +number channels in the file minus one if that is less, unless options +override that.  The default initial plots will be of all channels +except the first channel in the order that the channel was loaded from a +file plotted against the first channel in the file.  A time channel +will be the first channel generated for all sound files loaded. +

+ + +

+The order of argument options matters.  +Options take effect in the order that +they are given with later options overriding +earlier ones.  +The options that cause actions like graph "something" must +come after the option that says to read the file that has +"something" in it.  +In general, the order of argument options gives +the order in which things happen as Quickplot starts up. +

+ + +

+When using short options, like -n20 +that require an argument, may not be grouped with other short +options in one argument.  For example the argument +-on20, is not valid, but -oN is a valid argument +with two options o (--no-points) and +N (--no-pipe), and -n20 +is a valid option (--number-of-plots=20) that +sets the default number of plots to 20. +

+ + +

+All of the command line options set things that can +be changed with the Quickplot graphical user interface (GUI).  +For example, if you start with a graph with no lines and just points +showing, you can click a GUI to add the lines after the program +starts.  +

+ + + + +

OPTIONS

+ + + diff -Nru quickplot-0.8.15/help.html quickplot-0.9.11/help.html --- quickplot-0.8.15/help.html 2009-03-09 01:19:10.000000000 +0000 +++ quickplot-0.9.11/help.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,490 +0,0 @@ - - - - - -Quickplot Help - - - - - - -
-

Quickplot Help

-
- -Quickplot can load data from GUIs (graphical user interfaces), the -command line, or by reading the data from standard input.  Data -is loaded into fields.  A field represents a series of numbers, -like for example the values for one variable.  Any two fields may be -plotted against each other. - -

- - -

Zooming

- -
- -
  • Zooming In   Put the pointer (mouse) on a corner -of plot region you want to zoom to.  Press the right mouse button -and hold and drag the zoom box.  Release the right mouse button -then it is at another corner of the zoom region.  Now Quickplot -will zoom into that zoom region. - -

    You can zoom in as many times as you like, or calculations will -permit.  In all cases we've seen round off problems don't happen -until you are looking past at one data point in the plot window.  -Quickplot will print a warning message to standard output if this -happens.  This happens when you zoom in so far as to make it so -that the pixel distance between two adjacent points is about 10 -9 pixels.  Quickplot culls out points that are not -adjacent to the plot window or in the plot window.  Quickplot -linearly interpolates lines to points adjacent to points in the plot -window or on other sides of the plot window.

  • Zooming Out -   Put the pointer (mouse) in the plot window.  Press -the right mouse button and hold and drag the zoom box.  Release -the right mouse button then it (the zoom box) is past one edge of the -plot window.  Now Quickplot will zoom out to the previous zoom -level.

    - -

    Or to zoom out to a full view (top zoom level) of the plot: Put -the pointer (mouse) in the plot window.  Press the right mouse -button and hold and drag the zoom box.  Release the right mouse -button then the zoom box is past two edges (a corner) of the plot -window.  Now Quickplot will zoom out to the top zoom level (no -zoom).

    - -
  • - - -
    -

    Graph Value Picking

    - -
    -The left mouse button is used for picking and displaying -X and Y values from the graph.  Just try it and see. - -

    There are three modes of number display value picking, which may -be selected on the Plot List pop-up window: - -

      - -
    • Pick Pointer Values   shows values where the mouse -pointer is in the scale of the respective plot
    • - -
    • Interpolate Plot Values   shows values where the -X position of the mouse pointer is with the Y value displayed being a -linearly interpolated value
    • - -
    • Pick Plot Point Values   shows X and Y plot point -positions that are closest to mouse pointer X position.
    • - -
    -

    -
    - - -
    -

    Loadable File Formats

    -
      - -
    • ASCII text   Quickplot can load ASCII text (plan -text) files.  The number of fields (numbers) on each line must be -the same.  Any number of non-number characters other than a new -line character may used to separate numbers on a given line.  The -characters in numbers can only be the following 16 characters -",.+-eE0123456789".  - -Example: -
      -
      --1   -1.3     -1
      - 0    1.1e-2   0
      - 2    1.2E-2   1
      - 30   1.3e+2   3
      -
      -
      - -In Austria it may look like: -
      -
      --1   -1,3     -1
      - 0    1,1e-2   0
      - 2    1,2E-2   1
      - 30   1,3e+2   3
      -
      -
      - -The above example has three fields and four values for each -field.  A file may have any counting number of fields, that's -1,2,3,4 or more fields.  If a file is loaded with a single field -an additional field, with the same number of values as the field in -the file, will be added before the field from the file.  -Quickplot can read ASCII text files from standard input. - -

      - -

    • libsndfile -sound file   Using the package libsndfile Quickplot can -read many sound file formats.  An incomplete list of readable -sound file formats includes: Microsoft WAV, SGI/Apple AIFF/AIFC, and -Sun/DEC/NeXT AU/SND..  See the libsndfile home-page -for a full list of supported sound file formats.  - -

      - -When loading a sound file the first field (sequence) loaded will be -the time sequence, then each sound channel will follow in separate -fields. - -Quickplot may be a little slow with sound files larger than thirty -seconds long.  Thirty seconds of sound sampled at 44KHZ with one -channel would load 1.32 million data points.  Quickplot cannot -read sound files from standard input.

    - - - -
    -

    Quickly looking at a hundred thousand, a million, or more data points?

    -
    - -If you need to look at large files quickly, try running Quickplot -including the two options '--no-lines' and '--point-size=0' in the -command line.  This will make the plot drawing and redrawing as -fast as it can be at the expense of having points that are just one -pixel in size, which should be no problem if you have that many -points.  Once you zoom to a picture that you like you can -increase the point size or add lines, using the GUI (graphical user -interface), if you need to.  Quickplot loads the entire file into -memory for any file loaded, so you may need to be careful of your -memory usage when working with large files. - -

    By default plots created in Quickplot with 1,000,000 or more -points will be drawn without lines and points of size one pixel, -unless the user has included one or more of the following options in -the command line: --no-lines, --no-points, --line-width, or ---point-size.  For plots with less than 1,000,000 points the -default line width is 3 pixels and the default point size is 5 pixels. -

    - -

    On a 2.4 Gig Hz Pentium 4 (with Gentoo GNU/Linux) with 256 Megabytes -of RAM it has been observed to take 8 seconds to load and display an -ASCII text file with 1 million data points; after startup it was -observed to take about one second to redraw with the one million -points in view.  When repeating this with lines of width 3 pixels -and points of size 5 pixels the loading time is about the same and the -drawing time increases by about 3 seconds.  Drawing time didn't -seem to vary with window size.

    - -
    - - - -
    -

    Command Line Options

    - -Usage: quickplot [OPTIONS] [file1] [OPTIONS] [file2] [OPTIONS] ... - -

    If no -p or --plot option is given then the default initial plots -will be up to 12 plots.  The default initial plots will be of all -fields, except the first field in the order that the field was loaded -from a file plotted against the first field in the file.  If a -file contains one field (like a sound file) than a field that contains -a linear (time) sequence of values will be generated before the file's -field is loaded. If standard input is read it will be the first file -loaded.

    - -

    - - -OPTIONS

    - - - - - -
    -

    Key Bindings

    - -
    -Quickplot has GUIs for all of the following immutable keyboard short-cuts: - - -
      - -
    • a   show information about Quickplot using a web browser
    • -
    • b   toggles the visibility of the button bar
    • -
    • c   copies the current focused main window frame
    • -
    • d   delete the main window. This will not close the last main window.
    • -
    • f   makes a new main window frame
    • -
    • g   show/hide the graph configuration widget
    • -
    • h   show help using a web browser
    • -
    • i   save a PNG image of the graph
    • -
    • m   show/hide the menu bar
    • -
    • n   make a new graph
    • -
    • o   open a data file
    • -
    • p   show/hide the plot lister widget
    • -
    • q   quit
    • -
    • s   toggles the visibility of the status bar
    • -
    • t   toggles the visibility of the graph tabs
    • -
    • esc   close the current focused window. This will not close the last main window.
    • - - -
    -
    - - - 
    - -

    -Top
    -Quickplot -   version 0.8.15    -release date: Sun Mar 8 16:19:23 EDT 2009 -
    - - diff -Nru quickplot-0.8.15/help_html.cpp quickplot-0.9.11/help_html.cpp --- quickplot-0.8.15/help_html.cpp 2009-03-09 01:19:11.000000000 +0000 +++ quickplot-0.9.11/help_html.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,494 +0,0 @@ -// help_html.cpp Generated by running: cat help.html | ./html2CString help_html.cpp - -const char *help_html = -"\n" -"\n" -"\n" -"\n" -"\n" -"Quickplot Help\n" -"\n" -"\n" -"\n" -"\n" -"\n" -"\n" -"
    \n" -"

    Quickplot Help

    \n" -"
    \n" -"\n" -"Quickplot can load data from GUIs (graphical user interfaces), the\n" -"command line, or by reading the data from standard input.  Data\n" -"is loaded into fields.  A field represents a series of numbers,\n" -"like for example the values for one variable.  Any two fields may be\n" -"plotted against each other.\n" -"\n" -"

    \n" -"\n" -"\n" -"

    Zooming

    \n" -"\n" -"
    \n" -"\n" -"
  • Zooming In   Put the pointer (mouse) on a corner\n" -"of plot region you want to zoom to.  Press the right mouse button\n" -"and hold and drag the zoom box.  Release the right mouse button\n" -"then it is at another corner of the zoom region.  Now Quickplot\n" -"will zoom into that zoom region.\n" -"\n" -"

    You can zoom in as many times as you like, or calculations will\n" -"permit.  In all cases we've seen round off problems don't happen\n" -"until you are looking past at one data point in the plot window. \n" -"Quickplot will print a warning message to standard output if this\n" -"happens.  This happens when you zoom in so far as to make it so\n" -"that the pixel distance between two adjacent points is about 10 \n" -"9 pixels.  Quickplot culls out points that are not\n" -"adjacent to the plot window or in the plot window.  Quickplot\n" -"linearly interpolates lines to points adjacent to points in the plot\n" -"window or on other sides of the plot window.

  • Zooming Out\n" -"   Put the pointer (mouse) in the plot window.  Press\n" -"the right mouse button and hold and drag the zoom box.  Release\n" -"the right mouse button then it (the zoom box) is past one edge of the\n" -"plot window.  Now Quickplot will zoom out to the previous zoom\n" -"level.

    \n" -"\n" -"

    Or to zoom out to a full view (top zoom level) of the plot: Put\n" -"the pointer (mouse) in the plot window.  Press the right mouse\n" -"button and hold and drag the zoom box.  Release the right mouse\n" -"button then the zoom box is past two edges (a corner) of the plot\n" -"window.  Now Quickplot will zoom out to the top zoom level (no\n" -"zoom).

    \n" -"\n" -"
  • \n" -"\n" -"\n" -"
    \n" -"

    Graph Value Picking

    \n" -"\n" -"
    \n" -"The left mouse button is used for picking and displaying\n" -"X and Y values from the graph.  Just try it and see.\n" -"\n" -"

    There are three modes of number display value picking, which may\n" -"be selected on the Plot List pop-up window:\n" -"\n" -"

      \n" -"\n" -"
    • Pick Pointer Values   shows values where the mouse\n" -"pointer is in the scale of the respective plot
    • \n" -"\n" -"
    • Interpolate Plot Values   shows values where the\n" -"X position of the mouse pointer is with the Y value displayed being a\n" -"linearly interpolated value
    • \n" -"\n" -"
    • Pick Plot Point Values   shows X and Y plot point\n" -"positions that are closest to mouse pointer X position.
    • \n" -"\n" -"
    \n" -"

    \n" -"
    \n" -"\n" -"\n" -"
    \n" -"

    Loadable File Formats

    \n" -"
      \n" -"\n" -"
    • ASCII text   Quickplot can load ASCII text (plan\n" -"text) files.  The number of fields (numbers) on each line must be\n" -"the same.  Any number of non-number characters other than a new\n" -"line character may used to separate numbers on a given line.  The\n" -"characters in numbers can only be the following 16 characters\n" -"\",.+-eE0123456789\". \n" -"\n" -"Example:\n" -"
      \n" -"
      \n"
      -"-1 -1.3 -1\n"
      -"0 1.1e-2 0\n"
      -"2 1.2E-2 1\n"
      -"30 1.3e+2 3\n"
      -"
      \n" -"
      \n" -"\n" -"In Austria it may look like:\n" -"
      \n" -"
      \n"
      -"-1 -1,3 -1\n"
      -"0 1,1e-2 0\n"
      -"2 1,2E-2 1\n"
      -"30 1,3e+2 3\n"
      -"
      \n" -"
      \n" -"\n" -"The above example has three fields and four values for each\n" -"field.  A file may have any counting number of fields, that's\n" -"1,2,3,4 or more fields.  If a file is loaded with a single field\n" -"an additional field, with the same number of values as the field in\n" -"the file, will be added before the field from the file. \n" -"Quickplot can read ASCII text files from standard input.\n" -"\n" -"

      \n" -"\n" -"

    • libsndfile\n" -"sound file   Using the package libsndfile Quickplot can\n" -"read many sound file formats.  An incomplete list of readable\n" -"sound file formats includes: Microsoft WAV, SGI/Apple AIFF/AIFC, and\n" -"Sun/DEC/NeXT AU/SND..  See the libsndfile home-page\n" -"for a full list of supported sound file formats. \n" -"\n" -"

      \n" -"\n" -"When loading a sound file the first field (sequence) loaded will be\n" -"the time sequence, then each sound channel will follow in separate\n" -"fields.\n" -"\n" -"Quickplot may be a little slow with sound files larger than thirty\n" -"seconds long.  Thirty seconds of sound sampled at 44KHZ with one\n" -"channel would load 1.32 million data points.  Quickplot cannot\n" -"read sound files from standard input.

    \n" -"\n" -"\n" -"\n" -"
    \n" -"

    Quickly looking at a hundred thousand, a million, or more data points?

    \n" -"
    \n" -"\n" -"If you need to look at large files quickly, try running Quickplot\n" -"including the two options '--no-lines' and '--point-size=0' in the\n" -"command line.  This will make the plot drawing and redrawing as\n" -"fast as it can be at the expense of having points that are just one\n" -"pixel in size, which should be no problem if you have that many\n" -"points.  Once you zoom to a picture that you like you can\n" -"increase the point size or add lines, using the GUI (graphical user\n" -"interface), if you need to.  Quickplot loads the entire file into\n" -"memory for any file loaded, so you may need to be careful of your\n" -"memory usage when working with large files.\n" -"\n" -"

    By default plots created in Quickplot with 1,000,000 or more\n" -"points will be drawn without lines and points of size one pixel,\n" -"unless the user has included one or more of the following options in\n" -"the command line: --no-lines, --no-points, --line-width, or\n" -"--point-size.  For plots with less than 1,000,000 points the\n" -"default line width is 3 pixels and the default point size is 5 pixels.\n" -"

    \n" -"\n" -"

    On a 2.4 Gig Hz Pentium 4 (with Gentoo GNU/Linux) with 256 Megabytes\n" -"of RAM it has been observed to take 8 seconds to load and display an\n" -"ASCII text file with 1 million data points; after startup it was\n" -"observed to take about one second to redraw with the one million\n" -"points in view.  When repeating this with lines of width 3 pixels\n" -"and points of size 5 pixels the loading time is about the same and the\n" -"drawing time increases by about 3 seconds.  Drawing time didn't\n" -"seem to vary with window size.

    \n" -"\n" -"
    \n" -"\n" -"\n" -"\n" -"
    \n" -"

    Command Line Options

    \n" -"\n" -"Usage: quickplot [OPTIONS] [file1] [OPTIONS] [file2] [OPTIONS] ...\n" -"\n" -"

    If no -p or --plot option is given then the default initial plots\n" -"will be up to 12 plots.  The default initial plots will be of all\n" -"fields, except the first field in the order that the field was loaded\n" -"from a file plotted against the first field in the file.  If a\n" -"file contains one field (like a sound file) than a field that contains\n" -"a linear (time) sequence of values will be generated before the file's\n" -"field is loaded. If standard input is read it will be the first file\n" -"loaded.

    \n" -"\n" -"

    \n" -"\n" -"\n" -"OPTIONS

    \n" -"\n" -"\n" -"\n" -"\n" -"\n" -"
    \n" -"

    Key Bindings

    \n" -"\n" -"
    \n" -"Quickplot has GUIs for all of the following immutable keyboard short-cuts:\n" -"\n" -"\n" -"
      \n" -"\n" -"
    • a   show information about Quickplot using a web browser
    • \n" -"
    • b   toggles the visibility of the button bar
    • \n" -"
    • c   copies the current focused main window frame
    • \n" -"
    • d   delete the main window. This will not close the last main window.
    • \n" -"
    • f   makes a new main window frame
    • \n" -"
    • g   show/hide the graph configuration widget
    • \n" -"
    • h   show help using a web browser
    • \n" -"
    • i   save a PNG image of the graph
    • \n" -"
    • m   show/hide the menu bar
    • \n" -"
    • n   make a new graph
    • \n" -"
    • o   open a data file
    • \n" -"
    • p   show/hide the plot lister widget
    • \n" -"
    • q   quit
    • \n" -"
    • s   toggles the visibility of the status bar
    • \n" -"
    • t   toggles the visibility of the graph tabs
    • \n" -"
    • esc   close the current focused window. This will not close the last main window.
    • \n" -"\n" -"\n" -"
    \n" -"
    \n" -"\n" -"\n" -" 
    \n" -"\n" -"

    \n" -"Top
    \n" -"Quickplot\n" -"   version 0.8.15   \n" -"release date: Sun Mar 8 16:19:23 EDT 2009\n" -"
    \n" -"\n" -"\n" -; diff -Nru quickplot-0.8.15/help.html.in quickplot-0.9.11/help.html.in --- quickplot-0.8.15/help.html.in 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/help.html.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,479 +0,0 @@ - - -Quickplot Help - - - - - - -
    -

    Quickplot Help

    -
    - -Quickplot can load data from GUIs (graphical user interfaces), the -command line, or by reading the data from standard input.  Data -is loaded into fields.  A field represents a series of numbers, -like for example the values for one variable.  Any two fields may be -plotted against each other. - -

    - - -

    Zooming

    - -
    - -
  • Zooming In   Put the pointer (mouse) on a corner -of plot region you want to zoom to.  Press the right mouse button -and hold and drag the zoom box.  Release the right mouse button -then it is at another corner of the zoom region.  Now Quickplot -will zoom into that zoom region. - -

    You can zoom in as many times as you like, or calculations will -permit.  In all cases we've seen round off problems don't happen -until you are looking past at one data point in the plot window.  -Quickplot will print a warning message to standard output if this -happens.  This happens when you zoom in so far as to make it so -that the pixel distance between two adjacent points is about 10 -9 pixels.  Quickplot culls out points that are not -adjacent to the plot window or in the plot window.  Quickplot -linearly interpolates lines to points adjacent to points in the plot -window or on other sides of the plot window.

  • Zooming Out -   Put the pointer (mouse) in the plot window.  Press -the right mouse button and hold and drag the zoom box.  Release -the right mouse button then it (the zoom box) is past one edge of the -plot window.  Now Quickplot will zoom out to the previous zoom -level.

    - -

    Or to zoom out to a full view (top zoom level) of the plot: Put -the pointer (mouse) in the plot window.  Press the right mouse -button and hold and drag the zoom box.  Release the right mouse -button then the zoom box is past two edges (a corner) of the plot -window.  Now Quickplot will zoom out to the top zoom level (no -zoom).

    - -
  • - - -
    -

    Graph Value Picking

    - -
    -The left mouse button is used for picking and displaying -X and Y values from the graph.  Just try it and see. - -

    There are three modes of number display value picking, which may -be selected on the Plot List pop-up window: - -

      - -
    • Pick Pointer Values   shows values where the mouse -pointer is in the scale of the respective plot
    • - -
    • Interpolate Plot Values   shows values where the -X position of the mouse pointer is with the Y value displayed being a -linearly interpolated value
    • - -
    • Pick Plot Point Values   shows X and Y plot point -positions that are closest to mouse pointer X position.
    • - -
    -

    -
    - - -
    -

    Loadable File Formats

    -
      - -
    • ASCII text   Quickplot can load ASCII text (plan -text) files.  The number of fields (numbers) on each line must be -the same.  Any number of non-number characters other than a new -line character may used to separate numbers on a given line.  The -characters in numbers can only be the following 16 characters -",.+-eE0123456789".  - -Example: -
      -
      --1   -1.3     -1
      - 0    1.1e-2   0
      - 2    1.2E-2   1
      - 30   1.3e+2   3
      -
      -
      - -In Austria it may look like: -
      -
      --1   -1,3     -1
      - 0    1,1e-2   0
      - 2    1,2E-2   1
      - 30   1,3e+2   3
      -
      -
      - -The above example has three fields and four values for each -field.  A file may have any counting number of fields, that's -1,2,3,4 or more fields.  If a file is loaded with a single field -an additional field, with the same number of values as the field in -the file, will be added before the field from the file.  -Quickplot can read ASCII text files from standard input. - -

      - -

    • libsndfile -sound file   Using the package libsndfile Quickplot can -read many sound file formats.  An incomplete list of readable -sound file formats includes: Microsoft WAV, SGI/Apple AIFF/AIFC, and -Sun/DEC/NeXT AU/SND..  See the libsndfile home-page -for a full list of supported sound file formats.  - -

      - -When loading a sound file the first field (sequence) loaded will be -the time sequence, then each sound channel will follow in separate -fields. - -Quickplot may be a little slow with sound files larger than thirty -seconds long.  Thirty seconds of sound sampled at 44KHZ with one -channel would load 1.32 million data points.  Quickplot cannot -read sound files from standard input.

    - - - -
    -

    Quickly looking at a hundred thousand, a million, or more data points?

    -
    - -If you need to look at large files quickly, try running Quickplot -including the two options '--no-lines' and '--point-size=0' in the -command line.  This will make the plot drawing and redrawing as -fast as it can be at the expense of having points that are just one -pixel in size, which should be no problem if you have that many -points.  Once you zoom to a picture that you like you can -increase the point size or add lines, using the GUI (graphical user -interface), if you need to.  Quickplot loads the entire file into -memory for any file loaded, so you may need to be careful of your -memory usage when working with large files. - -

    By default plots created in Quickplot with 1,000,000 or more -points will be drawn without lines and points of size one pixel, -unless the user has included one or more of the following options in -the command line: --no-lines, --no-points, --line-width, or ---point-size.  For plots with less than 1,000,000 points the -default line width is 3 pixels and the default point size is 5 pixels. -

    - -

    On a 2.4 Gig Hz Pentium 4 (with Gentoo GNU/Linux) with 256 Megabytes -of RAM it has been observed to take 8 seconds to load and display an -ASCII text file with 1 million data points; after startup it was -observed to take about one second to redraw with the one million -points in view.  When repeating this with lines of width 3 pixels -and points of size 5 pixels the loading time is about the same and the -drawing time increases by about 3 seconds.  Drawing time didn't -seem to vary with window size.

    - -
    - - - -
    -

    Command Line Options

    - -Usage: quickplot [OPTIONS] [file1] [OPTIONS] [file2] [OPTIONS] ... - -

    If no -p or --plot option is given then the default initial plots -will be up to 12 plots.  The default initial plots will be of all -fields, except the first field in the order that the field was loaded -from a file plotted against the first field in the file.  If a -file contains one field (like a sound file) than a field that contains -a linear (time) sequence of values will be generated before the file's -field is loaded. If standard input is read it will be the first file -loaded.

    - -

    - - -OPTIONS

    - - - - - -
    -

    Key Bindings

    - -
    -Quickplot has GUIs for all of the following immutable keyboard short-cuts: - - -
      - -
    • a   show information about Quickplot using a web browser
    • -
    • b   toggles the visibility of the button bar
    • -
    • c   copies the current focused main window frame
    • -
    • d   delete the main window. This will not close the last main window.
    • -
    • f   makes a new main window frame
    • -
    • g   show/hide the graph configuration widget
    • -
    • h   show help using a web browser
    • -
    • i   save a PNG image of the graph
    • -
    • m   show/hide the menu bar
    • -
    • n   make a new graph
    • -
    • o   open a data file
    • -
    • p   show/hide the plot lister widget
    • -
    • q   quit
    • -
    • s   toggles the visibility of the status bar
    • -
    • t   toggles the visibility of the graph tabs
    • -
    • esc   close the current focused window. This will not close the last main window.
    • - - -
    -
    - - - 
    - diff -Nru quickplot-0.8.15/help_tail.htm.in quickplot-0.9.11/help_tail.htm.in --- quickplot-0.8.15/help_tail.htm.in 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/help_tail.htm.in 2011-12-17 06:47:02.000000000 +0000 @@ -0,0 +1,185 @@ + + + + + +

    For example the command +

    + +
    quickplot file0.txt file1.wav file2.csv file3.dat
    + +

    +will make four graphs in four tabs in one main window. +

    + +

    The command

    + +
    quickplot file0.txt file1.wav file2.csv --new-window file3.dat --no-new-window
    + +

    +will make two windows with two graphs in each window.  You see: file1.wav will be +forced to be graphed when the parser hits the argument file2.csv, and +file2.csv will be forced to be graphed when the parser hits the +file3.dat argument, at which time the --new-window +is in effect which causes a new window to be used for file2.csv.  +file3.dat will be graphed in the same window as file2.csv because the +--new-window option is not longer in effect +when file3.dat is forced to be graphed at the end of the command line. +

    + + + +

    The command

    + +
    quickplot load1.txt --no-grid --no-lines load2.txt --lines=y --line-width=9 -F
    + +

    +will make a graph from data in file load1.txt with no connecting lines +and no grid.  It will make a graph from the data in load2.txt +with lines with width 9 pixels and no grid.  +The main window displayed will not be full screen since the +-F option was given after the main window +would have been created.  +The two graphs will be in two different tab pages in the one main window. +

    + +

    The command

    + +
    quickplot --fullscreen --no-gui load1.txt --default-graph --gui \
    +--no-buttons --no-fullscreen --geometry=400x400-0+0 --new-window \
    +--graph "0 1" --geometry=400x400+0-0 load2.txt \
    +--background-color='rgba(140,140,200,0.6)' --cairo-draw
    + +

    +will make main window with a graph in full screen without GUIs, another smaller main window +with the same plot in the top right corner with GUIs except for the buttons bar, +and another small main window in the bottom left corner with a default graph of +the file load2.txt drawn with Cairo with a translucent blueish +gray background.  +The main windows are made when they have to be, which at the +--default-graph, --graph "0 1", and +at the end of the command line when for the default graph of the file +load2.txt must be displayed.  +Notice all the graphs are made in a new main window.  +That's because the --new-window flag +was set and is not unset as it could be with the --no-new-window +command. +

    + + +

    GTK+ OPTIONS

    + + +

    +The following GTK+ options are parsed by +the GTK+ APIs (application +programming interfaces), which Quickplot uses: +

    + + + + + + + + + + + + + + + + + + + + +
    --class=CLASS Program class as used by the window manager
    --display=DISPLAY X display to use
    --g-fatal-warnings Make all warnings fatal
    --gdk-debug=FLAGS Gdk debugging flags to set
    --gdk-no-debug=FLAGS Gdk debugging flags to unset
    --gtk-debug=FLAGS Gtk+ debugging flags to set
    --gtk-module=MODULE Load an additional Gtk module
    --gtk-no-debug=FLAGS Gtk+ debugging flags to unset
    --gxid-host=HOST
    --gxid-port=PORT
    --name=NAME Program name as used by the window manager
    --screen=SCREEN X screen to use
    --sync Make X calls synchronous
    + + + + + + + +

    Keyboard Short-cuts

    + + +

    +Quickplot has GUIs for all of the following immutable keyboard short-cuts: +

    + + + + +
    a show information about Quickplot using a web browser +
    b show/hide the button bar +
    c copies the current focused main window so long as + it is not maximized or in fullscreen +
    d delete the main window.  This will not close the last main window. +
    e toggles the visibility of the main window border +
    f toggles full screen viewing +
    g show/hide the graph detail widget +
    h show help using a web browser +
    i save a PNG image of the graph +
    m show/hide the menu bar +
    n make a new graph +
    o open a data file +
    q quit +
    r toggles the between drawing with Cairo and X11 +
    s show/hide of the status bar +
    t show/hide of the graph tabs +
    u show/hide of all GUIs
    w makes a new main window +
    xtoggles the X11 shape extension on and off +
    z zoom out one level +
    Z Zoom out all the way +
    + + + + +
    esc close the current focused + window.  This will not close the last main window.  + If the current focused window is in full screen this will change + it to non-full sreen. +
    left/right arrowthe right and left arrow keys cycle though graph tabs when the buttons + and tabs are not showing +
    + + + +@FOOTER_HTM@ + + + + diff -Nru quickplot-0.8.15/help.txt quickplot-0.9.11/help.txt --- quickplot-0.8.15/help.txt 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/help.txt 2011-12-30 06:17:00.000000000 +0000 @@ -0,0 +1,621 @@ + + Quickplot Help + +Terminology + + We need to distinguish between the two terms plot and graph. In + Quickplot a graph displays one or more plots. Quickplot displays each + graph in a page tab, like pages in a web browser. + + Quickplot can load data from: GUIs (graphical user interfaces), files + listed on the command line, and from standard input (pipes too). Data + is loaded into channels. A channel represents a series of numbers, + like for example the values for one variable, or a column of numbers in + a spreadsheet. Other names for channel may be dimension, coordinate, + degree-of-freedom, field, or component. We call them all channels in + Quickplot. Any two channels may be plotted against each other whether + they are from the same file or not. A plot is a graphically + representation of two channels, call them the X and Y channels. Any + number of plots may be made on a graph. The graph is like the paper we + put the plots on. + +Zooming + + * Grab Zooming Put the pointer (mouse) in the graph window. Press + the left mouse button and hold it while dragging the graph by + moving the pointer. Release the left mouse button and the graph + will stop moving with the pointer. + * Zooming In Put the pointer (mouse) on a corner of a graph region + you want to zoom to. Press the right mouse button and hold and + drag the zoom box. Release the right mouse button then it is at + another corner of the zoom region. Now Quickplot will zoom into + that zoom region. You can zoom in as many times as you like. + While holding the left mouse button you can press the shift key or + the control key while pulling the zoom box to "shift" or "resize + about the center" respectively. + You can zoom to a view of smaller plots by just pressing and + releasing the right mouse button, without moving the pointer. Do + it again and the plots get even smaller. You can do this any + number of times. + * Zooming Out Put the pointer (mouse) in the graph window. Press + the right mouse button and hold and drag the zoom box. Release the + right mouse button then it (the zoom box) is past one edge of the + graph window. Now Quickplot will zoom out to the previous zoom + level. Pressing the z key will do the same thing. + Or to zoom out to a full view (top zoom level) of the graph: put + the pointer (mouse) in the graph window. Press the right mouse + button and hold and drag the zoom box. Release the right mouse + button then the zoom box is past two edges (a corner) of the graph + window. Now Quickplot will zoom out to the top zoom level (no + zoom). Pressing Z (shift-z) will do the same thing. + +Graph Value Picking + + First open the Graph Details window by typing 'g', by using the View + menu, or by clicking the Graph Details button on the button bar. Then + select the "Plots List and Values" tab. The middle mouse button is + used for picking and displaying X and Y values from the graph. Just + try it and see. + + There are three modes of number display value picking, which may be + selected on the top of the "Plots List and Values" page (tab): + * Pointer Values shows values where the mouse pointer is in the + scale of the respective plot + * Interpolate Plot Values shows values where the X position of the + mouse pointer is with the Y value displayed being a linearly + interpolated value. This requires that all plots be functions of + one particular channel. + * Pick Plot Point Values shows X and Y plot point positions that + are closest to mouse pointer X position. This also requires that + all plots be functions of one particular channel. + + For the "Pointer Values" and "Interpolate Plot Values" modes the number + of significant digits displayed will vary with the value change per + pixel. So you will not see digits that are not representative of the + mouse position. Zooming will change the number of significant digits + displayed. + +Loadable File Formats + + Quickplot can read ASCII text and sound files: + + ASCII text + + Quickplot can load ASCII text (plan text) files. The number of values + on each line need not be the same, but any missing values will be + filled with NAN. Any number of non-number characters other than a new + line character may used to separate numbers on a given line. NAN, INF, + -NAN, -INF, +NAN, and +INF (lower case too) are numbers that can be + read by quickplot. Any line starting with zero or more white space + characters and then a any one of ! " # $ % & ' ( ) / < = > ? @ C c + is a comment line that is ignored. Any lines with no numbers that + can be read will be ignored. If you wish to have a break in a plot + line put a NAN (stands for not-a-number) in the channel (column) at the + point (or non-point) where you wish to put the break at. + + Example: + 1e2 0 -1 + 2.1e2 1 0 + 3e2 NAN 1 + 4.01e2 1 2 + 5e2 0.87 3 + 6.1e2 -0.65 3.2 + 7e2 1 3 + 5.4e2 0.7 2 + example plot + Graph with two plots: column 1 versus column 0 and column 2 versus + column 0. Note that when Quickplot plots a point with a x or y value + of NAN (or INF) the point is skipped and there is not a connecting line + to the adjacent points. + + In Austria it may look like: + 1e2 0 -1 + 2,1e2 1 0 + 3e2 NAN 1 + 4,01e2 1 2 + 5e2 0,87 3 + 6,1e2 -0,65 3,2 + 7e2 1 3 + 5,4e2 0,7 2 + + The above example has three channels and eight samples (set of values) + for each channel. A file may have any counting number of channels, + that's 1,2,3,4 or more channels. + + With the use of NAN, as a kind of plot line terminator, you can use + Quickplot to draw figures composed of straight line segments. Here's a + silly example. Copy and paste the following command to draw this + house: + + picture of house +echo -e "-10 8 -8 1 -1.5 -6\n-10 -6 -4 1 1.5 -6\n\ +10 -6 -4 5 1.5 3\n10 8 -8 5 -1.5 3\nnan nan -8 1 -1.5 -6\n\ +-13 8 nan nan\n13 8 4 1\n0 20 8 1\n-13 8 8 5\nnan nan 4 5\n\ +nan nan 4 1" | quickplot -P --line-width=2 --no-grid \ +--no-border --cairo-draw -C 'rgba(0,0,0,0)' --no-gui \ +--no-points --geometry 79x87 -F -g "0 1 2 3 4 5" + + Using NAN as a line terminator can be very handy when drawing phase + plots when you need to avoid connecting points that should not be + connected and you don't want to make more channels (degrees of + freedom). For phase space plots the NAN can be thought of as a place + holder where you removed part of the series because it is not + accessible in the current model sampling. + + If a file is loaded with a single channel an additional channel, with + the same number of values as the channel in the file, will be added + before the channel from the file. + + Quickplot can read [1]CSV files. + + libsndfile sound file + + Using the package libsndfile Quickplot can read many sound file + formats. An incomplete list of readable sound file formats includes: + Ogg/Vorbis, Microsoft WAV, SGI/Apple AIFF/AIFC, and Sun/DEC/NeXT + AU/SND. See the [2]libsndfile home-page for a full list of supported + sound file formats. + + When loading a sound file the first channel (sequence) loaded will be + the time sequence, then each sound channel will follow in separate + channels. Quickplot may be a little slow with sound files larger than + thirty seconds long. Thirty seconds of sound sampled at 44 kHz with + one channel would load 1.32 million data points. + +Command Line Options + + Usage: quickplot [OPTIONS] + + Graphs will be generated for each file loaded, unless options are given + that tell Quickplot to do otherwise. The default number of plots in a + graph will be up to 12 plots or just the number channels in the file + minus one if that is less, unless options override that. The default + initial plots will be of all channels except the first channel in the + order that the channel was loaded from a file plotted against the first + channel in the file. A time channel will be the first channel + generated for all sound files loaded. + + The order of argument options matters. Options take effect in the + order that they are given with later options overriding earlier ones. + The options that cause actions like graph "something" must come after + the option that says to read the file that has "something" in it. In + general, the order of argument options gives the order in which things + happen as Quickplot starts up. + + When using short options, like -n20 that require an argument, may not + be grouped with other short options in one argument. For example the + argument -on20, is not valid, but -oN is a valid argument with two + options o (--no-points) and N (--no-pipe), and -n20 is a valid option + (--number-of-plots=20) that sets the default number of plots to 20. + + All of the command line options set things that can be changed with the + Quickplot graphical user interface (GUI). For example, if you start + with a graph with no lines and just points showing, you can click a GUI + to add the lines after the program starts. + + OPTIONS + + long option short arg description + FILE read data from file FILE. If FILE is - (dash) then standard input + will be read. See also [3]--file and [4]--pipe. + --about -a display introductory information about Quickplot in a + browser and exit + --auto-scale -A automatically select the X and Y scales for graphs + containing more than one plot. This is the default. See also + [5]--same-x-scale, [6]--same-y-scale, [7]--same-scale + [8]--different-scale. + --background-color -C RGBA set the color of the graph background. RGBA + may be any string that GTK+ can parse into a RGB or RGBA color. For + examples --background-color='rgba(0,0,255,0.5)' will make translucent + blue, and -C '#050' will make a dark green. + --border -b add a border to main window. This is the default. See + also [9]--no-border. + --buttons show the button bar in the main window. This is the + default. See also [10]--no-buttons. + --cairo-draw -c draw graphs using the Cairo API. Cairo drawing may be + slower, but you get translucent colors and anti-aliasing in all aspects + of the graph and in saved image files. See also [11]--x11-draw. + --default-graph -D create the default graph for the current file and + turn default graphing for future files read. If you give a [12]--graph + or [13]--graph-file after this option you will generate an additional + graph. A default graph will be made each time this option is + encountered, so this can be used to control when, in the sequence of + command line options, graphs are made. See also + [14]--no-default-graph. + --different-scale -d graphs with more than one plot will have different + scales if the extreme values in each plot are not all the same. See + also [15]--same-scale, [16]--same-x-scale and [17]--same-y-scale. + --file -f FILE read data from file FILE. If FILE is - (dash) then + standard input will be read. See also [18]--pipe. + --fullscreen -F make the main window fullscreen. See also + [19]--no-fullscreen and [20]--maximize. + --gaps interpret NAN, -NAN, INF, -INF, and double overflow numbers as a + gap in the plot, and don't draw a connecting line to adjacent non-gap + points. This is the default. See also [21]--no-gaps. + --geometry GEO specify the position and size of the main window. To + set the geometry back to the default just set GEO to NONE. Example + --geometry=1000x300-0+30 + --graph -g LIST make a graph with plots LIST. The LIST is of the form + "x0 y0 x1 y1 x2 y2 ...". For example: --graph "0 1 3 4" will make two + plots in a graph. It will plot channel 1 vs channel 0 and channel 4 vs + channel 3 in the same graph. Data channels are numbered, starting at + 0, in the order that they are created as files are read. A separate + graph tab will be created for each --graph option given. This --graph + option must be after the file loading options that load the channels + that it lists to plot. See also [22]--graph-file. + --graph-file -G LIST make a graph with plots LIST. The LIST is of the + form "x0 y0 x1 y1 x2 y2 ...". Example: --graph-file "0 1 3 4" will + make two plots in a graph. It will plot channel 1 vs channel 0 and + channel 4 vs channel 3 in the same graph. A separate graph tab will be + created for each --graph-file option given. This is like the + [23]--graph option except that the channel numbers start at zero for + the last file read. They are relative channel numbers. So channel + numbers for ---graph-file may be negative to refer to channels that + came from files before the last file. This is handy if you load a lots + of files and lose count of the number of channels loaded in each file. + --grid draw a grid with the graph. This is the default. See also + [24]--no-grid. + --grid-font -T FONT set the font used to in the grid label numbers. + Example: --grid-font='Sans Bold 12'. The default grid font is "Sans + 10". + --grid-line-color RGBA set the graph grid lines color. RGBA may be any + string that GTK+ can parse into a RGB or RGBA color. For example + --grid_line_color='rgba(255,0,0,0.5)' will make a translucent red. + --grid-line-width -W PIXELS set the width of the grid lines if there + are any + --grid-numbers show grid numbers. This is the default. The grid must + be showing to show grid numbers too. See also [25]--no-grid-numbers. + --grid-text-color RGBA set the graph grid text color. RGBA may be any + string that GTK+ can parse into a RGB or RGBA color. For example + --grid_text_color='rgba(0,255,0,0.5)' will make translucent green. + --grid-x-space -X PIXELS set the maximum x space between vertical grid + lines. The minimum will be about half this. This distance varies as + the scale changes due to zooming. This distance cannot be fixed due to + the way Quickplot scales your graphs and always picks reasonable grid + line spacing. See also --grid-x-space. + --grid-y-space -Y PIXELS set the maximum y space between horizontal + grid lines. See also [26]--grid-x-space above. + --gtk-version print the version of GTK+ that Quickplot was built with + and then exit + --gui show the menu bar, button bar, tabs bar, and the status bar. + This is the default. See also [27]--no-gui. + --help -h display help in a browser and exit + --label-separator -p STR specifies the label separator string STR if + labels are read in from the top of a text data plot file. The default + value of STR is " " (a single space). See option: [28]--labels. + --labels -L read labels from the first line of a text file that is not + skipped. See also: [29]--skip-lines, [30]--label-separator and + [31]--no-labels. + --libsndfile-version print the version of libsndfile that Quickplot was + built with and then exit + --line-width -I PIXELS specify the plot line widths in pixels. May be + set to AUTO to let Quickplot select the line width based on the plot + point density. AUTO is the default. + --linear-channel -l [OPTS] OPTS are START|[STEP]. This option prepends + a linear series channel to the file being read. + * START set the first value in the sequence to START. The default + START value is 0. + * STEP set the sequence step size to STEP. The default STEP is 1. + + There must be a START before STEP. For example: --linear-channel='100 + 0.2' will make a linear channel that starts at 100 and steps 0.2. + Sound files will always have a linear channel that contains the time + prepended. Using this option with a sound file would prepend an + additional channel. Any file loaded that contains just a single + channel will automatically have a channel prepended. Using this option + with a single channel file will not prepend an additional channel, but + will let you set the start and step values for that prepended channel. + See also [32]--no-linear-channel. + --lines -j Y|N|A + * Y yes show lines + * N no don't show lines. Same as [33]--no-lines. + * A auto, be smart about it. This is the default. + + --maximize -m maximize the main window. See also [34]--no-maximize and + [35]--fullscreen. + --menubar show the menu bar. This is the default. See also --menubar. + --new-window -w make a new main window for each graph + --no-border -B display graphs main windows with no borders + --no-buttons hide the button bar in the main window. See also + [36]--buttons. + --no-default-graph -U stop making the default graph for each file + loaded. See also [37]--default-graph. + --no-fullscreen don't make the main window fullscreen. This is the + default. See also [38]--fullscreen. + --no-gaps -J draw a line across NAN (-NAN, INF, -INF and overflow + double) values if there are finite values on both sides. See also + [39]--gaps. + --no-grid -H don't draw graph grid lines in the graph. See also + [40]--grid. + --no-grid-numbers don't show grid numbers. See also + [41]--grid-numbers. + --no-gui -z don't show the menu bar, button bar, tabs bar, and status + bar. See also [42]--gui. + --no-labels -Q don't read channel labels from the file. This is the + deafult. See also [43]--labels. + --no-linear-channel -k turn off adding a linear channel for up coming + files. See also [44]--linear-channel. + --no-lines -i plot without drawing lines in the graph. See also + --lines. + --no-maximize don't maximize the main window. This is the default. + See also [45]--maximize. + --no-menubar -M don't display the menu bar in the main window. See + also [46]--menubar. + --no-new-window -Z don't make a new main window for the graph. This is + the default. See also [47]--new-window. + --no-pipe -N don't read data in from standard input even if there is + input to read. See also [48]--pipe. + --no-points -o plot without drawing points in the graph. See also + --points. + --no-readline don't use GNU readline with the Quickplot command shell + if you run with the [49]--shell option. This option has no effect if + Quickplot is not built with GNU readline. + --no-shape turn off the use of the X11 shape extension. See also + [50]--shape. + --no-statusbar hide the status bar in the main window. See also + [51]--statusbar. + --no-tabs don't show the graph tabs in the main window. See also + [52]--tabs. + --number-of-plots -n NUM set the default maximum number of plots for + each graph to NUM + --pipe -P read graph data from standard input. By default Quickplot + looks for data from standard input and stops looking if no data is + found in some short amount of time. This option will cause Quickplot + to wait for standard input indefinitely. If you would like to type + data in from the terminal use --pipe. This option is the same as + [53]--file=-. + --point-size -O PIXELS start Quickplot using plot point size PIXELS + wide in pixels. This may be set to AUTO to have quickplot + automatically set the point size depending on the point density that is + in graph. AUTO is the default. + --points show points in the plots in the graph. This is the default. + --print-about prints the About document to standard output andthen + exits. Use option [54]--about to display an HTML version of the + Quickplot About information. + --print-help prints this Help document as ASCII text to standard output + and then exits. Use option [55]--help for displaying an HTML version + of this help. + --read-pipe-here -R this is a place holder that tells Quickplot when to + read the data from standard input. This is intended to give the option + of telling Quickplot when to read standard input when Quickplot + automatically determines whether to read standard input or not. See + options [56]--file, [57]--pipe and [58]--no-pipe. + --same-scale -s plot all plots in the same graph scale. See also + [59]--different-scale, [60]--same-x-scale and [61]--same-y-scale. + --same-x-scale -x Y|N|A use in place of [62]--same-scale or + [63]--auto-scale for finer control over how the x values of the plots + are scaled when you have more than one plot on a graph + * Y yes same x scale + * N no different x scales + * A auto, be smart about it. This is the default. + + See also [64]--same-y-scale. + --same-y-scale -y Y|N|A use in place of [65]--same-scale or + [66]--auto-scale for finer control over how the x values of the plots + are scaled when you have more than one plot on a graph + * Y yes same y scale + * N no different y scales + * A auto, be smart about it. This is the default. + + See also [67]--same-x-scale. + --shape make graphs see through. This is insanely cool. It uses the + X11 shape extension which was made famous by xeyes. The X11 shape + extension may be a little flashy on some systems. Try using --shape + with the [68]--no-gui, [69]--no-grid, and [70]--no-border options to + make a floating graph on your display. The use of the X11 shape + extension is a property of the main window, not each graph tab. This + option may not work well with fullscreen view. This will slow down + graph drawing considerably. You can toggle this on and off with the x + key. See option [71]--no-shape. + --shell -e run a Quickplot command shell that reads commands from + standard input and writes out to standard output. The default is no + shell and standard input will be read as graph data. This option will + override [72]--pipe and like options. If you want to have a Quickplot + command shell and read graph data on a pipe you can prefix the graph + data with the "read" command. You can also connect a any number of + Quickplot command shells to a running Quickplot program with the + program quickplot_shell. THIS IS NOT FUNCTIONING YET. + --silent don't spew even on error. The --silent option will override + the effect of the [73]--verbose option. + --skip-lines -S NUM skip the first NUM lines when reading the file. + This applies of all types of files that quickplot can read. Set NUM to + zero to stop skipping lines. + --statusbar show the status bar below the graph. This is the default. + See also [74]--no-statusbar. + --tabs show the graph tabs. This is the default. See also + [75]--no-tabs. + --verbose -v spew more to standard output. See also [76]--silent. + --version -V print the Quickplot version number and then exit returning + 0 exit status + --x11-draw -q draw points and lines using the X11 API. This is the + default. Drawing may be much faster than with Cairo, but there will be + no translucent colors and no anti-aliasing in the drawing of the plot + lines and points. There will be translucent colors and anti-aliasing in + the background and grid. Also, saved images will not have translucent + colors like they do with the Cairo draw mode. You can start drawing + with X11 and switch to drawing with Cairo when you want to save an + image. Use the r key or the View menu to switch back and forth between + drawing with X11 and Cairo. See also [77]--cairo-draw. + + For example the command +quickplot file0.txt file1.wav file2.csv file3.dat + + will make four graphs in four tabs in one main window. + + The command +quickplot file0.txt file1.wav file2.csv --new-window file3.dat --no-new-window + + will make two windows with two graphs in each window. You see: + file1.wav will be forced to be graphed when the parser hits the + argument file2.csv, and file2.csv will be forced to be graphed when the + parser hits the file3.dat argument, at which time the --new-window is + in effect which causes a new window to be used for file2.csv. + file3.dat will be graphed in the same window as file2.csv because the + --new-window option is not longer in effect when file3.dat is forced to + be graphed at the end of the command line. + + The command +quickplot load1.txt --no-grid --no-lines load2.txt --lines=y --line-width=9 -F + + will make a graph from data in file load1.txt with no connecting lines + and no grid. It will make a graph from the data in load2.txt with + lines with width 9 pixels and no grid. The main window displayed will + not be full screen since the -F option was given after the main window + would have been created. The two graphs will be in two different tab + pages in the one main window. + + The command +quickplot --fullscreen --no-gui load1.txt --default-graph --gui \ +--no-buttons --no-fullscreen --geometry=400x400-0+0 --new-window \ +--graph "0 1" --geometry=400x400+0-0 load2.txt \ +--background-color='rgba(140,140,200,0.6)' --cairo-draw + + will make main window with a graph in full screen without GUIs, another + smaller main window with the same plot in the top right corner with + GUIs except for the buttons bar, and another small main window in the + bottom left corner with a default graph of the file load2.txt drawn + with Cairo with a translucent blueish gray background. The main + windows are made when they have to be, which at the --default-graph, + --graph "0 1", and at the end of the command line when for the default + graph of the file load2.txt must be displayed. Notice all the graphs + are made in a new main window. That's because the --new-window flag + was set and is not unset as it could be with the --no-new-window + command. + + GTK+ OPTIONS + + The following GTK+ options are parsed by the [78]GTK+ APIs (application + programming interfaces), which Quickplot uses: + + --class=CLASS Program class as used by the window manager + --display=DISPLAY X display to use + --g-fatal-warnings Make all warnings fatal + --gdk-debug=FLAGS Gdk debugging flags to set + --gdk-no-debug=FLAGS Gdk debugging flags to unset + --gtk-debug=FLAGS Gtk+ debugging flags to set + --gtk-module=MODULE Load an additional Gtk module + --gtk-no-debug=FLAGS Gtk+ debugging flags to unset + --gxid-host=HOST + --gxid-port=PORT + --name=NAME Program name as used by the window manager + --screen=SCREEN X screen to use + --sync Make X calls synchronous + +Keyboard Short-cuts + + Quickplot has GUIs for all of the following immutable keyboard + short-cuts: + + a show information about Quickplot using a web browser + b show/hide the button bar + c copies the current focused main window so long as it is not maximized + or in fullscreen + d delete the main window. This will not close the last main window. + e toggles the visibility of the main window border + f toggles full screen viewing + g show/hide the graph detail widget + h show help using a web browser + i save a PNG image of the graph + m show/hide the menu bar + n make a new graph + o open a data file + q quit + r toggles the between drawing with Cairo and X11 + s show/hide of the status bar + t show/hide of the graph tabs + u show/hide of all GUIs + w makes a new main window + x toggles the X11 shape extension on and off + z zoom out one level + Z Zoom out all the way + + esc close the current focused window. This will not close the last + main window. If the current focused window is in full screen this will + change it to non-full sreen. + left/right arrow the right and left arrow keys cycle though graph tabs + when the buttons and tabs are not showing + + [79] Top | [80] About | Help Quickplot Version 0.9.11 + +References + + 1. http://en.wikipedia.org/wiki/Comma-separated_values + 2. http://www.mega-nerd.com/libsndfile/ + 3. file:help.html#op_file + 4. file:help.html#op_pipe + 5. file:help.html#op_same_x_scale + 6. file:help.html#op_same_y_scale + 7. file:help.html#op_same_scale + 8. file:help.html#op_different_scale + 9. file:help.html#op_no_border + 10. file:help.html#op_no_buttons + 11. file:help.html#op_x11_draw + 12. file:help.html#op_graph + 13. file:help.html#op_graph_file + 14. file:help.html#op_no_default_graph + 15. file:help.html#op_same_scale + 16. file:help.html#op_same_x_scale + 17. file:help.html#op_same_y_scale + 18. file:help.html#op_pipe + 19. file:help.html#op_no_fullscreen + 20. file:help.html#op_maximize + 21. file:help.html#op_no_gaps + 22. file:help.html#op_graph_file + 23. file:help.html#op_graph + 24. file:help.html#op_no_grid + 25. file:help.html#op_no_grid_numbers + 26. file:help.html#op_grid_x_space + 27. file:help.html#op_no_gui + 28. file:help.html#op_labels + 29. file:help.html#op_skip_lines + 30. file:help.html#op_label_separator + 31. file:help.html#op_no_labels + 32. file:help.html#op_no_linear_channel + 33. file:help.html#op_no_lines + 34. file:help.html#op_no_maximize + 35. file:help.html#op_fullscreen + 36. file:help.html#op_buttons + 37. file:help.html#op_default_graph + 38. file:help.html#op_fullscreen + 39. file:help.html#op_gaps + 40. file:help.html#op_grid + 41. file:help.html#op_grid_numbers + 42. file:help.html#op_gui + 43. file:help.html#op_labels + 44. file:help.html#op_linear_channel + 45. file:help.html#op_maximize + 46. file:help.html#op_menubar + 47. file:help.html#op_new_window + 48. file:help.html#op_pipe + 49. file:help.html#op_shell + 50. file:help.html#op_shape + 51. file:help.html#op_statusbar + 52. file:help.html#op_tabs + 53. file:help.html#op_file + 54. file:help.html#op_about + 55. file:help.html#op_help + 56. file:help.html#op_file + 57. file:help.html#op_pipe + 58. file:help.html#op_no_pipe + 59. file:help.html#op_different_scale + 60. file:help.html#op_same_x_scale + 61. file:help.html#op_same_y_scale + 62. file:help.html#op_same_scale + 63. file:help.html#op_auto_scale + 64. file:help.html#op_same_y_scale + 65. file:help.html#op_same_scale + 66. file:help.html#op_auto_scale + 67. file:help.html#op_same_x_scale + 68. file:help.html#op_no_gui + 69. file:help.html#op_no_grid + 70. file:help.html#op_no_border + 71. file:help.html#op_no_shape + 72. file:help.html#op_pipe + 73. file:help.html#op_verbose + 74. file:help.html#op_no_statusbar + 75. file:help.html#op_no_tabs + 76. file:help.html#op_silent + 77. file:help.html#op_cairo_draw + 78. http://www.gtk.org/ + 79. file:index.html + 80. file:about.html Binary files /tmp/yKsuTgpbVV/quickplot-0.8.15/house.png and /tmp/Ocqs54f4Rr/quickplot-0.9.11/house.png differ diff -Nru quickplot-0.8.15/html2CString quickplot-0.9.11/html2CString --- quickplot-0.8.15/html2CString 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/html2CString 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -#! /bin/sh - -if [ "$1" = "" ] -then - echo "Usage: cat FILE.html | $0 FILE_html.cpp" - exit 1 -fi - - -echo "// $1 Generated by running: cat ${1%_html.cpp}.html | $0 $*" > $1 - -echo >> $1 - -echo "const char *${1%.cpp} = " >> $1 - -while read a -do - echo -n "\"" >> $1 - echo -n $a | sed -e 's/"/\\\"/g' >> $1 - echo -n "\\" >> $1 - echo -n "n" >> $1 - echo "\"" >> $1 -done - -echo ";" >> $1 Binary files /tmp/yKsuTgpbVV/quickplot-0.8.15/imgAbout_browser.png and /tmp/Ocqs54f4Rr/quickplot-0.9.11/imgAbout_browser.png differ diff -Nru quickplot-0.8.15/imgAbout_browser.xpm quickplot-0.9.11/imgAbout_browser.xpm --- quickplot-0.8.15/imgAbout_browser.xpm 2009-03-09 01:19:10.000000000 +0000 +++ quickplot-0.9.11/imgAbout_browser.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,126 +0,0 @@ -/* XPM */ -static const char *imgAbout_browser[] = { -/* columns rows colors chars-per-pixel */ -"16 12 108 2", -" c #585858", -". c #9F9F9E", -"X c #A0A0A0", -"o c #AEAEAE", -"O c #B0B1B0", -"+ c #B3B3B2", -"@ c #BEBEB2", -"# c #B8B8B7", -"$ c gray72", -"% c #B9B9B8", -"& c #BABAB9", -"* c #B9B9BA", -"= c #BEBEBB", -"- c #BFC0BC", -"; c #C1C1B5", -": c #C0C0BA", -"> c #C5C5BA", -", c #C0C0BD", -"< c #C1C1BD", -"1 c #C1C1BE", -"2 c #C4C3BF", -"3 c #C4C4BD", -"4 c #C1C1C0", -"5 c #C2C2C1", -"6 c #C6C5C1", -"7 c #C7C7C2", -"8 c #C6C6C3", -"9 c gray77", -"0 c gray78", -"q c #C7C8C2", -"w c #CECEC0", -"e c #CACACA", -"r c #CDCDC9", -"t c #CDCDCD", -"y c #CFCFCC", -"u c #CECECD", -"i c #CDCDCF", -"p c #D0D0CD", -"a c #D2D1CF", -"s c #D3D4CE", -"d c #D3D3D2", -"f c #D5D5D1", -"g c #D5D5D2", -"h c gray83", -"j c #D5D5D5", -"k c #D7D7D4", -"l c #D7D7D7", -"z c #D8D8D3", -"x c #DDDDD6", -"c c gray85", -"v c #DADAD9", -"b c #DADADB", -"n c gray86", -"m c #DEDEDB", -"M c #DBDBDC", -"N c gainsboro", -"B c #DDDDDC", -"V c #DDDDDD", -"C c #DDDDDF", -"Z c gray87", -"A c #E1E1DD", -"S c #E3E3DE", -"D c #D5D5EF", -"F c #DFDFE8", -"G c #D4D4F6", -"H c #D9D9F1", -"J c #DADAFF", -"K c gray88", -"L c #E0E0E2", -"P c #E1E1E2", -"I c gray89", -"U c #E3E3E4", -"Y c #E4E4E5", -"T c gray90", -"R c #E6E6E5", -"E c #E5E5E6", -"W c #E6E6E7", -"Q c #EEEDE4", -"! c #E6E6E8", -"~ c #E7E7E8", -"^ c gray91", -"/ c #E8E8E9", -"( c #E9E9E9", -") c #EAEAEA", -"_ c #EAEAEB", -"` c #EFEFEF", -"' c #EEEEF1", -"] c #ECECFF", -"[ c gray94", -"{ c #F0F0F3", -"} c gray95", -"| c #F1F1F4", -" . c #F4F4F4", -".. c gray96", -"X. c #F6F6F6", -"o. c gray97", -"O. c #F9F9F9", -"+. c #F9F9FA", -"@. c gray98", -"#. c #FBFBFB", -"$. c gray99", -"%. c #FDFDFD", -"&. c #FDFEFD", -"*. c #FEFEFC", -"=. c #FDFDFE", -"-. c #FEFEFE", -";. c #FEFEFF", -":. c gray100", -/* pixels */ -"X X X X X X X X X X X X X X X X ", -"r 8 A s : 2 q Q R z f g k a S O ", -";.:.;.:.%.:.b o.:.-.:.&.:.m ", -"-.:.;.*.:.* * u c * Y :.#.@.:.p ", -"7 3 ; F ] +.@.@.#.@.$.$.#.O.:.y ", -"~ H D G J =.:.;.:.:.:.:.:.%.:.1 ", -"d > w @ x B M v I V V n N h :.= ", -"[ | ' { ! T ) ^ #. .X...X.} :., ", -"Z t j Z V l K c T ` ( ) ^ I :.< ", -"X.% 9 4 0 & e 5 # + o $ o . -.- ", -"O.i ! P E U / C _ L P P W b :.6 ", -"* * * * * * * * * * * * * * * * " -}; Binary files /tmp/yKsuTgpbVV/quickplot-0.8.15/imgCloseFrame.png and /tmp/Ocqs54f4Rr/quickplot-0.9.11/imgCloseFrame.png differ diff -Nru quickplot-0.8.15/imgCloseFrame.xpm quickplot-0.9.11/imgCloseFrame.xpm --- quickplot-0.8.15/imgCloseFrame.xpm 2009-03-09 01:19:10.000000000 +0000 +++ quickplot-0.9.11/imgCloseFrame.xpm 1970-01-01 00:00:00.000000000 +0000 @@ -1,54 +0,0 @@ -/* XPM */ -static const char *imgCloseFrame[] = { -/* columns rows colors chars-per-pixel */ -"16 16 32 1", -" c black", -". c gray1", -"X c #030405", -"o c #040504", -"O c #120301", -"+ c #180001", -"@ c #141313", -"# c #2D0D07", -"$ c #3F1000", -"% c #33221D", -"& c #1D2122", -"* c #2D3731", -"= c #652815", -"- c #7C371F", -"; c #4F3F37", -": c #217716", -"> c #385F25", -", c #3F6021", -"< c #4F4F1A", -"1 c #57541A", -"2 c #446A25", -"3 c #800000", -"4 c #833E24", -"5 c #843F29", -"6 c #C00000", -"7 c red", -"8 c #814C23", -"9 c #2D8229", -"0 c green", -"q c #0058C0", -"w c #C3C3C3", -"e c None", -/* pixels */ -"e3eeeeeeeeeeee3e", -"633wwwwwwwwww366", -"3633wwwwwwww3633", -"e3633 @X$3633e", -"ew3633o.&%3633we", -"ew03633qq36330we", -"ew703633363300we", -"ew800363633q0Owe", -"ew,#003633:q0+we", -"ew2qq36363390qwe", -"ew>q363336330 c #34300F", -", c #1D1820", -"< c #1D1D20", -"1 c #0B1B31", -"2 c #2B2E36", -"3 c #471F10", -"4 c #532406", -"5 c #5D260F", -"6 c #572919", -"7 c #5D3F1F", -"8 c #612B13", -"9 c #63301F", -"0 c #68301D", -"q c #72311B", -"w c #462F25", -"e c #094E01", -"r c #3D440C", -"t c #39471D", -"y c #237C17", -"u c #3E7318", -"i c #2C4F2C", -"p c #31432A", -"a c #325136", -"s c #326930", -"d c #2F7032", -"f c #3D7031", -"g c #4A511E", -"h c #60440C", -"j c #5E6002", -"k c #537612", -"l c #787008", -"z c #60661E", -"x c #657212", -"c c #182C4D", -"v c #083B55", -"b c #02305D", -"n c #213243", -"m c #363949", -"M c #173C6C", -"N c #223B63", -"B c #2C3D62", -"V c #24465C", -"C c #017248", -"Z c #1E5A6B", -"A c #0E4F79", -"S c #4E554E", -"D c #4F5050", -"F c #525353", -"G c #5E5652", -"H c #5A5A58", -"J c #5A5A59", -"K c #5B5B5A", -"L c #5F5D5B", -"P c #7F6157", -"I c #637E52", -"U c #454460", -"Y c #54666B", -"T c #616361", -"R c #656565", -"E c #696967", -"W c #6C6C6C", -"Q c #7F7A78", -"! c gray49", -"~ c #7F7F7F", -"^ c #8E2D19", -"/ c #8C570F", -"( c #93624E", -") c #82695F", -"_ c #947062", -"` c #158405", -"' c #128F00", -"] c #049B04", -"[ c #21930D", -"{ c #3B9C03", -"} c #06A601", -"| c #07A508", -" . c #3FAE03", -".. c #20B706", -"X. c #108030", -"o. c #0ABE34", -"O. c #578408", -"+. c #698603", -"@. c #41BD00", -"#. c #00CD00", -"$. c #1ACA18", -"%. c #29C807", -"&. c #35C900", -"*. c #36C800", -"=. c #36C900", -"-. c #0CF200", -";. c #3DE130", -":. c #078959", -">. c #00AC40", -",. c #4E994F", -"<. c #648249", -"1. c #608066", -"2. c #7E827E", -"3. c #7D947E", -"4. c #4EC94F", -"5. c #4EE74E", -"6. c #7DC67D", -"7. c #7DD87D", -"8. c #818657", -"9. c #80817F", -"0. c #10478A", -"q. c #195B8A", -"w. c #01479A", -"e. c #01489D", -"r. c #064C9F", -"t. c #115497", -"y. c #275195", -"u. c #1853A0", -"i. c #0155B4", -"p. c #0058C0", -"a. c #309C8D", -"s. c #7D8C9E", -"d. c #7D9BBF", -"f. c #4E83C1", -"g. c #808080", -"h. c #828281", -"j. c #878381", -"k. c #878687", -"l. c #8C8380", -"z. c #888787", -"x. c #838883", -"c. c #878987", -"v. c #8D8A82", -"b. c #998882", -"n. c #839C82", -"m. c #90908D", -"M. c #92928F", -"N. c #869E9B", -"B. c #9A9A97", -"V. c #9C9894", -"C. c #9B9B98", -"Z. c #9F9F9E", -"A. c #A39B96", -"S. c #86A68F", -"D. c #95B281", -"F. c #9BA29B", -"G. c #9CA29A", -"H. c #B8A399", -"J. c #AAAAAB", -"K. c #ADACAB", -"L. c #B3B3B1", -"P. c #CFCFCC", -"I. c #D0D0CD", -"U. c #D1D1CD", -"Y. c #D4D3D0", -"T. c #D4D5D0", -"R. c #D5D5D1", -"E. c #D6D6D2", -"W. c #D7D7D3", -"Q. c #D8D8D4", -"!. c #D9D9D5", -"~. c #DADAD6", -"^. c #DADBD7", -"/. c #DBDBD7", -"(. c #DCDCD8", -"). c #DFDEDB", -"_. c #DFDFDB", -"`. c #E0E2DE", -"'. c #E0E2DF", -"]. c #E4E4DF", -"[. c None", -/* pixels */ -"I.P.R.E.U.T.!.^./.~.[.[.[.[.[.[.", -"L.B.m.M.m.C.A.H.V.K.[.[.[.[.[.[.", -"! $ + . # * 5 & D [.[.[.[.[.[.", -"6...[ n w.r.B 6 { 4.[.[.[.[.[.[.", -"D./ *.q.b M u.C } ,.[.[.[.[.[.[.", -"j.t X.$.4 w I a.f W [.[.[.[.[.[.", -"x.i y.y O.( Y.Q.!.(.W.).`.'.]._.", -"d.i.c : .;.h.E H J K R ) _ L Z.", -"N.V % 9 ^ <.S ; @ X O < 3 8 o 2.", -"F.T F G P Q 5.@.k 0.p.p.N h -.7.", -"[.[.[.[.[.[.8.x %.A 1 m t.>.e 3.", -"[.[.[.[.[.[.J a :.&.> 7 d o.v s.", -"[.[.[.[.[.[.Y Z U ` l z - ] s S.", -"[.[.[.[.[.[.f.e., r +.=.' #.u n.", -"[.[.[.[.[.[.1.2 = 0 q p | j g c.", -"[.[.[.[.[.[.G.k.~ l.b.z.g.9.v.J." -}; Binary files /tmp/yKsuTgpbVV/quickplot-0.8.15/imgCopyWindow.png and /tmp/Ocqs54f4Rr/quickplot-0.9.11/imgCopyWindow.png differ diff -Nru quickplot-0.8.15/imgCopyWindow.xpm quickplot-0.9.11/imgCopyWindow.xpm --- quickplot-0.8.15/imgCopyWindow.xpm 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/imgCopyWindow.xpm 2011-12-30 06:17:00.000000000 +0000 @@ -0,0 +1,203 @@ +/* XPM */ +static const char *imgCopyWindow[] = { +/* columns rows colors chars-per-pixel */ +"16 16 181 2 ", +" c #010101", +". c #020402", +"X c #040506", +"o c #0A0F04", +"O c #05090D", +"+ c #071305", +"@ c #0A1E08", +"# c #151415", +"$ c #191818", +"% c #1F1C1A", +"& c #200F06", +"* c #35160B", +"= c #211E1D", +"- c #18280D", +"; c #1C2A1B", +": c #302F0A", +"> c #34300F", +", c #1D1820", +"< c #1D1D20", +"1 c #0B1B31", +"2 c #2B2E36", +"3 c #471F10", +"4 c #532406", +"5 c #5D260F", +"6 c #572919", +"7 c #5D3F1F", +"8 c #612B13", +"9 c #63301F", +"0 c #68301D", +"q c #72311B", +"w c #462F25", +"e c #094E01", +"r c #3D440C", +"t c #39471D", +"y c #237C17", +"u c #3E7318", +"i c #2C4F2C", +"p c #31432A", +"a c #325136", +"s c #326930", +"d c #2F7032", +"f c #3D7031", +"g c #4A511E", +"h c #60440C", +"j c #5E6002", +"k c #537612", +"l c #787008", +"z c #60661E", +"x c #657212", +"c c #182C4D", +"v c #083B55", +"b c #02305D", +"n c #213243", +"m c #363949", +"M c #173C6C", +"N c #223B63", +"B c #2C3D62", +"V c #24465C", +"C c #017248", +"Z c #1E5A6B", +"A c #0E4F79", +"S c #4E554E", +"D c #4F5050", +"F c #525353", +"G c #5E5652", +"H c #5A5A58", +"J c #5A5A59", +"K c #5B5B5A", +"L c #5F5D5B", +"P c #7F6157", +"I c #637E52", +"U c #454460", +"Y c #54666B", +"T c #616361", +"R c #656565", +"E c #696967", +"W c #6C6C6C", +"Q c #7F7A78", +"! c gray49", +"~ c gray50", +"^ c #8E2D19", +"/ c #8C570F", +"( c #93624E", +") c #82695F", +"_ c #947062", +"` c #158405", +"' c #128F00", +"] c #049B04", +"[ c #21930D", +"{ c #3B9C03", +"} c #06A601", +"| c #07A508", +" . c #3FAE03", +".. c #20B706", +"X. c #108030", +"o. c #0ABE34", +"O. c #578408", +"+. c #698603", +"@. c #41BD00", +"#. c #00CD00", +"$. c #1ACA18", +"%. c #29C807", +"&. c #35C900", +"*. c #36C800", +"=. c #36C900", +"-. c #0CF200", +";. c #3DE130", +":. c #078959", +">. c #00AC40", +",. c #4E994F", +"<. c #648249", +"1. c #608066", +"2. c #7E827E", +"3. c #7D947E", +"4. c #4EC94F", +"5. c #4EE74E", +"6. c #7DC67D", +"7. c #7DD87D", +"8. c #818657", +"9. c #80817F", +"0. c #10478A", +"q. c #195B8A", +"w. c #01479A", +"e. c #01489D", +"r. c #064C9F", +"t. c #115497", +"y. c #275195", +"u. c #1853A0", +"i. c #0155B4", +"p. c #0058C0", +"a. c #309C8D", +"s. c #7D8C9E", +"d. c #7D9BBF", +"f. c #4E83C1", +"g. c #808080", +"h. c #828281", +"j. c #878381", +"k. c #878687", +"l. c #8C8380", +"z. c #888787", +"x. c #838883", +"c. c #878987", +"v. c #8D8A82", +"b. c #998882", +"n. c #839C82", +"m. c #90908D", +"M. c #92928F", +"N. c #869E9B", +"B. c #9A9A97", +"V. c #9C9894", +"C. c #9B9B98", +"Z. c #9F9F9E", +"A. c #A39B96", +"S. c #86A68F", +"D. c #95B281", +"F. c #9BA29B", +"G. c #9CA29A", +"H. c #B8A399", +"J. c #AAAAAB", +"K. c #ADACAB", +"L. c #B3B3B1", +"P. c #CFCFCC", +"I. c #D0D0CD", +"U. c #D1D1CD", +"Y. c #D4D3D0", +"T. c #D4D5D0", +"R. c #D5D5D1", +"E. c #D6D6D2", +"W. c #D7D7D3", +"Q. c #D8D8D4", +"!. c #D9D9D5", +"~. c #DADAD6", +"^. c #DADBD7", +"/. c #DBDBD7", +"(. c #DCDCD8", +"). c #DFDEDB", +"_. c #DFDFDB", +"`. c #E0E2DE", +"'. c #E0E2DF", +"]. c #E4E4DF", +"[. c None", +/* pixels */ +"I.P.R.R.I.R.Q.(./.Q.[.[.[.[.[.[.", +"L.B.m.M.m.C.A.H.V.K.[.[.[.[.[.[.", +"! $ + . # * 5 & F [.[.[.[.[.[.", +"6...[ n w.r.B 6 { 4.[.[.[.[.[.[.", +"D./ =.q.b M u.C } ,.[.[.[.[.[.[.", +"j.t X.$.4 w I a.f W [.[.[.[.[.[.", +"x.i y.y O.( Y.Q.Q._.R._.'.'.]._.", +"d.i.c : .;.h.E H K K R ) _ L Z.", +"N.V % 9 ^ <.F ; @ X O < 3 8 o 2.", +"F.T F G P ! 5.@.k 0.p.p.N h -.7.", +"[.[.[.[.[.[.8.x %.A 1 m t.>.e 3.", +"[.[.[.[.[.[.K a :.=.> 7 d o.v s.", +"[.[.[.[.[.[.Y Z U ` l z - ] s S.", +"[.[.[.[.[.[.f.e., r +.=.' #.u n.", +"[.[.[.[.[.[.I 2 = 0 q p | j g x.", +"[.[.[.[.[.[.Z.k.g.l.b.z.g.h.v.J." +}; Binary files /tmp/yKsuTgpbVV/quickplot-0.8.15/imgDeleteWindow.png and /tmp/Ocqs54f4Rr/quickplot-0.9.11/imgDeleteWindow.png differ diff -Nru quickplot-0.8.15/imgDeleteWindow.xpm quickplot-0.9.11/imgDeleteWindow.xpm --- quickplot-0.8.15/imgDeleteWindow.xpm 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/imgDeleteWindow.xpm 2011-12-30 06:17:00.000000000 +0000 @@ -0,0 +1,54 @@ +/* XPM */ +static const char *imgDeleteWindow[] = { +/* columns rows colors chars-per-pixel */ +"16 16 32 1 ", +" c black", +". c gray1", +"X c #030405", +"o c #040504", +"O c #120301", +"+ c #180001", +"@ c #141313", +"# c #2D0D07", +"$ c #3F1000", +"% c #33221D", +"& c #1D2122", +"* c #2D3731", +"= c #652815", +"- c #7C371F", +"; c #4F3F37", +": c #217716", +"> c #385F25", +", c #3F6021", +"< c #4F4F1A", +"1 c #57541A", +"2 c #446A25", +"3 c #800000", +"4 c #833E24", +"5 c #843F29", +"6 c #C00000", +"7 c red", +"8 c #814C23", +"9 c #2D8229", +"0 c green", +"q c #0058C0", +"w c #C3C3C3", +"e c None", +/* pixels */ +"e3eeeeeeeeeeee3e", +"633wwwwwwwwww366", +"3633wwwwwwww3633", +"e3633...@X$3633e", +"ew3633o.&%3633we", +"ew03633qq36330we", +"ew703633363300we", +"ew800363633q0Owe", +"ew,#003633:q0+we", +"ew2qq36363390qwe", +"ew>q363336330 c #E1E1DD", -", c #E6E6E1", -"< c #E6E6E2", -"1 c #EAEAE6", -"2 c #EBECE7", -"3 c #E9EEEB", -"4 c #EDF0EC", -"5 c #F2F2ED", -"6 c #F2F2EE", -"7 c #F3F2EE", -"8 c None", -/* pixels */ -"8888888888888888", -"8-,>:1<;27434568", -"8=&OXoo.#@$*%+=8", -"8= =8", -"8= =8", -"8= =8", -"8= =8", -"8= =8", -"8= =8", -"8= =8", -"8= =8", -"8= =8", -"8= =8", -"8= =8", -"8==============8", -"8888888888888888" -}; Binary files /tmp/yKsuTgpbVV/quickplot-0.8.15/imgNewWindow.png and /tmp/Ocqs54f4Rr/quickplot-0.9.11/imgNewWindow.png differ diff -Nru quickplot-0.8.15/imgNewWindow.xpm quickplot-0.9.11/imgNewWindow.xpm --- quickplot-0.8.15/imgNewWindow.xpm 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/imgNewWindow.xpm 2011-12-30 06:17:00.000000000 +0000 @@ -0,0 +1,49 @@ +/* XPM */ +static const char *imgNewWindow[] = { +/* columns rows colors chars-per-pixel */ +"16 16 27 1 ", +" c black", +". c #7E7E7C", +"X c #7F7F7C", +"o c #7F7F7D", +"O c #7F807D", +"+ c #80807E", +"@ c #848786", +"# c #8F8E8C", +"$ c #9C8A82", +"% c #9C8B84", +"& c #959592", +"* c #B7978A", +"= c #C3C3C3", +"- c #DADAD6", +"; c #DFDFDB", +": c #E0E0DC", +"> c #E1E1DD", +", c #E6E6E1", +"< c #E6E6E2", +"1 c #EAEAE6", +"2 c #EBECE7", +"3 c #E9EEEB", +"4 c #EDF0EC", +"5 c #F2F2ED", +"6 c #F2F2EE", +"7 c #F3F2EE", +"8 c None", +/* pixels */ +"8888888888888888", +"8-,>>1,;27434778", +"8=&O+...#@$*%+=8", +"8= =8", +"8= =8", +"8= =8", +"8= =8", +"8= =8", +"8= =8", +"8= =8", +"8= =8", +"8= =8", +"8= =8", +"8= =8", +"8==============8", +"8888888888888888" +}; diff -Nru quickplot-0.8.15/imgSaveImage.xpm quickplot-0.9.11/imgSaveImage.xpm --- quickplot-0.8.15/imgSaveImage.xpm 2009-03-09 01:19:10.000000000 +0000 +++ quickplot-0.9.11/imgSaveImage.xpm 2011-12-30 06:17:00.000000000 +0000 @@ -1,7 +1,7 @@ /* XPM */ static const char *imgSaveImage[] = { /* columns rows colors chars-per-pixel */ -"16 16 218 2", +"16 16 218 2 ", " c black", ". c #000100", "X c #000001", @@ -221,20 +221,20 @@ "rX c #68E943", "tX c #A48217", /* pixels */ -"..d.} } _ _ f.} _ { _ i.>.' ' _ ", -"2 G K % 9 u + ", -"K ..v A x *.b.Z F A v ~ [ g 7.OX", -"G _ q u 1 c.U.n.7 u 8 R ~ > e.9X", -", D & C.<.G.y q q * oX6X", -"..d.' Q ,.H.i.M.n.c ' a.y.{.$X_.", +"..d.} } ] _ f.} _ { _ p.p._ _ _ ", +"2 G K % 8 q ", +"K ..v A x *.b.Z n C v _ ' g 7.OX", +"G _ q u 1 c.U.m.7 u 8 L ~ > e.9X", +", D & C.<.G.y q e * oX6X", +"..d.' Q ,.H.i.M.n.c ) p.y.{.$X_.", "2 D z.h.z +.K.O. 5 [.,Xp i ", -"A ' 3 4 D.#.9.6 x.F.< 6.7X3Xd a ", -"T >.l =.Z.U 1XrX8.S.-.~.X:.W.qXr.R N.J.", +"A ) 3 4 G.#.9.6 x.F.< 6.7X3Xd a ", +"T >.l =.S.U 1XrX8.S.-.~.X:.W.qXr.R N.J.", "T.L.%.s ;X3.t.: =X2.^. Xf @ $ j.", -"%XR.t 4.#X# ! , XXwX4X5.h - ; &.", +"%XR.t 4.#X$ ! , XXeX4X5.h - ; &.", "8X&X`.0X).Y g.E w.'.].0...P W ;.", -"Q.:X5X.X= K % 5 g + ", -"k 1X}.j M M u.K D G v ] } M B B " +"Q.:X5X.X* K % 8 q + ", +"k 2X{.j C C u.K D G v _ } C C C " }; diff -Nru quickplot-0.8.15/index.htm.in quickplot-0.9.11/index.htm.in --- quickplot-0.8.15/index.htm.in 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/index.htm.in 2011-12-16 23:25:59.000000000 +0000 @@ -0,0 +1,156 @@ + + + + + +Quickplot + + + + + + +
    +

    Quickplot

    +
    + + + + + + + + + + + +
    + + Quickplot + is a fast interactive 2D + plotter with infinite zooming, value picking, pipe and regular file + input, with unlimited simultaneous plots displayed per graph.  + Quickplot is meant for looking at + your data quickly and of secondary importance is making static + pictures of your data.  It's a data viewer, not a plot + editor.  It reads ASCII text and sound files.  It has lots + of command line options, making it very shell script friendly.  + It currently runs on GNU/Linux systems and we hear it works on Mac OS + X Darwin.  + + + + + + small screen shot + + +
    + +

    + Quickplot is GNU GPL free + software. +

    + + + + +
    + +

    + Quickplot is hosted by +

    + +

    + SourceForge.net Logo +

    + +
    + + + +

    +To check-out the current source from the SourceForge Subversion +repository run: +

    + +
    +svn co https://quickplot.svn.sf.net/svnroot/quickplot/trunk quickplot
    +
    + +

    +This will create a directory named quickplot in the current directory. +

    + +

    News

    + +

    + +Dec 11 +2011   +Quickplot is currently under active development.  +A complete re-write was done and there is a new release that +requires the use of GTK+ version 3, without GTKmm.  +We consider this rewrite, version 0.9.*, much better than +version 0.8.15 in many ways.  See the +new features list at +about.html#features. +

    + + +
    +
    + + +@FOOTER_HTM@ + + + + diff -Nru quickplot-0.8.15/index.html quickplot-0.9.11/index.html --- quickplot-0.8.15/index.html 2009-03-09 01:19:31.000000000 +0000 +++ quickplot-0.9.11/index.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,102 +0,0 @@ - - - - -Quickplot - - - - - - - - - -
    - -   Quickplot   - -
    - - - - - - - - - - - - - -
    - - Quickplot is a fast interactive 2D - plotter with infinite zooming, value picking, pipe input, and almost - unlimited plots displayed.  Quickplot is meant for looking at - your data quickly and of secondary importance is making static - pictures of your data.  It's a data viewer, not a plot - editor.  It reads ASCII text and sound files.  It has lots - of command line options, making it very shell script friendly.  - It currently runs on GNU/Linux systems and I hear it works on Mac OS - X Darwin.  - -

    - Quickplot is GNU GPL free - software. -

    - -
    - - - -
    - - - - - - - Quickplot is hosted by
    - - - - - -
    - SourceForge.net Logo -
    - -
    - To check-out the current source from the SourceForge Subversion repository run: -
    svn co https://quickplot.svn.sourceforge.net/svnroot/quickplot/trunk quickplot
    - This will create a directory named quickplot in the current diectory. -
    - -
      -

    -Quickplot -   version 0.8.15    -release date: Sun Mar 8 16:19:23 EDT 2009 -
    - - diff -Nru quickplot-0.8.15/index.html.in quickplot-0.9.11/index.html.in --- quickplot-0.8.15/index.html.in 2009-03-09 01:18:23.000000000 +0000 +++ quickplot-0.9.11/index.html.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,92 +0,0 @@ - -Quickplot - - - - - - - - - -
    - -   Quickplot   - -
    - - - - - - - - - - - - - -
    - - Quickplot is a fast interactive 2D - plotter with infinite zooming, value picking, pipe input, and almost - unlimited plots displayed.  Quickplot is meant for looking at - your data quickly and of secondary importance is making static - pictures of your data.  It's a data viewer, not a plot - editor.  It reads ASCII text and sound files.  It has lots - of command line options, making it very shell script friendly.  - It currently runs on GNU/Linux systems and I hear it works on Mac OS - X Darwin.  - -

    - Quickplot is GNU GPL free - software. -

    - -
    - - - -
    - - - - - - - Quickplot is hosted by
    - - - - - -
    - SourceForge.net Logo -
    - -
    - To check-out the current source from the SourceForge Subversion repository run: -
    svn co https://quickplot.svn.sourceforge.net/svnroot/quickplot/trunk quickplot
    - This will create a directory named quickplot in the current diectory. -
    - -
      diff -Nru quickplot-0.8.15/INSTALL quickplot-0.9.11/INSTALL --- quickplot-0.8.15/INSTALL 2008-05-03 02:38:24.000000000 +0000 +++ quickplot-0.9.11/INSTALL 2011-12-30 06:16:54.000000000 +0000 @@ -2,18 +2,24 @@ ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, -2006, 2007 Free Software Foundation, Inc. +2006, 2007, 2008, 2009 Free Software Foundation, Inc. -This file is free documentation; the Free Software Foundation gives -unlimited permission to copy, distribute and modify it. + Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. This file is offered as-is, +without warranty of any kind. Basic Installation ================== -Briefly, the shell commands `./configure; make; make install' should + Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for -instructions specific to this package. +instructions specific to this package. Some packages provide this +`INSTALL' file but do not implement all of the features documented +below. The lack of an optional feature in a given package is not +necessarily a bug. More recommendations for GNU packages can be found +in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses @@ -42,7 +48,7 @@ you want to change it or regenerate `configure' using a newer version of `autoconf'. -The simplest way to compile this package is: + The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. @@ -53,12 +59,22 @@ 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with - the package. + the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and - documentation. + documentation. When installing into a prefix owned by root, it is + recommended that the package be configured and built as a regular + user, and only the `make install' phase executed with root + privileges. + + 5. Optionally, type `make installcheck' to repeat any self-tests, but + this time using the binaries in their final installed location. + This target does not install anything. Running this target as a + regular user, particularly if the prior `make install' required + root privileges, verifies that the installation completed + correctly. - 5. You can remove the program binaries and object files from the + 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is @@ -67,15 +83,22 @@ all sorts of other programs in order to regenerate files that came with the distribution. - 6. Often, you can also type `make uninstall' to remove the installed - files again. + 7. Often, you can also type `make uninstall' to remove the installed + files again. In practice, not all packages have tested that + uninstallation works correctly, even though it is required by the + GNU Coding Standards. + + 8. Some packages, particularly those that use Automake, provide `make + distcheck', which can by used by developers to test that all other + targets like `make install' and `make uninstall' work correctly. + This target is generally not run by end users. Compilers and Options ===================== -Some systems require unusual options for compilation or linking that the -`configure' script does not know about. Run `./configure --help' for -details on some of the pertinent environment variables. + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here @@ -88,25 +111,41 @@ Compiling For Multiple Architectures ==================================== -You can compile the package for more than one kind of computer at the + You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the -source code in the directory that `configure' is in and in `..'. +source code in the directory that `configure' is in and in `..'. This +is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple `-arch' options to the +compiler but only a single `-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases, you +may have to build one architecture at a time and combine the results +using the `lipo' tool if you have problems. + Installation Names ================== -By default, `make install' installs the package's commands under + By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving -`configure' the option `--prefix=PREFIX'. +`configure' the option `--prefix=PREFIX', where PREFIX must be an +absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you @@ -117,16 +156,47 @@ In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories -you can set and what kinds of files go in them. +you can set and what kinds of files go in them. In general, the +default for these options is expressed in terms of `${prefix}', so that +specifying just `--prefix' will affect all of the other directory +specifications that were not explicitly provided. + + The most portable way to affect installation locations is to pass the +correct locations to `configure'; however, many packages provide one or +both of the following shortcuts of passing variable assignments to the +`make install' command line to change installation locations without +having to reconfigure or recompile. + + The first method involves providing an override variable for each +affected directory. For example, `make install +prefix=/alternate/directory' will choose an alternate location for all +directory configuration variables that were expressed in terms of +`${prefix}'. Any directories that were specified during `configure', +but not in terms of `${prefix}', must each be overridden at install +time for the entire installation to be relocated. The approach of +makefile variable overrides for each directory variable is required by +the GNU Coding Standards, and ideally causes no recompilation. +However, some platforms have known limitations with the semantics of +shared libraries that end up requiring recompilation when using this +method, particularly noticeable in packages that use GNU Libtool. + + The second method involves providing the `DESTDIR' variable. For +example, `make install DESTDIR=/alternate/directory' will prepend +`/alternate/directory' before all installation names. The approach of +`DESTDIR' overrides is not required by the GNU Coding Standards, and +does not work on platforms that have drive letters. On the other hand, +it does better at avoiding recompilation issues, and works well even +when some directory options were not specified in terms of `${prefix}' +at `configure' time. + +Optional Features +================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. -Optional Features -================= - -Some packages pay attention to `--enable-FEATURE' options to + Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The @@ -138,14 +208,53 @@ you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. + Some packages offer the ability to configure how verbose the +execution of `make' will be. For these packages, running `./configure +--enable-silent-rules' sets the default to minimal output, which can be +overridden with `make V=1'; while running `./configure +--disable-silent-rules' sets the default to verbose, which can be +overridden with `make V=0'. + +Particular systems +================== + + On HP-UX, the default C compiler is not ANSI C compatible. If GNU +CC is not installed, it is recommended to use the following options in +order to use an ANSI C compiler: + + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try + + ./configure CC="cc" + +and if that doesn't work, try + + ./configure CC="cc -nodtk" + + On Solaris, don't put `/usr/ucb' early in your `PATH'. This +directory contains several dysfunctional programs; working variants of +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' +in your `PATH', put it _after_ `/usr/bin'. + + On Haiku, software installed for all users goes in `/boot/common', +not `/usr/local'. It is recommended to use the following options: + + ./configure --prefix=/boot/common + Specifying the System Type ========================== -There may be some features `configure' cannot figure out automatically, -but needs to determine by the type of machine the package will run on. -Usually, assuming the package is built to be run on the _same_ -architectures, `configure' can figure that out, but if it prints a -message saying it cannot guess the machine type, give it the + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: @@ -153,7 +262,8 @@ where SYSTEM can have one of these forms: - OS KERNEL-OS + OS + KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't @@ -171,9 +281,9 @@ Sharing Defaults ================ -If you want to set default values for `configure' scripts to share, you -can create a site shell script called `config.site' that gives default -values for variables like `CC', `cache_file', and `prefix'. + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. @@ -182,7 +292,7 @@ Defining Variables ================== -Variables not defined in a site shell script can be set in the + Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set @@ -201,11 +311,19 @@ `configure' Invocation ====================== -`configure' recognizes the following options to control how it operates. + `configure' recognizes the following options to control how it +operates. `--help' `-h' - Print a summary of the options to `configure', and exit. + Print a summary of all of the options to `configure', and exit. + +`--help=short' +`--help=recursive' + Print a summary of the options unique to this package's + `configure', and exit. The `short' variant lists options used + only in the top level, while the `recursive' variant lists options + also present in any nested packages. `--version' `-V' @@ -232,6 +350,16 @@ Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. +`--prefix=DIR' + Use DIR as the installation prefix. *note Installation Names:: + for more details, including other options available for fine-tuning + the installation locations. + +`--no-create' +`-n' + Run the configure checks, but stop before creating any output + files. + `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. diff -Nru quickplot-0.8.15/install_portage quickplot-0.9.11/install_portage --- quickplot-0.8.15/install_portage 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/install_portage 1970-01-01 00:00:00.000000000 +0000 @@ -1,110 +0,0 @@ -#!/bin/bash - -# This script makes and installs a Gentoo ebuild for this package. - -# Make a tar ball, `make dist', before running this. You need to run -# this as root. - -# Then you can run: emerge quickplot - - -######################################################################## -# This block was taken from Daniel Elstner's autogen.sh. -######################################################################## -dir=`echo "$0" | sed 's,[^/]*$,,'` -test "x${dir}" = "x" && dir='.' -if test "x`cd "${dir}" 2>/dev/null && pwd`" != "x`pwd`" -then - echo "This script ($0) must be executed directly \ -from the top $0 source directory." - exit 1 -fi -# end taken from Daniel Elstner -######################################################################## - -if [ `id -u` != "0" ] -then - echo "you must run $0 as user root" - exit 1 -fi - -if [ ! -x configure ] -then - echo "run \`./bootstrap', \`./configure' and \`make dist' first." - exit 1 -fi - -if [ ! -e VERSION ] -then - echo "run \`./configure' and \`make dist' first." - exit 1 -fi - -. /etc/make.conf || exit 1 - -VERSION="`cat VERSION`" -TARNAME=quickplot -DISTDIR=/usr/portage/distfiles - -if [ "${PORTDIR_OVERLAY}" != "" ] -then - PORTAGE_DIR=/usr/local/portage -else - PORTAGE_DIR="${PORTDIR_OVERLAY}" -fi - -EBUILD_DIR=${PORTAGE_DIR}/sci-visualization/quickplot - -if [ ! -f ${TARNAME}-${VERSION}.tar.bz2 ] -then - echo "run \`make dist' first." - exit 1 -fi - -script="$0" -error=0 - -# This function, run(), just helps by adding more spew for debugging -# when running programs. If any thing fails to run it stops running -# programs and spews what it would like to run. -run() -{ - if [ $error = 0 ] - then - echo "$script RUNNING: $@" - if ! $@ - then - echo - echo "-------------------------- ERROR ---------------------------" - echo "$script had an error while running: $@" - echo "------------------------------------------------------------" - error=1 - fi - else - echo "+++++ $script DID NOT RUN: $@" - fi -} - - -run mkdir -p ${EBUILD_DIR} -run rm -f ${EBUILD_DIR}/files/digest-quickplot-${VERSION}\ - ${EBUILD_DIR}/MANIFEST ${EBUILD_DIR}/ChangeLog ${EBUILD_DIR}/${TARNAME}-${VERSION}.ebuild -run cp ${TARNAME}.ebuild ${EBUILD_DIR}/${TARNAME}-${VERSION}.ebuild -run cp ChangeLog ${EBUILD_DIR}/ChangeLog -run cp ${TARNAME}-${VERSION}.tar.bz2 ${DISTDIR}/ -run ebuild ${EBUILD_DIR}/${TARNAME}-${VERSION}.ebuild manifest - - -# final spew -if [ $error = 0 ] -then - echo "$script ran successfully" - echo - echo "You can now run: emerge quickplot" -else - echo "$script did not run successfully" -fi - -exit $error - - diff -Nru quickplot-0.8.15/install-sh quickplot-0.9.11/install-sh --- quickplot-0.8.15/install-sh 2008-05-03 02:38:24.000000000 +0000 +++ quickplot-0.9.11/install-sh 2011-12-30 06:16:54.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2006-12-25.00 +scriptversion=2009-04-28.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -515,5 +515,6 @@ # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru quickplot-0.8.15/launch_browser.c quickplot-0.9.11/launch_browser.c --- quickplot-0.8.15/launch_browser.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/launch_browser.c 2011-12-20 00:55:22.000000000 +0000 @@ -0,0 +1,196 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "paths.h" + + + +#include "quickplot.h" +#include "config.h" +#include "debug.h" +#include "list.h" +#include "channel.h" +#include "spew.h" +#include "channel_double.h" +#include "qp.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +static int LaunchBrowser(const char * const url) +{ + int i=0; + pid_t pid; + + // now try the list of browsers + const char * const browsers[] = + { + "firefox", + "galeon", + "konqueror", + "mozilla", + "epiphany", + "opera", + "netscape", + "dillo", + "seamonkey", + /* + "amaya", + "browsex", + "light", + */ + NULL + }; + + + /* Lynx is so cool I've got to try it */ + //execlp("lynx", "lynx", url, NULL); + /* It worked. That was cool. */ + + + pid = vfork(); + if(pid < 0) //error + { + QP_WARN("vfork() failed"); + return 1; + } + + if(pid > 0) // parent + return 0; + + // I'm the child. + + // First see if the user has set a prefered browser in the BROWSER + // environment variable. + const char *browser = getenv("BROWSER"); + + if(browser) + execlp(browser, browser, url, NULL); + + browser = getenv("QP_BROWSER"); + + if(browser) + execlp(browser, browser, url, NULL); + + + for(browser=browsers[i]; browser; browser=browsers[++i]) + { + INFO("executing: %s %s\n", browser, url); + execlp(browser, browser, url, NULL); + } + + QP_WARN("Failed to launch a browser"); + + exit(EXIT_FAILURE); // child exits +} + +/* for finding the full path to + * help.txt about.txt about.html help.html index.html + * Returns an open fd or -1 on failure + * Returns fullpath from malloc() */ +int qp_find_doc_file(const char *filename, char **fullpath_ret) +{ + int i; + char *fullpath; + char *htmldir[4]; + + ASSERT(strlen(filename) > 5); + + htmldir[0] = getenv("QUICKPLOT_HTMLDIR"); + htmldir[1] = getenv("QUICKPLOT_DOCDIR"); + htmldir[2] = HTMLDIR; + htmldir[3] = DOCDIR; + + for(i=0;i<4;++i) + { + int fd; + + if(!htmldir[i]) continue; + + fullpath = qp_malloc(strlen(filename) + 2 + strlen(htmldir[i])); + sprintf(fullpath, "%s%c%s", htmldir[i], DIR_CHAR, filename); + + fd = open(fullpath, O_RDONLY); + if(fd == -1) + { + QP_INFO("Can't open file \"%s\"\n", fullpath); + free(fullpath); + continue; + } + else + { + if(fullpath_ret) + *fullpath_ret = fullpath; + return fd; + } + } + + if(fullpath_ret) + *fullpath_ret = NULL; + + { + int is_txt; + is_txt = strcmp(".txt", &filename[strlen(filename)-4])?0:1; + + QP_WARN("Can't open Quickplot documentation file \"%s\"\n" + "Try setting environment variable QUICKPLOT_%s to\n" + "the directory where this file was installed to.\n", + filename, is_txt?"DOCDIR":"HTMLDIR"); + } + return -1; /* failed */ +} + + +int qp_launch_browser(const char *fileName) +// Returns 0 on success +{ + int ret = 1; + int fd; + char *fullpath = NULL; + + ASSERT(fileName); + ASSERT(fileName[0]); + ASSERT(fileName[0] != DIR_CHAR); + + fd = qp_find_doc_file(fileName, &fullpath); + + if(fullpath) + { + close(fd); + ret = LaunchBrowser(fullpath); + free(fullpath); + } + return ret; +} + diff -Nru quickplot-0.8.15/launchBrowser.cpp quickplot-0.9.11/launchBrowser.cpp --- quickplot-0.8.15/launchBrowser.cpp 2009-03-08 20:31:11.000000000 +0000 +++ quickplot-0.9.11/launchBrowser.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,205 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#ifdef MINGW -#include -#include -#include -char *browsers[] = -{ - "mozilla.exe", - "explorer.exe", - NULL -}; - - -int launchBrowser(const char *url) -{ - return 0; -} - -int sLaunchBrowser(const char *doc, const char *fileName_in="") -{ - STARTUPINFO si; - PROCESS_INFORMATION pi; - ZeroMemory( &si, sizeof(si) ); - si.cb = sizeof(si); - ZeroMemory( &pi, sizeof(pi) ); - - - int i=0; - for(;browsers[i];i++) - { - char command[128]; - snprintf(command, 128, "%s %s", browsers[i], fileName_in); - if( - CreateProcess( NULL, // No module name (use command line). - command, // Command line. - NULL, // Process handle not inheritable. - NULL, // Thread handle not inheritable. - FALSE, // Set handle inheritance to FALSE. - CREATE_NEW_CONSOLE, // creation flags. - NULL, // Use parent's environment block. - NULL, // Use parent's starting directory. - &si, // Pointer to STARTUPINFO structure. - &pi ) // Pointer to PROCESS_INFORMATION structure. - ) - { - - - printf("ran: %s\n", command); - - - break; - } - } - - // Close process and thread handles. - CloseHandle( pi.hProcess ); - CloseHandle( pi.hThread ); - - return 0; -} - -#else // #if MINGW - -#include -#include -#include -#include -#include -#include -#include - -#define TMP_FORMAT "%s/Quickplot_%s_XXXXXXXX" - - -const char *browsers[] = -{ - "firefox", - "galeon", - "konqueror", - "mozilla", - "epiphany", - "netscape", - "dillo", - /* - "amaya", - "browsex", - "light", - */ - NULL -}; - - -int launchBrowser(const char *url) -{ - pid_t pid = vfork(); - if(pid < 0) //error - { - perror("Quickplot ERROR: vfork() failed"); - return -1; - } - if(pid > 0) // parent - return 0; - - // I'm the child. - - // First see if the user has set a prefered broswer in the BROWSER - // environment variable. - const char *browser = getenv("BROWSER"); - - if(browser) - execlp(browser, browser, url, NULL); - - // now try the list of browsers - int i=0; - for(browser=browsers[i]; browser; browser=browsers[++i]) - execlp(browser, browser, url, NULL); - - exit(1); - - return 0; //success -} - -int sLaunchBrowser(const char *doc, const char *fileName_in="") -{ - size_t len = - strlen(HTMLDIR)+ - L_tmpnam+ - ((fileName_in)?strlen(fileName_in):0)+ - strlen(TMP_FORMAT); - - char *filename = (char *) malloc(sizeof(char)*len); - filename[0] = '\0'; - - if(fileName_in && fileName_in[0]) - { - // See if we can find the html file in HTMLDIR the doc - // installation directory. - snprintf(filename, len, "%s/%s", HTMLDIR, fileName_in); - - // first we try to stat the installed html file filename. - struct stat buf; - int rt = stat(filename, &buf); - if(!(rt == 0 && (S_ISREG(buf.st_mode) || S_ISLNK(buf.st_mode)))) - { - // So much for that idea. - filename[0] = '\0'; - } - } - - if(!(filename[0])) - { - - // installed docs won't work. Make a tmp file. - snprintf(filename, len, TMP_FORMAT, P_tmpdir, fileName_in); - - int fd = mkstemp(filename); - if(fd < 0) - { - // We can't make a temp file. we're screwed now. - perror("Quickplot ERROR: mkstemp() failed"); - free(filename); - return -1; - } - - write(fd, doc, strlen(doc)+1); - close(fd); - } - - launchBrowser(filename); - - free(filename); - return 0; //success -} -#endif - -//#define test -#ifdef test - -int main(int argc, char **argv) -{ - if(argc < 2) - { - const char *src = - "\n" - "\n" - "Test Page\n" - "\n" - "\n" - "Hello World.\n" - "\n"; - - printf("sLaunchBrowser()=%d\n", sLaunchBrowser(src)); - } - else - { - printf("launchBrowser(\"%s\")=%d\n", - argv[1], launchBrowser(argv[1])); - } - - return 0; -} -#endif // #else // #if MINGW diff -Nru quickplot-0.8.15/LinearField.cpp quickplot-0.9.11/LinearField.cpp --- quickplot-0.8.15/LinearField.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/LinearField.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,58 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include -#ifdef USE_LIBSNDFILE -# include -#endif - - -using namespace Gtk; -#include "value_t.h" -#include "Field.h" -#include "FieldReader.h" -#include "LinearField.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Globel.h" - -void *LinearField::makeDequeuer(count_t number_of_values) -{ - struct Dequeuer *d = (struct Dequeuer *) malloc(sizeof(struct Dequeuer)); - d->numberOfValuesMinus1 = - ((number_of_values<_numberOfValues)?number_of_values:_numberOfValues) - -1; - d->index = 0; - return (void *) d; -} - -void LinearField::destroyDequeuer(void *dequeuer) -{ - free(dequeuer); -} - diff -Nru quickplot-0.8.15/LinearField.h quickplot-0.9.11/LinearField.h --- quickplot-0.8.15/LinearField.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/LinearField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,107 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -class Source; -class Field; - -class LinearField : public Field -{ - public: - - // value = count * step + offset - inline LinearField(Source *source, - value_t step_in=(value_t)1.0, - value_t offset_in=(value_t)0.0): - Field(source), - step(step_in), offset(offset_in) - { - _isIncreasing = (step > 0.0)? true: false; - _numberOfValues = MAXCOUNT; - _max = (_numberOfValues-1)*step + offset; - _min = offset; - // assuming that count_t is unsigned so that -1 is the maxmum - // value - index = 0; - - setLabel("linear field"); - char label[64]; - snprintf(label, 64, "step=%g offset=%g", step, offset); - setName(label); - } - - // read the list and advance the pointer to the next value in the - // series. - inline value_t read(void) - { - return step*(index++) + offset; - } - - // find the minimum values in the range of indexes - // indexing starts at 0. - inline value_t max(count_t i_max=((count_t) -1), count_t i_min=0) - { - if(i_max == ((count_t) -1)) - i_max = _numberOfValues - 1; - if(step > (value_t) 0.0) - return step*(i_max) + offset; - else - return step*(i_min) + offset; - } - - // find the maximum values in the range of indexes - // indexing starts at 0. - inline value_t min(count_t i_max=((count_t) -1), count_t i_min=0) - { - if(i_max == ((count_t) -1)) - i_max = _numberOfValues - 1; - if(step < (value_t) 0.0) - return step*(i_max) + offset; - else - return step*(i_min) + offset; - } - - // move the pointer to the first value. - inline void rewind(void) { index = 0; } - - struct Dequeuer - { - count_t index, numberOfValuesMinus1; - }; - - void *makeDequeuer(count_t number_of_values); - void destroyDequeuer(void *dequeuer); - - - // You can use this to read. - inline value_t read(void *dequeuer) - { - struct Dequeuer *d = (struct Dequeuer *) dequeuer; - value_t val = step*(d->index) + offset; - if(d->index < d->numberOfValuesMinus1) - (d->index)++; - return val; - } - - // You can use this to read backwards. - inline value_t readBack(void *dequeuer) - { - struct Dequeuer *d = (struct Dequeuer *) dequeuer; - value_t val = step*(d->index) + offset; - if(d->index > 0) - (d->index)--; - return val; - } - - - // The FieldReader object can use this to rewind. - inline void rewind(void *dequeuer) - { - ((struct Dequeuer *) dequeuer)->index = 0; - } - -private: - - // Index to the element to be read. - count_t index; - value_t step, offset; - -}; diff -Nru quickplot-0.8.15/list.c quickplot-0.9.11/list.c --- quickplot-0.8.15/list.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/list.c 2011-12-14 18:37:29.000000000 +0000 @@ -0,0 +1,311 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#include + +#include "config.h" +#include "debug.h" +#include "list.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + + +struct qp_sllist *qp_sllist_create(struct qp_sllist *orig) +{ + struct qp_sllist *l; + l = (struct qp_sllist *) qp_malloc(sizeof(struct qp_sllist)); + if(orig) + { + ASSERT(*(orig->ref_count) > 0); + + l->first = orig->first; + l->last = orig->last; + l->length = orig->length; + l->current = NULL; + l->ref_count = orig->ref_count; + ++(*(l->ref_count)); + } + else + { + l->first = l->last = l->current = NULL; + l->length = 0; + l->ref_count = (int *)qp_malloc(sizeof(int)); + *(l->ref_count) = 1; + } + return l; +} + +struct qp_dllist *qp_dllist_create(struct qp_dllist *orig) +{ + struct qp_dllist *l; + l = (struct qp_dllist *) qp_malloc(sizeof(struct qp_dllist)); + if(orig) + { + ASSERT(*(orig->ref_count) > 0); + + l->first = orig->first; + l->last = orig->last; + l->length = orig->length; + l->current = NULL; + l->ref_count = orig->ref_count; + ++(*(l->ref_count)); + } + else + { + l->first = l->last = l->current = NULL; + l->length = 0; + l->ref_count = (int *)qp_malloc(sizeof(int)); + *(l->ref_count) = 1; + } + return l; +} + +/** add val to the end */ +void qp_sllist_append(struct qp_sllist *l, void *val) +{ + struct qp_sllist_entry *new_e; + ASSERT(l); + ASSERT(*(l->ref_count) == 1); + new_e = (struct qp_sllist_entry *) + qp_malloc(sizeof(struct qp_sllist_entry)); + new_e->next = NULL; + new_e->val = val; + + if(l->last) + { + l->last->next = new_e; + l->last = new_e; + } + else + { + l->current = l->first = l->last = new_e; + } + ++(l->length); +} + +/** add val to the end */ +void qp_dllist_append(struct qp_dllist *l, void *val) +{ + struct qp_dllist_entry *new_e; + ASSERT(l); + ASSERT(*(l->ref_count) == 1); + new_e = (struct qp_dllist_entry *) + qp_malloc(sizeof(struct qp_dllist_entry)); + new_e->next = NULL; + new_e->prev = l->last; + new_e->val = val; + + if(l->last) + { + l->last->next = new_e; + l->last = new_e; + } + else + { + l->current = l->first = l->last = new_e; + } + ++(l->length); +} + +void qp_sllist_destroy(struct qp_sllist *l, int free_vals) +{ + ASSERT(l); + ASSERT(*(l->ref_count) > 0); + + if(!l) return; + + + if(*(l->ref_count) == 1) + { + /* This is the last reader of this + * list so we may free the entries */ + struct qp_sllist_entry *e; + e = l->first; + while(e) + { + struct qp_sllist_entry *prev_e; + prev_e = e; + e = e->next; + if(free_vals && prev_e->val) + free(prev_e->val); + free(prev_e); + } + free(l->ref_count); + } + else + --(*(l->ref_count)); + + free(l); +} + + +void qp_dllist_destroy(struct qp_dllist *l, int free_vals) +{ + ASSERT(l); + ASSERT(*(l->ref_count) > 0); + + if(!l) return; + + if(*(l->ref_count) == 1) + { + struct qp_dllist_entry *e; + e = l->first; + while(e) + { + struct qp_dllist_entry *prev_e; + prev_e = e; + e = e->next; + if(free_vals && prev_e->val) + free(prev_e->val); + free(prev_e); + } + free(l->ref_count); + } + else + --(*(l->ref_count)); + + free(l); +} + +/* returns the number found */ +int qp_sllist_find(struct qp_sllist *l, void *val) +{ + void *v; + int ret = 0; + ASSERT(l); + ASSERT(*(l->ref_count) > 0); + + for(v=qp_sllist_begin(l); v; + v=qp_sllist_next(l)) + if(v == val) + ++ret; + return ret; +} + +/* returns the number found */ +int qp_dllist_find(struct qp_dllist *l, void *val) +{ + void *v; + int ret = 0; + ASSERT(l); + ASSERT(*(l->ref_count) > 0); + + for(v=qp_dllist_begin(l); v; + v=qp_dllist_next(l)) + if(v == val) + ++ret; + return ret; +} + +/* remove by pointer */ +int qp_sllist_remove(struct qp_sllist *l, + const void *val, int free_val) +{ + struct qp_sllist_entry *e, *prev = NULL; + int ret = 0; + ASSERT(l); + ASSERT(*(l->ref_count) == 1); + + for(e=l->first; e;) + { + struct qp_sllist_entry *next; + + next = e->next; + if(e->val == val) + { + if(prev) + { + prev->next = e->next; + if(l->last == e) + l->last = prev; + } + else /* it is the first entry */ + { + l->first = e->next; + if(l->last == e) + l->last = NULL; + } + if(l->current == e) + /* reset iterators */ + l->current = NULL; + + /* free it once */ + if(free_val && !ret) + free(e->val); + free(e); + --(l->length); + ASSERT(l->length != (size_t) -1); + ++ret; + } + else + prev = e; + + e = next; + } + return ret; +} + +/* remove by pointer */ +int qp_dllist_remove(struct qp_dllist *l, + const void *val, int free_val) +{ + struct qp_dllist_entry *e; + int ret = 0; + ASSERT(l); + ASSERT(*(l->ref_count) == 1); + for(e=l->first; e;) + { + struct qp_dllist_entry *next; + next = e->next; + if(e->val == val) + { + if(e->prev) + e->prev->next = e->next; + if(e->next) + e->next->prev = e->prev; + + if(l->first == e) + l->first = e->next; + if(l->last == e) + l->last = e->prev; + + if(l->current == e) + /* reset iterators */ + l->current = NULL; + + /* free it once */ + if(free_val && !ret) + free(e->val); + free(e); + --(l->length); + ASSERT(l->length != (size_t) -1); + ++ret; + } + e = next; + } + return ret; +} + diff -Nru quickplot-0.8.15/ListField.h quickplot-0.9.11/ListField.h --- quickplot-0.8.15/ListField.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/ListField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,171 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -/* The data type the quickplot uses to plot is a kind of float set in - * value_t.h. The type that the Field stores the values as can be any - * type, which may save memory in most cases. - */ - -/* Class ListField: stores the data in a linked list. Can be used to - * store fields that can change the number of elements (data points). - */ - -template struct DataList -{ - struct DataList *next, *prev; - T value; -}; - - -template class ListField : public Field -{ - public: - - ListField(Source *source); - virtual ~ListField(void); - - // read the list and advance the pointer to the next value in the - // series. - inline value_t read(void) - { - value_t value = current->value; - if(current->next) - current = current->next; - return value; - } - - // move the pointer to the first value. - inline void rewind(void) { current = start; } - - void write(T t); - - struct Dequeuer - { - count_t index, numberOfValuesMinus1; - struct DataList *current; - }; - - void *makeDequeuer(count_t number_of_values); - void destroyDequeuer(void *dequeuer); - - // The FieldReader object can use this to read. The dequeuer is a - // handle to a struct DataList. - inline value_t read(void *dequeuer) - { - struct Dequeuer *d = (struct Dequeuer *) dequeuer; - value_t val = d->current->value; - - if(d->index < d->numberOfValuesMinus1) - { - d->current = d->current->next; - (d->index)++; - } - - return val; - } - - inline value_t readBack(void *dequeuer) - { - struct Dequeuer *d = (struct Dequeuer *) dequeuer; - value_t val = d->current->value; - - if(d->index > 0) - { - d->current = d->current->prev; - (d->index)--; - } - - return val; - } - - // The FieldReader object can use this to rewind. - inline void rewind(void *dequeuer) - { - ((struct Dequeuer *) dequeuer)->current = start; - } - - - // next is a Kludge used in File_readASCII() to access this field - // quickly when writing the data. - ListField *next; - -private: - - // Index to the element to be read or written. - struct DataList *start, *current, *end; -}; - -template -ListField::ListField(Source *source): - Field(source) -{ - // We assume that this many values will be written. - _numberOfValues = 0; - start = current = end = NULL; -} - -template -ListField::~ListField(void) -{ - current = start; - while(current) - { - start = current->next; - free(current); - current = start; - } -} - - -template -void ListField::write(T x) -{ - struct DataList *d = (struct DataList *) - malloc(sizeof(struct DataList)); - - d->next = NULL; - d->value = x; - - if(!start) - { - current = start = end = d; - d->prev = NULL; - } - else - { - end->next = d; - d->prev = end; - end = d; - } - - if(x > _max) - _max = x; - else if(_isIncreasing) - _isIncreasing = false; - - if(x < _min) - _min = x; - else if(_isDecreasing) - _isDecreasing = false; - - _numberOfValues++; -} - -template -void *ListField::makeDequeuer(count_t number_of_values) -{ - struct Dequeuer *d = (struct Dequeuer *) malloc(sizeof(struct Dequeuer)); - d->numberOfValuesMinus1 = - ((number_of_values<_numberOfValues)?number_of_values:_numberOfValues) - -1; - d->index = 0; - d->current = start; - - return (void *) d; -} - -template -void ListField::destroyDequeuer(void *dequeuer) -{ - free(dequeuer); -} diff -Nru quickplot-0.8.15/list.h quickplot-0.9.11/list.h --- quickplot-0.8.15/list.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/list.h 2011-12-14 18:31:56.000000000 +0000 @@ -0,0 +1,352 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#ifndef _QP_DEBUG_H_ +#error "You must include qp_debug.h before this file." +#endif + + +#define QP_FOREACH_SLLIST(list, func) \ + do { \ + struct qp_sllist_entry *e; \ + ASSERT(list); \ + e = (list)->first; \ + while(e) { \ + (func)(e->val); \ + e = e->next; \ + } \ + } while(0) + +#define QP_FOREACH_DLLIST(list, func) \ + do { \ + struct qp_dllist_entry *e; \ + ASSERT(list); \ + e = (list)->first; \ + while(e) { \ + (func)(e->val); \ + e = e->next; \ + } \ + } while(0) + +#define QP_FOREACH_DLLIST_R(list, func) \ + do { \ + struct qp_dllist_entry *e; \ + ASSERT(list); \ + e = (list)->last; \ + while(e) { \ + (func)(e->val); \ + e = e->prev; \ + } \ + } while(0) + + +/* singly linked list */ +struct qp_sllist_entry +{ + struct qp_sllist_entry *next; + void *val; /* cast to what you like */ +}; + + +/* doubly linked list */ +struct qp_dllist_entry +{ + struct qp_dllist_entry *next; + struct qp_dllist_entry *prev; + void *val; /* cast to what you like */ +}; + + +/* singly linked list managing object */ +struct qp_sllist +{ + struct qp_sllist_entry *first, *last, *current; + size_t length; + /* if *ref_count > 1 copies have been made and we cannot edit + * (add or remove entries) the list until *ref_count gets to + * one by destroying copies. When *ref_count == 0 the list + * entries are destroyed. In our use case it is more efficient + * to stop writing when there is more than one copy then to + * add another flag, counter, or pointer thing to the data + * structures. We do not need the extra functionality of + * multi-object editing. We need speed and multi-object + * reading. */ + int *ref_count; +}; + + +/* doubly linked list managing object */ +struct qp_dllist +{ + struct qp_dllist_entry *first, *last, *current; + size_t length; + /* if *ref_count > 1 copies have been made and we cannot edit + * (add or remove entries) the list until *ref_count gets to + * one by destroying copies. When *ref_count == 0 the list + * entries are destroyed. In our use case it is more efficient + * to stop writing when there is more than one copy then to + * add another flag, counter, or pointer thing to the data + * structures. We do not need the extra functionality of + * multi-object editing. We need speed and multi-object + * reading. */ + int *ref_count; +}; + + +extern +struct qp_sllist *qp_sllist_create(struct qp_sllist *l); + + +extern +struct qp_dllist *qp_dllist_create(struct qp_dllist *l); + +/** add val to the end */ +extern +void qp_sllist_append(struct qp_sllist *l, void *val); + +/** add val to the end */ +extern +void qp_dllist_append(struct qp_dllist *l, void *val); + +/** if free_vals is non zero all the elements will have + * free(element) called on them. */ +extern +void qp_sllist_destroy(struct qp_sllist *l, int free_vals); + +/** if free_vals is non zero all the elements will have + * free(element) called on them. */ +extern +void qp_dllist_destroy(struct qp_dllist *l, int free_vals); + +static inline +size_t qp_sllist_length(struct qp_sllist *l) +{ + return l->length; +} + +static inline +size_t qp_dllist_length(struct qp_dllist *l) +{ + return l->length; +} + +static inline +void *qp_sllist_val(struct qp_sllist *l) +{ + ASSERT(l); + if(l->current) + return l->current->val; + return NULL; +} + +static inline +void *qp_dllist_val(struct qp_dllist *l) +{ + ASSERT(l); + if(l->current) + return l->current->val; + return NULL; +} + +/** moves current forward and then get val + * \return val or NULL if at the end + */ +static inline +void *qp_sllist_next(struct qp_sllist *l) +{ + ASSERT(l); + if(l->current && l->current->next) + { + l->current = l->current->next; + return l->current->val; + } + else if(l->current) + l->current = NULL; + return NULL; +} + + +/** moves current forward and then get current val + * \return val or NULL if at the end + */ +static inline +void *qp_dllist_next(struct qp_dllist *l) +{ + ASSERT(l); + if(l->current && l->current->next) + { + l->current = l->current->next; + return l->current->val; + } + else if(l->current) + l->current = NULL; + return NULL; +} + + +/** moves current back and then get current val + * \return val or NULL if at the begining + */ +static inline +void *qp_dllist_prev(struct qp_dllist *l) +{ + ASSERT(l); + if(l->current && l->current->prev) + { + l->current = l->current->prev; + return l->current->val; + } + else if(l->current) + l->current = NULL; + return NULL; +} + +/** move to the begining + * \return the first val + */ +static inline +void *qp_sllist_begin(struct qp_sllist *l) +{ + ASSERT(l); + l->current = l->first; + if(l->current) + return l->current->val; + return NULL; +} + +/** move to the begining + * \return the first val + */ +static inline +void *qp_dllist_begin(struct qp_dllist *l) +{ + ASSERT(l); + l->current = l->first; + if(l->current) + return l->current->val; + return NULL; +} + +/** move to the ending + * \return the last val + */ +static inline +void *qp_dllist_end(struct qp_dllist *l) +{ + ASSERT(l); + l->current = l->last; + if(l->current) + return l->current->val; + return NULL; +} + +/** + * \return the first val + */ +static inline +void *qp_sllist_first(struct qp_sllist *l) +{ + ASSERT(l); + if(l->first) + return l->first->val; + return NULL; +} + +/** + * \return the first val + */ +static inline +void *qp_dllist_first(struct qp_dllist *l) +{ + ASSERT(l); + if(l->first) + return l->first->val; + return NULL; +} + +/** + * \return the last val + */ +static inline +void *qp_sllist_last(struct qp_sllist *l) +{ + ASSERT(l); + if(l->last) + return l->last->val; + return NULL; +} + +/** + * \return the last val + */ +static inline +void *qp_dllist_last(struct qp_dllist *l) +{ + ASSERT(l); + if(l->last) + return l->last->val; + return NULL; +} + +/* returns the number found */ +extern +int qp_sllist_find(struct qp_sllist *l, void *val); + +/* returns the number found */ +extern +int qp_dllist_find(struct qp_dllist *l, void *val); + + +/** remove by pointer + * This will remove all found. + * + * If you are sure that the current value last returned + * from qp_sllist_next() is not the one you are removing + * you can continue iterating with qp_sllist_next(), + * otherwise the interator will be reset and + * qp_sllist_next() will return after this call. + * + * If the value is in the list more than once + * it will be freed only once. + + * \return the number of values found and removed. */ +extern +int qp_sllist_remove(struct qp_sllist *l, + const void *val, int free_val); + +/** remove by pointer + * This will remove all found. + * + * If you are sure that the current value last returned + * from qp_sllist_next() is not the one you are removing + * you can continue iterating with qp_sllist_next(), + * otherwise the interator will be reset and + * qp_sllist_next() will return after this call. + * + * If the value is in the list more than once + * it will be freed only once. + * \return the number of values found and removed. */ +extern +int qp_dllist_remove(struct qp_dllist *l, + const void *val, int free_val); + diff -Nru quickplot-0.8.15/LogField.h quickplot-0.9.11/LogField.h --- quickplot-0.8.15/LogField.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/LogField.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,80 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -/* class LogField: takes the log of the field passed to it. The log - * is computed at the time of the read() call. This does not store - * the field data in the LogField objects data, but just reads it from - * the Field object that was passed to it. The Field object that is - * passed to the constructor must stay valid for this to work. - * - * - * The function log(x) is not valid for x <= 0. So we need an error - * check. - * - */ - - -class LogField : public Field -{ - public: - - // value = count * scale + offset - inline LogField(Source *s, Field *f, value_t base=(value_t)10.0): - Field(s), - { - error = 0; // start with no error. - - here lanceman - - _isIncreasing = (scale > 0.0)? true: false; - _numberOfValues = MAXCOUNT; - _max = (_numberOfValues-1)*scale + offset; - _min = offset; - // assuming that count_t is unsigned so that -1 is the maxmum - // value - index = 0; - - setName("linear field"); - - } - - // read the list and advance the pointer to the next value in the - // series. - inline value_t read(void) - { - return scale*(index++) + offset; - } - - // find the minimum values in the range of indexes - // indexing starts at 0. - inline value_t max(count_t i_max=((count_t) -1), count_t i_min=0) - { - if(i_max == ((count_t) -1)) - i_max = _numberOfValues - 1; - if(scale > (value_t) 0.0) - return scale*(i_max) + offset; - else - return scale*(i_min) + offset; - } - - // find the maximum values in the range of indexes - // indexing starts at 0. - inline value_t min(count_t i_max=((count_t) -1), count_t i_min=0) - { - if(i_max == ((count_t) -1)) - i_max = _numberOfValues - 1; - if(scale < (value_t) 0.0) - return scale*(i_max) + offset; - else - return scale*(i_min) + offset; - } - - // move the pointer to the first value. - inline void rewind(void) { index = 0; } - -private: - - // Index to the element to be read. - value_t base; - -}; diff -Nru quickplot-0.8.15/ltmain.sh quickplot-0.9.11/ltmain.sh --- quickplot-0.8.15/ltmain.sh 2008-09-01 17:33:10.000000000 +0000 +++ quickplot-0.9.11/ltmain.sh 2011-12-30 06:16:49.000000000 +0000 @@ -1,9 +1,9 @@ -# Generated from ltmain.m4sh. -# ltmain.sh (GNU libtool) 2.2.4 +# libtool (GNU libtool) 2.4 # Written by Gordon Matzigkeit , 1996 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, +# 2007, 2008, 2009, 2010 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. @@ -32,50 +32,56 @@ # # 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 -# --mode=MODE use operation mode MODE -# --preserve-dup-deps don't remove duplicate dependency libraries -# --quiet, --silent don't print informational messages -# --tag=TAG use configuration variables from tag TAG -# -v, --verbose print informational messages (default) -# --version print version information -# -h, --help print short or long help message +# --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 +# --mode=MODE use operation mode MODE +# --preserve-dup-deps don't remove duplicate dependency libraries +# --quiet, --silent don't print informational messages +# --no-quiet, --no-silent +# print informational messages (default) +# --tag=TAG use configuration variables from tag TAG +# -v, --verbose print more informational messages than default +# --no-verbose don't print the extra informational messages +# --version print version information +# -h, --help, --help-all print short, long, or detailed help message # # 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 +# 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. +# MODE-ARGS vary depending on the MODE. When passed as first option, +# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # -# host-triplet: $host -# shell: $SHELL -# compiler: $LTCC -# compiler flags: $LTCFLAGS -# linker: $LD (gnu? $with_gnu_ld) -# $progname: (GNU libtool) 2.2.4 Debian-2.2.4-0ubuntu4 -# automake: $automake_version -# autoconf: $autoconf_version +# host-triplet: $host +# shell: $SHELL +# compiler: $LTCC +# compiler flags: $LTCFLAGS +# linker: $LD (gnu? $with_gnu_ld) +# $progname: (GNU libtool) 2.4 +# automake: $automake_version +# autoconf: $autoconf_version # # Report bugs to . +# GNU libtool home page: . +# General help using GNU software: . -PROGRAM=ltmain.sh +PROGRAM=libtool PACKAGE=libtool -VERSION="2.2.4 Debian-2.2.4-0ubuntu4" +VERSION=2.4 TIMESTAMP="" -package_revision=1.2976 +package_revision=1.3293 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then @@ -91,10 +97,15 @@ BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' +} + # NLS nuisances: We save the old values to restore during execute mode. -# 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). lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES @@ -107,24 +118,33 @@ lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done +LC_ALL=C +LANGUAGE=C +export LANGUAGE LC_ALL $lt_unset CDPATH +# 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" : ${CP="cp -f"} -: ${ECHO="echo"} -: ${EGREP="/bin/grep -E"} -: ${FGREP="/bin/grep -F"} -: ${GREP="/bin/grep"} +test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} +: ${EGREP="grep -E"} +: ${FGREP="grep -F"} +: ${GREP="grep"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} -: ${SED="/bin/sed"} +: ${SED="sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} @@ -144,6 +164,27 @@ dirname="s,/[^/]*$,," basename="s,^.*/,," +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi +} # func_dirname may be replaced by extended shell implementation + + +# func_basename file +func_basename () +{ + func_basename_result=`$ECHO "${1}" | $SED "$basename"` +} # func_basename may be replaced by extended shell implementation + + # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: @@ -158,33 +199,183 @@ # those functions but instead duplicate the functionality here. func_dirname_and_basename () { - # Extract subdirectory from the argument. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` - if test "X$func_dirname_result" = "X${1}"; then - func_dirname_result="${3}" - else - func_dirname_result="$func_dirname_result${2}" - fi - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi + func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` +} # func_dirname_and_basename may be replaced by extended shell implementation + + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname may be replaced by extended shell implementation + + +# These SED scripts presuppose an absolute path with a trailing slash. +pathcar='s,^/\([^/]*\).*$,\1,' +pathcdr='s,^/[^/]*,,' +removedotparts=':dotsl + s@/\./@/@g + t dotsl + s,/\.$,/,' +collapseslashes='s@/\{1,\}@/@g' +finalslash='s,/*$,/,' + +# func_normal_abspath PATH +# Remove doubled-up and trailing slashes, "." path components, +# and cancel out any ".." path components in PATH after making +# it an absolute path. +# value returned in "$func_normal_abspath_result" +func_normal_abspath () +{ + # Start from root dir and reassemble the path. + func_normal_abspath_result= + func_normal_abspath_tpath=$1 + func_normal_abspath_altnamespace= + case $func_normal_abspath_tpath in + "") + # Empty path, that just means $cwd. + func_stripname '' '/' "`pwd`" + func_normal_abspath_result=$func_stripname_result + return + ;; + # The next three entries are used to spot a run of precisely + # two leading slashes without using negated character classes; + # we take advantage of case's first-match behaviour. + ///*) + # Unusual form of absolute path, do nothing. + ;; + //*) + # Not necessarily an ordinary path; POSIX reserves leading '//' + # and for example Cygwin uses it to access remote file shares + # over CIFS/SMB, so we conserve a leading double slash if found. + func_normal_abspath_altnamespace=/ + ;; + /*) + # Absolute path, do nothing. + ;; + *) + # Relative path, prepend $cwd. + func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath + ;; + esac + # Cancel out all the simple stuff to save iterations. We also want + # the path to end with a slash for ease of parsing, so make sure + # there is one (and only one) here. + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` + while :; do + # Processed it all yet? + if test "$func_normal_abspath_tpath" = / ; then + # If we ascended to the root using ".." the result may be empty now. + if test -z "$func_normal_abspath_result" ; then + func_normal_abspath_result=/ + fi + break + fi + func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$pathcar"` + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$pathcdr"` + # Figure out what to do with it + case $func_normal_abspath_tcomponent in + "") + # Trailing empty path component, ignore it. + ;; + ..) + # Parent dir; strip last assembled component from result. + func_dirname "$func_normal_abspath_result" + func_normal_abspath_result=$func_dirname_result + ;; + *) + # Actual path component, append it. + func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent + ;; + esac + done + # Restore leading double-slash if one was found on entry. + func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } -# Generated shell functions inserted here. +# func_relative_path SRCDIR DSTDIR +# generates a relative path from SRCDIR to DSTDIR, with a trailing +# slash if non-empty, suitable for immediately appending a filename +# without needing to append a separator. +# value returned in "$func_relative_path_result" +func_relative_path () +{ + func_relative_path_result= + func_normal_abspath "$1" + func_relative_path_tlibdir=$func_normal_abspath_result + func_normal_abspath "$2" + func_relative_path_tbindir=$func_normal_abspath_result + + # Ascend the tree starting from libdir + while :; do + # check if we have found a prefix of bindir + case $func_relative_path_tbindir in + $func_relative_path_tlibdir) + # found an exact match + func_relative_path_tcancelled= + break + ;; + $func_relative_path_tlibdir*) + # found a matching prefix + func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" + func_relative_path_tcancelled=$func_stripname_result + if test -z "$func_relative_path_result"; then + func_relative_path_result=. + fi + break + ;; + *) + func_dirname $func_relative_path_tlibdir + func_relative_path_tlibdir=${func_dirname_result} + if test "x$func_relative_path_tlibdir" = x ; then + # Have to descend all the way to the root! + func_relative_path_result=../$func_relative_path_result + func_relative_path_tcancelled=$func_relative_path_tbindir + break + fi + func_relative_path_result=../$func_relative_path_result + ;; + esac + done -# 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" + # Now calculate path; take care to avoid doubling-up slashes. + func_stripname '' '/' "$func_relative_path_result" + func_relative_path_result=$func_stripname_result + func_stripname '/' '/' "$func_relative_path_tcancelled" + if test "x$func_stripname_result" != x ; then + func_relative_path_result=${func_relative_path_result}/${func_stripname_result} + fi + + # Normalisation. If bindir is libdir, return empty string, + # else relative path ending with a slash; either way, target + # file name can be directly appended. + if test ! -z "$func_relative_path_result"; then + func_stripname './' '' "$func_relative_path_result/" + func_relative_path_result=$func_stripname_result + fi +} # The name of this program: -# In the unlikely event $progname began with a '-', it would play havoc with -# func_echo (imagine progname=-n), so we prepend ./ in that case: func_dirname_and_basename "$progpath" progname=$func_basename_result -case $progname in - -*) progname=./$progname ;; -esac # Make sure we have an absolute path for reexecution: case $progpath in @@ -215,6 +406,15 @@ # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' +# Sed substitution that turns a string into a regex matching for the +# string literally. +sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' + +# Sed substitution that converts a w32 file name or path +# which contains forward slashes, into one that contains +# (escaped) backslashes. A very naive implementation. +lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. @@ -243,7 +443,7 @@ # name if it has been set yet. func_echo () { - $ECHO "$progname${mode+: }$mode: $*" + $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... @@ -258,18 +458,25 @@ : } +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + # func_error arg... # Echo program name prefixed message to standard error. func_error () { - $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 + $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { - $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 + $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : @@ -326,9 +533,9 @@ case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop - my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` + my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done - my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` + my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do @@ -378,7 +585,7 @@ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi - $ECHO "X$my_tmpdir" | $Xsed + $ECHO "$my_tmpdir" } @@ -392,7 +599,7 @@ { case $1 in *[\\\`\"\$]*) - func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; + func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac @@ -419,7 +626,7 @@ { case $1 in *[\\\`\"]*) - my_arg=`$ECHO "X$1" | $Xsed \ + my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; @@ -488,15 +695,39 @@ fi } - - +# func_tr_sh +# Turn $1 into a string suitable for a shell variable name. +# Result is stored in $func_tr_sh_result. All characters +# not in the set a-zA-Z0-9_ are replaced with '_'. Further, +# if $1 begins with a digit, a '_' is prepended as well. +func_tr_sh () +{ + case $1 in + [0-9]* | *[!a-zA-Z0-9_]*) + func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` + ;; + * ) + func_tr_sh_result=$1 + ;; + esac +} # func_version # Echo version message to standard output and exit. func_version () { - $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { + $opt_debug + + $SED -n '/(C)/!b go + :more + /\./!{ + N + s/\n# / / + b more + } + :go + /^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ @@ -509,22 +740,28 @@ # Echo short help message to standard output and exit. func_usage () { - $SED -n '/^# Usage:/,/# -h/ { + $opt_debug + + $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" - $ECHO + echo $ECHO "run \`$progname --help | more' for full usage" exit $? } -# func_help -# Echo long help message to standard output and exit. +# func_help [NOEXIT] +# Echo long help message to standard output and exit, +# unless 'noexit' is passed as argument. func_help () { + $opt_debug + $SED -n '/^# Usage:/,/# Report bugs to/ { + :print s/^# // s/^# *$// s*\$progname*'$progname'* @@ -537,8 +774,15 @@ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p - }' < "$progpath" - exit $? + d + } + /^# .* home page:/b print + /^# General help using/b print + ' < "$progpath" + ret=$? + if test -z "$1"; then + exit $ret + fi } # func_missing_arg argname @@ -546,63 +790,106 @@ # exit_cmd. func_missing_arg () { - func_error "missing argument for $1" + $opt_debug + + func_error "missing argument for $1." exit_cmd=exit } -exit_cmd=: +# func_split_short_opt shortopt +# Set func_split_short_opt_name and func_split_short_opt_arg shell +# variables after splitting SHORTOPT after the 2nd character. +func_split_short_opt () +{ + my_sed_short_opt='1s/^\(..\).*$/\1/;q' + my_sed_short_rest='1s/^..\(.*\)$/\1/;q' + + func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` + func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` +} # func_split_short_opt may be replaced by extended shell implementation + + +# func_split_long_opt longopt +# Set func_split_long_opt_name and func_split_long_opt_arg shell +# variables after splitting LONGOPT at the `=' sign. +func_split_long_opt () +{ + my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' + my_sed_long_arg='1s/^--[^=]*=//' + + func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` + func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` +} # func_split_long_opt may be replaced by extended shell implementation +exit_cmd=: -# 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 </dev/null || echo $max_cmd_len` +} # func_len may be replaced by extended shell implementation + + +# func_lo2o object +func_lo2o () +{ + func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` +} # func_lo2o may be replaced by extended shell implementation + + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` +} # func_xform may be replaced by extended shell implementation + + # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. @@ -636,16 +923,16 @@ # Display the features supported by this script. func_features () { - $ECHO "host: $host" + echo "host: $host" if test "$build_libtool_libs" = yes; then - $ECHO "enable shared libraries" + echo "enable shared libraries" else - $ECHO "disable shared libraries" + echo "disable shared libraries" fi if test "$build_old_libs" = yes; then - $ECHO "enable static libraries" + echo "enable static libraries" else - $ECHO "disable static libraries" + echo "disable static libraries" fi exit $? @@ -692,133 +979,6 @@ esac } -# Parse options once, thoroughly. This comes as soon as possible in -# the script to make things like `libtool --version' happen quickly. -{ - - # Shorthand for --mode=foo, only valid as the first argument - case $1 in - clean|clea|cle|cl) - shift; set dummy --mode clean ${1+"$@"}; shift - ;; - compile|compil|compi|comp|com|co|c) - shift; set dummy --mode compile ${1+"$@"}; shift - ;; - execute|execut|execu|exec|exe|ex|e) - shift; set dummy --mode execute ${1+"$@"}; shift - ;; - finish|finis|fini|fin|fi|f) - shift; set dummy --mode finish ${1+"$@"}; shift - ;; - install|instal|insta|inst|ins|in|i) - shift; set dummy --mode install ${1+"$@"}; shift - ;; - link|lin|li|l) - shift; set dummy --mode link ${1+"$@"}; shift - ;; - uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) - shift; set dummy --mode uninstall ${1+"$@"}; shift - ;; - esac - - # Parse non-mode specific arguments: - while test "$#" -gt 0; do - opt="$1" - shift - - case $opt in - --config) func_config ;; - - --debug) preserve_args="$preserve_args $opt" - func_echo "enabling shell trace mode" - opt_debug='set -x' - $opt_debug - ;; - - -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break - execute_dlfiles="$execute_dlfiles $1" - shift - ;; - - --dry-run | -n) opt_dry_run=: ;; - --features) func_features ;; - --finish) mode="finish" ;; - - --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break - case $1 in - # Valid mode arguments: - clean) ;; - compile) ;; - execute) ;; - finish) ;; - install) ;; - link) ;; - relink) ;; - uninstall) ;; - - # Catch anything else as an error - *) func_error "invalid argument for $opt" - exit_cmd=exit - break - ;; - esac - - mode="$1" - shift - ;; - - --preserve-dup-deps) - opt_duplicate_deps=: ;; - - --quiet|--silent) preserve_args="$preserve_args $opt" - opt_silent=: - ;; - - --verbose| -v) preserve_args="$preserve_args $opt" - opt_silent=false - ;; - - --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break - preserve_args="$preserve_args $opt $1" - func_enable_tag "$1" # tagname is set here - shift - ;; - - # Separate optargs to long options: - -dlopen=*|--mode=*|--tag=*) - func_opt_split "$opt" - set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} - shift - ;; - - -\?|-h) func_usage ;; - --help) opt_help=: ;; - --version) func_version ;; - - -*) func_fatal_help "unrecognized option \`$opt'" ;; - - *) nonopt="$opt" - break - ;; - esac - done - - - case $host in - *cygwin* | *mingw* | *pw32*) - # don't eliminate duplications in $postdeps and $predeps - opt_duplicate_compiler_generated_deps=: - ;; - *) - opt_duplicate_compiler_generated_deps=$opt_duplicate_deps - ;; - esac - - # Having warned about all mis-specified options, bail out if - # anything was wrong. - $exit_cmd $EXIT_FAILURE -} - # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. @@ -855,46 +1015,223 @@ } -## ----------- ## -## Main. ## -## ----------- ## +# Shorthand for --mode=foo, only valid as the first argument +case $1 in +clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; +compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; +execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; +finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; +install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; +link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; +uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; +esac -$opt_help || { - # Sanity checks first: - func_check_version_match - if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then - func_fatal_configuration "not configured to build any kind of library" - fi - test -z "$mode" && func_fatal_error "error: you must specify a MODE." +# Option defaults: +opt_debug=: +opt_dry_run=false +opt_config=false +opt_preserve_dup_deps=false +opt_features=false +opt_finish=false +opt_help=false +opt_help_all=false +opt_silent=: +opt_verbose=: +opt_silent=false +opt_verbose=false + + +# Parse options once, thoroughly. This comes as soon as possible in the +# script to make things like `--version' happen as quickly as we can. +{ + # this just eases exit handling + while test $# -gt 0; do + opt="$1" + shift + case $opt in + --debug|-x) opt_debug='set -x' + func_echo "enabling shell trace mode" + $opt_debug + ;; + --dry-run|--dryrun|-n) + opt_dry_run=: + ;; + --config) + opt_config=: +func_config + ;; + --dlopen|-dlopen) + optarg="$1" + opt_dlopen="${opt_dlopen+$opt_dlopen +}$optarg" + shift + ;; + --preserve-dup-deps) + opt_preserve_dup_deps=: + ;; + --features) + opt_features=: +func_features + ;; + --finish) + opt_finish=: +set dummy --mode finish ${1+"$@"}; shift + ;; + --help) + opt_help=: + ;; + --help-all) + opt_help_all=: +opt_help=': help-all' + ;; + --mode) + test $# = 0 && func_missing_arg $opt && break + optarg="$1" + opt_mode="$optarg" +case $optarg in + # Valid mode arguments: + clean|compile|execute|finish|install|link|relink|uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $opt" + exit_cmd=exit + break + ;; +esac + shift + ;; + --no-silent|--no-quiet) + opt_silent=false +func_append preserve_args " $opt" + ;; + --no-verbose) + opt_verbose=false +func_append preserve_args " $opt" + ;; + --silent|--quiet) + opt_silent=: +func_append preserve_args " $opt" + opt_verbose=false + ;; + --verbose|-v) + opt_verbose=: +func_append preserve_args " $opt" +opt_silent=false + ;; + --tag) + test $# = 0 && func_missing_arg $opt && break + optarg="$1" + opt_tag="$optarg" +func_append preserve_args " $opt $optarg" +func_enable_tag "$optarg" + shift + ;; + + -\?|-h) func_usage ;; + --help) func_help ;; + --version) func_version ;; + # Separate optargs to long options: + --*=*) + func_split_long_opt "$opt" + set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} + shift + ;; - # Darwin sucks - eval std_shrext=\"$shrext_cmds\" + # Separate non-argument short options: + -\?*|-h*|-n*|-v*) + func_split_short_opt "$opt" + set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} + shift + ;; + --) break ;; + -*) func_fatal_help "unrecognized option \`$opt'" ;; + *) set dummy "$opt" ${1+"$@"}; shift; break ;; + esac + done - # Only execute mode is allowed to have -dlopen flags. - if test -n "$execute_dlfiles" && test "$mode" != execute; then - func_error "unrecognized option \`-dlopen'" - $ECHO "$help" 1>&2 - exit $EXIT_FAILURE + # Validate options: + + # save first non-option argument + if test "$#" -gt 0; then + nonopt="$opt" + shift fi - # Change the help message to a mode-specific one. - generic_help="$help" - help="Try \`$progname --help --mode=$mode' for more information." + # preserve --debug + test "$opt_debug" = : || func_append preserve_args " --debug" + + case $host in + *cygwin* | *mingw* | *pw32* | *cegcc*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; + *) + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps + ;; + esac + + $opt_help || { + # Sanity checks first: + func_check_version_match + + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then + func_fatal_configuration "not configured to build any kind of library" + fi + + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$opt_dlopen" && test "$opt_mode" != execute; then + func_error "unrecognized option \`-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help="$help" + help="Try \`$progname --help --mode=$opt_mode' for more information." + } + + + # Bail if the options were screwed + $exit_cmd $EXIT_FAILURE } + + +## ----------- ## +## Main. ## +## ----------- ## + # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { - $SED -e 4q "$1" 2>/dev/null \ - | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null \ + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file @@ -907,7 +1244,7 @@ func_lalib_unsafe_p () { lalib_p=no - if test -r "$1" && exec 5<&0 <"$1"; then + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line @@ -949,12 +1286,9 @@ # temporary ltwrapper_script. func_ltwrapper_scriptname () { - func_ltwrapper_scriptname_result="" - if func_ltwrapper_executable_p "$1"; then - func_dirname_and_basename "$1" "" "." - func_stripname '' '.exe' "$func_basename_result" - func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" - fi + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" } # func_ltwrapper_p file @@ -1000,6 +1334,37 @@ } +# func_resolve_sysroot PATH +# Replace a leading = in PATH with a sysroot. Store the result into +# func_resolve_sysroot_result +func_resolve_sysroot () +{ + func_resolve_sysroot_result=$1 + case $func_resolve_sysroot_result in + =*) + func_stripname '=' '' "$func_resolve_sysroot_result" + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result + ;; + esac +} + +# func_replace_sysroot PATH +# If PATH begins with the sysroot, replace it with = and +# store the result into func_replace_sysroot_result. +func_replace_sysroot () +{ + case "$lt_sysroot:$1" in + ?*:"$lt_sysroot"*) + func_stripname "$lt_sysroot" '' "$1" + func_replace_sysroot_result="=$func_stripname_result" + ;; + *) + # Including no sysroot. + func_replace_sysroot_result=$1 + ;; + esac +} + # 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. @@ -1012,13 +1377,15 @@ if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do - func_quote_for_eval "$arg" - CC_quoted="$CC_quoted $func_quote_for_eval_result" + func_append_quoted CC_quoted "$arg" done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` 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` "*) ;; + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) @@ -1029,11 +1396,13 @@ CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. - func_quote_for_eval "$arg" - CC_quoted="$CC_quoted $func_quote_for_eval_result" + func_append_quoted CC_quoted "$arg" done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. @@ -1059,42 +1428,522 @@ -# func_write_libtool_object output_name pic_name nonpic_name -# Create a libtool object file (analogous to a ".la" file), -# but don't create it if we're doing a dry run. -func_write_libtool_object () +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=${1} + if test "$build_libtool_libs" = yes; then + write_lobj=\'${2}\' + else + write_lobj=none + fi + + if test "$build_old_libs" = yes; then + write_oldobj=\'${3}\' + else + write_oldobj=none + fi + + $opt_dry_run || { + cat >${write_libobj}T </dev/null` + if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | + $SED -e "$lt_sed_naive_backslashify"` + else + func_convert_core_file_wine_to_w32_result= + fi + fi +} +# end: func_convert_core_file_wine_to_w32 + + +# func_convert_core_path_wine_to_w32 ARG +# Helper function used by path conversion functions when $build is *nix, and +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly +# configured wine environment available, with the winepath program in $build's +# $PATH. Assumes ARG has no leading or trailing path separator characters. +# +# ARG is path to be converted from $build format to win32. +# Result is available in $func_convert_core_path_wine_to_w32_result. +# Unconvertible file (directory) names in ARG are skipped; if no directory names +# are convertible, then the result may be empty. +func_convert_core_path_wine_to_w32 () +{ + $opt_debug + # unfortunately, winepath doesn't convert paths, only file names + func_convert_core_path_wine_to_w32_result="" + if test -n "$1"; then + oldIFS=$IFS + IFS=: + for func_convert_core_path_wine_to_w32_f in $1; do + IFS=$oldIFS + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" + if test -n "$func_convert_core_file_wine_to_w32_result" ; then + if test -z "$func_convert_core_path_wine_to_w32_result"; then + func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" + else + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" + fi + fi + done + IFS=$oldIFS + fi +} +# end: func_convert_core_path_wine_to_w32 + + +# func_cygpath ARGS... +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or +# (2), returns the Cygwin file name or path in func_cygpath_result (input +# file name or path is assumed to be in w32 format, as previously converted +# from $build's *nix or MSYS format). In case (3), returns the w32 file name +# or path in func_cygpath_result (input file name or path is assumed to be in +# Cygwin format). Returns an empty string on error. +# +# ARGS are passed to cygpath, with the last one being the file name or path to +# be converted. +# +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH +# environment variable; do not put it in $PATH. +func_cygpath () +{ + $opt_debug + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` + if test "$?" -ne 0; then + # on failure, ensure result is empty + func_cygpath_result= + fi + else + func_cygpath_result= + func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" + fi +} +#end: func_cygpath + + +# func_convert_core_msys_to_w32 ARG +# Convert file name or path ARG from MSYS format to w32 format. Return +# result in func_convert_core_msys_to_w32_result. +func_convert_core_msys_to_w32 () +{ + $opt_debug + # awkward: cmd appends spaces to result + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` +} +#end: func_convert_core_msys_to_w32 + + +# func_convert_file_check ARG1 ARG2 +# Verify that ARG1 (a file name in $build format) was converted to $host +# format in ARG2. Otherwise, emit an error message, but continue (resetting +# func_to_host_file_result to ARG1). +func_convert_file_check () +{ + $opt_debug + if test -z "$2" && test -n "$1" ; then + func_error "Could not determine host file name corresponding to" + func_error " \`$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_file_result="$1" + fi +} +# end func_convert_file_check + + +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH +# Verify that FROM_PATH (a path in $build format) was converted to $host +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting +# func_to_host_file_result to a simplistic fallback value (see below). +func_convert_path_check () +{ + $opt_debug + if test -z "$4" && test -n "$3"; then + func_error "Could not determine the host path corresponding to" + func_error " \`$3'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This is a deliberately simplistic "conversion" and + # should not be "improved". See libtool.info. + if test "x$1" != "x$2"; then + lt_replace_pathsep_chars="s|$1|$2|g" + func_to_host_path_result=`echo "$3" | + $SED -e "$lt_replace_pathsep_chars"` + else + func_to_host_path_result="$3" + fi + fi +} +# end func_convert_path_check + + +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT +# and appending REPL if ORIG matches BACKPAT. +func_convert_path_front_back_pathsep () +{ + $opt_debug + case $4 in + $1 ) func_to_host_path_result="$3$func_to_host_path_result" + ;; + esac + case $4 in + $2 ) func_append func_to_host_path_result "$3" + ;; + esac +} +# end func_convert_path_front_back_pathsep + + +################################################## +# $build to $host FILE NAME CONVERSION FUNCTIONS # +################################################## +# invoked via `$to_host_file_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# Result will be available in $func_to_host_file_result. + + +# func_to_host_file ARG +# Converts the file name ARG from $build format to $host format. Return result +# in func_to_host_file_result. +func_to_host_file () +{ + $opt_debug + $to_host_file_cmd "$1" +} +# end func_to_host_file + + +# func_to_tool_file ARG LAZY +# converts the file name ARG from $build format to toolchain format. Return +# result in func_to_tool_file_result. If the conversion in use is listed +# in (the comma separated) LAZY, no conversion takes place. +func_to_tool_file () +{ + $opt_debug + case ,$2, in + *,"$to_tool_file_cmd",*) + func_to_tool_file_result=$1 + ;; + *) + $to_tool_file_cmd "$1" + func_to_tool_file_result=$func_to_host_file_result + ;; + esac +} +# end func_to_tool_file + + +# func_convert_file_noop ARG +# Copy ARG to func_to_host_file_result. +func_convert_file_noop () +{ + func_to_host_file_result="$1" +} +# end func_convert_file_noop + + +# func_convert_file_msys_to_w32 ARG +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_file_result. +func_convert_file_msys_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_to_host_file_result="$func_convert_core_msys_to_w32_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_w32 + + +# func_convert_file_cygwin_to_w32 ARG +# Convert file name ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_file_cygwin_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use + # LT_CYGPATH in this case. + func_to_host_file_result=`cygpath -m "$1"` + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_cygwin_to_w32 + + +# func_convert_file_nix_to_w32 ARG +# Convert file name ARG from *nix to w32 format. Requires a wine environment +# and a working winepath. Returns result in func_to_host_file_result. +func_convert_file_nix_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_file_wine_to_w32 "$1" + func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_w32 + + +# func_convert_file_msys_to_cygwin ARG +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_file_msys_to_cygwin () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_cygpath -u "$func_convert_core_msys_to_w32_result" + func_to_host_file_result="$func_cygpath_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_cygwin + + +# func_convert_file_nix_to_cygwin ARG +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result +# in func_to_host_file_result. +func_convert_file_nix_to_cygwin () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. + func_convert_core_file_wine_to_w32 "$1" + func_cygpath -u "$func_convert_core_file_wine_to_w32_result" + func_to_host_file_result="$func_cygpath_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_cygwin + + +############################################# +# $build to $host PATH CONVERSION FUNCTIONS # +############################################# +# invoked via `$to_host_path_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# The result will be available in $func_to_host_path_result. +# +# Path separators are also converted from $build format to $host format. If +# ARG begins or ends with a path separator character, it is preserved (but +# converted to $host format) on output. +# +# All path conversion functions are named using the following convention: +# file name conversion function : func_convert_file_X_to_Y () +# path conversion function : func_convert_path_X_to_Y () +# where, for any given $build/$host combination the 'X_to_Y' value is the +# same. If conversion functions are added for new $build/$host combinations, +# the two new functions must follow this pattern, or func_init_to_host_path_cmd +# will break. + + +# func_init_to_host_path_cmd +# Ensures that function "pointer" variable $to_host_path_cmd is set to the +# appropriate value, based on the value of $to_host_file_cmd. +to_host_path_cmd= +func_init_to_host_path_cmd () +{ + $opt_debug + if test -z "$to_host_path_cmd"; then + func_stripname 'func_convert_file_' '' "$to_host_file_cmd" + to_host_path_cmd="func_convert_path_${func_stripname_result}" + fi +} + + +# func_to_host_path ARG +# Converts the path ARG from $build format to $host format. Return result +# in func_to_host_path_result. +func_to_host_path () +{ + $opt_debug + func_init_to_host_path_cmd + $to_host_path_cmd "$1" +} +# end func_to_host_path + + +# func_convert_path_noop ARG +# Copy ARG to func_to_host_path_result. +func_convert_path_noop () +{ + func_to_host_path_result="$1" +} +# end func_convert_path_noop + + +# func_convert_path_msys_to_w32 ARG +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_path_result. +func_convert_path_msys_to_w32 () { - write_libobj=${1} - if test "$build_libtool_libs" = yes; then - write_lobj=\'${2}\' - else - write_lobj=none - fi + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # Remove leading and trailing path separator characters from ARG. MSYS + # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; + # and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result="$func_convert_core_msys_to_w32_result" + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_msys_to_w32 - if test "$build_old_libs" = yes; then - write_oldobj=\'${3}\' - else - write_oldobj=none - fi - $opt_dry_run || { - cat >${write_libobj}T < "$lockfile" fi $opt_dry_run || $RM $removelist - removelist="$removelist $lockfile" + func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 - if test -n "$fix_srcfile_path"; then - eval srcfile=\"$fix_srcfile_path\" - fi + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 + srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result @@ -1348,7 +2194,7 @@ if test -z "$output_obj"; then # Place PIC objects in $objdir - command="$command -o $lobj" + func_append command " -o $lobj" fi func_show_eval_locale "$command" \ @@ -1395,11 +2241,11 @@ command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then - command="$command -o $obj" + func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. - command="$command$suppress_output" + func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' @@ -1444,13 +2290,13 @@ } $opt_help || { -test "$mode" = compile && func_mode_compile ${1+"$@"} + test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. - case $mode in + case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. @@ -1481,10 +2327,11 @@ -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes - -prefer-pic try to building PIC objects only - -prefer-non-pic try to building non-PIC objects only + -prefer-pic try to build PIC objects only + -prefer-non-pic try to build non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking + -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. @@ -1537,7 +2384,7 @@ The following components of INSTALL-COMMAND are treated specially: - -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." @@ -1557,6 +2404,8 @@ -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible + -bindir BINDIR specify path to binaries directory (for systems where + libraries must be found in the PATH setting at runtime) -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) @@ -1585,6 +2434,11 @@ -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface + -Wc,FLAG + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler + -Wl,FLAG + -Xlinker FLAG pass linker-specific FLAG directly to the linker + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with \`-') are ignored. @@ -1618,18 +2472,44 @@ ;; *) - func_fatal_help "invalid operation mode \`$mode'" + func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac - $ECHO + echo $ECHO "Try \`$progname --help' for more information about other modes." - - exit $? } - # Now that we've collected a possible --mode arg, show help if necessary - $opt_help && func_mode_help +# Now that we've collected a possible --mode arg, show help if necessary +if $opt_help; then + if test "$opt_help" = :; then + func_mode_help + else + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + func_mode_help + done + } | sed -n '1p; 2,$s/^Usage:/ or: /p' + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + echo + func_mode_help + done + } | + sed '1d + /^When reporting/,/^Report/{ + H + d + } + $x + /information about other modes/d + /more detailed .*MODE/d + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' + fi + exit $? +fi # func_mode_execute arg... @@ -1642,13 +2522,16 @@ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. - for file in $execute_dlfiles; do + for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" @@ -1670,7 +2553,7 @@ dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then - dir="$dir/$objdir" + func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" @@ -1711,7 +2594,7 @@ for file do case $file in - -*) ;; + -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then @@ -1727,8 +2610,7 @@ ;; esac # Quote arguments (to preserve shell metacharacters). - func_quote_for_eval "$file" - args="$args $func_quote_for_eval_result" + func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then @@ -1753,29 +2635,66 @@ # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" - $ECHO "export $shlibpath_var" + echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } -test "$mode" = execute && func_mode_execute ${1+"$@"} +test "$opt_mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug - libdirs="$nonopt" + libs= + libdirs= admincmds= - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - for dir - do - libdirs="$libdirs $dir" - done + for opt in "$nonopt" ${1+"$@"} + do + if test -d "$opt"; then + func_append libdirs " $opt" + + elif test -f "$opt"; then + if func_lalib_unsafe_p "$opt"; then + func_append libs " $opt" + else + func_warning "\`$opt' is not a valid libtool archive" + fi + + else + func_fatal_error "invalid argument \`$opt'" + fi + done + + if test -n "$libs"; then + if test -n "$lt_sysroot"; then + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" + else + sysroot_cmd= + fi + + # Remove sysroot references + if $opt_dry_run; then + for lib in $libs; do + echo "removing references to $lt_sysroot and \`=' prefixes from $lib" + done + else + tmpdir=`func_mktempdir` + for lib in $libs; do + sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ + > $tmpdir/tmp-la + mv -f $tmpdir/tmp-la $lib + done + ${RM}r "$tmpdir" + fi + fi + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. @@ -1785,7 +2704,7 @@ if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" - $opt_dry_run || eval "$cmds" || admincmds="$admincmds + $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done @@ -1794,53 +2713,55 @@ # Exit here if they wanted silent mode. $opt_silent && 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\" + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + echo "----------------------------------------------------------------------" + echo "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + echo + echo "If you ever happen to want to link against installed libraries" + echo "in a given directory, LIBDIR, you must either use libtool, and" + echo "specify the full pathname of the library, or use the \`-LLIBDIR'" + echo "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + echo " - add LIBDIR to the \`$shlibpath_var' environment variable" + echo " during execution" + fi + if test -n "$runpath_var"; then + echo " - add LIBDIR to the \`$runpath_var' environment variable" + echo " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" - $ECHO " - use the \`$flag' linker flag" - fi - if test -n "$admincmds"; then - $ECHO " - have your system administrator run these commands:$admincmds" - fi - if test -f /etc/ld.so.conf; then - $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" - fi - $ECHO + $ECHO " - 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" - case $host in - solaris2.[6789]|solaris2.1[0-9]) - $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" - $ECHO "pages." - ;; - *) - $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." - ;; - esac - $ECHO "X----------------------------------------------------------------------" | $Xsed + echo "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" + echo "pages." + ;; + *) + echo "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + echo "----------------------------------------------------------------------" + fi exit $EXIT_SUCCESS } -test "$mode" = finish && func_mode_finish ${1+"$@"} +test "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... @@ -1851,7 +2772,7 @@ # 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 + case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " @@ -1865,7 +2786,12 @@ # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" - install_prog="$install_prog$func_quote_for_eval_result" + func_append install_prog "$func_quote_for_eval_result" + install_shared_prog=$install_prog + case " $install_prog " in + *[\\\ /]cp\ *) install_cp=: ;; + *) install_cp=false ;; + esac # We need to accept at least all the BSD install flags. dest= @@ -1875,10 +2801,12 @@ install_type= isdir=no stripme= + no_mode=: for arg do + arg2= if test -n "$dest"; then - files="$files $dest" + func_append files " $dest" dest=$arg continue fi @@ -1886,10 +2814,9 @@ case $arg in -d) isdir=yes ;; -f) - case " $install_prog " in - *[\\\ /]cp\ *) ;; - *) prev=$arg ;; - esac + if $install_cp; then :; else + prev=$arg + fi ;; -g | -m | -o) prev=$arg @@ -1903,6 +2830,10 @@ *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then + if test "x$prev" = x-m && test -n "$install_override_mode"; then + arg2=$install_override_mode + no_mode=false + fi prev= else dest=$arg @@ -1913,7 +2844,11 @@ # Aesthetically quote the argument. func_quote_for_eval "$arg" - install_prog="$install_prog $func_quote_for_eval_result" + func_append install_prog " $func_quote_for_eval_result" + if test -n "$arg2"; then + func_quote_for_eval "$arg2" + fi + func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ @@ -1922,6 +2857,13 @@ test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" + if test -n "$install_override_mode" && $no_mode; then + if $install_cp; then :; else + func_quote_for_eval "$install_override_mode" + func_append install_shared_prog " -m $func_quote_for_eval_result" + fi + fi + if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" @@ -1976,10 +2918,13 @@ case $file in *.$libext) # Do the static libraries later. - staticlibs="$staticlibs $file" + func_append staticlibs " $file" ;; *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" @@ -1993,23 +2938,23 @@ if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; - *) current_libdirs="$current_libdirs $libdir" ;; + *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; - *) future_libdirs="$future_libdirs $libdir" ;; + *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" - dir="$dir$objdir" + func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` + inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that @@ -2022,9 +2967,9 @@ if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" @@ -2042,11 +2987,11 @@ test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. - func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in - cygwin* | mingw* | pw32*) + cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" @@ -2082,7 +3027,7 @@ func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" + test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) @@ -2152,7 +3097,7 @@ # Do a test to see if this is really a libtool program. case $host in - *cygwin*|*mingw*) + *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result @@ -2182,7 +3127,7 @@ if test -f "$lib"; then func_source "$lib" fi - libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test + libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no @@ -2201,7 +3146,7 @@ file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. - relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" @@ -2220,7 +3165,7 @@ } else # Install the binary that we compiled earlier. - file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi @@ -2279,7 +3224,7 @@ fi } -test "$mode" = install && func_mode_install ${1+"$@"} +test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p @@ -2322,6 +3267,22 @@ extern \"C\" { #endif +#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" +#endif + +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + /* External symbol declarations for the compiler. */\ " @@ -2331,10 +3292,11 @@ $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. - progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do - func_verbose "extracting global C symbols from \`$progfile'" - $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" + func_to_tool_file "$progfile" func_convert_file_msys_to_w32 + func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then @@ -2358,7 +3320,7 @@ $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in - *cygwin* | *mingw* ) + *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; @@ -2370,7 +3332,7 @@ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in - *cygwin | *mingw* ) + *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; @@ -2383,10 +3345,52 @@ func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" - $opt_dry_run || { - eval '$ECHO ": $name " >> "$nlist"' - eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" - } + case $host in + *cygwin* | *mingw* | *cegcc* ) + # if an import library, we need to obtain dlname + if func_win32_import_lib_p "$dlprefile"; then + func_tr_sh "$dlprefile" + eval "curr_lafile=\$libfile_$func_tr_sh_result" + dlprefile_dlbasename="" + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then + # Use subshell, to avoid clobbering current variable values + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` + if test -n "$dlprefile_dlname" ; then + func_basename "$dlprefile_dlname" + dlprefile_dlbasename="$func_basename_result" + else + # no lafile. user explicitly requested -dlpreopen . + $sharedlib_from_linklib_cmd "$dlprefile" + dlprefile_dlbasename=$sharedlib_from_linklib_result + fi + fi + $opt_dry_run || { + if test -n "$dlprefile_dlbasename" ; then + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' + else + func_warning "Could not compute DLL name from $name" + eval '$ECHO ": $name " >> "$nlist"' + fi + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" + } + else # not an import lib + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + fi + ;; + *) + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + ;; + esac done $opt_dry_run || { @@ -2414,36 +3418,19 @@ if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else - $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" + echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi - $ECHO >> "$output_objdir/$my_dlsyms" "\ + echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; -" - case $host in - *cygwin* | *mingw* ) - $ECHO >> "$output_objdir/$my_dlsyms" "\ -/* DATA imports from DLLs on WIN32 con't be const, because - runtime relocations are performed -- see ld's documentation - on pseudo-relocs. */" - lt_dlsym_const= ;; - *osf5*) - echo >> "$output_objdir/$my_dlsyms" "\ -/* This system does not cope well with relocations in const data */" - lt_dlsym_const= ;; - *) - lt_dlsym_const=const ;; - esac - - $ECHO >> "$output_objdir/$my_dlsyms" "\ -extern $lt_dlsym_const lt_dlsymlist +extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; -$lt_dlsym_const lt_dlsymlist +LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," @@ -2456,7 +3443,7 @@ eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac - $ECHO >> "$output_objdir/$my_dlsyms" "\ + echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; @@ -2499,7 +3486,7 @@ for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; - *) symtab_cflags="$symtab_cflags $arg" ;; + *) func_append symtab_cflags " $arg" ;; esac done @@ -2512,18 +3499,18 @@ # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in - *cygwin* | *mingw* ) + *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; @@ -2537,8 +3524,8 @@ # really was required. # Nullify the symbol file. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } @@ -2548,6 +3535,7 @@ # 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. +# Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug @@ -2558,9 +3546,11 @@ win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | - $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then - win32_nmres=`eval $NM -f posix -A $1 | + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then + func_to_tool_file "$1" func_convert_file_msys_to_w32 + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ @@ -2589,6 +3579,131 @@ $ECHO "$win32_libid_type" } +# func_cygming_dll_for_implib ARG +# +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib () +{ + $opt_debug + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` +} + +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs +# +# The is the core of a fallback implementation of a +# platform-specific function to extract the name of the +# DLL associated with the specified import library LIBNAME. +# +# SECTION_NAME is either .idata$6 or .idata$7, depending +# on the platform and compiler that created the implib. +# +# Echos the name of the DLL associated with the +# specified import library. +func_cygming_dll_for_implib_fallback_core () +{ + $opt_debug + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` + $OBJDUMP -s --section "$1" "$2" 2>/dev/null | + $SED '/^Contents of section '"$match_literal"':/{ + # Place marker at beginning of archive member dllname section + s/.*/====MARK====/ + p + d + } + # These lines can sometimes be longer than 43 characters, but + # are always uninteresting + /:[ ]*file format pe[i]\{,1\}-/d + /^In archive [^:]*:/d + # Ensure marker is printed + /^====MARK====/p + # Remove all lines with less than 43 characters + /^.\{43\}/!d + # From remaining lines, remove first 43 characters + s/^.\{43\}//' | + $SED -n ' + # Join marker and all lines until next marker into a single line + /^====MARK====/ b para + H + $ b para + b + :para + x + s/\n//g + # Remove the marker + s/^====MARK====// + # Remove trailing dots and whitespace + s/[\. \t]*$// + # Print + /./p' | + # we now have a list, one entry per line, of the stringified + # contents of the appropriate section of all members of the + # archive which possess that section. Heuristic: eliminate + # all those which have a first or second character that is + # a '.' (that is, objdump's representation of an unprintable + # character.) This should work for all archives with less than + # 0x302f exports -- but will fail for DLLs whose name actually + # begins with a literal '.' or a single character followed by + # a '.'. + # + # Of those that remain, print the first one. + $SED -e '/^\./d;/^.\./d;q' +} + +# func_cygming_gnu_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is a GNU/binutils-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_gnu_implib_p () +{ + $opt_debug + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` + test -n "$func_cygming_gnu_implib_tmp" +} + +# func_cygming_ms_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is an MS-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_ms_implib_p () +{ + $opt_debug + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` + test -n "$func_cygming_ms_implib_tmp" +} + +# func_cygming_dll_for_implib_fallback ARG +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# +# This fallback implementation is for use when $DLLTOOL +# does not support the --identify-strict option. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib_fallback () +{ + $opt_debug + if func_cygming_gnu_implib_p "$1" ; then + # binutils import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` + elif func_cygming_ms_implib_p "$1" ; then + # ms-generated import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` + else + # unknown + sharedlib_from_linklib_result="" + fi +} # func_extract_an_archive dir oldlib @@ -2597,7 +3712,18 @@ $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' + if test "$lock_old_archive_extraction" = yes; then + lockfile=$f_ex_an_ar_oldlib.lock + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + fi + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ + 'stat=$?; rm -f "$lockfile"; exit $stat' + if test "$lock_old_archive_extraction" = yes; then + $opt_dry_run || rm -f "$lockfile" + fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else @@ -2668,7 +3794,7 @@ darwin_file= darwin_files= for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ @@ -2683,34 +3809,30 @@ func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result="$my_oldobjs" } - -# func_emit_wrapper arg +# func_emit_wrapper [arg=no] # -# emit a libtool wrapper script on stdout -# don't directly open a file because we may want to +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within -# func_mode_link because it depends on a number of variable +# func_mode_link because it depends on a number of variables # set therein. # -# arg is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is -# the '.lib' directory. This is a cygwin/mingw-specific +# the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { - func_emit_wrapper_arg1=no - if test -n "$1" ; then - func_emit_wrapper_arg1=$1 - fi + func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL @@ -2726,7 +3848,6 @@ # 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 @@ -2757,31 +3878,132 @@ 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\ + file=\"\$0\"" + + qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` + $ECHO "\ + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + ECHO=\"$qECHO\" + fi + +# Very basic option parsing. These options are (a) specific to +# the libtool wrapper, (b) are identical between the wrapper +# /script/ and the wrapper /executable/ which is used only on +# windows platforms, and (c) all begin with the string "--lt-" +# (application programs are unlikely to have options which match +# this pattern). +# +# There are only two supported options: --lt-debug and +# --lt-dump-script. There is, deliberately, no --lt-help. +# +# The first argument to this parsing function should be the +# script's $0 value, followed by "$@". +lt_option_debug= +func_parse_lt_options () +{ + lt_script_arg0=\$0 + shift + for lt_opt + do + case \"\$lt_opt\" in + --lt-debug) lt_option_debug=1 ;; + --lt-dump-script) + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` + cat \"\$lt_dump_D/\$lt_dump_F\" + exit 0 + ;; + --lt-*) + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 + exit 1 + ;; + esac + done + + # Print the debug banner immediately: + if test -n \"\$lt_option_debug\"; then + echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 + fi +} + +# Used when --lt-debug. Prints its arguments to stdout +# (redirection is the responsibility of the caller) +func_lt_dump_args () +{ + lt_dump_args_N=1; + for lt_arg + do + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` + done +} + +# Core function for launching the target application +func_exec_program_core () +{ " - $ECHO "\ + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 +} + +# A function to encapsulate launching the target application +# Strips options in the --lt-* namespace from \$@ and +# launches target application with the remaining arguments. +func_exec_program () +{ + for lt_wr_arg + do + case \$lt_wr_arg in + --lt-*) ;; + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; + esac + shift + done + func_exec_program_core \${1+\"\$@\"} +} + + # Parse options + func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. - thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` + thisdir=\`\$ECHO \"\$file\" | $SED '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'\` + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do - destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then @@ -2791,8 +4013,8 @@ esac fi - file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into @@ -2805,7 +4027,7 @@ fi # remove .libs from thisdir case \"\$thisdir\" in - *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi @@ -2860,21 +4082,11 @@ 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 "\ - # 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. + # + # Fix the DLL searchpath if we need to. Do this before prepending + # to shlibpath, because on Windows, both are PATH and uninstalled + # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH @@ -2882,39 +4094,36 @@ " fi - $ECHO "\ - 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*) + # Export our shlibpath_var if we have one. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} -" - ;; + # 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 \"\$$shlibpath_var\" | $SED 's/::*\$//'\` - *) - $ECHO "\ - exec \"\$progdir/\$program\" \${1+\"\$@\"} + export $shlibpath_var " - ;; - esac + fi + $ECHO "\ - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 - exit 1 + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. + func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 - $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } -# end: func_emit_wrapper + # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout @@ -2932,20 +4141,18 @@ 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* "$SHELL $output", - but could eventually absorb all of the scripts functionality and - exec $objdir/$outputname directly. */ EOF cat <<"EOF" +#ifdef _MSC_VER +# define _CRT_SECURE_NO_DEPRECATE 1 +#endif #include #include #ifdef _MSC_VER # include # include # include -# define setmode _setmode #else # include # include @@ -2962,6 +4169,44 @@ #include #include +/* declarations of non-ANSI functions */ +#if defined(__MINGW32__) +# ifdef __STRICT_ANSI__ +int _putenv (const char *); +# endif +#elif defined(__CYGWIN__) +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +/* #elif defined (other platforms) ... */ +#endif + +/* portability defines, excluding path handling macros */ +#if defined(_MSC_VER) +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +# define S_IXUSR _S_IEXEC +# ifndef _INTPTR_T_DEFINED +# define _INTPTR_T_DEFINED +# define intptr_t int +# endif +#elif defined(__MINGW32__) +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +#elif defined(__CYGWIN__) +# define HAVE_SETENV +# define FOPEN_WB "wb" +/* #elif defined (other platforms) ... */ +#endif + #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) @@ -2977,14 +4222,7 @@ # define S_IXGRP 0 #endif -#ifdef _MSC_VER -# define S_IXUSR _S_IEXEC -# define stat _stat -# ifndef _INTPTR_T_DEFINED -# define intptr_t int -# endif -#endif - +/* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' @@ -3015,10 +4253,6 @@ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ -#ifdef __CYGWIN__ -# define FOPEN_WB "wb" -#endif - #ifndef FOPEN_WB # define FOPEN_WB "w" #endif @@ -3031,22 +4265,13 @@ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) -#undef LTWRAPPER_DEBUGPRINTF -#if defined DEBUGWRAPPER -# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args -static void -ltwrapper_debugprintf (const char *fmt, ...) -{ - va_list args; - va_start (args, fmt); - (void) vfprintf (stderr, fmt, args); - va_end (args); -} +#if defined(LT_DEBUGWRAPPER) +static int lt_debug = 1; #else -# define LTWRAPPER_DEBUGPRINTF(args) +static int lt_debug = 0; #endif -const char *program_name = NULL; +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); @@ -3056,37 +4281,88 @@ int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); -void lt_fatal (const char *message, ...); +void lt_debugprintf (const char *file, int line, const char *fmt, ...); +void lt_fatal (const char *file, int line, const char *message, ...); +static const char *nonnull (const char *s); +static const char *nonempty (const char *s); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); +char **prepare_spawn (char **argv); +void lt_dump_script (FILE *f); +EOF -static const char *script_text = + cat </dev/null || echo $SHELL` - case $lt_newargv0 in - *.exe | *.EXE) ;; - *) lt_newargv0=$lt_newargv0.exe ;; - esac - ;; - * ) lt_newargv0=$SHELL ;; - esac - fi - - cat < 0) && IS_PATH_SEPARATOR (new_value[len-1])) + { + new_value[len-1] = '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +void +lt_update_lib_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +EOF + case $host_os in + mingw*) + cat <<"EOF" + +/* Prepares an argument vector before calling spawn(). + Note that spawn() does not by itself call the command interpreter + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); + GetVersionEx(&v); + v.dwPlatformId == VER_PLATFORM_WIN32_NT; + }) ? "cmd.exe" : "command.com"). + Instead it simply concatenates the arguments, separated by ' ', and calls + CreateProcess(). We must quote the arguments since Win32 CreateProcess() + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a + special way: + - Space and tab are interpreted as delimiters. They are not treated as + delimiters if they are surrounded by double quotes: "...". + - Unescaped double quotes are removed from the input. Their only effect is + that within double quotes, space and tab are treated like normal + characters. + - Backslashes not followed by double quotes are not special. + - But 2*n+1 backslashes followed by a double quote become + n backslashes followed by a double quote (n >= 0): + \" -> " + \\\" -> \" + \\\\\" -> \\" + */ +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +char ** +prepare_spawn (char **argv) +{ + size_t argc; + char **new_argv; + size_t i; + + /* Count number of arguments. */ + for (argc = 0; argv[argc] != NULL; argc++) + ; + + /* Allocate new argument vector. */ + new_argv = XMALLOC (char *, argc + 1); + + /* Put quoted arguments into the new argument vector. */ + for (i = 0; i < argc; i++) + { + const char *string = argv[i]; + + if (string[0] == '\0') + new_argv[i] = xstrdup ("\"\""); + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) + { + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); + size_t length; + unsigned int backslashes; + const char *s; + char *quoted_string; + char *p; + + length = 0; + backslashes = 0; + if (quote_around) + length++; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + length += backslashes + 1; + length++; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + length += backslashes + 1; + + quoted_string = XMALLOC (char, length + 1); + + p = quoted_string; + backslashes = 0; + if (quote_around) + *p++ = '"'; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + { + unsigned int j; + for (j = backslashes + 1; j > 0; j--) + *p++ = '\\'; + } + *p++ = c; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + { + unsigned int j; + for (j = backslashes; j > 0; j--) + *p++ = '\\'; + *p++ = '"'; + } + *p = '\0'; + + new_argv[i] = quoted_string; + } + else + new_argv[i] = (char *) string; + } + new_argv[argc] = NULL; + + return new_argv; +} +EOF + ;; + esac + + cat <<"EOF" +void lt_dump_script (FILE* f) +{ +EOF + func_emit_wrapper yes | + $SED -e 's/\([\\"]\)/\\\1/g' \ + -e 's/^/ fputs ("/' -e 's/$/\\n", f);/' + + cat <<"EOF" +} EOF } # end: func_emit_cwrapperexe_src +# func_win32_import_lib_p ARG +# True if ARG is an import lib, as indicated by $file_magic_cmd +func_win32_import_lib_p () +{ + $opt_debug + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in + *import*) : ;; + *) false ;; + esac +} + # func_mode_link arg... func_mode_link () { $opt_debug case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # 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 @@ -3554,6 +5121,7 @@ new_inherited_linker_flags= avoid_version=no + bindir= dlfiles= dlprefiles= dlself=no @@ -3646,6 +5214,11 @@ esac case $prev in + bindir) + bindir="$arg" + prev= + continue + ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. @@ -3677,9 +5250,9 @@ ;; *) if test "$prev" = dlfiles; then - dlfiles="$dlfiles $arg" + func_append dlfiles " $arg" else - dlprefiles="$dlprefiles $arg" + func_append dlprefiles " $arg" fi prev= continue @@ -3703,7 +5276,7 @@ *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; - *) deplibs="$deplibs $qarg.ltframework" # this is fixed later + *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; @@ -3722,7 +5295,7 @@ moreargs= for fil in `cat "$save_arg"` do -# moreargs="$moreargs $fil" +# func_append moreargs " $fil" arg=$fil # A libtool-controlled object. @@ -3751,7 +5324,7 @@ if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" + func_append dlfiles " $pic_object" prev= continue else @@ -3763,7 +5336,7 @@ # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" + func_append dlprefiles " $pic_object" prev= fi @@ -3833,12 +5406,12 @@ if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; - *) rpath="$rpath $arg" ;; + *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; - *) xrpath="$xrpath $arg" ;; + *) func_append xrpath " $arg" ;; esac fi prev= @@ -3850,28 +5423,28 @@ continue ;; weak) - weak_libs="$weak_libs $arg" + func_append weak_libs " $arg" prev= continue ;; xcclinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $qarg" + func_append linker_flags " $qarg" + func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) - compiler_flags="$compiler_flags $qarg" + func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $wl$qarg" + func_append linker_flags " $qarg" + func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" @@ -3907,6 +5480,11 @@ continue ;; + -bindir) + prev=bindir + continue + ;; + -dlopen) prev=dlfiles continue @@ -3957,8 +5535,16 @@ ;; -L*) - func_stripname '-L' '' "$arg" - dir=$func_stripname_result + func_stripname "-L" '' "$arg" + if test -z "$func_stripname_result"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between \`-L' and \`$1'" + else + func_fatal_error "need path for \`-L' option" + fi + fi + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; @@ -3970,22 +5556,30 @@ ;; esac case "$deplibs " in - *" -L$dir "*) ;; + *" -L$dir "* | *" $arg "*) + # Will only happen for absolute or sysroot arguments + ;; *) - deplibs="$deplibs -L$dir" - lib_search_path="$lib_search_path $dir" + # Preserve sysroot, but never include relative directories + case $dir in + [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; + *) func_append deplibs " -L$dir" ;; + esac + func_append lib_search_path " $dir" ;; esac case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; - *) dllsearchpath="$dllsearchpath:$dir";; + ::) dllsearchpath=$dir;; + *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; - *) dllsearchpath="$dllsearchpath:$testbindir";; + ::) dllsearchpath=$testbindir;; + *) func_append dllsearchpath ":$testbindir";; esac ;; esac @@ -3995,7 +5589,7 @@ -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; @@ -4009,7 +5603,7 @@ ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework - deplibs="$deplibs System.ltframework" + func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) @@ -4029,7 +5623,7 @@ ;; esac fi - deplibs="$deplibs $arg" + func_append deplibs " $arg" continue ;; @@ -4041,8 +5635,8 @@ # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. - -model|-arch|-isysroot) - compiler_flags="$compiler_flags $arg" + -model|-arch|-isysroot|--sysroot) + func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler @@ -4050,12 +5644,12 @@ ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) - compiler_flags="$compiler_flags $arg" + func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; + * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; @@ -4072,7 +5666,7 @@ -no-install) case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" @@ -4122,13 +5716,17 @@ # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; + =*) + func_stripname '=' '' "$dir" + dir=$lt_sysroot$func_stripname_result + ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; + *) func_append xrpath " $dir" ;; esac continue ;; @@ -4181,8 +5779,8 @@ for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" - arg="$arg $wl$func_quote_for_eval_result" - compiler_flags="$compiler_flags $func_quote_for_eval_result" + func_append arg " $func_quote_for_eval_result" + func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" @@ -4197,9 +5795,9 @@ for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" - arg="$arg $wl$func_quote_for_eval_result" - compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" - linker_flags="$linker_flags $func_quote_for_eval_result" + func_append arg " $wl$func_quote_for_eval_result" + func_append compiler_flags " $wl$func_quote_for_eval_result" + func_append linker_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" @@ -4227,23 +5825,27 @@ arg="$func_quote_for_eval_result" ;; - # -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*, -t[45]*, -txscale* pass through architecture-specific - # compiler args for GCC - # -F/path gives path to uninstalled frameworks, gcc on darwin - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC - # @file GCC response files + # Flags to be passed through unchanged, with rationale: + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler + # -r[0-9][0-9]* specify processor for the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler + # +DA*, +DD* enable 64-bit mode for the HP compiler + # -q* compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC + # -F/path path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC + # @file GCC response files + # -tp=* Portland pgcc target processor selection + # --sysroot=* for sysroot support + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ + -O*|-flto*|-fwhopr*|-fuse-linker-plugin) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" - compiler_flags="$compiler_flags $arg" + func_append compiler_flags " $arg" continue ;; @@ -4255,7 +5857,7 @@ *.$objext) # A standard object. - objs="$objs $arg" + func_append objs " $arg" ;; *.lo) @@ -4286,7 +5888,7 @@ if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" + func_append dlfiles " $pic_object" prev= continue else @@ -4298,7 +5900,7 @@ # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" + func_append dlprefiles " $pic_object" prev= fi @@ -4343,24 +5945,25 @@ *.$libext) # An archive. - deplibs="$deplibs $arg" - old_deplibs="$old_deplibs $arg" + func_append deplibs " $arg" + func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. + func_resolve_sysroot "$arg" if test "$prev" = dlfiles; then # This library was specified with -dlopen. - dlfiles="$dlfiles $arg" + func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. - dlprefiles="$dlprefiles $arg" + func_append dlprefiles " $func_resolve_sysroot_result" prev= else - deplibs="$deplibs $arg" + func_append deplibs " $func_resolve_sysroot_result" fi continue ;; @@ -4398,7 +6001,7 @@ 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\'\` + eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi @@ -4407,6 +6010,8 @@ func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" + func_to_tool_file "$output_objdir/" + tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" @@ -4427,12 +6032,12 @@ # 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 $opt_duplicate_deps ; then + if $opt_preserve_dup_deps ; then case "$libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi - libs="$libs $deplib" + func_append libs " $deplib" done if test "$linkmode" = lib; then @@ -4445,9 +6050,9 @@ if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; + *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac - pre_post_deps="$pre_post_deps $pre_post_dep" + func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= @@ -4506,10 +6111,7 @@ case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; - link) - libs="$deplibs %DEPLIBS%" - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" - ;; + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then @@ -4517,17 +6119,19 @@ for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= + func_resolve_sysroot "$lib" case $lib in - *.la) func_source "$lib" ;; + *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do - deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` + func_basename "$deplib" + deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; - *) deplibs="$deplibs $deplib" ;; + *) func_append deplibs " $deplib" ;; esac done done @@ -4548,11 +6152,11 @@ compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else - compiler_flags="$compiler_flags $deplib" + func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi @@ -4637,7 +6241,7 @@ if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi @@ -4650,7 +6254,8 @@ test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then @@ -4664,7 +6269,8 @@ finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" @@ -4675,17 +6281,21 @@ -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" - dir=$func_stripname_result + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; + *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; - *.la) lib="$deplib" ;; + *.la) + func_resolve_sysroot "$deplib" + lib=$func_resolve_sysroot_result + ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" @@ -4703,7 +6313,7 @@ match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ + if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi @@ -4713,15 +6323,15 @@ ;; esac if test "$valid_a_lib" != yes; then - $ECHO + 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 use here." + 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 use here." else - $ECHO + echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" @@ -4748,11 +6358,11 @@ 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" + func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else - newdlfiles="$newdlfiles $deplib" + func_append newdlfiles " $deplib" fi fi continue @@ -4794,20 +6404,20 @@ # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then - tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` + tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; - *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; + *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi - dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` 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" + test -n "$dlopen" && func_append dlfiles " $dlopen" + test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then @@ -4818,20 +6428,20 @@ func_fatal_error "cannot find name of link library for \`$lib'" 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" + func_append convenience " $ladir/$objdir/$old_library" + func_append old_convenience " $ladir/$objdir/$old_library" elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" - if $opt_duplicate_deps ; then + if $opt_preserve_dup_deps ; then case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi - tmp_libs="$tmp_libs $deplib" + func_append tmp_libs " $deplib" done continue fi # $pass = conv @@ -4839,9 +6449,15 @@ # Get the name of the library we link against. linklib= - for l in $old_library $library_names; do - linklib="$l" - done + if test -n "$old_library" && + { test "$prefer_static_libs" = yes || + test "$prefer_static_libs,$installed" = "built,no"; }; then + linklib=$old_library + else + for l in $old_library $library_names; do + linklib="$l" + done + fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi @@ -4858,9 +6474,9 @@ # 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" + func_append dlprefiles " $lib $dependency_libs" else - newdlfiles="$newdlfiles $lib" + func_append newdlfiles " $lib" fi continue fi # $pass = dlopen @@ -4882,14 +6498,14 @@ # 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 + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else - dir="$libdir" - absdir="$libdir" + dir="$lt_sysroot$libdir" + absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else @@ -4897,12 +6513,12 @@ dir="$ladir" absdir="$abs_ladir" # Remove this search path later - notinst_path="$notinst_path $abs_ladir" + func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later - notinst_path="$notinst_path $abs_ladir" + func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" @@ -4913,20 +6529,46 @@ if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" 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" - # Keep a list of preopened convenience libraries to check - # that they are being used correctly in the link pass. - test -z "$libdir" && \ - dlpreconveniencelibs="$dlpreconveniencelibs $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 + case "$host" in + # special handling for platforms with PE-DLLs. + *cygwin* | *mingw* | *cegcc* ) + # Linker will automatically link against shared library if both + # static and shared are present. Therefore, ensure we extract + # symbols from the import library if a shared library is present + # (otherwise, the dlopen module name will be incorrect). We do + # this by putting the import library name into $newdlprefiles. + # We recover the dlopen module name by 'saving' the la file + # name in a special purpose variable, and (later) extracting the + # dlname from the la file. + if test -n "$dlname"; then + func_tr_sh "$dir/$linklib" + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" + func_append newdlprefiles " $dir/$linklib" + else + func_append newdlprefiles " $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + func_append dlpreconveniencelibs " $dir/$old_library" + fi + ;; + * ) + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + func_append newdlprefiles " $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + func_append dlpreconveniencelibs " $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + func_append newdlprefiles " $dir/$dlname" + else + func_append newdlprefiles " $dir/$linklib" + fi + ;; + esac fi # $pass = dlpreopen if test -z "$libdir"; then @@ -4944,7 +6586,7 @@ if test "$linkmode" = prog && test "$pass" != link; then - newlib_search_path="$newlib_search_path $ladir" + func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no @@ -4957,7 +6599,8 @@ for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" + func_resolve_sysroot "$func_stripname_result" + func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? @@ -4968,12 +6611,12 @@ # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi - if $opt_duplicate_deps ; then + if $opt_preserve_dup_deps ; then case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi - tmp_libs="$tmp_libs $deplib" + func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... @@ -4988,7 +6631,7 @@ # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; - *) temp_rpath="$temp_rpath$absdir:" ;; + *) func_append temp_rpath "$absdir:" ;; esac fi @@ -5000,7 +6643,7 @@ *) case "$compile_rpath " in *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" + *) func_append compile_rpath " $absdir" ;; esac ;; esac @@ -5009,7 +6652,7 @@ *) case "$finalize_rpath " in *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" + *) func_append finalize_rpath " $libdir" ;; esac ;; esac @@ -5032,14 +6675,14 @@ if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in - *cygwin* | *mingw*) + *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded - notinst_deplibs="$notinst_deplibs $lib" + func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then - notinst_deplibs="$notinst_deplibs $lib" + func_append notinst_deplibs " $lib" need_relink=yes fi ;; @@ -5056,7 +6699,7 @@ fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then - $ECHO + echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else @@ -5074,7 +6717,7 @@ *) case "$compile_rpath " in *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" + *) func_append compile_rpath " $absdir" ;; esac ;; esac @@ -5083,7 +6726,7 @@ *) case "$finalize_rpath " in *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" + *) func_append finalize_rpath " $libdir" ;; esac ;; esac @@ -5102,7 +6745,7 @@ elif test -n "$soname_spec"; then # bleh windows case $host in - *cygwin* | mingw*) + *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" @@ -5137,7 +6780,7 @@ linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" - if test "$linkmode" = prog || test "$mode" != relink; then + if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= @@ -5159,9 +6802,9 @@ if test "X$dlopenmodule" != "X$lib"; 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" + 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 @@ -5193,7 +6836,7 @@ if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" + func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi @@ -5215,7 +6858,7 @@ if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then @@ -5229,13 +6872,13 @@ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi - if test "$linkmode" = prog || test "$mode" = relink; then + if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= @@ -5249,7 +6892,7 @@ elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then @@ -5266,7 +6909,7 @@ if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" + func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi @@ -5301,21 +6944,21 @@ # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. - $ECHO + 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." + 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." + 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." + 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 @@ -5343,37 +6986,46 @@ temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; - *) xrpath="$xrpath $temp_xrpath";; + *) func_append xrpath " $temp_xrpath";; esac;; - *) temp_deplibs="$temp_deplibs $libdir";; + *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi - newlib_search_path="$newlib_search_path $absdir" + func_append 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 $opt_duplicate_deps ; then + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result";; + *) func_resolve_sysroot "$deplib" ;; + esac + if $opt_preserve_dup_deps ; then case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + *" $func_resolve_sysroot_result "*) + func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi - tmp_libs="$tmp_libs $deplib" + func_append tmp_libs " $func_resolve_sysroot_result" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do + path= case $deplib in -L*) path="$deplib" ;; *.la) + func_resolve_sysroot "$deplib" + deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." - dir="$func_dirname_result" + dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; @@ -5400,8 +7052,8 @@ if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi - compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" - linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" + func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" + func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi @@ -5434,7 +7086,7 @@ compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else - compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" @@ -5451,7 +7103,7 @@ for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; - *) lib_search_path="$lib_search_path $dir" ;; + *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= @@ -5509,10 +7161,10 @@ -L*) case " $tmp_libs " in *" $deplib "*) ;; - *) tmp_libs="$tmp_libs $deplib" ;; + *) func_append tmp_libs " $deplib" ;; esac ;; - *) tmp_libs="$tmp_libs $deplib" ;; + *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" @@ -5528,7 +7180,7 @@ ;; esac if test -n "$i" ; then - tmp_libs="$tmp_libs $i" + func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs @@ -5569,7 +7221,7 @@ # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" - objs="$objs$old_deplibs" + func_append objs "$old_deplibs" ;; lib) @@ -5602,10 +7254,10 @@ if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else - $ECHO + echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" - libobjs="$libobjs $objs" + func_append libobjs " $objs" fi fi @@ -5670,7 +7322,7 @@ age="$number_minor" revision="$number_revision" ;; - freebsd-aout|freebsd-elf|sunos) + freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" @@ -5682,9 +7334,6 @@ revision="$number_minor" lt_irix_increment=no ;; - *) - func_fatal_configuration "$modename: unknown library version type \`$version_type'" - ;; esac ;; no) @@ -5806,7 +7455,7 @@ done # Make executables depend on our current version. - verstring="$verstring:${current}.0" + func_append verstring ":${current}.0" ;; qnx) @@ -5874,17 +7523,17 @@ fi func_generate_dlsyms "$libname" "$libname" "yes" - libobjs="$libobjs $symfileobj" + func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= - if test "$mode" != relink; then + if test "$opt_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) + *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then @@ -5893,7 +7542,7 @@ continue fi fi - removelist="$removelist $p" + func_append removelist " $p" ;; *) ;; esac @@ -5904,27 +7553,28 @@ # 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" + func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. - oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` + oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do - # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` - # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` - # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` + # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` + # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` + # dependency_libs=`$ECHO "$dependency_libs " | $SED "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" + func_replace_sysroot "$libdir" + func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; + *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then @@ -5938,7 +7588,7 @@ for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; - *) dlfiles="$dlfiles $lib" ;; + *) func_append dlfiles " $lib" ;; esac done @@ -5948,19 +7598,19 @@ for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; - *) dlprefiles="$dlprefiles $lib" ;; + *) func_append dlprefiles " $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework - deplibs="$deplibs System.ltframework" + func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. @@ -5977,7 +7627,7 @@ *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then - deplibs="$deplibs -lc" + func_append deplibs " -lc" fi ;; esac @@ -6026,7 +7676,7 @@ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" i="" ;; esac @@ -6037,21 +7687,21 @@ set dummy $deplib_matches; shift deplib_match=$1 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" else droppeddeps=yes - $ECHO + 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." + 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 ;; *) - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" ;; esac done @@ -6069,7 +7719,7 @@ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" i="" ;; esac @@ -6080,29 +7730,29 @@ set dummy $deplib_matches; shift deplib_match=$1 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" else droppeddeps=yes - $ECHO + 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." + 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 $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." + 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 ;; *) - newdeplibs="$newdeplibs $i" + func_append newdeplibs " $i" ;; esac done @@ -6119,15 +7769,27 @@ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` + if test -n "$file_magic_glob"; then + libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob` + else + libnameglob=$libname + fi + test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + if test "$want_nocaseglob" = yes; then + shopt -s nocaseglob + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` + $nocaseglob + else + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` + fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | @@ -6144,13 +7806,13 @@ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; - *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; + *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi @@ -6159,12 +7821,12 @@ fi if test -n "$a_deplib" ; then droppeddeps=yes - $ECHO + 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" + 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 @@ -6175,7 +7837,7 @@ ;; *) # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. @@ -6191,7 +7853,7 @@ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" a_deplib="" ;; esac @@ -6202,9 +7864,9 @@ 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 \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ + if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi @@ -6213,12 +7875,12 @@ fi if test -n "$a_deplib" ; then droppeddeps=yes - $ECHO + 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" + 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 @@ -6229,32 +7891,32 @@ ;; *) # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" + func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" - tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ - -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` + tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; 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" | $Xsed -e "s,$i,,"` + tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` done fi - if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | - $GREP . >/dev/null; then - $ECHO + case $tmp_deplibs in + *[!\ \ ]*) + echo if test "X$deplibs_check_method" = "Xnone"; then - $ECHO "*** Warning: inter-library dependencies are not supported in this platform." + echo "*** Warning: inter-library dependencies are not supported in this platform." else - $ECHO "*** Warning: inter-library dependencies are not known to be supported." + echo "*** Warning: inter-library dependencies are not known to be supported." fi - $ECHO "*** All declared inter-library dependencies are being dropped." + echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes - fi + ;; + esac ;; esac versuffix=$versuffix_save @@ -6266,23 +7928,23 @@ case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then - $ECHO - $ECHO "*** Warning: libtool could not satisfy all declared inter-library" + 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." + 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." + 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" @@ -6292,16 +7954,16 @@ 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." + 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." + 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 @@ -6318,9 +7980,9 @@ # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac @@ -6333,7 +7995,7 @@ *) case " $deplibs " in *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; + func_append new_libs " -L$path/$objdir" ;; esac ;; esac @@ -6343,10 +8005,10 @@ -L*) case " $new_libs " in *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; + *) func_append new_libs " $deplib" ;; esac ;; - *) new_libs="$new_libs $deplib" ;; + *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" @@ -6363,10 +8025,12 @@ hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" - test "$mode" != relink && rpath="$compile_rpath$rpath" + test "$opt_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 + func_replace_sysroot "$libdir" + libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else @@ -6375,18 +8039,18 @@ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" - dep_rpath="$dep_rpath $flag" + func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; + *) func_apped perm_rpath " $libdir" ;; esac fi done @@ -6404,7 +8068,7 @@ # We should set the runpath_var. rpath= for dir in $perm_rpath; do - rpath="$rpath$dir:" + func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi @@ -6412,7 +8076,7 @@ fi shlibpath="$finalize_shlibpath" - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi @@ -6438,23 +8102,23 @@ linknames= for link do - linknames="$linknames $link" + func_append linknames " $link" done # Use standard objects if they are pic - test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" - delfiles="$delfiles $export_symbols" + func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in - cygwin* | mingw*) + cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then @@ -6480,13 +8144,45 @@ $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do + for cmd1 in $cmds; do IFS="$save_ifs" - eval cmd=\"$cmd\" - func_len " $cmd" - len=$func_len_result - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + # Take the normal branch if the nm_file_list_spec branch + # doesn't work or if tool conversion is not needed. + case $nm_file_list_spec~$to_tool_file_cmd in + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) + try_normal_branch=yes + eval cmd=\"$cmd1\" + func_len " $cmd" + len=$func_len_result + ;; + *) + try_normal_branch=no + ;; + esac + if test "$try_normal_branch" = yes \ + && { test "$len" -lt "$max_cmd_len" \ + || test "$max_cmd_len" -le -1; } + then + func_show_eval "$cmd" 'exit $?' + skipped_export=false + elif test -n "$nm_file_list_spec"; then + func_basename "$output" + output_la=$func_basename_result + save_libobjs=$libobjs + save_output=$output + output=${output_objdir}/${output_la}.nm + func_to_tool_file "$output" + libobjs=$nm_file_list_spec$func_to_tool_file_result + func_append delfiles " $output" + func_verbose "creating $NM input file list: $output" + for obj in $save_libobjs; do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > "$output" + eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' + output=$save_output + libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. @@ -6508,7 +8204,7 @@ if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then @@ -6520,7 +8216,7 @@ # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi @@ -6530,7 +8226,7 @@ case " $convenience " in *" $test_deplib "*) ;; *) - tmp_deplibs="$tmp_deplibs $test_deplib" + func_append tmp_deplibs " $test_deplib" ;; esac done @@ -6550,21 +8246,21 @@ test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + func_append generated " $gentop" func_extract_archives $gentop $convenience - libobjs="$libobjs $func_extract_archives_result" + func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= 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" + func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking - if test "$mode" = relink; then + if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi @@ -6609,7 +8305,8 @@ save_libobjs=$libobjs fi save_output=$output - output_la=`$ECHO "X$output" | $Xsed -e "$basename"` + func_basename "$output" + output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. @@ -6622,13 +8319,16 @@ if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" - $ECHO 'INPUT (' > $output + echo 'INPUT (' > $output for obj in $save_libobjs do - $ECHO "$obj" >> $output + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output done - $ECHO ')' >> $output - delfiles="$delfiles $output" + echo ')' >> $output + func_append delfiles " $output" + func_to_tool_file "$output" + output=$func_to_tool_file_result elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" @@ -6642,10 +8342,12 @@ fi for obj do - $ECHO "$obj" >> $output + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output done - delfiles="$delfiles $output" - output=$firstobj\"$file_list_spec$output\" + func_append delfiles " $output" + func_to_tool_file "$output" + output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." @@ -6669,17 +8371,19 @@ # 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\" + reload_objs=$objlist + eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext - objlist=$obj + objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result @@ -6689,11 +8393,12 @@ # 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\" + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\${concat_cmds}$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi - delfiles="$delfiles $output" + func_append delfiles " $output" else output= @@ -6727,7 +8432,7 @@ lt_exit=$? # Restore the uninstalled library and exit - if test "$mode" = relink; then + if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) @@ -6748,7 +8453,7 @@ if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then @@ -6760,7 +8465,7 @@ # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi @@ -6801,10 +8506,10 @@ # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + func_append generated " $gentop" func_extract_archives $gentop $dlprefiles - libobjs="$libobjs $func_extract_archives_result" + func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi @@ -6820,7 +8525,7 @@ lt_exit=$? # Restore the uninstalled library and exit - if test "$mode" = relink; then + if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) @@ -6832,7 +8537,7 @@ IFS="$save_ifs" # Restore the uninstalled library and exit - if test "$mode" = relink; then + if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then @@ -6913,18 +8618,21 @@ 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'` + reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" - generated="$generated $gentop" + func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi + # If we're not building shared, we need to use non_pic_objs + test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" + # 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 + reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' @@ -6984,8 +8692,8 @@ 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 / System.ltframework /'` - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac @@ -6996,14 +8704,14 @@ if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) - compile_command="$compile_command ${wl}-bind_at_load" - finalize_command="$finalize_command ${wl}-bind_at_load" + func_append compile_command " ${wl}-bind_at_load" + func_append finalize_command " ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac @@ -7017,7 +8725,7 @@ *) case " $compile_deplibs " in *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; + func_append new_libs " -L$path/$objdir" ;; esac ;; esac @@ -7027,17 +8735,17 @@ -L*) case " $new_libs " in *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; + *) func_append new_libs " $deplib" ;; esac ;; - *) new_libs="$new_libs $deplib" ;; + *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" - compile_command="$compile_command $compile_deplibs" - finalize_command="$finalize_command $finalize_deplibs" + func_append compile_command " $compile_deplibs" + func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. @@ -7045,7 +8753,7 @@ # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; + *) func_append finalize_rpath " $libdir" ;; esac done fi @@ -7064,30 +8772,32 @@ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" + func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; + *) func_append perm_rpath " $libdir" ;; esac fi case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; - *) dllsearchpath="$dllsearchpath:$libdir";; + ::) dllsearchpath=$libdir;; + *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; - *) dllsearchpath="$dllsearchpath:$testbindir";; + ::) dllsearchpath=$testbindir;; + *) func_append dllsearchpath ":$testbindir";; esac ;; esac @@ -7113,18 +8823,18 @@ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" + func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + *) func_append finalize_perm_rpath " $libdir" ;; esac fi done @@ -7138,8 +8848,8 @@ 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` + compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` + finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" @@ -7151,6 +8861,10 @@ wrappers_required=yes case $host in + *cegcc* | *mingw32ce*) + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. + wrappers_required=no + ;; *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no @@ -7164,13 +8878,19 @@ esac if test "$wrappers_required" = no; then # Replace the output file specification. - compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' @@ -7193,7 +8913,7 @@ # We should set the runpath_var. rpath= for dir in $perm_rpath; do - rpath="$rpath$dir:" + func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi @@ -7201,7 +8921,7 @@ # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do - rpath="$rpath$dir:" + func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi @@ -7211,11 +8931,18 @@ # 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'` + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + exit $EXIT_SUCCESS fi @@ -7230,7 +8957,7 @@ if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then - relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` + relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= @@ -7242,13 +8969,19 @@ fi # Replace the output file specification. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' + if test -n "$postlink_cmds"; then + func_to_tool_file "$output_objdir/$outputname" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + # Now create the wrapper script. func_verbose "creating $output" @@ -7266,18 +8999,7 @@ fi done relink_command="(cd `pwd`; $relink_command)" - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` - fi - - # Quote $ECHO for shipping. - if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then - case $progpath in - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; - esac - qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` - else - qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. @@ -7308,11 +9030,10 @@ func_emit_cwrapperexe_src > $cwrappersource - # 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. + # The wrapper executable is built using the $host compiler, + # because it contains $host paths and files. If cross- + # compiling, it, like the target executable, must be + # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper @@ -7358,7 +9079,7 @@ else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then - oldobjs="$oldobjs $symfileobj" + func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" @@ -7366,10 +9087,10 @@ if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + func_append generated " $gentop" func_extract_archives $gentop $addlibs - oldobjs="$oldobjs $func_extract_archives_result" + func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. @@ -7380,10 +9101,10 @@ # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + func_append generated " $gentop" func_extract_archives $gentop $dlprefiles - oldobjs="$oldobjs $func_extract_archives_result" + func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have @@ -7399,9 +9120,9 @@ done | sort | sort -uc >/dev/null 2>&1); then : else - $ECHO "copying selected object files to avoid basename conflicts..." + echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" + func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= @@ -7425,9 +9146,9 @@ esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" - oldobjs="$oldobjs $gentop/$newobj" + func_append oldobjs " $gentop/$newobj" ;; - *) oldobjs="$oldobjs $obj" ;; + *) func_append oldobjs " $obj" ;; esac done fi @@ -7437,6 +9158,16 @@ len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds + elif test -n "$archiver_list_spec"; then + func_verbose "using command file archive linking..." + for obj in $oldobjs + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > $output_objdir/$libname.libcmd + func_to_tool_file "$output_objdir/$libname.libcmd" + oldobjs=" $archiver_list_spec$func_to_tool_file_result" + cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." @@ -7510,7 +9241,7 @@ done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi @@ -7533,9 +9264,19 @@ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" - newdependency_libs="$newdependency_libs $libdir/$name" + func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" + ;; + -L*) + func_stripname -L '' "$deplib" + func_replace_sysroot "$func_stripname_result" + func_append newdependency_libs " -L$func_replace_sysroot_result" ;; - *) newdependency_libs="$newdependency_libs $deplib" ;; + -R*) + func_stripname -R '' "$deplib" + func_replace_sysroot "$func_stripname_result" + func_append newdependency_libs " -R$func_replace_sysroot_result" + ;; + *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs="$newdependency_libs" @@ -7549,9 +9290,9 @@ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" - newdlfiles="$newdlfiles $libdir/$name" + func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; - *) newdlfiles="$newdlfiles $lib" ;; + *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" @@ -7568,7 +9309,7 @@ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" - newdlprefiles="$newdlprefiles $libdir/$name" + func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done @@ -7580,7 +9321,7 @@ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac - newdlfiles="$newdlfiles $abs" + func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= @@ -7589,15 +9330,33 @@ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac - newdlprefiles="$newdlprefiles $abs" + func_append newdlprefiles " $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin + # In fact, it would be nice if we could use this code for all target + # systems that can't hard-code library paths into their executables + # and that have no shared library path variable independent of PATH, + # but it turns out we can't easily determine that from inspecting + # libtool variables, so we have to hard-code the OSs to which it + # applies here; at the moment, that means platforms that use the PE + # object format with DLL files. See the long comment at the top of + # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) + # If a -bindir argument was supplied, place the dll there. + if test "x$bindir" != x ; + then + func_relative_path "$install_libdir" "$bindir" + tdlname=$func_relative_path_result$dlname + else + # Otherwise fall back on heuristic. + tdlname=../bin/$dlname + fi + ;; esac $ECHO > $output "\ # $outputname - a libtool library file @@ -7656,7 +9415,7 @@ exit $EXIT_SUCCESS } -{ test "$mode" = link || test "$mode" = relink; } && +{ test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} @@ -7676,9 +9435,9 @@ for arg do case $arg in - -f) RM="$RM $arg"; rmforce=yes ;; - -*) RM="$RM $arg" ;; - *) files="$files $arg" ;; + -f) func_append RM " $arg"; rmforce=yes ;; + -*) func_append RM " $arg" ;; + *) func_append files " $arg" ;; esac done @@ -7687,24 +9446,23 @@ rmdirs= - origobjdir="$objdir" for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then - objdir="$origobjdir" + odir="$objdir" else - objdir="$dir/$origobjdir" + odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" - test "$mode" = uninstall && objdir="$dir" + test "$opt_mode" = uninstall && odir="$dir" - # Remember objdir for removal later, being careful to avoid duplicates - if test "$mode" = clean; then + # Remember odir for removal later, being careful to avoid duplicates + if test "$opt_mode" = clean; then case " $rmdirs " in - *" $objdir "*) ;; - *) rmdirs="$rmdirs $objdir" ;; + *" $odir "*) ;; + *) func_append rmdirs " $odir" ;; esac fi @@ -7730,18 +9488,17 @@ # Delete the libtool libraries and symlinks. for n in $library_names; do - rmfiles="$rmfiles $objdir/$n" + func_append rmfiles " $odir/$n" done - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" + test -n "$old_library" && func_append rmfiles " $odir/$old_library" - case "$mode" in + case "$opt_mode" in clean) - case " $library_names " in - # " " in the beginning catches empty $dlname + case " $library_names " in *" $dlname "*) ;; - *) rmfiles="$rmfiles $objdir/$dlname" ;; + *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then @@ -7769,19 +9526,19 @@ # 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" + func_append 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" + func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) - if test "$mode" = clean ; then + if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) @@ -7791,7 +9548,7 @@ noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe - rmfiles="$rmfiles $file" + func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. @@ -7800,7 +9557,7 @@ func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result - rmfiles="$rmfiles $func_ltwrapper_scriptname_result" + func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename @@ -7808,12 +9565,12 @@ # 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}" + func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then - rmfiles="$rmfiles $objdir/lt-$name" + func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then - rmfiles="$rmfiles $objdir/lt-${noexename}.c" + func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi @@ -7821,7 +9578,6 @@ esac func_show_eval "$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 @@ -7833,16 +9589,16 @@ exit $exit_status } -{ test "$mode" = uninstall || test "$mode" = clean; } && +{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} -test -z "$mode" && { +test -z "$opt_mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ - func_fatal_help "invalid operation mode \`$mode'" + func_fatal_help "invalid operation mode \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" diff -Nru quickplot-0.8.15/main.cpp quickplot-0.9.11/main.cpp --- quickplot-0.8.15/main.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/main.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" -#include -#include - - -using namespace Gtk; -#include "value_t.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - - - -int main (int argc, char *argv[]) -{ - App app(&argc, &argv); - - if(app.isInvalid) return 1; - - app.run(); //Shows the window and returns when it is closed. - - return 0; -} diff -Nru quickplot-0.8.15/MainMenuBar.cpp quickplot-0.9.11/MainMenuBar.cpp --- quickplot-0.8.15/MainMenuBar.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/MainMenuBar.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,428 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include - - -using namespace Gtk; -#include "errorStr.h" -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" -#include "Globel.h" - -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "imgAbout_browser.xpm" -#include "imgNewFrame.xpm" -#include "imgCloseFrame.xpm" -#include "imgCopyFrame.xpm" -#include "imgSaveImage.xpm" - -// accel_key GDK keyval of the accelerator. are found in gdk/gdkkeysyms.h - -MainMenuBar::MainMenuBar(MainWindow *mainWindow_in) : - openImage(Stock::OPEN, ICON_SIZE_MENU), - newImage(Stock::NEW, ICON_SIZE_MENU), - quitImage(Stock::QUIT, ICON_SIZE_MENU), - helpImage(Stock::HELP, ICON_SIZE_MENU), - showMenuBarItem("_Menu Bar", true), - showButtonBarItem("_Button Bar", true), - showGraphTabsItem("Graph _Tabs", true), - showStatusBarItem("_Status Bar", true), - showGraphConfigItem("_Graph Configure", true), - showPlotListerItem("_Plot Lists", true), - deleteFrameMenuItem(closeImage, "_Delete Frame", true) -{ - mainWindow = mainWindow_in; - - items().push_back(Menu_Helpers::MenuElem("File", fileMenu)); - items().push_back(Menu_Helpers::MenuElem("View", viewMenu)); - items().push_back(Menu_Helpers::MenuElem("Help", helpMenu)); - - - { // File menu - Menu::MenuList &menuList = fileMenu.items(); - - menuList. - push_back(Menu_Helpers:: - ImageMenuElem("_Open File ...", openImage, - sigc::mem_fun(*app, &App::openDialog))); - // make it so we activate with m, m, and etc. - addAccelKey(&(menuList.back()), GDK_o); - - - menuList. - push_back(Menu_Helpers:: - ImageMenuElem("_New Graph Tab", newImage, - sigc::mem_fun(*mainWindow, - &MainWindow::makeNewGraphWithGraphConfig))); - // make it so we activate with m, m, and etc. - addAccelKey(&(menuList.back()), GDK_n); - - - Glib::RefPtr pix = - Gdk::Pixbuf::create_from_xpm_data(imgNewFrame); - newFrameImage.set(pix); - - menuList. - push_back(Menu_Helpers:: - ImageMenuElem("New _Frame (Empty)", newFrameImage, - sigc::mem_fun(*app, - &App::createMainWindow))); - // make it so we activate with m, m, and etc. - addAccelKey(&(menuList.back()), GDK_f); - - - pix = Gdk::Pixbuf::create_from_xpm_data(imgCopyFrame); - copyFrameImage.set(pix); - - menuList. - push_back(Menu_Helpers:: - ImageMenuElem("New Frame (_Copy This)", copyFrameImage, - sigc::mem_fun(*app, - &App::copyCurrentMainWindow))); - // make it so we activate with m, m, and etc. - addAccelKey(&(menuList.back()), GDK_c); - - - pix = Gdk::Pixbuf::create_from_xpm_data(imgCloseFrame); - closeImage.set(pix); - - menuList.push_back(deleteFrameMenuItem); - deleteFrameMenuItem.signal_activate(). - connect(sigc::mem_fun(*mainWindow, &MainWindow::deleteLater)); - closeImage.show(); - deleteFrameMenuItem.show(); - if(app->size() < 1) - deleteFrameMenuItem.set_sensitive(false); - // make it so we activate with m, m, and etc. - addAccelKey(&(menuList.back()), GDK_d); - addAccelKey(&(menuList.back()), GDK_Escape); - - - pix = Gdk::Pixbuf::create_from_xpm_data(imgSaveImage); - saveImage.set(pix); - - menuList. - push_back(Menu_Helpers:: - ImageMenuElem("Save PNG _Image File ...", saveImage, - sigc::mem_fun(*mainWindow, - &MainWindow::savePNGFile))); - // make it so we activate with m, m, and etc. - addAccelKey(&(menuList.back()), GDK_i); - - - menuList.push_back(Menu_Helpers::SeparatorElem()); - - - menuList. - push_back(Menu_Helpers::ImageMenuElem("_Quit", - quitImage, - sigc::mem_fun(*app, - &App::quit))); - // make it so we activate with m, m, and etc. - addAccelKey(&(menuList.back()), GDK_q); - - menuList.push_back(Menu_Helpers::SeparatorElem()); - menuList.push_back(Menu_Helpers::SeparatorElem()); - - - //Glib::RefPtr accel = fileMenu.get_accel_group(); - - // Initializes menu accelerators. So q will work even if - // the menu bar is not showing. - fileMenu.accelerate(*mainWindow); - } - - { // View menu - Menu::MenuList &menuList = viewMenu.items(); - - menuList.push_back(showMenuBarItem); - showMenuBarItem.show(); - if(opShowMenuBar) - showMenuBarItem.set_active(); - showMenuBarItem.signal_activate(). - connect(sigc::mem_fun(*this, &MainMenuBar::on_showMenuBarItem)); - // make it so we activate with m, m, and etc. - addAccelKey(&showMenuBarItem, GDK_m); - - - menuList.push_back(showButtonBarItem); - showButtonBarItem.show(); - if(opShowButtons) - showButtonBarItem.set_active(); - showButtonBarItem.signal_activate(). - connect(sigc::mem_fun(*this, &MainMenuBar::on_showButtonBarItem)); - // make it so we activate with m, m, and etc. - addAccelKey(&showButtonBarItem, GDK_b); - - - menuList.push_back(showGraphTabsItem); - showGraphTabsItem.show(); - if(opShowGraphTabs) - showGraphTabsItem.set_active(); - showGraphTabsItem.signal_activate(). - connect(sigc::mem_fun(*this, &MainMenuBar::on_showGraphTabsItem)); - // make it so we activate with m, m, and etc. - addAccelKey(&showGraphTabsItem, GDK_t); - - - menuList.push_back(showStatusBarItem); - showStatusBarItem.show(); - if(opShowStatusBar) - showStatusBarItem.set_active(); - showStatusBarItem.signal_activate(). - connect(sigc::mem_fun(*this, &MainMenuBar::on_showStatusBarItem)); - // make it so we activate with m, m, and etc. - addAccelKey(&showStatusBarItem, GDK_s); - - - menuList.push_back(Menu_Helpers::SeparatorElem()); - - - menuList.push_back(showGraphConfigItem); - showGraphConfigItem.show(); - if(opShowGraphConfig) - showGraphConfigItem.set_active(); - showGraphConfigItem.signal_activate(). - connect(sigc::mem_fun(*this, &MainMenuBar::on_showGraphConfigItem)); - // make it so we activate with m, m, and etc. - addAccelKey(&showGraphConfigItem, GDK_g); - - - menuList.push_back(showPlotListerItem); - showPlotListerItem.show(); - showPlotListerItem.set_active(false); - showPlotListerItem.signal_activate(). - connect(sigc::mem_fun(*this, &MainMenuBar::on_showPlotListerItem)); - // make it so we activate with m, m, and etc. - addAccelKey(&showPlotListerItem, GDK_p); - - viewMenu.accelerate(*mainWindow); - } - - { // Help menu - Menu::MenuList &menuList = helpMenu.items(); - - Glib::RefPtr pix = - Gdk::Pixbuf::create_from_xpm_data(imgAbout_browser); - aboutImage.set(pix); - - - menuList.push_back(Menu_Helpers:: - ImageMenuElem("_About", aboutImage, - sigc::mem_fun(*mainWindow, - &MainWindow::on_about))); - // make it so we activate with m, m, and etc. - addAccelKey(&(menuList.back()), GDK_a); - - menuList.push_back(Menu_Helpers:: - ImageMenuElem("_Help", helpImage, - sigc::mem_fun(*mainWindow, - &MainWindow::on_help))); - // make it so we activate with m, m, and etc. - addAccelKey(&(menuList.back()), GDK_h); - - } - - signal_show(). - connect(sigc::mem_fun(*this, &MainMenuBar::checkMenuBarState)); - signal_hide(). - connect(sigc::mem_fun(*this, &MainMenuBar::checkMenuBarState)); - - mainWindow->statusBar.signal_show(). - connect(sigc::mem_fun(*this, &MainMenuBar::checkStatusBarState)); - mainWindow->statusBar.signal_hide(). - connect(sigc::mem_fun(*this, &MainMenuBar::checkStatusBarState)); -} - -void MainMenuBar::addAccelKey(Widget *widget, gint key) -{ - // this one makes it happen with just the key alone. - widget->add_accelerator("activate", mainWindow->get_accel_group(), - key, Gdk::LOCK_MASK, ACCEL_MASK); - -#if 0 // the MainWindow takes care of this now. - widget->add_accelerator("activate", mainWindow->get_accel_group(), - key, Gdk::CONTROL_MASK, ACCEL_MASK); - widget->add_accelerator("activate", mainWindow->get_accel_group(), - key, Gdk::SHIFT_MASK, ACCEL_MASK); - widget->add_accelerator("activate", mainWindow->get_accel_group(), - key, Gdk::MOD1_MASK, ACCEL_MASK); - widget->add_accelerator("activate", mainWindow->get_accel_group(), - key, Gdk::MOD2_MASK, ACCEL_MASK); - widget->add_accelerator("activate", mainWindow->get_accel_group(), - key, Gdk::MOD3_MASK, ACCEL_MASK); - widget->add_accelerator("activate", mainWindow->get_accel_group(), - key, Gdk::MOD4_MASK, ACCEL_MASK); - widget->add_accelerator("activate", mainWindow->get_accel_group(), - key, Gdk::MOD5_MASK, ACCEL_MASK); -#endif -} - -MainMenuBar::~MainMenuBar(void) -{ - //delete aboutImage; - //delete newFrameImage; -} - -// These 3 slots just keep the check menu items state in sync with the -// corresponding widget. -void MainMenuBar::checkMenuBarState(void) // slot -{ - // Check and fix the showMenuBarItem - if(is_visible() && !showMenuBarItem.get_active()) - showMenuBarItem.set_active(true); - else if(!is_visible() && showMenuBarItem.get_active()) - showMenuBarItem.set_active(false); -} - -void MainMenuBar::checkButtonBarState(void) // slot -{ - // Check and fix the showButtonBarItem - if(mainWindow->buttonBar.is_visible() && !showButtonBarItem.get_active()) - showButtonBarItem.set_active(true); - else if(!mainWindow->buttonBar.is_visible() && showButtonBarItem.get_active()) - showButtonBarItem.set_active(false); -} - -void MainMenuBar::checkGraphConfigState(void) // slot -{ - // Check and fix the showGraphConfigItem - if(mainWindow->graphConfig && mainWindow->graphConfig->is_visible() - && !showGraphConfigItem.get_active()) - { - showGraphConfigItem.set_active(true); - } - else if((!mainWindow->graphConfig || - (mainWindow->graphConfig && !mainWindow->graphConfig->is_visible())) - && showGraphConfigItem.get_active()) - { - showGraphConfigItem.set_active(false); - } -} - -void MainMenuBar::checkPlotListerState(void) // slot -{ - // Check and fix the showPlotListerItem - if(mainWindow->plotLister && mainWindow->plotLister->is_visible() - && !showPlotListerItem.get_active()) - { - showPlotListerItem.set_active(true); - } - else if((!mainWindow->plotLister || - (mainWindow->plotLister && !mainWindow->plotLister->is_visible())) - && showPlotListerItem.get_active()) - { - showPlotListerItem.set_active(false); - } -} - -void MainMenuBar::checkGraphTabsState(bool showing) // slot -{ - if(showing && !showGraphTabsItem.get_active()) - showGraphTabsItem.set_active(true); - else if(!showing && showGraphTabsItem.get_active()) - showGraphTabsItem.set_active(false); -} - -void MainMenuBar::checkStatusBarState(void) // slot -{ - // Check and fix the showStatusBarItem - if(mainWindow->statusBar.is_visible() && !showStatusBarItem.get_active()) - showStatusBarItem.set_active(true); - else if(!mainWindow->statusBar.is_visible() && showStatusBarItem.get_active()) - showStatusBarItem.set_active(false); -} - - -void MainMenuBar::on_showMenuBarItem(void) // slot -{ - if(showMenuBarItem.get_active()) - // This won't happen much. - show(); - else - hide(); -} - -void MainMenuBar::on_showButtonBarItem(void) // slot -{ - if(showButtonBarItem.get_active()) - mainWindow->buttonBar.show(); - else - mainWindow->buttonBar.hide(); -} - -void MainMenuBar::on_showGraphTabsItem(void) // slot -{ - if(showGraphTabsItem.get_active() && - !mainWindow->graphsNotebook.get_show_tabs()) - mainWindow->graphsNotebook.set_show_tabs(true); - else if(!showGraphTabsItem.get_active() && - mainWindow->graphsNotebook.get_show_tabs()) - mainWindow->graphsNotebook.set_show_tabs(false); -} - -void MainMenuBar::on_showStatusBarItem(void) -{ - if(showStatusBarItem.get_active()) - mainWindow->statusBar.show(); - else - mainWindow->statusBar.hide(); -} - - - -void MainMenuBar::on_showGraphConfigItem(void) // slot -{ - if(showGraphConfigItem.get_active() && - (!mainWindow->graphConfig || !mainWindow->graphConfig->is_visible())) - { - mainWindow->showGraphConfig(); - } - else if(!showGraphConfigItem.get_active() && - (mainWindow->graphConfig && mainWindow->graphConfig->is_visible())) - { - mainWindow->graphConfig->hide(); - } -} - -void MainMenuBar::on_showPlotListerItem(void) // slot -{ - if(showPlotListerItem.get_active() && - (!mainWindow->plotLister || !mainWindow->plotLister->is_visible())) - { - mainWindow->showPlotLister(); - } - else if(!showPlotListerItem.get_active() && - (mainWindow->plotLister && mainWindow->plotLister->is_visible())) - { - mainWindow->plotLister->hide(); - } -} - diff -Nru quickplot-0.8.15/MainMenuBar.h quickplot-0.9.11/MainMenuBar.h --- quickplot-0.8.15/MainMenuBar.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/MainMenuBar.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,59 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -class MainWindow; - -class MainMenuBar : public MenuBar -{ - public: - - MainMenuBar(MainWindow *mainWindow_in); - ~MainMenuBar(void); - - - // getFileMenu() is used by Source when a file is opened a Close - // file menu item is added. - inline Menu &getFileMenu(void) { return fileMenu; } - - - // These slots do the show or hide of the corresponding widget. - void on_showMenuBarItem(void); // slot - void on_showButtonBarItem(void); // slot - void on_showGraphTabsItem(void); // slot - void on_showStatusBarItem(void); // slot - void on_showGraphConfigItem(void); // slot - void on_showPlotListerItem(void); // slot - - - // These"check" slots just keep the check menu items state in sync - // with the corresponding widget. - void checkMenuBarState(void); // slot - void checkButtonBarState(void); // slot - void checkGraphTabsState(bool showing); // slot - void checkStatusBarState(void); // slot - void checkGraphConfigState(void); // slot - void checkPlotListerState(void); // slot - -private: - - void addAccelKey(Widget *widget, gint key); - - Menu fileMenu, /* editMenu, */ viewMenu, helpMenu; - - // File Menu - Image openImage, newImage, newFrameImage, copyFrameImage, - closeImage, quitImage, aboutImage, helpImage, saveImage; - - // View Menu - Gtk::CheckMenuItem showMenuBarItem, showButtonBarItem, - showGraphTabsItem, showStatusBarItem, showGraphConfigItem, - showPlotListerItem; - -public: - - ImageMenuItem deleteFrameMenuItem; - -private: - - MainWindow *mainWindow; -}; diff -Nru quickplot-0.8.15/MainWindow.cpp quickplot-0.9.11/MainWindow.cpp --- quickplot-0.8.15/MainWindow.cpp 2009-03-08 20:13:59.000000000 +0000 +++ quickplot-0.9.11/MainWindow.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,770 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include - -#include - -#include - - -using namespace Gtk; -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" - - -#include "value_t.h" -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "GraphConfig.h" -#include "MainWindow.h" -#include "App.h" -#include "Source.h" -#include "Globel.h" - -#include "quickplot_icon.xpm" - - -// from file: help_html.cpp which was generated from help.html.in -extern const char *help_html; - -// from file: about_html.cpp which was generated from about.html.in -extern const char *about_html; - - -// From file: launchBrowser.cpp -extern int sLaunchBrowser(const char *doc, const char *suffix); - -// from file: parseGeometry.cpp -extern void parseGeometry(const char *geometry, - int &w, int &h, - int &x, int &y, - int &xSign, int & ySign); - -#define SMALL_INT INT_MIN - - -static int mainWindowCount = 0; - - -MainWindow::MainWindow(bool makeGraph): - graphsNotebook(this), - menuBar(this), - buttonBar(this) -{ - mainWindowNumber = ++mainWindowCount; - - graphConfig = NULL; - savePNGDialog = NULL; - plotLister = NULL; - numPlotConfigs = 0; - - startX = SMALL_INT; - - setTitle(NULL); - - graphTabAddCount = 0; - - if(!opShowGraphTabs) - graphsNotebook.set_show_tabs(false); - - if(makeGraph) - { - makeNewGraphTab(); - } - - graphsNotebook. - signal_switch_page(). - connect(sigc::mem_fun(*this, &MainWindow::on_notebookFlip)); - - - add(mainVBox); - mainVBox.pack_start(topVBox, PACK_SHRINK); - topVBox.add(menuBar); - topVBox.add(buttonBar); - mainVBox.add(graphsNotebook); - mainVBox.pack_start(statusBar, PACK_SHRINK); - - set_default_size(600, 600); - - Glib::RefPtr pix = - Gdk::Pixbuf::create_from_xpm_data(quickplot_icon); - set_icon(pix); - - Source::signal_addedSource(). - connect(sigc::mem_fun(*this, &MainWindow::setTitle)); - Source::signal_removedSource(). - connect(sigc::mem_fun(*this, &MainWindow::setTitle)); - - signal_hide().connect(sigc::mem_fun(*this, &MainWindow::deleteLater)); - - - if(opGeometry && mainWindowNumber == 1) // example: -geometry 800x240+300+200 - { - int w=SMALL_INT, h; - // This will set the values only if they are valid. - parseGeometry(opGeometry, w, h, startX, startY, startXSign, startYSign); - if(w != SMALL_INT) - resize(w, h); - } - - // add a close menu item for each source. - if(sources.size() > 0) - { - std::list::const_iterator source = sources.begin(); - for(;source != sources.end(); source++) - { - (new CloseSourceMenuItem((*source), this))->show(); - } - } - - { - int i; - for(i=0;iset_transient_for(*this); - } - - switch(savePNGDialog->run()) - { - case(RESPONSE_OK): - currentGraph->savePNG(savePNGDialog->get_filename().c_str()); - break; - default: - break; // Closed window or hit cancel. - } - savePNGDialog->hide(); -} - -bool MainWindow::on_expose_event(GdkEventExpose *e) -{ - if(startX != SMALL_INT && mainWindowNumber == 1) - { - // This is done here because I can't call - // get_window()->get_frame_extents() before now. - - // set position to startX and startY - if(startXSign < 0 || startYSign < 0) - { - Gdk::Rectangle rec; - get_window()->get_frame_extents(rec); - //opSpew << "rec.get_width()=" << rec.get_width() - // << " rec.get_height()=" << rec.get_height() - // << std::endl; - - int rootW, rootH; - get_window()->get_parent()->get_size(rootW, rootH); - //opSpew << "rootW=" << rootW << " rootH=" << rootH << std::endl; - //opSpew << "startX=" << ((startXSign < 0)?"-":"+") << startX - // << " startY=" << ((startYSign < 0)?"-":"+") << startY - // << std::endl; - if(startXSign < 0) - startX = rootW - rec.get_width() - startX; - if(startYSign < 0) - startY = rootH - rec.get_height() - startY; - - //opSpew << "startX=" << startX - // << " startY=" << startY - // << std::endl; - } - - move(startX, startY); - startX = SMALL_INT; - } - - return Window::on_expose_event(e); -} - -void MainWindow::show(void) -{ - if(opShowMenuBar) - menuBar.show(); - - if(opShowButtons) - buttonBar.show(); - - graphsNotebook.show(); - topVBox.show(); - mainVBox.show(); - - if(opShowStatusBar) - statusBar.show(); - - Window::show(); -} - -// looks at the files loaded and sets the title. -void MainWindow::setTitle(Source *) // slot -{ - char s[24]; - - if(mainWindowNumber > 1) - { - sprintf(s, "(%d) ", mainWindowNumber); - } - else - s[0] = '\0'; - - sprintf(&s[strlen(s)], "Quickplot"); - - Glib::ustring str(s); - std::list::const_iterator source = sources.begin(); - for(;source != sources.end(); source++) - { - if((*source)->getBaseFileName()) - { - str += " "; - str += (*source)->getBaseFileName(); - } - } - set_title(str); -} - - -void MainWindow::on_help(void) -{ - //opSpew << "MainWindow::on_help()" << std::endl; - sLaunchBrowser(help_html, "help.html"); -} - -void MainWindow::on_about(void) -{ - //opSpew << "MainWindow::on_about()" << std::endl; - sLaunchBrowser(about_html, "about.html"); -} - - -void MainWindow::showGraphConfig(void) -{ - if(!graphConfig) - { - graphConfig = new GraphConfig(this); - } - graphConfig->show(); -} - -void MainWindow::showPlotLister(void) -{ - if(!plotLister) - { - plotLister = new PlotLister(this); - } - plotLister->show(); -} - - -void MainWindow::makeNewGraphTabWithGraph(Graph *graph) -{ - graphTabAddCount++; - graph->show(); - graphsNotebook.add(*graph); - GraphTab *graphTab = new GraphTab(graphTabAddCount, this, graph); - graphsNotebook.set_tab_label(*graph, *graphTab); - graphsNotebook.set_current_page(graphsNotebook.page_num(*graph)); - currentGraph = graph; - - if(graphsNotebook.get_n_pages() == 2) - { - GraphTab *tab = dynamic_cast - (graphsNotebook.get_tab_label(*graphsNotebook.get_nth_page(0))); - if(tab) - { - tab->removeButton.set_sensitive(true); - } - } - else if(graphsNotebook.get_n_pages() == 1) - { - GraphTab *tab = dynamic_cast - (graphsNotebook.get_tab_label(*graphsNotebook.get_nth_page(0))); - if(tab) - { - tab->removeButton.set_sensitive(false); - } - } -} - - -void MainWindow::makeNewGraphTab(void) -{ - makeNewGraphTabWithGraph(new Graph(this)); -} - -void MainWindow::makeNewGraphWithGraphConfig(void) -{ - makeNewGraphTab(); - showGraphConfig(); - - // Calling hide() before show() will make it visible even if the - // window was icon-ified. show() alone will not cause the window to - // be visible if it is icon-ified. We think "blinking" the window - // is better than not seeing it some times. There does not appear - // to be a function gboolean gtk_window_get_iconified(GtkWindow - // *window), or a corrisponding method in GTKmm. - graphConfig->hide(); - graphConfig->show(); -} - - -void MainWindow::removeGraphTab(Graph *graph) -{ - // remove Graph and Notebook page. - int n = graphsNotebook.get_n_pages(); - - // This will not remove the last graph. - if(n <= 1) return; - - int i; - for(i=0;i(g) == graph) - { - Widget *label = graphsNotebook.get_tab_label(*graph); - graphsNotebook.remove_page(i); - delete graph; - delete label; - break; - } - } - - if(graphsNotebook.get_n_pages() == 1) - { - GraphTab *tab = dynamic_cast - (graphsNotebook.get_tab_label(*graphsNotebook.get_nth_page(0))); - if(tab) - { - tab->removeButton.set_sensitive(false); - } - } -} - - -void MainWindow::on_notebookFlip(GtkNotebookPage* page, guint page_num) -{ - // printf("MainWindow::on_notebookFlip(%d)\n", page_num); - currentGraph = dynamic_cast(graphsNotebook.get_nth_page(page_num)); -} - -bool MainWindow::on_focus_in_event(GdkEventFocus* event) -{ - currentMainWindow = this; - return Window::on_focus_in_event(event); -} - -//opSpew << __LINE__ << " file=" << __FILE__ << std::endl; - -MainWindow::~MainWindow(void) -{ -// remove and delete a close menu item for each source. - std::list::const_iterator source = sources.begin(); - for(;source != sources.end(); source++) - { - bool got_one = true; - while(got_one) - { - got_one = false; - - std::list::iterator it = - (*source)->closeSourceMenuItems.begin(); - for(;it != (*source)->closeSourceMenuItems.end(); it++) - { - - if((*it)->mainWindow == this) - { - // remove the close file menu - menuBar.getFileMenu().items().remove(*(*it)); - // delete the close file menu - delete (*it); - // remove is from the list in source - (*source)->closeSourceMenuItems.remove(*it); - got_one = true; - break; - } - } - - } // while(got_one) - - - } - - - int i; - for(i=0;i=0;i--) - { - Widget *graph = graphsNotebook.get_nth_page(i); - Widget *label = graphsNotebook.get_tab_label(*graph); - graphsNotebook.remove_page(i); - delete graph; - delete label; - } -} - -extern "C" -{ - struct DeleteLater - { - MainWindow *mainWindow; - }; - - static gboolean deleteThisLater(gpointer data) - { - gtk_idle_remove_by_data(data); - app->destroyMainWindow(((struct DeleteLater *) data)->mainWindow); - //opSpew << __LINE__ << " file=" << __FILE__ << std::endl; - free(data); - return ((gboolean) 0); - } -} - -void MainWindow::deleteLater(void) -{ - struct DeleteLater *d = (struct DeleteLater *) malloc(sizeof(struct DeleteLater)); - d->mainWindow = this; - gtk_idle_add(deleteThisLater, d); -} - -void MainWindow::makePlotConfig(Plot *plot) -{ - { - int i; - for(i=0;iplot == plot) - { - plotConfigs[i]->show(); - return; - } - } - } - - if(numPlotConfigs >= NUMPLOTCONFIGS) - { - // We have enough. We convert the last one to the requested one. - plotConfigs[NUMPLOTCONFIGS-1]->setPlot(plot); - plotConfigs[NUMPLOTCONFIGS-1]->show(); - return; - } - - plotConfigs[numPlotConfigs] = - new PlotConfig(this, plot, - plotConfigXY[0][numPlotConfigs] /* x */, - plotConfigXY[1][numPlotConfigs] /* y */); - plotConfigs[numPlotConfigs]->show(); - numPlotConfigs++; -} - -// Look for PlotConfig windows to remove, because a plot was just -// deleted. -void MainWindow::on_removedPlot(Graph *graph, Plot *plot) -{ - int i; - for(i=0;iplot == plot) - { - deletePlotConfig(plotConfigs[i]); - return; - } - } -} - -void MainWindow::deletePlotConfig(PlotConfig *plotConfig) -{ - int i; - for(i=0;ix; - plotConfigXY[1][numPlotConfigs-1] = plotConfigs[i]->y; - delete plotConfigs[i]; - break; - } - } - - if(i!=numPlotConfigs) // if we found and deleted it. - { - // Slide the remaining PlotConfigs over to the front of the - // plotConfigs[] array. - numPlotConfigs--; - int j; - for(j=i;jkeyval) - { - case GDK_d: - if(app->size() > 1) - { - deleteLater(); - return true; - } - break; - case GDK_q: - app->quit(); - return true; - break; - case GDK_o: - app->openDialog(); - return true; - break; - case GDK_n: - makeNewGraphWithGraphConfig(); - return true; - break; - case GDK_f: - app->createMainWindow(); - return true; - break; - case GDK_c: - app->copyCurrentMainWindow(); - return true; - break; - case GDK_i: - savePNGFile(); - return true; - break; - case GDK_m: - if(menuBar.is_visible()) - menuBar.hide(); - else - menuBar.show(); - return true; - break; - case GDK_b: - if(buttonBar.is_visible()) - buttonBar.hide(); - else - buttonBar.show(); - return true; - break; - case GDK_t: - if(graphsNotebook.get_show_tabs()) - graphsNotebook.set_show_tabs(false); - else - graphsNotebook.set_show_tabs(true); - return true; - break; - case GDK_s: - if(statusBar.is_visible()) - statusBar.hide(); - else - statusBar.show(); - return true; - break; - case GDK_g: - if(graphConfig && graphConfig->is_visible()) - graphConfig->hide(); - else - showGraphConfig(); - return true; - break; - case GDK_p: - if(plotLister && plotLister->is_visible()) - plotLister->hide(); - else - showPlotLister(); - return true; - break; - case GDK_a: - on_about(); - return true; - break; - case GDK_h: - on_help(); - return true; - break; - - default: - return false; - break; - } - return false; -} - - -// Widget Key Accelerators don't work all the time, so we get the key -// strokes the hard way. Also there is no way to use Widget Key -// Accelerators with Gtk::Window. -bool MainWindow::on_key_press_event(GdkEventKey* event) -{ - // Can add checks on GdkModifierType in event->state. - - switch(event->keyval) - { - case GDK_Escape: - if(app->size() > 1) - { - deleteLater(); - return true; - } - break; - default: - if(commonKeyPress(event)) - return true; - break; - } - - return Window::on_key_press_event(event); -} - - -GraphsNotebook::GraphsNotebook(MainWindow *mainWindow_in): - mainWindow(mainWindow_in) -{ - set_show_border(true); -} - -void GraphsNotebook::set_show_tabs(bool show_tabs) -{ - Notebook::set_show_tabs(show_tabs); - mainWindow->menuBar.checkGraphTabsState(show_tabs); - - // popup_enable() enables the popup menu: if the user clicks with - // the right mouse button on the bookmarks, a menu with all the - // pages will be popped up. Appears to not work!!! - // popup_enable(); -} - - -extern "C" -{ - struct CopyGraphNotebooks - { - GraphsNotebook *to, *from; - }; - - static gboolean copyGraphNotebooks(gpointer data) - { - gtk_idle_remove_by_data(data); - GraphsNotebook *to = ((struct CopyGraphNotebooks *) data)->to; - GraphsNotebook *from = ((struct CopyGraphNotebooks *) data)->from; - to->_copyLater(from); - free(data); - return ((gint) 0); - } -} - - -void GraphsNotebook::_copyLater(GraphsNotebook *graphsNotebook) -{ - int n = graphsNotebook->get_n_pages(); - int i; - for(i=0;i(graphsNotebook->get_nth_page(i)); - Graph *to = dynamic_cast(get_nth_page(i)); - to->copy(from); - } - int currentPageNum = graphsNotebook->get_current_page(); - set_current_page(currentPageNum); - mainWindow->currentGraph = dynamic_cast(get_nth_page(currentPageNum)); - mainWindow->currentGraph->queueRedraw(); -} - -// copy from graphNotebook to this. -void GraphsNotebook::copy(GraphsNotebook *graphsNotebook) -{ - int n = graphsNotebook->get_n_pages(); - int i; - for(i=0;imakeNewGraphTab(); - GraphTab *toLabel = dynamic_cast - (get_tab_label(*mainWindow->currentGraph)); - GraphTab *fromLabel = dynamic_cast - (graphsNotebook->get_tab_label(*(graphsNotebook->get_nth_page(i)))); - - if(toLabel && fromLabel) - toLabel->setText(fromLabel->label.get_text().c_str()); - } - - // Set up to do the graph plot coping later, after the Graphs are - // realized, so that the new plots can get the necessary widget - // info. - struct CopyGraphNotebooks *d = (struct CopyGraphNotebooks *) - malloc(sizeof(struct CopyGraphNotebooks)); - d->to= this; - d->from = graphsNotebook; - gtk_idle_add(copyGraphNotebooks, d); -} - -sigc::signal1 GraphsNotebook::signal_tabLabelChanged(void) -{ - return m_signal_tabLabelChanged; -} - diff -Nru quickplot-0.8.15/MainWindow.h quickplot-0.9.11/MainWindow.h --- quickplot-0.8.15/MainWindow.h 2009-03-08 20:13:59.000000000 +0000 +++ quickplot-0.9.11/MainWindow.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,122 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - - -class GraphsNotebook : public Notebook -{ -public: - - GraphsNotebook(MainWindow *mainWindow_in); - - // call this to copy the graphs from one notebook to another. - void copy(GraphsNotebook *graphNotebook); - // internal use only. Needs to be public foe gtk callback stuff. - void _copyLater(GraphsNotebook *graphNotebook); - - // this overrides Gtk::Notebook::set_show_tabs() because we need it - // to "signal" the View Menu in MainMenuBar.cpp, to add a runtime - // "show/hide tabs option. Is there a signal_show_tabs() or like - // method??? It's not listed. - void set_show_tabs(bool show_tabs = true); - - sigc::signal1 signal_tabLabelChanged(void); - sigc::signal1 m_signal_tabLabelChanged; - -private: - MainWindow *mainWindow; -}; - -class Source; -class PlotLister; -class PlotConfig; -class GraphConfig; -class Graph; -class StatusBar; -class Plot; - -// Class MainWindow: is managed by App. Use App::createMainWindow(), -// App::destroyMainWindow() and the globel currentMainWindow. Do not -// call delete mainWindow. That is called in App::destroyMainWindow(). -// Do not call 'new MainWindow', that is called in -// App::createMainWindow(). - - -class MainWindow: public Window -{ - public: - - MainWindow(bool makeGraph=true); - virtual ~MainWindow(void); - - void show(void); - - // Optional Graph Configuration Window. - GraphConfig *graphConfig; - Graph *currentGraph; - PlotLister *plotLister; - GraphsNotebook graphsNotebook; - - void savePNGFile(void); - - void showGraphConfig(void); - void showPlotLister(void); - void makePlotConfig(Plot *plot); - void deletePlotConfig(PlotConfig *plotConfig); - - // the number of MainWindows that have been created when this one - // was created, including this one. So the first one is 1. - int mainWindowNumber; - - - void deleteLater(void); - -protected: - - bool on_focus_in_event(GdkEventFocus* event); - - // looks at the files loaded and sets the title. - void setTitle(Source *); // slot - - bool on_expose_event(GdkEventExpose *e); - -private: - VBox mainVBox, topVBox; - -public: - - bool commonKeyPress(GdkEventKey* event); - - // create statusBar before menuBar - StatusBar statusBar; - MainMenuBar menuBar; - ButtonBar buttonBar; - - void on_help(void); // slot - void on_about(void); // slot - void on_license(void); // slot - - - void makeNewGraphTab(void); // slot - void removeGraphTab(Graph *graph); - - void makeNewGraphTabWithGraph(Graph *graph); - void makeNewGraphWithGraphConfig(void); - void on_notebookFlip(GtkNotebookPage* page, guint page_num); //slot - -private: - - FileSelection *savePNGDialog; - int graphTabAddCount; - - void on_removedPlot(Graph *graph, Plot *plot); - - int numPlotConfigs; - PlotConfig *plotConfigs[NUMPLOTCONFIGS]; - int plotConfigXY[2][NUMPLOTCONFIGS]; - - - // used to set the start up window geometry. - int startX, startY, startXSign, startYSign; - - bool on_key_press_event(GdkEventKey* event); -}; diff -Nru quickplot-0.8.15/Makefile.am quickplot-0.9.11/Makefile.am --- quickplot-0.8.15/Makefile.am 2009-03-08 21:30:47.000000000 +0000 +++ quickplot-0.9.11/Makefile.am 2011-12-30 06:13:30.000000000 +0000 @@ -1,172 +1,446 @@ +# Quickplot - an interactive 2D plotter +# +# Copyright (C) 1998-2011 Lance Arsenault + +# This file is part of Quickplot. +# +# Quickplot 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 3 of the License, +# or (at your option) any later version. +# +# Quickplot 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 Quickplot. If not, see . +# +#################################################################### -homepagefiles =\ - quickplot_icon.png\ - screenshot1.png\ - screenshot1_small.png\ - screenshot2.png\ - screenshot3.png\ - about.html\ - help.html\ - index.html\ - COPYING\ - ChangeLog\ - README\ - README.devel\ - TODO\ - quickplot.ebuild -html_DATA =\ - help.html\ - about.html\ - index.html\ - quickplot_icon.png\ - screenshot1_small.png\ - screenshot1.png\ - screenshot2.png\ - screenshot3.png\ - ChangeLog\ +EXTRA_DIST =\ + house.png\ + imgGrabCursor.png\ + imgGrabCursor.xpm\ + imgHoldCursor.png\ + imgHoldCursor.xpm\ + imgNewWindow.png\ + imgNewWindow.xpm\ + imgDeleteWindow.png\ + imgDeleteWindow.xpm\ + imgCopyWindow.png\ + imgCopyWindow.xpm\ + imgSaveImage.png\ + imgSaveImage.xpm\ + quickplot.png\ + quickplot.xpm\ + sample_plot.png\ + screenshot_small.png\ favicon.ico\ - COPYING - -bin_PROGRAMS = quickplot - -# after building: quickplot_SOURCES = `echo *.cpp *.h' -quickplot_SOURCES =\ - App.cpp App_parseArgs.cpp ButtonBar.cpp ColorGen.cpp Field.cpp FieldReader.cpp File.cpp FileList.cpp FileReader.cpp File_readASCIIFile.cpp File_readSndDouble.cpp File_readSndFile.cpp File_readSndFloat.cpp File_readSndInt.cpp File_readSndShort.cpp Globel.cpp Graph.cpp GraphConfig.cpp Graph_drawAutoGrid.cpp LinearField.cpp MainMenuBar.cpp MainWindow.cpp Plot.cpp PlotConfig.cpp PlotList.cpp PlotLister.cpp PlotSelector.cpp Plot_cullDrawLine.cpp Source.cpp StatusBar.cpp ValueSlider.cpp about_html.cpp errorStr.cpp getOpt.cpp help_html.cpp launchBrowser.cpp main.cpp parseGeometry.cpp usage.cpp App.h ArrayField.h ButtonBar.h ColorGen.h Field.h FieldReader.h File.h FileList.h FileReader.h Globel.h Graph.h GraphConfig.h LinearField.h ListField.h LogField.h MainMenuBar.h MainWindow.h Plot.h PlotConfig.h PlotList.h PlotLister.h PlotSelector.h Source.h StatusBar.h ValueSlider.h errorStr.h mingw_config.h value_t.h config.h - -quickplot_SHORTNAME = q + background_ft.png\ + background_h1.png\ + background_h2.png\ + style.css\ + footer.htm.in\ + about.htm.in\ + help_head.htm.in\ + help_tail.htm.in\ + index.htm.in\ + about.txt\ + help.txt\ + bootstrap\ + quickplot.ebuild\ + quickplot.1.head.in\ + quickplot.1.tail.in\ + Repo_clean\ + release_date.sh\ + repo_version.sh\ + ax_lib_readline.m4 BUILT_SOURCES =\ - quickplot_icon.xpm\ - imgAbout_browser.xpm\ - imgNewFrame.xpm\ - imgCloseFrame.xpm\ - imgCopyFrame.xpm\ + imgGrabCursor.xpm\ + imgHoldCursor.xpm\ + imgNewWindow.xpm\ + imgDeleteWindow.xpm\ + imgCopyWindow.xpm\ imgSaveImage.xpm\ - File_readSndInt.cpp\ - File_readSndFloat.cpp\ - File_readSndDouble.cpp\ - help_html.cpp\ - about_html.cpp + quickplot.xpm\ + about.txt\ + help.txt\ + paths.h\ + parse_args.h\ + app_op_declare.h\ + app_op_init.h +man_MANS = quickplot.1 -quickplot_CXXFLAGS = -Wall $(GTKMM_CXXFLAGS) $(SNDFILE_CFLAGS) -DHTMLDIR=\"$(htmldir)\" +# The .xpm files are built but come in a tarball +# .xpm files are not checked into the repository +html_DATA =\ + about.html\ + help.html\ + house.png\ + index.html\ + quickplot.png\ + sample_plot.png\ + screenshot_small.png\ + background_ft.png\ + background_h1.png\ + background_h2.png\ + favicon.ico\ + about.txt\ + help.txt -quickplot_LDFLAGS = -Wall $(GTKMM_LIBS) $(SNDFILE_LIBS) -# -lefence -# require automake 1.7 -AUTOMAKE_OPTIONS = 1.7 +DISTCLEANFILES =\ + about.html\ + app_op_declare.h\ + app_op_init.h\ + help.html\ + index.html\ + parse_args.h\ + paths.h\ + quickplot.1 + + +if HAVE_LOCAL_SCREENSHOTS +html_DATA +=\ + screenshots.html + +DISTCLEANFILES +=\ + screenshots.html +endif + + +noinst_PROGRAMS = mk_options +mk_options_SOURCES = mk_options.c + + +lib_LTLIBRARIES = libquickplot.la + +libquickplot_la_SOURCES =\ + app_op_declare.h\ + app_op_init.h\ + callbacks.c\ + callbacks.h\ + channel.c\ + channel_double.c\ + channel_double.h\ + channel.h\ + color_gen.c\ + color_gen.h\ + config.h\ + debug.h\ + get_opt.c\ + get_opt.h\ + graph.c\ + graph_detail.c\ + graph_draw.c\ + graph_grid.c\ + imgCopyWindow.xpm\ + imgDeleteWindow.xpm\ + imgGrabCursor.xpm\ + imgHoldCursor.xpm\ + imgNewWindow.xpm\ + imgSaveImage.xpm\ + launch_browser.c\ + list.c\ + list.h\ + parse_1st_pass_funcs.h\ + parse_2nd_pass_funcs.h\ + parse_args.h\ + parse_args_utils.h\ + parse_argument_options.c\ + paths.h\ + plot.c\ + plot.h\ + process_gtk_options.c\ + qp.c\ + qp.h\ + quickplot.h\ + quickplot.xpm\ + shell.c\ + shell.h\ + source.c\ + source_double.c\ + shell_common.h\ + spew.c\ + spew.h\ + term_color.c\ + term_color.h\ + win.c\ + zoom.h + +libquickplot_la_SHORTNAME = lib +libquickplot_la_CFLAGS = $(gtk_3_CFLAGS) $(sndfile_CFLAGS) +libquickplot_la_LDFLAGS = -version-info $(LIB_VERSION) +# For making libquickplot.so executable if we are using GCC +# and glibc which we tested in configure by compiling with the +# gnu/lib-names.h file. +if HAVE_GNU_LIB_NAMES_H +libquickplot_la_SOURCES += exec_lib.c +libquickplot_la_LDFLAGS += -shared -Wl,-e -Wl,qp_exec_lib +libquickplot_la_CFLAGS += -fPIC +else +EXTRA_DIST += exec_lib.c +endif + +# We look at a sndfile symbol when libquickplot runs +libquickplot_la_LIBADD = $(sndfile_LIBS) + +if QP_DEBUG +libquickplot_la_SOURCES += debug_spew.c +else +EXTRA_DIST += debug_spew.c +endif -# Quickplot Icon -icondir = $(datadir)/pixmaps -icon_DATA = quickplot_icon.png +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = quickplot.pc -# We include everything that you could need for development. We hate -# it when packages do not include all the needed files for -# development. +quickplotinclude_HEADERS = quickplot.h +quickplotincludedir = $(includedir) -EXTRA_DIST =\ - bootstrap\ - svnclean\ - html2CString\ - install_portage\ - TODO\ - README.devel\ - quickplot.ebuild\ - help.html.in\ - about.html.in\ - index.html.in\ - quickplot_icon.xpm\ - imgAbout_browser.xpm\ - imgNewFrame.xpm\ - imgCloseFrame.xpm\ - imgCopyFrame.xpm\ - imgSaveImage.xpm\ - imgAbout_browser.png\ - imgNewFrame.png\ - imgCloseFrame.png\ - imgCopyFrame.png\ - imgSaveImage.png\ - quickplot.dev\ - mingw.mak\ - mingw_config.h\ - $(html_DATA)\ - VERSION\ - VERSION.in + +bin_PROGRAMS = quickplot quickplot_shell -SUFFIXES = .png .xpm .html .html.in _html.cpp +quickplot_SOURCES =\ + config.h\ + qp_main.c\ + quickplot.h + +quickplot_SHORTNAME = qp +quickplot_CFLAGS = $(gtk_3_CFLAGS) $(sndfile_CFLAGS) +quickplot_LDADD = libquickplot.la $(gtk_3_LIBS) $(sndfile_LIBS) +#if USE_READLINE +quickplot_LDADD += $(readline_LIBS) +#endif + + +quickplot_shell_SOURCES =\ + list.c\ + debug.h\ + list.h\ + qp_shell.c\ + shell_common.h\ + spew.c\ + spew.h\ + term_color.c\ + term_color.h + +if QP_DEBUG +quickplot_shell_SOURCES += debug_spew.c +endif +quickplot_shell_SHORTNAME = sh +#if USE_READLINE +quickplot_shell_LDADD = $(readline_LIBS) +#endif + + + +gzfile = $(distdir).tar.gz +bz2file = $(distdir).tar.bz2 +xzfile = $(distdir).tar.xz + + +SUFFIXES = .html .bz2 .xz .gz \ +.gz.md5 .gz.sha1 .gz.sha256 .gz.sha512 \ +.bz2.md5 .bz2.sha1 .bz2.sha256 .bz2.sha512 \ +.xz.md5 .xz.sha1 .xz.sha256 .xz.sha512 + +if USE_CONVERT +SUFFIXES += .png .xpm +endif + +if USE_LYNX +SUFFIXES += .txt +endif + +ABOUT_HTML_DEP = about.htm +if IS_SVN_CO +ABOUT_HTML_DEP += .svn/all-wcprops +endif + +if HAVE_LOCAL_SCREENSHOTS +SCREENSHOT_URL = screenshots.html +else +SCREENSHOT_URL = @PACKAGE_URL@screenshots.html +endif + +.PHONY: hash md5 sha1 sha256 sha512 + +# TODO: There should be a better way to find installed +# from the running quickplot program. +paths.h: + echo "/* This file was generated using $(MAKE) */" > $@ + echo >> $@ + echo "#define HTMLDIR \"$(htmldir)\"" >> $@ + echo "#define DOCDIR \"$(docdir)\"" >> $@ + +parse_args.h: mk_options + ./mk_options -a > $@ +app_op_declare.h: mk_options + ./mk_options -I > $@ +app_op_init.h: mk_options + ./mk_options -i > $@ + +quickplot.1: quickplot.1.head quickplot.1.tail mk_options + echo ".\\\" Do not edit this file" > $@ + echo ".\\\" This file was generated using $(MAKE)" >> $@ + cat quickplot.1.head >> $@ + ./mk_options -m >> $@ + cat quickplot.1.tail >> $@ + echo ".\\\" Do not edit this file" >> $@ + echo ".\\\" This file was generated using $(MAKE)" >> $@ + + +index.html: index.htm + sed $<\ + -e "s!@SCREENSHOT_URL@!$(SCREENSHOT_URL)!g"\ + -e 's!@Top@!\ Top\ !'\ + -e 's!@About@!\ About\ !'\ + -e 's!@Help@!\ Help\ !'\ + > $@ + + +# We cannot have configure replace @release_date@ and @repo_version@ +# because we need to generate about.html for two cases, one for +# dist and one for installing, and the values for +# @release_date@ and @repo_version@ differ for those two cases +about.html: $(ABOUT_HTML_DEP) + repo_version="`${top_srcdir}/repo_version.sh ${top_srcdir}/REPO_VERSION`";\ + rel_date="`${top_srcdir}/release_date.sh ${top_srcdir}/RELEASE_DATE`"; sed $<\ + -e "s/@release_date@/$$rel_date/g"\ + -e "s/@repo_version@/$$repo_version/g"\ + -e 's!@Top@!\ Top\ !'\ + -e 's!@About@!\ About\ !'\ + -e 's!@Help@!\ Help\ !'\ + > $@ + +help.html: help_head.htm mk_options help_tail.htm + cat help_head.htm > $@ + ./mk_options -t >> $@ + cat help_tail.htm | sed\ + -e 's!@Top@!\ Top\ !'\ + -e 's!@About@!\ About\ !'\ + -e 's!@Help@!\ Help\ !'\ + >> $@ + + +if HAVE_LOCAL_SCREENSHOTS + +install-exec-hook: + mkdir -p $(htmldir) + cp ScreenShot_* _ScreenShot_* $(htmldir) + +thumbs.htm: mk_thumbs.htm.bash + ./mk_thumbs.htm.bash > $@ + +screenshots.html: screenshots.html.in style.css thumbs.htm footer.htm + ./mk_screenshots.html.bash < $< > $@ + +screenshots: + rm -f screenshots.html thumbs.htm + $(MAKE) screenshots.html + +endif + +help_head.htm: style.css +help_tail.htm: footer.htm +index.htm: style.css footer.htm +about.htm: style.css footer.htm + +if USE_CONVERT .png.xpm: convert $< $@ mv $@ $@.in sed -e 's/static.*\schar/static const char/g' $@.in > $@ rm $@.in +endif -.html_html.cpp: - cat $< | ./html2CString $@ - - -.html.in.html: - @echo "making $@ from $<" - @echo "" > $@ - @echo "" >> $@ - @echo >> $@ - cat $< | sed \ - -e "s/%PACKAGE%/$(PACKAGE)/g" \ - -e "s/%TARNAME%/$(TARNAME)/g" \ - -e "s^%HOMEPAGE%^$(HOMEPAGE)^g" \ - -e "s/%VERSION%/$(VERSION)/g" \ - -e "s^%RELEASE_DATE%^$(RELEASE_DATE)^g" \ - >> $@ - @echo "

    " >> $@ - @if [ $@ != index.html ]; then\ - echo "Top
    " >> $@ ;\ - fi - @echo "Quickplot" >> $@ - @echo "   version ${VERSION}    " >> $@ - @echo "release date: $(RELEASE_DATE)" >> $@ - @echo "
    " >> $@ - @echo "" >> $@ - @echo "" >> $@ - - -.PHONY: homepage +if USE_LYNX +.html.txt: + echo > $@ + dir=`pwd` && lynx -dump $< | \ +sed -e "s!//localhost$$dir/!!g" >> $@ +endif + + +# Add the repository revision number to the dist. +# Fix any dist files that have RELEASE_DATE in them, like help.txt +# Remove generated dist files that auto-tools is stupid about. +# Remove the out-of-date hash files. +dist-hook: + if test -f RELEASE_DATE ; then mv RELEASE_DATE RELEASE_DATE.save ; fi + if test -f REPO_VERSION ; then mv REPO_VERSION REPO_VERSION.save ; fi + ${top_srcdir}/repo_version.sh ${top_srcdir}/REPO_VERSION > REPO_VERSION.tmp + mv REPO_VERSION.tmp REPO_VERSION + date -u +"%d %b %G %H:%M:%S UTC" > RELEASE_DATE + echo $(VERSION) > last_release + cat RELEASE_DATE REPO_VERSION >> last_release +if USE_LYNX + rm -f about.html about.htm about.txt + $(MAKE) about.txt + mv REPO_VERSION RELEASE_DATE about.txt $(distdir) + rm -f about.html about.htm + $(MAKE) about.txt +else + mv REPO_VERSION RELEASE_DATE $(distdir) +endif + if test -f REPO_VERSION.save ; then mv REPO_VERSION.save REPO_VERSION ; fi + if test -f RELEASE_DATE.save ; then mv RELEASE_DATE.save RELEASE_DATE ; fi + cd $(distdir) && rm -f $(DISTCLEANFILES) config.h + rm -f $(gzfile).md5 $(gzfile).sha* $(bz2file).md5 $(bz2file).sha* $(xzfile).md5 $(xzfile).sha* + + +hash: md5 sha1 sha256 sha512 +md5: $(gzfile).md5 $(bz2file).md5 $(xzfile).md5 +sha1: $(gzfile).sha1 $(bz2file).sha1 $(xzfile).sha1 +sha256: $(gzfile).sha256 $(bz2file).sha256 $(xzfile).sha256 +sha512: $(gzfile).sha512 $(bz2file).sha512 $(xzfile).sha512 + +.gz.gz.md5: + md5sum $< > $@ +.gz.gz.sha1: + sha1sum $< > $@ +.gz.gz.sha256: + sha256sum $< > $@ +.gz.gz.sha512: + sha512sum $< > $@ + +.bz2.bz2.md5: + md5sum $< > $@ +.bz2.bz2.sha1: + sha1sum $< > $@ +.bz2.bz2.sha256: + sha256sum $< > $@ +.bz2.bz2.sha512: + sha512sum $< > $@ + +.xz.xz.md5: + md5sum $< > $@ +.xz.xz.sha1: + sha1sum $< > $@ +.xz.xz.sha256: + sha256sum $< > $@ +.xz.xz.sha512: + sha512sum $< > $@ +$(gzfile): + $(MAKE) dist-gzip +$(bz2file): + $(MAKE) dist-bzip2 -File_readSndInt.cpp: File_readSndShort.cpp - rm -f $@ - echo "// $@ Generated from $(MAKE) and $<" >> $@ - echo "#define TYPE_INT" >> $@ - cat $< >> $@ - -File_readSndFloat.cpp: File_readSndShort.cpp - rm -f $@ - echo "// $@ Generated from $(MAKE) and $<" >> $@ - echo "#define TYPE_FLOAT" >> $@ - cat $< >> $@ - -File_readSndDouble.cpp: File_readSndShort.cpp - rm -f $@ - echo "// $@ Generated from $(MAKE) and $<" >> $@ - echo "#define TYPE_DOUBLE" >> $@ - cat $< >> $@ - -homepage: $(homepagefiles) - tar -cjf quickplot_homepage-${VERSION}.tar.bz2 $(homepagefiles) - -quickplot-${VERSION}.tar.bz2.md5 quickplot-${VERSION}.tar.gz.md5 md5: \ - quickplot-${VERSION}.tar.bz2 quickplot-${VERSION}.tar.gz - md5sum quickplot-${VERSION}.tar.bz2 > quickplot-${VERSION}.tar.bz2.md5 - md5sum quickplot-${VERSION}.tar.gz > quickplot-${VERSION}.tar.gz.md5 +$(xzfile): + $(MAKE) dist-xz -mingw_config.h: config.h - cp $^ $@ diff -Nru quickplot-0.8.15/Makefile.in quickplot-0.9.11/Makefile.in --- quickplot-0.8.15/Makefile.in 2009-03-09 01:18:51.000000000 +0000 +++ quickplot-0.9.11/Makefile.in 2011-12-30 06:16:55.000000000 +0000 @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.10.1 from Makefile.am. +# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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. @@ -14,11 +15,35 @@ @SET_MAKE@ +# Quickplot - an interactive 2D plotter +# +# Copyright (C) 1998-2011 Lance Arsenault + +# This file is part of Quickplot. +# +# Quickplot 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 3 of the License, +# or (at your option) any later version. +# +# Quickplot 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 Quickplot. If not, see . +# +#################################################################### + + + VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c @@ -31,85 +56,163 @@ NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : -bin_PROGRAMS = quickplot$(EXEEXT) +build_triplet = @build@ +host_triplet = @host@ +@HAVE_LOCAL_SCREENSHOTS_TRUE@am__append_1 = \ +@HAVE_LOCAL_SCREENSHOTS_TRUE@ screenshots.html + +@HAVE_LOCAL_SCREENSHOTS_TRUE@am__append_2 = \ +@HAVE_LOCAL_SCREENSHOTS_TRUE@ screenshots.html + +noinst_PROGRAMS = mk_options$(EXEEXT) +# For making libquickplot.so executable if we are using GCC +# and glibc which we tested in configure by compiling with the +# gnu/lib-names.h file. +@HAVE_GNU_LIB_NAMES_H_TRUE@am__append_3 = exec_lib.c +@HAVE_GNU_LIB_NAMES_H_TRUE@am__append_4 = -shared -Wl,-e -Wl,qp_exec_lib +@HAVE_GNU_LIB_NAMES_H_TRUE@am__append_5 = -fPIC +@HAVE_GNU_LIB_NAMES_H_FALSE@am__append_6 = exec_lib.c +@QP_DEBUG_TRUE@am__append_7 = debug_spew.c +@QP_DEBUG_FALSE@am__append_8 = debug_spew.c +bin_PROGRAMS = quickplot$(EXEEXT) quickplot_shell$(EXEEXT) +@QP_DEBUG_TRUE@am__append_9 = debug_spew.c +@USE_CONVERT_TRUE@am__append_10 = .png .xpm +@USE_LYNX_TRUE@am__append_11 = .txt +@IS_SVN_CO_TRUE@am__append_12 = .svn/all-wcprops subdir = . -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(srcdir)/VERSION.in \ - $(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \ - ChangeLog INSTALL NEWS TODO depcomp install-sh ltmain.sh \ - missing +DIST_COMMON = README $(am__configure_deps) $(quickplotinclude_HEADERS) \ + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/about.htm.in $(srcdir)/config.h.in \ + $(srcdir)/footer.htm.in $(srcdir)/help_head.htm.in \ + $(srcdir)/help_tail.htm.in $(srcdir)/index.htm.in \ + $(srcdir)/quickplot.1.head.in $(srcdir)/quickplot.1.tail.in \ + $(srcdir)/quickplot.pc.in $(top_srcdir)/configure AUTHORS \ + COPYING ChangeLog INSTALL NEWS TODO compile config.guess \ + config.sub depcomp install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/ax_lib_readline.m4 \ + $(top_srcdir)/configure.ac 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 = VERSION -am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(htmldir)" \ - "$(DESTDIR)$(icondir)" -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) -PROGRAMS = $(bin_PROGRAMS) -am_quickplot_OBJECTS = q-App.$(OBJEXT) q-App_parseArgs.$(OBJEXT) \ - q-ButtonBar.$(OBJEXT) q-ColorGen.$(OBJEXT) q-Field.$(OBJEXT) \ - q-FieldReader.$(OBJEXT) q-File.$(OBJEXT) q-FileList.$(OBJEXT) \ - q-FileReader.$(OBJEXT) q-File_readASCIIFile.$(OBJEXT) \ - q-File_readSndDouble.$(OBJEXT) q-File_readSndFile.$(OBJEXT) \ - q-File_readSndFloat.$(OBJEXT) q-File_readSndInt.$(OBJEXT) \ - q-File_readSndShort.$(OBJEXT) q-Globel.$(OBJEXT) \ - q-Graph.$(OBJEXT) q-GraphConfig.$(OBJEXT) \ - q-Graph_drawAutoGrid.$(OBJEXT) q-LinearField.$(OBJEXT) \ - q-MainMenuBar.$(OBJEXT) q-MainWindow.$(OBJEXT) \ - q-Plot.$(OBJEXT) q-PlotConfig.$(OBJEXT) q-PlotList.$(OBJEXT) \ - q-PlotLister.$(OBJEXT) q-PlotSelector.$(OBJEXT) \ - q-Plot_cullDrawLine.$(OBJEXT) q-Source.$(OBJEXT) \ - q-StatusBar.$(OBJEXT) q-ValueSlider.$(OBJEXT) \ - q-about_html.$(OBJEXT) q-errorStr.$(OBJEXT) q-getOpt.$(OBJEXT) \ - q-help_html.$(OBJEXT) q-launchBrowser.$(OBJEXT) \ - q-main.$(OBJEXT) q-parseGeometry.$(OBJEXT) q-usage.$(OBJEXT) +CONFIG_CLEAN_FILES = quickplot.pc footer.htm about.htm help_head.htm \ + help_tail.htm index.htm quickplot.1.head quickplot.1.tail +CONFIG_CLEAN_VPATH_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 = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \ + "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(htmldir)" \ + "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(quickplotincludedir)" +LTLIBRARIES = $(lib_LTLIBRARIES) +am__DEPENDENCIES_1 = +libquickplot_la_DEPENDENCIES = $(am__DEPENDENCIES_1) +am__libquickplot_la_SOURCES_DIST = app_op_declare.h app_op_init.h \ + callbacks.c callbacks.h channel.c channel_double.c \ + channel_double.h channel.h color_gen.c color_gen.h config.h \ + debug.h get_opt.c get_opt.h graph.c graph_detail.c \ + graph_draw.c graph_grid.c imgCopyWindow.xpm \ + imgDeleteWindow.xpm imgGrabCursor.xpm imgHoldCursor.xpm \ + imgNewWindow.xpm imgSaveImage.xpm launch_browser.c list.c \ + list.h parse_1st_pass_funcs.h parse_2nd_pass_funcs.h \ + parse_args.h parse_args_utils.h parse_argument_options.c \ + paths.h plot.c plot.h process_gtk_options.c qp.c qp.h \ + quickplot.h quickplot.xpm shell.c shell.h source.c \ + source_double.c shell_common.h spew.c spew.h term_color.c \ + term_color.h win.c zoom.h exec_lib.c debug_spew.c +@HAVE_GNU_LIB_NAMES_H_TRUE@am__objects_1 = lib-exec_lib.lo +@QP_DEBUG_TRUE@am__objects_2 = lib-debug_spew.lo +am_libquickplot_la_OBJECTS = lib-callbacks.lo lib-channel.lo \ + lib-channel_double.lo lib-color_gen.lo lib-get_opt.lo \ + lib-graph.lo lib-graph_detail.lo lib-graph_draw.lo \ + lib-graph_grid.lo lib-launch_browser.lo lib-list.lo \ + lib-parse_argument_options.lo lib-plot.lo \ + lib-process_gtk_options.lo lib-qp.lo lib-shell.lo \ + lib-source.lo lib-source_double.lo lib-spew.lo \ + lib-term_color.lo lib-win.lo $(am__objects_1) $(am__objects_2) +libquickplot_la_OBJECTS = $(am_libquickplot_la_OBJECTS) +libquickplot_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libquickplot_la_CFLAGS) \ + $(CFLAGS) $(libquickplot_la_LDFLAGS) $(LDFLAGS) -o $@ +PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) +am_mk_options_OBJECTS = mk_options.$(OBJEXT) +mk_options_OBJECTS = $(am_mk_options_OBJECTS) +mk_options_LDADD = $(LDADD) +am_quickplot_OBJECTS = qp-qp_main.$(OBJEXT) quickplot_OBJECTS = $(am_quickplot_OBJECTS) -quickplot_LDADD = $(LDADD) -quickplot_LINK = $(CXXLD) $(quickplot_CXXFLAGS) $(CXXFLAGS) \ - $(quickplot_LDFLAGS) $(LDFLAGS) -o $@ +quickplot_DEPENDENCIES = libquickplot.la $(am__DEPENDENCIES_1) \ + $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) +quickplot_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(quickplot_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am__quickplot_shell_SOURCES_DIST = list.c debug.h list.h qp_shell.c \ + shell_common.h spew.c spew.h term_color.c term_color.h \ + debug_spew.c +@QP_DEBUG_TRUE@am__objects_3 = debug_spew.$(OBJEXT) +am_quickplot_shell_OBJECTS = list.$(OBJEXT) qp_shell.$(OBJEXT) \ + spew.$(OBJEXT) term_color.$(OBJEXT) $(am__objects_3) +quickplot_shell_OBJECTS = $(am_quickplot_shell_OBJECTS) +quickplot_shell_DEPENDENCIES = $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLD = $(CXX) -CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ - -o $@ +am__mv = mv -f 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 = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(quickplot_SOURCES) -DIST_SOURCES = $(quickplot_SOURCES) -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|^.*/||'`; -htmlDATA_INSTALL = $(INSTALL_DATA) -iconDATA_INSTALL = $(INSTALL_DATA) -DATA = $(html_DATA) $(icon_DATA) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(libquickplot_la_SOURCES) $(mk_options_SOURCES) \ + $(quickplot_SOURCES) $(quickplot_shell_SOURCES) +DIST_SOURCES = $(am__libquickplot_la_SOURCES_DIST) \ + $(mk_options_SOURCES) $(quickplot_SOURCES) \ + $(am__quickplot_shell_SOURCES_DIST) +man1dir = $(mandir)/man1 +NROFF = nroff +MANS = $(man_MANS) +DATA = $(html_DATA) $(pkgconfig_DATA) +HEADERS = $(quickplotinclude_HEADERS) ETAGS = etags CTAGS = ctags 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); }; } -DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 $(distdir).tar.xz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ +AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -117,70 +220,101 @@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ -CONFIGURE_DATE = @CONFIGURE_DATE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ +DEFAULT_GRID_FONT = @DEFAULT_GRID_FONT@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ +EGREP = @EGREP@ EXEEXT = @EXEEXT@ -GTKMM_CXXFLAGS = @GTKMM_CXXFLAGS@ -GTKMM_LIBS = @GTKMM_LIBS@ -HOMEPAGE = @HOMEPAGE@ +FGREP = @FGREP@ +GREP = @GREP@ +HAVE_CONVERT = @HAVE_CONVERT@ +HAVE_LYNX = @HAVE_LYNX@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIB_AGE = @LIB_AGE@ +LIB_CURRENT = @LIB_CURRENT@ +LIB_REVISION = @LIB_REVISION@ +LIB_VERSION = @LIB_VERSION@ +LIPO = @LIPO@ +LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +NUMBER_OF_PLOTS = @NUMBER_OF_PLOTS@ +OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ -PKGCONFIG = @PKGCONFIG@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +RANLIB = @RANLIB@ RELEASE_DATE = @RELEASE_DATE@ +SCALE_FACTOR = @SCALE_FACTOR@ +SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ -SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ -SNDFILE_LIBS = @SNDFILE_LIBS@ STRIP = @STRIP@ -TARNAME = @TARNAME@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 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@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ +gtk_3_CFLAGS = @gtk_3_CFLAGS@ +gtk_3_LIBS = @gtk_3_LIBS@ +host = @host@ host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ @@ -196,125 +330,127 @@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ +readline_LIBS = @readline_LIBS@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ +sndfile_CFLAGS = @sndfile_CFLAGS@ +sndfile_LIBS = @sndfile_LIBS@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -homepagefiles = \ - quickplot_icon.png\ - screenshot1.png\ - screenshot1_small.png\ - screenshot2.png\ - screenshot3.png\ - about.html\ - help.html\ - index.html\ - COPYING\ - ChangeLog\ - README\ - README.devel\ - TODO\ - quickplot.ebuild - -html_DATA = \ - help.html\ - about.html\ - index.html\ - quickplot_icon.png\ - screenshot1_small.png\ - screenshot1.png\ - screenshot2.png\ - screenshot3.png\ - ChangeLog\ - favicon.ico\ - COPYING - - -# after building: quickplot_SOURCES = `echo *.cpp *.h' -quickplot_SOURCES = \ - App.cpp App_parseArgs.cpp ButtonBar.cpp ColorGen.cpp Field.cpp FieldReader.cpp File.cpp FileList.cpp FileReader.cpp File_readASCIIFile.cpp File_readSndDouble.cpp File_readSndFile.cpp File_readSndFloat.cpp File_readSndInt.cpp File_readSndShort.cpp Globel.cpp Graph.cpp GraphConfig.cpp Graph_drawAutoGrid.cpp LinearField.cpp MainMenuBar.cpp MainWindow.cpp Plot.cpp PlotConfig.cpp PlotList.cpp PlotLister.cpp PlotSelector.cpp Plot_cullDrawLine.cpp Source.cpp StatusBar.cpp ValueSlider.cpp about_html.cpp errorStr.cpp getOpt.cpp help_html.cpp launchBrowser.cpp main.cpp parseGeometry.cpp usage.cpp App.h ArrayField.h ButtonBar.h ColorGen.h Field.h FieldReader.h File.h FileList.h FileReader.h Globel.h Graph.h GraphConfig.h LinearField.h ListField.h LogField.h MainMenuBar.h MainWindow.h Plot.h PlotConfig.h PlotList.h PlotLister.h PlotSelector.h Source.h StatusBar.h ValueSlider.h errorStr.h mingw_config.h value_t.h config.h - -quickplot_SHORTNAME = q +EXTRA_DIST = house.png imgGrabCursor.png imgGrabCursor.xpm \ + imgHoldCursor.png imgHoldCursor.xpm imgNewWindow.png \ + imgNewWindow.xpm imgDeleteWindow.png imgDeleteWindow.xpm \ + imgCopyWindow.png imgCopyWindow.xpm imgSaveImage.png \ + imgSaveImage.xpm quickplot.png quickplot.xpm sample_plot.png \ + screenshot_small.png favicon.ico background_ft.png \ + background_h1.png background_h2.png style.css footer.htm.in \ + about.htm.in help_head.htm.in help_tail.htm.in index.htm.in \ + about.txt help.txt bootstrap quickplot.ebuild \ + quickplot.1.head.in quickplot.1.tail.in Repo_clean \ + release_date.sh repo_version.sh ax_lib_readline.m4 \ + $(am__append_6) $(am__append_8) BUILT_SOURCES = \ - quickplot_icon.xpm\ - imgAbout_browser.xpm\ - imgNewFrame.xpm\ - imgCloseFrame.xpm\ - imgCopyFrame.xpm\ - imgSaveImage.xpm\ - File_readSndInt.cpp\ - File_readSndFloat.cpp\ - File_readSndDouble.cpp\ - help_html.cpp\ - about_html.cpp - -quickplot_CXXFLAGS = -Wall $(GTKMM_CXXFLAGS) $(SNDFILE_CFLAGS) -DHTMLDIR=\"$(htmldir)\" -quickplot_LDFLAGS = -Wall $(GTKMM_LIBS) $(SNDFILE_LIBS) -# -lefence - -# require automake 1.7 -AUTOMAKE_OPTIONS = 1.7 - -# Quickplot Icon -icondir = $(datadir)/pixmaps -icon_DATA = quickplot_icon.png - -# We include everything that you could need for development. We hate -# it when packages do not include all the needed files for -# development. -EXTRA_DIST = \ - bootstrap\ - svnclean\ - html2CString\ - install_portage\ - TODO\ - README.devel\ - quickplot.ebuild\ - help.html.in\ - about.html.in\ - index.html.in\ - quickplot_icon.xpm\ - imgAbout_browser.xpm\ - imgNewFrame.xpm\ - imgCloseFrame.xpm\ - imgCopyFrame.xpm\ + imgGrabCursor.xpm\ + imgHoldCursor.xpm\ + imgNewWindow.xpm\ + imgDeleteWindow.xpm\ + imgCopyWindow.xpm\ imgSaveImage.xpm\ - imgAbout_browser.png\ - imgNewFrame.png\ - imgCloseFrame.png\ - imgCopyFrame.png\ - imgSaveImage.png\ - quickplot.dev\ - mingw.mak\ - mingw_config.h\ - $(html_DATA)\ - VERSION\ - VERSION.in - -SUFFIXES = .png .xpm .html .html.in _html.cpp + quickplot.xpm\ + about.txt\ + help.txt\ + paths.h\ + parse_args.h\ + app_op_declare.h\ + app_op_init.h + +man_MANS = quickplot.1 + +# The .xpm files are built but come in a tarball +# .xpm files are not checked into the repository +html_DATA = about.html help.html house.png index.html quickplot.png \ + sample_plot.png screenshot_small.png background_ft.png \ + background_h1.png background_h2.png favicon.ico about.txt \ + help.txt $(am__append_1) +DISTCLEANFILES = about.html app_op_declare.h app_op_init.h help.html \ + index.html parse_args.h paths.h quickplot.1 $(am__append_2) +mk_options_SOURCES = mk_options.c +lib_LTLIBRARIES = libquickplot.la +libquickplot_la_SOURCES = app_op_declare.h app_op_init.h callbacks.c \ + callbacks.h channel.c channel_double.c channel_double.h \ + channel.h color_gen.c color_gen.h config.h debug.h get_opt.c \ + get_opt.h graph.c graph_detail.c graph_draw.c graph_grid.c \ + imgCopyWindow.xpm imgDeleteWindow.xpm imgGrabCursor.xpm \ + imgHoldCursor.xpm imgNewWindow.xpm imgSaveImage.xpm \ + launch_browser.c list.c list.h parse_1st_pass_funcs.h \ + parse_2nd_pass_funcs.h parse_args.h parse_args_utils.h \ + parse_argument_options.c paths.h plot.c plot.h \ + process_gtk_options.c qp.c qp.h quickplot.h quickplot.xpm \ + shell.c shell.h source.c source_double.c shell_common.h spew.c \ + spew.h term_color.c term_color.h win.c zoom.h $(am__append_3) \ + $(am__append_7) +libquickplot_la_SHORTNAME = lib +libquickplot_la_CFLAGS = $(gtk_3_CFLAGS) $(sndfile_CFLAGS) \ + $(am__append_5) +libquickplot_la_LDFLAGS = -version-info $(LIB_VERSION) $(am__append_4) + +# We look at a sndfile symbol when libquickplot runs +libquickplot_la_LIBADD = $(sndfile_LIBS) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = quickplot.pc +quickplotinclude_HEADERS = quickplot.h +quickplotincludedir = $(includedir) +quickplot_SOURCES = \ + config.h\ + qp_main.c\ + quickplot.h + +quickplot_SHORTNAME = qp +quickplot_CFLAGS = $(gtk_3_CFLAGS) $(sndfile_CFLAGS) +#if USE_READLINE +quickplot_LDADD = libquickplot.la $(gtk_3_LIBS) $(sndfile_LIBS) \ + $(readline_LIBS) +#endif +quickplot_shell_SOURCES = list.c debug.h list.h qp_shell.c \ + shell_common.h spew.c spew.h term_color.c term_color.h \ + $(am__append_9) +quickplot_shell_SHORTNAME = sh +#if USE_READLINE +quickplot_shell_LDADD = $(readline_LIBS) +#endif +gzfile = $(distdir).tar.gz +bz2file = $(distdir).tar.bz2 +xzfile = $(distdir).tar.xz +SUFFIXES = .html .bz2 .xz .gz .gz.md5 .gz.sha1 .gz.sha256 .gz.sha512 \ + .bz2.md5 .bz2.sha1 .bz2.sha256 .bz2.sha512 .xz.md5 .xz.sha1 \ + .xz.sha256 .xz.sha512 $(am__append_10) $(am__append_11) +ABOUT_HTML_DEP = about.htm $(am__append_12) +@HAVE_LOCAL_SCREENSHOTS_FALSE@SCREENSHOT_URL = @PACKAGE_URL@screenshots.html +@HAVE_LOCAL_SCREENSHOTS_TRUE@SCREENSHOT_URL = screenshots.html all: $(BUILT_SOURCES) config.h $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: -.SUFFIXES: .png .xpm .html .html.in _html.cpp .cpp .o .obj +.SUFFIXES: .html .bz2 .xz .gz .gz.md5 .gz.sha1 .gz.sha256 .gz.sha512 .bz2.md5 .bz2.sha1 .bz2.sha256 .bz2.sha512 .xz.md5 .xz.sha1 .xz.sha256 .xz.sha512 .png .xpm .txt .c .lo .o .obj 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) --gnu '; \ - cd $(srcdir) && $(AUTOMAKE) --gnu \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --gnu Makefile + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ @@ -330,9 +466,10 @@ $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) + $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ @@ -344,40 +481,122 @@ @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) - cd $(top_srcdir) && $(AUTOHEADER) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 -VERSION: $(top_builddir)/config.status $(srcdir)/VERSION.in +quickplot.pc: $(top_builddir)/config.status $(srcdir)/quickplot.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ -install-binPROGRAMS: $(bin_PROGRAMS) +footer.htm: $(top_builddir)/config.status $(srcdir)/footer.htm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +about.htm: $(top_builddir)/config.status $(srcdir)/about.htm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +help_head.htm: $(top_builddir)/config.status $(srcdir)/help_head.htm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +help_tail.htm: $(top_builddir)/config.status $(srcdir)/help_tail.htm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +index.htm: $(top_builddir)/config.status $(srcdir)/index.htm.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +quickplot.1.head: $(top_builddir)/config.status $(srcdir)/quickplot.1.head.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +quickplot.1.tail: $(top_builddir)/config.status $(srcdir)/quickplot.1.tail.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) - test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - if test -f $$p \ - ; then \ - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ - $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +libquickplot.la: $(libquickplot_la_OBJECTS) $(libquickplot_la_DEPENDENCIES) + $(libquickplot_la_LINK) -rpath $(libdir) $(libquickplot_la_OBJECTS) $(libquickplot_la_LIBADD) $(LIBS) +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p || test -f $$p1; \ + then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done + uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) - @list='$(bin_PROGRAMS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ - rm -f "$(DESTDIR)$(bindir)/$$f"; \ - done + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: - -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list + +clean-noinstPROGRAMS: + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list +mk_options$(EXEEXT): $(mk_options_OBJECTS) $(mk_options_DEPENDENCIES) + @rm -f mk_options$(EXEEXT) + $(LINK) $(mk_options_OBJECTS) $(mk_options_LDADD) $(LIBS) quickplot$(EXEEXT): $(quickplot_OBJECTS) $(quickplot_DEPENDENCIES) @rm -f quickplot$(EXEEXT) $(quickplot_LINK) $(quickplot_OBJECTS) $(quickplot_LDADD) $(LIBS) +quickplot_shell$(EXEEXT): $(quickplot_shell_OBJECTS) $(quickplot_shell_DEPENDENCIES) + @rm -f quickplot_shell$(EXEEXT) + $(LINK) $(quickplot_shell_OBJECTS) $(quickplot_shell_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -385,653 +604,353 @@ distclean-compile: -rm -f *.tab.c -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-App.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-App_parseArgs.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-ButtonBar.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-ColorGen.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-Field.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-FieldReader.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-File.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-FileList.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-FileReader.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-File_readASCIIFile.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-File_readSndDouble.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-File_readSndFile.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-File_readSndFloat.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-File_readSndInt.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-File_readSndShort.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-Globel.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-Graph.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-GraphConfig.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-Graph_drawAutoGrid.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-LinearField.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-MainMenuBar.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-MainWindow.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-Plot.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-PlotConfig.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-PlotList.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-PlotLister.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-PlotSelector.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-Plot_cullDrawLine.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-Source.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-StatusBar.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-ValueSlider.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-about_html.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-errorStr.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-getOpt.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-help_html.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-launchBrowser.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-main.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-parseGeometry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/q-usage.Po@am__quote@ - -.cpp.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 $@ $< - -.cpp.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) '$<'` - -q-App.o: App.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-App.o -MD -MP -MF $(DEPDIR)/q-App.Tpo -c -o q-App.o `test -f 'App.cpp' || echo '$(srcdir)/'`App.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-App.Tpo $(DEPDIR)/q-App.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='App.cpp' object='q-App.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-App.o `test -f 'App.cpp' || echo '$(srcdir)/'`App.cpp - -q-App.obj: App.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-App.obj -MD -MP -MF $(DEPDIR)/q-App.Tpo -c -o q-App.obj `if test -f 'App.cpp'; then $(CYGPATH_W) 'App.cpp'; else $(CYGPATH_W) '$(srcdir)/App.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-App.Tpo $(DEPDIR)/q-App.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='App.cpp' object='q-App.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-App.obj `if test -f 'App.cpp'; then $(CYGPATH_W) 'App.cpp'; else $(CYGPATH_W) '$(srcdir)/App.cpp'; fi` - -q-App_parseArgs.o: App_parseArgs.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-App_parseArgs.o -MD -MP -MF $(DEPDIR)/q-App_parseArgs.Tpo -c -o q-App_parseArgs.o `test -f 'App_parseArgs.cpp' || echo '$(srcdir)/'`App_parseArgs.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-App_parseArgs.Tpo $(DEPDIR)/q-App_parseArgs.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='App_parseArgs.cpp' object='q-App_parseArgs.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-App_parseArgs.o `test -f 'App_parseArgs.cpp' || echo '$(srcdir)/'`App_parseArgs.cpp - -q-App_parseArgs.obj: App_parseArgs.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-App_parseArgs.obj -MD -MP -MF $(DEPDIR)/q-App_parseArgs.Tpo -c -o q-App_parseArgs.obj `if test -f 'App_parseArgs.cpp'; then $(CYGPATH_W) 'App_parseArgs.cpp'; else $(CYGPATH_W) '$(srcdir)/App_parseArgs.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-App_parseArgs.Tpo $(DEPDIR)/q-App_parseArgs.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='App_parseArgs.cpp' object='q-App_parseArgs.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-App_parseArgs.obj `if test -f 'App_parseArgs.cpp'; then $(CYGPATH_W) 'App_parseArgs.cpp'; else $(CYGPATH_W) '$(srcdir)/App_parseArgs.cpp'; fi` - -q-ButtonBar.o: ButtonBar.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-ButtonBar.o -MD -MP -MF $(DEPDIR)/q-ButtonBar.Tpo -c -o q-ButtonBar.o `test -f 'ButtonBar.cpp' || echo '$(srcdir)/'`ButtonBar.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-ButtonBar.Tpo $(DEPDIR)/q-ButtonBar.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ButtonBar.cpp' object='q-ButtonBar.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-ButtonBar.o `test -f 'ButtonBar.cpp' || echo '$(srcdir)/'`ButtonBar.cpp - -q-ButtonBar.obj: ButtonBar.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-ButtonBar.obj -MD -MP -MF $(DEPDIR)/q-ButtonBar.Tpo -c -o q-ButtonBar.obj `if test -f 'ButtonBar.cpp'; then $(CYGPATH_W) 'ButtonBar.cpp'; else $(CYGPATH_W) '$(srcdir)/ButtonBar.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-ButtonBar.Tpo $(DEPDIR)/q-ButtonBar.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ButtonBar.cpp' object='q-ButtonBar.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-ButtonBar.obj `if test -f 'ButtonBar.cpp'; then $(CYGPATH_W) 'ButtonBar.cpp'; else $(CYGPATH_W) '$(srcdir)/ButtonBar.cpp'; fi` - -q-ColorGen.o: ColorGen.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-ColorGen.o -MD -MP -MF $(DEPDIR)/q-ColorGen.Tpo -c -o q-ColorGen.o `test -f 'ColorGen.cpp' || echo '$(srcdir)/'`ColorGen.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-ColorGen.Tpo $(DEPDIR)/q-ColorGen.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ColorGen.cpp' object='q-ColorGen.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-ColorGen.o `test -f 'ColorGen.cpp' || echo '$(srcdir)/'`ColorGen.cpp - -q-ColorGen.obj: ColorGen.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-ColorGen.obj -MD -MP -MF $(DEPDIR)/q-ColorGen.Tpo -c -o q-ColorGen.obj `if test -f 'ColorGen.cpp'; then $(CYGPATH_W) 'ColorGen.cpp'; else $(CYGPATH_W) '$(srcdir)/ColorGen.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-ColorGen.Tpo $(DEPDIR)/q-ColorGen.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ColorGen.cpp' object='q-ColorGen.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-ColorGen.obj `if test -f 'ColorGen.cpp'; then $(CYGPATH_W) 'ColorGen.cpp'; else $(CYGPATH_W) '$(srcdir)/ColorGen.cpp'; fi` - -q-Field.o: Field.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Field.o -MD -MP -MF $(DEPDIR)/q-Field.Tpo -c -o q-Field.o `test -f 'Field.cpp' || echo '$(srcdir)/'`Field.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Field.Tpo $(DEPDIR)/q-Field.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Field.cpp' object='q-Field.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Field.o `test -f 'Field.cpp' || echo '$(srcdir)/'`Field.cpp - -q-Field.obj: Field.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Field.obj -MD -MP -MF $(DEPDIR)/q-Field.Tpo -c -o q-Field.obj `if test -f 'Field.cpp'; then $(CYGPATH_W) 'Field.cpp'; else $(CYGPATH_W) '$(srcdir)/Field.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Field.Tpo $(DEPDIR)/q-Field.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Field.cpp' object='q-Field.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Field.obj `if test -f 'Field.cpp'; then $(CYGPATH_W) 'Field.cpp'; else $(CYGPATH_W) '$(srcdir)/Field.cpp'; fi` - -q-FieldReader.o: FieldReader.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-FieldReader.o -MD -MP -MF $(DEPDIR)/q-FieldReader.Tpo -c -o q-FieldReader.o `test -f 'FieldReader.cpp' || echo '$(srcdir)/'`FieldReader.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-FieldReader.Tpo $(DEPDIR)/q-FieldReader.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='FieldReader.cpp' object='q-FieldReader.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-FieldReader.o `test -f 'FieldReader.cpp' || echo '$(srcdir)/'`FieldReader.cpp - -q-FieldReader.obj: FieldReader.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-FieldReader.obj -MD -MP -MF $(DEPDIR)/q-FieldReader.Tpo -c -o q-FieldReader.obj `if test -f 'FieldReader.cpp'; then $(CYGPATH_W) 'FieldReader.cpp'; else $(CYGPATH_W) '$(srcdir)/FieldReader.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-FieldReader.Tpo $(DEPDIR)/q-FieldReader.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='FieldReader.cpp' object='q-FieldReader.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-FieldReader.obj `if test -f 'FieldReader.cpp'; then $(CYGPATH_W) 'FieldReader.cpp'; else $(CYGPATH_W) '$(srcdir)/FieldReader.cpp'; fi` - -q-File.o: File.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File.o -MD -MP -MF $(DEPDIR)/q-File.Tpo -c -o q-File.o `test -f 'File.cpp' || echo '$(srcdir)/'`File.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File.Tpo $(DEPDIR)/q-File.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File.cpp' object='q-File.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File.o `test -f 'File.cpp' || echo '$(srcdir)/'`File.cpp - -q-File.obj: File.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File.obj -MD -MP -MF $(DEPDIR)/q-File.Tpo -c -o q-File.obj `if test -f 'File.cpp'; then $(CYGPATH_W) 'File.cpp'; else $(CYGPATH_W) '$(srcdir)/File.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File.Tpo $(DEPDIR)/q-File.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File.cpp' object='q-File.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File.obj `if test -f 'File.cpp'; then $(CYGPATH_W) 'File.cpp'; else $(CYGPATH_W) '$(srcdir)/File.cpp'; fi` - -q-FileList.o: FileList.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-FileList.o -MD -MP -MF $(DEPDIR)/q-FileList.Tpo -c -o q-FileList.o `test -f 'FileList.cpp' || echo '$(srcdir)/'`FileList.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-FileList.Tpo $(DEPDIR)/q-FileList.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='FileList.cpp' object='q-FileList.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-FileList.o `test -f 'FileList.cpp' || echo '$(srcdir)/'`FileList.cpp - -q-FileList.obj: FileList.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-FileList.obj -MD -MP -MF $(DEPDIR)/q-FileList.Tpo -c -o q-FileList.obj `if test -f 'FileList.cpp'; then $(CYGPATH_W) 'FileList.cpp'; else $(CYGPATH_W) '$(srcdir)/FileList.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-FileList.Tpo $(DEPDIR)/q-FileList.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='FileList.cpp' object='q-FileList.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-FileList.obj `if test -f 'FileList.cpp'; then $(CYGPATH_W) 'FileList.cpp'; else $(CYGPATH_W) '$(srcdir)/FileList.cpp'; fi` - -q-FileReader.o: FileReader.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-FileReader.o -MD -MP -MF $(DEPDIR)/q-FileReader.Tpo -c -o q-FileReader.o `test -f 'FileReader.cpp' || echo '$(srcdir)/'`FileReader.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-FileReader.Tpo $(DEPDIR)/q-FileReader.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='FileReader.cpp' object='q-FileReader.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-FileReader.o `test -f 'FileReader.cpp' || echo '$(srcdir)/'`FileReader.cpp - -q-FileReader.obj: FileReader.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-FileReader.obj -MD -MP -MF $(DEPDIR)/q-FileReader.Tpo -c -o q-FileReader.obj `if test -f 'FileReader.cpp'; then $(CYGPATH_W) 'FileReader.cpp'; else $(CYGPATH_W) '$(srcdir)/FileReader.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-FileReader.Tpo $(DEPDIR)/q-FileReader.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='FileReader.cpp' object='q-FileReader.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-FileReader.obj `if test -f 'FileReader.cpp'; then $(CYGPATH_W) 'FileReader.cpp'; else $(CYGPATH_W) '$(srcdir)/FileReader.cpp'; fi` - -q-File_readASCIIFile.o: File_readASCIIFile.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readASCIIFile.o -MD -MP -MF $(DEPDIR)/q-File_readASCIIFile.Tpo -c -o q-File_readASCIIFile.o `test -f 'File_readASCIIFile.cpp' || echo '$(srcdir)/'`File_readASCIIFile.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readASCIIFile.Tpo $(DEPDIR)/q-File_readASCIIFile.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readASCIIFile.cpp' object='q-File_readASCIIFile.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readASCIIFile.o `test -f 'File_readASCIIFile.cpp' || echo '$(srcdir)/'`File_readASCIIFile.cpp - -q-File_readASCIIFile.obj: File_readASCIIFile.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readASCIIFile.obj -MD -MP -MF $(DEPDIR)/q-File_readASCIIFile.Tpo -c -o q-File_readASCIIFile.obj `if test -f 'File_readASCIIFile.cpp'; then $(CYGPATH_W) 'File_readASCIIFile.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readASCIIFile.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readASCIIFile.Tpo $(DEPDIR)/q-File_readASCIIFile.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readASCIIFile.cpp' object='q-File_readASCIIFile.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readASCIIFile.obj `if test -f 'File_readASCIIFile.cpp'; then $(CYGPATH_W) 'File_readASCIIFile.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readASCIIFile.cpp'; fi` - -q-File_readSndDouble.o: File_readSndDouble.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readSndDouble.o -MD -MP -MF $(DEPDIR)/q-File_readSndDouble.Tpo -c -o q-File_readSndDouble.o `test -f 'File_readSndDouble.cpp' || echo '$(srcdir)/'`File_readSndDouble.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readSndDouble.Tpo $(DEPDIR)/q-File_readSndDouble.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readSndDouble.cpp' object='q-File_readSndDouble.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readSndDouble.o `test -f 'File_readSndDouble.cpp' || echo '$(srcdir)/'`File_readSndDouble.cpp - -q-File_readSndDouble.obj: File_readSndDouble.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readSndDouble.obj -MD -MP -MF $(DEPDIR)/q-File_readSndDouble.Tpo -c -o q-File_readSndDouble.obj `if test -f 'File_readSndDouble.cpp'; then $(CYGPATH_W) 'File_readSndDouble.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readSndDouble.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readSndDouble.Tpo $(DEPDIR)/q-File_readSndDouble.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readSndDouble.cpp' object='q-File_readSndDouble.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readSndDouble.obj `if test -f 'File_readSndDouble.cpp'; then $(CYGPATH_W) 'File_readSndDouble.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readSndDouble.cpp'; fi` - -q-File_readSndFile.o: File_readSndFile.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readSndFile.o -MD -MP -MF $(DEPDIR)/q-File_readSndFile.Tpo -c -o q-File_readSndFile.o `test -f 'File_readSndFile.cpp' || echo '$(srcdir)/'`File_readSndFile.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readSndFile.Tpo $(DEPDIR)/q-File_readSndFile.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readSndFile.cpp' object='q-File_readSndFile.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readSndFile.o `test -f 'File_readSndFile.cpp' || echo '$(srcdir)/'`File_readSndFile.cpp - -q-File_readSndFile.obj: File_readSndFile.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readSndFile.obj -MD -MP -MF $(DEPDIR)/q-File_readSndFile.Tpo -c -o q-File_readSndFile.obj `if test -f 'File_readSndFile.cpp'; then $(CYGPATH_W) 'File_readSndFile.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readSndFile.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readSndFile.Tpo $(DEPDIR)/q-File_readSndFile.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readSndFile.cpp' object='q-File_readSndFile.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readSndFile.obj `if test -f 'File_readSndFile.cpp'; then $(CYGPATH_W) 'File_readSndFile.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readSndFile.cpp'; fi` - -q-File_readSndFloat.o: File_readSndFloat.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readSndFloat.o -MD -MP -MF $(DEPDIR)/q-File_readSndFloat.Tpo -c -o q-File_readSndFloat.o `test -f 'File_readSndFloat.cpp' || echo '$(srcdir)/'`File_readSndFloat.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readSndFloat.Tpo $(DEPDIR)/q-File_readSndFloat.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readSndFloat.cpp' object='q-File_readSndFloat.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readSndFloat.o `test -f 'File_readSndFloat.cpp' || echo '$(srcdir)/'`File_readSndFloat.cpp - -q-File_readSndFloat.obj: File_readSndFloat.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readSndFloat.obj -MD -MP -MF $(DEPDIR)/q-File_readSndFloat.Tpo -c -o q-File_readSndFloat.obj `if test -f 'File_readSndFloat.cpp'; then $(CYGPATH_W) 'File_readSndFloat.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readSndFloat.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readSndFloat.Tpo $(DEPDIR)/q-File_readSndFloat.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readSndFloat.cpp' object='q-File_readSndFloat.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readSndFloat.obj `if test -f 'File_readSndFloat.cpp'; then $(CYGPATH_W) 'File_readSndFloat.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readSndFloat.cpp'; fi` - -q-File_readSndInt.o: File_readSndInt.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readSndInt.o -MD -MP -MF $(DEPDIR)/q-File_readSndInt.Tpo -c -o q-File_readSndInt.o `test -f 'File_readSndInt.cpp' || echo '$(srcdir)/'`File_readSndInt.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readSndInt.Tpo $(DEPDIR)/q-File_readSndInt.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readSndInt.cpp' object='q-File_readSndInt.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readSndInt.o `test -f 'File_readSndInt.cpp' || echo '$(srcdir)/'`File_readSndInt.cpp - -q-File_readSndInt.obj: File_readSndInt.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readSndInt.obj -MD -MP -MF $(DEPDIR)/q-File_readSndInt.Tpo -c -o q-File_readSndInt.obj `if test -f 'File_readSndInt.cpp'; then $(CYGPATH_W) 'File_readSndInt.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readSndInt.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readSndInt.Tpo $(DEPDIR)/q-File_readSndInt.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readSndInt.cpp' object='q-File_readSndInt.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readSndInt.obj `if test -f 'File_readSndInt.cpp'; then $(CYGPATH_W) 'File_readSndInt.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readSndInt.cpp'; fi` - -q-File_readSndShort.o: File_readSndShort.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readSndShort.o -MD -MP -MF $(DEPDIR)/q-File_readSndShort.Tpo -c -o q-File_readSndShort.o `test -f 'File_readSndShort.cpp' || echo '$(srcdir)/'`File_readSndShort.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readSndShort.Tpo $(DEPDIR)/q-File_readSndShort.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readSndShort.cpp' object='q-File_readSndShort.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readSndShort.o `test -f 'File_readSndShort.cpp' || echo '$(srcdir)/'`File_readSndShort.cpp - -q-File_readSndShort.obj: File_readSndShort.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-File_readSndShort.obj -MD -MP -MF $(DEPDIR)/q-File_readSndShort.Tpo -c -o q-File_readSndShort.obj `if test -f 'File_readSndShort.cpp'; then $(CYGPATH_W) 'File_readSndShort.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readSndShort.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-File_readSndShort.Tpo $(DEPDIR)/q-File_readSndShort.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='File_readSndShort.cpp' object='q-File_readSndShort.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-File_readSndShort.obj `if test -f 'File_readSndShort.cpp'; then $(CYGPATH_W) 'File_readSndShort.cpp'; else $(CYGPATH_W) '$(srcdir)/File_readSndShort.cpp'; fi` - -q-Globel.o: Globel.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Globel.o -MD -MP -MF $(DEPDIR)/q-Globel.Tpo -c -o q-Globel.o `test -f 'Globel.cpp' || echo '$(srcdir)/'`Globel.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Globel.Tpo $(DEPDIR)/q-Globel.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Globel.cpp' object='q-Globel.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Globel.o `test -f 'Globel.cpp' || echo '$(srcdir)/'`Globel.cpp - -q-Globel.obj: Globel.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Globel.obj -MD -MP -MF $(DEPDIR)/q-Globel.Tpo -c -o q-Globel.obj `if test -f 'Globel.cpp'; then $(CYGPATH_W) 'Globel.cpp'; else $(CYGPATH_W) '$(srcdir)/Globel.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Globel.Tpo $(DEPDIR)/q-Globel.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Globel.cpp' object='q-Globel.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Globel.obj `if test -f 'Globel.cpp'; then $(CYGPATH_W) 'Globel.cpp'; else $(CYGPATH_W) '$(srcdir)/Globel.cpp'; fi` - -q-Graph.o: Graph.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Graph.o -MD -MP -MF $(DEPDIR)/q-Graph.Tpo -c -o q-Graph.o `test -f 'Graph.cpp' || echo '$(srcdir)/'`Graph.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Graph.Tpo $(DEPDIR)/q-Graph.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Graph.cpp' object='q-Graph.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Graph.o `test -f 'Graph.cpp' || echo '$(srcdir)/'`Graph.cpp - -q-Graph.obj: Graph.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Graph.obj -MD -MP -MF $(DEPDIR)/q-Graph.Tpo -c -o q-Graph.obj `if test -f 'Graph.cpp'; then $(CYGPATH_W) 'Graph.cpp'; else $(CYGPATH_W) '$(srcdir)/Graph.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Graph.Tpo $(DEPDIR)/q-Graph.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Graph.cpp' object='q-Graph.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Graph.obj `if test -f 'Graph.cpp'; then $(CYGPATH_W) 'Graph.cpp'; else $(CYGPATH_W) '$(srcdir)/Graph.cpp'; fi` - -q-GraphConfig.o: GraphConfig.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-GraphConfig.o -MD -MP -MF $(DEPDIR)/q-GraphConfig.Tpo -c -o q-GraphConfig.o `test -f 'GraphConfig.cpp' || echo '$(srcdir)/'`GraphConfig.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-GraphConfig.Tpo $(DEPDIR)/q-GraphConfig.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='GraphConfig.cpp' object='q-GraphConfig.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-GraphConfig.o `test -f 'GraphConfig.cpp' || echo '$(srcdir)/'`GraphConfig.cpp - -q-GraphConfig.obj: GraphConfig.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-GraphConfig.obj -MD -MP -MF $(DEPDIR)/q-GraphConfig.Tpo -c -o q-GraphConfig.obj `if test -f 'GraphConfig.cpp'; then $(CYGPATH_W) 'GraphConfig.cpp'; else $(CYGPATH_W) '$(srcdir)/GraphConfig.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-GraphConfig.Tpo $(DEPDIR)/q-GraphConfig.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='GraphConfig.cpp' object='q-GraphConfig.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-GraphConfig.obj `if test -f 'GraphConfig.cpp'; then $(CYGPATH_W) 'GraphConfig.cpp'; else $(CYGPATH_W) '$(srcdir)/GraphConfig.cpp'; fi` - -q-Graph_drawAutoGrid.o: Graph_drawAutoGrid.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Graph_drawAutoGrid.o -MD -MP -MF $(DEPDIR)/q-Graph_drawAutoGrid.Tpo -c -o q-Graph_drawAutoGrid.o `test -f 'Graph_drawAutoGrid.cpp' || echo '$(srcdir)/'`Graph_drawAutoGrid.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Graph_drawAutoGrid.Tpo $(DEPDIR)/q-Graph_drawAutoGrid.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Graph_drawAutoGrid.cpp' object='q-Graph_drawAutoGrid.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Graph_drawAutoGrid.o `test -f 'Graph_drawAutoGrid.cpp' || echo '$(srcdir)/'`Graph_drawAutoGrid.cpp - -q-Graph_drawAutoGrid.obj: Graph_drawAutoGrid.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Graph_drawAutoGrid.obj -MD -MP -MF $(DEPDIR)/q-Graph_drawAutoGrid.Tpo -c -o q-Graph_drawAutoGrid.obj `if test -f 'Graph_drawAutoGrid.cpp'; then $(CYGPATH_W) 'Graph_drawAutoGrid.cpp'; else $(CYGPATH_W) '$(srcdir)/Graph_drawAutoGrid.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Graph_drawAutoGrid.Tpo $(DEPDIR)/q-Graph_drawAutoGrid.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Graph_drawAutoGrid.cpp' object='q-Graph_drawAutoGrid.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Graph_drawAutoGrid.obj `if test -f 'Graph_drawAutoGrid.cpp'; then $(CYGPATH_W) 'Graph_drawAutoGrid.cpp'; else $(CYGPATH_W) '$(srcdir)/Graph_drawAutoGrid.cpp'; fi` - -q-LinearField.o: LinearField.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-LinearField.o -MD -MP -MF $(DEPDIR)/q-LinearField.Tpo -c -o q-LinearField.o `test -f 'LinearField.cpp' || echo '$(srcdir)/'`LinearField.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-LinearField.Tpo $(DEPDIR)/q-LinearField.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='LinearField.cpp' object='q-LinearField.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-LinearField.o `test -f 'LinearField.cpp' || echo '$(srcdir)/'`LinearField.cpp - -q-LinearField.obj: LinearField.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-LinearField.obj -MD -MP -MF $(DEPDIR)/q-LinearField.Tpo -c -o q-LinearField.obj `if test -f 'LinearField.cpp'; then $(CYGPATH_W) 'LinearField.cpp'; else $(CYGPATH_W) '$(srcdir)/LinearField.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-LinearField.Tpo $(DEPDIR)/q-LinearField.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='LinearField.cpp' object='q-LinearField.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-LinearField.obj `if test -f 'LinearField.cpp'; then $(CYGPATH_W) 'LinearField.cpp'; else $(CYGPATH_W) '$(srcdir)/LinearField.cpp'; fi` - -q-MainMenuBar.o: MainMenuBar.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-MainMenuBar.o -MD -MP -MF $(DEPDIR)/q-MainMenuBar.Tpo -c -o q-MainMenuBar.o `test -f 'MainMenuBar.cpp' || echo '$(srcdir)/'`MainMenuBar.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-MainMenuBar.Tpo $(DEPDIR)/q-MainMenuBar.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MainMenuBar.cpp' object='q-MainMenuBar.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-MainMenuBar.o `test -f 'MainMenuBar.cpp' || echo '$(srcdir)/'`MainMenuBar.cpp - -q-MainMenuBar.obj: MainMenuBar.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-MainMenuBar.obj -MD -MP -MF $(DEPDIR)/q-MainMenuBar.Tpo -c -o q-MainMenuBar.obj `if test -f 'MainMenuBar.cpp'; then $(CYGPATH_W) 'MainMenuBar.cpp'; else $(CYGPATH_W) '$(srcdir)/MainMenuBar.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-MainMenuBar.Tpo $(DEPDIR)/q-MainMenuBar.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MainMenuBar.cpp' object='q-MainMenuBar.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-MainMenuBar.obj `if test -f 'MainMenuBar.cpp'; then $(CYGPATH_W) 'MainMenuBar.cpp'; else $(CYGPATH_W) '$(srcdir)/MainMenuBar.cpp'; fi` - -q-MainWindow.o: MainWindow.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-MainWindow.o -MD -MP -MF $(DEPDIR)/q-MainWindow.Tpo -c -o q-MainWindow.o `test -f 'MainWindow.cpp' || echo '$(srcdir)/'`MainWindow.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-MainWindow.Tpo $(DEPDIR)/q-MainWindow.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MainWindow.cpp' object='q-MainWindow.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-MainWindow.o `test -f 'MainWindow.cpp' || echo '$(srcdir)/'`MainWindow.cpp - -q-MainWindow.obj: MainWindow.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-MainWindow.obj -MD -MP -MF $(DEPDIR)/q-MainWindow.Tpo -c -o q-MainWindow.obj `if test -f 'MainWindow.cpp'; then $(CYGPATH_W) 'MainWindow.cpp'; else $(CYGPATH_W) '$(srcdir)/MainWindow.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-MainWindow.Tpo $(DEPDIR)/q-MainWindow.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='MainWindow.cpp' object='q-MainWindow.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-MainWindow.obj `if test -f 'MainWindow.cpp'; then $(CYGPATH_W) 'MainWindow.cpp'; else $(CYGPATH_W) '$(srcdir)/MainWindow.cpp'; fi` - -q-Plot.o: Plot.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Plot.o -MD -MP -MF $(DEPDIR)/q-Plot.Tpo -c -o q-Plot.o `test -f 'Plot.cpp' || echo '$(srcdir)/'`Plot.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Plot.Tpo $(DEPDIR)/q-Plot.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Plot.cpp' object='q-Plot.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Plot.o `test -f 'Plot.cpp' || echo '$(srcdir)/'`Plot.cpp - -q-Plot.obj: Plot.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Plot.obj -MD -MP -MF $(DEPDIR)/q-Plot.Tpo -c -o q-Plot.obj `if test -f 'Plot.cpp'; then $(CYGPATH_W) 'Plot.cpp'; else $(CYGPATH_W) '$(srcdir)/Plot.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Plot.Tpo $(DEPDIR)/q-Plot.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Plot.cpp' object='q-Plot.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Plot.obj `if test -f 'Plot.cpp'; then $(CYGPATH_W) 'Plot.cpp'; else $(CYGPATH_W) '$(srcdir)/Plot.cpp'; fi` - -q-PlotConfig.o: PlotConfig.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-PlotConfig.o -MD -MP -MF $(DEPDIR)/q-PlotConfig.Tpo -c -o q-PlotConfig.o `test -f 'PlotConfig.cpp' || echo '$(srcdir)/'`PlotConfig.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-PlotConfig.Tpo $(DEPDIR)/q-PlotConfig.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PlotConfig.cpp' object='q-PlotConfig.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-PlotConfig.o `test -f 'PlotConfig.cpp' || echo '$(srcdir)/'`PlotConfig.cpp - -q-PlotConfig.obj: PlotConfig.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-PlotConfig.obj -MD -MP -MF $(DEPDIR)/q-PlotConfig.Tpo -c -o q-PlotConfig.obj `if test -f 'PlotConfig.cpp'; then $(CYGPATH_W) 'PlotConfig.cpp'; else $(CYGPATH_W) '$(srcdir)/PlotConfig.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-PlotConfig.Tpo $(DEPDIR)/q-PlotConfig.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PlotConfig.cpp' object='q-PlotConfig.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-PlotConfig.obj `if test -f 'PlotConfig.cpp'; then $(CYGPATH_W) 'PlotConfig.cpp'; else $(CYGPATH_W) '$(srcdir)/PlotConfig.cpp'; fi` - -q-PlotList.o: PlotList.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-PlotList.o -MD -MP -MF $(DEPDIR)/q-PlotList.Tpo -c -o q-PlotList.o `test -f 'PlotList.cpp' || echo '$(srcdir)/'`PlotList.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-PlotList.Tpo $(DEPDIR)/q-PlotList.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PlotList.cpp' object='q-PlotList.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-PlotList.o `test -f 'PlotList.cpp' || echo '$(srcdir)/'`PlotList.cpp - -q-PlotList.obj: PlotList.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-PlotList.obj -MD -MP -MF $(DEPDIR)/q-PlotList.Tpo -c -o q-PlotList.obj `if test -f 'PlotList.cpp'; then $(CYGPATH_W) 'PlotList.cpp'; else $(CYGPATH_W) '$(srcdir)/PlotList.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-PlotList.Tpo $(DEPDIR)/q-PlotList.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PlotList.cpp' object='q-PlotList.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-PlotList.obj `if test -f 'PlotList.cpp'; then $(CYGPATH_W) 'PlotList.cpp'; else $(CYGPATH_W) '$(srcdir)/PlotList.cpp'; fi` - -q-PlotLister.o: PlotLister.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-PlotLister.o -MD -MP -MF $(DEPDIR)/q-PlotLister.Tpo -c -o q-PlotLister.o `test -f 'PlotLister.cpp' || echo '$(srcdir)/'`PlotLister.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-PlotLister.Tpo $(DEPDIR)/q-PlotLister.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PlotLister.cpp' object='q-PlotLister.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-PlotLister.o `test -f 'PlotLister.cpp' || echo '$(srcdir)/'`PlotLister.cpp - -q-PlotLister.obj: PlotLister.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-PlotLister.obj -MD -MP -MF $(DEPDIR)/q-PlotLister.Tpo -c -o q-PlotLister.obj `if test -f 'PlotLister.cpp'; then $(CYGPATH_W) 'PlotLister.cpp'; else $(CYGPATH_W) '$(srcdir)/PlotLister.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-PlotLister.Tpo $(DEPDIR)/q-PlotLister.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PlotLister.cpp' object='q-PlotLister.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-PlotLister.obj `if test -f 'PlotLister.cpp'; then $(CYGPATH_W) 'PlotLister.cpp'; else $(CYGPATH_W) '$(srcdir)/PlotLister.cpp'; fi` - -q-PlotSelector.o: PlotSelector.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-PlotSelector.o -MD -MP -MF $(DEPDIR)/q-PlotSelector.Tpo -c -o q-PlotSelector.o `test -f 'PlotSelector.cpp' || echo '$(srcdir)/'`PlotSelector.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-PlotSelector.Tpo $(DEPDIR)/q-PlotSelector.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PlotSelector.cpp' object='q-PlotSelector.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-PlotSelector.o `test -f 'PlotSelector.cpp' || echo '$(srcdir)/'`PlotSelector.cpp - -q-PlotSelector.obj: PlotSelector.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-PlotSelector.obj -MD -MP -MF $(DEPDIR)/q-PlotSelector.Tpo -c -o q-PlotSelector.obj `if test -f 'PlotSelector.cpp'; then $(CYGPATH_W) 'PlotSelector.cpp'; else $(CYGPATH_W) '$(srcdir)/PlotSelector.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-PlotSelector.Tpo $(DEPDIR)/q-PlotSelector.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PlotSelector.cpp' object='q-PlotSelector.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-PlotSelector.obj `if test -f 'PlotSelector.cpp'; then $(CYGPATH_W) 'PlotSelector.cpp'; else $(CYGPATH_W) '$(srcdir)/PlotSelector.cpp'; fi` - -q-Plot_cullDrawLine.o: Plot_cullDrawLine.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Plot_cullDrawLine.o -MD -MP -MF $(DEPDIR)/q-Plot_cullDrawLine.Tpo -c -o q-Plot_cullDrawLine.o `test -f 'Plot_cullDrawLine.cpp' || echo '$(srcdir)/'`Plot_cullDrawLine.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Plot_cullDrawLine.Tpo $(DEPDIR)/q-Plot_cullDrawLine.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Plot_cullDrawLine.cpp' object='q-Plot_cullDrawLine.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Plot_cullDrawLine.o `test -f 'Plot_cullDrawLine.cpp' || echo '$(srcdir)/'`Plot_cullDrawLine.cpp - -q-Plot_cullDrawLine.obj: Plot_cullDrawLine.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Plot_cullDrawLine.obj -MD -MP -MF $(DEPDIR)/q-Plot_cullDrawLine.Tpo -c -o q-Plot_cullDrawLine.obj `if test -f 'Plot_cullDrawLine.cpp'; then $(CYGPATH_W) 'Plot_cullDrawLine.cpp'; else $(CYGPATH_W) '$(srcdir)/Plot_cullDrawLine.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Plot_cullDrawLine.Tpo $(DEPDIR)/q-Plot_cullDrawLine.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Plot_cullDrawLine.cpp' object='q-Plot_cullDrawLine.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Plot_cullDrawLine.obj `if test -f 'Plot_cullDrawLine.cpp'; then $(CYGPATH_W) 'Plot_cullDrawLine.cpp'; else $(CYGPATH_W) '$(srcdir)/Plot_cullDrawLine.cpp'; fi` - -q-Source.o: Source.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Source.o -MD -MP -MF $(DEPDIR)/q-Source.Tpo -c -o q-Source.o `test -f 'Source.cpp' || echo '$(srcdir)/'`Source.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Source.Tpo $(DEPDIR)/q-Source.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Source.cpp' object='q-Source.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Source.o `test -f 'Source.cpp' || echo '$(srcdir)/'`Source.cpp - -q-Source.obj: Source.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-Source.obj -MD -MP -MF $(DEPDIR)/q-Source.Tpo -c -o q-Source.obj `if test -f 'Source.cpp'; then $(CYGPATH_W) 'Source.cpp'; else $(CYGPATH_W) '$(srcdir)/Source.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-Source.Tpo $(DEPDIR)/q-Source.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Source.cpp' object='q-Source.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-Source.obj `if test -f 'Source.cpp'; then $(CYGPATH_W) 'Source.cpp'; else $(CYGPATH_W) '$(srcdir)/Source.cpp'; fi` - -q-StatusBar.o: StatusBar.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-StatusBar.o -MD -MP -MF $(DEPDIR)/q-StatusBar.Tpo -c -o q-StatusBar.o `test -f 'StatusBar.cpp' || echo '$(srcdir)/'`StatusBar.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-StatusBar.Tpo $(DEPDIR)/q-StatusBar.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='StatusBar.cpp' object='q-StatusBar.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-StatusBar.o `test -f 'StatusBar.cpp' || echo '$(srcdir)/'`StatusBar.cpp - -q-StatusBar.obj: StatusBar.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-StatusBar.obj -MD -MP -MF $(DEPDIR)/q-StatusBar.Tpo -c -o q-StatusBar.obj `if test -f 'StatusBar.cpp'; then $(CYGPATH_W) 'StatusBar.cpp'; else $(CYGPATH_W) '$(srcdir)/StatusBar.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-StatusBar.Tpo $(DEPDIR)/q-StatusBar.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='StatusBar.cpp' object='q-StatusBar.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-StatusBar.obj `if test -f 'StatusBar.cpp'; then $(CYGPATH_W) 'StatusBar.cpp'; else $(CYGPATH_W) '$(srcdir)/StatusBar.cpp'; fi` - -q-ValueSlider.o: ValueSlider.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-ValueSlider.o -MD -MP -MF $(DEPDIR)/q-ValueSlider.Tpo -c -o q-ValueSlider.o `test -f 'ValueSlider.cpp' || echo '$(srcdir)/'`ValueSlider.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-ValueSlider.Tpo $(DEPDIR)/q-ValueSlider.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ValueSlider.cpp' object='q-ValueSlider.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-ValueSlider.o `test -f 'ValueSlider.cpp' || echo '$(srcdir)/'`ValueSlider.cpp - -q-ValueSlider.obj: ValueSlider.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-ValueSlider.obj -MD -MP -MF $(DEPDIR)/q-ValueSlider.Tpo -c -o q-ValueSlider.obj `if test -f 'ValueSlider.cpp'; then $(CYGPATH_W) 'ValueSlider.cpp'; else $(CYGPATH_W) '$(srcdir)/ValueSlider.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-ValueSlider.Tpo $(DEPDIR)/q-ValueSlider.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='ValueSlider.cpp' object='q-ValueSlider.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-ValueSlider.obj `if test -f 'ValueSlider.cpp'; then $(CYGPATH_W) 'ValueSlider.cpp'; else $(CYGPATH_W) '$(srcdir)/ValueSlider.cpp'; fi` - -q-about_html.o: about_html.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-about_html.o -MD -MP -MF $(DEPDIR)/q-about_html.Tpo -c -o q-about_html.o `test -f 'about_html.cpp' || echo '$(srcdir)/'`about_html.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-about_html.Tpo $(DEPDIR)/q-about_html.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='about_html.cpp' object='q-about_html.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-about_html.o `test -f 'about_html.cpp' || echo '$(srcdir)/'`about_html.cpp - -q-about_html.obj: about_html.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-about_html.obj -MD -MP -MF $(DEPDIR)/q-about_html.Tpo -c -o q-about_html.obj `if test -f 'about_html.cpp'; then $(CYGPATH_W) 'about_html.cpp'; else $(CYGPATH_W) '$(srcdir)/about_html.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-about_html.Tpo $(DEPDIR)/q-about_html.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='about_html.cpp' object='q-about_html.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-about_html.obj `if test -f 'about_html.cpp'; then $(CYGPATH_W) 'about_html.cpp'; else $(CYGPATH_W) '$(srcdir)/about_html.cpp'; fi` - -q-errorStr.o: errorStr.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-errorStr.o -MD -MP -MF $(DEPDIR)/q-errorStr.Tpo -c -o q-errorStr.o `test -f 'errorStr.cpp' || echo '$(srcdir)/'`errorStr.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-errorStr.Tpo $(DEPDIR)/q-errorStr.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='errorStr.cpp' object='q-errorStr.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-errorStr.o `test -f 'errorStr.cpp' || echo '$(srcdir)/'`errorStr.cpp - -q-errorStr.obj: errorStr.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-errorStr.obj -MD -MP -MF $(DEPDIR)/q-errorStr.Tpo -c -o q-errorStr.obj `if test -f 'errorStr.cpp'; then $(CYGPATH_W) 'errorStr.cpp'; else $(CYGPATH_W) '$(srcdir)/errorStr.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-errorStr.Tpo $(DEPDIR)/q-errorStr.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='errorStr.cpp' object='q-errorStr.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-errorStr.obj `if test -f 'errorStr.cpp'; then $(CYGPATH_W) 'errorStr.cpp'; else $(CYGPATH_W) '$(srcdir)/errorStr.cpp'; fi` - -q-getOpt.o: getOpt.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-getOpt.o -MD -MP -MF $(DEPDIR)/q-getOpt.Tpo -c -o q-getOpt.o `test -f 'getOpt.cpp' || echo '$(srcdir)/'`getOpt.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-getOpt.Tpo $(DEPDIR)/q-getOpt.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='getOpt.cpp' object='q-getOpt.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-getOpt.o `test -f 'getOpt.cpp' || echo '$(srcdir)/'`getOpt.cpp - -q-getOpt.obj: getOpt.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-getOpt.obj -MD -MP -MF $(DEPDIR)/q-getOpt.Tpo -c -o q-getOpt.obj `if test -f 'getOpt.cpp'; then $(CYGPATH_W) 'getOpt.cpp'; else $(CYGPATH_W) '$(srcdir)/getOpt.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-getOpt.Tpo $(DEPDIR)/q-getOpt.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='getOpt.cpp' object='q-getOpt.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-getOpt.obj `if test -f 'getOpt.cpp'; then $(CYGPATH_W) 'getOpt.cpp'; else $(CYGPATH_W) '$(srcdir)/getOpt.cpp'; fi` - -q-help_html.o: help_html.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-help_html.o -MD -MP -MF $(DEPDIR)/q-help_html.Tpo -c -o q-help_html.o `test -f 'help_html.cpp' || echo '$(srcdir)/'`help_html.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-help_html.Tpo $(DEPDIR)/q-help_html.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='help_html.cpp' object='q-help_html.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-help_html.o `test -f 'help_html.cpp' || echo '$(srcdir)/'`help_html.cpp - -q-help_html.obj: help_html.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-help_html.obj -MD -MP -MF $(DEPDIR)/q-help_html.Tpo -c -o q-help_html.obj `if test -f 'help_html.cpp'; then $(CYGPATH_W) 'help_html.cpp'; else $(CYGPATH_W) '$(srcdir)/help_html.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-help_html.Tpo $(DEPDIR)/q-help_html.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='help_html.cpp' object='q-help_html.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-help_html.obj `if test -f 'help_html.cpp'; then $(CYGPATH_W) 'help_html.cpp'; else $(CYGPATH_W) '$(srcdir)/help_html.cpp'; fi` - -q-launchBrowser.o: launchBrowser.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-launchBrowser.o -MD -MP -MF $(DEPDIR)/q-launchBrowser.Tpo -c -o q-launchBrowser.o `test -f 'launchBrowser.cpp' || echo '$(srcdir)/'`launchBrowser.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-launchBrowser.Tpo $(DEPDIR)/q-launchBrowser.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='launchBrowser.cpp' object='q-launchBrowser.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-launchBrowser.o `test -f 'launchBrowser.cpp' || echo '$(srcdir)/'`launchBrowser.cpp - -q-launchBrowser.obj: launchBrowser.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-launchBrowser.obj -MD -MP -MF $(DEPDIR)/q-launchBrowser.Tpo -c -o q-launchBrowser.obj `if test -f 'launchBrowser.cpp'; then $(CYGPATH_W) 'launchBrowser.cpp'; else $(CYGPATH_W) '$(srcdir)/launchBrowser.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-launchBrowser.Tpo $(DEPDIR)/q-launchBrowser.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='launchBrowser.cpp' object='q-launchBrowser.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-launchBrowser.obj `if test -f 'launchBrowser.cpp'; then $(CYGPATH_W) 'launchBrowser.cpp'; else $(CYGPATH_W) '$(srcdir)/launchBrowser.cpp'; fi` - -q-main.o: main.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-main.o -MD -MP -MF $(DEPDIR)/q-main.Tpo -c -o q-main.o `test -f 'main.cpp' || echo '$(srcdir)/'`main.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-main.Tpo $(DEPDIR)/q-main.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='main.cpp' object='q-main.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-main.o `test -f 'main.cpp' || echo '$(srcdir)/'`main.cpp - -q-main.obj: main.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-main.obj -MD -MP -MF $(DEPDIR)/q-main.Tpo -c -o q-main.obj `if test -f 'main.cpp'; then $(CYGPATH_W) 'main.cpp'; else $(CYGPATH_W) '$(srcdir)/main.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-main.Tpo $(DEPDIR)/q-main.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='main.cpp' object='q-main.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-main.obj `if test -f 'main.cpp'; then $(CYGPATH_W) 'main.cpp'; else $(CYGPATH_W) '$(srcdir)/main.cpp'; fi` - -q-parseGeometry.o: parseGeometry.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-parseGeometry.o -MD -MP -MF $(DEPDIR)/q-parseGeometry.Tpo -c -o q-parseGeometry.o `test -f 'parseGeometry.cpp' || echo '$(srcdir)/'`parseGeometry.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-parseGeometry.Tpo $(DEPDIR)/q-parseGeometry.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='parseGeometry.cpp' object='q-parseGeometry.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-parseGeometry.o `test -f 'parseGeometry.cpp' || echo '$(srcdir)/'`parseGeometry.cpp - -q-parseGeometry.obj: parseGeometry.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-parseGeometry.obj -MD -MP -MF $(DEPDIR)/q-parseGeometry.Tpo -c -o q-parseGeometry.obj `if test -f 'parseGeometry.cpp'; then $(CYGPATH_W) 'parseGeometry.cpp'; else $(CYGPATH_W) '$(srcdir)/parseGeometry.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-parseGeometry.Tpo $(DEPDIR)/q-parseGeometry.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='parseGeometry.cpp' object='q-parseGeometry.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-parseGeometry.obj `if test -f 'parseGeometry.cpp'; then $(CYGPATH_W) 'parseGeometry.cpp'; else $(CYGPATH_W) '$(srcdir)/parseGeometry.cpp'; fi` - -q-usage.o: usage.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-usage.o -MD -MP -MF $(DEPDIR)/q-usage.Tpo -c -o q-usage.o `test -f 'usage.cpp' || echo '$(srcdir)/'`usage.cpp -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-usage.Tpo $(DEPDIR)/q-usage.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='usage.cpp' object='q-usage.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-usage.o `test -f 'usage.cpp' || echo '$(srcdir)/'`usage.cpp - -q-usage.obj: usage.cpp -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -MT q-usage.obj -MD -MP -MF $(DEPDIR)/q-usage.Tpo -c -o q-usage.obj `if test -f 'usage.cpp'; then $(CYGPATH_W) 'usage.cpp'; else $(CYGPATH_W) '$(srcdir)/usage.cpp'; fi` -@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/q-usage.Tpo $(DEPDIR)/q-usage.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='usage.cpp' object='q-usage.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CXXFLAGS) $(CXXFLAGS) -c -o q-usage.obj `if test -f 'usage.cpp'; then $(CYGPATH_W) 'usage.cpp'; else $(CYGPATH_W) '$(srcdir)/usage.cpp'; fi` +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug_spew.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-callbacks.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-channel.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-channel_double.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-color_gen.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-debug_spew.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-exec_lib.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-get_opt.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-graph.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-graph_detail.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-graph_draw.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-graph_grid.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-launch_browser.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-list.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-parse_argument_options.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-plot.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-process_gtk_options.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-qp.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-shell.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-source.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-source_double.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-spew.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-term_color.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib-win.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mk_options.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qp-qp_main.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/qp_shell.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spew.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/term_color.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(am__mv) $(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@ $(am__mv) $(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@ $(am__mv) $(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 $@ $< + +lib-callbacks.lo: callbacks.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-callbacks.lo -MD -MP -MF $(DEPDIR)/lib-callbacks.Tpo -c -o lib-callbacks.lo `test -f 'callbacks.c' || echo '$(srcdir)/'`callbacks.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-callbacks.Tpo $(DEPDIR)/lib-callbacks.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='callbacks.c' object='lib-callbacks.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-callbacks.lo `test -f 'callbacks.c' || echo '$(srcdir)/'`callbacks.c + +lib-channel.lo: channel.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-channel.lo -MD -MP -MF $(DEPDIR)/lib-channel.Tpo -c -o lib-channel.lo `test -f 'channel.c' || echo '$(srcdir)/'`channel.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-channel.Tpo $(DEPDIR)/lib-channel.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='channel.c' object='lib-channel.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-channel.lo `test -f 'channel.c' || echo '$(srcdir)/'`channel.c + +lib-channel_double.lo: channel_double.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-channel_double.lo -MD -MP -MF $(DEPDIR)/lib-channel_double.Tpo -c -o lib-channel_double.lo `test -f 'channel_double.c' || echo '$(srcdir)/'`channel_double.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-channel_double.Tpo $(DEPDIR)/lib-channel_double.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='channel_double.c' object='lib-channel_double.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-channel_double.lo `test -f 'channel_double.c' || echo '$(srcdir)/'`channel_double.c + +lib-color_gen.lo: color_gen.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-color_gen.lo -MD -MP -MF $(DEPDIR)/lib-color_gen.Tpo -c -o lib-color_gen.lo `test -f 'color_gen.c' || echo '$(srcdir)/'`color_gen.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-color_gen.Tpo $(DEPDIR)/lib-color_gen.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='color_gen.c' object='lib-color_gen.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-color_gen.lo `test -f 'color_gen.c' || echo '$(srcdir)/'`color_gen.c + +lib-get_opt.lo: get_opt.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-get_opt.lo -MD -MP -MF $(DEPDIR)/lib-get_opt.Tpo -c -o lib-get_opt.lo `test -f 'get_opt.c' || echo '$(srcdir)/'`get_opt.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-get_opt.Tpo $(DEPDIR)/lib-get_opt.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_opt.c' object='lib-get_opt.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-get_opt.lo `test -f 'get_opt.c' || echo '$(srcdir)/'`get_opt.c + +lib-graph.lo: graph.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-graph.lo -MD -MP -MF $(DEPDIR)/lib-graph.Tpo -c -o lib-graph.lo `test -f 'graph.c' || echo '$(srcdir)/'`graph.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-graph.Tpo $(DEPDIR)/lib-graph.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='graph.c' object='lib-graph.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-graph.lo `test -f 'graph.c' || echo '$(srcdir)/'`graph.c + +lib-graph_detail.lo: graph_detail.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-graph_detail.lo -MD -MP -MF $(DEPDIR)/lib-graph_detail.Tpo -c -o lib-graph_detail.lo `test -f 'graph_detail.c' || echo '$(srcdir)/'`graph_detail.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-graph_detail.Tpo $(DEPDIR)/lib-graph_detail.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='graph_detail.c' object='lib-graph_detail.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-graph_detail.lo `test -f 'graph_detail.c' || echo '$(srcdir)/'`graph_detail.c + +lib-graph_draw.lo: graph_draw.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-graph_draw.lo -MD -MP -MF $(DEPDIR)/lib-graph_draw.Tpo -c -o lib-graph_draw.lo `test -f 'graph_draw.c' || echo '$(srcdir)/'`graph_draw.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-graph_draw.Tpo $(DEPDIR)/lib-graph_draw.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='graph_draw.c' object='lib-graph_draw.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-graph_draw.lo `test -f 'graph_draw.c' || echo '$(srcdir)/'`graph_draw.c + +lib-graph_grid.lo: graph_grid.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-graph_grid.lo -MD -MP -MF $(DEPDIR)/lib-graph_grid.Tpo -c -o lib-graph_grid.lo `test -f 'graph_grid.c' || echo '$(srcdir)/'`graph_grid.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-graph_grid.Tpo $(DEPDIR)/lib-graph_grid.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='graph_grid.c' object='lib-graph_grid.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-graph_grid.lo `test -f 'graph_grid.c' || echo '$(srcdir)/'`graph_grid.c + +lib-launch_browser.lo: launch_browser.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-launch_browser.lo -MD -MP -MF $(DEPDIR)/lib-launch_browser.Tpo -c -o lib-launch_browser.lo `test -f 'launch_browser.c' || echo '$(srcdir)/'`launch_browser.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-launch_browser.Tpo $(DEPDIR)/lib-launch_browser.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='launch_browser.c' object='lib-launch_browser.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-launch_browser.lo `test -f 'launch_browser.c' || echo '$(srcdir)/'`launch_browser.c + +lib-list.lo: list.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-list.lo -MD -MP -MF $(DEPDIR)/lib-list.Tpo -c -o lib-list.lo `test -f 'list.c' || echo '$(srcdir)/'`list.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-list.Tpo $(DEPDIR)/lib-list.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='list.c' object='lib-list.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-list.lo `test -f 'list.c' || echo '$(srcdir)/'`list.c + +lib-parse_argument_options.lo: parse_argument_options.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-parse_argument_options.lo -MD -MP -MF $(DEPDIR)/lib-parse_argument_options.Tpo -c -o lib-parse_argument_options.lo `test -f 'parse_argument_options.c' || echo '$(srcdir)/'`parse_argument_options.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-parse_argument_options.Tpo $(DEPDIR)/lib-parse_argument_options.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='parse_argument_options.c' object='lib-parse_argument_options.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-parse_argument_options.lo `test -f 'parse_argument_options.c' || echo '$(srcdir)/'`parse_argument_options.c + +lib-plot.lo: plot.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-plot.lo -MD -MP -MF $(DEPDIR)/lib-plot.Tpo -c -o lib-plot.lo `test -f 'plot.c' || echo '$(srcdir)/'`plot.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-plot.Tpo $(DEPDIR)/lib-plot.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='plot.c' object='lib-plot.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-plot.lo `test -f 'plot.c' || echo '$(srcdir)/'`plot.c + +lib-process_gtk_options.lo: process_gtk_options.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-process_gtk_options.lo -MD -MP -MF $(DEPDIR)/lib-process_gtk_options.Tpo -c -o lib-process_gtk_options.lo `test -f 'process_gtk_options.c' || echo '$(srcdir)/'`process_gtk_options.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-process_gtk_options.Tpo $(DEPDIR)/lib-process_gtk_options.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='process_gtk_options.c' object='lib-process_gtk_options.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-process_gtk_options.lo `test -f 'process_gtk_options.c' || echo '$(srcdir)/'`process_gtk_options.c + +lib-qp.lo: qp.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-qp.lo -MD -MP -MF $(DEPDIR)/lib-qp.Tpo -c -o lib-qp.lo `test -f 'qp.c' || echo '$(srcdir)/'`qp.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-qp.Tpo $(DEPDIR)/lib-qp.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='qp.c' object='lib-qp.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-qp.lo `test -f 'qp.c' || echo '$(srcdir)/'`qp.c + +lib-shell.lo: shell.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-shell.lo -MD -MP -MF $(DEPDIR)/lib-shell.Tpo -c -o lib-shell.lo `test -f 'shell.c' || echo '$(srcdir)/'`shell.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-shell.Tpo $(DEPDIR)/lib-shell.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='shell.c' object='lib-shell.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-shell.lo `test -f 'shell.c' || echo '$(srcdir)/'`shell.c + +lib-source.lo: source.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-source.lo -MD -MP -MF $(DEPDIR)/lib-source.Tpo -c -o lib-source.lo `test -f 'source.c' || echo '$(srcdir)/'`source.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-source.Tpo $(DEPDIR)/lib-source.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='source.c' object='lib-source.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-source.lo `test -f 'source.c' || echo '$(srcdir)/'`source.c + +lib-source_double.lo: source_double.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-source_double.lo -MD -MP -MF $(DEPDIR)/lib-source_double.Tpo -c -o lib-source_double.lo `test -f 'source_double.c' || echo '$(srcdir)/'`source_double.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-source_double.Tpo $(DEPDIR)/lib-source_double.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='source_double.c' object='lib-source_double.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-source_double.lo `test -f 'source_double.c' || echo '$(srcdir)/'`source_double.c + +lib-spew.lo: spew.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-spew.lo -MD -MP -MF $(DEPDIR)/lib-spew.Tpo -c -o lib-spew.lo `test -f 'spew.c' || echo '$(srcdir)/'`spew.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-spew.Tpo $(DEPDIR)/lib-spew.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='spew.c' object='lib-spew.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-spew.lo `test -f 'spew.c' || echo '$(srcdir)/'`spew.c + +lib-term_color.lo: term_color.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-term_color.lo -MD -MP -MF $(DEPDIR)/lib-term_color.Tpo -c -o lib-term_color.lo `test -f 'term_color.c' || echo '$(srcdir)/'`term_color.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-term_color.Tpo $(DEPDIR)/lib-term_color.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='term_color.c' object='lib-term_color.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-term_color.lo `test -f 'term_color.c' || echo '$(srcdir)/'`term_color.c + +lib-win.lo: win.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-win.lo -MD -MP -MF $(DEPDIR)/lib-win.Tpo -c -o lib-win.lo `test -f 'win.c' || echo '$(srcdir)/'`win.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-win.Tpo $(DEPDIR)/lib-win.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='win.c' object='lib-win.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-win.lo `test -f 'win.c' || echo '$(srcdir)/'`win.c + +lib-exec_lib.lo: exec_lib.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-exec_lib.lo -MD -MP -MF $(DEPDIR)/lib-exec_lib.Tpo -c -o lib-exec_lib.lo `test -f 'exec_lib.c' || echo '$(srcdir)/'`exec_lib.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-exec_lib.Tpo $(DEPDIR)/lib-exec_lib.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exec_lib.c' object='lib-exec_lib.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-exec_lib.lo `test -f 'exec_lib.c' || echo '$(srcdir)/'`exec_lib.c + +lib-debug_spew.lo: debug_spew.c +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -MT lib-debug_spew.lo -MD -MP -MF $(DEPDIR)/lib-debug_spew.Tpo -c -o lib-debug_spew.lo `test -f 'debug_spew.c' || echo '$(srcdir)/'`debug_spew.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/lib-debug_spew.Tpo $(DEPDIR)/lib-debug_spew.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='debug_spew.c' object='lib-debug_spew.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libquickplot_la_CFLAGS) $(CFLAGS) -c -o lib-debug_spew.lo `test -f 'debug_spew.c' || echo '$(srcdir)/'`debug_spew.c + +qp-qp_main.o: qp_main.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CFLAGS) $(CFLAGS) -MT qp-qp_main.o -MD -MP -MF $(DEPDIR)/qp-qp_main.Tpo -c -o qp-qp_main.o `test -f 'qp_main.c' || echo '$(srcdir)/'`qp_main.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/qp-qp_main.Tpo $(DEPDIR)/qp-qp_main.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='qp_main.c' object='qp-qp_main.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CFLAGS) $(CFLAGS) -c -o qp-qp_main.o `test -f 'qp_main.c' || echo '$(srcdir)/'`qp_main.c + +qp-qp_main.obj: qp_main.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CFLAGS) $(CFLAGS) -MT qp-qp_main.obj -MD -MP -MF $(DEPDIR)/qp-qp_main.Tpo -c -o qp-qp_main.obj `if test -f 'qp_main.c'; then $(CYGPATH_W) 'qp_main.c'; else $(CYGPATH_W) '$(srcdir)/qp_main.c'; fi` +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/qp-qp_main.Tpo $(DEPDIR)/qp-qp_main.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='qp_main.c' object='qp-qp_main.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quickplot_CFLAGS) $(CFLAGS) -c -o qp-qp_main.obj `if test -f 'qp_main.c'; then $(CYGPATH_W) 'qp_main.c'; else $(CYGPATH_W) '$(srcdir)/qp_main.c'; fi` + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool config.lt +install-man1: $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" + @list=''; test -n "$(man1dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ + fi; \ + done; \ + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ + done; } + +uninstall-man1: + @$(NORMAL_UNINSTALL) + @list=''; test -n "$(man1dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } install-htmlDATA: $(html_DATA) @$(NORMAL_INSTALL) test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)" - @list='$(html_DATA)'; for p in $$list; do \ + @list='$(html_DATA)'; test -n "$(htmldir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(htmlDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ - $(htmlDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \ done uninstall-htmlDATA: @$(NORMAL_UNINSTALL) - @list='$(html_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(htmldir)/$$f'"; \ - rm -f "$(DESTDIR)$(htmldir)/$$f"; \ - done -install-iconDATA: $(icon_DATA) + @list='$(html_DATA)'; test -n "$(htmldir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(htmldir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(htmldir)" && rm -f $$files +install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) - test -z "$(icondir)" || $(MKDIR_P) "$(DESTDIR)$(icondir)" - @list='$(icon_DATA)'; for p in $$list; do \ + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(iconDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(icondir)/$$f'"; \ - $(iconDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(icondir)/$$f"; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done -uninstall-iconDATA: +uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) - @list='$(icon_DATA)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(icondir)/$$f'"; \ - rm -f "$(DESTDIR)$(icondir)/$$f"; \ + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files +install-quickplotincludeHEADERS: $(quickplotinclude_HEADERS) + @$(NORMAL_INSTALL) + test -z "$(quickplotincludedir)" || $(MKDIR_P) "$(DESTDIR)$(quickplotincludedir)" + @list='$(quickplotinclude_HEADERS)'; test -n "$(quickplotincludedir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(quickplotincludedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(quickplotincludedir)" || exit $$?; \ done +uninstall-quickplotincludeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(quickplotinclude_HEADERS)'; test -n "$(quickplotincludedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(quickplotincludedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(quickplotincludedir)" && rm -f $$files + 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; nonemtpy = 1; } \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ + set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ @@ -1039,36 +958,54 @@ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - tags=; \ 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; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ + test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique + $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) + @list='$(MANS)'; if test -n "$$list"; then \ + list=`for p in $$list; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ + if test -n "$$list" && \ + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ + echo " typically \`make maintainer-clean' will remove them" >&2; \ + exit 1; \ + else :; fi; \ + else :; fi $(am__remove_distdir) - test -d $(distdir) || mkdir $(distdir) + test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ @@ -1084,21 +1021,30 @@ 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 "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -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) + || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) @@ -1109,6 +1055,9 @@ dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z @@ -1126,6 +1075,7 @@ dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then @@ -1134,15 +1084,17 @@ distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac @@ -1150,9 +1102,11 @@ mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ @@ -1174,13 +1128,15 @@ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 $(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) \ + @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ @@ -1200,9 +1156,12 @@ check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am -all-am: Makefile $(PROGRAMS) $(DATA) config.h +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(MANS) $(DATA) $(HEADERS) \ + config.h +install-binPROGRAMS: install-libLTLIBRARIES + installdirs: - for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(htmldir)" "$(DESTDIR)$(icondir)"; do \ + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(htmldir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(quickplotincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) @@ -1226,21 +1185,25 @@ distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +@HAVE_LOCAL_SCREENSHOTS_FALSE@install-exec-hook: clean: clean-am -clean-am: clean-binPROGRAMS clean-generic mostlyclean-am +clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ + clean-libtool clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ - distclean-hdr distclean-tags + distclean-hdr distclean-libtool distclean-tags dvi: dvi-am @@ -1248,26 +1211,40 @@ html: html-am +html-am: + info: info-am info-am: -install-data-am: install-htmlDATA install-iconDATA +install-data-am: install-htmlDATA install-man install-pkgconfigDATA \ + install-quickplotincludeHEADERS install-dvi: install-dvi-am -install-exec-am: install-binPROGRAMS +install-dvi-am: +install-exec-am: install-binPROGRAMS install-libLTLIBRARIES + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-exec-hook install-html: install-html-am +install-html-am: + install-info: install-info-am -install-man: +install-info-am: + +install-man: install-man1 install-pdf: install-pdf-am +install-pdf-am: + install-ps: install-ps-am +install-ps-am: + installcheck-am: maintainer-clean: maintainer-clean-am @@ -1279,7 +1256,8 @@ mostlyclean: mostlyclean-am -mostlyclean-am: mostlyclean-compile mostlyclean-generic +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool pdf: pdf-am @@ -1290,90 +1268,188 @@ ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-htmlDATA \ - uninstall-iconDATA + uninstall-libLTLIBRARIES uninstall-man uninstall-pkgconfigDATA \ + uninstall-quickplotincludeHEADERS -.MAKE: install-am install-strip +uninstall-man: uninstall-man1 + +.MAKE: all check install install-am install-exec-am install-strip .PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ - clean-binPROGRAMS clean-generic ctags dist dist-all dist-bzip2 \ - dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \ - distclean distclean-compile distclean-generic distclean-hdr \ + clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ + clean-libtool clean-noinstPROGRAMS ctags dist dist-all \ + dist-bzip2 dist-gzip dist-hook dist-lzma dist-shar dist-tarZ \ + dist-xz dist-zip distcheck distclean distclean-compile \ + distclean-generic distclean-hdr distclean-libtool \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-htmlDATA install-iconDATA install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-binPROGRAMS uninstall-htmlDATA \ - uninstall-iconDATA - - -.png.xpm: - convert $< $@ - mv $@ $@.in - sed -e 's/static.*\schar/static const char/g' $@.in > $@ - rm $@.in - -.html_html.cpp: - cat $< | ./html2CString $@ - -.html.in.html: - @echo "making $@ from $<" - @echo "" > $@ - @echo "" >> $@ - @echo >> $@ - cat $< | sed \ - -e "s/%PACKAGE%/$(PACKAGE)/g" \ - -e "s/%TARNAME%/$(TARNAME)/g" \ - -e "s^%HOMEPAGE%^$(HOMEPAGE)^g" \ - -e "s/%VERSION%/$(VERSION)/g" \ - -e "s^%RELEASE_DATE%^$(RELEASE_DATE)^g" \ - >> $@ - @echo "

    " >> $@ - @if [ $@ != index.html ]; then\ - echo "Top
    " >> $@ ;\ - fi - @echo "Quickplot" >> $@ - @echo "   version ${VERSION}    " >> $@ - @echo "release date: $(RELEASE_DATE)" >> $@ - @echo "
    " >> $@ - @echo "" >> $@ - @echo "" >> $@ - -.PHONY: homepage - -File_readSndInt.cpp: File_readSndShort.cpp - rm -f $@ - echo "// $@ Generated from $(MAKE) and $<" >> $@ - echo "#define TYPE_INT" >> $@ - cat $< >> $@ - -File_readSndFloat.cpp: File_readSndShort.cpp - rm -f $@ - echo "// $@ Generated from $(MAKE) and $<" >> $@ - echo "#define TYPE_FLOAT" >> $@ - cat $< >> $@ - -File_readSndDouble.cpp: File_readSndShort.cpp - rm -f $@ - echo "// $@ Generated from $(MAKE) and $<" >> $@ - echo "#define TYPE_DOUBLE" >> $@ - cat $< >> $@ - -homepage: $(homepagefiles) - tar -cjf quickplot_homepage-${VERSION}.tar.bz2 $(homepagefiles) - -quickplot-${VERSION}.tar.bz2.md5 quickplot-${VERSION}.tar.gz.md5 md5: \ - quickplot-${VERSION}.tar.bz2 quickplot-${VERSION}.tar.gz - md5sum quickplot-${VERSION}.tar.bz2 > quickplot-${VERSION}.tar.bz2.md5 - md5sum quickplot-${VERSION}.tar.gz > quickplot-${VERSION}.tar.gz.md5 + install-dvi-am install-exec install-exec-am install-exec-hook \ + install-html install-html-am install-htmlDATA install-info \ + install-info-am install-libLTLIBRARIES install-man \ + install-man1 install-pdf install-pdf-am install-pkgconfigDATA \ + install-ps install-ps-am install-quickplotincludeHEADERS \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS uninstall-htmlDATA \ + uninstall-libLTLIBRARIES uninstall-man uninstall-man1 \ + uninstall-pkgconfigDATA uninstall-quickplotincludeHEADERS + + +.PHONY: hash md5 sha1 sha256 sha512 + +# TODO: There should be a better way to find installed +# from the running quickplot program. +paths.h: + echo "/* This file was generated using $(MAKE) */" > $@ + echo >> $@ + echo "#define HTMLDIR \"$(htmldir)\"" >> $@ + echo "#define DOCDIR \"$(docdir)\"" >> $@ + +parse_args.h: mk_options + ./mk_options -a > $@ +app_op_declare.h: mk_options + ./mk_options -I > $@ +app_op_init.h: mk_options + ./mk_options -i > $@ + +quickplot.1: quickplot.1.head quickplot.1.tail mk_options + echo ".\\\" Do not edit this file" > $@ + echo ".\\\" This file was generated using $(MAKE)" >> $@ + cat quickplot.1.head >> $@ + ./mk_options -m >> $@ + cat quickplot.1.tail >> $@ + echo ".\\\" Do not edit this file" >> $@ + echo ".\\\" This file was generated using $(MAKE)" >> $@ + +index.html: index.htm + sed $<\ + -e "s!@SCREENSHOT_URL@!$(SCREENSHOT_URL)!g"\ + -e 's!@Top@!\ Top\ !'\ + -e 's!@About@!\ About\ !'\ + -e 's!@Help@!\ Help\ !'\ + > $@ + +# We cannot have configure replace @release_date@ and @repo_version@ +# because we need to generate about.html for two cases, one for +# dist and one for installing, and the values for +# @release_date@ and @repo_version@ differ for those two cases +about.html: $(ABOUT_HTML_DEP) + repo_version="`${top_srcdir}/repo_version.sh ${top_srcdir}/REPO_VERSION`";\ + rel_date="`${top_srcdir}/release_date.sh ${top_srcdir}/RELEASE_DATE`"; sed $<\ + -e "s/@release_date@/$$rel_date/g"\ + -e "s/@repo_version@/$$repo_version/g"\ + -e 's!@Top@!\ Top\ !'\ + -e 's!@About@!\ About\ !'\ + -e 's!@Help@!\ Help\ !'\ + > $@ + +help.html: help_head.htm mk_options help_tail.htm + cat help_head.htm > $@ + ./mk_options -t >> $@ + cat help_tail.htm | sed\ + -e 's!@Top@!\ Top\ !'\ + -e 's!@About@!\ About\ !'\ + -e 's!@Help@!\ Help\ !'\ + >> $@ + +@HAVE_LOCAL_SCREENSHOTS_TRUE@install-exec-hook: +@HAVE_LOCAL_SCREENSHOTS_TRUE@ mkdir -p $(htmldir) +@HAVE_LOCAL_SCREENSHOTS_TRUE@ cp ScreenShot_* _ScreenShot_* $(htmldir) + +@HAVE_LOCAL_SCREENSHOTS_TRUE@thumbs.htm: mk_thumbs.htm.bash +@HAVE_LOCAL_SCREENSHOTS_TRUE@ ./mk_thumbs.htm.bash > $@ + +@HAVE_LOCAL_SCREENSHOTS_TRUE@screenshots.html: screenshots.html.in style.css thumbs.htm footer.htm +@HAVE_LOCAL_SCREENSHOTS_TRUE@ ./mk_screenshots.html.bash < $< > $@ + +@HAVE_LOCAL_SCREENSHOTS_TRUE@screenshots: +@HAVE_LOCAL_SCREENSHOTS_TRUE@ rm -f screenshots.html thumbs.htm +@HAVE_LOCAL_SCREENSHOTS_TRUE@ $(MAKE) screenshots.html + +help_head.htm: style.css +help_tail.htm: footer.htm +index.htm: style.css footer.htm +about.htm: style.css footer.htm + +@USE_CONVERT_TRUE@.png.xpm: +@USE_CONVERT_TRUE@ convert $< $@ +@USE_CONVERT_TRUE@ mv $@ $@.in +@USE_CONVERT_TRUE@ sed -e 's/static.*\schar/static const char/g' $@.in > $@ +@USE_CONVERT_TRUE@ rm $@.in + +@USE_LYNX_TRUE@.html.txt: +@USE_LYNX_TRUE@ echo > $@ +@USE_LYNX_TRUE@ dir=`pwd` && lynx -dump $< | \ +@USE_LYNX_TRUE@sed -e "s!//localhost$$dir/!!g" >> $@ + +# Add the repository revision number to the dist. +# Fix any dist files that have RELEASE_DATE in them, like help.txt +# Remove generated dist files that auto-tools is stupid about. +# Remove the out-of-date hash files. +dist-hook: + if test -f RELEASE_DATE ; then mv RELEASE_DATE RELEASE_DATE.save ; fi + if test -f REPO_VERSION ; then mv REPO_VERSION REPO_VERSION.save ; fi + ${top_srcdir}/repo_version.sh ${top_srcdir}/REPO_VERSION > REPO_VERSION.tmp + mv REPO_VERSION.tmp REPO_VERSION + date -u +"%d %b %G %H:%M:%S UTC" > RELEASE_DATE + echo $(VERSION) > last_release + cat RELEASE_DATE REPO_VERSION >> last_release +@USE_LYNX_TRUE@ rm -f about.html about.htm about.txt +@USE_LYNX_TRUE@ $(MAKE) about.txt +@USE_LYNX_TRUE@ mv REPO_VERSION RELEASE_DATE about.txt $(distdir) +@USE_LYNX_TRUE@ rm -f about.html about.htm +@USE_LYNX_TRUE@ $(MAKE) about.txt +@USE_LYNX_FALSE@ mv REPO_VERSION RELEASE_DATE $(distdir) + if test -f REPO_VERSION.save ; then mv REPO_VERSION.save REPO_VERSION ; fi + if test -f RELEASE_DATE.save ; then mv RELEASE_DATE.save RELEASE_DATE ; fi + cd $(distdir) && rm -f $(DISTCLEANFILES) config.h + rm -f $(gzfile).md5 $(gzfile).sha* $(bz2file).md5 $(bz2file).sha* $(xzfile).md5 $(xzfile).sha* + +hash: md5 sha1 sha256 sha512 +md5: $(gzfile).md5 $(bz2file).md5 $(xzfile).md5 +sha1: $(gzfile).sha1 $(bz2file).sha1 $(xzfile).sha1 +sha256: $(gzfile).sha256 $(bz2file).sha256 $(xzfile).sha256 +sha512: $(gzfile).sha512 $(bz2file).sha512 $(xzfile).sha512 + +.gz.gz.md5: + md5sum $< > $@ +.gz.gz.sha1: + sha1sum $< > $@ +.gz.gz.sha256: + sha256sum $< > $@ +.gz.gz.sha512: + sha512sum $< > $@ + +.bz2.bz2.md5: + md5sum $< > $@ +.bz2.bz2.sha1: + sha1sum $< > $@ +.bz2.bz2.sha256: + sha256sum $< > $@ +.bz2.bz2.sha512: + sha512sum $< > $@ + +.xz.xz.md5: + md5sum $< > $@ +.xz.xz.sha1: + sha1sum $< > $@ +.xz.xz.sha256: + sha256sum $< > $@ +.xz.xz.sha512: + sha512sum $< > $@ + +$(gzfile): + $(MAKE) dist-gzip + +$(bz2file): + $(MAKE) dist-bzip2 + +$(xzfile): + $(MAKE) dist-xz -mingw_config.h: config.h - cp $^ $@ # 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: diff -Nru quickplot-0.8.15/mingw_config.h quickplot-0.9.11/mingw_config.h --- quickplot-0.8.15/mingw_config.h 2009-03-09 01:22:09.000000000 +0000 +++ quickplot-0.9.11/mingw_config.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,49 +0,0 @@ -/* config.h. Generated from config.h.in by configure. */ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* The date on which the Quickplot (quickplot) was configured by running the - GNU Autotools autoconf configure script. */ -#define CONFIGURE_DATE "Sun Mar 8 21:18:58 EDT 2009" - -/* The Quickplot (quickplot) home-page. */ -#define HOMEPAGE "http://quickplot.sourceforge.net/" - -/* Name of package */ -#define PACKAGE "quickplot" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "lanceman@users.sourceforge.net" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "Quickplot" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "Quickplot 0.8.15" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "quickplot" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "0.8.15" - -/* The OS or architecture which was output from `uname' when configure ran. */ -/* #undef QP_ARCH_DARWIN */ - -/* The OS or architecture which was output from `uname' when configure ran. */ -/* #undef QP_ARCH_IRIX */ - -/* The OS or architecture which was output from `uname' when configure ran. */ -#define QP_ARCH_LINUX - -/* The date on which the Quickplot (quickplot) release was generated. */ -#define RELEASE_DATE "Sun Mar 8 16:19:23 EDT 2009" - -/* The version of libsndfile we're linking Quickplot with. */ -#define SNDFILE_VERSION "1.0.17" - -/* If we are linking with the libsndfile package USE_LIBSNDFILE will be - defined. */ -#define USE_LIBSNDFILE - -/* Version number of package */ -#define VERSION "0.8.15" diff -Nru quickplot-0.8.15/mingw.mak quickplot-0.9.11/mingw.mak --- quickplot-0.8.15/mingw.mak 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/mingw.mak 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -all-before: config.h - -config.h: mingw_config.h - cp mingw_config.h config.h - diff -Nru quickplot-0.8.15/missing quickplot-0.9.11/missing --- quickplot-0.8.15/missing 2008-05-03 02:38:24.000000000 +0000 +++ quickplot-0.9.11/missing 2011-12-30 06:16:54.000000000 +0000 @@ -1,10 +1,10 @@ #! /bin/sh # Common stub for a few missing GNU programs while installing. -scriptversion=2006-05-10.23 +scriptversion=2009-04-28.21; # UTC -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 -# Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, +# 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify @@ -18,9 +18,7 @@ # 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. +# along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a @@ -89,6 +87,9 @@ tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and +\`g' are ignored when checking the name. + Send bug reports to ." exit $? ;; @@ -106,15 +107,22 @@ esac +# normalize program name to check for. +program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + # 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). +# the program). This is about non-GNU programs, so use $1 not +# $program. case $1 in - lex|yacc) + lex*|yacc*) # Not GNU programs, they don't have --version. ;; - tar) + tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 @@ -138,7 +146,7 @@ # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. -case $1 in +case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if @@ -148,7 +156,7 @@ touch aclocal.m4 ;; - autoconf) + autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the @@ -157,7 +165,7 @@ touch configure ;; - autoheader) + autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want @@ -187,7 +195,7 @@ while read f; do touch "$f"; done ;; - autom4te) + autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the @@ -210,7 +218,7 @@ fi ;; - bison|yacc) + 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 @@ -240,7 +248,7 @@ fi ;; - lex|flex) + 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 @@ -263,7 +271,7 @@ fi ;; - help2man) + 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 @@ -277,11 +285,11 @@ else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" - exit 1 + exit $? fi ;; - makeinfo) + 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 @@ -310,7 +318,7 @@ touch $file ;; - tar) + tar*) shift # We have already tried tar in the generic part. @@ -363,5 +371,6 @@ # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: diff -Nru quickplot-0.8.15/mk_options.c quickplot-0.9.11/mk_options.c --- quickplot-0.8.15/mk_options.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/mk_options.c 2011-12-27 16:11:44.000000000 +0000 @@ -0,0 +1,1795 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +/* Quickplot is turning out to have so many command + * line options that we are automating the coding and + * documenting of them using this C code. + * This code is not compiled into Quickplot. The + * executable from this code is used to generate code + * that goes into Quickplot. + * We will try to make this the only place with these + * argument option strings are listed, so that we can + * change them in one place, or better yet, not change + * them. + * + * One negative to this method is that many other source + * files depend on this one file and so when you edit + * this one file many other files will need to be + * recompiled. Reminds me of using the QT moc + * preprocessor and why I do not like QT. This is not + * that bad. */ + +#include +#include +#include +#include +#include + +#include "config.h" +#include "debug.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + +struct qp_option +{ + /* 0 = do not call function 1 or 2 = call function 2 = function will exit */ + int pass[2]; /* pass[0] == 1st pass pass[1] == 2nd pass */ + char *long_op; /* initialization code is generated based this string */ + char *short_op; + char *arg; /* if arg == "[STRING]" then it is optional */ + char *description; /* you can put @CONFIG_STUFF@ in this string */ + /* Set these two to make code that initializes and declares a + * struct qp_app variable. */ + char *op_init_value; /* like "0" for app->op_my_long_option = 0; */ + char *op_type; /* like "int" for int op_my_long_option; in the struct qp_app */ +}; + + +/* description special sequences that make HTML markup + * + * "**" = start list
      + * "##" =
    • + * "&&" = end list
    + * + * " " = "  " + * + * "--*" = "--*" where --* is a long_op + * + * "::" = "" and will not add '\n' until @@ + * "@@" = "" + */ + + +/* int tri values are auto = -1 on or yes = 1 no or off = 0 */ + + +static +struct qp_option options[] = +{ +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,1}, "", 0, "FILE", "read data from file FILE. If FILE is - (dash) then " + "standard input will be read. See also ::--file@@ and " + "::--pipe@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {2,0}, "--about", "-a", 0, "display introductory information about Quickplot in a " + "browser and exit", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--auto-scale", "-A", 0, "automatically select the X and Y scales for graphs " + "containing more than one plot. This is the default. " + "See also ::--same-x-scale@@, ::--same-y-scale@@, " + "::--same-scale@@ ::--different-scale@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,1}, "--background-color", "-C", "RGBA", "set the color of the graph background. RGBA may be any " + "string that GTK+ can parse into a RGB or RGBA color. " + "For examples ::--background-color='rgba(0,0,255,0.5)'@@ " + "will make translucent blue, and ::-C '#050'@@ will make " + "a dark green.", 0, "struct " + "qp_colora" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--border", "-b", 0, "add a border to main window. This is the default. See " + "also ::--no-border@@.", "TRUE", "gboolean" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--buttons", 0, 0, "show the button bar in the main window. This is the " + "default. See also ::--no-buttons@@.", "1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--cairo-draw", "-c", 0, "draw graphs using the Cairo API. Cairo drawing may be " + "slower, but you get translucent colors and " + "anti-aliasing in all aspects of the graph and in saved " + "image files. See also ::--x11-draw@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--default-graph", "-D", 0, "create the default graph for the current file and turn " + "default graphing for future files read. " + "If you give a ::--graph@@ or ::--graph-file@@ " + "after this option you will generate an additional " + "graph. A default graph will be made each " + "time this option is encountered, so this can be used to " + "control when, in the sequence of command line options, " + "graphs are made. See also ::--no-default-graph@@.", "1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--different-scale", "-d", 0, "graphs with more than one plot will have different " + "scales if the extreme values in each plot are not all " + "the same. See also ::--same-scale@@, ::--same-x-scale@@ " + "and ::--same-y-scale@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--file", "-f", "FILE", "read data from file FILE. If FILE is - (dash) then " + "standard input will be read. See also ::--pipe@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--fullscreen", "-F", 0, "make the main window fullscreen. See also " + "::--no-fullscreen@@ and ::--maximize@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--gaps", 0, 0, "interpret NAN, -NAN, INF, -INF, and double overflow " + "numbers as a gap in the plot, and don't draw a " + "connecting line to adjacent non-gap points. " + "This is the default. See also ::--no-gaps@@.", "1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ + +{ {0,1}, "--geometry", 0, "GEO", "specify the position and size of the main window. To " + "set the geometry back to the default just set GEO to " + "NONE. Example ::--geometry=1000x300-0+30@@", 0, "cairo_rec" + "tangle_in" + "t_t" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--graph", "-g", "LIST", "make a graph with plots ::LIST@@. " + "The ::LIST@@ is of the form ::\"x0 y0 x1 y1 x2 " + "y2 ...\"@@. For example: ::--graph \"0 1 3 4\"@@ will " + "make two plots in a graph. It will plot channel 1 vs " + "channel 0 and channel 4 vs channel 3 in the same graph. " + " Data channels are numbered, starting at 0, in the " + "order that they are created as files are read. A " + "separate graph tab will be created for each ::--graph@@ " + "option given. This ::--graph@@ option must be after " + "the file loading options that load the channels that it " + "lists to plot. See also ::--graph-file@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--graph-file", "-G", "LIST", "make a graph with plots ::LIST@@. " + "The ::LIST@@ is of the form ::\"x0 y0 x1 y1 x2 " + "y2 ...\"@@. Example: ::--graph-file \"0 1 3 4\"@@ will " + "make two plots in a graph. It will plot channel 1 vs " + "channel 0 and channel 4 vs channel 3 in the same graph. " + " A separate graph tab will be created for each " + "::--graph-file@@ option given. This is like the " + "::--graph@@ option except that the channel numbers " + "start at zero for the last file read. " + "They are relative channel numbers. So channel numbers " + "for ::---graph-file@@ may be negative to refer to " + "channels that came from files before the last file. " + "This is handy if you load a lots of files and lose count " + "of the number of channels loaded in each file.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--grid", 0, 0, "draw a grid with the graph. This is the default. See " + "also ::--no-grid@@.", "1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--grid-font", "-T", "FONT", "set the font used to in the grid label numbers. " + "Example: ::--grid-font='Sans Bold 12'@@. The default " + "grid font is \"Sans 10\".", "qp_strdu" + "p(\"Sans" + " 10\")", "char *" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,1}, "--grid-line-color", 0, "RGBA", "set the graph grid lines color. RGBA may be any string " + "that GTK+ can parse into a RGB or RGBA color. For " + "example ::--grid_line_color='rgba(255,0,0,0.5)'@@ will " + "make a translucent red.", 0, "struct " + "qp_colora" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--grid-line-width", "-W", "PIXELS", "set the width of the grid lines if there are any", "4", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--grid-numbers", 0, 0, "show grid numbers. This is the default. The grid must " + "be showing to show grid numbers too. See also " + "::--no-grid-numbers@@.", "1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,1}, "--grid-text-color", 0, "RGBA", "set the graph grid text color. RGBA may be any string " + "that GTK+ can parse into a RGB or RGBA color. For " + "example ::--grid_text_color='rgba(0,255,0,0.5)'@@ will " + "make translucent green.", 0, "struct " + "qp_colora" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--grid-x-space", "-X", "PIXELS", "set the maximum x space between vertical grid lines. " + "The minimum will be about half this. This distance " + "varies as the scale changes due to zooming. This " + "distance cannot be fixed due to the way Quickplot " + "scales your graphs and always picks reasonable grid " + "line spacing. See also ::--grid-x-space@@.", "220", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--grid-y-space", "-Y", "PIXELS", "set the maximum y space between horizontal grid lines. " + "See also ::--grid-x-space@@ above.", "190", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {2,0}, "--gtk-version", 0, 0, "print the version of GTK+ that Quickplot was built with " + "and then exit", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--gui", 0, 0, "show the menu bar, button bar, tabs bar, and the status " + "bar. This is the default. See also ::--no-gui@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {2,0}, "--help", "-h", 0, "display help in a browser and exit", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--label-separator", "-p", "STR", "specifies the label separator string STR if labels are " + "read in from the top of a text data plot file. The " + "default value of ::STR@@ is ::\" \"@@ (a single space). " + " See option: ::--labels@@.", "qp_strdup" + "(\" \")", "char *" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--labels", "-L", 0, "read labels from the first line of a text file that " + "is not skipped. See also: ::--skip-lines@@, " + "::--label-separator@@ and ::--no-labels@@.", "0", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {2,0}, "--libsndfile-version", 0, 0, "print the version of libsndfile that Quickplot was " + "built with and then exit", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--line-width", "-I", "PIXELS", "specify the plot line widths in pixels. May be set to " + "AUTO to let Quickplot select the line width based on " + "the plot point density. AUTO is the default.", "-1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,1}, "--linear-channel", "-l", "[OPTS]", "::OPTS@@ are ::START|[STEP]@@. " + "This option prepends a linear series channel to the " + "file being read. ** ## ::START@@ " + "set the first value in the sequence to ::START@@. The " + "default ::START@@ value is ::0@@. ## ::STEP@@ " + "set the sequence step size to ::STEP@@. " + "The default ::STEP@@ is 1. && " + "There must be a ::START@@ before ::STEP@@. " + "For example: ::--linear-channel='100 0.2'@@ will make " + "a linear channel that starts at 100 and steps 0.2. " + "Sound files will always have a " + "linear channel that contains the time prepended. Using " + "this option with a sound file would prepend an " + "additional channel. Any file loaded that contains just " + "a single channel will automatically have a channel " + "prepended. Using this option with a single channel file " + "will not prepend an additional channel, but will let you " + "set the start and step values for that prepended " + "channel. See also ::--no-linear-channel@@.", "NULL", "struct " + "qp_channe" + "l *" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--lines", "-j", "Y|N|A", " ** ## ::Y@@ yes show lines ## ::N@@ no don't show lines. " + "Same as ::--no-lines@@. ## ::A@@ auto, be smart about " + "it. This is the default. &&", "-1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--maximize", "-m", 0, "maximize the main window. See also ::--no-maximize@@ " + "and ::--fullscreen@@.", "0", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--menubar", 0, 0, "show the menu bar. This is the default. See also " + "::--menubar@@.", "1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--new-window", "-w", 0, "make a new main window for each graph", "0", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-border", "-B", 0, "display graphs main windows with no borders", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-buttons", 0, 0, "hide the button bar in the main window. See also " + "::--buttons@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-default-graph", "-U", 0, "stop making the default graph for each file loaded. See " + "also ::--default-graph@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-fullscreen", 0, 0, "don't make the main window fullscreen. This is the " + "default. See also ::--fullscreen@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-gaps", "-J", 0, "draw a line across NAN (-NAN, INF, -INF and overflow " + "double) values if there are finite values on both " + "sides. See also ::--gaps@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ + +{ {0,1}, "--no-grid", "-H", 0, "don't draw graph grid lines in the graph. See also " + "::--grid@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-grid-numbers", 0, 0, "don't show grid numbers. See also ::--grid-numbers@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-gui", "-z", 0, "don't show the menu bar, button bar, tabs bar, and " + "status bar. See also ::--gui@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-labels", "-Q", 0, "don't read channel labels from the file. This is " + "the deafult. See also ::--labels@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-linear-channel", "-k", 0, "turn off adding a linear channel for up coming files. " + "See also ::--linear-channel@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-lines", "-i", 0, "plot without drawing lines in the graph. See also " + "--lines.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-maximize", 0, 0, "don't maximize the main window. This is the default. " + "See also ::--maximize@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-menubar", "-M", 0, "don't display the menu bar in the main window. See " + "also ::--menubar@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-new-window", "-Z", 0, "don't make a new main window for the graph. This is " + "the default. See also ::--new-window@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,0}, "--no-pipe", "-N", 0, "don't read data in from standard input even if there is " + "input to read. See also ::--pipe@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-points", "-o", 0, "plot without drawing points in the graph. See also " + "--points.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,0}, "--no-readline", 0, 0, "don't use GNU readline with the Quickplot command " + "shell if you run with the ::--shell@@ option. This " + "option has no effect if Quickplot is not built with " + "GNU readline.", "0", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ + +{ {0,1}, "--no-shape", 0, 0, "turn off the use of the X11 shape extension. See also " + "::--shape@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-statusbar", 0, 0, "hide the status bar in the main window. See also " + "::--statusbar@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--no-tabs", 0, 0, "don't show the graph tabs in the main window. See also " + "::--tabs@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--number-of-plots", "-n", "NUM", "set the default maximum number of plots for each graph " + "to NUM", 0, "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,1}, "--pipe", "-P", 0, "read graph data from standard input. By default " + "Quickplot " + "looks for data from standard input and stops looking if " + "no data is found in some short amount of time. This " + "option will cause Quickplot to wait for standard input " + "indefinitely. If you would like to type data in from " + "the terminal use ::--pipe@@. This option is the same " + "as ::--file=-@@.", "-1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--point-size", "-O", "PIXELS", "start Quickplot using plot point size ::PIXELS@@ wide " + "in pixels. This may be set to ::AUTO@@ to have " + "quickplot automatically set the point size depending on " + "the point density that is in graph. ::AUTO@@ is the " + "default.", "-1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--points", 0, 0, "show points in the plots in the graph. This is the " + "default.", "1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {2,0}, "--print-about", 0, 0, "prints the About document to standard output andthen " + "exits. Use option ::--about@@ to display an HTML " + "version of the Quickplot About information.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {2,0}, "--print-help", 0, 0, "prints this Help document as ASCII text to standard " + "output and then exits. Use option ::--help@@ for " + "displaying an HTML version of this help.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,1}, "--read-pipe-here", "-R", 0, "this is a place holder that tells Quickplot when to " + "read the data from standard input. This is intended to " + "give the option of telling Quickplot when to read " + "standard input when Quickplot automatically determines " + "whether to read standard input or not. See options " + "::--file@@, ::--pipe@@ and ::--no-pipe@@.", "0", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--same-scale", "-s", 0, "plot all plots in the same graph scale. See also " + "::--different-scale@@, ::--same-x-scale@@ and " + "::--same-y-scale@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--same-x-scale", "-x", "Y|N|A", "use in place of ::--same-scale@@ or ::--auto-scale@@ " + "for finer control over how the x values of the plots " + "are scaled when you have more than one plot on a graph " + "** ## ::Y@@ yes same x scale ## ::N@@ no different x " + "scales ## ::A@@ auto, be smart about it. This is the " + "default. && See also ::--same-y-scale@@.", "-1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--same-y-scale", "-y", "Y|N|A", "use in place of ::--same-scale@@ or ::--auto-scale@@ " + "for finer control over how the x values of the plots " + "are scaled when you have more than one plot on a graph " + "** ## ::Y@@ yes same y scale ## ::N@@ no different y " + "scales ## ::A@@ auto, be smart about it. This is the " + "default. && See also ::--same-x-scale@@. ", "-1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--shape", 0, 0, "make graphs see through. This is insanely cool. It " + "uses the X11 shape extension which was made famous by " + "xeyes. The X11 shape extension may be a little flashy " + "on some systems. Try using ::--shape@@ with the " + "::--no-gui@@, ::--no-grid@@, and ::--no-border@@ " + "options to make a floating graph on your display. " + "The use of the X11 shape extension is a property of the " + "main window, not each graph tab. This option may not " + "work well with fullscreen view. This will slow down " + "graph drawing considerably. You can toggle this on and " + "off with the ::x@@ key. See option ::--no-shape@@.", "0", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--shell", "-e", 0, "run a Quickplot command shell that reads commands from " + "standard input and writes out to standard output. The " + "default is no shell and standard input will be read as " + "graph data. This option will override ::--pipe@@ and " + "like options. If you want to have a Quickplot command " + "shell and read graph data on a pipe you can prefix the " + "graph data with the \"read\" command. You can also " + "connect a any number of Quickplot command shells to a " + "running Quickplot program with the program " + "::quickplot_shell@@. THIS IS NOT FUNCTIONING YET.", "NULL", "struct " + "qp_shell" + " *" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,0}, "--silent", 0, 0, "don't spew even on error. The ::--silent@@ option will " + "override the effect of the ::--verbose@@ option.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--skip-lines", "-S", "NUM", "skip the first ::NUM@@ lines when reading the file. " + "This applies of all types of files that quickplot can " + "read. Set ::NUM@@ to zero to stop skipping lines.", + /* TODO: make skip list not just n lines */ "0", "size_t" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--statusbar", 0, 0, "show the status bar below the graph. This is the " + "default. See also ::--no-statusbar@@.", "1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--tabs", 0, 0, "show the graph tabs. This is the default. See also " + "::--no-tabs@@.", "1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {1,0}, "--verbose", "-v", 0, "spew more to standard output. See also ::--silent@@.", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {2,0}, "--version", "-V", 0, "print the Quickplot version number and then exit " + "returning 0 exit status", 0, 0 }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,1}, "--x11-draw", "-q", 0, "draw points and lines using the X11 API. This is the " + "default. Drawing may be much faster than with Cairo, " + "but there will be no translucent colors and no " + "anti-aliasing in the drawing of the plot lines and " + "points. There will be translucent colors and " + "anti-aliasing in the background and grid. Also, saved " + "images will not have translucent colors like they do with " + "the Cairo draw mode. You can " + "start drawing with X11 and switch to drawing with Cairo " + "when you want to save an image. Use the ::r@@ key or " + "the View menu to switch back and forth between drawing " + "with X11 and Cairo. See also ::--cairo-draw@@.", "1", "int" }, +/*------------------------------------------------------------------------------------------------------------------------------------*/ +{ {0,0}, 0, 0, 0, 0, 0, 0 } +}; + + + +/* the length of the array of options */ +static size_t length = 0; +/* the sorted array of options */ +static struct qp_option **opt; + + + +static inline +void *Malloc(size_t s) +{ + void *p; + errno = 0; + p = malloc(s); + if(!p) + { + printf("malloc(%zu)\n", s); + perror("malloc()"); + while(1) sleep(100); + } + return p; +} + +static const char *prefix[2] = { "parse_1st_", "parse_2nd_" }; +static char *func = NULL; + + +static inline +char *get_func(const char *prefix, const char *str) +{ + char *s; + if(!str || !str[0]) + str = "File"; + + if(func) + free(func); + s = (char *) str; + while(*s == '-') ++s; + + func = Malloc(strlen(prefix) + strlen(s) + 1); + + sprintf(func, "%s%s", prefix, s); + + s = func; + while(*s) + { + if(*s == '-') + *s = '_'; + ++s; + } + + return func; +} + +static +int not_short_op_switch_case(struct qp_option *op, int pass) +{ + if(pass == 1 && op->pass[0] == 2) + /* We do not need to parse options that would + * exit in the 1st pass */ + return 1; + + return ( + (op->arg && op->arg[0] != '[') + || !op->short_op + || (strlen(op->short_op) != 2) + ); +} + +static +void print_arg_parsing_code(int p) +{ + size_t i; + int got_one = 0; + int got_two = 0; + + printf( + "{\n" + " int i = 1;\n" + "\n" + " while(i < argc)\n" + " {\n" + " char *s;\n" + "\n" + ); + + + + for(i=1;ipass[p] || opt[i]->arg) + continue; + + func = get_func(prefix[p], opt[i]->long_op); + + printf(" %sif(!strcmp(\"%s\", argv[i]))\n" + " {\n" + " %s();\n%s" + " }\n", + (got_one)?"else ":"", + opt[i]->long_op, func, + (opt[i]->pass[p] == 1)?" ++i;\n":""); + ++got_one; + } + + + for(i=1;iarg) + continue; + + func = get_func(prefix[p], opt[i]->long_op); + + printf( + " %sif((s = get_opt(",(got_one)?"else ":""); + if(opt[i]->short_op) + printf("\"%s\"", opt[i]->short_op); + else + printf("NULL"); + printf(",\"%s\", argc, argv, &i)))\n" + " {\n", opt[i]->long_op); + + if(opt[i]->pass[p]) + printf( + " %s(s, argc, argv, &i);\n", func); + else + printf( + " /* do nothing this pass */\n"); + + printf( + " }\n"); + + if(opt[i]->arg[0] == '[') + { /* again for case with no optional argument */ + printf( + " %sif(!strcmp(\"%s\",argv[i])", + (got_one)?"else ":"", opt[i]->long_op); + if(opt[i]->short_op) + printf(" || !strcmp(\"%s\",argv[i])", + opt[i]->short_op); + printf( + ")\n" + " {\n" + " /* this is to caught it when there is no optional arg */\n" + ); + if(opt[i]->pass[p]) + printf( + " %s(NULL, argc, argv, &i);\n", func); + else + printf( + " /* do nothing this pass */\n" + ); + printf( + " ++i;\n" + " }\n"); + } + + ++got_one; + } + + + for(i=1;iarg && !opt[i]->pass[p] && + (p == 0 || opt[i]->pass[0] != 2)) + { + printf(" %sif(!strcmp(\"%s\", argv[i])\n", + (got_one)?"else ":"", + opt[i]->long_op); + ++got_one; + ++got_two; + break; + } + } + + for(++i;iarg && !opt[i]->pass[p] && + (p == 0 || opt[i]->pass[0] != 2)) + { + printf(" || !strcmp(\"%s\", argv[i])\n", + opt[i]->long_op); + continue; + } + } + + if(got_two) + printf( " )\n" + " {\n" + " /* do nothing this pass */\n" + " ++i;\n" + " }\n"); + + + + + got_two = 0; + + + + for(i=1;ipass[p]) + continue; + + printf( " case '%c':\n", opt[i]->short_op[1]); + func = get_func(prefix[p], opt[i]->long_op); + if(!opt[i]->arg) + printf(" %s();\n", func); + else + printf(" %s(NULL, argc, argv, &i);\n", func); + printf( + " break;\n"); + } + + + /* reuse dummy flag */ + got_two = 0; + + for(i=1;ipass[p]) + continue; + + printf( " case '%c':\n", opt[i]->short_op[1]); + got_two = 1; + } + + if(got_two) + printf( + " /* do nothing this pass */\n" + " break;\n"); + + printf(" }\n" + "\n" + " ++i;\n" + "\n" + " }\n" + ); + } + + + printf(" %s\n" + " {\n" + " /* option FILE */\n", (got_one)?"else":""); + + if(opt[0]->pass[p]) + printf(" %s(argv[i]);\n", get_func(prefix[p], opt[0]->long_op)); + else + printf(" /* do nothing this pass */\n"); + printf( " ++i;\n"); + + + printf( + " }\n" + " }\n" + "\n" + "}\n" + "\n"); +} + +static +void print_argument_parsing_code(void) +{ + char *s, *shorts; + size_t shorts_len; + int i; + + /* Get a string with all the short options char + * with out a arg. */ + s = (shorts = Malloc(length)); + for(i=1;ishort_op && (!opt[i]->arg || opt[i]->arg[0] == '[') && + strlen(opt[i]->short_op) == 2 && opt[i]->short_op[0] == '-' + ) + { + *s = (opt[i]->short_op)[1]; + ++s; + } + } + *s = '\0'; + shorts_len = strlen(shorts); + + printf("\n" + "static inline\n" + "int is_all_short_no_arg_options(const char *str)\n" + "{\n" + " const char *shorts = \"%s\";\n" + " const size_t shorts_len = %zu;\n" + " size_t i;\n" + "\n" + " if(!str || !*str)\n" + " return 0; /* none */\n" + "\n" + " while(*str)\n" + " {\n" + " for(i=0;ipass[p]) + printf("static inline\n" + "void %s(const char *file)\n" + "{\n" + "\n" + "}\n" + "\n", + get_func(prefix[p], opt[0]->long_op)); + + for(i=1;ipass[p] || opt[i]->arg) + continue; + + func = get_func(prefix[p], opt[i]->long_op); + printf("static inline\n" + "void %s(void)\n" + "{\n" + "\n" + "}\n" + "\n", func); + } + + printf("\n"); + + for(i=1;ipass[p] || !opt[i]->arg) + continue; + + func = get_func(prefix[p], opt[i]->long_op); + printf("static inline\n" + "void %s(char *arg, int argc, char **argv, int *i)\n" + "{\n" + "\n" + "}\n" + "\n", func); + } + + printf("\n"); +} + +static +void print_1st_pass_functions(void) +{ + print_pass_functions(0); +} + +static +void print_2nd_pass_functions(void) +{ + print_pass_functions(1); +} + +static +void print_app_ops_declare_code() +{ + int i; + + for(i=1;iop_type) + continue; + + printf("%s %s;\n", opt[i]->op_type, + get_func("op_", opt[i]->long_op)); + } +} + +static +void print_app_ops_init_code() +{ + int i; + + for(i=1;iop_init_value) + continue; + + printf(" app->%s = %s;\n", + get_func("op_", opt[i]->long_op), + opt[i]->op_init_value); + } +} + +static +int get_string_len(char *str) +{ + if(!str) + return 1; + + { + size_t len; + char *s; + len = strlen(str); + for(s=str;*s;++s) + if(*s == '"') + ++len; + + return len; + } +} + +/* adds space to the end to make the size you print be n */ +/* returns the number of chars printed not including '\0' */ +static +int Nprintf(int n, const char *format, ...) +{ + va_list ap; + char *fmt, *str; + int i, j, len; + + j = strlen(format); + len = n + j + 1; + fmt = Malloc(len + 1); + str = Malloc(len + 1); + + strcpy(fmt, format); + + for(i=j;i len/2 ; --i) + if(str[i-1] == ' ') + break; + if(i == len/2) + i = len - add_comma; + + printf("\""); + slen -= i; + Nprintf(i, "%s", str); + str += i; + printf("\"\n"); + + + Nprintf(start, " "); + } +} + + +static +void print_tidy_struct(void) +{ + int i; + int count[7] = {0,0,0,0,0,0,0}; + + printf("static\n" + "struct qp_option options[] =\n" + "{\n"); + + for(i=0;ilong_op) + 4; + if(len > count[1]) + count[1] = len; + + len = get_string_len(opt[i]->short_op) + 4; + if(len > count[2]) + count[2] = len; + + len = get_string_len(opt[i]->arg) + 4; + if(len > count[3]) + count[3] = len; + + len = get_string_len(opt[i]->op_init_value) + 4; + if(len > count[5]) + count[5] = len; + + len = get_string_len(opt[i]->op_type) + 4; + if(len > count[6]) + count[6] = len; + } + + + for(i=1;i<7;i++) + if(count[i] > 26) + count[i] = 26; + + if(count[3] > 15) + count[3] = 15; + if(count[5] > 12) + count[5] = 12; + if(count[6] > 12) + count[6] = 12; + + + count[0] = strlen("{ {1,1}, "); + count[4] = 60; + + /* change the counts to absolute distance */ + for(i=1;i<7;i++) + count[i] += count[i-1]; + + + printf("/*"); + for(i=0;ilong_op); + s[1] = fix_quotes(opt[i]->short_op); + s[2] = fix_quotes(opt[i]->arg); + s[3] = fix_quotes(opt[i]->description); + s[4] = fix_quotes(opt[i]->op_init_value); + s[5] = fix_quotes(opt[i]->op_type); + Nprintf(count[0], "{ {%d,%d},", opt[i]->pass[0], opt[i]->pass[1]); + for(j=0;j<6;++j) + { + kick_it_print(s[j], count[j], count[j+1] - count[j], (j!=5)?1:0); + if(s[j]) + free(s[j]); + } + printf("},\n/*"); + for(j=0;j + * if the str have a --long-opt in it. + * Or returns 0 is none is found. */ +int check_print_long_option_link(const char *str, size_t skip_i) +{ + size_t i; + for(i=1;ilong_op); + if(!strncmp(opt[i]->long_op, str, len_opt) && len_str >= len_opt + 2 && + ( + (str[len_opt] == '@' && str[len_opt+1] == '@') || + str[len_opt] == ' ' || str[len_opt] == '=' + ) + ) + return printf("", get_func("op_", opt[i]->long_op)); + } + return 0; +} + +static +void print_text2html(const char *str, size_t opt_i) +{ + char *s, *t; + int w_count = 0; + + if(!str || !(*str) || !*(str +1)) + { + printf("%s\n", str); + return; + } + + s = (char *) str; + t = s + 1; + while(*s && *t) + { + if(*s == '*' && *t == '*') // \n"); + s += 2; + while(*s == ' ') + ++s; + t = s + 1; + w_count = 0; + continue; + } + + if(w_count > 50 && *s == ' ') + { + putchar('\n'); + w_count = 0; + } + else + { + ++w_count; + putchar(*s); + } + + ++t; + ++s; + } + if(*s) + putchar(*s); + putchar('\n'); +} + +static inline +void put_man_char(char c) +{ + if(c == '-') + putchar('\\'); + putchar(c); +} + +static inline +int check_for_span_man(char **str, int *w_count, char *last_char) +{ + char *s = *str; + + if(!(*s) || !(*(s+1))) + return 0; + + if(*s == ':' && *(s+1) == ':') // + { + s += 2; + if(*last_char != '\n') + /* This is what last_char was for: + * to see if we need a '\n' printed here. */ + putchar('\n'); + while(isspace(*s)) ++s; + *w_count = 0; + printf("\\fB"); + while(*s && !(*s == '@' && *(s+1) == '@')) // + { + put_man_char(*s); + *last_char = *s; + ++(*w_count); + ++s; + } + if(*s == '@' && *(s+1) == '@') + s +=2; + printf("\\fR"); + + *str = s; + return 1; + } + return 0; +} + + +static +void print_text2man(char *str) +{ + char *s; + int w_count = 0; + char last_char = '\n'; + + if(!str || !(*str) || !*(str+1)) + { + printf("%s\n", str); + return; + } + + s = str; + while(*s && *(s+1)) + { + if(check_for_span_man(&s, &w_count, &last_char)) // + continue; + if(*s == '*' && *(s+1) == '*') //
      + { + s += 2; + while(isspace(*s)) ++s; + while(*s && !(*s == '&' && *(s+1) == '&')) //
    + { + if(*s == '#' && *(s+1) == '#') //
  • + { + if(last_char != '\n') + putchar('\n'); + printf(".sp\n"); + s += 2; + while(isspace(*s)) ++s; + last_char = '\n'; + } + else if(check_for_span_man(&s, &w_count, &last_char)) // + continue; + else + { + put_man_char(*s); + last_char = *s; + ++s; + } + } + if(*s == '&' && *(s+1) == '&') + s += 2; + if(last_char != '\n') + putchar('\n'); + last_char = '\n'; + w_count = 0; + continue; + } + if(w_count > 60 && isspace(*s)) + { + putchar('\n'); + while(isspace(*s)) ++s; + last_char = '\n'; + w_count = 0; + continue; + } + if(w_count == 0 && isspace(*s)) + { + while(isspace(*s)) ++s; + continue; + } + + put_man_char(*s); + last_char = *s; + ++w_count; + ++s; + } + + if(*s) + { + putchar(*s); + last_char = *s; + } + + if(last_char != '\n') + putchar('\n'); +} + +static inline +char *remove_dashes(char *str) +{ + char *s = str; + + while(*s == '-') ++s; + return s; +} + +static +void print_man_page_options(void) +{ + int i; + + printf(".SH OPTIONS\n.PP\n"); + + printf(".TP\n\\fBFILE\\fR\n"); + print_text2man(opt[0]->description); + + for(i=1; iarg) + snprintf(arg, 128, " \\fB%s\\fR", opt[i]->arg); + else + arg[0] = '\0'; + + if(opt[i]->short_op && strlen(opt[i]->short_op) == 2) + printf(".TP\n\\fB\\-\\-%s\\fR%s or \\fB\\-%s\\fR%s\n", + remove_dashes(opt[i]->long_op), arg, + remove_dashes(opt[i]->short_op), arg); + else + printf(".TP\n\\fB\\-\\-%s\\fR%s\n", + remove_dashes(opt[i]->long_op), arg); + print_text2man(opt[i]->description); + } +} + +static +void print_html_options_table(void) +{ + int i; + char class[2] = { 'a', 'b' }; + + printf( + "\n" + ); + + + printf( + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "\n", "font-size:50%;" + ); + + for(i=0;i\n", + class[i%2]); + + printf( + " \n", i?"":"FILE", + get_func("op_", opt[i]->long_op), opt[i]->long_op); + + printf( + " \n", + opt[i]->short_op?opt[i]->short_op:""); + + printf( + " \n", + opt[i]->arg?opt[i]->arg:""); + + printf( + " \n"); + + printf( + " \n"); + } + + printf("
    long optionshortargdescription
    \n" + " %s\n" + " \n" + " %s\n" + " \n" + " %s\n" + " \n"); + print_text2html(opt[i]->description, i); + printf( + "
    \n"); + + +} + +int main(int argc, char **argv) +{ + { + ssize_t n = 2; + if(argc > 1) + n = strlen(argv[1]); + + if(argc < 2 || argc > 3 || n != 2 || + argv[1][0] != '-' || + (argv[1][1] != 't' && argv[1][1] != 'l' && argv[1][1] != 'h' && + argv[1][1] != 'a' && argv[1][1] != '1' && argv[1][1] != '2' && + argv[1][1] != 'i' && argv[1][1] != 'I' && argv[1][1] != 'T' && + argv[1][1] != 'p' && argv[1][1] != 's' && argv[1][1] != 'm') + ) + { + printf("Usage: %s [ -a | -h | -i | -I | -l | -p | -t | -1 | -2 ]\n" + "\n" + " Generate HTML and C code that is" + " related to Quickplot command line options\n" + " Returns 0 on success and 1 on error.\n" + "\n" + " -a print C code for argument parsing\n" + " -h print C code for OPTIONS help text\n" + " -i print C code for app->op_ initialization\n" + " -I print C code for declaring app\n" + " -l print html options list\n" + " -m print OPTIONS part of man page\n" + " -p print the options\n" + " -s print the short options sorted\n" + " -t print html options table\n" + " -T print C code of the big qp_options array\n" + " -1 print 1st pass parsing C code template\n" + " -2 print 2nd pass parsing C code template\n" + "\n", argv[0]); + return 1; + } + } + + { + int err = 0; + /* make an array that we can sort */ + struct qp_option *o; + /* Test that the options do not have duplicates */ + for(o=(struct qp_option *)options;o->long_op;++o) + { + struct qp_option *oc; + for(oc=(o+1);oc->long_op;++oc) + { + if(!strcmp(oc->long_op, o->long_op)) + { + printf("There are at least two long options: %s\n", o->long_op); + err = 1; + } + if(oc->short_op && o->short_op && !strcmp(oc->short_op, o->short_op)) + { + printf("There are at least two short options: %s\n", o->short_op); + printf("one for: %s\n", o->long_op); + printf("one for: %s\n", oc->long_op); + err = 1; + } + } + ++length; + } + if(err) + return 1; + } + + { + /* sort the array */ + ssize_t i, end; + + opt = Malloc(sizeof(*opt)*length); + /* sort the options in order of long option */ + for(i=0;i= 0) + { + for(i=0;ilong_op, opt[i+1]->long_op) > 0) + { + struct qp_option *o; + o = opt[i]; + opt[i] = opt[i+1]; + opt[i+1] = o; + } + } + --end; + } + } + +#if 0 + if(argv[1][1] == 'a') + { + size_t i; + + printf("---- OLD SORT -----\n"); + for(i=0;ilong_op); + } +#endif + + if(opt[0]->long_op[0]) + { + printf("FILE is not the first option listed\n"); + return 1; + } + + if(argv[1][1] == 'p') + { + size_t i; + for(i=0;ilong_op, opt[i]->short_op, opt[i]->arg); + return 0; + } + + if(argv[1][1] == 'm') + { + printf(".\\\" This OPTIONS part of this file was generated by running: " + "%s %s\n", argv[0], argv[1]); + print_man_page_options(); + return 0; + } + + if(argv[1][1] == 's') + { + int i, L = 1, end; + char *shorts, *s; + + for(i=0;ishort_op; + if(o) + { + if(strlen(o) == 2 && o[0] == '-') + L += 1; + else + L += strlen(o); + } + } + s = (shorts = Malloc(L)); + for(i=0;ishort_op; + if(o) + { + int l; + l = strlen(o); + if(l == 2 && o[0] == '-') + { + *s = o[1]; + ++s; + } + else + { + snprintf(s, l+1, "%s", o); + s += l; + } + } + } + *s = '\0'; + + /* bubble sort for this small list */ + end = L - 2; + while(end >= 0) + { + for(i=0;i shorts[i+1]) + { + char c; + c = shorts[i]; + shorts[i] = shorts[i+1]; + shorts[i+1] = c; + } + } + --end; + } + + + printf("%s\n", shorts); + return 0; + } + + + + if(argv[1][1] == 'T') + { + print_tidy_struct(); + return 0; + } + + if(argv[1][1] == 'I') + { + printf("/* This file was auto-generated by running: `%s %s' */\n", + argv[0], argv[1]); + print_app_ops_declare_code(); + return 0; + } + + if(argv[1][1] == 'i') + { + printf("/* This file was auto-generated by running: `%s %s' */\n", + argv[0], argv[1]); + print_app_ops_init_code(); + return 0; + } + + + if(argv[1][1] == 'a') + { + printf("/* This file was auto-generated by running: `%s %s' */\n", + argv[0], argv[1]); + print_argument_parsing_code(); + return 0; + } + + if(argv[1][1] == 'h') + { + print_help_text(); + return 0; + } + + if(argv[1][1] == 'l') + { + print_html_options_list(); + return 0; + } + + if(argv[1][1] == 't') + { + printf("\n", + argv[0], argv[1]); + print_html_options_table(); + return 0; + } + + if(argv[1][1] == '1') + { + printf("/* This file was auto-generated by running: `%s %s' */\n", + argv[0], argv[1]); + print_1st_pass_functions(); + return 0; + } + + if(argv[1][1] == '2') + { + printf("/* This file was auto-generated by running: `%s %s' */\n", + argv[0], argv[1]); + print_2nd_pass_functions(); + return 0; + } + + return 0; +} + diff -Nru quickplot-0.8.15/parse_1st_pass_funcs.h quickplot-0.9.11/parse_1st_pass_funcs.h --- quickplot-0.8.15/parse_1st_pass_funcs.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/parse_1st_pass_funcs.h 2011-12-22 18:03:44.000000000 +0000 @@ -0,0 +1,132 @@ +/* A template of this file was generated with `./mk_options -1' */ +/* Clearly this will edited too. */ + +static inline +void parse_1st_File(const char *file) +{ + if(!strcmp("-", file)) + { + if(app->op_pipe != 0) + app->op_pipe = 1; + } +} + +static inline +void parse_1st_about(void) +{ + cb_about(NULL, (void *)1); +} + +static inline +void parse_1st_gtk_version(void) +{ + printf("%d.%d.%d\n", + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); + exit(0); +} + +static inline +void parse_1st_help(void) +{ + cb_help(NULL, (void *) 1); +} + +static inline +void parse_1st_libsndfile_version(void) +{ + char *str; + str = (char *) sf_version_string(); + while(*str && (*str < '0' || *str > '9')) + ++str; + printf("%s\n", str); + exit(1); +} + +static inline +void parse_1st_no_pipe(void) +{ + app->op_pipe = 0; +} + +static inline +void parse_1st_no_readline(void) +{ + app->op_no_readline = 1; +} + +static inline +void parse_1st_pipe(void) +{ + if(app->op_pipe != 0) + app->op_pipe = 1; +} + +static inline +void parse_1st_print_about(void) +{ + print_text("about.txt"); +} + +static inline +void parse_1st_print_help(void) +{ + print_text("help.txt"); +} + +static inline +void parse_1st_read_pipe_here(void) +{ + /* We will read the pipe when this options comes up in + * parse_2nd_read_pipe_here(). We will not read the pipe + * before of after that. */ + app->op_read_pipe_here = 1; +} + +static inline +void parse_1st_silent(void) +{ + qp_spew_init(5); + parser->p1.silent = 1; +} + +static inline +void parse_1st_verbose(void) +{ + if(!parser->p1.silent) + qp_spew_init(1); +} + +static inline +void parse_1st_version(void) +{ + printf("%s\n", VERSION); + exit(0); +} + + +static inline +void parse_1st_background_color(char *arg, int argc, char **argv, int *i) +{ + check_color_opt("--background-color", arg); +} + +static inline +void parse_1st_grid_line_color(char *arg, int argc, char **argv, int *i) +{ + check_color_opt("--grid-line-color", arg); +} + +static inline +void parse_1st_grid_text_color(char *arg, int argc, char **argv, int *i) +{ + check_color_opt("--grid-text-color", arg); +} + + +static inline +void parse_1st_linear_channel(char *arg, int argc, char **argv, int *i) +{ + parse_linear_channel(0, arg, argc, argv, i, NULL, NULL); +} + + diff -Nru quickplot-0.8.15/parse_2nd_pass_funcs.h quickplot-0.9.11/parse_2nd_pass_funcs.h --- quickplot-0.8.15/parse_2nd_pass_funcs.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/parse_2nd_pass_funcs.h 2011-12-29 14:43:04.000000000 +0000 @@ -0,0 +1,600 @@ +/* running `./mk_options -2' generates a template of this file. + * But then we have to edit it too. */ + +/* This looks kind of stupid but it makes it very easy + * to keep track of argument options and it should be + * pretty efficient given these all short inline functions. */ + + +static inline +void parse_2nd_File(const char *filename) +{ + /* by default pipe is read before the + * first non-pipe file. */ + check_load_stdin(0); + load_file(filename); +} + +static inline +void parse_2nd_auto_scale(void) +{ + app->op_same_x_scale = -1; + app->op_same_y_scale = -1; +} + +static inline +void parse_2nd_border(void) +{ + app->op_border = TRUE; +} + +static inline +void parse_2nd_buttons(void) +{ + app->op_buttons = 1; +} + +static inline +void parse_2nd_cairo_draw(void) +{ + app->op_x11_draw = 0; + if(default_qp) + default_qp->x11_draw = 0; +} + +static inline +void parse_2nd_default_graph(void) +{ + app->op_default_graph = 1; + + if(qp_sllist_last(app->sources) && + qp_win_graph_default_source(NULL, (qp_source_t) + qp_sllist_last(app->sources), NULL)) + exit(1); + + parser->p2.needs_graph = NULL; +} + +static inline +void parse_2nd_different_scale(void) +{ + app->op_same_x_scale = 0; + app->op_same_y_scale = 0; +} + +static inline +void parse_2nd_fullscreen(void) +{ + app->op_maximize = 2; +} + +static inline +void parse_2nd_gaps(void) +{ + app->op_gaps = 1; +} + +static inline +void parse_2nd_grid(void) +{ + app->op_grid = 1; +} + +static inline +void parse_2nd_grid_numbers(void) +{ + app->op_grid_numbers = 1; +} + +static inline +void parse_2nd_gui(void) +{ + app->op_menubar = 1; + app->op_buttons = 1; + app->op_tabs = 1; + app->op_statusbar = 1; +} + +static inline +void parse_2nd_labels(void) +{ + app->op_labels = 1; +} + +static inline +void parse_2nd_maximize(void) +{ + app->op_maximize = 1; +} + +static inline +void parse_2nd_menubar(void) +{ + app->op_menubar = 1; +} + +static inline +void parse_2nd_new_window(void) +{ + app->op_new_window = 1; +} + +static inline +void parse_2nd_no_border(void) +{ + app->op_border = 0; +} + +static inline +void parse_2nd_no_buttons(void) +{ + app->op_buttons = 0; +} + +static inline +void parse_2nd_no_default_graph(void) +{ + app->op_default_graph = 0; +} + +static inline +void parse_2nd_no_fullscreen(void) +{ + if(app->op_maximize == 2) + app->op_maximize = 0; +} + +static inline +void parse_2nd_no_gaps(void) +{ + app->op_gaps = 0; +} + +static inline +void parse_2nd_no_grid(void) +{ + app->op_grid = 0; +} + +static inline +void parse_2nd_no_grid_numbers(void) +{ + app->op_grid_numbers = 0; +} + +static inline +void parse_2nd_no_gui(void) +{ + app->op_menubar = 0; + app->op_buttons = 0; + app->op_tabs = 0; + app->op_statusbar = 0; +} + +static inline +void parse_2nd_no_labels(void) +{ + app->op_labels = 0; +} + +static inline +void parse_2nd_no_linear_channel(void) +{ + if(app->op_linear_channel) + { + qp_channel_destroy(app->op_linear_channel); + app->op_linear_channel = NULL; + } +} + +static inline +void parse_2nd_no_lines(void) +{ + app->op_lines = 0; +} + +static inline +void parse_2nd_no_menubar(void) +{ + app->op_menubar = 0; +} + +static inline +void parse_2nd_no_maximize(void) +{ + if(app->op_maximize == 1) + app->op_maximize = 0; +} + +static inline +void parse_2nd_no_new_window(void) +{ + app->op_new_window = 0; +} + +static inline +void parse_2nd_no_points(void) +{ + app->op_points = 0; +} + +static inline +void parse_2nd_no_shape(void) +{ + app->op_shape = 0; +} + +static inline +void parse_2nd_no_statusbar(void) +{ + app->op_statusbar = 0; +} + +static inline +void parse_2nd_no_tabs(void) +{ + app->op_tabs = 0; +} + +static inline +void parse_2nd_pipe(void) +{ + check_load_stdin(1); +} + +static inline +void parse_2nd_points(void) +{ + app->op_points = 1; +} + +static inline +void parse_2nd_read_pipe_here(void) +{ + check_load_stdin(1); +} + +static inline +void parse_2nd_same_scale(void) +{ + app->op_same_x_scale = 1; + app->op_same_y_scale = 1; +} + +static inline +void parse_2nd_shape(void) +{ + app->op_shape = 1; +} + +static inline +void parse_2nd_shell(void) +{ + if(!app->op_shell) + { + app->op_shell = qp_shell_create(stdin, stdout, 0, getpid()); + if(!app->op_shell) + exit(1); + } +} + +static inline +void parse_2nd_statusbar(void) +{ + app->op_statusbar = 1; +} + +static inline +void parse_2nd_tabs(void) +{ + app->op_tabs = 1; +} + +static inline +void parse_2nd_x11_draw(void) +{ + app->op_x11_draw = 1; + if(default_qp) + default_qp->x11_draw = 1; +} + + +static inline +void parse_2nd_background_color(char *arg, int argc, char **argv, int *i) +{ + get_color(&app->op_background_color, arg); +} + +static inline +void parse_2nd_file(char *arg, int argc, char **argv, int *i) +{ + parse_2nd_File(arg); +} + +static inline +void parse_2nd_geometry(char *arg, int argc, char **argv, int *j) +{ + /* We use this for the next new main window. */ + int n[4], count = 0, x_count = -1; + int w, h; + char *endptr, *s; + endptr = s = arg; + + while(1) + { + long val; + + val = strtol(s, &endptr, 10); + if(s == endptr || !endptr || + val == LONG_MAX || val == LONG_MIN) + { + DEBUG("bad option: %s='%s'\n", "--geometry", arg); + QP_ERROR("option has bad integer number: %s='%s'\n", + "--geometry", arg); + exit(1); + } + if(*s == '-' || *s == '0') + /* mark a "-0" position as in --geometry=600x700-0+0 */ + n[count++] = INT_MIN; + else + n[count++] = val; + + if(!(*endptr)) + break; + + s = endptr; + while(*s && (*s < '0' || *s > '9') && *s != '-' && *s != '+') + { + if(*s == 'x' || *s == 'X') + /* this is where the 'x' is */ + x_count = count; + ++s; + } + if(!(*s)) + break; + } + + if( + !(count == 2 && (x_count == 1 || x_count == -1)) + && + !(count == 4 && (x_count == 1 || x_count == 3)) + ) + { + DEBUG("bad option: %s='%s' count=%d x_count=%d\n", + "--geometry", arg, count, x_count); + QP_ERROR("bad option: %s='%s'\n", "--geometry", arg); + exit(1); + } + + if(x_count == 1) + { + w = n[0]; + h = n[1]; + } + else if(x_count == 3) + { + w = n[2]; + h = n[3]; + } + + if(x_count == -1 || x_count == 3) + { + app->op_geometry.x = n[0]; + app->op_geometry.y = n[1]; + } + else if(count == 4) + { + app->op_geometry.x = n[2]; + app->op_geometry.y = n[3]; + } + + if(w < 1 || h < 1) + { + QP_ERROR("bad option: %s='%s'\n", "--geometry", arg); + exit(1); + } + + if(app->root_window_width < 1) + qp_get_root_window_size(); + + if(w > app->root_window_width) + w = app->root_window_width; + if(h > app->root_window_height) + h = app->root_window_height; + + if(w == app->root_window_width && h == app->root_window_height) + /* We do not want to set app->op_geometry if it is + * full screen so that they can still toggle out of + * full screen if they choose to. */ + app->op_maximize = 2; /* Fullscreen */ + else + { + app->op_geometry.width = w; + app->op_geometry.height = h; + app->op_maximize = 0; + } + + DEBUG("got --geometry=%dx%d%+d%+d app->op_maximize=%d\n", + w, h, + app->op_geometry.x, app->op_geometry.y, + app->op_maximize); +} + +static inline +void graph_plots(ssize_t *x, ssize_t *y, size_t len) +{ + ASSERT(len); + if(qp_win_graph(NULL, x, y, len, NULL)) + exit(1); + + free(x); + free(y); + parser->p2.needs_graph = 0; +} + +static inline +void parse_2nd_graph(char *arg, int argc, char **argv, int *i) +{ + ssize_t *x = NULL, *y = NULL, max_channel_num = -1; + size_t len = 0; + struct qp_source *s; + + if(!qp_sllist_last(app->sources)) + { + ERROR("\n"); + QP_ERROR("got option --graph='%s' but have no files read yet\n", arg); + exit(1); + } + + for(s=qp_sllist_begin(app->sources);s; s=qp_sllist_next(app->sources)) + max_channel_num += s->num_channels; + + get_plot_option(arg, &x, &y, &len, "--graph", 0, max_channel_num); + graph_plots(x, y, len); +} + +static inline +void parse_2nd_graph_file(char *arg, int argc, char **argv, int *i) +{ + ssize_t *x = NULL, *y = NULL, offset = 0, j; + size_t len = 0; + struct qp_source *s, *last_s; + + last_s = qp_sllist_last(app->sources); + if(!last_s) + { + ERROR("\n"); + QP_ERROR("got option --graph-file='%s' but have no files read yet\n", arg); + exit(1); + } + + for(s=qp_sllist_begin(app->sources);s != last_s; s=qp_sllist_next(app->sources)) + offset += s->num_channels; + + get_plot_option(arg, &x, &y, &len, "--graph-file", + -offset, last_s->num_channels - 1); + + if(!len) + { + QP_ERROR("bad option --graph-file=\"%s\"\n", arg); + exit(1); + } + + for(j=0;jop_grid_font); + if(app->op_grid_font) + free(app->op_grid_font); + app->op_grid_font = qp_strdup(arg); +} + +static inline +void parse_2nd_grid_line_width(char *arg, int argc, char **argv, int *i) +{ + app->op_grid_line_width = get_long(arg, 1, 101, "--grid-line-width"); +} + +static inline +void parse_2nd_grid_line_color(char *arg, int argc, char **argv, int *i) +{ + get_color(&app->op_grid_line_color, arg); +} + +static inline +void parse_2nd_grid_text_color(char *arg, int argc, char **argv, int *i) +{ + get_color(&app->op_grid_text_color, arg); +} + +static inline +void parse_2nd_grid_x_space(char *arg, int argc, char **argv, int *i) +{ + app->op_grid_x_space = get_long(arg, 10, 10000000, "--grid-x-space"); +} + +static inline +void parse_2nd_grid_y_space(char *arg, int argc, char **argv, int *i) +{ + app->op_grid_y_space = get_long(arg, 10, 10000000, "--grid-y-space"); +} + +static inline +void parse_2nd_label_separator(char *arg, int argc, char **argv, int *i) +{ + ASSERT(app->op_label_separator); + free(app->op_label_separator); + app->op_label_separator = qp_strdup(arg); +} + +static inline +void parse_2nd_line_width(char *arg, int argc, char **argv, int *i) +{ + app->op_line_width = get_long(arg, 1, 101, "--line-width"); +} + +static inline +void parse_2nd_linear_channel(char *arg, int argc, char **argv, int *i) +{ + double start, step; + + if(app->op_linear_channel) + { + qp_channel_destroy(app->op_linear_channel); + app->op_linear_channel = NULL; + } + + parse_linear_channel(1, arg, argc, argv, i, &start, &step); + + app->op_linear_channel = qp_channel_linear_create(start, step); +} + +static inline +void parse_2nd_lines(char *arg, int argc, char **argv, int *i) +{ + app->op_lines = get_yes_no_auto_int(arg, "--lines"); +} + +static inline +void parse_2nd_number_of_plots(char *arg, int argc, char **argv, int *i) +{ + app->op_number_of_plots = get_long(arg, 1, INT_MAX - 10, + "--number-of-plots"); +} + +static inline +void parse_2nd_point_size(char *arg, int argc, char **argv, int *i) +{ + if(!strncasecmp(arg, "AUTO", 4)) + app->op_point_size = -1; + else + app->op_point_size = get_long(arg, 1, 101, "--point-size"); +} + +static inline +void parse_2nd_same_x_scale(char *arg, int argc, char **argv, int *i) +{ + app->op_same_x_scale = get_yes_no_auto_int(arg, "--same-x-scale"); +} + +static inline +void parse_2nd_same_y_scale(char *arg, int argc, char **argv, int *i) +{ + app->op_same_y_scale = get_yes_no_auto_int(arg, "--same-y-scale"); +} + +static inline +void parse_2nd_skip_lines(char *arg, int argc, char **argv, int *i) +{ + app->op_skip_lines = get_long(arg, 0, INT_MAX - 10, "--skip-lines"); +} + diff -Nru quickplot-0.8.15/parse_args_utils.h quickplot-0.9.11/parse_args_utils.h --- quickplot-0.8.15/parse_args_utils.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/parse_args_utils.h 2011-12-20 15:45:59.000000000 +0000 @@ -0,0 +1,532 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#include + +static inline +void print_text(const char *filename) +{ + int fd; + char buf[1024]; + ssize_t n, i; + fd = qp_find_doc_file(filename, NULL); + if(fd == -1) exit(1); + + while((n = read(fd, buf, 1024)) > 0) + { + while(n) + { + i = write(STDOUT_FILENO, buf, n); + if(i < 1) + exit(1); + n -= i; + } + } + exit(0); +} + +static inline +void version(void) +{ + printf("%s\n", VERSION); + exit(0); +} + + +static +void print_arg_error(void) +{ + QP_ERROR("Bad arguments:\n%s\n", parser->p1.err); + exit(1); +} + + +#define ERR_LEN (1024*8) + +/* We do not bother using any memory unless there is a + * fatal parsing error. + * We accumulate all command line error messages and + * when print them, saving the user time. */ +static +void add_error(const char *fmt, ...) +{ + va_list ap; + ssize_t n; + char *err; + size_t *len; + + len = &(parser->p1.elen); + + if(parser->p1.err == NULL) + { + parser->p1.err = qp_malloc(ERR_LEN); + *len = 0; + } + + err = parser->p1.err; + + + va_start(ap, fmt); + n = vsnprintf(&((err)[*len]), ERR_LEN-(*len), fmt, ap); + va_end(ap); + + if(n <= 0) + { + QP_ERROR("internal parsing error\n"); + exit(1); + } + *len += n; + + if(*len >= ERR_LEN) + print_arg_error(); +} + +static inline +void check_color_opt(const char *long_opt, const char *arg) +{ + /* This is just to test for color parse error */ + GdkRGBA rgba; + if(!gdk_rgba_parse(&rgba, arg)) + add_error("for argument option %s=\"%s\"\n" + " failed to parse string " + "\"%s\" to a color\n", long_opt, + arg, arg); +#ifdef QP_DEBUG + else + DEBUG("opt %s=\"%s\" => color=rgba(%g,%g,%g,%g)\n", + long_opt, arg, rgba.red, rgba.green, rgba.blue, rgba.alpha); +#endif +} + +/* returns 0 for not read ready + * returns 1 for read ready */ +static +int check_stdin(void) +{ + /* Check for read on stdin */ + long usec; + struct timeval tv; + fd_set fds; + int ret; + tv.tv_sec = 0; + tv.tv_usec = 400000; + usec = tv.tv_usec; + + FD_ZERO(&fds); + FD_SET(STDIN_FILENO, &fds); + errno = 0; + ret = select(STDIN_FILENO+1, &fds, NULL, NULL, &tv); + if(ret > 0) + { + QP_NOTICE("Reading stdin\n"); + return 1; + } + if(ret == 0) + { + QP_INFO("Nothing to read on stdin in %ld milli seconds\n", usec/1000); + return 0; + } + + QP_NOTICE("Error checking data on stdin: errno=%d: %s\n", + errno, strerror(errno)); + return 0; +} + +static inline +void parse_linear_channel(int pass, const char *arg, + int argc, char **argv, int *i, double *start, double *step) +{ + char *s; + int err = 0, j = 0; + double val[2]; + + if(start) + *start = 0; + if(step) + *step = 1; + + if(arg == NULL || arg[0] == '\0') + goto ret; + + s = (char *) arg; + + while(1) + { + char *endptr = NULL; + struct lconv *lc; + + errno = 0; + val[j] = strtod(s, &endptr); + if(errno || s == endptr) + { + if(argv[*i - 1] != arg) + { + /* The argument is part of the option like: + * '--linear-channel=0 1' or -l'0 3'. + * arg is not part of another option so + * this is an error */ + err = 1; + break; + } + else + { + /* The optional arg is not ours */ + *i -= 1; + break; + } + } + + if(j == 1) + { + if(start) + *start = val[0]; + if(step) + *step = val[1]; + break; + } + + lc = localeconv(); + + s = endptr; + /* go to the next number */ + while(*s && (*s < '0' || *s > '9') + && *s != '+' && *s != '-' && *s != 'e' + && *s != 'E' && strcmp(s, lc->decimal_point)) + ++s; + + if(!(*s)) + { + if(start) + *start = val[0]; + break; + } + + ++j; + } + + + if(err && pass == 0) + { + add_error("bad option argument --linear-channel='%s'\n", arg); + return; + } + + /* we should not get an error on the 2nd pass */ + ASSERT(!err); + + if(err) + { + QP_ERROR("bad option argument --linear-channel='%s'\n", arg); + exit(1); + } + +ret: + + if(start && step) + DEBUG("got option --linear-channel with start=%.22g step=%.22g\n", + *start, *step); +} + +static +long get_plot_num(const char *s, char **endptr) +{ + while(*s && *s < '0' && *s > '9') + ++s; + if(!(*s)) + return INT_MAX; /* got nothing more */ + + long val; + errno = 0; + val = strtol(s, endptr, 10); + + if(*endptr == s) + return INT_MAX; + + if((errno == ERANGE && (val == LONG_MAX || val == LONG_MIN)) + || (errno != 0 && val == 0)) + return INT_MAX; /* got error */ + + return val; +} + +static +void load_file(const char *filename) +{ + if(parser->p2.needs_graph && app->op_default_graph) + { + ASSERT(qp_sllist_last(app->sources)); + + if(qp_win_graph_default_source(NULL, (qp_source_t) + qp_sllist_last(app->sources), NULL)) + exit(1); + + parser->p2.needs_graph = NULL; + } + + if(!strcmp(filename, "-") && + (parser->p2.got_stdin || !app->op_pipe)) + return; + + + if(!qp_source_create(filename, QP_TYPE_UNKNOWN)) + exit(1); + + parser->p2.needs_graph = (char *) filename; + + if(!strcmp(filename, "-")) + parser->p2.got_stdin = 1; +} + +static inline +void check_load_stdin(int here) +{ + if(!parser->p2.got_stdin && + (!app->op_read_pipe_here || here) + && app->op_pipe) + { + /* The loading of stdin cannot be done until before + * the first file or plot option that is --plot, + * --plot-file, --file, or FILE, so that we are + * may catch any file reading options + * that may effect the reading of the pipe, + * that may be in arguments before those. */ + load_file("-"); + } +} + +/* Returns 1 on success 0 on failure + * + * x and y must be freed + * + * parsing --plot '0 1 0 2 0 3' + * or --plot-file '0 1 0 2 0 3' + * + * str="0 1 0 2 0 3" */ +static inline +void get_plot_option(const char *str, ssize_t **x, ssize_t **y, + size_t *num_plots, const char *opt, ssize_t min_chan, ssize_t max_chan) +{ + char *endptr; + char *s; + long nx, ny; + int i = 1; + + ASSERT(x); + ASSERT(y); + ASSERT(num_plots); + + check_load_stdin(0); + + if(!qp_sllist_last(app->sources)) + { + QP_ERROR("No files loaded yet, bad option %s='%s'\n", + opt, str); + exit(1); + } + + s = (char *) str; + + nx = get_plot_num(s, &endptr); + if(nx < min_chan || nx > max_chan) goto fail; + s = endptr; + ny = get_plot_num(s, &endptr); + if(ny < min_chan || ny > max_chan) goto fail; + s = endptr; + + if(x && y) + { + *x = qp_malloc(sizeof(ssize_t)*(strlen(s)+1)/2); + *y = qp_malloc(sizeof(ssize_t)*(strlen(s)+1)/2); + (*x)[0] = nx; + (*y)[0] = ny; + } + + while(*s) + { + nx = get_plot_num(s, &endptr); + if(nx < min_chan || nx > max_chan) goto fail; + (*x)[i] = nx; + s = endptr; + ny = get_plot_num(s, &endptr); + if(ny < min_chan || ny > max_chan) goto fail; + s = endptr; + (*y)[i++] = ny; + } + + *num_plots = i; + +#ifdef QP_DEBUG + DEBUG("got %s='", opt); + if(*num_plots > 0) + APPEND("%zu %zu", (*x)[0], (*y)[0]); + for(i=1; i<(*num_plots); ++i) + APPEND(" %zu %zu", (*x)[i], (*y)[i]); + APPEND("\n"); +#endif + + return; + +fail: + + ERROR("got bad option %s='%s'\n", opt, str); + QP_ERROR("got bad option %s='%s'\n", opt, str); + exit(1); + + if(x && *x) + free(*x); + if(y && *y) + free(*y); +} + +/* This should not fail given we checked colors in the 1st pass */ +static inline +void get_color(struct qp_colora *c, const char *str) +{ + GdkRGBA rgba; + gboolean ret; + ret = gdk_rgba_parse(&rgba, str); + VASSERT(ret,"failed to parse color string\n"); + if(!ret) + { + QP_ERROR("failed to parse color string %s\n", str); + exit(1); + } + + c->r = rgba.red; + c->g = rgba.green; + c->b = rgba.blue; + c->a = rgba.alpha; +} + +#if 0 +/* This is being replaced by qp_startup_idle_callback() + * in win.c. An idle callback is used for each qp_win in + * qp_startup_idle_callback(). It's setup in qp_win_create() + * and qp_win_copy_create() */ + +/* We flip back the tab and wait for the drawing to + * finish and then flip back to the next tab and + * so on, until we are at the first tab. */ +static +gboolean startup_idle_callback(gpointer data) +{ + static struct qp_win *qp = NULL; + struct qp_graph *first_graph; + + if(!qp) + { + qp = qp_sllist_first(app->qps); + ASSERT(qp); + ASSERT(qp->window); + ASSERT(qp->initializing); + } + else if(qp->initializing == 2) + { + /* A user wants to delete this window, maybe + * before we finished drawing all the tabs. */ + struct qp_win *q; + q = qp_sllist_begin(app->qps); + while(q && q != qp) + q = qp_sllist_next(app->qps); + q = qp_sllist_next(app->qps); + /* q == NULL or the next qp */ + qp_win_destroy(qp); + qp = q; + if(!qp) + return FALSE; + + ASSERT(qp->initializing); + } + + first_graph = qp_sllist_first(qp->graphs); + ASSERT(first_graph); + + if(first_graph == qp->current_graph) + { + /* we are at the first tab */ + /* see if there are more main windows */ + struct qp_win *q; + q = qp_sllist_begin(app->qps); + while(q && q != qp) + q = qp_sllist_next(app->qps); + + /* done initializing */ + qp->initializing = 0; + + qp = qp_sllist_next(app->qps); + if(qp) + { + ASSERT(qp->initializing); + /* now check that all the tabs have + * been flipped in this qp */ + return startup_idle_callback(NULL); + } + return FALSE; /* remove this idle callback */ + } + + /* We flip back the tab */ + gtk_notebook_prev_page(GTK_NOTEBOOK(qp->notebook)); + + /* call this when we are idle again. Hopefully + * after drawing the graph. */ + return TRUE; +} +#endif + +static inline +int get_yes_no_auto_int(const char *arg, const char *option) +{ + if(!strncasecmp(arg, "no", 1)) + return 0; + if(!strncasecmp(arg, "yes", 1)) + return 1; + if(!strncasecmp(arg, "auto", 1)) + return -1; + + QP_ERROR("bad option: %s='%s'\n", option, arg); + exit(1); + + return 1; +} + +static inline +long get_long(const char *s, long min, long max, const char *opt) +{ + char *endptr = NULL; + long val = 0; + val = strtol(s, &endptr, 10); + if(s == endptr || !endptr || + val == LONG_MAX || val == LONG_MIN) + { + QP_ERROR("option has bad integer number: %s='%s'\n", opt, s); + exit(1); + } + if(val < min) + return min; + if(val > max) + return max; + + return val; +} + + diff -Nru quickplot-0.8.15/parse_argument_options.c quickplot-0.9.11/parse_argument_options.c --- quickplot-0.8.15/parse_argument_options.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/parse_argument_options.c 2011-12-22 01:57:25.000000000 +0000 @@ -0,0 +1,180 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "quickplot.h" + +#include "config.h" +#include "debug.h" +#include "spew.h" +#include "list.h" +#include "qp.h" +#include "callbacks.h" +#include "get_opt.h" +#include "channel.h" +#include "shell.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + + +union qp_parser +{ + struct + { + char *err; + size_t elen; + int silent; + } p1; + struct + { + /* needs_graph = last file loaded and not plotted yet */ + char *needs_graph; + int got_stdin; + } p2; +}; + + +/* This is the one globel pointer used to do + * argument parsing. + * We allocate it and then free it when we are done + * with it. */ +static +union qp_parser *parser = NULL; + + + +#include "parse_args_utils.h" +#include "parse_1st_pass_funcs.h" +#include "parse_2nd_pass_funcs.h" +#include "parse_args.h" + + + + +/* exits on failue */ +void qp_getargs_1st_pass(int argc, char **argv) +{ + parser = qp_malloc(sizeof(*parser)); + + parser->p1.err = NULL; + parser->p1.elen = 0; + parser->p1.silent = 0; + + + /* make sure that app exists */ + qp_app_check(); + + +#ifdef QP_DEBUG + /* default spew INFO 1 */ + qp_spew_init(1); +#else + /* default spew WARN 3 */ + qp_spew_init(3); +#endif + + /* This is the an auto-generated function */ + parse_args_1st_pass(argc, argv); + + if(parser->p1.err) + print_arg_error(); + + + if(app->op_pipe == -1) + { + /* yes 1 no 0 */ + app->op_pipe = check_stdin(); + /* so now app->op_pipe is a bool */ + } +} + + +/* exits on failure */ +void qp_getargs_2nd_pass(int argc, char **argv) +{ + if(!parser) + { + QP_ERROR("qp_getargs_1st_pass() was not called yet" + " when calling %s()\n", __func__); + exit(1); + } + + /* reinitialize parser */ + parser->p2.needs_graph = NULL; + parser->p2.got_stdin = 0; + + + /* This is the an auto-generated function */ + parse_args_2nd_pass(argc, argv); + + /* load stdin file if it needs to be */ + check_load_stdin(0); + + + if(parser->p2.needs_graph) + { + /* the last file loaded has no graph yet */ + + ASSERT(qp_sllist_last(app->sources)); + + if(app->op_default_graph) + if(qp_win_graph_default_source(NULL, (qp_source_t) + qp_sllist_last(app->sources), NULL)) + exit(1); + } + + free(parser); + + { + struct qp_win *qp; + /* There should be at least one qp window */ + if(!qp_sllist_first(app->qps)) + qp_win_create(); + + for(qp = qp_sllist_begin(app->qps); qp; qp = qp_sllist_next(app->qps)) + { + /* At startup we want the first graph + * showing to be the first one in each + * window. By default the current + * graph is the last one created, which + * works when the user creates it while + * interacting with the window. */ + gtk_notebook_set_current_page(GTK_NOTEBOOK(qp->notebook), 0); + } + } +} + diff -Nru quickplot-0.8.15/parseGeometry.cpp quickplot-0.9.11/parseGeometry.cpp --- quickplot-0.8.15/parseGeometry.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/parseGeometry.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,151 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include - -// w and h will not be set if the width and height part of the -// geometry are not valid. x and y will not be set if the x-position -// and y-position part of the geometry are not valid. -// The values for xSign and ySign may change. - -// example: -// -geometry 800x240+-30-200 w x h xSign x ySign y -// ====> w=800 h=240 xSign=1 x=-30 ySign=-1 y=200 - - -void parseGeometry(const char *geometry, - int &w, int &h, - int &x, int &y, - int &xSign, int & ySign) -{ - // If the geometry string is longer than 32 is won't work on any - // display I've ever heard of. - - // example: -geometry 800x240+30+200 - - // example: -geometry 800 x 240 + 300 + 200 \0 - // geo= WWW \0 HHH \0 Y YYY \0 - // xgeo= X XXX \0 - - // or even like: -geometry 800x240--30+-200 - - char geo[32]; - char xgeo[32]; - snprintf(geo, 32, "%s", geometry); - snprintf(xgeo, 32, "%s", geometry); - - char *W=NULL, *H=NULL, *X=NULL, *Y=NULL; - - char *s; - - // Look for W width and H height WxH - s = geo; - for(;*s != 'x' && *s != 'X' && *s != '\0'; s++) - ; - if(*s == 'x' || *s == 'X') - { - W = geo; - *s = '\0'; // replace the 'x' || 'X' with '\0'. - H = ++s; - for(;*s != '-' && *s != '+' && *s != '\0'; s++) - ; - - if(*s == '-' || *s == '+') - { - *s = '\0'; - s++; - } - } - - if(W && H && W[0] && H[0]) - { - // resize the window based on W and H - int w_ = atoi(W); - int h_ = atoi(H); - - if(w_ >= 0 && w_ < 100000 && h_ >=0 && h_ < 100000) - { - w = w_; - h = h_; - } - } - - // Look for Y position +Y or -Y - if(W) - { - if(*s == '-' || *s == '+') - s++; - - for(;*s != '-' && *s != '+' && *s != '\0'; s++) - ; - if(*s == '-' || *s == '+') - { - ySign = (*s == '+')? 1: -1; - s++; - Y = s; - } - } - else // !W - { - s = geo; - for(;*s != '-' && *s != '+' && *s != '\0'; s++) - ; - s++; - if(*s == '-' || *s == '+') - s++; - - for(;*s != '-' && *s != '+' && *s != '\0'; s++) - ; - if(*s == '-' || *s == '+') - { - ySign = (*s == '+')? 1: -1; - s++; - Y = s; - } - } - - - // Look for X position +X or -X - if(Y) - { - s = xgeo; - for(;*s != '-' && *s != '+' && *s != '\0'; s++) - ; - if(*s == '-' || *s == '+') - { - xSign = (*s == '+')? 1: -1; - s++; - X = s; - s++; - for(;*s != '-' && *s != '+' && *s != '\0'; s++) - ; - if(*s == '-' || *s == '+') - { - *s = '\0'; // replace the '+' || '-' with '\0'. - } - else - { - X = NULL; - Y = NULL; - } - } - } - - - if(X && Y && X[0] && Y[0]) - { - // Get x, y, xSign, and ySign and use in the - // first call to on_expose_event(). - int x_ = atoi(X); - int y_ = atoi(Y); - - if(x_ > -100000 && x_ < 100000 && - y_ > -100000 && y_ < 100000) - { - x = x_; - y = y_; - } - } -} diff -Nru quickplot-0.8.15/plot.c quickplot-0.9.11/plot.c --- quickplot-0.8.15/plot.c 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/plot.c 2011-12-16 18:12:51.000000000 +0000 @@ -0,0 +1,359 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + +#include + +#include + +#include "quickplot.h" + +#include "config.h" +#include "debug.h" +#include "list.h" +#include "channel.h" +#include "channel_double.h" +#include "qp.h" +#include "plot.h" +#include "color_gen.h" + +#ifdef DMALLOC +# include "dmalloc.h" +#endif + +static inline +void free_x11_colors(struct qp_plot *p, struct qp_graph *gr) +{ + ASSERT(gr->x11); + + if(gr->x11) + { + if(!gr->x11->dsp) + gr->x11->dsp = gdk_x11_get_default_xdisplay(); + + XFreeColors(gr->x11->dsp, DefaultColormap(gr->x11->dsp, + DefaultScreen(gr->x11->dsp)), &p->l.x, 1, 0); + XFreeColors(gr->x11->dsp, DefaultColormap(gr->x11->dsp, + DefaultScreen(gr->x11->dsp)), &p->p.x, 1, 0); + } +} + +void qp_plot_set_X11_color(struct qp_plot *p, struct qp_color *c) +{ + XColor x; + x.pixel = 0; + + x.red = 65535 * c->c.r; + x.green = 65535 * c->c.g; + x.blue = 65535 * c->c.b; + x.flags = 0; + + XAllocColor(p->gr->x11->dsp, DefaultColormap(p->gr->x11->dsp, + DefaultScreen(p->gr->x11->dsp)), &x); + ASSERT(x.pixel); + c->x = x.pixel; +} + +static inline +void make_x11_colors(struct qp_plot *p, struct qp_graph *gr) +{ + ASSERT(gr->x11); + + if(gr->x11) + { + /* Turn the cairo rgba colors into XColors */ + if(!gr->x11->dsp) + gr->x11->dsp = gdk_x11_get_default_xdisplay(); + + qp_plot_set_X11_color(p, &p->l); + qp_plot_set_X11_color(p, &p->p); + } +} + + +void qp_plot_set_cairo_draw_mode(struct qp_plot *p, struct qp_graph *gr) +{ + free_x11_colors(p, gr); +} + +void qp_plot_set_x11_draw_mode(struct qp_plot *p, struct qp_graph *gr) +{ + make_x11_colors(p, gr); +} + +struct qp_plot *qp_plot_copy_create(struct qp_graph *gr, struct qp_plot *old_p) +{ + struct qp_plot *p; + struct qp_graph_x11 *x11_save; + + x11_save = gr->x11; + if(x11_save) + /* We cannot let the X11 colors be allocated since + * they may change after the plot is made. */ + gr->x11 = NULL; + + p = qp_plot_create(gr, old_p->x, old_p->y, old_p->name, + 1.0, -1.0, 1.0, -1.0); + + /* Here we may be changing the colors + * to match the plot we are copying */ + memcpy(&p->p,&old_p->p, sizeof(p->p)); + memcpy(&p->l,&old_p->l, sizeof(p->l)); + + /* now that we have the colors set we can + * allocate the X11 colors. */ + gr->x11 = x11_save; + if(gr->x11) + make_x11_colors(p, gr); + + p->lines = old_p->lines; + p->points = old_p->points; + p->gaps = old_p->gaps; + + p->xscale = old_p->xscale; + p->yscale = old_p->yscale; + p->xshift = old_p->xshift; + p->yshift = old_p->yshift; + + p->xscale0 = old_p->xscale0; + p->yscale0 = old_p->yscale0; + p->xshift0 = old_p->xshift0; + p->yshift0 = old_p->yshift0; + + p->line_width = old_p->line_width; + p->point_size = old_p->point_size; + + + + return p; +} + +qp_plot_t qp_plot_create(qp_graph_t gr, + qp_channel_t x, qp_channel_t y, const char *name, + double xmin, double xmax, double ymin, double ymax) +{ + struct qp_plot *p; + size_t num_points = (size_t) -1; + ASSERT(gr); + ASSERT(x); + ASSERT(y); + ASSERT(name); + + p = (struct qp_plot*) qp_malloc(sizeof(*p)); + qp_sllist_append(gr->plots, p); + p->name = qp_strdup(name); + p->gr = gr; + p->gaps = app->op_gaps; + p->x_entry = NULL; + p->y_entry = NULL; + p->x_picker = NULL; + p->y_picker = NULL; + + + /* get default point and line colors */ + qp_color_gen_next(gr->color_gen, &p->p.c.r, &p->p.c.g, &p->p.c.b, -1); + qp_color_gen_next(gr->color_gen, &p->l.c.r, &p->l.c.g, &p->l.c.b, -1); + p->p.c.a = 0.95; + p->l.c.a = 0.85; + + + if(gr->x11) + make_x11_colors(p, gr); + + + switch(x->form) + { + case QP_CHANNEL_FORM_SERIES: + { + if(xmax < xmin) + { + xmin = x->series.min; + xmax = x->series.max; + } + p->x = qp_channel_series_create(x, 0); + p->x_is_reading = qp_channel_series_is_reading; + + switch(x->value_type) + { + case QP_TYPE_DOUBLE: + /* now these functions will not be inlined, oh well */ + p->channel_x_begin = qp_channel_series_double_begin; + p->channel_x_end = qp_channel_series_double_end; + p->channel_x_next = qp_channel_series_double_next; + p->channel_x_prev = qp_channel_series_double_prev; + p->channel_series_x_index = qp_channel_series_double_index; + p->channel_series_x_get_index = qp_channel_series_double_get_index; + break; + default: + VASSERT(0, "write more code here"); + break; + } + } + break; + /* TODO: add more cases */ + default: + VASSERT(0, "write more code here"); + break; + } + + switch(y->form) + { + case QP_CHANNEL_FORM_SERIES: + { + if(ymax < ymin) + { + ymin = y->series.min; + ymax = y->series.max; + } + p->y = qp_channel_series_create(y, 0); + p->y_is_reading = qp_channel_series_is_reading; + + switch(y->value_type) + { + case QP_TYPE_DOUBLE: + /* now these functions will not be inlined, oh well */ + p->channel_y_begin = qp_channel_series_double_begin; + p->channel_y_end = qp_channel_series_double_end; + p->channel_y_next = qp_channel_series_double_next; + p->channel_y_prev = qp_channel_series_double_prev; + p->channel_series_y_index = qp_channel_series_double_index; + break; + default: + VASSERT(0, "write more code here"); + break; + } + } + break; + /* TODO: add more cases */ + default: + VASSERT(0, "write more code here"); + break; + } + + /* find the number of points if we can */ + if(p->x->form == QP_CHANNEL_FORM_SERIES) + num_points = qp_channel_series_length(p->x); + if(p->y->form == QP_CHANNEL_FORM_SERIES) + { + size_t len; + len = qp_channel_series_length(p->y); + if(len < num_points) + num_points = len; + } + + if(app->op_lines == -1) + { + if(num_points > 1000000) + p->lines = 0; + else + p->lines = 1; + } + else + p->lines = app->op_lines; + + + p->points = app->op_points; + + + if(app->op_line_width != -1) + p->line_width = app->op_line_width; + else /* AUTO line_width */ + { + if(num_points > 100000) + p->line_width = 2; + else if(num_points > 100) + p->line_width = 4; + else if(num_points > 10) + p->line_width = 6; + else + p->line_width = 8; + + if((gr->grid_line_width%2)) + ++(p->line_width); + } + + if(app->op_point_size != -1) + p->point_size = app->op_point_size; + else + { + if(num_points > 1000000) + p->point_size = 2; + else if(num_points > 10000) + p->point_size = 4; + else if(num_points > 100) + p->point_size = 6; + else if(num_points > 10) + p->point_size = 8; + else + p->point_size = 10; + + if((gr->grid_line_width%2)) + ++(p->point_size); + } + + + p->xscale0 = 1.0/(xmax - xmin); + p->xshift0 = -xmin/(xmax - xmin); + + p->yscale0 = 1.0/(ymax - ymin); + p->yshift0 = -ymin/(ymax - ymin); + + p->xscale = 0.0; + p->xshift = 0.0; + + p->yscale = 0.0; + p->yshift = 0.0; + + p->sig_fig_x = 0; + p->sig_fig_y = 0; + + return p; +} + + +void qp_plot_destroy(qp_plot_t plot, struct qp_graph *gr) +{ + ASSERT(plot); + ASSERT(plot->name); + + if(plot) + { + /* if the channels are series we must free + * resources */ + if(plot->x->form == QP_CHANNEL_FORM_SERIES) + qp_channel_destroy(plot->x); + if(plot->y->form == QP_CHANNEL_FORM_SERIES) + qp_channel_destroy(plot->y); + if(plot->x_picker && plot->x_picker->form == QP_CHANNEL_FORM_SERIES) + qp_channel_destroy(plot->x_picker); + if(plot->y_picker && plot->y_picker->form == QP_CHANNEL_FORM_SERIES) + qp_channel_destroy(plot->y_picker); + + /* If using X11 to draw we need to free the X11 colors */ + if(gr->x11) + free_x11_colors(plot, gr); + + free(plot->name); + free(plot); + } +} + diff -Nru quickplot-0.8.15/PlotConfig.cpp quickplot-0.9.11/PlotConfig.cpp --- quickplot-0.8.15/PlotConfig.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/PlotConfig.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,402 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include - -#include - - -using namespace Gtk; -#include "value_t.h" -#include "Globel.h" - -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" - -#include "MainWindow.h" - -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "GraphConfig.h" -#include "App.h" -#include "Source.h" - -#include "quickplot_icon.xpm" - - -PlotConfig::PlotConfig(MainWindow *w, Plot *p, - int x_in, int y_in): - - picture(p), - - lineFrame("Line Properties"), - showLineCB("Showing"), - lineColorB("Set Color"), - lineWidthVS(0, MAX_PLOT_LINE_WIDTH, MAXMAX_PLOT_LINE_WIDTH, "Width"), - - pointFrame("Point Properties"), - showPointsCB("Showing"), - pointColorB("Set Color"), - pointSizeVS(0, MAX_POINT_SIZE, MAXMAX_POINT_SIZE, "Size") -{ - mainWindow = w; - plot = NULL; - set_default_size(300, 200); - picture.set_size_request(-1,30); - - vBox.set_spacing(8); - hBox.set_spacing(8); - lineVBox.set_border_width(8); - pointVBox.set_border_width(8); - - - add(vBox); - vBox.pack_start(picture, PACK_EXPAND_WIDGET); - vBox.pack_start(hBox, PACK_SHRINK); - hBox.add(lineFrame); - hBox.add(pointFrame); - - lineFrame.add(lineVBox); - lineVBox.add(showLineCB); - lineVBox.add(lineColorB); - lineVBox.add(lineWidthVS); - - pointFrame.add(pointVBox); - pointVBox.add(showPointsCB); - pointVBox.add(pointColorB); - pointVBox.add(pointSizeVS); - - setPlot(p); - - showLineCB.signal_clicked(). - connect( sigc::mem_fun(*this, &PlotConfig::on_showLine)); - lineColorB.signal_pressed(). - connect( sigc::mem_fun(*this, &PlotConfig::on_lineColor)); - lineWidthVS.signal_valueChanged(). - connect( sigc::mem_fun(*this, &PlotConfig::on_lineWidth)); - - showPointsCB.signal_clicked(). - connect( sigc::mem_fun(*this, &PlotConfig::on_showPoints)); - pointColorB.signal_pressed(). - connect( sigc::mem_fun(*this, &PlotConfig::on_pointColor)); - pointSizeVS.signal_valueChanged(). - connect( sigc::mem_fun(*this, &PlotConfig::on_pointSize)); - - signal_hide().connect(sigc::mem_fun(*this,&PlotConfig::deleteLater)); - - Glib::RefPtr pix = - Gdk::Pixbuf::create_from_xpm_data(quickplot_icon); - set_icon(pix); - - x = x_in; - y = y_in; - - show_all_children(); -} - -void PlotConfig::setTitle(void) -{ - char s[16]; - - if(mainWindow->mainWindowNumber > 1) - { - sprintf(s, "(%d): ", mainWindow->mainWindowNumber); - } - else - s[0] = '\0'; - - Glib::ustring str = s; - str += "Configure Plot: "; - str += plot->getLabel(); - str += " : "; - - GraphTab *l = dynamic_cast - (mainWindow->graphsNotebook.get_tab_label(*(mainWindow->currentGraph))); - if(l) - str += l->label.get_text(); - - set_title(str); -} - - -void PlotConfig::on_unmap() -{ - // Remember where the window was positioned if it is not showing - // now. - get_position(x , y); - Window::on_unmap(); -} - - -void PlotConfig::show() -{ - // Remember where the window was positioned. - if(!is_visible() && x != PC_SMALL_INT) - move(x, y); - - Window::show(); -} - - -void PlotConfig::setPlot(Plot *p) -{ - - plot = p; - - // now modify widgets. .... - setTitle(); - - picture.setPlot(plot); - if(is_visible()) - picture.queueRedraw(); - - plotChanged_connection.disconnect(); - - plotChanged_connection = - plot->signal_changed(). - connect(sigc::mem_fun(*this,&PlotConfig::on_plotChanged)); - - setValues(); -} - -extern "C" -{ - struct DeleteLater - { - PlotConfig *plotConfig; - MainWindow *mainWindow; - }; - - static gboolean deleteThisLater(gpointer data) - { - gtk_idle_remove_by_data(data); - struct DeleteLater *d = (struct DeleteLater *) data; - d->mainWindow->deletePlotConfig(d->plotConfig); - free(data); - return ((gint) 0); - } -} - - -void PlotConfig::deleteLater(void) -{ - struct DeleteLater *d = (struct DeleteLater *) - malloc(sizeof(struct DeleteLater)); - d->plotConfig = this; - d->mainWindow = mainWindow; - gtk_idle_add(deleteThisLater, d); -} - -void PlotConfig::setValues(void) -{ - if(plot->getShowLines() != showLineCB.get_active()) - showLineCB.set_active(plot->getShowLines()); - lineWidthVS.setValue(plot->getLineWidth()); - - - if(plot->getShowPoints() != showPointsCB.get_active()) - showPointsCB.set_active(plot->getShowPoints()); - pointSizeVS.setValue(plot->getPointSize()); -} - -void PlotConfig::on_plotChanged(void) -{ - setValues(); -} - -void PlotConfig::on_showLine(void) -{ - if(plot->getShowLines() != showLineCB.get_active()) - { - plot->setShowLines(showLineCB.get_active()); - plot->graph->queueRedraw(); - if(mainWindow->graphConfig) - mainWindow->graphConfig->plotSelector.drawArea.queueRedraw(); - } -} - -void PlotConfig::on_lineColor(void) -{ - Gtk::ColorSelectionDialog dialog; - - //Set the current color: - Gtk::ColorSelection* pColorSel = dialog.get_colorsel(); - pColorSel->set_current_color(plot->getLineColor()); - - { // set dialog title - char s[16]; - if(mainWindow->mainWindowNumber > 1) - { - sprintf(s, "(%d): ", mainWindow->mainWindowNumber); - } - else - s[0] = '\0'; - - Glib::ustring str = s; - str += "Plot Line Color: "; - str += plot->getLabel(); - str += ": "; - GraphTab *l = dynamic_cast - (mainWindow->graphsNotebook.get_tab_label(*(mainWindow->currentGraph))); - if(l) - str += l->label.get_text(); - dialog.set_title(str); - } - - int result = dialog.run(); - - //Handle the response: - switch(result) - { - case(Gtk::RESPONSE_OK): - { - const Gdk::Color color = pColorSel->get_current_color(); - plot->setLineColor(color); - if(mainWindow->graphConfig) - mainWindow->graphConfig->plotSelector.drawArea.queueRedraw(); - plot->graph->queueRedraw(); - break; - } - case(Gtk::RESPONSE_CANCEL): - { - //opSpew << "Cancel clicked." << std::endl; - break; - } - default: - { - //opSpew << "Unexpected button clicked." << std::endl; - break; - } - } -} - -void PlotConfig::on_lineWidth(void) -{ - if(plot->getLineWidth() != lineWidthVS.getValue()) - { - plot->setLineWidth(lineWidthVS.getValue()); - if(plot->getShowLines()) - plot->graph->queueRedraw(); - if(mainWindow->graphConfig) - mainWindow->graphConfig->plotSelector.drawArea.queueRedraw(); - } -} - -void PlotConfig::on_showPoints(void) -{ - if(plot->getShowPoints() != showPointsCB.get_active()) - { - plot->setShowPoints(showPointsCB.get_active()); - plot->graph->queueRedraw(); - if(mainWindow->graphConfig) - mainWindow->graphConfig->plotSelector.drawArea.queueRedraw(); - } -} - -void PlotConfig::on_pointColor(void) -{ - Gtk::ColorSelectionDialog dialog; - - //Set the current color: - Gtk::ColorSelection* pColorSel = dialog.get_colorsel(); - pColorSel->set_current_color(plot->getPointColor()); - - { // set dialog title - char s[16]; - if(mainWindow->mainWindowNumber > 1) - { - sprintf(s, "(%d): ", mainWindow->mainWindowNumber); - } - else - s[0] = '\0'; - - Glib::ustring str = s; - str += "Plot Point Color: "; - str += plot->getLabel(); - str += ": "; - GraphTab *l = dynamic_cast - (mainWindow->graphsNotebook.get_tab_label(*(mainWindow->currentGraph))); - if(l) - str += l->label.get_text(); - dialog.set_title(str); - } - - int result = dialog.run(); - - //Handle the response: - switch(result) - { - case(Gtk::RESPONSE_OK): - { - const Gdk::Color color = pColorSel->get_current_color(); - plot->setPointColor(color); - if(mainWindow->graphConfig) - mainWindow->graphConfig->plotSelector.drawArea.queueRedraw(); - plot->graph->queueRedraw(); - break; - } - case(Gtk::RESPONSE_CANCEL): - { - //opSpew << "Cancel clicked." << std::endl; - break; - } - default: - { - //opSpew << "Unexpected button clicked." << std::endl; - break; - } - } -} - -void PlotConfig::on_pointSize(void) -{ - if(plot->getPointSize() != pointSizeVS.getValue()) - { - plot->setPointSize(pointSizeVS.getValue()); - if(plot->getShowPoints()) - plot->graph->queueRedraw(); - if(mainWindow->graphConfig) - mainWindow->graphConfig->plotSelector.drawArea.queueRedraw(); - } -} - -// Widget Key Accelerators don't work all the time, so we get the key -// strokes the hard way. Also there is no way to use Widget Key -// Accelerators with Gtk::Window. -bool PlotConfig::on_key_press_event(GdkEventKey* event) -{ - // Can add checks on GdkModifierType in event->state. - - switch(event->keyval) - { - case GDK_Escape: - { - hide(); - return true; - break; - } - default: - if(mainWindow->commonKeyPress(event)) - return true; - break; - } - - return Window::on_key_press_event(event); -} diff -Nru quickplot-0.8.15/PlotConfig.h quickplot-0.9.11/PlotConfig.h --- quickplot-0.8.15/PlotConfig.h 2009-03-08 20:13:59.000000000 +0000 +++ quickplot-0.9.11/PlotConfig.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,71 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -#define NUMPLOTCONFIGS 2 - -#define PC_SMALL_INT INT_MIN - - -class Plot; -class MainWindow; -class Picture; -class ValueSlider; - -class PlotConfig: public Window -{ -public: - - PlotConfig(MainWindow *mainWindow, Plot *plot, int x, int y); - - void setPlot(Plot *plot); - - void show(void); - void on_unmap(void); - void deleteLater(void); - - Plot *plot; - int x, y; - void setTitle(void); - -private: - - MainWindow *mainWindow; - - - VBox vBox; - Picture picture; - HBox hBox; - - // PLOT LINE - Frame lineFrame; - VBox lineVBox; - CheckButton showLineCB; - Button lineColorB; - ValueSlider lineWidthVS; - // RadioButton style1, style2 etc ... - - // PLOT POINTS - Frame pointFrame; - VBox pointVBox; - CheckButton showPointsCB; - Button pointColorB; - ValueSlider pointSizeVS; - // RadioButton style1, style2 etc ... - - sigc::connection plotChanged_connection; - - void setValues(void); - - // slots - void on_plotChanged(void); - - void on_showLine(void); - void on_lineColor(void); - void on_lineWidth(void); - - void on_showPoints(void); - void on_pointColor(void); - void on_pointSize(void); - - bool on_key_press_event(GdkEventKey* event); -}; diff -Nru quickplot-0.8.15/Plot.cpp quickplot-0.9.11/Plot.cpp --- quickplot-0.8.15/Plot.cpp 2009-03-08 20:29:49.000000000 +0000 +++ quickplot-0.9.11/Plot.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,829 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include - - -using namespace Gtk; -#include "value_t.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Field.h" -#include "LinearField.h" - -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "Globel.h" - - -// SPACE is the fraction of blank space on graphing area for the first -// auto zoom level. The blank space is split evenly between the top -// and bottom and on the right and left side. So for example the size -// of the blank space on the top and bottom is graph_height*SPACE/2 -// (pixels) and on the right and left side it's graph_width*SPACE/2 -// (pixels). -#define SPACE ((value_t) 0.06) -#define FILL (((value_t) 1.0) - SPACE) - - -void Plot::init(void) -{ - graph->push_back(this); - // Get what plot number is this in the Graph. - plotCount = (int) graph->size(); // graph list size. - - pickerXDequeuer = NULL; - - // Set the default label. - { - const char *format = "%s (%s) VS %s (%s)"; - size_t len = strlen(format); - len += strlen(_y->getLabel()) + 1; - len += strlen(_y->getName()) + 1; - len += strlen(_x->getLabel()) + 1; - len += strlen(_x->getName()) + 1; - label = (char *) malloc(sizeof(char)*len); - sprintf(label, format, - _y->getLabel(), _y->getName(), - _x->getLabel(), _x->getName()); - } - - setWidthHeightDepParmeters(); - - { // Find the number of values to plot. - - // The Linear field has an undetermined number of values. - - LinearField *lx = dynamic_cast(_x); - LinearField *ly = dynamic_cast(_y); - - if(!lx && !ly) - { - numberOfValues = - (_x->numberOfValues() < _y->numberOfValues())? - _x->numberOfValues():_y->numberOfValues(); - } - else if(lx && !ly) - { - numberOfValues = _y->numberOfValues(); - } - else if(!lx && ly) - { - numberOfValues = _x->numberOfValues(); - } - else // (lx && ly) - { - numberOfValues = 10000; - } - } - - xmax = _x->max(numberOfValues-1); - xmin = _x->min(numberOfValues-1); - ymax = _y->max(numberOfValues-1); - ymin = _y->min(numberOfValues-1); - -#if 0 - opSpew << " xmax=" << xmax << " xmin=" << xmin << - " ymax=" << ymax << " ymin=" << ymin << std::endl; -#endif - - firstZoomLevel = currentZoomLevel = lastZoomLevel = NULL; - - firstZoomLevel = currentZoomLevel = lastZoomLevel = - new ZoomLevel(this, width, height, xmax, xmin, ymax, ymin); - - // need a line color and a point color. - gushort lr, lg, lb, pr, pg, pb; - // There's a ColorGen object in the graph that asigns the default - // plot colors. - graph->colorGen.getColors(lr, lg, lb, pr, pg, pb); - - // I don't know how this colormap thing works, but this seems to - // work. - Glib::RefPtr colormap = graph->get_default_colormap(); - lineColor.set_red(lr); - lineColor.set_green(lg); - lineColor.set_blue(lb); - colormap->alloc_color(lineColor); - - pointColor.set_red(pr); - pointColor.set_green(pg); - pointColor.set_blue(pb); - colormap->alloc_color(pointColor); - - if(!opUserSetLineOrPointOption && numberOfValues >= 1000000) - { - showLines = false; - showPoints = true; - lineWidth = 0; - pointSize = 0; - } - else - { - // defaults for plots from graph - showLines = graph->showLines; - showPoints = graph->showPoints; - lineWidth = graph->lineWidth; - pointSize = graph->pointSize; - } - - pointSizeDiv2 = pointSize/2; - - widthPlus = (value_t) (width + lineWidth + 1); - heightPlus = (value_t) (height + lineWidth + 1); - lineWidthPlus1 = (value_t) (lineWidth + 1); - - drawLineFunc = &Plot::drawLine0; - drawPointFunc = &Plot::drawPoint0; - - xpick = ypick = MAXVALUE; -} - -// Construct a copy of plot -Plot::Plot(Graph *graph_in, Plot *plot): - graph(graph_in), - _x(plot->x()), _y(plot->y()) -{ - init(); - - // copy parameters. - lineColor = plot->lineColor; - pointColor = plot->pointColor; - - showLines = plot->showLines; - showPoints = plot->showPoints; - lineWidth = plot->lineWidth; - pointSize = plot->pointSize; - - pointSizeDiv2 = pointSize/2; - - drawLineFunc = plot->drawLineFunc; - drawPointFunc = plot->drawPointFunc; - - - setWidthHeightDepParmeters(); - - // Copy all the ZoomLevels - ZoomLevel *z = plot->firstZoomLevel; - currentZoomLevel->copy(z); - - for(z = z->next; z != plot->lastZoomLevel->next; z = z->next) - { - // make a new zoomLevel - zoomIn(0,0,10,10); - // set this zoomLevel to match. - currentZoomLevel->copy(z); - } - - // Find the Current ZoomLevel - zoomOutToTop(); - z = plot->firstZoomLevel; - for(;z != plot->currentZoomLevel; z = z->next) - { - zoomBackIn(); - } - - resize(); -} - -Plot::Plot(Graph *graph_in, Field *X, Field *Y): - graph(graph_in), - _x(X), _y(Y) -{ - init(); -} - -void Plot::setWidthHeightDepParmeters(void) -{ - width = graph->get_width(); - height = graph->get_height(); - - widthPlus = (value_t) (width + lineWidth + 1); - heightPlus = (value_t) (height + lineWidth + 1); - lineWidthPlus1 = (value_t) (lineWidth + 1); -} - -// This is for when the Plots in a Graph are all set to have the -// same scales. -void Plot::resetZoomLevels(value_t xmax_in, value_t xmin_in, - value_t ymax_in, value_t ymin_in) -{ - // Zoom all the way out and remove the previous zoom levels. - lastZoomLevel = currentZoomLevel = firstZoomLevel; - - currentZoomLevel->reset(width, height, xmax_in, xmin_in, ymax_in, ymin_in); -} - -// This is for when the Plots in a Graph are all set to have the -// different scales. -void Plot::resetZoomLevels(void) -{ - // Zoom all the way out and remove the previous zoom levels. - lastZoomLevel = currentZoomLevel = firstZoomLevel; - - currentZoomLevel->reset(width, height, xmax, xmin, ymax, ymin); -} - - - -// These are the default 0 draw methods. -void Plot::drawPoint0(int X, int Y) -{ - if(pointSize <= 1) - win->draw_point(gc, X, Y); - else - { - win->draw_rectangle(gc, true, - X-pointSizeDiv2, Y-pointSizeDiv2, - pointSize, pointSize); - } -} - -void Plot::drawLine0(int fromX, int fromY, int toX, int toY) -{ - win->draw_line(gc, fromX, fromY, toX, toY); -} - - -Plot::~Plot() -{ - graph->remove(this); - graph->queueRedraw(); - - // delete all the zoom levels. - while(firstZoomLevel) - delete firstZoomLevel; - - if(pickerXDequeuer) - { - _x->destroyDequeuer(pickerXDequeuer); - _y->destroyDequeuer(pickerYDequeuer); - } -} - -// Cull and Draw -void Plot::cullDrawPoint(value_t X, value_t Y) -{ - if(X > -pointSize && X < (value_t) (width+pointSize) && - Y > -pointSize && Y < (value_t) (height+pointSize)) - { - (this->*drawPointFunc)((int) X, (int) Y); - } -} - -void Plot::drawPoints(void) -{ - gc->set_foreground(pointColor); - - value_t scaleX = currentZoomLevel->scaleX; - value_t shiftX = currentZoomLevel->shiftX; - - value_t scaleY = currentZoomLevel->scaleY; - value_t shiftY = currentZoomLevel->shiftY; - - if(_x != _y) - { - _x->rewind(); - _y->rewind(); - - count_t i; - for(i=0;iread()*scaleX + shiftX; - value_t Y = _y->read()*scaleY + shiftY; - - cullDrawPoint(X, Y); - } - } - else // _x == _y the X and Y Fields are the same - // This is not very interesting, but they asked for it. - { - _x->rewind(); - - count_t i; - for(i=0;iread(); - - cullDrawPoint(X*scaleX + shiftX, X*scaleY + shiftY); - } - } -} - -void Plot::drawLines(void) -{ - gc->set_line_attributes (lineWidth, Gdk::LINE_SOLID, - Gdk::CAP_ROUND, Gdk::JOIN_ROUND); - gc->set_foreground(lineColor); - - value_t scaleX = currentZoomLevel->scaleX; - value_t shiftX = currentZoomLevel->shiftX; - - value_t scaleY = currentZoomLevel->scaleY; - value_t shiftY = currentZoomLevel->shiftY; - - if(_x != _y) - { - _x->rewind(); - _y->rewind(); - - value_t fromX = _x->read()*scaleX + shiftX; - value_t fromY = _y->read()*scaleY + shiftY; - - count_t i; - for(i=0;iread()*scaleX + shiftX; - value_t toY = _y->read()*scaleY + shiftY; - - cullDrawLine(fromX, fromY, toX, toY); - - fromX = toX; - fromY = toY; - } - } - else // _x == _y the X and Y Fields are the same - // This is not very interesting, but they asked for it. - { - _x->rewind(); - - value_t X = _x->read(); - - value_t fromX = X*scaleX + shiftX; - value_t fromY = X*scaleY + shiftY; - - count_t i; - for(i=0;iread(); - - value_t toX = X*scaleX + shiftX; - value_t toY = X*scaleY + shiftY; - - cullDrawLine(fromX, fromY, toX, toY); - fromX = toX; - fromY = toY; - } - - } -} - -// must be called before using this class to get scale numbers and/or -// draw to make sure that scales are consistant. This could be used -// as a signal_resize() slot. -void Plot::preDrawCheckResize(void) -{ - if(width != graph->get_width() || - height != graph->get_height()) - resize(); -} - -void Plot::draw(Glib::RefPtr win_in, - Glib::RefPtr gc_in) -{ - if(!showLines && !showPoints) return; - - preDrawCheckResize(); - - gc = gc_in; - win = win_in; - - if(showLines) - drawLines(); - - if(showPoints) - drawPoints(); - - gc.clear(); - win.clear(); -} - -void Plot::resize(void) -{ - ZoomLevel *z = firstZoomLevel; - ZoomLevel *end = lastZoomLevel->next; - - setWidthHeightDepParmeters(); - - while(z != end) - { - z->reset(width, height); - z = z->next; - } -} - - -// zoOM in with a zoom box. -void Plot::zoomIn(int x, int y, int w, int h) -{ - if(!currentZoomLevel->next) - currentZoomLevel = lastZoomLevel = - new ZoomLevel(this, width, height, x, y, w, h); - else - { - currentZoomLevel = lastZoomLevel - = currentZoomLevel->next; - currentZoomLevel->reset(width, height, x, y, w, h); - } -} - -void Plot::zoomBackIn(void) -{ - if(currentZoomLevel != lastZoomLevel) - currentZoomLevel = currentZoomLevel->next; -} - -// Zoom out one level. -void Plot::zoomOut(void) -{ - if(currentZoomLevel->prev) - currentZoomLevel = currentZoomLevel->prev; -} - -// Zoom back to the first zoom level, i.e. no zoom. -void Plot::zoomOutToTop(void) -{ - currentZoomLevel = firstZoomLevel; -} - -void Plot::setLabel(const char *l) -{ - if(l && l[0]) - { - if(label) - free(label); - - label = strdup(l); - } -} - -void Plot::setLineWidth(int width) -{ - lineWidth = width; - setWidthHeightDepParmeters(); - m_signal_changed.emit(); -} - -void Plot::setPointSize(int size) -{ - pointSize = size; - pointSizeDiv2 = pointSize/2; - m_signal_changed.emit(); -} - -void Plot::setLineColor(const Gdk::Color &color) -{ - lineColor = color; - graph->get_default_colormap()->alloc_color(lineColor); - m_signal_changed.emit(); -} - -void Plot::setPointColor(const Gdk::Color &color) -{ - pointColor = color; - graph->get_default_colormap()->alloc_color(pointColor); - m_signal_changed.emit(); -} - -// Emitted when the lineColor, pointColor, lineWidth or pointSize -// changes. -sigc::signal0 Plot::signal_changed(void) -{ - return m_signal_changed; -} - -// pick a Y value. -int Plot::emitDisplayValues(int X_in) -{ - if(!pickerXDequeuer) - { - pickerXDequeuer = _x->makeDequeuer(numberOfValues); - pickerYDequeuer = _y->makeDequeuer(numberOfValues); - } - - // It is assumed that the X field is increasing. - - value_t x_val = (X_in - currentZoomLevel->shiftX)/currentZoomLevel->scaleX; - value_t xUpper, xLower, yUpper, yLower; - - xLower = _x->read(pickerXDequeuer); - yLower = _y->read(pickerYDequeuer); - xUpper = _x->read(pickerXDequeuer); - yUpper = _y->read(pickerYDequeuer); - - - while(xUpper < x_val) - { - xLower = xUpper; - yLower = yUpper; - xUpper = _x->read(pickerXDequeuer); - yUpper = _y->read(pickerYDequeuer); - if(xUpper == xLower) - break; - } - - if(xUpper == xLower) - { - // We need to push the dequeuer back so we don't read the same - // value again. - _x->readBack(pickerXDequeuer); - _y->readBack(pickerYDequeuer); - } - - while(xLower > x_val) - { - xUpper = xLower; - yUpper = yLower; - xLower = _x->readBack(pickerXDequeuer); - yLower = _y->readBack(pickerYDequeuer); - if(xUpper == xLower) - break; - } - - //opSpew << __LINE__ << " xLower=" << xLower << " xUpper=" << xUpper - // << " yLower=" << yLower << " yUpper=" << yUpper - // << std::endl; - - - if(x_val - xLower > xUpper - x_val) - { - xpick = xUpper; - ypick = yUpper; - } - else - { - xpick = xLower; - ypick = yLower; - } - - m_signal_valueDisplay.emit(xpick, ypick); - - return (int) (xpick*currentZoomLevel->scaleX + currentZoomLevel->shiftX); -} - -// interpolate a Y value. -void Plot::emitInterpolatedDisplayValues(int X_in) -{ - if(!pickerXDequeuer) - { - pickerXDequeuer = _x->makeDequeuer(numberOfValues); - pickerYDequeuer = _y->makeDequeuer(numberOfValues); - } - - // It is assumed that the X field is increasing. - - // we will interpolate a Y value. - value_t x_val = (X_in - currentZoomLevel->shiftX)/currentZoomLevel->scaleX; - value_t xUpper, xLower, yUpper, yLower; - - xLower = _x->read(pickerXDequeuer); - yLower = _y->read(pickerYDequeuer); - xUpper = _x->read(pickerXDequeuer); - yUpper = _y->read(pickerYDequeuer); - - while(xUpper < x_val) - { - xLower = xUpper; - yLower = yUpper; - xUpper = _x->read(pickerXDequeuer); - yUpper = _y->read(pickerYDequeuer); - if(xUpper == xLower) - break; - } - - if(xUpper == xLower) - { - // We need to push the dequeuer back so we don't read the same - // value again. - _x->readBack(pickerXDequeuer); - _y->readBack(pickerYDequeuer); - } - - while(xLower > x_val) - { - xUpper = xLower; - yUpper = yLower; - xLower = _x->readBack(pickerXDequeuer); - yLower = _y->readBack(pickerYDequeuer); - if(xUpper == xLower) - break; - } - - //opSpew << __LINE__ << " xLower=" << xLower << " xUpper=" << xUpper - // << " yLower=" << yLower << " yUpper=" << yUpper - // << std::endl; - - if(xUpper != xLower) - { - if(xLower <= x_val && xUpper >= x_val) - { - xpick = x_val; - ypick = yLower + (x_val-xLower)*(yUpper-yLower)/(xUpper-xLower); - } - else if(xLower > x_val) - { - xpick = xLower; - ypick = yLower; - } - else // xUpper < x_val - { - xpick = xUpper; - ypick = yUpper; - } - } - else - { - xpick = xUpper; - ypick = yUpper; - } - - m_signal_valueDisplay.emit(xpick, ypick); -} - -void Plot::emitDisplayValues(int X, int Y) -{ - xpick = (X - currentZoomLevel->shiftX)/currentZoomLevel->scaleX; - ypick = (Y - currentZoomLevel->shiftY)/currentZoomLevel->scaleY; - m_signal_valueDisplay.emit(xpick, ypick); -} - -sigc::signal2 Plot::signal_valueDisplay(void) -{ - return m_signal_valueDisplay; -} - - - - -// For the first Zoom Level with the max and min limits given. -ZoomLevel::ZoomLevel(Plot *plot_in, int width, int height, - value_t xmax, value_t xmin, - value_t ymax, value_t ymin): - plot(plot_in) -{ - prev = next = NULL; - - reset(width, height, xmax, xmin, ymax, ymin); -} - -// Based on the prev Plot Zoom Level and a zoom box defined by -// (x,y,w,h). -ZoomLevel::ZoomLevel(Plot *plot_in, int width, int height, - int x, int y, int w, int h): - plot(plot_in) -{ - ZoomLevel *z = plot->firstZoomLevel; - while(z->next) - z = z->next; - // z is now the last zoom Level. - z->next = this; - prev = z; - next = NULL; - - xMax = (x + w - prev->shiftX)/prev->scaleX; - xMin = (x - prev->shiftX)/prev->scaleX; - - scaleX = width*FILL/(xMax - xMin); - shiftX = width*SPACE/2 - scaleX * xMin; - - - yMax = (y - prev->shiftY)/prev->scaleY; - yMin = (y + h - prev->shiftY)/prev->scaleY; - - scaleY = - height*FILL/(yMax - yMin); - shiftY = height*SPACE/2 - scaleY * yMax; -} - -void ZoomLevel::reset(int width, int height, - int x, int y, int w, int h) -{ - xMax = (x + w - prev->shiftX)/prev->scaleX; - xMin = (x - prev->shiftX)/prev->scaleX; - - scaleX = width*FILL/(xMax - xMin); - shiftX = width*SPACE/2 - scaleX * xMin; - - - yMax = (y - prev->shiftY)/prev->scaleY; - yMin = (y + h - prev->shiftY)/prev->scaleY; - - scaleY = - height*FILL/(yMax - yMin); - shiftY = height*SPACE/2 - scaleY * yMax; -} - -void ZoomLevel::reset(int width, int height) -{ - scaleX = width*FILL/(xMax - xMin); - shiftX = width*SPACE/2 - scaleX * xMin; - - scaleY = - height*FILL/(yMax - yMin); - shiftY = height*SPACE/2 - scaleY * yMax; -} - -// This only works and makes sense for the first zoom level. This is -// for when the Plots are all set to have the same scales. -void ZoomLevel::reset(int width, int height, - value_t xmax, value_t xmin, - value_t ymax, value_t ymin) -{ - if(xmax != xmin) - { - xMax = xmax; - xMin = xmin; - } - else // xmax == xmin - { - if((plot->plotCount)%2) // odd - { - xMax = xmax + (value_t) 0.1 + (value_t) 0.3/((value_t)plot->plotCount); - xMin = xmin - (value_t) 0.1; - } - else // even - { - xMax = xmax + (value_t) 0.1; - xMin = xmin - (value_t) 0.1 - (value_t) 0.3/((value_t)(plot->plotCount-1)); - } - } - - if(ymax != ymin) - { - yMax = ymax; - yMin = ymin; - } - else - { - if((plot->plotCount)%2) // odd - { - yMax = ymax + (value_t) 0.1 + (value_t) 0.3/((value_t)plot->plotCount); - yMin = ymin - (value_t) 0.1; - } - else // even - { - yMax = ymax + (value_t) 0.1; - yMin = ymin - (value_t) 0.1 - (value_t) 0.3/((value_t)(plot->plotCount-1)); - } - } - - scaleX = width*FILL/(xMax - xMin); - shiftX = width*SPACE/2 - scaleX * xMin; - - scaleY = - height*FILL/(yMax - yMin); - shiftY = height*SPACE/2 - scaleY * yMax; -} - -void ZoomLevel::copy(ZoomLevel *z) -{ - scaleX = z->scaleX; - scaleY = z->scaleY; - shiftX = z->shiftX; - shiftY = z->shiftY; - - xMax = z->xMax; - xMin = z->xMin; - yMax = z->yMax; - yMin = z->yMin; -} - -ZoomLevel::~ZoomLevel(void) -{ - // Remove this from the double-ly linked list. - ZoomLevel *z = plot->firstZoomLevel; - for(; z ; z = z->next) - { - if(z == this) - { - if(next) - next->prev = prev; - if(prev) - prev->next = next; - - // In case the only zoom levels are in use fix the list in plot. - if(this == plot->firstZoomLevel) - plot->firstZoomLevel = next; - if(this == plot->currentZoomLevel) - plot->currentZoomLevel = (next) ? next : prev; - if(this == plot->lastZoomLevel) - plot->lastZoomLevel = (next) ? next : prev; - break; - } - } -} - diff -Nru quickplot-0.8.15/Plot_cullDrawLine.cpp quickplot-0.9.11/Plot_cullDrawLine.cpp --- quickplot-0.8.15/Plot_cullDrawLine.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/Plot_cullDrawLine.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,425 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include - - -using namespace Gtk; -#include "value_t.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "Globel.h" - - -#define ABSVAL(x) (((x) > (value_t)0.0) ? (x) : (-(x))) -#define ZRO ((value_t) 0.0) -#define ONE ((value_t) 1.0) - -#define LG (MAXVALUE/8) - - -// The old quickplot, from 2003, used a line and circle to cull. This -// uses a brute force linear method with the most likely cases first. -// This is lots more code than the old quickplot but this may run much -// faster since there are no square roots to calculate. The big -// pay-off will be with phase plots with lots of bunched data. - - -// Cull and Draw. We hope that then we draw to point just a little -// (~10 pixels) outside of the window there is no problem. Culling is -// required because zooming may generate numbers to plot like 1.0e+10 -// which when converted to an int will give unknown results and draw -// lines all over the place. Uncomment the //#define WITHOUT_CULLING -// to see what happens when you don't cull. Culling also increases -// speed. Not drawing is much faster than drawing. - -// Just for testing. -//#define WITHOUT_CULLING - -void Plot::cullDrawLine(value_t fromX, value_t fromY, - value_t toX, value_t toY) -{ -#ifdef WITHOUT_CULLING - // Try it with out culling. - (this->*drawLineFunc)((int) fromX, (int) fromY, (int) toX, (int) toY); - return; -#else - - - // The common cases come first. - - // If both points are in the window. - if(fromX > -lineWidthPlus1 && fromX < widthPlus && - toX > -lineWidthPlus1 && toX < widthPlus && - fromY > -lineWidthPlus1 && fromY < heightPlus && - toY > -lineWidthPlus1 && toY < heightPlus) - { - (this->*drawLineFunc)((int) fromX, (int) fromY, (int) toX, (int) toY); - return; - } - - - // Do some quick Culls for both points way off to one side: right, - // left, up, or down. This will Cull MOST points out!!!! Speed is - // the result. - - //points all on right side, - if((fromX >= widthPlus && toX >= widthPlus) || - // on the left side, - (fromX <= -lineWidthPlus1 && toX <= -lineWidthPlus1) || - // on top (up), - (fromY <= -lineWidthPlus1 && toY <= -lineWidthPlus1) || - // or on bottom (down) - (fromY >= heightPlus && toY >= heightPlus)) - return; // Culled!! - - - // Large value culling: We don't want to think about how large - // numbers will act in the calculations below. So we stop them - // here. LG is somewhere near the largest possible double (or - // float). Letting them through could cause a mess of lines all - // over the window, that have nothing to do with the data. - - if(ABSVAL(fromX) > LG || ABSVAL(toX) > LG || - ABSVAL(fromY) > LG || ABSVAL(toY) > LG || - ABSVAL(fromX-toX) > LG || ABSVAL(fromY-toY) > LG ) - { - // This tipically does not happen, but to let the culling continue - // with bad numbers may give bad results. - - if(opVerbose) - opSpew << "Quickplot: large value culling: " - << "from (" << fromX << ", " << fromY << ") to (" - << toX << ", " << toY << ")" << std::endl; - return; - } - - - // now both points are not in the window (maybe one point is). - // Below we refer to the line formed by the two points toX, toY and - // fromX, formY as "line" or "the line".. - - if(toX != fromX) - { - value_t m = (toY - fromY)/(toX - fromX); - if(ABSVAL(m) < ((value_t) 1.0e+6) && ABSVAL(m) > ((value_t) 1.0e-6)) - { - // MOST COMMON line. // with both points not in the window. - - // This is a generic line: it's not close to horizontal, - // horizontal, close to vertical, or vertical. - value_t a = fromY - m * fromX; - // the equation for the line is Y = a + m * X - - if(fromX > -lineWidthPlus1 && fromX < widthPlus && - fromY > -lineWidthPlus1 && fromY < heightPlus) - { - /************ one point in the window ***************/ - - // point fromX, fromY is in the window and point toX, toY is - // outside the window. - - // There is some overlap between these checks so that - // floating point round off make us miss lines. - - if(toX > (value_t) width && - ((value_t)-1) < m*width+a && - m*width+a < ((value_t) height+1)) - { - // crosses right side near X=width, Y=m*width+a - if(toX > widthPlus) toX = widthPlus; - - (this->*drawLineFunc)((int) fromX, (int) fromY, (int) toX, (int) (m*toX+a)); - return; - } - if(toX < ZRO && - ((value_t)-1) < a && - a < ((value_t) height+1)) - { - // crosses left side near X=0 at Y=a - if(toX < -lineWidthPlus1) toX = -lineWidthPlus1; - - (this->*drawLineFunc)((int) fromX, (int) fromY, (int) toX, (int) (m*toX+a)); - return; - } - if(toY > (value_t) height && - ((value_t)-1) < (height -a)/m && - (height -a)/m < ((value_t) width+1)) - { - // crosses bottom near Y=height, X=(height -a)/m - if(toY > heightPlus) toY = heightPlus; - - (this->*drawLineFunc)((int) fromX, (int) fromY, (int) ((toY -a)/m), (int) toY); - return; - } - if(toY < ZRO && - ((value_t)-1) < -a/m && - -a/m < ((value_t) width+1)) - { - // crosses top near Y=0, X=-a/m - if(toY < -lineWidthPlus1) toY = -lineWidthPlus1; - - (this->*drawLineFunc)((int) fromX, (int) fromY, (int) ((toY -a)/m), (int) toY); - return; - } - -#if 0 - if(!opSilent) - opSpew << "Quickplot: culling check" - << "from (" << fromX << ", " << fromY << ") to (" - << toX << ", " << toY << ")" << std::endl - << "line=" << __LINE__ << " file=" << __FILE__ - << std::endl; -#endif - - return; // Culled. Steep or shallow line near a window edge. - } - else if(toX > -lineWidthPlus1 && toX < widthPlus && - toY > -lineWidthPlus1 && toY < heightPlus) - { - /************ one point in the window ***************/ - - // point toX, toY is in the window and point fromX, fromY is - // not in the window - - // There is some overlap between these checks so that - // floating point round off won't make us miss lines. - - if(fromX < ZRO && - ((value_t)-1) < a && - a < ((value_t) height+1)) - { - // crosses left side near X=0, Y=a - if(fromX < -lineWidthPlus1) fromX = -lineWidthPlus1; - - (this->*drawLineFunc)((int) fromX, (int) (m*fromX+a), (int) toX, (int) toY); - return; - } - if(fromX > (value_t) width && - ((value_t)-1) < m*width+a && - m*width+a < ((value_t) height+1)) - { - // crosses right side near X=width, Y=m*width+a - if(fromX > widthPlus) fromX = widthPlus; - - (this->*drawLineFunc)((int) fromX, (int) (m*fromX+a), (int) toX, (int) toY); - return; - } - if(fromY < ZRO && - ((value_t)-1) < -a/m && - -a/m < ((value_t) width+1)) - { - // crosses top near Y=0, X=-a/m - if(fromY < -lineWidthPlus1) fromY = -lineWidthPlus1; - - (this->*drawLineFunc)((int) ((fromY-a)/m), (int) fromY, (int) toX, (int) toY); - return; - } - if(fromY > (value_t) height && - ((value_t)-1) < (height -a)/m && - (height -a)/m < ((value_t) width+1)) - { - // crosses bottom near Y=height, X=(height -a)/m - if(fromY > heightPlus) fromY = heightPlus; - - (this->*drawLineFunc)((int) ((fromY-a)/m), (int) fromY, (int) toX, (int) toY); - return; - } -#if 0 - if(!opSilent) - opSpew << "Quickplot: culling check" - << "from (" << fromX << ", " << fromY << ") to (" - << toX << ", " << toY << ")" << std::endl - << "line=" << __LINE__ << " file=" << __FILE__ - << std::endl; -#endif - - return; // Culled. Steep or shallow line near a window edge - // and outside the window. - } - else - { - /************ No points in the window ***************/ - - // a generic line with No points are in the window - // Y = m*X + a m is not large or small - - // We find the window intersection points with the greatest - // distance appart along the line. In most case there will be - // just two points of intersection, but since we will be using - // window edge lines that go 1 pixel past the edges to catch - // lost points do to floating points round off, there may be - // more than two points. The most is 4 points. Then we must - // make sure that the two points toX, toY and fromX, fromY are - // on oposite sides of the intersection points. - - // The four possible intersection points are. - int icount=0; // point intersection count - value_t X[4],Y[4]; // the array of 4 x,y points - - - // We count and set the values as we find them. - - // x, y=0 - X[icount] = -a/m;// x - if((value_t) -1 < X[icount] && X[icount] < (value_t) (width+1)) - Y[icount++] = ZRO; // y=0 - - // x, y=height - X[icount] = (height - a)/m;// x - if((value_t) -1 < X[icount] && X[icount] < (value_t) (width+1)) - Y[icount++] = (value_t) height; // y=height - - // x=0, y - Y[icount] = a; // y - if((value_t) -1 < Y[icount] && Y[icount] < (value_t) (height+1)) - X[icount++] = ZRO; // x=0 - - // x=width, y - Y[icount] = width*m + a; // y - if((value_t) -1 < Y[icount] && Y[icount] < (value_t) (height+1)) - X[icount++] = (value_t) width; // x=0 - - if(icount <= 1) - return; // Culled. The line does not pass through the window. - - - // icount == 2, 3 or 4 - // find the max in min x values. - - // I don't need to calulate distances like r^2 = delta_X^2 + - // delta_Y^2, because all the points are on a straight line - // that is not vertical or close to vertical. - - int max_i=0, min_i=0; - int i; - for(i=1;i X[max_i]) - max_i = i; - if(X[i] < X[min_i]) - min_i = i; - } - - // The direction that the line is drawn may matter if the line - // style shows the direction. Like lines with arrows in them - // like: --->--->--->--- . - - if(fromX < toX) - { - // x is increasing along the line. - (this->*drawLineFunc)((int) X[min_i], (int) Y[min_i], - (int) X[max_i], (int) Y[max_i]); - } - else - { - // x is decreasing along the line ao draw the other - // direction. - (this->*drawLineFunc)((int) X[max_i], (int) Y[max_i], - (int) X[min_i], (int) Y[min_i]); - } - return; - } - } - else if(ABSVAL(m) <= ((value_t) 1.2e-6) || toY == fromY) - // overlaping some of the above case - { - // it's close to a horizontal line or is a horizontal line. - - // window middle Y value. We assume that the window is much - // less than 1e+6 (= 1,000,000) pixels across. - - value_t Y = fromY + m * (width/2 - fromX); - - if(fromX > (value_t) width) - fromX = (value_t) width; - else if(fromX < ZRO) - fromX = ZRO; - - if(toX > (value_t) width) - toX = (value_t) width; - else if(toX < ZRO) - toX = ZRO; - - //opSpew << "close to horizontal" << std::endl; - - if(fromX != toX) - (this->*drawLineFunc)((int) fromX, (int) Y, (int) toX, (int) Y); - return; - } - else // toY != fromY && slope > 1e+6 && toX != fromX - { - // it's Not: close to horizontal, horizontal, generic, or vertical. - - // it's close to a vertical line by process of elimination - - // try m = recipical slope because it's close to a verticle - // line. And given the Culling above there must be a line - // some where in the window. - - m = (toX - fromX)/(toY - fromY); - - // middle X value. - value_t X = fromX + m * (height/2 - fromY); - - if(fromY > (value_t) height) - fromY = (value_t) height; - else if(fromY < ZRO) - fromY = ZRO; - - if(toY > (value_t) height) - toY = (value_t) height; - else if(toY < ZRO) - toY = ZRO; - - //opSpew << "close to vertical" << std::endl; - - if(fromY != toY) - (this->*drawLineFunc)((int) X, (int) fromY, (int) X, (int) toY); - return; - } - } - else // toX == fromX - { - // It's a verticle line - - // It must be near the window, because it has not been culled out above. - - if(fromY > (value_t) height) - fromY = (value_t) height; - else if(fromY < ZRO) - fromY = ZRO; - - if(toY > (value_t) height) - toY = (value_t) height; - else if(toY < ZRO) - toY = ZRO; - - //opSpew << "vertical" << std::endl; - - if(fromY != toY) // if not both to top or bottom (just on the edge). - (this->*drawLineFunc)((int) fromX, (int) fromY, (int) toX, (int) toY); - return; - } - -#endif //#ifdef WITHOUT_CULLING #else -} diff -Nru quickplot-0.8.15/plot.h quickplot-0.9.11/plot.h --- quickplot-0.8.15/plot.h 1970-01-01 00:00:00.000000000 +0000 +++ quickplot-0.9.11/plot.h 2011-12-05 22:56:43.000000000 +0000 @@ -0,0 +1,293 @@ +/* + Quickplot - an interactive 2D plotter + + Copyright (C) 1998-2011 Lance Arsenault + + + This file is part of Quickplot. + + Quickplot 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 3 of the License, + or (at your option) any later version. + + Quickplot 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 Quickplot. If not, see . + +*/ + + +extern +void qp_plot_set_cairo_draw_mode(struct qp_plot *p, struct qp_graph *gr); + +extern +void qp_plot_set_x11_draw_mode(struct qp_plot *p, struct qp_graph *gr); + + + + + +static inline +int qp_plot_series_double_is_reading(struct qp_channel *c) +{ + /* This qp_channel_series_is_reading() is inline too */ + return qp_channel_series_is_reading(c); +} + +static inline +int qp_plot_is_reading(struct qp_plot *p) +{ + return (p->x_is_reading(p->x) && p->y_is_reading(p->y)); +} + + +/* qp_plot_begin() or qp_plot_end() must be called before this */ +/* This is getting the inverse of the plots values. It gets the + * plot value that would be for a particular graph pixel x position. */ +static inline +double qp_plot_get_xval(struct qp_plot *p, int x) +{ + return (x - p->xshift)/p->xscale; +} + +/* qp_plot_begin_y() or qp_plot_end_y() must be called before this */ +/* This is getting the inverse of the plots values. It gets the + * plot value that would be for a particular graph pixel y position. */ +static inline +double qp_plot_get_yval(struct qp_plot *p, int y) +{ + return (y - p->yshift)/p->yscale; +} + +/* qp_plot_begin_y() or qp_plot_end_y() must be called before this */ +static inline +int qp_plot_get_xpixel(struct qp_plot *p, double x) +{ + return INT(p->xscale*x + p->xshift); +} + +/* qp_plot_begin_y() or qp_plot_end_y() must be called before this */ +static inline +int qp_plot_get_ypixel(struct qp_plot *p, double y) +{ + return INT(p->yscale*y + p->yshift); +} + +static inline +void qp_plot_get_sig_fig(struct qp_plot *p, int width, int height) +{ + double a, b, k; + + if(p->sig_fig_x) return; + + a = qp_plot_get_xval(p, 0); + b = qp_plot_get_xval(p, 1); + ASSERT(b > a); + k = 1.0/(b - a); + + b = ABSVAL(qp_plot_get_xval(p, width)); + a = ABSVAL(a); + if(b < a) + b = a; + a = log10(b*k); + p->sig_fig_x = INT(a); + if(p->sig_fig_x < 1) + p->sig_fig_x = 1; + + a = qp_plot_get_yval(p, 1); + b = qp_plot_get_yval(p, 0); + ASSERT(b > a); + k = 1.0/(b - a); + + a = ABSVAL(qp_plot_get_xval(p, width)); + b = ABSVAL(b); + if(b < a) + b = a; + a = log10(b*k); + p->sig_fig_y = INT(a); + if(p->sig_fig_y < 1) + p->sig_fig_y = 1; +} + + +static inline +void qp_plot_scale(struct qp_plot *p, + double xscale, double xshift, double yscale, double yshift) +{ + p->xscale = xscale*p->xscale0; + p->xshift = INT(xscale*p->xshift0 + xshift); + p->yscale = yscale*p->yscale0; + p->yshift = INT(yscale*p->yshift0 + yshift); + + p->sig_fig_x = 0; +} + + +static inline +void qp_plot_x_rescale(struct qp_plot *p, double xmin, double xmax) +{ + if(xmax > xmin) + { + p->xscale0 = 1.0/(xmax - xmin); + p->xshift0 = - xmin/(xmax - xmin); + } + else + { + struct qp_channel_series *cs; + ASSERT(p->x->form == QP_CHANNEL_FORM_SERIES); + cs = &(p->x->series); + + p->xscale0 = 1.0/(cs->max - cs->min); + p->xshift0 = - cs->min/(cs->max - cs->min); + } + + p->sig_fig_x = 0; +} + +static inline +void qp_plot_y_rescale(struct qp_plot *p, double ymin, double ymax) +{ + if(ymax > ymin) + { + p->yscale0 = 1.0/(ymax - ymin); + p->yshift0 = - ymin/(ymax - ymin); + } + else + { + struct qp_channel_series *cs; + ASSERT(p->y->form == QP_CHANNEL_FORM_SERIES); + cs = &(p->y->series); + + p->yscale0 = 1.0/(cs->max - cs->min); + p->yshift0 = - cs->min/(cs->max - cs->min); + } +} + + +/*****************************************************************/ +/* All the functions below return a graph pixel x or y position. */ +/*****************************************************************/ + + +static inline +int qp_plot_begin(struct qp_plot *p, + double xscale, double xshift, double yscale, double yshift, + int xpix_min, int ypix_min, int xpix_max, int ypix_max, + double *x, double *y) +{ + qp_plot_scale(p, xscale, xshift, yscale, yshift); + + p->num_read = (size_t) -1; + + + if(p->x->form == QP_CHANNEL_FORM_SERIES && + p->y->form == QP_CHANNEL_FORM_SERIES && + p->x->series.is_increasing && + qp_channel_series_length(p->x) == qp_channel_series_length(p->y)) + { + /* culling */ + /* this is likely the most common case + **************************************** + * A UNIFORMLY INCREASING X CHANNEL + ****************************************/ + + double xmin, xmax; + size_t i, j, len; + /* get the corresponding limiting plot channel values */ + /* Any values outside [xmin,xmax] would be culled */ + xmin = qp_plot_get_xval(p, xpix_min); + xmax = qp_plot_get_xval(p, xpix_max); + + if(p->x->series.min > xmax || p->x->series.max < xmin) + /* case: no data in bounds */ + goto nodata; + + if((p->x->series.min >= xmin && p->x->series.max <= xmax) || + p->x->series.min == p->x->series.max) + /* all the channel data is in bounds */ + goto begining; + + len = qp_channel_series_length(p->x); + j = qp_channel_series_length(p->y); + if(j < len) + len = j; + j = qp_channel_series_double_find_gt(p->x, &xmax); + i = qp_channel_series_double_find_lt(p->x, &xmin); + + if(j < len -1) + /* the number left to read after this returns */ + p->num_read = j - i; + + //DEBUG("plot %s with indexes %zu to %zu \n", p->name, i, j); + + *x = p->xscale*xmin + p->xshift; + *y = p->yscale*p->channel_series_y_index(p->y, i) + p->yshift; + return (p->x_is_reading(p->x) && p->y_is_reading(p->y)); + } + +begining: + + *x = p->xscale*p->channel_x_begin(p->x) + p->xshift; + *y = p->yscale*p->channel_y_begin(p->y) + p->yshift; + + return (p->x_is_reading(p->x) && p->y_is_reading(p->y)); + + +nodata: + + p->channel_x_end(p->x); + p->channel_x_next(p->x); + *x = END_DOUBLE; + *y = END_DOUBLE; + return 0; /* done reading, no values in bounds */ +} + + +static inline +int qp_plot_end(struct qp_plot *p, + double xscale, double xshift, double yscale, double yshift, + double *x, double *y) +{ + p->num_read = (size_t) -1; + + qp_plot_scale(p, xscale, xshift, yscale, yshift); + + *x = p->xscale*p->channel_x_end(p->x) + p->xshift; + *y = p->yscale*p->channel_y_end(p->y) + p->yshift; + + return (p->x_is_reading(p->x) && p->y_is_reading(p->y)); + +} + +static inline +int qp_plot_next(struct qp_plot *p, double *x, double *y) +{ + *x = p->xscale*p->channel_x_next(p->x) + p->xshift; + *y = p->yscale*p->channel_y_next(p->y) + p->yshift; + + if(p->num_read != (size_t) -1) + return ((p->num_read)--); + + return (p->x_is_reading(p->x) && p->y_is_reading(p->y)); +} + +static inline +double qp_plot_prev(struct qp_plot *p, double *x, double *y) +{ + *x = p->xscale*p->channel_x_prev(p->x) + p->xshift; + *y = p->yscale*p->channel_y_prev(p->y) + p->yshift; + + if(p->num_read) + { + --p->num_read; + return p->num_read; + } + + return (p->x_is_reading(p->x) && p->y_is_reading(p->y)); +} + diff -Nru quickplot-0.8.15/Plot.h quickplot-0.9.11/Plot.h --- quickplot-0.8.15/Plot.h 2009-03-08 20:13:59.000000000 +0000 +++ quickplot-0.9.11/Plot.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,236 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -class ZoomLevel; -class Graph; - -#include - -class Plot -{ - public: - - Plot(Graph *graph, Field *x, Field *y); - Plot(Graph *graph, Plot *plot); // copy constructor - ~Plot(void); - - inline Field *x() { return _x; } - inline Field *y() { return _y; } - - inline count_t getNumberOfPoints(void) { return numberOfValues; } - - void setLineWidth(int width); - void setPointSize(int size); - inline int getLineWidth(void) const { return lineWidth; } - inline int getPointSize(void) const { return pointSize; } - - inline Gdk::Color &getLineColor(void) { return lineColor; } - inline Gdk::Color &getPointColor(void) { return pointColor; } - void setLineColor(const Gdk::Color &color); - void setPointColor(const Gdk::Color &color); - - // must be called before using this class to get scale numbers - // and/or draw to make sure that scales are consistant. This could - // be used as a signal_resize() slot. - void preDrawCheckResize(void); - - // draw lines and than points - void draw(Glib::RefPtr win, - Glib::RefPtr gc); - - inline char *getLabel(void) const { return label; } - void setLabel(const char *label); - - - // This is for when the Plots in a Graph are all set to have the - // same scales. - void resetZoomLevels(value_t xmax, value_t xmin, - value_t ymax, value_t ymin); - - // This is for when the Plots in a Graph are all set to have the - // different scales. - void resetZoomLevels(void); - - // zoOM in with a zoom box. - void zoomIn(int x, int y, int w, int h); - void zoomBackIn(void); - - void zoomOut(void); - void zoomOutToTop(void); - - inline bool isZoomedOutToTop(void) - { - return (currentZoomLevel == firstZoomLevel); - } - - inline void setShowLines(bool do_show=true) - { - showLines = do_show; - m_signal_changed.emit(); - } - - inline void setShowPoints(bool do_show=true) - { - showPoints = do_show; - m_signal_changed.emit(); - } - - inline bool getShowLines(void) { return showLines; } - - inline bool getShowPoints(void) { return showPoints; } - - - // Fix zoomLevels due to a resized graph window. - void resize(void); - - - friend class ZoomLevel; - - - // The max and min values that are plotted. They may not be the - // same as the max and min values in the x and y fields, since all - // the x and y field values may not be plotted. Other classes - // should read (not write) these only. - value_t xmax, xmin, ymax, ymin; - - ZoomLevel *currentZoomLevel; - - // Plot contains a list of zoom levels. - ZoomLevel *firstZoomLevel, *lastZoomLevel; - - Graph *graph; - - // Emitted when the lineColor, pointColor, lineWidth, pointSize, - // showLines and showPoints. - sigc::signal0 signal_changed(void); - - - int emitDisplayValues(int X); - void emitInterpolatedDisplayValues(int X); - void emitDisplayValues(int X, int Y); - - sigc::signal2 signal_valueDisplay(void); - - value_t xpick, ypick; - -protected: - -private: - - bool showPoints, showLines; - - sigc::signal0 m_signal_changed; - - sigc::signal2 m_signal_valueDisplay; - - Gdk::Color lineColor, pointColor; - - // Cull and Draw. - void cullDrawLine(value_t fromX, value_t fromY, value_t toX, value_t toY); - void cullDrawPoint(value_t X, value_t Y); - - // number of points to plot. - count_t numberOfValues; - - - Field *_x, *_y; - char *label; - - int width, height; // Graph width and height for zooming. - - // This saves having to pass win and gc as arguments to the drawing - // functions. - Glib::RefPtr win; - Glib::RefPtr gc; - - - void setWidthHeightDepParmeters(void); - - - // point diameter, line width. - int pointSize, lineWidth, pointSizeDiv2; - - // Culling numbers derived from lineWidth - value_t widthPlus, heightPlus, lineWidthPlus1; - - - void drawPoints(void); - void drawLines(void); - - - void (Plot::* drawLineFunc)(int,int,int,int); - void (Plot::* drawPointFunc)(int,int); - - - void drawPoint0(int X, int Y); - void drawLine0(int fromX, int fromY, int toX, int toY); - - // what plot number is this in the Graph. - int plotCount; - - void init(void); - - void *pickerXDequeuer, *pickerYDequeuer; -}; - - -class ZoomLevel -{ -public: - - ~ZoomLevel(void); - - // For the first Zoom Level with the max and min limits given. - ZoomLevel(Plot *plot_in, int width, int height, - value_t xmax, value_t xmin, - value_t ymax, value_t ymin); - - // Set the new zoom based on the zoom box and the current zoomLevel. - ZoomLevel(Plot *plot, int width, int height, - int xbox, int ybox, int wbox, int hbox); - - // Does not copy plot, next, and prev. Copies scaleX, scaleY, - // shiftX, shiftY, xMax, xMin, yMax, yMin. - void copy(ZoomLevel *z); - - // Set the existing zoom based on the zoom box and the previous - // zoomLevel. - void reset(int width, int height, - int xbox, int ybox, int wbox, int hbox); - - // Change the scales due to a resize of the window. - void reset(int new_width, int new_height); - - // This reset() only works and makes sense for the first zoom level. - // This is for when the Plots are all set to have the same scales. - void reset(int width, int height, - value_t xmax, value_t xmin, - value_t ymax, value_t ymin); - - // scaledValue = scale * unscaledValue + shift - // This is the inverse. - inline void getValues(int x_in, int y_in, value_t *x_out, value_t *y_out) - { - *x_out = (((value_t) x_in) - shiftX)/scaleX; - *y_out = (((value_t) y_in) - shiftY)/scaleY; - } - - // This class is a data structure for a double-ly linked list. - ZoomLevel *next, *prev; - - // xMax, xMin, yMax, yMin are used to set the scale and shift, and - // are not maximum and minumum values of X and/or Y, but the - // maximum and minumum values of X and/or Y in the Graph windows - // view. scaleX, scaleY, shiftX, shiftY are dependent on the - // Graph window size, but xMax, xMin, yMax, yMin are not dependent - // on the Graph window size. - value_t scaleX, scaleY, shiftX, shiftY, xMax, xMin, yMax, yMin; - - Plot *plot; - -private: - - -}; - - diff -Nru quickplot-0.8.15/PlotList.cpp quickplot-0.9.11/PlotList.cpp --- quickplot-0.8.15/PlotList.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/PlotList.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,75 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include - -#include "PlotList.h" - - -PlotList *PlotList::first = NULL; - -PlotList::PlotList(void) -{ - next = NULL; - - if(first) - { - PlotList *l = first; - while(l->next) - l = l->next; - l->next = this; - } - else - first = this; - - - x = y = NULL; - numPlots = 0; - index = 0; -} - -void PlotList::add(int X, int Y) -{ - numPlots++; - x = (int *) realloc(x, sizeof(int)*numPlots); - y = (int *) realloc(y, sizeof(int)*numPlots); - - x[numPlots-1] = X; - y[numPlots-1] = Y; -} - -void PlotList::rewind(void) -{ - index = 0; -} - -void PlotList::get(int &X, int &Y) -{ - X = x[index]; - Y = y[index]; - index++; -} - -PlotList::~PlotList(void) -{ - if(x) - free(x); - if(y) - free(y); - - PlotList *l = first, *prev = NULL; - for(;l;l = l->next) - { - if(this == l) - break; - prev = l; - } - if(l) // this == l - { - if(prev) - prev->next = next; - else // this == first - first = next; - } -} diff -Nru quickplot-0.8.15/PlotLister.cpp quickplot-0.9.11/PlotLister.cpp --- quickplot-0.8.15/PlotLister.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/PlotLister.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,521 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -//#include -#include - -#ifdef QP_ARCH_DARWIN -# include -# include -#else -# include -#endif - -#include - -#include - - -using namespace Gtk; -#include "value_t.h" -#include "PlotLister.h" -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" - -#include "Field.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" -#include "ValueSlider.h" -#include "PlotConfig.h" -#include "GraphConfig.h" -#include "MainWindow.h" -#include "App.h" -#include "Source.h" -#include "Globel.h" - -#include "quickplot_icon.xpm" - -#define SMALL_INT INT_MIN - - -PlotLister::PlotLister(MainWindow *mainWindow_in): - offPlotMI("Pick Pointer Values"), - interpolatedMI("Interpolate Plot Values"), - noninterpolatedMI("Pick Plot Point Values"), - printToStdoutB("Print to Standard Output"), - table(1,8), - plotLabelL("Label"), - plotPictureL("Color"), - valuesL("X Y Values"), - xMinL("X min"), - xMaxL("X max"), - yMinL("Y min"), - yMaxL("Y max") -{ - mainWindow = mainWindow_in; - set_default_size(630, 260); - - add(vBox); - vBox.pack_start(hBox, PACK_SHRINK); - hBox.set_spacing(10); - scrolledWindow.set_policy(POLICY_AUTOMATIC, POLICY_AUTOMATIC); - - hBox.add(pickerTypeOM); - hBox.add(printToStdoutB); - - vBox.add(scrolledWindow); - scrolledWindow.add(table); - addHeaderLabel(plotLabelL, 1); - addHeaderLabel(plotPictureL, 2); - addHeaderLabel(valuesL, 3); - addHeaderLabel(xMinL, 4); - addHeaderLabel(xMaxL, 5); - addHeaderLabel(yMinL, 6); - addHeaderLabel(yMaxL, 7); - rowArraySize = 0; - numRows = 0; - row = NULL; - - - // pickerType Menu - { - pickerTypeOM.set_menu(pickerTypeM); - Menu::MenuList& menulist = pickerTypeM.items(); - - menulist.push_back(offPlotMI); - offPlotMI.show(); - offPlotMI.signal_activate(). - connect(sigc::mem_fun(*this, &PlotLister::on_offPlot)); - - menulist.push_back(interpolatedMI); - interpolatedMI.show(); - interpolatedMI.signal_activate(). - connect(sigc::mem_fun(*this, &PlotLister::on_interpolated)); - - menulist.push_back(noninterpolatedMI); - noninterpolatedMI.show(); - noninterpolatedMI.signal_activate(). - connect(sigc::mem_fun(*this, &PlotLister::on_noninterpolated)); - } - - show_all_children(); - - - Glib::RefPtr pix = - Gdk::Pixbuf::create_from_xpm_data(quickplot_icon); - set_icon(pix); - - - setValuesFromGraph(); - - signal_show().connect(sigc::mem_fun(mainWindow->menuBar, - &MainMenuBar::checkPlotListerState)); - signal_hide().connect(sigc::mem_fun(mainWindow->menuBar, - &MainMenuBar::checkPlotListerState)); - - mainWindow->graphsNotebook. - signal_switch_page(). - connect(sigc::mem_fun(*this, &PlotLister::on_notebookFlip)); - - - Graph::signal_removedPlot(). - connect(sigc::mem_fun(*this, &PlotLister::on_removedPlot)); - Graph::signal_addedPlot(). - connect(sigc::mem_fun(*this, &PlotLister::on_addedPlot)); - - printToStdoutB.signal_pressed(). - connect(sigc::mem_fun(*this, &PlotLister::on_printToStdout)); - - - x = SMALL_INT; -} - -void PlotLister::on_printToStdout(void) -{ - if(numRows) - { - unsigned int i; - for(i=0;iprintStdout(); - } -} - - -void PlotLister::addHeaderLabel(Widget &w, int col) -{ - table.attach(w, col, col+1, 0, 1, - SHRINK|FILL|EXPAND, SHRINK|FILL, 2, 2); -} - -PlotLister::~PlotLister(void) -{ - if(numRows) - { - unsigned int i; - for(i=0;imainWindowNumber > 1) - { - sprintf(s, "(%d): ", mainWindow->mainWindowNumber); - } - else - s[0] = '\0'; - - Glib::ustring str = s; - - GraphTab *l = dynamic_cast - (mainWindow->graphsNotebook.get_tab_label(*(mainWindow->currentGraph))); - if(l) - str += l->label.get_text(); - - str += ": Plot List"; - set_title(str); - - //str = "Plot List: "; - //str += l->label.get_text(); - - // topLabel.set_title(str); -} - -void PlotLister::on_addedPlot(Graph *graph) -{ - if(graph == mainWindow->currentGraph) - setValuesFromGraph(); -} - -void PlotLister::on_removedPlot(Graph *graph, Plot *plot) -{ - if(graph == mainWindow->currentGraph) - setValuesFromGraph(); -} - -void PlotLister::setValuesFromGraph(void) -{ - setTitle(); - - interpolatedMI. - set_sensitive(mainWindow->currentGraph->highestPickerType >= - Graph::INTERPOLATED); - - noninterpolatedMI. - set_sensitive(mainWindow->currentGraph->highestPickerType >= - Graph::NONINTERPOLATED); - - pickerTypeM.set_active(mainWindow->currentGraph->pickerType); - pickerTypeOM.set_history(mainWindow->currentGraph->pickerType); - - - // delete the old widgets - if(numRows) - { - unsigned int i; - for(i=0;icurrentGraph; - - if(rowArraySize < graph->size()) - { - rowArraySize = graph->size(); - if(row) free(row); - row = static_cast(malloc(sizeof(Row *)*rowArraySize)); - } - - numRows = graph->size(); - table.resize(numRows+1, 7); - - std::list::const_iterator p = graph->begin(); - unsigned int i=0; - for( ;icurrentGraph->pickerType = Graph::INTERPOLATED; -} - -void PlotLister::on_noninterpolated(void) -{ - mainWindow->currentGraph->pickerType = Graph::NONINTERPOLATED; -} - -void PlotLister::on_offPlot(void) -{ - mainWindow->currentGraph->pickerType = Graph::OFF_PLOT; -} - -// Widget Key Accelerators don't work all the time, so we get the key -// strokes the hard way. Also there is no way to use Widget Key -// Accelerators with Gtk::Window. -bool PlotLister::on_key_press_event(GdkEventKey* event) -{ - // Can add checks on GdkModifierType in event->state. - - switch(event->keyval) - { - case GDK_Escape: - { - hide(); - return true; - break; - } - default: - if(mainWindow->commonKeyPress(event)) - return true; - break; - } - - return Window::on_key_press_event(event); -} - - -Row::Row(MainWindow *mainWindow_in, Table *table_in, - int row_in, Plot *plot_in): - plotConfigB("Configure Plot"), - picture(plot_in, true) -{ - mainWindow = mainWindow_in; - plot = plot_in; - - row = row_in; - table = table_in; - - labelE.set_size_request(200,-1); - picture.set_size_request(60,-1); - valueE.set_size_request(300,-1); - - labelE.set_text(plot->getLabel()); - labelE.set_editable(false); - if(plot->xpick != MAXVALUE) - on_valueDisplay(plot->xpick, plot->ypick); - else - valueE.set_text("x y"); - char s[32]; - sprintf(s, FORMAT, plot->xmin); - xMinE.set_text(s); - sprintf(s, FORMAT, plot->xmax); - xMaxE.set_text(s); - sprintf(s, FORMAT, plot->ymin); - yMinE.set_text(s); - sprintf(s, FORMAT, plot->ymax); - yMaxE.set_text(s); - - add(plotConfigB, 0); - add(labelE, 1); - add(picture, 2); - add(valueE, 3); - valueE.set_editable(false); - add(xMinE, 4); - add(xMaxE, 5); - add(yMinE, 6); - add(yMaxE, 7); - - //afterRealizeConnection = yMaxE.signal_expose_event(). - // connect(sigc::mem_fun(*this, &Row::afterRealize)); - - valueDisplay_connection = plot->signal_valueDisplay(). - connect(sigc::mem_fun(*this, &Row::on_valueDisplay)); - makePlotConfig_connection = plotConfigB.signal_pressed(). - connect(sigc::mem_fun(*this, &Row::makePlotConfig)); -} - -#if 0 -void Row::afterRealize(void) -{ - setLabelSize(xMinE); - setLabelSize(xMaxE); - setLabelSize(yMinE); - setLabelSize(yMaxE); - afterRealizeConnection.disconnect(); -} -// fix the label widget minimum size to the text of the text in it. -void Row::setLabelSize(Entry &l) -{ - //int x,y; - //l.get_layout_offsets(x,y); - Glib::RefPtr layout = l.get_layout(); - printf("width=%d\n", layout->get_width()); - l.set_size_request(layout->get_width(),-1); -} -#endif - -void Row::makePlotConfig(void) -{ - mainWindow->makePlotConfig(plot); -} - -void Row::add(Widget &w, int col) -{ - w.show(); - table->attach(w, col, col+1, row, row+1, - SHRINK|FILL|EXPAND, SHRINK|FILL, 2, 2); -} - -void Row::on_valueDisplay(value_t x, value_t y) -{ - char s[64]; - snprintf(s,64, FORMAT" "FORMAT, x, y); - valueE.set_text(s); -} - -Row::~Row(void) -{ - valueDisplay_connection.disconnect(); - makePlotConfig_connection.disconnect(); -} - -void Row::printStdout(void) -{ - printf("%s\n", valueE.get_text().c_str()); -} - - -Picture::Picture(Plot *plot_in, bool limitSize_in) -{ - limitSize = limitSize_in; - win.clear(); - gc.clear(); - - setPlot(plot_in); -} - -bool Picture::on_expose_event(GdkEventExpose *) -{ - if(plot) - { - if(!win) - { - win = get_window(); - gc = Gdk::GC::create(win); - } - - win->set_background(plot->graph->backgroundColor); - win->clear(); - - if(plot->getShowLines()) - { - // draw lines - - int lineWidth = plot->getLineWidth(); - if(limitSize && lineWidth > 11) - lineWidth = 11; - - gc->set_foreground(plot->getLineColor()); - - gc->set_line_attributes (lineWidth, Gdk::LINE_SOLID, - Gdk::CAP_ROUND, Gdk::JOIN_ROUND); - - win->draw_line(gc, 0, 2*get_height()/3, - get_width()/3, get_height()/3); - win->draw_line(gc, get_width()/3, get_height()/3, - 2*get_width()/3, get_height()/3); - win->draw_line(gc, 2*get_width()/3, get_height()/3, - get_width(), 2*get_height()/3); - } - - if(plot->getShowPoints()) - { - // put 2 points in the lines - - int pointSize = plot->getPointSize(); - if(limitSize && pointSize > 11) - pointSize = 11; - - - gc->set_foreground(plot->getPointColor()); - - if(pointSize <= 1) - { - win->draw_point(gc, get_width()/3, get_height()/3); - win->draw_point(gc, 2*get_width()/3, get_height()/3); - } - else - { - win->draw_rectangle(gc, true, - get_width()/3 - pointSize/2, - get_height()/3 - pointSize/2, - pointSize, pointSize); - win->draw_rectangle(gc, true, - 2*get_width()/3 - pointSize/2, - get_height()/3 - pointSize/2, - pointSize, pointSize); - } - } - } - - return true; -} - -void Picture::queueRedraw(void) -{ - GdkRectangle rec = - { - 0, 0, get_width(), get_height() - }; - - gdk_window_invalidate_rect(get_window()->gobj(), &rec, true); -} - -void Picture::setPlot(Plot *p) -{ - if(plot) - { - plotChangeConnection.disconnect(); - bgConnection.disconnect(); - } - - plot = p; - - if(plot) - { - plotChangeConnection = - plot->signal_changed().connect( - sigc::mem_fun(*this, &Picture::queueRedraw)); - - bgConnection = - plot->graph->signal_backgroundColorChanged(). - connect(sigc::mem_fun(*this, &Picture::queueRedraw)); - } -} - diff -Nru quickplot-0.8.15/PlotLister.h quickplot-0.9.11/PlotLister.h --- quickplot-0.8.15/PlotLister.h 2009-03-08 20:13:59.000000000 +0000 +++ quickplot-0.9.11/PlotLister.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,119 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - -class MainWindow; -class Plot; -class Graph; - -class Picture: public DrawingArea -{ -public: - - Picture(Plot *plot=NULL, bool limit_size=false); - - bool on_expose_event(GdkEventExpose *); - - void queueRedraw(void); - void setPlot(Plot *p); - -private: - - Plot *plot; - bool limitSize; - - Glib::RefPtr win; - Glib::RefPtr gc; - - sigc::connection plotChangeConnection, bgConnection; -}; - - - -class Row -{ -public: - - Row(MainWindow *mainWindow, Table *table_in, int row_in, Plot *plot); - ~Row(void); - - void on_valueDisplay(value_t x, value_t y); - void printStdout(void); - -private: - - Button plotConfigB; - Entry labelE, valueE; - Label xMinE, xMaxE, yMinE, yMaxE; - - - Picture picture; - - int row; - Table *table; - MainWindow *mainWindow; - Plot *plot; - sigc::connection valueDisplay_connection, makePlotConfig_connection; - - void add(Widget &w, int col); - void makePlotConfig(void); - //void setLabelSize(Entry &l); - //void afterRealize(void); - - //sigc::Connection afterRealizeConnection; -}; - - - -class PlotLister : public Window -{ - -public: - PlotLister(MainWindow *mainWindow_in); - ~PlotLister(void); - - void show(void); - void on_unmap(void); - void setTitle(void); - -private: - MainWindow *mainWindow; - - - void on_notebookFlip(GtkNotebookPage* , guint ); - - - void setValuesFromGraph(void); - - void addHeaderLabel(Widget &w, int col); - - void on_addedPlot(Graph *graph); - - void on_removedPlot(Graph *graph, Plot *plot); - - void on_interpolated(void); - void on_noninterpolated(void); - void on_offPlot(void); - - int x, y; - -private: - - void on_printToStdout(void); - - Row **row; - unsigned int numRows, rowArraySize; - - VBox vBox; - HBox hBox; - OptionMenu pickerTypeOM; - Menu pickerTypeM; - MenuItem offPlotMI, interpolatedMI, noninterpolatedMI; - - Button printToStdoutB; - ScrolledWindow scrolledWindow; - Table table; - - Label plotLabelL, plotPictureL, valuesL, xMinL, xMaxL, yMinL, yMaxL; - - bool on_key_press_event(GdkEventKey* event); -}; diff -Nru quickplot-0.8.15/PlotList.h quickplot-0.9.11/PlotList.h --- quickplot-0.8.15/PlotList.h 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/PlotList.h 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ - - -class PlotList -{ - public: - - PlotList(void); - ~PlotList(void); - - void add(int X, int Y); - void rewind(void); - void get(int &X, int &Y); - inline int getNumberOfPlots(void) - { - return numPlots; - } - - PlotList *next; - static PlotList *first; - -private: - - // field number starting at 0. - int *x, *y; - - size_t numPlots; - int index; -}; diff -Nru quickplot-0.8.15/PlotSelector.cpp quickplot-0.9.11/PlotSelector.cpp --- quickplot-0.8.15/PlotSelector.cpp 2009-01-15 02:04:05.000000000 +0000 +++ quickplot-0.9.11/PlotSelector.cpp 1970-01-01 00:00:00.000000000 +0000 @@ -1,713 +0,0 @@ -/* Copyright (c) 1998, 1999, 2003, 2004 Lance Arsenault, (GNU GPL (v2+)) - */ -#include "config.h" - -#include -#include - -#include - -using namespace Gtk; -#include "value_t.h" -#include "ValueSlider.h" -#include "PlotLister.h" -#include "PlotConfig.h" -#include "MainMenuBar.h" -#include "ButtonBar.h" -#include "StatusBar.h" -#include "MainWindow.h" -#include "App.h" - - -#include "errorStr.h" -#include "Globel.h" -#include "Field.h" -#include "Source.h" -#include "FileList.h" -#include "File.h" -#include "Plot.h" -#include "ColorGen.h" -#include "Graph.h" -#include "PlotSelector.h" - -#define SMALL_INT INT_MIN - - -PlotSelector::PlotSelector(MainWindow *mainWindow_in) : - topLabel("Select Fields to Plot or Unplot"), - xLabel(" X Field "), - blankLabel(" "), - yLabel(" Y Field "), - //scrolledWindow(graphConfig, &scrolledHBox), - xNoneRadioButton("none"), - yNoneRadioButton("none"), - drawArea(this) -{ - mainWindow = mainWindow_in; - - scrolledWindow.set_policy(POLICY_AUTOMATIC, POLICY_AUTOMATIC); - scrolledWindow.set_size_request(-1, 100); - drawArea.set_size_request(30, 10); - topLabel.set_size_request(-1, 30); - - //labelBox.set_size_request(-1, 40); - - pack_start(topLabelFrame, PACK_SHRINK); - topLabelFrame.add(topLabel); - - pack_start(labelBox, PACK_SHRINK); - add(scrolledWindow); - labelBox.pack_start(xLabel, PACK_SHRINK); - labelBox.pack_start(blankLabel, PACK_EXPAND_PADDING); - labelBox.pack_start(yLabel, PACK_SHRINK); - scrolledWindow.add(scrolledHBox); - drawAreaFrame.add(drawArea); - - scrolledHBox.pack_start(xBox, PACK_SHRINK); - scrolledHBox.pack_start(drawAreaFrame, PACK_EXPAND_WIDGET); - scrolledHBox.pack_start(yBox, PACK_SHRINK); - - xBox.pack_start(xFrame, PACK_SHRINK); - xFrame.add(xNoneRadioButton); - - yBox.pack_start(yFrame, PACK_SHRINK); - yFrame.add(yNoneRadioButton); - - fixNoneButtons = false; - - wasMapped = false; -} - -// We need to connect the signals after the widget is first drawn. -void PlotSelector::on_map(void) -{ - VBox::on_map(); - - if(wasMapped) return; - - Source::signal_addedSource(). - connect(sigc::mem_fun(*this, &PlotSelector::on_addSource)); - Source::signal_removedSource(). - connect(sigc::mem_fun(*this, &PlotSelector::on_removeSource)); - - mainWindow->graphsNotebook. - signal_switch_page(). - connect(sigc::mem_fun(*this, &PlotSelector::on_notebookFlip)); - - std::list::const_iterator source = sources.begin(); - for(;source != sources.end(); source++) - { - xBox.pack_start(*newSourceButtons(X, *source), PACK_SHRINK); - yBox.pack_start(*newSourceButtons(Y, *source), PACK_SHRINK); - } - - show_all_children(); - - wasMapped = true; -} - -PlotSelector::~PlotSelector(void) -{ - // delete all the dynmaically allocated widgets in xBox and yBox. - { - Glib::ListHandle list = xBox.get_children(); - Glib::ListHandle::iterator it = list.begin(); - for(it++;it != list.end(); it++) - { - Container *c = dynamic_cast(*it); - if(c) - deleteWidgetChildren(c); - else - delete *it; - } - } - { - Glib::ListHandle list = yBox.get_children(); - Glib::ListHandle::iterator it = list.begin(); - for(it++;it != list.end(); it++) - { - Container *c = dynamic_cast(*it); - if(c) - deleteWidgetChildren(c); - else - delete *it; - } - } -} - -void PlotSelector::on_notebookFlip(GtkNotebookPage* , guint ) -{ - fixNoneButtons = true; - // fix the window to match the currentGraph. - drawArea.queueRedraw(); - queueRedraw(); - - if(xNoneRadioButton.activate() && - yNoneRadioButton.activate() && - xNoneRadioButton.get_active() && - yNoneRadioButton.get_active()) - { - fixNoneButtons = false; - } -} - -// recursively delete all children. -void PlotSelector::deleteWidgetChildren(Container *container) -{ - Glib::ListHandle list = container->get_children(); - Glib::ListHandle::iterator it = list.begin(); - for(;it != list.end(); it++) - { - Label *l = dynamic_cast