hexter-1.0.2/0000755000076400007640000000000012046775671010041 500000000000000hexter-1.0.2/README0000644000076400007640000006406212044525703010634 00000000000000 hexter ====== A Yamaha DX7 modeling software synthesizer for the DSSI Soft Synth Interface Introduction ============ hexter is a software synthesizer that models the sound generation of a Yamaha DX7 synthesizer. It can easily load most DX7 patch bank files, edit those patches via a built-in editor or MIDI sys-ex messages (ALSA systems only), and recreate the sound of the DX7 with greater accuracy than any previous open-source emulation (that the author is aware of....) hexter operates as a plugin for the DSSI Soft Synth Interface. DSSI is a plugin API for software instruments (soft synths) with user interfaces, permitting them to be hosted in-process by audio applications. More information on DSSI can be found at: http://dssi.sourceforge.net/ hexter is written and copyright (c) 2012 by Sean Bolton, and licensed under the GNU General Public License, version 2 or later. See the enclosed file COPYING for details. While this software is 'free' within the requirements of this license, I (Sean) would appreciate any or all of the following should you find hexter useful: - an email stating where you're from and how you're using hexter, sent to . - copies of or links to music you've created with hexter. - any favorite patches you create for hexter, or any patches that work on a real DX7 but not on hexter. - suggestions for improving hexter. hexter is indirectly the result of cumulative effort by a large number of contributors, see the AUTHORS file for details. Requirements ============ hexter requires the following: - DSSI version 0.4 or greater, available from the dssi.sourceforge.net address above. - liblo version 0.12 or greater (0.23 or greater recommended), a library implementing the Open Sound Control (OSC) protocol, available at: http://liblo.sourceforge.net/ - pkgconfig with PKG_CONFIG_PATH set appropriately to pick up DSSI and liblo. - GTK+ version 2.4 or later. - the LADSPA v1.x SDK. - the ALSA headers (DSSI plugins use ALSA structures, but not the actual drivers, so you don't necessarily need the drivers installed.) Users of non-ALSA systems may use libdssialsacompat, available at: http://smbolton.com/linux.html - a working DSSI host. hexter has been tested with the jack-dssi-host, available in the DSSI distribution, and with ghostess, available at: http://smbolton.com/linux.html - automake 1.7 and autoconf 2.57 or better if you wish to recreate the build files. Installation ============ The generic installation instructions in the enclosed file INSTALL aren't particularly helpful, so try this instead: 1. Unpack the tar file. 2. Make sure PKG_CONFIG_PATH is set correctly to locate the dssi.pc and liblo.pc pkgconfig files. On many systems, this will be: $ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig $ export PKG_CONFIG_PATH 3. 'cd' into the package directory and execute './configure'. configure will add '-Wall' and my favorite optimizations to CFLAGS for you if you don't include any '-Wall' or '-O' options. If you're using gcc and wish to provide your own optimization flags, you MUST at least use '-finline' and a non-zero '-O' flag to get decent results. Depending on your hardware, you may wish to add the '--enable-floating-point' option to the configure cammand line. See the 'Fixed Point vs. Floating Point Rendering' section below. (If you're not sure, it is safest to leave it off.) 4. Enable debugging information if you desire: edit the file src/hexter.h, and define DSSP_DEBUG as explained in the comments. 5. Do 'make'. Hopefully it should build without warnings (or errors.) 6. 'make install' will install the following: /lib/dssi/hexter/hexter_gtk /lib/dssi/hexter.so /lib/dssi/hexter.la /share/hexter/dx7_roms.dx7 /share/hexter/fb01_roms_converted_12.dx7 /share/hexter/fb01_roms_converted_34.dx7 /share/hexter/fb01_roms_converted_5.dx7 /share/hexter/tx7_roms.dx7 Feedback on your experiences building hexter is appreciated. Operation ========= To run the hexter plugin under the jack-dssi-host provided in the DSSI distribution, I do the following: 1. Start JACK. 2. Start jack-dssi-host, supplying the correct plugin path and filename (substitute as appropriate): $ DSSI_PATH=/lib/dssi sudo jack-dssi-host hexter.so jack-dssi-host should start, and moments later the hexter graphic user interface should appear. 3. Use qjackctl or aconnect to connect jack-dssi-host to a MIDI source, such as vkeybd. 4. Begin playing sounds! If you get no response, try clicking the 'Send Test Note' button in the hexter GUI. This sends a note directly via the host to the plugin, so if you hear sound now, look for a problem between the host and your MIDI source. If you still don't hear sound, I'd look for a problem between the host and your output device. If you continue having trouble, you might recompile with DSSP_DEBUG bit 2 set, which will cause the plugin to continuously output a quiet buzz to help debug your outgoing signal path. hexter starts up with a default set of sound presets, or 'patches', that you can select either by selecting the GUI 'Patches' tab and clicking on the patch name, or by sending a MIDI program change from your MIDI source with the appropriate program number. Patch Import/Export =================== hexter can import DX7 patch bank files in several formats: - The standard 32-voice bulk dump sys-ex format. These are 4104 bytes long, and you can find a million of them by Googling for "dx7 patches". hexter places no restrictions on their filenames. - The standard single-voice (edit buffer) sys-ex format. These are 163 bytes long. - Raw packed patch data. These are 128 bytes per patch, and may contain any number of patches (although hexter can only load up to 128 of them.) Note, though, that if the file is 8192 bytes long and has any of the filename suffixes ".tx7", ".TX7", ".snd", or ".SND", the second half of the file will be ignored (Dr. T and Steinberg TX7 formats). - Standard MIDI files containing either a 32-voice bulk dump sys-ex message or a single voice dump sys-ex message. If the file contains more than one qualifying sys-ex message, only the first will be used. - Two concatenated 32-voice bulk dump sys-ex messages (8208 bytes long.) - Steinberg Synthworks format (5216 bytes long). - Transform XSyn format (8192 bytes long). - Voyetra SIDEMAN DX/TX and Patchmaster DX7/TX7 formats (9816 or 5663 bytes long). - Yamaha DX200 editor format (326454 bytes long).

You may use the "Import Patch Bank..." option in the File menu to import patches. After selecting the filename, you will need to specify the program number (0 to 127) at which to begin importing the patches. Several patch bank files are installed with hexter in /share/hexter/. You may also export patch banks using the File menu "Export Patch Bank..." option. You can then select which of the formats to save in, and what range of patches to export. Finally, select the filename to which you want to save, and click 'Ok'. Synthesizer Configuration ========================= On the 'Configuration' tab of the hexter GUI, there are a number of controls for configuring hexter: - tuning: sets the tuning of this instance of the plugin, as Hz for A-above-middle-C. - volume: adjusts the output volume for this instance, from -70dB to +20dB relative to a nominal reference level (-18.1dB per voice, which permits approximately 8 voice polyphony within -1.0 to +1.0 float.) - polyphony (instance): Sets the maximum polyphony for this instance of the plugin. If you attempt to play more notes than this setting, already-playing notes will be killed so that newer notes can be played. - polyphony (global): Sets the maximum polyphony for all hexter instances running on this host. If you are getting xruns, try reducing this setting. - monophonic modes: sets poly/mono operation for this instance of the plugin to one of the following: 'Off' - polyphonic operation. 'On' - monophonic operation, where the envelopes are retriggered upon each incoming note on event. 'Once' - monophonic operation, where the envelopes are triggered only on the first note on of a legato phrase -- that is, if you hold one note while playing a second, the envelopes will not be retriggered for the second note. 'Both' - monophonic operation, where the envelopes are retriggered at each note on, and upon note off when other keys are still held. - disable LFO/Mod/Perf (0.5.x compatibility): selecting this check box will disable the LFO, amplitude modulation, pitch modulation, and performance parameter enhancements provided by hexter 0.6.0 and later versions, forcing it to sound just like the 0.5.9 version. This is provided for backward compatibility with existing projects that used hexter 0.5.9. - Sys-Ex Patch Editing: On ALSA systems, hexter has the ability to receive MIDI system exclusive messages from an external patch editor/librarian. Any patch edits received are reflected in hexter's built-in patch editor, and must be saved using the built-in editor's 'Save Changes into Patch Bank' button (see below). Sys-ex patch editing is enabled on the 'Configuration' tab by depressing the 'Enable Sys-Ex Editing' button. The hexter GUI then creates an ALSA MIDI client and displays its client and port number in the status window below the 'Sys-Ex Receive Channel' slider. Set the channel appropriately and route your external patch editor to this port using aconnect or similar, and the hexter instance will be ready to receive patch edits. Note that hexter only _receives_ MIDI sys-ex messages, and does not send them. Also, it only receives single patch dumps and voice parameter changes, so any 'get patch data from synth' or 'send 32 voices to synth' functions of your librarian will not work. Performance Parameters ====================== The 'Performance' tab of the hexter GUI contains controls for the DX7/TX7 Performance Parameters: - pitch bend range: sets the response to MIDI pitch bend messages, in semitones. - portamento time: sets the portamento time. Note that as of version 0.6.1, the portamento code is still unfinished. - mod wheel sensitivity: sets the depth of response to MIDI modulation wheel control change messages (MIDI control change 1). - mod wheel assign: these three check boxes set which destinations the modulation wheel affects: selecting 'P' routes the LFO to pitch modulation (vibrato), 'A' routes the LFO to amplitude modulation (tremelo or wah), and 'E' routes the modulation wheel value itself to amplitude modulation. - foot sensitivity, foot assign, pressure sens., pressure assign, breath sens., and breath assign: these set the sensitivity and routing as described above for the foot controller (MIDI CC 4), for pressure (both channel and key pressure), and for the breath controller (CC 2), respectively. Patch Editing ============= The current patch may be edited by selecting 'Edit Patch...' from the 'Edit' menu, which opens the patch editor window. All patch edits accumulate as a temporary 'overlay' replacing the current patch, but are not saved into the patch bank until you click the 'Save Changes into Patch Bank' button and complete the save process. (Once you've saved edits into the patch bank, remember to save the bank to disk using the 'Export Patch Bank...' option of the 'File' menu!) Clicking the 'Discard Changes' button or selecting another patch from the 'Patches' tab will discard any active edits. At any time the top status line of the editor window will tell you which patch is being edited, and whether there are any changes in effect. The editor has two modes of operation, selected by the 'Editor Mode' combo box near the bottom left of the editor window. One mode, called 'Widgy', uses standard GTK+ widgets for editing patch parameters, and displays graphical representations of envelopes and scaling curves to aid in comprehension of the patch parameters. The other mode, called 'Retro' is based on text-based editors of decades past. You may switch between editor modes at any time. While the 'Retro' mode provides little in terms of visualization assistance, it can provide the experienced user with more efficient editing. Both the mouse and cursor keys may be used to select the parameter to be edited. Generally, the number keys are used to enter a parameter directly, the '-' key decrements a parameter, the '+' or '=' keys increment the parameter, and the 'delete' or 'backspace' key will reset the parameter to a default value. Perhaps most convient for users without a separate MIDI keyboard, the space bar can be used to toggle a test note, even while changing patches with other keys! MIDI Controller Mapping ======================= In addition to the performance parameter MIDI messages mentioned above, hexter responds to MIDI volume (MIDI control change 39), sustain pedal (MIDI CC 64), and all-sounds-off, all-notes-off, and reset-controllers control messages (CCs 120, 123, and 121, respectively). The operator parameters of the current patch can also be changed via the following MIDI control change (CC) and non-registered parameter (NRPN) messages. Messages marked with '*' in the 'Operator' column will cause an immediate effect on playing notes, while the others will only affect subsequently-played notes. CC or NRPN | Operator | Parameter -------------------------------+----------+------------------------ CC 16 (General Purpose #1 MSB) | * 1 | Frequency Coarse CC 17 (General Purpose #2 MSB) | * 2 | Frequency Coarse CC 18 (General Purpose #3 MSB) | * 3 | Frequency Coarse CC 19 (General Purpose #4 MSB) | * 4 | Frequency Coarse CC 80 (General Purpose #5) | * 5 | Frequency Coarse CC 81 (General Purpose #6) | * 6 | Frequency Coarse NRPN 0 | 6 | Envelope Generator Rate 1 NRPN 1 | 6 | Envelope Generator Rate 2 NRPN 2 | 6 | Envelope Generator Rate 3 NRPN 3 | 6 | Envelope Generator Rate 4 NRPN 4 | 6 | Envelope Generator Level 1 NRPN 5 | 6 | Envelope Generator Level 2 NRPN 6 | 6 | Envelope Generator Level 3 NRPN 7 | 6 | Envelope Generator Level 4 NRPN 8 | 6 | Keyboard Level Scaling Break Point NRPN 9 | 6 | Keyboard Level Scaling Left Depth NRPN 10 | 6 | Keyboard Level Scaling Right Depth NRPN 11 | 6 | Keyboard Level Scaling Left Curve NRPN 12 | 6 | Keyboard Level Scaling Right Curve NRPN 13 | 6 | Keyboard Rate Scaling NRPN 14 | 6 | Amp Mod Sensitivity NRPN 15 | 6 | Keyboard Velocity Sensitivity NRPN 16 | 6 | Operator Output Level NRPN 17 | * 6 | Oscillator Mode NRPN 18 | * 6 | Oscillator Frequency Coarse NRPN 19 | * 6 | Oscillator Frequency Fine NRPN 20 | * 6 | Oscillator Detune NRPN 21 | 5 | Envelope Generator Rate 1 NRPN 22 | 5 | Envelope Generator Rate 2 NRPN 23 | 5 | Envelope Generator Rate 3 NRPN 24 | 5 | Envelope Generator Rate 4 NRPN 25 | 5 | Envelope Generator Level 1 NRPN 26 | 5 | Envelope Generator Level 2 NRPN 27 | 5 | Envelope Generator Level 3 NRPN 28 | 5 | Envelope Generator Level 4 NRPN 29 | 5 | Keyboard Level Scaling Break Point NRPN 30 | 5 | Keyboard Level Scaling Left Depth NRPN 31 | 5 | Keyboard Level Scaling Right Depth NRPN 32 | 5 | Keyboard Level Scaling Left Curve NRPN 33 | 5 | Keyboard Level Scaling Right Curve NRPN 34 | 5 | Keyboard Rate Scaling NRPN 35 | 5 | Amp Mod Sensitivity NRPN 36 | 5 | Keyboard Velocity Sensitivity NRPN 37 | 5 | Operator Output Level NRPN 38 | * 5 | Oscillator Mode NRPN 39 | * 5 | Oscillator Frequency Coarse NRPN 40 | * 5 | Oscillator Frequency Fine NRPN 41 | * 5 | Oscillator Detune NRPN 42 | 4 | Envelope Generator Rate 1 NRPN 43 | 4 | Envelope Generator Rate 2 NRPN 44 | 4 | Envelope Generator Rate 3 NRPN 45 | 4 | Envelope Generator Rate 4 NRPN 46 | 4 | Envelope Generator Level 1 NRPN 47 | 4 | Envelope Generator Level 2 NRPN 48 | 4 | Envelope Generator Level 3 NRPN 49 | 4 | Envelope Generator Level 4 NRPN 50 | 4 | Keyboard Level Scaling Break Point NRPN 51 | 4 | Keyboard Level Scaling Left Depth NRPN 52 | 4 | Keyboard Level Scaling Right Depth NRPN 53 | 4 | Keyboard Level Scaling Left Curve NRPN 54 | 4 | Keyboard Level Scaling Right Curve NRPN 55 | 4 | Keyboard Rate Scaling NRPN 56 | 4 | Amp Mod Sensitivity NRPN 57 | 4 | Keyboard Velocity Sensitivity NRPN 58 | 4 | Operator Output Level NRPN 59 | * 4 | Oscillator Mode NRPN 60 | * 4 | Oscillator Frequency Coarse NRPN 61 | * 4 | Oscillator Frequency Fine NRPN 62 | * 4 | Oscillator Detune NRPN 63 | 3 | Envelope Generator Rate 1 NRPN 64 | 3 | Envelope Generator Rate 2 NRPN 65 | 3 | Envelope Generator Rate 3 NRPN 66 | 3 | Envelope Generator Rate 4 NRPN 67 | 3 | Envelope Generator Level 1 NRPN 68 | 3 | Envelope Generator Level 2 NRPN 69 | 3 | Envelope Generator Level 3 NRPN 70 | 3 | Envelope Generator Level 4 NRPN 71 | 3 | Keyboard Level Scaling Break Point NRPN 72 | 3 | Keyboard Level Scaling Left Depth NRPN 73 | 3 | Keyboard Level Scaling Right Depth NRPN 74 | 3 | Keyboard Level Scaling Left Curve NRPN 75 | 3 | Keyboard Level Scaling Right Curve NRPN 76 | 3 | Keyboard Rate Scaling NRPN 77 | 3 | Amp Mod Sensitivity NRPN 78 | 3 | Keyboard Velocity Sensitivity NRPN 79 | 3 | Operator Output Level NRPN 80 | * 3 | Oscillator Mode NRPN 81 | * 3 | Oscillator Frequency Coarse NRPN 82 | * 3 | Oscillator Frequency Fine NRPN 83 | * 3 | Oscillator Detune NRPN 84 | 2 | Envelope Generator Rate 1 NRPN 85 | 2 | Envelope Generator Rate 2 NRPN 86 | 2 | Envelope Generator Rate 3 NRPN 87 | 2 | Envelope Generator Rate 4 NRPN 88 | 2 | Envelope Generator Level 1 NRPN 89 | 2 | Envelope Generator Level 2 NRPN 90 | 2 | Envelope Generator Level 3 NRPN 91 | 2 | Envelope Generator Level 4 NRPN 92 | 2 | Keyboard Level Scaling Break Point NRPN 93 | 2 | Keyboard Level Scaling Left Depth NRPN 94 | 2 | Keyboard Level Scaling Right Depth NRPN 95 | 2 | Keyboard Level Scaling Left Curve NRPN 96 | 2 | Keyboard Level Scaling Right Curve NRPN 97 | 2 | Keyboard Rate Scaling NRPN 98 | 2 | Amp Mod Sensitivity NRPN 99 | 2 | Keyboard Velocity Sensitivity NRPN 100 | 2 | Operator Output Level NRPN 101 | * 2 | Oscillator Mode NRPN 102 | * 2 | Oscillator Frequency Coarse NRPN 103 | * 2 | Oscillator Frequency Fine NRPN 104 | * 2 | Oscillator Detune NRPN 105 | 1 | Envelope Generator Rate 1 NRPN 106 | 1 | Envelope Generator Rate 2 NRPN 107 | 1 | Envelope Generator Rate 3 NRPN 108 | 1 | Envelope Generator Rate 4 NRPN 109 | 1 | Envelope Generator Level 1 NRPN 110 | 1 | Envelope Generator Level 2 NRPN 111 | 1 | Envelope Generator Level 3 NRPN 112 | 1 | Envelope Generator Level 4 NRPN 113 | 1 | Keyboard Level Scaling Break Point NRPN 114 | 1 | Keyboard Level Scaling Left Depth NRPN 115 | 1 | Keyboard Level Scaling Right Depth NRPN 116 | 1 | Keyboard Level Scaling Left Curve NRPN 117 | 1 | Keyboard Level Scaling Right Curve NRPN 118 | 1 | Keyboard Rate Scaling NRPN 119 | 1 | Amp Mod Sensitivity NRPN 120 | 1 | Keyboard Velocity Sensitivity NRPN 121 | 1 | Operator Output Level NRPN 122 | * 1 | Oscillator Mode NRPN 123 | * 1 | Oscillator Frequency Coarse NRPN 124 | * 1 | Oscillator Frequency Fine NRPN 125 | * 1 | Oscillator Detune Fixed Point vs. Floating Point Rendering ======================================== hexter can be compiled to do its sound rendering using either fixed-point math or floating-point math. The difference in sound quality should not be audible, so the question of which type of math to use becomes which type of math is faster. On many older processors (e.g. PowerPC G4), the fixed-point math is substantially faster. With newer processors, the speed of each type of math depends on several factors, including the particular processor, the compiler and the compiler options used. It is often surprising which is faster for a given configuration! On fairly normal posix systems (like Linux or OS X), you can compile a small test program, to test which type of math is the fastest on your processor. To do this, unpack the hexter tarball, cd into the 'fptest' directory, type 'make', then type './fptest'. After 30-60 seconds, you should see a summary of the test results. By default, hexter is built to use fixed-point rendering. If your test results say that floating-point is faster, then you can configure hexter to use floating-point with the '--enable-floating-point' configure option. Here are some test results from a few machines. Lower percentages indicate the faster mode. Processor Fixed Point Floating Point ------------------------------------- ----------- -------------- PowerPC G4 800MHz 49.5% 100.0% PowerPC G4 1.07GHz 49.8% 100.0% Pentium III (Coppermine) 933MHz 100.0% 95.2% Intel Core Duo 1.83GHz, OS X 10.4.9 100.0% 92.9% Intel Core 2 Duo 2.4GHz, Linux 3.2 100.0% 96.1% * Intel Core 2 Duo 2.4GHz, OS X 10.4.11 100.0% 91.4% * Intel Core 2 Duo 2.4GHz, OS X 10.6.8 61.5% 100.0% * Intel Core 2 Duo 2.5GHz, OS X 10.6.7 62.0% 100.0% Intel Core i7, OS X 10.7 52.0% 100.0% * These three all come from the same machine! Frequently Asked Questions ========================== Q. The plugin seems to work fine, but the GUI never appears. Why? A. Make sure the hostname of your machine is resolvable (if not, the OSC messages can't be sent between host and GUI). If your machine's hostname is 'foo.bar.net', make sure you either have an entry for 'foo.bar.net' in /etc/hosts, or that your DNS server can resolve it. Test this with e.g. 'ping foo.bar.net'. To test that the GUI itself works, you can start it by itself (without a DSSI host) by giving it the '-test' option, for example: $ /lib/dssi/hexter/hexter_gtk -test Resources: ========== http://en.wikipedia.org/wiki/Yamaha_DX7 The Wikipedia Yamaha DX7 page. http://homepage.ntlworld.com/steve.sims/ Steve Sims' site with lots of information, patches, and links. http://homepages.abdn.ac.uk/mth192/pages/html/dx7.html Dave Benson's DX7 page, has much info as well as links to patch files. http://www.synthzone.com/yamaha.htm The Synth Zone's collection of Yamaha links, which contains quite a few links to patch file collections. hexter-1.0.2/ChangeLog0000644000076400007640000001253412046775374011540 0000000000000020121108 smbolton -- version 1.0.2 * Fixed: starting the GUI on a session with unsaved edits would leave the patch editor insensitive (thanks to William Light for the bug report.) 20121102 smbolton -- version 1.0.1 * Didn't I already fix that missing '-lm' thing everywhere already? 20121029 smbolton -- version 1.0.0 * Merged patched editors. * Merged DX-7 to UTF-8 character set conversion. * Fixed test note code to prevent stuck notes. 20121023 smbolton * Merged debug branch. 20121022 smbolton * hexter development is now hosted on github: https://github.com/smbolton/hexter * More patch loading enhancements from Martin Tarenskeen. 20110628 CVS commit smbolton -- version 0.6.9.0 * MIDI non-registered parameters (NRPNs) can now be used to change any of the operator parameters for a plugin instance's current patch on-the-fly. Thanks to Jamie Bullock for contributing this code. * It is now possible to ./configure hexter to build the GTK+ user interface, the text-mode UI, both, or neither (again, thanks to Jamie). * The GTK+ GUI now requires GTK+ 2.4 or later. * hexter may now be built to use floating-point math in its audio rendering. There is a new '--enable-floating-point' ./configure option, and a simple test harness in the fptest/ directory. * Both the hexter GUI and tx_edit include even more patch loading enhancements from Martin Tarenskeen. * The synthesis code has been simplified, so the once-separate car() and mod() functions are now just a single op(), which means less cache pressure for both code and data. * There should be some other minor speed-ups as well: removed a bunch of slow unsigned to float casts, and fixed some constant expressions that were not being optimized. * Oops. GUI 'sample-rate' method broke 'quit'. * GUI no longer segfaults if started with no arguments. 20090103 version 0.6.2 * Silently ignore 'sample-rate' method. * Fixed GtkSpinButton adjustments to avoid page_size warning with GTK+ >=2.14. * Added Martin Tarenskeen's patch loading enhancements to extra/tx_edit.c. 20070411 version 0.6.1 * hexter now installs as DSSI plugin 'hexter', just like the 0.5.9 and earlier versions, eliminating the trouble the versioned plugin names would cause distribution packagers. The plugin files installed are again: /lib/dssi/hexter/hexter_gtk /lib/dssi/hexter.so /lib/dssi/hexter.la Also, there is now a 'disable LFO/Mod/Perf (0.5.x compatibility)' option in the hexter GUI which disables the version 0.6.x LFO, amplitude and pitch modulation functions, allowing projects made with version 0.5.9 to sound as they were originally created. 20070118 version 0.6.0 * hexter version 0.6.0 installed as DSSI plugin 'hexter6', with the following files: /lib/dssi/hexter6/hexter6_gtk /lib/dssi/hexter6.so /lib/dssi/hexter6.la This allowed hexter 0.5.9 to be installed alongside the 0.6.0 version, but was a headache for distribution packagers, so this was abandoned with version 0.6.1. * Implemented the LFO, amplitude modulation and pitch modulation (many thanks to Jamie Bullock!) * Added TX7-style performance parameters, allowing configuration from the GUI of pitch bend range, portamento time, and sensitivity and assignment of the modulation wheel, foot controller, pressure (both channel and key), and breath controller. * Added DX7 patchbank loading code from Martin Tarenskeen, allowing hexter to load a number of additional patch file formats. * Partially implemented portamento. For now, the curves and times are wrong, but the plumbing is there. 20060108 version 0.5.9 * Added GUI '-test' magic host URL argument for starting GUI without a host. * Improved the 'About' dialog with a new color pixmap. * Fixed the held key tracking. * Use gcc/glibc 'constructor' and 'destructor' attributes instead of the deprecated _init() and _fini() functions (needed for OS X 10.4 'Tiger'). 20051024 CVS commit smbolton * Added support for change operator coarse frequency in real time via MIDI binding (for the Harvey Project). * Minor gcc4 fixes. 20050411 CVS commit smbolton * Initial Mac OS X support (sys-ex patch edit reception is still ALSA-only.) 20050119 CVS commit smbolton ( version bump to 0.5.9 ) * gcc 2.9x '-finline-limit=5000' fix in configure.in * RPM bindir fix in src/Makefile.am 20041229 version 0.5.8 * Added a 'Volume' control, and implemented MIDI CC 7 'Volume' handling. * Compiles with GTK+ 2.x by default, or with GTK+ 1.2 if 2.x is not found. An optional text (readline) based UI can be built instead by supplying configure with the '--with-textui' flag. * Implemented DSSI project directory handling. * Changed activate() to new behavior. * Fixed bug where changes to tuning control would only effect first playing voice. * Made a number of error messages more informational. * Added converted FB-01 patches. 20041101 0.5.7 first public release * Moved Test Note frame to be visible when both Patches and Configuration tabs are selected. * Changed tuning slider to a spinbutton for greater accuracy. * Made a slightly better default patch set. 20041029 0.5.7-alpha -- initial alpha release * "don't put that in your mouth, you don't know where it's been!" hexter-1.0.2/TODO0000644000076400007640000000114012041434775010435 00000000000000hexter To-Do list, in no particular order: ========================================== * Clean up all "!FIX!"es (and "-FIX-"es). * Optionally sort patch list alphabetically (Steve Harris). * optimize so if a voice just being set up still has all the patch data for the current edit buffer, we skip loading it. * Figure out the feedback scaling "fudge factor". The current 0.18 is close, but not right on. * Finish pitch envelope time calculation stuff. * Add a high-pass filter to the output, to block very low frequency output like the DX7 does. * Implement de-clicking of stolen voices. hexter-1.0.2/COPYING0000644000076400007640000004310311757613235011010 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. hexter-1.0.2/extra/0000755000076400007640000000000012046775671011164 500000000000000hexter-1.0.2/extra/textui_main.c0000644000076400007640000002436711757613235013605 00000000000000/* hexter DSSI software synthesizer text-mode UI * * Copyright (C) 2004, 2009 Sean Bolton and others. * * Portions of this file may have come from Chris Cannam and Steve * Harris's public domain DSSI example code. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "hexter_types.h" #include "hexter.h" #include "gui_main.h" #include "textui_callbacks.h" /* -FIX- #include "gui_midi.h" */ #include "gui_data.h" #include "dx7_voice_data.h" /* ==== global variables ==== */ char *user_friendly_id; char * osc_host_url; char * osc_self_url; lo_address osc_host_address; char * osc_configure_path; char * osc_control_path; char * osc_exiting_path; char * osc_hide_path; char * osc_midi_path; char * osc_program_path; char * osc_quit_path; char * osc_show_path; char * osc_update_path; dx7_patch_t *patches = NULL; int patch_section_dirty[4]; int current_program = 0; int edit_buffer_active = 0; edit_buffer_t edit_buffer; int edit_receive_channel = 0; int done = 0; int host_requested_quit = 0; /* ==== OSC handling ==== */ static char * osc_build_path(char *base_path, char *method) { char buffer[256]; char *full_path; snprintf(buffer, 256, "%s%s", base_path, method); if (!(full_path = strdup(buffer))) { TUIDB_MESSAGE(DB_OSC, ": out of memory!\n"); exit(1); } return strdup(buffer); } static void osc_error(int num, const char *msg, const char *path) { TUIDB_MESSAGE(DB_OSC, " error: liblo server error %d in path \"%s\": %s\n", num, (path ? path : "(null)"), msg); } int osc_debug_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int i; TUIDB_MESSAGE(DB_OSC, " warning: unhandled OSC message to <%s>:\n", path); for (i = 0; i < argc; ++i) { printf("arg %d: type '%c': ", i, types[i]); lo_arg_pp((lo_type)types[i], argv[i]); printf("\n"); } return 1; /* try any other handlers */ } int osc_action_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { if (!strcmp(user_data, "show")) { /* TUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'show' message\n"); */ } else if (!strcmp(user_data, "hide")) { /* TUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'hide' message\n"); */ } else if (!strcmp(user_data, "quit")) { /* TUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'quit' message\n"); */ host_requested_quit = 1; done = 1; } else { return osc_debug_handler(path, types, argv, argc, msg, user_data); } return 0; } int osc_configure_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { char *key, *value; if (argc < 2) { TUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_configure_handler\n"); return 1; } key = &argv[0]->s; value = &argv[1]->s; if (strlen(key) == 8 && !strncmp(key, "patches", 7) && key[7] >= '0' && key[7] <= '3') { update_patches(key, value); } else if (!strcmp(key, "edit_buffer")) { /* -FIX- update_edit_buffer(value); */ } else if (!strcmp(key, "monophonic")) { update_monophonic(value); } else if (!strcmp(key, "polyphony")) { update_polyphony(value); #ifdef DSSI_GLOBAL_CONFIGURE_PREFIX } else if (!strcmp(key, DSSI_GLOBAL_CONFIGURE_PREFIX "polyphony")) { #else } else if (!strcmp(key, "global_polyphony")) { #endif update_global_polyphony(value); #ifdef DSSI_PROJECT_DIRECTORY_KEY } else if (!strcmp(key, DSSI_PROJECT_DIRECTORY_KEY)) { /* -FIX- implement project directory key */ #endif } else { return osc_debug_handler(path, types, argv, argc, msg, user_data); } return 0; } int osc_control_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int port; float value; if (argc < 2) { TUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_control_handler\n"); return 1; } port = argv[0]->i; value = argv[1]->f; TUIDB_MESSAGE(DB_OSC, " osc_control_handler: control %d now %f\n", port, value); /* -FIX- update_voice_widget(port, value); */ return 0; } int osc_program_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int bank, program; if (argc < 2) { TUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_program_handler\n"); return 1; } bank = argv[0]->i; program = argv[1]->i; if (bank || program < 0 || program > 127) { TUIDB_MESSAGE(DB_OSC, ": out-of-range program select (bank %d, program %d)\n", bank, program); return 0; } TUIDB_MESSAGE(DB_OSC, " osc_program_handler: received program change, bank %d, program %d\n", bank, program); update_from_program_select(bank, program); return 0; } /* ==== main ==== */ int main(int argc, char *argv[]) { char *host, *port, *path, *tmp_url, *rl_prompt; lo_server osc_server; int lo_fd, ret; fd_set fds; DSSP_DEBUG_INIT("hexter_text"); #ifdef DSSP_DEBUG TUIDB_MESSAGE(DB_MAIN, " starting (pid %d)...\n", getpid()); #else printf("hexter_text starting (pid %d)...\n", getpid()); #endif /* { int i; fprintf(stderr, "args:\n"); for(i=0; i \n", argv[0]); exit(1); } user_friendly_id = argv[4]; /* set up OSC support */ osc_host_url = argv[1]; host = lo_url_get_hostname(osc_host_url); port = lo_url_get_port(osc_host_url); path = lo_url_get_path(osc_host_url); osc_host_address = lo_address_new(host, port); osc_configure_path = osc_build_path(path, "/configure"); osc_control_path = osc_build_path(path, "/control"); osc_exiting_path = osc_build_path(path, "/exiting"); osc_hide_path = osc_build_path(path, "/hide"); osc_midi_path = osc_build_path(path, "/midi"); osc_program_path = osc_build_path(path, "/program"); osc_quit_path = osc_build_path(path, "/quit"); osc_show_path = osc_build_path(path, "/show"); osc_update_path = osc_build_path(path, "/update"); osc_server = lo_server_new(NULL, osc_error); lo_server_add_method(osc_server, osc_configure_path, "ss", osc_configure_handler, NULL); lo_server_add_method(osc_server, osc_control_path, "if", osc_control_handler, NULL); lo_server_add_method(osc_server, osc_hide_path, "", osc_action_handler, "hide"); lo_server_add_method(osc_server, osc_program_path, "ii", osc_program_handler, NULL); lo_server_add_method(osc_server, osc_quit_path, "", osc_action_handler, "quit"); lo_server_add_method(osc_server, osc_show_path, "", osc_action_handler, "show"); lo_server_add_method(osc_server, NULL, NULL, osc_debug_handler, NULL); tmp_url = lo_server_get_url(osc_server); osc_self_url = osc_build_path(tmp_url, (strlen(path) > 1 ? path + 1 : path)); free(tmp_url); /* get OSC server socket fd for main loop select() */ lo_fd = lo_server_get_socket_fd(osc_server); if (lo_fd < 0) { printf("hexter_text fatal: OSC transport does not support exposing socket fd\n"); exit(1); } /* set up patches */ gui_data_patches_init(); /* set up readline */ rl_prompt = (char *)malloc(strlen(user_friendly_id) + 12); // error handling.... sprintf(rl_prompt, "hexter %s> ", user_friendly_id); rl_callback_handler_install (rl_prompt, readline_callback); rl_add_defun("test-note", test_note_callback, CTRL('t')); /* send our update request */ lo_send(osc_host_address, osc_update_path, "s", osc_self_url); /* main loop */ do { /* set up list of file descriptors to watch */ FD_ZERO(&fds); FD_SET(0, &fds); /* stdin */ FD_SET(lo_fd, &fds); ret = select(lo_fd + 1, &fds, NULL, NULL, NULL); if (ret == -1) { printf("hexter_text fatal: main loop select() error!\n"); done = 1; } else if (ret > 0) { if (FD_ISSET(0, &fds)) { rl_callback_read_char(); } if (FD_ISSET(lo_fd, &fds)) { lo_server_recv_noblock(osc_server, 0); } } } while (!done); /* clean up and exit */ TUIDB_MESSAGE(DB_MAIN, ": yep, we got to the cleanup!\n"); /* shut down sys-ex receive, if enabled */ /* -FIX- if (sysex_enabled) { * sysex_stop(); * } */ /* readline cleanup */ rl_callback_handler_remove(); /* say bye-bye */ if (!host_requested_quit) { lo_send(osc_host_address, osc_exiting_path, ""); } /* clean up patches */ gui_data_patches_free(); /* clean up OSC support */ lo_server_free(osc_server); free(host); free(port); free(path); free(osc_configure_path); free(osc_control_path); free(osc_exiting_path); free(osc_hide_path); free(osc_midi_path); free(osc_program_path); free(osc_quit_path); free(osc_show_path); free(osc_update_path); free(osc_self_url); return 0; } hexter-1.0.2/extra/tx_edit.c0000644000076400007640000022714212044027035012676 00000000000000/* Yamaha DX7 / TX7 Editor/Librarian * * Copyright (C) 1991, 1995, 1997, 1998, 2004, 2009, 2011, * 2012 Sean Bolton. * * This is an ncurses-based patch editor for the Yamaha DX7 and * TX7. It is provided as-is, without any documentation, and * is totally unsupported, but may be useful to you if you can't use * JSynthLib or similar. It started out life on my Apple ][+, then * I ported it to my Amiga, then to my MS-DOS machine, then to * Linux, so the code's a mess and nothing I'm proud of. But, it * does the job. * * Compile with: * gcc -o tx_edit tx_edit.c -lcurses -lasound * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. * * Revision History: * 20040126 Sean Bolton - made help functions helpful, added ALSA support * 20040205 Sean Bolton - clean up display with noecho, line drawing * 20040207 Sean Bolton - add next/previous voice commands to edit mode * 20090102 Sean Bolton - incorporated Martin Tarenskeen's patch loading * enhancements * 20110215 Sean Bolton - incorporated more patch loading enhancements * from Martin Tarenskeen. * 20121022 Sean Bolton - and yet more from Martin. */ /* Need to do: */ /* need to provide color changing option */ /* bank and single receive */ /* auto buffer sizing? */ /* a search option would be nice */ /* show channel/instrument on display */ #define VERSIONSTRING "0.94s" /* Undefine USE_ALSA_MIDI to just write to /dev/midi */ #define USE_ALSA_MIDI 1 #define DEBUG 1 #include #include #include #include #include #include #include #include #include #ifdef USE_ALSA_MIDI #include #endif #define RETURN_OK 0 #define RETURN_FAIL 255 typedef unsigned char UBYTE; void cprintf(const char *fmt, ...); /* ==== Files ==== */ #define MAXPATH 80 char FNameBuff[MAXPATH]="\0"; /* ==== Buffers ==== */ #define DEFAULTVOICES 8192 #define DX7_VOICE_SIZE_PACKED 128 #define DX7_VOICE_SIZE_UNPACKED 155 #define DX7_DUMP_SIZE_VOICE_SINGLE 155+8 #define DX7_DUMP_SIZE_VOICE_BULK 4096+8 int Voices = DEFAULTVOICES; UBYTE *Buffer = NULL, *VoiceData, *SingleDump, *SingleData, *BulkDump; int BufferLength; /* ==== Console ==== */ #define KEY_METAA (0x200+'a') #define KEY_METAB (0x200+'b') #define KEY_METAC (0x200+'c') #define KEY_METAD (0x200+'d') #define KEY_METAE (0x200+'e') #define KEY_METAG (0x200+'g') #define KEY_METAH (0x200+'h') #define KEY_METAL (0x200+'l') #define KEY_METAM (0x200+'m') #define KEY_METAO (0x200+'o') #define KEY_METAP (0x200+'p') #define KEY_METAQ (0x200+'q') #define KEY_METAR (0x200+'r') #define KEY_METAS (0x200+'s') #define KEY_METAT (0x200+'t') #undef KEY_ENTER #define KEY_ENTER (0x0a) #define KEY_ESC (0x1b) #define KEY_METAEQ (0x200+'=') /* Alt-= */ #define KEY_METAPL (0x200+'+') /* Alt-+ */ #define KEY_METAEX (0x200+'!') /* Alt-! */ #define KEY_METANU (0x200+'#') /* Alt-# */ enum textcolor {COLOR_MSG = 1, COLOR_LABEL, COLOR_DATA, COLOR_BLOCK, COLOR_CURSOR, COLOR_BCURSOR, COLOR_OPON, COLOR_OPOFF}; #if 0 #define kc_Del (0x5300) #define kc_CtrlRight (0x7400) #define kc_CtrlLeft (0x7300) #define kc_CtrlPgUp (0x8400) #define kc_CtrlPgDn (0x7600) #define kc_Home (0x4700) #define kc_End (0x4f00) #define kc_CtrlHome (0x7700) #define kc_CtrlEnd (0x7500) #endif /* ==== Midi ==== */ #ifdef USE_ALSA_MIDI snd_seq_t *MidiHandle = NULL; int MidiClient; int MidiPort = -1; #endif char TXChannel = 0; /* 0-15! */ /* ==== VoiceEdit ==== */ #define VOICEPARMS 146 #define VOICEPARMMAX 145 #ifdef USE_CALCED_CURSOR_MOVES #define VOICEPARMS_X_SPAN 57 #define VOICEPARMS_Y_SPAN 18 #endif int ve_Cursor = 0; int ve_OpSelect = 63; #define vptName 1 #define vpt0_99 2 #define vpt0_7 3 #define vptMode 4 /* R,F */ #define vptFC 5 /* 0-31 */ #define vptFF 6 /* 0-99 */ #define vptDetune 7 /* 0-14, as -7-+7 */ #define vpt0_3 8 #define vptAlg 9 /* 0-31, as 1-32 */ #define vptCurve 10 /* 0-3, scaling curve */ #define vptBkPt 11 /* 0-99, breakpoint */ #define vptTrans 12 /* 0-48, transpose */ #define vptOnOff 13 #define vptWave 14 unsigned char vtypemax[15] = { 0, 0, 99, 7, 1, 31, 99, 14, 3, 31, 3, 99, 48, 1, 5, }; struct _veParm { UBYTE Type; UBYTE Offset; UBYTE X; UBYTE Y; UBYTE Up; /* -FIX- Up and Down are obsolete with calc'ed cursor moves */ UBYTE Down; } veParm[VOICEPARMS] = { /* T, Off, X, Y, U, D */ { 1, 145, 31, 0, 145, 8, }, /* Name */ { 2, 105, 5, 4, 140, 17, }, /* O1 R1 */ { 2, 109, 8, 4, 141, 18, }, { 2, 106, 12, 4, 142, 19, }, { 2, 110, 15, 4, 142, 20, }, { 2, 107, 19, 4, 143, 21, }, { 2, 111, 22, 4, 144, 22, }, { 2, 108, 26, 4, 0, 23, }, { 2, 112, 29, 4, 0, 24, }, { 3, 118, 33, 4, 0, 25, }, /* O1 RS */ { 4, 122, 36, 4, 0, 26, }, { 5, 123, 38, 4, 145, 27, }, { 6, 124, 41, 4, 121, 28, }, { 7, 125, 44, 4, 121, 29, }, { 2, 121, 54, 4, 94, 30, }, { 3, 120, 58, 4, 95, 31, }, { 8, 119, 60, 4, 96, 32, }, /* O1 AMS */ { 2, 84, 5, 5, 1, 33, }, /* O2 R1 */ { 2, 88, 8, 5, 2, 34, }, { 2, 85, 12, 5, 3, 35, }, { 2, 89, 15, 5, 4, 36, }, { 2, 86, 19, 5, 5, 37, }, { 2, 90, 22, 5, 6, 38, }, { 2, 87, 26, 5, 7, 39, }, { 2, 91, 29, 5, 8, 40, }, { 3, 97, 33, 5, 9, 41, }, /* O2 RS */ { 4, 101, 36, 5, 10, 42, }, { 5, 102, 38, 5, 11, 43, }, { 6, 103, 41, 5, 12, 44, }, { 7, 104, 44, 5, 13, 45, }, { 2, 100, 54, 5, 14, 46, }, { 3, 99, 58, 5, 15, 47, }, { 8, 98, 60, 5, 16, 48, }, /* O2 AMS */ { 2, 63, 5, 6, 17, 49, }, /* O3 R1 */ { 2, 67, 8, 6, 18, 50, }, { 2, 64, 12, 6, 19, 51, }, { 2, 68, 15, 6, 20, 52, }, { 2, 65, 19, 6, 21, 53, }, { 2, 69, 22, 6, 22, 54, }, { 2, 66, 26, 6, 23, 55, }, { 2, 70, 29, 6, 24, 56, }, { 3, 76, 33, 6, 25, 57, }, /* O3 RS */ { 4, 80, 36, 6, 26, 58, }, { 5, 81, 38, 6, 27, 59, }, { 6, 82, 41, 6, 28, 60, }, { 7, 83, 44, 6, 29, 61, }, { 2, 79, 54, 6, 30, 62, }, { 3, 78, 58, 6, 31, 63, }, { 8, 77, 60, 6, 32, 64, }, /* O3 AMS */ { 2, 42, 5, 7, 33, 65, }, /* O4 R1 */ { 2, 46, 8, 7, 34, 66, }, { 2, 43, 12, 7, 35, 67, }, { 2, 47, 15, 7, 36, 68, }, { 2, 44, 19, 7, 37, 69, }, { 2, 48, 22, 7, 38, 70, }, { 2, 45, 26, 7, 39, 71, }, { 2, 49, 29, 7, 40, 72, }, { 3, 55, 33, 7, 41, 73, }, /* O4 RS */ { 4, 59, 36, 7, 42, 74, }, { 5, 60, 38, 7, 43, 75, }, { 6, 61, 41, 7, 44, 76, }, { 7, 62, 44, 7, 45, 77, }, { 2, 58, 54, 7, 46, 78, }, { 3, 57, 58, 7, 47, 79, }, { 8, 56, 60, 7, 48, 80, }, /* O4 AMS */ { 2, 21, 5, 8, 49, 81, }, /* O5 R1 */ { 2, 25, 8, 8, 50, 82, }, { 2, 22, 12, 8, 51, 83, }, { 2, 26, 15, 8, 52, 84, }, { 2, 23, 19, 8, 53, 85, }, { 2, 27, 22, 8, 54, 86, }, { 2, 24, 26, 8, 55, 87, }, { 2, 28, 29, 8, 56, 88, }, { 3, 34, 33, 8, 57, 89, }, /* O5 RS */ { 4, 38, 36, 8, 58, 90, }, { 5, 39, 38, 8, 59, 91, }, { 6, 40, 41, 8, 60, 92, }, { 7, 41, 44, 8, 61, 93, }, { 2, 37, 54, 8, 62, 94, }, { 3, 36, 58, 8, 63, 95, }, { 8, 35, 60, 8, 64, 96, }, /* O5 AMS */ { 2, 0, 5, 9, 65, 97, }, /* O6 R1 */ { 2, 4, 8, 9, 66, 98, }, { 2, 1, 12, 9, 67, 99, }, { 2, 5, 15, 9, 68, 100, }, { 2, 2, 19, 9, 69, 101, }, { 2, 6, 22, 9, 70, 102, }, { 2, 3, 26, 9, 71, 103, }, { 2, 7, 29, 9, 72, 104, }, { 3, 13, 33, 9, 73, 106, }, /* O6 RS */ { 4, 17, 36, 9, 74, 106, }, { 5, 18, 38, 9, 75, 106, }, { 6, 19, 41, 9, 76, 105, }, { 7, 20, 44, 9, 77, 105, }, { 2, 16, 54, 9, 78, 105, }, { 3, 15, 58, 9, 79, 105, }, { 8, 14, 60, 9, 80, 105, }, /* O6 AMS */ { 2, 126, 5, 10, 81, 108, }, /* P R1 */ { 2, 130, 8, 10, 82, 109, }, { 2, 127, 12, 10, 83, 110, }, { 2, 131, 15, 10, 84, 110, }, { 2, 128, 19, 10, 85, 111, }, { 2, 132, 22, 10, 86, 112, }, { 2, 129, 26, 10, 87, 112, }, { 2, 133, 29, 10, 88, 106, }, { 9, 134, 48, 11, 94, 107, }, /* Alg */ { 2, 137, 35, 12, 90, 113, }, { 3, 135, 49, 12, 105, 114, }, { 10, 116, 5, 13, 97, 115, }, /* O1 LC */ { 2, 114, 10, 13, 98, 116, }, { 11, 113, 13, 13, 99, 117, }, { 10, 117, 18, 13, 101, 118, }, { 2, 115, 23, 13, 102, 119, }, { 2, 138, 35, 13, 106, 120, }, /* Delay */ { 12, 144, 46, 13, 107, 121, }, { 10, 95, 5, 14, 108, 122, }, /* O2 LC */ { 2, 93, 10, 14, 109, 123, }, { 11, 92, 13, 14, 110, 124, }, { 10, 96, 18, 14, 111, 125, }, { 2, 94, 23, 14, 112, 126, }, { 2, 139, 35, 14, 113, 127, }, /* PMD */ { 13, 136, 47, 14, 114, 14, }, { 10, 74, 5, 15, 115, 128, }, /* O3 LC */ { 2, 72, 10, 15, 116, 129, }, { 11, 71, 13, 15, 117, 130, }, { 10, 75, 18, 15, 118, 131, }, { 2, 73, 23, 15, 119, 132, }, { 2, 140, 35, 15, 120, 133, }, /* AMD */ { 10, 53, 5, 16, 122, 134, }, /* O4 LC */ { 2, 51, 10, 16, 123, 135, }, { 11, 50, 13, 16, 124, 136, }, { 10, 54, 18, 16, 125, 137, }, { 2, 52, 23, 16, 126, 138, }, { 13, 141, 34, 16, 127, 139, }, /* Sync */ { 10, 32, 5, 17, 128, 140, }, /* O5 LC */ { 2, 30, 10, 17, 129, 141, }, { 11, 29, 13, 17, 130, 142, }, { 10, 33, 18, 17, 131, 143, }, { 2, 31, 23, 17, 132, 144, }, { 14, 142, 34, 17, 133, 145, }, /* Wave */ { 10, 11, 5, 18, 134, 1, }, /* O6 LC */ { 2, 9, 10, 18, 135, 2, }, { 11, 8, 13, 18, 136, 3, }, { 10, 12, 18, 18, 137, 5, }, { 2, 10, 23, 18, 138, 6, }, { 3, 143, 36, 18, 139, 10, } /* PMS */ }; unsigned short veFFF[100] = { 1000, 1023, 1047, 1072, 1096, 1122, 1148, 1175, 1202, 1230, 1259, 1288, 1318, 1349, 1380, 1413, 1445, 1479, 1514, 1549, 1585, 1622, 1660, 1698, 1738, 1778, 1820, 1862, 1905, 1950, 1995, 2042, 2089, 2138, 2188, 2239, 2291, 2344, 2399, 2455, 2512, 2570, 2630, 2692, 2754, 2818, 2884, 2951, 3020, 3090, 3162, 3236, 3311, 3388, 3467, 3548, 3631, 3715, 3802, 3890, 3981, 4074, 4169, 4266, 4365, 4467, 4571, 4677, 4786, 4898, 5012, 5129, 5248, 5370, 5495, 5623, 5754, 5888, 6026, 6166, 6310, 6457, 6607, 6761, 6918, 7079, 7244, 7413, 7586, 7762, 7943, 8128, 8318, 8511, 8710, 8913, 9120, 9333, 9550, 9772, }; /* ==== Algorithm ==== */ char *veAlg[32] = { /* 32 algs, max 9 high and 17 wide */ " '`\n" /* 1 */ " 6/\n" " |\n" " 5\n" " |\n" "2 4\n" "| |\n" "1 3\n" "L--/", "\n" /* 2 */ " 6\n" " |\n" " 5\n" "'` |\n" "2/ 4\n" "| |\n" "1 3\n" "L--/", " '`\n" /* 3 */ "3 6/\n" "| |\n" "2 5\n" "| |\n" "1 4\n" "L--/", " '`\n" /* 4 */ "3 6|\n" "| ||\n" "2 5|\n" "| ||\n" "1 4/\n" "L--/", " '`\n" /* 5 */ "2 4 6/\n" "| | |\n" "1 3 5\n" "L--^--/", " '`\n" /* 6 */ "2 4 6|\n" "| | ||\n" "1 3 5/\n" "L--^--/", " '`\n" /* 7 */ " 6/\n" " |\n" "2 4 5\n" "| }--/\n" "1 3\n" "L--/", "\n" /* 8 */ " 6\n" " '` |\n" "2 4/ 5\n" "| }--/\n" "1 3\n" "L--/", "\n" /* 9 */ " 6\n" "'` |\n" "2/ 4 5\n" "| }--/\n" "1 3\n" "L--/", "'`\n" /* 10 */ "3/\n" "|\n" "2 5 6\n" "| }--/\n" "1 4\n" "L--/", "\n" /* 11 */ "3\n" "| '`\n" "2 5 6/\n" "| }--/\n" "1 4\n" "L--/", "'`\n" /* 12 */ "2/ 4 5 6\n" "| L--+--/\n" "1 3\n" "L-----/", " '`\n" /* 13 */ "2 4 5 6/\n" /* 13 */ "| L--+--/\n" "1 3\n" "L-----/", " '`\n" /* 14 */ " 5 6/\n" " }--/\n" "2 4\n" "| |\n" "1 3\n" "L--/", "\n" /* 15 */ " 5 6\n" "'` }--/\n" "2/ 4\n" "| |\n" "1 3\n" "L--/", " '`\n" /* 16 */ " 4 6/\n" " | |\n" "2 3 5\n" "L--+--/\n" " 1", "\n" /* 17 */ " 4 6\n" "'` | |\n" "2/ 3 5\n" "L--+--/\n" " 1", " 6\n" /* 18 */ " |\n" " 5\n" " '` |\n" "2 3/ 4\n" "L--+--/\n" " 1", "3\n" /* 19 */ "| '`\n" "2 6/\n" "| }--`\n" "1 4 5\n" "L--^--/", "'`\n" /* 20 */ "3/ 5 6\n" "}--` }--/\n" "1 2 4\n" "L--^--/", "'`\n" /* 21 */ "3/ 6\n" "}--` }--`\n" "1 2 4 5\n" "L--^--^--/", " '`\n" /* 22 */ "2 6/\n" "| '--+--`\n" "1 3 4 5\n" "L--^--^--/", " '`\n" /* 23 */ " 3 6/\n" " | }--`\n" "1 2 4 5\n" "L--^--^--/", " '`\n" /* 24 */ " 6/\n" " '--+--`\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`\n" /* 25 */ " 6/\n" " }--`\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`\n" /* 26 */ " 3 5 6/\n" " | }--/\n" "1 2 4\n" "L--^--/", " '`\n" /* 27 */ " 3/ 5 6\n" " | }--/\n" "1 2 4\n" "L--^--/", " '`\n" /* 28 */ " 5/\n" " |\n" "2 4\n" "| |\n" "1 3 6\n" "L--^--/", " '`\n" /* 29 */ " 4 6/\n" " | |\n" "1 2 3 5\n" "L--^--^--/", " '`\n" /* 30 */ " 5/\n" " |\n" " 4\n" " |\n" "1 2 3 6\n" "L--^--^--/", " '`\n" " 6/\n" /* 31 */ " |\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`" /* 32 */ "1 2 3 4 5 6/" "L--^--^--^--^--/", }; /* ==== Librarian ==== */ void noop(void){} void (*LibBlockAction)(void) = noop; int Voice_Cursor = 0, /* voice number under curser */ Voice_TOS = 0, /* " at top of screen */ Voice_BMark, /* " where block first marked */ Voice_BStart, /* " of block start */ Voice_BEnd; /* " of block end */ bool blocking = FALSE, blocked = FALSE; /* -FIX- This should be dynamic! */ int LibCols=5, /* columns of names that fit on screen (15 char each) */ LibRows=16, /* rows of names that fit on screen */ LibNames=80; /* names that fit on screen */ /* ==== Control ==== */ int txmode=0, newmode=0; #define MODELIB 1 #define MODEEDIT 2 #define MODEQUIT 3 /* ==== Utility Stuff ==== */ inline int min(int a, int b) { return (a < b ? a : b); } inline int max(int a, int b) { return (a > b ? a : b); } char _NoteText[5]={'x','x','x','x','\0'}; char * NoteText(int note) { _NoteText[0]=(" C D F G A ")[note%12]; _NoteText[1]=("C#D#EF#G#A#B")[note%12]; _NoteText[2]=("-0123456789")[note/12]; _NoteText[3]=("1 ")[note/12]; return _NoteText; } UBYTE * voiceAddr(int voice) { /* return voice*DX7_VOICE_SIZE_PACKED+VoiceData; */ return (voice << 7) +VoiceData; } void PrintVName(int voice) /* print name of voice - packed only! */ { UBYTE ca[11]; int i; memcpy(ca, voiceAddr(voice)+118, 10); for (i=0; i<10; i++) { if (ca[i] < 32) ca[i]=183; /* centered dot */ else if (ca[i] >= 128) ca[i]=174; /* (R) symbol = out-of-range */ else { switch (ca[i]) { case 92: ca[i]=165; break; /* yen */ case 126: ca[i]=187; break; /* >> */ case 127: ca[i]=171; break; /* << */ } } } ca[10]=0; cprintf("%s", ca); } /* ==== Init/Term Routines ==== */ UBYTE InitVoice[] = { 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x00, 0x08, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x20, 0x20, 0x20, 0x7F, 0x2D, 0x2D, 0x7E, 0x20, 0x20, 0x20 }; UBYTE InitVoiceUnpacked[155] = { 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x00, 0x01, 0x00, 0x07, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x00, 0x00, 0x01, 0x23, 0x00, 0x00, 0x00, 0x01, 0x00, 0x03, 0x18, 0x20, 0x20, 0x20, 0x7f, 0x2d, 0x2d, 0x7e, 0x20, 0x20, 0x20 }; void EraseVoice(int voice) { memcpy(voiceAddr(voice), InitVoice, DX7_VOICE_SIZE_PACKED); } void ConsoleTerm(void) { endwin(); } bool ConsoleInit(void) { initscr(); cbreak(); keypad(stdscr, TRUE); curs_set(0); start_color(); #if 1 init_pair(COLOR_MSG, COLOR_WHITE, COLOR_YELLOW); /* 0x1c */ init_pair(COLOR_LABEL, COLOR_GREEN, COLOR_BLUE); /* 0x1a */ init_pair(COLOR_DATA, COLOR_WHITE, COLOR_BLUE); /* 0x1f */ init_pair(COLOR_BLOCK, COLOR_WHITE, COLOR_CYAN); /* 0x3f */ init_pair(COLOR_CURSOR, COLOR_BLACK, COLOR_GREEN); /* 0x20 */ init_pair(COLOR_BCURSOR, COLOR_WHITE, COLOR_GREEN); /* 0x2f */ init_pair(COLOR_OPON, COLOR_GREEN, COLOR_BLUE); /* 0x1a */ init_pair(COLOR_OPOFF, COLOR_WHITE, COLOR_YELLOW); /* 0x14 */ #else init_pair(COLOR_MSG, COLOR_WHITE, COLOR_YELLOW); /* 0x1c */ init_pair(COLOR_LABEL, COLOR_WHITE, COLOR_YELLOW); /* 0x1a */ init_pair(COLOR_DATA, COLOR_WHITE, COLOR_BLUE); /* 0x1f */ init_pair(COLOR_BLOCK, COLOR_BLACK, COLOR_YELLOW); /* 0x3f */ init_pair(COLOR_CURSOR, COLOR_WHITE, COLOR_YELLOW); /* 0x20 */ init_pair(COLOR_BCURSOR, COLOR_BLACK, COLOR_YELLOW); /* 0x2f */ init_pair(COLOR_OPON, COLOR_WHITE, COLOR_YELLOW); /* 0x1a */ init_pair(COLOR_OPOFF, COLOR_WHITE, COLOR_YELLOW); /* 0x14 */ #endif bkgdset(COLOR_PAIR(COLOR_DATA)); attrset(COLOR_PAIR(COLOR_DATA)|A_BOLD); noecho(); return TRUE; } void BuffTerm(void) { if (Buffer) { free(Buffer); Buffer = NULL; } } bool BuffInit(void) /* returns TRUE if successful */ { int i; BuffTerm(); /* calculate buffer size from number of voices * DX7_VOICE_SIZE_PACKED plus a bulk dump buffer and a single dump buffer */ BufferLength = Voices * DX7_VOICE_SIZE_PACKED + DX7_DUMP_SIZE_VOICE_BULK + DX7_DUMP_SIZE_VOICE_SINGLE; if (!(Buffer = malloc(BufferLength))) { return FALSE; } VoiceData = Buffer; BulkDump = VoiceData + Voices * DX7_VOICE_SIZE_PACKED; SingleDump = BulkDump + DX7_DUMP_SIZE_VOICE_BULK; /* must be last for alignment */ SingleData = SingleDump + 6; /* Init the buffers */ for (i = 0; i < Voices; EraseVoice(i++)); return TRUE; } bool MidiInit(void) /* returns TRUE if successful */ { #ifdef USE_ALSA_MIDI const char *device = "hw"; /* could also be "default" */ /* if (snd_seq_open(&MidiHandle, device, SND_SEQ_OPEN_DUPLEX, SND_SEQ_NONBLOCK) < 0) { */ if (snd_seq_open(&MidiHandle, device, SND_SEQ_OPEN_OUTPUT, 0) < 0) { fprintf(stderr, "MidiInit: could not open sequencer: %s\n", snd_strerror(errno)); return FALSE; } snd_seq_set_client_name (MidiHandle, "TX/Edit"); MidiClient = snd_seq_client_id(MidiHandle); if ((MidiPort = snd_seq_create_simple_port(MidiHandle, "TX/Edit", SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ, SND_SEQ_PORT_TYPE_MIDI_GENERIC)) < 0) { fprintf(stderr, "MidiInit: error creating port: %s\n", snd_strerror(errno)); return FALSE; } return TRUE; #else /* not USE_ALSA_MIDI */ return TRUE; #endif /* USE_ALSA_MIDI */ } void MidiTerm(void) { #ifdef USE_ALSA_MIDI if (MidiHandle) { snd_seq_drain_output(MidiHandle); /* do we need this? could use snd_seq_drop_output(handle) */ } if (MidiPort >= 0) { snd_seq_delete_simple_port (MidiHandle, MidiPort); MidiPort = -1; } if (MidiHandle) { snd_seq_close(MidiHandle); MidiHandle = NULL; } #endif /* USE_ALSA_MIDI */ } void TXTerm(int retcode) { ConsoleTerm(); BuffTerm(); MidiTerm(); exit(retcode); } void TXInit(void) /* exit()s on failure */ { if (!MidiInit()) { fprintf(stderr, "MidiInit error!\n"); TXTerm(RETURN_FAIL); } if (!BuffInit()) { fprintf(stderr, "Can't allocate memory for Voice Buffer!\n"); TXTerm(RETURN_FAIL); } if (!ConsoleInit()) { fprintf(stderr, "ConsoleInit error!\n"); TXTerm(RETURN_FAIL); } } /* ==== Console Routines ==== */ void cprintf(const char *fmt, ...) { va_list ap; char tbuf[512]; va_start(ap, fmt); (void) vsnprintf(tbuf, 512, fmt, ap); va_end(ap); addstr(tbuf); } int cputch(int c) { return addch(c); } int cgetch(void) { int c = getch(); if(c == 27) { c = getch(); if (isalpha(c)) c = tolower(c); return 0x200 + c; } return c; } void textattr(enum textcolor c) { bkgdset(COLOR_PAIR(c)); attrset(COLOR_PAIR(c)|A_BOLD); } void paktc(void) { textattr(COLOR_MSG); cprintf(" Press Any Key to Continue... "); textattr(COLOR_DATA); cgetch(); cprintf("\r"); clrtoeol(); } void gotomsg(void) { move(LibRows + 4, 2); } /* ==== Midi Routines ==== */ void Unpack(int voice) { UBYTE *a2, *a3; UBYTE d1, d2; a2=SingleData; /* a2 = &unpacked data */ a3=voiceAddr(voice); /* a3 = &packed data */ for (d2=6; d2>0; d2--) { for (d1=11; d1>0; d1--) { *a2++=*a3++; } /* through rd */ *a2++=(*a3)&0x03; /* lc */ *a2++=(*a3++)>>2; /* rc */ *a2++=(*a3)&0x07; /* rs */ *(a2+6)=(*a3++)>>3; /* pd */ *a2++=(*a3)&0x03; /* ams */ *a2++=(*a3++)>>2; /* kvs */ *a2++=*a3++; /* ol */ *a2++=(*a3)&0x01; /* m */ *a2++=(*a3++)>>1; /* fc */ *a2=*a3++; /* ff */ a2+=2; } /* operator done */ for (d2=9; d2>0; d2--) { *a2++=*a3++; } /* through algorithm */ *a2++=(*a3)&0x07; /* feedback */ *a2++=(*a3++)>>3; /* oks */ for (d2=4; d2>0; d2--) { *a2++=*a3++; } /* through lamd */ *a2++=(*a3)&0x01; /* lfo ks */ *a2++=((*a3)>>1)&0x07; /* lfo wave */ *a2++=(*a3++)>>4; /* lfo pms */ for (d2=11; d2>0; d2--) { *a2++=*a3++; } /* through name */ } void _Pack(UBYTE *packed, UBYTE *unpacked) { UBYTE *a2, *a3; UBYTE d1, d2; a3=packed; /* a3 = &packed data */ a2=unpacked; /* a2 = &unpacked data */ for (d2=6; d2>0; d2--) { for (d1=11; d1>0; d1--) { *a3++=*a2++; } /* through rd */ *a3++=((*a2)&0x03)|(((*(a2+1))&0x03)<<2); a2+=2; /* rc+lc */ *a3++=((*a2)&0x07)|(((*(a2+7))&0x0f)<<3); a2++; /* pd+rs */ *a3++=((*a2)&0x03)|(((*(a2+1))&0x07)<<2); a2+=2; /* kvs+ams */ *a3++=*a2++; /* ol */ *a3++=((*a2)&0x01)|(((*(a2+1))&0x1f)<<1); a2+=2; /* fc+m */ *a3++=*a2; a2+=2; /* ff */ } /* operator done */ for (d2=9; d2>0; d2--) { *a3++=*a2++; } /* through algorithm */ *a3++=((*a2)&0x07)|(((*(a2+1))&0x01)<<3); a2+=2; /* oks+fb */ for (d2=4; d2>0; d2--) { *a3++=*a2++; } /* through lamd */ *a3++=((*a2)&0x01)|(((*(a2+1))&0x07)<<1)| (((*(a2+2))&0x07)<<4); a2+=3; /* lpms+lfw+lks */ for (d2=11; d2>0; d2--) { *a3++=*a2++; } /* through name */ #ifdef GAK d2=a3-voiceAddr(voice); cprintf("128 %d\r\n",d2); d2=a2-SingleData; cprintf("155 %d\r\n",d2); getch(); #endif } void Pack(int voice) { _Pack(voiceAddr(voice), SingleData); } void PutMidiMsg(UBYTE *buf, unsigned int size) { #ifdef USE_ALSA_MIDI snd_seq_event_t event; snd_seq_ev_clear(&event); snd_seq_ev_set_source(&event, MidiPort); snd_seq_ev_set_subs(&event); snd_seq_ev_set_direct(&event); // set event type, data, so on: event.type = SND_SEQ_EVENT_SYSEX; snd_seq_ev_set_variable(&event, size, buf); if (snd_seq_event_output(MidiHandle, &event) < 0) { gotomsg(); cprintf("PutMidiMsg: could not write output: %s\n", snd_strerror(errno)); return; } if (snd_seq_drain_output(MidiHandle) < 0) { gotomsg(); cprintf("PutMidiMsg: error draining output: %s\n", snd_strerror(errno)); } #else /* not USE_ALSA_MIDI: */ FILE *fh; if ((fh = fopen("/dev/midi00", "wb"))) { /* should fix this.... */ fwrite(buf, 1, size, fh); fclose(fh); } #endif /* USE_ALSA_MIDI */ } void ChecksumSingle(void) { int sum = 0; int i; for (i = 0; i < DX7_VOICE_SIZE_UNPACKED; sum -= SingleData[i++]); SingleData[DX7_VOICE_SIZE_UNPACKED] = sum & 0x7F; } void PutUnpacked(void) { UBYTE *sd; ChecksumSingle(); sd = SingleDump; sd[0] = 0xF0; sd[1] = 0x43; sd[2] = TXChannel; sd[3] = 0; sd[4] = 0x01; sd[5] = 0x1B; sd[DX7_DUMP_SIZE_VOICE_SINGLE - 1] = 0xF7; PutMidiMsg(sd, DX7_DUMP_SIZE_VOICE_SINGLE); } void PutPacked(int voice) { Unpack(voice); PutUnpacked(); } void PutBank(int voice) { UBYTE *bd = BulkDump, *p1 = voiceAddr(voice), *p2, *pe, chksum = 0; if(voice <= Voices - 32) { bd[0] = 0xF0; bd[1] = 0x43; bd[2] = TXChannel; bd[3] = 9; bd[4] = 0x10; bd[5] = 0x00; for(p2 = bd + 6, pe = p2 + 4096; p2 < pe; chksum -= *p2++ = *p1++); bd[DX7_DUMP_SIZE_VOICE_BULK - 2] = chksum & 0x7f; bd[DX7_DUMP_SIZE_VOICE_BULK - 1] = 0xF7; PutMidiMsg(bd, DX7_DUMP_SIZE_VOICE_BULK); } else { beep(); } } void PutParm(int parm) { UBYTE offset = veParm[parm].Offset; UBYTE bd[7]; bd[0] = 0xF0; bd[1] = 0x43; bd[2] = 0x10 | TXChannel; bd[3] = offset >> 7; bd[4] = offset & 0x7F; bd[5] = SingleData[offset]; bd[6] = 0xF7; PutMidiMsg(bd, 7); } /* ==== Load/Save Routines ==== */ bool FileRequest(char *namebuf, char *title) { echo(); curs_set(1); cprintf(" %s\n\n Enter filename:\n > ",title); refresh(); if (wgetnstr(stdscr, namebuf, 76) == ERR) { namebuf[0] = 0; } noecho(); curs_set(0); cprintf("\n"); return (strlen(namebuf)!=0); } void LoadError(const char *filename, const char *error) { cprintf(" Load - Error reading file '%s':\n", filename); cprintf(" '%s'!\n", error); paktc(); } int Load(char *filename) { FILE *fp; char errbuf[256]; long filelength; unsigned char *raw_patch_data = NULL; size_t filename_length; int count; int patchstart; int midshift; int datastart; int i; int op; /* this needs to 1) open and parse the file, 2a) if it's good, copy as * many patches as will fit into VoiceData beginning at Voice_Cursor, * 2b) if it's not good, print an appropriate error message and return. */ if ((fp = fopen(filename, "rb")) == NULL) { snprintf(errbuf, 256, "could not open file for reading: %s", strerror(errno)); LoadError(filename, errbuf); return 0; } if (fseek(fp, 0, SEEK_END) || (filelength = ftell(fp)) == -1 || fseek(fp, 0, SEEK_SET)) { snprintf(errbuf, 256, "couldn't get length of patch file: %s", strerror(errno)); fclose(fp); LoadError(filename, errbuf); return 0; } if (filelength == 0) { fclose(fp); LoadError(filename, "patch file has zero length"); return 0; } else if (filelength > 2097152) { fclose(fp); LoadError(filename, "patch file is too large"); return 0; } else if (filelength < DX7_VOICE_SIZE_PACKED) { fclose (fp); LoadError(filename, "patch file is too small"); return 0; } if (!(raw_patch_data = (unsigned char *)malloc(filelength))) { fclose(fp); LoadError(filename, "couldn't allocate memory for raw patch file"); return 0; } if (fread(raw_patch_data, 1, filelength, fp) != (size_t)filelength) { snprintf(errbuf, 256, "short read on patch file: %s", strerror(errno)); free(raw_patch_data); fclose(fp); LoadError(filename, errbuf); return 0; } fclose(fp); filename_length = strlen (filename); /* check if the file is a standard MIDI file */ if (raw_patch_data[0] == 0x4d && /* "M" */ raw_patch_data[1] == 0x54 && /* "T" */ raw_patch_data[2] == 0x68 && /* "h" */ raw_patch_data[3] == 0x64) /* "d" */ midshift = 2; else midshift = 0; /* scan SysEx or MIDI file for SysEx header(s) */ count = 0; datastart = 0; for (patchstart = 0; patchstart + midshift + 5 < filelength; patchstart++) { if (raw_patch_data[patchstart] == 0xf0 && raw_patch_data[patchstart + 1 + midshift] == 0x43 && raw_patch_data[patchstart + 2 + midshift] <= 0x0f && raw_patch_data[patchstart + 3 + midshift] == 0x09 && raw_patch_data[patchstart + 5 + midshift] == 0x00 && patchstart + 4103 + midshift < filelength && raw_patch_data[patchstart + 4103 + midshift] == 0xf7) { /* DX7 32 voice dump */ memmove(raw_patch_data + count * DX7_VOICE_SIZE_PACKED, raw_patch_data + patchstart + 6 + midshift, 4096); count += 32; patchstart += 4104; } else if (raw_patch_data[patchstart] == 0xf0 && raw_patch_data[patchstart + midshift + 1] == 0x43 && raw_patch_data[patchstart + midshift + 2] <= 0x0f && raw_patch_data[patchstart + midshift + 4] == 0x01 && raw_patch_data[patchstart + midshift + 5] == 0x1b && patchstart + midshift + 162 < filelength && raw_patch_data[patchstart + midshift + 162] == 0xf7) { /* DX7 single voice (edit buffer) dump */ _Pack ((UBYTE *)errbuf, /* pack to errbuf to avoid a collision */ raw_patch_data + patchstart + midshift + 6); memcpy(raw_patch_data + count * DX7_VOICE_SIZE_PACKED, errbuf, DX7_VOICE_SIZE_PACKED); count += 1; patchstart += DX7_DUMP_SIZE_VOICE_SINGLE; } } /* assume raw DX7/TX7 data if no SysEx header was found. */ /* assume the user knows what she is doing ;-) */ if (count == 0) count = filelength / DX7_VOICE_SIZE_PACKED; /* Dr.T and Steinberg TX7 file needs special treatment */ if ((!strcmp(filename + filename_length - 4, ".TX7") || !strcmp(filename + filename_length -4, ".SND") || !strcmp(filename + filename_length -4, ".tx7") || !strcmp(filename + filename_length - 4, ".snd")) && filelength == 8192) { count = 32; filelength = 4096; } /* Transform XSyn file also needs special treatment */ if ((!strcmp(filename + filename_length - 4, ".BNK") || !strcmp(filename + filename_length - 4, ".bnk")) && filelength == 8192) { for (i=0; i<32; i++) { memmove(raw_patch_data + 128*i, raw_patch_data + 256*i, 128); } count = 32; filelength = 4096; } /* Steinberg Synthworks DX7 SND */ if ((!strcmp (filename + filename_length - 4, ".SND") || !strcmp (filename + filename_length - 4, ".snd")) && filelength == 5216) { count = 32; filelength = 4096; } /* Voyetra SIDEMAN DX/TX * Voyetra Patchmaster DX7/TX7 */ if ((filelength == 9816 || filelength == 5663) && raw_patch_data[0] == 0xdf && raw_patch_data[1] == 0x05 && raw_patch_data[2] == 0x01 && raw_patch_data[3] == 0x00) { count = 32; datastart = 0x60f; } /* Yamaha DX200 editor .DX2 file */ if ((!strcmp (filename + filename_length - 4, ".DX2") || !strcmp (filename + filename_length - 4, ".dx2")) && filelength == 326454) { memmove (raw_patch_data + 16384, raw_patch_data + 34, 128 * 381); for (count = 0; count < 128; count++) { for (op = 0; op < 6; op++) { for (i = 0; i < 8; i++) { raw_patch_data[17 * (5 - op) + i + 128 * count] = raw_patch_data[16384 + 35 * op + 76 + i + 381 * count]; } raw_patch_data[17 * (5 - op) + 8 + 128 * count] = raw_patch_data[16384 + 35 * op + 84 + 381 * count] - 21; raw_patch_data[17 * (5 - op) + 9 + 128 * count] = raw_patch_data[16384 + 35 * op + 87 + 381 * count]; raw_patch_data[17 * (5 - op) + 10 + 128 * count] = raw_patch_data[16384 + 35 * op + 88 + 381 * count]; raw_patch_data[17 * (5 - op) + 11 + 128 * count] = raw_patch_data[16384 + 35 * op + 85 + 381 * count] + raw_patch_data[16384 + 35 * op + 86 + 381 * count] * 4; raw_patch_data[17 * (5 - op) + 12 + 128 * count] = raw_patch_data[16384 + 35 * op + 89 + 381 * count] + raw_patch_data[16384 + 35 * op + 75 + 381 * count] * 8; if (raw_patch_data[16384 + 35 * op + 71 + 381 * count] > 3) raw_patch_data[16384 + 35 * op + 71 + 381 * count] = 3; raw_patch_data[17 * (5 - op) + 13 + 128 * count] = raw_patch_data[16384 + 35 * op + 71 + 381 * count] / 2 + raw_patch_data[16384 + 35 * op + 91 + 381 * count] * 4; raw_patch_data[17 * (5 - op) + 14 + 128 * count] = raw_patch_data[16384 + 35 * op + 90 + 381 * count]; raw_patch_data[17 * (5 - op) + 15 + 128 * count] = raw_patch_data[16384 + 35 * op + 72 + 381 * count] + raw_patch_data[16384 + 35 * op + 73 + 381 * count] * 2; raw_patch_data[17 * (5 - op) + 16 + 128 * count] = raw_patch_data[16384 + 35 * op + 74 + 381 * count]; } for (i = 0; i < 4; i++) { raw_patch_data[102 + i + 128 * count] = raw_patch_data[16384 + 26 + i + 381 * count]; } for (i = 0; i < 4; i++) { raw_patch_data[106 + i + 128 * count] = raw_patch_data[16384 + 32 + i + 381 * count]; } raw_patch_data[110 + 128 * count] = raw_patch_data[16384 + 17 + 381 * count]; raw_patch_data[111 + 128 * count] = raw_patch_data[16384 + 18 + 381 * count] + raw_patch_data[16384 + 38 + 381 * count] * 8; for (i = 0; i < 4; i++) { raw_patch_data[112 + i + 128 * count] = raw_patch_data[16384 + 20 + i + 381 * count]; } raw_patch_data[116 + 128 * count] = raw_patch_data[16384 + 24 + 381 * count] + raw_patch_data[16384 + 19 + 381 * count] * 2 + raw_patch_data[16384 + 25 + 381 * count] * 16; raw_patch_data[117 + 128 * count] = raw_patch_data[16384 + 37 + 381 * count] - 36; for (i = 0; i < 10; i++) { raw_patch_data[118 + i + 128 * count] = raw_patch_data[16384 + i + 381 * count]; } } count = 128; filelength = 16384; datastart = 0; } /* finally, copy patchdata to the right location */ if (count > Voices - Voice_Cursor) { /* if ( voices-in-file > voices-to-end-of-buffer ) */ cprintf(" Load - Patch file '%s' too big for remaining space:\n", filename); cprintf(" %d patches in file, only %d loaded!\n", count, Voices - Voice_Cursor); paktc(); count = Voices - Voice_Cursor; } memcpy(voiceAddr(Voice_Cursor), raw_patch_data + datastart, DX7_VOICE_SIZE_PACKED * count); free (raw_patch_data); cprintf(" File '%s' loaded.\n", filename); return count; } void Save(int vstart, int vend) /* range is inclusive, filename in FNameBuff */ { FILE *fh; long flength; if ((fh = fopen(FNameBuff, "wb")) != 0) { flength = (vend - vstart + 1) * DX7_VOICE_SIZE_PACKED; if (flength != fwrite(voiceAddr(vstart), 1, flength, fh)) { cprintf("Save - Error writing file '%s':\n", FNameBuff); cprintf(" '%s'!\n", strerror(errno)); paktc(); } fclose(fh); } else { cprintf("Save - Error opening file '%s':\n", FNameBuff); cprintf(" '%s'!\n", strerror(errno)); paktc(); } } /* ==== VoiceEdit Stuff ==== */ void ve_ShowAlg(void) { int alg = SingleData[134], x, y; char *s = veAlg[alg]; bool t; textattr(COLOR_LABEL); for (y = 12; y <= 20; y++) { x = 56; move(y, x); for (; x <= 72; x++) { switch (*s) { case '1': t = (!!(ve_OpSelect&32)); goto printop; case '2': t = (!!(ve_OpSelect&16)); goto printop; case '3': t = (!!(ve_OpSelect& 8)); goto printop; case '4': t = (!!(ve_OpSelect& 4)); goto printop; case '5': t = (!!(ve_OpSelect& 2)); goto printop; case '6': t = (!!(ve_OpSelect& 1)); printop: textattr(t ? COLOR_OPON : COLOR_OPOFF); cputch(*s++); textattr(COLOR_LABEL); break; case 0: cputch(' '); break; case '\n': cputch(' '); if (x == 72) s++; break; case '^': cputch(ACS_BTEE); s++; break; case '-': cputch(ACS_HLINE); s++; break; case 'L': cputch(ACS_LLCORNER); s++; break; case '/': cputch(ACS_LRCORNER); s++; break; case '}': cputch(ACS_LTEE); s++; break; case '+': cputch(ACS_PLUS); s++; break; #if 0 case '?': /* -FIX- */ cputch(ACS_RTEE); s++; break; case '?': /* -FIX- */ cputch(ACS_TTEE); s++; break; #endif case '\'': cputch(ACS_ULCORNER); s++; break; case '`': cputch(ACS_URCORNER); s++; break; case '|': cputch(ACS_VLINE); s++; break; default: cputch(*s++); break; } } } textattr(COLOR_DATA); } void ve_FExtend(UBYTE fc, UBYTE ff, UBYTE mode, UBYTE y) { unsigned long f; char ca[10]; textattr(COLOR_LABEL); move(y, 47); if (mode) { /* fixed */ f = veFFF[ff]; switch (fc & 3) { case 1: f *= 10; break; case 2: f *= 100; break; case 3: f *= 1000; break; } } else { f = fc * 10; if (!f) f = 5; f = (100 + ff) * f; } f = sprintf(ca, "%ld", f); switch (f) { case 3: cprintf("0.%.3s", ca); break; case 4: cprintf("%.1s.%.3s", ca, ca + 1); break; case 5: cprintf("%.2s.%.2s", ca, ca + 2); break; case 6: cprintf("%.3s.%.1s", ca, ca + 3); break; case 7: cprintf("%.4s.", ca); break; } textattr(COLOR_DATA); } void ve_printParm(int parm) { unsigned char val = SingleData[veParm[parm].Offset], c; char *t; move(veParm[parm].Y, veParm[parm].X); if (parm == ve_Cursor) textattr(COLOR_CURSOR); switch (veParm[parm].Type) { case vptName: { UBYTE ca[11]; memcpy(ca, SingleData + 145, 10); for (c = 0; c < 10; c++) { if (ca[c] < 32) ca[c]=183; /* centered dot */ else if (ca[c] >= 128) ca[c]=174; /* (R) symbol = out-of-range */ else { switch (ca[c]) { case 92: ca[c]=165; break; /* yen */ case 126: ca[c]=187; break; /* >> */ case 127: ca[c]=171; break; /* << */ } } } ca[10] = 0; cprintf("%s", ca); } break; case vpt0_99: if (val > 99) cprintf("??"); else cprintf("%2.2d", val); break; case vpt0_7: if (val > 7) cputch('?'); else cputch(val+'0'); break; case vptMode: switch (val) { case 0: c = 'R'; break; case 1: c = 'F'; break; default: c = '?'; break; } cputch(c); ve_FExtend(SingleData[veParm[parm+1].Offset], SingleData[veParm[parm+2].Offset], val, veParm[parm].Y); break; case vptFC: if (val > 31) cprintf("??"); else cprintf("%2d", val); ve_FExtend(val, SingleData[veParm[parm+1].Offset], SingleData[veParm[parm-1].Offset], veParm[parm].Y); break; case vptFF: if (val > 99) cprintf("??"); else cprintf("%2d", val); ve_FExtend(SingleData[veParm[parm-1].Offset], val, SingleData[veParm[parm-2].Offset], veParm[parm].Y); break; case vptDetune: /* 0-14, as -7-+7 */ if (val > 14) cprintf("??"); else cprintf("%+2d", val-7); break; case vpt0_3: if (val > 3) cputch('?'); else cputch(val+'0'); break; case vptAlg: /* 0-31, as 1-32 */ if (val > 31) { cprintf("??"); break; } cprintf("%2d", val+1); ve_ShowAlg(); return; case vptCurve: switch (val) { case 0: t = "-Lin"; break; case 1: t = "-Exp"; break; case 2: t = "+Exp"; break; case 3: t = "+Lin"; break; default: t = "????"; } cprintf("%s", t); break; case vptBkPt: if (val > 99) { cprintf("????"); break; } val += 21; goto printnote; case vptTrans: if (val > 48) { cprintf("????"); break; } val += 36; printnote: cprintf("%s", NoteText(val)); break; case vptOnOff: switch (val) { case 0: t = "Off"; break; case 1: t = " On"; break; default: t = "???"; } cprintf("%s", t); break; case vptWave: switch (val) { case 0: t = "TRI"; break; case 1: t = "SW-"; break; case 2: t = "SW+"; break; case 3: t = "SQU"; break; case 4: t = "SIN"; break; case 5: t = "S/H"; break; default: t = "???"; break; } cprintf("%s", t); break; } if (parm == ve_Cursor) textattr(COLOR_DATA); } void ve_SetScreen(void) { textattr(COLOR_DATA); cprintf(" TX/Edit Voice Edit"); textattr(COLOR_LABEL); cprintf(" Name\n" " A\n" " O R V M\n" " P R1 L1 R2 L2 R3 L3 R4 L4 S M FC FF D Freq. OL S S\n"); cprintf(" 1\n" " 2\n" " 3\n" " 4\n" " 5\n" " 6\n" " P\n"); cprintf(" Alg.\n" " Left BkPt Right Speed Fdbk\n"); cprintf(" 1 Delay C4=\n"); cprintf(" 2 PMD OKS\n"); cprintf(" 3 AMD\n"); cprintf(" 4 Sync\n"); cprintf(" 5 Wave\n"); cprintf(" 6 PMS\n"); textattr(COLOR_DATA); } void ve_DoScreen(void) { int i; for (i = 0; i < VOICEPARMS; ve_printParm(i++)); } void ve_Name(int c) { UBYTE i; for(i = 145; i < 154; i++) SingleData[i] = SingleData[i + 1]; SingleData[154] = c; PutUnpacked(); ve_printParm(0); ve_OpSelect = 63; ve_ShowAlg(); } void ve_Inc(int parm) { unsigned char val = SingleData[veParm[parm].Offset], max; max = vtypemax[veParm[parm].Type]; if (!max) return; if (++val > max) val = 0; SingleData[veParm[parm].Offset] = val; PutParm(parm); ve_printParm(parm); } void ve_Dec(int parm) { unsigned char val = SingleData[veParm[parm].Offset], max; max = vtypemax[veParm[parm].Type]; if (!max) return; if (val) val--; else val = max; SingleData[veParm[parm].Offset] = val; PutParm(parm); ve_printParm(parm); } void ve_Zero(void) { UBYTE offset = veParm[ve_Cursor].Offset; if(ve_Cursor == 0) { /* do name */ for(offset = 154; offset > 145; offset--) SingleData[offset] = SingleData[offset - 1]; SingleData[145] = ' '; PutUnpacked(); ve_OpSelect = 63; ve_ShowAlg(); } else { SingleData[offset] = InitVoiceUnpacked[offset]; PutParm(ve_Cursor); } ve_printParm(ve_Cursor); } void ve_CurUp(void) { int oldcursor = ve_Cursor; #ifndef USE_CALCED_CURSOR_MOVES ve_Cursor = veParm[ve_Cursor].Up; ve_printParm(oldcursor); ve_printParm(ve_Cursor); #else /* USE_CALCED_CURSOR_MOVES */ int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'up' direction */ for (i = 0; i <= VOICEPARMMAX; i++) { dx = abs(veParm[ve_Cursor].X - veParm[i].X); dy = (veParm[ve_Cursor].Y - 1) - veParm[i].Y; if (dy < 0) dy += VOICEPARMS_Y_SPAN + 2; /* wrap */ dy = dy * 5 / 2; /* prefer something <2.5 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { ve_Cursor = best; ve_printParm(oldcursor); ve_printParm(ve_Cursor); } #endif /* USE_CALCED_CURSOR_MOVES */ } void ve_CurDown(void) { int oldcursor = ve_Cursor; #ifndef USE_CALCED_CURSOR_MOVES ve_Cursor = veParm[ve_Cursor].Down; ve_printParm(oldcursor); ve_printParm(ve_Cursor); #else /* USE_CALCED_CURSOR_MOVES */ int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'down' direction */ for (i = 0; i <= VOICEPARMMAX; i++) { dx = abs(veParm[i].X - veParm[ve_Cursor].X); dy = veParm[i].Y - (veParm[ve_Cursor].Y + 1); if (dy < 0) dy += VOICEPARMS_Y_SPAN + 2; /* wrap */ dy = dy * 5 / 2; /* prefer something <2.5 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { ve_Cursor = best; ve_printParm(oldcursor); ve_printParm(ve_Cursor); } #endif /* USE_CALCED_CURSOR_MOVES */ } void ve_CurRight(void) { int oldcursor = ve_Cursor; #ifndef USE_CALCED_CURSOR_MOVES if(++ve_Cursor > VOICEPARMMAX) ve_Cursor = 0; ve_printParm(oldcursor); ve_printParm(ve_Cursor); #else /* USE_CALCED_CURSOR_MOVES */ int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'right' direction */ for (i = 0; i <= VOICEPARMMAX; i++) { dx = veParm[i].X - (veParm[ve_Cursor].X + 2); if (dx < 0) dx += VOICEPARMS_X_SPAN + 4; /* wrap */ dy = abs(veParm[i].Y - veParm[ve_Cursor].Y); dy = dy * 12; /* prefer something <8 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { ve_Cursor = best; ve_printParm(oldcursor); ve_printParm(ve_Cursor); } #endif /* USE_CALCED_CURSOR_MOVES */ } void ve_CurLeft(void) { int oldcursor = ve_Cursor; #ifndef USE_CALCED_CURSOR_MOVES if(ve_Cursor) ve_Cursor--; else ve_Cursor = VOICEPARMMAX; ve_printParm(oldcursor); ve_printParm(ve_Cursor); #else /* USE_CALCED_CURSOR_MOVES */ int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'left' direction */ for (i = 0; i <= VOICEPARMMAX; i++) { dx = (veParm[ve_Cursor].X - 2) - veParm[i].X; if (dx < 0) dx += VOICEPARMS_X_SPAN + 4; /* wrap */ dy = abs(veParm[i].Y - veParm[ve_Cursor].Y); dy = dy * 12; /* prefer something <8 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { ve_Cursor = best; ve_printParm(oldcursor); ve_printParm(ve_Cursor); } #endif /* USE_CALCED_CURSOR_MOVES */ } void ve_Erase(void) { memcpy(SingleData, InitVoiceUnpacked, DX7_VOICE_SIZE_UNPACKED); // erase(); // ve_SetScreen(); ve_DoScreen(); refresh(); PutUnpacked(); } void ve_PgUp(void) { if (Voice_Cursor) { Pack(Voice_Cursor); Unpack(--Voice_Cursor); ve_DoScreen(); refresh(); PutUnpacked(); } } void ve_PgDn(void) { if (Voice_Cursor < Voices - 1) { Pack(Voice_Cursor); Unpack(++Voice_Cursor); ve_DoScreen(); refresh(); PutUnpacked(); } } void _ve_SetOps(void) { UBYTE bd[7]; bd[0] = 0xF0; bd[1] = 0x43; bd[2] = 0x10 | TXChannel; bd[3] = 1; bd[4] = 27; bd[5] = ve_OpSelect; bd[6] = 0xF7; PutMidiMsg(bd, 7); } void ve_SetOps(int o) { UBYTE i; ve_OpSelect ^= o; for (i = 1; i < 7; i++) { if (ve_OpSelect & (1 << (6 - i))) textattr(COLOR_OPON); else textattr(COLOR_OPOFF); move(3 + i, 2); cprintf("%c", i + '0'); move(12 + i, 2); cprintf("%c", i + '0'); } /* textattr(COLOR_DATA); not needed with ve_ShowAlg() */ ve_ShowAlg(); _ve_SetOps(); } void ve_Number(int c) { unsigned char val = SingleData[veParm[ve_Cursor].Offset], typ = veParm[ve_Cursor].Type, max = vtypemax[typ]; switch(typ) { case vpt0_99: case vptFF: val=(val * 10 + c - '0') % 100; break; case vptFC: val=(val * 10 + c - '0') % 100; for(; val > 31; val -= 10); break; case vpt0_7: case vpt0_3: val=c - '0'; if(val > max) val = max; break; case vptAlg: val=((val + 1) * 10 + c - '0') % 100; if (!val) val = 1; for(; val > 32; val -= 10); val--; break; default: return; } SingleData[veParm[ve_Cursor].Offset] = val; PutParm(ve_Cursor); ve_printParm(ve_Cursor); } void ve_Help(void) { erase(); cprintf(" TX/Edit v" VERSIONSTRING " Voice Edit Help\n\n"); cprintf(" Up / Down /\n" " Right / Left - Move cursor\n\n"); cprintf(" + - Increment field\n" " - - Decrement field\n" " 0 through 9 - Enter data into field\n" " Backspace - Zero/reset field\n\n"); cprintf(" A through Z - Rotate letters into name (name field only)\n\n" " F1 through F6 - Enable/disable operators 1 through 6\n\n"); cprintf(" Meta-P - Put edit buffer as single voice\n" " Meta-! - Erase edit buffer to init voice\n" " PgUp / PgDn - Move to previous / next voice\n" " Esc / Meta-L - Return to librarian mode\n\n" " h / Meta-H - Display this help screen\n\n"); paktc(); erase(); ve_SetScreen(); ve_DoScreen(); } void ve_CharIn(int c) { if(!ve_Cursor && c>=32 && c<=127) { ve_Name(c); } else { if(c >= 'A' && c <= 'Z') c = tolower(c); switch(c) { case '+': case '=': ve_Inc(ve_Cursor); break; case '-': ve_Dec(ve_Cursor); break; #if 0 case kc_Del: #endif case KEY_BACKSPACE: ve_Zero(); break; case KEY_UP: ve_CurUp(); break; case KEY_DOWN: ve_CurDown(); break; case KEY_RIGHT: ve_CurRight(); break; case KEY_LEFT: ve_CurLeft(); break; case KEY_METAL: case KEY_ESC: newmode=MODELIB; break; case KEY_F(1): ve_SetOps(32); break; case KEY_F(2): ve_SetOps(16); break; case KEY_F(3): ve_SetOps( 8); break; case KEY_F(4): ve_SetOps( 4); break; case KEY_F(5): ve_SetOps( 2); break; case KEY_F(6): ve_SetOps( 1); break; case KEY_PPAGE: ve_PgUp(); break; case KEY_NPAGE: ve_PgDn(); break; case KEY_METAP: PutUnpacked(); break; case KEY_METAEX: ve_Erase(); break; case KEY_METAH: case 'h': ve_Help(); break; default: if(c>='0' && c<='9') { ve_Number(c); } else { gotomsg(); cprintf(" Type for help..."); beep(); #ifdef DEBUG cprintf("keycode=0x%04x", c); #endif } break; } } } /* ==== Librarian Stuff ==== */ void LibPrintVName(int voice) /* print name at correct cursor position */ { if (Voice_TOS <= voice && voice < Voice_TOS + LibNames) { move((voice-Voice_TOS)%LibRows + 2, (voice-Voice_TOS)/LibRows * 15 + 1); if (voice= Voice_TOS) { LibPrintVName(vc); LibPrintVName(++vc); } else { Voice_TOS = max(Voice_TOS - LibRows, 0); LibDoScreen(); } } } void LibCurDown(void) { if (Voice_Cursor < Voices - 1) { int vc; vc = ++Voice_Cursor; CheckBlock(); if (vc < Voice_TOS + LibNames) { LibPrintVName(vc); LibPrintVName(--vc); } else { Voice_TOS += LibRows; LibDoScreen(); } } } void LibCurRight(void) { if (Voice_Cursor < Voices - 1) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = min(oldvc + LibRows, Voices - 1); CheckBlock(); if (newvc < Voice_TOS + LibNames) { if (blocking) { for (; oldvc <= newvc; LibPrintVName(oldvc++)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS += LibRows; LibDoScreen(); } } } void LibCurLeft(void) { if (Voice_Cursor) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = max(oldvc - LibRows, 0); CheckBlock(); if (newvc >= Voice_TOS) { if (blocking) { for (; oldvc >= newvc; LibPrintVName(oldvc--)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS = max(Voice_TOS - LibRows, 0); LibDoScreen(); } } } void LibCtrlPgUp(void) { if (Voice_Cursor) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = max(Voice_Cursor - 1, 0) & 0xffe0; CheckBlock(); if (newvc >= Voice_TOS) { if (blocking) { for (; oldvc >= newvc; LibPrintVName(oldvc--)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS=newvc; LibDoScreen(); } } } void LibCtrlPgDn(void) { if (Voice_Cursor < Voices-1) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = min(((Voice_Cursor + 33) & 0xffe0) - 1, Voices - 1); CheckBlock(); if (newvc < Voice_TOS + LibNames) { if (blocking) { for (; oldvc <= newvc; LibPrintVName(oldvc++)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS=max(newvc - LibNames + 1, 0); LibDoScreen(); } } } void LibCurEnd(void) { Voice_Cursor = Voices - 1; Voice_TOS = max(Voices - LibNames, 0); CheckBlock(); LibDoScreen(); } void LibCurHome(void) { Voice_Cursor = 0; Voice_TOS = 0; CheckBlock(); LibDoScreen(); } void LibPgUp(void) { if (Voice_Cursor) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = max(Voice_Cursor - 1, 0) & 0xfff0; CheckBlock(); if (newvc >= Voice_TOS) { if (blocking) { for (; oldvc >= newvc; LibPrintVName(oldvc--)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS = newvc; LibDoScreen(); } } } void LibPgDn(void) { if (Voice_Cursor < Voices-1) { int oldvc, newvc; oldvc = Voice_Cursor; Voice_Cursor = newvc = min(((Voice_Cursor + 17) & 0xfff0) - 1, Voices - 1); CheckBlock(); if (newvc < Voice_TOS + LibNames) { if (blocking) { for (; oldvc <= newvc; LibPrintVName(oldvc++)); } else { LibPrintVName(oldvc); LibPrintVName(newvc); } } else { Voice_TOS = max(newvc - LibNames + 1, 0); LibDoScreen(); } } } void LibCtrlRight(void) { Voice_Cursor = min(Voice_Cursor + LibNames, Voices - 1); Voice_TOS = min(Voice_TOS + LibNames, max(Voices - LibNames, 0)); CheckBlock(); LibDoScreen(); } void LibCtrlLeft(void) { if (Voice_Cursor) { Voice_Cursor = max(Voice_Cursor - LibNames, 0); Voice_TOS = max(Voice_TOS - LibNames, 0); CheckBlock(); LibDoScreen(); } } void LBA_Copy(void) { #ifdef DEBUG if (!blocked) { cprintf("LBA_Copy - not Blocked?!"); return; } #endif memmove(voiceAddr(Voice_Cursor), voiceAddr(Voice_BStart), min(Voice_BEnd - Voice_BStart + 1, Voices - Voice_Cursor) * DX7_VOICE_SIZE_PACKED); CancelBlock(); } void LibCopy(void) { SetBlock(); EndBlock(); LibBlockAction = LBA_Copy; gotomsg(); cprintf("Move Cursor to Copy destination and press return..."); } void LibDelete(void) { int i; SetBlock(); if (Voices > Voice_BEnd + 1) memmove(voiceAddr(Voice_BStart), voiceAddr(Voice_BEnd + 1), (Voices - Voice_BEnd - 1) * DX7_VOICE_SIZE_PACKED); for (i = Voices - Voice_BEnd + Voice_BStart - 1; i < Voices; EraseVoice(i++)); CancelBlock(); } void LibErase(void) { int i; SetBlock(); for (i = Voice_BStart; i <= Voice_BEnd; EraseVoice(i++)); CancelBlock(); } void LibLoad(void) { erase(); LibSetScreen(); cprintf("\n\n"); if (FileRequest(FNameBuff, "TX/Edit Load Voices")) { Load(FNameBuff); } erase(); LibSetScreen(); LibDoScreen(); } void LBA_Move(void) /* swap patches, overlapping ranges CF! */ { int i; UBYTE *v1, *v2; #ifdef DEBUG if (!blocked) { cprintf("LBA_Move - not Blocked?!"); return; } #endif for (i = Voice_BStart; (i <= Voice_BEnd) && (Voice_Cursor + i - Voice_BStart < Voices); i++) { v1=voiceAddr(i); v2=voiceAddr(Voice_Cursor + i - Voice_BStart); memmove(SingleData, v1, DX7_VOICE_SIZE_PACKED); memmove(v1, v2, DX7_VOICE_SIZE_PACKED); memmove(v2, SingleData, DX7_VOICE_SIZE_PACKED); } CancelBlock(); } void LibMove(void) { SetBlock(); EndBlock(); LibBlockAction = LBA_Move; gotomsg(); cprintf("Move Cursor to Move destination and press return..."); } void LibSave(void) { if (blocking) { erase(); LibSetScreen(); cprintf("\n\n"); Save(Voice_BStart, Voice_BEnd); erase(); LibSetScreen(); CancelBlock(); } else { gotomsg(); textattr(COLOR_MSG); cprintf(" Save - Must mark block first! - "); paktc(); } } void LibSaveAs(void) { if (blocking) { erase(); LibSetScreen(); cprintf("\n\n"); if (FileRequest(FNameBuff, "TX/Edit Save Voices")) { Save(Voice_BStart, Voice_BEnd); } erase(); LibSetScreen(); CancelBlock(); } else { gotomsg(); textattr(COLOR_MSG); cprintf("Save As - Must mark block first! - "); paktc(); } } UBYTE lstol(UBYTE c) { if (c >= 'A' && c <= 'Z') return c + 32; else return c; } int _LibSortCmp(const UBYTE *v1, const UBYTE *v2) { int i; for (i = 118; i < 128; i++) { if (lstol(v1[i]) != lstol(v2[i])) return lstol(v1[i]) - lstol(v2[i]); } return 0; } void LibSort(void) { SetBlock(); if (Voice_BStart != Voice_BEnd) { qsort(voiceAddr(Voice_BStart), Voice_BEnd - Voice_BStart + 1, DX7_VOICE_SIZE_PACKED, (int (*)())_LibSortCmp); } CancelBlock(); } int _LibSortCmpPatch(const UBYTE *v1, const UBYTE *v2) { int i; #define SORT_BY_ALGORITHM_FIRST #ifdef SORT_BY_ALGORITHM_FIRST if (v1[110] != v2[110]) return v1[110] - v2[110]; #endif for (i = 0; i < 118; i++) { if (v1[i] != v2[i]) return v1[i] - v2[i]; } return 0; } void LibSortPatch(void) { SetBlock(); if (Voice_BStart != Voice_BEnd) { qsort(voiceAddr(Voice_BStart), Voice_BEnd - Voice_BStart + 1, DX7_VOICE_SIZE_PACKED, (int (*)())_LibSortCmpPatch); } /* #define SORT_PATCH_ERASE_DUPLICATES */ #ifdef SORT_PATCH_ERASE_DUPLICATES { int i; for (i = Voice_BEnd - 1; i >= Voice_BStart; i--) { if (memcmp(voiceAddr(i), voiceAddr(i + 1), 118) == 0) EraseVoice(i + 1); } } #endif CancelBlock(); } void LibHelp(void) { erase(); cprintf(" TX/Edit v" VERSIONSTRING " Help\n\n"); cprintf(" a / Meta-A - Save block As\n" " b / Meta-B - Start block\n" " c / Meta-C - Copy\n" " Meta-D - Delete\n" " e / Meta-E - Enter Edit mode\n"); #if 0 " g / Meta-G - Get (voice or 32 voices?)\n" #endif cprintf(" h / Meta-H - Display this help screen\n\n" " m / Meta-M - Move\n" " o / Meta-O - Load\n" " p / Meta-P - Put single voice (use space to step-send)\n"); #if 0 " r / Meta-R - Receive (voice or 32 voices?)\n" #endif cprintf(" Meta-S - Save block\n" " Meta-T - Put bank (32 voices starting at cursor)\n" " Meta-= - Sort block by patch names\n" " Meta-+ - Sort block by patch data\n" " Meta-! - Erase voice\n"); #if 0 " Meta-# - Change MIDI channel\n" #endif cprintf(" Escape - Cancel block\n" " Enter - Perform pending block action\n" " Up / Down /\n" " Right / Left /\n" " PgUp / PgDn - Move cursor\n"); #if 0 /* Ctrl-Right, Ctrl-Left, Ctrl-PgUp, Ctrl-PgDn, End, Ctrl-End, Home, Ctrl-Home could have functions */ #endif paktc(); erase(); LibSetScreen(); LibDoScreen(); } void vl_CharIn(int c) { if(c >= 'A' && c <= 'Z') c = tolower(c); switch (c) { case KEY_METAA: case 'a': LibSaveAs(); break; case KEY_METAB: case 'b': StartBlock(); break; case KEY_METAC: case 'c': LibCopy(); break; case KEY_METAD: LibDelete(); break; case KEY_METAE: case 'e': newmode=MODEEDIT; break; #if 0 case KEY_METAG: case 'g': cprintf("Get!!!!"); break; #endif case KEY_METAH: case 'h': LibHelp(); break; case KEY_METAM: case 'm': LibMove(); break; case KEY_METAO: case 'o': LibLoad(); break; /* Space for Step-Send */ case ' ': LibCurDown(); /* and fall through to: */ case KEY_METAP: case 'p': PutPacked(Voice_Cursor); break; #if 0 case KEY_METAR: case 'r': cprintf("Receive!!!!"); break; #endif case KEY_METAS: LibSave(); break; case KEY_METAT: PutBank(Voice_Cursor); break; case KEY_METAEQ: LibSort(); break; case KEY_METAPL: LibSortPatch(); break; case KEY_METAEX: LibErase(); break; #if 0 case KEY_METANU: case '#': cprintf("Channel!!!!"); break; #endif case KEY_ESC: EscBlock(); break; case KEY_ENTER: LibBlockAction(); break; case KEY_UP: LibCurUp(); break; case KEY_DOWN: LibCurDown(); break; case KEY_RIGHT: LibCurRight(); break; case KEY_LEFT: LibCurLeft(); break; #if 0 case kc_CtrlRight: LibCtrlRight(); break; case kc_CtrlLeft: LibCtrlLeft(); break; #endif case KEY_PPAGE: LibPgUp(); break; case KEY_NPAGE: LibPgDn(); break; #if 0 case kc_CtrlPgUp: LibCtrlPgUp(); break; case kc_CtrlPgDn: LibCtrlPgDn(); break; case kc_End: case kc_CtrlEnd: LibCurEnd(); break; case kc_Home: case kc_CtrlHome: LibCurHome(); break; #endif default: gotomsg(); cprintf(" Type for help..."); beep(); #ifdef DEBUG cprintf("keycode=0x%04x, 0%o", c, c); #endif } } /* ==== Control ==== */ void TXsetmode(void) { /* cleanup from old mode */ switch(txmode) { case MODELIB: blocking = FALSE; blocked = FALSE; LibBlockAction = noop; break; case MODEEDIT: if(ve_OpSelect != 63) { ve_OpSelect = 63; _ve_SetOps(); } Pack(Voice_Cursor); break; } txmode=newmode; /* set up for new mode */ switch(txmode) { case MODELIB: if (Voice_Cursor < Voice_TOS || Voice_Cursor >= Voice_TOS + LibNames) { Voice_TOS = min(Voice_Cursor & 0xfff0, max(Voices - LibNames, 0)); } erase(); LibSetScreen(); LibDoScreen(); refresh(); break; case MODEEDIT: erase(); Unpack(Voice_Cursor); ve_SetScreen(); ve_DoScreen(); refresh(); PutUnpacked(); break; } } int main(int argc, char ** argv) { int c; static struct option long_options[] = { {"help", 0, 0, 'h'}, {"voices", 1, 0, 'v'}, {0, 0, 0, 0} }; while ((c = getopt_long(argc, argv, "hv:", long_options, NULL)) != EOF) { switch (c) { case 'v': Voices = atoi(optarg); if (Voices < 32) Voices = 32; break; case 'h': default: fprintf(stderr, "TX/Edit v" VERSIONSTRING " (c)2004 Sean Bolton\n" "options:\n" "-vnnn --voices=nnn allocate nnn voice slots\n" "-h --help print this message and exit\n"); exit(c == 'h' ? 0 : 1); } } TXInit(); if (optind < argc) { /* load command line arguments */ scrollok(stdscr, TRUE); erase(); LibSetScreen(); cprintf("\n\n"); for (c = optind; c < argc; c++) { Voice_Cursor += Load(argv[c]); } paktc(); Voice_Cursor = 0; scrollok(stdscr, FALSE); } newmode=MODELIB; TXsetmode(); do { refresh(); /* -FIX- */ c = cgetch(); switch (c) { case KEY_METAQ: newmode=MODEQUIT; break; default: switch(txmode) { case MODELIB: vl_CharIn(c); break; case MODEEDIT: ve_CharIn(c); break; } break; } if (txmode != newmode) TXsetmode(); } while (txmode != MODEQUIT); TXTerm(RETURN_OK); /* never returns */ return 0; } hexter-1.0.2/extra/tx7_roms.dx70000644000076400007640000002000011757612664013302 00000000000000^*c\p:H*c\ TL H(@ +cXWFMA +cX3_3MB=@7cR`9PWF.cO>ccccc1222#ACC. PIANOc.+c]W6c9Gc.+c]W6c)M c..c]W6IT .!+c\TRcc.,c]W6iT .!.c\TJc^C_<2222&!(HI STRINGS*8Fc? c0 2c==52 BL2c===J) 2c__= Qc 2UD`-F7c_5bccC_<1324"- TRUMPET AcPccc>PS0P6ccc+ c<2ccaHO(P4ccc!8N+/2ccacc C /P4ccc!ccP[KPK<2222#!$&( MALE CHOIR_2c_)sO_2c_c_2c_;Y_2c_;c_2#NcK;K"6`CcKSccccc2222!(ELEC.PNO AcTZcpcc6ZcKcp@c;cZcFFpccP6RcccXc2cZcca @ccPZccc8ccccc2222( E.ORGAN A;b3bcb4[cPb.acb2<^3b.acb N:ccccc2222 $0PIPES Acccccc( 8Pcccccc@ccccccc(c2ccccc ccccccc(p]2cccccpcc(cc222#SYN-RISE AbWWV ;R__6c`Y+J_\c' 8 89'CcD9cZ.,HZa2=cb:c cDZcZc'2Ya2Ccb:ccccc2222#TINE E.PNOc@b=cC4. @T5A&=c5+86=6ccZLEBHK=]Yb)8\^C_<2222 # BC FLUTE M8Fc?O072b=>0FB\25=>8O.#8cVV9 O%"@U:C9(c.&.U7@XRCc\< cBK5cV5?*;cX<0cW%ccccc2222-! E.GUITAR Acc>ccc<c cc&ccc=F;c)Gcc5?;ccGccc=K;cGcVeEc@!GcVHccccc2222#1E.BASS A_HGcca[b@79W _/cZS S_HGcca[b@.9c_/cZ[U_HGcca[b9c_/cZ+Ycccc2222 # HARPSI. Ac0c2c ' =>PU2cZscPU2cZkcPU+2cJ' <NPU2cZ' :ccc2c' :Fcccc2222 VIBES AZ46ccc:cb >bccp4 b@ccc8Fc@ccb$8L_6ccc'5;K@ Accc_^C_<2222"!SAX BC c1c_c* pG_!$c_R'$ XO_/-cadc_5c_]&cDHCc'AcUc)XP -c_<ccc2222 cFM PIANO Abb)<I8c2cP8IAcK);WKcMcH#U$cLcHc)TP[$b!c;cbbK<2322  TIMPANI MWcccccccpP%cccccccpccccccccP&cccccccccccccccpP&ccccccc8cccc2222 1TIMEWARP  Gc 8bE Gc 8cb Gc *KK_!Gc cb Gc RNK_!Gc J_C__<2222#bTUBERISE Ac*2;ccc!-`,c17.cZP&RM=#cbZ. ;W58c_\2cccba'L)-caV4c W^0322#  VIOLINS AcRKcW)8c?)c@U0%8cZCRcU8Nc".cP8cK-$cW*Cc!&cP+c:c^C_<2222!KARIMBA Ac,GccK) 84"9c AccT8 V\cRccK8\.#G[R'8$N9(@cbR00qUSccWccc8c cccc2222)!HARMOSYNTHU?c`\63Qc<'-c`69c% $c`\6+Uc"#c\YOc.c]Wc X/!#c\Tc)^C_<2222&!G( ORCHESTRAL^*c\8:H*c\ Tt H(@ +cXWfM A +cX SMB=@7cR`qPWF.cOv ccccc1222#ACC. PIANOc.+c]W6c9Gc.+c]W6c)M c..c]W6IT .!+c\TRcc.,c]W6iT .!.c\TJc^C_<2222&!(HI STRINGS*8Fc? c0 2c==52 BL2c=== J) 2cc`=Oc 2UUUD`: 2F7cVV:cVC_c4122#PTRUMPET BcH0ccc@B#$?cZU0.+H8) 0CC Pc*59c^a8cESPbEQ`c8>375@=XUacc1122 '#[FEM. CHOIR_2c_)sO_2c_c_2c_;Y_2c_;c_2#NcK;K"6`CcKSccccc2222!(ELEC.PNO BcccZccc>cccZcccH`[9cZcUU@ LcccRcccX c2ccZcca c_ccZcccpccccc2222 E.ORGAN BJGC]^=XQCc`]aTWECc.& .ZPCc^KtcZ ccZCcRCc^_5`cccc2222,1 POWERSYN B8 !c`^6H@8 !c`^68M8 #c`^"(RG)6=c_cpc;.&b__VG)6=c_cc^C_<2222&!  FATSYNTH B[5c ;J 45`*; =[5c;?KBc ;c[b5cK`6KOBc ; XbbK<2222 'USPANISHGTR5@,6FQ@7::5C&6V\T:O `6c\Y:K2+#)^aa,P<:cYC3RZW9V4+^ba:ccccc2222! $ CELLOS Bc17NK)(?cc:R0/99cZPRR09cc.cP;ccL$$cW6, O c -cP; ccccc2222!A.MALLET BcJ-6cc]8UVcc9ccc;caU,6aI0.0J_0/ccZ.(=Ica>/ccZ<Z-$ccb)?>=ccccc2222"!( PIPES Bcccccc( 8Pcccccc@ccccccc(c2ccccc ccccccc(p]2cccccpccccc2222#SYN-RISE BbWWV ;R(__6c`Y+J_\pFB\25=>pO.#8cVVqO%"@UrC9(c.&.U7@XRCc\< cBK5cV5?*;cX<0cW%ccccc2222-! E.GUITAR B^87]9Ucc4K? >Z*7Z=] X` OA> ccc)?P_>:c_ $9?c^C_<2222#0E.BASS B _HGcca[_279\ _/cZ5 [_HGJca^_@.9c_/cZ4S_HG_ca[[9a2_2cZ;Wcccc2222 # HARPSI. Bc0c2c ' =>PU2cZscPU2cZkcPU+2cJ' <NPU2cZ' :ccc2c' :8cccc2222 cVIBES BM8Fc?O072b=>0FB\25=>O1#8cVVq R%"@UrC9* cc cK!cc  cN-%cc'crc22228BELL VOICE Gc 8bE Gc 8cb Gc *KK_!Gc cb Gc RNK_!Gc J_C__<2222#bTUBERISE Bc*2;ccc!-`,c17.cZP&RM=#cbZ. ;W58c_\2cccba'L)-caV4c W^/322#  VIOLINS B^# c3cc7 *Xc<.c]L:ccX^ccD3c:c\cZ2ccJ%B6cRU9ccL61ccP-cc:c^C_<2222" KARIMBA Bc,GccK) 84"9c AccT8 V\cRccK8\.#G[R'8$N9(@cbR00qUSccWccc8c cccc2222)!HARMOSYNTH*8Fc? c0 2c==52 BL2c===J) 2c__=Uc 2UD`-F7c_5bccC_<0424"- TOUCH TMPThexter-1.0.2/extra/default_patches.dx70000644000076400007640000002160011757612664014662 00000000000000_2c_)sO_2c_, c_2c_;Y_2c_,; c_2#NcK$2;K"6`CcK,Sccccc2222 Elec Pianoc)9,c:?c,c"cc#90c: ;c90cRcbcZcc8bcZcc8cccc2222/0FB:PfVibe Z chGZ*(cV c_2c_[O_2c_ a_0#ZcK;M8bBcWS^cccc2222# FatThinE.P_2c_)sO_2c_c_2c_;Y_2c_;c_2#NcK;:`CcKSc^C_<2222"!8E.PIANO 1 Z46c<:<_N9c_;caD 6cQ; _6cP$$;c_c6ccK;J`6cK;c^C_<2222"!E.PIANO 3 */$c5;BZD+_Z'S; Fa cV0`;aZ2cU$D;G _2cK :V`2c>; c^C_<2222"!E.GRAND 1 ccK 5RQ:$'c0B5]:Q-cNEcQccc/ J=9ccK MWQ0cRU,c^C_<2222#@PIANO 1 ^*c\p:H*c\ LL E(@ +cXGEOA +cX34MB=@7cR`9PWF .cZF(>ccccc1222#A.Piano1.5_HGcca[b@79W _/cZS S_HGcca[b@.9c_/cZ[U_HGcca[b9c_/cZ+Ycccc2222 # $HARPSICH. c0c2c ' =>PU2cZscPU2cZkcPU+2cJ' <NPU2cZ' :ccc2c' :Fcccc2222 VIBES AbM7NN8Wb@R06.8aZ?RR08[b .cP;cb.2cP6.<< b.cP;ccccc2222!A.MALLET AcAUIc$3qU c1N2c qccJUY"%c:ccN%c 0cc?ccR2IcVc cN%c ccccc0222#1CARIBIC 2 c=72cPD;c'''c<cc=72cP<9c'''cDcccccccc8ccccccc8cccc2222#MARIMBA Q7NN)8KcV7`N)8OcIR06.8^_21)c\;ccGR06.8c_+15c\:c^C_<2222"!0XYLOPHONE bWWV ;R(__6c`Y+J_\Q`ccI?,`cV? J` 1c.=cbcZcc8bcZcc8cccc222230FB:PluckGt^J*cW#'0:M^P'*cW2c:NZ#2cWRO^P5*c_7":LZL4c^L<2:NZN1c_:ccccc2222 LOTUS c6Zc8^cPZcccH^cPZccc`^cP6RcccX^2cZcca ^cPZccc(^KPK<2222#@E.ORGAN 1 ^PZccc8`2^PZccc8`^PZccc``[P6RcccX`2^Zcca c^PZccc(cKPK<2222 b &HAMM ORG7 c8cc'cc ;cc*Gcccc;cc*Gcccc;ccc*Gcccc;cc*Gcccc3cc*Gcccc;ccccc2222.cCLIC.ORGDWc*IcB Xc9-BccB X ccBccB cccBcc2 cb*Ic2 X bcBcc2 Xcccc2222/0JOrg Combo?b.bcbLQ3b.acb(04W;bMbcb<>;b3bcb4[cPb.acb2<^3b.acb N:ccccc2222 $0PIPES AYPAccc<8:XDKccc< a&)ccF==;)"GcF56;Gccc=K;cGVVe>a!Gc^Hccccc2222#1E.BASS Fix^87]9Ucc4K? >Z*7Z=] X` OA> ccc)?P_>:c_ $9?c^C_<2222#0 BASS 1 27`aCWc3cJ" <KP'5]9;cI aNs D%*2c)#9PK%?cF0 ;c^C_<2222!( BASS 2 b+cX(<6$;cZ?U5S>Ac$9=c^C_<2222#0 FUNK-BASS1c.!c]W86c. c]W(Oc.,c]WTc!,c\3 P c&c.+c]WhTc!,c\3 Hc8cccc2222&(a-ha TOM b.cZ8RbcZFbcZPb1cZ8cb'cTpTbcc7ccc8ccccc2222#1SKI :L c\\XV8I -c__ R/J 1cbbXLc 3c\\hcB -cccQc8 3bbbccccc2222JUMP /!Qcp^- &QcpQ- QcpF08 -ccapc-QcT<7 -ccaccccc2222 > ) FILTER EG bcc(ccc8Jbcc(ccc8Gbcc(ccc8Jbcc4ccc8cbcc(cccpObcc4ccc8ccccc2222#1--ANALOG--U?c`\63Qc<'-c`69c% $c`\6+Uc"#c\YOc.c]Wc X/!#c\Tc)^C_<2222&!G( ORCHESTRALc*Gc88-8LcLcGcX`'8bcLcGcX`'8ccLcGcX`'8cc*Gc88-8NcLcGcX`'8]T__<2222%8SYN-LEAD 2c*-Gc88-8LcLcGcX`'8bcLcGcX`'8ccLcGcX`'8cc*5Gc88-8NcLcGcX`'8]T__<2222%HSYN-LEAD 4H375@=XUacc1122 '#[FEM. CHOIRHL c\8FLI c\8B1J bb$b8L3 /c\h\Q c\J08 /bb$b8\T__<2222Q( STRINGS 2 c*2;ccc!-`,c17.cZP&RM=#cbZ. ;W58c_\2cccba'L)-caV4c W^0322#  VIOLINS A5@,6FQ@7::5C&6V\T:O `6c\Y:K2+#)^aa,P<:cYC3RZW9V4+^ba:ccccc2222! $ CELLOS BIF<cca ;/UFacA< )6_\; bWWV ;T__c`Y 3D< FcZa A`cccc2222 #2c8Clarinet c@b=cC4. XS5A&=c5+88=6ccZ\K=CFA]Yb)(b^C_<2222 FLUTE 1 2!.a_P":T949b_ :c949b_ :c949b_ :c2K c`$" iY2K ,c_$ccccc2222&( PofL Brass1cDbb['62<RM$)Gcbb'@bM$)Gcbb'8cMLRGcbb'(c>3GR_`pVHLcGcX`'pbT__<2222%8BRASS 1 M8Fc?O072b=>0FB\25=>8O.#2cVV9M%"FU:F77cVV:c^C_<2222#0 BRASS 3 M8Fc?O072b=>0FB\25=>8O.#8cVV9 O%"@U:C9-ccc 8c@+ ccc  T- -ccc'0 cccCc2222%Nasty KCP2 &RD! :P/E!R>*7( ScD< :c5cU4+;c]( $EX;$<Y2c#( ;\ N-bcY crGRAND PRIXcccccccpP%cccccccpccccccccP&cccccccccccccccpP&ccccccc8cccc2222 1TIMEWARP hexter-1.0.2/extra/fb01_roms_converted_34.dx70000644000076400007640000003000011757612664015670 00000000000000?+ (cZVG% ;cc<cbcZcc8bcZcc8cccc2222!0$FB:SlowFlt%(HcV P<"HcVPcL(HcMPM<"HcV cbcZcc8bcZcc8cccc2222!0 FB:5th Fltb< .cV8TbE (c^8PH? AcZ:\?b Ncc:bbcZcc8bcZcc8cccc2222"@FB:Oboe2 ?N .cc8<?b cc8 K[b 5cc8 Q ?".c4V0a.c4VTa5c4VcbcZcc8bcZcc8cccc2222 !1 FB:SynBas5b".c8RRb6%Nc#R%9bW"c^RRa.(cZTcbcZcc8bcZcc8cccc2222 "0 FB:SynBas6b6"ccI<Wb9ccc8 Rb1"5cc8LaE"Tc^:cbcZcc8bcZcc8cccc2222"P FB:SynBas7R4%.cQ:K a<((cV:ca<.cV:?a<((cV:cbcZcc8bcZcc8cccc2222" FB:Marimb2[NM5cQ:K aK<(cV:ca4+(c^:C a<(.cV:cbcZcc8bcZcc8cccc2222" FB:Marimb3bK Ac88Qbb?5cc8cbB9(c8<W bb65cc8cbcZcc8bcZcc8cccc2222" FB:Xyloph2X<"ccT=b4".cI ; b64HcMP=b<"cc$cbcZcc8bcZcc8cccc2222! FB:Vibe2 bE 5cZPcbE+5cZPcb9G.c#RcbE 5cZ cbcZcc8bcZcc8cccc2222 @ FB:Vibe3 b64HcMP@X<"ccTcb4".cI ; b<"cc$cbcZcc8bcZcc8cccc2222"0FB:Glockn2_cQ8Q)ac@TcO4 cZTT)XQc^$cbcZcc8bcZcc8cccc2222"0$FB:TubeBe1b9 (c@:P)bb%(ccRcb(c^PYIbb%"cc"cbcZcc8bcZcc8cccc2222"0FB:TubeBe2bcZ8SIb6c^8cI`6 c^"cbc^Rc)bcZcc8bcZcc8cccc2222"0FB:Bells 2+"cc8SI cV:T)b cZ<HIbH"cZ:cbcZcc8bcZcc8cccc2222" FB:TempleGL( "c#8G9L( "c#8D9L9 c#8A9L( .c#8cbcZcc8bcZcc8cccc2222" FB:SteelDrXbMccc8Xb9cccPObXcccPc9HK1Hcc"cbcZcc8bcZcc8cccc2222"`FB:ElectDr_H .cI$_)bW"c40 R)bQ"cZ$ KIb cc>cbcZcc8bcZcc8cccc2222 !1FB:Hand Drbb cc8b9b?(cM8Vb?.(cE8]bb..cc:bbcZcc8bcZcc8cccc2222"@FB:SynTimpb?(c#8c[?Mc/8c)_]cV8cIbB1.c88c9bcZcc8bcZcc8cccc2222! FB:Clock b9?.c8<W)b9?.c88 Q)b9?.c88 Nb9?;c88cbcZcc8bcZcc8cccc2222"0FB:Heifer bb cc c9Hb<;cc8cbW((cM8`)bb95cc8cbcZcc8bcZcc8cccc2222" FB:SnareD2bb cc c )HK<;cZ8c)bW((cM8^Ibb9;cc8cIbcZcc8bcZcc8cccc2222"@ FB:SnareD3hexter-1.0.2/extra/textui_callbacks.h0000644000076400007640000000221411757613235014570 00000000000000/* hexter DSSI software synthesizer text-mode UI * * Copyright (C) 2004, 2009 Sean Bolton. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ void readline_callback(char *line); int test_note_callback(int a, int b); void update_from_program_select(unsigned long bank, unsigned long program); void update_patches(const char *key, const char *value); void update_monophonic(const char *value); void update_polyphony(const char *value); void update_global_polyphony(const char *value); hexter-1.0.2/extra/dx7_roms.dx70000644000076400007640000004000011757612664013264 000000000000001cDbb['62<RM$)Gcbb'@bM$)Gcbb'8cMLRGcbb'(c>3GR_`pVHLcGcX`'pbT__<2222%8BRASS 1 c' GcbX38Pc' GcbQ'@cc' GcbQ'(cc' GcbQ' cc' GcbP3&pTc' GcbP3&pcT__<2222%8BRASS 2 M8Fc?O072b=>0FB\25=>8O.#2cVV9M%"FU:F77cVV:c^C_<2222#0 BRASS 3 56c\V:556V\V:T`6c\V:M,-6cUR8a8VKG1R\>69S-)cUF: c^C_<2222 STRINGS 1 HL c\8FLI c\8B1J bb$b8L3 /c\h\Q c\J08 /bb$b8\T__<2222Q( STRINGS 2 5@,6c\87:65C&6V\J:T`6c\Y:K24#)c\[3b<:ccG#3R\W69V4+c\Z:c^C_<2222. STRINGS 3 HL c\8RLI 7c\8P8J -bb$b8H6 /c\h`5. =c]ZSP8 -bb$b8cT__<2222?8 ORCHESTRA ccK 5RQ:$'c0B5]:Q-cNEcQccc/ J=9ccK MWQ0cRU,c^C_<2222#@PIANO 1 \G:$c$bCNZG!c;^a cV03TZ2cU ES _cK JVP 2c>;^^C_<2222@ PIANO 2 PI c5 KTb[Z)*WZ@-ca.S_^P SC+ # ab$ [Z22ZUZ-c_  V2222 -@PIANO 3 _2c_)sO_2c_c_2c_;Y_2c_;c_2#NcK;:`CcKSc^C_<2222"!8E.PIANO 1 c9cKc'589QWKc\<cQWKc\<YNWKc\" ;c['Z*7Z=] X` OA> ccc)?P_>:c_ $9?c^C_<2222#0 BASS 1 27`aCWc3cJ" <KP'5]9;cI aNs D%*2c)#9PK%?cF0 ;c^C_<2222!( BASS 2 c6Zc8^cPZcccH^cPZccc`^cP6RcccX^2cZcca ^cPZccc(^KPK<2222#@E.ORGAN 1 HFccc.  ;L==cc];a=2cca< ;Xca>/ccZ.(=Kca>/ccZ<Z-$ccb)2=c^C_<2222"!( PIPES 1 _HGcca[b@79W _/cZ13 S_HGcca[b@.9c_/cZ13U_HGcca[b19c_/cZ1;Y2222 # HARPSICH 1bWWV ;N__c`Y +c_\Q[%cZ>SZ'cL >R^@!c\= ccD0cS >c^>:"c\> ZUcK1222()KOTO c@b=cC4. XS5A&=c5+88=6ccZ\K=CFA]Yb)(b^C_<2222 FLUTE 1 ccccK)*G"cccsbPF XP; [9P1c_;cccccgW"*G"ccccacccc22220ORCH-CHIMEb[cULNGFc:c3b Gc *KK_!Gc cb Gc RNK_!Gc J_C__<2222#TUB BELLS c1 [R;1;Z^C_<2222 PIANO 4 ^! 5&:C b[Z$:KF2cU < c^! J&;\b$ [Z22:HF2cU < c2222 PIANO 5 ^cUcc"(<V^&"DW7K5_=2Nc ]PF#7cZB cUU6c] RKZU6c]2cKPK<2222 E.PIANO 2 Z46c<:K_N9c_;caD 6cQ; _6cP$$;c_6cK;J`!6cK;b^C_<2222"! E.PIANO 3 _NKc_;G_N9c_<Wa\*4c<(;D_(KcZ;c_cDcKc=Y`+UcK;c^C_<2222"! E.PIANO 4 ZHZ&6ccZ;W)7Acc]:P6ccZ;M7Acc]:P^C_<2222"!PIPES 2 YPAccc<8:XDK6ccZ=cca>6ccZ<X<Gccb8c^C_<2222"!(PIPES 4 G@b=cC4. @RLA&=c5+88=6c<<KQ [%cZ>[^,#"c\>c^!c\= cc'!cS% >Y^,#"c\>\#"K52222iGUITAR 6 `F0c@H c!Gc8<c"GcT%S"&c<cc"Gc<IS"&c'F<Tcccc2222 @LUTE cU+GcM>WcM0cbTKc6c_+N b$,8ccK[cc)?P_>:c<$9?c^C_<22220BANJO _.^O>V_&ccF4;7_1cF;c_*,#cF:%;W_ccF4; K_-cF;c^C_<2222"!HARP 1 _.^OZ_#ccF4#\O_ 1!cFc_2, cF:% >_.c cF4+ O_ -cFcc^C_<2222"!HARP 2 27`aA[cc" 8BP,5V9<c UNpc%*2c)#8JY?cZ0 ;c^C_<2222! BASS 3 ^87`N9Rcc)8^D7`L9aTLcY$@<<P'6cY<HTLcY.a <c^C_<2222"! BASS 4 cNKbP@@'8, DI4Dcc^'@^c5b`@@'H3DIDcc\'@^c5b`@@'8!DIDcc\'8]cG_<2222#($PICCOLO IF<cca ;/"2FacA< )@_\CbW]Z ;Y__c`Y 3H< BcZa A c2222 %*cFLUTE 2 ? FcZc39O? FcZc39K2-Fcc_3;KaPPFcZP39K? FcZc39L<(F__U3;c2222%*OBOE IF<cca ;/UFacA< )6_\; bWWV ;\__c`Y 3DA FcZa Ac2222 %*cCLARINET Z46ccc:cb >bccp4 b@ccc8Fc@ccb$8L_6ccc'5;K@ Acccc^C_<2222"!SAX BC 7-Fc_U( >;B aPPFcZF9O 7 FcZc39H<-Fc_U;c7 FcZc39N<-Fc_U; c2222%* BASSOON HL c\8FLI c\8B1J bb$b8L3 /c\h\Q c\L08 /bb$b8\T__<2222Q( STRINGS 4 + .c\8>+ .c\8B+ .c\8G .c\>bp\T .c\pK .c\0WT__<2222#ISTRINGS 5 ^bbN# 9H.<((WW]SOD>(cccY *L2!(/cWYpb*!*\PBHP.7c:[T__<2222#) STRINGS 6 ^bbN# !D2.<((WW]8OOD>(ccc)WQ:I20!(/cWYP`2OD>(ccc$b/*N8!(/cWYPcT__<2222!# STRINGS 7 56c\V?,56V\V>F`6c\V<BV1)c ;<cb02b68 Ic4-c;c^C_<2222!'STRINGS 8 1cDbb['6RM$)Gcbb'bM$)Gcbb'cMLRGcbb'c>3GR_`pSHLcGcX`'p]T__<2222%8BRASS 4 5 <5bPU6I\25 <5bPU69925 <5bPU6)T2>F6c\TZb25.<5b__6R>F6ca_:c^C_<2222"!G BRASS 5 <=Fcba9SDFc__:cDFc__:aDFc`_:c<FcZP:YDFc__:c^C_<2222"!8BRASS 6 BC162c>>8FB\25=>' 8V$$%3c6';cF%8c6':V;%:c6':cT__<2222#( BRASS 8 N_Fc`K7K9Y0 FcZa39U>_Fc`O0qZ2 FcZa39cC_Fc`O0CZ3 FcZa39c2222%*&c$RECORDER c b>cC48) AVb>bbp= &c=Y +8H68@\W$8c&c=Y +868@\W$^C_<2222*9($HARMONICA1c b>cC48) AVb>bbp= &c=Y +8H68@\cc$8c3c=Y +8c68@\W$c^C_<2222*9<($HRMNCA2 BCcH0ccc@2$($?cF90<H<) VFB Pc05.c^ap c/8=GU=8 c959c^aW<_<0322## @VOICE 2 H05/)@T$?cZU0c ) 0: P \5'c^ap c5.8G.8659c^ac<_<0322##@VOICE 3 ^87`N9H cE`cDa8EcGaR00J.8a_<1&cQ"<cc.#PKC6<R_//c\;c^C_<2222"!($GLOKENSPL U"2c3' =Y _9c2c ' u Sc0U*cZ' +4)PU*cZ' sc1U*cZ' ;1 PU*cZ' ccbK<2222 VIBE 2 Q7NN)8KcV7`N)8OcIR06.8^_21)c\;ccGR06.8c_+15c\:c^C_<2222"!0XYLOPHONE a"cZP:B c!ZPRTa"cZP:C cZP"Qa"cZP:QacZP:K^C_<2222 a^C_<2222"!$BLOCK cO\Gc`CVUC`cAD(c"&c:2b/&%c:ccYc8G cBccc8ccccc2222+$ZxFLEXATONE 8M2)caDG JW2)W7bZ:2)`VbS2)c;ccM*#c8cX/..c;ccccc2222 $Pp LOG DRUM c*Gc88-8LcLcGcX`'8bcLcGcX`'8ccLcGcX`'8cc*Gc88-8NcLcGcX`'8]T__<2222%8SYN-LEAD 2c*#Gc8-8NcLcGcX`'8ScLcGcX`'8ccLcGcX`'8cc*#Gc8-8acLcGcX*'8]T__<2222%XSYN-LEAD 3c*-Gc88-8LcLcGcX`'8bcLcGcX`'8ccLcGcX`'8cc*5Gc88-8NcLcGcX`'8]T__<2222%HSYN-LEAD 4cc/ccc8Ebc=cc 8Mcc=cc8Vc =cN8c.C`cU8R.c`cU8ccccc2222#:chSYN-LEAD 5c.Gc=-'78P*c.Gc=-'8,c&GcF>'87c.Gc=-'8Tc.Gc=-'8Nc%GcF728cT__<2222%X SYN-CLAV 1U.K=X, JU&K=X,!8Q5&K=X, XabHK=cYb0b5&K=X,8cbHK=cYb8ccccc2222 pSYN-CLAV 2]M3X WF^(cWO 2?P_cU`_`_Bc_FW cPcUP? cP Bc_Z?c2cKc2222)2c SYN-CLAV 3ORcX )sT.`2cKc_TccE;c`7cK;c*#Nccc; ]`6cKsc^C_<2222c!DSYN-PIANO c Dbb\<Sc$)Gcbb'@cc$)Gcbb'(ccLRGcbb' cG\_]p[cLcGcX`'pcT__<2222%8SYNBRASS 1@c#]cc]<XRcc]cbb<cTcc]cbb<cQcc]ccb<b8c2]ccTt\Qcc]ccbtccccc2222)J@ SYNBRASS 2c9-Gc$-8S(@'OGccc'8b@'OGccc'8c@'OGccc'8cc*5Gc88-8NcLcGcX`'8cT__<2222%H SYNORGAN 1EF6cc3KEF6ccT;caFA_Z;c F6cc;M F 6ccc; cUF"A_ZK]^C_<2222"!8SYNORGAN 2c c'2 c c'  c@ c':,FcRb'Hc-.ACAc'@c-=ABAOc'c1*cc./22 *C!SYN-VOX cc3bb;ccK<22227B.DRM-SNARZ#6cP:G+Z#6cP:a+ZI6cP::Z6cP:a[Z6cV:FZZ#6cP9:c[^C_<22222I`6SHIMMER 8M2)cBb8@2)c_4a 2)cWODc 2)cWO;c 2)cWOU 2)cWOsccccc2222pEVOLUTION c*7( ScD< :c5cU4+;c]( $EX;$<Y2c#( ;\ N-bcY cxGRAND PRIXcccYcHb?`1ccZbHb?b ccYaEb?]ccUOCb?a -cU'8\- cV'8c]bbb ST.HELENS _RcU ;cc- c_ +<c- c_ ;cU* Uc sSc2c] ;Rc- cc F2222 cp EXPLOSION hexter-1.0.2/extra/textui_callbacks.c0000644000076400007640000002614712043506345014566 00000000000000/* hexter DSSI software synthesizer text-mode UI * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * Portions of this file came from readline 4.3, copyright * (c) 1987-2002 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 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. */ #include #include #include #include #include #include #include "hexter.h" #include "gui_main.h" #include "gui_data.h" #include "dx7_voice.h" #include "dx7_voice_data.h" extern int done; static unsigned char test_note_state = 0; static unsigned char test_note_noteon_key = 60; static unsigned char test_note_noteoff_key; static unsigned char test_note_velocity = 84; static int monophonic_mode = 0; static int polyphony_instance = HEXTER_DEFAULT_POLYPHONY; static int polyphony_global = HEXTER_DEFAULT_POLYPHONY; static char *monophonic_modes[] = { "off", "on", "once", "both", NULL }; /* ==== commands ==== */ void command_status(char *args) { printf("hexter instance id: %s\n", user_friendly_id); printf("UI URL: %s\n", osc_self_url); printf("host URL: %s\n", osc_host_url); printf("test note: key %d, velocity %d, currently %s\n", test_note_noteon_key, test_note_velocity, test_note_state ? "on" : "off"); printf("monophonic mode: %s\n", monophonic_modes[monophonic_mode]); printf("polyphony: instance %d, global %d\n", polyphony_instance, polyphony_global); printf("current program: %d\n", current_program); } void command_patches(char *args) { char name[11]; int i, j, n; for (i = 0; i < 32; i++) { for (j = 0; j < 128; j += 32) { n = i + j; dx7_voice_copy_name(name, &patches[n]); printf("%c%3d %s", (n == current_program ? '*': ' '), n, name); if (j < 96) printf(" "); else printf("\n"); } } } void command_program(char *args) { int prog; char *tail; if (!args || !*args) { printf("usage: 'p '\n"); return; } prog = strtol(args, &tail, 10); if (prog == 0 && args == tail) { printf("invalid patch number\n"); return; } current_program = prog; /* set all the patch edit widgets to match */ /* update_voice_widgets_from_patch(&patches[current_program]); */ lo_send(osc_host_address, osc_program_path, "ii", 0, current_program); if (edit_buffer_active && current_program != edit_buffer.program) { gui_data_send_edit_buffer_off(); /* -FIX- update UI display to say "no active edits" */ edit_buffer_active = 0; } } void command_load(char *args) { int position = 0; /* -FIX- need load position support */ char *message; if (gui_data_load(args, position, &message)) { /* successfully loaded at least one patch */ printf("Load Patch File succeeded:\n%s\n", message); gui_data_send_dirty_patch_sections(); } else { /* didn't load anything successfully */ printf("Load Patch File failed:\n%s\n", message); } free(message); } void command_mono(char *args) { if (!args) { usage: printf("bad monophonic mode, try 'on', 'off', 'once', or 'both'\n"); return; } else if (!strcmp(args, "off")) { monophonic_mode = 0; } else if (!strcmp(args, "on")) { monophonic_mode = 1; } else if (!strcmp(args, "once")) { monophonic_mode = 2; } else if (!strcmp(args, "both")) { monophonic_mode = 3; } else { goto usage; } lo_send(osc_host_address, osc_configure_path, "ss", "monophonic", monophonic_modes[monophonic_mode]); } void command_poly(char *args) { int poly; char buffer[4]; if (!args || !*args) { printf("usage: 'poly '\n"); return; } poly = atoi(args); if (poly > 0 && poly < HEXTER_MAX_POLYPHONY) { polyphony_instance = poly; snprintf(buffer, 4, "%d", poly); lo_send(osc_host_address, osc_configure_path, "ss", "polyphony", buffer); } } void command_gpoly(char *args) { int poly; char buffer[4]; if (!args || !*args) { printf("usage: 'gpoly '\n"); return; } poly = atoi(args); if (poly > 0 && poly < HEXTER_MAX_POLYPHONY) { polyphony_global = poly; snprintf(buffer, 4, "%d", poly); #ifdef DSSI_GLOBAL_CONFIGURE_PREFIX lo_send(osc_host_address, osc_configure_path, "ss", DSSI_GLOBAL_CONFIGURE_PREFIX "polyphony", buffer); #else lo_send(osc_host_address, osc_configure_path, "ss", "global_polyphony", buffer); #endif } } void command_quit(char *args) { done = 1; } /* ==== command line parsing ==== */ /* A structure which contains information on the commands this program can understand. */ typedef struct { char *name; /* User printable name of the function. */ rl_vcpfunc_t *func; /* Function to call to do the job. */ char *doc; /* Documentation for this function. */ } COMMAND; void command_help(char *); static COMMAND commands[] = { { "status", command_status, "show hexter status" }, { "patches", command_patches, "show patch names" }, { "pc", command_program, "select patch (e.g. 'pc 3')" }, { "load", command_load, "load patch bank (e.g. 'load ')" }, { "mono", command_mono, "set monophonic mode (e.g. 'mono on')" }, { "poly", command_poly, "set instance polyphony ('poly 8')" }, { "gpoly", command_gpoly, "set global polyphony ('gpoly 16')" }, { "quit", command_quit, "exit hexter_text" }, { "help", command_help, "print this help message" }, { (char *)NULL, (rl_vcpfunc_t *)NULL, (char *)NULL } }; void command_help(char *args) { int i, len, maxlen = 0; printf("hexter_text help - commands available are:\n"); for (i = 0; commands[i].name; i++) { len = strlen(commands[i].name); if (len > maxlen) maxlen = len; } for (i = 0; commands[i].name; i++) { printf(" %s", commands[i].name); for (len = strlen(commands[i].name); len <= maxlen; len++) printf(" "); printf("- %s\n", commands[i].doc); } printf("ctrl-t starts or stops a test note\n"); } /* Strip whitespace from the start and end of STRING. Return a pointer into STRING. */ char * stripwhite (string) char *string; { register char *s, *t; for (s = string; whitespace (*s); s++) ; if (*s == 0) return (s); t = s + strlen (s) - 1; while (t > s && whitespace (*t)) t--; *++t = '\0'; return s; } /* Look up NAME as the name of a command, and return a pointer to that command. Return a NULL pointer if NAME isn't a command name. */ COMMAND * find_command (name) char *name; { register int i; for (i = 0; commands[i].name; i++) if (strcmp (name, commands[i].name) == 0) return (&commands[i]); return ((COMMAND *)NULL); } void readline_callback(char *line) { char *s, *args; int i; COMMAND *command; if (!line || !*line) return; s = stripwhite (line); if (*s) { add_history (s); for (i = 0; s[i] && !whitespace(s[i]); i++); if (line[i]) line[i++] = '\0'; command = find_command(s); if (command) { if (line[i]) { args = stripwhite(s + i); } else { args = NULL; } ((*(command->func)) (args)); } else { printf("unrecognized command '%s'\n", s); command_help(NULL); } } free(line); } /* ==== test note ==== */ int test_note_callback(int a, int b) { unsigned char midi[4]; if (!test_note_state) { /* send note on */ midi[0] = 0; midi[1] = 0x90; midi[2] = test_note_noteon_key; midi[3] = test_note_velocity; lo_send(osc_host_address, osc_midi_path, "m", midi); test_note_noteoff_key = test_note_noteon_key; test_note_state = 1; } else { /* send note off */ midi[0] = 0; midi[1] = 0x80; midi[2] = test_note_noteoff_key; midi[3] = 0x40; lo_send(osc_host_address, osc_midi_path, "m", midi); test_note_state = 0; } return 0; } /* ==== OSC update handlers ==== */ void update_from_program_select(unsigned long bank, unsigned long program) { if (!bank && program < 128) { current_program = program; printf("\ncurrent program changed to %d\n", current_program); if (edit_buffer_active && program != edit_buffer.program) { gui_data_send_edit_buffer_off(); /* -FIX- update UI display to say "no active edits" */ edit_buffer_active = 0; } } } void update_patches(const char *key, const char *value) { int section = key[7] - '0'; TUIDB_MESSAGE(DB_OSC, ": update_patches: received new '%s'\n", key); if (section < 0 || section > 3) return; if (!decode_7in6(value, 32 * sizeof(dx7_patch_t), (uint8_t *)&patches[section * 32])) { TUIDB_MESSAGE(DB_OSC, " update_patches: corrupt data!\n"); return; } patch_section_dirty[section] = 0; /* patch names may have changed, so if the UI is displaying a patch list, * it should be updated now. */ } void update_monophonic(const char *value) { TUIDB_MESSAGE(DB_OSC, ": update_monophonic called with '%s'\n", value); if (!strcmp(value, "off")) { monophonic_mode = 0; } else if (!strcmp(value, "on")) { monophonic_mode = 1; } else if (!strcmp(value, "once")) { monophonic_mode = 2; } else if (!strcmp(value, "both")) { monophonic_mode = 3; } else { return; } /* if the UI is displaying the mono mode, it should be updated now. */ } void update_polyphony(const char *value) { int poly = atoi(value); TUIDB_MESSAGE(DB_OSC, ": update_polyphony called with '%s'\n", value); if (poly > 0 && poly < HEXTER_MAX_POLYPHONY) { polyphony_instance = poly; /* if the UI is displaying the instance polyphony, it should be updated now. */ } } void update_global_polyphony(const char *value) { int poly = atoi(value); TUIDB_MESSAGE(DB_OSC, ": update_global_polyphony called with '%s'\n", value); if (poly > 0 && poly < HEXTER_MAX_POLYPHONY) { polyphony_global = poly; /* if the UI is displaying the global polyphony, it should be updated now. */ } } hexter-1.0.2/extra/fb01_roms_converted_5.dx70000644000076400007640000001400011757612664015610 00000000000000b1Nc#Pcb?4HccPc bbHcc cbbHccPcbcZcc8bcZcc8cccc22220 FB:JOrgan1b1Nc#PcbbHccPbbbHcc cbbHccPbbcZcc8bcZcc8cccc2222"0 FB:JOrgan2bTaccV8cbb cccPbbcZcc8bb ccc8bbb ccc bbcZcc8cccc2222"@ FB:COrgan1a? cc#8c _6 cccTcb6 ccc c[6 ccc8\bcZcc8bcZcc8cccc2222!0FB:COrgan2XW%ccIHL)bb ccc(Bbb ccc Cbb cccH[bcZcc8bcZcc8cccc2222!0 FB:EOrgan3b Hcc8Ib Hcc8cbcZcc8b Hcc8cb Hcc8cbcZcc8cccc2222"@ FB:EOrgan4bb ccc8Hbb ccc b bcZcc8bb cccPcbb ccc bbcZcc8cccc2222,0 FB:EOrgan5bbHcc8HbbHcc8cbbHcc8`bbHcc8cbcZcc8bcZcc8cccc2222"@ FB:EOrgan6bb cccP Bbb ccc@bbb ccc8 Sbb ccc bbcZcc8bcZcc8cccc2222"0 FB:EOrgan7bb cccPbbb ccc@bbb ccc8bbb ccc bbcZcc8bcZcc8cccc2222"0 FB:EOrgan8b< NcZPEHb NccBbbb Acc [Bb Acc"bbcZcc8bcZcc8cccc2222"0FB:SmlPipeb< ;c^ O?b 5cc"bbb AccP`Eb HccRZbcZcc8bcZcc8cccc2222"0FB:MidPipeb< ;c^ T8b .cc$bb9 AcZPNEb HccR]bcZcc8bcZcc8cccc2222"0FB:BigPipeR HccPTU HccP`B HccP_U Hcc(cbcZcc8bcZcc8cccc2222"FB:SftPipebb .cc8T bb (cc .bb (cc8N5b Acc8bbcZcc8bcZcc8cccc2222!0FB:Organ bc^< Nb"<.cc8 Ab."(cc8H`EAc^:cbcZcc8bcZcc8cccc2222 "0 FB:Guitar b% .c#:Lb( Ac#RMa ;c#8Hb?";cc:bbcZcc8bcZcc8cccc2222!0 FB:Folk Gtb" ccV>_b ccQ>1b"cZ> Lb(c@<bbcZcc8bcZcc8cccc2222"0 FB:PluckGtUW.cV:VR%%.cE8S"+;cc8@bK5cZ<cbcZcc8bcZcc8cccc2222"0 FB:BriteGtbb ccc8RbNccZ8\bb ccc8Qbbccc:cbcZcc8bcZcc8cccc2222"@ FB:Fuzz Gtb+HcZ:V b.HcM8 9bb cc8VbQ;cc8bbcZcc8bcZcc8cccc2222"0 FB:Zither2b.(cV:RbB4(cZ8Kb<(cZ8@bb".cc<cbcZcc8bcZcc8cccc2222 "0 FB:Lute bZ"cVVFb ccT]bN "cVL\b1+.cI$cbcZcc8bcZcc8cccc2222"0FB:Banjo b1"cM8PX4"cQ<Cb4".cI8Db<"cc<bbcZcc8bcZcc8cccc2222!0FB:SftHarpb64HcM8 MX4"cQ<I b4".cI82b<(cc:bbcZcc8bcZcc8cccc2222 !0FB:Harp2 b.9.cM:VXcM<Rbc^"Kb.c^TcbcZcc8bcZcc8cccc2222 "0$FB:Harp3 b.4HcMTO X4"cQT:b1"cI Nb<"(cc$bbcZcc8bcZcc8cccc2222!0FB:SftKotobE c#P Zb"c#V Rb"c#T Rb"c#TcbcZcc8bcZcc8cccc2222" FB:HitKotoU4% c^>Obc@Tcb c8TSb" c@&cbcZcc8bcZcc8cccc2222!@FB:Sitar1 "(cI"TbcV:ObcER \bcQ:cbcZcc8bcZcc8cccc2222"FB:Sitar2 b. ;c#RcI2N";cVTR<.cMP86;c^PcbcZcc8bcZcc8cccc2222"0$FB:HuffSynBb ccc8Bbb ccc8cbcZcc8b(("cI8cb( cccTcbcZcc8cccc2222!PFB:FantasyO4HcI P 9/bAcc XH?"cMPP8bAccP^bcZcc8bcZcc8cccc2222!@FB:SynvoicX (cEP CI<" (cM" >8 (cVPR5 ;cZ cbcZcc8bcZcc8cccc2222"@ FB:M.Voice)"c#<B% "cVJ[/ c#JM".cV$cbcZcc8bcZcc8cccc2222"0$FB:VSAR bb cc8c)bb cc8=bb cc8OOb cc8cbcZcc8bcZcc8cccc2222pFB:Racing Ecc8_L"c48cI%cc8cL"c<8cIbcZcc8bcZcc8cccc2222{0FB:Water  c#89B< AcV8NB4 (c^8SOb Ncc:cbcZcc8bcZcc8cccc2222"0FB:Trumpet[+ ;cMB\ a1 .cZ:<[( (c^BP8 .ccBcbcZcc8bcZcc8cccc2222!0 FB:LoStrigb (c^Rcb (c^RHb (c^JQ5 .cc"cbcZcc8bcZcc8cccc2222"0$FB:StringsR (cQJJb (cQ"TR "c<2GU.cQDcbcZcc8bcZcc8cccc2222"FB:Piano b5cVT:9b+"5cZRc`"cZTL`.cZTcbcZcc8bcZcc8cccc2222"0FB:NewEP R(cZHK b(c^ Nb"(cZREXa.cc<bbcZcc8bcZcc8cccc2222" FB:EGrand b. cc#8?b( cc#PLa cc#8Jb( cc#8cbcZcc8bcZcc8cccc2222!0FB:Jazz Gtb1".c4T>a(.c4VHa.cVTVa .cZT cbcZcc8bcZcc8cccc2222! FB:EBass % ;c#@TL% .cE>YU" (c@FLLB.c^DcbcZcc8bcZcc8cccc2222!0 FB:WodBass[? ccc Ma cccPcL6 cccPTa6 cccPcbcZcc8bcZcc8cccc22221FB:EOrgan1b1Nc#PcbbHccPcbbHcc cbbHccPcbcZcc8bcZcc8cccc2222" FB:EOrgan2R Hcc0 J< ;cc$cX (cc$ c2 (ccTcbcZcc8bcZcc8cccc2222" FB:POrgan1< cc$X? .cc$R < cc,b< 5ccDcbcZcc8bcZcc8cccc2222!FB:POrgan2E4(cI"cIB9(cM:// (cZTG< ;cc:cbcZcc8bcZcc8cccc2222!0$FB:Flute b(6AcM8BL Ac#8\bcZcc8L+ Ac^8aL+ Ac^8cbcZcc8cccc2222"00FB:Piccoloa..NcMVHR Nc^R>[+ c^VKL NccRcbcZcc8bcZcc8cccc2222!0FB:Oboe b< .cV8^ bE (c^8HH? AcZ:R?b Ncc:]bcZcc8bcZcc8cccc2222"0FB:ClarinebB(cMP QX<".ccRcb4cI ; b<".cc cbcZcc8bcZcc8cccc2222"0$FB:Glockenb6 (c4R4)`c@4^b+.c#<4 b("c#<cbcZcc8bcZcc8cccc2222 0FB:Vibes bK%.cI:N bb6.cc<cbKJTc8<Tbb<;cc:cbcZcc8bcZcc8cccc2222"FB:Xylophn_"cZVKbc^VKacVVLb(c^VcbcZcc8bcZcc8cccc2222"0FB:Koto bccT$b.ccLLbccTMb.(ccTcbcZcc8bcZcc8cccc2222! FB:Zither L5c#VMb"5cZTJb5cVV\bTc8RcbcZcc8bcZcc8cccc2222"0FB:Clav bbAcZ<GbT"cZ8cb`"cV>[bW(cZ>cbcZcc8bcZcc8cccc2222"FB:HarpsicbcZPQ9b6c^H\)`6 c^R R)bc^Rc)bcZcc8bcZcc8cccc2222!1 FB:Bells b. "c#:Ub1(c^:Gb(c^8Ab. "c^<cbcZcc8bcZcc8cccc2222 "$FB:Harp HcV8c, HcV8c<%HcV8cL+HcV8cbcZcc8bcZcc8cccc2222"PFB:SmadSyn?b Acc8J?b Acc8A8b 5cc8N?b Acc8cbcZcc8bcZcc8cccc2222"@FB:HarmoniR"cI"J[.(c^<cL"cI: Q)[.(cIT\bcZcc8bcZcc8cccc2222"FB:SteelDrb6?cV8[9bT."cc8?b? c#8CbT."cc8cbcZcc8bcZcc8cccc2222 FB:Timpanib" ;c/"R ?.cZPRb.cZRS/ .cc cbcZcc8bcZcc8cccc2222!AFB:LoStrg22+;cZ:R< AcZ8c? HcZ:cE Ac^8cbcZcc8bcZcc8cccc22220 FB:Horn Lob6 Ac#P>I<" Acc8H[9 AcEP>)5" Ac^8\bcZcc8bcZcc8cccc2222!P$FB:Whistle,"9"c#< [b9"c+<^a"%Nc'8 EH6 .c#:cbcZcc8bcZcc8cccc2222"@ FB:ZingPlpEccP\b+cc"Yb"5cM$R `E;cZPcbcZcc8bcZcc8cccc2222!@FB:Metal b cc#8Ybb ccc8Qbb ccc8Ubb ccc8cbcZcc8bcZcc8cccc2222"PFB:Heavy %+Ac^Pc bNcMV>L Nc^R cb Nc^RcbcZcc8bcZcc8cccc2222"P$FB:FunkSynH?"cMP= IO4HcI HI/bHcc X8b;ccPcbcZcc8bcZcc8cccc2222 !@FB:Voices b1 (c#8 Kb? "c#8 KbZ (c#8 Tb. .c#8cbcZcc8bcZcc8cccc2222" FB:Marimbab4 cc+<Ib1 cc+8Sb% 5c+8Sb% ;c+8cbcZcc8bcZcc8cccc2222"0 FB:EBass 2bN ;c^8c_<6Tc<8cXWE;c<8T)a49AcZ8cbcZcc8bcZcc8cccc2222"FB:SnareDrbb c^8^)bbc^<H 9[]cV ^9bbcE<cIbcZcc8bcZcc8cccc2222"FB:RD CymbbBHcM S9b1HcZ8J)bB((cZ8LIb]65cc8c)bcZcc8bcZcc8cccc2222"P FB:Tom Tomb19cZ<bb"c+< ca"%c'8 GH% c#:cbcZcc8bcZcc8cccc2222 $>FB:Mars to%"c8PHIL"c8Pc),% cI R )< cV cbcZcc8bcZcc8cccc2222#{FB:Storm a" c^8Y)8 cM2ca c^:`)5% cV:c bcZcc8bcZcc8cccc2222$jFB:WindbelH"cVNM H"cV$VH"cV.B H"cV>cbcZcc8bcZcc8cccc2222"FB:UpPianobN"cVL[H5ccVcRE+cc+TU)b5c^"ZbcZcc8bcZcc8cccc2222"FB:SPiano O"cVJJa"cV$Xb<4Hc#PH9O"cV>cbcZcc8bcZcc8cccc2222"FB:Piano2 (cZ 8X(cZ ;X(cZPYO(cZ<cbcZcc8bcZcc8cccc2222 "FB:Piano3 XQccZTRR+cc&YOB<cc<N9U<c^VcbcZcc8bcZcc8cccc2222"FB:Piano4 b"cM:K b(cQJHb.cQRNb"5cV"cbcZcc8bcZcc8cccc2222" FB:Piano5 bN"cZTUR6 cc$WO (c^TUH`(cZ>cbcZcc8bcZcc8cccc2222"0FB:PhGrandXc#$AR "cV:WX c#JML".cV<cbcZcc8bcZcc8cccc2222"FB:Grand Xc#"AR "cV<]X c#JKL"(cV<cbcZcc8bcZcc8cccc2222"FB:DpGrandb(cZH Hb(c^0Rb"(cZR Oba Acc<cbcZcc8bcZcc8cccc2222"0 FB:LPiano1O("cZPP[(c#PR[.c^ TR65c^:cbcZcc8bcZcc8cccc2222! FB:LPiano2a"cMV L9["c.c#>cRcV$ `L.cV<cbcZcc8bcZcc8cccc2222" FB:EGrand2X c#"6 XZcZ"A )R"cV$ZL"(cVTcbcZcc8bcZcc8cccc2222"FB:Honkey1X c#*5 X c#"JR"cVLaL"(cVTcbcZcc8bcZcc8cccc2222"FB:Honkey2` .c#TWb 5c#:cb "c' Db" 5c# _bcZcc8bcZcc8cccc22220 FB:Pfbell b.?(c#:?b (c#"cb"?.c#: ;b?.c#RcbcZcc8bcZcc8cccc2222 0 FB:PfVibe b46acIP+b?;c^8cb6Nc^:Xb?;c^:cbcZcc8bcZcc8cccc2222 0FB:NewEP2 X5cVT+IX+".cZRcR"cZT\R(cZ$cbcZcc8bcZcc8cccc2222"0FB:NewEP3 bccc$Cab;c^Jc_.cV<*IX";cVTcbcZcc8bcZcc8cccc2222! FB:NewEP4 _5cVT?I_+".cZJcR"cZTYR(cZ$cbcZcc8bcZcc8cccc2222" FB:NewEP5 b9ccE88Ib4(cI8@b<Ac<8%b];cc<cbcZcc8bcZcc8cccc2222"0FB:EPiano1b. Hc4THIb.;c@2RbcZcc8U6ccE:cb5cV:cbcZcc8cccc2222 FB:EPiano2R]5c8TH[5cZVRU?5c'TRI[5c^V\bcZcc8bcZcc8cccc2222! FB:EPiano3aB1"cV<Q9bb "cc Dbb (ccPDb%.c^4bbcZcc8bcZcc8cccc2222 0FB:EPiano4R<cc8>>)[cc8>9R.(c8<Rb.cV< cbcZcc8bcZcc8cccc2222!0FB:EPiano5b+ .c#:7b% cc# cb" 5c#8 Pb"G;c# cbcZcc8bcZcc8cccc22220 FB:HighTinb? .c#: VIb< cc# cIb" 5c#: _b"G;c'"cbcZcc8bcZcc8cccc2222 0FB:HardTinb+9.cZ<@)_?(cV:2b1 Tcc8Wb< ;c^:cbcZcc8bcZcc8cccc22220 FB:PercPf b. ;c/8 Nb% ;c#"bb ;cc: Kb% ;c#:bbcZcc8bcZcc8cccc2222 0FB:WoodPf b(c^TW cZ$ZR.""cQT@R(cZ$cbcZcc8bcZcc8cccc2222!0FB:EPStrng%5cZRN5 (cZ$cR.""cQTAR(cZ$cbcZcc8bcZcc8cccc2222"@ FB:EPBrassb%"cZ:9bb (cc:Xb "cV:OX9%Ncc:bbcZcc8bcZcc8cccc2222"FB:Clav2 b  c#BE IUW cZ@ Tb] cVLXXZ5cV<cbcZcc8bcZcc8cccc2222"FB:Clav3 b+"ccI<K b9.cc8E b."(cc8VaE"Tc^:cbcZcc8bcZcc8cccc2222"0FB:Clav4 b]AcVLVb Tc#DHbZAcZ(ab]AcV<cbcZcc8bcZcc8cccc2222"FB:FuzzClvb + c#TE IUW6 cZ@Tb]( cVLXXB65cV:cbcZcc8bcZcc8cccc2222"FB:MuteClvb + c#TEU%6c#@TbH( c#LcX16Hc#:cbcZcc8bcZcc8cccc2222"FB:MuteCl2"%5cZR ^b"c^V R a.cVT LbEcc^RcbcZcc8bcZcc8cccc2222"0FB:SynClv1b5c#VAb5ccPJb5c^P[b6TcQVcbcZcc8bcZcc8cccc2222"0FB:SynClv2bE.cMFRb..cc8O"HcE:cbTcZ4cbcZcc8bcZcc8cccc2222"0FB:SynClv3LHcV8RLHcV8cLHcV8\LHcV8RbcZcc8bcZcc8cccc2222"0FB:SynClv4b< cZFcU".cV,_b4 cZFcU".cV4abcZcc8bcZcc8cccc2222"$FB:Harpsi2bbHcZ<VbT"cZ \b` HcZ>PbW(cZ> cbcZcc8bcZcc8cccc2222" FB:Harpsi3_B cZ, cU"(cVTc<9 cZN cU"(cVD^bcZcc8bcZcc8cccc2222"FB:Harpsi4bQ.cZF\bQ;c^:Nb.c^8Hb (cZ4cbcZcc8bcZcc8cccc2222"FB:Harpsi5bK..c#8Z Ib19"c#<\ab ccc8(?b Ncc8bbcZcc8bcZcc8cccc2222"PFB:Circust[] .c'"MIb( .c'Rcb9 .c'R<b1 "c' cbcZcc8bcZcc8cccc2222!0$FB:Celeste? (c^ Lb+ HccPEb (cc H8b HccPbbcZcc8bcZcc8cccc2222 !PFB:Squeezehexter-1.0.2/Makefile.am0000644000076400007640000000105511757613235012011 00000000000000## Process this file with automake to produce Makefile.in SUBDIRS = src EXTRA_DIST = \ autogen.sh \ extra/tx_edit.c \ extra/default_patches.dx7 \ extra/dx7_roms.dx7 \ extra/fb01_roms_converted_12.dx7 \ extra/fb01_roms_converted_34.dx7 \ extra/fb01_roms_converted_5.dx7 \ extra/tx7_roms.dx7 \ fptest/Makefile \ fptest/harness.c \ fptest/wrapper.h dist_pkgdata_DATA = extra/dx7_roms.dx7 \ extra/fb01_roms_converted_12.dx7 \ extra/fb01_roms_converted_34.dx7 \ extra/fb01_roms_converted_5.dx7 \ extra/tx7_roms.dx7 AUTOMAKE_OPTIONS = foreign hexter-1.0.2/Makefile.in0000644000076400007640000006106012046775663012032 00000000000000# 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, 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ 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 install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(dist_pkgdata_DATA) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \ ChangeLog INSTALL TODO 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__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 = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = 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)$(pkgdatadir)" DATA = $(dist_pkgdata_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ 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@ FGREP = @FGREP@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MODULE_CFLAGS = @MODULE_CFLAGS@ MODULE_LIBS = @MODULE_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ READLINE_LIBS = @READLINE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ 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_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@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = src EXTRA_DIST = \ autogen.sh \ extra/tx_edit.c \ extra/default_patches.dx7 \ extra/dx7_roms.dx7 \ extra/fb01_roms_converted_12.dx7 \ extra/fb01_roms_converted_34.dx7 \ extra/fb01_roms_converted_5.dx7 \ extra/tx7_roms.dx7 \ fptest/Makefile \ fptest/harness.c \ fptest/wrapper.h dist_pkgdata_DATA = extra/dx7_roms.dx7 \ extra/fb01_roms_converted_12.dx7 \ extra/fb01_roms_converted_34.dx7 \ extra/fb01_roms_converted_5.dx7 \ extra/tx7_roms.dx7 AUTOMAKE_OPTIONS = foreign all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-dist_pkgdataDATA: $(dist_pkgdata_DATA) @$(NORMAL_INSTALL) test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" @list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || 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_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ done uninstall-dist_pkgdataDATA: @$(NORMAL_UNINSTALL) @list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ 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: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) 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)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(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 -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -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)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-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 $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ 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) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && 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: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkgdatadir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: 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) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dist_pkgdataDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-dist_pkgdataDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-libtool distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-dist_pkgdataDATA install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-dist_pkgdataDATA # 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: hexter-1.0.2/INSTALL0000644000076400007640000003634011467330777011020 00000000000000Installation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 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 configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for 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 those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and 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. 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 also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 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. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you 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 `..'. 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 `/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', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. 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. 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'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. 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 `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' 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' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--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. hexter-1.0.2/AUTHORS0000644000076400007640000000526012041434545011017 00000000000000 hexter ====== A Yamaha DX7 modeling software synthesizer for the DSSI Soft Synth Interface hexter is written and maintained by Sean Bolton. It is copyright (c) 2012 under the GNU General Public License, version 2 or later. Bug reports, kudos, and job offers (seriously!) should go directly to Sean at the email address: sean /at/ smbolton /dot/ com hexter includes code taken from the following sources: The sound generation code descends most directly from Juan Linietsky's rx-saturno, copyright (c) 2002 under the GNU General Public License version 2. Major portions of the event handling code are derived from Fluidsynth, copyright (c) 2003 Peter Hanappe and others, under the GNU General Public License version 2. Portions of the DSSI interface and OSC handling code come from Chris Cannam and Steve Harris's public domain DSSI example code. The ALSA MIDI input is based on specimen, copyright (c) 2004 Pete Bessman under the GNU General Public License version 2. The following people have assisted in hexter's development: Jamie Bullock's enthusiasm and help with reverse engineering made the LFO and modulation code happen. Jamie also contributed the NRPN support. Martin Tarenskeen contributed improvements to hexter's DX7 patch loading code. hexter is also very much the result of an ongoing cumulative effort by a large number of DX7 and synthesis enthusiasts, including: - John Chowning, who invented FM synthesis, and told us about it in (among other places) "The Synthesis of Complex Audio Spectra by Means of Frequency Modulation", JAES 21:526-534, 1973. - Yamaha, who made my beloved TX7s and KX88. - Chowning and Dave Bristow published "FM Theory and Applications", which I never obtained, but is cited by many of the other sources I used, such as: - T. Yala Abdullah's website explaining OL-to-TL conversions and modulation indices. - Russell Pinkston, Jeff Harrington, Doug Walter, and Sylvain Marchand, creators of the dx72csnd DX7-to-csound patch converter and orchestra files, upon which much of subsequent emulation efforts has been based. - Godric Wilkie, who supplied pitch envelope timings (http://www.gozen.demon.co.uk/godric/synth/yam.html). - Bo Tomlyn and his "Programming the DX7" article. - Howard Massey and his "Tricks and Traps of the DX7" article. - Members of the Linux Audio Developers list, for much wisdom regarding digital audio and synthesis. Thanks everybody! Ain't open source great? hexter-1.0.2/configure0000755000076400007640000153765512046775664011720 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68 for hexter 1.0.2. # # Report bugs to . # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 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. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # 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_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 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 export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # 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 # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. 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 IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # 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. 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 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_echo "$0: Please tell bug-autoconf@gnu.org and $0: sean-at-smbolton-dot-com about your system, including $0: any error possibly output before this message. Then $0: install a modern shell, or manually run the script $0: under such a shell if you do have one." fi 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 if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # 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 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; } # 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 } 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 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 (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 as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # 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` # # 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='hexter' PACKAGE_TARNAME='hexter' PACKAGE_VERSION='1.0.2' PACKAGE_STRING='hexter 1.0.2' PACKAGE_BUGREPORT='sean-at-smbolton-dot-com' PACKAGE_URL='' ac_unique_file="src/hexter.c" # 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 DARWIN_FALSE DARWIN_TRUE ALSA_LIBS ALSA_CFLAGS MODULE_LIBS MODULE_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH BUILD_GTKUI_FALSE BUILD_GTKUI_TRUE BUILD_TEXTUI_FALSE BUILD_TEXTUI_TRUE READLINE_LIBS GTK_LIBS GTK_CFLAGS PKG_CONFIG 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='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_static enable_shared with_pic enable_fast_install with_gnu_ld with_sysroot enable_libtool_lock with_textui with_gtk2 enable_gtktest enable_floating_point ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR MODULE_CFLAGS MODULE_LIBS ALSA_CFLAGS ALSA_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 hexter 1.0.2 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/hexter] --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 hexter 1.0.2:";; 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-static[=PKGS] build static libraries [default=no] --enable-shared[=PKGS] build shared libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-gtktest do not try to compile and run a test GTK+ program --enable-floating-point enable floating point rendering, instead of fixed point, default=no 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). --with-textui build text-only user interface --with-gtk2 build GTK+ 2.0 user interface 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 MODULE_CFLAGS C compiler flags for MODULE, overriding pkg-config MODULE_LIBS linker flags for MODULE, overriding pkg-config ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config ALSA_LIBS linker flags for ALSA, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF 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 hexter configure 1.0.2 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 sean-at-smbolton-dot-com ## ## --------------------------------------- ##" ) | 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 hexter $as_me 1.0.2, 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 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='hexter' VERSION='1.0.2' 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" 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 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 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 # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=no fi # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi 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 --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 _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi 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 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save 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* 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 test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) 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 { $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* fi { $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 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 lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # 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" 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; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $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; } { $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 { $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 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 ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | 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 ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | 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' 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 ;; 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 ;; 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # 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 ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $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 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 ;; 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 # 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. 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 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. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : 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 fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then 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. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : 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 fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' 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 ;; 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 ;; bsdi[45]*) export_dynamic_flag_spec=-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 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 ;; darwin* | rhapsody*) 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 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}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $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 ;; 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 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; 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 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_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 ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; 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 ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && 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=: ;; 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' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; 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 ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${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 ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # 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* 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 fi ;; esac { $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 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}' 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 ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; 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 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 main () { ; return 0; } _ACEOF 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 fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi 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 { $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 # 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 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 { $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 dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else 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 lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) 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. */ /* 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 ac_cv_lib_dld_shl_load=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_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. */ /* 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 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. */ /* 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_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. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else 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 fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $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 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 # 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=$? $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* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $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" #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=$? $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* 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 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 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 ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; 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" ac_config_commands="$ac_config_commands libtool" # Only expand once: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if ${ac_cv_c_bigendian+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no 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 if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no 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 if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=yes 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_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac # Check whether --with-textui was given. if test "${with_textui+set}" = set; then : withval=$with_textui; if test $withval = "yes"; then with_textui=yes ; else with_textui=no ; fi else with_textui=no fi # Check whether --with-gtk2 was given. if test "${with_gtk2+set}" = set; then : withval=$with_gtk2; if test $withval = "yes"; then try_gtk2=yes ; else try_gtk2=no ; fi else try_gtk2=yes fi if test "x${try_gtk2}" = 'xyes'; then # Check whether --enable-gtktest was given. if test "${enable_gtktest+set}" = set; then : enableval=$enable_gtktest; else enable_gtktest=yes fi pkg_config_args=gtk+-2.0 for module in . do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" # 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_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 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $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 if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version 0.7 ; then : else echo "*** pkg-config too old; version 0.7 or better required." no_gtk=yes PKG_CONFIG=no fi else no_gtk=yes fi min_gtk_version=2.4.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; } if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" enable_gtktest=no fi if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then : else no_gtk=yes fi fi if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" rm -f conf.gtktest if test "$cross_compiling" = yes; then : echo $ac_n "cross compiling; assumed OK... $ac_c" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; fclose (fopen ("conf.gtktest", "w")); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else no_gtk=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } with_gtk2=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://pkgconfig.sourceforge.net" else if test -f conf.gtktest ; then : else echo "*** Could not run GTK+ test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK+ or finding the wrong" echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" with_gtk2=no fi rm -f conf.gtktest fi if test "x${with_gtk2}" = 'xyes'; then $as_echo "#define BUILD_GTKUI 1" >>confdefs.h fi if test "x${with_textui}" = 'xyes'; then ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" if test "x$ac_cv_header_readline_readline_h" = xyes; then : else as_fn_error $? "error: no readline.h found" "$LINENO" 5 fi ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" if test "x$ac_cv_header_readline_history_h" = xyes; then : else as_fn_error $? "error: no history.h found" "$LINENO" 5 fi READLINE_LIBS='' { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 $as_echo_n "checking for readline in -lreadline... " >&6; } if ${ac_cv_lib_readline_readline+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline -lcurses $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 readline (); int main () { return readline (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_readline_readline=yes else ac_cv_lib_readline_readline=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_readline_readline" >&5 $as_echo "$ac_cv_lib_readline_readline" >&6; } if test "x$ac_cv_lib_readline_readline" = xyes; then : READLINE_LIBS='-lreadline -lcurses' fi if test "x$READLINE_LIBS" = 'x'; then unset ac_cv_lib_readline_readline { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 $as_echo_n "checking for readline in -lreadline... " >&6; } if ${ac_cv_lib_readline_readline+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lreadline -ltermcap $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 readline (); int main () { return readline (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_readline_readline=yes else ac_cv_lib_readline_readline=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_readline_readline" >&5 $as_echo "$ac_cv_lib_readline_readline" >&6; } if test "x$ac_cv_lib_readline_readline" = xyes; then : READLINE_LIBS='-lreadline -ltermcap' fi fi if test "x$READLINE_LIBS" = 'x'; then as_fn_error $? "error: could not link readline libraries" "$LINENO" 5 fi $as_echo "#define BUILD_TEXTUI 1" >>confdefs.h fi if test "x${with_textui}" = 'xyes'; then BUILD_TEXTUI_TRUE= BUILD_TEXTUI_FALSE='#' else BUILD_TEXTUI_TRUE='#' BUILD_TEXTUI_FALSE= fi if test "x${with_gtk2}" = 'xyes'; then BUILD_GTKUI_TRUE= BUILD_GTKUI_FALSE='#' else BUILD_GTKUI_TRUE='#' BUILD_GTKUI_FALSE= fi # Check whether --enable-floating-point was given. if test "${enable_floating_point+set}" = set; then : enableval=$enable_floating_point; if test $enableval = "yes"; then $as_echo "#define HEXTER_USE_FLOATING_POINT 1" >>confdefs.h fi else enable_floating_point=no fi for ac_header in ladspa.h do : ac_fn_c_check_header_mongrel "$LINENO" "ladspa.h" "ac_cv_header_ladspa_h" "$ac_includes_default" if test "x$ac_cv_header_ladspa_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LADSPA_H 1 _ACEOF fi done 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 ;; 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 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 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 MODULE" >&5 $as_echo_n "checking for MODULE... " >&6; } if test -n "$MODULE_CFLAGS"; then pkg_cv_MODULE_CFLAGS="$MODULE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dssi >= 0.4 liblo >= 0.12\""; } >&5 ($PKG_CONFIG --exists --print-errors "dssi >= 0.4 liblo >= 0.12") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MODULE_CFLAGS=`$PKG_CONFIG --cflags "dssi >= 0.4 liblo >= 0.12" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$MODULE_LIBS"; then pkg_cv_MODULE_LIBS="$MODULE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dssi >= 0.4 liblo >= 0.12\""; } >&5 ($PKG_CONFIG --exists --print-errors "dssi >= 0.4 liblo >= 0.12") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MODULE_LIBS=`$PKG_CONFIG --libs "dssi >= 0.4 liblo >= 0.12" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi 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 MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dssi >= 0.4 liblo >= 0.12" 2>&1` else MODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "dssi >= 0.4 liblo >= 0.12" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$MODULE_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (dssi >= 0.4 liblo >= 0.12) were not met: $MODULE_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables MODULE_CFLAGS and MODULE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables MODULE_CFLAGS and MODULE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else MODULE_CFLAGS=$pkg_cv_MODULE_CFLAGS MODULE_LIBS=$pkg_cv_MODULE_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi case "${host_os}" in darwin*) darwin=yes pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 $as_echo_n "checking for ALSA... " >&6; } if test -n "$ALSA_CFLAGS"; then pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdssialsacompat\""; } >&5 ($PKG_CONFIG --exists --print-errors "libdssialsacompat") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "libdssialsacompat" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ALSA_LIBS"; then pkg_cv_ALSA_LIBS="$ALSA_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdssialsacompat\""; } >&5 ($PKG_CONFIG --exists --print-errors "libdssialsacompat") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "libdssialsacompat" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi 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 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdssialsacompat" 2>&1` else ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdssialsacompat" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ALSA_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libdssialsacompat) were not met: $ALSA_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables ALSA_CFLAGS and ALSA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables ALSA_CFLAGS and ALSA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS ALSA_LIBS=$pkg_cv_ALSA_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi $as_echo "#define MIDI_COREMIDI 1" >>confdefs.h ;; freebsd*) darwin=no pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 $as_echo_n "checking for ALSA... " >&6; } if test -n "$ALSA_CFLAGS"; then pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdssialsacompat\""; } >&5 ($PKG_CONFIG --exists --print-errors "libdssialsacompat") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "libdssialsacompat" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ALSA_LIBS"; then pkg_cv_ALSA_LIBS="$ALSA_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdssialsacompat\""; } >&5 ($PKG_CONFIG --exists --print-errors "libdssialsacompat") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "libdssialsacompat" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi 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 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdssialsacompat" 2>&1` else ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdssialsacompat" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ALSA_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libdssialsacompat) were not met: $ALSA_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables ALSA_CFLAGS and ALSA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables ALSA_CFLAGS and ALSA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS ALSA_LIBS=$pkg_cv_ALSA_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi ;; *) darwin=no pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 $as_echo_n "checking for ALSA... " >&6; } if test -n "$ALSA_CFLAGS"; then pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$ALSA_LIBS"; then pkg_cv_ALSA_LIBS="$ALSA_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi 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 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` else ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ALSA_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (alsa) were not met: $ALSA_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables ALSA_CFLAGS and ALSA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables ALSA_CFLAGS and ALSA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS ALSA_LIBS=$pkg_cv_ALSA_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi $as_echo "#define MIDI_ALSA 1" >>confdefs.h ;; esac if test x$darwin = xyes; then DARWIN_TRUE= DARWIN_FALSE='#' else DARWIN_TRUE='#' DARWIN_FALSE= fi CFLAGS="$CFLAGS $ALSA_CFLAGS $MODULE_CFLAGS" LDFLAGS="$LDFLAGS $MODULE_LIBS" if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wall" ;; esac case " $CFLAGS " in *[\ \ ]-O[1-9][\ \ ]*) ;; *) CFLAGS="$CFLAGS -O2" ;; esac case " $CFLAGS " in *[\ \ ]-ffast-math[\ \ ]*) ;; *) CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-loops -finline-functions -ffast-math -Winline" # add '-finline-limit=...' only for GCC 3.x and 4.x: case `$CC -dumpversion 2>/dev/null` in # these --params are also in 3.4.6, but not in 3.3.6 4.*) CFLAGS="$CFLAGS -finline-limit=5000 --param large-function-growth=4900 --param inline-unit-growth=900" ;; 3.*) CFLAGS="$CFLAGS -finline-limit=5000" ;; esac ;; esac fi ac_config_files="$ac_config_files Makefile src/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $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=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then 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 { $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 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= 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=`$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. 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 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 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_TEXTUI_TRUE}" && test -z "${BUILD_TEXTUI_FALSE}"; then as_fn_error $? "conditional \"BUILD_TEXTUI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_GTKUI_TRUE}" && test -z "${BUILD_GTKUI_FALSE}"; then as_fn_error $? "conditional \"BUILD_GTKUI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then as_fn_error $? "conditional \"DARWIN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $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. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} 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 : 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_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 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 export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # 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 # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. 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 IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # 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. 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 if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # 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 #((((( -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 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 (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 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='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 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 hexter $as_me 1.0.2, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF 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" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$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 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --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 Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ hexter config.status 1.0.2 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" 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." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF 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 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $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 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 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 as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $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. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then 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 "\$@" fi _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 $as_echo "$ac_log" } >&5 _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' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $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 || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do 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" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 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 -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # 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 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 { 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 . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 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 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 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 = "" } { 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 } print line } _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 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[ ]*=[ ]*/{ 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 || 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. 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*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$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 `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac 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 '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $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 >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_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"; as_fn_mkdir_p 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 case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || 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= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $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 || 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' ;; 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 || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 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 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$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' "$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 "$ac_tmp/stdin" case $ac_file in -) 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 # if test x"$ac_file" != x-; then { $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 "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # 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 $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $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"" || { # 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 || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_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; as_fn_mkdir_p # 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 # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # 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 as_fn_exit 0 _ACEOF 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. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || 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 echo "====== hexter ${PACKAGE_VERSION} configured ======" echo "Floating point render enabled: $enable_floating_point" echo "Building GTK 2.0 user interface: $with_gtk2" echo "Building text-only user interface: $with_textui" hexter-1.0.2/install-sh0000755000076400007640000003253711502037461011757 00000000000000#!/bin/sh # install - install a program, script, or datafile 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 # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: hexter-1.0.2/depcomp0000755000076400007640000004426711502037461011333 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # 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 # 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. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi 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 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift 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/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || 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 shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -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" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$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 "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: hexter-1.0.2/autogen.sh0000755000076400007640000000133711757613235011761 00000000000000#!/bin/sh WANT_AUTOMAKE=1.7 export WANT_AUTOMAKE case `uname -s` in Linux) LIBTOOLIZE=libtoolize ACLOCALARGS='' ;; Darwin) LIBTOOLIZE=glibtoolize ACLOCALARGS='-I /usr/local/share/aclocal' ;; *) echo error: unrecognized OS exit ;; esac echo "=============== running libtoolize --force --copy" && $LIBTOOLIZE --force --copy && echo "=============== running aclocal" && aclocal $ACLOCALARGS && echo "=============== running autoheader" && autoheader && echo "=============== running automake --add-missing --foreign" && automake --add-missing --foreign && echo "=============== running autoconf" && autoconf && echo "=============== done" hexter-1.0.2/fptest/0000755000076400007640000000000012046775671011346 500000000000000hexter-1.0.2/fptest/Makefile0000644000076400007640000000252311757613235012723 00000000000000CC=gcc CFLAGS=-Wall -O2 -g -fomit-frame-pointer -funroll-loops -finline-functions -ffast-math -Winline \ -finline-limit=5000 --param large-function-growth=4900 --param inline-unit-growth=900 \ -I../src OS=$(shell uname) ifeq ($(OS),Darwin) DSSI_CFLAGS=`pkg-config dssi libdssialsacompat --cflags` LDFLAGS=-lm `pkg-config dssi libdssialsacompat --libs` else DSSI_CFLAGS=`pkg-config dssi alsa --cflags` LDFLAGS=-lm -lpthread `pkg-config dssi alsa --libs` endif DEPS = wrapper.h ../src/dx7_voice.h ../src/dx7_voice_data.h ../src/hexter.h \ ../src/hexter_synth.h ../src/hexter_types.h OBJ = dx7_voice_fix.o dx7_voice_data_fix.o \ dx7_voice_render_fix.o dx7_voice_tables_fix.o \ hexter_fix.o hexter_synth_fix.o \ dx7_voice_float.o dx7_voice_data_float.o \ dx7_voice_render_float.o dx7_voice_tables_float.o \ hexter_float.o hexter_synth_float.o \ dx7_voice_patches.o \ harness.o %_fix.o: ../src/%.c $(DEPS) $(CC) $(CFLAGS) $(DSSI_CFLAGS) -c -o $@ $< -include wrapper.h %_float.o: ../src/%.c $(DEPS) $(CC) $(CFLAGS) $(DSSI_CFLAGS) -DHEXTER_USE_FLOATING_POINT -c -o $@ $< -include wrapper.h %.o: ../src/%.c $(DEPS) $(CC) $(CFLAGS) $(DSSI_CFLAGS) -c -o $@ $< fptest: $(OBJ) $(CC) -o $@ $^ $(LDFLAGS) harness.o: harness.c $(DEPS) $(CC) $(CFLAGS) $(DSSI_CFLAGS) -c -o $@ $< .PHONY: clean clean: rm fptest *.o hexter-1.0.2/fptest/harness.c0000644000076400007640000001414411757613235013074 00000000000000/* hexter fixed-point/floating-point speed test harness * * Copyright (C) 2011 Sean Bolton. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #include #include #include #include #include #include #include #include "hexter_types.h" #include "hexter.h" #define VERSION "0.1" #define SAMPLE_RATE 44100 #define FIX 0 #define FLOAT 1 /* in hexter.c: */ const DSSI_Descriptor *dssi_descriptor_fix(unsigned long index); const DSSI_Descriptor *dssi_descriptor_float(unsigned long index); static const DSSI_Descriptor *descriptor[2]; static LADSPA_Handle handle[2]; static float output[HEXTER_NUGGET_SIZE]; static float port[3] = { 0.0f, 440.0f, -12.0f }; static int samples[2], note[2], delay[2]; static snd_seq_event_t event; static snd_seq_event_t *events[1] = { &event }; static unsigned long nevents[2] = { 0, 1 }; static struct rusage before, after; static double usage[2]; void setup_plugin(int index, const DSSI_Descriptor *d) { char *err; /* instantiate */ handle[index] = d->LADSPA_Plugin->instantiate(d->LADSPA_Plugin, SAMPLE_RATE); if (handle[index] == NULL) { printf("instantiate() failed for %d!\n", index); exit(1); } /* connect ports */ d->LADSPA_Plugin->connect_port(handle[index], HEXTER_PORT_OUTPUT, output); d->LADSPA_Plugin->connect_port(handle[index], HEXTER_PORT_TUNING, port + 1); d->LADSPA_Plugin->connect_port(handle[index], HEXTER_PORT_VOLUME, port + 2); /* activate */ d->LADSPA_Plugin->activate(handle[index]); /* configure */ err = d->configure(handle[index], DSSI_GLOBAL_CONFIGURE_PREFIX "polyphony", "32"); if (err) { printf("configure(..., \"" DSSI_GLOBAL_CONFIGURE_PREFIX "polyphony\", \"32\") failed for %d\n", index); exit(1); } err = d->configure(handle[index], "polyphony", "32"); if (err) { printf("configure(..., \"polyphony\", \"32\") failed for %d\n", index); exit(1); } /* select program */ d->select_program(handle[index], 0, 0); } void run_plugin(int i, int count) { while (samples[i] < count) { int start_note = 0; if (samples[i] >= delay[i]) { start_note = 1; event.data.note.note = note[i]; // printf("starting note %d at %d for index %d\n", note[i], samples[i], i); note[i] += 2; if (note[i] > 100) note[i] = 36; delay[i] += SAMPLE_RATE / 8; } if (start_note) { descriptor[i]->run_multiple_synths(1, &handle[i], HEXTER_NUGGET_SIZE, events, &nevents[1]); } else { descriptor[i]->run_multiple_synths(1, &handle[i], HEXTER_NUGGET_SIZE, events, &nevents[0]); } samples[i] += HEXTER_NUGGET_SIZE; } } int main(int argc, char **argv) { int i, n; printf("hexter fixed-point/floating-point speed test, version " VERSION ".\n"); printf("testing 32 voices for 20 seconds at %d samples/second.\n", SAMPLE_RATE); /* get descriptors */ descriptor[FIX] = dssi_descriptor_fix(0); if (descriptor[FIX] == NULL) { printf("dssi_descriptor_fix() failed!\n"); exit(1); } descriptor[FLOAT] = dssi_descriptor_float(0); if (descriptor[FLOAT] == NULL) { printf("dssi_descriptor_float() failed!\n"); exit(1); } setup_plugin(FIX, descriptor[FIX]); setup_plugin(FLOAT, descriptor[FLOAT]); event.type = SND_SEQ_EVENT_NOTEON; event.data.note.channel = 0; event.data.note.velocity = 80; event.time.tick = 0; for (i = 0; i < 2; i++) { samples[i] = 0; note[i] = 36; delay[i] = 0; usage[i] = 0.0; } printf("priming voices and cache...\n"); for (n = 1; n <= 4; n++) { printf(" %d\n", n); for (i = 0; i < 2; i++) { run_plugin(i, n * SAMPLE_RATE); } } printf("timing run...\n"); for (n = 6; n <= 24; n += 2) { double run[2]; for (i = 0; i < 2; i++) { getrusage(RUSAGE_SELF, &before); run_plugin(i, n * SAMPLE_RATE); getrusage(RUSAGE_SELF, &after); run[i] = ((double)after.ru_utime.tv_sec + (double)after.ru_utime.tv_usec / 1000000.0 + (double)after.ru_stime.tv_sec + (double)after.ru_stime.tv_usec / 1000000.0) - ((double)before.ru_utime.tv_sec + (double)before.ru_utime.tv_usec / 1000000.0 + (double)before.ru_stime.tv_sec + (double)before.ru_stime.tv_usec / 1000000.0); usage[i] += run[i]; } printf(" %d: run: %f fix, %f float, %5.1f%%, total: %f fix, %f float\n", n, run[FIX], run[FLOAT], 100.0 * run[FIX] / run[FLOAT], usage[FIX], usage[FLOAT]); } if (usage[FIX] > usage[FLOAT]) { printf("On this system, with this compilation, it seems that floating point is faster:\n"); printf(" seconds ratio\n"); printf("Fixed point: %7f %5.1f%%\n", usage[FIX], 100.0); printf("Floating point: %7f %5.1f%%\n", usage[FLOAT], 100.0 * usage[FLOAT] / usage[FIX]); } else { printf("On this system, with this compilation, it seems that fixed point is faster:\n"); printf(" seconds ratio\n"); printf("Fixed point: %7f %5.1f%%\n", usage[FIX], 100.0 * usage[FIX] / usage[FLOAT]); printf("Floating point: %7f %5.1f%%\n", usage[FLOAT], 100.0); } return 0; } hexter-1.0.2/fptest/wrapper.h0000644000076400007640000002014211757613235013111 00000000000000/* nm hexter_fix.o | * perl -n -e 'if (/ [CDT] _(.*)$/) { printf "#define %-40s FP_TAG(%s)\n", $1, $1; }' >>wrapper.h */ #ifndef HEXTER_USE_FLOATING_POINT #define FP_TAG(x) x##_fix #else /* HEXTER_USE_FLOATING_POINT */ #define FP_TAG(x) x##_float #endif /* HEXTER_USE_FLOATING_POINT */ /* some things from config.h: */ #define VERSION " fptest" /* in dx7_voice.c: */ #define dx7_eg_init_constants FP_TAG(dx7_eg_init_constants) #define dx7_lfo_reset FP_TAG(dx7_lfo_reset) #define dx7_lfo_set FP_TAG(dx7_lfo_set) #define dx7_lfo_set_speed_x FP_TAG(dx7_lfo_set_speed_x) #define dx7_lfo_update FP_TAG(dx7_lfo_update) #define dx7_op_eg_set_increment FP_TAG(dx7_op_eg_set_increment) #define dx7_op_eg_set_next_phase FP_TAG(dx7_op_eg_set_next_phase) #define dx7_op_eg_set_phase FP_TAG(dx7_op_eg_set_phase) #define dx7_op_envelope_prepare FP_TAG(dx7_op_envelope_prepare) #define dx7_op_recalculate_increment FP_TAG(dx7_op_recalculate_increment) #define dx7_pitch_eg_set_increment FP_TAG(dx7_pitch_eg_set_increment) #define dx7_pitch_eg_set_next_phase FP_TAG(dx7_pitch_eg_set_next_phase) #define dx7_pitch_eg_set_phase FP_TAG(dx7_pitch_eg_set_phase) #define dx7_pitch_envelope_prepare FP_TAG(dx7_pitch_envelope_prepare) #define dx7_portamento_prepare FP_TAG(dx7_portamento_prepare) #define dx7_portamento_set_segment FP_TAG(dx7_portamento_set_segment) #define dx7_voice_calculate_runtime_parameters FP_TAG(dx7_voice_calculate_runtime_parameters) #define dx7_voice_new FP_TAG(dx7_voice_new) #define dx7_voice_note_off FP_TAG(dx7_voice_note_off) #define dx7_voice_note_on FP_TAG(dx7_voice_note_on) #define dx7_voice_recalculate_freq_and_inc FP_TAG(dx7_voice_recalculate_freq_and_inc) #define dx7_voice_recalculate_frequency FP_TAG(dx7_voice_recalculate_frequency) #define dx7_voice_recalculate_volume FP_TAG(dx7_voice_recalculate_volume) #define dx7_voice_release_note FP_TAG(dx7_voice_release_note) #define dx7_voice_set_data FP_TAG(dx7_voice_set_data) #define dx7_voice_set_phase FP_TAG(dx7_voice_set_phase) #define dx7_voice_setup_note FP_TAG(dx7_voice_setup_note) #define dx7_voice_update_mod_depths FP_TAG(dx7_voice_update_mod_depths) /* in dx7_voice_data.c: */ #define base64 FP_TAG(base64) #define decode_7in6 FP_TAG(decode_7in6) #define dssp_error_message FP_TAG(dssp_error_message) #define dx7_bulk_dump_checksum FP_TAG(dx7_bulk_dump_checksum) #define dx7_init_performance FP_TAG(dx7_init_performance) #define dx7_patch_pack FP_TAG(dx7_patch_pack) #define dx7_patch_unpack FP_TAG(dx7_patch_unpack) #define dx7_patchbank_load FP_TAG(dx7_patchbank_load) #define dx7_voice_copy_name FP_TAG(dx7_voice_copy_name) #define dx7_voice_init_voice FP_TAG(dx7_voice_init_voice) #define hexter_data_patches_init FP_TAG(hexter_data_patches_init) #define hexter_data_performance_init FP_TAG(hexter_data_performance_init) /* in dx7_voice_render.c: */ #define dx7_voice_render FP_TAG(dx7_voice_render) /* in dx7_voice_tables.c: */ #define dx7_voice_amd_to_ol_adjustment FP_TAG(dx7_voice_amd_to_ol_adjustment) #define dx7_voice_carrier_count FP_TAG(dx7_voice_carrier_count) #define dx7_voice_carriers FP_TAG(dx7_voice_carriers) #define dx7_voice_eg_ol_to_mod_index FP_TAG(dx7_voice_eg_ol_to_mod_index) #define dx7_voice_eg_ol_to_mod_index_table FP_TAG(dx7_voice_eg_ol_to_mod_index_table) #define dx7_voice_eg_rate_decay_duration FP_TAG(dx7_voice_eg_rate_decay_duration) #define dx7_voice_eg_rate_decay_percent FP_TAG(dx7_voice_eg_rate_decay_percent) #define dx7_voice_eg_rate_rise_duration FP_TAG(dx7_voice_eg_rate_rise_duration) #define dx7_voice_eg_rate_rise_percent FP_TAG(dx7_voice_eg_rate_rise_percent) #define dx7_voice_init_tables FP_TAG(dx7_voice_init_tables) #define dx7_voice_lfo_frequency FP_TAG(dx7_voice_lfo_frequency) #define dx7_voice_mss_to_ol_adjustment FP_TAG(dx7_voice_mss_to_ol_adjustment) #define dx7_voice_pitch_level_to_shift FP_TAG(dx7_voice_pitch_level_to_shift) #define dx7_voice_pms_to_semitones FP_TAG(dx7_voice_pms_to_semitones) #define dx7_voice_sin_table FP_TAG(dx7_voice_sin_table) #define dx7_voice_velocity_ol_adjustment FP_TAG(dx7_voice_velocity_ol_adjustment) /* in hexter.c: */ #define dssi_descriptor FP_TAG(dssi_descriptor) #define dssp_voicelist_mutex_lock FP_TAG(dssp_voicelist_mutex_lock) #define dssp_voicelist_mutex_unlock FP_TAG(dssp_voicelist_mutex_unlock) #define fini FP_TAG(fini) #define hexter_configure FP_TAG(hexter_configure) #define hexter_deactivate FP_TAG(hexter_deactivate) #define hexter_get_midi_controller FP_TAG(hexter_get_midi_controller) #define hexter_get_program FP_TAG(hexter_get_program) #define hexter_select_program FP_TAG(hexter_select_program) #define init FP_TAG(init) #define ladspa_descriptor FP_TAG(ladspa_descriptor) /* in hexter_synth.c: */ #define dx7_voice_off FP_TAG(dx7_voice_off) #define dx7_voice_start_voice FP_TAG(dx7_voice_start_voice) #define hexter_instance_all_notes_off FP_TAG(hexter_instance_all_notes_off) #define hexter_instance_all_voices_off FP_TAG(hexter_instance_all_voices_off) #define hexter_instance_channel_pressure FP_TAG(hexter_instance_channel_pressure) #define hexter_instance_control_change FP_TAG(hexter_instance_control_change) #define hexter_instance_damp_voices FP_TAG(hexter_instance_damp_voices) #define hexter_instance_handle_edit_buffer FP_TAG(hexter_instance_handle_edit_buffer) #define hexter_instance_handle_monophonic FP_TAG(hexter_instance_handle_monophonic) // #define hexter_instance_handle_nrpn FP_TAG(hexter_instance_handle_nrpn) #define hexter_instance_handle_patches FP_TAG(hexter_instance_handle_patches) #define hexter_instance_handle_performance FP_TAG(hexter_instance_handle_performance) #define hexter_instance_handle_polyphony FP_TAG(hexter_instance_handle_polyphony) #define hexter_instance_init_controls FP_TAG(hexter_instance_init_controls) #define hexter_instance_key_pressure FP_TAG(hexter_instance_key_pressure) #define hexter_instance_note_off FP_TAG(hexter_instance_note_off) #define hexter_instance_note_on FP_TAG(hexter_instance_note_on) #define hexter_instance_pitch_bend FP_TAG(hexter_instance_pitch_bend) #define hexter_instance_select_program FP_TAG(hexter_instance_select_program) #define hexter_instance_set_performance_data FP_TAG(hexter_instance_set_performance_data) #define hexter_instance_set_program_descriptor FP_TAG(hexter_instance_set_program_descriptor) // #define hexter_instance_update_fc FP_TAG(hexter_instance_update_fc) // #define hexter_instance_update_op_param FP_TAG(hexter_instance_update_op_param) #define hexter_synth FP_TAG(hexter_synth) #define hexter_synth_all_voices_off FP_TAG(hexter_synth_all_voices_off) #define hexter_synth_handle_global_polyphony FP_TAG(hexter_synth_handle_global_polyphony) #define hexter_synth_render_voices FP_TAG(hexter_synth_render_voices) hexter-1.0.2/missing0000755000076400007640000002623311502037461011346 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # 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 # 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. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # 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). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: hexter-1.0.2/config.guess0000755000076400007640000012761511502037461012275 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-11-20' # 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 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 # 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'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; 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:*:[456]) 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-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; 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="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${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-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; i*86:Linux:*:*) LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu 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-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu 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-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu 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 ;; 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: hexter-1.0.2/ltmain.sh0000755000076400007640000105017412046775660011612 00000000000000 # libtool (GNU libtool) 2.4 # Written by Gordon Matzigkeit , 1996 # 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. # 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. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --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 # # 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.4 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . # GNU libtool home page: . # General help using GNU software: . PROGRAM=libtool PACKAGE=libtool VERSION=2.4 TIMESTAMP="" package_revision=1.3293 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # 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. lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" 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"} 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="sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" 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: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_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 } # 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 # 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: func_dirname_and_basename "$progpath" progname=$func_basename_result # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=: for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution 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. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # 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: ${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: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "$my_tmpdir" } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi 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 () { $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/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $opt_debug $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" echo $ECHO "run \`$progname --help | more' for full usage" 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'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p d } /^# .* home page:/b print /^# General help using/b print ' < "$progpath" ret=$? if test -z "$1"; then exit $ret fi } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $opt_debug func_error "missing argument for $1." exit_cmd=exit } # 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=: magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. nonopt= preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "${1}=\$${1}\${2}" } # func_append may be replaced by extended shell implementation # func_append_quoted var value # Quote VALUE and append to the end of shell variable VAR, separated # by a space. func_append_quoted () { func_quote_for_eval "${2}" eval "${1}=\$${1}\\ \$func_quote_for_eval_result" } # func_append_quoted may be replaced by extended shell implementation # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "${@}"` } # func_arith may be replaced by extended shell implementation # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "${1}" : ".*" 2>/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. func_fatal_configuration () { func_error ${1+"$@"} func_error "See the $PACKAGE documentation for more information." func_fatal_error "Fatal configuration error." } # func_config # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # Display the features supported by this script. func_features () { echo "host: $host" if test "$build_libtool_libs" = yes; then echo "enable shared libraries" else echo "disable shared libraries" fi if test "$build_old_libs" = yes; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag tagname # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname="$1" re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf="/$re_begincf/,/$re_endcf/p" # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # 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 # 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 ;; # 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 # Validate options: # save first non-option argument if test "$#" -gt 0; then nonopt="$opt" shift fi # 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 () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no 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 case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { 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 # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # 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. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do 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 "* | " $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. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. 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 "* | " $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. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # 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 () { $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 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` 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_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_path_wine_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_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result="$func_cygpath_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_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $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_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result="$func_cygpath_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_nix_to_cygwin # func_mode_compile arg... func_mode_compile () { $opt_debug # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify \`-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" func_append_quoted lastarg "$arg" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj="$func_basename_result" } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 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 # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -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. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -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)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -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) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -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. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac echo $ECHO "Try \`$progname --help' for more information about other modes." } # 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... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. 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" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$opt_mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libs= libdirs= admincmds= 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. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS 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 "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 "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" 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= files= opts= prev= install_type= isdir=no stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # 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 continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" 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" && \ func_fatal_help "you must specify an install program" 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" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. 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" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" 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 "$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 # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi 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 fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus 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. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do 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 $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" 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 || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then 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 "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # 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 (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 /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_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 func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" 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 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac 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=no] # # 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 variables # set therein. # # 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 $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then 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 () { " 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 \"\$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'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # 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 PATH=$dllsearchpath:\$PATH " fi # 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 \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ 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 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #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) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #if defined(LT_DEBUGWRAPPER) static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); 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 cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_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); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 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* | *-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 # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir="$arg" prev= continue ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) 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]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # 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* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -module) module=yes continue ;; # 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|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-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" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # 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 "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" 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" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # 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*|@*|-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" func_append compiler_flags " $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. 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. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" 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" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps ; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.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 func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." else echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then 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 "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi 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" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. 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_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= 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 # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; 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="$lt_sysroot$libdir" absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" 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 # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then 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" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system can not link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi 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" 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 *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi 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 # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi 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 ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" #test "$absdir" != "$libdir" && \ # func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then 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 "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. func_append verstring ":${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= 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 | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. 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 "$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 func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) 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* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </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 | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "$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 func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" 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 " $tmp_deplibs" | $SED "s,$i,,"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test "X$deplibs_check_method" = "Xnone"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework 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 "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) 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 # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$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 # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_apped perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic 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" func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in 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 # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd1 in $cmds; do IFS="$save_ifs" # 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. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi 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 "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # 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 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 tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $convenience 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\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 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 for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done 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" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done 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..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. 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" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ 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 func_append delfiles " $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then 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 "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # 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 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 fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$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 if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" 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 "$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 $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) 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 " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" 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. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi 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 fi ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. 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}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "$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 if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "$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" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # 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 } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" func_len " $cmds" 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..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" 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" ;; -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" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac 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 | *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 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) func_append RM " $arg"; rmforce=yes ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then odir="$objdir" else odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" test "$opt_mode" = uninstall && odir="$dir" # Remember odir for removal later, being careful to avoid duplicates if test "$opt_mode" = clean; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case "$opt_mode" in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then 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 func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} 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 \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 hexter-1.0.2/config.sub0000755000076400007640000010316711502037461011734 00000000000000#! /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 # Free Software Foundation, Inc. timestamp='2009-11-20' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . 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 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 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 \ | 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 \ | 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 | tic80 | tron \ | ubicom32 \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-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-* | c54x-* | c55x-* | c6x-* \ | 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-* \ | 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-* \ | 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 ;; 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) 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 ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; 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 ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; 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-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -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 ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; 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: hexter-1.0.2/config.h.in0000644000076400007640000000463712046775671012016 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD /* Define to 1 if building the GTK user interface */ #undef BUILD_GTKUI /* Define to 1 if building the text-only user interface */ #undef BUILD_TEXTUI /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_LADSPA_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 to enable floating-point rendering. */ #undef HEXTER_USE_FLOATING_POINT /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Define for ALSA MIDI support */ #undef MIDI_ALSA /* Define for CoreMIDI MIDI support */ #undef MIDI_COREMIDI /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN # endif #endif hexter-1.0.2/aclocal.m40000644000076400007640000125607012046775662011634 00000000000000# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 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'.])]) # Configure paths for GTK+ # Owen Taylor 1997-2001 dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, dnl pass to pkg-config dnl AC_DEFUN([AM_PATH_GTK_2_0], [dnl dnl Get the cflags and libraries from pkg-config dnl AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], , enable_gtktest=yes) pkg_config_args=gtk+-2.0 for module in . $4 do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" AC_PATH_PROG(PKG_CONFIG, pkg-config, no) if test x$PKG_CONFIG != xno ; then if pkg-config --atleast-pkgconfig-version 0.7 ; then : else echo "*** pkg-config too old; version 0.7 or better required." no_gtk=yes PKG_CONFIG=no fi else no_gtk=yes fi min_gtk_version=ifelse([$1], ,2.0.0,$1) AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" enable_gtktest=no fi if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then : else no_gtk=yes fi fi if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_gtktest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$GTK_LIBS $LIBS" dnl dnl Now check if the installed GTK+ is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.gtktest AC_TRY_RUN([ #include #include #include int main () { int major, minor, micro; char *tmp_version; fclose (fopen ("conf.gtktest", "w")); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_gtk_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_gtk_version"); exit(1); } if ((gtk_major_version != $gtk_config_major_version) || (gtk_minor_version != $gtk_config_minor_version) || (gtk_micro_version != $gtk_config_micro_version)) { printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, gtk_major_version, gtk_minor_version, gtk_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((gtk_major_version != GTK_MAJOR_VERSION) || (gtk_minor_version != GTK_MINOR_VERSION) || (gtk_micro_version != GTK_MICRO_VERSION)) { printf("*** GTK+ header files (version %d.%d.%d) do not match\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", gtk_major_version, gtk_minor_version, gtk_micro_version); } else { if ((gtk_major_version > major) || ((gtk_major_version == major) && (gtk_minor_version > minor)) || ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", gtk_major_version, gtk_minor_version, gtk_micro_version); printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", major, minor, micro); printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_gtk" = x ; then AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://pkgconfig.sourceforge.net" else if test -f conf.gtktest ; then : else echo "*** Could not run GTK+ test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" AC_TRY_LINK([ #include #include ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK+ or finding the wrong" echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) rm -f conf.gtktest ]) # 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 version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; 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)?$]) 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`], [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 "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$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, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.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.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 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 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 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 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, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi 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 # 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_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 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 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # 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 } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 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 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. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.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 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) 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. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _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 # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # 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, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 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. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 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 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # 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 AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 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_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl 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= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 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 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # 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 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # 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` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 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. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR hexter-1.0.2/configure.ac0000644000076400007640000000771212046775404012250 00000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT(hexter, 1.0.2, sean-at-smbolton-dot-com) AC_CONFIG_SRCDIR(src/hexter.c) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_ENABLE_STATIC(no) AC_ENABLE_SHARED(yes) AC_PROG_LIBTOOL AC_C_BIGENDIAN AC_ARG_WITH(textui, AC_HELP_STRING([--with-textui], [build text-only user interface]), [ if test $withval = "yes"; then with_textui=yes ; else with_textui=no ; fi ], with_textui=no) AC_ARG_WITH(gtk2, AC_HELP_STRING([--with-gtk2], [build GTK+ 2.0 user interface]), [ if test $withval = "yes"; then try_gtk2=yes ; else try_gtk2=no ; fi ], try_gtk2=yes) dnl Check for GTK if test "x${try_gtk2}" = 'xyes'; then AM_PATH_GTK_2_0(2.4.0, with_gtk2=yes, with_gtk2=no) fi if test "x${with_gtk2}" = 'xyes'; then AC_DEFINE(BUILD_GTKUI, 1, Define to 1 if building the GTK user interface) fi dnl Text UI if test "x${with_textui}" = 'xyes'; then dnl Check for readline and (n)curses/termcap AC_CHECK_HEADER([readline/readline.h], , AC_MSG_ERROR([error: no readline.h found])) AC_CHECK_HEADER([readline/history.h], , AC_MSG_ERROR([error: no history.h found])) READLINE_LIBS='' AC_CHECK_LIB(readline, readline, READLINE_LIBS='-lreadline -lcurses',, [-lcurses]) if test "x$READLINE_LIBS" = 'x'; then dnl cache doesn't consider OTHER-LIBRARIES: unset ac_cv_lib_readline_readline AC_CHECK_LIB(readline, readline, READLINE_LIBS='-lreadline -ltermcap',, [-ltermcap]) fi if test "x$READLINE_LIBS" = 'x'; then AC_MSG_ERROR([error: could not link readline libraries]) fi AC_SUBST(READLINE_LIBS) AC_DEFINE(BUILD_TEXTUI, 1, Define to 1 if building the text-only user interface) fi AM_CONDITIONAL(BUILD_TEXTUI, test "x${with_textui}" = 'xyes') AM_CONDITIONAL(BUILD_GTKUI, test "x${with_gtk2}" = 'xyes') dnl floating point AC_ARG_ENABLE(floating-point, AC_HELP_STRING([--enable-floating-point], [enable floating point rendering, instead of fixed point, default=no]), [ if test $enableval = "yes"; then AC_DEFINE(HEXTER_USE_FLOATING_POINT, 1, [Define to 1 to enable floating-point rendering.]) fi ], enable_floating_point=no) dnl Check for LADSPA AC_CHECK_HEADERS(ladspa.h) dnl Require DSSI and liblo PKG_CHECK_MODULES(MODULE, dssi >= 0.4 liblo >= 0.12) dnl OS specific checks case "${host_os}" in darwin*) darwin=yes PKG_CHECK_MODULES(ALSA, libdssialsacompat) AC_DEFINE(MIDI_COREMIDI, 1, [Define for CoreMIDI MIDI support]) ;; freebsd*) darwin=no PKG_CHECK_MODULES(ALSA, libdssialsacompat) ;; *) darwin=no PKG_CHECK_MODULES(ALSA, alsa) AC_DEFINE(MIDI_ALSA, 1, [Define for ALSA MIDI support]) ;; esac AM_CONDITIONAL(DARWIN, test x$darwin = xyes) dnl Use lotsa flags if we have gcc. CFLAGS="$CFLAGS $ALSA_CFLAGS $MODULE_CFLAGS" LDFLAGS="$LDFLAGS $MODULE_LIBS" changequote(,)dnl if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wall" ;; esac case " $CFLAGS " in *[\ \ ]-O[1-9][\ \ ]*) ;; *) CFLAGS="$CFLAGS -O2" ;; esac case " $CFLAGS " in *[\ \ ]-ffast-math[\ \ ]*) ;; *) CFLAGS="$CFLAGS -fomit-frame-pointer -funroll-loops -finline-functions -ffast-math -Winline" # add '-finline-limit=...' only for GCC 3.x and 4.x: case `$CC -dumpversion 2>/dev/null` in # these --params are also in 3.4.6, but not in 3.3.6 4.*) CFLAGS="$CFLAGS -finline-limit=5000 --param large-function-growth=4900 --param inline-unit-growth=900" ;; 3.*) CFLAGS="$CFLAGS -finline-limit=5000" ;; esac ;; esac fi changequote([,])dnl AC_OUTPUT([ Makefile src/Makefile ]) echo "====== hexter ${PACKAGE_VERSION} configured ======" echo "Floating point render enabled: $enable_floating_point" echo "Building GTK 2.0 user interface: $with_gtk2" echo "Building text-only user interface: $with_textui" hexter-1.0.2/src/0000755000076400007640000000000012046775671010630 500000000000000hexter-1.0.2/src/dx7_voice_data.h0000644000076400007640000000356311757613235013603 00000000000000/* hexter DSSI software synthesizer plugin and GUI * * Copyright (C) 2004, 2009, 2011 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _DX7_VOICE_DATA_H #define _DX7_VOICE_DATA_H #include "hexter_types.h" /* dx7_voice_data.c */ extern dx7_patch_t dx7_voice_init_voice; extern uint8_t dx7_init_performance[DX7_PERFORMANCE_SIZE]; extern float dx7_voice_eg_rate_rise_duration[128]; extern float dx7_voice_eg_rate_decay_duration[128]; extern float dx7_voice_eg_rate_rise_percent[128]; extern float dx7_voice_eg_rate_decay_percent[128]; extern double dx7_voice_pitch_level_to_shift[128]; extern char base64[]; char *dssp_error_message(const char *fmt, ...); int decode_7in6(const char *string, int expected_length, uint8_t *data); void dx7_voice_copy_name(char *name, dx7_patch_t *patch); void dx7_patch_unpack(dx7_patch_t *packed_patch, uint8_t number, uint8_t *unpacked_patch); void dx7_patch_pack(uint8_t *unpacked_patch, dx7_patch_t *packed_patch, uint8_t number); void hexter_data_patches_init(dx7_patch_t *patches); void hexter_data_performance_init(uint8_t *performance); #endif /* _DX7_VOICE_DATA_H */ hexter-1.0.2/src/gui_callbacks.c0000644000076400007640000010214712046774541013477 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H # include #endif #define _BSD_SOURCE 1 #define _SVID_SOURCE 1 #define _ISOC99_SOURCE 1 #include #include #include #include #include #include #include #include #include "hexter_types.h" #include "hexter.h" #include "dx7_voice.h" #include "dx7_voice_data.h" #include "gui_main.h" #include "gui_callbacks.h" #include "gui_data.h" #include "gui_interface.h" #include "gui_midi.h" #include "gui_patch_edit.h" static int internal_gui_update_only = 0; static unsigned char test_note_noteon_key = 60; static int test_note_noteoff_key = -1; static unsigned char test_note_velocity = 84; static int export_file_type; static int export_file_start; static int export_file_end; static gchar *file_selection_last_filename = NULL; extern char *project_directory; void file_selection_set_path(GtkWidget *file_selection) { if (file_selection_last_filename) { gtk_file_selection_set_filename(GTK_FILE_SELECTION(file_selection), file_selection_last_filename); } else if (project_directory && strlen(project_directory)) { if (project_directory[strlen(project_directory) - 1] != '/') { char buffer[PATH_MAX]; snprintf(buffer, PATH_MAX, "%s/", project_directory); gtk_file_selection_set_filename(GTK_FILE_SELECTION(file_selection), buffer); } else { gtk_file_selection_set_filename(GTK_FILE_SELECTION(file_selection), project_directory); } } } void on_menu_import_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_widget_hide(import_file_position_window); gtk_widget_hide(export_file_type_window); gtk_widget_hide(export_file_selection); file_selection_set_path(import_file_selection); gtk_widget_show(import_file_selection); } void on_menu_export_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_widget_hide(import_file_selection); gtk_widget_hide(import_file_position_window); gtk_widget_hide(export_file_selection); gtk_signal_emit_by_name (GTK_OBJECT (export_file_start_spin_adj), "value_changed"); gtk_signal_emit_by_name (GTK_OBJECT (export_file_end_spin_adj), "value_changed"); gtk_widget_show(export_file_type_window); } void on_menu_quit_activate (GtkMenuItem *menuitem, gpointer user_data) { gtk_main_quit(); } void on_menu_edit_activate(GtkMenuItem *menuitem, gpointer user_data) { if (!GTK_WIDGET_MAPPED(editor_window)) gtk_widget_show(editor_window); else gdk_window_raise(editor_window->window); } void on_menu_about_activate (GtkMenuItem *menuitem, gpointer user_data) { char buf[512]; snprintf(buf, 512, "This program licensed under the GNU General Public License v2.\n" "See the enclosed file COPYING for details. NO WARRANTY.\n\n" "hexter version: " VERSION "\n" "hexter URL: %s\n" "host URL: %s\n", osc_self_url, osc_host_url); /* -FIX- include credits for Jamie Bullock and Martin Tarenskeen */ gtk_label_set_text (GTK_LABEL (about_label), buf); gtk_widget_show(about_window); } gint on_delete_event_wrapper( GtkWidget *widget, GdkEvent *event, gpointer data ) { void (*handler)(GtkWidget *, gpointer) = (void (*)(GtkWidget *, gpointer))data; /* call our 'close', 'dismiss' or 'cancel' callback (which must not need the user data) */ (*handler)(widget, NULL); /* tell GTK+ to NOT emit 'destroy' */ return TRUE; } void on_import_file_ok( GtkWidget *widget, gpointer data ) { gtk_widget_hide(import_file_selection); file_selection_last_filename = (gchar *)gtk_file_selection_get_filename( GTK_FILE_SELECTION(import_file_selection)); GUIDB_MESSAGE(DB_GUI, " on_import_file_ok: file '%s' selected\n", file_selection_last_filename); /* update patch name */ gtk_signal_emit_by_name (GTK_OBJECT (import_file_position_spin_adj), "value_changed"); gtk_widget_show(import_file_position_window); } void on_import_file_cancel( GtkWidget *widget, gpointer data ) { GUIDB_MESSAGE(DB_GUI, ": on_import_file_cancel called\n"); gtk_widget_hide(import_file_selection); } /* * on_position_change * * used by the both import file position and edit save position dialogs * data is a pointer to the dialog's patch name label */ void on_position_change(GtkWidget *widget, gpointer data) { char name[21]; int position = lrintf(GTK_ADJUSTMENT(widget)->value); GtkWidget *label = (GtkWidget *)data; patch_edit_copy_name_to_utf8(name, patches[position].data, TRUE); gtk_label_set_text (GTK_LABEL (label), name); } void on_import_file_position_ok( GtkWidget *widget, gpointer data ) { int position = lrintf(GTK_ADJUSTMENT(import_file_position_spin_adj)->value); char *message; gtk_widget_hide(import_file_position_window); GUIDB_MESSAGE(DB_GUI, " on_import_file_position_ok: position %d\n", position); if (gui_data_load(file_selection_last_filename, position, &message)) { /* successfully loaded at least one patch */ rebuild_patches_clist(); if (!edit_buffer_active) { dx7_patch_unpack(patches, edit_buffer.program, edit_buffer.voice); /* set all the patch edit widgets to match */ patch_edit_update_editors(); } display_notice("Load Patch File succeeded:", message); gui_data_send_dirty_patch_sections(); } else { /* didn't load anything successfully */ display_notice("Load Patch File failed:", message); } free(message); } void on_import_file_position_cancel( GtkWidget *widget, gpointer data ) { GUIDB_MESSAGE(DB_GUI, ": on_import_file_position_cancel called\n"); gtk_widget_hide(import_file_position_window); } void on_export_file_type_press( GtkWidget *widget, gpointer data ) { int type = (int)data; int start, end; GUIDB_MESSAGE(DB_GUI, ": on_export_file_type_press called with %d\n", type); if (type == 0) { /* sys-ex */ start = lrintf(GTK_ADJUSTMENT(export_file_start_spin_adj)->value); end = lrintf(GTK_ADJUSTMENT(export_file_end_spin_adj)->value); (GTK_ADJUSTMENT(export_file_start_spin_adj))->upper = 96.0f; gtk_signal_emit_by_name (GTK_OBJECT (export_file_start_spin_adj), "changed"); if (start > 96) { (GTK_ADJUSTMENT(export_file_start_spin_adj))->value = 96.0f; (GTK_ADJUSTMENT(export_file_end_spin_adj))->value = 127.0f; gtk_signal_emit_by_name (GTK_OBJECT (export_file_start_spin_adj), "value_changed"); gtk_signal_emit_by_name (GTK_OBJECT (export_file_end_spin_adj), "value_changed"); } else if (end != start + 31) { (GTK_ADJUSTMENT(export_file_end_spin_adj))->value = (float)(start + 31); gtk_signal_emit_by_name (GTK_OBJECT (export_file_end_spin_adj), "value_changed"); } gtk_widget_set_sensitive (export_file_end_label, FALSE); gtk_widget_set_sensitive (export_file_end_spin, FALSE); } else { /* raw */ (GTK_ADJUSTMENT(export_file_start_spin_adj))->upper = 127.0f; gtk_signal_emit_by_name (GTK_OBJECT (export_file_start_spin_adj), "changed"); gtk_widget_set_sensitive (export_file_end_label, TRUE); gtk_widget_set_sensitive (export_file_end_spin, TRUE); } } /* * on_export_file_position_change */ void on_export_file_position_change(GtkWidget *widget, gpointer data) { int which = (int)data; int type = GTK_TOGGLE_BUTTON (export_file_type_sysex)->active ? 0 : 1; int start = lrintf(GTK_ADJUSTMENT(export_file_start_spin_adj)->value); int end = lrintf(GTK_ADJUSTMENT(export_file_end_spin_adj)->value); char name[21]; if (which == 0) { /* start */ if (type == 0) { /* sys-ex */ if (end != start + 31) { (GTK_ADJUSTMENT(export_file_end_spin_adj))->value = (float)(start + 31); gtk_signal_emit_by_name (GTK_OBJECT (export_file_end_spin_adj), "value_changed"); } } else { /* raw */ if (end < start) { (GTK_ADJUSTMENT(export_file_end_spin_adj))->value = (float)start; gtk_signal_emit_by_name (GTK_OBJECT (export_file_end_spin_adj), "value_changed"); } } patch_edit_copy_name_to_utf8(name, patches[start].data, TRUE); gtk_label_set_text (GTK_LABEL (export_file_start_name), name); } else { /* end */ if (type == 1) { /* raw */ if (end < start) { (GTK_ADJUSTMENT(export_file_start_spin_adj))->value = (float)end; gtk_signal_emit_by_name (GTK_OBJECT (export_file_start_spin_adj), "value_changed"); } } patch_edit_copy_name_to_utf8(name, patches[end].data, TRUE); gtk_label_set_text (GTK_LABEL (export_file_end_name), name); } } void on_export_file_type_ok( GtkWidget *widget, gpointer data ) { export_file_type = GTK_TOGGLE_BUTTON (export_file_type_sysex)->active ? 0 : 1; export_file_start = lrintf(GTK_ADJUSTMENT(export_file_start_spin_adj)->value); export_file_end = lrintf(GTK_ADJUSTMENT(export_file_end_spin_adj)->value); GUIDB_MESSAGE(DB_GUI, " on_export_file_type_ok: type %s, start %d, end %d\n", export_file_type == 0 ? "sys-ex" : "raw", export_file_start, export_file_end); gtk_widget_hide(export_file_type_window); file_selection_set_path(export_file_selection); gtk_widget_show(export_file_selection); } void on_export_file_type_cancel( GtkWidget *widget, gpointer data ) { GUIDB_MESSAGE(DB_GUI, ": on_export_file_type_cancel called\n"); gtk_widget_hide(export_file_type_window); } void on_export_file_ok( GtkWidget *widget, gpointer data ) { char *message; gtk_widget_hide(export_file_selection); file_selection_last_filename = (gchar *)gtk_file_selection_get_filename( GTK_FILE_SELECTION(export_file_selection)); GUIDB_MESSAGE(DB_GUI, " on_export_file_ok: file '%s' selected\n", file_selection_last_filename); if (gui_data_save(file_selection_last_filename, export_file_type, export_file_start, export_file_end, &message)) { display_notice("Save Patch File succeeded:", message); } else { /* problem with save */ display_notice("Save Patch File failed:", message); } free(message); } void on_export_file_cancel( GtkWidget *widget, gpointer data ) { GUIDB_MESSAGE(DB_GUI, ": on_export_file_cancel called\n"); gtk_widget_hide(export_file_selection); } void on_about_dismiss( GtkWidget *widget, gpointer data ) { gtk_widget_hide(about_window); } void on_patches_selection(GtkWidget *clist, gint row, gint column, GdkEventButton *event, gpointer data ) { if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_patches_selection: skipping further action\n"); */ return; } current_program = row; GUIDB_MESSAGE(DB_GUI, " on_patches_selection: patch %d selected\n", current_program); if (current_program != edit_buffer.program) { if (edit_buffer_active) { gui_data_send_edit_buffer_off(); edit_buffer_active = FALSE; } edit_buffer.program = current_program; dx7_patch_unpack(patches, edit_buffer.program, edit_buffer.voice); /* set all the patch edit widgets to match */ patch_edit_update_editors(); /* also updates status */ } lo_send(osc_host_address, osc_program_path, "ii", 0, current_program); } void on_tuning_change( GtkWidget *widget, gpointer data ) { float value = GTK_ADJUSTMENT(widget)->value; if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_tuning_change: skipping further action\n"); */ return; } GUIDB_MESSAGE(DB_GUI, " on_tuning_change: tuning set to %10.6f\n", value); lo_send(osc_host_address, osc_control_path, "if", HEXTER_PORT_TUNING, value); } void on_volume_change( GtkWidget *widget, gpointer data ) { float value = GTK_ADJUSTMENT(widget)->value; if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_volume_change: skipping further action\n"); */ return; } GUIDB_MESSAGE(DB_GUI, " on_volume_change: volume set to %10.6f\n", value); lo_send(osc_host_address, osc_control_path, "if", HEXTER_PORT_VOLUME, value); } void on_polyphony_change(GtkWidget *widget, gpointer data) { int which = (int)data; int polyphony = lrintf(GTK_ADJUSTMENT(widget)->value); char buffer[4]; if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_polyphony_change: skipping further action\n"); */ return; } GUIDB_MESSAGE(DB_GUI, " on_polyphony_change: %s polyphony set to %d\n", (which ? "instance" : "global"), polyphony); snprintf(buffer, 4, "%d", polyphony); if (which == 0) { /* instance */ lo_send(osc_host_address, osc_configure_path, "ss", "polyphony", buffer); } else { /* global */ #ifdef DSSI_GLOBAL_CONFIGURE_PREFIX lo_send(osc_host_address, osc_configure_path, "ss", DSSI_GLOBAL_CONFIGURE_PREFIX "polyphony", buffer); #else lo_send(osc_host_address, osc_configure_path, "ss", "global_polyphony", buffer); #endif } } void on_mono_mode_activate(GtkWidget *widget, gpointer data) { char *mode = data; GUIDB_MESSAGE(DB_GUI, " on_mono_mode_activate: monophonic mode '%s' selected\n", mode); lo_send(osc_host_address, osc_configure_path, "ss", "monophonic", mode); } void on_compat059_toggled(GtkWidget *widget, gpointer data) { int state = GTK_TOGGLE_BUTTON (widget)->active; gtk_widget_set_sensitive (performance_frame, !state); if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_compat059_toggled: skipping further action\n"); */ return; } GUIDB_MESSAGE(DB_GUI, " on_compat059_toggled: button now %s\n", (state ? "on" : "off")); send_performance(); } #ifdef HEXTER_DEBUG_CONTROL void on_test_changed(GtkObject *adj, gpointer data) { int value = (int)GTK_ADJUSTMENT(adj)->value; unsigned char midi[4]; #if 1 midi[0] = 0; midi[1] = 0xB0; /* control change */ midi[2] = 0x63; /* NRPN MSB */ midi[3] = 0; lo_send(osc_host_address, osc_midi_path, "m", midi); midi[2] = 0x62; /* NRPN LSB */ midi[3] = 40; lo_send(osc_host_address, osc_midi_path, "m", midi); midi[2] = 0x06; /* Data Entry MSB */ midi[3] = (value / 128) & 127; lo_send(osc_host_address, osc_midi_path, "m", midi); midi[2] = 0x26; /* Data Entry LSB */ midi[3] = value & 127; lo_send(osc_host_address, osc_midi_path, "m", midi); #else midi[0] = 0; midi[1] = 0xB0; /* control change */ midi[2] = 0x50; /* GP5 */ midi[3] = (value / 128) & 127; lo_send(osc_host_address, osc_midi_path, "m", midi); #endif } #endif /* HEXTER_DEBUG_CONTROL */ #ifdef MIDI_ALSA void on_sysex_enable_toggled( GtkWidget *widget, gpointer data ) { int state = GTK_TOGGLE_BUTTON (widget)->active; if (internal_gui_update_only) { /* GUIDB_MESSAGE(DB_GUI, " on_sysex_enable_toggled: skipping further action\n"); */ return; } GUIDB_MESSAGE(DB_GUI, " on_sysex_enable_toggled: button now %s\n", (state ? "on" : "off")); if (state) { /* enable */ char *message; char buf[32]; if (sysex_enabled) return; if (sysex_start(on_sysex_receipt, &message)) { gtk_widget_set_sensitive (sysex_channel_label, TRUE); gtk_widget_set_sensitive (sysex_channel_spin, TRUE); snprintf(buf, 32, " Listening on port %d:%d", sysex_seq_client_id, sysex_seq_port_id); gtk_label_set_text (GTK_LABEL (sysex_status_label), buf); } else { display_notice("Error: could not start MIDI client for sys-ex reception.", message); internal_gui_update_only = 1; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), 0); /* causes call to on_sysex_enable_toggled callback */ internal_gui_update_only = 0; } } else { /* disable */ if (!sysex_enabled) return; sysex_stop(); gtk_widget_set_sensitive (sysex_channel_label, FALSE); gtk_widget_set_sensitive (sysex_channel_spin, FALSE); gtk_label_set_text (GTK_LABEL (sysex_status_label), ""); } } void on_sysex_channel_change(GtkWidget *widget, gpointer data) { sysex_receive_channel = lrintf(GTK_ADJUSTMENT(widget)->value) - 1; GUIDB_MESSAGE(DB_GUI, " on_sysex_channel_change: channel now %d\n", sysex_receive_channel + 1); } #endif /* MIDI_ALSA */ void on_edit_save_position_ok(GtkWidget *widget, gpointer data) { int position = lrintf(GTK_ADJUSTMENT(edit_save_position_spin_adj)->value); gtk_widget_hide(edit_save_position_window); GUIDB_MESSAGE(DB_GUI, " on_edit_save_position_ok: position %d\n", position); /* Hmm, while the edit save position dialog is shown, there's nothing * to prevent program changes or patch configures from causing the edit * buffer to be overwritten.... */ edit_buffer.program = position; dx7_patch_pack(edit_buffer.voice, patches, position); gui_data_mark_dirty_patch_sections(position, position); gui_data_send_dirty_patch_sections(); /* We make the saved-to program the new current one, and clear the * edit_buffer overlay if active, because this makes the system's * state more intuitively understandable. */ if (position != current_program) { current_program = position; lo_send(osc_host_address, osc_program_path, "ii", 0, current_program); } if (edit_buffer_active) { edit_buffer_active = FALSE; gui_data_send_edit_buffer_off(); } rebuild_patches_clist(); patch_edit_update_status(); } void on_edit_save_position_cancel(GtkWidget *widget, gpointer data) { GUIDB_MESSAGE(DB_GUI, ": on_edit_save_position_cancel called\n"); gtk_widget_hide(edit_save_position_window); } void send_performance(void) { uint8_t perf_buffer[DX7_PERFORMANCE_SIZE]; uint8_t p; hexter_data_performance_init(perf_buffer); perf_buffer[0] = (GTK_TOGGLE_BUTTON (compat059_button)->active) ? 1 : 0; /* 0.5.9 compatibility */ perf_buffer[3] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_PITCH_BEND_RANGE])->value); perf_buffer[5] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_PORTAMENTO_TIME])->value); perf_buffer[9] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_MOD_WHEEL_SENSITIVITY])->value); perf_buffer[11] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_FOOT_SENSITIVITY])->value); perf_buffer[13] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_PRESSURE_SENSITIVITY])->value); perf_buffer[15] = lrintf(GTK_ADJUSTMENT(performance_spin_adjustments[PP_BREATH_SENSITIVITY])->value); p = (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_MOD_WHEEL_ASSIGN][0])->active ? 1 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_MOD_WHEEL_ASSIGN][1])->active ? 2 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_MOD_WHEEL_ASSIGN][2])->active ? 4 : 0); perf_buffer[10] = p; p = (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_FOOT_ASSIGN][0])->active ? 1 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_FOOT_ASSIGN][1])->active ? 2 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_FOOT_ASSIGN][2])->active ? 4 : 0); perf_buffer[12] = p; p = (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_PRESSURE_ASSIGN][0])->active ? 1 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_PRESSURE_ASSIGN][1])->active ? 2 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_PRESSURE_ASSIGN][2])->active ? 4 : 0); perf_buffer[14] = p; p = (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_BREATH_ASSIGN][0])->active ? 1 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_BREATH_ASSIGN][1])->active ? 2 : 0) + (GTK_TOGGLE_BUTTON(performance_assign_widgets[PP_BREATH_ASSIGN][2])->active ? 4 : 0); perf_buffer[16] = p; gui_data_send_performance_buffer(perf_buffer); } void on_performance_spin_change(GtkWidget *widget, gpointer data) { if (internal_gui_update_only) { GUIDB_MESSAGE(DB_GUI, " on_performance_spin_change: skipping further action\n"); return; } GUIDB_MESSAGE(DB_GUI, " on_performance_spin_change: '%s' set to %ld\n", performance_spin_names[(int)data], lrintf(GTK_ADJUSTMENT(widget)->value)); send_performance(); } void on_performance_assign_toggled(GtkWidget *widget, gpointer data) { if (internal_gui_update_only) { GUIDB_MESSAGE(DB_GUI, " on_performance_assign_toggled: skipping further action\n"); return; } GUIDB_MESSAGE(DB_GUI, " on_performance_assign_toggled: '%s' now P%d A%d E%d\n", performance_assign_names[(int)data], GTK_TOGGLE_BUTTON (performance_assign_widgets[(int)data][0])->active ? 1 : 0, GTK_TOGGLE_BUTTON (performance_assign_widgets[(int)data][1])->active ? 1 : 0, GTK_TOGGLE_BUTTON (performance_assign_widgets[(int)data][2])->active ? 1 : 0); send_performance(); } void on_test_note_slider_change(GtkWidget *widget, gpointer data) { unsigned char value = lrintf(GTK_ADJUSTMENT(widget)->value); if ((int)data == 0) { /* key */ test_note_noteon_key = value; GUIDB_MESSAGE(DB_GUI, " on_test_note_slider_change: new test note key %d\n", test_note_noteon_key); } else { /* velocity */ test_note_velocity = value; GUIDB_MESSAGE(DB_GUI, " on_test_note_slider_change: new test note velocity %d\n", test_note_velocity); } } static void send_midi(unsigned char b0, unsigned char b1, unsigned char b2) { unsigned char midi[4]; midi[0] = 0; midi[1] = b0; midi[2] = b1; midi[3] = b2; lo_send(osc_host_address, osc_midi_path, "m", midi); } void release_test_note(void) { if (test_note_noteoff_key >= 0) { send_midi(0x80, test_note_noteoff_key, 0x40); test_note_noteoff_key = -1; } } void on_test_note_button_press(GtkWidget *widget, gpointer data) { int state = (int)data; GUIDB_MESSAGE(DB_GUI, " on_test_note_button_press: button %s\n", state ? "pressed" : "released") if (state) { /* button pressed */ if (test_note_noteoff_key < 0) { send_midi(0x90, test_note_noteon_key, test_note_velocity); test_note_noteoff_key = test_note_noteon_key; } } else { /* button released */ release_test_note(); } } void display_notice(char *message1, char *message2) { gtk_label_set_text (GTK_LABEL (notice_label_1), message1); gtk_label_set_text (GTK_LABEL (notice_label_2), message2); gtk_widget_show(notice_window); } void on_notice_dismiss( GtkWidget *widget, gpointer data ) { gtk_widget_hide(notice_window); } void update_voice_widget(int port, float value) { if (port == HEXTER_PORT_TUNING) { if (value < 415.3f) { value = 415.3f; } else if (value > 466.2f) { value = 466.2f; } /* GUIDB_MESSAGE(DB_OSC, " update_voice_widget: change of 'Tuning' to %f\n", value); */ internal_gui_update_only = 1; GTK_ADJUSTMENT(tuning_adj)->value = value; gtk_signal_emit_by_name (GTK_OBJECT (tuning_adj), "value_changed"); /* causes call to on_voice_slider_change callback */ internal_gui_update_only = 0; } else if (port == HEXTER_PORT_VOLUME) { if (value < -70.0f) { value = -70.0f; } else if (value > 20.0f) { value = 20.0f; } /* GUIDB_MESSAGE(DB_OSC, " update_voice_widget: change of 'Volume' to %f\n", value); */ internal_gui_update_only = 1; GTK_ADJUSTMENT(volume_adj)->value = value; gtk_signal_emit_by_name (GTK_OBJECT (volume_adj), "value_changed"); /* causes call to on_voice_slider_change callback */ internal_gui_update_only = 0; } } void update_from_program_select(unsigned long bank, unsigned long program) { if (!bank && program < 128) { current_program = program; patches_clist_set_program(); /* If we receive a program change that doesn't match what's in the * edit buffer, then we clear the edit buffer. Note that the converse * is not done: if we receive an edit_buffer configure whose program * number does not match current_program, we don't change the program. */ if (program != edit_buffer.program) { if (edit_buffer_active) { gui_data_send_edit_buffer_off(); edit_buffer_active = FALSE; } edit_buffer.program = program; dx7_patch_unpack(patches, edit_buffer.program, edit_buffer.voice); /* set all the patch edit widgets to match */ patch_edit_update_editors(); /* also updates status */ } else patch_edit_update_status(); } else { /* out of range */ /* gtk_clist_unselect_all (GTK_CLIST(patches_clist)); */ } } void update_patches(const char *key, const char *value) { int section = key[7] - '0'; GUIDB_MESSAGE(DB_OSC, ": update_patches: received new '%s'\n", key); if (section < 0 || section > 3) return; if (!decode_7in6(value, 32 * sizeof(dx7_patch_t), (uint8_t *)&patches[section * 32])) { GUIDB_MESSAGE(DB_OSC, " update_patches: corrupt data!\n"); return; } patch_section_dirty[section] = 0; rebuild_patches_clist(); if (!edit_buffer_active && (edit_buffer.program / 32) == section) { dx7_patch_unpack(patches, edit_buffer.program, edit_buffer.voice); /* set all the patch edit widgets to match */ patch_edit_update_editors(); } } void update_edit_buffer(const char *value) { GUIDB_MESSAGE(DB_OSC, ": update_edit_buffer called\n"); if (!strcmp(value, "off")) { edit_buffer.program = current_program; dx7_patch_unpack(patches, current_program, edit_buffer.voice); edit_buffer_active = FALSE; patch_edit_update_editors(); } else { if (!decode_7in6(value, sizeof(edit_buffer), (uint8_t *)&edit_buffer)) { GUIDB_MESSAGE(DB_OSC, " update_edit_buffer: corrupt data!\n"); return; } edit_buffer_active = TRUE; patch_edit_update_editors(); } } void update_performance_spin(int parameter, uint8_t value, uint8_t max) { GtkObject *adjustment = performance_spin_adjustments[parameter]; GUIDB_MESSAGE(DB_OSC, ": update_performance_spin called for '%s' with %d\n", performance_spin_names[parameter], value); if (value <= max) { internal_gui_update_only = 1; GTK_ADJUSTMENT(adjustment)->value = (float)value; gtk_signal_emit_by_name (adjustment, "value_changed"); /* causes call to on_performance_spin_change callback */ internal_gui_update_only = 0; } } void update_performance_assign(int parameter, uint8_t bits) { GUIDB_MESSAGE(DB_OSC, ": update_performance_assign called for '%s' with %d\n", performance_assign_names[parameter], bits); if (bits <= 7) { internal_gui_update_only = 1; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(performance_assign_widgets[parameter][0]), bits & 1 ? 1 : 0); /* causes call to on_performance_assign_toggled callback */ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(performance_assign_widgets[parameter][1]), bits & 2 ? 1 : 0); /* causes call to on_performance_assign_toggled callback */ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(performance_assign_widgets[parameter][2]), bits & 4 ? 1 : 0); /* causes call to on_performance_assign_toggled callback */ internal_gui_update_only = 0; } } void update_performance_widgets(uint8_t *performance) { update_performance_spin(PP_PITCH_BEND_RANGE, performance[3], 12); update_performance_spin(PP_PORTAMENTO_TIME, performance[5], 99); update_performance_spin(PP_MOD_WHEEL_SENSITIVITY, performance[9], 15); update_performance_spin(PP_FOOT_SENSITIVITY, performance[11], 15); update_performance_spin(PP_PRESSURE_SENSITIVITY, performance[13], 15); update_performance_spin(PP_BREATH_SENSITIVITY, performance[15], 15); update_performance_assign(PP_MOD_WHEEL_ASSIGN, performance[10]); update_performance_assign(PP_FOOT_ASSIGN, performance[12]); update_performance_assign(PP_PRESSURE_ASSIGN, performance[14]); update_performance_assign(PP_BREATH_ASSIGN, performance[16]); /* 0.5.9 compatibility */ internal_gui_update_only = 1; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(compat059_button), performance[0] & 0x01); /* causes call to on_compat059_toggled callback */ internal_gui_update_only = 0; } void update_performance(const char *value) { uint8_t perf_buffer[DX7_PERFORMANCE_SIZE]; if (!decode_7in6(value, DX7_PERFORMANCE_SIZE, perf_buffer)) { GUIDB_MESSAGE(DB_OSC, " update_performance: corrupt data!\n"); return; } update_performance_widgets(perf_buffer); } void update_monophonic(const char *value) { int index; GUIDB_MESSAGE(DB_OSC, ": update_monophonic called with '%s'\n", value); if (!strcmp(value, "off")) { index = 0; } else if (!strcmp(value, "on")) { index = 1; } else if (!strcmp(value, "once")) { index = 2; } else if (!strcmp(value, "both")) { index = 3; } else { return; } gtk_option_menu_set_history(GTK_OPTION_MENU (monophonic_option_menu), index); /* updates optionmenu current selection, * without needing to send it a signal */ } void update_polyphony(const char *value) { int poly = atoi(value); GUIDB_MESSAGE(DB_OSC, ": update_polyphony called with '%s'\n", value); if (poly > 0 && poly < HEXTER_MAX_POLYPHONY) { internal_gui_update_only = 1; GTK_ADJUSTMENT(polyphony_instance_adj)->value = (float)poly; gtk_signal_emit_by_name (GTK_OBJECT (polyphony_instance_adj), "value_changed"); /* causes call to on_voice_slider_change callback */ internal_gui_update_only = 0; } } void update_global_polyphony(const char *value) { int poly = atoi(value); GUIDB_MESSAGE(DB_OSC, ": update_global_polyphony called with '%s'\n", value); if (poly > 0 && poly < HEXTER_MAX_POLYPHONY) { internal_gui_update_only = 1; GTK_ADJUSTMENT(polyphony_global_adj)->value = (float)poly; gtk_signal_emit_by_name (GTK_OBJECT (polyphony_global_adj), "value_changed"); /* causes call to on_voice_slider_change callback */ internal_gui_update_only = 0; } } void patches_clist_set_program(void) { /* set active row */ internal_gui_update_only = 1; gtk_clist_select_row (GTK_CLIST(patches_clist), current_program, 0); internal_gui_update_only = 0; /* scroll window to show active row */ gtk_clist_moveto(GTK_CLIST(patches_clist), current_program, 0, 0, 0); } void rebuild_patches_clist(void) { char number[4], name[21]; char *data[2] = { number, name }; int i; GUIDB_MESSAGE(DB_GUI, ": rebuild_patches_clist called\n"); gtk_clist_freeze(GTK_CLIST(patches_clist)); gtk_clist_clear(GTK_CLIST(patches_clist)); for (i = 0; i < 128; i++) { snprintf(number, 4, "%d", i); patch_edit_copy_name_to_utf8(name, patches[i].data, TRUE); gtk_clist_append(GTK_CLIST(patches_clist), data); } /* kick GTK+ 2.4.x in the pants.... */ gtk_signal_emit_by_name (GTK_OBJECT (patches_clist), "check-resize"); gtk_clist_thaw(GTK_CLIST(patches_clist)); patches_clist_set_program(); } hexter-1.0.2/src/gui_main.h0000644000076400007640000000335012042202523012463 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _GUI_MAIN_H #define _GUI_MAIN_H #ifdef HAVE_CONFIG_H #include #endif #include #include "hexter_types.h" typedef struct { int program; uint8_t voice[DX7_VOICE_SIZE_UNPACKED]; } edit_buffer_t; extern char *user_friendly_id; extern char * osc_host_url; extern char * osc_self_url; extern lo_address osc_host_address; extern char * osc_configure_path; extern char * osc_control_path; extern char * osc_exiting_path; extern char * osc_hide_path; extern char * osc_midi_path; extern char * osc_program_path; extern char * osc_quit_path; extern char * osc_show_path; extern char * osc_update_path; extern dx7_patch_t *patches; extern int patch_section_dirty[]; extern char *project_directory; extern int current_program; extern int edit_buffer_active; extern edit_buffer_t edit_buffer; #endif /* _GUI_MAIN_H */ hexter-1.0.2/src/gui_callbacks.h0000644000076400007640000000766312043505626013504 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _GUI_CALLBACKS_H #define _GUI_CALLBACKS_H #ifdef HAVE_CONFIG_H # include #endif #include #include #include "hexter.h" void on_menu_import_activate(GtkMenuItem *menuitem, gpointer user_data); void on_menu_export_activate(GtkMenuItem *menuitem, gpointer user_data); void on_menu_quit_activate(GtkMenuItem *menuitem, gpointer user_data); void on_menu_edit_activate(GtkMenuItem *menuitem, gpointer user_data); void on_menu_about_activate(GtkMenuItem *menuitem, gpointer user_data); gint on_delete_event_wrapper(GtkWidget *widget, GdkEvent *event, gpointer data); void on_import_file_ok(GtkWidget *widget, gpointer data); void on_import_file_cancel(GtkWidget *widget, gpointer data); void on_position_change(GtkWidget *widget, gpointer data); void on_import_file_position_ok(GtkWidget *widget, gpointer data); void on_import_file_position_cancel(GtkWidget *widget, gpointer data); void on_export_file_type_press(GtkWidget *widget, gpointer data); void on_export_file_position_change(GtkWidget *widget, gpointer data); void on_export_file_type_ok(GtkWidget *widget, gpointer data); void on_export_file_type_cancel(GtkWidget *widget, gpointer data); void on_export_file_ok(GtkWidget *widget, gpointer data); void on_export_file_cancel(GtkWidget *widget, gpointer data); void on_about_dismiss(GtkWidget *widget, gpointer data); void on_patches_selection(GtkWidget *clist, gint row, gint column, GdkEventButton *event, gpointer data); void on_tuning_change(GtkWidget *widget, gpointer data); void on_volume_change(GtkWidget *widget, gpointer data); void on_polyphony_change(GtkWidget *widget, gpointer data); void on_mono_mode_activate(GtkWidget *widget, gpointer data); void on_compat059_toggled(GtkWidget *widget, gpointer data); #ifdef HEXTER_DEBUG_CONTROL void on_test_changed(GtkObject *adj, gpointer data); #endif #ifdef MIDI_ALSA void on_sysex_enable_toggled(GtkWidget *widget, gpointer data); void on_sysex_channel_change(GtkWidget *widget, gpointer data); #endif /* MIDI_ALSA */ void on_edit_save_position_ok(GtkWidget *widget, gpointer data); void on_edit_save_position_cancel(GtkWidget *widget, gpointer data); void send_performance(void); void on_performance_spin_change(GtkWidget *widget, gpointer data); void on_performance_assign_toggled(GtkWidget *widget, gpointer data); void on_test_note_slider_change(GtkWidget *widget, gpointer data); void release_test_note(void); void on_test_note_button_press(GtkWidget *widget, gpointer data); void display_notice(char *message1, char *message2); void on_notice_dismiss(GtkWidget *widget, gpointer data); void update_voice_widget(int port, float value); void update_from_program_select(unsigned long bank, unsigned long program); void update_patches(const char *key, const char *value); void update_edit_buffer(const char *value); void update_performance_widgets(uint8_t *performance); void update_performance(const char *value); void update_monophonic(const char *value); void update_polyphony(const char *value); void update_global_polyphony(const char *value); void patches_clist_set_program(void); void rebuild_patches_clist(void); #endif /* _GUI_CALLBACKS_H */ hexter-1.0.2/src/bitmap_about.xpm0000644000076400007640000021110612041442507013725 00000000000000/* XPM */ static char * bitmap_about_xpm[] = { "396 172 90 1", " c #000100", ". c #080B07", "+ c #0D100C", "@ c #131412", "# c #171916", "$ c #1E1F1D", "% c #222421", "& c #262825", "* c #292B28", "= c #2D2E2C", "- c #30322F", "; c #363835", "> c #3C3E3B", ", c #434542", "' c #4B4C4A", ") c #515350", "! c #5A5C59", "~ c #636562", "{ c #6C6E6B", "] c #747673", "^ c #787A77", "/ c #7E807D", "( c #838582", "_ c #8E908D", ": c #969895", "< c #9FA19E", "[ c #A6A8A5", "} c #B1B3B0", "| c #BBBDBA", "1 c #C9B5FF", "2 c #C4B7FF", "3 c #C2C4C1", "4 c #D4BBFF", "5 c #CEBDFF", "6 c #DABDFD", "7 c #D4BFFD", "8 c #C7C9C5", "9 c #D6C1FF", "0 c #D1C4FF", "a c #D8C3FF", "b c #CCCECB", "c c #D8C7FD", "d c #DFC6FE", "e c #D5CCFF", "f c #DCCBFF", "g c #DBCEFD", "h c #E2CDFD", "i c #D4D6D3", "j c #D8D3FF", "k c #E5D0FF", "l c #E0D2FF", "m c #E5D4FD", "n c #DFD6FD", "o c #DAD9FE", "p c #E8D7FF", "q c #DDDFDB", "r c #EDD9FD", "s c #E2DDFD", "t c #DCE0FD", "u c #EADEFF", "v c #DFE3FF", "w c #E3E5E2", "x c #F1E1FC", "y c #E6E5FD", "z c #E0E7FD", "A c #EEE5FF", "B c #E2EAFF", "C c #E9EBE8", "D c #E8ECFD", "E c #E3EFFD", "F c #F5EAFE", "G c #EEF0ED", "H c #E5F1FF", "I c #F2EEFF", "J c #EBF3FC", "K c #F1F2FC", "L c #F8F1FD", "M c #F2F4F1", "N c #ECF5FD", "O c #EDF6FF", "P c #EFF7FF", "Q c #F5F6FF", "R c #F3F9FB", "S c #F5FAFD", "T c #F8FAF7", "U c #FCF9FE", "V c #F6FBFE", "W c #F8FDFF", "X c #FCFFFB", "Y c #FEFFFC", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWWWUUUUUUUUUUUUUWWWWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYUYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWWUUUYYYWWWWWWWWWWWWWUUYYYUUUWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYUYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYWWWUUUWWWWWWWWVWWWWYYUUUWWWUYUUWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYY* *YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY8 $YYY YYYYY YYYY .|YYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWWUUWWUUUWURRRUUUUUUUUUUUUUPPRRRSVWYUVWUYUUWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYUYYYYYYYYYYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYUYYY YYYYY YYYY TYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYUYYWWWWVRVUVPQQRRRRRRPPPPPRRRUPQQUUUPRSVYUVWUYUWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYY! .GYYYYYYYYYYYYYYYYYYYYYYYYY_ 'YYYYYY YYYYY YYYY TYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYWUUWUUUVUUSSRRRUSRQPPPPNRRRRRPPQRRPPPPPSPUUPRSSYUVUYUUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYYUYYYYYYYYYYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYUYYYYYY YYYYY YYYY YYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYWWWVRVURRUQUQPPPQPQQPPQKKKKKPPPNQUURRRQRPPUPRUPRSWUWWUUWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYYYYY: 3YYYYYYYYYYYYYYYYYYY) /YYYYYYYYY YYYYY YYYY [YYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYUYUYYYYYYYYYYYYYYYYYYYYYWUWUUWUUSRRRQPSPNURUPPPPPPPPPPPPKKPQPJJJJKPQRRNRQNUPUURSWYWUYUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYYYYYUYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYUYYYYYYYYY YYYYY YYYY YYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYWWWYUVRQUPQPRPRUJJJPQNNKKNNNHIHPPQJJNPKKPNNJJPQPRNRPRPUUPVYUWUUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYb (YYYYYYYYYYYYY& }YYYYYYYYYYYY YYYYY YYYYYYYYYYYYYYYYYYYY .YYYYYYY& YYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYUYYUYYYYYYYYYWYUUUUPSRPSPRPRNQJJNQPKJKKPPPIIQPQHNNPIHJPPIKKQKNNPKPQRKRPPSUPRWYWYUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYUYYYYYYYYYYYYUUYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYY YYYYYYUU YYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYUYUWYXVVRUSPPQUKQPNPQJJPNHHNJJNNHHHQDPNPPJHHPNHHPKIPPQNJPKPRQPUQUPUUWUUWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYG. >YYYYYYG. qYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYY +YYYYYYYY~ YYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUWUXUPPRRQPQURNJPNNKJNHJHKPPDDDHHNPPHPKQNDDKPHDQPHNPKHJKQPPNKRPNRPSRRSYVUYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYYYYYYYYYYYUYYYYYYUUYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYY YYYYYYYU~ YYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUWYWRVVUQQRRRJKPPQKKHPDQHQHDIPNNKDDDDKHHHINNHDKNHDQDHHQJHHNIPNKNPPRQPPUPSWUWUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY$ @8 .MYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYY +YYYYYYYU YYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWYWUUQSRRPRQKJPNKPHHHQHPHKHIJJHHHHNHHHHDKPPHDDHHHHJHJKHHDKPDPJIHQNQKPQRNURURWVUUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYUUYYYYYYYYYYYYUUYYYYYYYYYYYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYY YYYYYYT@ ,YYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYUUVWWRQPSQPPPNQPJQQPHQJKHHNHHHDDDHHHHDJHDNQHHHHDDHDHHKNNHDPHHPPJKHPNPKPNPRQUSYWUUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYY' %YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYY YYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYSSUQSQPPPNKQHHIHHDKHEHIDHHHDHHHBDDDHDBHDHDDDDHHDHDHHDHIJHKKHDJNQHKPPPPUPPPRPSYWYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYY {UYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUWWRRSRPRPRQPNQPJQPPNKNHDDHHHDDDHHHHHHHEBBEDHKJHEBBDHDHDBHHHHDHHJJHDHQPJHKKJNPRPRUPUUWUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYY( 'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYY >YYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYWYUUUQUQRQUKPNQHHIHDHDHHIHJDHHHHHDDDBBBBBBEBBDDDDBEHBBBBBHBDHEHDHHHIJKHDHQNPNQPKUQPURRVVUUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYY :UYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYTWWPSQPNPNQJQPNNNNJHHHHHHDDBEBBBBBBBBBBzBBBEDDBBzBBBBEBDBBBHHDDHHHHJJKHDHDPQPJNRJPQUSYWUWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYY= )YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYY _UYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYWUYSVSURPPPPPKPDNHHDHDHDDHDDEEEEBDBzzBBzzyzvyzByDDyvvzzBByBBBDEBBBEDHDDDHHKJQPDNDNQJPQRRRPSYUYWYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYY %UYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYWVUSSPQRRQNNPKPDQQJKHDNHDHBBBBBBzBBzyyvvvvvtvvvBDByvvvvyvzvzzyBBEBEDEHHDDHHHHNDPINKPPNNPRUPWUUWWYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYM. $YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYY .YY) {YYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYUUVSSPRRQKNPIHHJNHHHHHHDHHHHBBBBzvzzvvvvtvtvtttvvByvvttvtvvzvvvyBzBBBBBEHHDHDJHJJPHHKNQQUQPSURYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYY YYYYYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYYYYYYYYYYYYYYYYYYYYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYY YUU[ }YYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYYYY +YYYYY; ;=&%##+. [YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYM*=-;;>>,,'')))YYYYYYYYYYYY YYYYYYYYYYYYYYY YYYY +YYYYYYYYYi !YYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYWWWUPQRRPKNQDQKHDDDBBBBzvvvtoosonjeee0007547cp0775556969 ld7957755575ame07000ccegjjoosttvzzBB DDDJHKKJKKPQRSRRUYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYUUUUUUUUUUYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUUUUUUUUUYUUUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUUYYYYYYYYYUYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYUYYWVWSQKPPIPPHHJHJHHDBBzzvvttoojnggec005545490pf7a6aadcdd mfcdaaa99577cud746700ceejjjjotttvzzz BJHDHHHHPKPQPPQVUWUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYWUUSUQRPPPPHHQDHDEDBBBBvvvtooojjeeec074455677agmddfhcd7da faaaddhdd69alh05554570ccejjoooottvvB EEHHHDKPJPKPQRRRRWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYVXVRSQQNNNPNHJHHDHEEBzzztttoojjje007057465446acAhd7656555 c4567499cdhhsd6455455000cgejjoottvzz BDHDNHDDHPJPQQPQUUUUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYUUUUPRPPQQPIDIHDHHBBzBzvttooojjgecc754747567adhhme74542111 751215556aalrfa6647544770egejjooottv BBDHHDHJKHNNNPQRRVVWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYUWYSSVQRRNNHPNPHNDHHDBzvzttttoojeee007757445aagc97dl51177577 07574442140nfclaa467555550ceejjooott BBDBHHHHQDQHPPQPRSUUUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYWVVSURQQPQQHJHKHHDBBBBzvttojjjgjc075556596add cd9754454700cjejooott zBBEHDHDHPHQQPPPQRSVWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYWWTRQPPNNPQHKHDDHHEBzvvvotoojjeec0644565adcd 7dfd776757c00cjejojot zBBDHDHDHKJHJPPRQRSUUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYUYUUPSPQQQKHKHHHJHBBBzzvttoojgec075557656dda 56dd755ac07700jjnooo vzzBDHHHHHHQKKNQPQRVVWUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYq% $}Yi% %wYYYYYYYYYYYYYYYYYYYYYYG& YYYYYYYYYYYYYYYY3$ @>[YYYi$ %bYb$ %wYYYYYYY .YYYYYYYYYYYYYYYYYYYYYYYYYYYYi% YYYYYYYi% YY>YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYUXVVQUNNNHQHIHDEDHBBBvvotoojjeec0454456acc65 99aalfddddddddfddddddaafca 257ddaclh05700eejooo vvBBDDDDDQHNHQNPRQRSWWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUY>3UUU8'UYYYYYYYYYYYYYYYYYYYYYYUUY YYYYYYYYYYYYYYYUUY YUi:$!UUUY'}UUU})UYYYYYYYY~YYY}~UYYYYYYYYYYYYYYYYYYYYYYYYYYUUY YYYYYYUUY YU>YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYWWUSRSNUPQQHPNKHDHBEBvvvtoonjee00554559add75 9aaadhhccccccfhhcccccaddhd9a 145chmg06457acegjoo vzzBBEHJHHKHQJQPQPQRUUYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU8>WYU>8YYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYYYYY YYUUC$[YYUw=CYC=CYYYYYYYYYUYYU)|YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYYYYYY YYUYYYYYYYYYYYYY8|YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYSVQSRNNPPQHHHNHDHBBBzvtsojojee07754649cc455 6addadpdddddfcdhddddhcfffdaa 519cnla7545550eejno tvvBBDBDDHDHNHKNPRQRVUWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUU'|Y['UYY=.@8Y> &.=]%..bYYY=.@8YY (%+GYYY=.@8YYYYYYY YYYUU<'UWUU[)U)[UYYYYYYYYYYYYC=UYYYYY> &.=]%..bYYY[%>|YYYY[*.# YYT_#;qYY T* Y,.(%+3YYb-.$:UYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYUWUWQQPQKJHPIHDHHBBBzvttooojgcc755675aad454 a0dacdfhlhkhkdhhkkhhhfhfmdcdda a5nhhda6567770egjj ovvzzBEHHHJKDQNQPQPQSRUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUi;U$iYYU!U8;YU qU:@iU<'YYU!U8;YY CU:{YYU!U8;YYYYYYY UYYYUi$YYYYU!~)UYYYYYYYYYYYYU((YYYYYYU qU:@iU<'YYi'Cw'iYU}$[MK YU]^U_'YY UU YU KU_'YU=+ YY UYY UYY YUb>+ YY YYY YUb>+ YYYYYYY YYYYYq$YYYYU!],YYYYYYYYYYYYU|'UYYYYYYY UYY UYY YU=UYTU=YU@iYYU YY YY YY YY YYY UU=qG: YU|,qUqYY YY YY YYY YU[@ ;|YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYUYTURRUPNQHHHHDHHBBBvvttoojjcccdguhffc7459 dffklxpuuAuupurpuuuuruuuupppmllkkngf 6a717ac75579gju ssvvvBzBBHJHHHPHKNPRPQSWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY(# #(YY<@@/@>> &q* *q* ;Y<@@/@>> =Y- ,Y<@@/@>YYYY3*. ; &q* *q* ;YU[$$YU_@@{i% %$ =Y- ,U[YYYYYYYYYYYYYYYYYYYYYYYY|$+YYYYYYYYYYYYYYYYYYYYG& YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYUYWYVRRRPQQDIPHDDHEBBvtttoonec095a77c0 0dddfh npuuAAFFFLLUU UUUUQLILIIFAAxurmlhhhfcd 57da7455 ejooovvzzDBHDHHDHHNPPRURUWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU=i]U^YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY^UUY YYYYYYYYYYYYYYYYYYU>YYYYYYYYYYYYYYYYYYYYYYYU=i]UYYYYYYYYYYYYYYYYY^UUY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYSTRQPQPPPPHDHHDBEzzztssonnjgecddchd addfhf mrupuxAFILILLUU YYUUULLLFFAAuunpplhhddaa 4dd64747 jgjottzvBBDEHDDNPQKKPNRRWUWUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY UUU=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU=YYY YYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYY UUYYYYYYYYYYYYYYYYYU=YYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYUYWUUSUPQPJHPNHHHHBBBvyyyxtsssnuosuuxu hhlfkkh ppuuAAFFILLQQUU UUUUULLLFFAAuuumplfkhfdda 7f95957 jjjnotvzBBBHHJHHHHPQPNQRYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY|$.&YYY[%>|Yi= +> ), =qYYYi% )YY=.@8Y>.8)@YT_#;qYYYYYY|$.&Y~ %|% ~,.(%+3Y> )Y (%+GYYT_#;qYY|$.&T* Y YYT_#;qY>.8)@YYYi= .YY[%>|YY>.8)@YYYY> )Y (%+GYYT_#;qYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYUWSPPPPKNPHKKDDDDDzzttoonnmlh0c0cfgc ccddffekllppruAxFFIILUUWU WYYUQUIFIFFAAurp lkhfdhcd chcd0d0 jnotvvzzBDDDHHDKPQNNQQRQPYWUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU$|U~YYi'Cw'iUU YUU YUU)UUU#wUb*UYU!U8;YU [i'U]^U_'YYYYYU$|U~YU$wUb&UU KU_'UU YUY CU:{YU]^U_'YU$|U~UU Y;MYq_YU]^U_'YU [i'YYYUU YUYi'Cw'iYU [i'YYYUU YUY CU:{YU]^U_'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYWWURURPQDQHHHHHEBBzvtttsjje0c9957ada adddhhkmmppuxFAFFLLLUUYU UUUQLLLFFAxxur mlhhffc gplmnpn AAsyyyyDHDJDPNHHHIPPPQSUSUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU=3UUYU(iLU8/YY YYY YYU]bY| :U(^UYUYUU YY UUYU$KUU#YYYYYU=3UUYU{:U(]UY YUU YY YYU UUU YU$KUU#YU=3UYYY UUUU{UYU$KUU#YY UUYYUYYY YYU(iLU8/UY UUYYYYYY YYU UUU YU$KUU#YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYWUYQRQPPPHPQKHDBEBzzttooojee055646fa dcfdfkkkpuuuuFFLILLQUUY WWUULQFLFFAuuu khffdd 5dfaaacc ossAyDDDDHDNDKQQPPKNQRQRUYWUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU[ {MYU=UYTU=YY YYY YYU3~U{!,U>8YUb>+ YY YYYY YYYYYU[ {MYU3'U,|YY YYY UY YYY YYY YY YU[ {GYY YYY_iYYY YY YYYYYYYY YYU=UYTU=YY YYYYYYYY YYY YYY YY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYUYWSVPRPPPQHHHIHHDDBzvttoojjeca65456da5 adfdfkmpppuuAFFFILQUQUUU UUQLLIFFAAuu lkhfdc 156d65597 eoootvyyDHBHHHHDHHQPQRPSSUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYUU}~'YU&MUYK*YY YYY YYUU$U&C@i$UYU=(KT YY YYYU#TYUYYYYUYUU}~'YUU$K@UYY YUY YY YYY YYY YU#TYUYYUU}~'YY YYi_UYYU#TYUYYY YYYYYYYY YYU&MUYK&YY YYYYYYYY YYY YYY YU#TYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYWTVQRQPNQPNJHDEBBBztttojjge055767dd41 adhhhkllpruuuFFLILLUUUU UULILFFFAuup mkffff 714cd96675 jjjootvzBBDHDDDNPQJNPPUSUYWUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUK YY(iYY8/YY YYY YYYU!!!U')~UYU UYY YY YYYU,iYYYYYYYYYUUK UYY)]'YUY YYY YY YYY YYY YU,iYYYYYUUK UY YU]UY,YU,iYYYYY YYYYYYYY YYY(iYU8(UY YYYYYYYY YYY YYY YU,iYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYUYUUVRQRUKHDIHINEHEBBzttoonjee0755557d51 afdfklpppuuFuFFFFILLUUUU LLILFAAAuu mmkhhdd 714cd55555 ejnoovvvBBDHHHHHHDQNRPRSSUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY{G}%YUi'Cw,iUY YYY&8MYU} }U< }UYU$:M| YY YYYU|,qUqYYYYYY{G|%YUU< :YYY YYY YY&8MY YYY YU|,qUqYY{G|%YY Y_qUC'YU|,qUqYY YYYYYYYY YYUi'Cw,iYY YYYYYYYY&8MY YYY YU|,qUqYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYWTSVNNPQPNNJEDEBBzvvttojjec054546ac655 afffkklupuuuAFFILFLKKQQQ .LLFFFFxu lkkfdh 7557c765449 gjosttvzyHBBDDKKKPPPKRPSUYWUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY= $}YYU[$$> %bYYU_@@{YYYYYY= $}YYYU CYY, =Y- ,U8@;> =Y- ,YU_@@{YY= $}i% $ $YYU_@@{Y> %bYYYYG- % %bYYYYYU8@;> =Y- ,YU_@@{YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYUYWUVSUPPPPHIHDHDHEBBvttttjjjec57556dh644 adkkmlllpruuAAFFIIFLLLLLL .AA nplkhcd 7116ha67557 gjooovvzzEHHJHHHNKKPNQSSSUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYUUUYYUUUUUUUYUUYUUUYYYUXYUUYYYYUUUUUUUYUUYYYUUYUUYYYYYUYUUYYUY3=UYUYUYUYUYUUUUYUYUYUYYUUYUUYUYUUUUUUYYWUUYYYUUYUUUYUUYYYYUUYUUYYUUUUUYUYUUYYYYYYUUUUYUYUYUYYUUYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYWWUUPUPPPQPPHHHHBEBBvttooneeca54777c7527 lfhhlrppuuuuAFAFFLFIFFIIIF ppmkmlfd 9517ac775470 jjjttvzvBBBHHHDQDNPPQSPSUYWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY[YYYYM/*..%'YYM/*..%'Y3$ $3YYYYYM/*..%'YYYYYYYYYY|$+YYYYYYYYYM/*..%'YYYYYYYYYYYYYYYYYYG& YYYYYYYYY3$ $3YYYYYYYYYYYYYYYYYYYYYYYY|$+YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYXURSQQNPQHIHKHEDDDzzzvvtojgge0756567d95257 afdffhhhrpkllpmkkpmllplmhhkfdhhm dd455dd6775770ejo yvvBvzBDDEDNDHDPKPQQRUWWUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUY YUi:$!UYU!]qUw< YU!]qUw< UUY UYYYYYU!]qUw< YYYYYYYYYU=i]U^YYYYYYU!]qUw< YYYYYYYYYYYYYYYY^UUY YYYYYYYYUUY UYYYYYYYYY^YYYYYYYYYYYYYYU=i]UYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYWWUVURSPPPPQPKEDDEBBDzvvtonjjec0575655aha6157 .afddfflAklkmkklmkkmkhkmhfhkhdd a77796h7754550ccgn yIDyDEBBHDHHNQPJPNRPQSUUWUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYUUC$|Yi= +> )YYYYU;/UYYUYY~ %|% ~,.(%+3Y> )Y (%+GYYYYYYY YY,.(%+3Y> )YT_#;qY>.8) = .YY=.@8YYY[%.&YYT_#;qYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYWYWWSQQRPQPQNHJDHEEBzvvvosonjec0055456aad6417 0ddffskdffffhfhffhffflkhfddd dd66afd9774577eeejj svyBDHPPHNQHKQJKNPQQSTSYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY UYYYUi$UUi=>+ YU'}YYUUY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYVUPPQPNNNHPHIHHDBDBzvtottonjee00545647adc65 976dhaa6a459aeegjnoo vzBEBHDEHNHHPPPPQURSVXYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYU}'XYUYYUUi@YYUYYUUi@YYY YYYYYYYUYYUUi@YU&MUYK*YY YYY YYYYYYYUYYUUi@YUU$K@UYY YUY YY YYY YYY YYYYYYY YYY YUY YY YYU#TYUYYY YYYY YYU=(KT YU'}UYYYU#TYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYWUXVUURPPPQQJQHHDJHBBBzvzooojnjeec0555547adh65 96dhhaa694990cgejjjot zvBBEDHDDHQPINNRRPQSTUWUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY YYYYU,}UY)YYYYK$YY)YYYYK$YYY YYYYYYY)YYYYK$YY(iYY8/YY YYY YYYYYYY)YYYYK$YYY)]'YUY YYY YY YYY YYY YYYYYYY YYY YYY YY YYU,iYYYYY YYYY YYU UYY YU~_YYYYU,iYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYUWWRRUQQPPNHPQJEDHHBBBvzvttojjgecc75454575aha adha66d9977a0fjjjoost BBBBHDHPQHHPKQJKRVSUVYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY MYM8'~UYU._wUi~^UU._wUi~^UYY YYYYYYU._wUi~^UUi'Cw,iUY YYY&8MYYYYU._wUi~^UUU< :YYY YYY YY&8MY YYY YYYYYYY YYY YYY YY&8MU|,qUqYY YYYY YYU$:M| YU8$8UqYU|,qUqYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYWWQPRPPKQQHHHHHDBEEzBvvtooojjjec07745646a6dc9755157959599 a99999779cn5766dhdadad0c09acggmlootot zBDDEJHHHKQNPNQPQQSWWWYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY3*. >:UYYU~= =(UYU~= =(UY3$ $3YYYYU~= =(UYYU[$$ =Y- ,YYYY3$ $3, =Y- ,U8@;YU_@@{Y> %bG- %UL:$+!YYU_@@{YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYUYUWVPRPPNPQKNKHNHDBDBBBtzttsonjeee0055554576add65411146777 a777595125lcaddhd666ddhplfhfjjnussyvy BBEDEDHKHHIPQPPRVSVUYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUUUUUUUUYYYUUUYUUYYYUUUYUUYYUUYUUYYYYYUUUYUUYYYYUUUUUUUYUUYUUUYYYYYUUUYUUYYYUY3=UYUYUYUYUYUUUUYUYUYUYYYYUUYUUUYUYUYUYUUUYYUUYUUUYUUUUYUUYUUUUUUYYUUUUUYYUUYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYUYUTUQRRPNPPDHKHHHHBEEzzvvtoojnjjec09547665967dcd9a7522211 5121114759gmfgdadda95fnIulegmmsosttyz BEBHDPDHKPPPPPUPRUUYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYG& YYYYYYYYYYYYYYYq{%.%{qYYYYYYYY-@.':MYYY}&%[YYYYY}%YYYY-@.':MYYYYYYM/*..%'YYYYYYYYYYYYYYYYYYYYYYYYYY3$ @'qYYYYYYYYYi% YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYUWYYWVPRUQPPPPPPPHHNPPHHHDHDEDDBBEBzzBzvzzvttyyyBDvztzttttvvvzvBzzEBzEEHPQPUVVQRSSQYWURUTVUTUXUXVYUYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY~>|CUi_$UYYYYYYYYYYYYYYYYYYYYYYYYYYYYU>YYYYYYUUY YYYYYY^YYYYYYY|@]8Ui/@|UYYYYYU=wU8):UYi>ii$iYYU]_ YYYU=wU8):UYYYYU!]qUw< YYYYYYYYYYYYYYYYYYYYYYYYYUUY YUw!>UYYYYYYYUUY YY^YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYUUXUSRSRRPPNQPQQHJHJQDHJHDEEEEBEBBBzBzzBvvvyzIDBzzvvvzvzBBBBBBEBBBBDHDPURRQVQUUWUURWWUUVUUUVSUWYYYYYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU|=UUUYUU)YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYY8|Y YYYYYU=YYYYYUw |w'@ ;3@qYYYYYYUUYUi=YU]}UU<{UYYUU YYYYUUYUi=YYYYYU CUYUU'YYYYYYYYYYYYYYYYYYYYYYYYYYYY YYUU YYYYYYYYYYY YU=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYUYUVURQUPQPNPPQJQKHNQDJJHDDEHDEBDBBBBBBBBBzzDDzBzBBzBzBBBEEBBEHHHHDHNNQQWSWRRURUVUUUVUUTRVUYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU'}YYUYYUUYYY[%>|YY).).$[YY~ %|% ~>.8).* YYb-.$:UY (%+GY> )YYYU{/L>(LU:L/{UYYYYYYUUUK+YU=wUUi=UWYYY YYYYYUUUK+YYYYYU;/UYYUYYYT_#;qYYY=.@8Y,.(%+3YYYYYYY YYYC$YYYY[%>|YYY Y> )YY[%>|YY,.(%+3YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYWYWVUSPUPRQPNPQPHQJHNHHDHHDDEEHEHEBBBEEEBBEJKDBEBDBEBEEEBDEEBEHDDHJHPPVQUUSSSQVUVVWUVWWUTYWUUUUYUYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU=qYYYYYYYYYi'Cw'iYU qUi;}YU$wUb&UU [i)U YU=+ YY YYY UYYYYYY YUw^!UYU=UYTU=YY YY YYU=UYTU=YY YYY UYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWUUVVWRSRURRQNPNQQKQHQDPPHHHHDPDDDHHHJHHHHHEHHHHDDHHHHINJHHDINJPHNPSUUPSUVTVUYUWUUUYYUUYYUYUYYUYUYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU'}YYYYYYYYU&MUYK&YY YYWi@YUU$K@UYY YYYY YU3 @)iUY YYY YY YYYYYU{^U>{wG'U^{UYYYYYYY|{UYYU*qYYi=YYYYY YYYYYY|{UYYYYYYYUYYUUi@YU#TYUYYU=(KT YY YUY YYYYYYY YUUU@YYU&MUYK&YY YY YYU&MUYK&YY YUY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWUUUUQRQQRPQPPPPNQHPHHJKQNJHJJNDNDEQDQPIDDDHHHNIHHNPHDKKNPODDQKRURRUUVUUTRUWUWWWUUYYYYYYYUYYYYYUUYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYU}=TYYYYY!YY(iYU8(UY YYU:>UYY)]'YUY YYYY YU!8UUUYY YYY YY YYYYYUL@3w'@@=|@qYYYYYYU[]UYYYY{}YU<{UYYYY YYYYU[]UYYYYYYYY)YYYYK$YU,iYYYYU UYY YY YYY YYYYYYY YYYC#YYY(iYU8(UY YY YYY(iYU8(UY YYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWWYYYWVWSVWQURQPRPQPQNQQDHHINHHJHJDNDHNHPPNJJDKKHJJKDHPPHHPHIOPPPKNSSWVTTUUURVWYYYYYYYUYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUU{;|CTq:@UUi'Cw,iYY GT[=8UUU< :YYY YYYY YU[@ ;|Y YYY YY&8MYYYYU}@/bLb^@}UYYYYYY:^UYYYYUb=qi$bUYYYY YYYY:^UYYYYYYYYU._wUi~^UU|,qUqYU$:M| YY YYY YYYYYYY TYC^!UYUi'Cw,iYY YY&8MUi'Cw,iYY YYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWYWYWTUVPPSRQPPPPQPPPQPPHQKHQHNHPDKQHPHHHNHHKHDHPPDJPPDPPRPNPPRUUUUUUWUVUUYUUYYYUUYUYUYYUUYYYYYUYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYU}'$ ={YYU[$$ %bi% $i[ =Y- ,U8@;YYYYYUL~= $~wUYYYYYYU YUL[$$[UYYw>@ @>CU YYYYYU~= =(UYYU_@@{YY<@@/@>, =Y- ,YYYY3$ @!KYYYU[$$ %bYYUY.$8UYYYYYYYYYYYU|* $]UYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUWYUUUUVRQQPPUPRPPQPPQNNNPQPPPPPPQPQNQPNNQPQPQRRQPUQVQVQTVTYTWYYUYYYUUYYYYYYYYYYYUUYYYYYYYYYUYYYUYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYUUYYYUYUUYYYYYYYYYYYYYUUUUUUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWYYYYUSVVVRPSQUPRPPPQQQPPQRQQQPPQPQPRQUPQPRPQPSUPVSWVWUWUUUUUWYYUYYYYYYYUUYYUYYYYUUYYUUUUUYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYVVYWTVUUSURRUQURRPRRQRRQRRPQPRRPRQPNUPRQVSUSRSSVUXUWYWWYYYYYYYYYYUYUUYYUUYUUYYYYYUYYYYYYYYYYUYUYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWYUYXWWSUSRVRQQSQQRQQSPPRRUPQRQRURPRQSSVVVSVUUYUYYUYYUYYYYUYYYYYYYYYYYYYYYUYYYYYYYYYUUYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYUUYYWWWWVSWWUVVUSSVUSQQPUSURPRQSUSSUUWUWTXXWYYYYUYYYYYYYYYYYYUUYYUYYUUYYUYYUYUYUUYYUUYYYYYUUUYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYUUYUYUVWUSVVUWUWSVRVSVUVWVRUUXYUYYUVVUWYYYYYYYYYYYUYYYYYYYYYYYYYUYYYYYYYUYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYUYUYYYXWXWWYYUXXVUWUYWUTUXWVVYWUYYYYYYYYYYYYYYYYYYYYYYYYUYYUYYYYYUYYYYYYYYUYYYUYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYX}'%.&'|YYYYYYYYYYYYYYYYYYYM& YYYYYYYYYYYYYi% YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWYYUUWYUYYUWYUUUYUYWUYUYVYUYWYYYUYYYYYYYYYYYYYYYUYYYYYYYYYYUUYYYYUUYUYUUYYYYYYUYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYw;!|wUi_@~YYYYYYYYYYYYYYYYYUUY YYYYYYYYYYYYUUY YY^YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYUUYYWYYYWYWUYYYWYUYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYYYYUYYUYYUYYYYUYYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUC=3UUUYUUC@[YYYYYYYYYYYYYYYYYYY YYYYYYYYYYYYYYY YU=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYWWYYYYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUUUYYYYYYYYYYYYYYUUYYUYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY|$.&YYT_#;qYYY=.@8Y,.(%+3YYU'8UUYUYYUU[>UY|$.&Y> &.=]%..bYY %.!wYYYY[%>|YYY Y> )YY[%>|YY,.(%+3YYYYYYY[%.&YYY[%>|YY> &.=]%..bYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYYUUUYYYUYYYYUYYYYYUYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU$|U~YU]^U_'YYU!U8;YU KU_'YU|{UYX:=.+YUq@YU$|U~YU qU:@iU<'YY wUi;3YYi'Cw'iYY UU YUYi'Cw'iYU KU_'YYYYYUb$iU)YYi'Cw'iYU qU:@iU<'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUUYYYYUYYYUUUYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU=3UUYU$KUU#YYUYUU YY YUU YU~iUU~(wi>UUU+YU=3UUYY YUU YUU YY YUU}'YU(iLU8/UY YY YYU(iLU8/UY YUU YYYYYU{_UUwYU(iLU8/UY YUU YUU YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUUYUYUYYYUUYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYU[ {MYY YUb>+ YY YYY YU>UU}{UL<]YYi;YU[ {MYY UYY UYY YY UYUi=YU=UYTU=YY YY YYU=UYTU=YY YYY UYYYYU'}YYUUU=UYTU=YY UYY UYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYUU}~'YU#TYUYYU=(KT YY YUY YU,YU'bUU~}UU__UUU}~'YY YUU YUY YY YYU}=YU&MUYK&YY YY YYU&MUYK&YY YUY YYYYYU'}UYYYU&MUYK&YY YUU YUY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYUUUYYYYYYYYUUYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUK UU,iYYYYU UYY YY YYY YU>YU@UYU=wUC'UYYUUK UY YYY YYY YY YYU/!YY(iYU8(UY YY YYY(iYU8(UY YYY YYYYYU~_YYYYY(iYU8(UY YYY YYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUUUUYYYYYYYUUYUYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY{G|%YU|,qUqYU$:M| YY YYY YU,UU.8q( G8!qUYY{G|%YY YYY YYY YY GT<@|UUi'Cw,iYY YY&8MUi'Cw,iYY YYY YY;YYU8$8UqYUi'Cw,iYY YYY YYY YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYUYYYYYYYYYUYYYYYYYYYYUYUYUUYUYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY= $}YYU_@@{YY<@@/@>, =Y- ,U/_U]@)i =/KUYYY= $}Y> &q* *q* ;Y)$ =YYUL:$+!YYU[$$ &q* *q* ;YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYUYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYUUYYYUUYUUYUUUUUUUYUYUYUYUU*8UUUUUUTYYYYUYUUYUYUUUYUUUYUYUUYUUUYYYUUUUUUUYUUUUUYYUUUUUYUYUYUYUYUUYYYUUUUUYYUUUUUYUYUUUYUUUYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYYYYUYUUYYYYYUYYYYYYUYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY8$]|CTw[~bYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYUYYUYYYYYUUYYYYYYUUYYYYYYYYUUUYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUUUUU]>@ =/LXYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYUUYUUYYUUYUYYUYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUUUUUUXUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYUUUYUYYUYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYUYYYYYYUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYUYUYYUYYYYYYYYYYUYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYUYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYUYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYUYYYYYYYUYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYUYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYUUUUUYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY", "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"}; hexter-1.0.2/src/gui_data.c0000644000076400007640000004002512044007136012450 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2011, 2012 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include "hexter_types.h" #include "hexter.h" #include "dx7_voice.h" #include "gui_main.h" #include "dx7_voice_data.h" /* * dx7_bulk_dump_checksum */ int dx7_bulk_dump_checksum(uint8_t *data, int length) { int sum = 0; int i; for (i = 0; i < length; sum -= data[i++]); return sum & 0x7F; } /* * dx7_patchbank_load */ int dx7_patchbank_load(const char *filename, dx7_patch_t *firstpatch, int maxpatches, char **errmsg) { FILE *fp; long filelength; unsigned char *raw_patch_data = NULL; size_t filename_length; int count; int patchstart; int midshift; int datastart; int i; int op; /* this needs to 1) open and parse the file, 2a) if it's good, copy up * to maxpatches patches beginning at firstpath, and not touch errmsg, * 2b) if it's not good, set errmsg to a malloc'd error message that * the caller must free. */ if ((fp = fopen(filename, "rb")) == NULL) { if (errmsg) *errmsg = dssp_error_message("could not open file '%s' for reading: %s", filename, strerror(errno)); return 0; } if (fseek(fp, 0, SEEK_END) || (filelength = ftell(fp)) == -1 || fseek(fp, 0, SEEK_SET)) { if (errmsg) *errmsg = dssp_error_message("couldn't get length of patch file: %s", strerror(errno)); fclose(fp); return 0; } if (filelength == 0) { if (errmsg) *errmsg = strdup("patch file has zero length"); fclose(fp); return 0; } else if (filelength > 2097152) { if (errmsg) *errmsg = strdup("patch file is too large"); fclose(fp); return 0; } else if (filelength < 128) { if (errmsg) *errmsg = strdup ("patch file is too small"); fclose (fp); return 0; } if (!(raw_patch_data = (unsigned char *)malloc(filelength))) { if (errmsg) *errmsg = strdup("couldn't allocate memory for raw patch file"); fclose(fp); return 0; } if (fread(raw_patch_data, 1, filelength, fp) != (size_t)filelength) { if (errmsg) *errmsg = dssp_error_message("short read on patch file: %s", strerror(errno)); free(raw_patch_data); fclose(fp); return 0; } fclose(fp); filename_length = strlen (filename); /* check if the file is a standard MIDI file */ if (raw_patch_data[0] == 0x4d && /* "M" */ raw_patch_data[1] == 0x54 && /* "T" */ raw_patch_data[2] == 0x68 && /* "h" */ raw_patch_data[3] == 0x64) /* "d" */ midshift = 2; else midshift = 0; /* scan SysEx or MIDI file for SysEx header(s) */ count = 0; datastart = 0; for (patchstart = 0; patchstart + midshift + 5 < filelength; patchstart++) { if (raw_patch_data[patchstart] == 0xf0 && raw_patch_data[patchstart + 1 + midshift] == 0x43 && raw_patch_data[patchstart + 2 + midshift] <= 0x0f && raw_patch_data[patchstart + 3 + midshift] == 0x09 && raw_patch_data[patchstart + 5 + midshift] == 0x00 && patchstart + 4103 + midshift < filelength && raw_patch_data[patchstart + 4103 + midshift] == 0xf7) { /* DX7 32 voice dump */ memmove(raw_patch_data + count * DX7_VOICE_SIZE_PACKED, raw_patch_data + patchstart + 6 + midshift, 4096); count += 32; patchstart += (DX7_DUMP_SIZE_VOICE_BULK - 1); } else if (raw_patch_data[patchstart] == 0xf0 && raw_patch_data[patchstart + midshift + 1] == 0x43 && raw_patch_data[patchstart + midshift + 2] <= 0x0f && raw_patch_data[patchstart + midshift + 4] == 0x01 && raw_patch_data[patchstart + midshift + 5] == 0x1b && patchstart + midshift + 162 < filelength && raw_patch_data[patchstart + midshift + 162] == 0xf7) { /* DX7 single voice (edit buffer) dump */ unsigned char buf[DX7_VOICE_SIZE_PACKED]; /* to avoid overlap in dx7_patch_pack() */ dx7_patch_pack(raw_patch_data + patchstart + midshift + 6, (dx7_patch_t *)buf, 0); memcpy(raw_patch_data + count * DX7_VOICE_SIZE_PACKED, buf, DX7_VOICE_SIZE_PACKED); count += 1; patchstart += (DX7_DUMP_SIZE_VOICE_SINGLE - 1); } } /* assume raw DX7/TX7 data if no SysEx header was found. */ /* assume the user knows what he is doing ;-) */ if (count == 0) count = filelength / DX7_VOICE_SIZE_PACKED; /* Dr.T and Steinberg TX7 file needs special treatment */ if ((!strcmp(filename + filename_length - 4, ".TX7") || !strcmp(filename + filename_length -4, ".SND") || !strcmp(filename + filename_length -4, ".tx7") || !strcmp(filename + filename_length - 4, ".snd")) && filelength == 8192) { count = 32; filelength = 4096; } /* Transform XSyn file also needs special treatment */ if ((!strcmp(filename + filename_length - 4, ".BNK") || !strcmp(filename + filename_length - 4, ".bnk")) && filelength == 8192) { for (i=0; i<32; i++) { memmove(raw_patch_data + 128*i, raw_patch_data + 256*i, 128); } count = 32; filelength = 4096; } /* Steinberg Synthworks DX7 SND */ if ((!strcmp (filename + filename_length - 4, ".SND") || !strcmp (filename + filename_length - 4, ".snd")) && filelength == 5216) { count = 32; filelength = 4096; } /* Voyetra SIDEMAN DX/TX * Voyetra Patchmaster DX7/TX7 */ if ((filelength == 9816 || filelength == 5663) && raw_patch_data[0] == 0xdf && raw_patch_data[1] == 0x05 && raw_patch_data[2] == 0x01 && raw_patch_data[3] == 0x00) { count = 32; datastart = 0x60f; } /* Yamaha DX200 editor .DX2 */ if ((!strcmp (filename + filename_length - 4, ".DX2") || !strcmp (filename + filename_length - 4, ".dx2")) && filelength == 326454) { memmove (raw_patch_data + 16384, raw_patch_data + 34, 128 * 381); for (count = 0; count < 128; count++) { for (op = 0; op < 6; op++) { for (i = 0; i < 8; i++) { raw_patch_data[17 * (5 - op) + i + 128 * count] = raw_patch_data[16384 + 35 * op + 76 + i + 381 * count]; } raw_patch_data[17 * (5 - op) + 8 + 128 * count] = raw_patch_data[16384 + 35 * op + 84 + 381 * count] - 21; raw_patch_data[17 * (5 - op) + 9 + 128 * count] = raw_patch_data[16384 + 35 * op + 87 + 381 * count]; raw_patch_data[17 * (5 - op) + 10 + 128 * count] = raw_patch_data[16384 + 35 * op + 88 + 381 * count]; raw_patch_data[17 * (5 - op) + 11 + 128 * count] = raw_patch_data[16384 + 35 * op + 85 + 381 * count] + raw_patch_data[16384 + 35 * op + 86 + 381 * count] * 4; raw_patch_data[17 * (5 - op) + 12 + 128 * count] = raw_patch_data[16384 + 35 * op + 89 + 381 * count] + raw_patch_data[16384 + 35 * op + 75 + 381 * count] * 8; if (raw_patch_data[16384 + 35 * op + 71 + 381 * count] > 3) raw_patch_data[16384 + 35 * op + 71 + 381 * count] = 3; raw_patch_data[17 * (5 - op) + 13 + 128 * count] = raw_patch_data[16384 + 35 * op + 71 + 381 * count] / 2 + raw_patch_data[16384 + 35 * op + 91 + 381 * count] * 4; raw_patch_data[17 * (5 - op) + 14 + 128 * count] = raw_patch_data[16384 + 35 * op + 90 + 381 * count]; raw_patch_data[17 * (5 - op) + 15 + 128 * count] = raw_patch_data[16384 + 35 * op + 72 + 381 * count] + raw_patch_data[16384 + 35 * op + 73 + 381 * count] * 2; raw_patch_data[17 * (5 - op) + 16 + 128 * count] = raw_patch_data[16384 + 35 * op + 74 + 381 * count]; } for (i = 0; i < 4; i++) { raw_patch_data[102 + i + 128 * count] = raw_patch_data[16384 + 26 + i + 381 * count]; } for (i = 0; i < 4; i++) { raw_patch_data[106 + i + 128 * count] = raw_patch_data[16384 + 32 + i + 381 * count]; } raw_patch_data[110 + 128 * count] = raw_patch_data[16384 + 17 + 381 * count]; raw_patch_data[111 + 128 * count] = raw_patch_data[16384 + 18 + 381 * count] + raw_patch_data[16384 + 38 + 381 * count] * 8; for (i = 0; i < 4; i++) { raw_patch_data[112 + i + 128 * count] = raw_patch_data[16384 + 20 + i + 381 * count]; } raw_patch_data[116 + 128 * count] = raw_patch_data[16384 + 24 + 381 * count] + raw_patch_data[16384 + 19 + 381 * count] * 2 + raw_patch_data[16384 + 25 + 381 * count] * 16; raw_patch_data[117 + 128 * count] = raw_patch_data[16384 + 37 + 381 * count] - 36; for (i = 0; i < 10; i++) { raw_patch_data[118 + i + 128 * count] = raw_patch_data[16384 + i + 381 * count]; } } count = 128; filelength = 16384; datastart = 0; } /* finally, copy patchdata to the right location */ if (count > maxpatches) count = maxpatches; memcpy(firstpatch, raw_patch_data + datastart, 128 * count); free (raw_patch_data); return count; } /* * encode_7in6 * * encode a block of 7-bit data, in base64-ish style */ char * encode_7in6(uint8_t *data, int length) { char *buffer; int in, reg, above, below, shift, out; int outchars = (length * 7 + 5) / 6; unsigned int sum = 0; if (!(buffer = (char *)malloc(25 + outchars))) return NULL; out = snprintf(buffer, 12, "%d ", length); in = reg = above = below = 0; while (outchars) { if (above == 6) { buffer[out] = base64[reg >> 7]; reg &= 0x7f; above = 0; out++; outchars--; } if (below == 0) { if (in < length) { reg |= data[in] & 0x7f; sum += data[in]; } below = 7; in++; } shift = 6 - above; if (below < shift) shift = below; reg <<= shift; above += shift; below -= shift; } snprintf(buffer + out, 12, " %d", sum); return buffer; } void gui_data_patches_init(void) { if (!patches) patches = (dx7_patch_t *)malloc(128 * sizeof(dx7_patch_t)); hexter_data_patches_init(patches); patch_section_dirty[0] = 0; patch_section_dirty[1] = 0; patch_section_dirty[2] = 0; patch_section_dirty[3] = 0; } void gui_data_patches_free(void) { if (patches) free(patches); } void gui_data_mark_dirty_patch_sections(int start_patch, int end_patch) { int i, block; for (i = start_patch; i <= end_patch; ) { block = i >> 5; patch_section_dirty[block] = 1; i = (block + 1) << 5; } } void gui_data_send_dirty_patch_sections(void) { int block; char *p; char key[9]; for (block = 0; block < 4; block++) { if (patch_section_dirty[block]) { if ((p = encode_7in6((uint8_t *)&patches[block << 5], 32 * DX7_VOICE_SIZE_PACKED))) { snprintf(key, 9, "patches%d", block); lo_send(osc_host_address, osc_configure_path, "ss", key, p); free(p); patch_section_dirty[block] = 0; } } } } int gui_data_save(char *filename, int type, int start, int end, char **message) { FILE *fh; char buffer[20]; int i, j; uint8_t *patch; int checksum = 0; GUIDB_MESSAGE(DB_IO, " gui_data_save: attempting to save '%s'\n", filename); if ((fh = fopen(filename, "wb")) == NULL) { if (message) *message = dssp_error_message("could not open file '%s'for writing", filename); return 0; } if (type == 0) { /* sys-ex */ buffer[0] = 0xf0; buffer[1] = 0x43; buffer[2] = 0x00; buffer[3] = 0x09; buffer[4] = 0x10; buffer[5] = 0x00; if (fwrite(buffer, 1, 6, fh) != 6) { fclose(fh); if (message) *message = dssp_error_message("error while writing sys-ex header: %s", strerror(errno)); return 0; } } for (i = start; i <= end; i++) { patch = (uint8_t *)&patches[i]; for (j = 0; j < DX7_VOICE_SIZE_PACKED; checksum -= patch[j++]); if (fwrite(patch, 1, DX7_VOICE_SIZE_PACKED, fh) != DX7_VOICE_SIZE_PACKED) { fclose(fh); if (message) *message = dssp_error_message("error while writing file: %s", strerror(errno)); return 0; } } if (type == 0) { /* sys-ex */ buffer[0] = checksum & 0x7f; buffer[1] = 0xf7; if (fwrite(buffer, 1, 2, fh) != 2) { fclose(fh); if (message) *message = dssp_error_message("error while writing sys-ex footer: %s", strerror(errno)); return 0; } } fclose(fh); if (message) { *message = dssp_error_message("wrote %d patches", end - start + 1); } return 1; } /* * gui_data_load */ int gui_data_load(const char *filename, int position, char **message) { int tmpcount = 0; GUIDB_MESSAGE(DB_IO, " gui_data_load: attempting to load '%s'\n", filename); tmpcount = dx7_patchbank_load(filename, &patches[position], 128 - position, message); if (!tmpcount) { /* no patches loaded (message was set by dx7_patchbank_load()) */ return 0; } gui_data_mark_dirty_patch_sections(position, position + tmpcount - 1); if (message) { *message = dssp_error_message("loaded %d patches", tmpcount); } return tmpcount; } void gui_data_send_edit_buffer(void) { char *p; if ((p = encode_7in6((uint8_t *)&edit_buffer, sizeof(edit_buffer)))) { lo_send(osc_host_address, osc_configure_path, "ss", "edit_buffer", p); free(p); } } void gui_data_send_edit_buffer_off(void) { lo_send(osc_host_address, osc_configure_path, "ss", "edit_buffer", "off"); } void gui_data_send_performance_buffer(uint8_t *performance_buffer) { char *p; if ((p = encode_7in6(performance_buffer, DX7_PERFORMANCE_SIZE))) { lo_send(osc_host_address, osc_configure_path, "ss", "performance", p); free(p); } } hexter-1.0.2/src/dx7_voice_render.c0000644000076400007640000010400011757613235014130 00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011 Sean Bolton and others. * * Portions of this file may have come from Juan Linietsky's * rx-saturno, copyright (C) 2002 by Juan Linietsky. * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H #include #endif #define _BSD_SOURCE 1 #define _SVID_SOURCE 1 #define _ISOC99_SOURCE 1 #include #include "hexter_types.h" #include "hexter.h" #include "hexter_synth.h" #include "dx7_voice.h" static inline dx7_sample_t dx7_op_calculate_operator(dx7_sample_t eg_value, dx7_sample_t phase) { int32_t index; dx7_sample_t mod_index, out; #ifdef HEXTER_USE_FLOATING_POINT float frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* use eg_value to look up the modulation index, with interpolation */ #ifndef HEXTER_USE_FLOATING_POINT index = FP_TO_INT(eg_value); mod_index = dx7_voice_eg_ol_to_mod_index[index]; mod_index += FP_MULTIPLY(dx7_voice_eg_ol_to_mod_index[index + 1] - mod_index, eg_value & FP_MASK); #else /* HEXTER_USE_FLOATING_POINT */ index = lrintf(eg_value - 0.5f); frac = eg_value - (float)index; mod_index = dx7_voice_eg_ol_to_mod_index[index]; mod_index += (dx7_voice_eg_ol_to_mod_index[index + 1] - mod_index) * frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* use phase to look up the oscillator output, with interpolation */ #ifndef HEXTER_USE_FLOATING_POINT index = ((uint32_t)phase >> FP_TO_SINE_SHIFT) & SINE_MASK; out = dx7_voice_sin_table[index]; out += (((int64_t)(dx7_voice_sin_table[index + 1] - out) * (int64_t)(phase & FP_TO_SINE_MASK)) >> (FP_SHIFT + FP_TO_SINE_SHIFT)); #else /* HEXTER_USE_FLOATING_POINT */ phase *= (float)SINE_SIZE; index = lrintf(phase - 0.5f); frac = phase - (float)index; index &= SINE_MASK; out = dx7_voice_sin_table[index]; out += (dx7_voice_sin_table[index + 1] - out) * frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* return the product of modulation index and oscillator output */ return FP_MULTIPLY(mod_index, out); } static inline dx7_sample_t dx7_op_calculate_operator_saving_feedback(dx7_voice_t *voice, dx7_sample_t eg_value, dx7_sample_t phase) { int32_t index; dx7_sample_t mod_index, out; #ifndef HEXTER_USE_FLOATING_POINT int64_t out64; #else /* HEXTER_USE_FLOATING_POINT */ float frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* use eg_value to look up the modulation index, with interpolation */ #ifndef HEXTER_USE_FLOATING_POINT index = FP_TO_INT(eg_value); mod_index = dx7_voice_eg_ol_to_mod_index[index]; mod_index += FP_MULTIPLY(dx7_voice_eg_ol_to_mod_index[index + 1] - mod_index, eg_value & FP_MASK); #else /* HEXTER_USE_FLOATING_POINT */ index = lrintf(eg_value - 0.5f); frac = eg_value - (float)index; mod_index = dx7_voice_eg_ol_to_mod_index[index]; mod_index += (dx7_voice_eg_ol_to_mod_index[index + 1] - mod_index) * frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* use phase to look up the oscillator output, with interpolation */ #ifndef HEXTER_USE_FLOATING_POINT index = ((uint32_t)phase >> FP_TO_SINE_SHIFT) & SINE_MASK; out = dx7_voice_sin_table[index]; out64 = out + (((int64_t)(dx7_voice_sin_table[index + 1] - out) * (int64_t)(phase & FP_TO_SINE_MASK)) >> (FP_SHIFT + FP_TO_SINE_SHIFT)); #else /* HEXTER_USE_FLOATING_POINT */ phase *= (float)SINE_SIZE; index = lrintf(phase - 0.5f); frac = phase - (float)index; index &= SINE_MASK; out = dx7_voice_sin_table[index]; out += (dx7_voice_sin_table[index + 1] - out) * frac; #endif /* HEXTER_USE_FLOATING_POINT */ /* save that output, scaled by our eg level, feedback amount, and a * constant, as our feedback modulation index */ #ifndef HEXTER_USE_FLOATING_POINT voice->feedback = (((out64 * (int64_t)eg_value) >> FP_SHIFT) * (int64_t)voice->feedback_multiplier) >> FP_SHIFT; #else /* HEXTER_USE_FLOATING_POINT */ voice->feedback = out * eg_value * voice->feedback_multiplier; #endif /* HEXTER_USE_FLOATING_POINT */ /* return the product of modulation index and oscillator output */ #ifndef HEXTER_USE_FLOATING_POINT return (int32_t)(((int64_t)mod_index * out64) >> FP_SHIFT); #else /* HEXTER_USE_FLOATING_POINT */ return mod_index * out; #endif /* HEXTER_USE_FLOATING_POINT */ } static inline void dx7_op_eg_process(hexter_instance_t *instance, dx7_op_eg_t *eg) { eg->value += eg->increment; if (--eg->duration == 0) { if (eg->mode != DX7_EG_RUNNING) { eg->duration = -1; return; } if (eg->in_precomp) { eg->in_precomp = 0; eg->duration = eg->postcomp_duration; eg->increment = eg->postcomp_increment; } else { dx7_op_eg_set_next_phase(instance, eg); } } } static inline void dx7_op_eg_adjust(dx7_op_eg_t *eg) { /* The constant in this next expression needs to be greater than * 0.000815 * (32/99) * sample_rate to avoid interaction with envelope * precompensation. 60 is safe to 192KHz. */ if (eg->duration > 60) { if (eg->mode != DX7_EG_RUNNING) return; eg->increment = (eg->target - eg->value) / eg->duration; } } static inline void dx7_pitch_eg_process(hexter_instance_t *instance, dx7_pitch_eg_t *eg) { if (eg->mode != DX7_EG_RUNNING) return; eg->value += eg->increment; eg->duration--; if (eg->duration == 1) { eg->increment = eg->target - eg->value; /* correct any rounding error */ } else if (eg->duration == 0) { dx7_pitch_eg_set_next_phase(instance, eg); } } static inline void dx7_portamento_process(hexter_instance_t *instance, dx7_portamento_t *port) { if (port->segment == 0) return; port->value += port->increment; port->duration--; if (port->duration == 1) { port->increment = port->target - port->value; /* correct any rounding error */ } else if (port->duration == 0) { if (--port->segment > 0) dx7_portamento_set_segment(instance, port); else port->value = 0.0; } } static inline int dx7_voice_check_for_dead(dx7_voice_t *voice) { int i, b; for (i = 0, b = 1; i < 6; i++, b <<= 1) { if (!(dx7_voice_carriers[voice->algorithm] & b)) continue; /* not a carrier, so still a candidate for killing; continue to check next op */ if (voice->op[i].eg.mode == DX7_EG_FINISHED) continue; /* carrier, eg finished, so still a candidate */ if ((voice->op[i].eg.mode == DX7_EG_CONSTANT || voice->op[i].eg.mode == DX7_EG_SUSTAINING || (voice->op[i].eg.mode == DX7_EG_RUNNING && voice->op[i].eg.phase == 3)) && (FP_TO_INT(voice->op[i].eg.value) == 0)) continue; /* eg constant at 0 or decayed to effectively 0, still a candidate */ return 0; /* if we got this far, this carrier still has output, so return without killing voice */ } DEBUG_MESSAGE(DB_NOTE, " dx7_voice_check_for_dead: killing voice %p:%d\n", voice, voice->note_id); dx7_voice_off(voice); return 1; } static inline int float_equality(float a, float b) { union { float f; unsigned long l; } ua, ub; ua.f = a; ub.f = b; return ua.l == ub.l; } static inline int double_equality(double a, double b) { union { double d; unsigned long l[2]; } ua, ub; ua.d = a; ub.d = b; return ua.l[0] == ub.l[0] && ua.l[1] == ub.l[1]; } /* * dx7_voice_render * * generate the actual sound data for this voice */ void dx7_voice_render(hexter_instance_t *instance, dx7_voice_t *voice, LADSPA_Data *out, unsigned long sample_count, int do_control_update) { unsigned long sample; static dx7_sample_t ampmod[4] = { 0 }; dx7_sample_t i; dx7_sample_t output; if (!float_equality(voice->last_port_volume, *instance->volume) || voice->last_cc_volume != instance->cc_volume) dx7_voice_recalculate_volume(instance, voice); switch (voice->algorithm) { case 0: /* algorithm 1 */ /* This first algorithm is all written out, so you can see how it looks */ for (sample = 0; sample < sample_count; sample++) { /* calculate amplitude modulation amounts */ i = FP_MULTIPLY(voice->amp_mod_lfo_amd_value, voice->lfo_delay_value); i = voice->amp_mod_env_value + FP_MULTIPLY(i + voice->amp_mod_lfo_mods_value, instance->lfo_buffer[sample]); #ifndef HEXTER_USE_FLOATING_POINT #define AMPMOD2_CONSTANT (7726076 >> (24 - FP_SHIFT)) /* 0.460510 */ #define AMPMOD1_CONSTANT (3993950 >> (24 - FP_SHIFT)) /* 0.238058 */ #else /* HEXTER_USE_FLOATING_POINT */ #define AMPMOD2_CONSTANT (0.460510f) #define AMPMOD1_CONSTANT (0.238058f) #endif /* HEXTER_USE_FLOATING_POINT */ ampmod[3] = i; ampmod[2] = FP_MULTIPLY(i, AMPMOD2_CONSTANT); ampmod[1] = FP_MULTIPLY(i, AMPMOD1_CONSTANT); output = ( dx7_op_calculate_operator(voice->op[OP_3].eg.value - ampmod[voice->op[OP_3].amp_mod_sens], voice->op[OP_3].phase + dx7_op_calculate_operator(voice->op[OP_4].eg.value - ampmod[voice->op[OP_4].amp_mod_sens], voice->op[OP_4].phase + dx7_op_calculate_operator(voice->op[OP_5].eg.value - ampmod[voice->op[OP_5].amp_mod_sens], voice->op[OP_5].phase + /* -FIX- need to determine if amp mod is included in feedback, or after */ dx7_op_calculate_operator_saving_feedback(voice, voice->op[OP_6].eg.value - ampmod[voice->op[OP_6].amp_mod_sens], voice->op[OP_6].phase + voice->feedback)))) + dx7_op_calculate_operator(voice->op[OP_1].eg.value - ampmod[voice->op[OP_1].amp_mod_sens], voice->op[OP_1].phase + dx7_op_calculate_operator(voice->op[OP_2].eg.value - ampmod[voice->op[OP_2].amp_mod_sens], voice->op[OP_2].phase)) ); /* voice->volume_value contains a scaling factor for the number of carriers */ /* mix voice output into output buffer */ out[sample] += FP_TO_FLOAT(output) * voice->volume_value; /* update runtime parameters for next sample */ voice->op[OP_6].phase += voice->op[OP_6].phase_increment; voice->op[OP_5].phase += voice->op[OP_5].phase_increment; voice->op[OP_4].phase += voice->op[OP_4].phase_increment; voice->op[OP_3].phase += voice->op[OP_3].phase_increment; voice->op[OP_2].phase += voice->op[OP_2].phase_increment; voice->op[OP_1].phase += voice->op[OP_1].phase_increment; dx7_op_eg_process(instance, &voice->op[OP_6].eg); dx7_op_eg_process(instance, &voice->op[OP_5].eg); dx7_op_eg_process(instance, &voice->op[OP_4].eg); dx7_op_eg_process(instance, &voice->op[OP_3].eg); dx7_op_eg_process(instance, &voice->op[OP_2].eg); dx7_op_eg_process(instance, &voice->op[OP_1].eg); if (voice->amp_mod_env_duration) { voice->amp_mod_env_value += voice->amp_mod_env_increment; voice->amp_mod_env_duration--; } if (voice->amp_mod_lfo_mods_duration) { voice->amp_mod_lfo_mods_value += voice->amp_mod_lfo_mods_increment; voice->amp_mod_lfo_mods_duration--; } if (voice->amp_mod_lfo_amd_duration) { voice->amp_mod_lfo_amd_value += voice->amp_mod_lfo_amd_increment; voice->amp_mod_lfo_amd_duration--; } if (voice->lfo_delay_duration) { voice->lfo_delay_value += voice->lfo_delay_increment; if (--voice->lfo_delay_duration == 0) { int seg = ++voice->lfo_delay_segment; voice->lfo_delay_duration = instance->lfo_delay_duration[seg]; voice->lfo_delay_value = instance->lfo_delay_value[seg]; voice->lfo_delay_increment = instance->lfo_delay_increment[seg]; } } if (voice->volume_duration) { voice->volume_value += voice->volume_increment; voice->volume_duration--; } } break; /* Now we'll use some macros to make it easier to read */ #define op(_i, _p) dx7_op_calculate_operator(voice->op[_i].eg.value - ampmod[voice->op[_i].amp_mod_sens], voice->op[_i].phase + _p) #define op_sfb(_i, _p) dx7_op_calculate_operator_saving_feedback(voice, voice->op[_i].eg.value - ampmod[voice->op[_i].amp_mod_sens], voice->op[_i].phase + _p) #define RENDER \ for (sample = 0; sample < sample_count; sample++) { \ /* calculate amplitude modulation amounts */ \ i = FP_MULTIPLY(voice->amp_mod_lfo_amd_value, voice->lfo_delay_value); \ i = voice->amp_mod_env_value + \ FP_MULTIPLY(i + voice->amp_mod_lfo_mods_value, instance->lfo_buffer[sample]); \ ampmod[3] = i; \ ampmod[2] = FP_MULTIPLY(i, AMPMOD2_CONSTANT); \ ampmod[1] = FP_MULTIPLY(i, AMPMOD1_CONSTANT); \ ALGORITHM; \ /* voice->volume_value contains a scaling factor for the number of carriers */ \ /* mix voice output into output buffer */ \ out[sample] += FP_TO_FLOAT(output) * voice->volume_value; \ /* update runtime parameters for next sample */ \ voice->op[OP_6].phase += voice->op[OP_6].phase_increment; \ voice->op[OP_5].phase += voice->op[OP_5].phase_increment; \ voice->op[OP_4].phase += voice->op[OP_4].phase_increment; \ voice->op[OP_3].phase += voice->op[OP_3].phase_increment; \ voice->op[OP_2].phase += voice->op[OP_2].phase_increment; \ voice->op[OP_1].phase += voice->op[OP_1].phase_increment; \ dx7_op_eg_process(instance, &voice->op[OP_6].eg); \ dx7_op_eg_process(instance, &voice->op[OP_5].eg); \ dx7_op_eg_process(instance, &voice->op[OP_4].eg); \ dx7_op_eg_process(instance, &voice->op[OP_3].eg); \ dx7_op_eg_process(instance, &voice->op[OP_2].eg); \ dx7_op_eg_process(instance, &voice->op[OP_1].eg); \ if (voice->amp_mod_env_duration) { \ voice->amp_mod_env_value += voice->amp_mod_env_increment; \ voice->amp_mod_env_duration--; \ } \ if (voice->amp_mod_lfo_mods_duration) { \ voice->amp_mod_lfo_mods_value += voice->amp_mod_lfo_mods_increment; \ voice->amp_mod_lfo_mods_duration--; \ } \ if (voice->amp_mod_lfo_amd_duration) { \ voice->amp_mod_lfo_amd_value += voice->amp_mod_lfo_amd_increment; \ voice->amp_mod_lfo_amd_duration--; \ } \ if (voice->lfo_delay_duration) { \ voice->lfo_delay_value += voice->lfo_delay_increment; \ if (--voice->lfo_delay_duration == 0) { \ int seg = ++voice->lfo_delay_segment; \ voice->lfo_delay_duration = instance->lfo_delay_duration[seg]; \ voice->lfo_delay_value = instance->lfo_delay_value[seg]; \ voice->lfo_delay_increment = instance->lfo_delay_increment[seg]; \ } \ } \ if (voice->volume_duration) { \ voice->volume_value += voice->volume_increment; \ voice->volume_duration--; \ } \ } case 1: /* algorithm 2 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_4, op(OP_5, op(OP_6, 0)))) + \ op(OP_1, op_sfb(OP_2, voice->feedback)) \ ); \ } RENDER; break; #undef ALGORITHM case 2: /* algorithm 3 */ #define ALGORITHM { \ output = ( \ op(OP_4, op(OP_5, op_sfb(OP_6, voice->feedback))) + \ op(OP_1, op(OP_2, op(OP_3, 0))) \ ); \ } RENDER; break; #undef ALGORITHM case 3: /* algorithm 4 */ #define ALGORITHM { \ output = ( \ op_sfb(OP_4, op(OP_5, op(OP_6, voice->feedback))) + \ op(OP_1, op(OP_2, op(OP_3, 0))) \ ); \ } RENDER; break; #undef ALGORITHM case 4: /* algorithm 5 */ #define ALGORITHM { \ output = ( \ op(OP_5, op_sfb(OP_6, voice->feedback)) + \ op(OP_3, op(OP_4, 0)) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 5: /* algorithm 6 */ #define ALGORITHM { \ output = ( \ op_sfb(OP_5, op(OP_6, voice->feedback)) + \ op(OP_3, op(OP_4, 0)) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 6: /* algorithm 7 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_5, op_sfb(OP_6, voice->feedback)) + \ op(OP_4, 0)) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 7: /* algorithm 8 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_5, op(OP_6, 0)) + \ op_sfb(OP_4, voice->feedback)) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 8: /* algorithm 9 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_5, op(OP_6, 0)) + \ op(OP_4, 0)) + \ op(OP_1, op_sfb(OP_2, voice->feedback)) \ ); \ } RENDER; break; #undef ALGORITHM case 9: /* algorithm 10 */ #define ALGORITHM { \ output = ( \ op(OP_4, op(OP_6, 0) + \ op(OP_5, 0)) + \ op(OP_1, op(OP_2, op_sfb(OP_3, voice->feedback))) \ ); \ } RENDER; break; #undef ALGORITHM case 10: /* algorithm 11 */ #define ALGORITHM { \ output = ( \ op(OP_4, op_sfb(OP_6, voice->feedback) + \ op(OP_5, 0)) + \ op(OP_1, op(OP_2, op(OP_3, 0))) \ ); \ } RENDER; break; #undef ALGORITHM case 11: /* algorithm 12 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_6, 0) + \ op(OP_5, 0) + \ op(OP_4, 0)) + \ op(OP_1, op_sfb(OP_2, voice->feedback)) \ ); \ } RENDER; break; #undef ALGORITHM case 12: /* algorithm 13 */ #define ALGORITHM { \ output = ( \ op(OP_3, op_sfb(OP_6, voice->feedback) + \ op(OP_5, 0) + \ op(OP_4, 0)) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 13: /* algorithm 14 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_4, op_sfb(OP_6, voice->feedback) + \ op(OP_5, 0))) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 14: /* algorithm 15 */ #define ALGORITHM { \ output = ( \ op(OP_3, op(OP_4, op(OP_6, 0) + \ op(OP_5, 0))) + \ op(OP_1, op_sfb(OP_2, voice->feedback)) \ ); \ } RENDER; break; #undef ALGORITHM case 15: /* algorithm 16 */ #define ALGORITHM { \ output = op(OP_1, op(OP_5, op_sfb(OP_6, voice->feedback)) + \ op(OP_3, op(OP_4, 0)) + \ op(OP_2, 0)); \ } RENDER; break; #undef ALGORITHM case 16: /* algorithm 17 */ #define ALGORITHM { \ output = op(OP_1, op(OP_5, op(OP_6, 0)) + \ op(OP_3, op(OP_4, 0)) + \ op_sfb(OP_2, voice->feedback)); \ } RENDER; break; #undef ALGORITHM case 17: /* algorithm 18 */ #define ALGORITHM { \ output = op(OP_1, op(OP_4, op(OP_5, op(OP_6, 0))) + \ op_sfb(OP_3, voice->feedback) + \ op(OP_2, 0)); \ } RENDER; break; #undef ALGORITHM case 18: /* algorithm 19 */ #define ALGORITHM { \ i = op_sfb(OP_6, voice->feedback); \ output = ( \ op(OP_5, i) + \ op(OP_4, i) + \ op(OP_1, op(OP_2, op(OP_3, 0))) \ ); \ } RENDER; break; #undef ALGORITHM case 19: /* algorithm 20 */ #define ALGORITHM { \ i = op_sfb(OP_3, voice->feedback); \ output = ( \ op(OP_4, op(OP_6, 0) + \ op(OP_5, 0)) + \ op(OP_2, i) + \ op(OP_1, i) \ ); \ } RENDER; break; #undef ALGORITHM case 20: /* algorithm 21 */ #define ALGORITHM { \ i = op(OP_6, 0); \ output = op(OP_5, i) + \ op(OP_4, i); \ i = op_sfb(OP_3, voice->feedback); \ output += op(OP_2, i) + \ op(OP_1, i); \ } RENDER; break; #undef ALGORITHM case 21: /* algorithm 22 */ #define ALGORITHM { \ i = op_sfb(OP_6, voice->feedback); \ output = ( \ op(OP_5, i) + \ op(OP_4, i) + \ op(OP_3, i) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 22: /* algorithm 23 */ #define ALGORITHM { \ i = op_sfb(OP_6, voice->feedback); \ output = ( \ op(OP_5, i) + \ op(OP_4, i) + \ op(OP_2, op(OP_3, 0)) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 23: /* algorithm 24 */ #define ALGORITHM { \ i = op_sfb(OP_6, voice->feedback); \ output = ( \ op(OP_5, i) + \ op(OP_4, i) + \ op(OP_3, i) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 24: /* algorithm 25 */ #define ALGORITHM { \ i = op_sfb(OP_6, voice->feedback); \ output = ( \ op(OP_5, i) + \ op(OP_4, i) + \ op(OP_3, 0) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 25: /* algorithm 26 */ #define ALGORITHM { \ output = ( \ op(OP_4, op_sfb(OP_6, voice->feedback) + \ op(OP_5, 0)) + \ op(OP_2, op(OP_3, 0)) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 26: /* algorithm 27 */ #define ALGORITHM { \ output = ( \ op(OP_4, op(OP_6, 0) + \ op(OP_5, 0)) + \ op(OP_2, op_sfb(OP_3, voice->feedback)) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 27: /* algorithm 28 */ #define ALGORITHM { \ output = ( \ op(OP_6, 0) + \ op(OP_3, op(OP_4, op_sfb(OP_5, voice->feedback))) + \ op(OP_1, op(OP_2, 0)) \ ); \ } RENDER; break; #undef ALGORITHM case 28: /* algorithm 29 */ #define ALGORITHM { \ output = ( \ op(OP_5, op_sfb(OP_6, voice->feedback)) + \ op(OP_3, op(OP_4, 0)) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 29: /* algorithm 30 */ #define ALGORITHM { \ output = ( \ op(OP_6, 0) + \ op(OP_3, op(OP_4, op_sfb(OP_5, voice->feedback))) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 30: /* algorithm 31 */ #define ALGORITHM { \ output = ( \ op(OP_5, op_sfb(OP_6, voice->feedback)) + \ op(OP_4, 0) + \ op(OP_3, 0) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM case 31: /* algorithm 32 */ default: /* just in case */ #define ALGORITHM { \ output = ( \ op_sfb(OP_6, voice->feedback) + \ op(OP_5, 0) + \ op(OP_4, 0) + \ op(OP_3, 0) + \ op(OP_2, 0) + \ op(OP_1, 0) \ ); \ } RENDER; break; #undef ALGORITHM #undef op #undef op_sfb } if (do_control_update) { double new_pitch; /* do those things which should be done only once per control- * calculation interval ("nugget"), such as voice check-for-dead, * pitch envelope calculations, etc. */ /* check if we've decayed to nothing, turn off voice if so */ if (dx7_voice_check_for_dead(voice)) return; /* we're dead now, so return */ #ifdef HEXTER_USE_FLOATING_POINT /* wrap oscillator phases */ voice->op[OP_6].phase -= floorf(voice->op[OP_6].phase); voice->op[OP_5].phase -= floorf(voice->op[OP_5].phase); voice->op[OP_4].phase -= floorf(voice->op[OP_4].phase); voice->op[OP_3].phase -= floorf(voice->op[OP_3].phase); voice->op[OP_2].phase -= floorf(voice->op[OP_2].phase); voice->op[OP_1].phase -= floorf(voice->op[OP_1].phase); #endif /* HEXTER_USE_FLOATING_POINT */ /* update pitch envelope and portamento */ dx7_pitch_eg_process(instance, &voice->pitch_eg); dx7_portamento_process(instance, &voice->portamento); /* update phase increments if pitch or tuning changed */ new_pitch = voice->pitch_eg.value + voice->portamento.value + instance->pitch_bend - instance->lfo_value_for_pitch * (voice->pitch_mod_depth_pmd * FP_TO_DOUBLE(voice->lfo_delay_value) + voice->pitch_mod_depth_mods); if (!double_equality(voice->last_pitch, new_pitch) || !float_equality(voice->last_port_tuning, *instance->tuning)) { dx7_voice_recalculate_freq_and_inc(instance, voice); } /* op envelope rounding correction */ dx7_op_eg_adjust(&voice->op[OP_6].eg); dx7_op_eg_adjust(&voice->op[OP_5].eg); dx7_op_eg_adjust(&voice->op[OP_4].eg); dx7_op_eg_adjust(&voice->op[OP_3].eg); dx7_op_eg_adjust(&voice->op[OP_2].eg); dx7_op_eg_adjust(&voice->op[OP_1].eg); /* mods and output volume */ if (!voice->amp_mod_env_duration) voice->amp_mod_env_value = voice->amp_mod_env_target; if (!voice->amp_mod_lfo_mods_duration) voice->amp_mod_lfo_mods_value = voice->amp_mod_lfo_mods_target; if (!voice->amp_mod_lfo_amd_duration) voice->amp_mod_lfo_amd_value = voice->amp_mod_lfo_amd_target; if (!voice->volume_duration) voice->volume_value = voice->volume_target; } } hexter-1.0.2/src/dx7_voice.c0000644000076400007640000015331612041561547012602 00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2012 Sean Bolton and others. * * Portions of this file may have come from Juan Linietsky's * rx-saturno, copyright (C) 2002 by Juan Linietsky. * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H #include #endif #define _BSD_SOURCE 1 #define _SVID_SOURCE 1 #define _ISOC99_SOURCE 1 #include #include #include #include #include "hexter_types.h" #include "hexter_synth.h" #include "dx7_voice.h" #include "dx7_voice_data.h" /* * dx7_voice_new */ dx7_voice_t * dx7_voice_new(void) { dx7_voice_t *voice; voice = (dx7_voice_t *)malloc(sizeof(dx7_voice_t)); if (voice) { voice->status = DX7_VOICE_OFF; } return voice; } /* * dx7_voice_set_phase */ /* static inline */ void dx7_voice_set_phase(hexter_instance_t *instance, dx7_voice_t *voice, int phase) { int i; for (i = 0; i < MAX_DX7_OPERATORS; i++) { dx7_op_eg_set_phase(instance, &voice->op[i].eg, phase); } dx7_pitch_eg_set_phase(instance, &voice->pitch_eg, phase); } /* * dx7_voice_set_release_phase */ static inline void dx7_voice_set_release_phase(hexter_instance_t *instance, dx7_voice_t *voice) { dx7_voice_set_phase(instance, voice, 3); } /* * dx7_voice_note_on */ void dx7_voice_note_on(hexter_instance_t *instance, dx7_voice_t *voice, unsigned char key, unsigned char velocity) { int i; voice->key = key; voice->velocity = velocity; if (!instance->monophonic || !(_ON(voice) || _SUSTAINED(voice))) { /* brand-new voice, or monophonic voice in release phase; set * everything up */ DEBUG_MESSAGE(DB_NOTE, " dx7_voice_note_on in polyphonic/new section: key %d, mono %d, old status %d\n", key, instance->monophonic, voice->status); dx7_voice_setup_note(instance, voice); } else { /* synth is monophonic, and we're modifying a playing voice */ DEBUG_MESSAGE(DB_NOTE, " dx7_voice_note_on in monophonic section: old key %d => new key %d\n", instance->held_keys[0], key); /* retrigger LFO if needed */ dx7_lfo_set(instance, voice); /* set new pitch */ voice->mods_serial = instance->mods_serial - 1; /* -FIX- dx7_portamento_prepare(instance, voice); */ dx7_voice_recalculate_freq_and_inc(instance, voice); /* if in 'on' or 'both' modes, and key has changed, then re-trigger EGs */ if ((instance->monophonic == DSSP_MONO_MODE_ON || instance->monophonic == DSSP_MONO_MODE_BOTH) && (instance->held_keys[0] < 0 || instance->held_keys[0] != key)) { dx7_voice_set_phase(instance, voice, 0); } /* all other variables stay what they are */ } instance->last_key = key; if (instance->monophonic) { /* add new key to the list of held keys */ /* check if new key is already in the list; if so, move it to the * top of the list, otherwise shift the other keys down and add it * to the top of the list. */ // DEBUG_MESSAGE(DB_NOTE, " note-on key list before: %d %d %d %d %d %d %d %d\n", instance->held_keys[0], instance->held_keys[1], instance->held_keys[2], instance->held_keys[3], instance->held_keys[4], instance->held_keys[5], instance->held_keys[6], instance->held_keys[7]); for (i = 0; i < 7; i++) { if (instance->held_keys[i] == key) break; } for (; i > 0; i--) { instance->held_keys[i] = instance->held_keys[i - 1]; } instance->held_keys[0] = key; // DEBUG_MESSAGE(DB_NOTE, " note-on key list after: %d %d %d %d %d %d %d %d\n", instance->held_keys[0], instance->held_keys[1], instance->held_keys[2], instance->held_keys[3], instance->held_keys[4], instance->held_keys[5], instance->held_keys[6], instance->held_keys[7]); } if (!_PLAYING(voice)) { dx7_voice_start_voice(voice); } else if (!_ON(voice)) { /* must be DX7_VOICE_SUSTAINED or DX7_VOICE_RELEASED */ voice->status = DX7_VOICE_ON; } } /* * dx7_voice_note_off */ void dx7_voice_note_off(hexter_instance_t *instance, dx7_voice_t *voice, unsigned char key, unsigned char rvelocity) { DEBUG_MESSAGE(DB_NOTE, " dx7_voice_note_off: called for voice %p, key %d\n", voice, key); /* save release velocity */ voice->rvelocity = rvelocity; if (instance->monophonic) { /* monophonic mode */ if (instance->held_keys[0] >= 0) { /* still some keys held */ if (voice->key != instance->held_keys[0]) { /* most-recently-played key has changed */ voice->key = instance->held_keys[0]; DEBUG_MESSAGE(DB_NOTE, " note-off in monophonic section: changing pitch to %d\n", voice->key); voice->mods_serial = instance->mods_serial - 1; /* -FIX- dx7_portamento_prepare(instance, voice); */ dx7_voice_recalculate_freq_and_inc(instance, voice); /* if mono mode is 'both', re-trigger EGs */ if (instance->monophonic == DSSP_MONO_MODE_BOTH && !_RELEASED(voice)) { dx7_voice_set_phase(instance, voice, 0); } } } else { /* no keys still held */ if (HEXTER_INSTANCE_SUSTAINED(instance)) { /* no more keys in list, but we're sustained */ DEBUG_MESSAGE(DB_NOTE, " note-off in monophonic section: sustained with no held keys\n"); if (!_RELEASED(voice)) voice->status = DX7_VOICE_SUSTAINED; } else { /* not sustained */ /* no more keys in list, so turn off note */ DEBUG_MESSAGE(DB_NOTE, " note-off in monophonic section: turning off voice %p\n", voice); dx7_voice_set_release_phase(instance, voice); voice->status = DX7_VOICE_RELEASED; } } } else { /* polyphonic mode */ if (HEXTER_INSTANCE_SUSTAINED(instance)) { if (!_RELEASED(voice)) voice->status = DX7_VOICE_SUSTAINED; } else { /* not sustained */ dx7_voice_set_release_phase(instance, voice); voice->status = DX7_VOICE_RELEASED; } } } /* * dx7_voice_release_note */ void dx7_voice_release_note(hexter_instance_t *instance, dx7_voice_t *voice) { DEBUG_MESSAGE(DB_NOTE, " dx7_voice_release_note: turning off voice %p\n", voice); if (_ON(voice)) { /* dummy up a release velocity */ voice->rvelocity = 64; } dx7_voice_set_release_phase(instance, voice); voice->status = DX7_VOICE_RELEASED; } /* ===== operator (amplitude) envelope functions ===== */ #ifdef HEXTER_DEBUG_ENGINE #define HEXTER_DEBUG_ENGINE_SLEW_CHECK(inc, msg) \ if (FP_ABS(inc) >= instance->dx7_eg_max_slew) printf(msg "\n"); #else #define HEXTER_DEBUG_ENGINE_SLEW_CHECK(inc, msg) #endif /* * dx7_op_eg_set_increment */ void dx7_op_eg_set_increment(hexter_instance_t *instance, dx7_op_eg_t *eg, int new_rate, int new_level) { int current_level = FP_TO_INT(eg->value); int need_compensation; float duration; eg->target = INT_TO_FP(new_level); if (eg->value <= eg->target) { /* envelope will be rising */ /* DX7 envelopes, when rising from levels <= 31 to levels * >= 32, include a compensation feature to speed the * attack, thereby making it sound more natural. The * behavior of some of the boundary cases is bizarre, and * this has been exploited by some patch programmers (the * "Watergarden" patch found in the original ROM cartridge * is one example). We try to emulate it here: */ if (eg->value <= INT_TO_FP(31)) { if (new_level > 31) { /* rise quickly to 31, then continue normally */ need_compensation = 1; duration = dx7_voice_eg_rate_rise_duration[new_rate] * (dx7_voice_eg_rate_rise_percent[new_level] - dx7_voice_eg_rate_rise_percent[current_level]); } else if (new_level - current_level > 9) { /* these seem to take zero time */ need_compensation = 0; duration = 0.0f; } else { /* these are the exploited delays */ need_compensation = 0; /* -FIX- this doesn't make WATER GDN work? */ duration = dx7_voice_eg_rate_rise_duration[new_rate] * (float)(new_level - current_level) / 100.0f; } } else { need_compensation = 0; duration = dx7_voice_eg_rate_rise_duration[new_rate] * (dx7_voice_eg_rate_rise_percent[new_level] - dx7_voice_eg_rate_rise_percent[current_level]); } } else { need_compensation = 0; duration = dx7_voice_eg_rate_decay_duration[new_rate] * (dx7_voice_eg_rate_decay_percent[current_level] - dx7_voice_eg_rate_decay_percent[new_level]); } duration *= instance->sample_rate; eg->duration = lrintf(duration); if (eg->duration < 1) eg->duration = 1; if (need_compensation) { int32_t precomp_duration = FP_DIVIDE_CEIL(INT_TO_FP(31) - eg->value, instance->dx7_eg_max_slew); if (precomp_duration >= eg->duration) { eg->duration = precomp_duration; eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; if (eg->increment > instance->dx7_eg_max_slew) { eg->duration = FP_DIVIDE_CEIL(eg->target - eg->value, instance->dx7_eg_max_slew); eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; } HEXTER_DEBUG_ENGINE_SLEW_CHECK(eg->increment, "slew violation 0"); eg->in_precomp = 0; } else if (precomp_duration < 1) { eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; if (eg->increment > instance->dx7_eg_max_slew) { eg->duration = FP_DIVIDE_CEIL(eg->target - eg->value, instance->dx7_eg_max_slew); eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; } HEXTER_DEBUG_ENGINE_SLEW_CHECK(eg->increment, "slew violation 1"); eg->in_precomp = 0; } else { eg->postcomp_duration = eg->duration - precomp_duration; eg->duration = precomp_duration; eg->increment = (INT_TO_FP(31) - eg->value) / (dx7_sample_t)precomp_duration; HEXTER_DEBUG_ENGINE_SLEW_CHECK(eg->increment, "slew violation Pa"); eg->postcomp_increment = (eg->target - INT_TO_FP(31)) / (dx7_sample_t)eg->postcomp_duration; if (eg->postcomp_increment > instance->dx7_eg_max_slew) { eg->postcomp_duration = FP_DIVIDE_CEIL(eg->target - INT_TO_FP(31), instance->dx7_eg_max_slew); eg->postcomp_increment = (eg->target - INT_TO_FP(31)) / (dx7_sample_t)eg->postcomp_duration; } HEXTER_DEBUG_ENGINE_SLEW_CHECK(eg->postcomp_increment, "slew violation Pb"); eg->in_precomp = 1; } } else { eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; if (FP_ABS(eg->increment) > instance->dx7_eg_max_slew) { eg->duration = FP_DIVIDE_CEIL(FP_ABS(eg->target - eg->value), instance->dx7_eg_max_slew); eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; } HEXTER_DEBUG_ENGINE_SLEW_CHECK(eg->increment, "slew violation 2"); eg->in_precomp = 0; } #ifdef HEXTER_DEBUG_ENGINE if (eg->duration <= 0 || FP_ABS(eg->increment) >= instance->dx7_eg_max_slew) #ifndef HEXTER_USE_FLOATING_POINT printf("eg error: rate %d, current %f, new %d, duration %d (%f), increment %d, in_precomp %d, postcomp_dur %d, postcomp_inc %d\n", new_rate, FP_TO_DOUBLE(eg->value), new_level, eg->duration, duration, #else /* HEXTER_USE_FLOATING_POINT */ printf("eg error: rate %d, current %f, new %d, duration %d (%f), increment %f, in_precomp %d, postcomp_dur %d, postcomp_inc %f\n", new_rate, eg->value, new_level, eg->duration, duration, #endif /* HEXTER_USE_FLOATING_POINT */ eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ } /* * dx7_op_eg_set_next_phase * * assumes a DX7_EG_RUNNING envelope */ void dx7_op_eg_set_next_phase(hexter_instance_t *instance, dx7_op_eg_t *eg) { switch (eg->phase) { case 0: case 1: eg->phase++; dx7_op_eg_set_increment(instance, eg, eg->rate[eg->phase], eg->level[eg->phase]); #ifndef HEXTER_USE_FLOATING_POINT if (eg->duration == 1 && eg->increment == 0) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %d (%f), new %d (%f), duration %d, increment %d, in_precomp %d, postcomp_dur %d, postcomp_inc %d\n", eg->phase, eg->value, FP_TO_DOUBLE(eg->value), eg->target, FP_TO_DOUBLE(eg->target), eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #else /* HEXTER_USE_FLOATING_POINT */ if (eg->duration == 1 && fabsf(eg->increment) < 1e-10f) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %f, new %f, duration %d, increment %f, in_precomp %d, postcomp_dur %d, postcomp_inc %f\n", eg->phase, eg->value, eg->target, eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #endif /* HEXTER_USE_FLOATING_POINT */ break; case 2: eg->mode = DX7_EG_SUSTAINING; eg->increment = INT_TO_FP(0); eg->duration = -1; break; case 3: default: /* shouldn't be anything but 0 to 3 */ eg->mode = DX7_EG_FINISHED; eg->increment = INT_TO_FP(0); eg->duration = -1; break; } } void dx7_op_eg_set_phase(hexter_instance_t *instance, dx7_op_eg_t *eg, int phase) { eg->phase = phase; if (phase == 0) { if (eg->level[0] == eg->level[1] && eg->level[1] == eg->level[2] && eg->level[2] == eg->level[3]) { eg->mode = DX7_EG_CONSTANT; eg->value = INT_TO_FP(eg->level[3]); eg->increment = INT_TO_FP(0); eg->duration = -1; } else { eg->mode = DX7_EG_RUNNING; dx7_op_eg_set_increment(instance, eg, eg->rate[phase], eg->level[phase]); #ifndef HEXTER_USE_FLOATING_POINT if (eg->duration == 1 && eg->increment == 0) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %d (%f), new %d (%f), duration %d, increment %d, in_precomp %d, postcomp_dur %d, postcomp_inc %d\n", eg->phase, eg->value, FP_TO_DOUBLE(eg->value), eg->target, FP_TO_DOUBLE(eg->target), eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #else /* HEXTER_USE_FLOATING_POINT */ if (eg->duration == 1 && fabsf(eg->increment) < 1e-10f) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %f, new %f, duration %d, increment %f, in_precomp %d, postcomp_dur %d, postcomp_inc %f\n", eg->phase, eg->value, eg->target, eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #endif /* HEXTER_USE_FLOATING_POINT */ } } else { if (eg->mode != DX7_EG_CONSTANT) { eg->mode = DX7_EG_RUNNING; dx7_op_eg_set_increment(instance, eg, eg->rate[phase], eg->level[phase]); #ifndef HEXTER_USE_FLOATING_POINT if (eg->duration == 1 && eg->increment == 0) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %d (%f), new %d (%f), duration %d, increment %d, in_precomp %d, postcomp_dur %d, postcomp_inc %d\n", eg->phase, eg->value, FP_TO_DOUBLE(eg->value), eg->target, FP_TO_DOUBLE(eg->target), eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #else /* HEXTER_USE_FLOATING_POINT */ if (eg->duration == 1 && fabsf(eg->increment) < 1e-10f) dx7_op_eg_set_next_phase(instance, eg); #ifdef HEXTER_DEBUG_ENGINE if (eg->mode == DX7_EG_RUNNING && eg->duration == 1 && eg->increment == 0) printf("eg error: phase %d, current %f, new %f, duration %d, increment %f, in_precomp %d, postcomp_dur %d, postcomp_inc %f\n", eg->phase, eg->value, eg->target, eg->duration, eg->increment, eg->in_precomp, eg->postcomp_duration, eg->postcomp_increment); #endif /* HEXTER_DEBUG_ENGINE */ #endif /* HEXTER_USE_FLOATING_POINT */ } } } void dx7_op_envelope_prepare(hexter_instance_t *instance, dx7_op_t *op, int transposed_note, int velocity) { int scaled_output_level, i, rate_bump; float vel_adj; scaled_output_level = op->output_level; /* things that affect breakpoint calculations: transpose, ? */ /* things that don't affect breakpoint calculations: pitch envelope, ? */ if (transposed_note < op->level_scaling_bkpoint + 21 && op->level_scaling_l_depth) { /* On the original DX7/TX7, keyboard level scaling calculations * group the keyboard into groups of three keys. This can be quite * noticeable on patches with extreme scaling depths, so I've tried * to replicate it here (the steps between levels may not occur at * exactly the keys). If you'd prefer smother scaling, define * SMOOTH_KEYBOARD_LEVEL_SCALING. */ #ifndef SMOOTH_KEYBOARD_LEVEL_SCALING i = op->level_scaling_bkpoint - (((transposed_note + 2) / 3) * 3) + 21; #else i = op->level_scaling_bkpoint - transposed_note + 21; #endif switch(op->level_scaling_l_curve) { case 0: /* -LIN */ scaled_output_level -= (int)((float)i / 45.0f * (float)op->level_scaling_l_depth); break; case 1: /* -EXP */ scaled_output_level -= (int)(exp((float)(i - 72) / 13.5f) * (float)op->level_scaling_l_depth); break; case 2: /* +EXP */ scaled_output_level += (int)(exp((float)(i - 72) / 13.5f) * (float)op->level_scaling_l_depth); break; case 3: /* +LIN */ scaled_output_level += (int)((float)i / 45.0f * (float)op->level_scaling_l_depth); break; } if (scaled_output_level < 0) scaled_output_level = 0; if (scaled_output_level > 99) scaled_output_level = 99; } else if (transposed_note > op->level_scaling_bkpoint + 21 && op->level_scaling_r_depth) { #ifndef SMOOTH_KEYBOARD_LEVEL_SCALING i = (((transposed_note + 2) / 3) * 3) - op->level_scaling_bkpoint - 21; #else i = transposed_note - op->level_scaling_bkpoint - 21; #endif switch(op->level_scaling_r_curve) { case 0: /* -LIN */ scaled_output_level -= (int)((float)i / 45.0f * (float)op->level_scaling_r_depth); break; case 1: /* -EXP */ scaled_output_level -= (int)(exp((float)(i - 72) / 13.5f) * (float)op->level_scaling_r_depth); break; case 2: /* +EXP */ scaled_output_level += (int)(exp((float)(i - 72) / 13.5f) * (float)op->level_scaling_r_depth); break; case 3: /* +LIN */ scaled_output_level += (int)((float)i / 45.0f * (float)op->level_scaling_r_depth); break; } if (scaled_output_level < 0) scaled_output_level = 0; if (scaled_output_level > 99) scaled_output_level = 99; } vel_adj = dx7_voice_velocity_ol_adjustment[velocity] * (float)op->velocity_sens; /* DEBUG_MESSAGE(DB_NOTE, " dx7_op_envelope_prepare: s_o_l=%d, vel_adj=%f\n", scaled_output_level, vel_adj); */ /* -FIX- This calculation comes from Pinkston/Harrington; the original "* 6.0" scaling factor * was close to what my TX7 does, but tended to not bump the rate as much, so I changed it * to "* 6.5" which seems a little closer, but it's still not spot-on. */ /* Things which affect this calculation: transpose, ? */ /* rate_bump = lrintf((float)op->rate_scaling * (float)(transposed_note - 21) / (126.0f - 21.0f) * 127.0f / 128.0f * 6.0f - 0.5f); */ rate_bump = lrintf((float)op->rate_scaling * (float)(transposed_note - 21) / (126.0f - 21.0f) * 127.0f / 128.0f * 6.5f - 0.5f); /* -FIX- just a hunch: try it again with "* 6.0f" but also "(120.0f - 21.0f)" instead of "(126.0f - 21.0f)": */ /* rate_bump = lrintf((float)op->rate_scaling * (float)(transposed_note - 21) / (120.0f - 21.0f) * 127.0f / 128.0f * 6.0f - 0.5f); */ for (i=0;i<4;i++) { float level = (float)op->eg.base_level[i]; /* -FIX- is this scaling of eg.base_level values to og.level values correct, i.e. does a softer * velocity shorten the time, since the rate stays the same? */ level = level * (float)scaled_output_level / 99.0f + vel_adj; if (level < 0.0f) level = 0.0f; else if (level > 99.0f) level = 99.0f; op->eg.level[i] = lrintf(level); op->eg.rate[i] = op->eg.base_rate[i] + rate_bump; if (op->eg.rate[i] > 99) op->eg.rate[i] = 99; #ifdef HEXTER_DEBUG_ENGINE /* printf(" rate[%d]=%d, level[%d]=%d (output_level=%d, rate_bump=%d)\n", i, op->eg.rate[i], i, op->eg.level[i], op->output_level, rate_bump); */ #endif } op->eg.value = INT_TO_FP(op->eg.level[3]); dx7_op_eg_set_phase(instance, &op->eg, 0); } void dx7_eg_init_constants(hexter_instance_t *instance) { float duration = dx7_voice_eg_rate_rise_duration[99] * (dx7_voice_eg_rate_rise_percent[99] - dx7_voice_eg_rate_rise_percent[0]); instance->dx7_eg_max_slew = FLOAT_TO_FP(99.0f / (duration * instance->sample_rate)); instance->nugget_rate = instance->sample_rate / (float)HEXTER_NUGGET_SIZE; instance->ramp_duration = lrintf(instance->sample_rate * 0.006f); /* 6ms ramp */ } /* ===== pitch envelope functions ===== */ /* * dx7_pitch_eg_set_increment */ void dx7_pitch_eg_set_increment(hexter_instance_t *instance, dx7_pitch_eg_t *eg, int new_rate, int new_level) { double duration; /* translate 0-99 level to shift in semitones */ eg->target = dx7_voice_pitch_level_to_shift[new_level]; /* -FIX- This is just a quick approximation that I derived from * regression of Godric Wilkie's pitch eg timings. In particular, * it's not accurate for very slow envelopes. */ duration = exp(((double)new_rate - 70.337897) / -25.580953) * fabs((eg->target - eg->value) / 96.0); duration *= (double)instance->nugget_rate; eg->duration = lrint(duration); if (eg->duration > 1) { eg->increment = (eg->target - eg->value) / (dx7_sample_t)eg->duration; } else { eg->duration = 1; eg->increment = eg->target - eg->value; } #ifdef HEXTER_DEBUG_ENGINE if (fabs(eg->increment) < 64.0 && eg->duration != 1) printf("pitch eg: rate = %d, current = %f, target = %f, duration = %f => %d, increment = %f\n", new_rate, eg->value, eg->target, duration, eg->duration, eg->increment); #endif } /* * dx7_pitch_eg_set_next_phase * * assumes a DX7_EG_RUNNING envelope */ void dx7_pitch_eg_set_next_phase(hexter_instance_t *instance, dx7_pitch_eg_t *eg) { switch (eg->phase) { case 0: case 1: eg->phase++; dx7_pitch_eg_set_increment(instance, eg, eg->rate[eg->phase], eg->level[eg->phase]); break; case 2: eg->mode = DX7_EG_SUSTAINING; break; case 3: default: /* shouldn't be anything but 0 to 3 */ eg->mode = DX7_EG_FINISHED; break; } } void dx7_pitch_eg_set_phase(hexter_instance_t *instance, dx7_pitch_eg_t *eg, int phase) { eg->phase = phase; if (phase == 0) { if (eg->level[0] == eg->level[1] && eg->level[1] == eg->level[2] && eg->level[2] == eg->level[3]) { eg->mode = DX7_EG_CONSTANT; eg->value = dx7_voice_pitch_level_to_shift[eg->level[3]]; } else { eg->mode = DX7_EG_RUNNING; dx7_pitch_eg_set_increment(instance, eg, eg->rate[phase], eg->level[phase]); } } else { if (eg->mode != DX7_EG_CONSTANT) { eg->mode = DX7_EG_RUNNING; dx7_pitch_eg_set_increment(instance, eg, eg->rate[phase], eg->level[phase]); } } } void dx7_pitch_envelope_prepare(hexter_instance_t *instance, dx7_voice_t *voice) { voice->pitch_eg.value = dx7_voice_pitch_level_to_shift[voice->pitch_eg.level[3]]; dx7_pitch_eg_set_phase(instance, &voice->pitch_eg, 0); } /* ===== portamento functions ===== */ void dx7_portamento_set_segment(hexter_instance_t *instance, dx7_portamento_t *port) { /* -FIX- implement portamento multi-segment curve */ port->increment = (port->target - port->value) / (double)port->duration; } void dx7_portamento_prepare(hexter_instance_t *instance, dx7_voice_t *voice) { dx7_portamento_t *port = &voice->portamento; if (instance->portamento_time == 0 || instance->last_key == voice->key) { port->segment = 0; port->value = 0.0; } else { /* -FIX- implement portamento time and multi-segment curve */ float t = expf((float)(instance->portamento_time - 99) / 15.0f) * 18.0f; /* not at all related to what a real DX7 does */ port->segment = 1; port->value = (double)(instance->last_key - voice->key); port->duration = lrintf(instance->nugget_rate * t); port->target = 0.0; dx7_portamento_set_segment(instance, port); } } /* ===== frequency related functions ===== */ static inline int limit_note(int note) { while (note < 0) note += 12; while (note > 127) note -= 12; return note; } void dx7_op_recalculate_increment(hexter_instance_t *instance, dx7_op_t *op) { double freq; if (op->osc_mode) { /* fixed frequency */ /* pitch envelope does not affect this */ /* -FIX- convert this to a table lookup for speed? */ freq = instance->fixed_freq_multiplier * exp(M_LN10 * ((double)(op->coarse & 3) + (double)op->fine / 100.0)); /* -FIX- figure out what to do with detune */ } else { freq = op->frequency; freq += ((double)op->detune - 7.0) / 32.0; /* -FIX- is this correct? */ if (op->coarse) { freq = freq * (double)op->coarse; } else { freq = freq / 2.0; } freq *= (1.0 + ((double)op->fine / 100.0)); } op->phase_increment = DOUBLE_TO_FP(freq / (double)instance->sample_rate); #ifdef HEXTER_DEBUG_ENGINE #ifndef HEXTER_USE_FLOATING_POINT /* printf("freq=%10.6f, detune=%d, coarse=%d, fine=%d, phase_increment=%d\n", op->frequency, op->detune, */ #else /* HEXTER_USE_FLOATING_POINT */ /* printf("freq=%10.6f, detune=%d, coarse=%d, fine=%d, phase_increment=%g\n", op->frequency, op->detune, */ #endif /* HEXTER_USE_FLOATING_POINT */ /* op->coarse, op->fine, op->phase_increment); */ #endif /* HEXTER_DEBUG_ENGINE */ } double dx7_voice_recalculate_frequency(hexter_instance_t *instance, dx7_voice_t *voice) { double freq; voice->last_port_tuning = *instance->tuning; instance->fixed_freq_multiplier = *instance->tuning / 440.0; freq = voice->pitch_eg.value + voice->portamento.value + instance->pitch_bend - instance->lfo_value_for_pitch * (voice->pitch_mod_depth_pmd * FP_TO_DOUBLE(voice->lfo_delay_value) + voice->pitch_mod_depth_mods); voice->last_pitch = freq; freq += (double)(limit_note(voice->key + voice->transpose - 24)); /* -FIX- this maybe could be optimized */ /* a lookup table of 8k values would give ~1.5 cent accuracy, * but then would interpolating that be faster than exp()? */ freq = *instance->tuning * exp((freq - 69.0) * M_LN2 / 12.0); return freq; } void dx7_voice_recalculate_freq_and_inc(hexter_instance_t *instance, dx7_voice_t *voice) { double freq = dx7_voice_recalculate_frequency(instance, voice); int i; for (i = 0; i < 6; i++) { voice->op[i].frequency = freq; dx7_op_recalculate_increment(instance, &voice->op[i]); } } /* ===== output volume ===== */ void dx7_voice_recalculate_volume(hexter_instance_t *instance, dx7_voice_t *voice) { float f; int i; voice->last_port_volume = *instance->volume; voice->last_cc_volume = instance->cc_volume; /* This 41 OL volume cc mapping matches my TX7 fairly well, to within * +/-0.8dB for most of the scale. (It even duplicates the "feature" * of not going completely silent at zero....) */ f = (*instance->volume - 20.0f) * 1.328771f + 86.0f; f += (float)instance->cc_volume * 41.0f / 16256.0f; i = lrintf(f - 0.5f); f -= (float)i; voice->volume_target = (FP_TO_FLOAT(dx7_voice_eg_ol_to_mod_index[i]) + f * FP_TO_FLOAT(dx7_voice_eg_ol_to_mod_index[i + 1] - dx7_voice_eg_ol_to_mod_index[i])) / 2.08855f /* scale modulation index to output amplitude */ / dx7_voice_carrier_count[voice->algorithm] /* scale for number of carriers */ * 0.110384f; /* Where did this value come from? It approximates the * -18.1dBFS nominal per-voice output level hexter should * have, but then why didn't I just use 0.125f like in * hexter 0.5.7? */ if (voice->volume_value < 0.0f) { /* initial setup */ voice->volume_value = voice->volume_target; voice->volume_duration = 0; } else { voice->volume_duration = instance->ramp_duration; voice->volume_increment = (voice->volume_target - voice->volume_value) / (float)voice->volume_duration; } } /* ===== LFO functions ===== */ /* dx7_lfo_set_speed * * called by dx7_lfo_reset() and dx7_lfo_set() to set LFO speed and phase */ static inline void dx7_lfo_set_speed(hexter_instance_t *instance) { int32_t period = lrintf(instance->sample_rate / dx7_voice_lfo_frequency[instance->lfo_speed]); switch (instance->lfo_wave) { default: case 0: /* triangle */ instance->lfo_phase = 0; instance->lfo_value = INT_TO_FP(0); instance->lfo_duration0 = period / 2; instance->lfo_duration1 = period - instance->lfo_duration0; instance->lfo_increment0 = INT_TO_FP(1) / (dx7_sample_t)instance->lfo_duration0; instance->lfo_increment1 = -instance->lfo_increment0; instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = instance->lfo_increment0; break; case 1: /* saw down */ instance->lfo_phase = 0; instance->lfo_value = INT_TO_FP(0); if (period >= (instance->ramp_duration * 4)) { instance->lfo_duration0 = period - instance->ramp_duration; instance->lfo_duration1 = instance->ramp_duration; } else { instance->lfo_duration0 = period * 3 / 4; instance->lfo_duration1 = period - instance->lfo_duration0; } instance->lfo_increment0 = INT_TO_FP(1) / (dx7_sample_t)instance->lfo_duration0; instance->lfo_increment1 = INT_TO_FP(-1) / (dx7_sample_t)instance->lfo_duration1; instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = instance->lfo_increment0; break; case 2: /* saw up */ instance->lfo_phase = 1; instance->lfo_value = INT_TO_FP(1); if (period >= (instance->ramp_duration * 4)) { instance->lfo_duration0 = instance->ramp_duration; instance->lfo_duration1 = period - instance->ramp_duration; } else { instance->lfo_duration1 = period * 3 / 4; instance->lfo_duration0 = period - instance->lfo_duration1; } instance->lfo_increment0 = INT_TO_FP(1) / (dx7_sample_t)instance->lfo_duration0; instance->lfo_increment1 = INT_TO_FP(-1) / (dx7_sample_t)instance->lfo_duration1; instance->lfo_duration = instance->lfo_duration1; instance->lfo_increment = instance->lfo_increment1; break; case 3: /* square */ instance->lfo_phase = 0; instance->lfo_value = INT_TO_FP(1); if (period >= (instance->ramp_duration * 6)) { instance->lfo_duration0 = (period / 2) - instance->ramp_duration; instance->lfo_duration1 = instance->ramp_duration; } else { instance->lfo_duration0 = period / 3; instance->lfo_duration1 = (period / 2) - instance->lfo_duration0; } instance->lfo_increment1 = INT_TO_FP(1) / (dx7_sample_t)instance->lfo_duration1; instance->lfo_increment0 = -instance->lfo_increment1; instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = INT_TO_FP(0); break; case 4: /* sine */ #ifndef HEXTER_USE_FLOATING_POINT instance->lfo_value = FP_SIZE / 4; /* phase of pi/2 in cosine table */ #else /* HEXTER_USE_FLOATING_POINT */ instance->lfo_value = 0.25f; /* phase of pi/2 in cosine table */ #endif /* HEXTER_USE_FLOATING_POINT */ instance->lfo_increment = INT_TO_FP(1) / (dx7_sample_t)period; break; case 5: /* sample/hold */ instance->lfo_phase = 0; instance->lfo_value = FP_RAND(); if (period >= (instance->ramp_duration * 4)) { instance->lfo_duration0 = period - instance->ramp_duration; instance->lfo_duration1 = instance->ramp_duration; } else { instance->lfo_duration0 = period * 3 / 4; instance->lfo_duration1 = period - instance->lfo_duration0; } instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = INT_TO_FP(0); break; } } #ifdef HEXTER_DEBUG_CONTROL /* for debug code in hexter_synth.c */ void dx7_lfo_set_speed_x(hexter_instance_t *instance) { dx7_lfo_set_speed(instance); } #endif /* * dx7_lfo_reset * * called from hexter_activate() to give instance LFO parameters sane values * until they're set by a playing voice */ void dx7_lfo_reset(hexter_instance_t *instance) { instance->lfo_speed = 20; instance->lfo_wave = 1; instance->lfo_delay = 255; /* force setup at first note on */ instance->lfo_value_for_pitch = 0.0; dx7_lfo_set_speed(instance); } void dx7_lfo_set(hexter_instance_t *instance, dx7_voice_t *voice) { int set_speed = 0; instance->lfo_wave = voice->lfo_wave; if (instance->lfo_speed != voice->lfo_speed) { instance->lfo_speed = voice->lfo_speed; set_speed = 1; } if (voice->lfo_key_sync) { set_speed = 1; /* because we need to reset the LFO phase */ } if (set_speed) dx7_lfo_set_speed(instance); if (instance->lfo_delay != voice->lfo_delay) { instance->lfo_delay = voice->lfo_delay; if (voice->lfo_delay > 0) { instance->lfo_delay_value[0] = INT_TO_FP(0); /* -FIX- Jamie's early approximation, replace when he has more data */ instance->lfo_delay_duration[0] = lrintf(instance->sample_rate * (0.00175338f * pow((float)voice->lfo_delay, 3.10454f) + 169.344f - 168.0f) / 1000.0f); instance->lfo_delay_increment[0] = INT_TO_FP(0); instance->lfo_delay_value[1] = INT_TO_FP(0); /* -FIX- Jamie's early approximation, replace when he has more data */ instance->lfo_delay_duration[1] = lrintf(instance->sample_rate * (0.321877f * pow((float)voice->lfo_delay, 2.01163) + 494.201f - 168.0f) / 1000.0f); /* time from note-on until full on */ instance->lfo_delay_duration[1] -= instance->lfo_delay_duration[0]; /* now time from end-of-delay until full */ instance->lfo_delay_increment[1] = INT_TO_FP(1) / (dx7_sample_t)instance->lfo_delay_duration[1]; instance->lfo_delay_value[2] = INT_TO_FP(1); instance->lfo_delay_duration[2] = 0; instance->lfo_delay_increment[2] = INT_TO_FP(0); } else { instance->lfo_delay_value[0] = INT_TO_FP(1); instance->lfo_delay_duration[0] = 0; instance->lfo_delay_increment[0] = INT_TO_FP(0); } /* -FIX- The TX7 resets the lfo delay for all playing notes at each * new note on. We're not doing that yet, and I don't really wanna, * 'cause it's stupid.... */ } } void dx7_lfo_update(hexter_instance_t *instance, unsigned long sample_count) { unsigned long sample; switch (instance->lfo_wave) { default: case 0: /* triangle */ case 1: /* saw down */ case 2: /* saw up */ for (sample = 0; sample < sample_count; sample++) { instance->lfo_buffer[sample] = instance->lfo_value; instance->lfo_value += instance->lfo_increment; if (!(--instance->lfo_duration)) { if (instance->lfo_phase) { instance->lfo_phase = 0; instance->lfo_value = INT_TO_FP(0); instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = instance->lfo_increment0; } else { instance->lfo_phase = 1; instance->lfo_value = INT_TO_FP(1); instance->lfo_duration = instance->lfo_duration1; instance->lfo_increment = instance->lfo_increment1; } } } instance->lfo_value_for_pitch = FP_TO_DOUBLE(instance->lfo_value) * 2.0 - 1.0; /* -FIX- this is still ramped for saw! */ break; case 3: /* square */ for (sample = 0; sample < sample_count; sample++) { instance->lfo_buffer[sample] = instance->lfo_value; instance->lfo_value += instance->lfo_increment; if (!(--instance->lfo_duration)) { switch (instance->lfo_phase) { default: case 0: instance->lfo_phase = 1; instance->lfo_duration = instance->lfo_duration1; instance->lfo_increment = instance->lfo_increment0; break; case 1: instance->lfo_phase = 2; instance->lfo_value = INT_TO_FP(0); instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = INT_TO_FP(0); break; case 2: instance->lfo_phase = 3; instance->lfo_duration = instance->lfo_duration1; instance->lfo_increment = instance->lfo_increment1; break; case 3: instance->lfo_phase = 0; instance->lfo_value = INT_TO_FP(1); instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = INT_TO_FP(0); break; } } } if (instance->lfo_phase == 0 || instance->lfo_phase == 3) instance->lfo_value_for_pitch = 1.0; else instance->lfo_value_for_pitch = -1.0; break; case 4: /* sine */ for (sample = 0; sample < sample_count; sample++) { #ifndef HEXTER_USE_FLOATING_POINT int32_t phase, index, out; #else /* HEXTER_USE_FLOATING_POINT */ int32_t index; float phase, frac, out; #endif /* HEXTER_USE_FLOATING_POINT */ #ifndef HEXTER_USE_FLOATING_POINT phase = instance->lfo_value; index = (phase >> FP_TO_SINE_SHIFT) & SINE_MASK; out = dx7_voice_sin_table[index]; out += (((int64_t)(dx7_voice_sin_table[index + 1] - out) * (int64_t)(phase & FP_TO_SINE_MASK)) >> (FP_SHIFT + FP_TO_SINE_SHIFT)); out = (out + FP_SIZE) >> 1; /* shift to unipolar */ #else /* HEXTER_USE_FLOATING_POINT */ phase = instance->lfo_value * (float)SINE_SIZE; index = lrintf(phase - 0.5f); frac = phase - (float)index; out = dx7_voice_sin_table[index]; out += (dx7_voice_sin_table[index + 1] - out) * frac; out = (out + 1.0f) / 2.0f; /* shift to unipolar */ #endif /* HEXTER_USE_FLOATING_POINT */ instance->lfo_buffer[sample] = out; instance->lfo_value += instance->lfo_increment; #ifdef HEXTER_USE_FLOATING_POINT if (instance->lfo_value > 1.0f) instance->lfo_value -= 1.0f; #endif /* HEXTER_USE_FLOATING_POINT */ } instance->lfo_value_for_pitch = FP_TO_DOUBLE(instance->lfo_buffer[sample - 1]) * 2.0 - 1.0; break; case 5: /* sample/hold */ for (sample = 0; sample < sample_count; sample++) { instance->lfo_buffer[sample] = instance->lfo_value; instance->lfo_value += instance->lfo_increment; if (!(--instance->lfo_duration)) { if (instance->lfo_phase) { instance->lfo_phase = 0; instance->lfo_value = instance->lfo_target; instance->lfo_duration = instance->lfo_duration0; instance->lfo_increment = INT_TO_FP(0); } else { instance->lfo_phase = 1; instance->lfo_duration = instance->lfo_duration1; instance->lfo_target = FP_RAND(); instance->lfo_increment = (instance->lfo_target - instance->lfo_value) / (dx7_sample_t)instance->lfo_duration; } } } instance->lfo_value_for_pitch = FP_TO_DOUBLE(instance->lfo_target) * 2.0 - 1.0; break; } } /* ===== modulation functions ===== */ /* there used to be a dx7_voice_update_pitch_bend() here, but it didn't * have anything to do.... */ void dx7_voice_update_mod_depths(hexter_instance_t *instance, dx7_voice_t* voice) { unsigned char kp = instance->key_pressure[voice->key]; unsigned char cp = instance->channel_pressure; float pressure; float pdepth, adepth, mdepth, edepth; /* add the channel and key pressures together in a way that 'feels' good */ if (kp > cp) { pressure = (float)kp / 127.0f; pressure += (1.0f - pressure) * ((float)cp / 127.0f); } else { pressure = (float)cp / 127.0f; pressure += (1.0f - pressure) * ((float)kp / 127.0f); } /* calculate modulation depths */ pdepth = (float)voice->lfo_pmd / 99.0f; voice->pitch_mod_depth_pmd = (double)dx7_voice_pms_to_semitones[voice->lfo_pms] * (double)pdepth; // -FIX- this could be optimized: // -FIX- this just adds everything together -- maybe it should limit the result, or // combine the various mods like update_pressure() does pdepth = (instance->mod_wheel_assign & 0x01 ? // -FIX- this assumes that mod_wheel_sensitivity, etc. scale linearly => verify (float)instance->mod_wheel_sensitivity / 15.0f * instance->mod_wheel : 0.0f) + (instance->foot_assign & 0x01 ? (float)instance->foot_sensitivity / 15.0f * instance->foot : 0.0f) + (instance->pressure_assign & 0x01 ? (float)instance->pressure_sensitivity / 15.0f * pressure : 0.0f) + (instance->breath_assign & 0x01 ? (float)instance->breath_sensitivity / 15.0f * instance->breath : 0.0f); voice->pitch_mod_depth_mods = (double)dx7_voice_pms_to_semitones[voice->lfo_pms] * (double)pdepth; // -FIX- these are total guesses at how to combine/limit the amp mods: adepth = dx7_voice_amd_to_ol_adjustment[voice->lfo_amd]; // -FIX- this could be optimized: mdepth = (instance->mod_wheel_assign & 0x02 ? dx7_voice_mss_to_ol_adjustment[instance->mod_wheel_sensitivity] * instance->mod_wheel : 0.0f) + (instance->foot_assign & 0x02 ? dx7_voice_mss_to_ol_adjustment[instance->foot_sensitivity] * instance->foot : 0.0f) + (instance->pressure_assign & 0x02 ? dx7_voice_mss_to_ol_adjustment[instance->pressure_sensitivity] * pressure : 0.0f) + (instance->breath_assign & 0x02 ? dx7_voice_mss_to_ol_adjustment[instance->breath_sensitivity] * instance->breath : 0.0f); edepth = // -FIX- this could be optimized: (instance->mod_wheel_assign & 0x04 ? dx7_voice_mss_to_ol_adjustment[instance->mod_wheel_sensitivity] * (1.0f - instance->mod_wheel) : 0.0f) + (instance->foot_assign & 0x04 ? dx7_voice_mss_to_ol_adjustment[instance->foot_sensitivity] * (1.0f - instance->foot) : 0.0f) + (instance->pressure_assign & 0x04 ? dx7_voice_mss_to_ol_adjustment[instance->pressure_sensitivity] * (1.0f - pressure) : 0.0f) + (instance->breath_assign & 0x04 ? dx7_voice_mss_to_ol_adjustment[instance->breath_sensitivity] * (1.0f - instance->breath) : 0.0f); /* full-scale amp mod for adepth and edepth should be 52.75 and * their sum _must_ be limited to less than 128, or bad things will happen! */ if (adepth > 127.5f) adepth = 127.5f; if (adepth + mdepth > 127.5f) mdepth = 127.5f - adepth; if (adepth + mdepth + edepth > 127.5f) edepth = 127.5f - (adepth + mdepth); voice->amp_mod_lfo_amd_target = FLOAT_TO_FP(adepth); if (voice->amp_mod_lfo_amd_value <= INT_TO_FP(-64)) { voice->amp_mod_lfo_amd_value = voice->amp_mod_lfo_amd_target; voice->amp_mod_lfo_amd_increment = INT_TO_FP(0); voice->amp_mod_lfo_amd_duration = 0; } else { voice->amp_mod_lfo_amd_duration = instance->ramp_duration; voice->amp_mod_lfo_amd_increment = (voice->amp_mod_lfo_amd_target - voice->amp_mod_lfo_amd_value) / (dx7_sample_t)voice->amp_mod_lfo_amd_duration; } voice->amp_mod_lfo_mods_target = FLOAT_TO_FP(mdepth); if (voice->amp_mod_lfo_mods_value <= INT_TO_FP(-64)) { voice->amp_mod_lfo_mods_value = voice->amp_mod_lfo_mods_target; voice->amp_mod_lfo_mods_increment = INT_TO_FP(0); voice->amp_mod_lfo_mods_duration = 0; } else { voice->amp_mod_lfo_mods_duration = instance->ramp_duration; voice->amp_mod_lfo_mods_increment = (voice->amp_mod_lfo_mods_target - voice->amp_mod_lfo_mods_value) / (dx7_sample_t)voice->amp_mod_lfo_mods_duration; } voice->amp_mod_env_target = FLOAT_TO_FP(edepth); if (voice->amp_mod_env_value <= INT_TO_FP(-64)) { voice->amp_mod_env_value = voice->amp_mod_env_target; voice->amp_mod_env_increment = INT_TO_FP(0); voice->amp_mod_env_duration = 0; } else { voice->amp_mod_env_duration = instance->ramp_duration; voice->amp_mod_env_increment = (voice->amp_mod_env_target - voice->amp_mod_env_value) / (dx7_sample_t)voice->amp_mod_env_duration; } } /* ===== whole patch related functions ===== */ void dx7_voice_calculate_runtime_parameters(hexter_instance_t *instance, dx7_voice_t* voice) { int i; double freq; dx7_pitch_envelope_prepare(instance, voice); voice->amp_mod_lfo_amd_value = INT_TO_FP(-65); /* force initial setup */ voice->amp_mod_lfo_mods_value = INT_TO_FP(-65); voice->amp_mod_env_value = INT_TO_FP(-65); voice->lfo_delay_segment = 0; voice->lfo_delay_value = instance->lfo_delay_value[0]; voice->lfo_delay_duration = instance->lfo_delay_duration[0]; voice->lfo_delay_increment = instance->lfo_delay_increment[0]; voice->mods_serial = instance->mods_serial - 1; /* force mod depths update */ dx7_portamento_prepare(instance, voice); freq = dx7_voice_recalculate_frequency(instance, voice); voice->volume_value = -1.0f; /* force initial setup */ dx7_voice_recalculate_volume(instance, voice); for (i = 0; i < MAX_DX7_OPERATORS; i++) { voice->op[i].frequency = freq; if (voice->osc_key_sync) { voice->op[i].phase = INT_TO_FP(0); } dx7_op_recalculate_increment(instance, &voice->op[i]); dx7_op_envelope_prepare(instance, &voice->op[i], limit_note(voice->key + voice->transpose - 24), voice->velocity); } } /* * dx7_voice_setup_note */ void dx7_voice_setup_note(hexter_instance_t *instance, dx7_voice_t *voice) { dx7_voice_set_data(instance, voice); hexter_instance_set_performance_data(instance); dx7_lfo_set(instance, voice); dx7_voice_calculate_runtime_parameters(instance, voice); } static inline int limit(int x, int min, int max) { if (x < min) return min; if (x > max) return max; return x; } /* * dx7_voice_set_data */ void dx7_voice_set_data(hexter_instance_t *instance, dx7_voice_t *voice) { uint8_t *edit_buffer = instance->current_patch_buffer; int compat059 = (instance->performance_buffer[0] & 0x01); /* 0.5.9 compatibility */ int i, j; double aux_feedbk; for (i = 0; i < MAX_DX7_OPERATORS; i++) { uint8_t *eb_op = edit_buffer + ((5 - i) * 21); voice->op[i].output_level = limit(eb_op[16], 0, 99); voice->op[i].osc_mode = eb_op[17] & 0x01; voice->op[i].coarse = eb_op[18] & 0x1f; voice->op[i].fine = limit(eb_op[19], 0, 99); voice->op[i].detune = limit(eb_op[20], 0, 14); voice->op[i].level_scaling_bkpoint = limit(eb_op[ 8], 0, 99); voice->op[i].level_scaling_l_depth = limit(eb_op[ 9], 0, 99); voice->op[i].level_scaling_r_depth = limit(eb_op[10], 0, 99); voice->op[i].level_scaling_l_curve = eb_op[11] & 0x03; voice->op[i].level_scaling_r_curve = eb_op[12] & 0x03; voice->op[i].rate_scaling = eb_op[13] & 0x07; voice->op[i].amp_mod_sens = (compat059 ? 0 : eb_op[14] & 0x03); voice->op[i].velocity_sens = eb_op[15] & 0x07; for (j = 0; j < 4; j++) { voice->op[i].eg.base_rate[j] = limit(eb_op[j], 0, 99); voice->op[i].eg.base_level[j] = limit(eb_op[4 + j], 0, 99); } } for (i = 0; i < 4; i++) { voice->pitch_eg.rate[i] = limit(edit_buffer[126 + i], 0, 99); voice->pitch_eg.level[i] = limit(edit_buffer[130 + i], 0, 99); } voice->algorithm = edit_buffer[134] & 0x1f; aux_feedbk = (double)(edit_buffer[135] & 0x07) / (2.0 * M_PI) * 0.18 /* -FIX- feedback_scaling[voice->algorithm] */; /* the "99.0" here is because we're also using this multiplier to scale the * eg level from 0-99 to 0-1 */ voice->feedback_multiplier = DOUBLE_TO_FP(aux_feedbk / 99.0); voice->osc_key_sync = edit_buffer[136] & 0x01; voice->lfo_speed = limit(edit_buffer[137], 0, 99); voice->lfo_delay = limit(edit_buffer[138], 0, 99); voice->lfo_pmd = limit(edit_buffer[139], 0, 99); voice->lfo_amd = limit(edit_buffer[140], 0, 99); voice->lfo_key_sync = edit_buffer[141] & 0x01; voice->lfo_wave = limit(edit_buffer[142], 0, 5); voice->lfo_pms = (compat059 ? 0 : edit_buffer[143] & 0x07); voice->transpose = limit(edit_buffer[144], 0, 48); } hexter-1.0.2/src/gui_widgy_editor.c0000644000076400007640000011540212043116072014231 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011, 2012 Sean Bolton. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ // Need To Do: // - fix envelope drawing to show L3 hold until key-off // - fix envelope drawing to somehow be user scalable? // - hook up mute buttons (once hexter has muting capability) #include #include #include "hexter.h" #include "dx7_voice_data.h" #include "gui_interface.h" #include "gui_patch_edit.h" GtkWidget *widgy_widget; static GtkWidget *freq_label[6]; static GtkWidget *bkpt_label[6]; #ifdef OP_MUTE_WORKS_IN_PLUGIN static GtkObject *mute_adj[6]; #endif static GtkWidget *env_drawing_area[6]; static GtkWidget *scaling_drawing_area[6]; static GtkWidget *pitch_drawing_area; #define TABLE_OUTPUT 0 #define TABLE_OP1 1 #define TABLE_OP6 6 #define TABLE_GLOBAL 7 #define TABLE_COUNT 8 static GtkWidget *tables[TABLE_COUNT]; static char *tabs[TABLE_COUNT] = { NULL, "Op 1", "Op 2", "Op 3", "Op 4", "Op 5", "Op 6", "Global" }; #define TO TABLE_OUTPUT #define TG TABLE_GLOBAL static struct _labels { char tab; char x, y; char width; const char *text; } labels[] = { /* Output tab */ { TO, 0, 0, 2, "Algorithm" }, { TO, 0, 1, 2, "Feedback" }, { TO, 0, 2, 1, " " }, /* spacer */ { TO, 0, 3, 1, "Oper" }, #ifdef OP_MUTE_WORKS_IN_PLUGIN { TO, 1, 3, 1, "Mute" }, #endif { TO, 2, 3, 1, "OL" }, { TO, 0, 4, 1, "1" }, { TO, 0, 5, 1, "2" }, { TO, 0, 6, 1, "3" }, { TO, 0, 7, 1, "4" }, { TO, 0, 8, 1, "5" }, { TO, 0, 9, 1, "6" }, { TO, 0, 10, 1, " " }, /* spacer */ /* Global tab */ { TG, 0, 1, 1, "Transpose" }, { TG, 0, 2, 1, "Osc Key Sync" }, { TG, 2, 0, 4, "LFO" }, { TG, 2, 1, 1, "Speed" }, { TG, 2, 2, 1, "Delay" }, { TG, 2, 3, 1, "PMD" }, { TG, 2, 4, 1, "AMD" }, { TG, 4, 1, 1, "Wave" }, { TG, 4, 2, 1, "Sync" }, { TG, 4, 3, 1, "PMS" }, { TG, 0, 5, 1, " " }, /* spacer */ { TG, 0, 6, 1, "Pitch Envelope" }, { TG, 1, 6, 1, "1" }, { TG, 2, 6, 1, "2" }, { TG, 3, 6, 1, "3" }, { TG, 4, 6, 1, "4" }, { TG, 0, 7, 1, "Rate" }, { TG, 0, 8, 1, "Level" }, { -1 } /* end */ }; static struct _op_labels { char x, y; char width; const char *text; } op_labels[] = { { 0, 0, 1, "Frequency" }, { 1, 0, 1, "Mode" }, { 2, 0, 1, "Coarse" }, { 3, 0, 1, "Fine" }, { 4, 0, 1, "Detune" }, { 0, 2, 1, " " }, /* spacer */ { 0, 3, 1, "Envelope" }, { 1, 3, 1, "1" }, { 2, 3, 1, "2" }, { 3, 3, 1, "3" }, { 4, 3, 1, "4" }, { 0, 4, 1, "Rate" }, { 0, 5, 1, "Level" }, { 5, 3, 2, "Sensitivity" }, { 5, 4, 1, "Velocity" }, { 5, 5, 1, "Amp Mod" }, { 0, 7, 1, " " }, /* spacer */ { 0, 8, 2, "Left" }, { 2, 8, 2, "Level Scaling" }, { 4, 8, 2, "Right" }, { 0, 9, 1, "Curve" }, { 1, 9, 1, "Depth" }, { 2, 9, 2, "Breakpoint" }, { 4, 9, 1, "Curve" }, { 5, 9, 1, "Depth" }, { 6, 8, 1, "Rate" }, { 6, 9, 1, "Scaling" }, { -1 } /* end */ }; static struct _parameters { char type; char tab; char x, y; int offset; } parameters[] = { /* type, tab, x, y, offset */ { PEPT_Alg, TO, 2, 0, 134 }, /* Alg */ { PEPT_0_7, TO, 2, 1, 135 }, /* Feedback */ { PEPT_Scal99, TO, 2, 4, 121 }, /* O1 OL */ { PEPT_Scal99, TO, 2, 5, 100 }, /* O2 OL */ { PEPT_Scal99, TO, 2, 6, 79 }, /* O3 OL */ { PEPT_Scal99, TO, 2, 7, 58 }, /* O4 OL */ { PEPT_Scal99, TO, 2, 8, 37 }, /* O5 OL */ { PEPT_Scal99, TO, 2, 9, 16 }, /* O6 OL */ { PEPT_Name, TG, 2, 2, 145 }, /* Name */ { PEPT_Trans, TG, 1, 1, 144 }, { PEPT_OnOff, TG, 1, 2, 136 }, /* Osc Key Sync */ { PEPT_0_99, TG, 3, 1, 137 }, /* LFO Speed */ { PEPT_0_99, TG, 3, 2, 138 }, /* Delay */ { PEPT_0_99, TG, 3, 3, 139 }, /* PMD */ { PEPT_0_99, TG, 3, 4, 140 }, /* AMD */ { PEPT_LFOWave, TG, 5, 1, 142 }, /* Wave */ { PEPT_OnOff, TG, 5, 2, 141 }, /* Sync */ { PEPT_0_7, TG, 5, 3, 143 }, /* PMS */ { PEPT_Env, TG, 1, 7, 126 }, /* Pitch Envelope R1 */ { PEPT_Env, TG, 1, 8, 130 }, { PEPT_Env, TG, 2, 7, 127 }, { PEPT_Env, TG, 2, 8, 131 }, { PEPT_Env, TG, 3, 7, 128 }, { PEPT_Env, TG, 3, 8, 132 }, { PEPT_Env, TG, 4, 7, 129 }, { PEPT_Env, TG, 4, 8, 133 }, /* P L4 */ { -1 } /* end */ }; #undef TO #undef TG static struct _op_parameters { char type; char x, y; int offset; } op_parameters[] = { /* type, x, y, offset */ { PEPT_Mode, 1, 1, 17 }, { PEPT_FC, 2, 1, 18 }, /* FC */ { PEPT_FF, 3, 1, 19 }, /* FF */ { PEPT_Detune, 4, 1, 20 }, /* Detune */ { PEPT_Env, 1, 4, 0 }, /* R1 */ { PEPT_Env, 1, 5, 4 }, /* L1 */ { PEPT_Env, 2, 4, 1 }, /* R2 */ { PEPT_Env, 2, 5, 5 }, /* L2 */ { PEPT_Env, 3, 4, 2 }, /* R3 */ { PEPT_Env, 3, 5, 6 }, /* L3 */ { PEPT_Env, 4, 4, 3 }, /* R4 */ { PEPT_Env, 4, 5, 7 }, /* L4 */ { PEPT_0_7, 6, 4, 15 }, /* VS */ { PEPT_0_3, 6, 5, 14 }, /* AMS */ { PEPT_Curve, 0, 10, 11 }, /* Left Curve */ { PEPT_Scal99, 1, 10, 9 }, /* Left Depth */ { PEPT_BkPt, 2, 10, 8 }, { PEPT_Curve, 4, 10, 12 }, /* Right Curve */ { PEPT_Scal99, 5, 10, 10 }, /* Right Depth */ { PEPT_0_7, 6, 10, 13 }, /* RS */ { -1 } /* end */ }; #define GEPT_Mute PEPT_COUNT /* just for internal use */ /* ==== algorithm ==== */ static gboolean alg_expose(GtkWidget *widget, GdkEventExpose *event) { cairo_t *cr = gdk_cairo_create (widget->window); /* GUIDB_MESSAGE(DB_GUI, " ge alg_expose called\n"); */ gtk_paint_box(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, &event->area, widget, NULL, 0, 0, widget->allocation.width, widget->allocation.height); gdk_cairo_rectangle (cr, &event->area); cairo_clip(cr); cairo_rectangle(cr, widget->style->xthickness, widget->style->ythickness, widget->allocation.width - 2 * widget->style->xthickness, widget->allocation.height - 2 * widget->style->ythickness); cairo_clip(cr); we_alg_draw(cr, patch_edit_get_edit_parameter(134)); cairo_destroy (cr); return FALSE; } /* ==== level envelopes ==== */ static float op_color[6][3] = { { 1.0, 0.0, 0.0 }, { 0.8, 0.7, 0.0 }, { 0.0, 0.8, 0.0 }, { 0.0, 0.8, 0.8 }, { 0.0, 0.0, 1.0 }, { 1.0, 0.0, 1.0 }, }; static gboolean env_expose(GtkWidget *widget, GdkEventExpose *event, gpointer data) { int thisop = (int)data; int r[6][4], l[6][4]; float d[6][4], td, da, xrange; int op, i, width, height; cairo_t *cr = gdk_cairo_create (widget->window); /* GUIDB_MESSAGE(DB_GUI, " ge env_expose called\n"); */ for (op = 0; op < 6; op++) { for (i = 0; i < 4; i++) { r[op][i] = patch_edit_get_edit_parameter(0 + i + (5 - op) * 21); l[op][i] = patch_edit_get_edit_parameter(4 + i + (5 - op) * 21); } } da = 0.0f; for (op = 0; op < 6; op++) { td = 0.0f; for (i = 0; i < 4; i++) { int i0 = (i - 1) & 3; if (l[op][i0] < l[op][i]) { d[op][i] = dx7_voice_eg_rate_rise_duration[r[op][i]] * (dx7_voice_eg_rate_rise_percent[l[op][i]] - dx7_voice_eg_rate_rise_percent[l[op][i0]]); } else { d[op][i] = dx7_voice_eg_rate_decay_duration[r[op][i]] * (dx7_voice_eg_rate_decay_percent[l[op][i0]] - dx7_voice_eg_rate_decay_percent[l[op][i]]); } if (d[op][i] < 0.0f) d[op][i] = 0.0f; td += d[op][i]; } if (da < td) da = td; } /* da is the maximum of envelope time totals */ /* -FIX- if td is zero, then it takes a long time to render? */ td = d[thisop][0] + d[thisop][1] + d[thisop][2] + d[thisop][3]; /* time total of this envelope */ if (da < 0.005f) da = 0.005f; /* prevent division by zero */ if (td < 0.005f) td = 0.005f; /* prevent division by zero */ td = td / (0.66f + 0.34f * (1.0f - ((da - td) / da))); width = widget->allocation.width; height = widget->allocation.height; gtk_paint_box(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, &event->area, widget, NULL, 0, 0, width, height); width -= 2 * widget->style->xthickness; height -= 2 * widget->style->ythickness; gdk_cairo_rectangle (cr, &event->area); cairo_clip(cr); cairo_translate(cr, widget->style->xthickness, widget->style->ythickness); cairo_rectangle(cr, 0, 0, width, height); cairo_clip(cr); cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); cairo_paint(cr); xrange = (float)width - 20.0f; for (op = 0; op < 6; op++) { if (op == thisop) continue; cairo_set_source_rgba(cr, op_color[op][0], op_color[op][1], op_color[op][2], 0.7); cairo_set_line_width(cr, 1); cairo_set_dash(cr, (const double []){ 1.5, 2.5 }, 2, 0.0); cairo_move_to(cr, 10.0f, 109.0f - (float)l[op][3]); da = 0.0f; for (i = 0; i < 4; i++) { da += d[op][i]; cairo_line_to(cr, 10.0f + da * xrange / td, 109.0f - (float)l[op][i]); } cairo_stroke(cr); } cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1); cairo_set_dash(cr, NULL, 0, 0.0); cairo_move_to(cr, 10.0f, 109.0f - (float)l[thisop][3]); da = 0.0f; for (i = 0; i < 4; i++) { da += d[thisop][i]; cairo_line_to(cr, 10.0f + da * xrange / td, 109.0f - (float)l[thisop][i]); } cairo_stroke(cr); cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1); da = 0.0f; i = 0; while (da <= xrange) { cairo_move_to(cr, 10.5f + floorf(da), 110.0f); cairo_line_to(cr, 10.5f + floorf(da), (i % 5 == 0) ? 115.0f : 112.0f); cairo_stroke(cr); //da += floorf(xrange / td); da += xrange / td; i++; } cairo_destroy (cr); return FALSE; } /* ==== level scaling ==== */ static gboolean scaling_expose(GtkWidget *widget, GdkEventExpose *event, gpointer data) { int op = (int)data; int ol = patch_edit_get_edit_parameter(16 + (5 - op) * 21); int l_curve = patch_edit_get_edit_parameter(11 + (5 - op) * 21); int l_depth = patch_edit_get_edit_parameter( 9 + (5 - op) * 21); int bkpt = patch_edit_get_edit_parameter( 8 + (5 - op) * 21); int r_curve = patch_edit_get_edit_parameter(12 + (5 - op) * 21); int r_depth = patch_edit_get_edit_parameter(10 + (5 - op) * 21); int width, height, i, n; float ppn, xbase, f; cairo_t *cr = gdk_cairo_create (widget->window); /* GUIDB_MESSAGE(DB_GUI, " ge scaling_expose called\n"); */ width = widget->allocation.width; height = widget->allocation.height; gtk_paint_box(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, &event->area, widget, NULL, 0, 0, width, height); width -= 2 * widget->style->xthickness; height -= 2 * widget->style->ythickness; gdk_cairo_rectangle (cr, &event->area); cairo_clip(cr); cairo_translate(cr, widget->style->xthickness, widget->style->ythickness); cairo_rectangle(cr, 0, 0, width, height); cairo_clip(cr); cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); cairo_paint(cr); ppn = floorf((float)(width - 20) / 128.0f); /* horizontal pixels per note */ xbase = (float)(width / 2) - ppn * 64.0f + 0.5f; cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1.0); /* place ticks on axes */ cairo_move_to(cr, xbase - 4.5f, 10.5f); cairo_line_to(cr, xbase - 0.5f, 10.5f); cairo_stroke(cr); cairo_move_to(cr, xbase - 4.5f, 109.5f); cairo_line_to(cr, xbase - 0.5f, 109.5f); cairo_stroke(cr); cairo_move_to(cr, xbase, 110.0f); cairo_line_to(cr, xbase, 114.0f); cairo_stroke(cr); cairo_move_to(cr, xbase + ppn * 60.0f, 110.0f); /* Middle C */ cairo_line_to(cr, xbase + ppn * 60.0f, 114.0f); cairo_stroke(cr); f = xbase + ppn * 127.0f; cairo_move_to(cr, f + 0.5f, 10.5f); cairo_line_to(cr, f + 4.5f, 10.5f); cairo_stroke(cr); cairo_move_to(cr, f + 0.5f, 109.5f); cairo_line_to(cr, f + 4.5f, 109.5f); cairo_stroke(cr); cairo_move_to(cr, f, 110.0f); cairo_line_to(cr, f, 114.0f); cairo_stroke(cr); cairo_move_to(cr, xbase + (float)(bkpt + 21) * ppn, 104.0f - (float)ol); cairo_line_to(cr, xbase + (float)(bkpt + 21) * ppn, 114.0f - (float)ol); cairo_stroke(cr); for (i = 0; i < 128; i++) { int scaled_output_level = ol; if (i < bkpt + 21 && l_depth) { /* On the original DX7/TX7, keyboard level scaling calculations * group the keyboard into groups of three keys. This can be quite * noticeable on patches with extreme scaling depths, so I've tried * to replicate it here (the steps between levels may not occur at * exactly the keys). If you'd prefer smother scaling, define * SMOOTH_KEYBOARD_LEVEL_SCALING. */ #ifndef SMOOTH_KEYBOARD_LEVEL_SCALING n = bkpt - (((i + 2) / 3) * 3) + 21; #else n = bkpt - i + 21; #endif switch(l_curve) { case 0: /* -LIN */ scaled_output_level -= (int)((float)n / 45.0f * (float)l_depth); break; case 1: /* -EXP */ scaled_output_level -= (int)(expf((float)(n - 72) / 13.5f) * (float)l_depth); break; case 2: /* +EXP */ scaled_output_level += (int)(expf((float)(n - 72) / 13.5f) * (float)l_depth); break; case 3: /* +LIN */ scaled_output_level += (int)((float)n / 45.0f * (float)l_depth); break; } if (scaled_output_level < 0) scaled_output_level = 0; if (scaled_output_level > 99) scaled_output_level = 99; } else if (i > bkpt + 21 && r_depth) { #ifndef SMOOTH_KEYBOARD_LEVEL_SCALING n = (((i + 2) / 3) * 3) - bkpt - 21; #else n = i - bkpt - 21; #endif switch(r_curve) { case 0: /* -LIN */ scaled_output_level -= (int)((float)n / 45.0f * (float)r_depth); break; case 1: /* -EXP */ scaled_output_level -= (int)(exp((float)(n - 72) / 13.5f) * (float)r_depth); break; case 2: /* +EXP */ scaled_output_level += (int)(exp((float)(n - 72) / 13.5f) * (float)r_depth); break; case 3: /* +LIN */ scaled_output_level += (int)((float)n / 45.0f * (float)r_depth); break; } if (scaled_output_level < 0) scaled_output_level = 0; if (scaled_output_level > 99) scaled_output_level = 99; } if (i == 0) cairo_move_to(cr, xbase + (float)i * ppn, 109.5f - (float)scaled_output_level); else cairo_line_to(cr, xbase + (float)i * ppn, 109.5f - (float)scaled_output_level); } cairo_stroke(cr); cairo_destroy (cr); return FALSE; } /* ==== pitch envelope ==== */ static gboolean pitch_expose(GtkWidget *widget, GdkEventExpose *event, gpointer data) { int i, r[4], width, height; float l[4], td, d[4], xrange, da; cairo_t *cr = gdk_cairo_create (widget->window); /* GUIDB_MESSAGE(DB_GUI, " ge pitch_expose called\n"); */ for (i = 0; i < 4; i++) { r[i] = patch_edit_get_edit_parameter(126 + i); l[i] = (float)dx7_voice_pitch_level_to_shift[patch_edit_get_edit_parameter(130 + i)]; } td = 0.0f; for (i = 0; i < 4; i++) { int i0 = (i - 1) & 3; /* -FIX- This is just a quick approximation that I derived from * regression of Godric Wilkie's pitch eg timings. In particular, * it's not accurate for very slow envelopes. */ d[i] = expf(((float)r[i] - 70.337897f) / -25.580953f) * fabsf((l[i] - l[i0]) / 96.0f); if (d[i] < 2.083e-5f) d[i] = 2.083e-5f; td += d[i]; } width = widget->allocation.width; height = widget->allocation.height; gtk_paint_box(widget->style, widget->window, GTK_STATE_NORMAL, GTK_SHADOW_IN, &event->area, widget, NULL, 0, 0, width, height); width -= 2 * widget->style->xthickness; height -= 2 * widget->style->ythickness; gdk_cairo_rectangle (cr, &event->area); cairo_clip(cr); cairo_translate(cr, widget->style->xthickness, widget->style->ythickness); cairo_rectangle(cr, 0, 0, width, height); cairo_clip(cr); cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); cairo_paint(cr); xrange = (float)width - 20.0f; cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1); cairo_move_to(cr, 5.0f, 10.5f); cairo_line_to(cr, 9.0f, 10.5f); cairo_stroke(cr); cairo_move_to(cr, 5.0f, 58.5f); cairo_line_to(cr, 9.0f, 58.5f); cairo_stroke(cr); cairo_move_to(cr, 5.0f, 106.5f); cairo_line_to(cr, 9.0f, 106.5f); cairo_stroke(cr); cairo_move_to(cr, xrange + 11.0f, 10.5f); cairo_line_to(cr, xrange + 15.0f, 10.5f); cairo_stroke(cr); cairo_move_to(cr, xrange + 11.0f, 58.5f); cairo_line_to(cr, xrange + 15.0f, 58.5f); cairo_stroke(cr); cairo_move_to(cr, xrange + 11.0f, 106.5f); cairo_line_to(cr, xrange + 15.0f, 106.5f); cairo_stroke(cr); cairo_move_to(cr, 10.0f, 58.5f - l[3]); da = 0.0f; for (i = 0; i < 4; i++) { da += d[i]; cairo_line_to(cr, 10.0f + da * xrange / td, 58.5f - l[i]); } cairo_stroke(cr); da = 0.0f; i = 0; while (da <= xrange) { cairo_move_to(cr, 10.5f + da, 107.0f); cairo_line_to(cr, 10.5f + da, (i % 5 == 0) ? 112.0f : 109.0f); cairo_stroke(cr); da += floorf(xrange / td); i++; } cairo_destroy (cr); return FALSE; } /* ==== shadow adjustments ==== */ /* The adjustments in edit_adj[] represent the actual value in the edit buffer, yet * some parameters need to be displayed as a different range. For example: * Algorithm, which is 0 to 31 in edit_adj[], but the spinbutton needs to show 1 to 32 * Detune, which is 0 to 14 in edit_adj[], but the spinbutton needs to show -7 to +7 * Transpose, which is 0 to 48 in edit_adj[], but the spinbutton needs to show -24 to +24 * So we use a 'shadow' adjustment with the translated range (e.g. -7 to 7), that is * connected directly to the spinbutton, and link it to the 'real' adjustment having the * zero-based (e.g. 0 to 14) range. * * The shadow adjustment and its bias are stored as key-value pairs attached to the real * adjustment using g_object_set_data(). */ static void on_shadow_adj_changed(GtkAdjustment *shadow_adj, gpointer data); /* forward */ static void on_real_adj_changed(GtkAdjustment *real_adj, gpointer data) { int offset = (int)data; GtkAdjustment *shadow_adj = g_object_get_data(G_OBJECT(real_adj), "shadow_adjustment"); int bias = (int)g_object_get_data(G_OBJECT(real_adj), "shadow_bias"); /* GUIDB_MESSAGE(DB_GUI, " ge on_real_adj_changed: offset %d now %d\n", offset, (int)real_adj->value); */ /* temporarily block reverse signal, then update shadow adjustment */ g_signal_handlers_block_by_func(G_OBJECT(shadow_adj), on_shadow_adj_changed, (gpointer)offset); gtk_adjustment_set_value(shadow_adj, real_adj->value + (float)bias); g_signal_handlers_unblock_by_func(G_OBJECT(shadow_adj), on_shadow_adj_changed, (gpointer)offset); } static void on_shadow_adj_changed(GtkAdjustment *shadow_adj, gpointer data) { int offset = (int)data; int bias = (int)g_object_get_data(G_OBJECT(edit_adj[offset]), "shadow_bias"); /* GUIDB_MESSAGE(DB_GUI, " ge on_shadow_adj_changed: offset %d now %d\n", offset, (int)shadow_adj->value); */ /* temporarily block reverse signal, then update the real adjustment */ g_signal_handlers_block_by_func(G_OBJECT(edit_adj[offset]), on_real_adj_changed, (gpointer)offset); gtk_adjustment_set_value(GTK_ADJUSTMENT(edit_adj[offset]), shadow_adj->value - (float)bias); g_signal_handlers_unblock_by_func(G_OBJECT(edit_adj[offset]), on_real_adj_changed, (gpointer)offset); } /* ==== spin buttons ==== */ static void on_alg_changed(GtkAdjustment *adj, gpointer data) { /* int alg = (int)adj->value; */ /* GUIDB_MESSAGE(DB_GUI, " ge on_alg_changed: now %d\n", alg); */ gtk_widget_queue_draw (we_alg_drawing_area); } static void on_env_changed(GtkAdjustment *adj, gpointer data) { int offset = (int)data; int op = 5 - (offset / 21); /* 0 to 5, or -1 for pitch envelope */ if (op >= 0) { gtk_widget_queue_draw (env_drawing_area[op]); } else { gtk_widget_queue_draw (pitch_drawing_area); } } static void we_update_freq(int op) { unsigned long fc, ff, f; char *units; char ca[10], cb[10]; fc = patch_edit_get_edit_parameter(123 - op * 21); ff = patch_edit_get_edit_parameter(124 - op * 21); if (patch_edit_get_edit_parameter(122 - op * 21)) { /* fixed */ f = peFFF[ff]; switch (fc & 3) { case 1: f *= 10; break; case 2: f *= 100; break; case 3: f *= 1000; break; } units = " Hz"; } else { f = fc * 10; if (!f) f = 5; f = (100 + ff) * f; units = ""; } f = snprintf(ca, 10, "%ld", f); switch (f) { case 3: snprintf(cb, 10, "0.%.3s%s", ca, units); break; case 4: snprintf(cb, 10, "%.1s.%.3s%s", ca, ca + 1, units); break; case 5: snprintf(cb, 10, "%.2s.%.2s%s", ca, ca + 2, units); break; case 6: snprintf(cb, 10, "%.3s.%.1s%s", ca, ca + 3, units); break; case 7: snprintf(cb, 10, "%.4s.%s", ca, units); break; } gtk_label_set_text(GTK_LABEL(freq_label[op]), cb); } static void on_freq_changed(GtkAdjustment *adj, gpointer data) { /* float value = adj->value; -- for FC or FF */ /* int mode = (int)adj->value; -- for mode */ int offset = (int)data; int op = 5 - ((offset - 17) / 21); /* 0 to 5 */ /* GUIDB_MESSAGE(DB_GUI, " ge on_freq_changed: offset %d, operator %d\n", offset, op); */ we_update_freq(op); } static void on_bkpt_changed(GtkAdjustment *adj, gpointer data) { int bkpt = (int)adj->value; int offset = (int)data; int op = 5 - ((offset - 8) / 21); /* 0 to 5 */ /* GUIDB_MESSAGE(DB_GUI, " ge on_bkpt_changed: op %d breakpoint now %d\n", op, bkpt); */ gtk_label_set_text(GTK_LABEL(bkpt_label[op]), patch_edit_NoteText(bkpt + 21)); gtk_widget_queue_draw (scaling_drawing_area[op]); } static void on_scaling_changed(GtkAdjustment *adj, gpointer data) { int offset = (int)data; int op = 5 - (offset / 21); /* 0 to 5 */ gtk_widget_queue_draw (scaling_drawing_area[op]); } static void place_spin(GtkObject *adj, GtkWidget *table, int x, int y) { GtkWidget *spin = gtk_spin_button_new (GTK_ADJUSTMENT (adj), 2, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE); gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (spin), GTK_UPDATE_IF_VALID); gtk_table_attach (GTK_TABLE (table), spin, x, x + 1, y, y + 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); } /* ==== switches ==== */ static void update_switch_label_text(GtkToggleButton *t) { int type = (int)g_object_get_data(G_OBJECT(t), "parameter_type"); GtkWidget *label = gtk_bin_get_child(GTK_BIN(t)); gboolean state = gtk_toggle_button_get_active(t); switch (type) { case PEPT_Mode: gtk_label_set_text(GTK_LABEL(label), state ? "Fixed" : "Ratio"); break; case PEPT_OnOff: gtk_label_set_text(GTK_LABEL(label), state ? "On" : "Off"); break; case GEPT_Mute: gtk_label_set_text(GTK_LABEL(label), state ? "M" : "M"); if (state) gtk_label_set_use_markup(GTK_LABEL(label), TRUE); break; } } static void on_switch_changed(GtkToggleButton *togglebutton, gpointer user_data); /* forward */ static void on_switch_adjustment_changed(GtkAdjustment *adj, gpointer data) { GtkToggleButton *togglebutton = GTK_TOGGLE_BUTTON(data); /* GUIDB_MESSAGE(DB_GUI, " ge on_switch_adjustment_changed %p %p %d\n", adj, data, (int)adj->value); */ /* temporarily block reverse signal, then set the togglebutton state */ g_signal_handlers_block_by_func(G_OBJECT(togglebutton), on_switch_changed, (gpointer)adj); gtk_toggle_button_set_active(togglebutton, (adj->value > 1e-20f)); g_signal_handlers_unblock_by_func(G_OBJECT(togglebutton), on_switch_changed, (gpointer)adj); update_switch_label_text(togglebutton); } static void on_switch_changed(GtkToggleButton *togglebutton, gpointer user_data) { GtkAdjustment *adj = GTK_ADJUSTMENT(user_data); gboolean state = gtk_toggle_button_get_active(togglebutton); /* GUIDB_MESSAGE(DB_GUI, " ge on_switch_changed %p %p %d\n", togglebutton, user_data, state); */ update_switch_label_text(togglebutton); /* temporarily block reverse signal, then update the adjustment */ g_signal_handlers_block_by_func(G_OBJECT(adj), on_switch_adjustment_changed, (gpointer)togglebutton); gtk_adjustment_set_value(adj, state ? 1.0 : 0.0); g_signal_handlers_unblock_by_func(G_OBJECT(adj), on_switch_adjustment_changed, (gpointer)togglebutton); } static void place_switch(GtkObject *adj, GtkWidget *table, int x, int y, int type) { GtkWidget *w = gtk_toggle_button_new_with_label ("-"); g_object_set_data(G_OBJECT(w), "parameter_type", (gpointer)type); gtk_table_attach (GTK_TABLE (table), w, x, x + 1, y, y + 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); if (type == GEPT_Mute) { /* -FIX- set mute buttons insensitive until hexter supports muting */ gtk_widget_set_sensitive(w, FALSE); update_switch_label_text((GtkToggleButton *)w); } g_signal_connect(G_OBJECT(adj), "value-changed", G_CALLBACK(on_switch_adjustment_changed), w); g_signal_connect(G_OBJECT(w), "toggled", G_CALLBACK(on_switch_changed), (gpointer)adj); } /* ==== combo boxes ==== */ static void on_combo_changed(GtkComboBox *widget, gpointer user_data); /* forward */ static void on_combo_adjustment_changed(GtkAdjustment *adjustment, gpointer user_data) { GtkComboBox *w = GTK_COMBO_BOX(user_data); /* GUIDB_MESSAGE(DB_GUI, " ge on_combo_adjustment_changed %p %p\n", adjustment, user_data); */ /* temporarily block reverse signal, then set combobox active item */ g_signal_handlers_block_by_func(G_OBJECT(w), on_combo_changed, (gpointer)adjustment); gtk_combo_box_set_active(w, gtk_adjustment_get_value(adjustment)); g_signal_handlers_unblock_by_func(G_OBJECT(w), on_combo_changed, (gpointer)adjustment); } static void on_combo_changed(GtkComboBox *widget, gpointer user_data) { GtkAdjustment *adj = GTK_ADJUSTMENT(user_data); /* GUIDB_MESSAGE(DB_GUI, " ge on_combo_changed %p %p\n", widget, user_data); */ /* temporarily block reverse signal, then update adjustment */ g_signal_handlers_block_by_func(G_OBJECT(adj), on_combo_adjustment_changed, (gpointer)widget); gtk_adjustment_set_value(adj, gtk_combo_box_get_active(widget)); g_signal_handlers_unblock_by_func(G_OBJECT(adj), on_combo_adjustment_changed, (gpointer)widget); } static void place_combo(GtkObject *adj, GtkWidget *table, int x, int y, int type) { const char **labels; int i; /* -FIX- this is kinda ugly */ switch (type) { default: case PEPT_LFOWave: labels = (const char *[]){ "Tri", "Saw+", "Saw-", "Square", "Sine", "S/H", NULL }; break; case PEPT_Curve: labels = (const char *[]){ "-Lin", "-Exp", "+Exp", "+Lin", NULL }; break; } GtkWidget *w = gtk_combo_box_new_text(); for (i = 0; labels[i]; i++) gtk_combo_box_append_text(GTK_COMBO_BOX(w), labels[i]); gtk_combo_box_set_active((GtkComboBox *)w, 0); gtk_table_attach (GTK_TABLE (table), w, x, x + 1, y, y + 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); g_signal_connect(G_OBJECT(adj), "value-changed", G_CALLBACK(on_combo_adjustment_changed), w); g_signal_connect(G_OBJECT(w), "changed", G_CALLBACK(on_combo_changed), (gpointer)adj); } /* ==== widgy editor instantiation ==== */ static void place_widget(int type, int tab, int x, int y, int offset) { switch (type) { case PEPT_0_99: case PEPT_0_7: case PEPT_0_3: place_spin(edit_adj[offset], tables[tab], x, y); break; case PEPT_Env: place_spin(edit_adj[offset], tables[tab], x, y); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_env_changed), (gpointer)offset); break; case PEPT_FC: case PEPT_FF: place_spin(edit_adj[offset], tables[tab], x, y); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_freq_changed), (gpointer)offset); break; case PEPT_Mode: place_switch(edit_adj[offset], tables[tab], x, y, PEPT_Mode); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_freq_changed), (gpointer)offset); break; case PEPT_Alg: /* 0 to 31, algorithm, as 1 to 32 */ case PEPT_Detune: /* 0 to 14, detune, as -7 to +7 */ case PEPT_Trans: /* 0 to 48, transpose, as -24 to +24 */ { int range, bias; GtkObject *shadow_adj; /* the 'shadow' adjustment, directly connected to spinbutton */ void (*callback)(GtkAdjustment *, gpointer); switch (type) { default: case PEPT_Alg: range = 31; bias = 1; callback = on_alg_changed; break; case PEPT_Detune: range = 14; bias = -7; callback = NULL; break; case PEPT_Trans: range = 48; bias = -24; callback = NULL; break; } shadow_adj = gtk_adjustment_new(bias, bias, range + bias, 1, (range > 10) ? 10 : 1, 0); place_spin(shadow_adj, tables[tab], x, y); g_signal_connect (G_OBJECT(shadow_adj), "value-changed", G_CALLBACK (on_shadow_adj_changed), (gpointer)offset); /* edit_adj[offset] is the 'real' adjustment */ g_object_set_data(G_OBJECT(edit_adj[offset]), "shadow_adjustment", (gpointer)shadow_adj); g_object_set_data(G_OBJECT(edit_adj[offset]), "shadow_bias", (gpointer)bias); if (callback != NULL) g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK(callback), (gpointer)offset); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_real_adj_changed), (gpointer)offset); } break; case PEPT_BkPt: place_spin(edit_adj[offset], tables[tab], x, y); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_bkpt_changed), (gpointer)offset); break; case PEPT_Scal99: place_spin(edit_adj[offset], tables[tab], x, y); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_scaling_changed), (gpointer)offset); break; case PEPT_OnOff: place_switch(edit_adj[offset], tables[tab], x, y, PEPT_OnOff); break; case PEPT_LFOWave: place_combo(edit_adj[offset], tables[tab], x, y, PEPT_LFOWave); break; case PEPT_Curve: place_combo(edit_adj[offset], tables[tab], x, y, PEPT_Curve); g_signal_connect (G_OBJECT(edit_adj[offset]), "value-changed", G_CALLBACK (on_scaling_changed), (gpointer)offset); break; } } GtkWidget * create_widgy_editor(const char *tag) { GtkWidget *hbox; GtkWidget *notebook; GtkWidget *table; GtkWidget *label; int i, x, y; /* create notebook and tabs */ hbox = gtk_hbox_new(FALSE, 0); table = gtk_table_new (1, 1, FALSE); gtk_container_set_border_width(GTK_CONTAINER(table), 4); tables[TABLE_OUTPUT] = table; gtk_box_pack_start(GTK_BOX(hbox), table, FALSE, FALSE, 0); notebook = gtk_notebook_new (); gtk_box_pack_start(GTK_BOX(hbox), notebook, TRUE, TRUE, 0); for (i = TABLE_OUTPUT + 1; i < TABLE_COUNT; i++) { table = gtk_table_new (1, 1, FALSE); gtk_container_set_border_width(GTK_CONTAINER(table), 4); gtk_container_add (GTK_CONTAINER (notebook), table); tables[i] = table; label = gtk_label_new (tabs[i]); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), i - 1), label); } /* place labels */ for (i = 0; labels[i].tab >= 0; i++) { label = gtk_label_new(labels[i].text); /* if (strlen(labels[i].text) > 1) * gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); -FIX- */ x = labels[i].x; y = labels[i].y; gtk_table_attach (GTK_TABLE (tables[(int)labels[i].tab]), label, x, x + labels[i].width, y, y + 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); } for (i = 0; op_labels[i].x >= 0; i++) { int op; for (op = 0; op < 6; op++) { label = gtk_label_new(op_labels[i].text); x = op_labels[i].x; y = op_labels[i].y; gtk_table_attach (GTK_TABLE (tables[TABLE_OP1 + op]), label, x, x + op_labels[i].width, y, y + 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); } } /* place widgets */ for (i = 0; parameters[i].type >= 0; i++) { place_widget(parameters[i].type, parameters[i].tab, parameters[i].x, parameters[i].y, parameters[i].offset); } for (i = 0; op_parameters[i].type >= 0; i++) { int op; for (op = 0; op < 6; op++) { place_widget(op_parameters[i].type, TABLE_OP1 + op, op_parameters[i].x, op_parameters[i].y, op_parameters[i].offset + (5 - op) * 21); } } #ifdef OP_MUTE_WORKS_IN_PLUGIN /* create mute buttons */ for (i = 0; i < 6; i++) { mute_adj[i] = gtk_adjustment_new(0, 0, 1, 1, 1, 0); place_switch(mute_adj[i], tables[TABLE_OUTPUT], 1, i + 4, GEPT_Mute); } #endif /* OP_MUTE_WORKS_IN_PLUGIN */ /* create breakpoint and frequency labels */ for (i = 0; i < 6; i++) { bkpt_label[i] = gtk_label_new("bkpt"); gtk_table_attach (GTK_TABLE (tables[TABLE_OP1 + i]), bkpt_label[i], 3, 4, 10, 11, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); freq_label[i] = gtk_label_new(NULL); gtk_table_attach (GTK_TABLE (tables[TABLE_OP1 + i]), freq_label[i], 0, 1, 1, 2, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); } /* create algorithm drawing area */ we_alg_drawing_area_new(); gtk_table_attach (GTK_TABLE (tables[TABLE_OUTPUT]), we_alg_drawing_area, 0, 3, 11, 12, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 5, 5); g_signal_connect(G_OBJECT(we_alg_drawing_area), "expose-event", G_CALLBACK(alg_expose), NULL); /* create envelope and scaling drawing areas */ for (i = 0; i < 6; i++) { env_drawing_area[i] = gtk_drawing_area_new(); gtk_widget_set_size_request(env_drawing_area[i], 220 + env_drawing_area[i]->style->xthickness * 2, 120 + env_drawing_area[i]->style->ythickness * 2); gtk_table_attach (GTK_TABLE (tables[TABLE_OP1 + i]), env_drawing_area[i], 0, 7, 6, 7, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 5); g_signal_connect(G_OBJECT(env_drawing_area[i]), "expose-event", G_CALLBACK(env_expose), (gpointer)i); scaling_drawing_area[i] = gtk_drawing_area_new(); gtk_widget_set_size_request(scaling_drawing_area[i], 276 + scaling_drawing_area[i]->style->xthickness * 2, 120 + scaling_drawing_area[i]->style->ythickness * 2); gtk_table_attach (GTK_TABLE (tables[TABLE_OP1 + i]), scaling_drawing_area[i], 0, 7, 11, 12, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 5); g_signal_connect(G_OBJECT(scaling_drawing_area[i]), "expose-event", G_CALLBACK(scaling_expose), (gpointer)i); } pitch_drawing_area = gtk_drawing_area_new(); gtk_widget_set_size_request(pitch_drawing_area, 220 + pitch_drawing_area->style->xthickness * 2, 116 + pitch_drawing_area->style->ythickness * 2); gtk_table_attach (GTK_TABLE (tables[TABLE_GLOBAL]), pitch_drawing_area, 0, 6, 12, 13, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 5); g_signal_connect(G_OBJECT(pitch_drawing_area), "expose-event", G_CALLBACK(pitch_expose), NULL); gtk_widget_show_all(hbox); widgy_widget = hbox; return widgy_widget; } hexter-1.0.2/src/dx7_voice_tables.c0000644000076400007640000003774711757613235014152 00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011 Sean Bolton and others. * * Portions of this file may have come from Juan Linietsky's * rx-saturno, copyright (C) 2002 by Juan Linietsky. * Portions of this file may have come from Jeff Harrington's * dx72csound package, for which I've found no copyright * attribution. * Significant reverse-engineering contributions were made by * Jamie Bullock. * Other parts may have been inspired by Chowning/Bristow, * Pinkston, Yala Abdullah's website, Godric Wilkie' website; * see the AUTHORS file for more detail. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H #include #endif #define _BSD_SOURCE 1 #define _SVID_SOURCE 1 #define _ISOC99_SOURCE 1 #include #include "hexter_types.h" #include "dx7_voice.h" static int dx7_voice_tables_initialized = 0; dx7_sample_t dx7_voice_sin_table[SINE_SIZE + 1]; extern dx7_sample_t dx7_voice_eg_ol_to_mod_index_table[257]; /* forward */ dx7_sample_t *dx7_voice_eg_ol_to_mod_index = &dx7_voice_eg_ol_to_mod_index_table[128]; void dx7_voice_init_tables(void) { int i; double f; if (!dx7_voice_tables_initialized) { for (i = 0; i <= SINE_SIZE; i++) { /* observation of my TX7's output with oscillator sync on suggests * it uses cosine */ f = cos((double)(i) / SINE_SIZE * (2 * M_PI)); /* index / index max * radian cycle */ dx7_voice_sin_table[i] = DOUBLE_TO_FP(f); } #ifndef HEXTER_USE_FLOATING_POINT #if FP_SHIFT != 24 /* Any fixed-point tables below are in s7.24 format. Shift * them to match FP_SHIFT. */ for (i = 0; i <= 256; i++) { dx7_voice_eg_ol_to_mod_index_table[i] >>= (24 - FP_SHIFT); } #endif #endif /* ! HEXTER_USE_FLOATING_POINT */ dx7_voice_tables_initialized = 1; } } /* This table lists which operators of an algorithm are carriers. Bit 0 (LSB) * is set if operator 1 is a carrier, and so on through bit 5 for operator 6. */ uint8_t dx7_voice_carriers[32] = { 0x05, /* algorithm 1, operators 1 and 3 */ 0x05, 0x09, /* algorithm 3, operators 1 and 4 */ 0x09, 0x15, /* algorithm 5, operators 1, 3, and 5 */ 0x15, 0x05, 0x05, 0x05, 0x09, 0x09, 0x05, 0x05, 0x05, 0x05, 0x01, /* algorithm 16, operator 1 */ 0x01, 0x01, 0x19, /* algorithm 19, operators 1, 4, and 5 */ 0x0b, /* algorithm 20, operators 1, 2, and 4 */ 0x1b, /* algorithm 21, operators 1, 2, 4, and 5 */ 0x1d, /* algorithm 22, operators 1, 3, 4, and 5 */ 0x1b, 0x1f, /* algorithm 24, operators 1 through 5 */ 0x1f, 0x0b, 0x0b, 0x25, /* algorithm 28, operators 1, 3, and 6 */ 0x17, /* algorithm 29, operators 1, 2, 3, and 5 */ 0x27, /* algorithm 30, operators 1, 2, 3, and 6 */ 0x1f, 0x2f, /* algorithm 32, all operators */ }; float dx7_voice_carrier_count[32] = { 2.0f, 2.0f, 2.0f, 2.0f, 3.0f, 3.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.0f, 1.0f, 1.0f, 1.0f, 3.0f, 3.0f, 4.0f, 4.0f, 4.0f, 5.0f, 5.0f, 3.0f, 3.0f, 3.0f, 4.0f, 4.0f, 5.0f, 6.0f }; /* This table converts an output level of 0 to 99 into a phase * modulation index of 0 to ~2.089 periods. It actually extends * below 0 and beyond 99, since amplitude modulation can produce * 'negative' output levels, and velocities above 100 can produce * output levels above 99, plus it includes a 257th 'guard' point. * Table index 128 corresponds to output level 0, and index 227 to OL 99. * I believe this is based on information from the Chowning/Bristow * book (see the CREDITS file), filtered down to me through the work of * Pinkston, Harrington, and Abdullah as I found it on the Internet. The * code used to calculate it looks something like this: * * // DX7 output level to TL translation table * int tl_table[128] = { * 127, 122, 118, 114, 110, 107, 104, 102, 100, 98, 96, 94, 92, 90, * 88, 86, 85, 84, 82, 81, 79, 78, 77, 76, 75, 74, 73, 72, 71, * 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, * 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, * 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, * 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, * 5, 4, 3, 2, 1, 0, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, * -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, -22, -23, -24, * -25, -26, -27, -28 * }; * * int ol; * double mi; * * for (ol = 0; ol < 128; ol++) { * if (ol < 5) { // smoothly ramp from 0.0 at 0 to the proper value at 5 * mi = pow(2.0, ( (33.0/16.0) - ((double)tl_table[5]/8.0) - 1.0)); * mi = mi * ((double)ol / 5.0); * } else { * mi = pow(2.0, ( (33.0/16.0) - ((double)tl_table[ol]/8.0) - 1.0)); * } * #ifndef HEXTER_USE_FLOATING_POINT * printf(" %6d,", DOUBLE_TO_FP(mi)); * #else * printf(" %g,", mi); * #endif * } */ dx7_sample_t dx7_voice_eg_ol_to_mod_index_table[257] = { #ifndef HEXTER_USE_FLOATING_POINT /* phase modulation index, expressed in s7.24 fixed point */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 659, 1319, 1978, 2638, 3298, 4277, 5086, 6049, 7193, 8554, 10173, 12098, 14387, 17109, 20346, 22188, 24196, 28774, 31378, 37315, 40693, 44376, 48392, 52772, 57548, 62757, 68437, 74631, 81386, 88752, 96785, 105545, 115097, 125514, 136875, 149263, 162772, 177504, 193570, 211090, 230195, 251029, 273750, 298526, 325545, 355009, 387141, 422180, 460390, 502059, 547500, 597053, 651091, 710019, 774282, 844360, 920781, 1004119, 1095000, 1194106, 1302182, 1420039, 1548564, 1688721, 1841563, 2008239, 2190000, 2388212, 2604364, 2840079, 3097128, 3377443, 3683127, 4016479, 4380001, 4776425, 5208729, 5680159, 6194257, 6754886, 7366255, 8032958, 8760003, 9552851, 10417458, 11360318, 12388515, 13509772, 14732510, 16065917, 17520006, 19105702, 20834916, 22720637, 24777031, 27019544, 29465021, 32131834, 35040013, 38211405, 41669833, 45441275, 49554062, 54039088, 58930043, 64263668, 70080027, 76422811, 83339667, 90882551, 99108124, 108078176, 117860087, 128527336, 140160054, 152845623, 166679334, 181765102, 198216249, 216156353, 235720174, 257054673, 280320108, 305691246, 333358668, 363530205, 396432499, 396432499 #else /* HEXTER_USE_FLOATING_POINT */ 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 3.93186e-05f, 7.86372e-05f, 0.000117956f, 0.000157274f, 0.000196593f, 0.00025495f, 0.000303188f, 0.000360553f, 0.000428773f, 0.000509899f, 0.000606376f, 0.000721107f, 0.000857545f, 0.0010198f, 0.00121275f, 0.00132252f, 0.00144221f, 0.00171509f, 0.00187032f, 0.0022242f, 0.0024255f, 0.00264503f, 0.00288443f, 0.00314549f, 0.00343018f, 0.00374064f, 0.00407919f, 0.00444839f, 0.00485101f, 0.00529006f, 0.00576885f, 0.00629098f, 0.00686036f, 0.00748128f, 0.00815839f, 0.00889679f, 0.00970201f, 0.0105801f, 0.0115377f, 0.012582f, 0.0137207f, 0.0149626f, 0.0163168f, 0.0177936f, 0.019404f, 0.0211602f, 0.0230754f, 0.0251639f, 0.0274414f, 0.0299251f, 0.0326336f, 0.0355871f, 0.0388081f, 0.0423205f, 0.0461508f, 0.0503278f, 0.0548829f, 0.0598502f, 0.0652671f, 0.0711743f, 0.0776161f, 0.084641f, 0.0923016f, 0.100656f, 0.109766f, 0.1197f, 0.130534f, 0.142349f, 0.155232f, 0.169282f, 0.184603f, 0.201311f, 0.219532f, 0.239401f, 0.261068f, 0.284697f, 0.310464f, 0.338564f, 0.369207f, 0.402623f, 0.439063f, 0.478802f, 0.522137f, 0.569394f, 0.620929f, 0.677128f, 0.738413f, 0.805245f, 0.878126f, 0.957603f, 1.04427f, 1.13879f, 1.24186f, 1.35426f, 1.47683f, 1.61049f, 1.75625f, 1.91521f, 2.08855f, 2.27758f, 2.48372f, 2.70851f, 2.95365f, 3.22098f, 3.5125f, 3.83041f, 4.1771f, 4.55515f, 4.96743f, 5.41702f, 5.9073f, 6.44196f, 7.02501f, 7.66083f, 8.35419f, 9.11031f, 9.93486f, 10.834f, 11.8146f, 12.8839f, 14.05f, 15.3217f, 16.7084f, 18.2206f, 19.8697f, 21.6681f, 23.6292f, 23.6292f #endif /* HEXTER_USE_FLOATING_POINT */ }; /* This table lists the output level adjustment needed for a certain * velocity, expressed in output level units per unit of velocity * sensitivity. It is based on measurements I took from my TX7. */ float dx7_voice_velocity_ol_adjustment[128] = { -99.0, -10.295511, -9.709229, -9.372207, -9.121093, -8.629703, -8.441805, -8.205647, -7.810857, -7.653259, -7.299901, -7.242308, -6.934396, -6.727051, -6.594723, -6.427755, -6.275133, -6.015212, -5.843023, -5.828787, -5.725659, -5.443202, -5.421110, -5.222133, -5.160615, -5.038265, -4.948225, -4.812105, -4.632120, -4.511531, -4.488645, -4.370043, -4.370610, -4.058591, -4.066902, -3.952988, -3.909686, -3.810096, -3.691883, -3.621306, -3.527286, -3.437519, -3.373512, -3.339195, -3.195983, -3.167622, -3.094788, -2.984045, -2.937463, -2.890713, -2.890660, -2.691874, -2.649229, -2.544696, -2.498147, -2.462573, -2.396637, -2.399795, -2.236338, -2.217625, -2.158336, -2.135569, -1.978521, -1.913965, -1.937082, -1.752275, -1.704013, -1.640514, -1.598791, -1.553859, -1.512187, -1.448088, -1.450443, -1.220567, -1.182340, -1.123139, -1.098469, -1.020642, -0.973039, -0.933279, -0.938035, -0.757380, -0.740860, -0.669721, -0.681526, -0.555390, -0.519321, -0.509318, -0.456936, -0.460622, -0.290578, -0.264393, -0.252716, -0.194141, -0.153566, -0.067842, -0.033402, -0.054947, 0.012860, 0.000000, -0.009715, 0.236054, 0.273956, 0.271968, 0.330177, 0.345427, 0.352333, 0.433861, 0.442952, 0.476411, 0.539632, 0.525355, 0.526115, 0.707022, 0.701551, 0.734875, 0.739149, 0.794320, 0.801578, 0.814225, 0.818939, 0.897102, 0.895082, 0.927998, 0.929797, 0.956112, 0.956789, 0.958121 }; /* This table converts LFO speed to frequency in Hz. It is based on * interpolation of Jamie Bullock's measurements. */ float dx7_voice_lfo_frequency[128] = { 0.062506, 0.124815, 0.311474, 0.435381, 0.619784, 0.744396, 0.930495, 1.116390, 1.284220, 1.496880, 1.567830, 1.738994, 1.910158, 2.081322, 2.252486, 2.423650, 2.580668, 2.737686, 2.894704, 3.051722, 3.208740, 3.366820, 3.524900, 3.682980, 3.841060, 3.999140, 4.159420, 4.319700, 4.479980, 4.640260, 4.800540, 4.953584, 5.106628, 5.259672, 5.412716, 5.565760, 5.724918, 5.884076, 6.043234, 6.202392, 6.361550, 6.520044, 6.678538, 6.837032, 6.995526, 7.154020, 7.300500, 7.446980, 7.593460, 7.739940, 7.886420, 8.020588, 8.154756, 8.288924, 8.423092, 8.557260, 8.712624, 8.867988, 9.023352, 9.178716, 9.334080, 9.669644, 10.005208, 10.340772, 10.676336, 11.011900, 11.963680, 12.915460, 13.867240, 14.819020, 15.770800, 16.640240, 17.509680, 18.379120, 19.248560, 20.118000, 21.040700, 21.963400, 22.886100, 23.808800, 24.731500, 25.759740, 26.787980, 27.816220, 28.844460, 29.872700, 31.228200, 32.583700, 33.939200, 35.294700, 36.650200, 37.812480, 38.974760, 40.137040, 41.299320, 42.461600, 43.639800, 44.818000, 45.996200, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400, 47.174400 }; /* This table converts pitch modulation sensitivity to semitones at full * modulation (assuming a perfectly linear pitch mod depth to pitch * relationship). It is from a simple averaging of Jamie Bullock's * TX-data-1/PMD and TX-data-2/ENV data, and ignores the apparent ~0.1 * semitone positive bias that Jamie observed. [-FIX- smbolton: my * inclination would be to call this bias, if it's reproducible, a * non-desirable 'bug', and _not_ implement it in hexter. And, at * least for my own personal build, I'd change that PMS=7 value to a * full octave, since that's one thing that's always bugged me about * my TX7. Thoughts? ] */ float dx7_voice_pms_to_semitones[8] = { 0.0, 0.450584, 0.900392, 1.474744, 2.587385, 4.232292, 6.982097, /* 11.722111 */ 12.0 }; /* This table converts amplitude modulation depth to output level * reduction at full modulation with an amplitude modulation sensitivity * of 3. It was constructed from regression of a very few data points, * using this code: * perl -e 'for ($i = 0; $i <= 99; $i++) { printf " %f,\n", exp($i * 0.0428993 - 0.285189); }' >x.c * and is probably rather rough in its accuracy. -FIX- */ float dx7_voice_amd_to_ol_adjustment[100] = { 0.0, 0.784829, 0.819230, 0.855139, 0.892622, 0.931748, 0.972589, 1.015221, 1.059721, 1.106171, 1.154658, 1.205270, 1.258100, 1.313246, 1.370809, 1.430896, 1.493616, 1.559085, 1.627424, 1.698759, 1.773220, 1.850945, 1.932077, 2.016765, 2.105166, 2.197441, 2.293761, 2.394303, 2.499252, 2.608801, 2.723152, 2.842515, 2.967111, 3.097167, 3.232925, 3.374633, 3.522552, 3.676956, 3.838127, 4.006362, 4.181972, 4.365280, 4.556622, 4.756352, 4.964836, 5.182458, 5.409620, 5.646738, 5.894251, 6.152612, 6.422298, 6.703805, 6.997652, 7.304378, 7.624549, 7.958754, 8.307609, 8.671754, 9.051861, 9.448629, 9.862789, 10.295103, 10.746365, 11.217408, 11.709099, 12.222341, 12.758080, 13.317302, 13.901036, 14.510357, 15.146387, 15.810295, 16.503304, 17.226690, 17.981783, 18.769975, 19.592715, 20.451518, 21.347965, 22.283705, 23.260462, 24.280032, 25.344294, 26.455204, 27.614809, 28.825243, 30.088734, 31.407606, 32.784289, 34.221315, 35.721330, 37.287095, 38.921492, 40.627529, 42.408347, 44.267222, 46.207578, 48.232984, 50.347169, 52.75 }; /* This table converts modulation source sensitivity (e.g. 'foot * controller sensitivity') into output level reduction at full modulation * with amplitude modulation sensitivity 3. It's basically just the above * table scaled for 0 to 15 instead of 0 to 99. */ float dx7_voice_mss_to_ol_adjustment[16] = { 0.0, 0.997948, 1.324562, 1.758071, 2.333461, 3.097167, 4.110823, 5.456233, 7.241976, 9.612164, 12.758080, 16.933606, 22.475719, 29.831681, 39.595137, 52.75 }; hexter-1.0.2/src/hexter.c0000644000076400007640000005356612041435751012215 00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2012 Sean Bolton and others. * * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * Portions of this file may have come from Chris Cannam and Steve * Harris's public domain DSSI example code. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include "hexter_types.h" #include "hexter.h" #include "hexter_synth.h" #include "dx7_voice.h" #include "dx7_voice_data.h" hexter_synth_t hexter_synth; static LADSPA_Descriptor *hexter_LADSPA_descriptor = NULL; static DSSI_Descriptor *hexter_DSSI_descriptor = NULL; static void hexter_cleanup(LADSPA_Handle instance); static void hexter_run_multiple_synths(unsigned long instance_count, LADSPA_Handle *handles, unsigned long sample_count, snd_seq_event_t **events, unsigned long *event_counts); /* ---- mutual exclusion ---- */ static inline int dssp_voicelist_mutex_trylock(void) { int rc; /* Attempt the mutex lock */ rc = pthread_mutex_trylock(&hexter_synth.mutex); if (rc) { hexter_synth.mutex_grab_failed = 1; return rc; } /* Clean up if a previous mutex grab failed */ if (hexter_synth.mutex_grab_failed) { hexter_synth_all_voices_off(); hexter_synth.mutex_grab_failed = 0; } return 0; } inline int dssp_voicelist_mutex_lock(void) { return pthread_mutex_lock(&hexter_synth.mutex); } inline int dssp_voicelist_mutex_unlock(void) { return pthread_mutex_unlock(&hexter_synth.mutex); } /* ---- LADSPA interface ---- */ /* * hexter_instantiate * * implements LADSPA (*instantiate)() */ static LADSPA_Handle hexter_instantiate(const LADSPA_Descriptor *descriptor, unsigned long sample_rate) { hexter_instance_t *instance; int i; if (!hexter_synth.initialized) { hexter_synth.instance_count = 0; hexter_synth.instances = NULL; hexter_synth.nugget_remains = 0; hexter_synth.note_id = 0; hexter_synth.global_polyphony = HEXTER_DEFAULT_POLYPHONY; for (i = 0; i < HEXTER_MAX_POLYPHONY; i++) { hexter_synth.voice[i] = dx7_voice_new(); if (!hexter_synth.voice[i]) { DEBUG_MESSAGE(-1, " hexter_instantiate: out of memory!\n"); hexter_cleanup(NULL); return NULL; } } hexter_synth.initialized = 1; } instance = (hexter_instance_t *)calloc(1, sizeof(hexter_instance_t)); if (!instance) { hexter_cleanup(NULL); return NULL; } instance->next = hexter_synth.instances; hexter_synth.instances = instance; hexter_synth.instance_count++; /* do any per-instance one-time initialization here */ pthread_mutex_init(&instance->patches_mutex, NULL); if (!(instance->patches = (dx7_patch_t *)malloc(128 * DX7_VOICE_SIZE_PACKED))) { DEBUG_MESSAGE(-1, " hexter_instantiate: out of memory!\n"); hexter_cleanup(instance); return NULL; } instance->sample_rate = (float)sample_rate; dx7_eg_init_constants(instance); /* depends on sample rate */ instance->polyphony = HEXTER_DEFAULT_POLYPHONY; instance->monophonic = DSSP_MONO_MODE_OFF; instance->max_voices = instance->polyphony; instance->current_voices = 0; instance->last_key = 0; instance->pending_program_change = -1; instance->current_program = 0; instance->overlay_program = -1; hexter_data_performance_init(instance->performance_buffer); hexter_data_patches_init(instance->patches); hexter_instance_select_program(instance, 0, 0); hexter_instance_init_controls(instance); return (LADSPA_Handle)instance; } /* * hexter_connect_port * * implements LADSPA (*connect_port)() */ static void hexter_connect_port(LADSPA_Handle handle, unsigned long port, LADSPA_Data *data) { hexter_instance_t *instance = (hexter_instance_t *)handle; switch (port) { case HEXTER_PORT_OUTPUT: instance->output = data; break; case HEXTER_PORT_TUNING: instance->tuning = data; break; case HEXTER_PORT_VOLUME: instance->volume = data; break; default: break; } } /* * hexter_activate * * implements LADSPA (*activate)() */ static void hexter_activate(LADSPA_Handle handle) { hexter_instance_t *instance = (hexter_instance_t *)handle; hexter_instance_all_voices_off(instance); /* stop all sounds immediately */ instance->current_voices = 0; dx7_lfo_reset(instance); } /* * hexter_ladspa_run * * null implementation of LADSPA (*run)(): since we don't yet support * run_synth(), we just return immediately. */ static void hexter_ladspa_run(LADSPA_Handle instance, unsigned long sample_count) { /* hexter_run_synth(instance, sample_count, NULL, 0); */ return; } // optional: // void (*run_adding)(LADSPA_Handle Instance, // unsigned long SampleCount); // void (*set_run_adding_gain)(LADSPA_Handle Instance, // LADSPA_Data Gain); /* * hexter_deactivate * * implements LADSPA (*deactivate)() */ void hexter_deactivate(LADSPA_Handle handle) { hexter_instance_t *instance = (hexter_instance_t *)handle; hexter_instance_all_voices_off(instance); /* stop all sounds immediately */ } /* * hexter_cleanup * * implements LADSPA (*cleanup)() */ static void hexter_cleanup(LADSPA_Handle handle) { hexter_instance_t *instance = (hexter_instance_t *)handle; int i; if (instance) { hexter_instance_t *inst, *prev; hexter_deactivate(instance); if (instance->patches) free(instance->patches); free(instance); prev = NULL; for (inst = hexter_synth.instances; inst; inst = inst->next) { if (inst == instance) { if (prev) prev->next = inst->next; else hexter_synth.instances = inst->next; break; } prev = inst; } hexter_synth.instance_count--; } if (!hexter_synth.instance_count && hexter_synth.initialized) { for (i = 0; i < HEXTER_MAX_POLYPHONY; i++) { if (hexter_synth.voice[i]) { free(hexter_synth.voice[i]); hexter_synth.voice[i] = NULL; } } hexter_synth.initialized = 0; } } /* ---- DSSI interface ---- */ /* * hexter_configure * * implements DSSI (*configure)() */ char * hexter_configure(LADSPA_Handle handle, const char *key, const char *value) { hexter_instance_t *instance = (hexter_instance_t *)handle; DEBUG_MESSAGE(DB_DSSI, " hexter_configure called with '%s' and '%s'\n", key, value); if (strlen(key) == 8 && !strncmp(key, "patches", 7)) { return hexter_instance_handle_patches(instance, key, value); } else if (!strcmp(key, "edit_buffer")) { return hexter_instance_handle_edit_buffer(instance, value); } else if (!strcmp(key, "performance")) { /* global performance parameters */ return hexter_instance_handle_performance(instance, value); } else if (!strcmp(key, "monophonic")) { return hexter_instance_handle_monophonic(instance, value); } else if (!strcmp(key, "polyphony")) { return hexter_instance_handle_polyphony(instance, value); #ifdef DSSI_GLOBAL_CONFIGURE_PREFIX } else if (!strcmp(key, DSSI_GLOBAL_CONFIGURE_PREFIX "polyphony")) { #else } else if (!strcmp(key, "global_polyphony")) { #endif return hexter_synth_handle_global_polyphony(value); #ifdef DSSI_PROJECT_DIRECTORY_KEY } else if (!strcmp(key, DSSI_PROJECT_DIRECTORY_KEY)) { return NULL; /* plugin has no use for project directory key, ignore it */ #endif } return strdup("error: unrecognized configure key"); } /* * hexter_get_program * * implements DSSI (*get_program)() */ const DSSI_Program_Descriptor * hexter_get_program(LADSPA_Handle handle, unsigned long index) { hexter_instance_t *instance = (hexter_instance_t *)handle; static DSSI_Program_Descriptor pd; DEBUG_MESSAGE(DB_DSSI, " hexter_get_program called with %lu\n", index); if (index < 128) { hexter_instance_set_program_descriptor(instance, &pd, 0, index); return &pd; } return NULL; } /* * hexter_select_program * * implements DSSI (*select_program)() */ void hexter_select_program(LADSPA_Handle handle, unsigned long bank, unsigned long program) { hexter_instance_t *instance = (hexter_instance_t *)handle; DEBUG_MESSAGE(DB_DSSI, " hexter_select_program called with %lu and %lu\n", bank, program); /* ignore invalid program requests */ if (bank || program >= 128) return; /* Attempt the patch mutex, return if lock fails. */ if (pthread_mutex_trylock(&instance->patches_mutex)) { instance->pending_program_change = program; return; } hexter_instance_select_program((hexter_instance_t *)instance, bank, program); pthread_mutex_unlock(&instance->patches_mutex); } /* * hexter_handle_pending_program_change */ static inline void hexter_handle_pending_program_change(hexter_instance_t *instance) { /* Attempt the patch mutex, return if lock fails. */ if (pthread_mutex_trylock(&instance->patches_mutex)) return; hexter_instance_select_program((hexter_instance_t *)instance, 0, instance->pending_program_change); instance->pending_program_change = -1; pthread_mutex_unlock(&instance->patches_mutex); } /* * hexter_get_midi_controller * * implements DSSI (*get_midi_controller_for_port)() */ int hexter_get_midi_controller(LADSPA_Handle handle, unsigned long port) { DEBUG_MESSAGE(DB_DSSI, " hexter_get_midi_controller called for port %lu\n", port); switch (port) { // case EXAMPLE_PORT_VOLUME: // return DSSI_CC(7); default: break; } return DSSI_NONE; } /* * hexter_handle_event */ static inline void hexter_handle_event(hexter_instance_t *instance, snd_seq_event_t *event) { DEBUG_MESSAGE(DB_DSSI, " hexter_handle_event called with event type %d\n", event->type); switch (event->type) { case SND_SEQ_EVENT_NOTEOFF: hexter_instance_note_off(instance, event->data.note.note, event->data.note.velocity); break; case SND_SEQ_EVENT_NOTEON: if (event->data.note.velocity > 0) hexter_instance_note_on(instance, event->data.note.note, event->data.note.velocity); else hexter_instance_note_off(instance, event->data.note.note, 64); /* shouldn't happen, but... */ break; case SND_SEQ_EVENT_KEYPRESS: hexter_instance_key_pressure(instance, event->data.note.note, event->data.note.velocity); break; case SND_SEQ_EVENT_CONTROLLER: hexter_instance_control_change(instance, event->data.control.param, event->data.control.value); break; case SND_SEQ_EVENT_CHANPRESS: hexter_instance_channel_pressure(instance, event->data.control.value); break; case SND_SEQ_EVENT_PITCHBEND: hexter_instance_pitch_bend(instance, event->data.control.value); break; /* SND_SEQ_EVENT_PGMCHANGE - shouldn't happen */ /* SND_SEQ_EVENT_SYSEX - shouldn't happen */ /* SND_SEQ_EVENT_CONTROL14? */ /* SND_SEQ_EVENT_NONREGPARAM? */ /* SND_SEQ_EVENT_REGPARAM? */ default: break; } } // optional: // void (*run_synth)(LADSPA_Handle Instance, // unsigned long SampleCount, // snd_seq_event_t *Events, // unsigned long EventCount); // void (*run_synth_adding)(LADSPA_Handle Instance, // unsigned long SampleCount, // snd_seq_event_t *Events, // unsigned long EventCount); /* * hexter_run_multiple_synths * * implements DSSI (*run_multiple_synths)() */ static void hexter_run_multiple_synths(unsigned long instance_count, LADSPA_Handle *handles, unsigned long sample_count, snd_seq_event_t **events, unsigned long *event_count) { hexter_instance_t **instances = (hexter_instance_t **)handles; unsigned long samples_done = 0; unsigned long event_index[instance_count]; unsigned long this_pending_event_tick; unsigned long next_pending_event_tick; unsigned long burst_size; int i; /* attempt the mutex, return only silence if lock fails. */ if (dssp_voicelist_mutex_trylock()) { for (i = 0; i < instance_count; i++) { memset(instances[i]->output, 0, sizeof(LADSPA_Data) * sample_count); } return; } for (i = 0; i < instance_count; i++) { event_index[i] = 0; /* silence the buffer */ memset(instances[i]->output, 0, sizeof(LADSPA_Data) * sample_count); #if defined(DSSP_DEBUG) && (DSSP_DEBUG & DB_AUDIO) *instances[i]->output += 0.10f; /* add a 'buzz' to output so there's something audible even when quiescent */ #endif /* defined(DSSP_DEBUG) && (DSSP_DEBUG & DB_AUDIO) */ if (instances[i]->pending_program_change > -1) hexter_handle_pending_program_change(instances[i]); } next_pending_event_tick = 0; while (samples_done < sample_count) { if (!hexter_synth.nugget_remains) hexter_synth.nugget_remains = HEXTER_NUGGET_SIZE; /* process any ready events */ while (next_pending_event_tick <= samples_done) { this_pending_event_tick = next_pending_event_tick; next_pending_event_tick = sample_count; for (i = 0; i < instance_count; i++) { while (event_index[i] < event_count[i] && events[i][event_index[i]].time.tick == this_pending_event_tick) { hexter_handle_event(instances[i], &events[i][event_index[i]]); event_index[i]++; } if (event_index[i] < event_count[i] && events[i][event_index[i]].time.tick < next_pending_event_tick) { next_pending_event_tick = events[i][event_index[i]].time.tick; } } } /* calculate the sample count (burst_size) for the next * hexter_synth_render_voices() call to be the smallest of: * - control calculation quantization size (HEXTER_NUGGET_SIZE, * in samples) * - the number of samples remaining in an already-begun nugget * (hexter_synth.nugget_remains) * - the number of samples left in this run * - the number of samples until the next event is ready */ burst_size = HEXTER_NUGGET_SIZE; if (hexter_synth.nugget_remains < burst_size) { /* we're still in the middle of a nugget, so reduce the burst size * to end when the nugget ends */ burst_size = hexter_synth.nugget_remains; } if (sample_count - samples_done < burst_size) { /* reduce burst size to end at end of this run */ burst_size = sample_count - samples_done; } else if (next_pending_event_tick - samples_done < burst_size) { /* reduce burst size to end when next event is ready */ burst_size = next_pending_event_tick - samples_done; } /* render the burst */ hexter_synth_render_voices(samples_done, burst_size, (burst_size == hexter_synth.nugget_remains)); samples_done += burst_size; hexter_synth.nugget_remains -= burst_size; } dssp_voicelist_mutex_unlock(); } // optional: // void (*run_multiple_synths_adding)(unsigned long InstanceCount, // LADSPA_Handle **Instances, // unsigned long SampleCount, // snd_seq_event_t **Events, // unsigned long *EventCounts); /* ---- export ---- */ const LADSPA_Descriptor *ladspa_descriptor(unsigned long index) { switch (index) { case 0: return hexter_LADSPA_descriptor; default: return NULL; } } const DSSI_Descriptor *dssi_descriptor(unsigned long index) { switch (index) { case 0: return hexter_DSSI_descriptor; default: return NULL; } } #ifdef __GNUC__ __attribute__((constructor)) void init() #else void _init() #endif { char **port_names; LADSPA_PortDescriptor *port_descriptors; LADSPA_PortRangeHint *port_range_hints; DSSP_DEBUG_INIT("hexter.so"); hexter_synth.initialized = 0; pthread_mutex_init(&hexter_synth.mutex, NULL); hexter_synth.mutex_grab_failed = 0; dx7_voice_init_tables(); hexter_LADSPA_descriptor = (LADSPA_Descriptor *) malloc(sizeof(LADSPA_Descriptor)); if (hexter_LADSPA_descriptor) { hexter_LADSPA_descriptor->UniqueID = 2183; hexter_LADSPA_descriptor->Label = "hexter"; hexter_LADSPA_descriptor->Properties = 0; hexter_LADSPA_descriptor->Name = "hexter DX7 emulation (v" VERSION ")"; hexter_LADSPA_descriptor->Maker = "Sean Bolton "; hexter_LADSPA_descriptor->Copyright = "GNU General Public License version 2 or later"; hexter_LADSPA_descriptor->PortCount = HEXTER_PORTS_COUNT; port_descriptors = (LADSPA_PortDescriptor *) calloc(hexter_LADSPA_descriptor->PortCount, sizeof (LADSPA_PortDescriptor)); hexter_LADSPA_descriptor->PortDescriptors = (const LADSPA_PortDescriptor *) port_descriptors; port_range_hints = (LADSPA_PortRangeHint *) calloc(hexter_LADSPA_descriptor->PortCount, sizeof (LADSPA_PortRangeHint)); hexter_LADSPA_descriptor->PortRangeHints = (const LADSPA_PortRangeHint *) port_range_hints; port_names = (char **) calloc(hexter_LADSPA_descriptor->PortCount, sizeof(char *)); hexter_LADSPA_descriptor->PortNames = (const char **) port_names; /* Parameters for Output */ port_descriptors[HEXTER_PORT_OUTPUT] = LADSPA_PORT_OUTPUT | LADSPA_PORT_AUDIO; port_names[HEXTER_PORT_OUTPUT] = "Output"; port_range_hints[HEXTER_PORT_OUTPUT].HintDescriptor = 0; /* Parameters for Tuning */ port_descriptors[HEXTER_PORT_TUNING] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; port_names[HEXTER_PORT_TUNING] = "Tuning"; port_range_hints[HEXTER_PORT_TUNING].HintDescriptor = LADSPA_HINT_DEFAULT_440 | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; port_range_hints[HEXTER_PORT_TUNING].LowerBound = 415.3f; port_range_hints[HEXTER_PORT_TUNING].UpperBound = 466.2f; /* Parameters for Volume */ port_descriptors[HEXTER_PORT_VOLUME] = LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL; port_names[HEXTER_PORT_VOLUME] = "Volume"; port_range_hints[HEXTER_PORT_VOLUME].HintDescriptor = LADSPA_HINT_DEFAULT_0 | LADSPA_HINT_BOUNDED_BELOW | LADSPA_HINT_BOUNDED_ABOVE; port_range_hints[HEXTER_PORT_VOLUME].LowerBound = -70.0f; port_range_hints[HEXTER_PORT_VOLUME].UpperBound = 20.0f; hexter_LADSPA_descriptor->instantiate = hexter_instantiate; hexter_LADSPA_descriptor->connect_port = hexter_connect_port; hexter_LADSPA_descriptor->activate = hexter_activate; hexter_LADSPA_descriptor->run = hexter_ladspa_run; hexter_LADSPA_descriptor->run_adding = NULL; hexter_LADSPA_descriptor->set_run_adding_gain = NULL; hexter_LADSPA_descriptor->deactivate = hexter_deactivate; hexter_LADSPA_descriptor->cleanup = hexter_cleanup; } hexter_DSSI_descriptor = (DSSI_Descriptor *) malloc(sizeof(DSSI_Descriptor)); if (hexter_DSSI_descriptor) { hexter_DSSI_descriptor->DSSI_API_Version = 1; hexter_DSSI_descriptor->LADSPA_Plugin = hexter_LADSPA_descriptor; hexter_DSSI_descriptor->configure = hexter_configure; hexter_DSSI_descriptor->get_program = hexter_get_program; hexter_DSSI_descriptor->select_program = hexter_select_program; hexter_DSSI_descriptor->get_midi_controller_for_port = hexter_get_midi_controller; hexter_DSSI_descriptor->run_synth = NULL; hexter_DSSI_descriptor->run_synth_adding = NULL; hexter_DSSI_descriptor->run_multiple_synths = hexter_run_multiple_synths; hexter_DSSI_descriptor->run_multiple_synths_adding = NULL; } } #ifdef __GNUC__ __attribute__((destructor)) void fini() #else void _fini() #endif { if (hexter_LADSPA_descriptor) { free((LADSPA_PortDescriptor *) hexter_LADSPA_descriptor->PortDescriptors); free((char **) hexter_LADSPA_descriptor->PortNames); free((LADSPA_PortRangeHint *) hexter_LADSPA_descriptor->PortRangeHints); free(hexter_LADSPA_descriptor); } if (hexter_DSSI_descriptor) { free(hexter_DSSI_descriptor); } } hexter-1.0.2/src/gui_retro_editor.c0000644000076400007640000010206312042532135014241 00000000000000/* Yamaha DX7 / TX7 Editor/Librarian * * Copyright (C) 1991, 1995, 1997, 1998, 2004, 2009, 2011 Sean Bolton. * * This is a patch editor for the Yamaha DX7 and TX7. It started * out life on my Apple ][+, then I ported it to my Amiga, then to * my MS-DOS machine, then to Linux and ncurses, and most recently * to a simple GTK+ console emulation for integration into the hexter * DSSI soft synth. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #include #include #include #include #include #include "gui_callbacks.h" #include "gui_interface.h" #include "gui_patch_edit.h" #include "gui_retro_console.h" GtkWidget *retro_widget; /* ==== Console ==== */ #define CONSOLE_WIDTH 74 #define CONSOLE_HEIGHT 21 enum textcolor {COLOR_MSG = 1, COLOR_LABEL, COLOR_DATA, COLOR_BLOCK, COLOR_CURSOR, COLOR_BCURSOR, COLOR_OPON = COLOR_LABEL, COLOR_OPOFF = COLOR_MSG }; /* ==== VoiceEdit ==== */ static int re_Cursor = 0; static int re_OpSelect = 63; #define vptName 1 /* not used in hexter */ #define vpt0_99 2 #define vpt0_7 3 #define vptMode 4 /* R,F */ #define vptFC 5 /* 0-31 */ #define vptFF 6 /* 0-99 */ #define vptDetune 7 /* 0-14, as -7-+7 */ #define vpt0_3 8 #define vptAlg 9 /* 0-31, as 1-32 */ #define vptCurve 10 /* 0-3, scaling curve */ #define vptBkPt 11 /* 0-99, breakpoint */ #define vptTrans 12 /* 0-48, transpose */ #define vptOnOff 13 #define vptWave 14 static unsigned char re_parm_type_max[15] = { 0, 0, 99, 7, 1, 31, 99, 14, 3, 31, 3, 99, 48, 1, 5, }; static struct _reParm { guint8 Type; guint8 Offset; guint8 X; guint8 Y; guint8 Init; /* init voice value */ } reParm[DX7_VOICE_PARAMETERS - 1 /* omitting name */] = { /* T, Off, X, Y, Init */ { 2, 105, 5, 4, 0x62 }, /* O1 R1 */ { 2, 109, 8, 4, 0x63 }, { 2, 106, 12, 4, 0x63 }, { 2, 110, 15, 4, 0x63 }, { 2, 107, 19, 4, 0x63 }, { 2, 111, 22, 4, 0x63 }, { 2, 108, 26, 4, 0x5a }, { 2, 112, 29, 4, 0x00 }, { 3, 118, 33, 4, 0x00 }, /* O1 RS */ { 4, 122, 36, 4, 0x00 }, { 5, 123, 38, 4, 0x01 }, { 6, 124, 41, 4, 0x00 }, { 7, 125, 44, 4, 0x07 }, { 2, 121, 54, 4, 0x63 }, { 3, 120, 58, 4, 0x00 }, { 8, 119, 60, 4, 0x00 }, /* O1 AMS */ { 2, 84, 5, 5, 0x62 }, /* O2 R1 */ { 2, 88, 8, 5, 0x63 }, { 2, 85, 12, 5, 0x63 }, { 2, 89, 15, 5, 0x63 }, { 2, 86, 19, 5, 0x63 }, { 2, 90, 22, 5, 0x63 }, { 2, 87, 26, 5, 0x5a }, { 2, 91, 29, 5, 0x00 }, { 3, 97, 33, 5, 0x00 }, /* O2 RS */ { 4, 101, 36, 5, 0x00 }, { 5, 102, 38, 5, 0x01 }, { 6, 103, 41, 5, 0x00 }, { 7, 104, 44, 5, 0x07 }, { 2, 100, 54, 5, 0x00 }, { 3, 99, 58, 5, 0x00 }, { 8, 98, 60, 5, 0x00 }, /* O2 AMS */ { 2, 63, 5, 6, 0x62 }, /* O3 R1 */ { 2, 67, 8, 6, 0x63 }, { 2, 64, 12, 6, 0x63 }, { 2, 68, 15, 6, 0x63 }, { 2, 65, 19, 6, 0x63 }, { 2, 69, 22, 6, 0x63 }, { 2, 66, 26, 6, 0x5a }, { 2, 70, 29, 6, 0x00 }, { 3, 76, 33, 6, 0x00 }, /* O3 RS */ { 4, 80, 36, 6, 0x00 }, { 5, 81, 38, 6, 0x01 }, { 6, 82, 41, 6, 0x00 }, { 7, 83, 44, 6, 0x07 }, { 2, 79, 54, 6, 0x00 }, { 3, 78, 58, 6, 0x00 }, { 8, 77, 60, 6, 0x00 }, /* O3 AMS */ { 2, 42, 5, 7, 0x62 }, /* O4 R1 */ { 2, 46, 8, 7, 0x63 }, { 2, 43, 12, 7, 0x63 }, { 2, 47, 15, 7, 0x63 }, { 2, 44, 19, 7, 0x63 }, { 2, 48, 22, 7, 0x63 }, { 2, 45, 26, 7, 0x5a }, { 2, 49, 29, 7, 0x00 }, { 3, 55, 33, 7, 0x00 }, /* O4 RS */ { 4, 59, 36, 7, 0x00 }, { 5, 60, 38, 7, 0x01 }, { 6, 61, 41, 7, 0x00 }, { 7, 62, 44, 7, 0x07 }, { 2, 58, 54, 7, 0x00 }, { 3, 57, 58, 7, 0x00 }, { 8, 56, 60, 7, 0x00 }, /* O4 AMS */ { 2, 21, 5, 8, 0x62 }, /* O5 R1 */ { 2, 25, 8, 8, 0x63 }, { 2, 22, 12, 8, 0x63 }, { 2, 26, 15, 8, 0x63 }, { 2, 23, 19, 8, 0x63 }, { 2, 27, 22, 8, 0x63 }, { 2, 24, 26, 8, 0x5a }, { 2, 28, 29, 8, 0x00 }, { 3, 34, 33, 8, 0x00 }, /* O5 RS */ { 4, 38, 36, 8, 0x00 }, { 5, 39, 38, 8, 0x01 }, { 6, 40, 41, 8, 0x00 }, { 7, 41, 44, 8, 0x07 }, { 2, 37, 54, 8, 0x00 }, { 3, 36, 58, 8, 0x00 }, { 8, 35, 60, 8, 0x00 }, /* O5 AMS */ { 2, 0, 5, 9, 0x62 }, /* O6 R1 */ { 2, 4, 8, 9, 0x63 }, { 2, 1, 12, 9, 0x63 }, { 2, 5, 15, 9, 0x63 }, { 2, 2, 19, 9, 0x63 }, { 2, 6, 22, 9, 0x63 }, { 2, 3, 26, 9, 0x5a }, { 2, 7, 29, 9, 0x00 }, { 3, 13, 33, 9, 0x00 }, /* O6 RS */ { 4, 17, 36, 9, 0x00 }, { 5, 18, 38, 9, 0x01 }, { 6, 19, 41, 9, 0x00 }, { 7, 20, 44, 9, 0x07 }, { 2, 16, 54, 9, 0x00 }, { 3, 15, 58, 9, 0x00 }, { 8, 14, 60, 9, 0x00 }, /* O6 AMS */ { 2, 126, 5, 10, 0x63 }, /* P R1 */ { 2, 130, 8, 10, 0x32 }, { 2, 127, 12, 10, 0x63 }, { 2, 131, 15, 10, 0x32 }, { 2, 128, 19, 10, 0x63 }, { 2, 132, 22, 10, 0x32 }, { 2, 129, 26, 10, 0x63 }, { 2, 133, 29, 10, 0x32 }, { 9, 134, 48, 11, 0x00 }, /* Alg */ { 2, 137, 35, 12, 0x23 }, { 3, 135, 49, 12, 0x00 }, { 10, 116, 5, 13, 0x00 }, /* O1 LC */ { 2, 114, 10, 13, 0x00 }, { 11, 113, 13, 13, 0x00 }, { 10, 117, 18, 13, 0x00 }, { 2, 115, 23, 13, 0x00 }, { 2, 138, 35, 13, 0x00 }, /* Delay */ { 12, 144, 46, 13, 0x18 }, { 10, 95, 5, 14, 0x00 }, /* O2 LC */ { 2, 93, 10, 14, 0x00 }, { 11, 92, 13, 14, 0x00 }, { 10, 96, 18, 14, 0x00 }, { 2, 94, 23, 14, 0x00 }, { 2, 139, 35, 14, 0x00 }, /* PMD */ { 13, 136, 47, 14, 0x01 }, { 10, 74, 5, 15, 0x00 }, /* O3 LC */ { 2, 72, 10, 15, 0x00 }, { 11, 71, 13, 15, 0x00 }, { 10, 75, 18, 15, 0x00 }, { 2, 73, 23, 15, 0x00 }, { 2, 140, 35, 15, 0x00 }, /* AMD */ { 10, 53, 5, 16, 0x00 }, /* O4 LC */ { 2, 51, 10, 16, 0x00 }, { 11, 50, 13, 16, 0x00 }, { 10, 54, 18, 16, 0x00 }, { 2, 52, 23, 16, 0x00 }, { 13, 141, 34, 16, 0x01 }, /* Sync */ { 10, 32, 5, 17, 0x00 }, /* O5 LC */ { 2, 30, 10, 17, 0x00 }, { 11, 29, 13, 17, 0x00 }, { 10, 33, 18, 17, 0x00 }, { 2, 31, 23, 17, 0x00 }, { 14, 142, 34, 17, 0x00 }, /* Wave */ { 10, 11, 5, 18, 0x00 }, /* O6 LC */ { 2, 9, 10, 18, 0x00 }, { 11, 8, 13, 18, 0x00 }, { 10, 12, 18, 18, 0x00 }, { 2, 10, 23, 18, 0x00 }, { 3, 143, 36, 18, 0x03 } /* PMS */ }; /* These should be the largest possible horizontal and vertical span of * parameter cursor positions, respectively. If cursor motion wrap around * is not working like it should, check these. */ #define VOICEPARMS_X_SPAN 55 #define VOICEPARMS_Y_SPAN 14 /* ==== Algorithm ==== */ static char *veAlg[32] = { /* 32 algs, max 9 high and 17 wide */ " '`\n" /* 1 */ " 6/\n" " |\n" " 5\n" " |\n" "2 4\n" "| |\n" "1 3\n" "L--/", "\n" /* 2 */ " 6\n" " |\n" " 5\n" "'` |\n" "2/ 4\n" "| |\n" "1 3\n" "L--/", " '`\n" /* 3 */ "3 6/\n" "| |\n" "2 5\n" "| |\n" "1 4\n" "L--/", " '`\n" /* 4 */ "3 6|\n" "| ||\n" "2 5|\n" "| ||\n" "1 4/\n" "L--/", " '`\n" /* 5 */ "2 4 6/\n" "| | |\n" "1 3 5\n" "L--^--/", " '`\n" /* 6 */ "2 4 6|\n" "| | ||\n" "1 3 5/\n" "L--^--/", " '`\n" /* 7 */ " 6/\n" " |\n" "2 4 5\n" "| }--/\n" "1 3\n" "L--/", "\n" /* 8 */ " 6\n" " '` |\n" "2 4/ 5\n" "| }--/\n" "1 3\n" "L--/", "\n" /* 9 */ " 6\n" "'` |\n" "2/ 4 5\n" "| }--/\n" "1 3\n" "L--/", "'`\n" /* 10 */ "3/\n" "|\n" "2 5 6\n" "| }--/\n" "1 4\n" "L--/", "\n" /* 11 */ "3\n" "| '`\n" "2 5 6/\n" "| }--/\n" "1 4\n" "L--/", "'`\n" /* 12 */ "2/ 4 5 6\n" "| L--+--/\n" "1 3\n" "L-----/", " '`\n" /* 13 */ "2 4 5 6/\n" /* 13 */ "| L--+--/\n" "1 3\n" "L-----/", " '`\n" /* 14 */ " 5 6/\n" " }--/\n" "2 4\n" "| |\n" "1 3\n" "L--/", "\n" /* 15 */ " 5 6\n" "'` }--/\n" "2/ 4\n" "| |\n" "1 3\n" "L--/", " '`\n" /* 16 */ " 4 6/\n" " | |\n" "2 3 5\n" "L--+--/\n" " 1", "\n" /* 17 */ " 4 6\n" "'` | |\n" "2/ 3 5\n" "L--+--/\n" " 1", " 6\n" /* 18 */ " |\n" " 5\n" " '` |\n" "2 3/ 4\n" "L--+--/\n" " 1", "3\n" /* 19 */ "| '`\n" "2 6/\n" "| }--`\n" "1 4 5\n" "L--^--/", "'`\n" /* 20 */ "3/ 5 6\n" "}--` }--/\n" "1 2 4\n" "L--^--/", "'`\n" /* 21 */ "3/ 6\n" "}--` }--`\n" "1 2 4 5\n" "L--^--^--/", " '`\n" /* 22 */ "2 6/\n" "| '--+--`\n" "1 3 4 5\n" "L--^--^--/", " '`\n" /* 23 */ " 3 6/\n" " | }--`\n" "1 2 4 5\n" "L--^--^--/", " '`\n" /* 24 */ " 6/\n" " '--+--`\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`\n" /* 25 */ " 6/\n" " }--`\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`\n" /* 26 */ " 3 5 6/\n" " | }--/\n" "1 2 4\n" "L--^--/", " '`\n" /* 27 */ " 3/ 5 6\n" " | }--/\n" "1 2 4\n" "L--^--/", " '`\n" /* 28 */ " 5/\n" " |\n" "2 4\n" "| |\n" "1 3 6\n" "L--^--/", " '`\n" /* 29 */ " 4 6/\n" " | |\n" "1 2 3 5\n" "L--^--^--/", " '`\n" /* 30 */ " 5/\n" " |\n" " 4\n" " |\n" "1 2 3 6\n" "L--^--^--/", " '`\n" " 6/\n" /* 31 */ " |\n" "1 2 3 4 5\n" "L--^--^--^--/", " '`" /* 32 */ "1 2 3 4 5 6/" "L--^--^--^--^--/", }; /* ==== Console Routines ==== */ static void cerase(void) { rc_console_erase(); } static void cmove(int y, int x) { rc_console_move(y, x); } static void cprintf(const char *fmt, ...) { va_list ap; char tbuf[512]; va_start(ap, fmt); (void) vsnprintf(tbuf, 512, fmt, ap); va_end(ap); rc_console_addstr(tbuf); } static void cputch(int c) { rc_console_addch(c); } static void csetcolor(enum textcolor c) { rc_console_set_color_pair(c); } //- void clrtoeol(void) { ; } // -FIX- //- //- void //- paktc(void) //- { //- csetcolor(COLOR_MSG); //- cprintf(" Press Any Key to Continue... "); //- csetcolor(COLOR_DATA); //- //x cgetch(); //- cprintf("\r"); //- clrtoeol(); //- } //- //- static void //- gotomsg(void) //- { //- cmove(LibRows + 4, 2); //- } /* ==== VoiceEdit Stuff ==== */ void ve_ShowAlg(void) { int alg = patch_edit_get_edit_parameter(134), x, y; char *s = veAlg[alg]; int t; csetcolor(COLOR_LABEL); for (y = 11; y <= 19; y++) { x = 56; cmove(y, x); for (; x <= 72; x++) { switch (*s) { case '1': t = (!!(re_OpSelect&32)); goto printop; case '2': t = (!!(re_OpSelect&16)); goto printop; case '3': t = (!!(re_OpSelect& 8)); goto printop; case '4': t = (!!(re_OpSelect& 4)); goto printop; case '5': t = (!!(re_OpSelect& 2)); goto printop; case '6': t = (!!(re_OpSelect& 1)); printop: csetcolor(t ? COLOR_OPON : COLOR_OPOFF); cputch(*s++); csetcolor(COLOR_LABEL); break; case 0: cputch(' '); break; case '\n': cputch(' '); if (x == 72) s++; break; case '^': #define ACS_BTEE 151 /* '^' */ #define ACS_HLINE 146 /* '-' */ #define ACS_LLCORNER 142 /* 'L' */ #define ACS_LRCORNER 139 /* '/' */ #define ACS_LTEE 149 /* '}' */ #define ACS_PLUS 143 /* '+' */ #define ACS_ULCORNER 141 /* '/' */ #define ACS_URCORNER 140 /* '\\' */ #define ACS_VLINE 153 /* '|' */ cputch(ACS_BTEE); s++; break; case '-': cputch(ACS_HLINE); s++; break; case 'L': cputch(ACS_LLCORNER); s++; break; case '/': cputch(ACS_LRCORNER); s++; break; case '}': cputch(ACS_LTEE); s++; break; case '+': cputch(ACS_PLUS); s++; break; /* case '?': * cputch(ACS_RTEE); s++; * break; * case '?': * cputch(ACS_TTEE); s++; * break; */ case '\'': cputch(ACS_ULCORNER); s++; break; case '`': cputch(ACS_URCORNER); s++; break; case '|': cputch(ACS_VLINE); s++; break; default: cputch(*s++); break; } } } csetcolor(COLOR_DATA); } void ve_FExtend(guint8 fc, guint8 ff, guint8 mode, guint8 y) { unsigned long f; char ca[10]; csetcolor(COLOR_LABEL); cmove(y, 47); if (mode) { /* fixed */ f = peFFF[ff]; switch (fc & 3) { case 1: f *= 10; break; case 2: f *= 100; break; case 3: f *= 1000; break; } } else { f = fc * 10; if (!f) f = 5; f = (100 + ff) * f; } f = sprintf(ca, "%ld", f); switch (f) { case 3: cprintf("0.%.3s", ca); break; case 4: cprintf("%.1s.%.3s", ca, ca + 1); break; case 5: cprintf("%.2s.%.2s", ca, ca + 2); break; case 6: cprintf("%.3s.%.1s", ca, ca + 3); break; case 7: cprintf("%.4s.", ca); break; } csetcolor(COLOR_DATA); } static void re_printParm(int parm) { unsigned char val = patch_edit_get_edit_parameter(reParm[parm].Offset), c; char *t; cmove(reParm[parm].Y, reParm[parm].X); if (parm == re_Cursor) csetcolor(COLOR_CURSOR); switch (reParm[parm].Type) { case vpt0_99: if (val > 99) cprintf("??"); else cprintf("%2.2d", val); break; case vpt0_7: if (val > 7) cputch('?'); else cputch(val+'0'); break; case vptMode: switch (val) { case 0: c = 'R'; break; case 1: c = 'F'; break; default: c = '?'; break; } cputch(c); ve_FExtend(patch_edit_get_edit_parameter(reParm[parm+1].Offset), patch_edit_get_edit_parameter(reParm[parm+2].Offset), val, reParm[parm].Y); break; case vptFC: if (val > 31) cprintf("??"); else cprintf("%2d", val); ve_FExtend(val, patch_edit_get_edit_parameter(reParm[parm+1].Offset), patch_edit_get_edit_parameter(reParm[parm-1].Offset), reParm[parm].Y); break; case vptFF: if (val > 99) cprintf("??"); else cprintf("%2d", val); ve_FExtend(patch_edit_get_edit_parameter(reParm[parm-1].Offset), val, patch_edit_get_edit_parameter(reParm[parm-2].Offset), reParm[parm].Y); break; case vptDetune: /* 0-14, as -7-+7 */ if (val > 14) cprintf("??"); else cprintf("%+2d", val-7); break; case vpt0_3: if (val > 3) cputch('?'); else cputch(val+'0'); break; case vptAlg: /* 0-31, as 1-32 */ if (val > 31) { cprintf("??"); break; } cprintf("%2d", val+1); ve_ShowAlg(); return; case vptCurve: switch (val) { case 0: t = "-Lin"; break; case 1: t = "-Exp"; break; case 2: t = "+Exp"; break; case 3: t = "+Lin"; break; default: t = "????"; } cprintf("%s", t); break; case vptBkPt: if (val > 99) { cprintf("????"); break; } val += 21; goto printnote; case vptTrans: if (val > 48) { cprintf("????"); break; } val += 36; printnote: cprintf("%s", patch_edit_NoteText(val)); break; case vptOnOff: switch (val) { case 0: t = "Off"; break; case 1: t = " On"; break; default: t = "???"; } cprintf("%s", t); break; case vptWave: switch (val) { case 0: t = "TRI"; break; case 1: t = "SW-"; break; case 2: t = "SW+"; break; case 3: t = "SQU"; break; case 4: t = "SIN"; break; case 5: t = "S/H"; break; default: t = "???"; break; } cprintf("%s", t); break; } if (parm == re_Cursor) csetcolor(COLOR_DATA); } static void re_SetScreen(void) { csetcolor(COLOR_DATA); cerase(); cprintf(" TX/Edit Voice Edit\n"); csetcolor(COLOR_LABEL); cprintf(" A\n" " O R V M\n" " P R1 L1 R2 L2 R3 L3 R4 L4 S M FC FF D Freq. OL S S\n"); cprintf(" 1\n" " 2\n" " 3\n" " 4\n" " 5\n" " 6\n" " P\n"); cprintf(" Alg.\n" " Left BkPt Right Speed Fdbk\n"); cprintf(" 1 Delay C4=\n"); cprintf(" 2 PMD OKS\n"); cprintf(" 3 AMD\n"); cprintf(" 4 Sync\n"); cprintf(" 5 Wave\n"); cprintf(" 6 PMS\n"); csetcolor(COLOR_DATA); } static void re_on_adj_changed(GtkAdjustment *shadow_adj, gpointer data); /* forward */ static void re_set_edit_parameter(int offset, int val) { if (offset < 0 || offset >= DX7_VOICE_PARAMETERS - 1 /* omitting name */) return; /* temporarily block reverse signal, then update the adjustment */ g_signal_handlers_block_by_func(G_OBJECT(edit_adj[offset]), re_on_adj_changed, (gpointer)offset); gtk_adjustment_set_value(GTK_ADJUSTMENT(edit_adj[offset]), (float)val); g_signal_handlers_unblock_by_func(G_OBJECT(edit_adj[offset]), re_on_adj_changed, (gpointer)offset); } static void re_Inc(int parm) { unsigned char val = patch_edit_get_edit_parameter(reParm[parm].Offset), max; max = re_parm_type_max[reParm[parm].Type]; if (!max) return; if (++val > max) val = 0; re_set_edit_parameter(reParm[parm].Offset, val); re_printParm(parm); } static void re_Dec(int parm) { unsigned char val = patch_edit_get_edit_parameter(reParm[parm].Offset), max; max = re_parm_type_max[reParm[parm].Type]; if (!max) return; if (val) val--; else val = max; re_set_edit_parameter(reParm[parm].Offset, val); re_printParm(parm); } static void re_Zero(void) { guint8 offset = reParm[re_Cursor].Offset; re_set_edit_parameter(offset, reParm[re_Cursor].Init); re_printParm(re_Cursor); } static void re_CurUp(void) { int oldcursor = re_Cursor; int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'up' direction */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { dx = abs(reParm[re_Cursor].X - reParm[i].X); dy = (reParm[re_Cursor].Y - 1) - reParm[i].Y; if (dy < 0) dy += VOICEPARMS_Y_SPAN + 2; /* wrap */ dy = dy * 5 / 2; /* prefer something <2.5 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { re_Cursor = best; re_printParm(oldcursor); re_printParm(re_Cursor); } } static void re_CurDown(void) { int oldcursor = re_Cursor; int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'down' direction */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { dx = abs(reParm[i].X - reParm[re_Cursor].X); dy = reParm[i].Y - (reParm[re_Cursor].Y + 1); if (dy < 0) dy += VOICEPARMS_Y_SPAN + 2; /* wrap */ dy = dy * 5 / 2; /* prefer something <2.5 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { re_Cursor = best; re_printParm(oldcursor); re_printParm(re_Cursor); } } static void re_CurRight(void) { int oldcursor = re_Cursor; int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'right' direction */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { dx = reParm[i].X - (reParm[re_Cursor].X + 2); if (dx < 0) dx += VOICEPARMS_X_SPAN + 4; /* wrap */ dy = abs(reParm[i].Y - reParm[re_Cursor].Y); dy = dy * 12; /* prefer something <12 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { re_Cursor = best; re_printParm(oldcursor); re_printParm(re_Cursor); } } static void re_CurLeft(void) { int oldcursor = re_Cursor; int i, dx, dy, distance, best = -1, bestdistance = 1000; /* try to find the closest parm in the 'left' direction */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { dx = (reParm[re_Cursor].X - 2) - reParm[i].X; if (dx < 0) dx += VOICEPARMS_X_SPAN + 4; /* wrap */ dy = abs(reParm[i].Y - reParm[re_Cursor].Y); dy = dy * 12; /* prefer something <12 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { re_Cursor = best; re_printParm(oldcursor); re_printParm(re_Cursor); } } //- void //- ve_Erase(void) //- { //- memcpy(SingleData, InitVoiceUnpacked, VSIZEUNPACKED); //- // ve_SetScreen(); //- ve_DoScreen(); //- //+ refresh(); //- //+ PutUnpacked(); //- } //+ void //+ ve_PgUp(void) //+ { //+ if (Voice_Cursor) { //+ Pack(Voice_Cursor); //+ Unpack(--Voice_Cursor); //+ ve_DoScreen(); //+ refresh(); //+ PutUnpacked(); //+ } //+ } //+ void //+ ve_PgDn(void) //+ { //+ if (Voice_Cursor < Voices - 1) { //+ Pack(Voice_Cursor); //+ Unpack(++Voice_Cursor); //+ ve_DoScreen(); //+ refresh(); //+ PutUnpacked(); //+ } //+ } static void _re_SetOps(void) { //+ guint8 bd[7]; //+ //+ bd[0] = 0xF0; //+ bd[1] = 0x43; //+ bd[2] = 0x10 | TXChannel; //+ bd[3] = 1; //+ bd[4] = 27; //+ bd[5] = re_OpSelect; //+ bd[6] = 0xF7; //+ PutMidiMsg(bd, 7); } static void re_SetOps(int o) { //- guint8 i; //- //- re_OpSelect ^= o; //- for (i = 1; i < 7; i++) { //- if (re_OpSelect & (1 << (6 - i))) //- csetcolor(COLOR_OPON); //- else //- csetcolor(COLOR_OPOFF); //- cmove(3 + i, 2); //- cprintf("%c", i + '0'); //- cmove(12 + i, 2); //- cprintf("%c", i + '0'); //- } //- /* csetcolor(COLOR_DATA); not needed with ve_ShowAlg() */ //- ve_ShowAlg(); _re_SetOps(); } static void re_Number(int c) { unsigned char val = patch_edit_get_edit_parameter(reParm[re_Cursor].Offset), typ = reParm[re_Cursor].Type, max = re_parm_type_max[typ]; switch(typ) { case vpt0_99: case vptFF: val=(val * 10 + c - '0') % 100; break; case vptFC: val=(val * 10 + c - '0') % 100; for(; val > 31; val -= 10); break; case vpt0_7: case vpt0_3: val=c - '0'; if(val > max) val = max; break; case vptAlg: val=((val + 1) * 10 + c - '0') % 100; if (!val) val = 1; for(; val > 32; val -= 10); val--; break; default: return; } re_set_edit_parameter(reParm[re_Cursor].Offset, val); re_printParm(re_Cursor); } //+ void //+ ve_Help(void) //+ { //+ erase(); //+ cprintf(" TX/Edit v" VERSIONSTRING " Voice Edit Help\n\n"); //+ //+ cprintf(" Up / Down /\n" //+ " Right / Left - Move cursor\n\n"); //+ //+ cprintf(" + - Increment field\n" //+ " - - Decrement field\n" //+ " 0 through 9 - Enter data into field\n" //+ " Backspace - Zero/reset field\n\n"); //+ //+ cprintf(" A through Z - Rotate letters into name (name field only)\n\n" //+ //+ " F1 through F6 - Enable/disable operators 1 through 6\n\n"); //+ //+ cprintf(" Meta-P - Put edit buffer as single voice\n" //+ " Meta-! - Erase edit buffer to init voice\n" //+ " PgUp / PgDn - Move to previous / next voice\n" //+ //+ " Esc / Meta-L - Return to librarian mode\n\n" //+ //+ " h / Meta-H - Display this help screen\n\n"); //+ //+ paktc(); //+ ve_SetScreen(); //+ ve_DoScreen(); //+ } void re_ButtonPress(guint button, guint x, guint y) { int oldcursor = re_Cursor; int i, dx, dy, distance, best, bestdistance; /* GUIDB_MESSAGE(DB_GUI, " re_ButtonPress: button %u @ %u, %u\n", button, x, y); */ //- /* check for operator (un)mute */ // -FIX- hard-coded screen locations! //- if (x == 2 && (y >= 4 && y <= 9)) { //- ve_SetOps(32 >> (y - 4)); //- return; //- } else if (x == 2 && (y >= 13 && y <= 18)) { //- ve_SetOps(32 >> (y - 13)); //- return; //- } //- // -FIX- algorithm ops! /* try to find the closest parm */ best = -1; bestdistance = 1000; for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { dx = abs(x - reParm[i].X); dy = abs(y - reParm[i].Y); dy = dy * 5 / 2; /* prefer something <2.5 spaces away horizontally to 1 space vertically */ distance = dx + dy; if (bestdistance > distance) { bestdistance = distance; best = i; } } if (best >= 0) { re_Cursor = best; re_printParm(oldcursor); re_printParm(re_Cursor); } } void re_CharIn(gboolean pressed, guint c, guint state) { /* GUIDB_MESSAGE(DB_GUI, " re_ButtonPress: button %u @ %u, %u\n", button, x, y); */ /* if (c < 127) { * GUIDB_MESSAGE(DB_GUI, " re_CharIn: read char '%c'\n", (char)c); * } else { * GUIDB_MESSAGE(DB_GUI, " re_CharIn: read char %08x\n", c); * } */ if (!pressed) { /* key release */ if (c == ' ') { /* turn off test note */ on_test_note_button_press(NULL, (gpointer)0); } return; } if(c >= 'A' && c <= 'Z') c = tolower(c); switch(c) { case '+': case '=': re_Inc(re_Cursor); break; case '-': re_Dec(re_Cursor); break; case GDK_BackSpace: case GDK_Delete: re_Zero(); break; case GDK_Up: re_CurUp(); break; case GDK_Down: re_CurDown(); break; case GDK_Tab: case GDK_Right: re_CurRight(); break; case GDK_ISO_Left_Tab: case GDK_Left: re_CurLeft(); break; case GDK_F1: re_SetOps(32); break; case GDK_F2: re_SetOps(16); break; case GDK_F3: re_SetOps( 8); break; case GDK_F4: re_SetOps( 4); break; case GDK_F5: re_SetOps( 2); break; case GDK_F6: re_SetOps( 1); break; //+ case KEY_PPAGE: re_PgUp(); break; //+ case KEY_NPAGE: re_PgDn(); break; //+ case KEY_METAP: PutUnpacked(); break; //k case KEY_METAEX: re_Erase(); break; //k case KEY_METAH: //+ case 'h': re_Help(); break; case ' ': /* turn on test note */ on_test_note_button_press(NULL, (gpointer)1); break; default: if(c>='0' && c<='9') { re_Number(c); //- } else { //- gotomsg(); //- cprintf(" Type for help..."); //- #ifdef DEBUG //- cprintf("keycode=0x%04x", c); //- #endif } break; } } static void re_on_adj_changed(GtkAdjustment *shadow_adj, gpointer data) { int offset = (int)data; int i; /* GUIDB_MESSAGE(DB_GUI, " re_on_adj_changed: offset %d\n", offset); */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { if (reParm[i].Offset == offset) { re_printParm(i); return; } } } /* ==== Instantiation ==== */ GtkWidget * create_retro_editor(const char *tag) { int i; retro_console_init(CONSOLE_WIDTH, CONSOLE_HEIGHT); // -FIX- white on yellow! rc_console_init_color_pair(COLOR_MSG, RC_COLOR_WHITE, RC_COLOR_YELLOW); /* also COLOR_OPOFF */ rc_console_init_color_pair(COLOR_LABEL, RC_COLOR_GREEN, RC_COLOR_BLUE); /* also COLOR_OPON */ rc_console_init_color_pair(COLOR_DATA, RC_COLOR_WHITE, RC_COLOR_BLUE); rc_console_init_color_pair(COLOR_BLOCK, RC_COLOR_WHITE, RC_COLOR_CYAN); rc_console_init_color_pair(COLOR_CURSOR, RC_COLOR_BLACK, RC_COLOR_YELLOW); rc_console_init_color_pair(COLOR_BCURSOR, RC_COLOR_WHITE, RC_COLOR_GREEN); re_SetScreen(); /* re_DoScreen(); */ rc_console_set_button_press_callback(re_ButtonPress); rc_console_set_key_press_callback(re_CharIn); for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { g_signal_connect(G_OBJECT(edit_adj[i]), "value-changed", G_CALLBACK(re_on_adj_changed), (gpointer)i); } retro_widget = rc_drawing_area; return retro_widget; } hexter-1.0.2/src/Makefile.am0000644000076400007640000000271212045027146012570 00000000000000## Process this file with automake to produce Makefile.in if BUILD_TEXTUI textui_PROGRAMS = hexter_text endif if BUILD_GTKUI gtkui_PROGRAMS = hexter_gtk endif textuidir = $(libdir)/dssi/hexter gtkuidir = $(libdir)/dssi/hexter plugindir = $(libdir)/dssi plugin_LTLIBRARIES = hexter.la hexter_gtk_SOURCES = \ gui_main.c \ bitmap_about.xpm \ dx7_voice_data.c \ dx7_voice_data.h \ dx7_voice_patches.c \ gui_callbacks.c \ gui_callbacks.h \ gui_data.c \ gui_data.h \ gui_images.c \ gui_images.h \ gui_interface.c \ gui_interface.h \ gui_main.h \ gui_midi.c \ gui_midi.h \ gui_patch_edit.c \ gui_patch_edit.h \ gui_retro_console.c \ gui_retro_console.h \ gui_retro_editor.c \ gui_widgy_alg.c \ gui_widgy_editor.c hexter_gtk_CFLAGS = @GTK_CFLAGS@ $(AM_CFLAGS) @ALSA_CFLAGS@ hexter_gtk_LDADD = @GTK_LIBS@ @ALSA_LIBS@ -lm hexter_text_SOURCES = \ ../extra/textui_main.c \ dx7_voice_data.c \ dx7_voice_data.h \ dx7_voice_patches.c \ gui_data.c \ gui_data.h \ gui_main.h \ ../extra/textui_callbacks.c \ ../extra/textui_callbacks.h hexter_text_CFLAGS = $(AM_CFLAGS) @ALSA_CFLAGS@ hexter_text_LDADD = @READLINE_LIBS@ @ALSA_LIBS@ hexter_la_SOURCES = \ hexter.c \ dx7_voice.c \ dx7_voice.h \ dx7_voice_data.c \ dx7_voice_data.h \ dx7_voice_patches.c \ dx7_voice_render.c \ dx7_voice_tables.c \ hexter_synth.c \ hexter_synth.h \ hexter_types.h \ hexter.h hexter_la_LIBADD = -lm hexter_la_LDFLAGS = -module -avoid-version hexter-1.0.2/src/Makefile.in0000644000076400007640000016642512046775663012634 00000000000000# 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, 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ 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 install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @BUILD_TEXTUI_TRUE@textui_PROGRAMS = hexter_text$(EXEEXT) @BUILD_GTKUI_TRUE@gtkui_PROGRAMS = hexter_gtk$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = 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)$(plugindir)" "$(DESTDIR)$(gtkuidir)" \ "$(DESTDIR)$(textuidir)" LTLIBRARIES = $(plugin_LTLIBRARIES) hexter_la_DEPENDENCIES = am_hexter_la_OBJECTS = hexter.lo dx7_voice.lo dx7_voice_data.lo \ dx7_voice_patches.lo dx7_voice_render.lo dx7_voice_tables.lo \ hexter_synth.lo hexter_la_OBJECTS = $(am_hexter_la_OBJECTS) hexter_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(hexter_la_LDFLAGS) $(LDFLAGS) -o $@ PROGRAMS = $(gtkui_PROGRAMS) $(textui_PROGRAMS) am_hexter_gtk_OBJECTS = hexter_gtk-gui_main.$(OBJEXT) \ hexter_gtk-dx7_voice_data.$(OBJEXT) \ hexter_gtk-dx7_voice_patches.$(OBJEXT) \ hexter_gtk-gui_callbacks.$(OBJEXT) \ hexter_gtk-gui_data.$(OBJEXT) hexter_gtk-gui_images.$(OBJEXT) \ hexter_gtk-gui_interface.$(OBJEXT) \ hexter_gtk-gui_midi.$(OBJEXT) \ hexter_gtk-gui_patch_edit.$(OBJEXT) \ hexter_gtk-gui_retro_console.$(OBJEXT) \ hexter_gtk-gui_retro_editor.$(OBJEXT) \ hexter_gtk-gui_widgy_alg.$(OBJEXT) \ hexter_gtk-gui_widgy_editor.$(OBJEXT) hexter_gtk_OBJECTS = $(am_hexter_gtk_OBJECTS) hexter_gtk_DEPENDENCIES = hexter_gtk_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(hexter_gtk_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_hexter_text_OBJECTS = hexter_text-textui_main.$(OBJEXT) \ hexter_text-dx7_voice_data.$(OBJEXT) \ hexter_text-dx7_voice_patches.$(OBJEXT) \ hexter_text-gui_data.$(OBJEXT) \ hexter_text-textui_callbacks.$(OBJEXT) hexter_text_OBJECTS = $(am_hexter_text_OBJECTS) hexter_text_DEPENDENCIES = hexter_text_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(hexter_text_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles 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 = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(hexter_la_SOURCES) $(hexter_gtk_SOURCES) \ $(hexter_text_SOURCES) DIST_SOURCES = $(hexter_la_SOURCES) $(hexter_gtk_SOURCES) \ $(hexter_text_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ 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@ FGREP = @FGREP@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MODULE_CFLAGS = @MODULE_CFLAGS@ MODULE_LIBS = @MODULE_LIBS@ NM = @NM@ NMEDIT = @NMEDIT@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RANLIB = @RANLIB@ READLINE_LIBS = @READLINE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ 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_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@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ textuidir = $(libdir)/dssi/hexter gtkuidir = $(libdir)/dssi/hexter plugindir = $(libdir)/dssi plugin_LTLIBRARIES = hexter.la hexter_gtk_SOURCES = \ gui_main.c \ bitmap_about.xpm \ dx7_voice_data.c \ dx7_voice_data.h \ dx7_voice_patches.c \ gui_callbacks.c \ gui_callbacks.h \ gui_data.c \ gui_data.h \ gui_images.c \ gui_images.h \ gui_interface.c \ gui_interface.h \ gui_main.h \ gui_midi.c \ gui_midi.h \ gui_patch_edit.c \ gui_patch_edit.h \ gui_retro_console.c \ gui_retro_console.h \ gui_retro_editor.c \ gui_widgy_alg.c \ gui_widgy_editor.c hexter_gtk_CFLAGS = @GTK_CFLAGS@ $(AM_CFLAGS) @ALSA_CFLAGS@ hexter_gtk_LDADD = @GTK_LIBS@ @ALSA_LIBS@ -lm hexter_text_SOURCES = \ ../extra/textui_main.c \ dx7_voice_data.c \ dx7_voice_data.h \ dx7_voice_patches.c \ gui_data.c \ gui_data.h \ gui_main.h \ ../extra/textui_callbacks.c \ ../extra/textui_callbacks.h hexter_text_CFLAGS = $(AM_CFLAGS) @ALSA_CFLAGS@ hexter_text_LDADD = @READLINE_LIBS@ @ALSA_LIBS@ hexter_la_SOURCES = \ hexter.c \ dx7_voice.c \ dx7_voice.h \ dx7_voice_data.c \ dx7_voice_data.h \ dx7_voice_patches.c \ dx7_voice_render.c \ dx7_voice_tables.c \ hexter_synth.c \ hexter_synth.h \ hexter_types.h \ hexter.h hexter_la_LIBADD = -lm hexter_la_LDFLAGS = -module -avoid-version all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(plugindir)" || $(MKDIR_P) "$(DESTDIR)$(plugindir)" @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || 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)$(plugindir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ } uninstall-pluginLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ done clean-pluginLTLIBRARIES: -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done hexter.la: $(hexter_la_OBJECTS) $(hexter_la_DEPENDENCIES) $(hexter_la_LINK) -rpath $(plugindir) $(hexter_la_OBJECTS) $(hexter_la_LIBADD) $(LIBS) install-gtkuiPROGRAMS: $(gtkui_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(gtkuidir)" || $(MKDIR_P) "$(DESTDIR)$(gtkuidir)" @list='$(gtkui_PROGRAMS)'; test -n "$(gtkuidir)" || 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)$(gtkuidir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(gtkuidir)$$dir" || exit $$?; \ } \ ; done uninstall-gtkuiPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(gtkui_PROGRAMS)'; test -n "$(gtkuidir)" || 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)$(gtkuidir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(gtkuidir)" && rm -f $$files clean-gtkuiPROGRAMS: @list='$(gtkui_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 install-textuiPROGRAMS: $(textui_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(textuidir)" || $(MKDIR_P) "$(DESTDIR)$(textuidir)" @list='$(textui_PROGRAMS)'; test -n "$(textuidir)" || 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)$(textuidir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(textuidir)$$dir" || exit $$?; \ } \ ; done uninstall-textuiPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(textui_PROGRAMS)'; test -n "$(textuidir)" || 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)$(textuidir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(textuidir)" && rm -f $$files clean-textuiPROGRAMS: @list='$(textui_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 hexter_gtk$(EXEEXT): $(hexter_gtk_OBJECTS) $(hexter_gtk_DEPENDENCIES) @rm -f hexter_gtk$(EXEEXT) $(hexter_gtk_LINK) $(hexter_gtk_OBJECTS) $(hexter_gtk_LDADD) $(LIBS) hexter_text$(EXEEXT): $(hexter_text_OBJECTS) $(hexter_text_DEPENDENCIES) @rm -f hexter_text$(EXEEXT) $(hexter_text_LINK) $(hexter_text_OBJECTS) $(hexter_text_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dx7_voice.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dx7_voice_data.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dx7_voice_patches.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dx7_voice_render.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dx7_voice_tables.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-dx7_voice_data.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-dx7_voice_patches.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_callbacks.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_data.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_images.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_interface.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_midi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_patch_edit.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_retro_console.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_retro_editor.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_widgy_alg.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_gtk-gui_widgy_editor.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_synth.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_text-dx7_voice_data.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_text-dx7_voice_patches.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_text-gui_data.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_text-textui_callbacks.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexter_text-textui_main.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 $@ $< hexter_gtk-gui_main.o: gui_main.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_main.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_main.Tpo -c -o hexter_gtk-gui_main.o `test -f 'gui_main.c' || echo '$(srcdir)/'`gui_main.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_main.Tpo $(DEPDIR)/hexter_gtk-gui_main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_main.c' object='hexter_gtk-gui_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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_main.o `test -f 'gui_main.c' || echo '$(srcdir)/'`gui_main.c hexter_gtk-gui_main.obj: gui_main.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_main.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_main.Tpo -c -o hexter_gtk-gui_main.obj `if test -f 'gui_main.c'; then $(CYGPATH_W) 'gui_main.c'; else $(CYGPATH_W) '$(srcdir)/gui_main.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_main.Tpo $(DEPDIR)/hexter_gtk-gui_main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_main.c' object='hexter_gtk-gui_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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_main.obj `if test -f 'gui_main.c'; then $(CYGPATH_W) 'gui_main.c'; else $(CYGPATH_W) '$(srcdir)/gui_main.c'; fi` hexter_gtk-dx7_voice_data.o: dx7_voice_data.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-dx7_voice_data.o -MD -MP -MF $(DEPDIR)/hexter_gtk-dx7_voice_data.Tpo -c -o hexter_gtk-dx7_voice_data.o `test -f 'dx7_voice_data.c' || echo '$(srcdir)/'`dx7_voice_data.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-dx7_voice_data.Tpo $(DEPDIR)/hexter_gtk-dx7_voice_data.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dx7_voice_data.c' object='hexter_gtk-dx7_voice_data.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-dx7_voice_data.o `test -f 'dx7_voice_data.c' || echo '$(srcdir)/'`dx7_voice_data.c hexter_gtk-dx7_voice_data.obj: dx7_voice_data.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-dx7_voice_data.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-dx7_voice_data.Tpo -c -o hexter_gtk-dx7_voice_data.obj `if test -f 'dx7_voice_data.c'; then $(CYGPATH_W) 'dx7_voice_data.c'; else $(CYGPATH_W) '$(srcdir)/dx7_voice_data.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-dx7_voice_data.Tpo $(DEPDIR)/hexter_gtk-dx7_voice_data.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dx7_voice_data.c' object='hexter_gtk-dx7_voice_data.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-dx7_voice_data.obj `if test -f 'dx7_voice_data.c'; then $(CYGPATH_W) 'dx7_voice_data.c'; else $(CYGPATH_W) '$(srcdir)/dx7_voice_data.c'; fi` hexter_gtk-dx7_voice_patches.o: dx7_voice_patches.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-dx7_voice_patches.o -MD -MP -MF $(DEPDIR)/hexter_gtk-dx7_voice_patches.Tpo -c -o hexter_gtk-dx7_voice_patches.o `test -f 'dx7_voice_patches.c' || echo '$(srcdir)/'`dx7_voice_patches.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-dx7_voice_patches.Tpo $(DEPDIR)/hexter_gtk-dx7_voice_patches.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dx7_voice_patches.c' object='hexter_gtk-dx7_voice_patches.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-dx7_voice_patches.o `test -f 'dx7_voice_patches.c' || echo '$(srcdir)/'`dx7_voice_patches.c hexter_gtk-dx7_voice_patches.obj: dx7_voice_patches.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-dx7_voice_patches.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-dx7_voice_patches.Tpo -c -o hexter_gtk-dx7_voice_patches.obj `if test -f 'dx7_voice_patches.c'; then $(CYGPATH_W) 'dx7_voice_patches.c'; else $(CYGPATH_W) '$(srcdir)/dx7_voice_patches.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-dx7_voice_patches.Tpo $(DEPDIR)/hexter_gtk-dx7_voice_patches.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dx7_voice_patches.c' object='hexter_gtk-dx7_voice_patches.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-dx7_voice_patches.obj `if test -f 'dx7_voice_patches.c'; then $(CYGPATH_W) 'dx7_voice_patches.c'; else $(CYGPATH_W) '$(srcdir)/dx7_voice_patches.c'; fi` hexter_gtk-gui_callbacks.o: gui_callbacks.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_callbacks.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_callbacks.Tpo -c -o hexter_gtk-gui_callbacks.o `test -f 'gui_callbacks.c' || echo '$(srcdir)/'`gui_callbacks.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_callbacks.Tpo $(DEPDIR)/hexter_gtk-gui_callbacks.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_callbacks.c' object='hexter_gtk-gui_callbacks.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_callbacks.o `test -f 'gui_callbacks.c' || echo '$(srcdir)/'`gui_callbacks.c hexter_gtk-gui_callbacks.obj: gui_callbacks.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_callbacks.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_callbacks.Tpo -c -o hexter_gtk-gui_callbacks.obj `if test -f 'gui_callbacks.c'; then $(CYGPATH_W) 'gui_callbacks.c'; else $(CYGPATH_W) '$(srcdir)/gui_callbacks.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_callbacks.Tpo $(DEPDIR)/hexter_gtk-gui_callbacks.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_callbacks.c' object='hexter_gtk-gui_callbacks.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_callbacks.obj `if test -f 'gui_callbacks.c'; then $(CYGPATH_W) 'gui_callbacks.c'; else $(CYGPATH_W) '$(srcdir)/gui_callbacks.c'; fi` hexter_gtk-gui_data.o: gui_data.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_data.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_data.Tpo -c -o hexter_gtk-gui_data.o `test -f 'gui_data.c' || echo '$(srcdir)/'`gui_data.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_data.Tpo $(DEPDIR)/hexter_gtk-gui_data.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_data.c' object='hexter_gtk-gui_data.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_data.o `test -f 'gui_data.c' || echo '$(srcdir)/'`gui_data.c hexter_gtk-gui_data.obj: gui_data.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_data.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_data.Tpo -c -o hexter_gtk-gui_data.obj `if test -f 'gui_data.c'; then $(CYGPATH_W) 'gui_data.c'; else $(CYGPATH_W) '$(srcdir)/gui_data.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_data.Tpo $(DEPDIR)/hexter_gtk-gui_data.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_data.c' object='hexter_gtk-gui_data.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_data.obj `if test -f 'gui_data.c'; then $(CYGPATH_W) 'gui_data.c'; else $(CYGPATH_W) '$(srcdir)/gui_data.c'; fi` hexter_gtk-gui_images.o: gui_images.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_images.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_images.Tpo -c -o hexter_gtk-gui_images.o `test -f 'gui_images.c' || echo '$(srcdir)/'`gui_images.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_images.Tpo $(DEPDIR)/hexter_gtk-gui_images.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_images.c' object='hexter_gtk-gui_images.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_images.o `test -f 'gui_images.c' || echo '$(srcdir)/'`gui_images.c hexter_gtk-gui_images.obj: gui_images.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_images.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_images.Tpo -c -o hexter_gtk-gui_images.obj `if test -f 'gui_images.c'; then $(CYGPATH_W) 'gui_images.c'; else $(CYGPATH_W) '$(srcdir)/gui_images.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_images.Tpo $(DEPDIR)/hexter_gtk-gui_images.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_images.c' object='hexter_gtk-gui_images.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_images.obj `if test -f 'gui_images.c'; then $(CYGPATH_W) 'gui_images.c'; else $(CYGPATH_W) '$(srcdir)/gui_images.c'; fi` hexter_gtk-gui_interface.o: gui_interface.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_interface.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_interface.Tpo -c -o hexter_gtk-gui_interface.o `test -f 'gui_interface.c' || echo '$(srcdir)/'`gui_interface.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_interface.Tpo $(DEPDIR)/hexter_gtk-gui_interface.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_interface.c' object='hexter_gtk-gui_interface.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_interface.o `test -f 'gui_interface.c' || echo '$(srcdir)/'`gui_interface.c hexter_gtk-gui_interface.obj: gui_interface.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_interface.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_interface.Tpo -c -o hexter_gtk-gui_interface.obj `if test -f 'gui_interface.c'; then $(CYGPATH_W) 'gui_interface.c'; else $(CYGPATH_W) '$(srcdir)/gui_interface.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_interface.Tpo $(DEPDIR)/hexter_gtk-gui_interface.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_interface.c' object='hexter_gtk-gui_interface.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_interface.obj `if test -f 'gui_interface.c'; then $(CYGPATH_W) 'gui_interface.c'; else $(CYGPATH_W) '$(srcdir)/gui_interface.c'; fi` hexter_gtk-gui_midi.o: gui_midi.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_midi.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_midi.Tpo -c -o hexter_gtk-gui_midi.o `test -f 'gui_midi.c' || echo '$(srcdir)/'`gui_midi.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_midi.Tpo $(DEPDIR)/hexter_gtk-gui_midi.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_midi.c' object='hexter_gtk-gui_midi.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_midi.o `test -f 'gui_midi.c' || echo '$(srcdir)/'`gui_midi.c hexter_gtk-gui_midi.obj: gui_midi.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_midi.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_midi.Tpo -c -o hexter_gtk-gui_midi.obj `if test -f 'gui_midi.c'; then $(CYGPATH_W) 'gui_midi.c'; else $(CYGPATH_W) '$(srcdir)/gui_midi.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_midi.Tpo $(DEPDIR)/hexter_gtk-gui_midi.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_midi.c' object='hexter_gtk-gui_midi.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_midi.obj `if test -f 'gui_midi.c'; then $(CYGPATH_W) 'gui_midi.c'; else $(CYGPATH_W) '$(srcdir)/gui_midi.c'; fi` hexter_gtk-gui_patch_edit.o: gui_patch_edit.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_patch_edit.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_patch_edit.Tpo -c -o hexter_gtk-gui_patch_edit.o `test -f 'gui_patch_edit.c' || echo '$(srcdir)/'`gui_patch_edit.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_patch_edit.Tpo $(DEPDIR)/hexter_gtk-gui_patch_edit.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_patch_edit.c' object='hexter_gtk-gui_patch_edit.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_patch_edit.o `test -f 'gui_patch_edit.c' || echo '$(srcdir)/'`gui_patch_edit.c hexter_gtk-gui_patch_edit.obj: gui_patch_edit.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_patch_edit.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_patch_edit.Tpo -c -o hexter_gtk-gui_patch_edit.obj `if test -f 'gui_patch_edit.c'; then $(CYGPATH_W) 'gui_patch_edit.c'; else $(CYGPATH_W) '$(srcdir)/gui_patch_edit.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_patch_edit.Tpo $(DEPDIR)/hexter_gtk-gui_patch_edit.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_patch_edit.c' object='hexter_gtk-gui_patch_edit.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_patch_edit.obj `if test -f 'gui_patch_edit.c'; then $(CYGPATH_W) 'gui_patch_edit.c'; else $(CYGPATH_W) '$(srcdir)/gui_patch_edit.c'; fi` hexter_gtk-gui_retro_console.o: gui_retro_console.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_retro_console.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_retro_console.Tpo -c -o hexter_gtk-gui_retro_console.o `test -f 'gui_retro_console.c' || echo '$(srcdir)/'`gui_retro_console.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_retro_console.Tpo $(DEPDIR)/hexter_gtk-gui_retro_console.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_retro_console.c' object='hexter_gtk-gui_retro_console.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_retro_console.o `test -f 'gui_retro_console.c' || echo '$(srcdir)/'`gui_retro_console.c hexter_gtk-gui_retro_console.obj: gui_retro_console.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_retro_console.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_retro_console.Tpo -c -o hexter_gtk-gui_retro_console.obj `if test -f 'gui_retro_console.c'; then $(CYGPATH_W) 'gui_retro_console.c'; else $(CYGPATH_W) '$(srcdir)/gui_retro_console.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_retro_console.Tpo $(DEPDIR)/hexter_gtk-gui_retro_console.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_retro_console.c' object='hexter_gtk-gui_retro_console.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_retro_console.obj `if test -f 'gui_retro_console.c'; then $(CYGPATH_W) 'gui_retro_console.c'; else $(CYGPATH_W) '$(srcdir)/gui_retro_console.c'; fi` hexter_gtk-gui_retro_editor.o: gui_retro_editor.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_retro_editor.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_retro_editor.Tpo -c -o hexter_gtk-gui_retro_editor.o `test -f 'gui_retro_editor.c' || echo '$(srcdir)/'`gui_retro_editor.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_retro_editor.Tpo $(DEPDIR)/hexter_gtk-gui_retro_editor.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_retro_editor.c' object='hexter_gtk-gui_retro_editor.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_retro_editor.o `test -f 'gui_retro_editor.c' || echo '$(srcdir)/'`gui_retro_editor.c hexter_gtk-gui_retro_editor.obj: gui_retro_editor.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_retro_editor.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_retro_editor.Tpo -c -o hexter_gtk-gui_retro_editor.obj `if test -f 'gui_retro_editor.c'; then $(CYGPATH_W) 'gui_retro_editor.c'; else $(CYGPATH_W) '$(srcdir)/gui_retro_editor.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_retro_editor.Tpo $(DEPDIR)/hexter_gtk-gui_retro_editor.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_retro_editor.c' object='hexter_gtk-gui_retro_editor.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_retro_editor.obj `if test -f 'gui_retro_editor.c'; then $(CYGPATH_W) 'gui_retro_editor.c'; else $(CYGPATH_W) '$(srcdir)/gui_retro_editor.c'; fi` hexter_gtk-gui_widgy_alg.o: gui_widgy_alg.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_widgy_alg.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_widgy_alg.Tpo -c -o hexter_gtk-gui_widgy_alg.o `test -f 'gui_widgy_alg.c' || echo '$(srcdir)/'`gui_widgy_alg.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_widgy_alg.Tpo $(DEPDIR)/hexter_gtk-gui_widgy_alg.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_widgy_alg.c' object='hexter_gtk-gui_widgy_alg.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_widgy_alg.o `test -f 'gui_widgy_alg.c' || echo '$(srcdir)/'`gui_widgy_alg.c hexter_gtk-gui_widgy_alg.obj: gui_widgy_alg.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_widgy_alg.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_widgy_alg.Tpo -c -o hexter_gtk-gui_widgy_alg.obj `if test -f 'gui_widgy_alg.c'; then $(CYGPATH_W) 'gui_widgy_alg.c'; else $(CYGPATH_W) '$(srcdir)/gui_widgy_alg.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_widgy_alg.Tpo $(DEPDIR)/hexter_gtk-gui_widgy_alg.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_widgy_alg.c' object='hexter_gtk-gui_widgy_alg.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_widgy_alg.obj `if test -f 'gui_widgy_alg.c'; then $(CYGPATH_W) 'gui_widgy_alg.c'; else $(CYGPATH_W) '$(srcdir)/gui_widgy_alg.c'; fi` hexter_gtk-gui_widgy_editor.o: gui_widgy_editor.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_widgy_editor.o -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_widgy_editor.Tpo -c -o hexter_gtk-gui_widgy_editor.o `test -f 'gui_widgy_editor.c' || echo '$(srcdir)/'`gui_widgy_editor.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_widgy_editor.Tpo $(DEPDIR)/hexter_gtk-gui_widgy_editor.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_widgy_editor.c' object='hexter_gtk-gui_widgy_editor.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_widgy_editor.o `test -f 'gui_widgy_editor.c' || echo '$(srcdir)/'`gui_widgy_editor.c hexter_gtk-gui_widgy_editor.obj: gui_widgy_editor.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_gtk_CFLAGS) $(CFLAGS) -MT hexter_gtk-gui_widgy_editor.obj -MD -MP -MF $(DEPDIR)/hexter_gtk-gui_widgy_editor.Tpo -c -o hexter_gtk-gui_widgy_editor.obj `if test -f 'gui_widgy_editor.c'; then $(CYGPATH_W) 'gui_widgy_editor.c'; else $(CYGPATH_W) '$(srcdir)/gui_widgy_editor.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_gtk-gui_widgy_editor.Tpo $(DEPDIR)/hexter_gtk-gui_widgy_editor.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_widgy_editor.c' object='hexter_gtk-gui_widgy_editor.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) $(hexter_gtk_CFLAGS) $(CFLAGS) -c -o hexter_gtk-gui_widgy_editor.obj `if test -f 'gui_widgy_editor.c'; then $(CYGPATH_W) 'gui_widgy_editor.c'; else $(CYGPATH_W) '$(srcdir)/gui_widgy_editor.c'; fi` hexter_text-textui_main.o: ../extra/textui_main.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_text_CFLAGS) $(CFLAGS) -MT hexter_text-textui_main.o -MD -MP -MF $(DEPDIR)/hexter_text-textui_main.Tpo -c -o hexter_text-textui_main.o `test -f '../extra/textui_main.c' || echo '$(srcdir)/'`../extra/textui_main.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_text-textui_main.Tpo $(DEPDIR)/hexter_text-textui_main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../extra/textui_main.c' object='hexter_text-textui_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) $(hexter_text_CFLAGS) $(CFLAGS) -c -o hexter_text-textui_main.o `test -f '../extra/textui_main.c' || echo '$(srcdir)/'`../extra/textui_main.c hexter_text-textui_main.obj: ../extra/textui_main.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_text_CFLAGS) $(CFLAGS) -MT hexter_text-textui_main.obj -MD -MP -MF $(DEPDIR)/hexter_text-textui_main.Tpo -c -o hexter_text-textui_main.obj `if test -f '../extra/textui_main.c'; then $(CYGPATH_W) '../extra/textui_main.c'; else $(CYGPATH_W) '$(srcdir)/../extra/textui_main.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_text-textui_main.Tpo $(DEPDIR)/hexter_text-textui_main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../extra/textui_main.c' object='hexter_text-textui_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) $(hexter_text_CFLAGS) $(CFLAGS) -c -o hexter_text-textui_main.obj `if test -f '../extra/textui_main.c'; then $(CYGPATH_W) '../extra/textui_main.c'; else $(CYGPATH_W) '$(srcdir)/../extra/textui_main.c'; fi` hexter_text-dx7_voice_data.o: dx7_voice_data.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_text_CFLAGS) $(CFLAGS) -MT hexter_text-dx7_voice_data.o -MD -MP -MF $(DEPDIR)/hexter_text-dx7_voice_data.Tpo -c -o hexter_text-dx7_voice_data.o `test -f 'dx7_voice_data.c' || echo '$(srcdir)/'`dx7_voice_data.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_text-dx7_voice_data.Tpo $(DEPDIR)/hexter_text-dx7_voice_data.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dx7_voice_data.c' object='hexter_text-dx7_voice_data.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) $(hexter_text_CFLAGS) $(CFLAGS) -c -o hexter_text-dx7_voice_data.o `test -f 'dx7_voice_data.c' || echo '$(srcdir)/'`dx7_voice_data.c hexter_text-dx7_voice_data.obj: dx7_voice_data.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_text_CFLAGS) $(CFLAGS) -MT hexter_text-dx7_voice_data.obj -MD -MP -MF $(DEPDIR)/hexter_text-dx7_voice_data.Tpo -c -o hexter_text-dx7_voice_data.obj `if test -f 'dx7_voice_data.c'; then $(CYGPATH_W) 'dx7_voice_data.c'; else $(CYGPATH_W) '$(srcdir)/dx7_voice_data.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_text-dx7_voice_data.Tpo $(DEPDIR)/hexter_text-dx7_voice_data.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dx7_voice_data.c' object='hexter_text-dx7_voice_data.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) $(hexter_text_CFLAGS) $(CFLAGS) -c -o hexter_text-dx7_voice_data.obj `if test -f 'dx7_voice_data.c'; then $(CYGPATH_W) 'dx7_voice_data.c'; else $(CYGPATH_W) '$(srcdir)/dx7_voice_data.c'; fi` hexter_text-dx7_voice_patches.o: dx7_voice_patches.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_text_CFLAGS) $(CFLAGS) -MT hexter_text-dx7_voice_patches.o -MD -MP -MF $(DEPDIR)/hexter_text-dx7_voice_patches.Tpo -c -o hexter_text-dx7_voice_patches.o `test -f 'dx7_voice_patches.c' || echo '$(srcdir)/'`dx7_voice_patches.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_text-dx7_voice_patches.Tpo $(DEPDIR)/hexter_text-dx7_voice_patches.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dx7_voice_patches.c' object='hexter_text-dx7_voice_patches.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) $(hexter_text_CFLAGS) $(CFLAGS) -c -o hexter_text-dx7_voice_patches.o `test -f 'dx7_voice_patches.c' || echo '$(srcdir)/'`dx7_voice_patches.c hexter_text-dx7_voice_patches.obj: dx7_voice_patches.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_text_CFLAGS) $(CFLAGS) -MT hexter_text-dx7_voice_patches.obj -MD -MP -MF $(DEPDIR)/hexter_text-dx7_voice_patches.Tpo -c -o hexter_text-dx7_voice_patches.obj `if test -f 'dx7_voice_patches.c'; then $(CYGPATH_W) 'dx7_voice_patches.c'; else $(CYGPATH_W) '$(srcdir)/dx7_voice_patches.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_text-dx7_voice_patches.Tpo $(DEPDIR)/hexter_text-dx7_voice_patches.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dx7_voice_patches.c' object='hexter_text-dx7_voice_patches.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) $(hexter_text_CFLAGS) $(CFLAGS) -c -o hexter_text-dx7_voice_patches.obj `if test -f 'dx7_voice_patches.c'; then $(CYGPATH_W) 'dx7_voice_patches.c'; else $(CYGPATH_W) '$(srcdir)/dx7_voice_patches.c'; fi` hexter_text-gui_data.o: gui_data.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_text_CFLAGS) $(CFLAGS) -MT hexter_text-gui_data.o -MD -MP -MF $(DEPDIR)/hexter_text-gui_data.Tpo -c -o hexter_text-gui_data.o `test -f 'gui_data.c' || echo '$(srcdir)/'`gui_data.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_text-gui_data.Tpo $(DEPDIR)/hexter_text-gui_data.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_data.c' object='hexter_text-gui_data.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) $(hexter_text_CFLAGS) $(CFLAGS) -c -o hexter_text-gui_data.o `test -f 'gui_data.c' || echo '$(srcdir)/'`gui_data.c hexter_text-gui_data.obj: gui_data.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_text_CFLAGS) $(CFLAGS) -MT hexter_text-gui_data.obj -MD -MP -MF $(DEPDIR)/hexter_text-gui_data.Tpo -c -o hexter_text-gui_data.obj `if test -f 'gui_data.c'; then $(CYGPATH_W) 'gui_data.c'; else $(CYGPATH_W) '$(srcdir)/gui_data.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_text-gui_data.Tpo $(DEPDIR)/hexter_text-gui_data.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gui_data.c' object='hexter_text-gui_data.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) $(hexter_text_CFLAGS) $(CFLAGS) -c -o hexter_text-gui_data.obj `if test -f 'gui_data.c'; then $(CYGPATH_W) 'gui_data.c'; else $(CYGPATH_W) '$(srcdir)/gui_data.c'; fi` hexter_text-textui_callbacks.o: ../extra/textui_callbacks.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_text_CFLAGS) $(CFLAGS) -MT hexter_text-textui_callbacks.o -MD -MP -MF $(DEPDIR)/hexter_text-textui_callbacks.Tpo -c -o hexter_text-textui_callbacks.o `test -f '../extra/textui_callbacks.c' || echo '$(srcdir)/'`../extra/textui_callbacks.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_text-textui_callbacks.Tpo $(DEPDIR)/hexter_text-textui_callbacks.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../extra/textui_callbacks.c' object='hexter_text-textui_callbacks.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) $(hexter_text_CFLAGS) $(CFLAGS) -c -o hexter_text-textui_callbacks.o `test -f '../extra/textui_callbacks.c' || echo '$(srcdir)/'`../extra/textui_callbacks.c hexter_text-textui_callbacks.obj: ../extra/textui_callbacks.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hexter_text_CFLAGS) $(CFLAGS) -MT hexter_text-textui_callbacks.obj -MD -MP -MF $(DEPDIR)/hexter_text-textui_callbacks.Tpo -c -o hexter_text-textui_callbacks.obj `if test -f '../extra/textui_callbacks.c'; then $(CYGPATH_W) '../extra/textui_callbacks.c'; else $(CYGPATH_W) '$(srcdir)/../extra/textui_callbacks.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hexter_text-textui_callbacks.Tpo $(DEPDIR)/hexter_text-textui_callbacks.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../extra/textui_callbacks.c' object='hexter_text-textui_callbacks.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) $(hexter_text_CFLAGS) $(CFLAGS) -c -o hexter_text-textui_callbacks.obj `if test -f '../extra/textui_callbacks.c'; then $(CYGPATH_W) '../extra/textui_callbacks.c'; else $(CYGPATH_W) '$(srcdir)/../extra/textui_callbacks.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ 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) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) 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; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(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 -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(plugindir)" "$(DESTDIR)$(gtkuidir)" "$(DESTDIR)$(textuidir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-gtkuiPROGRAMS clean-libtool \ clean-pluginLTLIBRARIES clean-textuiPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-gtkuiPROGRAMS install-pluginLTLIBRARIES \ install-textuiPROGRAMS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-gtkuiPROGRAMS uninstall-pluginLTLIBRARIES \ uninstall-textuiPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-gtkuiPROGRAMS clean-libtool clean-pluginLTLIBRARIES \ clean-textuiPROGRAMS ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-gtkuiPROGRAMS \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am \ install-pluginLTLIBRARIES install-ps install-ps-am \ install-strip install-textuiPROGRAMS 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-gtkuiPROGRAMS \ uninstall-pluginLTLIBRARIES uninstall-textuiPROGRAMS # 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: hexter-1.0.2/src/gui_images.c0000644000076400007640000000475211757613235013030 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include "gui_images.h" #include "bitmap_about.xpm" /* This is a dummy pixmap we use when a pixmap can't be found. */ static char *dummy_pixmap_xpm[] = { /* columns rows colors chars-per-pixel */ "1 1 1 1", " c None", /* pixels */ " " }; /* This is an internally used function to create pixmaps. */ static GtkWidget* create_dummy_pixmap (GtkWidget *widget) { GdkColormap *colormap; GdkPixmap *gdkpixmap; GdkBitmap *mask; GtkWidget *pixmap; colormap = gtk_widget_get_colormap (widget); gdkpixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, colormap, &mask, NULL, dummy_pixmap_xpm); if (gdkpixmap == NULL) g_error ("Couldn't create replacement pixmap."); pixmap = gtk_pixmap_new (gdkpixmap, mask); gdk_pixmap_unref (gdkpixmap); gdk_bitmap_unref (mask); return pixmap; } /* window must be realized before you call this */ GtkWidget * create_pixmap_from_xpm(GtkWidget *window, char *xpm_data[]) { GdkColormap *colormap; GdkBitmap *mask; GdkPixmap *gdkpixmap; GtkWidget *pixmap; colormap = gtk_widget_get_colormap(window); gdkpixmap = gdk_pixmap_colormap_create_from_xpm_d(NULL, colormap, &mask, NULL, xpm_data); if (gdkpixmap == NULL) { g_warning("error creating pixmap"); return create_dummy_pixmap (window); } pixmap = gtk_pixmap_new(gdkpixmap, mask); gdk_pixmap_unref(gdkpixmap); gdk_bitmap_unref(mask); return pixmap; } GtkWidget * create_about_pixmap(GtkWidget *window) { return create_pixmap_from_xpm(window, bitmap_about_xpm); } hexter-1.0.2/src/gui_main.c0000644000076400007640000003056012043116262012466 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2011, 2012 Sean Bolton and others. * * Portions of this file may have come from Chris Cannam and Steve * Harris's public domain DSSI example code. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "hexter_types.h" #include "hexter.h" #include "gui_main.h" #include "gui_callbacks.h" #include "gui_interface.h" #include "gui_midi.h" #include "gui_patch_edit.h" #include "gui_data.h" #include "dx7_voice_data.h" /* ==== global variables ==== */ char *user_friendly_id; char * osc_host_url; char * osc_self_url; lo_address osc_host_address; char * osc_configure_path; char * osc_control_path; char * osc_exiting_path; char * osc_hide_path; char * osc_midi_path; char * osc_program_path; char * osc_quit_path; char * osc_rate_path; char * osc_show_path; char * osc_update_path; dx7_patch_t *patches = NULL; int patch_section_dirty[4]; char * project_directory = NULL; int current_program = 0; /* edit_buffer_active should be TRUE when the plugin has an edit_buffer * overlay, and FALSE when it doesn't. Simple. Then in that corner case where * edit_buffer.program != current_program and edit_buffer_active == TRUE, * the GUI patch editor should be insensitive. */ int edit_buffer_active = 0; edit_buffer_t edit_buffer; int host_requested_quit = 0; int gui_test_mode = 0; /* ==== OSC handling ==== */ static char * osc_build_path(char *base_path, char *method) { char buffer[256]; char *full_path; snprintf(buffer, 256, "%s%s", base_path, method); if (!(full_path = strdup(buffer))) { GUIDB_MESSAGE(DB_OSC, ": out of memory!\n"); exit(1); } return full_path; } static void osc_error(int num, const char *msg, const char *path) { GUIDB_MESSAGE(DB_OSC, " error: liblo server error %d in path \"%s\": %s\n", num, (path ? path : "(null)"), msg); } int osc_debug_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int i; GUIDB_MESSAGE(DB_OSC, " warning: unhandled OSC message to <%s>:\n", path); for (i = 0; i < argc; ++i) { fprintf(stderr, "arg %d: type '%c': ", i, types[i]); fflush(stderr); lo_arg_pp((lo_type)types[i], argv[i]); /* -FIX- Ack, mixing stderr and stdout... */ fprintf(stdout, "\n"); fflush(stdout); } return 1; /* try any other handlers */ } int osc_action_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { if (!strcmp(user_data, "show")) { /* GUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'show' message\n"); */ if (!GTK_WIDGET_MAPPED(main_window)) gtk_widget_show(main_window); else gdk_window_raise(main_window->window); } else if (!strcmp(user_data, "hide")) { /* GUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'hide' message\n"); */ gtk_widget_hide(main_window); } else if (!strcmp(user_data, "quit")) { /* GUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'quit' message\n"); */ host_requested_quit = 1; gtk_main_quit(); } else if (!strcmp(user_data, "sample-rate")) { /* GUIDB_MESSAGE(DB_OSC, " osc_action_handler: received 'sample-rate' message, rate = %d\n", argv[0]->i); */ /* ignore it */ } else { return osc_debug_handler(path, types, argv, argc, msg, user_data); } return 0; } int osc_configure_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { char *key, *value; if (argc < 2) { GUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_configure_handler\n"); return 1; } key = &argv[0]->s; value = &argv[1]->s; if (strlen(key) == 8 && !strncmp(key, "patches", 7) && key[7] >= '0' && key[7] <= '3') { update_patches(key, value); } else if (!strcmp(key, "edit_buffer")) { update_edit_buffer(value); } else if (!strcmp(key, "performance")) { update_performance(value); } else if (!strcmp(key, "monophonic")) { update_monophonic(value); } else if (!strcmp(key, "polyphony")) { update_polyphony(value); #ifdef DSSI_GLOBAL_CONFIGURE_PREFIX } else if (!strcmp(key, DSSI_GLOBAL_CONFIGURE_PREFIX "polyphony")) { #else } else if (!strcmp(key, "global_polyphony")) { #endif update_global_polyphony(value); #ifdef DSSI_PROJECT_DIRECTORY_KEY } else if (!strcmp(key, DSSI_PROJECT_DIRECTORY_KEY)) { if (project_directory) free(project_directory); project_directory = strdup(value); #endif } else { return osc_debug_handler(path, types, argv, argc, msg, user_data); } return 0; } int osc_control_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int port; float value; if (argc < 2) { GUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_control_handler\n"); return 1; } port = argv[0]->i; value = argv[1]->f; GUIDB_MESSAGE(DB_OSC, " osc_control_handler: control %d now %f\n", port, value); update_voice_widget(port, value); return 0; } int osc_program_handler(const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data) { int bank, program; if (argc < 2) { GUIDB_MESSAGE(DB_OSC, " error: too few arguments to osc_program_handler\n"); return 1; } bank = argv[0]->i; program = argv[1]->i; if (bank || program < 0 || program > 127) { GUIDB_MESSAGE(DB_OSC, ": out-of-range program select (bank %d, program %d)\n", bank, program); return 0; } GUIDB_MESSAGE(DB_OSC, " osc_program_handler: received program change, bank %d, program %d\n", bank, program); update_from_program_select(bank, program); return 0; } void osc_data_on_socket_callback(gpointer data, gint source, GdkInputCondition condition) { lo_server server = (lo_server)data; lo_server_recv_noblock(server, 0); } gint update_request_timeout_callback(gpointer data) { if (!gui_test_mode) { /* send our update request */ lo_send(osc_host_address, osc_update_path, "s", osc_self_url); } else { gtk_widget_show(main_window); } return FALSE; /* don't need to do this again */ } /* ==== main ==== */ char *test_argv[5] = { NULL, NULL, "-", "-", "hexter" }; int main(int argc, char *argv[]) { char *host, *port, *path, *tmp_url; lo_server osc_server; gint osc_server_socket_tag; gint update_request_timeout_tag; DSSP_DEBUG_INIT("hexter_gtk"); #ifdef DSSP_DEBUG GUIDB_MESSAGE(DB_MAIN, " starting (pid %d)...\n", getpid()); #else fprintf(stderr, "hexter_gtk starting (pid %d)...\n", getpid()); #endif /* { int i; fprintf(stderr, "args:\n"); for(i=0; i 1 && !strcmp(argv[1], "-test")) { gui_test_mode = 1; test_argv[0] = argv[0]; test_argv[1] = "osc.udp://localhost:9/test/mode"; if (argc >= 5) test_argv[4] = argv[4]; argc = 5; argv = test_argv; } else if (argc != 5) { fprintf(stderr, "usage: %s \n" " or: %s -test\n", argv[0], argv[0]); exit(1); } user_friendly_id = argv[4]; /* set up OSC support */ osc_host_url = argv[1]; host = lo_url_get_hostname(osc_host_url); port = lo_url_get_port(osc_host_url); path = lo_url_get_path(osc_host_url); osc_host_address = lo_address_new(host, port); osc_configure_path = osc_build_path(path, "/configure"); osc_control_path = osc_build_path(path, "/control"); osc_exiting_path = osc_build_path(path, "/exiting"); osc_hide_path = osc_build_path(path, "/hide"); osc_midi_path = osc_build_path(path, "/midi"); osc_program_path = osc_build_path(path, "/program"); osc_quit_path = osc_build_path(path, "/quit"); osc_rate_path = osc_build_path(path, "/sample-rate"); osc_show_path = osc_build_path(path, "/show"); osc_update_path = osc_build_path(path, "/update"); osc_server = lo_server_new(NULL, osc_error); lo_server_add_method(osc_server, osc_configure_path, "ss", osc_configure_handler, NULL); lo_server_add_method(osc_server, osc_control_path, "if", osc_control_handler, NULL); lo_server_add_method(osc_server, osc_hide_path, "", osc_action_handler, "hide"); lo_server_add_method(osc_server, osc_program_path, "ii", osc_program_handler, NULL); lo_server_add_method(osc_server, osc_quit_path, "", osc_action_handler, "quit"); lo_server_add_method(osc_server, osc_rate_path, "i", osc_action_handler, "sample-rate"); lo_server_add_method(osc_server, osc_show_path, "", osc_action_handler, "show"); lo_server_add_method(osc_server, NULL, NULL, osc_debug_handler, NULL); tmp_url = lo_server_get_url(osc_server); osc_self_url = osc_build_path(tmp_url, (strlen(path) > 1 ? path + 1 : path)); free(tmp_url); GUIDB_MESSAGE(DB_OSC, ": listening at %s\n", osc_self_url); /* set up GTK+ */ patch_edit_create_edit_adjs(); create_windows(user_friendly_id); /* add OSC server socket to GTK+'s watched I/O */ if (lo_server_get_socket_fd(osc_server) < 0) { fprintf(stderr, "hexter_gtk fatal: OSC transport does not support exposing socket fd\n"); exit(1); } osc_server_socket_tag = gdk_input_add(lo_server_get_socket_fd(osc_server), GDK_INPUT_READ, osc_data_on_socket_callback, osc_server); /* set up patches */ gui_data_patches_init(); rebuild_patches_clist(); update_performance_widgets(dx7_init_performance); edit_buffer.program = 0; dx7_patch_unpack(patches, edit_buffer.program, edit_buffer.voice); patch_edit_connect_to_model(); patch_edit_update_editors(); /* schedule our update request */ update_request_timeout_tag = gtk_timeout_add(50, update_request_timeout_callback, NULL); /* let GTK+ take it from here */ gtk_main(); /* clean up and exit */ GUIDB_MESSAGE(DB_MAIN, ": yep, we got to the cleanup!\n"); /* release test note, if playing */ release_test_note(); /* shut down sys-ex receive, if enabled */ if (sysex_enabled) { sysex_stop(); } /* GTK+ cleanup */ gtk_timeout_remove(update_request_timeout_tag); gdk_input_remove(osc_server_socket_tag); /* say bye-bye */ if (!host_requested_quit) { lo_send(osc_host_address, osc_exiting_path, ""); } /* clean up patches */ gui_data_patches_free(); if (project_directory) free(project_directory); /* clean up OSC support */ lo_server_free(osc_server); free(host); free(port); free(path); free(osc_configure_path); free(osc_control_path); free(osc_exiting_path); free(osc_hide_path); free(osc_midi_path); free(osc_program_path); free(osc_quit_path); free(osc_rate_path); free(osc_show_path); free(osc_update_path); free(osc_self_url); return 0; } hexter-1.0.2/src/gui_interface.h0000644000076400007640000000566012042256331013513 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _GUI_INTERFACE_H #define _GUI_INTERFACE_H #include extern GtkWidget *main_window; extern GtkObject *test_note_key_adj; extern GtkObject *test_note_velocity_adj; extern GtkObject *tuning_adj; extern GtkObject *volume_adj; extern GtkObject *polyphony_instance_adj; extern GtkObject *polyphony_global_adj; extern GtkWidget *monophonic_option_menu; extern GtkWidget *compat059_button; extern GtkWidget *sysex_channel_label; extern GtkWidget *sysex_channel_spin; extern GtkWidget *sysex_status_label; extern GtkWidget *about_window; extern GtkWidget *about_label; extern GtkWidget *import_file_selection; extern GtkWidget *import_file_position_window; extern GtkObject *import_file_position_spin_adj; extern GtkWidget *import_file_position_name_label; extern GtkWidget *notice_window; extern GtkWidget *notice_label_1; extern GtkWidget *notice_label_2; extern GtkWidget *export_file_type_window; extern GtkWidget *export_file_type_sysex; extern GtkObject *export_file_start_spin_adj; extern GtkWidget *export_file_start_name; extern GtkWidget *export_file_end_label; extern GtkWidget *export_file_end_spin; extern GtkObject *export_file_end_spin_adj; extern GtkWidget *export_file_end_name; extern GtkWidget *export_file_selection; extern GtkWidget *edit_save_position_window; extern GtkObject *edit_save_position_spin_adj; extern GtkWidget *edit_save_position_name_label; extern GtkWidget *patches_clist; #define PP_PITCH_BEND_RANGE 0 #define PP_PORTAMENTO_TIME 1 #define PP_MOD_WHEEL_SENSITIVITY 2 #define PP_FOOT_SENSITIVITY 3 #define PP_PRESSURE_SENSITIVITY 4 #define PP_BREATH_SENSITIVITY 5 #define PP_MOD_WHEEL_ASSIGN 0 #define PP_FOOT_ASSIGN 1 #define PP_PRESSURE_ASSIGN 2 #define PP_BREATH_ASSIGN 3 extern GtkWidget *performance_frame; extern GtkObject *performance_spin_adjustments[6]; extern GtkWidget *performance_assign_widgets[4][3]; extern const char *performance_spin_names[6]; extern const char *performance_assign_names[4]; void set_window_title(GtkWidget *window, const char *tag, const char *text); void create_windows(const char *instance_tag); #endif /* _GUI_INTERFACE_H */ hexter-1.0.2/src/gui_retro_console.h0000644000076400007640000000355312041443452014430 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011 Sean Bolton. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef GUI_RETRO_CONSOLE_H #define GUI_RETRO_CONSOLE_H #include #define RC_USE_BIG_FONT #ifndef RC_USE_BIG_FONT #define RC_FONT_WIDTH 7 #define RC_FONT_HEIGHT 13 #else #define RC_FONT_WIDTH 9 #define RC_FONT_HEIGHT 18 #endif #define RC_COLOR_WHITE 0 #define RC_COLOR_BLACK 1 #define RC_COLOR_GREEN 2 #define RC_COLOR_BLUE 3 #define RC_COLOR_YELLOW 4 #define RC_COLOR_CYAN 5 #define RC_COLOR_COUNT 6 #define RC_MAX_COLOR_PAIRS 8 extern GtkWidget *rc_drawing_area; GtkWidget *retro_console_init(int width, int height); /* returns the console GtkDrawingArea */ void rc_console_set_button_press_callback(void (*cb)(guint button, guint x, guint y)); void rc_console_set_key_press_callback(void (*cb)(gboolean pressed, guint key, guint state)); void rc_console_addch(char c); void rc_console_addstr(const char *t); void rc_console_move(int y, int x); void rc_console_clrtoeol(void); void rc_console_erase(void); void rc_console_init_color_pair(int pair, int fg, int bg); void rc_console_set_color_pair(int pair); #endif /* GUI_RETRO_CONSOLE_H */ hexter-1.0.2/src/gui_patch_edit.h0000644000076400007640000000570112043506564013662 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011, 2012 Sean Bolton. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _GUI_PATCH_EDIT_H #define _GUI_PATCH_EDIT_H #ifdef HAVE_CONFIG_H # include #endif #include #include "hexter_types.h" #define PEPT_Name 1 #define PEPT_0_99 2 #define PEPT_0_7 3 #define PEPT_Mode 4 /* R,F */ #define PEPT_FC 5 /* 0-31 */ #define PEPT_FF 6 /* 0-99 */ #define PEPT_Detune 7 /* 0-14, as -7 to +7 */ #define PEPT_0_3 8 #define PEPT_Alg 9 /* 0-31, as 1-32 */ #define PEPT_Curve 10 /* 0-3, scaling curve */ #define PEPT_BkPt 11 /* 0-99, breakpoint */ #define PEPT_Trans 12 /* 0-48, transpose, as -24 to +24 */ #define PEPT_OnOff 13 #define PEPT_LFOWave 14 #define PEPT_Env 15 /* 0-99, envelope */ #define PEPT_Scal99 16 /* 0-99, for parameters that affect level scaling */ #define PEPT_COUNT 17 extern GtkWidget *editor_window; extern GtkWidget *editor_name_entry; /* It is possible to have three editors active simultaneously (widgy, retro, * and MIDI), so EVERYTHING in a patch (except the name) is represented by an * adjustment, stored in edit_adj[]. This model and each editor connect to the * adjustments, and are then notified when any of the other connectees makes a * change. */ extern GtkObject *edit_adj[DX7_VOICE_PARAMETERS - 1]; /* omitting name */ void patch_edit_create_edit_adjs(void); void patch_edit_connect_to_model(void); void patch_edit_update_status(void); void patch_edit_copy_name_to_utf8(char *buffer, uint8_t *patch, int packed); void patch_edit_update_editors(void); int patch_edit_get_edit_parameter(int offset); char *patch_edit_NoteText(int note); extern unsigned short peFFF[100]; extern int sysex_receive_channel; void on_sysex_receipt(unsigned int length, unsigned char *data); GtkWidget *create_editor_window(const char *tag); /* in gui_retro_editor.c: */ extern GtkWidget *retro_widget; GtkWidget *create_retro_editor(const char *tag); /* in gui_widgy_editor.c: */ extern GtkWidget *widgy_widget; GtkWidget *create_widgy_editor(const char *tag); /* in gui_widgy_alg.c: */ extern GtkWidget *we_alg_drawing_area; void we_alg_drawing_area_new(void); void we_alg_draw(cairo_t *cr, int alg); #endif /* _GUI_PATCH_EDIT_H */ hexter-1.0.2/src/gui_midi.h0000644000076400007640000000221611757613235012503 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _GUI_MIDI_H #define _GUI_MIDI_H extern int sysex_enabled; extern int sysex_seq_client_id; extern int sysex_seq_port_id; typedef void (sysex_callback_function)(unsigned int length, unsigned char* data); int sysex_start(sysex_callback_function *sysex_handler, char **error_message); void sysex_stop(void); #endif /* _GUI_MIDI_H */ hexter-1.0.2/src/gui_interface.c0000644000076400007640000022705112043116330013501 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include "hexter.h" #include "gui_callbacks.h" #include "gui_interface.h" #include "gui_images.h" #include "gui_patch_edit.h" GtkWidget *main_window; GtkObject *test_note_key_adj; GtkObject *test_note_velocity_adj; GtkObject *tuning_adj; GtkObject *volume_adj; GtkObject *polyphony_instance_adj; GtkObject *polyphony_global_adj; GtkWidget *monophonic_option_menu; GtkWidget *compat059_button; #ifdef HEXTER_DEBUG_CONTROL GtkObject *test_adj; #endif GtkWidget *sysex_channel_label; GtkWidget *sysex_channel_spin; GtkWidget *sysex_status_label; GtkWidget *performance_frame; GtkObject *performance_spin_adjustments[6]; GtkWidget *performance_assign_widgets[4][3]; GtkWidget *about_window; GtkWidget *about_label; GtkWidget *import_file_selection; GtkWidget *import_file_position_window; GtkObject *import_file_position_spin_adj; GtkWidget *import_file_position_name_label; GtkWidget *notice_window; GtkWidget *notice_label_1; GtkWidget *notice_label_2; GtkWidget *export_file_type_window; GtkWidget *export_file_type_sysex; GtkObject *export_file_start_spin_adj; GtkWidget *export_file_start_name; GtkWidget *export_file_end_label; GtkWidget *export_file_end_spin; GtkObject *export_file_end_spin_adj; GtkWidget *export_file_end_name; GtkWidget *export_file_selection; GtkWidget *edit_save_position_window; GtkObject *edit_save_position_spin_adj; GtkWidget *edit_save_position_name_label; GtkWidget *patches_clist; const char *performance_spin_names[6] = { "pitch_bend_range", "portamento_time", "mod_wheel_sensitivity", "foot_sensitivity", "pressure_sensitivity", "breath_sensitivity", }; const char *performance_assign_names[4] = { "mod_wheel_assign", "foot_assign", "pressure_assign", "breath_assign" }; void set_window_title(GtkWidget *window, const char *tag, const char *text) { char *title = (char *)malloc(strlen(tag) + strlen(text) + 2); sprintf(title, "%s %s", tag, text); gtk_window_set_title (GTK_WINDOW (window), title); free(title); } void create_performance_spin(GtkWidget *window, const char *text, GtkWidget *table, int row, int parameter, int max, int init) { GtkWidget *label; GtkObject *spin_button_adj; GtkWidget *spin_button; label = gtk_label_new (text); gtk_widget_ref (label); gtk_object_set_data_full (GTK_OBJECT (window), "performance label", label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label); gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row + 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label), 2, 0); spin_button_adj = gtk_adjustment_new (init, 0, max, 1, 10, 0); performance_spin_adjustments[parameter] = spin_button_adj; spin_button = gtk_spin_button_new (GTK_ADJUSTMENT (spin_button_adj), 1, 0); gtk_widget_ref (spin_button); gtk_object_set_data_full (GTK_OBJECT (main_window), "performance spin", spin_button, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (spin_button); gtk_table_attach (GTK_TABLE (table), spin_button, 1, 2, row, row + 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON (spin_button), GTK_UPDATE_IF_VALID); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin_button), TRUE); gtk_signal_connect (GTK_OBJECT (spin_button_adj), "value_changed", GTK_SIGNAL_FUNC(on_performance_spin_change), (gpointer)parameter); } void create_performance_assign(GtkWidget *window, const char *text, GtkWidget *table, int row, int parameter, int initbits) { GtkWidget *label; GtkWidget *hbox; GtkWidget *button; label = gtk_label_new (text); gtk_widget_ref (label); gtk_object_set_data_full (GTK_OBJECT (window), "performance label", label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label); gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row + 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label), 2, 0); hbox = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox); gtk_object_set_data_full (GTK_OBJECT (window), "assign hbox", hbox, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox); gtk_table_attach (GTK_TABLE (table), hbox, 1, 2, row, row + 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 2); label = gtk_label_new ("P"); gtk_widget_ref (label); gtk_object_set_data_full (GTK_OBJECT (window), "assign P label", label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 1); button = gtk_check_button_new(); performance_assign_widgets[parameter][0] = button; gtk_widget_ref (button); gtk_object_set_data_full (GTK_OBJECT (window), "assign P button", button, (GtkDestroyNotify) gtk_widget_unref); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), initbits & 1 ? 1 : 0); gtk_widget_show (button); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 1); gtk_signal_connect (GTK_OBJECT (button), "toggled", GTK_SIGNAL_FUNC (on_performance_assign_toggled), (gpointer)parameter); label = gtk_label_new ("A"); gtk_widget_ref (label); gtk_object_set_data_full (GTK_OBJECT (window), "assign A label", label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 1); button = gtk_check_button_new(); performance_assign_widgets[parameter][1] = button; gtk_widget_ref (button); gtk_object_set_data_full (GTK_OBJECT (window), "assign A button", button, (GtkDestroyNotify) gtk_widget_unref); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), initbits & 2 ? 1 : 0); gtk_widget_show (button); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 1); gtk_signal_connect (GTK_OBJECT (button), "toggled", GTK_SIGNAL_FUNC (on_performance_assign_toggled), (gpointer)parameter); label = gtk_label_new ("E"); gtk_widget_ref (label); gtk_object_set_data_full (GTK_OBJECT (window), "assign E label", label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 1); button = gtk_check_button_new(); performance_assign_widgets[parameter][2] = button; gtk_widget_ref (button); gtk_object_set_data_full (GTK_OBJECT (window), "assign E button", button, (GtkDestroyNotify) gtk_widget_unref); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), initbits & 4 ? 1 : 0); gtk_widget_show (button); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 1); gtk_signal_connect (GTK_OBJECT (button), "toggled", GTK_SIGNAL_FUNC (on_performance_assign_toggled), (gpointer)parameter); } void create_main_window (const char *tag) { GtkWidget *vbox1; GtkWidget *menubar1; GtkWidget *file1; GtkWidget *file1_menu; GtkWidget *menu_import; GtkWidget *menu_export; GtkWidget *separator1; GtkWidget *menu_quit; GtkWidget *edit1; GtkWidget *edit1_menu; GtkWidget *menu_edit; GtkWidget *help1; GtkWidget *help1_menu; GtkWidget *menu_about; GtkWidget *notebook1; GtkWidget *scrolledwindow1; GtkWidget *label45; GtkWidget *label46; GtkWidget *patches_tab_label; GtkWidget *vbox2; GtkWidget *frame12; GtkWidget *table15; GtkWidget *label10; GtkWidget *label10a; GtkWidget *test_note_button; GtkWidget *test_note_key; GtkWidget *test_note_velocity; GtkWidget *frame14; GtkWidget *table16; GtkWidget *tuning; GtkWidget *volume; GtkWidget *mono_mode_off; GtkWidget *mono_mode_on; GtkWidget *mono_mode_once; GtkWidget *mono_mode_both; GtkWidget *optionmenu5_menu; GtkWidget *polyphony_instance; GtkWidget *polyphony_global; GtkWidget *label42; GtkWidget *label43; GtkWidget *label43a; GtkWidget *volume_label; GtkWidget *label44; #ifdef MIDI_ALSA GtkWidget *sysex_enable_button; GtkObject *sysex_channel_spin_adj; GtkWidget *frame15; GtkWidget *frame4; GtkWidget *table3; GtkWidget *label11; #endif /* MIDI_ALSA */ GtkWidget *configuration_tab_label; GtkWidget *performance_table; GtkWidget *performance_tab_label; GtkAccelGroup *accel_group; accel_group = gtk_accel_group_new (); main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (main_window), "main_window", main_window); gtk_window_set_title (GTK_WINDOW (main_window), tag); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox1); gtk_object_set_data_full (GTK_OBJECT (main_window), "vbox1", vbox1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (main_window), vbox1); menubar1 = gtk_menu_bar_new (); gtk_widget_ref (menubar1); gtk_object_set_data_full (GTK_OBJECT (main_window), "menubar1", menubar1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menubar1); gtk_box_pack_start (GTK_BOX (vbox1), menubar1, FALSE, FALSE, 0); file1 = gtk_menu_item_new_with_label ("File"); gtk_widget_ref (file1); gtk_object_set_data_full (GTK_OBJECT (main_window), "file1", file1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (file1); gtk_container_add (GTK_CONTAINER (menubar1), file1); file1_menu = gtk_menu_new (); gtk_widget_ref (file1_menu); gtk_object_set_data_full (GTK_OBJECT (main_window), "file1_menu", file1_menu, (GtkDestroyNotify) gtk_widget_unref); gtk_menu_item_set_submenu (GTK_MENU_ITEM (file1), file1_menu); menu_import = gtk_menu_item_new_with_label ("Import Patch Bank..."); gtk_widget_ref (menu_import); gtk_object_set_data_full (GTK_OBJECT (main_window), "menu_import", menu_import, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_import); gtk_container_add (GTK_CONTAINER (file1_menu), menu_import); gtk_widget_add_accelerator (menu_import, "activate", accel_group, GDK_O, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); menu_export = gtk_menu_item_new_with_label ("Export Patch Bank..."); gtk_widget_ref (menu_export); gtk_object_set_data_full (GTK_OBJECT (main_window), "menu_export", menu_export, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_export); gtk_container_add (GTK_CONTAINER (file1_menu), menu_export); gtk_widget_add_accelerator (menu_export, "activate", accel_group, GDK_S, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); separator1 = gtk_menu_item_new (); gtk_widget_ref (separator1); gtk_object_set_data_full (GTK_OBJECT (main_window), "separator1", separator1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (separator1); gtk_container_add (GTK_CONTAINER (file1_menu), separator1); gtk_widget_set_sensitive (separator1, FALSE); menu_quit = gtk_menu_item_new_with_label ("Quit"); gtk_widget_ref (menu_quit); gtk_object_set_data_full (GTK_OBJECT (main_window), "menu_quit", menu_quit, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_quit); gtk_container_add (GTK_CONTAINER (file1_menu), menu_quit); gtk_widget_add_accelerator (menu_quit, "activate", accel_group, GDK_Q, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); edit1 = gtk_menu_item_new_with_label ("Edit"); gtk_widget_show (edit1); gtk_container_add (GTK_CONTAINER (menubar1), edit1); gtk_menu_item_right_justify (GTK_MENU_ITEM (edit1)); edit1_menu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM (edit1), edit1_menu); menu_edit = gtk_menu_item_new_with_label ("Edit Patch..."); gtk_widget_show (menu_edit); gtk_container_add (GTK_CONTAINER (edit1_menu), menu_edit); gtk_widget_add_accelerator (menu_edit, "activate", accel_group, GDK_E, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); help1 = gtk_menu_item_new_with_label ("About"); gtk_widget_ref (help1); gtk_object_set_data_full (GTK_OBJECT (main_window), "help1", help1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (help1); gtk_container_add (GTK_CONTAINER (menubar1), help1); gtk_menu_item_right_justify (GTK_MENU_ITEM (help1)); help1_menu = gtk_menu_new (); gtk_widget_ref (help1_menu); gtk_object_set_data_full (GTK_OBJECT (main_window), "help1_menu", help1_menu, (GtkDestroyNotify) gtk_widget_unref); gtk_menu_item_set_submenu (GTK_MENU_ITEM (help1), help1_menu); menu_about = gtk_menu_item_new_with_label ("About hexter"); gtk_widget_ref (menu_about); gtk_object_set_data_full (GTK_OBJECT (main_window), "menu_about", menu_about, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_about); gtk_container_add (GTK_CONTAINER (help1_menu), menu_about); notebook1 = gtk_notebook_new (); gtk_widget_ref (notebook1); gtk_object_set_data_full (GTK_OBJECT (main_window), "notebook1", notebook1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (notebook1); gtk_box_pack_start (GTK_BOX (vbox1), notebook1, TRUE, TRUE, 0); scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow1); gtk_object_set_data_full (GTK_OBJECT (main_window), "scrolledwindow1", scrolledwindow1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (scrolledwindow1); gtk_container_add (GTK_CONTAINER (notebook1), scrolledwindow1); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); patches_clist = gtk_clist_new (2); gtk_widget_ref (patches_clist); gtk_object_set_data_full (GTK_OBJECT (main_window), "patches_clist", patches_clist, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (patches_clist); gtk_container_add (GTK_CONTAINER (scrolledwindow1), patches_clist); gtk_clist_set_column_width (GTK_CLIST (patches_clist), 0, 50); gtk_clist_set_column_width (GTK_CLIST (patches_clist), 1, 80); gtk_clist_column_titles_show (GTK_CLIST (patches_clist)); label45 = gtk_label_new ("Prog No"); gtk_widget_ref (label45); gtk_object_set_data_full (GTK_OBJECT (main_window), "label45", label45, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label45); gtk_clist_set_column_widget (GTK_CLIST (patches_clist), 0, label45); label46 = gtk_label_new ("Name"); gtk_widget_ref (label46); gtk_object_set_data_full (GTK_OBJECT (main_window), "label46", label46, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label46); gtk_clist_set_column_widget (GTK_CLIST (patches_clist), 1, label46); patches_tab_label = gtk_label_new ("Patches"); gtk_widget_ref (patches_tab_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "patches_tab_label", patches_tab_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (patches_tab_label); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), patches_tab_label); /* Configuration tab */ vbox2 = gtk_vbox_new (FALSE, 5); gtk_widget_ref (vbox2); gtk_object_set_data_full (GTK_OBJECT (main_window), "vbox2", vbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox2); gtk_container_add (GTK_CONTAINER (notebook1), vbox2); gtk_container_set_border_width (GTK_CONTAINER (vbox2), 5); frame14 = gtk_frame_new ("Synthesizer"); gtk_widget_ref (frame14); gtk_object_set_data_full (GTK_OBJECT (main_window), "frame14", frame14, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame14); gtk_box_pack_start (GTK_BOX (vbox2), frame14, TRUE, TRUE, 0); table16 = gtk_table_new (2, 6, FALSE); gtk_widget_ref (table16); gtk_object_set_data_full (GTK_OBJECT (main_window), "table16", table16, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table16); gtk_container_add (GTK_CONTAINER (frame14), table16); gtk_container_set_border_width (GTK_CONTAINER (table16), 2); gtk_table_set_row_spacings (GTK_TABLE (table16), 5); gtk_table_set_col_spacings (GTK_TABLE (table16), 5); label43a = gtk_label_new ("tuning"); gtk_widget_ref (label43a); gtk_object_set_data_full (GTK_OBJECT (main_window), "label43a", label43a, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label43a); gtk_table_attach (GTK_TABLE (table16), label43a, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label43a), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label43a), 2, 0); tuning_adj = gtk_adjustment_new (440.0, 415.3, 466.2, 0.1, 1, 0); tuning = gtk_spin_button_new (GTK_ADJUSTMENT (tuning_adj), 1, 1); gtk_widget_ref (tuning); gtk_object_set_data_full (GTK_OBJECT (main_window), "tuning", tuning, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tuning); gtk_table_attach (GTK_TABLE (table16), tuning, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON (tuning), GTK_UPDATE_IF_VALID); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tuning), TRUE); volume_label = gtk_label_new ("volume (dB)"); gtk_widget_ref (volume_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "volume_label", volume_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (volume_label); gtk_table_attach (GTK_TABLE (table16), volume_label, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (volume_label), 0, 0.5); gtk_misc_set_padding (GTK_MISC (volume_label), 2, 0); volume_adj = gtk_adjustment_new (0.0, -70.0, 20.0, 0.1, 1, 0); volume = gtk_spin_button_new (GTK_ADJUSTMENT (volume_adj), 1, 1); gtk_widget_ref (volume); gtk_object_set_data_full (GTK_OBJECT (main_window), "volume", volume, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (volume); gtk_table_attach (GTK_TABLE (table16), volume, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON (volume), GTK_UPDATE_IF_VALID); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (volume), TRUE); monophonic_option_menu = gtk_option_menu_new (); gtk_widget_ref (monophonic_option_menu); gtk_object_set_data_full (GTK_OBJECT (main_window), "monophonic_option_menu", monophonic_option_menu, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (monophonic_option_menu); gtk_table_attach (GTK_TABLE (table16), monophonic_option_menu, 1, 2, 4, 5, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); optionmenu5_menu = gtk_menu_new (); mono_mode_off = gtk_menu_item_new_with_label ("Off"); gtk_widget_show (mono_mode_off); gtk_menu_append (GTK_MENU (optionmenu5_menu), mono_mode_off); mono_mode_on = gtk_menu_item_new_with_label ("On"); gtk_widget_show (mono_mode_on); gtk_menu_append (GTK_MENU (optionmenu5_menu), mono_mode_on); mono_mode_once = gtk_menu_item_new_with_label ("Once"); gtk_widget_show (mono_mode_once); gtk_menu_append (GTK_MENU (optionmenu5_menu), mono_mode_once); mono_mode_both = gtk_menu_item_new_with_label ("Both"); gtk_widget_show (mono_mode_both); gtk_menu_append (GTK_MENU (optionmenu5_menu), mono_mode_both); gtk_option_menu_set_menu (GTK_OPTION_MENU (monophonic_option_menu), optionmenu5_menu); polyphony_instance_adj = gtk_adjustment_new (HEXTER_DEFAULT_POLYPHONY, 1, HEXTER_MAX_POLYPHONY, 1, 10, 0); polyphony_instance = gtk_spin_button_new (GTK_ADJUSTMENT (polyphony_instance_adj), 1, 0); gtk_widget_ref (polyphony_instance); gtk_object_set_data_full (GTK_OBJECT (main_window), "polyphony_instance", polyphony_instance, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (polyphony_instance); gtk_table_attach (GTK_TABLE (table16), polyphony_instance, 1, 2, 2, 3, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); label43 = gtk_label_new ("polyphony (instance)"); gtk_widget_ref (label43); gtk_object_set_data_full (GTK_OBJECT (main_window), "label43", label43, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label43); gtk_table_attach (GTK_TABLE (table16), label43, 0, 1, 2, 3, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label43), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label43), 2, 0); polyphony_global_adj = gtk_adjustment_new (HEXTER_DEFAULT_POLYPHONY, 1, HEXTER_MAX_POLYPHONY, 1, 10, 0); polyphony_global = gtk_spin_button_new (GTK_ADJUSTMENT (polyphony_global_adj), 1, 0); gtk_widget_ref (polyphony_global); gtk_object_set_data_full (GTK_OBJECT (main_window), "polyphony_global", polyphony_global, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (polyphony_global); gtk_table_attach (GTK_TABLE (table16), polyphony_global, 1, 2, 3, 4, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); label42 = gtk_label_new ("polyphony (global)"); gtk_widget_ref (label42); gtk_object_set_data_full (GTK_OBJECT (main_window), "label42", label42, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label42); gtk_table_attach (GTK_TABLE (table16), label42, 0, 1, 3, 4, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label42), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label42), 2, 0); label44 = gtk_label_new ("monophonic mode"); gtk_widget_ref (label44); gtk_object_set_data_full (GTK_OBJECT (main_window), "label44", label44, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label44); gtk_table_attach (GTK_TABLE (table16), label44, 0, 1, 4, 5, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label44), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label44), 2, 0); label44 = gtk_label_new ("disable LFO/Mod/Perf\n" "(0.5.x compatibility)"); gtk_widget_show (label44); gtk_table_attach (GTK_TABLE (table16), label44, 0, 1, 5, 6, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label44), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label44), 2, 0); compat059_button = gtk_check_button_new(); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(compat059_button), 0); gtk_widget_show (compat059_button); gtk_table_attach (GTK_TABLE (table16), compat059_button, 1, 2, 5, 6, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); #ifdef HEXTER_DEBUG_CONTROL { GtkWidget *w; test_adj = gtk_adjustment_new(0, 0, 16383, 1, 10, 0); w = gtk_hscale_new(GTK_ADJUSTMENT(test_adj)); gtk_scale_set_value_pos (GTK_SCALE (w), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (w), 0); gtk_range_set_update_policy (GTK_RANGE (w), GTK_UPDATE_DELAYED); gtk_widget_show(w); gtk_table_attach (GTK_TABLE(table16), w, 0, 2, 6, 7, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); g_signal_connect(G_OBJECT(test_adj), "value-changed", G_CALLBACK(on_test_changed), NULL); } #endif /* HEXTER_DEBUG_CONTROL */ #ifdef MIDI_ALSA frame15 = gtk_frame_new ("Sys-Ex Patch Editing"); gtk_widget_ref (frame15); gtk_object_set_data_full (GTK_OBJECT (main_window), "frame15", frame15, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame15); gtk_box_pack_start (GTK_BOX (vbox2), frame15, TRUE, TRUE, 0); table3 = gtk_table_new (3, 2, FALSE); gtk_widget_ref (table3); gtk_object_set_data_full (GTK_OBJECT (main_window), "table3", table3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table3); gtk_container_add (GTK_CONTAINER (frame15), table3); gtk_container_set_border_width (GTK_CONTAINER (table3), 2); gtk_table_set_row_spacings (GTK_TABLE (table3), 5); gtk_table_set_col_spacings (GTK_TABLE (table3), 5); label11 = gtk_label_new ("Enable Sys-Ex Editing"); gtk_widget_ref (label11); gtk_object_set_data_full (GTK_OBJECT (main_window), "label11", label11, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label11); gtk_table_attach (GTK_TABLE (table3), label11, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label11), 0, 0.5); sysex_enable_button = gtk_check_button_new_with_label (""); gtk_widget_ref (sysex_enable_button); gtk_object_set_data_full (GTK_OBJECT (main_window), "sysex_enable_button", sysex_enable_button, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sysex_enable_button); gtk_table_attach (GTK_TABLE (table3), sysex_enable_button, 1, 2, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); sysex_channel_label = gtk_label_new ("Sys-Ex Receive Channel"); gtk_widget_ref (sysex_channel_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "sysex_channel_label", sysex_channel_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sysex_channel_label); gtk_table_attach (GTK_TABLE (table3), sysex_channel_label, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (sysex_channel_label), 0, 0.5); gtk_widget_set_sensitive (sysex_channel_label, FALSE); sysex_channel_spin_adj = gtk_adjustment_new (1, 1, 16, 1, 10, 0); sysex_channel_spin = gtk_spin_button_new (GTK_ADJUSTMENT (sysex_channel_spin_adj), 1, 0); gtk_widget_ref (sysex_channel_spin); gtk_object_set_data_full (GTK_OBJECT (main_window), "sysex_channel_spin", sysex_channel_spin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sysex_channel_spin); gtk_table_attach (GTK_TABLE (table3), sysex_channel_spin, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_widget_set_sensitive (sysex_channel_spin, FALSE); frame4 = gtk_frame_new (NULL); gtk_widget_ref (frame4); gtk_object_set_data_full (GTK_OBJECT (main_window), "frame4", frame4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame4); gtk_table_attach (GTK_TABLE (table3), frame4, 0, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame4), GTK_SHADOW_IN); sysex_status_label = gtk_label_new (" "); gtk_widget_ref (sysex_status_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "sysex_status_label", sysex_status_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sysex_status_label); gtk_container_add (GTK_CONTAINER (frame4), sysex_status_label); gtk_label_set_line_wrap (GTK_LABEL (sysex_status_label), TRUE); gtk_misc_set_alignment (GTK_MISC (sysex_status_label), 0, 0.5); #endif /* MIDI_ALSA */ configuration_tab_label = gtk_label_new ("Configuration"); gtk_widget_ref (configuration_tab_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "configuration_tab_label", configuration_tab_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (configuration_tab_label); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), configuration_tab_label); /* Performance tab */ performance_frame = gtk_frame_new ("Global Performance Parameters"); gtk_widget_ref (performance_frame); gtk_object_set_data_full (GTK_OBJECT (main_window), "performance_frame", performance_frame, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (performance_frame); gtk_container_add (GTK_CONTAINER (notebook1), performance_frame); gtk_container_set_border_width (GTK_CONTAINER (performance_frame), 5); performance_table = gtk_table_new (2, 10, FALSE); gtk_widget_ref (performance_table); gtk_object_set_data_full (GTK_OBJECT (main_window), "performance_table", performance_table, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (performance_table); gtk_container_add (GTK_CONTAINER (performance_frame), performance_table); gtk_container_set_border_width (GTK_CONTAINER (performance_table), 2); gtk_table_set_row_spacings (GTK_TABLE (performance_table), 5); gtk_table_set_col_spacings (GTK_TABLE (performance_table), 5); create_performance_spin (main_window, "pitch bend range", performance_table, 0, PP_PITCH_BEND_RANGE, 12, 2); create_performance_spin (main_window, "portamento time", performance_table, 1, PP_PORTAMENTO_TIME, 99, 0); create_performance_spin (main_window, "mod wheel sens.", performance_table, 2, PP_MOD_WHEEL_SENSITIVITY, 15, 15); create_performance_assign(main_window, "mod wheel assign", performance_table, 3, PP_MOD_WHEEL_ASSIGN, 0x01); create_performance_spin (main_window, "foot sensitivity", performance_table, 4, PP_FOOT_SENSITIVITY, 15, 0); create_performance_assign(main_window, "foot assign", performance_table, 5, PP_FOOT_ASSIGN, 0x04); create_performance_spin (main_window, "pressure sens.", performance_table, 6, PP_PRESSURE_SENSITIVITY, 15, 15); create_performance_assign(main_window, "pressure assign", performance_table, 7, PP_PRESSURE_ASSIGN, 0x02); create_performance_spin (main_window, "breath sens.", performance_table, 8, PP_BREATH_SENSITIVITY, 15, 15); create_performance_assign(main_window, "breath assign", performance_table, 9, PP_BREATH_ASSIGN, 0x02); performance_tab_label = gtk_label_new ("Performance"); gtk_widget_ref (performance_tab_label); gtk_object_set_data_full (GTK_OBJECT (main_window), "performance_tab_label", performance_tab_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (performance_tab_label); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), performance_tab_label); /* Test note widgets */ frame12 = gtk_frame_new ("Test Note"); gtk_widget_ref (frame12); gtk_object_set_data_full (GTK_OBJECT (main_window), "frame12", frame12, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame12); gtk_container_set_border_width (GTK_CONTAINER (frame12), 7); gtk_box_pack_start (GTK_BOX (vbox1), frame12, TRUE, TRUE, 0); table15 = gtk_table_new (2, 3, FALSE); gtk_widget_ref (table15); gtk_object_set_data_full (GTK_OBJECT (main_window), "table15", table15, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table15); gtk_container_add (GTK_CONTAINER (frame12), table15); gtk_container_set_border_width (GTK_CONTAINER (table15), 4); gtk_table_set_row_spacings (GTK_TABLE (table15), 5); gtk_table_set_col_spacings (GTK_TABLE (table15), 5); label10 = gtk_label_new ("key"); gtk_widget_ref (label10); gtk_object_set_data_full (GTK_OBJECT (main_window), "label10", label10, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label10); gtk_table_attach (GTK_TABLE (table15), label10, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label10), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label10), 2, 0); label10a = gtk_label_new ("velocity"); gtk_widget_ref (label10a); gtk_object_set_data_full (GTK_OBJECT (main_window), "label10a", label10a, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label10a); gtk_table_attach (GTK_TABLE (table15), label10a, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label10a), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label10a), 2, 0); test_note_button = gtk_button_new_with_label ("Send Test Note"); gtk_widget_ref (test_note_button); gtk_object_set_data_full (GTK_OBJECT (main_window), "test_note_button", test_note_button, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (test_note_button); gtk_table_attach (GTK_TABLE (table15), test_note_button, 0, 2, 2, 3, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 4, 0); gtk_container_set_border_width (GTK_CONTAINER (test_note_button), 2); test_note_key_adj = gtk_adjustment_new (60, 12, 132, 1, 12, 12); test_note_key = gtk_hscale_new (GTK_ADJUSTMENT (test_note_key_adj)); gtk_widget_ref (test_note_key); gtk_object_set_data_full (GTK_OBJECT (main_window), "test_note_key", test_note_key, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (test_note_key); gtk_table_attach (GTK_TABLE (table15), test_note_key, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_scale_set_value_pos (GTK_SCALE (test_note_key), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (test_note_key), 0); gtk_range_set_update_policy (GTK_RANGE (test_note_key), GTK_UPDATE_DELAYED); test_note_velocity_adj = gtk_adjustment_new (84, 1, 137, 1, 10, 10); test_note_velocity = gtk_hscale_new (GTK_ADJUSTMENT (test_note_velocity_adj)); gtk_widget_ref (test_note_velocity); gtk_object_set_data_full (GTK_OBJECT (main_window), "test_note_velocity", test_note_velocity, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (test_note_velocity); gtk_table_attach (GTK_TABLE (table15), test_note_velocity, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_scale_set_value_pos (GTK_SCALE (test_note_velocity), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (test_note_velocity), 0); gtk_range_set_update_policy (GTK_RANGE (test_note_velocity), GTK_UPDATE_DELAYED); /* connect main window */ gtk_signal_connect(GTK_OBJECT(main_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (main_window), "delete_event", (GtkSignalFunc)on_delete_event_wrapper, (gpointer)on_menu_quit_activate); /* connect menu items */ gtk_signal_connect (GTK_OBJECT (menu_import), "activate", GTK_SIGNAL_FUNC (on_menu_import_activate), NULL); gtk_signal_connect (GTK_OBJECT (menu_export), "activate", GTK_SIGNAL_FUNC (on_menu_export_activate), NULL); gtk_signal_connect (GTK_OBJECT (menu_quit), "activate", GTK_SIGNAL_FUNC (on_menu_quit_activate), NULL); gtk_signal_connect (GTK_OBJECT (menu_edit), "activate", GTK_SIGNAL_FUNC (on_menu_edit_activate), NULL); gtk_signal_connect (GTK_OBJECT (menu_about), "activate", GTK_SIGNAL_FUNC (on_menu_about_activate), NULL); /* connect patch list */ gtk_signal_connect(GTK_OBJECT(patches_clist), "select_row", GTK_SIGNAL_FUNC(on_patches_selection), NULL); /* connect synth configuration widgets */ gtk_signal_connect (GTK_OBJECT (tuning_adj), "value_changed", GTK_SIGNAL_FUNC(on_tuning_change), NULL); gtk_signal_connect (GTK_OBJECT (volume_adj), "value_changed", GTK_SIGNAL_FUNC(on_volume_change), NULL); gtk_signal_connect (GTK_OBJECT (polyphony_instance_adj), "value_changed", GTK_SIGNAL_FUNC(on_polyphony_change), (gpointer)0); gtk_signal_connect (GTK_OBJECT (polyphony_global_adj), "value_changed", GTK_SIGNAL_FUNC(on_polyphony_change), (gpointer)1); gtk_signal_connect (GTK_OBJECT (mono_mode_off), "activate", GTK_SIGNAL_FUNC (on_mono_mode_activate), (gpointer)"off"); gtk_signal_connect (GTK_OBJECT (mono_mode_on), "activate", GTK_SIGNAL_FUNC (on_mono_mode_activate), (gpointer)"on"); gtk_signal_connect (GTK_OBJECT (mono_mode_once), "activate", GTK_SIGNAL_FUNC (on_mono_mode_activate), (gpointer)"once"); gtk_signal_connect (GTK_OBJECT (mono_mode_both), "activate", GTK_SIGNAL_FUNC (on_mono_mode_activate), (gpointer)"both"); gtk_signal_connect (GTK_OBJECT (compat059_button), "toggled", GTK_SIGNAL_FUNC (on_compat059_toggled), NULL); #ifdef MIDI_ALSA /* connect sys-ex widgets */ gtk_signal_connect (GTK_OBJECT (sysex_enable_button), "toggled", GTK_SIGNAL_FUNC (on_sysex_enable_toggled), NULL); gtk_signal_connect (GTK_OBJECT (sysex_channel_spin_adj), "value_changed", GTK_SIGNAL_FUNC (on_sysex_channel_change), NULL); #endif /* MIDI_ALSA */ /* connect test note widgets */ gtk_signal_connect (GTK_OBJECT (test_note_key_adj), "value_changed", GTK_SIGNAL_FUNC(on_test_note_slider_change), (gpointer)0); gtk_signal_connect (GTK_OBJECT (test_note_velocity_adj), "value_changed", GTK_SIGNAL_FUNC(on_test_note_slider_change), (gpointer)1); gtk_signal_connect (GTK_OBJECT (test_note_button), "pressed", GTK_SIGNAL_FUNC (on_test_note_button_press), (gpointer)1); gtk_signal_connect (GTK_OBJECT (test_note_button), "released", GTK_SIGNAL_FUNC (on_test_note_button_press), (gpointer)0); gtk_window_add_accel_group (GTK_WINDOW (main_window), accel_group); } void create_about_window (const char *tag) { GtkWidget *vbox2; GtkWidget *frame1; GtkWidget *about_pixmap; GtkWidget *closeabout; about_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (about_window), "about_window", about_window); gtk_window_set_title (GTK_WINDOW (about_window), "About hexter"); gtk_widget_realize(about_window); /* window must be realized for create_about_pixmap() */ vbox2 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox2); gtk_object_set_data_full (GTK_OBJECT (about_window), "vbox2", vbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox2); gtk_container_add (GTK_CONTAINER (about_window), vbox2); frame1 = gtk_frame_new (NULL); gtk_widget_ref (frame1); gtk_object_set_data_full (GTK_OBJECT (main_window), "frame1", frame1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (frame1); gtk_box_pack_start (GTK_BOX (vbox2), frame1, FALSE, FALSE, 0); about_pixmap = (GtkWidget *)create_about_pixmap (about_window); gtk_widget_ref (about_pixmap); gtk_object_set_data_full (GTK_OBJECT (about_window), "about_pixmap", about_pixmap, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (about_pixmap); gtk_container_add (GTK_CONTAINER (frame1), about_pixmap); gtk_misc_set_padding (GTK_MISC (about_pixmap), 5, 5); about_label = gtk_label_new ("Some message\ngoes here"); gtk_widget_ref (about_label); gtk_object_set_data_full (GTK_OBJECT (about_window), "about_label", about_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (about_label); gtk_box_pack_start (GTK_BOX (vbox2), about_label, FALSE, FALSE, 0); // gtk_label_set_line_wrap (GTK_LABEL (about_label), TRUE); gtk_label_set_justify (GTK_LABEL (about_label), GTK_JUSTIFY_CENTER); gtk_misc_set_padding (GTK_MISC (about_label), 5, 5); closeabout = gtk_button_new_with_label ("Dismiss"); gtk_widget_ref (closeabout); gtk_object_set_data_full (GTK_OBJECT (about_window), "closeabout", closeabout, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (closeabout); gtk_box_pack_start (GTK_BOX (vbox2), closeabout, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (about_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (about_window), "delete_event", GTK_SIGNAL_FUNC (on_delete_event_wrapper), (gpointer)on_about_dismiss); gtk_signal_connect (GTK_OBJECT (closeabout), "clicked", GTK_SIGNAL_FUNC (on_about_dismiss), NULL); } void create_import_file_selection (const char *tag) { char *title; GtkWidget *ok_button; GtkWidget *cancel_button; title = (char *)malloc(strlen(tag) + 21); sprintf(title, "%s - Import Patch Bank", tag); import_file_selection = gtk_file_selection_new (title); free(title); gtk_object_set_data (GTK_OBJECT (import_file_selection), "import_file_selection", import_file_selection); gtk_container_set_border_width (GTK_CONTAINER (import_file_selection), 10); ok_button = GTK_FILE_SELECTION (import_file_selection)->ok_button; gtk_object_set_data (GTK_OBJECT (import_file_selection), "ok_button", ok_button); gtk_widget_show (ok_button); GTK_WIDGET_SET_FLAGS (ok_button, GTK_CAN_DEFAULT); cancel_button = GTK_FILE_SELECTION (import_file_selection)->cancel_button; gtk_object_set_data (GTK_OBJECT (import_file_selection), "cancel_button", cancel_button); gtk_widget_show (cancel_button); GTK_WIDGET_SET_FLAGS (cancel_button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (import_file_selection), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (import_file_selection), "delete_event", (GtkSignalFunc)on_delete_event_wrapper, (gpointer)on_import_file_cancel); gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (import_file_selection)->ok_button), "clicked", (GtkSignalFunc)on_import_file_ok, NULL); gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (import_file_selection)->cancel_button), "clicked", (GtkSignalFunc)on_import_file_cancel, NULL); } void create_import_file_position_window (const char *tag) { GtkWidget *vbox4; GtkWidget *position_text_label; GtkWidget *hbox2; GtkWidget *label50; GtkWidget *position_spin; GtkWidget *hbox3; GtkWidget *position_cancel; GtkWidget *position_ok; import_file_position_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (import_file_position_window), "import_file_position_window", import_file_position_window); set_window_title(import_file_position_window, tag, "Import Position"); vbox4 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox4); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "vbox4", vbox4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox4); gtk_container_add (GTK_CONTAINER (import_file_position_window), vbox4); gtk_container_set_border_width (GTK_CONTAINER (vbox4), 6); position_text_label = gtk_label_new ("Select the Program Number at which you " "wish to begin importing patches (existing " "patches will be overwritten)"); gtk_widget_ref (position_text_label); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "position_text_label", position_text_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_text_label); gtk_box_pack_start (GTK_BOX (vbox4), position_text_label, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (position_text_label), GTK_JUSTIFY_FILL); gtk_label_set_line_wrap (GTK_LABEL (position_text_label), TRUE); gtk_misc_set_padding (GTK_MISC (position_text_label), 0, 6); hbox2 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox2); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "hbox2", hbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox2); gtk_box_pack_start (GTK_BOX (vbox4), hbox2, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox2), 6); label50 = gtk_label_new ("Program Number"); gtk_widget_ref (label50); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "label50", label50, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label50); gtk_box_pack_start (GTK_BOX (hbox2), label50, FALSE, TRUE, 2); import_file_position_spin_adj = gtk_adjustment_new (0, 0, 127, 1, 10, 0); position_spin = gtk_spin_button_new (GTK_ADJUSTMENT (import_file_position_spin_adj), 1, 0); gtk_widget_ref (position_spin); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "position_spin", position_spin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_spin); gtk_box_pack_start (GTK_BOX (hbox2), position_spin, FALSE, FALSE, 2); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (position_spin), TRUE); import_file_position_name_label = gtk_label_new ("default voice"); gtk_widget_ref (import_file_position_name_label); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "import_file_position_name_label", import_file_position_name_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (import_file_position_name_label); gtk_box_pack_start (GTK_BOX (hbox2), import_file_position_name_label, FALSE, FALSE, 2); gtk_label_set_justify (GTK_LABEL (import_file_position_name_label), GTK_JUSTIFY_LEFT); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox3); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "hbox3", hbox3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox4), hbox3, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox3), 6); position_cancel = gtk_button_new_with_label ("Cancel"); gtk_widget_ref (position_cancel); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "position_cancel", position_cancel, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_cancel); gtk_box_pack_start (GTK_BOX (hbox3), position_cancel, TRUE, FALSE, 12); position_ok = gtk_button_new_with_label ("Import"); gtk_widget_ref (position_ok); gtk_object_set_data_full (GTK_OBJECT (import_file_position_window), "position_ok", position_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_ok); gtk_box_pack_end (GTK_BOX (hbox3), position_ok, TRUE, FALSE, 12); gtk_signal_connect (GTK_OBJECT (import_file_position_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (import_file_position_window), "delete_event", (GtkSignalFunc)on_delete_event_wrapper, (gpointer)on_import_file_position_cancel); gtk_signal_connect (GTK_OBJECT (import_file_position_spin_adj), "value_changed", GTK_SIGNAL_FUNC(on_position_change), (gpointer)import_file_position_name_label); gtk_signal_connect (GTK_OBJECT (position_ok), "clicked", (GtkSignalFunc)on_import_file_position_ok, NULL); gtk_signal_connect (GTK_OBJECT (position_cancel), "clicked", (GtkSignalFunc)on_import_file_position_cancel, NULL); } void create_notice_window (const char *tag) { GtkWidget *vbox3; GtkWidget *hbox1; GtkWidget *notice_dismiss; notice_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (notice_window), "notice_window", notice_window); set_window_title(notice_window, tag, "Notice"); gtk_window_set_position (GTK_WINDOW (notice_window), GTK_WIN_POS_MOUSE); gtk_window_set_modal (GTK_WINDOW (notice_window), TRUE); vbox3 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox3); gtk_object_set_data_full (GTK_OBJECT (notice_window), "vbox3", vbox3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (notice_window), vbox3); notice_label_1 = gtk_label_new ("Some message\ngoes here"); gtk_widget_ref (notice_label_1); gtk_object_set_data_full (GTK_OBJECT (notice_window), "notice_label_1", notice_label_1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (notice_label_1); gtk_box_pack_start (GTK_BOX (vbox3), notice_label_1, TRUE, TRUE, 0); gtk_label_set_line_wrap (GTK_LABEL (notice_label_1), TRUE); gtk_misc_set_padding (GTK_MISC (notice_label_1), 10, 5); notice_label_2 = gtk_label_new ("more text\ngoes here"); gtk_widget_ref (notice_label_2); gtk_object_set_data_full (GTK_OBJECT (notice_window), "notice_label_2", notice_label_2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (notice_label_2); gtk_box_pack_start (GTK_BOX (vbox3), notice_label_2, FALSE, FALSE, 0); gtk_label_set_line_wrap (GTK_LABEL (notice_label_2), TRUE); gtk_misc_set_padding (GTK_MISC (notice_label_2), 10, 5); hbox1 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox1); gtk_object_set_data_full (GTK_OBJECT (notice_window), "hbox1", hbox1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox1); gtk_box_pack_start (GTK_BOX (vbox3), hbox1, FALSE, FALSE, 0); notice_dismiss = gtk_button_new_with_label ("Dismiss"); gtk_widget_ref (notice_dismiss); gtk_object_set_data_full (GTK_OBJECT (notice_window), "notice_dismiss", notice_dismiss, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (notice_dismiss); gtk_box_pack_start (GTK_BOX (hbox1), notice_dismiss, TRUE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (notice_dismiss), 7); gtk_signal_connect (GTK_OBJECT (notice_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (notice_window), "delete_event", GTK_SIGNAL_FUNC (on_delete_event_wrapper), (gpointer)on_notice_dismiss); gtk_signal_connect (GTK_OBJECT (notice_dismiss), "clicked", GTK_SIGNAL_FUNC (on_notice_dismiss), NULL); } void create_export_file_type_window (const char *tag) { GtkWidget *vbox1; GtkWidget *label1; GtkWidget *table1; GtkWidget *label2; GtkWidget *label3; GSList *save_type_group = NULL; GtkWidget *save_type_raw; GtkWidget *hseparator1; GtkWidget *label4; GtkWidget *table2; GtkWidget *label5; GtkWidget *export_file_start_spin; GtkWidget *hseparator2; GtkWidget *hbox3; GtkWidget *sft_position_cancel; GtkWidget *sft_position_ok; export_file_type_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (export_file_type_window), "export_file_type_window", export_file_type_window); set_window_title(export_file_type_window, tag, "Export File Type"); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox1); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "vbox1", vbox1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (export_file_type_window), vbox1); gtk_container_set_border_width (GTK_CONTAINER (vbox1), 6); label1 = gtk_label_new ("Select the patch file format you wish to use for this export:"); gtk_widget_ref (label1); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "label1", label1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label1); gtk_box_pack_start (GTK_BOX (vbox1), label1, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_FILL); gtk_label_set_line_wrap (GTK_LABEL (label1), TRUE); gtk_misc_set_padding (GTK_MISC (label1), 0, 6); table1 = gtk_table_new (2, 2, FALSE); gtk_widget_ref (table1); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "table1", table1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table1); gtk_box_pack_start (GTK_BOX (vbox1), table1, FALSE, FALSE, 0); label2 = gtk_label_new ("(32 patches, 4104 bytes, any suffix)"); gtk_widget_ref (label2); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "label2", label2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label2); gtk_table_attach (GTK_TABLE (table1), label2, 1, 2, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label2), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label2), 5, 0); label3 = gtk_label_new ("(any number of patches, 128 bytes per patch, hexter expects\".dx7\" suffix)"); gtk_widget_ref (label3); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "label3", label3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label3); gtk_table_attach (GTK_TABLE (table1), label3, 1, 2, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_label_set_line_wrap (GTK_LABEL (label3), TRUE); gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5); gtk_misc_set_padding (GTK_MISC (label3), 5, 0); export_file_type_sysex = gtk_radio_button_new_with_label (save_type_group, "DX7 sys-ex file"); save_type_group = gtk_radio_button_group (GTK_RADIO_BUTTON (export_file_type_sysex)); gtk_widget_ref (export_file_type_sysex); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_type_sysex", export_file_type_sysex, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_type_sysex); gtk_table_attach (GTK_TABLE (table1), export_file_type_sysex, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 4, 4); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (export_file_type_sysex), TRUE); save_type_raw = gtk_radio_button_new_with_label (save_type_group, "raw DX7 patch file"); save_type_group = gtk_radio_button_group (GTK_RADIO_BUTTON (save_type_raw)); gtk_widget_ref (save_type_raw); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "save_type_raw", save_type_raw, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (save_type_raw); gtk_table_attach (GTK_TABLE (table1), save_type_raw, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 4, 4); hseparator1 = gtk_hseparator_new (); gtk_widget_ref (hseparator1); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "hseparator1", hseparator1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox1), hseparator1, FALSE, FALSE, 2); label4 = gtk_label_new ("Select the program numbers for the range of patches you wish to export:"); gtk_widget_ref (label4); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "label4", label4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label4); gtk_box_pack_start (GTK_BOX (vbox1), label4, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (label4), GTK_JUSTIFY_FILL); gtk_label_set_line_wrap (GTK_LABEL (label4), TRUE); gtk_misc_set_padding (GTK_MISC (label4), 0, 6); table2 = gtk_table_new (2, 3, FALSE); gtk_widget_ref (table2); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "table2", table2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (table2); gtk_box_pack_start (GTK_BOX (vbox1), table2, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (table2), 4); gtk_table_set_col_spacings (GTK_TABLE (table2), 2); label5 = gtk_label_new ("Start Program Number"); gtk_widget_ref (label5); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "label5", label5, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label5); gtk_table_attach (GTK_TABLE (table2), label5, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label5), 0, 0.5); export_file_end_label = gtk_label_new ("End Program (inclusive)"); gtk_widget_ref (export_file_end_label); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_end_label", export_file_end_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_end_label); gtk_table_attach (GTK_TABLE (table2), export_file_end_label, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (export_file_end_label), 0, 0.5); gtk_widget_set_sensitive (export_file_end_label, FALSE); export_file_start_spin_adj = gtk_adjustment_new (0, 0, 96, 1, 10, 0); export_file_start_spin = gtk_spin_button_new (GTK_ADJUSTMENT (export_file_start_spin_adj), 1, 0); gtk_widget_ref (export_file_start_spin); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_start_spin", export_file_start_spin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_start_spin); gtk_table_attach (GTK_TABLE (table2), export_file_start_spin, 1, 2, 0, 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (export_file_start_spin), TRUE); export_file_end_spin_adj = gtk_adjustment_new (31, 0, 127, 1, 10, 0); export_file_end_spin = gtk_spin_button_new (GTK_ADJUSTMENT (export_file_end_spin_adj), 1, 0); gtk_widget_ref (export_file_end_spin); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_end_spin", export_file_end_spin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_end_spin); gtk_table_attach (GTK_TABLE (table2), export_file_end_spin, 1, 2, 1, 2, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (export_file_end_spin), TRUE); gtk_widget_set_sensitive (export_file_end_spin, FALSE); export_file_start_name = gtk_label_new ("(unset)"); gtk_widget_ref (export_file_start_name); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_start_name", export_file_start_name, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_start_name); gtk_table_attach (GTK_TABLE (table2), export_file_start_name, 2, 3, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_label_set_justify (GTK_LABEL (export_file_start_name), GTK_JUSTIFY_LEFT); gtk_misc_set_alignment (GTK_MISC (export_file_start_name), 0, 0.5); export_file_end_name = gtk_label_new ("(unset)"); gtk_widget_ref (export_file_end_name); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "export_file_end_name", export_file_end_name, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (export_file_end_name); gtk_table_attach (GTK_TABLE (table2), export_file_end_name, 2, 3, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (export_file_end_name), 0, 0.5); hseparator2 = gtk_hseparator_new (); gtk_widget_ref (hseparator2); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "hseparator2", hseparator2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator2); gtk_box_pack_start (GTK_BOX (vbox1), hseparator2, FALSE, FALSE, 2); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox3); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "hbox3", hbox3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox1), hbox3, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox3), 6); sft_position_cancel = gtk_button_new_with_label ("Cancel"); gtk_widget_ref (sft_position_cancel); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "sft_position_cancel", sft_position_cancel, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sft_position_cancel); gtk_box_pack_start (GTK_BOX (hbox3), sft_position_cancel, TRUE, FALSE, 12); sft_position_ok = gtk_button_new_with_label ("Export"); gtk_widget_ref (sft_position_ok); gtk_object_set_data_full (GTK_OBJECT (export_file_type_window), "sft_position_ok", sft_position_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sft_position_ok); gtk_box_pack_end (GTK_BOX (hbox3), sft_position_ok, TRUE, FALSE, 12); gtk_signal_connect (GTK_OBJECT (export_file_type_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (export_file_type_window), "delete_event", GTK_SIGNAL_FUNC (on_delete_event_wrapper), (gpointer)on_export_file_type_cancel); gtk_signal_connect (GTK_OBJECT (export_file_type_sysex), "pressed", GTK_SIGNAL_FUNC (on_export_file_type_press), (gpointer)0); gtk_signal_connect (GTK_OBJECT (save_type_raw), "pressed", GTK_SIGNAL_FUNC (on_export_file_type_press), (gpointer)1); gtk_signal_connect (GTK_OBJECT (export_file_start_spin_adj), "value_changed", GTK_SIGNAL_FUNC(on_export_file_position_change), (gpointer)0); gtk_signal_connect (GTK_OBJECT (export_file_end_spin_adj), "value_changed", GTK_SIGNAL_FUNC(on_export_file_position_change), (gpointer)1); gtk_signal_connect (GTK_OBJECT (sft_position_ok), "clicked", (GtkSignalFunc)on_export_file_type_ok, NULL); gtk_signal_connect (GTK_OBJECT (sft_position_cancel), "clicked", (GtkSignalFunc)on_export_file_type_cancel, NULL); } void create_export_file_selection (const char *tag) { char *title; GtkWidget *ok_button; GtkWidget *cancel_button; title = (char *)malloc(strlen(tag) + 21); sprintf(title, "%s - Export Patch Bank", tag); export_file_selection = gtk_file_selection_new (title); free(title); gtk_object_set_data (GTK_OBJECT (export_file_selection), "export_file_selection", export_file_selection); gtk_container_set_border_width (GTK_CONTAINER (export_file_selection), 10); ok_button = GTK_FILE_SELECTION (export_file_selection)->ok_button; gtk_object_set_data (GTK_OBJECT (export_file_selection), "ok_button", ok_button); gtk_widget_show (ok_button); GTK_WIDGET_SET_FLAGS (ok_button, GTK_CAN_DEFAULT); cancel_button = GTK_FILE_SELECTION (export_file_selection)->cancel_button; gtk_object_set_data (GTK_OBJECT (export_file_selection), "cancel_button", cancel_button); gtk_widget_show (cancel_button); GTK_WIDGET_SET_FLAGS (cancel_button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (export_file_selection), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (export_file_selection), "delete_event", (GtkSignalFunc)on_delete_event_wrapper, (gpointer)on_export_file_cancel); gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (export_file_selection)->ok_button), "clicked", (GtkSignalFunc)on_export_file_ok, NULL); gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (export_file_selection)->cancel_button), "clicked", (GtkSignalFunc)on_export_file_cancel, NULL); } void create_edit_save_position_window (const char *tag) { GtkWidget *vbox4; GtkWidget *hbox2; GtkWidget *edit_save_position_text_label; GtkWidget *label50; GtkWidget *position_spin; GtkWidget *hbox3; GtkWidget *position_cancel; GtkWidget *position_ok; edit_save_position_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (edit_save_position_window), "edit_save_position_window", edit_save_position_window); set_window_title(edit_save_position_window, tag, "Edit Save Position"); vbox4 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox4); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "vbox4", vbox4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox4); gtk_container_add (GTK_CONTAINER (edit_save_position_window), vbox4); gtk_container_set_border_width (GTK_CONTAINER (vbox4), 6); edit_save_position_text_label = gtk_label_new ("Select the Program Number into which you " "wish to save the edited patch " "(the existing patch will be overwritten):"); gtk_widget_ref (edit_save_position_text_label); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "edit_save_position_text_label", edit_save_position_text_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (edit_save_position_text_label); gtk_box_pack_start (GTK_BOX (vbox4), edit_save_position_text_label, TRUE, TRUE, 0); gtk_label_set_justify (GTK_LABEL (edit_save_position_text_label), GTK_JUSTIFY_FILL); gtk_label_set_line_wrap (GTK_LABEL (edit_save_position_text_label), TRUE); gtk_misc_set_padding (GTK_MISC (edit_save_position_text_label), 0, 6); hbox2 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox2); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "hbox2", hbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox2); gtk_box_pack_start (GTK_BOX (vbox4), hbox2, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox2), 6); label50 = gtk_label_new ("Program Number"); gtk_widget_ref (label50); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "label50", label50, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label50); gtk_box_pack_start (GTK_BOX (hbox2), label50, FALSE, TRUE, 2); edit_save_position_spin_adj = gtk_adjustment_new (0, 0, 127, 1, 10, 0); position_spin = gtk_spin_button_new (GTK_ADJUSTMENT (edit_save_position_spin_adj), 1, 0); gtk_widget_ref (position_spin); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "position_spin", position_spin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_spin); gtk_box_pack_start (GTK_BOX (hbox2), position_spin, FALSE, FALSE, 2); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (position_spin), TRUE); edit_save_position_name_label = gtk_label_new ("default voice"); gtk_widget_ref (edit_save_position_name_label); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "edit_save_position_name_label", edit_save_position_name_label, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (edit_save_position_name_label); gtk_box_pack_start (GTK_BOX (hbox2), edit_save_position_name_label, FALSE, FALSE, 2); gtk_label_set_justify (GTK_LABEL (edit_save_position_name_label), GTK_JUSTIFY_LEFT); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox3); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "hbox3", hbox3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox4), hbox3, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox3), 6); position_cancel = gtk_button_new_with_label ("Cancel"); gtk_widget_ref (position_cancel); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "position_cancel", position_cancel, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_cancel); gtk_box_pack_start (GTK_BOX (hbox3), position_cancel, TRUE, FALSE, 12); position_ok = gtk_button_new_with_label ("Save"); gtk_widget_ref (position_ok); gtk_object_set_data_full (GTK_OBJECT (edit_save_position_window), "position_ok", position_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (position_ok); gtk_box_pack_end (GTK_BOX (hbox3), position_ok, TRUE, FALSE, 12); gtk_signal_connect (GTK_OBJECT (edit_save_position_window), "destroy", GTK_SIGNAL_FUNC(gtk_main_quit), NULL); gtk_signal_connect (GTK_OBJECT (edit_save_position_window), "delete_event", (GtkSignalFunc)on_delete_event_wrapper, (gpointer)on_edit_save_position_cancel); gtk_signal_connect (GTK_OBJECT (edit_save_position_spin_adj), "value_changed", GTK_SIGNAL_FUNC(on_position_change), (gpointer)edit_save_position_name_label); gtk_signal_connect (GTK_OBJECT (position_ok), "clicked", (GtkSignalFunc)on_edit_save_position_ok, NULL); gtk_signal_connect (GTK_OBJECT (position_cancel), "clicked", (GtkSignalFunc)on_edit_save_position_cancel, NULL); } void create_windows(const char *instance_tag) { char tag[50]; /* build a nice identifier string for the window titles */ if (strlen(instance_tag) == 0) { strcpy(tag, "hexter v" VERSION); } else if (strstr(instance_tag, "hexter")) { if (strlen(instance_tag) > 49) { snprintf(tag, 50, "...%s", instance_tag + strlen(instance_tag) - 46); /* hope the unique info is at the end */ } else { strcpy(tag, instance_tag); } } else { if (strlen(instance_tag) > 42) { snprintf(tag, 50, "hexter ...%s", instance_tag + strlen(instance_tag) - 39); } else { snprintf(tag, 50, "hexter %s", instance_tag); } } create_main_window(tag); create_editor_window(tag); create_about_window(tag); create_import_file_selection(tag); create_import_file_position_window(tag); create_export_file_type_window(tag); create_export_file_selection(tag); create_edit_save_position_window(tag); create_notice_window(tag); } hexter-1.0.2/src/hexter_synth.c0000644000076400007640000010345412043506460013430 00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2012 Sean Bolton and others. * * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "hexter.h" #include "hexter_types.h" #include "hexter_synth.h" #include "dx7_voice_data.h" #include "dx7_voice.h" extern hexter_synth_t hexter_synth; /* * dx7_voice_off * * turn off a voice immediately */ inline void dx7_voice_off(dx7_voice_t* voice) { voice->status = DX7_VOICE_OFF; if (voice->instance->monophonic) voice->instance->mono_voice = NULL; voice->instance->current_voices--; } /* * dx7_voice_start_voice */ inline void dx7_voice_start_voice(dx7_voice_t *voice) { voice->status = DX7_VOICE_ON; voice->instance->current_voices++; } /* * hexter_instance_clear_held_keys */ static inline void hexter_instance_clear_held_keys(hexter_instance_t *instance) { int i; for (i = 0; i < 8; i++) instance->held_keys[i] = -1; } /* * hexter_instance_remove_held_key */ static inline void hexter_instance_remove_held_key(hexter_instance_t *instance, unsigned char key) { int i; /* check if this key is in list of held keys; if so, remove it and * shift the other keys up */ /* DEBUG_MESSAGE(DB_NOTE, " note-off key list before: %d %d %d %d %d %d %d %d\n", instance->held_keys[0], instance->held_keys[1], instance->held_keys[2], instance->held_keys[3], instance->held_keys[4], instance->held_keys[5], instance->held_keys[6], instance->held_keys[7]); */ for (i = 7; i >= 0; i--) { if (instance->held_keys[i] == key) break; } if (i >= 0) { for (; i < 7; i++) { instance->held_keys[i] = instance->held_keys[i + 1]; } instance->held_keys[7] = -1; } /* DEBUG_MESSAGE(DB_NOTE, " note-off key list after: %d %d %d %d %d %d %d %d\n", instance->held_keys[0], instance->held_keys[1], instance->held_keys[2], instance->held_keys[3], instance->held_keys[4], instance->held_keys[5], instance->held_keys[6], instance->held_keys[7]); */ } /* * hexter_synth_all_voices_off * * stop processing all notes of all instances immediately */ void hexter_synth_all_voices_off(void) { int i; dx7_voice_t *voice; for (i = 0; i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (_PLAYING(voice)) { if (voice->instance->held_keys[0] != -1) hexter_instance_clear_held_keys(voice->instance); dx7_voice_off(voice); } } } /* * hexter_instance_all_voices_off * * stop processing all notes within instance immediately */ void hexter_instance_all_voices_off(hexter_instance_t *instance) { int i; dx7_voice_t *voice; for (i = 0; i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (voice->instance == instance && _PLAYING(voice)) { dx7_voice_off(voice); } } hexter_instance_clear_held_keys(instance); } /* * hexter_instance_note_off * * handle a note off message */ void hexter_instance_note_off(hexter_instance_t *instance, unsigned char key, unsigned char rvelocity) { int i; dx7_voice_t *voice; hexter_instance_remove_held_key(instance, key); for (i = 0; i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (voice->instance == instance && (instance->monophonic ? (_PLAYING(voice)) : (_ON(voice) && (voice->key == key)))) { DEBUG_MESSAGE(DB_NOTE, " hexter_instance_note_off: key %d rvel %d voice %d note id %d\n", key, rvelocity, i, voice->note_id); dx7_voice_note_off(instance, voice, key, rvelocity); } /* if voice on */ } /* for all voices */ } /* * hexter_instance_all_notes_off * * put all notes into the released state */ void hexter_instance_all_notes_off(hexter_instance_t* instance) { int i; dx7_voice_t *voice; /* reset the sustain controller */ instance->cc[MIDI_CTL_SUSTAIN] = 0; for (i = 0; i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (voice->instance == instance && (_ON(voice) || _SUSTAINED(voice))) { dx7_voice_release_note(instance, voice); } } } /* * hexter_synth_free_voice_by_kill * * selects a voice for killing. the selection algorithm is a refinement * of the algorithm previously in fluid_synth_alloc_voice. */ static dx7_voice_t* hexter_synth_free_voice_by_kill(hexter_instance_t *instance) { int i; int best_prio = 10001; int this_voice_prio; dx7_voice_t *voice; int best_voice_index = -1; for (i = 0; i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (instance) { /* only look at playing voices of this instance */ if (_AVAILABLE(voice) || voice->instance != instance) continue; } else { /* safeguard against an available voice. */ if (_AVAILABLE(voice)) return voice; } /* Determine, how 'important' a voice is. * Start with an arbitrary number */ this_voice_prio = 10000; if (_RELEASED(voice)) { /* This voice is in the release phase. Consider it much less * important than a voice which is still held. */ this_voice_prio -= 2000; } else if (_SUSTAINED(voice)) { /* The sustain pedal is held down, and this voice is still "on" * because of this even though it has received a note off. * Consider it less important than voices which have not yet * received a note off. This decision is somewhat subjective, but * usually the sustain pedal is used to play 'more-voices-than- * fingers', and if so, it won't hurt as much to kill one of those * voices. */ this_voice_prio -= 1000; }; /* We are not enthusiastic about releasing voices, which have just been * started. Otherwise hitting a chord may result in killing notes * belonging to that very same chord. So subtract the age of the voice * from the priority - an older voice is just a little bit less * important than a younger voice. */ this_voice_prio -= (hexter_synth.note_id - voice->note_id); /* -FIX- not yet implemented: * /= take a rough estimate of loudness into account. Louder voices are more important. =/ * if (voice->volenv_section != FLUID_VOICE_ENVATTACK){ * this_voice_prio += voice->volenv_val*1000.; * }; */ /* check if this voice has less priority than the previous candidate. */ if (this_voice_prio < best_prio) best_voice_index = i, best_prio = this_voice_prio; } if (best_voice_index < 0) return NULL; voice = hexter_synth.voice[best_voice_index]; DEBUG_MESSAGE(DB_NOTE, " hexter_synth_free_voice_by_kill: no available voices, killing voice %d note id %d\n", best_voice_index, voice->note_id); dx7_voice_off(voice); return voice; } /* * hexter_synth_alloc_voice */ static dx7_voice_t * hexter_synth_alloc_voice(hexter_instance_t* instance, unsigned char key) { int i; dx7_voice_t* voice; /* If there is another voice on the same key, advance it * to the release phase. Note that a DX7 doesn't do this, * but we do it here to keep our CPU usage low. */ for (i = 0; i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (voice->instance == instance && voice->key == key && (_ON(voice) || _SUSTAINED(voice))) { dx7_voice_release_note(instance, voice); } } voice = NULL; if (instance->current_voices < instance->max_voices) { /* check if there's an available voice */ for (i = 0; i < hexter_synth.global_polyphony; i++) { if (_AVAILABLE(hexter_synth.voice[i])) { voice = hexter_synth.voice[i]; break; } } /* if not, then stop a running voice. */ if (voice == NULL) { voice = hexter_synth_free_voice_by_kill(NULL); } } else { /* at instance polyphony limit */ voice = hexter_synth_free_voice_by_kill(instance); } if (voice == NULL) { DEBUG_MESSAGE(DB_NOTE, " hexter_synth_alloc_voice: failed to allocate a voice (key=%d)\n", key); return NULL; } DEBUG_MESSAGE(DB_NOTE, " hexter_synth_alloc_voice: key %d voice %p\n", key, voice); return voice; } /* * hexter_instance_note_on */ void hexter_instance_note_on(hexter_instance_t *instance, unsigned char key, unsigned char velocity) { dx7_voice_t* voice; if (key > 127 || velocity > 127) return; /* MidiKeys 1.6b3 sends bad notes.... */ if (instance->monophonic) { if (instance->mono_voice) { voice = instance->mono_voice; DEBUG_MESSAGE(DB_NOTE, " hexter_instance_note_on: retriggering mono voice on new key %d\n", key); } else { voice = hexter_synth_alloc_voice(instance, key); if (voice == NULL) return; instance->mono_voice = voice; } } else { /* polyphonic mode */ voice = hexter_synth_alloc_voice(instance, key); if (voice == NULL) return; } voice->instance = instance; voice->note_id = hexter_synth.note_id++; dx7_voice_note_on(instance, voice, key, velocity); } /* * hexter_instance_key_pressure */ inline void hexter_instance_key_pressure(hexter_instance_t *instance, unsigned char key, unsigned char pressure) { int i; dx7_voice_t* voice; if (instance->key_pressure[key] == pressure) return; /* save it for future voices */ instance->key_pressure[key] = pressure; /* flag any playing voices as needing updating */ for (i = 0; i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (voice->instance == instance && _PLAYING(voice) && voice->key == key) { voice->mods_serial--; } } } /* * hexter_instance_damp_voices * * advance all sustained voices to the release phase (note that this does not * clear the sustain controller.) */ void hexter_instance_damp_voices(hexter_instance_t* instance) { int i; dx7_voice_t* voice; for (i = 0; i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (voice->instance == instance && _SUSTAINED(voice)) { /* this assumes the caller has cleared the sustain controller */ dx7_voice_release_note(instance, voice); } } } /* * hexter_instance_update_mod_wheel */ static inline void hexter_instance_update_mod_wheel(hexter_instance_t* instance) { int mod = instance->cc[MIDI_CTL_MSB_MODWHEEL] * 128 + instance->cc[MIDI_CTL_LSB_MODWHEEL]; if (mod > 16256) mod = 16256; instance->mod_wheel = (float)mod / 16256.0f; instance->mods_serial++; #ifdef HEXTER_DEBUG_CONTROL instance->feedback_mod = instance->cc[MIDI_CTL_MSB_MODWHEEL]; printf("new mod wheel value %d\n", instance->feedback_mod); #endif } /* * hexter_instance_update_breath */ static inline void hexter_instance_update_breath(hexter_instance_t* instance) { int mod = instance->cc[MIDI_CTL_MSB_BREATH] * 128 + instance->cc[MIDI_CTL_LSB_BREATH]; if (mod > 16256) mod = 16256; instance->breath = (float)mod / 16256.0f; instance->mods_serial++; } /* * hexter_instance_update_foot */ static inline void hexter_instance_update_foot(hexter_instance_t* instance) { int mod = instance->cc[MIDI_CTL_MSB_FOOT] * 128 + instance->cc[MIDI_CTL_LSB_FOOT]; if (mod > 16256) mod = 16256; instance->foot = (float)mod / 16256.0f; instance->mods_serial++; } /* * hexter_instance_update_volume */ static inline void hexter_instance_update_volume(hexter_instance_t* instance) { instance->cc_volume = instance->cc[MIDI_CTL_MSB_MAIN_VOLUME] * 128 + instance->cc[MIDI_CTL_LSB_MAIN_VOLUME]; if (instance->cc_volume > 16256) instance->cc_volume = 16256; } /* * hexter_instance_update_op_param * * Generic function to update operator parameters * */ static void hexter_instance_update_op_param(hexter_instance_t *instance, int opnum, int param, signed int value) { int i; dx7_voice_t* voice; /* scale the value */ switch(param){ case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 16: case 19: value = value * 100 / 16384; /* 0 to 99 */ break; case 11: case 12: case 14: value = value * 4 / 16384; /* 0 to 3 */ break; case 13: case 15: value = value * 8 / 16384; /* 0 to 7 */ break; case 17: value = value * 2 / 16384; /* 0 or 1 */ break; case 18: value = value * 32 / 16384; /* 0 to 31 */ break; case 20: value = value * 15 / 16384; /* 0 to 14 */ break; } /* update edit buffer */ if (!pthread_mutex_trylock(&instance->patches_mutex)) { instance->current_patch_buffer[((5 - opnum) * 21) + param] = value; pthread_mutex_unlock(&instance->patches_mutex); } else { /* In the unlikely event that we get here, it means another thread is * currently updating the current patch buffer. We could do something * like the 'pending_program_change' mechanism to cache this change * until we can lock the mutex, if it's really important. */ } /* check if any playing voices need updating */ for (i = 0; i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (voice->instance == instance && _PLAYING(voice)) { dx7_op_t *op = &voice->op[opnum]; /* set values */ switch (param) { case 0: op->eg.base_rate[0] = value; break; case 1: op->eg.base_rate[1] = value; break; case 2: op->eg.base_rate[2] = value; break; case 3: op->eg.base_rate[3] = value; break; case 4: op->eg.base_level[0] = value; break; case 5: op->eg.base_level[1] = value; break; case 6: op->eg.base_level[2] = value; break; case 7: op->eg.base_level[3] = value; break; case 8: op->level_scaling_bkpoint = value; break; case 9: op->level_scaling_l_depth = value; break; case 10: op->level_scaling_r_depth = value; break; case 11: op->level_scaling_l_curve = value; break; case 12: op->level_scaling_r_curve = value; break; case 13: op->rate_scaling = value; break; case 14: op->amp_mod_sens = value; break; case 15: op->velocity_sens = value; break; case 16: op->output_level = value; break; case 17: op->osc_mode = value; break; case 18: op->coarse = value; break; case 19: op->fine = value; break; case 20: op->detune = value; break; } /* do recalculations */ switch (param) { case 17: /* osc mode */ case 18: /* coarse */ case 19: /* fine */ case 20: /* detune */ dx7_op_recalculate_increment(instance, op); break; /* which other operator params need a recalc ?? */ } } } } /* * hexter_instance_update_fc */ static inline void hexter_instance_update_fc(hexter_instance_t *instance, int opnum, signed int value) { hexter_instance_update_op_param(instance, opnum, 18, value * 128); } /* * hexter_instance_handle_nrpn * * Update operator parameters via NRPN 0-125. */ static void hexter_instance_handle_nrpn(hexter_instance_t *instance) { int nrpn = instance->cc[MIDI_CTL_NONREG_PARM_NUM_MSB] * 128 + instance->cc[MIDI_CTL_NONREG_PARM_NUM_LSB]; int value = instance->cc[MIDI_CTL_MSB_DATA_ENTRY] * 128 + instance->cc[MIDI_CTL_LSB_DATA_ENTRY]; int opnum; int op_param; if (nrpn >= 126) return; /* for now we only support operator params */ opnum = nrpn / 21; /* 0 = OP6, 5 = OP1 */ op_param = nrpn - (21 * opnum); hexter_instance_update_op_param(instance, 5 - opnum, op_param, value); } #ifdef HEXTER_DEBUG_CONTROL void dx7_lfo_set_speed_x(hexter_instance_t *instance); /* prototype for test code below */ #endif /* * hexter_instance_control_change */ void hexter_instance_control_change(hexter_instance_t *instance, unsigned int param, signed int value) { switch (param) { /* these controls we act on always */ case MIDI_CTL_SUSTAIN: DEBUG_MESSAGE(DB_NOTE, " hexter_instance_control_change: got sustain control of %d\n", value); instance->cc[param] = value; if (value < 64) hexter_instance_damp_voices(instance); return; case MIDI_CTL_ALL_SOUNDS_OFF: instance->cc[param] = value; hexter_instance_all_voices_off(instance); return; case MIDI_CTL_RESET_CONTROLLERS: instance->cc[param] = value; hexter_instance_init_controls(instance); return; case MIDI_CTL_ALL_NOTES_OFF: instance->cc[param] = value; hexter_instance_all_notes_off(instance); return; } if (param == MIDI_CTL_REGIST_PARM_NUM_LSB || param == MIDI_CTL_REGIST_PARM_NUM_MSB) { /* reset NRPN numbers on receipt of RPN */ instance->cc[MIDI_CTL_NONREG_PARM_NUM_LSB] = 127; instance->cc[MIDI_CTL_NONREG_PARM_NUM_MSB] = 127; } if (instance->cc[param] == value) /* do nothing if control value has not changed */ return; instance->cc[param] = value; switch (param) { #ifdef HEXTER_DEBUG_CONTROL case MIDI_CTL_MSB_PAN: /* panning */ // hexter_instance_channel_pressure(instance, value); // { float f; // f = 52.75f / (instance->sample_rate * 0.001f * (float)value); // instance->amp_mod_max_slew = FLOAT_TO_FP(f); // printf("new amp_mod_max_slew, %dms => %f = %d\n", value, f, instance->amp_mod_max_slew); // } { if (value == 0) instance->ramp_duration = 1; else instance->ramp_duration = (int)(instance->sample_rate * 0.001f * (float)value); /* value ms ramp */ printf("new ramp_duration, %dms => %d frames\n", value, instance->ramp_duration); dx7_lfo_set_speed_x(instance); } break; case MIDI_CTL_MSB_EXPRESSION: /* 'expression' */ hexter_instance_key_pressure(instance, 60, value); break; #endif /* HEXTER_DEBUG_CONTROL */ case MIDI_CTL_MSB_MODWHEEL: case MIDI_CTL_LSB_MODWHEEL: hexter_instance_update_mod_wheel(instance); break; case MIDI_CTL_MSB_BREATH: case MIDI_CTL_LSB_BREATH: hexter_instance_update_breath(instance); break; case MIDI_CTL_MSB_FOOT: case MIDI_CTL_LSB_FOOT: hexter_instance_update_foot(instance); break; case MIDI_CTL_MSB_MAIN_VOLUME: case MIDI_CTL_LSB_MAIN_VOLUME: hexter_instance_update_volume(instance); break; case MIDI_CTL_MSB_GENERAL_PURPOSE1: case MIDI_CTL_MSB_GENERAL_PURPOSE2: case MIDI_CTL_MSB_GENERAL_PURPOSE3: case MIDI_CTL_MSB_GENERAL_PURPOSE4: hexter_instance_update_fc(instance, param - MIDI_CTL_MSB_GENERAL_PURPOSE1, value); break; case MIDI_CTL_GENERAL_PURPOSE5: case MIDI_CTL_GENERAL_PURPOSE6: hexter_instance_update_fc(instance, param - MIDI_CTL_GENERAL_PURPOSE5 + 4, value); break; /* handle NRPN as real-time parameter change */ case MIDI_CTL_MSB_DATA_ENTRY: case MIDI_CTL_LSB_DATA_ENTRY: if (instance->cc[MIDI_CTL_NONREG_PARM_NUM_MSB] != 127 && instance->cc[MIDI_CTL_NONREG_PARM_NUM_LSB] != 127) { hexter_instance_handle_nrpn(instance); } break; /* what others should we respond to? */ /* these we ignore (let the host handle): * BANK_SELECT_MSB * BANK_SELECT_LSB * RPN_MSB * RPN_LSB * (may want to eventually implement RPN (0, 0) Pitch Bend Sensitivity) */ } } /* * hexter_instance_channel_pressure */ void hexter_instance_channel_pressure(hexter_instance_t *instance, signed int pressure) { if (instance->channel_pressure == pressure) return; instance->channel_pressure = pressure; instance->mods_serial++; } /* * hexter_instance_pitch_bend */ void hexter_instance_pitch_bend(hexter_instance_t *instance, signed int value) { instance->pitch_wheel = value; /* ALSA pitch bend is already -8192 - 8191 */ instance->pitch_bend = (double)(value * instance->pitch_bend_range) / 8192.0; } /* * hexter_instance_init_controls */ void hexter_instance_init_controls(hexter_instance_t *instance) { int i; /* if sustain was on, we need to damp any sustained voices */ if (HEXTER_INSTANCE_SUSTAINED(instance)) { instance->cc[MIDI_CTL_SUSTAIN] = 0; hexter_instance_damp_voices(instance); } for (i = 0; i < 128; i++) { instance->key_pressure[i] = 0; instance->cc[i] = 0; } instance->channel_pressure = 0; instance->pitch_wheel = 0; instance->pitch_bend = 0.0; instance->cc[MIDI_CTL_MSB_MAIN_VOLUME] = 127; /* full volume */ instance->cc[MIDI_CTL_NONREG_PARM_NUM_LSB] = 127; /* 'null' */ instance->cc[MIDI_CTL_NONREG_PARM_NUM_MSB] = 127; /* 'null' */ hexter_instance_update_mod_wheel(instance); hexter_instance_update_breath(instance); hexter_instance_update_foot(instance); hexter_instance_update_volume(instance); instance->mods_serial++; } static inline int limit(int x, int min, int max) { if (x < min) return min; if (x > max) return max; return x; } /* * hexter_instance_set_performance_data */ void hexter_instance_set_performance_data(hexter_instance_t *instance) { uint8_t *perf_buffer = instance->performance_buffer; /* set instance performance parameters */ /* -FIX- later these will optionally come from patch */ instance->pitch_bend_range = limit(perf_buffer[3], 0, 12); instance->portamento_time = limit(perf_buffer[5], 0, 99); instance->mod_wheel_sensitivity = limit(perf_buffer[9], 0, 15); instance->mod_wheel_assign = limit(perf_buffer[10], 0, 7); instance->foot_sensitivity = limit(perf_buffer[11], 0, 15); instance->foot_assign = limit(perf_buffer[12], 0, 7); instance->pressure_sensitivity = limit(perf_buffer[13], 0, 15); instance->pressure_assign = limit(perf_buffer[14], 0, 7); instance->breath_sensitivity = limit(perf_buffer[15], 0, 15); instance->breath_assign = limit(perf_buffer[16], 0, 7); if (perf_buffer[0] & 0x01) { /* 0.5.9 compatibility */ instance->pitch_bend_range = 2; instance->portamento_time = 0; instance->mod_wheel_sensitivity = 0; instance->foot_sensitivity = 0; instance->pressure_sensitivity = 0; instance->breath_sensitivity = 0; } } /* * hexter_instance_select_program */ void hexter_instance_select_program(hexter_instance_t *instance, unsigned long bank, unsigned long program) { /* no support for banks, so we just ignore the bank number */ if (program >= 128) return; instance->current_program = program; if (instance->overlay_program == program) { /* edit buffer applies */ memcpy(instance->current_patch_buffer, instance->overlay_patch_buffer, DX7_VOICE_SIZE_UNPACKED); } else { dx7_patch_unpack(instance->patches, program, instance->current_patch_buffer); } } /* * hexter_instance_set_program_descriptor */ int hexter_instance_set_program_descriptor(hexter_instance_t *instance, DSSI_Program_Descriptor *pd, unsigned long bank, unsigned long program) { static char name[11]; /* no support for banks, so we just ignore the bank number */ if (program >= 128) { return 0; } pd->Bank = bank; pd->Program = program; /* -FIX- some character set conversion would be appropriate here, but to what? */ dx7_voice_copy_name(name, &instance->patches[program]); pd->Name = name; return 1; } /* * hexter_instance_handle_patches */ char * hexter_instance_handle_patches(hexter_instance_t *instance, const char *key, const char *value) { int section; DEBUG_MESSAGE(DB_DATA, " hexter_instance_handle_patches: received new '%s'\n", key); section = key[7] - '0'; if (section < 0 || section > 3) return dssp_error_message("patch configuration failed: invalid section '%c'", key[7]); pthread_mutex_lock(&instance->patches_mutex); if (!decode_7in6(value, 32 * sizeof(dx7_patch_t), (uint8_t *)&instance->patches[section * 32])) { pthread_mutex_unlock(&instance->patches_mutex); return dssp_error_message("patch configuration failed: corrupt data"); } if ((instance->current_program / 32) == section && instance->current_program != instance->overlay_program) dx7_patch_unpack(instance->patches, instance->current_program, instance->current_patch_buffer); pthread_mutex_unlock(&instance->patches_mutex); return NULL; /* success */ } /* * hexter_instance_handle_edit_buffer */ char * hexter_instance_handle_edit_buffer(hexter_instance_t *instance, const char *value) { struct { int program; uint8_t buffer[DX7_VOICE_SIZE_UNPACKED]; } edit_buffer; pthread_mutex_lock(&instance->patches_mutex); if (!strcmp(value, "off")) { DEBUG_MESSAGE(DB_DATA, " hexter_instance_handle_edit_buffer: cancelled\n"); if (instance->current_program == instance->overlay_program) { dx7_patch_unpack(instance->patches, instance->current_program, instance->current_patch_buffer); } instance->overlay_program = -1; } else { DEBUG_MESSAGE(DB_DATA, " hexter_instance_handle_edit_buffer: received new overlay\n"); if (!decode_7in6(value, sizeof(edit_buffer), (uint8_t *)&edit_buffer)) { pthread_mutex_unlock(&instance->patches_mutex); return dssp_error_message("patch edit failed: corrupt data"); } instance->overlay_program = edit_buffer.program; memcpy(instance->overlay_patch_buffer, edit_buffer.buffer, DX7_VOICE_SIZE_UNPACKED); if (instance->current_program == instance->overlay_program) { /* applies to current patch also */ memcpy(instance->current_patch_buffer, instance->overlay_patch_buffer, DX7_VOICE_SIZE_UNPACKED); } } pthread_mutex_unlock(&instance->patches_mutex); return NULL; /* success */ } char * hexter_instance_handle_performance(hexter_instance_t *instance, const char *value) { pthread_mutex_lock(&instance->patches_mutex); DEBUG_MESSAGE(DB_DATA, " hexter_instance_handle_performance: received new global performance parameters\n"); if (!decode_7in6(value, DX7_PERFORMANCE_SIZE, instance->performance_buffer)) { pthread_mutex_unlock(&instance->patches_mutex); return dssp_error_message("performance edit failed: corrupt data"); } hexter_instance_set_performance_data(instance); pthread_mutex_unlock(&instance->patches_mutex); /* we eventually may want to update playing voices here */ return NULL; /* success */ } /* * hexter_instance_handle_monophonic */ char * hexter_instance_handle_monophonic(hexter_instance_t *instance, const char *value) { int mode = -1; if (!strcmp(value, "on")) mode = DSSP_MONO_MODE_ON; else if (!strcmp(value, "once")) mode = DSSP_MONO_MODE_ONCE; else if (!strcmp(value, "both")) mode = DSSP_MONO_MODE_BOTH; else if (!strcmp(value, "off")) mode = DSSP_MONO_MODE_OFF; if (mode == -1) { return dssp_error_message("error: monophonic value not recognized"); } if (mode == DSSP_MONO_MODE_OFF) { /* polyphonic mode */ instance->monophonic = 0; instance->max_voices = instance->polyphony; } else { /* one of the monophonic modes */ if (!instance->monophonic) { dssp_voicelist_mutex_lock(); hexter_instance_all_voices_off(instance); instance->max_voices = 1; instance->mono_voice = NULL; hexter_instance_clear_held_keys(instance); dssp_voicelist_mutex_unlock(); } instance->monophonic = mode; } return NULL; /* success */ } /* * hexter_instance_handle_polyphony */ char * hexter_instance_handle_polyphony(hexter_instance_t *instance, const char *value) { int polyphony = atoi(value); int i; dx7_voice_t *voice; if (polyphony < 1 || polyphony > HEXTER_MAX_POLYPHONY) { return dssp_error_message("error: polyphony value out of range"); } /* set the new limit */ instance->polyphony = polyphony; if (!instance->monophonic) { dssp_voicelist_mutex_lock(); instance->max_voices = polyphony; /* turn off any voices above the new limit */ for (i = 0; instance->current_voices > instance->max_voices && i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (voice->instance == instance && _PLAYING(voice)) { if (voice->instance->held_keys[0] != -1) hexter_instance_clear_held_keys(voice->instance); dx7_voice_off(voice); } } dssp_voicelist_mutex_unlock(); } return NULL; /* success */ } /* * hexter_synth_handle_global_polyphony */ char * hexter_synth_handle_global_polyphony(const char *value) { int polyphony = atoi(value); int i; dx7_voice_t *voice; if (polyphony < 1 || polyphony > HEXTER_MAX_POLYPHONY) { return dssp_error_message("error: polyphony value out of range"); } dssp_voicelist_mutex_lock(); /* set the new limit */ hexter_synth.global_polyphony = polyphony; /* turn off any voices above the new limit */ for (i = polyphony; i < HEXTER_MAX_POLYPHONY; i++) { voice = hexter_synth.voice[i]; if (_PLAYING(voice)) { if (voice->instance->held_keys[0] != -1) hexter_instance_clear_held_keys(voice->instance); dx7_voice_off(voice); } } dssp_voicelist_mutex_unlock(); return NULL; /* success */ } /* * hexter_synth_render_voices */ void hexter_synth_render_voices(unsigned long samples_done, unsigned long sample_count, int do_control_update) { hexter_instance_t *instance; unsigned long i; dx7_voice_t* voice; /* update each LFO */ for (instance = hexter_synth.instances; instance; instance = instance->next) { dx7_lfo_update(instance, sample_count); } /* render each active voice */ for (i = 0; i < hexter_synth.global_polyphony; i++) { voice = hexter_synth.voice[i]; if (_PLAYING(voice)) { if (voice->mods_serial != voice->instance->mods_serial) { dx7_voice_update_mod_depths(voice->instance, voice); voice->mods_serial = voice->instance->mods_serial; } dx7_voice_render(voice->instance, voice, voice->instance->output + samples_done, sample_count, do_control_update); } } } hexter-1.0.2/src/gui_widgy_alg.c0000644000076400007640000003364112043506530013514 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011, 2012 Sean Bolton. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #include GtkWidget *we_alg_drawing_area; static PangoLayout *alg_layout; static PangoRectangle op_char; static int op_width, op_height, op_x_spacing, op_y_spacing, alg_x_base, alg_y_top, alg_y_base, alg_x_stride, alg_y_stride; void we_alg_drawing_area_new(void) { we_alg_drawing_area = gtk_drawing_area_new(); alg_layout = gtk_widget_create_pango_layout (we_alg_drawing_area, "3"); pango_layout_get_pixel_extents (alg_layout, &op_char, NULL); /* see also gtk_calendar_size_request() for getting width and height, reusing a layout, ... */ /* if (op_char.x != 0 || op_char.y != 0) { -- non-zero origin is not handled * printf("-FIX- pango reports non-zero origin for font layout: op_char.x = %d || op_char.y = %d\n", op_char.x, op_char.y); * } */ op_width = (op_char.width + 5) & (~1); op_height = (op_char.height + 5) & (~1); op_x_spacing = op_y_spacing = (op_char.width & (~1)) + 1; alg_x_base = we_alg_drawing_area->style->xthickness + 2 + op_x_spacing + op_width / 2; alg_y_top = we_alg_drawing_area->style->ythickness + 2 + op_y_spacing + op_height / 2; alg_x_stride = op_width + op_x_spacing; alg_y_stride = op_height + op_y_spacing; alg_y_base = alg_y_top + alg_y_stride * 3; gtk_widget_set_size_request(we_alg_drawing_area, alg_x_base * 2 + alg_x_stride * 5, alg_y_top * 2 + alg_y_stride * 3); } static void alg_draw_op(cairo_t *cr, int x, int y, int op) { char buf[2]; int x0 = alg_x_base + alg_x_stride * x; int y0 = alg_y_base - alg_y_stride * y; buf[0] = '0' + op; buf[1] = 0; cairo_set_line_width(cr, 1.0); cairo_rectangle(cr, (float)(x0 - op_width / 2) + 0.5f, (float)(y0 - op_height / 2) + 0.5f, op_width, op_height); cairo_set_source_rgb(cr, 0.5, 1, 1); cairo_fill_preserve(cr); cairo_set_source_rgb(cr, 0, 0, 0); cairo_stroke(cr); cairo_set_source_rgb(cr, 0, 0, 0); cairo_move_to (cr, (float)(x0 - op_char.x - op_char.width / 2), (float)(y0 - op_char.y - op_char.height / 2)); pango_layout_set_text (alg_layout, buf, -1); pango_cairo_show_layout (cr, alg_layout); } static void alg_draw_connect(cairo_t *cr, int in_x, int in_y, int out_x, int out_y) { int in_x0 = alg_x_base + alg_x_stride * in_x; int in_y0 = alg_y_base - alg_y_stride * in_y; int in_yin = in_y0 - op_height / 2; int ymid = in_y0 - alg_y_stride / 2 - 1; int out_x0 = alg_x_base + alg_x_stride * out_x; int out_y0 = alg_y_base - alg_y_stride * out_y; int out_yout = out_y0 + op_height / 2; cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1.0); cairo_move_to(cr, (float)in_x0 + 0.5f, (float)in_yin + 0.5f); if (in_x != out_x) { cairo_line_to(cr, (float)in_x0 + 0.5f, (float)ymid + 0.5f); cairo_line_to(cr, (float)out_x0 + 0.5f, (float)ymid + 0.5f); } cairo_line_to(cr, (float)out_x0 + 0.5f, (float)out_yout + 0.5f); cairo_stroke(cr); } static void alg_draw_bus(cairo_t *cr, int a_x, int b_x, int y) { int a_x0 = alg_x_base + alg_x_stride * a_x; int b_x0 = alg_x_base + alg_x_stride * b_x; int y0 = alg_y_base - alg_y_stride * y; int yout = y0 + op_height / 2; int ybus = y0 + alg_y_stride / 2 + 1; cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1.0); cairo_move_to(cr, (float)a_x0 + 0.5f, (float)yout + 0.5f); cairo_line_to(cr, (float)a_x0 + 0.5f, (float)ybus + 0.5f); if (a_x != b_x) { cairo_line_to(cr, (float)b_x0 + 0.5f, (float)ybus + 0.5f); cairo_line_to(cr, (float)b_x0 + 0.5f, (float)yout + 0.5f); } cairo_stroke(cr); } static void alg_draw_feedback(cairo_t *cr, int in_x, int in_y, int out_x, int out_y) { int in_x0 = alg_x_base + alg_x_stride * in_x; int in_y0 = alg_y_base - alg_y_stride * in_y; int in_yin = in_y0 - op_height / 2; int in_ytop = in_y0 - alg_y_stride / 2 - 1; int in_xright = in_x0 + alg_x_stride / 2 + 1; int out_x0 = alg_x_base + alg_x_stride * out_x; int out_y0 = alg_y_base - alg_y_stride * out_y; int out_xright = in_xright; int out_xout = out_x0 + op_width / 2; cairo_set_source_rgb(cr, 0, 0, 0); cairo_set_line_width(cr, 1.0); cairo_move_to(cr, (float)in_x0 + 0.5f, (float)in_yin + 0.5f); cairo_line_to(cr, (float)in_x0 + 0.5f, (float)in_ytop + 0.5f); cairo_line_to(cr, (float)in_xright + 0.5f, (float)in_ytop + 0.5f); cairo_line_to(cr, (float)out_xright + 0.5f, (float)out_y0 + 0.5f); cairo_line_to(cr, (float)out_xout + 0.5f, (float)out_y0 + 0.5f); cairo_stroke(cr); } struct _algdef { char op, a, b; }; #define OP_OP1 1 /* a is op x position, b is op y position */ #define OP_OP6 6 #define OP_CONNECT 7 /* a is 'in' or lower op, b is 'out' or upper op */ #define OP_BUS 8 /* a and b are ops to bus */ #define OP_FEEDBACK 9 /* a is 'in' or upper op, b is 'side' or lower op */ #define C OP_CONNECT #define B OP_BUS #define FB OP_FEEDBACK static struct _algdef *_algdef[32] = { (struct _algdef []){ { 1, 2, 0 }, { 2, 2, 1 }, { 3, 3, 0 }, { 4, 3, 1 }, { 5, 3, 2 }, { 6, 3, 3 }, /* 1 */ { C, 1, 2 }, { C, 3, 4 }, { C, 4, 5 }, { C, 5, 6 }, { B, 1, 3 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 2, 1 }, { 3, 3, 0 }, { 4, 3, 1 }, { 5, 3, 2 }, { 6, 3, 3 }, /* 2 */ { C, 1, 2 }, { C, 3, 4 }, { C, 4, 5 }, { C, 5, 6 }, { B, 1, 3 }, { FB, 2, 2 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 2, 1 }, { 3, 2, 2 }, { 4, 3, 0 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 3 */ { C, 1, 2 }, { C, 2, 3 }, { C, 4, 5 }, { C, 5, 6 }, { B, 1, 4 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 2, 1 }, { 3, 2, 2 }, { 4, 3, 0 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 4 */ { C, 1, 2 }, { C, 2, 3 }, { C, 4, 5 }, { C, 5, 6 }, { B, 1, 4 }, { FB, 6, 4 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 3, 0 }, { 6, 3, 1 }, /* 5 */ { C, 1, 2 }, { C, 3, 4 }, { C, 5, 6 }, { B, 1, 3 }, { B, 3, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 3, 0 }, { 6, 3, 1 }, /* 6 */ { C, 1, 2 }, { C, 3, 4 }, { C, 5, 6 }, { B, 1, 3 }, { B, 3, 5 }, { FB, 6, 5 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 7 */ { C, 1, 2 }, { C, 3, 4 }, { C, 3, 5 }, { C, 5, 6 }, { B, 1, 3 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 8 */ { C, 1, 2 }, { C, 3, 4 }, { C, 3, 5 }, { C, 5, 6 }, { B, 1, 3 }, { FB, 4, 4 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 9 */ { C, 1, 2 }, { C, 3, 4 }, { C, 3, 5 }, { C, 5, 6 }, { B, 1, 3 }, { FB, 2, 2 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 1, 2 }, { 4, 2, 0 }, { 5, 2, 1 }, { 6, 3, 1 }, /* 10 */ { C, 1, 2 }, { C, 2, 3 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 4 }, { FB, 3, 3 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 1, 2 }, { 4, 2, 0 }, { 5, 2, 1 }, { 6, 3, 1 }, /* 11 */ { C, 1, 2 }, { C, 2, 3 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 4 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 3, 0 }, { 4, 2, 1 }, { 5, 3, 1 }, { 6, 4, 1 }, /* 12 */ { C, 1, 2 }, { C, 3, 4 }, { C, 3, 5 }, { C, 3, 6 }, { B, 1, 3 }, { FB, 2, 2 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 3, 0 }, { 4, 2, 1 }, { 5, 3, 1 }, { 6, 4, 1 }, /* 13 */ { C, 1, 2 }, { C, 3, 4 }, { C, 3, 5 }, { C, 3, 6 }, { B, 1, 3 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 2, 2 }, { 6, 3, 2 }, /* 14 */ { C, 1, 2 }, { C, 3, 4 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 3 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 2, 2 }, { 6, 3, 2 }, /* 15 */ { C, 1, 2 }, { C, 3, 4 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 3 }, { FB, 2, 2 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 1, 1 }, { 3, 2, 1 }, { 4, 2, 2 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 16 */ { C, 1, 2 }, { C, 1, 3 }, { C, 3, 4 }, { C, 1, 5 }, { C, 5, 6 }, { B, 1, 1 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 1, 1 }, { 3, 2, 1 }, { 4, 2, 2 }, { 5, 3, 1 }, { 6, 3, 2 }, /* 17 */ { C, 1, 2 }, { C, 1, 3 }, { C, 3, 4 }, { C, 1, 5 }, { C, 5, 6 }, { B, 1, 1 }, { FB, 2, 2 }, { 0 } }, (struct _algdef []){ { 1, 2, 0 }, { 2, 1, 1 }, { 3, 2, 1 }, { 4, 3, 1 }, { 5, 3, 2 }, { 6, 3, 3 }, /* 18 */ { C, 1, 2 }, { C, 1, 3 }, { C, 1, 4 }, { C, 4, 5 }, { C, 5, 6 }, { B, 1, 1 }, { FB, 3, 3 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 1, 2 }, { 4, 2, 0 }, { 5, 3, 0 }, { 6, 2, 1 }, /* 19 */ { C, 1, 2 }, { C, 2, 3 }, { C, 4, 6 }, { C, 5, 6 }, { B, 1, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 1, 1 }, { 4, 3, 0 }, { 5, 3, 1 }, { 6, 4, 1 }, /* 20 */ { C, 1, 3 }, { C, 2, 3 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 2 }, { B, 2, 4 }, { FB, 3, 3 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 1, 1 }, { 4, 3, 0 }, { 5, 4, 0 }, { 6, 3, 1 }, /* 21 */ { C, 1, 3 }, { C, 2, 3 }, { C, 4, 6 }, { C, 5, 6 }, { B, 1, 2 }, { B, 2, 4 }, { B, 4, 5 }, { FB, 3, 3 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 3, 0 }, { 5, 4, 0 }, { 6, 3, 1 }, /* 22 */ { C, 1, 2 }, { C, 3, 6 }, { C, 4, 6 }, { C, 5, 6 }, { B, 1, 3 }, { B, 3, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 2, 1 }, { 4, 3, 0 }, { 5, 4, 0 }, { 6, 3, 1 }, /* 23 */ { C, 2, 3 }, { C, 4, 6 }, { C, 5, 6 }, { B, 1, 2 }, { B, 2, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 3, 0 }, { 4, 4, 0 }, { 5, 5, 0 }, { 6, 4, 1 }, /* 24 */ { C, 3, 6 }, { C, 4, 6 }, { C, 5, 6 }, { B, 1, 2 }, { B, 2, 3 }, { B, 3, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 3, 0 }, { 4, 4, 0 }, { 5, 5, 0 }, { 6, 4, 1 }, /* 25 */ { C, 4, 6 }, { C, 5, 6 }, { B, 1, 2 }, { B, 2, 3 }, { B, 3, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 2, 1 }, { 4, 3, 0 }, { 5, 3, 1 }, { 6, 4, 1 }, /* 26 */ { C, 2, 3 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 2 }, { B, 2, 4 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 2, 1 }, { 4, 3, 0 }, { 5, 3, 1 }, { 6, 4, 1 }, /* 27 */ { C, 2, 3 }, { C, 4, 5 }, { C, 4, 6 }, { B, 1, 2 }, { B, 2, 4 }, { FB, 3, 3 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 1, 1 }, { 3, 2, 0 }, { 4, 2, 1 }, { 5, 2, 2 }, { 6, 3, 0 }, /* 28 */ { C, 1, 2 }, { C, 3, 4 }, { C, 4, 5 }, { B, 1, 3 }, { B, 3, 6 }, { FB, 5, 5 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 3, 0 }, { 4, 3, 1 }, { 5, 4, 0 }, { 6, 4, 1 }, /* 29 */ { C, 3, 4 }, { C, 5, 6 }, { B, 1, 2 }, { B, 2, 3 }, { B, 3, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 3, 0 }, { 4, 3, 1 }, { 5, 3, 2 }, { 6, 4, 0 }, /* 30 */ { C, 3, 4 }, { C, 4, 5 }, { B, 1, 2 }, { B, 2, 3 }, { B, 3, 6 }, { FB, 5, 5 }, { 0 } }, (struct _algdef []){ { 1, 1, 0 }, { 2, 2, 0 }, { 3, 3, 0 }, { 4, 4, 0 }, { 5, 5, 0 }, { 6, 5, 1 }, /* 31 */ { C, 5, 6 }, { B, 1, 2 }, { B, 2, 3 }, { B, 3, 4 }, { B, 4, 5 }, { FB, 6, 6 }, { 0 } }, (struct _algdef []){ { 1, 0, 0 }, { 2, 1, 0 }, { 3, 2, 0 }, { 4, 3, 0 }, { 5, 4, 0 }, { 6, 5, 0 }, /* 32 */ { B, 1, 2 }, { B, 2, 3 }, { B, 3, 4 }, { B, 4, 5 }, { B, 5, 6 }, { FB, 6, 6 }, { 0 } }, }; #undef C #undef B #undef FB void we_alg_draw(cairo_t *cr, int alg) { struct _algdef *algdef; int i, op_x[7], op_y[7]; cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); cairo_paint(cr); if (alg < 0 || alg >= 32) return; algdef = _algdef[alg]; for (i = 0; algdef[i].op; i++) { int op = algdef[i].op; if (op >= OP_OP1 && op <= OP_OP6) { op_x[op] = algdef[i].a; op_y[op] = algdef[i].b; alg_draw_op(cr, op_x[op], op_y[op], op); } else if (op == OP_CONNECT) { alg_draw_connect(cr, op_x[(int)algdef[i].a], op_y[(int)algdef[i].a], op_x[(int)algdef[i].b], op_y[(int)algdef[i].b]); } else if (op == OP_BUS) { alg_draw_bus(cr, op_x[(int)algdef[i].a], op_x[(int)algdef[i].b], op_y[(int)algdef[i].a]); } else if (op == OP_FEEDBACK) { alg_draw_feedback(cr, op_x[(int)algdef[i].a], op_y[(int)algdef[i].a], op_x[(int)algdef[i].b], op_y[(int)algdef[i].b]); } } } hexter-1.0.2/src/gui_retro_console.c0000644000076400007640000011660612042674465014442 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011 Sean Bolton. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #include #include #include #include "hexter.h" #include "gui_retro_console.h" GtkWidget *rc_drawing_area; static cairo_surface_t *rc_font_surface[RC_MAX_COLOR_PAIRS]; static int rc_console_width; static int rc_console_height; static int rc_cursor_x; static int rc_cursor_y; static int rc_color_pair; static void (*rc_button_press_callback)(guint, guint, guint); static void (*rc_key_press_callback)(gboolean, guint, guint); typedef struct _rc_char_t { char c, pair; } rc_char_t; static rc_char_t *rc_chars; static struct _colors { float r, g, b; } colors[RC_COLOR_COUNT] = { { 1, 1, 1 }, /* white */ { 0, 0, 0 }, /* black */ { 0, 1, 0 }, /* green */ { 0, 0, 1 }, /* blue */ { 1, 1, 0 }, /* yellow */ { 0, 1, 1 } /* cyan */ }; /* static rc_char_t *get_rc_char(int x, int y); */ #define get_rc_char(x, y) (rc_chars + (y * rc_console_width) + x) void rc_console_set_button_press_callback(void (*cb)(guint, guint, guint)) { rc_button_press_callback = cb; } static gboolean rc_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { /* GUIDB_MESSAGE(DB_GUI, " rc_button_press: button %d @ %g, %g\n", event->button, event->x, event->y); */ if (!GTK_WIDGET_HAS_FOCUS (widget)) gtk_widget_grab_focus (widget); if (rc_button_press_callback) (*rc_button_press_callback)(event->button, ((int)event->x) / RC_FONT_WIDTH, ((int)event->y) / RC_FONT_HEIGHT); return FALSE; /* false to propagate further, true to stop */ } void rc_console_set_key_press_callback(void (*cb)(gboolean, guint, guint)) { rc_key_press_callback = cb; } static guint keyvals_to_pass[] = { GDK_BackSpace, GDK_Delete, GDK_Escape, GDK_Return, GDK_Tab, GDK_ISO_Left_Tab, GDK_Page_Up, GDK_Page_Down, GDK_Home, GDK_End, GDK_Left, GDK_Right, GDK_Up, GDK_Down, GDK_F1, GDK_F2, GDK_F3, GDK_F4, GDK_F5, GDK_F6, 0 }; static gboolean rc_key_press (GtkWidget *widget, GdkEventKey *event, gpointer user_data) { gboolean pressed; guint u, state; if (rc_key_press_callback == NULL) return FALSE; /* propagate to other handlers */ pressed = (event->type == GDK_KEY_PRESS); /* "meta" on OS X is Apple is 16 + 2^28 * "meta" on (my) linux is Alt is 8 */ state = event->state & (GDK_CONTROL_MASK | GDK_MOD1_MASK | GDK_MOD2_MASK); for (u = 0; keyvals_to_pass[u]; u++) if (event->keyval == keyvals_to_pass[u]) { (*rc_key_press_callback)(pressed, event->keyval, state); return TRUE; } u = gdk_keyval_to_unicode(event->keyval); /* This is way too restrictive, but we only need what the DX-7 supported. */ if (u == 0xA5) u = 92; /* yen */ if (u == 0xAB) u = 127; /* << */ if (u == 0xBB) u = 126; /* >> */ if (u >= ' ' && u <= 127) { (*rc_key_press_callback)(pressed, u, state); return TRUE; } else { GUIDB_MESSAGE(DB_GUI, " rc_key_press: %s keyval $%02x with state %d, unicode %u\n", pressed ? "pressed" : "released", event->keyval, event->state, gdk_keyval_to_unicode(event->keyval)); } return FALSE; /* false to propagate further, true to stop */ } void rc_console_addch(char c) { if (rc_cursor_x < rc_console_width && rc_cursor_y < rc_console_height) { rc_char_t *rch = get_rc_char(rc_cursor_x, rc_cursor_y); rch->c = c; rch->pair = rc_color_pair; gtk_widget_queue_draw_area(rc_drawing_area, rc_cursor_x * RC_FONT_WIDTH, rc_cursor_y * RC_FONT_HEIGHT, RC_FONT_WIDTH, RC_FONT_HEIGHT); } rc_cursor_x++; } void rc_console_addstr(const char *t) { for (; *t; t++) { if (*t == '\n') { rc_cursor_x = 0; rc_cursor_y++; } else { rc_console_addch(*t); } } } void rc_console_move(int y, int x) { if (x >= 0 && x < rc_console_width && y >= 0 && y < rc_console_height) { rc_cursor_x = x; rc_cursor_y = y; } } void rc_console_clrtoeol(void) { int x; for (x = rc_cursor_x; x < rc_console_width; x++) { rc_char_t *rch = get_rc_char(x, rc_cursor_y); rch->c = ' '; rch->pair = rc_color_pair; } gtk_widget_queue_draw_area(rc_drawing_area, rc_cursor_x * RC_FONT_WIDTH, rc_cursor_y * RC_FONT_HEIGHT, (rc_console_width - rc_cursor_x) * RC_FONT_WIDTH, RC_FONT_HEIGHT); } void rc_console_erase(void) { for (rc_cursor_y = 0; rc_cursor_y < rc_console_height; rc_cursor_y++) { for (rc_cursor_x = 0; rc_cursor_x < rc_console_width; rc_cursor_x++) { rc_char_t *rch = get_rc_char(rc_cursor_x, rc_cursor_y); rch->c = ' '; rch->pair = rc_color_pair; } } rc_cursor_x = rc_cursor_y = 0; gtk_widget_queue_draw_area(rc_drawing_area, 0, 0, rc_console_width * RC_FONT_WIDTH, rc_console_height * RC_FONT_HEIGHT); } void rc_console_init_color_pair(int pair, int fg, int bg) { int width, height; cairo_t *cr; if (pair < 1 || pair >= RC_MAX_COLOR_PAIRS || rc_font_surface[pair] != NULL) return; /* Render the font to a cache surface in the requested foreground and * background colors. Doing this once here allows for using simply * cairo_set_source_surface(), cairo_rectangle(), cairo_fill() in * rc_expose(), which is much faster. */ width = cairo_image_surface_get_width(rc_font_surface[0]); height = cairo_image_surface_get_height(rc_font_surface[0]); rc_font_surface[pair] = cairo_surface_create_similar(rc_font_surface[0], CAIRO_CONTENT_COLOR, width, height); cr = cairo_create(rc_font_surface[pair]); cairo_set_source_rgb(cr, colors[bg].r, colors[bg].g, colors[bg].b); cairo_paint(cr); cairo_set_source_rgb(cr, colors[fg].r, colors[fg].g, colors[fg].b); cairo_mask_surface (cr, rc_font_surface[0], 0, 0); cairo_destroy(cr); } void rc_console_set_color_pair(int pair) { rc_color_pair = (pair < 0) ? 0 : ((pair >= RC_MAX_COLOR_PAIRS) ? RC_MAX_COLOR_PAIRS - 1 : pair); } static gboolean rc_expose(GtkWidget *widget, GdkEventExpose *event) { cairo_t *cr = gdk_cairo_create (widget->window); int x0 = event->area.x / RC_FONT_WIDTH; int x1 = (event->area.x + event->area.width - 1) / RC_FONT_WIDTH; int y0 = event->area.y / RC_FONT_HEIGHT; int y1 = (event->area.y + event->area.height - 1) / RC_FONT_HEIGHT; int x, y; /* GUIDB_MESSAGE(DB_GUI, " rc_expose: %d x %d @ %d, %d => %d, %d to %d, %d\n", event->area.width, event->area.height, event->area.x, event->area.y, x0, y0, x1, y1); */ if (x1 >= rc_console_width) x1 = rc_console_width - 1; if (y1 >= rc_console_height) y1 = rc_console_height - 1; for (y = y0; y <= y1; y++) { for (x = x0; x <= x1; x++) { rc_char_t *rch = get_rc_char(x, y); unsigned char c = (unsigned char)rch->c; int pair = rch->pair; if (rc_font_surface[pair] == NULL) continue; if (c >= 128 && c < 139) c = 128; else if (c > 153) c = 128; cairo_set_source_surface(cr, rc_font_surface[pair], (x - c) * RC_FONT_WIDTH, y * RC_FONT_HEIGHT); cairo_rectangle(cr, x * RC_FONT_WIDTH, y * RC_FONT_HEIGHT, RC_FONT_WIDTH, RC_FONT_HEIGHT); cairo_fill(cr); } } if (!gtk_widget_get_sensitive(widget)) { cairo_set_source_rgba(cr, 0, 0, 0, 0.5); cairo_paint(cr); } cairo_destroy (cr); return FALSE; } /* forward declarations of PNG data below */ static size_t font_png_length; static unsigned char font_png[]; struct cairo_read_func_closure { size_t length; size_t offset; unsigned char *data; }; static cairo_status_t cairo_read_func(void *closure, unsigned char *data, unsigned int length) { struct cairo_read_func_closure *cl = (struct cairo_read_func_closure *)closure; size_t l = MIN(length, cl->length - cl->offset); memcpy(data, cl->data + cl->offset, l); cl->offset += l; return CAIRO_STATUS_SUCCESS; } GtkWidget * retro_console_init(int width, int height) /* returns the console GtkDrawingArea */ { struct cairo_read_func_closure cl; int i; rc_console_width = width; rc_console_height = height; /* create drawing area */ rc_drawing_area = gtk_drawing_area_new(); gtk_widget_set_size_request(rc_drawing_area, RC_FONT_WIDTH * rc_console_width, RC_FONT_HEIGHT * rc_console_height); g_signal_connect(G_OBJECT(rc_drawing_area), "expose-event", G_CALLBACK(rc_expose), NULL); GTK_WIDGET_SET_FLAGS(rc_drawing_area, GTK_CAN_FOCUS); gtk_widget_add_events(rc_drawing_area, GDK_BUTTON_PRESS_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK); g_signal_connect(G_OBJECT(rc_drawing_area), "button-press-event", G_CALLBACK(rc_button_press), NULL); g_signal_connect(G_OBJECT(rc_drawing_area), "key-press-event", G_CALLBACK(rc_key_press), NULL); g_signal_connect(G_OBJECT(rc_drawing_area), "key-release-event", G_CALLBACK(rc_key_press), NULL); /* g_signal_connect(G_OBJECT(rc_drawing_area), "focus-in-event", G_CALLBACK (rc_focus_event), (gpointer)1); */ /* g_signal_connect(G_OBJECT(rc_drawing_area), "focus-out-event", G_CALLBACK (rc_focus_event), (gpointer)0); */ /* create font surface */ cl.length = font_png_length; cl.offset = 0; cl.data = font_png; rc_font_surface[0] = cairo_image_surface_create_from_png_stream(cairo_read_func, &cl); for (i = 1; i < RC_MAX_COLOR_PAIRS; i++) rc_font_surface[i] = NULL; /* create character storage */ rc_chars = (rc_char_t *)g_malloc(sizeof(rc_char_t) * rc_console_width * rc_console_height); rc_color_pair = 0; rc_console_erase(); rc_button_press_callback = NULL; rc_key_press_callback = NULL; return rc_drawing_area; } /* ································ !"#$%&'()*+,-./0123456789:;<=>? * @ABCDEFGHIJKLMNOPQRSTUVWXYZ[¥]^_`abcdefghijklmnopqrstuvwxyz{|}»«® * 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF */ #ifndef RC_USE_BIG_FONT static size_t font_png_length = 5096; static unsigned char font_png[5096] = "\211PNG\15\12\32\12\0\0\0\15IHDR\0\0\4""6\0\0\0\15\10\6\0\0\0R!\3561" "\0\0\16\0iCCPICC\40Profile\0\0x\332\255Wy4\324\357\333\276\77""3c\306" "\30\306.Y2D\226lY\263\357d+{\210\302\220mlc\242\"\262\207R\210\222$!" "\24I\310\36B\"\312\222-K\221\20*K\264j\336\77\372\376\316\357=\347=\277" "\367\375\347\275\376\272\236\353\217\347y\356\373\272\317\271\316\15" "\300\312\353\36\34LA\1@@\40\215jc\242Ortr&\341\336\0\36\230\1\3\10""0" "\273\223C\203\365\254\254,\340\77b{\24\20\0\200a\31\367\340`J\\\2732" "\315\177\374\215I/:Z\1\345\253\264\2\377;\210TG'g\0D\32\0\270\274\377" "r]\0\340\362\370\313\355\0\200+\234\26L\3@|\0\200\213\354\343\356\11" "\200D\2\2004\325\316\306\0\0)\5\0\242\367_^\17\0D\217\277\3749\0\20\303" "\310\3364\0d\34\0\313\21\350\351\33\10\200[\5\300j{z\205\222\1\210\322" "\0\340\351\31J\16\0\40^\1\0\331\200\200\40O\0b\33\0H\220\203\2514\0\342" "\22\0\3108:9\223\376~\331\245\36@\211\15\0\337\371o-L\10\240\266\24@" "\234\357\337\332^:\0\217\7\300\35\223\177k\2336\200\0\0\302\363*\364" "\244\242\2\0\0\40\314\372\0\14""3t\372\346>\0\\\6\300N:\235\376\353\16" "\235\276S\10\200\236\2h\243\220OQ\303\376\351\27\202\364\3\374_\347\277" "5\377\3""4\2\200\2@\3410\216X=\334\10\236\312\264\315\234B\224d\355f" "\77\316\361\203+\201\207{W\365n+\2769\1\332\36\234P\216\260\242H\273" "\250\231\330\224x\200\304\37\251\24i\21\31\77Yi\271Q\5eEfe5\345\37\252" "\352\7\233\324\3254\206\264w\353PtE\365\202\365\177\31\231\30\227\35" "\"\230\6\232\215X\250Y\246\35\236\265R\265\276h3c'g\237\3400\354(\344" "\344\347\\~l\335\365\300q\277\23""1nY\356w=j\310O=_zM\234|\357\275\352" "\263\345\273\343\217\243p\4\10\6\212\7\311\6+\205\250R\17\206\252\321" "4Ni\204\251\205\253\234V\2263\356" "2A\232\230\177S2\3517%7\365u\272y&\376\255\371;\316w\223\263\205s\224" "\367\252\363\310|\337\207\234\205\223\213JK\350\245\241\217\267\227\203" "WtW9W\27>5~N\373\342\276\246\262\316\264\376n\243~3\375\253\337\226\301" "\266\340\366\366\267\201\357e\77\342~\272\376R\373\315\375{s\247\347" "O:\335\222N\377\357\376\23p\314\31D\11\326\373l\77""9\316r1p\247\356" "\22\342\255\344\323\341o\27""4\332S#\364G\230\"\362U4Ll]\334_\342\235" "\324\321\375\2752\7e=\344:\16(+\334V\"*\7\251\14\36\324P\313Q\237\321" "\304k\271\350x\350\222\364\\\364\253\15qFv\306wLF\17}7\2236\247Z4\36" "F\37\261\262\312\260\36\263\25\260s\263\317w\230v\344q\322sv>\346\343" "BsM8\236y\242\300\255\322\375\211G\37y\302s\301k\343\344\37\37F_v\77" ">\177\21\212d\200\\\240R\220Z\260V\210\16U'T\235\246zJ1L!\\\356\264\344" "\31\322Y\336\10b$\22\271y\356C\324ht\367\371\332\230\374\330\324\270" "\263\361^\11\346\211\12I\274I;\27f\223\273R\312RS.\372\\2M\223\274\314" "ty\371JozYFB\246\353U\225,\366\254\225\354\366k\31\327\235sDr\226oT\347" "F\335<\224\307\2367~+/\337\353\266\314\355\255\202\226;\11\205\26E\354" "E#\305\327\357\272\224\10\227,\226>(\13\270'wo\343~]yx\205Z\305\257\7" "-\225\347\36j\77\244W\265>\212\2536\254a\250yV{\341\261i\35S\335\213" "\372K\15\226\215\304\306\227M\31\315\16-\273[\246\236\334juo\23m[j/{" "\352\327!\323\261\336Y\327\25\361L\247\33\325\375\354yf\217k\257x\357" "\332\213\346\276\304~\353\227\2/\27_\325\16\304\15\332\14\221\206\326" "\206\333_g\214x\214*\214a\306&\306\313&\"\337XO\212O\356L\15M\227\316" "\234\177\353\370\356\300,\363\354\307\271\247\357o\315G|pZPY\344Z\334" "Xz\375\361\361r\316J\314\352\271O\311\237\343\277\320\326B\327\3436b" "7i_i[\11\333\361\337\302\276\207\377H\372y\341W\344\357\250\235\224\77" "\247\351Ft:\0*\231\201\204\355a\14b\22%T\263\330\22\377\260\235c\377" "\314\31\301\215\345\211\343\345\335}\231\237C\40VpK\310\225\364P\4\275" "\367\204h\353>A\361\0\211z)\334~;\351\2132u\262\213\362{\16""8($+6(-" "\252\260\253\252\35\264Q;\251a\246\361V\263D\353\211\366\220\316\242" "\356o}f\3NC\234\21\2031\253\311\356C\342\246\362fj\346:\26\352\226\6" "\207u\217\34\266\262\2646\262\221\266e\265\335\260\33\261\177\354p\375" "h\270\243\235\223\2623\247\363\372\261A\227j\327\253\307\303O8\271\251" "\270\263\273\177\362\350%\227y&z\271\236T\367\346\366^\367\351\367-\365" "\213\367'ST\3\230\3\336\7""6\6e\4\7\206\350R9\251\213\241M\264+\247\310" "a\212\341\350\360\241\323w\316P\317\32DpE\314GV\237\213\216\262\214\346" "\217^>\337\20\223\34k\33'\30\267\20_\231p&\321$\2113i\372Bi2-E+\25\233" ":t1\377\222O\232|\332\267\313\255W\222\322m3\4""3\26""3\253\256\236\311" "\322\311f\310\356\273\226u\375x\216h\316\362\215\252\334\310\233\206" "y\204\274\341[\267\362\311\267\245n\257\27""4\336\211-4/\342.z[\\r\227" "Z\242U\312X:\\v\373\236\337}\245r(\357\257\310{@\251T\177\210{8Ru\367" "\321\251j\375\32\266\232\267\265\225\217\343\352\34\352%\352w\32&\32" "\2375=h\276\336\222\360\344T\253W\233}\273\361S\265\16\351N\341.\336" "g\354\335\204\347\330\36T\17\275\367\327\213\237}\277\372w^\241\7\10" "\203\234C\2\303\342\257\25G\364G\355\306\274\307#'2\337\334\233\354\234" "Z\230A\275\25~\247\77\3535w\361}\355\374\354\2nQw)\361c\333\362\332\252" "\334\247\250\317m_~\254kn\\\332\34\334\"l[\177+\372\276\374S\352\27\355" "w\337\37V:\77\235\16\3607\373\0\0\260*\0Y\274\0v\315\0\266\306\0I^\0" "\342\267\0xJ\1\254X\0\354\324\0\25\252\10\250\343\365\200\314\232\374" "+\77\0\1""4`\1\17D\340\2A\20\7\5\320\201\303\340\12\201\20\15\351P\14" "\2150\0\213\10\40|\2102b\205P\220d\244\24y\216|D\21P\262(\33T8\352&\252" "\3\265\212\346A\353\242\375\321\327\320\235\350\15\214\10\306\32\23\203" "\251a\330\303`\313\20\315P\300\320\201\335\217=\214\245bWq\3228\177\\" "9\3563\243\2\243\17c\6\343\23<\26\177\3\277\304\244\314\24\316T\314\364" "\232\40N\210\40\14""0\357c\216d\36f\221fIaY&\232\21\357\263\262\260\206" "\260\216\261i\263\25\261\23\331\317\262/r8p\364pjrVqIr\25q\313s\267\362" "X\363,\354\212\342\335\305[\263\333f\367W\276k\374\232\374\357\5R\4\25" "\5g\366\244\12i\12}!\225\10\273\213\10\212\274\331{C\364\204\230\230" "\330\247}\217\305c%l$\367I\376\226\32\335_-\235)\23&{L\316P^\376\0I\201" "S\21\253\4J\177\224\351\252\230\203\4""5Nu\1\15QMM-;m\212N\242n\241^" "\273\376{C\26#Mc\77\223\353\207^\230\341\315\355,n[~9\242c\225l\375\336" "V\317\256\320\201\341\250\217\343+g\365c\345\256b\307\357\270\11\272" "\337\"\213{V\237\324\360\36\360\365\361\7\312\235@\223\240/!\271\241" "f\264\235\260\332\323\1g%\"\276\234\253\213\216\213\261\214\343\211\237" "Kl\272\220\235\22x\3212M\361\12w\372V\346HV\327\265\252\234\314\334K" "y\361\371a\5\201\205\336\305'KN\224\35\275oQaUi]eS\355\\\353^\347\323" "\340\337\24\334\22\336\32\333~\251#\273+\277\273\274\247\346EK\177\327" "\253\301\301\231\341\225\221\255\261\2357\330)\316\31\322;\3719\255y" "\243\5\253\245c\313\336\253a\237\23\327nlT|m\333\36\372>\367\213i\307" "\223N\377\17\376[\202+\4@4d@)t\300$l\",\210\4b\210\270!Q\310M\244\31" "\231A!(1\2249\352\24\252\30""5\200\372\211\26E[\241\243\320\25\350i\14" "+F\37\23\206\271\217\231c\340c\40""3\24""0\314`\371\260N\330\353\330" "\11\234\40\316\3W\212\373\304\250\314\30\3138\212W\300\307\343k\360s" "L\341L}\4a\302i\302\40\263\14\363\5\346e\26{\226gD\31b\6\361;\353\11" "\326n69\266\233\354x\366p\366E\16G\216>N=\316\6.%\256:n\3\356\21\36\177" "\36\372\256k\274\362\274/v\373\360a\371J\370M\371\77\13\\\25\324\22\374" "\270'[\310X\350;\251\\\230,\"\40""2\2667K\324^\214Ol~\337\3\361\263\22" "\306\222<\222+R\35\373\363\244#d\\e\365\345\244\3449\17\300\201-\205" "e\305\31\245q\3457*S\252s\7W\325~h\3404\371\265\224\265\17\353\370\351" "^\320+\323\3577\370f$e\354b\222v\350\271\31\233\271\217\305\323\303{" "\216\234\265\32\267\321\266-\267\337\345\220pt\333\311\307y\326\305\315" "\365\303\11\177\2675\2170O\242W\201\267\242\317\240_\20\2055\340q\320" "\361\20&j5\215\34\266+\274\357LB\204^\344NT\333\371\304X\343x|\302`\322" "\255d\377T\265K\254iKWZ32\256R\262-\256\313\344\374\310\35\312\253\310" "O(\40\27\352\25\213\334\245\227N\337k.\317{\20\361\320\365\221~\215\304" "c\\\335f\303xSSKAkJ{h\207s\227^\267D\17S\357v\337\314\313\256\201\7C" "7^'\214R\306\255\337\250O\261M\327\274\265\231\3357\367s>wA}\211\370" "q~%\345\223\354\27\374\332\207\215\313_\325\266y\276}\375Q\364\313m\347" "\374\77\376\243\0\3""8`\2""6\340\5a\330\17*`\0""6\340\16!\20\13\331P" "\16\235\377L\200$b\204\270#1H\1\362\24Y@\21P\7PN\250\4T5j\16\315\216" "\326CS\321\305\350I\14'\306\22\223\204\351`@3\2302\2443\214cIX_l-\16" "\215\263\305\25\343~2Z3V\340y\360\226\370h&u\246\333\4<\341\24a\226\331" "\212\271\203E\223\345)Q\227\330\314\252\301\332\300\246\311\326\316n" "\312>\301A\346\330\346\214\341\342\341z\304\355\302C\340i\336\25\302" "+\301;\277\273\210\217\314/\301\377Y\240F\360\334\36\23!.\241%R\233\360" "\15\21\332^kQU1\276}\310\276\217\342#\22\235\222UR\25\373K\245\213e\212" "e\357\310\225\313\327\37x\2460\242\270\244\214V\21V\325;\350\251\226" "\244\376@cB\213\240\255\255C\325-\323{g\260\327\320\317\250\306\4""9" "t\310\364\232\331\262\205\226e\316\341M+\13\353\7\266|&T\316\225\306'\322\206\221\316[eJ\345\242}\211\214\23\322\216\221\216" "\214d\321\344D\346\253fo\264y\360\375\233&g\3268D\373\362\233\2569\25" "V\33\320\366x\372%:\266\232~i\377\327\312\336\311^\317\330\221\325\333" "\206\214\21\307a\317v\40\373\245\212\375\13A\20\4A\244/\200\32\253o1" "\376\243\317\322\277\221\317\232\214\232\323\246\245i\362!ev9\311\310" "\377\21\331\255\276Et\302\323\307\350wg\345\314\356\357\214\357V\364" "5\332O3\375\27\31""3\264}\221\271\351m\207vck\224\226\321\276H\276\350" ")\273\267L\255\315\222\335\213\352O\3668f\314W\317\372Qe\373\253\353" "\274\313&>\235\330xz;\272\236$t\254\341\324\303z\235x\263^\363)\12A<" "\10_v]:\11\274:\16Z\31\222\301@\31\374\317\177D\312\31\235\206\236O+" "w=\241\321\344\266\372#Z\256Ww\252\333\217:\271\31\355\264N\325\265\362" "5\2\352\253\333\36\342dt\322=+\357l}\335:^U\7\332o\321|\253\331x\351" "\206]\366\30\315\326u\266\327\221vJ7W\242vD\312\253\225\251\345A\313" "\364\220\243\210\34""3\204\347H\376Q>\211`\364\366\213\247\35Z^)\237" "6\16\21\22\320\"\357\242\304\3421\300\252\373\223\263\214;\332H\2028" "\343w4!=\327t\231\3064\246\315\247Um\206GW\27\245\205\353\374w\211L\270" "~\247k\321]\205\334\210^\35\355\224aV\317V!\221\220g6\2436Ft\305\272" "\302O\344\351\312\310\316\314\214\335\316\204M\246\235\177\342\23\20" "\353i\14\372,\7\265+Z\31Z\37[\266J[\213%\233\203\330>\257\236^\35Wm\237" "\340\351[O>D~\353@\240J\3273\313E\237\31\316\254U\210\216\241\351\35" "{:\202h%6\10\202x\17\316,\275\364\206\32y\253^\271\231\326\342qD\34\371" "\310\215\225\273\235(o\177[\33\304H,\220\221\363)\245y\372\326{S(rs\303" "\323\366\350\270u\227\31\251\363\356'B+;\316\232^g\222\270\222\23y\275" "!\241\315\301j\242r\364\374\317\3534g:\237V\376]\3422U\3112C\264g:\266" "3\355{\3y\350\215\257\203\310#\331\254\363\355B\204l\352\40\214\236\4" "\317S\12\315>Y\373\266\312=Gt\317V\261\77\210\356\347Il\20\304C\310\10" "\257Q\321N\2434\7p\264x\"\213c'\301\341\225c\345\300\226\326s\25\355" "FA\264\17\320|h@\301Lg\327\"&\254q\215\236H!\327\225G'\256\231s\"\352" "\314i\355\257\32\243\12[\20\271\12\35\335\14\241\201R\253\11\\kNGI\217" "U\202\23\356D\240=\341\35\373\23\366:\331\244\261EPD\346\30BzXkQ\326" "\215\15\211\334\320\352\272\312Mrcn}\366\254\263\221'\312]{\214\312~" "B\311\237\31\374z\7\213iLcZ~Z\266!\322\30{d\321\264\362\276q\1\254h\357" "\354\323\226L\231V<\345\224H\204H;\220\30/\332u\36178\24Y$T\367\306*" "\343f\200u\222\331\265\21\274\363\215\373(~@\2248\316\30c\224\334\\I" "\227\272\306nE\22\252j\34:\210E\315\271\217\336\330@\236\215\316\356" "\355\244\362F\237Gy+H$\202\270\23\14\36J\20\2338\325\325Q\340\273O%;" "H\203\310\311o\327\306\324\372\211\333\2257\325h}\263\301Cg\202\201\"" "\262j\327z+\365=[\357\357\16\370\226]\277\365\34*\22\14s\5'Pz\2\210\352" "\310L\0[T\276s]\273:9\236\371\227aO#\343\272\352\334\273k\255\350\250" "o\226\234\260\202\234w\355\247,95\362Bj\303\316\363\235\40\316\340S\24" "\202x\31\244\310\367\332B8Z\20W\270\265\321U7r\3753\"\223t-/Z\246'\36" "\306\235eV\215q\244\376\254\361\363\304&\321N\303\243W5g\237ph\1=g\35" "\213l\362&\372K9\321\230$\31se\5gr7\307\305Zs\"\363\17\11^\333e{\262" "\373\251\353`\2\15\214n9\324Q\275\215\214\355\323\347\237'~\12\11\14" "\202\40\10\342q\270c\321\37\375<[U`\303\312\337z'\326\32\37\202\240\316" "\305\373\304\343pz\373\361\20\300\265\365\31\353\217W\27""8\326\230]" "B\1772\230\330O/v\271\221\273R\333\271\77'\10\202\40\10\202\240c@4\352" "V\346\223\321\35\364\365\315\304\6\355\11\321\351\334\223\330\300\312" "\374\3""6\224\311\370\202\17j\370\0\0\0\0IEND\256B`\202"; #else /* RC_USE_BIG_FONT */ static size_t font_png_length = 4565; static unsigned char font_png[4565] = "\211PNG\15\12\32\12\0\0\0\15IHDR\0\0\5j\0\0\0\22\1\3\0\0\0\370\311u:" "\0\0\15\357iCCPICC\40Profile\0\0x\332\255\227y8\224\357\367\307\357Y" "\314\30\313\330%\353\20Y\262\257\331\267\2205{\21\205!\3736\6\205\310" "\276E!J\262\357eI\310\236=\21e\311\226\245H\10e\213H\362{\324\347{}\177" "\327\365\333\376\371\235\353z\256y=g\356\347>\367\334\357\363\314\271" "\17\0TL\266^^np\0\200\273\7\221`\254\245\206\273da\211C\277\7\30@\1\220" "\0\6(l\361>^\252\206\206z\340\177\264\3351h\34d#B\307s\205\267K\21]'" "\336k\365!B\304\341\316\222\253\340\1777,\1\12\10\0L\20bz\307\277\254" "r\314v\177\331\364\230\375\211^D\210\235\216\31\357dk\17q\20\304\202" "\4Scu\210K\216\347q\374\313\365\307l\367\227_\35\263\37\336\361\370\331" "\11\0P\264\36\366\316\36\0\240\327\40V\262w\360\301C_\37\307\265\267" "\367\301\273C|\27bawwOh~l\33\304|x/\2\364,v\31b\241\343}\371\273d+(\206" "$5\0\230\256\177\373\3748\0\250\205\326\301\313\374o\337\251#\0\30\355" "\0\310\323\372\267o\333\370\317^\301\30\337\372\\\223\20\377\343\202" "Q\250\1@2{t\264}\32Z[2\0\207IGG\7yGG\207\371\0\40\246\1hs\303\373\22" "\374\376\331/\30l\0\200\377\353\376\357o\376\307\20P@H`8\32y\11\245\212" "\36\305\20\310v)\342\260\374T=4Wh\367\351#\31\31NT\2374d\236g%\262\243" "9\3229%\270\332\271ux\246y\335\371~\13\304\11r\11\271\10\13\212\214\211" "KIPH\311J\355\313\310\235m\222\223\225\37V:\251\354\246\302\255\352\245" "v\240\241\245Yz\236\\\333CgTOV\77\321`\316P\306\350\266\361\254\251\210" "Y\244\371\310%\16\13\27\313\262\313\233\326bW\\\256\206\332\244\332\26" "\331\325\340;\354\3378L^\373\344\270\346\264\343|\350\212v\243ug\363" "\340\365\24\366\222\364\226!\234\365\221%\312\373\312\373\311\372K_\227" "\270!\26\40\34\310\37\304u\2239\230:\4\31\262wk5t:\354MxKDYdzTd4!\306" "*\366\\\334\231x\352\370\235\333S\11\355\211\245wR\356z'\31%\213\247" "\320\247\354\336\33OmL\313\270\357\377\3008]\370!\305\303\225\214\356" "G\2172\335\262\24\262)\263gr*s\243\362\314\362O\345o\24\264\24\306\27" "Y\26\363\25\357\226t\226&>\276\370\204\343\311R\331\263\362\200\12\225" "JTe\377\323\324*\313g\354\317\346\253\213k\234k\5j\327\236\227\327y\324" "\213\324o4N\315\345\317\273}\222Y\200-\364\177N" "_\274\266$\271\214X\36\376\222\263\342\265\252\262F\267\266\370\265\361" "[\342\272\355\206\364&\331\346\307\255\372\355\244\357.;\352\273l\273" "\273\77\6\367J\367\303\177Z\37\310\376b\370\265}\330\373;\351H\377\350" "\350\77\353O\216\246H\306\362Q=\241\376I\33@O\302\20\177\202\203\251" "\222Y\231\245\235M\203\275\206\3437\247\33\327wn\77\236M^W\276\217\2" "\27\317\364\11\235\25\266\23\351\24\223\22\317\221\304JyJ\17\235\225" "\227M\227\233U\300(Z)\333\251\340T\255\324\252\317\2415L5\363\264\306" "\316\357\351\10\352\22\364\32\15\20\27\14\15\223\215\306MXMm\314\262" "\315g.1Z\250ZZ^v\262\"ZG^I\271\232kSi\373\302\256\37\77i\277\350\260" "u\355\267\23\2513\215\13\263+\227\33\277\273\210\207\244\247\254\227" "\242\2672A\331G\216(\343+\341'\356/r\235\377\6.\200)\20\33\4\13\332\276" "\3719x,\244\347VmhvX|x@\204C\244n\224x4S\364a\314\\lw\\i|\334m\247\4" "\355D\376;dwV\356\366%\225&G\246X\337\223N\245I]Mk\277\237\374\3002\235" "+}\345auF\360\243\363\2314\231\23Y\231\331\16""9B9;\271-y\221\371z\5" "4\5\243\205\17\212\254\2129\213\227J*J\335\37\213<\336zRW\346_.[~P\321" "Ry\363\251\322\323\243\252\326g\341\325\347jHj^\326\306<\327\256#\253" "{]\237\320\240\337\210m|\323\224\334l\336r\262e\372EV\253m\33w\333r{" "i\207K\247P\347fW]w\340K\345\36x\317\313W)\275\326}\274}\33\257\233\373" "\243\6\214\336\260\276Yz[;\30>d<\214\33\336\30i\177\227\216\34\237" "\234(\235\14zo4\305;u8=e-\4~\266X\224" "^\242_\332Z~\367\345\371J\372j\350\332\315\257\261\337\"\326\211\33>" "\233\341[a\333\304\357\304\235\310\335\210\37~{\376\373\321\77c\16\202" "~\5\37\306\375\276~\244\361G\377X\22\34\252\227\324\223\214\233\274\232" "\322\4\373\233\372&\3157\272@\6\24c8\23\323\311;,\264\254al;\34\326\270" "\247\\\210SW\271[O\263A\377\0\365\2\3503\246\202\267\205\352\204\227" "D\331\305\314\305c%\32$\227\244idd\317\32\313^\223\327\221\377\240P\254" "\370BiXyI\345\227\32\205:\35\224\7$\232TZ'\317\363j\213\352\310\352*" "\353\311\351\253\33\250\\00\3247\3220\26""4\2412\3312\35""5{n\376\340" "\242\377%S\13)K:\313\315\313CV\325\326\367\256\370_\265\260\221\266\245" "\261\375j\327\207/\265\217r\260\276&\347\310\340\270\3514\340\\\342\22" "\341\212w\223q\247p\377\344\321\350\231\354\345\341\255B\240#,\3714\21" "\357\372\342\375$\374\21\376\303\327\363n\20\2\324\3\351\3\27\202\252" "o\206\4\353\207\260\204\254\334j\10\215\15""3\11g\13_\214\250\214\274" "\21\245\25M\27=\23S\22K\214S\214G\305\17\337\316NpJ\24M\374q\247\365" "nt\222I2[\362RJ\325\275\33\251\312i$i\375\367S\37\\I\347\206\362\244" "*#\350\321\271L\362\314\221\254\254l|\216@\316fnc^X\276n\1C\301\207\302" "\342\"B\261b\11i\311Hi\316c\227'\222e\240l\240<\263\302\255R\356)\372" "\351hU\3213\337j\265\32\352\232\17\265\225\317\303\353\314\353\371\352" "\17\33&\33_6U4\77h\211|\341\333\352\320f\326\256\331!\333)\330\305\331" "\315\364\222\246\207\374\25\252\27\336{\324w\360\372g\377\301\300\341" "[\304\40\371\20\3350\353\10\357;\211Q\2651\323q\307\211\240\311\224\367" "\217\247\272\246\27g\341\37""8\77\252\3159\314\337\376T\2730\267\210" "^RY\216\372\322\266\262\261&\3625\370[\333\372\376\246\302V\302\366\320" "\16\371\256\321\217\202\275\225\237\2\7\304_\375\277\251\216X\216\365" "\377[\373\216\15%\15@*\23\0\246\315\0\230h\2\20\355\0\325\255,\250VA" "\365\313\220\22\362\313\2\270\217\4\200_\251\7\2609\255\177\325\17\250" "n!\0\12:\27`\1=`\3\274@\34(\3\3`\15<@\10H\2\205\240\21\14\202%\30\200" "1\303\244`\20607X,\254\4\366\12\366\5N\16\27\206\33\303\375\341\217\340" "\235\3605\4#B\5\341\212\270\217\350Bl!\271\220F\310Pd\15\11;\211\11I" "\10I.I'\352\14\312\0E@\255\241\5\321\256\3502\3647RqR'\322d\322\27\30" "\24\346!f\231L\212\314\237\254\220\354\35""9/y\40\371\40\305i\212\40" "\212\21JA\3128\312\25\254\16\366\11\25%\2257\3258\265\22u\1\15\226&\200" "f\211\326\234\266\227N\201\256\212\236\237\276\200A\224\241\225\321\210" "q\361D0\323\11\246\232\223\306'\2773\337gQ`\371\304\32\307&\3016\313" "\36\317\241\300\261\216+\346\264\345b\343z\177\352!\367U\36\36\236\257" "\247\237\363\206\361\31\363\237\346\377%0v\246Z0E\310O\370\262\3109Q" "Q1\2348\235\4J\22H\376\226:\222A\236%\227\245\223c\225\347VPP4UrS\216" "R\311WmW\373t\216RCA\323E\353\301\371\327:\30]S\275\34\375\365\13\312" "\206\261F\237LTM\363\315I.:]zk)w\271\314\232\347J\236\15\233m\26\236" "\327\276\372\232\274\343\240\263\223+p\313\363\320\362\\\367\316\360" "\321!\36\372\325^w\17\340\13\\\277Y\27\22\36\252\37\316\30""1\37\325" "\24\223\26\347q[\77Q\342.C\322N\312hj\367\375\252\364\224\214\204\314" "\210l\277\\\217|\307\302k\305WK/>\321+7\2544\2522\256\266\254\265\255" "sjpm\362j\361o\15kO\350L\353\316\356)\353\255y\3352\320\375vhhvdutg\374" "\360=j\232n\26\367Qt^qAc\321p\371\362\212\343\232\337\267\250\215\207" "[\345\337\333v\207\367\346\17\310\16\355\217\363\347\277\325_\37\322" "\337\35\322\77\31\224\200N0\5\266a\2240>\3309\230\15,\30\366\10\326\14" "\233\205\303\340\10\377\211\340F\30\"\202\21\345\210" "\31$\25R\15\351\207|\202\234'a&\301C\332\317\242\230Q\26\250\7\250I4" "\33\332\16]\202\376J*E\32F:\206\21\307D`j0\363\220\362\375\344\234\344" "\327\311\207(\204(b(V(\315(_b\205\260\311\330=\252\253T=\324\"\324\217" "h04\376\220\352\227h\373\351T\351\32\350%\351\353\30\324\31F\31]\31\217" "N\334g\22ez}\322\211\31\305\\\314\242\315\362\215\365\36\233\"\333\27" "\3664\16M\216=\\\31'\236\213\225k\374T*\267\31\17""3\317\302\351\12\336" "\0>M~F\376U\201\3163\231\202\201B\326\302j\"\2\242tb@lG|EbVrB\352\275" "\364\264\314\374\3315\331}y\264\2\213\242\224\222\201\262\213J\214j\251" "\332\200\372\17\15\1M+\255\304\363\257t\250u\235\364:\14\330/\4\30N\30" "+\231\224\231\2350\217\274\270k\341d9gec\375\371\252\253\315\206\235" "\237=\326!\327Q\302i\310\305\323\215\312\375\271\347\25o2B5\21\357w\302" "\277\377Fd\240j\320ap\333\255\2500\315\10L\344PtV\254k\274l\2U\342\362" "\335\326\344\344{niz\17\204\322\3673\2063\313\263#s\361\371\252\205\\" "EG%3\217\233\3132+\2\237Z\77S\253\341{\216\256\333n\230hjj\311m\215k" "\367\351\264\354V\355\341\353%\353\333\355\237}\323=X1\374\360]\344\230" "\333\204\321{\271i\352\231\232\17\306s\247\347\177.d,\312-c\277,\254" "\306}\25^\307l|\336\272\363]v\227\361\307\367\375\202\3\233\303[\377" "\350\17\207:\2""4\40\3\324\200\11p\2023@\32\250\3c`\13\274A\30H\3e\240" "\353\237\14\340\207i\300la\241\260\\X\7l\21z\377\305\340\26\360Hx5|\36" "A\203PE\20\20\205\210)$\35R\37\31\215\354$A\220h\223$\221L\240p(gT-\32" "\2016A\27\242\177\222\32\221\226c\30""1\372\230\20""29\262\34r\14\271" "/\371\34\205!E'\245\2e\7V\5\333L%O\325@\255@\335N\243M3I\213\247\335" "\245\13\245g\244\177\306`\305H\316\330|\302\233\211\217i\341d\1""3\236" "\205\17\322\272\206\355&\273\26\7=\3072\256\215\363!\27\361\224\21\267" "\14\17\363i\330\351/\274\243|]\374U\2\345gJ\4\13\205\12\205\363D\312" "D\353\305^\212\217J,K!\2449eT\317\332\313F\313U\310O*\222+))\23TJU\77" "\252\237:\347\242Q\243\5;\177^\373\276\316\212\236\242~\272\301\266\241" "\236Q\205\11\243i\250\331\267\213\346\227\272,\245.\227[\13\\yl\303g" "[\212\27\267o\271\246\352\370\326\331\306\345\253[\264\7\316\263\301" "\333\234\260I\274\3\235iFn\370\7\262\6\265\7{\336b\15}\25\356\25\311" "\26\3656&\35=3\363A\362c\366<\315'\377\205\236E\226\245" "\320\345\365\25\263\325\342\265\303o\16\353\343\233J[\251\333\253;f\273" "]{B\373Q\77'\177i\36\3768\326\377o\277\364\307\310\324=\335<\11""8=\365" "s\340\377\327\334\335|\377\25\343\270K\242p\36003\201>i\241\213\25\312" "5O\340\6]\4\200\3z\320\35\24\374o\257\366\247\246A\375\330\243\343q\240" "^\237\360_\346%:\\\377\323\17\251{z\335\40""8;:\21q\252P\247\352\200" "S\367t\367\362%:\20\4q\332\36xaA\234\270\250\250\324\361\270\377\0\214" "\210\372\4/\327\242\275\0\0\0\6PLTE\13\0\0\377\377\377\317\36o\36\0\0" "\0\1tRNS\0@\346\330f\0\0\3\202IDATH\307\325\326M\213\333F\30\7\360gF" "\303zd\266\316\3101t\3f5\326\12\222\334\226\236\366\20\310\310\30\342" "=\244\335\313\336JI\367\23\344\270\24\303\216e\321Ui\10\362\346\320\336" "\\\12=$\267\34s\10(/\260\271\346\33\310K\16""9.=\271P\342<#\331&\315" "n\223m*B\242\223\306\32\215~\32\377\347\31\1|j\307\336tq\214\261)\305" "t\232\272\323\211\222\2\330\307\225\210\317\213\313\77\22\2271\235\317" "\16\343\37\10\265R\222\301\373\36\227\15tY\334H\367y*8\243y\2336Y\345" "\\\2666\331}\325\254\25=6\232\314\265\16\237\374\365\367F\340V\236\371" "\324f\275^\315\255\34\376i\2630\220\243\307LHY\304A\300\6\250e\22[\372" "\255\207\20\320\12\340J9\334\301\321P\"\267\256\362\266\267\314\265\334" "\1M=\307\14\11\272\343UE\344{\4:\1#\274\203\334\260\355\210X\2069W\267" "\221\2735\347v@\231`\350\5s\301\15d\275]\16""7:@\256\240\325~\336\16" "\32B\251\337\11\236H|\252\2\25^\257\212.\253\23\10\15""7\262.D\250L\272" "`\270\370J!\2252~\77W%\376\2032\270\340\276\350\267$\10Z\311\7\347\201" "\17\252\217s\311<9\40Z\203\244\333U\21\33\256F\256\315\350\335\316\214" "\313\343\260Q%\224\250\26>\314\375r\377\311\363c\365\303wM+V\203\373" "\273\275okw\366\17\217\314\77\40F\217\220\333\355\376\361n\356\362\222" "Etzc}\345\35'\330\217\205Z\2450\237]\21""0\350\207k\343\233\274\351\14" "H\337\232\10\266\355\270\234\235\37\37\353=F\252\214n\372a[&\373)r\17" "0\361\324\312Lt\341\327\256\377\25W\321\367\14b\35nF\341\216s\253\333" "2\311\361\204\376\21\364\272\237<,\207\333O\325S\344\326\277\311\254" "\211\341bJ\245\23s\257\246\1\227\37\347\333n1\273\267\361\322\27\214" "\332\215\260'G\40\13.\256P\235s\23\14\214}\34\341\333\376\4\341\246\211" "u\334%\24\3734lb\302\340'w\337\340N\317\351\336\325\342l\2627\236N\243" "3W\"7\373mx\11\2714\17\203\14\20p\361\330f\"\300\10\342OBl;of\227\332" "\313\241\222\7\206\273u\320`|6\273.r\317O\224\341\376<\347V\36\31.\267" ")9\21\206\314\324\212\305\354\2\77\3736\301\364\360\262@n\2610T\300\30" "H9\343\302`\"\305\3272\231s\235\2422(oXp=&f\263\233\367\1\265\213\334" "[z\306\205\26""5\257d\263b\251\265K\340b\30\242\341\345K\346\6\2)\254" "+\217q\256<\21\13\217``\2602\40>\231\27""2\207\3739\327\24\262\276\330" "\272\27,\270\255\"\273\270\34!V\206\273\203yj\325W\266\356yK\274(dW\312" "\341\16\216\304\323\342\6\344\352\346\325\321\241ne7Es\25\271Xw\305\252" "\34\231m\2p\233\250\361\213\270;\364T-\271\226\352L\342\13\270\217\13" "\356\352/ye\350\5.\304kX\20\2602\304\225t\374\22\373,\271\351\211]\355" "\303\303\0y\231\3147au\332\225S\17\365\217M\230\274\232\267B\\\233z\326" "C/fd6PI\334\177\325\221\377<\302i\\\377\224O\234R\270\377\377\350\1T" "\340-\356\312\247\313=\353\7\344I\356ke\27""6sBx\323&\0\0\0\0IEND\256" "B`\202"; #endif /* RC_USE_BIG_FONT */ hexter-1.0.2/src/hexter.h0000644000076400007640000000576312046774615012230 00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * Portions of this file may have come from Chris Cannam and Steve * Harris's public domain DSSI example code. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _HEXTER_H #define _HEXTER_H /* ==== debugging ==== */ /* DSSP_DEBUG bits */ #define DB_DSSI 1 /* DSSI interface */ #define DB_AUDIO 2 /* audio output */ #define DB_NOTE 4 /* note on/off, voice allocation */ #define DB_DATA 8 /* plugin patchbank handling */ #define DB_MAIN 16 /* GUI main program flow */ #define DB_OSC 32 /* GUI OSC handling */ #define DB_IO 64 /* GUI patch file input/output */ #define DB_GUI 128 /* GUI GUI callbacks, updating, etc. */ /* If you want debug information, define DSSP_DEBUG to the DB_* bits you're * interested in getting debug information about, bitwise-ORed together. * Otherwise, leave it undefined. */ // #define DSSP_DEBUG (1+8+16+32+64) #ifdef DSSP_DEBUG #include #define DSSP_DEBUG_INIT(x) #define DEBUG_MESSAGE(type, fmt...) { if (DSSP_DEBUG & type) fprintf(stderr, "hexter.so" fmt); } #define GUIDB_MESSAGE(type, fmt...) { if (DSSP_DEBUG & type) fprintf(stderr, "hexter_gtk" fmt); } #define TUIDB_MESSAGE(type, fmt...) { if (DSSP_DEBUG & type) printf("hexter_text" fmt); } // -FIX-: // #include "message_buffer.h" // #define DSSP_DEBUG_INIT(x) mb_init(x) // #define DEBUG_MESSAGE(type, fmt...) { \- // if (DSSP_DEBUG & type) { \- // char _m[256]; \- // snprintf(_m, 255, fmt); \- // add_message(_m); \- // } \- // } #else /* !DSSP_DEBUG */ #define DEBUG_MESSAGE(type, fmt...) #define GUIDB_MESSAGE(type, fmt...) #define TUIDB_MESSAGE(type, fmt...) #define DSSP_DEBUG_INIT(x) #endif /* DSSP_DEBUG */ /* Define this to enable some non-real-time-safe sanity checks (e.g. envelope * slew limits) within the plugin synthesis code: */ // #define HEXTER_DEBUG_ENGINE /* Define this to enable some non-real-time-safe MIDI controller testing * code: */ // #define HEXTER_DEBUG_CONTROL /* ==== end of debugging ==== */ #define HEXTER_MAX_POLYPHONY 64 #define HEXTER_DEFAULT_POLYPHONY 10 #define HEXTER_NUGGET_SIZE 64 #define HEXTER_PORT_OUTPUT 0 #define HEXTER_PORT_TUNING 1 #define HEXTER_PORT_VOLUME 2 #define HEXTER_PORTS_COUNT 3 #endif /* _HEXTER_H */ hexter-1.0.2/src/gui_data.h0000644000076400007640000000322112042016114012444 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2011, 2012 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _GUI_DATA_H #define _GUI_DATA_H #include "hexter_types.h" int dx7_bulk_dump_checksum(uint8_t *data, int length); int dx7_patchbank_load(const char *filename, dx7_patch_t *firstpatch, int maxpatches, char **errmsg); char *encode_7in6(uint8_t *data, int length); void gui_data_patches_init(void); void gui_data_patches_free(void); void gui_data_mark_dirty_patch_sections(int start_patch, int end_patch); void gui_data_send_dirty_patch_sections(void); int gui_data_save(char *filename, int type, int start, int end, char **message); int gui_data_load(const char *filename, int position, char **message); void gui_data_send_edit_buffer(void); void gui_data_send_edit_buffer_off(void); void gui_data_send_performance_buffer(uint8_t *performance_buffer); #endif /* _GUI_DATA_H */ hexter-1.0.2/src/gui_images.h0000644000076400007640000000201711757613235013025 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _GUI_IMAGES_H #define _GUI_IMAGES_H #ifdef HAVE_CONFIG_H # include #endif #include /* gui_images.c */ GtkWidget *create_about_pixmap(GtkWidget *window); #endif /* _GUI_IMAGES_H */ hexter-1.0.2/src/gui_patch_edit.c0000644000076400007640000006006312046775000013653 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2011, 2012 Sean Bolton. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #include #include #include "hexter_types.h" #include "dx7_voice_data.h" #include "gui_main.h" #include "gui_data.h" #include "gui_callbacks.h" #include "gui_interface.h" #include "gui_patch_edit.h" GtkWidget *editor_window; GtkWidget *editor_status_label; GtkWidget *editor_name_entry; GtkWidget *editor_discard_button; GtkWidget *editor_save_button; GtkWidget *editor_test_note_button; GtkObject *edit_adj[DX7_VOICE_PARAMETERS - 1]; /* omitting name */ static unsigned char pept_maximum[PEPT_COUNT] = { 0, 0, 99, 7, 1, 31, 99, 14, 3, 31, 3, 99, 48, 1, 5, 99, 99 }; typedef struct _pe_voice_parameter_t { char type; } pe_voice_parameter_t; static pe_voice_parameter_t pe_voice_parameter[DX7_VOICE_PARAMETERS - 1 /* omitting name */] = { { PEPT_Env }, /* 0 R1 */ { PEPT_Env }, /* 1 R2 */ { PEPT_Env }, /* 2 R3 */ { PEPT_Env }, /* 3 R4 */ { PEPT_Env }, /* 4 L1 */ { PEPT_Env }, /* 5 L2 */ { PEPT_Env }, /* 6 L3 */ { PEPT_Env }, /* 7 L4 */ { PEPT_BkPt }, /* 8 */ { PEPT_Scal99 }, /* 9 Left Depth */ { PEPT_Scal99 }, /* 10 Right Depth */ { PEPT_Curve }, /* 11 Left Curve */ { PEPT_Curve }, /* 12 Right Curve */ { PEPT_0_7 }, /* 13 RS */ { PEPT_0_3 }, /* 14 AMS */ { PEPT_0_7 }, /* 15 VS */ { PEPT_Scal99 }, /* 16 OL */ { PEPT_Mode }, /* 17 */ { PEPT_FC }, /* 18 FC */ { PEPT_FF }, /* 19 FF */ { PEPT_Detune }, /* 20 Detune */ { PEPT_Env }, /* 21 R1 */ { PEPT_Env }, /* 22 R2 */ { PEPT_Env }, /* 23 R3 */ { PEPT_Env }, /* 24 R4 */ { PEPT_Env }, /* 25 L1 */ { PEPT_Env }, /* 26 L2 */ { PEPT_Env }, /* 27 L3 */ { PEPT_Env }, /* 28 L4 */ { PEPT_BkPt }, /* 29 */ { PEPT_Scal99 }, /* 30 Left Depth */ { PEPT_Scal99 }, /* 31 Right Depth */ { PEPT_Curve }, /* 32 Left Curve */ { PEPT_Curve }, /* 33 Right Curve */ { PEPT_0_7 }, /* 34 RS */ { PEPT_0_3 }, /* 35 AMS */ { PEPT_0_7 }, /* 36 VS */ { PEPT_Scal99 }, /* 37 OL */ { PEPT_Mode }, /* 38 */ { PEPT_FC }, /* 39 FC */ { PEPT_FF }, /* 40 FF */ { PEPT_Detune }, /* 41 Detune */ { PEPT_Env }, /* 42 R1 */ { PEPT_Env }, /* 43 R2 */ { PEPT_Env }, /* 44 R3 */ { PEPT_Env }, /* 45 R4 */ { PEPT_Env }, /* 46 L1 */ { PEPT_Env }, /* 47 L2 */ { PEPT_Env }, /* 48 L3 */ { PEPT_Env }, /* 49 L4 */ { PEPT_BkPt }, /* 50 */ { PEPT_Scal99 }, /* 51 Left Depth */ { PEPT_Scal99 }, /* 52 Right Depth */ { PEPT_Curve }, /* 53 Left Curve */ { PEPT_Curve }, /* 54 Right Curve */ { PEPT_0_7 }, /* 55 RS */ { PEPT_0_3 }, /* 56 AMS */ { PEPT_0_7 }, /* 57 VS */ { PEPT_Scal99 }, /* 58 OL */ { PEPT_Mode }, /* 59 */ { PEPT_FC }, /* 60 FC */ { PEPT_FF }, /* 61 FF */ { PEPT_Detune }, /* 62 Detune */ { PEPT_Env }, /* 63 R1 */ { PEPT_Env }, /* 64 R2 */ { PEPT_Env }, /* 65 R3 */ { PEPT_Env }, /* 66 R4 */ { PEPT_Env }, /* 67 L1 */ { PEPT_Env }, /* 68 L2 */ { PEPT_Env }, /* 69 L3 */ { PEPT_Env }, /* 70 L4 */ { PEPT_BkPt }, /* 71 */ { PEPT_Scal99 }, /* 72 Left Depth */ { PEPT_Scal99 }, /* 73 Right Depth */ { PEPT_Curve }, /* 74 Left Curve */ { PEPT_Curve }, /* 75 Right Curve */ { PEPT_0_7 }, /* 76 RS */ { PEPT_0_3 }, /* 77 AMS */ { PEPT_0_7 }, /* 78 VS */ { PEPT_Scal99 }, /* 79 OL */ { PEPT_Mode }, /* 80 */ { PEPT_FC }, /* 81 FC */ { PEPT_FF }, /* 82 FF */ { PEPT_Detune }, /* 83 Detune */ { PEPT_Env }, /* 84 R1 */ { PEPT_Env }, /* 85 R2 */ { PEPT_Env }, /* 86 R3 */ { PEPT_Env }, /* 87 R4 */ { PEPT_Env }, /* 88 L1 */ { PEPT_Env }, /* 89 L2 */ { PEPT_Env }, /* 90 L3 */ { PEPT_Env }, /* 91 L4 */ { PEPT_BkPt }, /* 92 */ { PEPT_Scal99 }, /* 93 Left Depth */ { PEPT_Scal99 }, /* 94 Right Depth */ { PEPT_Curve }, /* 95 Left Curve */ { PEPT_Curve }, /* 96 Right Curve */ { PEPT_0_7 }, /* 97 RS */ { PEPT_0_3 }, /* 98 AMS */ { PEPT_0_7 }, /* 99 VS */ { PEPT_Scal99 }, /* 100 OL */ { PEPT_Mode }, /* 101 */ { PEPT_FC }, /* 102 FC */ { PEPT_FF }, /* 103 FF */ { PEPT_Detune }, /* 104 Detune */ { PEPT_Env }, /* 105 R1 */ { PEPT_Env }, /* 106 R2 */ { PEPT_Env }, /* 107 R3 */ { PEPT_Env }, /* 108 R4 */ { PEPT_Env }, /* 109 L1 */ { PEPT_Env }, /* 110 L2 */ { PEPT_Env }, /* 111 L3 */ { PEPT_Env }, /* 112 L4 */ { PEPT_BkPt }, /* 113 */ { PEPT_Scal99 }, /* 114 Left Depth */ { PEPT_Scal99 }, /* 115 Right Depth */ { PEPT_Curve }, /* 116 Left Curve */ { PEPT_Curve }, /* 117 Right Curve */ { PEPT_0_7 }, /* 118 RS */ { PEPT_0_3 }, /* 119 AMS */ { PEPT_0_7 }, /* 120 VS */ { PEPT_Scal99 }, /* 121 OL */ { PEPT_Mode }, /* 122 */ { PEPT_FC }, /* 123 FC */ { PEPT_FF }, /* 124 FF */ { PEPT_Detune }, /* 125 Detune */ { PEPT_Env }, /* 126 Pitch Envelope R1 */ { PEPT_Env }, /* 127 */ { PEPT_Env }, /* 128 */ { PEPT_Env }, /* 129 */ { PEPT_Env }, /* 130 */ { PEPT_Env }, /* 131 */ { PEPT_Env }, /* 132 */ { PEPT_Env }, /* 133 P L4 */ { PEPT_Alg }, /* 134 Alg */ { PEPT_0_7 }, /* 135 Feedback */ { PEPT_OnOff }, /* 136 Osc Key Sync */ { PEPT_0_99 }, /* 137 LFO Speed */ { PEPT_0_99 }, /* 138 Delay */ { PEPT_0_99 }, /* 139 PMD */ { PEPT_0_99 }, /* 140 AMD */ { PEPT_OnOff }, /* 141 Sync */ { PEPT_LFOWave }, /* 142 Wave */ { PEPT_0_7 }, /* 143 PMS */ { PEPT_Trans } /* 144 */ // { PEPT_Name }, /* 145 Name */ }; void patch_edit_copy_name_to_utf8(char *buffer, uint8_t *patch, int packed) { int i, j; int offset = packed ? DX7_VOICE_SIZE_PACKED - 10 : DX7_VOICE_PARAMETERS - 1; for (i = 0, j = 0; i < 10; i++, j++) { /* translate DX7-ASCII to UTF-8 */ buffer[j] = patch[offset + i]; switch (buffer[j]) { case 92: buffer[j++] = 0xC2; buffer[j] = 0xA5; break; /* yen C2 A5 */ case 126: buffer[j++] = 0xC2; buffer[j] = 0xBB; break; /* >> C2 BB */ case 127: buffer[j++] = 0xC2; buffer[j] = 0xAB; break; /* << C2 AB */ default: if (buffer[j] < 32 || buffer[j] > 127) { buffer[j++] = 0xC2; buffer[j] = 0xB7; /* bullet C2 B7 */ } break; } } buffer[j] = 0; } void patch_edit_on_name_entry_changed(GtkEditable *editable, gpointer user_data) { const char *p0, *p; int i; /* GUIDB_MESSAGE(DB_GUI, ": patch_edit_on_name_entry_changed called\n"); */ /* copy name entry to patch */ p0 = gtk_entry_get_text(GTK_ENTRY(editor_name_entry)); for (i = 0; i < 10; i++) { /* translate UTF-8 to DX7-ASCII */ char c = ' '; p = *p0 ? g_utf8_next_char(p0) : p0; if (p - p0 == 3) { if (!strncmp(p0, "•", 3)) c = 31; /* 0 to 31 block graphics */ } else if (p - p0 == 2) { if (!strncmp(p0, "·", 2)) c = 31; /* 0 to 31 block graphics */ else if (!strncmp(p0, "Â¥", 2)) c = 92; /* yen */ else if (!strncmp(p0, "«", 2)) c = 127; /* << */ else if (!strncmp(p0, "»", 2)) c = 126; /* >> */ } else if (p - p0 == 1) { c = *p0; } edit_buffer.voice[i + DX7_VOICE_PARAMETERS - 1] = c; p0 = p; } edit_buffer_active = TRUE; gui_data_send_edit_buffer(); patch_edit_update_status(); } void patch_edit_on_edit_adj_changed(GtkAdjustment *adj, gpointer data) { float value = adj->value; int offset = (int)data; /* GUIDB_MESSAGE(DB_GUI, ": patch_edit_on_edit_adj_changed: offset %d, value %f\n", offset, value); */ edit_buffer.voice[offset] = value; edit_buffer_active = TRUE; gui_data_send_edit_buffer(); patch_edit_update_status(); } void patch_edit_create_edit_adjs(void) { int i; /* create the adjustments */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { int max = pept_maximum[(int)pe_voice_parameter[i].type]; edit_adj[i] = gtk_adjustment_new(0, 0, max, 1, (max > 10) ? 10 : 1, 0); } } /* gtk_spin_button_new() (wrongly) forces the emission of "value-changed" by the * adjustment it attaches to, so we don't connect the edit_buffer to the * edit_adj[] adjustments at least until the widgy editor is built. */ void patch_edit_connect_to_model(void) { int i; for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { g_signal_connect (G_OBJECT(edit_adj[i]), "value-changed", G_CALLBACK (patch_edit_on_edit_adj_changed), (gpointer)i); } } void patch_edit_update_status(void) { char buf[60]; int editable; if (!edit_buffer_active) { snprintf(buf, 60, "Editing patch %d (currently unchanged)", edit_buffer.program); gtk_label_set_text (GTK_LABEL (editor_status_label), buf); editable = TRUE; } else { if (current_program != edit_buffer.program) { /* this should happen only transiently at startup, or as the result of a buggy host */ /* GUIDB_MESSAGE(DB_GUI, ": edit buffer sync error, current_program %d, edit_buffer.program %d\n", * current_program, edit_buffer.program); */ gtk_label_set_text (GTK_LABEL (editor_status_label), "(edit buffer sync error, select program to clear)"); editable = FALSE; } else { snprintf(buf, 60, "Editing patch %d (changes have not been saved)", edit_buffer.program); gtk_label_set_text (GTK_LABEL (editor_status_label), buf); editable = TRUE; } } gtk_widget_set_sensitive (editor_name_entry, editable); gtk_widget_set_sensitive (widgy_widget, editable); gtk_widget_set_sensitive (retro_widget, editable); gtk_widget_set_sensitive (editor_discard_button, edit_buffer_active); } void patch_edit_update_editors(void) { int i; char name[21]; /* update all the adjustments */ for (i = 0; i < DX7_VOICE_PARAMETERS - 1 /* omitting name */; i++) { GTK_ADJUSTMENT(edit_adj[i])->value = (float)edit_buffer.voice[i]; /* temporarily block signal to model, then update adjustment */ g_signal_handlers_block_by_func(G_OBJECT(edit_adj[i]), patch_edit_on_edit_adj_changed, (gpointer)i); gtk_adjustment_value_changed(GTK_ADJUSTMENT(edit_adj[i])); g_signal_handlers_unblock_by_func(G_OBJECT(edit_adj[i]), patch_edit_on_edit_adj_changed, (gpointer)i); } /* update name entry */ patch_edit_copy_name_to_utf8(name, edit_buffer.voice, FALSE); /* temporarily block signal to model, then update entry text */ g_signal_handlers_block_by_func(G_OBJECT(editor_name_entry), patch_edit_on_name_entry_changed, NULL); gtk_entry_set_text(GTK_ENTRY(editor_name_entry), name); g_signal_handlers_unblock_by_func(G_OBJECT(editor_name_entry), patch_edit_on_name_entry_changed, NULL); patch_edit_update_status(); } int patch_edit_get_edit_parameter(int offset) { if (offset < 0 || offset >= DX7_VOICE_PARAMETERS - 1) return 0; /* hmmm. */ else return (int)GTK_ADJUSTMENT(edit_adj[offset])->value; } char * patch_edit_NoteText(int note) { static char _NoteText[5]={'x','x','x','x','\0'}; _NoteText[0]=(" C D F G A ")[note%12]; _NoteText[1]=("C#D#EF#G#A#B")[note%12]; _NoteText[2]=("-0123456789")[note/12]; _NoteText[3]=("1 ")[note/12]; return _NoteText; } unsigned short peFFF[100] = { 1000, 1023, 1047, 1072, 1096, 1122, 1148, 1175, 1202, 1230, 1259, 1288, 1318, 1349, 1380, 1413, 1445, 1479, 1514, 1549, 1585, 1622, 1660, 1698, 1738, 1778, 1820, 1862, 1905, 1950, 1995, 2042, 2089, 2138, 2188, 2239, 2291, 2344, 2399, 2455, 2512, 2570, 2630, 2692, 2754, 2818, 2884, 2951, 3020, 3090, 3162, 3236, 3311, 3388, 3467, 3548, 3631, 3715, 3802, 3890, 3981, 4074, 4169, 4266, 4365, 4467, 4571, 4677, 4786, 4898, 5012, 5129, 5248, 5370, 5495, 5623, 5754, 5888, 6026, 6166, 6310, 6457, 6607, 6761, 6918, 7079, 7244, 7413, 7586, 7762, 7943, 8128, 8318, 8511, 8710, 8913, 9120, 9333, 9550, 9772, }; void patch_edit_on_mode_change(GtkComboBox *combo, gpointer user_data) { if (gtk_combo_box_get_active(combo) == 1) { gtk_widget_hide(widgy_widget); gtk_widget_show(retro_widget); gtk_widget_grab_focus(retro_widget); gtk_window_resize(GTK_WINDOW(editor_window), 1, 1); /* let window get smaller */ } else { gtk_widget_hide(retro_widget); gtk_widget_show(widgy_widget); } } void on_editor_save_button_press(GtkWidget *widget, gpointer data) { GUIDB_MESSAGE(DB_GUI, ": on_editor_save_button_press called\n"); (GTK_ADJUSTMENT(edit_save_position_spin_adj))->value = (double)edit_buffer.program; /* update patch name */ gtk_signal_emit_by_name (GTK_OBJECT (edit_save_position_spin_adj), "value_changed"); gtk_widget_show(edit_save_position_window); } void on_editor_discard_button_press(GtkWidget *widget, gpointer data) { GUIDB_MESSAGE(DB_GUI, ": on_editor_discard_button_press called\n"); gtk_widget_hide(edit_save_position_window); edit_buffer_active = FALSE; gui_data_send_edit_buffer_off(); edit_buffer.program = current_program; dx7_patch_unpack(patches, current_program, edit_buffer.voice); patch_edit_update_editors(); } /* ==== DX7 MIDI system exclusive message handling ==== */ int sysex_receive_channel = 0; static int patch_edit_sysex_parse(unsigned int length, unsigned char* data) { if (length < 6 || data[1] != 0x43) /* too short, or not Yamaha */ return 0; if ((data[2] & 0x0f) != sysex_receive_channel) /* wrong MIDI channel */ return 0; if ((data[2] & 0xf0) == 0x00 && data[3] == 0x00 && /* DX7 single voice dump */ data[4] == 0x01 && data[5] == 0x1b) { if (length != DX7_DUMP_SIZE_VOICE_SINGLE || data[DX7_DUMP_SIZE_VOICE_SINGLE - 1] != 0xf7) { GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: badly formatted DX7 single voice dump!\n"); return 0; } if (dx7_bulk_dump_checksum(&data[6], DX7_VOICE_SIZE_UNPACKED) != data[DX7_DUMP_SIZE_VOICE_SINGLE - 2]) { GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: DX7 single voice dump with bad checksum!\n"); return 0; } GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: DX7 single voice dump received\n"); memcpy(&edit_buffer.voice, data + 6, DX7_VOICE_SIZE_UNPACKED); return 1; } else if ((data[2] & 0xf0) == 0x10 && /* DX7 voice parameter change (g = 0)*/ (data[3] & 0xfc) == 0x00) { int i; if (length != 7 || data[6] != 0xf7) { GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: badly formatted DX7 voice parameter change!\n"); return 0; } i = ((data[3] & 0x03) << 7) + (data[4] & 0x7f); if (i >= DX7_VOICE_SIZE_UNPACKED) { GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: out-of-range DX7 voice parameter change!\n"); return 0; } GUIDB_MESSAGE(DB_IO, " gui_data_sysex_parse: DX7 voice parameter change #%d => %d\n", i, data[5] & 0x7f); edit_buffer.voice[i] = data[5] & 0x7f; return 1; } /* nope, don't know what this is */ return 0; } void on_sysex_receipt(unsigned int length, unsigned char* data) { GUIDB_MESSAGE(DB_IO, " on_sysex_receipt: message length %d, mfg id %02x\n", length, data[1]); if (patch_edit_sysex_parse(length, data)) { edit_buffer_active = TRUE; gui_data_send_edit_buffer(); patch_edit_update_editors(); } } /* ==== main patch edit window ==== */ GtkWidget * create_editor_window(const char *tag) { GtkWidget *window; GtkWidget *vbox; GtkWidget *hbox; GtkWidget *label; GtkWidget *combo; GtkWidget *separator; GtkWidget *frame; GtkWidget *table; GtkWidget *scale; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); set_window_title(window, tag, "Patch Edit"); g_signal_connect (G_OBJECT(window), "destroy", G_CALLBACK (gtk_main_quit), NULL); g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (on_delete_event_wrapper), (gpointer)gtk_widget_hide); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add (GTK_CONTAINER (window), vbox); gtk_container_set_border_width (GTK_CONTAINER (vbox), 6); editor_status_label = gtk_label_new (" "); gtk_container_add (GTK_CONTAINER (vbox), editor_status_label); gtk_misc_set_alignment (GTK_MISC (editor_status_label), 0, 0.5); hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 0); label = gtk_label_new ("Patch Name"); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); editor_name_entry = gtk_entry_new_with_max_length(10); gtk_box_pack_start (GTK_BOX (hbox), editor_name_entry, FALSE, FALSE, 2); g_signal_connect(G_OBJECT(editor_name_entry), "changed", G_CALLBACK(patch_edit_on_name_entry_changed), NULL); /* -FIX- comment (reuse Performance Name?) * GtkWidget *comment_label = gtk_label_new ("Comment"); * gtk_box_pack_start (GTK_BOX (hbox), comment_label, FALSE, FALSE, 2); * gtk_misc_set_alignment (GTK_MISC (comment_label), 0, 0.5); * GtkWidget *comment_entry = gtk_entry_new_with_max_length(60); * gtk_box_pack_start (GTK_BOX (hbox), comment_entry, TRUE, TRUE, 2); */ /* separator */ separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (vbox), separator, FALSE, FALSE, 2); gtk_widget_show_all(vbox); /* editor widgets */ create_widgy_editor(tag); gtk_box_pack_start (GTK_BOX (vbox), widgy_widget, TRUE, FALSE, 2); gtk_widget_show(widgy_widget); create_retro_editor(tag); gtk_box_pack_start (GTK_BOX (vbox), retro_widget, TRUE, FALSE, 2); /* separator */ separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (vbox), separator, FALSE, FALSE, 2); gtk_widget_show(separator); /* edit action widgets */ hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox), 0); label = gtk_label_new ("Editor Mode"); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); combo = gtk_combo_box_new_text(); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Widgy"); gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Retro"); gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0); gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, FALSE, 2); g_signal_connect(G_OBJECT(combo), "changed", G_CALLBACK(patch_edit_on_mode_change), NULL); /* -FIX- add: [compare to original?] [swap A/B?] [close?] */ label = gtk_label_new (NULL); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0); editor_discard_button = gtk_button_new_with_label ("Discard Changes"); gtk_box_pack_start (GTK_BOX (hbox), editor_discard_button, FALSE, FALSE, 2); gtk_signal_connect (GTK_OBJECT (editor_discard_button), "clicked", GTK_SIGNAL_FUNC (on_editor_discard_button_press), NULL); editor_save_button = gtk_button_new_with_label ("Save Changes into Patch Bank"); gtk_box_pack_start (GTK_BOX (hbox), editor_save_button, FALSE, FALSE, 2); gtk_signal_connect (GTK_OBJECT (editor_save_button), "clicked", GTK_SIGNAL_FUNC (on_editor_save_button_press), NULL); gtk_widget_show_all(hbox); /* test note widgets */ frame = gtk_frame_new ("Test Note"); gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0); table = gtk_table_new (3, 3, FALSE); gtk_container_add (GTK_CONTAINER (frame), table); gtk_container_set_border_width (GTK_CONTAINER (table), 2); gtk_table_set_row_spacings (GTK_TABLE (table), 1); gtk_table_set_col_spacings (GTK_TABLE (table), 5); label = gtk_label_new ("key"); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); scale = gtk_hscale_new (GTK_ADJUSTMENT (test_note_key_adj)); gtk_table_attach (GTK_TABLE (table), scale, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_scale_set_value_pos (GTK_SCALE (scale), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_range_set_update_policy (GTK_RANGE (scale), GTK_UPDATE_DELAYED); label = gtk_label_new ("velocity"); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); scale = gtk_hscale_new (GTK_ADJUSTMENT (test_note_velocity_adj)); gtk_table_attach (GTK_TABLE (table), scale, 1, 2, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_scale_set_value_pos (GTK_SCALE (scale), GTK_POS_RIGHT); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_range_set_update_policy (GTK_RANGE (scale), GTK_UPDATE_DELAYED); editor_test_note_button = gtk_button_new_with_label (" Send Test Note"); gtk_table_attach (GTK_TABLE (table), editor_test_note_button, 2, 3, 0, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 4, 0); gtk_button_set_focus_on_click(GTK_BUTTON(editor_test_note_button), FALSE); g_signal_connect (G_OBJECT (editor_test_note_button), "pressed", G_CALLBACK (on_test_note_button_press), (gpointer)1); g_signal_connect (G_OBJECT (editor_test_note_button), "released", G_CALLBACK (on_test_note_button_press), (gpointer)0); gtk_widget_show_all (frame); editor_window = window; return editor_window; } hexter-1.0.2/src/dx7_voice.h0000644000076400007640000002576711757613235012624 00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011 Sean Bolton and others. * * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * Portions of this file may have come from Juan Linietsky's * rx-saturno, copyright (C) 2002 by Juan Linietsky. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _DX7_VOICE_H #define _DX7_VOICE_H #include #include "hexter_types.h" struct _dx7_patch_t { uint8_t data[128]; /* dx7_patch_t is packed patch data */ }; #ifndef HEXTER_USE_FLOATING_POINT #define FP_SHIFT 24 #define FP_SIZE (1<> FP_SHIFT) #define FP_TO_FLOAT(x) ((float)(x) * (1.0f / (float)FP_SIZE)) #define FP_TO_DOUBLE(x) ((double)(x) * (1.0 / (double)FP_SIZE)) #define INT_TO_FP(x) ((x) << FP_SHIFT) /* beware of using the next two with constants, they probably won't be optimized */ #define FLOAT_TO_FP(x) lrintf((x) * (float)FP_SIZE) #define DOUBLE_TO_FP(x) lrint((x) * (double)FP_SIZE) #define FP_MULTIPLY(a, b) ((int32_t)(((int64_t)(a) * (int64_t)(b)) >> FP_SHIFT)) #define FP_DIVIDE_CEIL(n, d) (((n) + (d) - 1) / (d)) #define FP_ABS(x) (abs(x)) #define FP_RAND() (rand() & FP_MASK) #else /* HEXTER_USE_FLOATING_POINT */ #define FP_TO_INT(x) (lrintf(x)) #define FP_TO_FLOAT(x) (x) #define FP_TO_DOUBLE(x) ((double)(x)) #define INT_TO_FP(x) ((float)(x)) #define FLOAT_TO_FP(x) (x) #define DOUBLE_TO_FP(x) ((float)(x)) #define FP_MULTIPLY(x, y) ((x) * (y)) #define FP_DIVIDE_CEIL(n, d) (lrintf((n) / (d) + 0.5f)); #define FP_ABS(x) (fabsf(x)) #define FP_RAND() ((float)rand() / (float)RAND_MAX) #endif /* ! HEXTER_USE_FLOATING_POINT */ #define SINE_SHIFT 12 #define SINE_SIZE (1<status != DX7_VOICE_OFF) #define _ON(voice) ((voice)->status == DX7_VOICE_ON) #define _SUSTAINED(voice) ((voice)->status == DX7_VOICE_SUSTAINED) #define _RELEASED(voice) ((voice)->status == DX7_VOICE_RELEASED) #define _AVAILABLE(voice) ((voice)->status == DX7_VOICE_OFF) extern dx7_sample_t dx7_voice_sin_table[SINE_SIZE + 1]; extern uint8_t dx7_voice_carriers[32]; extern float dx7_voice_carrier_count[32]; extern dx7_sample_t *dx7_voice_eg_ol_to_mod_index; extern float dx7_voice_velocity_ol_adjustment[128]; extern float dx7_voice_lfo_frequency[128]; extern float dx7_voice_pms_to_semitones[8]; extern float dx7_voice_amd_to_ol_adjustment[100]; extern float dx7_voice_mss_to_ol_adjustment[16]; /* dx7_voice.c */ dx7_voice_t *dx7_voice_new(void); void dx7_voice_note_on(hexter_instance_t *instance, dx7_voice_t *voice, unsigned char key, unsigned char velocity); void dx7_voice_note_off(hexter_instance_t *instance, dx7_voice_t *voice, unsigned char key, unsigned char rvelocity); void dx7_voice_release_note(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_op_eg_set_increment(hexter_instance_t *instance, dx7_op_eg_t *eg, int new_rate, int new_level); void dx7_op_eg_set_next_phase(hexter_instance_t *instance, dx7_op_eg_t *eg); void dx7_op_eg_set_phase(hexter_instance_t *instance, dx7_op_eg_t *eg, int phase); void dx7_op_envelope_prepare(hexter_instance_t *instance, dx7_op_t *op, int transposed_note, int velocity); void dx7_eg_init_constants(hexter_instance_t *instance); void dx7_pitch_eg_set_increment(hexter_instance_t *instance, dx7_pitch_eg_t *eg, int new_rate, int new_level); void dx7_pitch_eg_set_next_phase(hexter_instance_t *instance, dx7_pitch_eg_t *eg); void dx7_pitch_eg_set_phase(hexter_instance_t *instance, dx7_pitch_eg_t *eg, int phase); void dx7_pitch_envelope_prepare(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_portamento_set_segment(hexter_instance_t *instance, dx7_portamento_t *port); void dx7_portamento_prepare(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_op_recalculate_increment(hexter_instance_t *instance, dx7_op_t *op); double dx7_voice_recalculate_frequency(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_voice_recalculate_freq_and_inc(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_voice_recalculate_volume(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_lfo_reset(hexter_instance_t *instance); void dx7_lfo_set(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_lfo_update(hexter_instance_t *instance, unsigned long sample_count); void dx7_voice_update_mod_depths(hexter_instance_t *instance, dx7_voice_t* voice); void dx7_voice_calculate_runtime_parameters(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_voice_setup_note(hexter_instance_t *instance, dx7_voice_t *voice); void dx7_voice_set_data(hexter_instance_t *instance, dx7_voice_t *voice); /* dx7_voice_render.c */ void dx7_voice_render(hexter_instance_t *instance, dx7_voice_t *voice, LADSPA_Data *out, unsigned long sample_count, int do_control_update); /* dx7_voice_tables.c */ void dx7_voice_init_tables(void); #endif /* _DX7_VOICE_H */ hexter-1.0.2/src/hexter_synth.h0000644000076400007640000002361512041560262013433 00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011, 2012 Sean Bolton and others. * * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * Portions of this file may have come from alsa-lib, copyright * and licensed under the LGPL v2.1. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _HEXTER_SYNTH_H #define _HEXTER_SYNTH_H #include #include #include #include "hexter_types.h" #include "hexter.h" #define DSSP_MONO_MODE_OFF 0 #define DSSP_MONO_MODE_ON 1 #define DSSP_MONO_MODE_ONCE 2 #define DSSP_MONO_MODE_BOTH 3 /* * hexter_instance_t */ struct _hexter_instance_t { hexter_instance_t *next; /* output */ LADSPA_Data *output; /* input */ LADSPA_Data *tuning; LADSPA_Data *volume; float sample_rate; float nugget_rate; /* nuggets per second */ int32_t ramp_duration; /* frames per ramp for mods and volume */ dx7_sample_t dx7_eg_max_slew; /* max op eg increment, in units per frame */ /* voice tracking */ int polyphony; /* requested polyphony, must be <= HEXTER_MAX_POLYPHONY */ int monophonic; /* true if operating in monophonic mode */ int max_voices; /* current max polyphony, either requested polyphony above or 1 while in monophonic mode */ int current_voices; /* count of currently playing voices */ dx7_voice_t *mono_voice; unsigned char last_key; /* portamento starting key */ signed char held_keys[8]; /* for monophonic key tracking, an array of note-ons, most recently received first */ /* patches and edit buffer */ pthread_mutex_t patches_mutex; int pending_program_change; dx7_patch_t *patches; int current_program; uint8_t current_patch_buffer[DX7_VOICE_SIZE_UNPACKED]; /* current unpacked patch in use */ int overlay_program; /* program to which 'configure edit_buffer' patch applies, or -1 */ uint8_t overlay_patch_buffer[DX7_VOICE_SIZE_UNPACKED]; /* 'configure edit_buffer' patch */ /* global performance parameter buffer */ uint8_t performance_buffer[DX7_PERFORMANCE_SIZE]; /* current performance perameters (from global buffer or current patch) */ uint8_t pitch_bend_range; /* in semitones */ uint8_t portamento_time; uint8_t mod_wheel_sensitivity; uint8_t mod_wheel_assign; uint8_t foot_sensitivity; uint8_t foot_assign; uint8_t pressure_sensitivity; uint8_t pressure_assign; uint8_t breath_sensitivity; uint8_t breath_assign; /* current non-LADSPA-port-mapped controller values */ unsigned char key_pressure[128]; unsigned char cc[128]; /* controller values */ unsigned char channel_pressure; int pitch_wheel; /* range is -8192 - 8191 */ /* translated port and controller values */ double fixed_freq_multiplier; unsigned long cc_volume; /* volume msb*128 + lsb, max 16256 */ double pitch_bend; /* frequency shift, in semitones */ int mods_serial; float mod_wheel; float foot; float breath; uint8_t lfo_speed; uint8_t lfo_wave; uint8_t lfo_delay; dx7_sample_t lfo_delay_value[3]; int32_t lfo_delay_duration[3]; dx7_sample_t lfo_delay_increment[3]; int32_t lfo_phase; dx7_sample_t lfo_value; double lfo_value_for_pitch; /* no delay, unramped */ int32_t lfo_duration; dx7_sample_t lfo_increment; dx7_sample_t lfo_target; dx7_sample_t lfo_increment0; dx7_sample_t lfo_increment1; int32_t lfo_duration0; int32_t lfo_duration1; dx7_sample_t lfo_buffer[HEXTER_NUGGET_SIZE]; #ifdef HEXTER_DEBUG_CONTROL dx7_sample_t feedback_mod; #endif }; /* * hexter_synth_t */ struct _hexter_synth_t { int initialized; int instance_count; hexter_instance_t *instances; pthread_mutex_t mutex; int mutex_grab_failed; unsigned long nugget_remains; unsigned int note_id; /* incremented for every new note, used for voice-stealing prioritization */ int global_polyphony; /* must be <= HEXTER_MAX_POLYPHONY */ dx7_voice_t *voice[HEXTER_MAX_POLYPHONY]; }; /* hexter_synth.c */ void dx7_voice_off(dx7_voice_t* voice); void dx7_voice_start_voice(dx7_voice_t *voice); void hexter_synth_all_voices_off(void); void hexter_instance_all_voices_off(hexter_instance_t *instance); void hexter_instance_note_off(hexter_instance_t *instance, unsigned char key, unsigned char rvelocity); void hexter_instance_all_notes_off(hexter_instance_t *instance); void hexter_instance_note_on(hexter_instance_t *instance, unsigned char key, unsigned char velocity); void hexter_instance_key_pressure(hexter_instance_t *instance, unsigned char key, unsigned char pressure); void hexter_instance_damp_voices(hexter_instance_t *instance); void hexter_instance_control_change(hexter_instance_t *instance, unsigned int param, signed int value); void hexter_instance_channel_pressure(hexter_instance_t *instance, signed int pressure); void hexter_instance_pitch_bend(hexter_instance_t *instance, signed int value); void hexter_instance_init_controls(hexter_instance_t *instance); void hexter_instance_set_performance_data(hexter_instance_t *instance); void hexter_instance_select_program(hexter_instance_t *instance, unsigned long bank, unsigned long program); int hexter_instance_set_program_descriptor(hexter_instance_t *instance, DSSI_Program_Descriptor *pd, unsigned long bank, unsigned long program); char *hexter_instance_handle_patches(hexter_instance_t *instance, const char *key, const char *value); char *hexter_instance_handle_edit_buffer(hexter_instance_t *instance, const char *value); char *hexter_instance_handle_monophonic(hexter_instance_t *instance, const char *value); char *hexter_instance_handle_polyphony(hexter_instance_t *instance, const char *value); char *hexter_synth_handle_global_polyphony(const char *value); char *hexter_instance_handle_performance(hexter_instance_t *instance, const char *value); void hexter_synth_render_voices(unsigned long samples_done, unsigned long sample_count, int do_control_update); /* these come right out of alsa/asoundef.h */ #define MIDI_CTL_MSB_MODWHEEL 0x01 /**< Modulation */ #define MIDI_CTL_MSB_BREATH 0x02 /**< Breath */ #define MIDI_CTL_MSB_FOOT 0x04 /**< Foot */ /* -FIX- support 5 portamento time */ #define MIDI_CTL_MSB_DATA_ENTRY 0x06 /**< Data entry */ #define MIDI_CTL_MSB_MAIN_VOLUME 0x07 /**< Main volume */ #define MIDI_CTL_MSB_PAN 0x0a /**< Panpot */ #define MIDI_CTL_MSB_EXPRESSION 0x0b /**< Expression */ #define MIDI_CTL_MSB_GENERAL_PURPOSE1 0x10 /**< General purpose 1 */ #define MIDI_CTL_MSB_GENERAL_PURPOSE2 0x11 /**< General purpose 2 */ #define MIDI_CTL_MSB_GENERAL_PURPOSE3 0x12 /**< General purpose 3 */ #define MIDI_CTL_MSB_GENERAL_PURPOSE4 0x13 /**< General purpose 4 */ #define MIDI_CTL_LSB_MODWHEEL 0x21 /**< Modulation */ #define MIDI_CTL_LSB_BREATH 0x22 /**< Breath */ #define MIDI_CTL_LSB_FOOT 0x24 /**< Foot */ #define MIDI_CTL_LSB_DATA_ENTRY 0x26 /**< Data entry */ #define MIDI_CTL_LSB_MAIN_VOLUME 0x27 /**< Main volume */ #define MIDI_CTL_SUSTAIN 0x40 /**< Sustain pedal */ /* -FIX- support 65(?) portamento switch */ #define MIDI_CTL_GENERAL_PURPOSE5 0x50 /**< General purpose 5 */ #define MIDI_CTL_GENERAL_PURPOSE6 0x51 /**< General purpose 6 */ #define MIDI_CTL_NONREG_PARM_NUM_LSB 0x62 /**< Non-registered parameter number */ #define MIDI_CTL_NONREG_PARM_NUM_MSB 0x63 /**< Non-registered parameter number */ #define MIDI_CTL_REGIST_PARM_NUM_LSB 0x64 /**< Registered parameter number */ #define MIDI_CTL_REGIST_PARM_NUM_MSB 0x65 /**< Registered parameter number */ #define MIDI_CTL_ALL_SOUNDS_OFF 0x78 /**< All sounds off */ #define MIDI_CTL_RESET_CONTROLLERS 0x79 /**< Reset Controllers */ #define MIDI_CTL_ALL_NOTES_OFF 0x7b /**< All notes off */ #define HEXTER_INSTANCE_SUSTAINED(_s) ((_s)->cc[MIDI_CTL_SUSTAIN] >= 64) #endif /* _HEXTER_SYNTH_H */ hexter-1.0.2/src/gui_midi.c0000644000076400007640000000722512042261633012470 00000000000000/* hexter DSSI software synthesizer GUI * * Copyright (C) 2004, 2009, 2012 Sean Bolton and others. * * Portions of this file may have come from specimen, copyright * (c) 2004 Pete Bessman under the GNU General Public License * version 2. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef MIDI_ALSA #include #include #include "gui_main.h" #include "gui_midi.h" int sysex_enabled = 0; snd_seq_t *sysex_seq_handle; int sysex_seq_client_id; int sysex_seq_port_id; gint sysex_seq_gtk_fd_tag; sysex_callback_function *sysex_handler_callback; void sysex_receive_callback(gpointer data, gint source, GdkInputCondition condition) { snd_seq_event_t *ev; do { if (snd_seq_event_input(sysex_seq_handle, &ev) <= 0) continue; if (ev->type == SND_SEQ_EVENT_SYSEX) { (*sysex_handler_callback)(ev->data.ext.len, ev->data.ext.ptr); } snd_seq_free_event(ev); } while (snd_seq_event_input_pending(sysex_seq_handle, 0) > 0); } int sysex_start(sysex_callback_function *handler, char **errmsg) { char buf[33]; int npfd; struct pollfd pfd; if (snd_seq_open(&sysex_seq_handle, "default", SND_SEQ_OPEN_INPUT, SND_SEQ_NONBLOCK) < 0) { *errmsg = "Error opening ALSA sequencer.\n"; return 0; } snprintf(buf, 33, "hexter %s", user_friendly_id); snd_seq_set_client_name(sysex_seq_handle, buf); sysex_seq_client_id = snd_seq_client_id(sysex_seq_handle); if ((sysex_seq_port_id = snd_seq_create_simple_port(sysex_seq_handle, "sys-ex receive", SND_SEQ_PORT_CAP_WRITE|SND_SEQ_PORT_CAP_SUBS_WRITE, SND_SEQ_PORT_TYPE_APPLICATION)) < 0) { *errmsg = "Error creating sequencer port.\n"; snd_seq_close(sysex_seq_handle); return 0; } sysex_handler_callback = handler; /* tell GTK+ to watch seq fd */ npfd = snd_seq_poll_descriptors_count(sysex_seq_handle, POLLIN); if (npfd != 1) { *errmsg = "Incompatible ALSA version.\n"; snd_seq_close(sysex_seq_handle); return 0; } snd_seq_poll_descriptors(sysex_seq_handle, &pfd, npfd, POLLIN); sysex_seq_gtk_fd_tag = gdk_input_add(pfd.fd, GDK_INPUT_READ, sysex_receive_callback, NULL); sysex_enabled = 1; return 1; } void sysex_stop(void) { gdk_input_remove(sysex_seq_gtk_fd_tag); snd_seq_delete_simple_port (sysex_seq_handle, sysex_seq_port_id); snd_seq_close(sysex_seq_handle); sysex_enabled = 0; } #else /* MIDI_ALSA */ #include "gui_midi.h" int sysex_enabled = 0; int sysex_start(sysex_callback_function *handler, char **errmsg) { *errmsg = "MIDI sys-ex support not available!\n"; sysex_enabled = 0; return 0; } void sysex_stop(void) { sysex_enabled = 0; } #endif /* MIDI_ALSA */ hexter-1.0.2/src/dx7_voice_patches.c0000644000076400007640000015767511757612664014337 00000000000000/* hexter DSSI plugin and GUI */ /* Copyright? Hmm, who knows.... */ #include "hexter_types.h" #include "dx7_voice.h" #define FRIENDLY_PATCH_COUNT 71 int friendly_patch_count = FRIENDLY_PATCH_COUNT; dx7_patch_t friendly_patches[FRIENDLY_PATCH_COUNT] = { {{ 0x5f, 0x1d, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x29, 0x00, 0x13, 0x00, 0x73, 0x18, 0x4f, 0x02, 0x00, 0x5f, 0x14, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x2c, 0x00, 0x08, 0x00, 0x03, 0x0a, 0x63, 0x02, 0x00, 0x5f, 0x1d, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x18, 0x59, 0x02, 0x00, 0x5f, 0x14, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x2c, 0x00, 0x08, 0x00, 0x3b, 0x0b, 0x63, 0x02, 0x00, 0x5f, 0x32, 0x23, 0x4e, 0x63, 0x4b, 0x00, 0x00, 0x24, 0x00, 0x32, 0x00, 0x3b, 0x1c, 0x4b, 0x22, 0x36, 0x60, 0x19, 0x19, 0x43, 0x63, 0x4b, 0x00, 0x00, 0x2c, 0x00, 0x08, 0x00, 0x53, 0x1c, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x0c, 0x09, 0x00, 0x00, 0x00, 0x08, 0x18, 0x45, 0x6c, 0x65, 0x63, 0x20, 0x50, 0x69, 0x61, 0x6e, 0x6f }}, {{ 0x63, 0x29, 0x39, 0x2c, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x3f, 0x18, 0x00, 0x63, 0x1a, 0x00, 0x2c, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x10, 0x63, 0x02, 0x00, 0x63, 0x23, 0x39, 0x30, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x0c, 0x3b, 0x0e, 0x00, 0x63, 0x1a, 0x39, 0x30, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x10, 0x63, 0x02, 0x00, 0x62, 0x63, 0x00, 0x5a, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x00, 0x5a, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x07, 0x2f, 0x00, 0x00, 0x00, 0x30, 0x18, 0x46, 0x42, 0x3a, 0x50, 0x66, 0x56, 0x69, 0x62, 0x65, 0x20 }}, {{ 0x5a, 0x00, 0x16, 0x20, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x00, 0x47, 0x04, 0x00, 0x5a, 0x2a, 0x1e, 0x28, 0x63, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x0c, 0x63, 0x01, 0x00, 0x5f, 0x1d, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5b, 0x18, 0x4f, 0x04, 0x00, 0x5f, 0x1e, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x0c, 0x61, 0x04, 0x00, 0x5f, 0x30, 0x23, 0x5a, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x1d, 0x4d, 0x38, 0x00, 0x62, 0x1e, 0x12, 0x42, 0x63, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x10, 0x5e, 0x04, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x00, 0x23, 0x00, 0x00, 0x00, 0x01, 0x0c, 0x46, 0x61, 0x74, 0x54, 0x68, 0x69, 0x6e, 0x45, 0x2e, 0x50 }}, {{ 0x5f, 0x1d, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x29, 0x00, 0x13, 0x00, 0x73, 0x18, 0x4f, 0x02, 0x00, 0x5f, 0x14, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x63, 0x02, 0x00, 0x5f, 0x1d, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x18, 0x59, 0x02, 0x00, 0x5f, 0x14, 0x14, 0x32, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x63, 0x02, 0x00, 0x5f, 0x32, 0x23, 0x4e, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x1c, 0x3a, 0x1c, 0x00, 0x60, 0x19, 0x19, 0x43, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x08, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x04, 0x06, 0x22, 0x21, 0x00, 0x00, 0x38, 0x18, 0x45, 0x2e, 0x50, 0x49, 0x41, 0x4e, 0x4f, 0x20, 0x31, 0x20 }}, {{ 0x5a, 0x34, 0x19, 0x36, 0x63, 0x3c, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x3a, 0x1c, 0x3c, 0x16, 0x00, 0x5f, 0x4e, 0x14, 0x39, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x63, 0x02, 0x00, 0x61, 0x44, 0x0d, 0x36, 0x63, 0x51, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x10, 0x20, 0x1c, 0x00, 0x5f, 0x1f, 0x14, 0x36, 0x63, 0x50, 0x00, 0x00, 0x24, 0x24, 0x00, 0x00, 0x3b, 0x04, 0x63, 0x02, 0x00, 0x5f, 0x63, 0x00, 0x36, 0x63, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x4a, 0x02, 0x00, 0x60, 0x19, 0x19, 0x36, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x05, 0x04, 0x22, 0x21, 0x00, 0x00, 0x08, 0x18, 0x45, 0x2e, 0x50, 0x49, 0x41, 0x4e, 0x4f, 0x20, 0x33, 0x20 }}, {{ 0x7f, 0x2a, 0x2f, 0x24, 0x63, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x10, 0x42, 0x02, 0x00, 0x5a, 0x44, 0x14, 0x2b, 0x5f, 0x5a, 0x00, 0x00, 0x27, 0x53, 0x00, 0x03, 0x3b, 0x0c, 0x46, 0x02, 0x00, 0x61, 0x1b, 0x0a, 0x19, 0x63, 0x56, 0x30, 0x00, 0x00, 0x00, 0x60, 0x00, 0x3b, 0x00, 0x61, 0x06, 0x00, 0x5a, 0x1b, 0x14, 0x32, 0x63, 0x55, 0x00, 0x00, 0x24, 0x00, 0x44, 0x00, 0x3b, 0x08, 0x47, 0x0a, 0x00, 0x5f, 0x1e, 0x19, 0x32, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x3a, 0x08, 0x56, 0x02, 0x00, 0x60, 0x1e, 0x19, 0x32, 0x63, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x0c, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x10, 0x05, 0x22, 0x21, 0x00, 0x00, 0x08, 0x18, 0x45, 0x2e, 0x47, 0x52, 0x41, 0x4e, 0x44, 0x20, 0x31, 0x20 }}, {{ 0x63, 0x00, 0x19, 0x00, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x35, 0x00, 0x52, 0x02, 0x00, 0x51, 0x3a, 0x24, 0x27, 0x63, 0x0e, 0x00, 0x00, 0x30, 0x00, 0x42, 0x00, 0x35, 0x04, 0x5d, 0x02, 0x3a, 0x51, 0x17, 0x16, 0x2d, 0x63, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x45, 0x08, 0x63, 0x02, 0x00, 0x51, 0x19, 0x19, 0x0e, 0x63, 0x63, 0x63, 0x00, 0x2f, 0x20, 0x4a, 0x03, 0x3d, 0x00, 0x39, 0x06, 0x00, 0x63, 0x00, 0x19, 0x00, 0x63, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x4d, 0x00, 0x57, 0x02, 0x00, 0x51, 0x19, 0x14, 0x30, 0x63, 0x52, 0x00, 0x00, 0x00, 0x55, 0x00, 0x03, 0x2c, 0x08, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x12, 0x0e, 0x23, 0x00, 0x00, 0x00, 0x40, 0x18, 0x50, 0x49, 0x41, 0x4e, 0x4f, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x5e, 0x13, 0x00, 0x2a, 0x63, 0x5c, 0x00, 0x00, 0x1a, 0x08, 0x00, 0x03, 0x70, 0x04, 0x3a, 0x10, 0x00, 0x48, 0x10, 0x00, 0x2a, 0x63, 0x5c, 0x00, 0x00, 0x0b, 0x14, 0x4c, 0x00, 0x4c, 0x0c, 0x45, 0x28, 0x00, 0x40, 0x0e, 0x09, 0x2b, 0x63, 0x58, 0x00, 0x00, 0x03, 0x00, 0x47, 0x07, 0x45, 0x04, 0x4f, 0x08, 0x00, 0x41, 0x0f, 0x0b, 0x2b, 0x63, 0x58, 0x00, 0x00, 0x33, 0x00, 0x15, 0x00, 0x34, 0x04, 0x4d, 0x02, 0x00, 0x42, 0x3d, 0x40, 0x37, 0x63, 0x52, 0x00, 0x00, 0x60, 0x14, 0x00, 0x00, 0x39, 0x08, 0x50, 0x03, 0x57, 0x46, 0x14, 0x0b, 0x2e, 0x63, 0x5a, 0x00, 0x00, 0x46, 0x03, 0x28, 0x00, 0x3e, 0x18, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x31, 0x32, 0x32, 0x32, 0x0f, 0x08, 0x23, 0x00, 0x00, 0x00, 0x01, 0x18, 0x41, 0x2e, 0x50, 0x69, 0x61, 0x6e, 0x6f, 0x31, 0x2e, 0x35 }}, {{ 0x5f, 0x48, 0x47, 0x63, 0x63, 0x61, 0x5b, 0x62, 0x40, 0x00, 0x37, 0x00, 0x39, 0x00, 0x57, 0x0c, 0x00, 0x5f, 0x1c, 0x1b, 0x2f, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x0c, 0x53, 0x08, 0x00, 0x5f, 0x48, 0x47, 0x63, 0x63, 0x61, 0x5b, 0x62, 0x40, 0x00, 0x2e, 0x00, 0x39, 0x00, 0x63, 0x06, 0x00, 0x5f, 0x1c, 0x1b, 0x2f, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5b, 0x08, 0x55, 0x02, 0x00, 0x5f, 0x48, 0x47, 0x63, 0x63, 0x61, 0x5b, 0x62, 0x00, 0x00, 0x00, 0x00, 0x39, 0x00, 0x63, 0x00, 0x00, 0x5f, 0x1c, 0x1b, 0x2f, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2b, 0x08, 0x59, 0x08, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x09, 0x23, 0x00, 0x00, 0x00, 0x20, 0x24, 0x48, 0x41, 0x52, 0x50, 0x53, 0x49, 0x43, 0x48, 0x2e, 0x20 }}, {{ 0x63, 0x30, 0x63, 0x32, 0x63, 0x20, 0x00, 0x00, 0x27, 0x0c, 0x0c, 0x0c, 0x3d, 0x1c, 0x3e, 0x1c, 0x00, 0x50, 0x55, 0x18, 0x32, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x14, 0x63, 0x02, 0x00, 0x50, 0x55, 0x18, 0x32, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6b, 0x1c, 0x63, 0x02, 0x00, 0x50, 0x55, 0x2b, 0x32, 0x63, 0x4a, 0x00, 0x00, 0x27, 0x0c, 0x0c, 0x0c, 0x3c, 0x10, 0x4e, 0x06, 0x00, 0x50, 0x55, 0x18, 0x32, 0x63, 0x5a, 0x00, 0x00, 0x27, 0x04, 0x0c, 0x0c, 0x3a, 0x14, 0x63, 0x02, 0x00, 0x63, 0x1c, 0x63, 0x32, 0x63, 0x19, 0x00, 0x00, 0x27, 0x0c, 0x0c, 0x0c, 0x3a, 0x1c, 0x46, 0x08, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x16, 0x0d, 0x1a, 0x00, 0x00, 0x00, 0x11, 0x18, 0x56, 0x49, 0x42, 0x45, 0x53, 0x20, 0x20, 0x20, 0x20, 0x41 }}, {{ 0x62, 0x4d, 0x37, 0x00, 0x4e, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x10, 0x57, 0x0e, 0x07, 0x62, 0x40, 0x00, 0x08, 0x52, 0x30, 0x00, 0x00, 0x36, 0x00, 0x2e, 0x00, 0x38, 0x08, 0x61, 0x0e, 0x00, 0x5a, 0x3f, 0x00, 0x52, 0x52, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x14, 0x5b, 0x0e, 0x00, 0x62, 0x1d, 0x20, 0x2e, 0x63, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x14, 0x63, 0x02, 0x00, 0x62, 0x1e, 0x2e, 0x32, 0x63, 0x50, 0x00, 0x00, 0x36, 0x00, 0x2e, 0x00, 0x3c, 0x10, 0x3c, 0x0a, 0x00, 0x62, 0x15, 0x19, 0x2e, 0x63, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x10, 0x63, 0x02, 0x01, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x06, 0x0f, 0x15, 0x00, 0x00, 0x00, 0x21, 0x18, 0x41, 0x2e, 0x4d, 0x41, 0x4c, 0x4c, 0x45, 0x54, 0x20, 0x41 }}, {{ 0x63, 0x41, 0x55, 0x49, 0x63, 0x12, 0x00, 0x00, 0x24, 0x33, 0x06, 0x01, 0x71, 0x10, 0x55, 0x06, 0x0b, 0x63, 0x31, 0x4e, 0x32, 0x63, 0x15, 0x0b, 0x00, 0x00, 0x00, 0x14, 0x04, 0x71, 0x08, 0x63, 0x02, 0x00, 0x63, 0x4a, 0x15, 0x55, 0x59, 0x22, 0x00, 0x00, 0x25, 0x63, 0x00, 0x03, 0x3a, 0x14, 0x63, 0x04, 0x1c, 0x63, 0x1e, 0x4e, 0x25, 0x63, 0x15, 0x0b, 0x00, 0x30, 0x63, 0x63, 0x06, 0x3f, 0x10, 0x63, 0x02, 0x00, 0x63, 0x52, 0x32, 0x49, 0x63, 0x56, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x02, 0x10, 0x63, 0x06, 0x0b, 0x63, 0x1e, 0x4e, 0x25, 0x63, 0x15, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x08, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x30, 0x32, 0x32, 0x32, 0x04, 0x00, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x43, 0x41, 0x52, 0x49, 0x42, 0x49, 0x43, 0x20, 0x32, 0x20 }}, {{ 0x63, 0x3d, 0x37, 0x32, 0x63, 0x50, 0x00, 0x00, 0x0f, 0x00, 0x14, 0x04, 0x44, 0x00, 0x3b, 0x08, 0x00, 0x63, 0x27, 0x27, 0x27, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x14, 0x04, 0x3c, 0x00, 0x63, 0x00, 0x00, 0x63, 0x3d, 0x37, 0x32, 0x63, 0x50, 0x00, 0x00, 0x0f, 0x00, 0x14, 0x04, 0x3c, 0x00, 0x39, 0x12, 0x00, 0x63, 0x27, 0x27, 0x27, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x14, 0x04, 0x44, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x08, 0x23, 0x00, 0x00, 0x00, 0x01, 0x18, 0x4d, 0x41, 0x52, 0x49, 0x4d, 0x42, 0x41, 0x20, 0x20, 0x20 }}, {{ 0x00, 0x51, 0x37, 0x00, 0x4e, 0x4e, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00, 0x38, 0x14, 0x4b, 0x08, 0x00, 0x63, 0x56, 0x37, 0x00, 0x60, 0x4e, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00, 0x38, 0x08, 0x4f, 0x00, 0x00, 0x63, 0x49, 0x00, 0x0e, 0x52, 0x30, 0x00, 0x00, 0x36, 0x00, 0x2e, 0x00, 0x38, 0x08, 0x5e, 0x06, 0x00, 0x5f, 0x32, 0x31, 0x29, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x18, 0x63, 0x00, 0x00, 0x63, 0x47, 0x00, 0x00, 0x52, 0x30, 0x00, 0x00, 0x36, 0x00, 0x2e, 0x00, 0x38, 0x08, 0x63, 0x06, 0x00, 0x5f, 0x2b, 0x31, 0x35, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x14, 0x63, 0x00, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x06, 0x08, 0x22, 0x21, 0x00, 0x00, 0x18, 0x30, 0x58, 0x59, 0x4c, 0x4f, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x20 }}, {{ 0x62, 0x57, 0x00, 0x00, 0x57, 0x56, 0x00, 0x00, 0x20, 0x00, 0x15, 0x00, 0x3b, 0x08, 0x52, 0x28, 0x00, 0x5f, 0x5f, 0x36, 0x00, 0x63, 0x60, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2b, 0x10, 0x4a, 0x08, 0x00, 0x5f, 0x5c, 0x1c, 0x3c, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x0c, 0x51, 0x06, 0x00, 0x62, 0x57, 0x00, 0x00, 0x57, 0x56, 0x00, 0x00, 0x20, 0x00, 0x15, 0x00, 0x3b, 0x1c, 0x55, 0x0e, 0x32, 0x5f, 0x5f, 0x00, 0x00, 0x63, 0x60, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x14, 0x52, 0x00, 0x00, 0x5f, 0x5c, 0x1c, 0x3c, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23, 0x1c, 0x63, 0x04, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x11, 0x0b, 0x1e, 0x00, 0x00, 0x00, 0x28, 0x24, 0x43, 0x4c, 0x41, 0x56, 0x2e, 0x20, 0x20, 0x20, 0x20, 0x42 }}, {{ 0x63, 0x39, 0x63, 0x4b, 0x63, 0x00, 0x00, 0x00, 0x27, 0x35, 0x14, 0x00, 0x38, 0x1b, 0x39, 0x18, 0x00, 0x51, 0x57, 0x16, 0x4b, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x3c, 0x1c, 0x63, 0x06, 0x00, 0x51, 0x57, 0x16, 0x4b, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x3c, 0x10, 0x59, 0x06, 0x00, 0x4e, 0x57, 0x16, 0x4b, 0x63, 0x5c, 0x00, 0x00, 0x22, 0x09, 0x00, 0x00, 0x3b, 0x1c, 0x63, 0x02, 0x00, 0x5b, 0x19, 0x27, 0x3c, 0x63, 0x56, 0x00, 0x00, 0x00, 0x00, 0x41, 0x00, 0x3a, 0x1c, 0x5d, 0x06, 0x00, 0x4a, 0x55, 0x1b, 0x46, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x14, 0x63, 0x02, 0x00, 0x4b, 0x50, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x07, 0x07, 0x23, 0x00, 0x01, 0x03, 0x38, 0x18, 0x47, 0x55, 0x49, 0x54, 0x41, 0x52, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x5b, 0x1c, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x3b, 0x08, 0x59, 0x0a, 0x00, 0x34, 0x17, 0x18, 0x35, 0x60, 0x1b, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x04, 0x3b, 0x0c, 0x3d, 0x02, 0x00, 0x5b, 0x1c, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x14, 0x00, 0x00, 0x04, 0x3b, 0x08, 0x3f, 0x06, 0x00, 0x4b, 0x1c, 0x18, 0x42, 0x63, 0x1b, 0x00, 0x00, 0x19, 0x00, 0x00, 0x0a, 0x3b, 0x04, 0x55, 0x02, 0x00, 0x5b, 0x1c, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x14, 0x00, 0x00, 0x04, 0x4b, 0x04, 0x4b, 0x02, 0x00, 0x4b, 0x1c, 0x18, 0x42, 0x63, 0x1b, 0x00, 0x00, 0x19, 0x00, 0x00, 0x0a, 0x3b, 0x0c, 0x56, 0x02, 0x00, 0x63, 0x62, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0d, 0x04, 0x27, 0x55, 0x01, 0x00, 0x18, 0x0c, 0x47, 0x55, 0x49, 0x54, 0x41, 0x52, 0x20, 0x20, 0x33, 0x20 }}, {{ 0x5b, 0x1c, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x4a, 0x0a, 0x00, 0x34, 0x17, 0x18, 0x35, 0x60, 0x1b, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x04, 0x3b, 0x0c, 0x3d, 0x02, 0x00, 0x5b, 0x1c, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x14, 0x00, 0x00, 0x04, 0x3b, 0x08, 0x3f, 0x06, 0x00, 0x4b, 0x1c, 0x18, 0x42, 0x63, 0x1b, 0x00, 0x00, 0x19, 0x00, 0x00, 0x0a, 0x3b, 0x04, 0x63, 0x02, 0x00, 0x5b, 0x62, 0x18, 0x35, 0x63, 0x1b, 0x00, 0x00, 0x14, 0x00, 0x00, 0x04, 0x4b, 0x04, 0x60, 0x36, 0x00, 0x4b, 0x4f, 0x18, 0x42, 0x63, 0x1b, 0x00, 0x00, 0x19, 0x00, 0x00, 0x0a, 0x3b, 0x0c, 0x58, 0x02, 0x00, 0x62, 0x62, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0d, 0x04, 0x27, 0x55, 0x01, 0x00, 0x18, 0x18, 0x53, 0x50, 0x41, 0x4e, 0x49, 0x53, 0x48, 0x47, 0x54, 0x52 }}, {{ 0x60, 0x46, 0x1a, 0x30, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x40, 0x00, 0x48, 0x0c, 0x00, 0x63, 0x21, 0x1a, 0x47, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x38, 0x00, 0x3c, 0x08, 0x00, 0x63, 0x22, 0x1a, 0x47, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x54, 0x00, 0x25, 0x04, 0x00, 0x53, 0x22, 0x00, 0x26, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3c, 0x00, 0x63, 0x02, 0x00, 0x63, 0x22, 0x1a, 0x47, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x3c, 0x00, 0x49, 0x04, 0x00, 0x53, 0x22, 0x00, 0x26, 0x63, 0x00, 0x00, 0x00, 0x27, 0x00, 0x46, 0x00, 0x3c, 0x00, 0x54, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x0d, 0x0f, 0x1b, 0x00, 0x01, 0x00, 0x40, 0x18, 0x4c, 0x55, 0x54, 0x45, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }}, {{ 0x60, 0x59, 0x1a, 0x2e, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x40, 0x10, 0x54, 0x0c, 0x00, 0x63, 0x38, 0x1a, 0x2a, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x38, 0x04, 0x38, 0x14, 0x53, 0x0a, 0x00, 0x63, 0x22, 0x1a, 0x27, 0x63, 0x00, 0x00, 0x00, 0x54, 0x0e, 0x63, 0x01, 0x3a, 0x14, 0x52, 0x04, 0x00, 0x53, 0x22, 0x00, 0x2e, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x1c, 0x04, 0x61, 0x18, 0x63, 0x02, 0x00, 0x63, 0x3c, 0x1a, 0x47, 0x63, 0x00, 0x00, 0x00, 0x63, 0x56, 0x63, 0x05, 0x3a, 0x18, 0x50, 0x04, 0x00, 0x53, 0x23, 0x00, 0x27, 0x63, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x1c, 0x04, 0x3a, 0x1c, 0x60, 0x02, 0x00, 0x62, 0x62, 0x62, 0x62, 0x32, 0x32, 0x32, 0x32, 0x0d, 0x0f, 0x1b, 0x00, 0x01, 0x00, 0x30, 0x18, 0x48, 0x41, 0x52, 0x50, 0x20, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x60, 0x21, 0x00, 0x63, 0x63, 0x4f, 0x00, 0x00, 0x27, 0x0d, 0x20, 0x03, 0x3e, 0x04, 0x51, 0x14, 0x00, 0x60, 0x19, 0x00, 0x63, 0x63, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x14, 0x2c, 0x02, 0x00, 0x60, 0x17, 0x03, 0x1a, 0x63, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x0c, 0x4a, 0x02, 0x00, 0x60, 0x18, 0x0d, 0x31, 0x63, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0x14, 0x63, 0x02, 0x00, 0x62, 0x63, 0x00, 0x5a, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x00, 0x5a, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x07, 0x07, 0x33, 0x00, 0x00, 0x00, 0x30, 0x18, 0x46, 0x42, 0x3a, 0x50, 0x6c, 0x75, 0x63, 0x6b, 0x47, 0x74 }}, {{ 0x5e, 0x4a, 0x19, 0x2a, 0x63, 0x57, 0x23, 0x00, 0x27, 0x30, 0x00, 0x00, 0x3a, 0x04, 0x4d, 0x02, 0x00, 0x5e, 0x50, 0x27, 0x2a, 0x63, 0x57, 0x00, 0x00, 0x32, 0x12, 0x63, 0x03, 0x3a, 0x1c, 0x4e, 0x16, 0x00, 0x5a, 0x23, 0x0e, 0x32, 0x63, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x10, 0x4f, 0x02, 0x00, 0x5e, 0x50, 0x35, 0x2a, 0x63, 0x5f, 0x37, 0x00, 0x22, 0x12, 0x15, 0x03, 0x3a, 0x18, 0x4c, 0x1a, 0x00, 0x5a, 0x4c, 0x1a, 0x34, 0x63, 0x5e, 0x4c, 0x00, 0x3c, 0x00, 0x32, 0x00, 0x3a, 0x10, 0x4e, 0x04, 0x00, 0x5a, 0x4e, 0x18, 0x31, 0x63, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x14, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x0a, 0x0e, 0x12, 0x00, 0x00, 0x00, 0x01, 0x18, 0x4c, 0x4f, 0x54, 0x55, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20 }}, {{ 0x63, 0x36, 0x16, 0x5a, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x5e, 0x06, 0x00, 0x63, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x5e, 0x02, 0x00, 0x63, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x5e, 0x00, 0x00, 0x63, 0x50, 0x36, 0x52, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x5e, 0x02, 0x32, 0x63, 0x14, 0x16, 0x5a, 0x63, 0x63, 0x61, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x5e, 0x02, 0x01, 0x63, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x5e, 0x00, 0x00, 0x4b, 0x50, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x1f, 0x08, 0x23, 0x00, 0x00, 0x00, 0x40, 0x18, 0x45, 0x2e, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x20, 0x31, 0x20 }}, {{ 0x5e, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x60, 0x02, 0x32, 0x5e, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x60, 0x02, 0x00, 0x5e, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x60, 0x00, 0x00, 0x5b, 0x50, 0x36, 0x52, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x60, 0x02, 0x32, 0x5e, 0x14, 0x16, 0x5a, 0x63, 0x63, 0x61, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x63, 0x02, 0x01, 0x5e, 0x50, 0x16, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x63, 0x00, 0x00, 0x4b, 0x50, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x1f, 0x08, 0x09, 0x62, 0x0d, 0x26, 0x18, 0x18, 0x48, 0x41, 0x4d, 0x4d, 0x20, 0x4f, 0x52, 0x47, 0x37, 0x20 }}, {{ 0x63, 0x38, 0x00, 0x63, 0x63, 0x00, 0x00, 0x00, 0x27, 0x63, 0x63, 0x0c, 0x3b, 0x00, 0x63, 0x12, 0x00, 0x63, 0x2a, 0x47, 0x63, 0x63, 0x63, 0x63, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3b, 0x00, 0x63, 0x00, 0x00, 0x63, 0x2a, 0x47, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x04, 0x3b, 0x01, 0x63, 0x02, 0x63, 0x63, 0x2a, 0x47, 0x63, 0x63, 0x63, 0x63, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3b, 0x00, 0x63, 0x02, 0x01, 0x63, 0x2a, 0x47, 0x63, 0x63, 0x63, 0x63, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x33, 0x00, 0x63, 0x02, 0x00, 0x63, 0x2a, 0x47, 0x63, 0x63, 0x63, 0x63, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3b, 0x00, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x1f, 0x08, 0x2e, 0x00, 0x00, 0x63, 0x19, 0x18, 0x43, 0x4c, 0x49, 0x43, 0x2e, 0x4f, 0x52, 0x47, 0x44, 0x57 }}, {{ 0x63, 0x2a, 0x03, 0x49, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x0c, 0x58, 0x06, 0x00, 0x63, 0x39, 0x2d, 0x42, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x0c, 0x58, 0x0c, 0x00, 0x63, 0x63, 0x03, 0x42, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x0c, 0x63, 0x02, 0x00, 0x63, 0x63, 0x03, 0x42, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x0c, 0x63, 0x04, 0x00, 0x62, 0x2a, 0x03, 0x49, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x0c, 0x58, 0x0c, 0x00, 0x62, 0x63, 0x03, 0x42, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x0c, 0x58, 0x08, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x1f, 0x03, 0x2f, 0x00, 0x00, 0x00, 0x30, 0x18, 0x4a, 0x4f, 0x72, 0x67, 0x20, 0x43, 0x6f, 0x6d, 0x62, 0x6f }}, {{ 0x3f, 0x0f, 0x62, 0x2e, 0x62, 0x63, 0x62, 0x00, 0x0f, 0x00, 0x0e, 0x04, 0x4c, 0x14, 0x51, 0x10, 0x00, 0x33, 0x0f, 0x62, 0x2e, 0x61, 0x63, 0x62, 0x00, 0x28, 0x30, 0x06, 0x00, 0x34, 0x00, 0x57, 0x08, 0x00, 0x3b, 0x0f, 0x62, 0x4d, 0x62, 0x63, 0x62, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x14, 0x3e, 0x0e, 0x00, 0x3b, 0x0f, 0x62, 0x33, 0x62, 0x63, 0x62, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x5b, 0x02, 0x00, 0x63, 0x50, 0x62, 0x2e, 0x61, 0x63, 0x62, 0x00, 0x0f, 0x00, 0x32, 0x04, 0x3c, 0x00, 0x5e, 0x00, 0x00, 0x33, 0x0f, 0x62, 0x2e, 0x61, 0x63, 0x62, 0x00, 0x0b, 0x4e, 0x0e, 0x07, 0x3a, 0x00, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x0d, 0x24, 0x00, 0x00, 0x00, 0x30, 0x18, 0x50, 0x49, 0x50, 0x45, 0x53, 0x20, 0x20, 0x20, 0x20, 0x41 }}, {{ 0x59, 0x50, 0x16, 0x41, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x3c, 0x04, 0x38, 0x00, 0x3a, 0x08, 0x01, 0x58, 0x44, 0x16, 0x4b, 0x3c, 0x63, 0x63, 0x00, 0x00, 0x00, 0x32, 0x04, 0x38, 0x00, 0x50, 0x10, 0x01, 0x49, 0x50, 0x16, 0x32, 0x4f, 0x63, 0x63, 0x00, 0x00, 0x00, 0x14, 0x00, 0x30, 0x00, 0x62, 0x04, 0x01, 0x4c, 0x50, 0x16, 0x3f, 0x63, 0x63, 0x63, 0x00, 0x23, 0x0d, 0x0f, 0x00, 0x3c, 0x00, 0x57, 0x02, 0x01, 0x63, 0x63, 0x39, 0x40, 0x39, 0x34, 0x63, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x38, 0x00, 0x63, 0x08, 0x01, 0x4d, 0x50, 0x4a, 0x30, 0x63, 0x61, 0x63, 0x00, 0x23, 0x0d, 0x0a, 0x03, 0x3a, 0x00, 0x63, 0x00, 0x00, 0x5e, 0x03, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x18, 0x03, 0x23, 0x3f, 0x00, 0x00, 0x18, 0x18, 0x50, 0x49, 0x50, 0x45, 0x53, 0x20, 0x20, 0x20, 0x33, 0x20 }}, {{ 0x61, 0x63, 0x3e, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x17, 0x00, 0x0c, 0x00, 0x61, 0x26, 0x29, 0x63, 0x63, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0x1c, 0x3d, 0x12, 0x00, 0x3b, 0x29, 0x22, 0x47, 0x63, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x35, 0x1c, 0x36, 0x12, 0x00, 0x3b, 0x00, 0x00, 0x47, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x4b, 0x00, 0x00, 0x3b, 0x63, 0x16, 0x47, 0x56, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65, 0x14, 0x3e, 0x06, 0x00, 0x61, 0x21, 0x1c, 0x47, 0x63, 0x5e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x08, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x10, 0x0f, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x45, 0x2e, 0x42, 0x41, 0x53, 0x53, 0x20, 0x46, 0x69, 0x78 }}, {{ 0x5e, 0x38, 0x18, 0x37, 0x5d, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x1c, 0x55, 0x12, 0x00, 0x63, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x34, 0x4b, 0x00, 0x00, 0x3f, 0x0c, 0x3e, 0x00, 0x00, 0x5a, 0x2a, 0x07, 0x37, 0x5a, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0x14, 0x5d, 0x0a, 0x00, 0x58, 0x60, 0x20, 0x1e, 0x4f, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x0c, 0x63, 0x00, 0x00, 0x63, 0x14, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x50, 0x00, 0x00, 0x5f, 0x3e, 0x11, 0x3a, 0x63, 0x5f, 0x20, 0x00, 0x24, 0x39, 0x0e, 0x03, 0x3f, 0x00, 0x63, 0x00, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0f, 0x0f, 0x23, 0x00, 0x00, 0x00, 0x30, 0x0c, 0x42, 0x41, 0x53, 0x53, 0x20, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x19, 0x32, 0x18, 0x37, 0x60, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0x1c, 0x57, 0x00, 0x00, 0x63, 0x33, 0x00, 0x00, 0x63, 0x4a, 0x00, 0x00, 0x22, 0x00, 0x20, 0x00, 0x3c, 0x08, 0x4b, 0x02, 0x01, 0x50, 0x27, 0x1c, 0x35, 0x5d, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x63, 0x00, 0x00, 0x49, 0x19, 0x20, 0x1e, 0x61, 0x4e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x0c, 0x44, 0x02, 0x00, 0x1c, 0x25, 0x2a, 0x32, 0x63, 0x00, 0x00, 0x00, 0x29, 0x00, 0x23, 0x00, 0x39, 0x08, 0x50, 0x00, 0x03, 0x4b, 0x25, 0x12, 0x3f, 0x63, 0x46, 0x00, 0x00, 0x30, 0x00, 0x20, 0x00, 0x3b, 0x08, 0x63, 0x00, 0x01, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x10, 0x07, 0x1f, 0x21, 0x00, 0x00, 0x28, 0x0c, 0x42, 0x41, 0x53, 0x53, 0x20, 0x20, 0x20, 0x20, 0x32, 0x20 }}, {{ 0x62, 0x2b, 0x63, 0x3c, 0x63, 0x00, 0x00, 0x00, 0x14, 0x00, 0x0e, 0x00, 0x38, 0x04, 0x60, 0x00, 0x00, 0x62, 0x2a, 0x63, 0x3c, 0x63, 0x00, 0x00, 0x00, 0x14, 0x00, 0x28, 0x00, 0x38, 0x00, 0x48, 0x04, 0x00, 0x62, 0x15, 0x63, 0x3c, 0x63, 0x00, 0x00, 0x00, 0x2b, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5a, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x0a, 0x0c, 0x06, 0x00, 0x10, 0x1d, 0x18, 0x18, 0x46, 0x55, 0x4e, 0x4b, 0x20, 0x42, 0x41, 0x53, 0x53, 0x20 }}, {{ 0x4e, 0x4b, 0x34, 0x37, 0x63, 0x49, 0x00, 0x00, 0x00, 0x5e, 0x00, 0x03, 0x39, 0x1c, 0x5b, 0x16, 0x00, 0x5e, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x1d, 0x1c, 0x63, 0x00, 0x3f, 0x0c, 0x41, 0x02, 0x00, 0x42, 0x2e, 0x2d, 0x37, 0x63, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x14, 0x5d, 0x0e, 0x00, 0x3a, 0x41, 0x0a, 0x1e, 0x63, 0x48, 0x00, 0x00, 0x32, 0x12, 0x00, 0x00, 0x3e, 0x14, 0x58, 0x06, 0x00, 0x28, 0x3c, 0x36, 0x24, 0x3b, 0x63, 0x5a, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x3f, 0x04, 0x55, 0x00, 0x00, 0x35, 0x53, 0x11, 0x3e, 0x41, 0x63, 0x00, 0x00, 0x24, 0x39, 0x0e, 0x03, 0x3d, 0x08, 0x63, 0x00, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0f, 0x08, 0x23, 0x00, 0x00, 0x00, 0x30, 0x0c, 0x46, 0x55, 0x4e, 0x4b, 0x2d, 0x42, 0x41, 0x53, 0x53, 0x31 }}, {{ 0x63, 0x2e, 0x00, 0x21, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x36, 0x08, 0x00, 0x63, 0x2e, 0x00, 0x20, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x4f, 0x02, 0x00, 0x63, 0x2e, 0x00, 0x2c, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x54, 0x02, 0x00, 0x63, 0x21, 0x1f, 0x2c, 0x63, 0x5c, 0x00, 0x00, 0x33, 0x00, 0x0a, 0x00, 0x50, 0x0c, 0x63, 0x01, 0x26, 0x63, 0x2e, 0x00, 0x2b, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x00, 0x54, 0x04, 0x00, 0x63, 0x21, 0x1f, 0x2c, 0x63, 0x5c, 0x00, 0x00, 0x33, 0x00, 0x0a, 0x08, 0x48, 0x10, 0x63, 0x01, 0x38, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x0f, 0x26, 0x14, 0x05, 0x00, 0x28, 0x18, 0x61, 0x2d, 0x68, 0x61, 0x20, 0x54, 0x4f, 0x4d, 0x20, 0x20 }}, {{ 0x62, 0x03, 0x00, 0x2e, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x52, 0x02, 0x00, 0x62, 0x0f, 0x00, 0x11, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x04, 0x46, 0x02, 0x00, 0x62, 0x08, 0x00, 0x1b, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x50, 0x02, 0x00, 0x62, 0x11, 0x00, 0x31, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x63, 0x01, 0x00, 0x62, 0x1e, 0x00, 0x27, 0x63, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x08, 0x54, 0x02, 0x00, 0x62, 0x63, 0x63, 0x37, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x63, 0x01, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x07, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x53, 0x4b, 0x49, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }}, {{ 0x3a, 0x4c, 0x0a, 0x1c, 0x63, 0x5c, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x56, 0x02, 0x00, 0x38, 0x49, 0x0a, 0x2d, 0x63, 0x5f, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x52, 0x02, 0x00, 0x2f, 0x4a, 0x0a, 0x31, 0x63, 0x62, 0x62, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x4c, 0x02, 0x00, 0x63, 0x0f, 0x0a, 0x33, 0x63, 0x5c, 0x5c, 0x00, 0x1b, 0x14, 0x00, 0x03, 0x68, 0x00, 0x63, 0x02, 0x00, 0x42, 0x0d, 0x07, 0x2d, 0x63, 0x63, 0x63, 0x00, 0x0f, 0x07, 0x00, 0x00, 0x08, 0x00, 0x51, 0x02, 0x00, 0x63, 0x38, 0x0a, 0x33, 0x62, 0x62, 0x62, 0x00, 0x1b, 0x14, 0x00, 0x03, 0x08, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x07, 0x1c, 0x16, 0x00, 0x00, 0x18, 0x18, 0x4a, 0x55, 0x4d, 0x50, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }}, {{ 0x2f, 0x15, 0x21, 0x1f, 0x51, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x5e, 0x02, 0x00, 0x2d, 0x18, 0x20, 0x26, 0x51, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x51, 0x02, 0x00, 0x2d, 0x17, 0x20, 0x0b, 0x51, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x46, 0x02, 0x00, 0x30, 0x38, 0x0a, 0x2d, 0x63, 0x63, 0x61, 0x00, 0x19, 0x00, 0x05, 0x00, 0x70, 0x00, 0x63, 0x02, 0x00, 0x2d, 0x17, 0x1f, 0x1a, 0x51, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x02, 0x00, 0x3c, 0x37, 0x0a, 0x2d, 0x63, 0x63, 0x61, 0x00, 0x19, 0x00, 0x05, 0x00, 0x00, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x0f, 0x0c, 0x3e, 0x0a, 0x00, 0x29, 0x0c, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x20, 0x45, 0x47, 0x20 }}, {{ 0x62, 0x63, 0x63, 0x28, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x4a, 0x02, 0x00, 0x62, 0x63, 0x63, 0x28, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x47, 0x02, 0x00, 0x62, 0x63, 0x63, 0x28, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x03, 0x4a, 0x02, 0x00, 0x62, 0x63, 0x63, 0x34, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x01, 0x00, 0x62, 0x63, 0x63, 0x28, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x03, 0x4f, 0x04, 0x00, 0x62, 0x63, 0x63, 0x34, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x01, 0x0e, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x07, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x2d, 0x2d, 0x41, 0x4e, 0x41, 0x4c, 0x4f, 0x47, 0x2d, 0x2d }}, {{ 0x55, 0x3f, 0x18, 0x19, 0x63, 0x60, 0x5c, 0x00, 0x36, 0x00, 0x00, 0x00, 0x33, 0x04, 0x51, 0x10, 0x00, 0x63, 0x3c, 0x27, 0x2d, 0x63, 0x60, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x39, 0x08, 0x63, 0x08, 0x00, 0x25, 0x20, 0x18, 0x24, 0x63, 0x60, 0x5c, 0x00, 0x36, 0x00, 0x00, 0x00, 0x2b, 0x08, 0x55, 0x04, 0x00, 0x63, 0x22, 0x14, 0x23, 0x63, 0x5c, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x4f, 0x08, 0x00, 0x63, 0x2e, 0x00, 0x1c, 0x63, 0x5d, 0x57, 0x00, 0x63, 0x00, 0x00, 0x00, 0x09, 0x08, 0x58, 0x04, 0x00, 0x2f, 0x21, 0x14, 0x23, 0x63, 0x5c, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x63, 0x29, 0x1f, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x12, 0x0f, 0x26, 0x21, 0x11, 0x47, 0x28, 0x0c, 0x4f, 0x52, 0x43, 0x48, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c }}, {{ 0x63, 0x2a, 0x17, 0x47, 0x63, 0x38, 0x38, 0x00, 0x1b, 0x00, 0x2d, 0x07, 0x38, 0x00, 0x4c, 0x04, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x62, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x2a, 0x17, 0x47, 0x63, 0x38, 0x38, 0x00, 0x1b, 0x00, 0x2d, 0x07, 0x38, 0x00, 0x4e, 0x04, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x5d, 0x02, 0x00, 0x54, 0x5f, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x15, 0x0f, 0x25, 0x00, 0x00, 0x00, 0x38, 0x18, 0x53, 0x59, 0x4e, 0x2d, 0x4c, 0x45, 0x41, 0x44, 0x20, 0x32 }}, {{ 0x63, 0x2a, 0x2d, 0x47, 0x63, 0x38, 0x38, 0x00, 0x1b, 0x00, 0x2d, 0x07, 0x38, 0x00, 0x4c, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x62, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x2a, 0x35, 0x47, 0x63, 0x38, 0x38, 0x00, 0x1b, 0x00, 0x2d, 0x07, 0x38, 0x00, 0x4e, 0x02, 0x00, 0x63, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x38, 0x00, 0x5d, 0x02, 0x00, 0x54, 0x5f, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x15, 0x0f, 0x25, 0x00, 0x00, 0x00, 0x48, 0x18, 0x53, 0x59, 0x4e, 0x2d, 0x4c, 0x45, 0x41, 0x44, 0x20, 0x34 }}, {{ 0x48, 0x3c, 0x63, 0x17, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x4c, 0x02, 0x00, 0x20, 0x00, 0x00, 0x1a, 0x63, 0x63, 0x63, 0x00, 0x3f, 0x28, 0x00, 0x00, 0x38, 0x00, 0x50, 0x01, 0x48, 0x38, 0x0e, 0x00, 0x35, 0x63, 0x60, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x0c, 0x63, 0x01, 0x02, 0x63, 0x2e, 0x00, 0x1c, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x04, 0x38, 0x02, 0x00, 0x63, 0x2e, 0x00, 0x1c, 0x63, 0x5d, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x08, 0x57, 0x02, 0x00, 0x2e, 0x21, 0x14, 0x2b, 0x63, 0x5c, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x10, 0x63, 0x01, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x0a, 0x0f, 0x23, 0x00, 0x32, 0x00, 0x11, 0x18, 0x43, 0x72, 0x61, 0x7a, 0x79, 0x34, 0x55, 0x20, 0x20, 0x31 }}, {{ 0x5c, 0x00, 0x1d, 0x0a, 0x63, 0x5d, 0x00, 0x00, 0x27, 0x14, 0x07, 0x0f, 0x60, 0x01, 0x43, 0x06, 0x00, 0x49, 0x01, 0x0a, 0x00, 0x63, 0x47, 0x00, 0x00, 0x23, 0x08, 0x0a, 0x00, 0x00, 0x00, 0x4a, 0x02, 0x00, 0x47, 0x0a, 0x0a, 0x2a, 0x63, 0x5c, 0x00, 0x00, 0x31, 0x06, 0x0c, 0x0c, 0x20, 0x00, 0x43, 0x02, 0x01, 0x2e, 0x0b, 0x01, 0x2a, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x61, 0x02, 0x00, 0x40, 0x07, 0x0a, 0x20, 0x63, 0x4e, 0x00, 0x00, 0x29, 0x04, 0x05, 0x0f, 0x70, 0x00, 0x4a, 0x02, 0x01, 0x2e, 0x1b, 0x03, 0x2a, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x04, 0x61, 0x29, 0x24, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x01, 0x0f, 0x2f, 0x22, 0x06, 0x04, 0x19, 0x18, 0x42, 0x4f, 0x4d, 0x42, 0x41, 0x53, 0x54, 0x20, 0x31, 0x44 }}, {{ 0x63, 0x3f, 0x1e, 0x00, 0x63, 0x5f, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x74, 0x07, 0x55, 0x10, 0x00, 0x63, 0x27, 0x24, 0x1f, 0x63, 0x5f, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x71, 0x00, 0x41, 0x10, 0x00, 0x63, 0x3a, 0x35, 0x00, 0x63, 0x58, 0x5c, 0x00, 0x23, 0x00, 0x00, 0x00, 0x71, 0x01, 0x55, 0x02, 0x00, 0x63, 0x63, 0x13, 0x27, 0x63, 0x63, 0x00, 0x00, 0x23, 0x00, 0x00, 0x0c, 0x72, 0x09, 0x63, 0x02, 0x00, 0x63, 0x30, 0x1e, 0x10, 0x63, 0x5c, 0x00, 0x00, 0x16, 0x00, 0x00, 0x01, 0x50, 0x14, 0x63, 0x00, 0x00, 0x5d, 0x0e, 0x0a, 0x2d, 0x63, 0x5b, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x00, 0x0f, 0x27, 0x00, 0x00, 0x00, 0x20, 0x0c, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x20, 0x20, 0x32, 0x20 }}, {{ 0x5f, 0x30, 0x1c, 0x18, 0x5e, 0x4f, 0x00, 0x00, 0x3c, 0x36, 0x00, 0x01, 0x47, 0x0c, 0x59, 0x06, 0x00, 0x5f, 0x23, 0x17, 0x1c, 0x63, 0x46, 0x00, 0x00, 0x34, 0x00, 0x23, 0x03, 0x5c, 0x10, 0x4f, 0x06, 0x00, 0x4a, 0x63, 0x17, 0x27, 0x51, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x14, 0x63, 0x02, 0x00, 0x5f, 0x32, 0x2d, 0x0a, 0x63, 0x63, 0x00, 0x00, 0x3a, 0x00, 0x25, 0x00, 0x0b, 0x00, 0x5b, 0x04, 0x00, 0x5f, 0x2e, 0x20, 0x0c, 0x63, 0x63, 0x00, 0x00, 0x34, 0x08, 0x00, 0x03, 0x2b, 0x0c, 0x4c, 0x04, 0x00, 0x20, 0x5f, 0x1d, 0x25, 0x41, 0x63, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x65, 0x14, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x02, 0x0e, 0x22, 0x21, 0x00, 0x00, 0x19, 0x18, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x48, 0x41, 0x52, 0x50 }}, {{ 0x2d, 0x63, 0x29, 0x2b, 0x45, 0x63, 0x00, 0x00, 0x2e, 0x63, 0x00, 0x03, 0x38, 0x08, 0x4b, 0x08, 0x00, 0x2d, 0x63, 0x29, 0x2b, 0x45, 0x63, 0x00, 0x00, 0x2e, 0x5a, 0x00, 0x03, 0x38, 0x04, 0x5e, 0x04, 0x00, 0x63, 0x2d, 0x18, 0x1e, 0x63, 0x63, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x4b, 0x02, 0x00, 0x63, 0x2d, 0x18, 0x1e, 0x63, 0x63, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x73, 0x00, 0x53, 0x02, 0x00, 0x63, 0x2d, 0x18, 0x1e, 0x63, 0x63, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x3b, 0x08, 0x55, 0x02, 0x00, 0x63, 0x2d, 0x18, 0x1e, 0x63, 0x63, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x60, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x1f, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x70, 0x24, 0x43, 0x45, 0x4c, 0x45, 0x53, 0x54, 0x41, 0x20, 0x20, 0x20 }}, {{ 0x3a, 0x09, 0x12, 0x16, 0x63, 0x34, 0x39, 0x00, 0x23, 0x00, 0x00, 0x00, 0x01, 0x00, 0x4e, 0x00, 0x00, 0x2a, 0x24, 0x00, 0x1d, 0x63, 0x63, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x00, 0x03, 0x00, 0x63, 0x00, 0x00, 0x63, 0x30, 0x1a, 0x2a, 0x63, 0x51, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00, 0x18, 0x08, 0x4b, 0x12, 0x00, 0x59, 0x20, 0x22, 0x21, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x00, 0x63, 0x04, 0x00, 0x37, 0x1a, 0x24, 0x2a, 0x63, 0x5d, 0x4b, 0x00, 0x2e, 0x00, 0x0f, 0x00, 0x71, 0x04, 0x55, 0x00, 0x00, 0x39, 0x63, 0x63, 0x24, 0x63, 0x63, 0x63, 0x00, 0x31, 0x63, 0x00, 0x00, 0x71, 0x00, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x05, 0x08, 0x27, 0x16, 0x05, 0x00, 0x31, 0x18, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x20, 0x20, 0x33, 0x20 }}, {{ 0x63, 0x52, 0x4b, 0x00, 0x63, 0x57, 0x00, 0x00, 0x29, 0x1e, 0x00, 0x00, 0x38, 0x04, 0x63, 0x3f, 0x29, 0x63, 0x40, 0x00, 0x08, 0x55, 0x30, 0x00, 0x00, 0x25, 0x00, 0x19, 0x00, 0x38, 0x10, 0x54, 0x06, 0x00, 0x5a, 0x43, 0x15, 0x52, 0x63, 0x55, 0x00, 0x00, 0x12, 0x00, 0x02, 0x04, 0x38, 0x10, 0x4e, 0x0e, 0x00, 0x63, 0x1e, 0x1a, 0x2e, 0x63, 0x50, 0x00, 0x00, 0x22, 0x17, 0x00, 0x03, 0x38, 0x13, 0x52, 0x00, 0x00, 0x4b, 0x2d, 0x24, 0x13, 0x63, 0x57, 0x00, 0x00, 0x00, 0x00, 0x12, 0x03, 0x2a, 0x18, 0x3a, 0x16, 0x02, 0x63, 0x20, 0x0e, 0x26, 0x63, 0x50, 0x00, 0x00, 0x2b, 0x63, 0x00, 0x03, 0x3a, 0x07, 0x63, 0x01, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0f, 0x0f, 0x18, 0x00, 0x00, 0x00, 0x03, 0x24, 0x4b, 0x41, 0x52, 0x49, 0x4d, 0x42, 0x41, 0x21, 0x21, 0x21 }}, {{ 0x53, 0x33, 0x0f, 0x4f, 0x63, 0x4b, 0x00, 0x00, 0x2c, 0x01, 0x00, 0x00, 0x39, 0x0c, 0x47, 0x26, 0x00, 0x56, 0x3d, 0x1e, 0x2d, 0x63, 0x50, 0x00, 0x00, 0x20, 0x15, 0x00, 0x03, 0x3f, 0x14, 0x56, 0x0a, 0x00, 0x63, 0x44, 0x20, 0x28, 0x63, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x14, 0x60, 0x00, 0x00, 0x4b, 0x39, 0x20, 0x4e, 0x59, 0x48, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x5d, 0x04, 0x5c, 0x00, 0x32, 0x31, 0x4e, 0x18, 0x27, 0x3b, 0x5c, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x3c, 0x08, 0x4f, 0x00, 0x00, 0x62, 0x47, 0x1b, 0x35, 0x41, 0x63, 0x00, 0x00, 0x24, 0x39, 0x04, 0x03, 0x3d, 0x08, 0x63, 0x02, 0x00, 0x63, 0x63, 0x5f, 0x3c, 0x30, 0x32, 0x32, 0x32, 0x0f, 0x08, 0x23, 0x00, 0x00, 0x00, 0x30, 0x0c, 0x47, 0x72, 0x6f, 0x77, 0x6c, 0x65, 0x72, 0x20, 0x20, 0x20 }}, {{ 0x61, 0x14, 0x14, 0x22, 0x63, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x42, 0x0a, 0x00, 0x1a, 0x63, 0x14, 0x21, 0x00, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x08, 0x54, 0x04, 0x19, 0x61, 0x14, 0x14, 0x22, 0x63, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x00, 0x43, 0x0c, 0x00, 0x11, 0x63, 0x14, 0x1a, 0x00, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x04, 0x51, 0x06, 0x00, 0x61, 0x14, 0x14, 0x22, 0x63, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x04, 0x51, 0x10, 0x00, 0x61, 0x14, 0x14, 0x1a, 0x63, 0x5a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x00, 0x4b, 0x08, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x05, 0x0f, 0x3c, 0x45, 0x00, 0x00, 0x3b, 0x18, 0x43, 0x48, 0x49, 0x4d, 0x45, 0x53, 0x20, 0x20, 0x20, 0x20 }}, {{ 0x3c, 0x0a, 0x00, 0x1c, 0x63, 0x50, 0x00, 0x00, 0x2e, 0x32, 0x08, 0x00, 0x72, 0x04, 0x5a, 0x01, 0x40, 0x18, 0x06, 0x00, 0x1e, 0x63, 0x50, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x10, 0x63, 0x04, 0x00, 0x41, 0x0a, 0x00, 0x1c, 0x63, 0x50, 0x00, 0x00, 0x27, 0x22, 0x02, 0x00, 0x3a, 0x04, 0x5a, 0x01, 0x3a, 0x1a, 0x00, 0x00, 0x21, 0x63, 0x5f, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x10, 0x63, 0x04, 0x00, 0x3c, 0x0a, 0x00, 0x1c, 0x63, 0x50, 0x00, 0x00, 0x20, 0x38, 0x06, 0x00, 0x02, 0x04, 0x5a, 0x01, 0x4e, 0x18, 0x06, 0x00, 0x1e, 0x63, 0x50, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x69, 0x10, 0x63, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x32, 0x32, 0x32, 0x04, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x53, 0x6f, 0x72, 0x74, 0x6f, 0x66, 0x76, 0x6f, 0x63, 0x65 }}, {{ 0x63, 0x48, 0x30, 0x11, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x42, 0x02, 0x00, 0x23, 0x15, 0x24, 0x3f, 0x63, 0x5a, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x04, 0x2e, 0x07, 0x2b, 0x48, 0x38, 0x29, 0x0c, 0x30, 0x43, 0x43, 0x09, 0x00, 0x00, 0x00, 0x00, 0x50, 0x04, 0x63, 0x02, 0x02, 0x2a, 0x14, 0x35, 0x39, 0x63, 0x5e, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x0f, 0x63, 0x02, 0x00, 0x45, 0x53, 0x50, 0x62, 0x45, 0x51, 0x60, 0x63, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x3e, 0x02, 0x00, 0x33, 0x37, 0x35, 0x40, 0x3d, 0x58, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x61, 0x02, 0x00, 0x12, 0x19, 0x63, 0x63, 0x31, 0x31, 0x32, 0x32, 0x00, 0x0c, 0x27, 0x23, 0x5b, 0x02, 0x18, 0x18, 0x46, 0x45, 0x4d, 0x2e, 0x20, 0x43, 0x48, 0x4f, 0x49, 0x52 }}, {{ 0x48, 0x4c, 0x0a, 0x20, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x46, 0x10, 0x00, 0x4c, 0x49, 0x0a, 0x1c, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x42, 0x04, 0x00, 0x31, 0x4a, 0x0a, 0x20, 0x62, 0x62, 0x24, 0x00, 0x62, 0x00, 0x00, 0x00, 0x38, 0x00, 0x4c, 0x04, 0x00, 0x33, 0x0f, 0x0a, 0x2f, 0x63, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x00, 0x5c, 0x04, 0x00, 0x51, 0x0d, 0x07, 0x19, 0x63, 0x5c, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x4a, 0x04, 0x00, 0x30, 0x38, 0x0a, 0x2f, 0x62, 0x62, 0x24, 0x00, 0x62, 0x00, 0x00, 0x00, 0x38, 0x00, 0x5c, 0x04, 0x00, 0x54, 0x5f, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x01, 0x0f, 0x1e, 0x51, 0x08, 0x00, 0x28, 0x0c, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x53, 0x20, 0x32, 0x20 }}, {{ 0x63, 0x2a, 0x32, 0x3b, 0x63, 0x63, 0x63, 0x00, 0x21, 0x00, 0x2d, 0x03, 0x60, 0x00, 0x2c, 0x0f, 0x1f, 0x63, 0x31, 0x37, 0x2e, 0x63, 0x5a, 0x50, 0x00, 0x26, 0x00, 0x16, 0x00, 0x52, 0x08, 0x4d, 0x10, 0x00, 0x3d, 0x1e, 0x00, 0x23, 0x63, 0x62, 0x5a, 0x00, 0x2e, 0x04, 0x0d, 0x03, 0x3b, 0x00, 0x57, 0x04, 0x00, 0x35, 0x12, 0x11, 0x38, 0x63, 0x5f, 0x5c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x1c, 0x63, 0x04, 0x00, 0x63, 0x00, 0x00, 0x1e, 0x63, 0x62, 0x61, 0x00, 0x27, 0x01, 0x06, 0x03, 0x01, 0x00, 0x4c, 0x04, 0x00, 0x29, 0x19, 0x16, 0x2d, 0x63, 0x61, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x08, 0x63, 0x01, 0x0a, 0x57, 0x5e, 0x00, 0x00, 0x30, 0x33, 0x32, 0x32, 0x01, 0x07, 0x23, 0x00, 0x0b, 0x00, 0x19, 0x0c, 0x56, 0x49, 0x4f, 0x4c, 0x49, 0x4e, 0x53, 0x20, 0x20, 0x41 }}, {{ 0x35, 0x40, 0x2c, 0x36, 0x46, 0x51, 0x40, 0x00, 0x37, 0x19, 0x00, 0x03, 0x3a, 0x08, 0x3a, 0x18, 0x00, 0x35, 0x43, 0x26, 0x36, 0x56, 0x5c, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x4f, 0x0a, 0x00, 0x60, 0x13, 0x14, 0x36, 0x63, 0x5c, 0x59, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x4b, 0x02, 0x00, 0x32, 0x2b, 0x23, 0x29, 0x5e, 0x61, 0x61, 0x00, 0x2c, 0x50, 0x3c, 0x03, 0x3a, 0x14, 0x63, 0x02, 0x00, 0x59, 0x43, 0x0f, 0x33, 0x52, 0x5a, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x04, 0x56, 0x02, 0x00, 0x34, 0x1e, 0x19, 0x2b, 0x5e, 0x62, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x04, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x0e, 0x0f, 0x21, 0x0a, 0x24, 0x00, 0x18, 0x0c, 0x43, 0x45, 0x4c, 0x4c, 0x4f, 0x53, 0x20, 0x20, 0x20, 0x42 }}, {{ 0x49, 0x46, 0x3c, 0x00, 0x63, 0x63, 0x61, 0x00, 0x20, 0x00, 0x15, 0x00, 0x3b, 0x00, 0x2f, 0x14, 0x00, 0x55, 0x46, 0x61, 0x00, 0x63, 0x41, 0x3c, 0x00, 0x20, 0x00, 0x00, 0x00, 0x29, 0x00, 0x36, 0x10, 0x00, 0x5f, 0x5c, 0x1c, 0x3c, 0x63, 0x5a, 0x00, 0x00, 0x30, 0x00, 0x3c, 0x00, 0x3e, 0x01, 0x3b, 0x0c, 0x00, 0x62, 0x57, 0x00, 0x00, 0x57, 0x56, 0x00, 0x00, 0x20, 0x00, 0x15, 0x00, 0x3b, 0x08, 0x54, 0x08, 0x00, 0x5f, 0x5f, 0x00, 0x00, 0x63, 0x60, 0x59, 0x00, 0x20, 0x00, 0x00, 0x00, 0x33, 0x06, 0x44, 0x04, 0x00, 0x3c, 0x00, 0x0c, 0x46, 0x63, 0x5a, 0x61, 0x00, 0x20, 0x00, 0x00, 0x00, 0x41, 0x08, 0x60, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x11, 0x0d, 0x23, 0x32, 0x08, 0x63, 0x38, 0x18, 0x43, 0x6c, 0x61, 0x72, 0x69, 0x6e, 0x65, 0x74, 0x20, 0x20 }}, {{ 0x63, 0x40, 0x62, 0x3d, 0x63, 0x43, 0x34, 0x00, 0x2e, 0x00, 0x00, 0x0c, 0x58, 0x08, 0x53, 0x02, 0x35, 0x41, 0x26, 0x00, 0x3d, 0x63, 0x00, 0x00, 0x00, 0x35, 0x00, 0x2b, 0x00, 0x38, 0x00, 0x38, 0x04, 0x00, 0x3d, 0x19, 0x19, 0x3c, 0x63, 0x63, 0x61, 0x00, 0x3c, 0x0a, 0x0a, 0x00, 0x3b, 0x00, 0x00, 0x04, 0x00, 0x35, 0x26, 0x4b, 0x3d, 0x58, 0x2c, 0x18, 0x00, 0x2e, 0x00, 0x00, 0x03, 0x20, 0x01, 0x4c, 0x02, 0x00, 0x63, 0x61, 0x3e, 0x36, 0x63, 0x63, 0x5a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5c, 0x08, 0x4b, 0x02, 0x00, 0x3d, 0x43, 0x46, 0x41, 0x5d, 0x59, 0x62, 0x00, 0x29, 0x00, 0x00, 0x00, 0x28, 0x08, 0x62, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0f, 0x05, 0x1e, 0x17, 0x08, 0x0d, 0x10, 0x18, 0x46, 0x4c, 0x55, 0x54, 0x45, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x32, 0x21, 0x12, 0x2e, 0x61, 0x5f, 0x50, 0x00, 0x22, 0x02, 0x00, 0x03, 0x3a, 0x04, 0x54, 0x04, 0x00, 0x39, 0x34, 0x00, 0x39, 0x62, 0x5f, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x10, 0x63, 0x04, 0x00, 0x39, 0x34, 0x00, 0x39, 0x62, 0x5f, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x14, 0x63, 0x04, 0x00, 0x39, 0x34, 0x00, 0x39, 0x62, 0x5f, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x10, 0x63, 0x04, 0x00, 0x32, 0x4b, 0x0a, 0x1e, 0x63, 0x60, 0x24, 0x00, 0x22, 0x0b, 0x00, 0x00, 0x69, 0x04, 0x59, 0x04, 0x00, 0x32, 0x4b, 0x0a, 0x2c, 0x63, 0x5f, 0x24, 0x00, 0x1b, 0x03, 0x00, 0x00, 0x12, 0x10, 0x63, 0x04, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x15, 0x0f, 0x26, 0x1a, 0x00, 0x00, 0x28, 0x0c, 0x50, 0x6f, 0x66, 0x4c, 0x20, 0x42, 0x72, 0x61, 0x73, 0x73 }}, {{ 0x31, 0x63, 0x1c, 0x44, 0x62, 0x62, 0x5b, 0x00, 0x27, 0x36, 0x32, 0x05, 0x3c, 0x08, 0x52, 0x02, 0x00, 0x4d, 0x24, 0x29, 0x47, 0x63, 0x62, 0x62, 0x00, 0x27, 0x00, 0x00, 0x0f, 0x40, 0x08, 0x62, 0x02, 0x00, 0x4d, 0x24, 0x29, 0x47, 0x63, 0x62, 0x62, 0x00, 0x27, 0x00, 0x00, 0x0f, 0x38, 0x08, 0x63, 0x02, 0x00, 0x4d, 0x4c, 0x52, 0x47, 0x63, 0x62, 0x62, 0x00, 0x27, 0x00, 0x00, 0x0f, 0x28, 0x08, 0x63, 0x02, 0x00, 0x3e, 0x33, 0x1d, 0x47, 0x52, 0x5f, 0x60, 0x00, 0x1b, 0x00, 0x07, 0x07, 0x70, 0x00, 0x56, 0x00, 0x00, 0x48, 0x4c, 0x63, 0x47, 0x63, 0x58, 0x60, 0x00, 0x27, 0x00, 0x0e, 0x0f, 0x70, 0x00, 0x62, 0x00, 0x00, 0x54, 0x5f, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x15, 0x0f, 0x25, 0x00, 0x05, 0x00, 0x38, 0x18, 0x42, 0x52, 0x41, 0x53, 0x53, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x4d, 0x38, 0x14, 0x46, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x4f, 0x0e, 0x15, 0x30, 0x37, 0x16, 0x32, 0x62, 0x3d, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x46, 0x06, 0x06, 0x42, 0x5c, 0x16, 0x32, 0x35, 0x3d, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x4f, 0x02, 0x00, 0x2e, 0x23, 0x16, 0x32, 0x63, 0x56, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x04, 0x4d, 0x02, 0x00, 0x25, 0x22, 0x0f, 0x46, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x04, 0x46, 0x02, 0x00, 0x37, 0x18, 0x13, 0x37, 0x63, 0x56, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x11, 0x0e, 0x23, 0x00, 0x05, 0x00, 0x30, 0x0c, 0x42, 0x52, 0x41, 0x53, 0x53, 0x20, 0x20, 0x20, 0x33, 0x20 }}, {{ 0x4d, 0x38, 0x14, 0x46, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x04, 0x4f, 0x0e, 0x15, 0x30, 0x37, 0x16, 0x32, 0x62, 0x3d, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x04, 0x46, 0x06, 0x06, 0x42, 0x5c, 0x16, 0x32, 0x35, 0x3d, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x4f, 0x02, 0x00, 0x2e, 0x23, 0x16, 0x38, 0x63, 0x56, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x0c, 0x4f, 0x02, 0x00, 0x25, 0x22, 0x0f, 0x40, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x43, 0x02, 0x00, 0x39, 0x18, 0x13, 0x3c, 0x63, 0x56, 0x56, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x08, 0x63, 0x02, 0x00, 0x5e, 0x43, 0x5f, 0x63, 0x35, 0x31, 0x32, 0x32, 0x11, 0x0f, 0x1f, 0x00, 0x00, 0x00, 0x10, 0x0c, 0x48, 0x4f, 0x52, 0x4e, 0x20, 0x53, 0x45, 0x43, 0x2e, 0x41 }}, {{ 0x62, 0x02, 0x1a, 0x1b, 0x62, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08, 0x3b, 0x04, 0x49, 0x00, 0x38, 0x63, 0x32, 0x1a, 0x13, 0x63, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x07, 0x38, 0x04, 0x49, 0x00, 0x00, 0x63, 0x1f, 0x11, 0x1e, 0x63, 0x4b, 0x00, 0x00, 0x50, 0x00, 0x00, 0x07, 0x3f, 0x1c, 0x57, 0x00, 0x4b, 0x63, 0x4d, 0x1a, 0x17, 0x63, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x23, 0x00, 0x55, 0x00, 0x24, 0x63, 0x4a, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x04, 0x51, 0x04, 0x56, 0x00, 0x00, 0x63, 0x24, 0x62, 0x21, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x3b, 0x04, 0x63, 0x00, 0x00, 0x63, 0x62, 0x4b, 0x3c, 0x32, 0x33, 0x32, 0x32, 0x0f, 0x0f, 0x0b, 0x00, 0x10, 0x00, 0x20, 0x18, 0x54, 0x49, 0x4d, 0x50, 0x41, 0x4e, 0x49, 0x20, 0x20, 0x20 }}, {{ 0x38, 0x4d, 0x32, 0x29, 0x63, 0x61, 0x44, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x47, 0x00, 0x0a, 0x04, 0x02, 0x4a, 0x57, 0x32, 0x29, 0x57, 0x1b, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x37, 0x00, 0x62, 0x02, 0x04, 0x5a, 0x3a, 0x32, 0x29, 0x60, 0x1b, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x56, 0x00, 0x62, 0x02, 0x02, 0x53, 0x14, 0x32, 0x29, 0x63, 0x1b, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3b, 0x00, 0x63, 0x00, 0x00, 0x63, 0x4d, 0x2a, 0x23, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x00, 0x00, 0x58, 0x2f, 0x2e, 0x2e, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x63, 0x00, 0x00, 0x62, 0x62, 0x62, 0x62, 0x32, 0x32, 0x32, 0x32, 0x0d, 0x0d, 0x2c, 0x1c, 0x0e, 0x50, 0x72, 0x0c, 0x4c, 0x4f, 0x47, 0x20, 0x44, 0x52, 0x55, 0x4d, 0x20, 0x20 }}, {{ 0x17, 0x19, 0x07, 0x0e, 0x56, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x24, 0x02, 0x14, 0x12, 0x1e, 0x0f, 0x12, 0x5f, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x1c, 0x52, 0x02, 0x28, 0x12, 0x1e, 0x0f, 0x16, 0x5f, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x54, 0x06, 0x00, 0x12, 0x1e, 0x0f, 0x27, 0x57, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x4a, 0x00, 0x31, 0x56, 0x1a, 0x14, 0x1e, 0x63, 0x5f, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x08, 0x48, 0x00, 0x3c, 0x56, 0x1a, 0x14, 0x1f, 0x63, 0x5f, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x04, 0x63, 0x00, 0x00, 0x63, 0x62, 0x4b, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x0f, 0x05, 0x23, 0x59, 0x00, 0x00, 0x47, 0x18, 0x47, 0x4f, 0x4e, 0x47, 0x20, 0x20, 0x20, 0x20, 0x31, 0x20 }}, {{ 0x13, 0x0c, 0x47, 0x1c, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x62, 0x00, 0x00, 0x45, 0x0b, 0x47, 0x1c, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x00, 0x00, 0x62, 0x0c, 0x47, 0x1c, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x4b, 0x04, 0x4b, 0x5f, 0x21, 0x47, 0x19, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x63, 0x02, 0x00, 0x62, 0x0c, 0x47, 0x1c, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x52, 0x00, 0x4e, 0x04, 0x4b, 0x5f, 0x21, 0x47, 0x19, 0x63, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4a, 0x00, 0x5f, 0x02, 0x00, 0x43, 0x5f, 0x5f, 0x3c, 0x32, 0x32, 0x32, 0x32, 0x04, 0x04, 0x23, 0x00, 0x00, 0x00, 0x62, 0x18, 0x54, 0x55, 0x42, 0x45, 0x52, 0x49, 0x53, 0x45, 0x20, 0x41 }}, {{ 0x63, 0x39, 0x22, 0x63, 0x63, 0x63, 0x63, 0x63, 0x39, 0x63, 0x63, 0x0c, 0x38, 0x00, 0x63, 0x3f, 0x63, 0x61, 0x50, 0x50, 0x63, 0x63, 0x0e, 0x63, 0x63, 0x3a, 0x63, 0x63, 0x0c, 0x3a, 0x00, 0x63, 0x03, 0x63, 0x63, 0x2c, 0x28, 0x2e, 0x63, 0x5c, 0x00, 0x00, 0x39, 0x63, 0x63, 0x0c, 0x3c, 0x00, 0x63, 0x05, 0x1f, 0x5d, 0x63, 0x48, 0x43, 0x63, 0x4d, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x00, 0x25, 0x00, 0x63, 0x03, 0x2a, 0x63, 0x43, 0x4d, 0x2d, 0x63, 0x00, 0x00, 0x00, 0x17, 0x63, 0x0b, 0x03, 0x55, 0x00, 0x5d, 0x00, 0x10, 0x63, 0x2e, 0x39, 0x42, 0x63, 0x5a, 0x00, 0x00, 0x33, 0x00, 0x63, 0x03, 0x3b, 0x00, 0x63, 0x00, 0x5c, 0x63, 0x59, 0x35, 0x00, 0x2e, 0x18, 0x00, 0x38, 0x02, 0x0f, 0x23, 0x00, 0x00, 0x00, 0x31, 0x14, 0x44, 0x49, 0x47, 0x49, 0x20, 0x44, 0x52, 0x55, 0x4d, 0x31 }}, {{ 0x63, 0x2e, 0x36, 0x55, 0x63, 0x60, 0x63, 0x00, 0x39, 0x00, 0x00, 0x00, 0x3a, 0x04, 0x63, 0x05, 0x4b, 0x63, 0x2e, 0x22, 0x5b, 0x63, 0x5f, 0x63, 0x00, 0x0c, 0x63, 0x00, 0x00, 0x73, 0x00, 0x4e, 0x07, 0x31, 0x58, 0x49, 0x35, 0x5d, 0x63, 0x4d, 0x00, 0x00, 0x0c, 0x63, 0x00, 0x00, 0x72, 0x1c, 0x5b, 0x10, 0x03, 0x58, 0x38, 0x3c, 0x5d, 0x63, 0x4d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x14, 0x4f, 0x02, 0x1c, 0x58, 0x38, 0x3c, 0x5d, 0x63, 0x4d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23, 0x18, 0x53, 0x02, 0x62, 0x4e, 0x20, 0x2c, 0x3c, 0x63, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x00, 0x63, 0x00, 0x07, 0x56, 0x5d, 0x63, 0x63, 0x00, 0x34, 0x00, 0x5d, 0x11, 0x0f, 0x23, 0x00, 0x00, 0x00, 0x31, 0x0c, 0x42, 0x65, 0x61, 0x74, 0x4d, 0x65, 0x48, 0x72, 0x64, 0x72 }}, {{ 0x38, 0x4d, 0x32, 0x29, 0x63, 0x1b, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x42, 0x03, 0x62, 0x02, 0x07, 0x38, 0x40, 0x32, 0x29, 0x63, 0x5f, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x34, 0x02, 0x61, 0x00, 0x00, 0x0d, 0x1f, 0x32, 0x29, 0x63, 0x57, 0x4f, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x44, 0x01, 0x63, 0x00, 0x01, 0x0d, 0x1f, 0x32, 0x29, 0x63, 0x57, 0x4f, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x3b, 0x00, 0x63, 0x00, 0x00, 0x0d, 0x1f, 0x32, 0x29, 0x63, 0x57, 0x4f, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x04, 0x00, 0x55, 0x00, 0x02, 0x0d, 0x1f, 0x32, 0x29, 0x63, 0x57, 0x4f, 0x00, 0x0f, 0x00, 0x00, 0x04, 0x73, 0x00, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x70, 0x18, 0x45, 0x56, 0x4f, 0x4c, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x20 }}, {{ 0x40, 0x23, 0x20, 0x20, 0x63, 0x63, 0x63, 0x00, 0x0a, 0x00, 0x08, 0x03, 0x38, 0x0a, 0x46, 0x0a, 0x00, 0x40, 0x1e, 0x20, 0x14, 0x63, 0x63, 0x63, 0x00, 0x0a, 0x00, 0x08, 0x03, 0x58, 0x0a, 0x5b, 0x02, 0x00, 0x40, 0x2b, 0x00, 0x27, 0x63, 0x63, 0x63, 0x00, 0x27, 0x00, 0x63, 0x07, 0x30, 0x0f, 0x4a, 0x34, 0x00, 0x3e, 0x18, 0x00, 0x2d, 0x63, 0x63, 0x63, 0x00, 0x1b, 0x0c, 0x00, 0x0c, 0x38, 0x08, 0x63, 0x02, 0x00, 0x40, 0x2b, 0x20, 0x14, 0x63, 0x63, 0x63, 0x00, 0x0a, 0x00, 0x08, 0x03, 0x08, 0x0a, 0x54, 0x04, 0x00, 0x2d, 0x18, 0x20, 0x2d, 0x63, 0x63, 0x63, 0x00, 0x27, 0x00, 0x00, 0x0f, 0x30, 0x0c, 0x63, 0x02, 0x00, 0x63, 0x63, 0x43, 0x63, 0x32, 0x32, 0x32, 0x32, 0x08, 0x04, 0x25, 0x00, 0x00, 0x00, 0x08, 0x18, 0x4e, 0x61, 0x73, 0x74, 0x79, 0x20, 0x4b, 0x43, 0x50, 0x32 }}, {{ 0x20, 0x15, 0x26, 0x1e, 0x52, 0x44, 0x00, 0x00, 0x21, 0x0d, 0x12, 0x06, 0x3a, 0x00, 0x50, 0x00, 0x00, 0x2f, 0x14, 0x45, 0x21, 0x52, 0x3e, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x04, 0x12, 0x1c, 0x37, 0x00, 0x00, 0x28, 0x20, 0x53, 0x1e, 0x63, 0x44, 0x00, 0x00, 0x3c, 0x0d, 0x00, 0x06, 0x3a, 0x14, 0x63, 0x00, 0x00, 0x35, 0x1d, 0x19, 0x1e, 0x63, 0x55, 0x34, 0x00, 0x2b, 0x13, 0x04, 0x04, 0x3b, 0x08, 0x63, 0x00, 0x00, 0x5d, 0x28, 0x0d, 0x24, 0x45, 0x58, 0x3b, 0x00, 0x14, 0x24, 0x00, 0x04, 0x3c, 0x00, 0x59, 0x04, 0x00, 0x1d, 0x15, 0x14, 0x32, 0x63, 0x23, 0x1c, 0x00, 0x28, 0x17, 0x00, 0x0a, 0x3b, 0x00, 0x5c, 0x08, 0x00, 0x0c, 0x4e, 0x2d, 0x62, 0x63, 0x59, 0x0b, 0x00, 0x10, 0x0f, 0x63, 0x00, 0x00, 0x00, 0x72, 0x18, 0x47, 0x52, 0x41, 0x4e, 0x44, 0x20, 0x50, 0x52, 0x49, 0x58 }}, {{ 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x50, 0x05, 0x25, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x03, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x50, 0x05, 0x26, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x63, 0x00, 0x00, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x50, 0x05, 0x26, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x03, 0x63, 0x00, 0x00, 0x63, 0x1c, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x04, 0x0b, 0x02, 0x00, 0x0e, 0x00, 0x31, 0x18, 0x54, 0x49, 0x4d, 0x45, 0x57, 0x41, 0x52, 0x50, 0x20, 0x20 }}, }; hexter-1.0.2/src/hexter_types.h0000644000076400007640000000361111757613235013440 00000000000000/* hexter DSSI software synthesizer plugin * * Copyright (C) 2004, 2009, 2011 Sean Bolton and others. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #ifndef _HEXTER_TYPES_H #define _HEXTER_TYPES_H #include #define DX7_VOICE_SIZE_PACKED 128 #define DX7_VOICE_SIZE_UNPACKED 155 #define DX7_VOICE_PARAMETERS 146 #define DX7_PERFORMANCE_SIZE 64 #define DX7_DUMP_SIZE_VOICE_SINGLE 155+8 #define DX7_DUMP_SIZE_VOICE_BULK 4096+8 typedef struct _hexter_synth_t hexter_synth_t; typedef struct _hexter_instance_t hexter_instance_t; typedef struct _dx7_patch_t dx7_patch_t; typedef struct _dx7_voice_t dx7_voice_t; typedef struct _dx7_op_eg_t dx7_op_eg_t; typedef struct _dx7_pitch_eg_t dx7_pitch_eg_t; typedef struct _dx7_portamento_t dx7_portamento_t; typedef struct _dx7_op_t dx7_op_t; #ifndef HEXTER_USE_FLOATING_POINT // #warning Note: using fixed point typedef int32_t dx7_sample_t; #else /* HEXTER_USE_FLOATING_POINT */ // #warning Note: using floating point typedef float dx7_sample_t; #endif /* HEXTER_USE_FLOATING_POINT */ /* in hexter.c: */ int dssp_voicelist_mutex_lock(void); int dssp_voicelist_mutex_unlock(void); #endif /* _HEXTER_TYPES_H */ hexter-1.0.2/src/dx7_voice_data.c0000644000076400007640000004120611757613235013572 00000000000000/* hexter DSSI software synthesizer plugin and GUI * * Copyright (C) 2004, 2009, 2011 Sean Bolton and others. * * DX7 patchbank loading code by Martin Tarenskeen. * * Portions of this file may have come from Peter Hanappe's * Fluidsynth, copyright (C) 2003 Peter Hanappe and others. * The envelope generator rate tables are based on work by * Russell Pinkston and Jeff Harrington. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. */ #include #include #include #include #include "hexter_types.h" #include "dx7_voice.h" #include "dx7_voice_data.h" /* in dx7_voice_patches.c: */ extern int friendly_patch_count; extern dx7_patch_t friendly_patches[]; dx7_patch_t dx7_voice_init_voice = { { 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x02, 0x00, 0x62, 0x63, 0x63, 0x5A, 0x63, 0x63, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x63, 0x02, 0x00, 0x63, 0x63, 0x63, 0x63, 0x32, 0x32, 0x32, 0x32, 0x00, 0x08, 0x23, 0x00, 0x00, 0x00, 0x31, 0x18, 0x20, 0x20, 0x20, 0x7F, 0x2D, 0x2D, 0x7E, 0x20, 0x20, 0x20 } }; uint8_t dx7_init_performance[DX7_PERFORMANCE_SIZE] = { 0, 0, 0, 2, 0, 0, 0, 0, 0, 15, 1, 0, 4, 15, 2, 15, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; float dx7_voice_eg_rate_rise_duration[128] = { /* generated from my f04new */ 39.638000, 37.013000, 34.388000, 31.763000, 27.210500, 22.658000, 20.408000, 18.158000, 15.908000, 14.557000, 13.206000, 12.108333, 11.010667, 9.913000, 8.921000, 7.929000, 7.171333, 6.413667, 5.656000, 5.307000, 4.958000, 4.405667, 3.853333, 3.301000, 2.889000, 2.477000, 2.313000, 2.149000, 1.985000, 1.700500, 1.416000, 1.274333, 1.132667, 0.991000, 0.909000, 0.827000, 0.758000, 0.689000, 0.620000, 0.558000, 0.496000, 0.448667, 0.401333, 0.354000, 0.332000, 0.310000, 0.275667, 0.241333, 0.207000, 0.180950, 0.154900, 0.144567, 0.134233, 0.123900, 0.106200, 0.088500, 0.079667, 0.070833, 0.062000, 0.056800, 0.051600, 0.047300, 0.043000, 0.038700, 0.034800, 0.030900, 0.028000, 0.025100, 0.022200, 0.020815, 0.019430, 0.017237, 0.015043, 0.012850, 0.011230, 0.009610, 0.009077, 0.008543, 0.008010, 0.006960, 0.005910, 0.005357, 0.004803, 0.004250, 0.003960, 0.003670, 0.003310, 0.002950, 0.002590, 0.002420, 0.002250, 0.002000, 0.001749, 0.001499, 0.001443, 0.001387, 0.001242, 0.001096, 0.000951, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815, 0.000815 }; float dx7_voice_eg_rate_decay_duration[128] = { /* generated from my f06new */ 317.487000, 285.764500, 254.042000, 229.857000, 205.672000, 181.487000, 170.154000, 158.821000, 141.150667, 123.480333, 105.810000, 98.382500, 90.955000, 81.804667, 72.654333, 63.504000, 58.217000, 52.930000, 48.512333, 44.094667, 39.677000, 33.089000, 26.501000, 24.283333, 22.065667, 19.848000, 17.881500, 15.915000, 14.389667, 12.864333, 11.339000, 10.641000, 9.943000, 8.833333, 7.723667, 6.614000, 6.149500, 5.685000, 5.112667, 4.540333, 3.968000, 3.639000, 3.310000, 3.033667, 2.757333, 2.481000, 2.069500, 1.658000, 1.518667, 1.379333, 1.240000, 1.116500, 0.993000, 0.898333, 0.803667, 0.709000, 0.665500, 0.622000, 0.552667, 0.483333, 0.414000, 0.384500, 0.355000, 0.319333, 0.283667, 0.248000, 0.228000, 0.208000, 0.190600, 0.173200, 0.155800, 0.129900, 0.104000, 0.095400, 0.086800, 0.078200, 0.070350, 0.062500, 0.056600, 0.050700, 0.044800, 0.042000, 0.039200, 0.034833, 0.030467, 0.026100, 0.024250, 0.022400, 0.020147, 0.017893, 0.015640, 0.014305, 0.012970, 0.011973, 0.010977, 0.009980, 0.008310, 0.006640, 0.006190, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740, 0.005740 }; float dx7_voice_eg_rate_decay_percent[128] = { /* generated from P/H/Op f07 */ 0.000010, 0.025009, 0.050008, 0.075007, 0.100006, 0.125005, 0.150004, 0.175003, 0.200002, 0.225001, 0.250000, 0.260000, 0.270000, 0.280000, 0.290000, 0.300000, 0.310000, 0.320000, 0.330000, 0.340000, 0.350000, 0.358000, 0.366000, 0.374000, 0.382000, 0.390000, 0.398000, 0.406000, 0.414000, 0.422000, 0.430000, 0.439000, 0.448000, 0.457000, 0.466000, 0.475000, 0.484000, 0.493000, 0.502000, 0.511000, 0.520000, 0.527000, 0.534000, 0.541000, 0.548000, 0.555000, 0.562000, 0.569000, 0.576000, 0.583000, 0.590000, 0.601000, 0.612000, 0.623000, 0.634000, 0.645000, 0.656000, 0.667000, 0.678000, 0.689000, 0.700000, 0.707000, 0.714000, 0.721000, 0.728000, 0.735000, 0.742000, 0.749000, 0.756000, 0.763000, 0.770000, 0.777000, 0.784000, 0.791000, 0.798000, 0.805000, 0.812000, 0.819000, 0.826000, 0.833000, 0.840000, 0.848000, 0.856000, 0.864000, 0.872000, 0.880000, 0.888000, 0.896000, 0.904000, 0.912000, 0.920000, 0.928889, 0.937778, 0.946667, 0.955556, 0.964444, 0.973333, 0.982222, 0.991111, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000 }; float dx7_voice_eg_rate_rise_percent[128] = { /* checked, matches P/H/Op f05 */ 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.000010, 0.005007, 0.010005, 0.015003, 0.020000, 0.028000, 0.036000, 0.044000, 0.052000, 0.060000, 0.068000, 0.076000, 0.084000, 0.092000, 0.100000, 0.108000, 0.116000, 0.124000, 0.132000, 0.140000, 0.150000, 0.160000, 0.170000, 0.180000, 0.190000, 0.200000, 0.210000, 0.220000, 0.230000, 0.240000, 0.251000, 0.262000, 0.273000, 0.284000, 0.295000, 0.306000, 0.317000, 0.328000, 0.339000, 0.350000, 0.365000, 0.380000, 0.395000, 0.410000, 0.425000, 0.440000, 0.455000, 0.470000, 0.485000, 0.500000, 0.520000, 0.540000, 0.560000, 0.580000, 0.600000, 0.620000, 0.640000, 0.660000, 0.680000, 0.700000, 0.732000, 0.764000, 0.796000, 0.828000, 0.860000, 0.895000, 0.930000, 0.965000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000 }; /* This table converts pitch envelope level parameters into the * actual pitch shift in semitones. For levels [17,85], this is * just ((level - 50) / 32 * 12), but at the outer edges the shift * is exagerated to 0 = -48 and 99 => 47.624. This is based on * measurements I took from my TX7. */ double dx7_voice_pitch_level_to_shift[128] = { -48.000000, -43.497081, -38.995993, -35.626132, -31.873615, -28.495880, -25.500672, -22.872620, -20.998167, -19.496961, -18.373238, -17.251065, -16.122139, -15.375956, -14.624487, -13.876516, -13.126351, -12.375000, -12.000000, -11.625000, -11.250000, -10.875000, -10.500000, -10.125000, -9.750000, -9.375000, -9.000000, -8.625000, -8.250000, -7.875000, -7.500000, -7.125000, -6.750000, -6.375000, -6.000000, -5.625000, -5.250000, -4.875000, -4.500000, -4.125000, -3.750000, -3.375000, -3.000000, -2.625000, -2.250000, -1.875000, -1.500000, -1.125000, -0.750000, -0.375000, 0.000000, 0.375000, 0.750000, 1.125000, 1.500000, 1.875000, 2.250000, 2.625000, 3.000000, 3.375000, 3.750000, 4.125000, 4.500000, 4.875000, 5.250000, 5.625000, 6.000000, 6.375000, 6.750000, 7.125000, 7.500000, 7.875000, 8.250000, 8.625000, 9.000000, 9.375000, 9.750000, 10.125000, 10.500000, 10.875000, 11.250000, 11.625000, 12.000000, 12.375000, 12.750000, 13.125000, 14.251187, 15.001922, 16.126327, 17.250917, 18.375718, 19.877643, 21.753528, 24.373913, 27.378021, 30.748956, 34.499234, 38.627888, 43.122335, 47.624065, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0, 48.0 }; char base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /* * decode_7in6 * * decode a block of base64-ish 7-bit encoded data */ int decode_7in6(const char *string, int expected_length, uint8_t *data) { int in, stated_length, reg, above, below, shift, out; char *p; uint8_t *tmpdata; int string_length = strlen(string); unsigned int sum = 0, stated_sum; if (string_length < 6) return 0; /* too short */ stated_length = strtol(string, &p, 10); in = p - string; if (in == 0 || string[in] != ' ') return 0; /* stated length is bad */ in++; if (stated_length != expected_length) return 0; if (string_length - in < ((expected_length * 7 + 5) / 6)) return 0; /* encoded data too short */ if (!(tmpdata = (uint8_t *)malloc(expected_length))) return 0; /* out of memory */ reg = above = below = out = 0; while (1) { if (above == 7) { tmpdata[out] = reg >> 6; sum += tmpdata[out]; reg &= 0x3f; above = 0; if (++out == expected_length) break; } if (below == 0) { if (!(p = strchr(base64, string[in]))) { return 0; /* illegal character */ } reg |= p - base64; below = 6; in++; } shift = 7 - above; if (below < shift) shift = below; reg <<= shift; above += shift; below -= shift; } if (string[in++] != ' ') { /* encoded data wrong length */ free(tmpdata); return 0; } stated_sum = strtol(string + in, &p, 10); if (sum != stated_sum) { free(tmpdata); return 0; } memcpy(data, tmpdata, expected_length); free(tmpdata); return 1; } /* * dx7_voice_copy_name */ void dx7_voice_copy_name(char *name, dx7_patch_t *patch) { int i; unsigned char c; for (i = 0; i < 10; i++) { c = (unsigned char)patch->data[i + 118]; switch (c) { case 92: c = 'Y'; break; /* yen */ case 126: c = '>'; break; /* >> */ case 127: c = '<'; break; /* << */ default: if (c < 32 || c > 127) c = 32; break; } name[i] = c; } name[10] = 0; } /* * dx7_patch_unpack */ void dx7_patch_unpack(dx7_patch_t *packed_patch, uint8_t number, uint8_t *unpacked_patch) { uint8_t *up = unpacked_patch, *pp = (uint8_t *)(&packed_patch[number]); int i, j; /* ugly because it used to be 68000 assembly... */ for(i = 6; i > 0; i--) { for(j = 11; j > 0; j--) { *up++ = *pp++; } /* through rd */ *up++ = (*pp) & 0x03; /* lc */ *up++ = (*pp++) >> 2; /* rc */ *up++ = (*pp) & 0x07; /* rs */ *(up + 6) = (*pp++) >> 3; /* pd */ *up++ = (*pp) & 0x03; /* ams */ *up++ = (*pp++) >> 2; /* kvs */ *up++ = *pp++; /* ol */ *up++ = (*pp) & 0x01; /* m */ *up++ = (*pp++) >> 1; /* fc */ *up = *pp++; /* ff */ up += 2; } /* operator done */ for(i = 9; i > 0; i--) { *up++ = *pp++; } /* through algorithm */ *up++ = (*pp) & 0x07; /* feedback */ *up++ = (*pp++) >> 3; /* oks */ for(i = 4; i > 0; i--) { *up++ = *pp++; } /* through lamd */ *up++ = (*pp) & 0x01; /* lfo ks */ *up++ = ((*pp) >> 1) & 0x07; /* lfo wave */ *up++ = (*pp++) >> 4; /* lfo pms */ for(i = 11; i > 0; i--) { *up++ = *pp++; } } /* * dx7_patch_pack */ void dx7_patch_pack(uint8_t *unpacked_patch, dx7_patch_t *packed_patch, uint8_t number) { uint8_t *up = unpacked_patch, *pp = (uint8_t *)(&packed_patch[number]); int i, j; /* ugly because it used to be 68000 assembly... */ for (i = 6; i > 0; i--) { for (j = 11; j > 0; j--) { *pp++ = *up++; } /* through rd */ *pp++ = ((*up) & 0x03) | (((*(up + 1)) & 0x03) << 2); up += 2; /* rc+lc */ *pp++ = ((*up) & 0x07) | (((*(up + 7)) & 0x0f) << 3); up++; /* pd+rs */ *pp++ = ((*up) & 0x03) | (((*(up + 1)) & 0x07) << 2); up += 2; /* kvs+ams */ *pp++ = *up++; /* ol */ *pp++ = ((*up) & 0x01) | (((*(up + 1)) & 0x1f) << 1); up += 2; /* fc+m */ *pp++ = *up; up += 2; /* ff */ } /* operator done */ for (i = 9; i > 0; i--) { *pp++ = *up++; } /* through algorithm */ *pp++ = ((*up) & 0x07) | (((*(up + 1)) & 0x01) << 3); up += 2; /* oks+fb */ for (i = 4; i > 0; i--) { *pp++ = *up++; } /* through lamd */ *pp++ = ((*up) & 0x01) | (((*(up + 1)) & 0x07) << 1) | (((*(up + 2)) & 0x07) << 4); up += 3; /* lpms+lfw+lks */ for (i = 11; i > 0; i--) { *pp++ = *up++; } /* through name */ } /* * dssp_error_message */ char * dssp_error_message(const char *fmt, ...) { va_list args; char buffer[256]; va_start(args, fmt); vsnprintf(buffer, 256, fmt, args); va_end(args); return strdup(buffer); } /* * hexter_data_patches_init * * initialize the patch bank, including a default set of good patches to get * the new user started. */ void hexter_data_patches_init(dx7_patch_t *patches) { int i; memcpy(patches, friendly_patches, friendly_patch_count * sizeof(dx7_patch_t)); for (i = friendly_patch_count; i < 128; i++) { memcpy(&patches[i], &dx7_voice_init_voice, sizeof(dx7_patch_t)); } } /* * hexter_data_performance_init * * initialize the global performance parameters. */ void hexter_data_performance_init(uint8_t *performance) { memcpy(performance, &dx7_init_performance, DX7_PERFORMANCE_SIZE); }