easy_spice-0.6.8/0000777000175000001440000000000010673154315010657 500000000000000easy_spice-0.6.8/po/0000777000175000001440000000000010673154314011274 500000000000000easy_spice-0.6.8/po/easy_spice.pot0000644000175000001440000004055510673154240014067 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-09-16 09:17+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/callbacks.c:42 src/callbacks.c:75 src/callbacks.c:110 #: src/callbacks.c:126 src/callbacks.c:145 src/callbacks.c:167 #: src/callbacks.c:189 src/callbacks.c:211 src/callbacks.c:234 #: src/callbacks.c:452 src/callbacks.c:613 src/menu.c:581 src/menu.c:835 #: src/menu.c:849 msgid "Error: No project name specified\n" msgstr "" #: src/callbacks.c:43 msgid "Error: Stopped opening the schematic\n" msgstr "" #: src/callbacks.c:47 msgid "Starting gschem...\n" msgstr "" #: src/callbacks.c:49 msgid "Notice" msgstr "" #: src/callbacks.c:49 msgid "" "It seems that an existing\n" "gschem session exists.\n" "\n" "If not, consider deleting the\n" "easyspice.gschem.lockfile." msgstr "" #: src/callbacks.c:76 msgid "Error: Stopped generating the netlist\n" msgstr "" #. TO BE DONE: test if the schematic has been saved #: src/callbacks.c:81 msgid "Creating netlist\n" msgstr "" #: src/callbacks.c:84 msgid "Netlist created\n" msgstr "" #: src/callbacks.c:111 msgid "Error: project name missing, stopped showing the netlist\n" msgstr "" #: src/callbacks.c:127 src/callbacks.c:146 src/callbacks.c:168 #: src/callbacks.c:190 src/callbacks.c:212 src/callbacks.c:235 msgid "Error: project name missing, stopped simulation\n" msgstr "" #: src/callbacks.c:135 src/callbacks.c:150 src/callbacks.c:172 #: src/callbacks.c:239 msgid "" "error(s) in the netlist\n" " No simulation done\n" msgstr "" #: src/callbacks.c:194 msgid "" "error(s) in the netlist\n" " No simulation done" msgstr "" #: src/callbacks.c:216 src/geda.c:121 src/geda.c:149 src/geda.c:160 #: src/spice.c:300 msgid "Error" msgstr "" #: src/callbacks.c:216 msgid "" "error(s) in the netlist\n" "No simulation done\n" msgstr "" #: src/callbacks.c:319 src/interface.c:1924 msgid "Step" msgstr "" #: src/callbacks.c:342 src/callbacks.c:365 msgid "Pts/Dec" msgstr "" #: src/callbacks.c:377 src/callbacks.c:410 src/interface.c:1188 msgid "Pts/decade" msgstr "" #: src/callbacks.c:388 src/callbacks.c:421 msgid "Number of Pts" msgstr "" #: src/callbacks.c:399 src/callbacks.c:432 msgid "Pts/octave" msgstr "" #: src/callbacks.c:441 msgid "Warning: this funciton is not implemented yet\n" msgstr "" #: src/callbacks.c:453 msgid "Error: project name missing, stopped plotting\n" msgstr "" #: src/callbacks.c:614 msgid "Error: Stopped showing the spice output\n" msgstr "" #: src/callbacks.c:779 msgid "select a library" msgstr "" #: src/spice_plot.c:43 msgid "Unable to open plot file\n" msgstr "" #: src/geda.c:105 #, c-format msgid "" "open the %s file in gschem to see the result\n" " but do not modify it!!\n" msgstr "" #: src/geda.c:121 msgid "" "Error!\n" "Unable to load file \"gafrc\"" msgstr "" #: src/geda.c:149 msgid "" "Error!\n" "Unable to load file \"gschemrc\"" msgstr "" #: src/geda.c:160 msgid "" "Error!\n" "Unable to load file \"gnetlistrc\"" msgstr "" #: src/interface.c:333 msgid "File" msgstr "" #. menu_file_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_file)); #: src/interface.c:347 msgid "New project" msgstr "" #: src/interface.c:353 msgid "Open project" msgstr "" #: src/interface.c:359 msgid "Save project" msgstr "" #: src/interface.c:366 msgid "Save as..." msgstr "" #: src/interface.c:380 msgid "Quit" msgstr "" #: src/interface.c:387 msgid "Options" msgstr "" #. menu_options_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_options)); #: src/interface.c:401 msgid "commands ..." msgstr "" #: src/interface.c:408 msgid "spice libraries ..." msgstr "" #: src/interface.c:415 msgid "gEDA options ..." msgstr "" #: src/interface.c:430 msgid "Save options" msgstr "" #: src/interface.c:437 msgid "Window" msgstr "" #. menu_windows_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_windows)); #: src/interface.c:451 msgid "show simul commands" msgstr "" #: src/interface.c:458 msgid "show plot commands" msgstr "" #: src/interface.c:473 msgid "interactive spice" msgstr "" #: src/interface.c:488 msgid "post processing" msgstr "" #: src/interface.c:495 msgid "plot results" msgstr "" #: src/interface.c:502 msgid "Help" msgstr "" #. help1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (help1_menu)); #: src/interface.c:517 src/menu.c:926 msgid "About" msgstr "" #: src/interface.c:524 msgid "Page man spice" msgstr "" #: src/interface.c:531 msgid "doc spice (html)" msgstr "" #: src/interface.c:538 msgid "doc spice (txt)" msgstr "" #: src/interface.c:556 msgid "" "Edit the \n" "schematic" msgstr "" #: src/interface.c:563 msgid "edit the schematic using gschem" msgstr "" #: src/interface.c:565 msgid "" "Create the \n" "netlist" msgstr "" #: src/interface.c:572 msgid "create the netlist from the schematic" msgstr "" #: src/interface.c:574 msgid "" "Show the \n" "netlist" msgstr "" #: src/interface.c:613 msgid "Operating point calculation" msgstr "" #: src/interface.c:628 msgid "See the circuit listing" msgstr "" #: src/interface.c:635 msgid "See the model used" msgstr "" #: src/interface.c:642 msgid "show the results on the schematic" msgstr "" #: src/interface.c:656 msgid "Simulate OP" msgstr "" #: src/interface.c:662 msgid "start the op simulation. See the results on the spice output window" msgstr "" #: src/interface.c:679 msgid "Polarisation" msgstr "" #: src/interface.c:694 msgid "" "Node\n" "or current" msgstr "" #: src/interface.c:716 src/interface.c:789 msgid "Value" msgstr "" #: src/interface.c:747 msgid "Device:" msgstr "" #: src/interface.c:768 msgid "Item" msgstr "" #: src/interface.c:804 msgid "op" msgstr "" #: src/interface.c:818 msgid "dc sweep" msgstr "" #: src/interface.c:853 msgid "First var" msgstr "" #: src/interface.c:867 src/interface.c:1000 src/interface.c:1676 msgid "Source : " msgstr "" #: src/interface.c:904 src/interface.c:1044 msgid "the first value of the sweep" msgstr "" #: src/interface.c:906 src/interface.c:1029 msgid "Start : " msgstr "" #: src/interface.c:922 src/interface.c:1053 msgid "Stop : " msgstr "" #: src/interface.c:938 src/interface.c:1068 src/interface.c:1092 msgid "the last value of the sweep" msgstr "" #: src/interface.c:947 msgid "Inc : " msgstr "" #: src/interface.c:963 msgid "the increment of the sweep" msgstr "" #: src/interface.c:986 msgid "Second var(Optional)" msgstr "" #: src/interface.c:1077 msgid "Inc " msgstr "" #: src/interface.c:1101 msgid "Simulate DC" msgstr "" #: src/interface.c:1108 msgid "dc" msgstr "" #: src/interface.c:1122 msgid "Small signal analysis" msgstr "" #: src/interface.c:1143 src/interface.c:1360 msgid "Type of analysis" msgstr "" #: src/interface.c:1150 src/interface.c:1367 src/interface.c:1845 msgid "DEC" msgstr "" #: src/interface.c:1158 src/interface.c:1375 src/interface.c:1837 msgid "LIN" msgstr "" #: src/interface.c:1166 src/interface.c:1383 msgid "OCT" msgstr "" #: src/interface.c:1201 src/interface.c:1419 msgid "" "Number of points per decade(DEC) or per octave(OCT) or between fmin and fmax" msgstr "" #: src/interface.c:1210 src/interface.c:1428 msgid "fmin" msgstr "" #: src/interface.c:1223 src/interface.c:1442 msgid "first value for the ac analysis" msgstr "" #: src/interface.c:1232 src/interface.c:1451 msgid "fmax" msgstr "" #: src/interface.c:1245 src/interface.c:1465 msgid "last value for the ac analysis" msgstr "" #: src/interface.c:1254 msgid "Simulate AC" msgstr "" #: src/interface.c:1260 src/interface.c:1480 src/interface.c:2181 msgid "start the ac analysis" msgstr "" #: src/interface.c:1262 msgid "ac" msgstr "" #: src/interface.c:1276 msgid "Noise analysis" msgstr "" #: src/interface.c:1297 msgid "Node" msgstr "" #: src/interface.c:1325 msgid "Source" msgstr "" #: src/interface.c:1405 msgid "Pts/Decade" msgstr "" #: src/interface.c:1474 msgid "Simulate Noise" msgstr "" #: src/interface.c:1482 msgid "noise" msgstr "" #: src/interface.c:1496 msgid "Transient analysis" msgstr "" #: src/interface.c:1517 msgid "tstep" msgstr "" #: src/interface.c:1530 msgid "the time step report" msgstr "" #: src/interface.c:1539 msgid "tstop" msgstr "" #: src/interface.c:1552 msgid "the last value of the transient analysis " msgstr "" #: src/interface.c:1561 msgid "tstart(opt)" msgstr "" #: src/interface.c:1574 msgid "the first value for the analysis (default 0)" msgstr "" #: src/interface.c:1583 msgid "tmax (opt)" msgstr "" #: src/interface.c:1604 msgid "Simulate TRAN" msgstr "" #: src/interface.c:1610 msgid "start the transient analysis" msgstr "" #: src/interface.c:1612 msgid "tran" msgstr "" #: src/interface.c:1626 msgid "Calculate a transfert function" msgstr "" #: src/interface.c:1647 msgid "Output var :" msgstr "" #: src/interface.c:1706 msgid "Simulate TF" msgstr "" #: src/interface.c:1712 msgid "" "start the transfert function simulation. See the results on the spice output " "window" msgstr "" #: src/interface.c:1714 msgid "tf" msgstr "" #: src/interface.c:1728 msgid "Do a parametric analysis" msgstr "" #: src/interface.c:1742 msgid "enable" msgstr "" #: src/interface.c:1765 msgid "name" msgstr "" #: src/interface.c:1794 src/interface.c:1960 msgid "param" msgstr "" #: src/interface.c:1830 msgid "Type" msgstr "" #: src/interface.c:1853 msgid "LIST" msgstr "" #: src/interface.c:1882 msgid "Start" msgstr "" #: src/interface.c:1903 msgid "Stop" msgstr "" #: src/interface.c:1946 msgid "Values" msgstr "" #: src/interface.c:1975 msgid "Plot the results" msgstr "" #: src/interface.c:1989 msgid "Commands before plotting :" msgstr "" #: src/interface.c:2035 msgid "X axis : " msgstr "" #: src/interface.c:2049 msgid "default" msgstr "" #: src/interface.c:2064 msgid "value" msgstr "" #: src/interface.c:2088 src/interface.c:2132 msgid "log scale" msgstr "" #: src/interface.c:2096 msgid "lin scale" msgstr "" #: src/interface.c:2118 msgid "Y axis : " msgstr "" #: src/interface.c:2153 msgid "auto update" msgstr "" #: src/interface.c:2160 msgid "Reset" msgstr "" #: src/interface.c:2175 msgid "Plot" msgstr "" #: src/interface.c:2183 msgid "plot" msgstr "" #: src/interface.c:2222 msgid " Log " msgstr "" #: src/interface.c:2266 msgid "spice output " msgstr "" #: src/interface.c:2273 msgid "-> view" msgstr "" #: src/interface.c:2296 msgid "Spice errors" msgstr "" #: src/interface.c:2459 msgid "verify quit" msgstr "" #: src/interface.c:2466 msgid "" "Are you sure you want\n" "to quit?" msgstr "" #: src/interface.c:2536 msgid "config spice" msgstr "" #: src/interface.c:2569 msgid "Spice configuration" msgstr "" #: src/interface.c:2715 msgid "Ok" msgstr "" #: src/interface.c:2723 src/interface.c:3128 src/interface.c:3410 msgid "Default" msgstr "" #: src/interface.c:2765 msgid "easy_spice: text viewer" msgstr "" #: src/interface.c:2784 src/interface.c:2790 msgid "Filename: " msgstr "" #: src/interface.c:2900 msgid "gEDA parameters" msgstr "" #: src/interface.c:2924 msgid "Include current directory: " msgstr "" #: src/interface.c:2928 src/interface.c:2964 src/interface.c:3089 msgid "No" msgstr "" #: src/interface.c:2934 src/interface.c:2970 src/interface.c:3095 msgid "Yes" msgstr "" #: src/interface.c:2944 msgid "Other directories: " msgstr "" #: src/interface.c:2960 msgid "pinlabel attribute: " msgstr "" #: src/interface.c:2980 msgid "Other attributes: " msgstr "" #: src/interface.c:2988 msgid "Common gEDA configurations:" msgstr "" #: src/interface.c:3012 msgid "Text size: " msgstr "" #: src/interface.c:3029 msgid "Snap size: " msgstr "" #: src/interface.c:3038 msgid "gschem configurations:" msgstr "" #: src/interface.c:3061 msgid "Net priority: " msgstr "" #: src/interface.c:3065 msgid "Labels" msgstr "" #: src/interface.c:3071 msgid "Nodes" msgstr "" #: src/interface.c:3085 msgid "Allow hierarchy" msgstr "" #: src/interface.c:3106 msgid "gnetlist command line: " msgstr "" #. End of addition by Gudjon #: src/interface.c:3119 msgid "gnetlist configurations:" msgstr "" #: src/interface.c:3256 msgid "setup external programms" msgstr "" #: src/interface.c:3280 msgid "Simulator command: " msgstr "" #: src/interface.c:3296 msgid "Plot command: " msgstr "" #: src/interface.c:3304 msgid "spice commands" msgstr "" #: src/interface.c:3328 msgid "Help command: " msgstr "" #: src/interface.c:3345 msgid "HTML index: " msgstr "" #: src/interface.c:3354 msgid "spice help" msgstr "" #: src/interface.c:3377 msgid "Browser: " msgstr "" #: src/interface.c:3393 msgid "Text editor: " msgstr "" #: src/interface.c:3401 msgid "other programms" msgstr "" #: src/interface.c:3545 msgid "Post traitement" msgstr "" #: src/interface.c:3555 msgid "For all simulations:" msgstr "" #: src/interface.c:3632 msgid "library editor" msgstr "" #: src/interface.c:3651 msgid "Libraries" msgstr "" #: src/menu.c:36 msgid "Select new project name" msgstr "" #: src/menu.c:103 msgid "Open a project" msgstr "" #: src/menu.c:174 #, c-format msgid "No local configuration file found: %s\n" msgstr "" #: src/menu.c:193 src/menu.c:360 msgid "Error: No project file found.\n" msgstr "" #: src/menu.c:231 #, c-format msgid "Error: Loading configuration file %s failed.\n" msgstr "" #: src/menu.c:232 #, c-format msgid " GError: %s" msgstr "" #: src/menu.c:582 msgid "Error: Stopped saving the project\n" msgstr "" #: src/menu.c:588 msgid "Error: unable to write the file" msgstr "" #: src/menu.c:682 msgid "Save the project as ..." msgstr "" #: src/menu.c:836 msgid "Error: Stopped showing the simulation commands\n" msgstr "" #: src/menu.c:850 msgid "Error: Stopped showing the plotting commands\n" msgstr "" #: src/netlist.c:78 msgid "" "\n" "Error: unable to open the netlist file\n" msgstr "" #: src/netlist.c:186 msgid "No netlist\n" msgstr "" #: src/netlist.c:194 msgid "Testing netlist\n" msgstr "" #: src/netlist.c:203 msgid "Error : pin not connected\n" msgstr "" #: src/netlist.c:211 msgid "" "no ground\n" "Make sure to put an attribute label = 0 for the ground potential\n" msgstr "" #: src/netlist.c:220 msgid "One missing uref\n" msgstr "" #: src/netlist.c:227 msgid "Invalid name for uref:" msgstr "" #: src/netlist.c:236 msgid "Error(s) in the netlist\n" msgstr "" #: src/netlist.c:238 msgid "No error(s)\n" msgstr "" #: src/netlist.c:280 #, c-format msgid "List of devices:\n" msgstr "" #: src/netlist.c:282 #, c-format msgid "List of sources:\n" msgstr "" #: src/spice.c:219 msgid "Error: one field empty in first DC variable\n" msgstr "" #: src/spice.c:234 msgid "Error: One field empty in AC variables\n" msgstr "" #: src/spice.c:240 msgid "Error: One field empty in TRAN variables\n" msgstr "" #: src/spice.c:246 msgid "Error: One field empty in TF variables\n" msgstr "" #: src/spice.c:254 msgid "Error: One field empty in NOISE variables\n" msgstr "" #: src/spice.c:259 msgid "Error in spice_test_field\n" msgstr "" #: src/spice.c:300 msgid "" "Failed to open the\n" "spice error file!" msgstr "" #: src/spice.c:314 msgid "No error\n" msgstr "" #: src/spice.c:317 #, c-format msgid "One error found\n" msgstr "" #: src/spice.c:320 #, c-format msgid "%d errors founded\n" msgstr "" #: src/spice.c:326 #, c-format msgid "%sSimulation was not successful\n" msgstr "" #. test of the result file #: src/spice.c:360 msgid "Test of the results file\n" msgstr "" #. test of the standard error file #: src/spice.c:367 msgid "Test of the standard error ouput\n" msgstr "" #: src/spice.c:421 #, c-format msgid " echo -----listing of the circuit--------------------------\n" msgstr "" #: src/spice.c:436 #, c-format msgid " echo ------- parameters of the devices -----------\n" msgstr "" #: src/spice.c:442 #, c-format msgid " echo ------- operation point ----------------\n" msgstr "" #: src/spice.c:648 msgid "Error: No netlist" msgstr "" #: src/spice.c:655 msgid "Error: Problem with spice .cir file.\n" msgstr "" #: src/support.c:117 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "" #: src/support.c:126 #, c-format msgid "Error loading pixmap file: %s" msgstr "" #. no value given #: src/util.c:776 #, c-format msgid "spice2double: no value given [%s]\n" msgstr "" #: src/util.c:818 #, c-format msgid "spice2double: strange unit [%s] in value [%s]\n" msgstr "" #: src/util.c:853 #, c-format msgid "Error reading text file %s\n" msgstr "" easy_spice-0.6.8/po/de_DE.gmo0000644000175000001440000003572310673154314012666 00000000000000$3,( "5/5e= !1 PZy!5;Vq"'%-5cu!'*' )1%[&%"-/(O,x.90?$_   j~    & .:?OUd kLy  (0C Wdsx       &;Sf~       $ 8EKThmrz!   $*.1` g q{   %  ; +B ,n +     !!*!C!Z!l!! ! !!K!!"E"N"^"d"y" ~""""""!"# #(# <#"J#.m##C#S#J$g$,j$$$$)$% *%5% :%F%L%R% X%Jd%;& &8&21'<d''''' '''6 ( C(M(h(((((((("()0) 7)X)t)#)9)>)</*l*@**%*+/#+2S+/+1+(+%,(7,(`,7,>,6-77-6o->-/--..C.r. x. .(. .... .!./,///// ///00 '050 :0 G0/U0000000 0R0-11141"I1l1|111111 11 1 2 "2/2 ?2 M2 [2 i2w2 222222233.3 A3 N3[3n3 33333333 3 444 *474<4 D4e44 4 4444#44575?5 G5 Q5[5^5a5 v55%55555556 166<67s67666777)7<7V7o777 777N7#8)8U,888888888 99 /9 P9 ^9j9 99399P9eF:::/::;5;$Q;v; ;; ;;;;;X0d/x&)i >Cw(Qpo]cm !q9 'Y%@7DLB3s^zV\JNE g_85F"k,<~ebAHtaf.MW#Ty h6{v}rK$Z|4S`I+PnU2=R OG:l-;1ju?[* Error: unable to open the netlist file GError: %s echo ------- operation point ---------------- echo ------- parameters of the devices ----------- echo -----listing of the circuit-------------------------- Log %d errors founded %sSimulation was not successful -> viewAboutAllow hierarchyAre you sure you want to quit?Browser: Calculate a transfert functionCommands before plotting :Common gEDA configurations:Couldn't find pixmap file: %sCreate the netlistCreating netlist DECDefaultDevice:Do a parametric analysisEdit the schematicErrorError : pin not connected Error in spice_test_field Error loading pixmap file: %sError reading text file %s Error! Unable to load file "gafrc"Error! Unable to load file "gnetlistrc"Error! Unable to load file "gschemrc"Error(s) in the netlist Error: Loading configuration file %s failed. Error: No netlistError: No project file found. Error: No project name specified Error: One field empty in AC variables Error: One field empty in NOISE variables Error: One field empty in TF variables Error: One field empty in TRAN variables Error: Problem with spice .cir file. Error: Stopped generating the netlist Error: Stopped opening the schematic Error: Stopped saving the project Error: Stopped showing the plotting commands Error: Stopped showing the simulation commands Error: Stopped showing the spice output Error: one field empty in first DC variable Error: project name missing, stopped plotting Error: project name missing, stopped showing the netlist Error: project name missing, stopped simulation Error: unable to write the fileFailed to open the spice error file!FileFilename: First varFor all simulations:HTML index: HelpHelp command: Inc Inc : Include current directory: Invalid name for uref:It seems that an existing gschem session exists. If not, consider deleting the easyspice.gschem.lockfile.ItemLINLISTLabelsLibrariesList of devices: List of sources: Net priority: Netlist created New projectNoNo error No error(s) No local configuration file found: %s No netlist NodeNode or currentNodesNoise analysisNoticeNumber of PtsNumber of points per decade(DEC) or per octave(OCT) or between fmin and fmaxOCTOkOne error found One missing uref Open a projectOpen projectOperating point calculationOptionsOther attributes: Other directories: Output var :Page man spicePlotPlot command: Plot the resultsPolarisationPost traitementPts/DecPts/DecadePts/decadePts/octaveQuitResetSave as...Save optionsSave projectSave the project as ...Second var(Optional)See the circuit listingSee the model usedSelect new project nameShow the netlistSimulate ACSimulate DCSimulate NoiseSimulate OPSimulate TFSimulate TRANSimulator command: Small signal analysisSnap size: SourceSource : Spice configurationSpice errorsStartStart : Starting gschem... StepStopStop : Test of the results file Test of the standard error ouput Testing netlist Text editor: Text size: Transient analysisTypeType of analysisUnable to open plot file ValueValuesWarning: this funciton is not implemented yet WindowX axis : Y axis : Yesacauto updatecommands ...config spicecreate the netlist from the schematicdcdc sweepdefaultdoc spice (html)doc spice (txt)easy_spice: text vieweredit the schematic using gschemenableerror(s) in the netlist No simulation doneerror(s) in the netlist No simulation done error(s) in the netlist No simulation done first value for the ac analysisfmaxfmingEDA options ...gEDA parametersgnetlist command line: gnetlist configurations:gschem configurations:interactive spicelast value for the ac analysislibrary editorlin scalelog scalenameno ground Make sure to put an attribute label = 0 for the ground potential noiseopopen the %s file in gschem to see the result but do not modify it!! other programmsparampinlabel attribute: plotplot resultspost processingselect a librarysetup external programmsshow plot commandsshow simul commandsshow the results on the schematicspice commandsspice helpspice libraries ...spice output spice2double: no value given [%s] spice2double: strange unit [%s] in value [%s] start the ac analysisstart the op simulation. See the results on the spice output windowstart the transfert function simulation. See the results on the spice output windowstart the transient analysistfthe first value for the analysis (default 0)the first value of the sweepthe increment of the sweepthe last value of the sweepthe last value of the transient analysis the time step reporttmax (opt)trantstart(opt)tsteptstopvalueverify quitProject-Id-Version: de_DE Report-Msgid-Bugs-To: POT-Creation-Date: 2007-09-16 09:17+0200 PO-Revision-Date: 2007-09-15 20:29+0200 Last-Translator: Werner Hoch Language-Team: deutsch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.11.4 Fehler: die Netzlistendatei konnte nicht geöffnet werden GError: %s echo ---- Arbeitspunkt der Schaltung ---------------- echo ------- Parameter der Elemente ----------- echo ---- Netzliste der Schaltung ----------------------- Ausgabe%d Fehler gefunden %sDie Simulation war nicht erfolgreich -> anzeigenÜberHierarchien erlaubenSind Sie sicher dass Sie das Programm beenden wollen?Browser: Transferfunktion berechnenBefehle vor der Anzeigegemeinsame gEDA Einstellungen:Couldn't find pixmap file: %sNetzliste erzeugenErzeuge Netzliste DEKDefaultBauteilParametrische Analyse durchführenSchaltplan editierenFehlerFehler: Pin nicht angeschlossen Fehler in spice_test_field Error loading pixmap file: %sFehler beim Lesen der Textdatei %s Fehler! Die Datei "gafrc" konnte nicht geöffnet werden.Fehler! Die Datei "gnetlistrc" konnte nicht geöffnet werden.Fehler! Die Datei "gschemrc" konnte nicht geöffnet werden.Fehler in der Netzliste Fehler: Die Konfigurationsdatei %s konnte nicht geladen werden. Fehler: keine NetzlisteFehler: keine Projektdatei gefunden. Fehler: Der Projektname fehlt Fehler: bei den AC-Variablen ist ein Feld leer Fehler: bei den NOISE-Variablen ist ein Feld leer Fehler: bei den TF-Variablen ist ein Feld leer Fehler: bei den TRAN-Variablen ist ein Feld leer Fehler: Problem mit der spice cir-Datei Fehler: Netzliste wird nicht erzeugt Fehler: Schaltplan wird nicht geöffnet Fehler: Projekt wurde nicht gespeichert Fehler: Die Plotbefehle konnten nicht angezeigt werden Fehler: Die Simulationsbefehle konnten nicht angezeigt werden Fehler: Die Ausgaben von spice werden nicht angezeigt Fehler: Bei der ersten DC-Variablen ist ein Feld leer Fehler: Projektname fehlt. Keine Plotanzeige möglich Fehler: Projektname fehlt. Die Netzliste wird nicht angezeigt Fehler: Projektname fehlt. Simulation gestoppt Fehler: Datei konnte nicht geschrieben werdenKonnte die Fehlerdatei von spice nicht öffnenDateiDateiname: Erster WertDatenaufbereitung für alle SimulationenHTML Index: HilfeHilfe Befehl: Schritt Schritt : aktuelles Verzeichnis einbinden: Ungültiger Name von uref:Es scheint, dass bereits ein gschem Fenster geöffnet ist. Wenn nicht, dann sollten Sie die Datei easyspice.gschem.lockfile löschen.ElementLINListeLabelBibliothekenListe der Elemente: Liste der Quellen: Netz Priorität: Netzliste erzeugt Neues ProjektNeinKein Fehler Keine Fehler Keine lokale Konfigurationsdatei vorhanden: %s keine Netzliste KnotenKnoten oder StromKnotenRausch AnalyseHinweisPunkteanzahlAnzahl der Punkte pro Dekade(DEK) oder pro Oktave(OKT) oder zwischen fmin und fmaxOKTOkEin Fehler gefunden Eine Referenzierung fehlt (uref=) Projekt öffnenProjekt öffnenArbeitspunkt berechenOptionenpinlabel Attribute: anderes Verzeichnis: Ausgabe Variable: spice manpagePlottenPlotbefehl: Ergebnisse darstellenArbeitspunktNachbearbeitungPunkte/DekadePunkte/DekadePunkte/DekadePunkte/OktaveBeendenRücksetzenSpeichern unter...Optionen speichernProjekt speichernProjekt speichern unter ...Zweite VariableNetzliste anzeigenModelle anzeigenNeuen Projektnamen wählenNetzliste anzeigensimuliere ACsimuliere DCsimuliere RauschenArbeitspunkt simulierensimuliere TFsimuliere TRANSimulationsbefehl: KleinsignalanalyseRasterabstand: QuelleQuelle:spice Konfigurationspice FehlerStartStart : Starte gschem... SchrittweiteEndeEnde : Ergebnisdateien werden geprüft stderr Ausgabe wird geprüft Prüfe Netzliste Texteditor: Textgröße: Transienten-AnalyseTypArt der AnalyseKonnte die Plotdatei nicht öffnen WertWerteAchtung: diese Funktion wurde noch nicht implementiert FensterX-Achse: Y-Achse: Jaacautom. AktualisierenBefehle ...spice konfigurierenNetzliste aus dem Schaltplan erzeugendcdc sweepVorgabespice Hilfe (.html)spice Hilfe (.txt)easy_spice: TextbetrachterSchaltpan mit gschem editierenaktivierenFehler in der Netzliste keine Simulation durchgeführtFehler in der Netzliste keine Simulation durchgeführt Fehler in der Netzliste Keine Simulation durchgeführt Erster Wert der AC-AnalysefmaxfmingEDA Optionen ...gEDA Parametergnetlist Kommando:gnetlist Konfigurationen:gschem Konfigurationen: Interaktives spiceletzter Wert der AC-AnalyseBibliothekseditorlineare Skalalogarithm. SkalaNamekeine Masse Stelle sicher, daß ein Netz mit dem GND-Potential verbunden ist. noiseopÖffne die %s Datei mit gschem um die Ergebnisse zu betrachten. Datei nicht ändern! andere Programmeparampinlabel Attribute: plotErgebnisse plottenNachbearbeitungWählen Sie eine BibliothekExterne ProgrammeinstellungenPlotbefehleSimulationsbefehleErgebnisse im Schaltpan anzeigenSpice BefehleSpice Hilfespice Bibliotheken ...spice Ausgabespice2double: Wert fehlt [%s] spice2double: unbekannte Einheit [%s] im Wert [%s] AC-Analyse startenOP-Simulatioin starten. Die Ergebnisse werden im spice Ausgabefenster angezeigt.Startet die Simulation der Transferfunktion. Die Ergebnisse werden im spice Ausgabefenster angezeigt.Transienten-Analyse startentfErster Wert im Diagramm der Analyse (default=0)erste Variable des DurchlaufsSchrittweite des Durchlaufsletzter Wert des DurchlaufsLetzter Wert der Transienten-AnalyseSchrittweite der Simulationtmax(opt)trantstart (opt)tsteptstopWertBeenden Bestätigeneasy_spice-0.6.8/po/fr_FR.gmo0000644000175000001440000000715610673154314012723 000000000000003GLhio L" %2N Vc hu    #%0V_ C-Sq,,G)cH "  * 1 C K ^ c Mg         ) < O ] |         - N _       H N2  6   -(V$30 !*. 12&)+%-,/ ' "(#AboutCalculate a transfert functionCreate the netlistDefaultEdit the schematicFileFirst varHelpNoNumber of points per decade(DEC) or per octave(OCT) or between fmin and fmaxOkOpen projectOperating point calculationOptionsOutput var :QuitSave projectSecond var(Optional)See the circuit listingShow the netlistSimulate DCSimulate TRANSmall signal analysisSpice configurationSpice errorsTransient analysisWindowYesconfig spicecreate the netlist from the schematicdc sweepedit the schematic using gschemfirst value for the ac analysisinteractive spicelast value for the ac analysisopplot resultspost processingshow plot commandsshow simul commandsstart the ac analysisstart the op simulation. See the results on the spice output windowstart the transfert function simulation. See the results on the spice output windowstart the transient analysisthe first value for the analysis (default 0)the first value of the sweepthe increment of the sweepthe last value of the sweepthe last value of the transient analysis the time step reportProject-Id-Version: fr_FR Report-Msgid-Bugs-To: POT-Creation-Date: 2007-09-16 09:17+0200 PO-Revision-Date: 2005-09-29 19:05+0200 Last-Translator: Werner Hoch Language-Team: deutsch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.10 A proposCalcul d'une fonction de transfertCréer la netlistDefautEditer le schemaFichierPremière variableAideNonNombre de points par decades(DEC), par octave(OCT) ou entre fmin et fmax(LIN)OkOuvrir le projetCalcul du point de reposOptionsVariable de sortieQuitterSauver le projetDeuxième variableInclure la netlistEditer la netlistSimuler en DCDemarrer l'analyse transitoireAnalyse en petits signauxConfiguration de spiceErreurs spiceAnalyse en transitoireFenêtreOuiconfiguration de spiceCréer la netlistBalayage en tensionEditer le schemapremière valeur de l'analyse acSpice interactifdernière valeur de l'analyse acopVisualiser les resultatsPost traitementMontrer le plotMontrer les commandesDémarrer l'analyse ACDémarre la simulation. Examiner les resultats sur la fenêtre de sortieDémarre l'analyse transistoire. Voir les résultats sur la fenêtre de sortieAnalyse en transitoireLa dernière valeur de l'analyse transitoire(defaut 0)La première valeur du balayagel'incrément du balayageLa dernière valeur du balayageLa dernière valeur de l'analyse transistoireL'intervalle de repporteasy_spice-0.6.8/po/de_DE.po0000644000175000001440000006013510673154240012513 00000000000000# translation of de_DE.po to deutsch # This file is distributed under the same license as the PACKAGE package. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER. # # Werner Hoch , 2005, 2006, 2007. msgid "" msgstr "" "Project-Id-Version: de_DE\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-09-16 09:17+0200\n" "PO-Revision-Date: 2007-09-15 20:29+0200\n" "Last-Translator: Werner Hoch \n" "Language-Team: deutsch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" #: src/callbacks.c:42 src/callbacks.c:75 src/callbacks.c:110 #: src/callbacks.c:126 src/callbacks.c:145 src/callbacks.c:167 #: src/callbacks.c:189 src/callbacks.c:211 src/callbacks.c:234 #: src/callbacks.c:452 src/callbacks.c:613 src/menu.c:581 src/menu.c:835 #: src/menu.c:849 msgid "Error: No project name specified\n" msgstr "Fehler: Der Projektname fehlt\n" #: src/callbacks.c:43 msgid "Error: Stopped opening the schematic\n" msgstr "Fehler: Schaltplan wird nicht geöffnet\n" #: src/callbacks.c:47 msgid "Starting gschem...\n" msgstr "Starte gschem...\n" #: src/callbacks.c:49 msgid "Notice" msgstr "Hinweis" #: src/callbacks.c:49 msgid "" "It seems that an existing\n" "gschem session exists.\n" "\n" "If not, consider deleting the\n" "easyspice.gschem.lockfile." msgstr "" "Es scheint, dass bereits ein \n" "gschem Fenster geöffnet ist.\n" "\n" "Wenn nicht, dann sollten Sie\n" "die Datei easyspice.gschem.lockfile\n" "löschen." #: src/callbacks.c:76 msgid "Error: Stopped generating the netlist\n" msgstr "Fehler: Netzliste wird nicht erzeugt\n" #. TO BE DONE: test if the schematic has been saved #: src/callbacks.c:81 msgid "Creating netlist\n" msgstr "Erzeuge Netzliste\n" #: src/callbacks.c:84 msgid "Netlist created\n" msgstr "Netzliste erzeugt\n" #: src/callbacks.c:111 msgid "Error: project name missing, stopped showing the netlist\n" msgstr "Fehler: Projektname fehlt. Die Netzliste wird nicht angezeigt\n" #: src/callbacks.c:127 src/callbacks.c:146 src/callbacks.c:168 #: src/callbacks.c:190 src/callbacks.c:212 src/callbacks.c:235 msgid "Error: project name missing, stopped simulation\n" msgstr "Fehler: Projektname fehlt. Simulation gestoppt\n" #: src/callbacks.c:135 src/callbacks.c:150 src/callbacks.c:172 #: src/callbacks.c:239 msgid "" "error(s) in the netlist\n" " No simulation done\n" msgstr "" "Fehler in der Netzliste\n" "keine Simulation durchgeführt\n" #: src/callbacks.c:194 msgid "" "error(s) in the netlist\n" " No simulation done" msgstr "" "Fehler in der Netzliste\n" "keine Simulation durchgeführt" #: src/callbacks.c:216 src/geda.c:121 src/geda.c:149 src/geda.c:160 #: src/spice.c:300 msgid "Error" msgstr "Fehler" #: src/callbacks.c:216 msgid "" "error(s) in the netlist\n" "No simulation done\n" msgstr "" "Fehler in der Netzliste\n" "Keine Simulation durchgeführt\n" #: src/callbacks.c:319 src/interface.c:1924 msgid "Step" msgstr "Schrittweite" #: src/callbacks.c:342 src/callbacks.c:365 msgid "Pts/Dec" msgstr "Punkte/Dekade" #: src/callbacks.c:377 src/callbacks.c:410 src/interface.c:1188 msgid "Pts/decade" msgstr "Punkte/Dekade" #: src/callbacks.c:388 src/callbacks.c:421 msgid "Number of Pts" msgstr "Punkteanzahl" #: src/callbacks.c:399 src/callbacks.c:432 msgid "Pts/octave" msgstr "Punkte/Oktave" #: src/callbacks.c:441 msgid "Warning: this funciton is not implemented yet\n" msgstr "Achtung: diese Funktion wurde noch nicht implementiert\n" #: src/callbacks.c:453 msgid "Error: project name missing, stopped plotting\n" msgstr "Fehler: Projektname fehlt. Keine Plotanzeige möglich\n" #: src/callbacks.c:614 msgid "Error: Stopped showing the spice output\n" msgstr "Fehler: Die Ausgaben von spice werden nicht angezeigt\n" #: src/callbacks.c:779 msgid "select a library" msgstr "Wählen Sie eine Bibliothek" #: src/spice_plot.c:43 msgid "Unable to open plot file\n" msgstr "Konnte die Plotdatei nicht öffnen\n" #: src/geda.c:105 #, c-format msgid "" "open the %s file in gschem to see the result\n" " but do not modify it!!\n" msgstr "" "Öffne die %s Datei mit gschem um die Ergebnisse\n" "zu betrachten. Datei nicht ändern!\n" #: src/geda.c:121 msgid "" "Error!\n" "Unable to load file \"gafrc\"" msgstr "" "Fehler!\n" "Die Datei \"gafrc\" konnte \n" "nicht geöffnet werden." #: src/geda.c:149 msgid "" "Error!\n" "Unable to load file \"gschemrc\"" msgstr "" "Fehler!\n" "Die Datei \"gschemrc\" konnte \n" "nicht geöffnet werden." #: src/geda.c:160 msgid "" "Error!\n" "Unable to load file \"gnetlistrc\"" msgstr "" "Fehler!\n" "Die Datei \"gnetlistrc\" konnte \n" "nicht geöffnet werden." #: src/interface.c:333 msgid "File" msgstr "Datei" #. menu_file_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_file)); #: src/interface.c:347 msgid "New project" msgstr "Neues Projekt" #: src/interface.c:353 msgid "Open project" msgstr "Projekt öffnen" #: src/interface.c:359 msgid "Save project" msgstr "Projekt speichern" #: src/interface.c:366 msgid "Save as..." msgstr "Speichern unter..." #: src/interface.c:380 msgid "Quit" msgstr "Beenden" #: src/interface.c:387 msgid "Options" msgstr "Optionen" #. menu_options_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_options)); #: src/interface.c:401 msgid "commands ..." msgstr "Befehle ..." #: src/interface.c:408 msgid "spice libraries ..." msgstr "spice Bibliotheken ..." #: src/interface.c:415 msgid "gEDA options ..." msgstr "gEDA Optionen ..." #: src/interface.c:430 msgid "Save options" msgstr "Optionen speichern" #: src/interface.c:437 msgid "Window" msgstr "Fenster" #. menu_windows_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_windows)); #: src/interface.c:451 msgid "show simul commands" msgstr "Simulationsbefehle" #: src/interface.c:458 msgid "show plot commands" msgstr "Plotbefehle" #: src/interface.c:473 msgid "interactive spice" msgstr "Interaktives spice" #: src/interface.c:488 msgid "post processing" msgstr "Nachbearbeitung" #: src/interface.c:495 msgid "plot results" msgstr "Ergebnisse plotten" #: src/interface.c:502 msgid "Help" msgstr "Hilfe" #. help1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (help1_menu)); #: src/interface.c:517 src/menu.c:926 msgid "About" msgstr "Über" #: src/interface.c:524 msgid "Page man spice" msgstr "spice manpage" #: src/interface.c:531 msgid "doc spice (html)" msgstr "spice Hilfe (.html)" #: src/interface.c:538 msgid "doc spice (txt)" msgstr "spice Hilfe (.txt)" #: src/interface.c:556 msgid "" "Edit the \n" "schematic" msgstr "" "Schaltplan \n" "editieren" #: src/interface.c:563 msgid "edit the schematic using gschem" msgstr "Schaltpan mit gschem editieren" #: src/interface.c:565 msgid "" "Create the \n" "netlist" msgstr "" "Netzliste\n" "erzeugen" #: src/interface.c:572 msgid "create the netlist from the schematic" msgstr "Netzliste aus dem Schaltplan erzeugen" #: src/interface.c:574 msgid "" "Show the \n" "netlist" msgstr "" "Netzliste\n" "anzeigen" #: src/interface.c:613 msgid "Operating point calculation" msgstr "Arbeitspunkt berechen" #: src/interface.c:628 msgid "See the circuit listing" msgstr "Netzliste anzeigen" #: src/interface.c:635 msgid "See the model used" msgstr "Modelle anzeigen" #: src/interface.c:642 msgid "show the results on the schematic" msgstr "Ergebnisse im Schaltpan anzeigen" #: src/interface.c:656 msgid "Simulate OP" msgstr "Arbeitspunkt simulieren" #: src/interface.c:662 msgid "start the op simulation. See the results on the spice output window" msgstr "" "OP-Simulatioin starten. Die Ergebnisse werden im spice Ausgabefenster " "angezeigt." #: src/interface.c:679 msgid "Polarisation" msgstr "Arbeitspunkt" #: src/interface.c:694 msgid "" "Node\n" "or current" msgstr "" "Knoten\n" "oder Strom" #: src/interface.c:716 src/interface.c:789 msgid "Value" msgstr "Wert" #: src/interface.c:747 msgid "Device:" msgstr "Bauteil" #: src/interface.c:768 msgid "Item" msgstr "Element" #: src/interface.c:804 msgid "op" msgstr "op" #: src/interface.c:818 msgid "dc sweep" msgstr "dc sweep" #: src/interface.c:853 msgid "First var" msgstr "Erster Wert" #: src/interface.c:867 src/interface.c:1000 src/interface.c:1676 msgid "Source : " msgstr "Quelle:" #: src/interface.c:904 src/interface.c:1044 msgid "the first value of the sweep" msgstr "erste Variable des Durchlaufs" #: src/interface.c:906 src/interface.c:1029 msgid "Start : " msgstr "Start : " #: src/interface.c:922 src/interface.c:1053 msgid "Stop : " msgstr "Ende : " #: src/interface.c:938 src/interface.c:1068 src/interface.c:1092 msgid "the last value of the sweep" msgstr "letzter Wert des Durchlaufs" #: src/interface.c:947 msgid "Inc : " msgstr "Schritt : " #: src/interface.c:963 msgid "the increment of the sweep" msgstr "Schrittweite des Durchlaufs" #: src/interface.c:986 msgid "Second var(Optional)" msgstr "Zweite Variable" #: src/interface.c:1077 msgid "Inc " msgstr "Schritt " #: src/interface.c:1101 msgid "Simulate DC" msgstr "simuliere DC" #: src/interface.c:1108 msgid "dc" msgstr "dc" #: src/interface.c:1122 msgid "Small signal analysis" msgstr "Kleinsignalanalyse" #: src/interface.c:1143 src/interface.c:1360 msgid "Type of analysis" msgstr "Art der Analyse" #: src/interface.c:1150 src/interface.c:1367 src/interface.c:1845 msgid "DEC" msgstr "DEK" #: src/interface.c:1158 src/interface.c:1375 src/interface.c:1837 msgid "LIN" msgstr "LIN" #: src/interface.c:1166 src/interface.c:1383 msgid "OCT" msgstr "OKT" #: src/interface.c:1201 src/interface.c:1419 msgid "" "Number of points per decade(DEC) or per octave(OCT) or between fmin and fmax" msgstr "" "Anzahl der Punkte pro Dekade(DEK) oder pro Oktave(OKT) oder zwischen fmin " "und fmax" #: src/interface.c:1210 src/interface.c:1428 msgid "fmin" msgstr "fmin" #: src/interface.c:1223 src/interface.c:1442 msgid "first value for the ac analysis" msgstr "Erster Wert der AC-Analyse" #: src/interface.c:1232 src/interface.c:1451 msgid "fmax" msgstr "fmax" #: src/interface.c:1245 src/interface.c:1465 msgid "last value for the ac analysis" msgstr "letzter Wert der AC-Analyse" #: src/interface.c:1254 msgid "Simulate AC" msgstr "simuliere AC" #: src/interface.c:1260 src/interface.c:1480 src/interface.c:2181 msgid "start the ac analysis" msgstr "AC-Analyse starten" #: src/interface.c:1262 msgid "ac" msgstr "ac" #: src/interface.c:1276 msgid "Noise analysis" msgstr "Rausch Analyse" #: src/interface.c:1297 msgid "Node" msgstr "Knoten" #: src/interface.c:1325 msgid "Source" msgstr "Quelle" #: src/interface.c:1405 msgid "Pts/Decade" msgstr "Punkte/Dekade" #: src/interface.c:1474 msgid "Simulate Noise" msgstr "simuliere Rauschen" #: src/interface.c:1482 msgid "noise" msgstr "noise" #: src/interface.c:1496 msgid "Transient analysis" msgstr "Transienten-Analyse" #: src/interface.c:1517 msgid "tstep" msgstr "tstep" #: src/interface.c:1530 msgid "the time step report" msgstr "Schrittweite der Simulation" #: src/interface.c:1539 msgid "tstop" msgstr "tstop" #: src/interface.c:1552 msgid "the last value of the transient analysis " msgstr "Letzter Wert der Transienten-Analyse" #: src/interface.c:1561 msgid "tstart(opt)" msgstr "tstart (opt)" #: src/interface.c:1574 msgid "the first value for the analysis (default 0)" msgstr "Erster Wert im Diagramm der Analyse (default=0)" #: src/interface.c:1583 msgid "tmax (opt)" msgstr "tmax(opt)" #: src/interface.c:1604 msgid "Simulate TRAN" msgstr "simuliere TRAN" #: src/interface.c:1610 msgid "start the transient analysis" msgstr "Transienten-Analyse starten" #: src/interface.c:1612 msgid "tran" msgstr "tran" #: src/interface.c:1626 msgid "Calculate a transfert function" msgstr "Transferfunktion berechnen" #: src/interface.c:1647 msgid "Output var :" msgstr "Ausgabe Variable: " #: src/interface.c:1706 msgid "Simulate TF" msgstr "simuliere TF" #: src/interface.c:1712 msgid "" "start the transfert function simulation. See the results on the spice output " "window" msgstr "" "Startet die Simulation der Transferfunktion. Die Ergebnisse werden im spice " "Ausgabefenster angezeigt." #: src/interface.c:1714 msgid "tf" msgstr "tf" #: src/interface.c:1728 msgid "Do a parametric analysis" msgstr "Parametrische Analyse durchführen" #: src/interface.c:1742 msgid "enable" msgstr "aktivieren" #: src/interface.c:1765 msgid "name" msgstr "Name" #: src/interface.c:1794 src/interface.c:1960 msgid "param" msgstr "param" #: src/interface.c:1830 msgid "Type" msgstr "Typ" #: src/interface.c:1853 msgid "LIST" msgstr "Liste" #: src/interface.c:1882 msgid "Start" msgstr "Start" #: src/interface.c:1903 msgid "Stop" msgstr "Ende" #: src/interface.c:1946 msgid "Values" msgstr "Werte" #: src/interface.c:1975 msgid "Plot the results" msgstr "Ergebnisse darstellen" #: src/interface.c:1989 msgid "Commands before plotting :" msgstr "Befehle vor der Anzeige" #: src/interface.c:2035 msgid "X axis : " msgstr "X-Achse: " #: src/interface.c:2049 msgid "default" msgstr "Vorgabe" #: src/interface.c:2064 msgid "value" msgstr "Wert" #: src/interface.c:2088 src/interface.c:2132 msgid "log scale" msgstr "logarithm. Skala" #: src/interface.c:2096 msgid "lin scale" msgstr "lineare Skala" #: src/interface.c:2118 msgid "Y axis : " msgstr "Y-Achse: " #: src/interface.c:2153 msgid "auto update" msgstr "autom. Aktualisieren" #: src/interface.c:2160 msgid "Reset" msgstr "Rücksetzen" #: src/interface.c:2175 msgid "Plot" msgstr "Plotten" #: src/interface.c:2183 msgid "plot" msgstr "plot" #: src/interface.c:2222 msgid " Log " msgstr "Ausgabe" #: src/interface.c:2266 msgid "spice output " msgstr "spice Ausgabe" #: src/interface.c:2273 msgid "-> view" msgstr "-> anzeigen" #: src/interface.c:2296 msgid "Spice errors" msgstr "spice Fehler" #: src/interface.c:2459 msgid "verify quit" msgstr "Beenden Bestätigen" #: src/interface.c:2466 msgid "" "Are you sure you want\n" "to quit?" msgstr "" "Sind Sie sicher dass Sie \n" "das Programm beenden wollen?" #: src/interface.c:2536 msgid "config spice" msgstr "spice konfigurieren" #: src/interface.c:2569 msgid "Spice configuration" msgstr "spice Konfiguration" #: src/interface.c:2715 msgid "Ok" msgstr "Ok" #: src/interface.c:2723 src/interface.c:3128 src/interface.c:3410 msgid "Default" msgstr "Default" #: src/interface.c:2765 msgid "easy_spice: text viewer" msgstr "easy_spice: Textbetrachter" #: src/interface.c:2784 src/interface.c:2790 msgid "Filename: " msgstr "Dateiname: " #: src/interface.c:2900 msgid "gEDA parameters" msgstr "gEDA Parameter" #: src/interface.c:2924 msgid "Include current directory: " msgstr "aktuelles Verzeichnis einbinden: " #: src/interface.c:2928 src/interface.c:2964 src/interface.c:3089 msgid "No" msgstr "Nein" #: src/interface.c:2934 src/interface.c:2970 src/interface.c:3095 msgid "Yes" msgstr "Ja" #: src/interface.c:2944 msgid "Other directories: " msgstr "anderes Verzeichnis: " #: src/interface.c:2960 msgid "pinlabel attribute: " msgstr "pinlabel Attribute: " #: src/interface.c:2980 msgid "Other attributes: " msgstr "pinlabel Attribute: " #: src/interface.c:2988 msgid "Common gEDA configurations:" msgstr "gemeinsame gEDA Einstellungen:" #: src/interface.c:3012 msgid "Text size: " msgstr "Textgröße: " #: src/interface.c:3029 msgid "Snap size: " msgstr "Rasterabstand: " #: src/interface.c:3038 msgid "gschem configurations:" msgstr "gschem Konfigurationen: " #: src/interface.c:3061 msgid "Net priority: " msgstr "Netz Priorität: " #: src/interface.c:3065 msgid "Labels" msgstr "Label" #: src/interface.c:3071 msgid "Nodes" msgstr "Knoten" #: src/interface.c:3085 msgid "Allow hierarchy" msgstr "Hierarchien erlauben" #: src/interface.c:3106 msgid "gnetlist command line: " msgstr "gnetlist Kommando:" #. End of addition by Gudjon #: src/interface.c:3119 msgid "gnetlist configurations:" msgstr "gnetlist Konfigurationen:" #: src/interface.c:3256 msgid "setup external programms" msgstr "Externe Programmeinstellungen" #: src/interface.c:3280 msgid "Simulator command: " msgstr "Simulationsbefehl: " #: src/interface.c:3296 msgid "Plot command: " msgstr "Plotbefehl: " #: src/interface.c:3304 msgid "spice commands" msgstr "Spice Befehle" #: src/interface.c:3328 msgid "Help command: " msgstr "Hilfe Befehl: " #: src/interface.c:3345 msgid "HTML index: " msgstr "HTML Index: " #: src/interface.c:3354 msgid "spice help" msgstr "Spice Hilfe" #: src/interface.c:3377 msgid "Browser: " msgstr "Browser: " #: src/interface.c:3393 msgid "Text editor: " msgstr "Texteditor: " #: src/interface.c:3401 msgid "other programms" msgstr "andere Programme" #: src/interface.c:3545 msgid "Post traitement" msgstr "Nachbearbeitung" #: src/interface.c:3555 msgid "For all simulations:" msgstr "Datenaufbereitung für alle Simulationen" #: src/interface.c:3632 msgid "library editor" msgstr "Bibliothekseditor" #: src/interface.c:3651 msgid "Libraries" msgstr "Bibliotheken" #: src/menu.c:36 msgid "Select new project name" msgstr "Neuen Projektnamen wählen" #: src/menu.c:103 msgid "Open a project" msgstr "Projekt öffnen" #: src/menu.c:174 #, c-format msgid "No local configuration file found: %s\n" msgstr "Keine lokale Konfigurationsdatei vorhanden: %s\n" #: src/menu.c:193 src/menu.c:360 msgid "Error: No project file found.\n" msgstr "Fehler: keine Projektdatei gefunden.\n" #: src/menu.c:231 #, c-format msgid "Error: Loading configuration file %s failed.\n" msgstr "Fehler: Die Konfigurationsdatei %s konnte nicht geladen werden.\n" #: src/menu.c:232 #, c-format msgid " GError: %s" msgstr " GError: %s" #: src/menu.c:582 msgid "Error: Stopped saving the project\n" msgstr "Fehler: Projekt wurde nicht gespeichert\n" #: src/menu.c:588 msgid "Error: unable to write the file" msgstr "Fehler: Datei konnte nicht geschrieben werden" #: src/menu.c:682 msgid "Save the project as ..." msgstr "Projekt speichern unter ..." #: src/menu.c:836 msgid "Error: Stopped showing the simulation commands\n" msgstr "Fehler: Die Simulationsbefehle konnten nicht angezeigt werden\n" #: src/menu.c:850 msgid "Error: Stopped showing the plotting commands\n" msgstr "Fehler: Die Plotbefehle konnten nicht angezeigt werden\n" #: src/netlist.c:78 msgid "" "\n" "Error: unable to open the netlist file\n" msgstr "" "\n" "Fehler: die Netzlistendatei konnte nicht geöffnet werden\n" #: src/netlist.c:186 msgid "No netlist\n" msgstr "keine Netzliste\n" #: src/netlist.c:194 msgid "Testing netlist\n" msgstr "Prüfe Netzliste\n" #: src/netlist.c:203 msgid "Error : pin not connected\n" msgstr "Fehler: Pin nicht angeschlossen\n" #: src/netlist.c:211 msgid "" "no ground\n" "Make sure to put an attribute label = 0 for the ground potential\n" msgstr "" "keine Masse\n" "Stelle sicher, daß ein Netz mit dem GND-Potential verbunden ist.\n" #: src/netlist.c:220 msgid "One missing uref\n" msgstr "Eine Referenzierung fehlt (uref=)\n" #: src/netlist.c:227 msgid "Invalid name for uref:" msgstr "Ungültiger Name von uref:" #: src/netlist.c:236 msgid "Error(s) in the netlist\n" msgstr "Fehler in der Netzliste\n" #: src/netlist.c:238 msgid "No error(s)\n" msgstr "Keine Fehler\n" #: src/netlist.c:280 #, c-format msgid "List of devices:\n" msgstr "Liste der Elemente:\n" #: src/netlist.c:282 #, c-format msgid "List of sources:\n" msgstr "Liste der Quellen:\n" #: src/spice.c:219 msgid "Error: one field empty in first DC variable\n" msgstr "Fehler: Bei der ersten DC-Variablen ist ein Feld leer\n" #: src/spice.c:234 msgid "Error: One field empty in AC variables\n" msgstr "Fehler: bei den AC-Variablen ist ein Feld leer\n" #: src/spice.c:240 msgid "Error: One field empty in TRAN variables\n" msgstr "Fehler: bei den TRAN-Variablen ist ein Feld leer\n" #: src/spice.c:246 msgid "Error: One field empty in TF variables\n" msgstr "Fehler: bei den TF-Variablen ist ein Feld leer\n" #: src/spice.c:254 msgid "Error: One field empty in NOISE variables\n" msgstr "Fehler: bei den NOISE-Variablen ist ein Feld leer\n" #: src/spice.c:259 msgid "Error in spice_test_field\n" msgstr "Fehler in spice_test_field\n" #: src/spice.c:300 msgid "" "Failed to open the\n" "spice error file!" msgstr "" "Konnte die Fehlerdatei\n" "von spice nicht öffnen" #: src/spice.c:314 msgid "No error\n" msgstr "Kein Fehler\n" #: src/spice.c:317 #, c-format msgid "One error found\n" msgstr "Ein Fehler gefunden\n" #: src/spice.c:320 #, c-format msgid "%d errors founded\n" msgstr "%d Fehler gefunden\n" #: src/spice.c:326 #, c-format msgid "%sSimulation was not successful\n" msgstr "%sDie Simulation war nicht erfolgreich\n" #. test of the result file #: src/spice.c:360 msgid "Test of the results file\n" msgstr "Ergebnisdateien werden geprüft\n" #. test of the standard error file #: src/spice.c:367 msgid "Test of the standard error ouput\n" msgstr "stderr Ausgabe wird geprüft\n" #: src/spice.c:421 #, c-format msgid " echo -----listing of the circuit--------------------------\n" msgstr " echo ---- Netzliste der Schaltung -----------------------\n" #: src/spice.c:436 #, c-format msgid " echo ------- parameters of the devices -----------\n" msgstr " echo ------- Parameter der Elemente -----------\n" #: src/spice.c:442 #, c-format msgid " echo ------- operation point ----------------\n" msgstr " echo ---- Arbeitspunkt der Schaltung ----------------\n" #: src/spice.c:648 msgid "Error: No netlist" msgstr "Fehler: keine Netzliste" #: src/spice.c:655 msgid "Error: Problem with spice .cir file.\n" msgstr "Fehler: Problem mit der spice cir-Datei\n" #: src/support.c:117 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "Couldn't find pixmap file: %s" #: src/support.c:126 #, c-format msgid "Error loading pixmap file: %s" msgstr "Error loading pixmap file: %s" #. no value given #: src/util.c:776 #, c-format msgid "spice2double: no value given [%s]\n" msgstr "spice2double: Wert fehlt [%s]\n" #: src/util.c:818 #, c-format msgid "spice2double: strange unit [%s] in value [%s]\n" msgstr "spice2double: unbekannte Einheit [%s] im Wert [%s]\n" #: src/util.c:853 #, c-format msgid "Error reading text file %s\n" msgstr "Fehler beim Lesen der Textdatei %s\n" #~ msgid "library" #~ msgstr "Bibliotheken" #~ msgid "Project name" #~ msgstr "Projektname" #~ msgid "" #~ "the project name must be specify at first. All the files use this name " #~ msgstr "" #~ "Der Projektname muß zuerst eingegeben werden. Alle Dateien werden diesen " #~ "Namen verwenden." #~ msgid "" #~ "Error!\n" #~ "Unable to load file \"commonrc\"" #~ msgstr "" #~ "Fehler!\n" #~ "Die Datei \"gafrc\" konnte \n" #~ "nicht geöffnet werden." #~ msgid "Error: one field empty in the second DC variable\n" #~ msgstr "Fehler: bei der zweiten DC-Variable ist ein Feld leer\n" #~ msgid "Select a model file" #~ msgstr "Modeldatei auswählen" #~ msgid "library filenames separated with one white space" #~ msgstr "Bibliotheksdateien, getrennt mit einem Leerzeichen" #~ msgid "Edit" #~ msgstr "Editieren" #~ msgid "Browse" #~ msgstr "Suchen" #~ msgid "Commands or vector definitions for all the analysis" #~ msgstr "Befehle oder Vektordefinitionen für alle Analysen" #~ msgid "Close" #~ msgstr "Schließen" #~ msgid "Error : One field empty\n" #~ msgstr "Fehler: ein Feld ist leer\n" #~ msgid "Commands" #~ msgstr "Kommandos" #~ msgid "easy_spice configuration" #~ msgstr "easy_spice Einstellungen" #~ msgid "Plot the result " #~ msgstr "Ergebnisse plotten" #~ msgid "spice location" #~ msgstr "spice Befehl" #~ msgid "html viewer" #~ msgstr "Browser" #~ msgid "html file" #~ msgstr "html-Dateien" #~ msgid "config gschem" #~ msgstr "gschem konfigurieren" #~ msgid "yes" #~ msgstr "ja" #~ msgid "no" #~ msgstr "nein" #~ msgid "" #~ "list of attributes\n" #~ "separated with spaces" #~ msgstr "" #~ "Liste von Attributen\n" #~ "getrennt durch Leerzeichen" #~ msgid "Size of the text" #~ msgstr "Textgröße" #~ msgid "nodes" #~ msgstr "Knoten" #~ msgid "Cancel" #~ msgstr "Abbrechen" #~ msgid "" #~ "\n" #~ "Error : no netlist\n" #~ msgstr "" #~ "\n" #~ "Fehler: keine Netzliste vorhanden\n" #~ msgid "No file\n" #~ msgstr "Keine Datei\n" #~ msgid "specify a voltage or current source" #~ msgstr "geben Sie eine Spannungs- oder Stromquelle an" #~ msgid "" #~ "the name of the output var may be a voltage or a current i.e. v(3) I" #~ "(vload) " #~ msgstr "" #~ "Der Name der Variablen kann ein Strom oder eine Spannung sein. z.B. v(3), " #~ "I(vlast)" #~ msgid "the input source, can be a voltage or a current source" #~ msgstr "" #~ "Die Eingangsvariable kann eine Spannungs- oder eine Stromquelle sein." #~ msgid "log" #~ msgstr "logarithm." easy_spice-0.6.8/po/POTFILES.in0000644000175000001440000000027610326462212012764 00000000000000# List of source files containing translatable strings. src/callbacks.c src/spice_plot.c src/geda.c src/interface.c src/main.c src/menu.c src/netlist.c src/spice.c src/support.c src/util.c easy_spice-0.6.8/po/fr_FR.po0000644000175000001440000005450610673154240012556 00000000000000# translation of fr_FR.po to deutsch # Werner Hoch , 2005. msgid "" msgstr "" "Project-Id-Version: fr_FR\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-09-16 09:17+0200\n" "PO-Revision-Date: 2005-09-29 19:05+0200\n" "Last-Translator: Werner Hoch \n" "Language-Team: deutsch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.10\n" #: src/callbacks.c:42 src/callbacks.c:75 src/callbacks.c:110 #: src/callbacks.c:126 src/callbacks.c:145 src/callbacks.c:167 #: src/callbacks.c:189 src/callbacks.c:211 src/callbacks.c:234 #: src/callbacks.c:452 src/callbacks.c:613 src/menu.c:581 src/menu.c:835 #: src/menu.c:849 #, fuzzy msgid "Error: No project name specified\n" msgstr "Pas de nom de projet!\n" #: src/callbacks.c:43 #, fuzzy msgid "Error: Stopped opening the schematic\n" msgstr "" "Editer \n" "le schema" #: src/callbacks.c:47 msgid "Starting gschem...\n" msgstr "" #: src/callbacks.c:49 msgid "Notice" msgstr "" #: src/callbacks.c:49 #, fuzzy msgid "" "It seems that an existing\n" "gschem session exists.\n" "\n" "If not, consider deleting the\n" "easyspice.gschem.lockfile." msgstr "" "gschem a déja été démarré\n" "Annuler" #: src/callbacks.c:76 #, fuzzy msgid "Error: Stopped generating the netlist\n" msgstr "" "Editer \n" "la netlist" #. TO BE DONE: test if the schematic has been saved #: src/callbacks.c:81 #, fuzzy msgid "Creating netlist\n" msgstr "Pas de netlist" #: src/callbacks.c:84 msgid "Netlist created\n" msgstr "" #: src/callbacks.c:111 msgid "Error: project name missing, stopped showing the netlist\n" msgstr "" #: src/callbacks.c:127 src/callbacks.c:146 src/callbacks.c:168 #: src/callbacks.c:190 src/callbacks.c:212 src/callbacks.c:235 msgid "Error: project name missing, stopped simulation\n" msgstr "" #: src/callbacks.c:135 src/callbacks.c:150 src/callbacks.c:172 #: src/callbacks.c:239 msgid "" "error(s) in the netlist\n" " No simulation done\n" msgstr "" #: src/callbacks.c:194 msgid "" "error(s) in the netlist\n" " No simulation done" msgstr "" #: src/callbacks.c:216 src/geda.c:121 src/geda.c:149 src/geda.c:160 #: src/spice.c:300 #, fuzzy msgid "Error" msgstr "Erreur!\n" #: src/callbacks.c:216 #, fuzzy msgid "" "error(s) in the netlist\n" "No simulation done\n" msgstr "" "Editer \n" "la netlist" #: src/callbacks.c:319 src/interface.c:1924 msgid "Step" msgstr "" #: src/callbacks.c:342 src/callbacks.c:365 msgid "Pts/Dec" msgstr "" #: src/callbacks.c:377 src/callbacks.c:410 src/interface.c:1188 msgid "Pts/decade" msgstr "" #: src/callbacks.c:388 src/callbacks.c:421 #, fuzzy msgid "Number of Pts" msgstr "Nombre de points" #: src/callbacks.c:399 src/callbacks.c:432 msgid "Pts/octave" msgstr "" #: src/callbacks.c:441 msgid "Warning: this funciton is not implemented yet\n" msgstr "" #: src/callbacks.c:453 msgid "Error: project name missing, stopped plotting\n" msgstr "" #: src/callbacks.c:614 msgid "Error: Stopped showing the spice output\n" msgstr "" #: src/callbacks.c:779 #, fuzzy msgid "select a library" msgstr "Librairie spice" #: src/spice_plot.c:43 msgid "Unable to open plot file\n" msgstr "" #: src/geda.c:105 #, c-format msgid "" "open the %s file in gschem to see the result\n" " but do not modify it!!\n" msgstr "" #: src/geda.c:121 msgid "" "Error!\n" "Unable to load file \"gafrc\"" msgstr "" #: src/geda.c:149 msgid "" "Error!\n" "Unable to load file \"gschemrc\"" msgstr "" #: src/geda.c:160 msgid "" "Error!\n" "Unable to load file \"gnetlistrc\"" msgstr "" #: src/interface.c:333 msgid "File" msgstr "Fichier" #. menu_file_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_file)); #: src/interface.c:347 #, fuzzy msgid "New project" msgstr "Ouvrir le projet" #: src/interface.c:353 msgid "Open project" msgstr "Ouvrir le projet" #: src/interface.c:359 msgid "Save project" msgstr "Sauver le projet" #: src/interface.c:366 msgid "Save as..." msgstr "" #: src/interface.c:380 msgid "Quit" msgstr "Quitter" #: src/interface.c:387 msgid "Options" msgstr "Options" #. menu_options_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_options)); #: src/interface.c:401 #, fuzzy msgid "commands ..." msgstr "Commandes" #: src/interface.c:408 msgid "spice libraries ..." msgstr "" #: src/interface.c:415 msgid "gEDA options ..." msgstr "" #: src/interface.c:430 #, fuzzy msgid "Save options" msgstr "Options" #: src/interface.c:437 msgid "Window" msgstr "Fenêtre" #. menu_windows_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_windows)); #: src/interface.c:451 msgid "show simul commands" msgstr "Montrer les commandes" #: src/interface.c:458 msgid "show plot commands" msgstr "Montrer le plot" #: src/interface.c:473 msgid "interactive spice" msgstr "Spice interactif" #: src/interface.c:488 msgid "post processing" msgstr "Post traitement" #: src/interface.c:495 msgid "plot results" msgstr "Visualiser les resultats" #: src/interface.c:502 msgid "Help" msgstr "Aide" #. help1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (help1_menu)); #: src/interface.c:517 src/menu.c:926 msgid "About" msgstr "A propos" #: src/interface.c:524 msgid "Page man spice" msgstr "" #: src/interface.c:531 msgid "doc spice (html)" msgstr "" #: src/interface.c:538 msgid "doc spice (txt)" msgstr "" #: src/interface.c:556 msgid "" "Edit the \n" "schematic" msgstr "" "Editer \n" "le schema" #: src/interface.c:563 msgid "edit the schematic using gschem" msgstr "Editer le schema" #: src/interface.c:565 msgid "" "Create the \n" "netlist" msgstr "" "Créer la \n" "netlist" #: src/interface.c:572 msgid "create the netlist from the schematic" msgstr "Créer la netlist" #: src/interface.c:574 msgid "" "Show the \n" "netlist" msgstr "" "Editer \n" "la netlist" #: src/interface.c:613 msgid "Operating point calculation" msgstr "Calcul du point de repos" #: src/interface.c:628 msgid "See the circuit listing" msgstr "Inclure la netlist" #: src/interface.c:635 #, fuzzy msgid "See the model used" msgstr "inclure les composants" #: src/interface.c:642 #, fuzzy msgid "show the results on the schematic" msgstr "" "Voir les résultats\n" "Sur le schéma" #: src/interface.c:656 msgid "Simulate OP" msgstr "" #: src/interface.c:662 msgid "start the op simulation. See the results on the spice output window" msgstr "Démarre la simulation. Examiner les resultats sur la fenêtre de sortie" #: src/interface.c:679 msgid "Polarisation" msgstr "" #: src/interface.c:694 msgid "" "Node\n" "or current" msgstr "" #: src/interface.c:716 src/interface.c:789 msgid "Value" msgstr "" #: src/interface.c:747 msgid "Device:" msgstr "" #: src/interface.c:768 msgid "Item" msgstr "" #: src/interface.c:804 msgid "op" msgstr "op" #: src/interface.c:818 msgid "dc sweep" msgstr "Balayage en tension" #: src/interface.c:853 msgid "First var" msgstr "Première variable" #: src/interface.c:867 src/interface.c:1000 src/interface.c:1676 msgid "Source : " msgstr "" #: src/interface.c:904 src/interface.c:1044 msgid "the first value of the sweep" msgstr "La première valeur du balayage" #: src/interface.c:906 src/interface.c:1029 msgid "Start : " msgstr "" #: src/interface.c:922 src/interface.c:1053 msgid "Stop : " msgstr "" #: src/interface.c:938 src/interface.c:1068 src/interface.c:1092 msgid "the last value of the sweep" msgstr "La dernière valeur du balayage" #: src/interface.c:947 msgid "Inc : " msgstr "" #: src/interface.c:963 msgid "the increment of the sweep" msgstr "l'incrément du balayage" #: src/interface.c:986 msgid "Second var(Optional)" msgstr "Deuxième variable" #: src/interface.c:1077 msgid "Inc " msgstr "" #: src/interface.c:1101 msgid "Simulate DC" msgstr "Simuler en DC" #: src/interface.c:1108 msgid "dc" msgstr "" #: src/interface.c:1122 msgid "Small signal analysis" msgstr "Analyse en petits signaux" #: src/interface.c:1143 src/interface.c:1360 #, fuzzy msgid "Type of analysis" msgstr "Analyse en transitoire" #: src/interface.c:1150 src/interface.c:1367 src/interface.c:1845 msgid "DEC" msgstr "" #: src/interface.c:1158 src/interface.c:1375 src/interface.c:1837 msgid "LIN" msgstr "" #: src/interface.c:1166 src/interface.c:1383 msgid "OCT" msgstr "" #: src/interface.c:1201 src/interface.c:1419 msgid "" "Number of points per decade(DEC) or per octave(OCT) or between fmin and fmax" msgstr "" "Nombre de points par decades(DEC), par octave(OCT) ou entre fmin et fmax(LIN)" #: src/interface.c:1210 src/interface.c:1428 msgid "fmin" msgstr "" #: src/interface.c:1223 src/interface.c:1442 msgid "first value for the ac analysis" msgstr "première valeur de l'analyse ac" #: src/interface.c:1232 src/interface.c:1451 msgid "fmax" msgstr "" #: src/interface.c:1245 src/interface.c:1465 msgid "last value for the ac analysis" msgstr "dernière valeur de l'analyse ac" #: src/interface.c:1254 msgid "Simulate AC" msgstr "" #: src/interface.c:1260 src/interface.c:1480 src/interface.c:2181 msgid "start the ac analysis" msgstr "Démarrer l'analyse AC" #: src/interface.c:1262 msgid "ac" msgstr "" #: src/interface.c:1276 #, fuzzy msgid "Noise analysis" msgstr "Analyse en transitoire" #: src/interface.c:1297 #, fuzzy msgid "Node" msgstr "Non" #: src/interface.c:1325 msgid "Source" msgstr "" #: src/interface.c:1405 msgid "Pts/Decade" msgstr "" #: src/interface.c:1474 #, fuzzy msgid "Simulate Noise" msgstr "Demarrer l'analyse transitoire" #: src/interface.c:1482 #, fuzzy msgid "noise" msgstr "Fermer" #: src/interface.c:1496 msgid "Transient analysis" msgstr "Analyse en transitoire" #: src/interface.c:1517 msgid "tstep" msgstr "" #: src/interface.c:1530 msgid "the time step report" msgstr "L'intervalle de repport" #: src/interface.c:1539 msgid "tstop" msgstr "" #: src/interface.c:1552 msgid "the last value of the transient analysis " msgstr "La dernière valeur de l'analyse transistoire" #: src/interface.c:1561 msgid "tstart(opt)" msgstr "" #: src/interface.c:1574 msgid "the first value for the analysis (default 0)" msgstr "La dernière valeur de l'analyse transitoire(defaut 0)" #: src/interface.c:1583 msgid "tmax (opt)" msgstr "" #: src/interface.c:1604 msgid "Simulate TRAN" msgstr "Demarrer l'analyse transitoire" #: src/interface.c:1610 msgid "start the transient analysis" msgstr "Analyse en transitoire" #: src/interface.c:1612 msgid "tran" msgstr "" #: src/interface.c:1626 msgid "Calculate a transfert function" msgstr "Calcul d'une fonction de transfert" #: src/interface.c:1647 msgid "Output var :" msgstr "Variable de sortie" #: src/interface.c:1706 msgid "Simulate TF" msgstr "" #: src/interface.c:1712 msgid "" "start the transfert function simulation. See the results on the spice output " "window" msgstr "" "Démarre l'analyse transistoire. Voir les résultats sur la fenêtre de sortie" #: src/interface.c:1714 msgid "tf" msgstr "" #: src/interface.c:1728 #, fuzzy msgid "Do a parametric analysis" msgstr "Analyse en transitoire" #: src/interface.c:1742 msgid "enable" msgstr "" #: src/interface.c:1765 #, fuzzy msgid "name" msgstr "nutmeg" #: src/interface.c:1794 src/interface.c:1960 msgid "param" msgstr "" #: src/interface.c:1830 msgid "Type" msgstr "" #: src/interface.c:1853 msgid "LIST" msgstr "" #: src/interface.c:1882 msgid "Start" msgstr "" #: src/interface.c:1903 #, fuzzy msgid "Stop" msgstr "op" #: src/interface.c:1946 msgid "Values" msgstr "" #: src/interface.c:1975 #, fuzzy msgid "Plot the results" msgstr "Visualiser les resultats" #: src/interface.c:1989 msgid "Commands before plotting :" msgstr "" #: src/interface.c:2035 msgid "X axis : " msgstr "" #: src/interface.c:2049 #, fuzzy msgid "default" msgstr "Defaut" #: src/interface.c:2064 msgid "value" msgstr "" #: src/interface.c:2088 src/interface.c:2132 msgid "log scale" msgstr "" #: src/interface.c:2096 msgid "lin scale" msgstr "" #: src/interface.c:2118 msgid "Y axis : " msgstr "" #: src/interface.c:2153 msgid "auto update" msgstr "" #: src/interface.c:2160 #, fuzzy msgid "Reset" msgstr "Résultats" #: src/interface.c:2175 msgid "Plot" msgstr "" #: src/interface.c:2183 msgid "plot" msgstr "" #: src/interface.c:2222 msgid " Log " msgstr "" #: src/interface.c:2266 #, fuzzy msgid "spice output " msgstr "sortie spice" #: src/interface.c:2273 msgid "-> view" msgstr "" #: src/interface.c:2296 msgid "Spice errors" msgstr "Erreurs spice" #: src/interface.c:2459 msgid "verify quit" msgstr "" #: src/interface.c:2466 #, fuzzy msgid "" "Are you sure you want\n" "to quit?" msgstr "" "Etes vous sur de vouloir \n" "sortir" #: src/interface.c:2536 msgid "config spice" msgstr "configuration de spice" #: src/interface.c:2569 msgid "Spice configuration" msgstr "Configuration de spice" #: src/interface.c:2715 msgid "Ok" msgstr "Ok" #: src/interface.c:2723 src/interface.c:3128 src/interface.c:3410 msgid "Default" msgstr "Defaut" #: src/interface.c:2765 msgid "easy_spice: text viewer" msgstr "" #: src/interface.c:2784 src/interface.c:2790 msgid "Filename: " msgstr "" #: src/interface.c:2900 #, fuzzy msgid "gEDA parameters" msgstr "Inclure les parametres" #: src/interface.c:2924 #, fuzzy msgid "Include current directory: " msgstr "Inclure le répertoire courant" #: src/interface.c:2928 src/interface.c:2964 src/interface.c:3089 msgid "No" msgstr "Non" #: src/interface.c:2934 src/interface.c:2970 src/interface.c:3095 msgid "Yes" msgstr "Oui" #: src/interface.c:2944 #, fuzzy msgid "Other directories: " msgstr "Autre répertoire" #: src/interface.c:2960 #, fuzzy msgid "pinlabel attribute: " msgstr "attribut pinlabel" #: src/interface.c:2980 #, fuzzy msgid "Other attributes: " msgstr "attribut pinlabel" #: src/interface.c:2988 #, fuzzy msgid "Common gEDA configurations:" msgstr "Configuration commune" #: src/interface.c:3012 msgid "Text size: " msgstr "" #: src/interface.c:3029 msgid "Snap size: " msgstr "" #: src/interface.c:3038 #, fuzzy msgid "gschem configurations:" msgstr "configuration de gschem" #: src/interface.c:3061 msgid "Net priority: " msgstr "" #: src/interface.c:3065 #, fuzzy msgid "Labels" msgstr "labels" #: src/interface.c:3071 #, fuzzy msgid "Nodes" msgstr "Non" #: src/interface.c:3085 #, fuzzy msgid "Allow hierarchy" msgstr "Autoriser la hiérarchie" #: src/interface.c:3106 #, fuzzy msgid "gnetlist command line: " msgstr "Montrer le plot" #. End of addition by Gudjon #: src/interface.c:3119 #, fuzzy msgid "gnetlist configurations:" msgstr "Configuration de gnetlist" #: src/interface.c:3256 msgid "setup external programms" msgstr "" #: src/interface.c:3280 #, fuzzy msgid "Simulator command: " msgstr "Montrer les commandes" #: src/interface.c:3296 #, fuzzy msgid "Plot command: " msgstr "Montrer le plot" #: src/interface.c:3304 #, fuzzy msgid "spice commands" msgstr "Montrer le plot" #: src/interface.c:3328 #, fuzzy msgid "Help command: " msgstr "Commandes" #: src/interface.c:3345 msgid "HTML index: " msgstr "" #: src/interface.c:3354 #, fuzzy msgid "spice help" msgstr "Erreurs spice" #: src/interface.c:3377 #, fuzzy msgid "Browser: " msgstr "Parcourir" #: src/interface.c:3393 msgid "Text editor: " msgstr "" #: src/interface.c:3401 msgid "other programms" msgstr "" #: src/interface.c:3545 msgid "Post traitement" msgstr "" #: src/interface.c:3555 #, fuzzy msgid "For all simulations:" msgstr "Sauver résultats simulation" #: src/interface.c:3632 #, fuzzy msgid "library editor" msgstr "Librairie" #: src/interface.c:3651 #, fuzzy msgid "Libraries" msgstr "Librairie" #: src/menu.c:36 #, fuzzy msgid "Select new project name" msgstr "Pas de nom de projet!\n" #: src/menu.c:103 #, fuzzy msgid "Open a project" msgstr "Ouvrir le projet" #: src/menu.c:174 #, c-format msgid "No local configuration file found: %s\n" msgstr "" #: src/menu.c:193 src/menu.c:360 #, fuzzy msgid "Error: No project file found.\n" msgstr "Pas de nom de projet!\n" #: src/menu.c:231 #, fuzzy, c-format msgid "Error: Loading configuration file %s failed.\n" msgstr "Erreur en lisant le fichier texte" #: src/menu.c:232 #, c-format msgid " GError: %s" msgstr "" #: src/menu.c:582 #, fuzzy msgid "Error: Stopped saving the project\n" msgstr "" "Editer \n" "la netlist" #: src/menu.c:588 #, fuzzy msgid "Error: unable to write the file" msgstr "" "Editer \n" "la netlist" #: src/menu.c:682 #, fuzzy msgid "Save the project as ..." msgstr "Sauver le projet" #: src/menu.c:836 msgid "Error: Stopped showing the simulation commands\n" msgstr "" #: src/menu.c:850 msgid "Error: Stopped showing the plotting commands\n" msgstr "" #: src/netlist.c:78 #, fuzzy msgid "" "\n" "Error: unable to open the netlist file\n" msgstr "" "Editer \n" "la netlist" #: src/netlist.c:186 #, fuzzy msgid "No netlist\n" msgstr "Pas de netlist" #: src/netlist.c:194 #, fuzzy msgid "Testing netlist\n" msgstr "Pas de netlist" #: src/netlist.c:203 msgid "Error : pin not connected\n" msgstr "" #: src/netlist.c:211 msgid "" "no ground\n" "Make sure to put an attribute label = 0 for the ground potential\n" msgstr "" #: src/netlist.c:220 msgid "One missing uref\n" msgstr "" #: src/netlist.c:227 msgid "Invalid name for uref:" msgstr "" #: src/netlist.c:236 #, fuzzy msgid "Error(s) in the netlist\n" msgstr "" "Editer \n" "la netlist" #: src/netlist.c:238 #, fuzzy msgid "No error(s)\n" msgstr "Pas de fichier erreur" #: src/netlist.c:280 #, c-format msgid "List of devices:\n" msgstr "" #: src/netlist.c:282 #, c-format msgid "List of sources:\n" msgstr "" #: src/spice.c:219 #, fuzzy msgid "Error: one field empty in first DC variable\n" msgstr "Un champ est vide pour la première variable DC" #: src/spice.c:234 #, fuzzy msgid "Error: One field empty in AC variables\n" msgstr "Un champ est vide pour la première variable DC" #: src/spice.c:240 #, fuzzy msgid "Error: One field empty in TRAN variables\n" msgstr "Un champ est vide pour la première variable DC" #: src/spice.c:246 #, fuzzy msgid "Error: One field empty in TF variables\n" msgstr "Un champ est vide pour la première variable DC" #: src/spice.c:254 #, fuzzy msgid "Error: One field empty in NOISE variables\n" msgstr "Un champ est vide pour la première variable DC" #: src/spice.c:259 #, fuzzy msgid "Error in spice_test_field\n" msgstr "Erreur en lisant le fichier texte" #: src/spice.c:300 msgid "" "Failed to open the\n" "spice error file!" msgstr "" #: src/spice.c:314 #, fuzzy msgid "No error\n" msgstr "Pas de fichier erreur" #: src/spice.c:317 #, c-format msgid "One error found\n" msgstr "" #: src/spice.c:320 #, c-format msgid "%d errors founded\n" msgstr "" #: src/spice.c:326 #, c-format msgid "%sSimulation was not successful\n" msgstr "" #. test of the result file #: src/spice.c:360 #, fuzzy msgid "Test of the results file\n" msgstr "Pas de fichier de résultats DC\n" #. test of the standard error file #: src/spice.c:367 msgid "Test of the standard error ouput\n" msgstr "" #: src/spice.c:421 #, c-format msgid " echo -----listing of the circuit--------------------------\n" msgstr "" #: src/spice.c:436 #, c-format msgid " echo ------- parameters of the devices -----------\n" msgstr "" #: src/spice.c:442 #, c-format msgid " echo ------- operation point ----------------\n" msgstr "" #: src/spice.c:648 #, fuzzy msgid "Error: No netlist" msgstr "Pas de netlist" #: src/spice.c:655 #, fuzzy msgid "Error: Problem with spice .cir file.\n" msgstr "Pas de fichier .cir!\n" #: src/support.c:117 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "" #: src/support.c:126 #, c-format msgid "Error loading pixmap file: %s" msgstr "" #. no value given #: src/util.c:776 #, c-format msgid "spice2double: no value given [%s]\n" msgstr "" #: src/util.c:818 #, c-format msgid "spice2double: strange unit [%s] in value [%s]\n" msgstr "" #: src/util.c:853 #, fuzzy, c-format msgid "Error reading text file %s\n" msgstr "Erreur en lisant le fichier texte" #~ msgid "library" #~ msgstr "Librairie" #~ msgid "Project name" #~ msgstr "Nom du projet" #~ msgid "" #~ "the project name must be specify at first. All the files use this name " #~ msgstr "Le nom du projet doit absolument être donné." #, fuzzy #~ msgid "Error: one field empty in the second DC variable\n" #~ msgstr "Un champ est vide pour la seconde variable DC" #~ msgid "library filenames separated with one white space" #~ msgstr "Nom des fichiers de librairies séparé par un espace" #~ msgid "Edit" #~ msgstr "Editer" #~ msgid "Browse" #~ msgstr "Parcourir" #~ msgid "Close" #~ msgstr "Fermer" #, fuzzy #~ msgid "Error : no project name\n" #~ msgstr "Pas de nom de projet!\n" #~ msgid "Commands" #~ msgstr "Commandes" #, fuzzy #~ msgid "easy_spice configuration" #~ msgstr "Configuration d'easy spice" #, fuzzy #~ msgid "Plot the result " #~ msgstr "Visualiser les resultats" #, fuzzy #~ msgid "spice location" #~ msgstr "Configuration de spice" #~ msgid "config gschem" #~ msgstr "Configuration de gschem" #~ msgid "yes" #~ msgstr "Oui" #~ msgid "no" #~ msgstr "non" #~ msgid "" #~ "list of attributes\n" #~ "separated with spaces" #~ msgstr "" #~ "Liste des attributs \n" #~ "séparés par des espaces" #~ msgid "Size of the text" #~ msgstr "Taille du texte" #~ msgid "nodes" #~ msgstr "noeuds" #~ msgid "Cancel" #~ msgstr "Annuler" #~ msgid "No file\n" #~ msgstr "Pas de fichier erreur\n" #~ msgid "specify a voltage or current source" #~ msgstr "Indiquer une source de tension ou de courant" #~ msgid "" #~ "the name of the output var may be a voltage or a current i.e. v(3) I" #~ "(vload) " #~ msgstr "" #~ "le nom de la variable de sortie est une tension ou un courant i.e. v(3) I" #~ "(load)" #~ msgid "the input source, can be a voltage or a current source" #~ msgstr "La source d'entrée, une source de courant ou de tension" #, fuzzy #~ msgid "For the current analysis" #~ msgstr "Analyse en transitoire" #, fuzzy #~ msgid "Commands or vector for the current analysis" #~ msgstr "dernière valeur de l'analyse ac" #~ msgid "See txt" #~ msgstr "Voir txt" #~ msgid "Edit library" #~ msgstr "Librairie" #, fuzzy #~ msgid "spice__bin" #~ msgstr "sortie spice" #~ msgid "Delete" #~ msgstr "Effacer" #~ msgid "spice error" #~ msgstr "Erreur spice" #~ msgid "Save" #~ msgstr "Sauver" #~ msgid "Results saved in result.txt" #~ msgstr "Résultats sauvés dans result.txt" #~ msgid "" #~ "New vectors\n" #~ "use the syntax : let yy=" #~ msgstr "" #~ "Nouveaux vecteurs\n" #~ "Utiliser la syntaxe : let yy=xxx pour definir yy" #~ msgid "Modify" #~ msgstr "Modifier" #~ msgid "Add" #~ msgstr "Ajouter" #~ msgid "gwave" #~ msgstr "gwave" #~ msgid "Clear" #~ msgstr "Effacer" #~ msgid "Save results" #~ msgstr "Sauver les résultats" #~ msgid "Schematic" #~ msgstr "Editeur de schéma" #~ msgid "library file name" #~ msgstr "Fichier :" #~ msgid "Nom error file" #~ msgstr "Pas de fichier erreur" easy_spice-0.6.8/po/ChangeLog0000644000175000001440000000000010673154312012746 00000000000000easy_spice-0.6.8/po/Makefile.in.in0000644000175000001440000001672610673154220013672 00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # # This file file be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # Please note that the actual code is *not* freely available. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ libdir = @libdir@ localedir = $(libdir)/locale gnulocaledir = $(datadir)/locale gettextsrcdir = $(datadir)/glib-2.0/gettext/po subdir = po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ CC = @CC@ GENCAT = @GENCAT@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ MSGMERGE = msgmerge DEFS = @DEFS@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ INCLUDES = -I.. -I$(top_srcdir)/intl COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) SOURCES = POFILES = @POFILES@ GMOFILES = @GMOFILES@ DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \ $(POFILES) $(GMOFILES) $(SOURCES) POTFILES = \ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ INSTOBJEXT = @INSTOBJEXT@ .SUFFIXES: .SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat .c.o: $(COMPILE) $< .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -c -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && $(GENCAT) $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \ --add-comments --keyword=_ --keyword=N_ \ --flag=g_strdup_printf:1:c-format \ --flag=g_string_printf:2:c-format \ --flag=g_string_append_printf:2:c-format \ --flag=g_error_new:3:c-format \ --flag=g_set_error:4:c-format \ --flag=g_markup_printf_escaped:1:c-format \ --flag=g_log:3:c-format \ --flag=g_print:1:c-format \ --flag=g_printerr:1:c-format \ --flag=g_printf:1:c-format \ --flag=g_fprintf:2:c-format \ --flag=g_sprintf:2:c-format \ --flag=g_snprintf:3:c-format \ --flag=g_scanner_error:2:c-format \ --flag=g_scanner_warn:2:c-format \ --files-from=$(srcdir)/POTFILES.in \ && test ! -f $(GETTEXT_PACKAGE).po \ || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \ && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot ) install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all @mkdir_p@ $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ case "$$cat" in \ *.gmo) destdir=$(gnulocaledir);; \ *) destdir=$(localedir);; \ esac; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \ @mkdir_p@ $$dir; \ if test -r $$cat; then \ $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ else \ $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ echo "installing $(srcdir)/$$cat as" \ "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ fi; \ if test -r $$cat.m; then \ $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ else \ if test -r $(srcdir)/$$cat.m ; then \ $(INSTALL_DATA) $(srcdir)/$$cat.m \ $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ echo "installing $(srcdir)/$$cat as" \ "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ else \ true; \ fi; \ fi; \ done if test "$(PACKAGE)" = "glib"; then \ @mkdir_p@ $(DESTDIR)$(gettextsrcdir); \ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ else \ : ; \ fi # Define this as empty until I found a useful application. installcheck: uninstall: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ done if test "$(PACKAGE)" = "glib"; then \ rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ fi check: all dvi info tags TAGS ID: mostlyclean: rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f $(GMOFILES) distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir) dist distdir: update-po $(DISTFILES) dists="$(DISTFILES)"; \ for file in $$dists; do \ ln $(srcdir)/$$file $(distdir) 2> /dev/null \ || cp -p $(srcdir)/$$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ cd $(srcdir); \ catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ echo "$$lang:"; \ if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$cat failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done # POTFILES is created from POTFILES.in by stripping comments, empty lines # and Intltool tags (enclosed in square brackets), and appending a full # relative path to them POTFILES: POTFILES.in ( if test 'x$(srcdir)' != 'x.'; then \ posrcprefix='$(top_srcdir)/'; \ else \ posrcprefix="../"; \ fi; \ rm -f $@-t $@ \ && (sed -e '/^#/d' \ -e "s/^\[.*\] +//" \ -e '/^[ ]*$$/d' \ -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \ | sed -e '$$s/\\$$//') > $@-t \ && chmod a-w $@-t \ && mv $@-t $@ ) Makefile: Makefile.in.in ../config.status POTFILES cd .. \ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: easy_spice-0.6.8/src/0000777000175000001440000000000010673154315011446 500000000000000easy_spice-0.6.8/src/interface.c0000644000175000001440000050252410671541702013474 00000000000000#ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include "easyspice.h" #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) #define DIALOG_BORDER_SPACING 5 #define DIALOG_V_SPACING 8 #define DIALOG_H_SPACING 10 #define DIALOG_INDENTATION 10 GtkWidget* create_toplevel_window (EasySpice *easyspice) { GtkWidget *window_prin; GtkWidget *vbox2; GtkWidget *menubar1; GtkWidget *fichier1; GtkWidget *menu_file; GtkAccelGroup *menu_file_accels; GtkWidget *menu_file_new; GtkWidget *menu_file_open; GtkWidget *menu_file_save; GtkWidget *menu_file_saveas; GtkWidget *sparateur2; GtkWidget *menu_file_quit; GtkWidget *options1; GtkWidget *menu_options; GtkAccelGroup *menu_options_accels; GtkWidget *menu_options_commands; GtkWidget *menu_options_library; GtkWidget *menu_options_gschem; GtkWidget *s_parateur3; GtkWidget *menu_options_save; GtkWidget *fen_tre1; GtkWidget *menu_windows; GtkAccelGroup *menu_windows_accels; GtkWidget *menu_windows_simulcommands; GtkWidget *menu_windows_plotcommands; GtkWidget *separateure; GtkWidget *menu_windows_spiceinteractive; GtkWidget *sparateur_t; GtkWidget *menu_windows_postproc; GtkWidget *menu_windows_plotresult; GtkWidget *help1; GtkWidget *help1_menu; GtkAccelGroup *help1_menu_accels; GtkWidget *menu_help_about; GtkWidget *menu_help_spiceman; GtkWidget *menu_help_spicehtml; GtkWidget *menu_help_spicehelp; GtkWidget *hbuttonbox9; GtkWidget *visu_schem; GtkWidget *gen_netlist; GtkWidget *visu_netlist; GtkWidget *alignment1; GtkWidget *notebook2; GtkWidget *vbox_op; GtkWidget *hbox42; GtkWidget *label14; GtkWidget *hseparator34; GtkWidget *op_listing; GtkWidget *op_param_view; GtkWidget *op_op_view_schem; GtkWidget *hseparator35; GtkWidget *op_ok; GtkWidget *hseparator84; GtkWidget *op_hbox_polarisation; GtkWidget *label154; GtkWidget *vseparator4; GtkWidget *label155; GtkWidget *op_node_combo; GtkWidget *op_node; GtkWidget *label156; GtkWidget *op_polarisation_value; GtkWidget *hseparator85; GtkWidget *op_hbox_device; GtkWidget *label157; GtkWidget *op_device_combo; GtkWidget *op_device; GtkWidget *label158; GtkWidget *op_item_combo; GtkWidget *op_item; GtkWidget *label159; GtkWidget *op_device_value; GtkWidget *label_op; GtkWidget *vbox_dc; GtkWidget *label18; GtkWidget *hseparator24; GtkWidget *hbox5; GtkWidget *vbox7; GtkWidget *hbox6; GtkWidget *label29; GtkWidget *hbox7; GtkWidget *toto1; GtkWidget *dc_source1_combo; GtkWidget *dc_source1; GtkWidget *hbox8; GtkWidget *dc_start1; GtkWidget *toto2; GtkWidget *hbox9; GtkWidget *toto3; GtkWidget *dc_stop1; GtkWidget *hbox10; GtkWidget *toto4; GtkWidget *dc_inc1; GtkWidget *vseparator1; GtkWidget *vbox8; GtkWidget *hbox11; GtkWidget *label30; GtkWidget *hbox12; GtkWidget *label25; GtkWidget *dc_source2_combo; GtkWidget *dc_source2; GtkWidget *hbox13; GtkWidget *label26; GtkWidget *dc_start2; GtkWidget *hbox14; GtkWidget *label27; GtkWidget *dc_stop2; GtkWidget *hbox15; GtkWidget *label28; GtkWidget *dc_inc2; GtkWidget *hseparator28; GtkWidget *dc_ok; GtkWidget *label_dc; GtkWidget *vbox_ac; GtkWidget *label31; GtkWidget *hseparator42; GtkWidget *hbox67; GtkWidget *label32; GSList *hbox67_group = NULL; GtkWidget *ac_dec; GtkWidget *ac_lin; GtkWidget *ac_oct; GtkWidget *hseparator44; GtkWidget *hbox68; GtkWidget *ac_label_step; GtkWidget *ac_nombre; GtkWidget *hbox69; GtkWidget *label34; GtkWidget *ac_fmin; GtkWidget *hbox70; GtkWidget *label35; GtkWidget *ac_fmax; GtkWidget *hseparator43; GtkWidget *ac_ok; GtkWidget *label_ac; GtkWidget *vbox_noise; GtkWidget *label132; GtkWidget *hseparator64; GtkWidget *hbox81; GtkWidget *label137; GtkWidget *noise_node_combo; GtkWidget *noise_node; GtkWidget *hbox82; GtkWidget *label138; GtkWidget *noise_source_combo; GtkWidget *noise_source; GtkWidget *hseparator67; GtkWidget *hbox77; GtkWidget *label133; GSList *hbox77_group = NULL; GtkWidget *noise_dec; GtkWidget *noise_lin; GtkWidget *noise_oct; GtkWidget *hseparator65; GtkWidget *hbox78; GtkWidget *noise_label_step; GtkWidget *noise_nombre; GtkWidget *hbox79; GtkWidget *label135; GtkWidget *noise_fmin; GtkWidget *hbox80; GtkWidget *label136; GtkWidget *noise_fmax; GtkWidget *hseparator66; GtkWidget *noise_ok; GtkWidget *label131; GtkWidget *vbox_tran; GtkWidget *label36; GtkWidget *hseparator30; GtkWidget *hbox71; GtkWidget *label37; GtkWidget *tran_tstep; GtkWidget *hbox72; GtkWidget *label38; GtkWidget *tran_tstop; GtkWidget *hbox73; GtkWidget *label39; GtkWidget *tran_tstart; GtkWidget *hbox74; GtkWidget *label116; GtkWidget *tran_tmax; GtkWidget *hseparator45; GtkWidget *tran_ok; GtkWidget *label_tran; GtkWidget *vbox25; GtkWidget *label89; GtkWidget *hseparator53; GtkWidget *hbox49; GtkWidget *label90; GtkWidget *tf_output_combo; GtkWidget *tf_output; GtkWidget *hbox50; GtkWidget *label91; GtkWidget *tf_source_combo; GtkWidget *tf_source; GtkWidget *hseparator3; GtkWidget *tf_ok; GtkWidget *result_tf; GtkWidget *vbox_param; GtkWidget *label129; GtkWidget *hseparator63; GtkWidget *param_enable; GtkWidget *hseparator62; GtkWidget *param_hbox_name; GtkWidget *label123; GtkWidget *param_name_combo; GtkWidget *param_name; GtkWidget *param_hbox_param; GtkWidget *label130; GtkWidget *param_param; GtkWidget *hseparator61; GtkWidget *param_hbox_val; GtkWidget *vbox37; GtkWidget *label124; GSList *vbox37_group = NULL; GtkWidget *param_lin; GtkWidget *param_dec; GtkWidget *param_list; GtkWidget *vseparator2; GtkWidget *vbox38; GtkWidget *param_hbox_start; GtkWidget *label125; GtkWidget *param_start; GtkWidget *param_hbox_stop; GtkWidget *label126; GtkWidget *param_stop; GtkWidget *param_hbox_step; GtkWidget *param_label_step; GtkWidget *param_step; GtkWidget *param_hbox_list; GtkWidget *label128; GtkWidget *param_values; GtkWidget *label_param; GtkWidget *plot_vbox; GtkWidget *label140; GtkWidget *hseparator79; GtkWidget *label150; GtkWidget *scrolledwindow15; GtkWidget *plot_pre_text; GtkWidget *hbox85; GtkWidget *hseparator69; GtkWidget *hbox83; GtkWidget *label142; GtkWidget *vbox43; GSList *x_axis_group = NULL; GtkWidget *plot_xdefault; GtkWidget *hbox93; GtkWidget *plot_xscale_value; GtkWidget *plot_x; GtkWidget *vbox42; GtkWidget *plot_xlog_scale; GtkWidget *plot_xlin_scale; GtkWidget *hseparator71; GtkWidget *hbox84; GtkWidget *label143; GtkWidget *plot_y; GtkWidget *plot_ylog_scale; GtkWidget *hseparator74; GtkWidget *hbox86; GtkWidget *plot_auto_update; GtkWidget *plot_reset; GtkWidget *hseparator70; GtkWidget *plot_ok; GtkWidget *label139; GtkWidget *notebook3; GtkWidget *scrolledwindow12; GtkWidget *text_log; GtkWidget *hbox97; GtkWidget *label163; GtkWidget *pixmap_log_ok; GtkWidget *pixmap_log_false; GtkWidget *scrolledwindow1; GtkWidget *text_spice_output; GtkWidget *hbox94; GtkWidget *label145; GtkWidget *viewerspiceoutput; GtkWidget *scrolledwindow13; GtkWidget *text_spice_error; GtkWidget *label146; GtkTooltips *tooltips; tooltips = gtk_tooltips_new (); window_prin = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (window_prin), "window_prin", window_prin); gtk_window_set_title (GTK_WINDOW (window_prin), "easy_spice"); gtk_window_set_policy (GTK_WINDOW (window_prin), FALSE, TRUE, TRUE); vbox2 = gtk_vbox_new (FALSE, DIALOG_V_SPACING); gtk_container_set_border_width(GTK_CONTAINER(vbox2), DIALOG_BORDER_SPACING); gtk_widget_ref (vbox2); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox2", vbox2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox2); gtk_container_add (GTK_CONTAINER (window_prin), vbox2); menubar1 = gtk_menu_bar_new (); gtk_widget_ref (menubar1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menubar1", menubar1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menubar1); gtk_box_pack_start (GTK_BOX (vbox2), menubar1, FALSE, FALSE, 0); fichier1 = gtk_menu_item_new_with_label (_("File")); gtk_widget_ref (fichier1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "fichier1", fichier1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fichier1); gtk_container_add (GTK_CONTAINER (menubar1), fichier1); menu_file = gtk_menu_new (); gtk_widget_ref (menu_file); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_file", menu_file, (GtkDestroyNotify) gtk_widget_unref); gtk_menu_item_set_submenu (GTK_MENU_ITEM (fichier1), menu_file); // menu_file_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_file)); menu_file_new = gtk_menu_item_new_with_label (_("New project")); gtk_widget_ref (menu_file_new); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_file_new", menu_file_new, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_file_new); gtk_container_add (GTK_CONTAINER (menu_file), menu_file_new); menu_file_open = gtk_menu_item_new_with_label (_("Open project")); gtk_widget_ref (menu_file_open); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_file_open", menu_file_open, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_file_open); gtk_container_add (GTK_CONTAINER (menu_file), menu_file_open); menu_file_save = gtk_menu_item_new_with_label (_("Save project")); gtk_widget_ref (menu_file_save); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_file_save", menu_file_save, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_file_save); gtk_container_add (GTK_CONTAINER (menu_file), menu_file_save); menu_file_saveas = gtk_menu_item_new_with_label (_("Save as...")); gtk_widget_ref (menu_file_saveas); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_file_saveas", menu_file_saveas, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_file_saveas); gtk_container_add (GTK_CONTAINER (menu_file), menu_file_saveas); sparateur2 = gtk_menu_item_new (); gtk_widget_ref (sparateur2); gtk_object_set_data_full (GTK_OBJECT (window_prin), "sparateur2", sparateur2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sparateur2); gtk_container_add (GTK_CONTAINER (menu_file), sparateur2); gtk_widget_set_sensitive (sparateur2, FALSE); menu_file_quit = gtk_menu_item_new_with_label (_("Quit")); gtk_widget_ref (menu_file_quit); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_file_quit", menu_file_quit, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_file_quit); gtk_container_add (GTK_CONTAINER (menu_file), menu_file_quit); options1 = gtk_menu_item_new_with_label (_("Options")); gtk_widget_ref (options1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "options1", options1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (options1); gtk_container_add (GTK_CONTAINER (menubar1), options1); menu_options = gtk_menu_new (); gtk_widget_ref (menu_options); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_options", menu_options, (GtkDestroyNotify) gtk_widget_unref); gtk_menu_item_set_submenu (GTK_MENU_ITEM (options1), menu_options); // menu_options_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_options)); menu_options_commands = gtk_menu_item_new_with_label (_("commands ...")); gtk_widget_ref (menu_options_commands); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_options_commands", menu_options_commands, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_options_commands); gtk_container_add (GTK_CONTAINER (menu_options), menu_options_commands); menu_options_library = gtk_menu_item_new_with_label (_("spice libraries ...")); gtk_widget_ref (menu_options_library); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_options_library", menu_options_library, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_options_library); gtk_container_add (GTK_CONTAINER (menu_options), menu_options_library); menu_options_gschem = gtk_menu_item_new_with_label (_("gEDA options ...")); gtk_widget_ref (menu_options_gschem); gtk_object_set_data_full (GTK_OBJECT (window_prin), "gschem1", menu_options_gschem, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_options_gschem); gtk_container_add (GTK_CONTAINER (menu_options), menu_options_gschem); s_parateur3 = gtk_menu_item_new (); gtk_widget_ref (s_parateur3); gtk_object_set_data_full (GTK_OBJECT (window_prin), "s_parateur3", s_parateur3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (s_parateur3); gtk_container_add (GTK_CONTAINER (menu_options), s_parateur3); gtk_widget_set_sensitive (s_parateur3, FALSE); menu_options_save = gtk_menu_item_new_with_label(_("Save options")); gtk_widget_ref(menu_options_save); gtk_object_set_data_full(GTK_OBJECT(window_prin), "menu_options_save", menu_options_save, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show(menu_options_save); gtk_container_add (GTK_CONTAINER (menu_options), menu_options_save); fen_tre1 = gtk_menu_item_new_with_label (_("Window")); gtk_widget_ref (fen_tre1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "fen_tre1", fen_tre1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fen_tre1); gtk_container_add (GTK_CONTAINER (menubar1), fen_tre1); menu_windows = gtk_menu_new (); gtk_widget_ref (menu_windows); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_windows", menu_windows, (GtkDestroyNotify) gtk_widget_unref); gtk_menu_item_set_submenu (GTK_MENU_ITEM (fen_tre1), menu_windows); // menu_windows_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (menu_windows)); menu_windows_simulcommands = gtk_menu_item_new_with_label (_("show simul commands")); gtk_widget_ref (menu_windows_simulcommands); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_windows_simulcommands", menu_windows_simulcommands, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_windows_simulcommands); gtk_container_add (GTK_CONTAINER (menu_windows), menu_windows_simulcommands); menu_windows_plotcommands = gtk_menu_item_new_with_label (_("show plot commands")); gtk_widget_ref (menu_windows_plotcommands); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_windows_plotcommands", menu_windows_plotcommands, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_windows_plotcommands); gtk_container_add (GTK_CONTAINER (menu_windows), menu_windows_plotcommands); separateure = gtk_menu_item_new (); gtk_widget_ref (separateure); gtk_object_set_data_full (GTK_OBJECT (window_prin), "separateure", separateure, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (separateure); gtk_container_add (GTK_CONTAINER (menu_windows), separateure); gtk_widget_set_sensitive (separateure, FALSE); menu_windows_spiceinteractive = gtk_menu_item_new_with_label (_("interactive spice")); gtk_widget_ref (menu_windows_spiceinteractive); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_windows_spiceinteractive", menu_windows_spiceinteractive, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_windows_spiceinteractive); gtk_container_add (GTK_CONTAINER (menu_windows), menu_windows_spiceinteractive); sparateur_t = gtk_menu_item_new (); gtk_widget_ref (sparateur_t); gtk_object_set_data_full (GTK_OBJECT (window_prin), "sparateur_t", sparateur_t, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (sparateur_t); gtk_container_add (GTK_CONTAINER (menu_windows), sparateur_t); gtk_widget_set_sensitive (sparateur_t, FALSE); menu_windows_postproc = gtk_menu_item_new_with_label (_("post processing")); gtk_widget_ref (menu_windows_postproc); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_windows_postproc", menu_windows_postproc, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_windows_postproc); gtk_container_add (GTK_CONTAINER (menu_windows), menu_windows_postproc); menu_windows_plotresult = gtk_menu_item_new_with_label (_("plot results")); gtk_widget_ref (menu_windows_plotresult); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_windows_plotresult", menu_windows_plotresult, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_windows_plotresult); gtk_container_add (GTK_CONTAINER (menu_windows), menu_windows_plotresult); help1 = gtk_menu_item_new_with_label (_("Help")); gtk_widget_ref (help1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "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 (window_prin), "help1_menu", help1_menu, (GtkDestroyNotify) gtk_widget_unref); gtk_menu_item_set_submenu (GTK_MENU_ITEM (help1), help1_menu); // help1_menu_accels = gtk_menu_ensure_uline_accel_group (GTK_MENU (help1_menu)); menu_help_about = gtk_menu_item_new_with_label (_("About")); gtk_widget_ref (menu_help_about); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_help_about", menu_help_about, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_help_about); gtk_container_add (GTK_CONTAINER (help1_menu), menu_help_about); menu_help_spiceman = gtk_menu_item_new_with_label (_("Page man spice")); gtk_widget_ref (menu_help_spiceman); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_help_spiceman", menu_help_spiceman, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_help_spiceman); gtk_container_add (GTK_CONTAINER (help1_menu), menu_help_spiceman); menu_help_spicehtml = gtk_menu_item_new_with_label (_("doc spice (html)")); gtk_widget_ref (menu_help_spicehtml); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_help_spicehtml", menu_help_spicehtml, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_help_spicehtml); gtk_container_add (GTK_CONTAINER (help1_menu), menu_help_spicehtml); menu_help_spicehelp = gtk_menu_item_new_with_label (_("doc spice (txt)")); gtk_widget_ref (menu_help_spicehelp); gtk_object_set_data_full (GTK_OBJECT (window_prin), "menu_help_spicehelp", menu_help_spicehelp, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (menu_help_spicehelp); gtk_container_add (GTK_CONTAINER (help1_menu), menu_help_spicehelp); hbuttonbox9 = gtk_hbutton_box_new (); gtk_widget_ref (hbuttonbox9); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbuttonbox9", hbuttonbox9, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbuttonbox9); gtk_box_pack_start (GTK_BOX (vbox2), hbuttonbox9, FALSE, FALSE, 0); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox9), GTK_BUTTONBOX_SPREAD); gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbuttonbox9), 0); gtk_button_box_set_child_size (GTK_BUTTON_BOX (hbuttonbox9), 0, 6); gtk_button_box_set_child_ipadding (GTK_BUTTON_BOX (hbuttonbox9), 0, 0); visu_schem = gtk_button_new_with_label (_("Edit the \nschematic")); gtk_widget_ref (visu_schem); gtk_object_set_data_full (GTK_OBJECT (window_prin), "visu_schem", visu_schem, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (visu_schem); gtk_container_add (GTK_CONTAINER (hbuttonbox9), visu_schem); GTK_WIDGET_SET_FLAGS (visu_schem, GTK_CAN_DEFAULT); gtk_tooltips_set_tip (tooltips, visu_schem, _("edit the schematic using gschem"), NULL); gen_netlist = gtk_button_new_with_label (_("Create the \nnetlist")); gtk_widget_ref (gen_netlist); gtk_object_set_data_full (GTK_OBJECT (window_prin), "gen_netlist", gen_netlist, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (gen_netlist); gtk_container_add (GTK_CONTAINER (hbuttonbox9), gen_netlist); GTK_WIDGET_SET_FLAGS (gen_netlist, GTK_CAN_DEFAULT); gtk_tooltips_set_tip (tooltips, gen_netlist, _("create the netlist from the schematic"), NULL); visu_netlist = gtk_button_new_with_label (_("Show the \nnetlist")); gtk_widget_ref (visu_netlist); gtk_object_set_data_full (GTK_OBJECT (window_prin), "visu_netlist", visu_netlist, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (visu_netlist); gtk_container_add (GTK_CONTAINER (hbuttonbox9), visu_netlist); GTK_WIDGET_SET_FLAGS (visu_netlist, GTK_CAN_DEFAULT); alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_ref (alignment1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "alignment1", alignment1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (alignment1); gtk_box_pack_start (GTK_BOX (vbox2), alignment1, FALSE, FALSE, 0); notebook2 = gtk_notebook_new (); gtk_widget_ref (notebook2); gtk_object_set_data_full (GTK_OBJECT (window_prin), "notebook2", notebook2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (notebook2); gtk_container_add (GTK_CONTAINER (alignment1), notebook2); gtk_notebook_set_show_border (GTK_NOTEBOOK (notebook2), FALSE); gtk_notebook_set_tab_hborder (GTK_NOTEBOOK (notebook2), 7); gtk_notebook_set_tab_vborder (GTK_NOTEBOOK (notebook2), 0); vbox_op = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox_op); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox_op", vbox_op, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox_op); gtk_container_add (GTK_CONTAINER (notebook2), vbox_op); hbox42 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox42); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox42", hbox42, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox42); gtk_box_pack_start (GTK_BOX (vbox_op), hbox42, FALSE, FALSE, 0); label14 = gtk_label_new (_("Operating point calculation")); gtk_widget_ref (label14); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label14", label14, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label14); gtk_box_pack_start (GTK_BOX (hbox42), label14, TRUE, FALSE, 0); gtk_widget_set_usize (label14, -2, 44); hseparator34 = gtk_hseparator_new (); gtk_widget_ref (hseparator34); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator34", hseparator34, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator34); gtk_box_pack_start (GTK_BOX (vbox_op), hseparator34, FALSE, TRUE, 1); op_listing = gtk_check_button_new_with_label (_("See the circuit listing")); gtk_widget_ref (op_listing); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_listing", op_listing, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_listing); gtk_box_pack_start (GTK_BOX (vbox_op), op_listing, FALSE, FALSE, 0); op_param_view = gtk_check_button_new_with_label (_("See the model used")); gtk_widget_ref (op_param_view); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_param_view", op_param_view, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_param_view); gtk_box_pack_start (GTK_BOX (vbox_op), op_param_view, FALSE, FALSE, 0); op_op_view_schem = gtk_check_button_new_with_label (_("show the results on the schematic")); gtk_widget_ref (op_op_view_schem); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_op_view_schem", op_op_view_schem, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_op_view_schem); gtk_box_pack_start (GTK_BOX (vbox_op), op_op_view_schem, FALSE, FALSE, 0); hseparator35 = gtk_hseparator_new (); gtk_widget_ref (hseparator35); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator35", hseparator35, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator35); gtk_box_pack_start (GTK_BOX (vbox_op), hseparator35, FALSE, TRUE, 3); op_ok = gtk_button_new_with_label (_("Simulate OP")); gtk_widget_ref (op_ok); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_ok", op_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_ok); gtk_box_pack_start (GTK_BOX (vbox_op), op_ok, TRUE, FALSE, 0); gtk_tooltips_set_tip (tooltips, op_ok, _("start the op simulation. See the results on the spice output window"), NULL); hseparator84 = gtk_hseparator_new (); gtk_widget_ref (hseparator84); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator84", hseparator84, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator84); gtk_box_pack_start (GTK_BOX (vbox_op), hseparator84, FALSE, TRUE, 3); op_hbox_polarisation = gtk_hbox_new (FALSE, 0); gtk_widget_ref (op_hbox_polarisation); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_hbox_polarisation", op_hbox_polarisation, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_hbox_polarisation); gtk_box_pack_start (GTK_BOX (vbox_op), op_hbox_polarisation, FALSE, TRUE, 0); gtk_widget_set_sensitive (op_hbox_polarisation, FALSE); label154 = gtk_label_new (_("Polarisation")); gtk_widget_ref (label154); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label154", label154, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label154); gtk_box_pack_start (GTK_BOX (op_hbox_polarisation), label154, FALSE, FALSE, 2); gtk_label_set_justify (GTK_LABEL (label154), GTK_JUSTIFY_LEFT); vseparator4 = gtk_vseparator_new (); gtk_widget_ref (vseparator4); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vseparator4", vseparator4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vseparator4); gtk_box_pack_start (GTK_BOX (op_hbox_polarisation), vseparator4, TRUE, TRUE, 0); label155 = gtk_label_new (_("Node\nor current")); gtk_widget_ref (label155); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label155", label155, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label155); gtk_box_pack_start (GTK_BOX (op_hbox_polarisation), label155, FALSE, FALSE, 2); gtk_label_set_justify (GTK_LABEL (label155), GTK_JUSTIFY_RIGHT); op_node_combo = gtk_combo_new (); gtk_widget_ref (op_node_combo); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_node_combo", op_node_combo, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_node_combo); gtk_box_pack_start (GTK_BOX (op_hbox_polarisation), op_node_combo, FALSE, TRUE, 6); op_node = GTK_COMBO (op_node_combo)->entry; gtk_widget_ref (op_node); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_node", op_node, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_node); gtk_widget_set_usize (op_node, 80, -2); label156 = gtk_label_new (_("Value")); gtk_widget_ref (label156); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label156", label156, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label156); gtk_box_pack_start (GTK_BOX (op_hbox_polarisation), label156, FALSE, FALSE, 0); op_polarisation_value = gtk_entry_new (); gtk_widget_ref (op_polarisation_value); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_polarisation_value", op_polarisation_value, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_polarisation_value); gtk_box_pack_start (GTK_BOX (op_hbox_polarisation), op_polarisation_value, FALSE, TRUE, 2); gtk_widget_set_usize (op_polarisation_value, 80, -2); gtk_entry_set_editable (GTK_ENTRY (op_polarisation_value), FALSE); hseparator85 = gtk_hseparator_new (); gtk_widget_ref (hseparator85); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator85", hseparator85, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator85); gtk_box_pack_start (GTK_BOX (vbox_op), hseparator85, FALSE, TRUE, 2); op_hbox_device = gtk_hbox_new (FALSE, 0); gtk_widget_ref (op_hbox_device); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_hbox_device", op_hbox_device, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_hbox_device); gtk_box_pack_start (GTK_BOX (vbox_op), op_hbox_device, TRUE, TRUE, 0); gtk_widget_set_sensitive (op_hbox_device, FALSE); label157 = gtk_label_new (_("Device:")); gtk_widget_ref (label157); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label157", label157, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label157); gtk_box_pack_start (GTK_BOX (op_hbox_device), label157, FALSE, FALSE, 2); op_device_combo = gtk_combo_new (); gtk_widget_ref (op_device_combo); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_device_combo", op_device_combo, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_device_combo); gtk_box_pack_start (GTK_BOX (op_hbox_device), op_device_combo, FALSE, TRUE, 2); op_device = GTK_COMBO (op_device_combo)->entry; gtk_widget_ref (op_device); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_device", op_device, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_device); gtk_widget_set_usize (op_device, 80, -2); label158 = gtk_label_new (_("Item")); gtk_widget_ref (label158); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label158", label158, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label158); gtk_box_pack_start (GTK_BOX (op_hbox_device), label158, FALSE, FALSE, 2); op_item_combo = gtk_combo_new (); gtk_widget_ref (op_item_combo); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_item_combo", op_item_combo, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_item_combo); gtk_box_pack_start (GTK_BOX (op_hbox_device), op_item_combo, FALSE, TRUE, 2); op_item = GTK_COMBO (op_item_combo)->entry; gtk_widget_ref (op_item); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_item", op_item, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_item); gtk_widget_set_usize (op_item, 80, -2); label159 = gtk_label_new (_("Value")); gtk_widget_ref (label159); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label159", label159, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label159); gtk_box_pack_start (GTK_BOX (op_hbox_device), label159, FALSE, FALSE, 2); op_device_value = gtk_entry_new (); gtk_widget_ref (op_device_value); gtk_object_set_data_full (GTK_OBJECT (window_prin), "op_device_value", op_device_value, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (op_device_value); gtk_box_pack_start (GTK_BOX (op_hbox_device), op_device_value, FALSE, TRUE, 2); gtk_widget_set_usize (op_device_value, 80, -2); label_op = gtk_label_new (_("op")); gtk_widget_ref (label_op); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label_op", label_op, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label_op); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 0), label_op); vbox_dc = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox_dc); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox_dc", vbox_dc, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox_dc); gtk_container_add (GTK_CONTAINER (notebook2), vbox_dc); label18 = gtk_label_new (_("dc sweep")); gtk_widget_ref (label18); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label18", label18, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label18); gtk_box_pack_start (GTK_BOX (vbox_dc), label18, TRUE, FALSE, 0); hseparator24 = gtk_hseparator_new (); gtk_widget_ref (hseparator24); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator24", hseparator24, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator24); gtk_box_pack_start (GTK_BOX (vbox_dc), hseparator24, FALSE, TRUE, 2); hbox5 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox5); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox5", hbox5, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox_dc), hbox5, FALSE, TRUE, 0); vbox7 = gtk_vbox_new (TRUE, 0); gtk_widget_ref (vbox7); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox7", vbox7, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox7); gtk_box_pack_start (GTK_BOX (hbox5), vbox7, TRUE, TRUE, 0); hbox6 = gtk_hbox_new (TRUE, 0); gtk_widget_ref (hbox6); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox6", hbox6, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox6); gtk_box_pack_start (GTK_BOX (vbox7), hbox6, FALSE, FALSE, 0); label29 = gtk_label_new (_("First var")); gtk_widget_ref (label29); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label29", label29, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label29); gtk_box_pack_start (GTK_BOX (hbox6), label29, TRUE, FALSE, 0); hbox7 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox7); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox7", hbox7, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox7); gtk_box_pack_start (GTK_BOX (vbox7), hbox7, FALSE, TRUE, 0); toto1 = gtk_label_new (_("Source : ")); gtk_widget_ref (toto1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "toto1", toto1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (toto1); gtk_box_pack_start (GTK_BOX (hbox7), toto1, FALSE, FALSE, 0); gtk_widget_set_usize (toto1, 76, -2); gtk_label_set_justify (GTK_LABEL (toto1), GTK_JUSTIFY_LEFT); dc_source1_combo = gtk_combo_new (); gtk_widget_ref (dc_source1_combo); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_source1_combo", dc_source1_combo, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_source1_combo); gtk_box_pack_end (GTK_BOX (hbox7), dc_source1_combo, FALSE, TRUE, 2); dc_source1 = GTK_COMBO (dc_source1_combo)->entry; gtk_widget_ref (dc_source1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_source1", dc_source1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_source1); gtk_widget_set_usize (dc_source1, 80, -2); hbox8 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox8); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox8", hbox8, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox8); gtk_box_pack_start (GTK_BOX (vbox7), hbox8, FALSE, TRUE, 0); dc_start1 = gtk_entry_new (); gtk_widget_ref (dc_start1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_start1", dc_start1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_start1); gtk_box_pack_end (GTK_BOX (hbox8), dc_start1, FALSE, TRUE, 2); gtk_widget_set_usize (dc_start1, 80, -2); gtk_tooltips_set_tip (tooltips, dc_start1, _("the first value of the sweep"), NULL); toto2 = gtk_label_new (_("Start : ")); gtk_widget_ref (toto2); gtk_object_set_data_full (GTK_OBJECT (window_prin), "toto2", toto2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (toto2); gtk_box_pack_start (GTK_BOX (hbox8), toto2, FALSE, FALSE, 0); gtk_widget_set_usize (toto2, 76, -2); gtk_label_set_justify (GTK_LABEL (toto2), GTK_JUSTIFY_LEFT); hbox9 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox9); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox9", hbox9, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox9); gtk_box_pack_start (GTK_BOX (vbox7), hbox9, FALSE, TRUE, 0); toto3 = gtk_label_new (_("Stop : ")); gtk_widget_ref (toto3); gtk_object_set_data_full (GTK_OBJECT (window_prin), "toto3", toto3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (toto3); gtk_box_pack_start (GTK_BOX (hbox9), toto3, FALSE, FALSE, 0); gtk_widget_set_usize (toto3, 76, -2); gtk_label_set_justify (GTK_LABEL (toto3), GTK_JUSTIFY_RIGHT); dc_stop1 = gtk_entry_new (); gtk_widget_ref (dc_stop1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_stop1", dc_stop1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_stop1); gtk_box_pack_end (GTK_BOX (hbox9), dc_stop1, FALSE, TRUE, 2); gtk_widget_set_usize (dc_stop1, 80, -2); gtk_tooltips_set_tip (tooltips, dc_stop1, _("the last value of the sweep"), NULL); hbox10 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox10); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox10", hbox10, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox10); gtk_box_pack_start (GTK_BOX (vbox7), hbox10, FALSE, TRUE, 0); toto4 = gtk_label_new (_("Inc : ")); gtk_widget_ref (toto4); gtk_object_set_data_full (GTK_OBJECT (window_prin), "toto4", toto4, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (toto4); gtk_box_pack_start (GTK_BOX (hbox10), toto4, FALSE, FALSE, 0); gtk_widget_set_usize (toto4, 76, -2); gtk_label_set_justify (GTK_LABEL (toto4), GTK_JUSTIFY_RIGHT); dc_inc1 = gtk_entry_new (); gtk_widget_ref (dc_inc1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_inc1", dc_inc1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_inc1); gtk_box_pack_end (GTK_BOX (hbox10), dc_inc1, FALSE, TRUE, 2); gtk_widget_set_usize (dc_inc1, 80, -2); gtk_tooltips_set_tip (tooltips, dc_inc1, _("the increment of the sweep"), NULL); vseparator1 = gtk_vseparator_new (); gtk_widget_ref (vseparator1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vseparator1", vseparator1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vseparator1); gtk_box_pack_start (GTK_BOX (hbox5), vseparator1, FALSE, FALSE, 6); vbox8 = gtk_vbox_new (TRUE, 0); gtk_widget_ref (vbox8); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox8", vbox8, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox8); gtk_box_pack_start (GTK_BOX (hbox5), vbox8, TRUE, TRUE, 0); hbox11 = gtk_hbox_new (TRUE, 0); gtk_widget_ref (hbox11); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox11", hbox11, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox11); gtk_box_pack_start (GTK_BOX (vbox8), hbox11, FALSE, TRUE, 0); label30 = gtk_label_new (_("Second var(Optional)")); gtk_widget_ref (label30); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label30", label30, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label30); gtk_box_pack_start (GTK_BOX (hbox11), label30, FALSE, FALSE, 0); hbox12 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox12); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox12", hbox12, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox12); gtk_box_pack_start (GTK_BOX (vbox8), hbox12, FALSE, TRUE, 2); label25 = gtk_label_new (_("Source : ")); gtk_widget_ref (label25); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label25", label25, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label25); gtk_box_pack_start (GTK_BOX (hbox12), label25, FALSE, FALSE, 0); gtk_widget_set_usize (label25, 76, -2); dc_source2_combo = gtk_combo_new (); gtk_widget_ref (dc_source2_combo); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_source2_combo", dc_source2_combo, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_source2_combo); gtk_box_pack_end (GTK_BOX (hbox12), dc_source2_combo, FALSE, TRUE, 2); dc_source2 = GTK_COMBO (dc_source2_combo)->entry; gtk_widget_ref (dc_source2); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_source2", dc_source2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_source2); gtk_widget_set_usize (dc_source2, 80, -2); hbox13 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox13); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox13", hbox13, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox13); gtk_box_pack_start (GTK_BOX (vbox8), hbox13, FALSE, TRUE, 2); label26 = gtk_label_new (_("Start : ")); gtk_widget_ref (label26); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label26", label26, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label26); gtk_box_pack_start (GTK_BOX (hbox13), label26, FALSE, FALSE, 0); gtk_widget_set_usize (label26, 76, -2); dc_start2 = gtk_entry_new (); gtk_widget_ref (dc_start2); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_start2", dc_start2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_start2); gtk_box_pack_end (GTK_BOX (hbox13), dc_start2, FALSE, TRUE, 2); gtk_widget_set_usize (dc_start2, 80, -2); gtk_tooltips_set_tip (tooltips, dc_start2, _("the first value of the sweep"), NULL); hbox14 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox14); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox14", hbox14, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox14); gtk_box_pack_start (GTK_BOX (vbox8), hbox14, FALSE, TRUE, 0); label27 = gtk_label_new (_("Stop : ")); gtk_widget_ref (label27); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label27", label27, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label27); gtk_box_pack_start (GTK_BOX (hbox14), label27, FALSE, FALSE, 0); gtk_widget_set_usize (label27, 76, -2); dc_stop2 = gtk_entry_new (); gtk_widget_ref (dc_stop2); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_stop2", dc_stop2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_stop2); gtk_box_pack_end (GTK_BOX (hbox14), dc_stop2, FALSE, TRUE, 2); gtk_widget_set_usize (dc_stop2, 80, -2); gtk_tooltips_set_tip (tooltips, dc_stop2, _("the last value of the sweep"), NULL); hbox15 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox15); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox15", hbox15, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox15); gtk_box_pack_start (GTK_BOX (vbox8), hbox15, FALSE, TRUE, 0); label28 = gtk_label_new (_("Inc ")); gtk_widget_ref (label28); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label28", label28, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label28); gtk_box_pack_start (GTK_BOX (hbox15), label28, FALSE, FALSE, 0); gtk_widget_set_usize (label28, 76, -2); dc_inc2 = gtk_entry_new (); gtk_widget_ref (dc_inc2); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_inc2", dc_inc2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_inc2); gtk_box_pack_end (GTK_BOX (hbox15), dc_inc2, FALSE, TRUE, 2); gtk_widget_set_usize (dc_inc2, 80, -2); gtk_tooltips_set_tip (tooltips, dc_inc2, _("the last value of the sweep"), NULL); hseparator28 = gtk_hseparator_new (); gtk_widget_ref (hseparator28); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator28", hseparator28, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator28); gtk_box_pack_start (GTK_BOX (vbox_dc), hseparator28, FALSE, TRUE, 2); dc_ok = gtk_button_new_with_label (_("Simulate DC")); gtk_widget_ref (dc_ok); gtk_object_set_data_full (GTK_OBJECT (window_prin), "dc_ok", dc_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (dc_ok); gtk_box_pack_start (GTK_BOX (vbox_dc), dc_ok, TRUE, FALSE, 0); label_dc = gtk_label_new (_("dc")); gtk_widget_ref (label_dc); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label_dc", label_dc, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label_dc); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 1), label_dc); vbox_ac = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox_ac); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox_ac", vbox_ac, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox_ac); gtk_container_add (GTK_CONTAINER (notebook2), vbox_ac); label31 = gtk_label_new (_("Small signal analysis")); gtk_widget_ref (label31); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label31", label31, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label31); gtk_box_pack_start (GTK_BOX (vbox_ac), label31, TRUE, FALSE, 0); hseparator42 = gtk_hseparator_new (); gtk_widget_ref (hseparator42); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator42", hseparator42, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator42); gtk_box_pack_start (GTK_BOX (vbox_ac), hseparator42, FALSE, TRUE, 2); hbox67 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox67); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox67", hbox67, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox67); gtk_box_pack_start (GTK_BOX (vbox_ac), hbox67, FALSE, TRUE, 0); label32 = gtk_label_new (_("Type of analysis")); gtk_widget_ref (label32); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label32", label32, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label32); gtk_box_pack_start (GTK_BOX (hbox67), label32, FALSE, FALSE, 5); ac_dec = gtk_radio_button_new_with_label (hbox67_group, _("DEC")); hbox67_group = gtk_radio_button_group (GTK_RADIO_BUTTON (ac_dec)); gtk_widget_ref (ac_dec); gtk_object_set_data_full (GTK_OBJECT (window_prin), "ac_dec", ac_dec, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (ac_dec); gtk_box_pack_start (GTK_BOX (hbox67), ac_dec, TRUE, FALSE, 0); ac_lin = gtk_radio_button_new_with_label (hbox67_group, _("LIN")); hbox67_group = gtk_radio_button_group (GTK_RADIO_BUTTON (ac_lin)); gtk_widget_ref (ac_lin); gtk_object_set_data_full (GTK_OBJECT (window_prin), "ac_lin", ac_lin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (ac_lin); gtk_box_pack_start (GTK_BOX (hbox67), ac_lin, TRUE, FALSE, 0); ac_oct = gtk_radio_button_new_with_label (hbox67_group, _("OCT")); hbox67_group = gtk_radio_button_group (GTK_RADIO_BUTTON (ac_oct)); gtk_widget_ref (ac_oct); gtk_object_set_data_full (GTK_OBJECT (window_prin), "ac_oct", ac_oct, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (ac_oct); gtk_box_pack_start (GTK_BOX (hbox67), ac_oct, TRUE, FALSE, 0); hseparator44 = gtk_hseparator_new (); gtk_widget_ref (hseparator44); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator44", hseparator44, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator44); gtk_box_pack_start (GTK_BOX (vbox_ac), hseparator44, FALSE, TRUE, 2); hbox68 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox68); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox68", hbox68, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox68); gtk_box_pack_start (GTK_BOX (vbox_ac), hbox68, FALSE, TRUE, 2); ac_label_step = gtk_label_new (_("Pts/decade")); gtk_widget_ref (ac_label_step); gtk_object_set_data_full (GTK_OBJECT (window_prin), "ac_label_step", ac_label_step, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (ac_label_step); gtk_box_pack_start (GTK_BOX (hbox68), ac_label_step, FALSE, FALSE, 5); ac_nombre = gtk_entry_new_with_max_length (25); gtk_widget_ref (ac_nombre); gtk_object_set_data_full (GTK_OBJECT (window_prin), "ac_nombre", ac_nombre, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (ac_nombre); gtk_box_pack_end (GTK_BOX (hbox68), ac_nombre, FALSE, TRUE, 2); gtk_tooltips_set_tip (tooltips, ac_nombre, _("Number of points per decade(DEC) or per octave(OCT) or between fmin and fmax"), NULL); hbox69 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox69); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox69", hbox69, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox69); gtk_box_pack_start (GTK_BOX (vbox_ac), hbox69, FALSE, TRUE, 2); label34 = gtk_label_new (_("fmin")); gtk_widget_ref (label34); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label34", label34, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label34); gtk_box_pack_start (GTK_BOX (hbox69), label34, FALSE, FALSE, 5); ac_fmin = gtk_entry_new (); gtk_widget_ref (ac_fmin); gtk_object_set_data_full (GTK_OBJECT (window_prin), "ac_fmin", ac_fmin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (ac_fmin); gtk_box_pack_end (GTK_BOX (hbox69), ac_fmin, FALSE, TRUE, 2); gtk_tooltips_set_tip (tooltips, ac_fmin, _("first value for the ac analysis"), NULL); hbox70 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox70); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox70", hbox70, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox70); gtk_box_pack_start (GTK_BOX (vbox_ac), hbox70, FALSE, TRUE, 2); label35 = gtk_label_new (_("fmax")); gtk_widget_ref (label35); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label35", label35, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label35); gtk_box_pack_start (GTK_BOX (hbox70), label35, FALSE, FALSE, 5); ac_fmax = gtk_entry_new (); gtk_widget_ref (ac_fmax); gtk_object_set_data_full (GTK_OBJECT (window_prin), "ac_fmax", ac_fmax, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (ac_fmax); gtk_box_pack_end (GTK_BOX (hbox70), ac_fmax, FALSE, TRUE, 3); gtk_tooltips_set_tip (tooltips, ac_fmax, _("last value for the ac analysis"), NULL); hseparator43 = gtk_hseparator_new (); gtk_widget_ref (hseparator43); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator43", hseparator43, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator43); gtk_box_pack_start (GTK_BOX (vbox_ac), hseparator43, FALSE, TRUE, 2); ac_ok = gtk_button_new_with_label (_("Simulate AC")); gtk_widget_ref (ac_ok); gtk_object_set_data_full (GTK_OBJECT (window_prin), "ac_ok", ac_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (ac_ok); gtk_box_pack_start (GTK_BOX (vbox_ac), ac_ok, TRUE, FALSE, 2); gtk_tooltips_set_tip (tooltips, ac_ok, _("start the ac analysis"), NULL); label_ac = gtk_label_new (_("ac")); gtk_widget_ref (label_ac); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label_ac", label_ac, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label_ac); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 2), label_ac); vbox_noise = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox_noise); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox_noise", vbox_noise, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox_noise); gtk_container_add (GTK_CONTAINER (notebook2), vbox_noise); label132 = gtk_label_new (_("Noise analysis")); gtk_widget_ref (label132); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label132", label132, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label132); gtk_box_pack_start (GTK_BOX (vbox_noise), label132, FALSE, FALSE, 0); hseparator64 = gtk_hseparator_new (); gtk_widget_ref (hseparator64); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator64", hseparator64, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator64); gtk_box_pack_start (GTK_BOX (vbox_noise), hseparator64, FALSE, TRUE, 2); hbox81 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox81); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox81", hbox81, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox81); gtk_box_pack_start (GTK_BOX (vbox_noise), hbox81, FALSE, TRUE, 2); label137 = gtk_label_new (_("Node")); gtk_widget_ref (label137); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label137", label137, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label137); gtk_box_pack_start (GTK_BOX (hbox81), label137, FALSE, FALSE, 2); noise_node_combo = gtk_combo_new (); gtk_widget_ref (noise_node_combo); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_node_combo", noise_node_combo, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_node_combo); gtk_box_pack_end (GTK_BOX (hbox81), noise_node_combo, FALSE, TRUE, 2); noise_node = GTK_COMBO (noise_node_combo)->entry; gtk_widget_ref (noise_node); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_node", noise_node, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_node); gtk_widget_set_usize (noise_node, 80, -2); hbox82 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox82); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox82", hbox82, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox82); gtk_box_pack_start (GTK_BOX (vbox_noise), hbox82, FALSE, TRUE, 2); label138 = gtk_label_new (_("Source")); gtk_widget_ref (label138); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label138", label138, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label138); gtk_box_pack_start (GTK_BOX (hbox82), label138, FALSE, FALSE, 2); noise_source_combo = gtk_combo_new (); gtk_widget_ref (noise_source_combo); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_source_combo", noise_source_combo, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_source_combo); gtk_box_pack_end (GTK_BOX (hbox82), noise_source_combo, FALSE, TRUE, 2); noise_source = GTK_COMBO (noise_source_combo)->entry; gtk_widget_ref (noise_source); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_source", noise_source, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_source); gtk_widget_set_usize (noise_source, 80, -2); hseparator67 = gtk_hseparator_new (); gtk_widget_ref (hseparator67); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator67", hseparator67, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator67); gtk_box_pack_start (GTK_BOX (vbox_noise), hseparator67, FALSE, TRUE, 2); hbox77 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox77); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox77", hbox77, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox77); gtk_box_pack_start (GTK_BOX (vbox_noise), hbox77, FALSE, TRUE, 0); label133 = gtk_label_new (_("Type of analysis")); gtk_widget_ref (label133); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label133", label133, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label133); gtk_box_pack_start (GTK_BOX (hbox77), label133, FALSE, FALSE, 5); noise_dec = gtk_radio_button_new_with_label (hbox77_group, _("DEC")); hbox77_group = gtk_radio_button_group (GTK_RADIO_BUTTON (noise_dec)); gtk_widget_ref (noise_dec); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_dec", noise_dec, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_dec); gtk_box_pack_start (GTK_BOX (hbox77), noise_dec, TRUE, FALSE, 0); noise_lin = gtk_radio_button_new_with_label (hbox77_group, _("LIN")); hbox77_group = gtk_radio_button_group (GTK_RADIO_BUTTON (noise_lin)); gtk_widget_ref (noise_lin); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_lin", noise_lin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_lin); gtk_box_pack_start (GTK_BOX (hbox77), noise_lin, TRUE, FALSE, 0); noise_oct = gtk_radio_button_new_with_label (hbox77_group, _("OCT")); hbox77_group = gtk_radio_button_group (GTK_RADIO_BUTTON (noise_oct)); gtk_widget_ref (noise_oct); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_oct", noise_oct, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_oct); gtk_box_pack_start (GTK_BOX (hbox77), noise_oct, TRUE, FALSE, 0); hseparator65 = gtk_hseparator_new (); gtk_widget_ref (hseparator65); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator65", hseparator65, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator65); gtk_box_pack_start (GTK_BOX (vbox_noise), hseparator65, FALSE, TRUE, 2); hbox78 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox78); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox78", hbox78, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox78); gtk_box_pack_start (GTK_BOX (vbox_noise), hbox78, FALSE, TRUE, 2); noise_label_step = gtk_label_new (_("Pts/Decade")); gtk_widget_ref (noise_label_step); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_label_step", noise_label_step, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_label_step); gtk_box_pack_start (GTK_BOX (hbox78), noise_label_step, FALSE, FALSE, 5); noise_nombre = gtk_entry_new_with_max_length (25); gtk_widget_ref (noise_nombre); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_nombre", noise_nombre, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_nombre); gtk_box_pack_end (GTK_BOX (hbox78), noise_nombre, FALSE, TRUE, 3); gtk_widget_set_usize (noise_nombre, 80, -2); gtk_tooltips_set_tip (tooltips, noise_nombre, _("Number of points per decade(DEC) or per octave(OCT) or between fmin and fmax"), NULL); hbox79 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox79); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox79", hbox79, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox79); gtk_box_pack_start (GTK_BOX (vbox_noise), hbox79, FALSE, TRUE, 2); label135 = gtk_label_new (_("fmin")); gtk_widget_ref (label135); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label135", label135, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label135); gtk_box_pack_start (GTK_BOX (hbox79), label135, FALSE, FALSE, 5); noise_fmin = gtk_entry_new (); gtk_widget_ref (noise_fmin); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_fmin", noise_fmin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_fmin); gtk_box_pack_end (GTK_BOX (hbox79), noise_fmin, FALSE, TRUE, 3); gtk_widget_set_usize (noise_fmin, 80, -2); gtk_tooltips_set_tip (tooltips, noise_fmin, _("first value for the ac analysis"), NULL); hbox80 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox80); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox80", hbox80, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox80); gtk_box_pack_start (GTK_BOX (vbox_noise), hbox80, FALSE, TRUE, 2); label136 = gtk_label_new (_("fmax")); gtk_widget_ref (label136); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label136", label136, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label136); gtk_box_pack_start (GTK_BOX (hbox80), label136, FALSE, FALSE, 5); noise_fmax = gtk_entry_new (); gtk_widget_ref (noise_fmax); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_fmax", noise_fmax, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_fmax); gtk_box_pack_end (GTK_BOX (hbox80), noise_fmax, FALSE, TRUE, 3); gtk_widget_set_usize (noise_fmax, 80, -2); gtk_tooltips_set_tip (tooltips, noise_fmax, _("last value for the ac analysis"), NULL); hseparator66 = gtk_hseparator_new (); gtk_widget_ref (hseparator66); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator66", hseparator66, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator66); gtk_box_pack_start (GTK_BOX (vbox_noise), hseparator66, FALSE, TRUE, 2); noise_ok = gtk_button_new_with_label (_("Simulate Noise")); gtk_widget_ref (noise_ok); gtk_object_set_data_full (GTK_OBJECT (window_prin), "noise_ok", noise_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (noise_ok); gtk_box_pack_start (GTK_BOX (vbox_noise), noise_ok, FALSE, FALSE, 2); gtk_tooltips_set_tip (tooltips, noise_ok, _("start the ac analysis"), NULL); label131 = gtk_label_new (_("noise")); gtk_widget_ref (label131); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label131", label131, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label131); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 3), label131); vbox_tran = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox_tran); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox_tran", vbox_tran, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox_tran); gtk_container_add (GTK_CONTAINER (notebook2), vbox_tran); label36 = gtk_label_new (_("Transient analysis")); gtk_widget_ref (label36); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label36", label36, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label36); gtk_box_pack_start (GTK_BOX (vbox_tran), label36, TRUE, FALSE, 2); hseparator30 = gtk_hseparator_new (); gtk_widget_ref (hseparator30); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator30", hseparator30, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator30); gtk_box_pack_start (GTK_BOX (vbox_tran), hseparator30, FALSE, TRUE, 2); hbox71 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox71); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox71", hbox71, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox71); gtk_box_pack_start (GTK_BOX (vbox_tran), hbox71, FALSE, TRUE, 2); label37 = gtk_label_new (_("tstep")); gtk_widget_ref (label37); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label37", label37, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label37); gtk_box_pack_start (GTK_BOX (hbox71), label37, FALSE, FALSE, 4); tran_tstep = gtk_entry_new (); gtk_widget_ref (tran_tstep); gtk_object_set_data_full (GTK_OBJECT (window_prin), "tran_tstep", tran_tstep, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tran_tstep); gtk_box_pack_end (GTK_BOX (hbox71), tran_tstep, FALSE, TRUE, 2); gtk_tooltips_set_tip (tooltips, tran_tstep, _("the time step report"), NULL); hbox72 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox72); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox72", hbox72, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox72); gtk_box_pack_start (GTK_BOX (vbox_tran), hbox72, FALSE, TRUE, 2); label38 = gtk_label_new (_("tstop")); gtk_widget_ref (label38); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label38", label38, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label38); gtk_box_pack_start (GTK_BOX (hbox72), label38, FALSE, FALSE, 4); tran_tstop = gtk_entry_new (); gtk_widget_ref (tran_tstop); gtk_object_set_data_full (GTK_OBJECT (window_prin), "tran_tstop", tran_tstop, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tran_tstop); gtk_box_pack_end (GTK_BOX (hbox72), tran_tstop, FALSE, TRUE, 2); gtk_tooltips_set_tip (tooltips, tran_tstop, _("the last value of the transient analysis "), NULL); hbox73 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox73); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox73", hbox73, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox73); gtk_box_pack_start (GTK_BOX (vbox_tran), hbox73, FALSE, TRUE, 2); label39 = gtk_label_new (_("tstart(opt)")); gtk_widget_ref (label39); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label39", label39, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label39); gtk_box_pack_start (GTK_BOX (hbox73), label39, FALSE, FALSE, 4); tran_tstart = gtk_entry_new (); gtk_widget_ref (tran_tstart); gtk_object_set_data_full (GTK_OBJECT (window_prin), "tran_tstart", tran_tstart, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tran_tstart); gtk_box_pack_end (GTK_BOX (hbox73), tran_tstart, FALSE, TRUE, 2); gtk_tooltips_set_tip (tooltips, tran_tstart, _("the first value for the analysis (default 0)"), NULL); hbox74 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox74); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox74", hbox74, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox74); gtk_box_pack_start (GTK_BOX (vbox_tran), hbox74, FALSE, TRUE, 2); label116 = gtk_label_new (_("tmax (opt)")); gtk_widget_ref (label116); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label116", label116, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label116); gtk_box_pack_start (GTK_BOX (hbox74), label116, FALSE, FALSE, 4); tran_tmax = gtk_entry_new (); gtk_widget_ref (tran_tmax); gtk_object_set_data_full (GTK_OBJECT (window_prin), "tran_tmax", tran_tmax, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tran_tmax); gtk_box_pack_end (GTK_BOX (hbox74), tran_tmax, FALSE, TRUE, 2); hseparator45 = gtk_hseparator_new (); gtk_widget_ref (hseparator45); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator45", hseparator45, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator45); gtk_box_pack_start (GTK_BOX (vbox_tran), hseparator45, FALSE, TRUE, 2); tran_ok = gtk_button_new_with_label (_("Simulate TRAN")); gtk_widget_ref (tran_ok); gtk_object_set_data_full (GTK_OBJECT (window_prin), "tran_ok", tran_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tran_ok); gtk_box_pack_start (GTK_BOX (vbox_tran), tran_ok, TRUE, FALSE, 2); gtk_tooltips_set_tip (tooltips, tran_ok, _("start the transient analysis"), NULL); label_tran = gtk_label_new (_("tran")); gtk_widget_ref (label_tran); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label_tran", label_tran, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label_tran); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 4), label_tran); vbox25 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox25); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox25", vbox25, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox25); gtk_container_add (GTK_CONTAINER (notebook2), vbox25); label89 = gtk_label_new (_("Calculate a transfert function")); gtk_widget_ref (label89); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label89", label89, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label89); gtk_box_pack_start (GTK_BOX (vbox25), label89, TRUE, FALSE, 0); hseparator53 = gtk_hseparator_new (); gtk_widget_ref (hseparator53); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator53", hseparator53, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator53); gtk_box_pack_start (GTK_BOX (vbox25), hseparator53, FALSE, TRUE, 2); hbox49 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox49); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox49", hbox49, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox49); gtk_box_pack_start (GTK_BOX (vbox25), hbox49, FALSE, TRUE, 2); label90 = gtk_label_new (_("Output var :")); gtk_widget_ref (label90); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label90", label90, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label90); gtk_box_pack_start (GTK_BOX (hbox49), label90, FALSE, FALSE, 2); gtk_label_set_justify (GTK_LABEL (label90), GTK_JUSTIFY_RIGHT); tf_output_combo = gtk_combo_new (); gtk_widget_ref (tf_output_combo); gtk_object_set_data_full (GTK_OBJECT (window_prin), "tf_output_combo", tf_output_combo, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tf_output_combo); gtk_box_pack_end (GTK_BOX (hbox49), tf_output_combo, FALSE, TRUE, 2); tf_output = GTK_COMBO (tf_output_combo)->entry; gtk_widget_ref (tf_output); gtk_object_set_data_full (GTK_OBJECT (window_prin), "tf_output", tf_output, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tf_output); gtk_widget_set_usize (tf_output, 80, -2); hbox50 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox50); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox50", hbox50, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox50); gtk_box_pack_start (GTK_BOX (vbox25), hbox50, FALSE, FALSE, 2); label91 = gtk_label_new (_("Source : ")); gtk_widget_ref (label91); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label91", label91, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label91); gtk_box_pack_start (GTK_BOX (hbox50), label91, FALSE, FALSE, 4); gtk_widget_set_usize (label91, 96, -2); gtk_label_set_justify (GTK_LABEL (label91), GTK_JUSTIFY_LEFT); tf_source_combo = gtk_combo_new (); gtk_widget_ref (tf_source_combo); gtk_object_set_data_full (GTK_OBJECT (window_prin), "tf_source_combo", tf_source_combo, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tf_source_combo); gtk_box_pack_end (GTK_BOX (hbox50), tf_source_combo, FALSE, TRUE, 2); tf_source = GTK_COMBO (tf_source_combo)->entry; gtk_widget_ref (tf_source); gtk_object_set_data_full (GTK_OBJECT (window_prin), "tf_source", tf_source, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tf_source); gtk_widget_set_usize (tf_source, 80, -2); hseparator3 = gtk_hseparator_new (); gtk_widget_ref (hseparator3); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator3", hseparator3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator3); gtk_box_pack_start (GTK_BOX (vbox25), hseparator3, FALSE, TRUE, 4); tf_ok = gtk_button_new_with_label (_("Simulate TF")); gtk_widget_ref (tf_ok); gtk_object_set_data_full (GTK_OBJECT (window_prin), "tf_ok", tf_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (tf_ok); gtk_box_pack_start (GTK_BOX (vbox25), tf_ok, TRUE, FALSE, 2); gtk_tooltips_set_tip (tooltips, tf_ok, _("start the transfert function simulation. See the results on the spice output window"), NULL); result_tf = gtk_label_new (_("tf")); gtk_widget_ref (result_tf); gtk_object_set_data_full (GTK_OBJECT (window_prin), "result_tf", result_tf, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (result_tf); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 5), result_tf); vbox_param = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox_param); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox_param", vbox_param, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox_param); gtk_container_add (GTK_CONTAINER (notebook2), vbox_param); label129 = gtk_label_new (_("Do a parametric analysis")); gtk_widget_ref (label129); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label129", label129, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label129); gtk_box_pack_start (GTK_BOX (vbox_param), label129, FALSE, FALSE, 0); hseparator63 = gtk_hseparator_new (); gtk_widget_ref (hseparator63); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator63", hseparator63, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator63); gtk_box_pack_start (GTK_BOX (vbox_param), hseparator63, FALSE, TRUE, 2); param_enable = gtk_check_button_new_with_label (_("enable")); gtk_widget_ref (param_enable); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_enable", param_enable, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_enable); gtk_box_pack_start (GTK_BOX (vbox_param), param_enable, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER (param_enable), 2); hseparator62 = gtk_hseparator_new (); gtk_widget_ref (hseparator62); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator62", hseparator62, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator62); gtk_box_pack_start (GTK_BOX (vbox_param), hseparator62, FALSE, TRUE, 2); param_hbox_name = gtk_hbox_new (FALSE, 0); gtk_widget_ref (param_hbox_name); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_hbox_name", param_hbox_name, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_hbox_name); gtk_box_pack_start (GTK_BOX (vbox_param), param_hbox_name, FALSE, TRUE, 3); gtk_widget_set_sensitive (param_hbox_name, FALSE); label123 = gtk_label_new (_("name")); gtk_widget_ref (label123); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label123", label123, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label123); gtk_box_pack_start (GTK_BOX (param_hbox_name), label123, FALSE, FALSE, 2); param_name_combo = gtk_combo_new (); gtk_widget_ref (param_name_combo); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_name_combo", param_name_combo, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_name_combo); gtk_box_pack_end (GTK_BOX (param_hbox_name), param_name_combo, FALSE, TRUE, 2); param_name = GTK_COMBO (param_name_combo)->entry; gtk_widget_ref (param_name); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_name", param_name, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_name); gtk_widget_set_usize (param_name, 80, -2); param_hbox_param = gtk_hbox_new (FALSE, 0); gtk_widget_ref (param_hbox_param); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_hbox_param", param_hbox_param, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_hbox_param); gtk_box_pack_start (GTK_BOX (vbox_param), param_hbox_param, FALSE, TRUE, 0); gtk_widget_set_sensitive (param_hbox_param, FALSE); label130 = gtk_label_new (_("param")); gtk_widget_ref (label130); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label130", label130, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label130); gtk_box_pack_start (GTK_BOX (param_hbox_param), label130, FALSE, FALSE, 0); param_param = gtk_entry_new (); gtk_widget_ref (param_param); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_param", param_param, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_param); gtk_box_pack_end (GTK_BOX (param_hbox_param), param_param, FALSE, TRUE, 2); hseparator61 = gtk_hseparator_new (); gtk_widget_ref (hseparator61); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator61", hseparator61, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator61); gtk_box_pack_start (GTK_BOX (vbox_param), hseparator61, FALSE, TRUE, 2); param_hbox_val = gtk_hbox_new (FALSE, 0); gtk_widget_ref (param_hbox_val); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_hbox_val", param_hbox_val, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_hbox_val); gtk_box_pack_start (GTK_BOX (vbox_param), param_hbox_val, FALSE, TRUE, 0); gtk_widget_set_sensitive (param_hbox_val, FALSE); vbox37 = gtk_vbox_new (TRUE, 0); gtk_widget_ref (vbox37); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox37", vbox37, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox37); gtk_box_pack_start (GTK_BOX (param_hbox_val), vbox37, FALSE, TRUE, 0); label124 = gtk_label_new (_("Type")); gtk_widget_ref (label124); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label124", label124, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label124); gtk_box_pack_start (GTK_BOX (vbox37), label124, FALSE, FALSE, 0); param_lin = gtk_radio_button_new_with_label (vbox37_group, _("LIN")); vbox37_group = gtk_radio_button_group (GTK_RADIO_BUTTON (param_lin)); gtk_widget_ref (param_lin); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_lin", param_lin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_lin); gtk_box_pack_start (GTK_BOX (vbox37), param_lin, FALSE, FALSE, 0); param_dec = gtk_radio_button_new_with_label (vbox37_group, _("DEC")); vbox37_group = gtk_radio_button_group (GTK_RADIO_BUTTON (param_dec)); gtk_widget_ref (param_dec); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_dec", param_dec, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_dec); gtk_box_pack_start (GTK_BOX (vbox37), param_dec, FALSE, FALSE, 0); param_list = gtk_radio_button_new_with_label (vbox37_group, _("LIST")); vbox37_group = gtk_radio_button_group (GTK_RADIO_BUTTON (param_list)); gtk_widget_ref (param_list); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_list", param_list, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_list); gtk_box_pack_start (GTK_BOX (vbox37), param_list, FALSE, FALSE, 0); vseparator2 = gtk_vseparator_new (); gtk_widget_ref (vseparator2); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vseparator2", vseparator2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vseparator2); gtk_box_pack_start (GTK_BOX (param_hbox_val), vseparator2, FALSE, TRUE, 13); vbox38 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox38); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox38", vbox38, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox38); gtk_box_pack_start (GTK_BOX (param_hbox_val), vbox38, TRUE, TRUE, 0); param_hbox_start = gtk_hbox_new (FALSE, 0); gtk_widget_ref (param_hbox_start); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_hbox_start", param_hbox_start, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_hbox_start); gtk_box_pack_start (GTK_BOX (vbox38), param_hbox_start, TRUE, TRUE, 0); label125 = gtk_label_new (_("Start")); gtk_widget_ref (label125); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label125", label125, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label125); gtk_box_pack_start (GTK_BOX (param_hbox_start), label125, FALSE, FALSE, 0); param_start = gtk_entry_new (); gtk_widget_ref (param_start); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_start", param_start, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_start); gtk_box_pack_end (GTK_BOX (param_hbox_start), param_start, FALSE, TRUE, 2); param_hbox_stop = gtk_hbox_new (FALSE, 0); gtk_widget_ref (param_hbox_stop); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_hbox_stop", param_hbox_stop, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_hbox_stop); gtk_box_pack_start (GTK_BOX (vbox38), param_hbox_stop, TRUE, TRUE, 0); label126 = gtk_label_new (_("Stop")); gtk_widget_ref (label126); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label126", label126, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label126); gtk_box_pack_start (GTK_BOX (param_hbox_stop), label126, FALSE, FALSE, 0); param_stop = gtk_entry_new (); gtk_widget_ref (param_stop); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_stop", param_stop, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_stop); gtk_box_pack_end (GTK_BOX (param_hbox_stop), param_stop, FALSE, TRUE, 2); param_hbox_step = gtk_hbox_new (FALSE, 0); gtk_widget_ref (param_hbox_step); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_hbox_step", param_hbox_step, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_hbox_step); gtk_box_pack_start (GTK_BOX (vbox38), param_hbox_step, TRUE, TRUE, 0); param_label_step = gtk_label_new (_("Step")); gtk_widget_ref (param_label_step); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_label_step", param_label_step, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_label_step); gtk_box_pack_start (GTK_BOX (param_hbox_step), param_label_step, FALSE, FALSE, 0); param_step = gtk_entry_new (); gtk_widget_ref (param_step); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_step", param_step, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_step); gtk_box_pack_end (GTK_BOX (param_hbox_step), param_step, FALSE, TRUE, 2); param_hbox_list = gtk_hbox_new (FALSE, 0); gtk_widget_ref (param_hbox_list); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_hbox_list", param_hbox_list, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_hbox_list); gtk_box_pack_start (GTK_BOX (vbox38), param_hbox_list, TRUE, TRUE, 0); gtk_widget_set_sensitive (param_hbox_list, FALSE); label128 = gtk_label_new (_("Values")); gtk_widget_ref (label128); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label128", label128, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label128); gtk_box_pack_start (GTK_BOX (param_hbox_list), label128, FALSE, FALSE, 0); param_values = gtk_entry_new (); gtk_widget_ref (param_values); gtk_object_set_data_full (GTK_OBJECT (window_prin), "param_values", param_values, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (param_values); gtk_box_pack_end (GTK_BOX (param_hbox_list), param_values, FALSE, TRUE, 2); label_param = gtk_label_new (_("param")); gtk_widget_ref (label_param); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label_param", label_param, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label_param); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 6), label_param); plot_vbox = gtk_vbox_new (FALSE, 0); gtk_widget_ref (plot_vbox); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_vbox", plot_vbox, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_vbox); gtk_container_add (GTK_CONTAINER (notebook2), plot_vbox); gtk_widget_set_sensitive (plot_vbox, FALSE); label140 = gtk_label_new (_("Plot the results")); gtk_widget_ref (label140); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label140", label140, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label140); gtk_box_pack_start (GTK_BOX (plot_vbox), label140, FALSE, FALSE, 0); hseparator79 = gtk_hseparator_new (); gtk_widget_ref (hseparator79); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator79", hseparator79, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator79); gtk_box_pack_start (GTK_BOX (plot_vbox), hseparator79, TRUE, FALSE, 2); label150 = gtk_label_new (_("Commands before plotting :")); gtk_widget_ref (label150); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label150", label150, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label150); gtk_box_pack_start (GTK_BOX (plot_vbox), label150, FALSE, FALSE, 0); scrolledwindow15 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow15); gtk_object_set_data_full (GTK_OBJECT (window_prin), "scrolledwindow15", scrolledwindow15, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (scrolledwindow15); gtk_box_pack_start (GTK_BOX (plot_vbox), scrolledwindow15, FALSE, FALSE, 2); gtk_widget_set_size_request (scrolledwindow15, -1, 56); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow15), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); plot_pre_text = gtk_text_view_new (); gtk_widget_ref (plot_pre_text); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_pre_text", plot_pre_text, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_pre_text); gtk_container_add (GTK_CONTAINER (scrolledwindow15), plot_pre_text); gtk_text_view_set_editable (GTK_TEXT_VIEW (plot_pre_text), TRUE); hbox85 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox85); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox85", hbox85, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox85); gtk_box_pack_start (GTK_BOX (plot_vbox), hbox85, FALSE, FALSE, 0); hseparator69 = gtk_hseparator_new (); gtk_widget_ref (hseparator69); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator69", hseparator69, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator69); gtk_box_pack_start (GTK_BOX (plot_vbox), hseparator69, FALSE, TRUE, 2); hbox83 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox83); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox83", hbox83, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox83); gtk_box_pack_start (GTK_BOX (plot_vbox), hbox83, FALSE, TRUE, 0); label142 = gtk_label_new (_("X axis : ")); gtk_widget_ref (label142); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label142", label142, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label142); gtk_box_pack_start (GTK_BOX (hbox83), label142, FALSE, FALSE, 2); vbox43 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox43); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox43", vbox43, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox43); gtk_box_pack_start (GTK_BOX (hbox83), vbox43, FALSE, FALSE, 0); plot_xdefault = gtk_radio_button_new_with_label (x_axis_group, _("default")); x_axis_group = gtk_radio_button_group (GTK_RADIO_BUTTON (plot_xdefault)); gtk_widget_ref (plot_xdefault); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_xdefault", plot_xdefault, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_xdefault); gtk_box_pack_start (GTK_BOX (vbox43), plot_xdefault, FALSE, FALSE, 0); hbox93 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox93); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox93", hbox93, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox93); gtk_box_pack_start (GTK_BOX (vbox43), hbox93, TRUE, TRUE, 0); plot_xscale_value = gtk_radio_button_new_with_label (x_axis_group, _("value")); x_axis_group = gtk_radio_button_group (GTK_RADIO_BUTTON (plot_xscale_value)); gtk_widget_ref (plot_xscale_value); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_xscale_value", plot_xscale_value, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_xscale_value); gtk_box_pack_start (GTK_BOX (hbox93), plot_xscale_value, FALSE, FALSE, 0); plot_x = gtk_entry_new (); gtk_widget_ref (plot_x); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_x", plot_x, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_x); gtk_box_pack_start (GTK_BOX (hbox93), plot_x, FALSE, TRUE, 2); gtk_widget_set_usize (plot_x, 120, -2); gtk_widget_set_sensitive (plot_x, FALSE); vbox42 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox42); gtk_object_set_data_full (GTK_OBJECT (window_prin), "vbox42", vbox42, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox42); gtk_box_pack_start (GTK_BOX (hbox83), vbox42, FALSE, FALSE, 0); plot_xlog_scale = gtk_check_button_new_with_label (_("log scale")); gtk_widget_ref (plot_xlog_scale); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_xlog_scale", plot_xlog_scale, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_xlog_scale); gtk_box_pack_start (GTK_BOX (vbox42), plot_xlog_scale, FALSE, FALSE, 0); gtk_widget_set_usize (plot_xlog_scale, -2, 22); plot_xlin_scale = gtk_check_button_new_with_label (_("lin scale")); gtk_widget_ref (plot_xlin_scale); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_xlin_scale", plot_xlin_scale, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_xlin_scale); gtk_box_pack_start (GTK_BOX (vbox42), plot_xlin_scale, FALSE, FALSE, 0); gtk_widget_set_usize (plot_xlin_scale, -2, 22); hseparator71 = gtk_hseparator_new (); gtk_widget_ref (hseparator71); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator71", hseparator71, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator71); gtk_box_pack_start (GTK_BOX (plot_vbox), hseparator71, FALSE, TRUE, 2); hbox84 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox84); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox84", hbox84, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox84); gtk_box_pack_start (GTK_BOX (plot_vbox), hbox84, FALSE, TRUE, 0); label143 = gtk_label_new (_("Y axis : ")); gtk_widget_ref (label143); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label143", label143, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label143); gtk_box_pack_start (GTK_BOX (hbox84), label143, FALSE, FALSE, 2); plot_y = gtk_entry_new (); gtk_widget_ref (plot_y); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_y", plot_y, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_y); gtk_box_pack_start (GTK_BOX (hbox84), plot_y, FALSE, FALSE, 2); plot_ylog_scale = gtk_check_button_new_with_label (_("log scale")); gtk_widget_ref (plot_ylog_scale); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_ylog_scale", plot_ylog_scale, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_ylog_scale); gtk_box_pack_end (GTK_BOX (hbox84), plot_ylog_scale, FALSE, TRUE, 0); hseparator74 = gtk_hseparator_new (); gtk_widget_ref (hseparator74); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator74", hseparator74, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator74); gtk_box_pack_start (GTK_BOX (plot_vbox), hseparator74, FALSE, TRUE, 2); hbox86 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox86); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox86", hbox86, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox86); gtk_box_pack_start (GTK_BOX (plot_vbox), hbox86, FALSE, FALSE, 0); plot_auto_update = gtk_check_button_new_with_label (_("auto update")); gtk_widget_ref (plot_auto_update); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_auto_update", plot_auto_update, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_auto_update); gtk_box_pack_start (GTK_BOX (hbox86), plot_auto_update, TRUE, FALSE, 0); plot_reset = gtk_button_new_with_label (_("Reset")); gtk_widget_ref (plot_reset); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_reset", plot_reset, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_reset); gtk_box_pack_start (GTK_BOX (hbox86), plot_reset, TRUE, FALSE, 0); GTK_WIDGET_SET_FLAGS (plot_reset, GTK_CAN_DEFAULT); hseparator70 = gtk_hseparator_new (); gtk_widget_ref (hseparator70); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hseparator70", hseparator70, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator70); gtk_box_pack_start (GTK_BOX (plot_vbox), hseparator70, FALSE, TRUE, 2); plot_ok = gtk_button_new_with_label (_("Plot")); gtk_widget_ref (plot_ok); gtk_object_set_data_full (GTK_OBJECT (window_prin), "plot_ok", plot_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (plot_ok); gtk_box_pack_start (GTK_BOX (plot_vbox), plot_ok, FALSE, FALSE, 0); gtk_tooltips_set_tip (tooltips, plot_ok, _("start the ac analysis"), NULL); label139 = gtk_label_new (_("plot")); gtk_widget_ref (label139); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label139", label139, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label139); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 7), label139); notebook3 = gtk_notebook_new (); gtk_widget_ref (notebook3); gtk_object_set_data_full (GTK_OBJECT (window_prin), "notebook3", notebook3, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (notebook3); gtk_box_pack_start (GTK_BOX (vbox2), notebook3, TRUE, TRUE, 0); gtk_notebook_set_tab_hborder (GTK_NOTEBOOK (notebook3), 8); scrolledwindow12 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow12); gtk_object_set_data_full (GTK_OBJECT (window_prin), "scrolledwindow12", scrolledwindow12, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (scrolledwindow12); gtk_container_add (GTK_CONTAINER (notebook3), scrolledwindow12); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow12), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); text_log = gtk_text_view_new (); gtk_widget_ref (text_log); gtk_object_set_data_full (GTK_OBJECT (window_prin), "text_log", text_log, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (text_log); gtk_container_add (GTK_CONTAINER (scrolledwindow12), text_log); gtk_widget_set_usize (text_log, -2, 131); hbox97 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox97); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox97", hbox97, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox97); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook3), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook3), 0), hbox97); label163 = gtk_label_new (_(" Log ")); gtk_widget_ref (label163); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label163", label163, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label163); gtk_box_pack_start (GTK_BOX (hbox97), label163, FALSE, FALSE, 0); pixmap_log_ok = create_pixmap (window_prin, "green.xpm"); gtk_widget_ref (pixmap_log_ok); gtk_object_set_data_full (GTK_OBJECT (window_prin), "pixmap_log_ok", pixmap_log_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (pixmap_log_ok); gtk_box_pack_start (GTK_BOX (hbox97), pixmap_log_ok, FALSE, FALSE, 2); pixmap_log_false = create_pixmap (window_prin, "red.xpm"); gtk_widget_ref (pixmap_log_false); gtk_object_set_data_full (GTK_OBJECT (window_prin), "pixmap_log_false", pixmap_log_false, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (pixmap_log_false); gtk_box_pack_start (GTK_BOX (hbox97), pixmap_log_false, FALSE, FALSE, 2); scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow1); gtk_object_set_data_full (GTK_OBJECT (window_prin), "scrolledwindow1", scrolledwindow1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (scrolledwindow1); gtk_container_add (GTK_CONTAINER (notebook3), scrolledwindow1); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); text_spice_output = gtk_text_view_new (); gtk_widget_ref (text_spice_output); gtk_object_set_data_full (GTK_OBJECT (window_prin), "text_spice_output", text_spice_output, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (text_spice_output); gtk_container_add (GTK_CONTAINER (scrolledwindow1), text_spice_output); gtk_widget_set_usize (text_spice_output, 370, -2); hbox94 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox94); gtk_object_set_data_full (GTK_OBJECT (window_prin), "hbox94", hbox94, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox94); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook3), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook3), 1), hbox94); label145 = gtk_label_new (_("spice output ")); gtk_widget_ref (label145); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label145", label145, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label145); gtk_box_pack_start (GTK_BOX (hbox94), label145, FALSE, FALSE, 0); viewerspiceoutput = gtk_button_new_with_label (_("-> view")); gtk_widget_ref (viewerspiceoutput); gtk_object_set_data_full (GTK_OBJECT (window_prin), "viewerspiceoutput", viewerspiceoutput, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (viewerspiceoutput); gtk_box_pack_start (GTK_BOX (hbox94), viewerspiceoutput, FALSE, FALSE, 0); scrolledwindow13 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow13); gtk_object_set_data_full (GTK_OBJECT (window_prin), "scrolledwindow13", scrolledwindow13, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (scrolledwindow13); gtk_container_add (GTK_CONTAINER (notebook3), scrolledwindow13); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow13), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); text_spice_error = gtk_text_view_new (); gtk_widget_ref (text_spice_error); gtk_object_set_data_full (GTK_OBJECT (window_prin), "text_spice_error", text_spice_error, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (text_spice_error); gtk_container_add (GTK_CONTAINER (scrolledwindow13), text_spice_error); gtk_widget_set_usize (text_spice_error, 353, -2); label146 = gtk_label_new (_("Spice errors")); gtk_widget_ref (label146); gtk_object_set_data_full (GTK_OBJECT (window_prin), "label146", label146, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label146); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook3), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook3), 2), label146); gtk_signal_connect (GTK_OBJECT (menu_file_new), "activate", GTK_SIGNAL_FUNC (on_menu_file_new_activate), easyspice); gtk_signal_connect (GTK_OBJECT (menu_file_open), "activate", GTK_SIGNAL_FUNC (on_menu_file_open_activate), easyspice); gtk_signal_connect (GTK_OBJECT (menu_file_save), "activate", GTK_SIGNAL_FUNC (on_menu_file_save_activate), easyspice); gtk_signal_connect (GTK_OBJECT (menu_file_saveas), "activate", GTK_SIGNAL_FUNC (on_menu_file_saveas_activate), easyspice); gtk_signal_connect (GTK_OBJECT (menu_file_quit), "activate", GTK_SIGNAL_FUNC (on_menu_file_quit_activate), easyspice); gtk_signal_connect (GTK_OBJECT (window_prin), "delete-event", GTK_SIGNAL_FUNC (on_main_window_destroy_event), easyspice); gtk_signal_connect (GTK_OBJECT (menu_options_commands), "activate", GTK_SIGNAL_FUNC (on_menu_options_commands_activate), easyspice->commands); gtk_signal_connect (GTK_OBJECT (menu_options_gschem), "activate", GTK_SIGNAL_FUNC (on_menu_options_gschem_activate), easyspice->geda); gtk_signal_connect (GTK_OBJECT (menu_options_library), "activate", GTK_SIGNAL_FUNC (on_menu_options_library_activate), easyspice->spicelibrary); gtk_signal_connect (GTK_OBJECT (menu_options_save), "activate", GTK_SIGNAL_FUNC (on_menu_options_save_activate), easyspice); gtk_signal_connect (GTK_OBJECT (menu_windows_simulcommands), "activate", GTK_SIGNAL_FUNC (on_menu_windows_simulcommands_activate), easyspice); gtk_signal_connect (GTK_OBJECT (menu_windows_plotcommands), "activate", GTK_SIGNAL_FUNC (on_menu_windows_plotcommands_activate), easyspice); gtk_signal_connect (GTK_OBJECT (menu_windows_spiceinteractive), "activate", GTK_SIGNAL_FUNC (on_menu_windows_spiceinteractive_activate), easyspice->commands); gtk_signal_connect (GTK_OBJECT (menu_windows_postproc), "activate", GTK_SIGNAL_FUNC (on_menu_windows_postproc_activate), easyspice->postproc); gtk_signal_connect (GTK_OBJECT (menu_windows_plotresult), "activate", GTK_SIGNAL_FUNC (on_plot_res_activate), easyspice->commands); gtk_signal_connect (GTK_OBJECT (menu_help_about), "activate", GTK_SIGNAL_FUNC (on_menu_help_about_activate), NULL); gtk_signal_connect (GTK_OBJECT (menu_help_spiceman), "activate", GTK_SIGNAL_FUNC (on_menu_help_spiceman_activate), easyspice->commands); gtk_signal_connect (GTK_OBJECT (menu_help_spicehtml), "activate", GTK_SIGNAL_FUNC (on_menu_help_spicehtml_activate), easyspice->commands); gtk_signal_connect (GTK_OBJECT (menu_help_spicehelp), "activate", GTK_SIGNAL_FUNC (on_menu_help_spicehelp_activate), easyspice->commands); gtk_signal_connect (GTK_OBJECT (visu_schem), "clicked", GTK_SIGNAL_FUNC (on_visu_schem_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (gen_netlist), "clicked", GTK_SIGNAL_FUNC (on_gen_netlist_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (visu_netlist), "clicked", GTK_SIGNAL_FUNC (on_visu_netlist_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (op_ok), "clicked", GTK_SIGNAL_FUNC (on_op_ok_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (op_node), "changed", GTK_SIGNAL_FUNC (on_op_node_changed), easyspice); gtk_signal_connect (GTK_OBJECT (op_device), "changed", GTK_SIGNAL_FUNC (on_op_device_changed), easyspice); gtk_signal_connect (GTK_OBJECT (op_item), "changed", GTK_SIGNAL_FUNC (on_op_item_changed), easyspice); gtk_signal_connect (GTK_OBJECT (dc_ok), "clicked", GTK_SIGNAL_FUNC (on_dc_ok_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (ac_dec), "pressed", GTK_SIGNAL_FUNC (on_ac_dec_pressed), easyspice); gtk_signal_connect (GTK_OBJECT (ac_lin), "pressed", GTK_SIGNAL_FUNC (on_ac_lin_pressed), easyspice); gtk_signal_connect (GTK_OBJECT (ac_oct), "pressed", GTK_SIGNAL_FUNC (on_ac_oct_pressed), easyspice); gtk_signal_connect (GTK_OBJECT (ac_ok), "clicked", GTK_SIGNAL_FUNC (on_ac_ok_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (noise_dec), "pressed", GTK_SIGNAL_FUNC (on_noise_dec_pressed), easyspice); gtk_signal_connect (GTK_OBJECT (noise_lin), "pressed", GTK_SIGNAL_FUNC (on_noise_lin_pressed), easyspice); gtk_signal_connect (GTK_OBJECT (noise_oct), "pressed", GTK_SIGNAL_FUNC (on_noise_oct_pressed), easyspice); gtk_signal_connect (GTK_OBJECT (noise_ok), "clicked", GTK_SIGNAL_FUNC (on_noise_ok_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (tran_ok), "clicked", GTK_SIGNAL_FUNC (on_tran_ok_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (tf_ok), "clicked", GTK_SIGNAL_FUNC (on_tf_ok_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (param_enable), "pressed", GTK_SIGNAL_FUNC (on_param_enable_pressed), easyspice); gtk_signal_connect (GTK_OBJECT (param_lin), "pressed", GTK_SIGNAL_FUNC (on_param_lin_pressed), easyspice); gtk_signal_connect (GTK_OBJECT (param_dec), "pressed", GTK_SIGNAL_FUNC (on_param_dec_pressed), easyspice); gtk_signal_connect (GTK_OBJECT (param_list), "pressed", GTK_SIGNAL_FUNC (on_param_list_pressed), easyspice); gtk_signal_connect (GTK_OBJECT (plot_xdefault), "clicked", GTK_SIGNAL_FUNC (on_plot_xscale_default_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (plot_xscale_value), "clicked", GTK_SIGNAL_FUNC (on_plot_xscale_value_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (plot_reset), "clicked", GTK_SIGNAL_FUNC (on_plot_reset_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (plot_ok), "clicked", GTK_SIGNAL_FUNC (on_plot_ok_clicked), easyspice); gtk_signal_connect (GTK_OBJECT (viewerspiceoutput), "clicked", GTK_SIGNAL_FUNC (on_viewerspiceoutput_clicked), easyspice); gtk_object_set_data (GTK_OBJECT (window_prin), "tooltips", tooltips); return window_prin; } GtkWidget* create_verify_quit (void) { GtkWidget *verify_quit; GtkWidget *dialog_vbox1; GtkWidget *label1; GtkWidget *dialog_action_area1; GtkWidget *button_yes; GtkWidget *button_no; verify_quit = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (verify_quit), _("verify quit")); gtk_window_set_type_hint (GTK_WINDOW (verify_quit), GDK_WINDOW_TYPE_HINT_DIALOG); gtk_window_set_modal (GTK_WINDOW (verify_quit), TRUE); dialog_vbox1 = GTK_DIALOG (verify_quit)->vbox; gtk_widget_show (dialog_vbox1); label1 = gtk_label_new (_("Are you sure you want\nto quit?")); gtk_widget_show (label1); gtk_box_pack_start (GTK_BOX (dialog_vbox1), label1, FALSE, FALSE, 5); dialog_action_area1 = GTK_DIALOG (verify_quit)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); button_yes = gtk_button_new_from_stock ("gtk-yes"); gtk_widget_show (button_yes); gtk_dialog_add_action_widget (GTK_DIALOG (verify_quit), button_yes, GTK_RESPONSE_YES); GTK_WIDGET_SET_FLAGS (button_yes, GTK_CAN_DEFAULT); button_no = gtk_button_new_from_stock ("gtk-no"); gtk_widget_show (button_no); gtk_dialog_add_action_widget (GTK_DIALOG (verify_quit), button_no, GTK_RESPONSE_NO); GTK_WIDGET_SET_FLAGS (button_no, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) button_yes, "clicked", G_CALLBACK (on_verify_quit_button_yes_clicked), GTK_WIDGET (verify_quit)); g_signal_connect ((gpointer) button_no, "clicked", G_CALLBACK (on_verify_quit_button_no_clicked), GTK_WIDGET (verify_quit)); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (verify_quit, verify_quit, "verify_quit"); GLADE_HOOKUP_OBJECT_NO_REF (verify_quit, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (verify_quit, label1, "label1"); GLADE_HOOKUP_OBJECT_NO_REF (verify_quit, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (verify_quit, button_yes, "button_yes"); GLADE_HOOKUP_OBJECT (verify_quit, button_no, "button_no"); gtk_widget_grab_default (button_no); return verify_quit; } GtkWidget* create_config_spice (void) { GtkWidget *config_spice; GtkWidget *vbox30; GtkWidget *scrolledwindow9; GtkWidget *viewport2; GtkWidget *vbox31; GtkWidget *label103; GtkWidget *hseparator16; GtkWidget *hbox58; GtkWidget *label104; GtkWidget *spice_reltol; GtkWidget *hseparator17; GtkWidget *hbox59; GtkWidget *label105; GtkWidget *spice_vntol; GtkWidget *hseparator22; GtkWidget *hbox63; GtkWidget *label110; GtkWidget *spice_abstol; GtkWidget *hseparator21; GtkWidget *hbox64; GtkWidget *label111; GtkWidget *spice_gmin; GtkWidget *hseparator23; GtkWidget *hbuttonbox20; GtkWidget *spice_ok; GtkWidget *spice_default; config_spice = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (config_spice), "config_spice", config_spice); gtk_window_set_title (GTK_WINDOW (config_spice), _("config spice")); vbox30 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox30); gtk_object_set_data_full (GTK_OBJECT (config_spice), "vbox30", vbox30, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox30); gtk_container_add (GTK_CONTAINER (config_spice), vbox30); scrolledwindow9 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow9); gtk_object_set_data_full (GTK_OBJECT (config_spice), "scrolledwindow9", scrolledwindow9, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (scrolledwindow9); gtk_box_pack_start (GTK_BOX (vbox30), scrolledwindow9, TRUE, TRUE, 0); gtk_widget_set_usize (scrolledwindow9, 62, -2); gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow9), 2); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow9), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); viewport2 = gtk_viewport_new (NULL, NULL); gtk_widget_ref (viewport2); gtk_object_set_data_full (GTK_OBJECT (config_spice), "viewport2", viewport2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (viewport2); gtk_container_add (GTK_CONTAINER (scrolledwindow9), viewport2); vbox31 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox31); gtk_object_set_data_full (GTK_OBJECT (config_spice), "vbox31", vbox31, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (vbox31); gtk_container_add (GTK_CONTAINER (viewport2), vbox31); label103 = gtk_label_new (_("Spice configuration")); gtk_widget_ref (label103); gtk_object_set_data_full (GTK_OBJECT (config_spice), "label103", label103, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label103); gtk_box_pack_start (GTK_BOX (vbox31), label103, FALSE, FALSE, 2); hseparator16 = gtk_hseparator_new (); gtk_widget_ref (hseparator16); gtk_object_set_data_full (GTK_OBJECT (config_spice), "hseparator16", hseparator16, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator16); gtk_box_pack_start (GTK_BOX (vbox31), hseparator16, FALSE, TRUE, 2); hbox58 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox58); gtk_object_set_data_full (GTK_OBJECT (config_spice), "hbox58", hbox58, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox58); gtk_box_pack_start (GTK_BOX (vbox31), hbox58, FALSE, TRUE, 0); label104 = gtk_label_new (""); gtk_label_parse_uline (GTK_LABEL (label104), "diff_reltol"); gtk_widget_ref (label104); gtk_object_set_data_full (GTK_OBJECT (config_spice), "label104", label104, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label104); gtk_box_pack_start (GTK_BOX (hbox58), label104, FALSE, FALSE, 2); spice_reltol = gtk_entry_new (); gtk_widget_ref (spice_reltol); gtk_object_set_data_full (GTK_OBJECT (config_spice), "spice_reltol", spice_reltol, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (spice_reltol); gtk_box_pack_end (GTK_BOX (hbox58), spice_reltol, FALSE, TRUE, 2); gtk_widget_set_usize (spice_reltol, 75, -2); hseparator17 = gtk_hseparator_new (); gtk_widget_ref (hseparator17); gtk_object_set_data_full (GTK_OBJECT (config_spice), "hseparator17", hseparator17, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator17); gtk_box_pack_start (GTK_BOX (vbox31), hseparator17, FALSE, TRUE, 2); hbox59 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox59); gtk_object_set_data_full (GTK_OBJECT (config_spice), "hbox59", hbox59, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox59); gtk_box_pack_start (GTK_BOX (vbox31), hbox59, FALSE, TRUE, 0); label105 = gtk_label_new (""); gtk_label_parse_uline (GTK_LABEL (label105), "diff_vntol"); gtk_widget_ref (label105); gtk_object_set_data_full (GTK_OBJECT (config_spice), "label105", label105, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label105); gtk_box_pack_start (GTK_BOX (hbox59), label105, FALSE, FALSE, 2); spice_vntol = gtk_entry_new (); gtk_widget_ref (spice_vntol); gtk_object_set_data_full (GTK_OBJECT (config_spice), "spice_vntol", spice_vntol, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (spice_vntol); gtk_box_pack_end (GTK_BOX (hbox59), spice_vntol, FALSE, TRUE, 2); gtk_widget_set_usize (spice_vntol, 75, -2); hseparator22 = gtk_hseparator_new (); gtk_widget_ref (hseparator22); gtk_object_set_data_full (GTK_OBJECT (config_spice), "hseparator22", hseparator22, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator22); gtk_box_pack_start (GTK_BOX (vbox31), hseparator22, FALSE, TRUE, 3); hbox63 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox63); gtk_object_set_data_full (GTK_OBJECT (config_spice), "hbox63", hbox63, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox63); gtk_box_pack_start (GTK_BOX (vbox31), hbox63, FALSE, TRUE, 0); label110 = gtk_label_new ("ABSTOL"); gtk_widget_ref (label110); gtk_object_set_data_full (GTK_OBJECT (config_spice), "label110", label110, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label110); gtk_box_pack_start (GTK_BOX (hbox63), label110, FALSE, FALSE, 2); spice_abstol = gtk_entry_new (); gtk_widget_ref (spice_abstol); gtk_object_set_data_full (GTK_OBJECT (config_spice), "spice_abstol", spice_abstol, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (spice_abstol); gtk_box_pack_end (GTK_BOX (hbox63), spice_abstol, FALSE, TRUE, 2); gtk_widget_set_usize (spice_abstol, 75, -2); gtk_entry_set_text (GTK_ENTRY (spice_abstol), "1p"); hseparator21 = gtk_hseparator_new (); gtk_widget_ref (hseparator21); gtk_object_set_data_full (GTK_OBJECT (config_spice), "hseparator21", hseparator21, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator21); gtk_box_pack_start (GTK_BOX (vbox31), hseparator21, FALSE, TRUE, 3); hbox64 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox64); gtk_object_set_data_full (GTK_OBJECT (config_spice), "hbox64", hbox64, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbox64); gtk_box_pack_start (GTK_BOX (vbox31), hbox64, FALSE, TRUE, 0); label111 = gtk_label_new ("GMIN"); gtk_widget_ref (label111); gtk_object_set_data_full (GTK_OBJECT (config_spice), "label111", label111, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (label111); gtk_box_pack_start (GTK_BOX (hbox64), label111, FALSE, FALSE, 2); spice_gmin = gtk_entry_new (); gtk_widget_ref (spice_gmin); gtk_object_set_data_full (GTK_OBJECT (config_spice), "spice_gmin", spice_gmin, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (spice_gmin); gtk_box_pack_end (GTK_BOX (hbox64), spice_gmin, FALSE, TRUE, 2); gtk_widget_set_usize (spice_gmin, 75, -2); gtk_entry_set_text (GTK_ENTRY (spice_gmin), "1.0e-12"); hseparator23 = gtk_hseparator_new (); gtk_widget_ref (hseparator23); gtk_object_set_data_full (GTK_OBJECT (config_spice), "hseparator23", hseparator23, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator23); gtk_box_pack_start (GTK_BOX (vbox31), hseparator23, FALSE, TRUE, 0); hbuttonbox20 = gtk_hbutton_box_new (); gtk_widget_ref (hbuttonbox20); gtk_object_set_data_full (GTK_OBJECT (config_spice), "hbuttonbox20", hbuttonbox20, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hbuttonbox20); gtk_box_pack_start (GTK_BOX (vbox30), hbuttonbox20, FALSE, TRUE, 0); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox20), GTK_BUTTONBOX_SPREAD); gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbuttonbox20), 20); gtk_button_box_set_child_size (GTK_BUTTON_BOX (hbuttonbox20), 76, 27); gtk_button_box_set_child_ipadding (GTK_BUTTON_BOX (hbuttonbox20), 2, 0); spice_ok = gtk_button_new_with_label (_("Ok")); gtk_widget_ref (spice_ok); gtk_object_set_data_full (GTK_OBJECT (config_spice), "spice_ok", spice_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (spice_ok); gtk_container_add (GTK_CONTAINER (hbuttonbox20), spice_ok); GTK_WIDGET_SET_FLAGS (spice_ok, GTK_CAN_DEFAULT); spice_default = gtk_button_new_with_label (_("Default")); gtk_widget_ref (spice_default); gtk_object_set_data_full (GTK_OBJECT (config_spice), "spice_default", spice_default, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (spice_default); gtk_container_add (GTK_CONTAINER (hbuttonbox20), spice_default); GTK_WIDGET_SET_FLAGS (spice_default, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (config_spice), "delete_event", GTK_SIGNAL_FUNC (do_not_destroy), NULL); gtk_signal_connect_object_after (GTK_OBJECT (spice_ok), "clicked", GTK_SIGNAL_FUNC (gtk_widget_hide), GTK_OBJECT (GTK_OBJECT(config_spice))); gtk_signal_connect (GTK_OBJECT (spice_default), "clicked", GTK_SIGNAL_FUNC (on_spice_default_clicked), NULL); gtk_widget_grab_default (spice_ok); return config_spice; } GtkWidget* create_txt_viewer (Textviewer *textviewer) { GtkWidget *txt_viewer; GtkWidget *vbox46; GtkWidget *hseparator86; GtkWidget *hbox95; GtkWidget *label160; GtkWidget *label_filename; GtkWidget *hseparator87; GtkWidget *scrolledwindow16; GtkWidget *gtk_txt_view; GtkWidget *hseparator89; GtkWidget *bbox1; GtkWidget *button_close; txt_viewer = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (txt_viewer), "txt_viewer", txt_viewer); gtk_window_set_title (GTK_WINDOW (txt_viewer), _("easy_spice: text viewer")); vbox46 = gtk_vbox_new (FALSE, 0); gtk_widget_ref (vbox46); gtk_object_set_data_full (GTK_OBJECT (txt_viewer), "vbox46", vbox46, (GtkDestroyNotify) gtk_widget_unref); gtk_container_add (GTK_CONTAINER (txt_viewer), vbox46); hseparator86 = gtk_hseparator_new (); gtk_widget_ref (hseparator86); gtk_object_set_data_full (GTK_OBJECT (txt_viewer), "hseparator86", hseparator86, (GtkDestroyNotify) gtk_widget_unref); gtk_box_pack_start (GTK_BOX (vbox46), hseparator86, FALSE, FALSE, 2); hbox95 = gtk_hbox_new (FALSE, 0); gtk_widget_ref (hbox95); gtk_object_set_data_full (GTK_OBJECT (txt_viewer), "hbox95", hbox95, (GtkDestroyNotify) gtk_widget_unref); gtk_box_pack_start (GTK_BOX (vbox46), hbox95, FALSE, FALSE, 0); label160 = gtk_label_new (_("Filename: ")); gtk_widget_ref (label160); gtk_object_set_data_full (GTK_OBJECT (txt_viewer), "label160", label160, (GtkDestroyNotify) gtk_widget_unref); gtk_box_pack_start (GTK_BOX (hbox95), label160, FALSE, FALSE, 4); label_filename = gtk_label_new (_("Filename: ")); gtk_widget_ref (label_filename); gtk_object_set_data_full (GTK_OBJECT (txt_viewer), "label_filename", label_filename, (GtkDestroyNotify) gtk_widget_unref); gtk_box_pack_start (GTK_BOX (hbox95), label_filename, FALSE, FALSE, 4); hseparator87 = gtk_hseparator_new (); gtk_widget_ref (hseparator87); gtk_object_set_data_full (GTK_OBJECT (txt_viewer), "hseparator87", hseparator87,(GtkDestroyNotify) gtk_widget_unref); gtk_box_pack_start (GTK_BOX (vbox46), hseparator87, FALSE, FALSE, 2); scrolledwindow16 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_ref (scrolledwindow16); gtk_object_set_data_full (GTK_OBJECT (txt_viewer), "scrolledwindow16", scrolledwindow16, (GtkDestroyNotify) gtk_widget_unref); gtk_box_pack_start (GTK_BOX (vbox46), scrolledwindow16, TRUE, TRUE, 0); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow16), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); gtk_txt_view = gtk_text_view_new (); gtk_widget_ref (gtk_txt_view); gtk_object_set_data_full (GTK_OBJECT (txt_viewer), "gtk_txt_view", gtk_txt_view, (GtkDestroyNotify) gtk_widget_unref); gtk_container_add (GTK_CONTAINER (scrolledwindow16), gtk_txt_view); gtk_widget_set_usize (gtk_txt_view, 450, 400); gtk_text_view_set_editable (GTK_TEXT_VIEW (gtk_txt_view), FALSE); hseparator89 = gtk_hseparator_new(); gtk_widget_ref (hseparator89); gtk_object_set_data_full (GTK_OBJECT (txt_viewer), "hseparator89", hseparator89, (GtkDestroyNotify) gtk_widget_unref); gtk_box_pack_start (GTK_BOX (vbox46), hseparator89, FALSE, FALSE, 2); bbox1 = gtk_hbutton_box_new (); gtk_container_set_border_width (GTK_CONTAINER (bbox1), 2); gtk_box_pack_start (GTK_BOX (vbox46), bbox1, FALSE, FALSE, 0); gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox1), GTK_BUTTONBOX_END); button_close = gtk_button_new_from_stock (GTK_STOCK_CLOSE); gtk_container_add (GTK_CONTAINER (bbox1), button_close); gtk_widget_show_all (vbox46); gtk_signal_connect (GTK_OBJECT (txt_viewer), "destroy", G_CALLBACK (on_textviewer_destroy), textviewer); gtk_signal_connect (GTK_OBJECT (button_close), "clicked", G_CALLBACK (on_textviewer_button_close_clicked), textviewer); return txt_viewer; } GtkWidget* create_geda_setup (GedaSettings *geda) { GtkWidget *geda_setup; GtkWidget *dialog_vbox1; GtkWidget *frame1; GtkWidget *alignment1; GtkWidget *vbox1; GtkWidget *hbox2; GtkWidget *label6; GtkWidget *includecwd_no_radiobutton; GSList *includecwd_no_radiobutton_group = NULL; GtkWidget *includecwd_yes_radiobutton; GtkWidget *hbox3; GtkWidget *label7; GtkWidget *include_directory_entry; GtkWidget *gnetlist_command_line_entry; GtkWidget *hseparator1; GtkWidget *hbox4; GtkWidget *label8; GtkWidget *pinlabel_no_radiobutton; GSList *pinlabel_no_radiobutton_group = NULL; GtkWidget *pinlabel_yes_radiobutton; GtkWidget *hbox1; GtkWidget *label4; GtkWidget *geda_labels_entry; GtkWidget *label1; GtkWidget *frame2; GtkWidget *alignment2; GtkWidget *vbox2; GtkWidget *hbox5; GtkWidget *label9; GtkWidget *text_size_entry; GtkWidget *hseparator4; GtkWidget *hbox6; GtkWidget *label10; GtkWidget *snap_size_entry; GtkWidget *label2; GtkWidget *frame3; GtkWidget *alignment3; GtkWidget *vbox3; GtkWidget *hbox7; GtkWidget *label11; GtkWidget *netpriority_labels_radiobutton; GSList *netpriority_labels_radiobutton_group = NULL; GtkWidget *netpriority_nodes_radiobutton; GtkWidget *hseparator5; GtkWidget *hbox8; GtkWidget *hbox999; GtkWidget *label5; GtkWidget *label999; GtkWidget *hseparator999; GtkWidget *hierarchy_no_radiobutton; GSList *hierarchy_no_radiobutton_group = NULL; GtkWidget *hierarchy_yes_radiobutton; GtkWidget *label3; GtkWidget *dialog_action_area1; GtkWidget *defaultbutton1; GtkWidget *cancelbutton1; GtkWidget *okbutton1; geda_setup = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (geda_setup), _("gEDA parameters")); gtk_window_set_type_hint (GTK_WINDOW (geda_setup), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox1 = GTK_DIALOG (geda_setup)->vbox; gtk_widget_show (dialog_vbox1); frame1 = gtk_frame_new (NULL); gtk_widget_show (frame1); gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame1, TRUE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_IN); alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment1); gtk_container_add (GTK_CONTAINER (frame1), alignment1); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment1), 0, 0, 12, 0); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (alignment1), vbox1); hbox2 = gtk_hbox_new (FALSE, 10); gtk_widget_show (hbox2); gtk_box_pack_start (GTK_BOX (vbox1), hbox2, TRUE, TRUE, 0); label6 = gtk_label_new (_("Include current directory: ")); gtk_widget_show (label6); gtk_box_pack_start (GTK_BOX (hbox2), label6, FALSE, FALSE, 0); includecwd_no_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("No")); gtk_widget_show (includecwd_no_radiobutton); gtk_box_pack_end (GTK_BOX (hbox2), includecwd_no_radiobutton, FALSE, FALSE, 0); gtk_radio_button_set_group (GTK_RADIO_BUTTON (includecwd_no_radiobutton), includecwd_no_radiobutton_group); includecwd_no_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (includecwd_no_radiobutton)); includecwd_yes_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Yes")); gtk_widget_show (includecwd_yes_radiobutton); gtk_box_pack_end (GTK_BOX (hbox2), includecwd_yes_radiobutton, FALSE, FALSE, 0); gtk_radio_button_set_group (GTK_RADIO_BUTTON (includecwd_yes_radiobutton), includecwd_no_radiobutton_group); includecwd_no_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (includecwd_yes_radiobutton)); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox1), hbox3, TRUE, TRUE, 0); label7 = gtk_label_new (_("Other directories: ")); gtk_widget_show (label7); gtk_box_pack_start (GTK_BOX (hbox3), label7, FALSE, FALSE, 0); include_directory_entry = gtk_entry_new (); gtk_widget_show (include_directory_entry); gtk_box_pack_start (GTK_BOX (hbox3), include_directory_entry, TRUE, TRUE, 0); hseparator1 = gtk_hseparator_new (); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox1), hseparator1, TRUE, TRUE, 0); hbox4 = gtk_hbox_new (FALSE, 10); gtk_widget_show (hbox4); gtk_box_pack_start (GTK_BOX (vbox1), hbox4, TRUE, TRUE, 0); label8 = gtk_label_new (_("pinlabel attribute: ")); gtk_widget_show (label8); gtk_box_pack_start (GTK_BOX (hbox4), label8, FALSE, FALSE, 0); pinlabel_no_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("No")); gtk_widget_show (pinlabel_no_radiobutton); gtk_box_pack_end (GTK_BOX (hbox4), pinlabel_no_radiobutton, FALSE, FALSE, 0); gtk_radio_button_set_group (GTK_RADIO_BUTTON (pinlabel_no_radiobutton), pinlabel_no_radiobutton_group); pinlabel_no_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (pinlabel_no_radiobutton)); pinlabel_yes_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Yes")); gtk_widget_show (pinlabel_yes_radiobutton); gtk_box_pack_end (GTK_BOX (hbox4), pinlabel_yes_radiobutton, FALSE, FALSE, 0); gtk_radio_button_set_group (GTK_RADIO_BUTTON (pinlabel_yes_radiobutton), pinlabel_no_radiobutton_group); pinlabel_no_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (pinlabel_yes_radiobutton)); hbox1 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox1); gtk_box_pack_start (GTK_BOX (vbox1), hbox1, TRUE, TRUE, 0); label4 = gtk_label_new (_("Other attributes: ")); gtk_widget_show (label4); gtk_box_pack_start (GTK_BOX (hbox1), label4, FALSE, FALSE, 0); geda_labels_entry = gtk_entry_new (); gtk_widget_show (geda_labels_entry); gtk_box_pack_start (GTK_BOX (hbox1), geda_labels_entry, TRUE, TRUE, 0); label1 = gtk_label_new (_("Common gEDA configurations:")); gtk_widget_show (label1); gtk_frame_set_label_widget (GTK_FRAME (frame1), label1); gtk_label_set_use_markup (GTK_LABEL (label1), TRUE); frame2 = gtk_frame_new (NULL); gtk_widget_show (frame2); gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame2, TRUE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame2), GTK_SHADOW_IN); alignment2 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment2); gtk_container_add (GTK_CONTAINER (frame2), alignment2); gtk_container_set_border_width (GTK_CONTAINER (alignment2), 1); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment2), 0, 0, 12, 0); vbox2 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox2); gtk_container_add (GTK_CONTAINER (alignment2), vbox2); hbox5 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox2), hbox5, TRUE, TRUE, 0); label9 = gtk_label_new (_("Text size: ")); gtk_widget_show (label9); gtk_box_pack_start (GTK_BOX (hbox5), label9, FALSE, FALSE, 0); text_size_entry = gtk_entry_new (); gtk_widget_show (text_size_entry); gtk_box_pack_end (GTK_BOX (hbox5), text_size_entry, FALSE, FALSE, 0); gtk_entry_set_width_chars (GTK_ENTRY (text_size_entry), 10); hseparator4 = gtk_hseparator_new (); gtk_widget_show (hseparator4); gtk_box_pack_start (GTK_BOX (vbox2), hseparator4, TRUE, TRUE, 0); hbox6 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox6); gtk_box_pack_start (GTK_BOX (vbox2), hbox6, TRUE, TRUE, 0); label10 = gtk_label_new (_("Snap size: ")); gtk_widget_show (label10); gtk_box_pack_start (GTK_BOX (hbox6), label10, FALSE, FALSE, 0); snap_size_entry = gtk_entry_new (); gtk_widget_show (snap_size_entry); gtk_box_pack_end (GTK_BOX (hbox6), snap_size_entry, FALSE, FALSE, 0); gtk_entry_set_width_chars (GTK_ENTRY (snap_size_entry), 10); label2 = gtk_label_new (_("gschem configurations:")); gtk_widget_show (label2); gtk_frame_set_label_widget (GTK_FRAME (frame2), label2); gtk_label_set_use_markup (GTK_LABEL (label2), TRUE); frame3 = gtk_frame_new (NULL); gtk_widget_show (frame3); gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame3, TRUE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame3), GTK_SHADOW_IN); alignment3 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment3); gtk_container_add (GTK_CONTAINER (frame3), alignment3); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment3), 0, 0, 12, 0); vbox3 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (alignment3), vbox3); hbox7 = gtk_hbox_new (FALSE, 10); gtk_widget_show (hbox7); gtk_box_pack_start (GTK_BOX (vbox3), hbox7, TRUE, TRUE, 0); label11 = gtk_label_new (_("Net priority: ")); gtk_widget_show (label11); gtk_box_pack_start (GTK_BOX (hbox7), label11, FALSE, FALSE, 0); netpriority_labels_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Labels")); gtk_widget_show (netpriority_labels_radiobutton); gtk_box_pack_end (GTK_BOX (hbox7), netpriority_labels_radiobutton, FALSE, FALSE, 0); gtk_radio_button_set_group (GTK_RADIO_BUTTON (netpriority_labels_radiobutton), netpriority_labels_radiobutton_group); netpriority_labels_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (netpriority_labels_radiobutton)); netpriority_nodes_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Nodes")); gtk_widget_show (netpriority_nodes_radiobutton); gtk_box_pack_end (GTK_BOX (hbox7), netpriority_nodes_radiobutton, FALSE, FALSE, 0); gtk_radio_button_set_group (GTK_RADIO_BUTTON (netpriority_nodes_radiobutton), netpriority_labels_radiobutton_group); netpriority_labels_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (netpriority_nodes_radiobutton)); hseparator5 = gtk_hseparator_new (); gtk_widget_show (hseparator5); gtk_box_pack_start (GTK_BOX (vbox3), hseparator5, TRUE, TRUE, 0); hbox8 = gtk_hbox_new (FALSE, 10); gtk_widget_show (hbox8); gtk_box_pack_start (GTK_BOX (vbox3), hbox8, TRUE, TRUE, 0); label5 = gtk_label_new (_("Allow hierarchy")); gtk_widget_show (label5); gtk_box_pack_start (GTK_BOX (hbox8), label5, FALSE, FALSE, 0); hierarchy_no_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("No")); gtk_widget_show (hierarchy_no_radiobutton); gtk_box_pack_end (GTK_BOX (hbox8), hierarchy_no_radiobutton, FALSE, FALSE, 0); gtk_radio_button_set_group (GTK_RADIO_BUTTON (hierarchy_no_radiobutton), hierarchy_no_radiobutton_group); hierarchy_no_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (hierarchy_no_radiobutton)); hierarchy_yes_radiobutton = gtk_radio_button_new_with_mnemonic (NULL, _("Yes")); gtk_widget_show (hierarchy_yes_radiobutton); gtk_box_pack_end (GTK_BOX (hbox8), hierarchy_yes_radiobutton, FALSE, FALSE, 0); gtk_radio_button_set_group (GTK_RADIO_BUTTON (hierarchy_yes_radiobutton), hierarchy_no_radiobutton_group); hierarchy_no_radiobutton_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (hierarchy_yes_radiobutton)); //Added by Gudjon hbox999 = gtk_hbox_new (FALSE, 10); gtk_widget_show (hbox999); gtk_box_pack_start (GTK_BOX (vbox3), hbox999, TRUE, TRUE, 0); label999 = gtk_label_new (_("gnetlist command line: ")); gtk_widget_show (label999); gtk_box_pack_start (GTK_BOX (hbox999), label999, FALSE, FALSE, 0); gnetlist_command_line_entry = gtk_entry_new (); gtk_widget_show (gnetlist_command_line_entry); gtk_box_pack_start (GTK_BOX (hbox999), gnetlist_command_line_entry, TRUE, TRUE, 0); hseparator999 = gtk_hseparator_new (); gtk_widget_show (hseparator999); gtk_box_pack_start (GTK_BOX (vbox3), hseparator999, TRUE, TRUE, 0); //End of addition by Gudjon label3 = gtk_label_new (_("gnetlist configurations:")); gtk_widget_show (label3); gtk_frame_set_label_widget (GTK_FRAME (frame3), label3); gtk_label_set_use_markup (GTK_LABEL (label3), TRUE); dialog_action_area1 = GTK_DIALOG (geda_setup)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); defaultbutton1 = gtk_button_new_with_mnemonic (_("Default")); gtk_widget_show (defaultbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (geda_setup), defaultbutton1, 0); GTK_WIDGET_SET_FLAGS (defaultbutton1, GTK_CAN_DEFAULT); cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (geda_setup), cancelbutton1, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT); okbutton1 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (geda_setup), okbutton1, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) geda_setup, "destroy", G_CALLBACK (on_geda_setup_destroy), geda); g_signal_connect ((gpointer) defaultbutton1, "clicked", G_CALLBACK (on_geda_setup_default_clicked), geda); g_signal_connect ((gpointer) cancelbutton1, "clicked", G_CALLBACK (on_geda_setup_cancel_clicked), geda); g_signal_connect ((gpointer) okbutton1, "clicked", G_CALLBACK (on_geda_setup_ok_clicked), geda); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (geda_setup, geda_setup, "geda_setup"); GLADE_HOOKUP_OBJECT_NO_REF (geda_setup, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (geda_setup, frame1, "frame1"); GLADE_HOOKUP_OBJECT (geda_setup, alignment1, "alignment1"); GLADE_HOOKUP_OBJECT (geda_setup, vbox1, "vbox1"); GLADE_HOOKUP_OBJECT (geda_setup, hbox2, "hbox2"); GLADE_HOOKUP_OBJECT (geda_setup, label6, "label6"); GLADE_HOOKUP_OBJECT (geda_setup, includecwd_no_radiobutton, "includecwd_no_radiobutton"); GLADE_HOOKUP_OBJECT (geda_setup, includecwd_yes_radiobutton, "includecwd_yes_radiobutton"); GLADE_HOOKUP_OBJECT (geda_setup, hbox3, "hbox3"); GLADE_HOOKUP_OBJECT (geda_setup, label7, "label7"); GLADE_HOOKUP_OBJECT (geda_setup, include_directory_entry, "include_directory_entry"); GLADE_HOOKUP_OBJECT (geda_setup, hseparator1, "hseparator1"); GLADE_HOOKUP_OBJECT (geda_setup, hbox4, "hbox4"); GLADE_HOOKUP_OBJECT (geda_setup, label8, "label8"); GLADE_HOOKUP_OBJECT (geda_setup, pinlabel_no_radiobutton, "pinlabel_no_radiobutton"); GLADE_HOOKUP_OBJECT (geda_setup, pinlabel_yes_radiobutton, "pinlabel_yes_radiobutton"); GLADE_HOOKUP_OBJECT (geda_setup, hbox1, "hbox1"); GLADE_HOOKUP_OBJECT (geda_setup, label4, "label4"); GLADE_HOOKUP_OBJECT (geda_setup, geda_labels_entry, "geda_labels_entry"); GLADE_HOOKUP_OBJECT (geda_setup, label1, "label1"); GLADE_HOOKUP_OBJECT (geda_setup, frame2, "frame2"); GLADE_HOOKUP_OBJECT (geda_setup, alignment2, "alignment2"); GLADE_HOOKUP_OBJECT (geda_setup, vbox2, "vbox2"); GLADE_HOOKUP_OBJECT (geda_setup, hbox5, "hbox5"); GLADE_HOOKUP_OBJECT (geda_setup, label9, "label9"); GLADE_HOOKUP_OBJECT (geda_setup, text_size_entry, "text_size_entry"); GLADE_HOOKUP_OBJECT (geda_setup, hseparator4, "hseparator4"); GLADE_HOOKUP_OBJECT (geda_setup, hbox6, "hbox6"); GLADE_HOOKUP_OBJECT (geda_setup, label10, "label10"); GLADE_HOOKUP_OBJECT (geda_setup, snap_size_entry, "snap_size_entry"); GLADE_HOOKUP_OBJECT (geda_setup, label2, "label2"); GLADE_HOOKUP_OBJECT (geda_setup, frame3, "frame3"); GLADE_HOOKUP_OBJECT (geda_setup, alignment3, "alignment3"); GLADE_HOOKUP_OBJECT (geda_setup, vbox3, "vbox3"); GLADE_HOOKUP_OBJECT (geda_setup, hbox7, "hbox7"); GLADE_HOOKUP_OBJECT (geda_setup, label11, "label11"); GLADE_HOOKUP_OBJECT (geda_setup, netpriority_labels_radiobutton, "netpriority_labels_radiobutton"); GLADE_HOOKUP_OBJECT (geda_setup, netpriority_nodes_radiobutton, "netpriority_nodes_radiobutton"); GLADE_HOOKUP_OBJECT (geda_setup, hseparator5, "hseparator5"); GLADE_HOOKUP_OBJECT (geda_setup, hbox8, "hbox8"); GLADE_HOOKUP_OBJECT (geda_setup, label5, "label5"); GLADE_HOOKUP_OBJECT (geda_setup, hierarchy_no_radiobutton, "hierarchy_no_radiobutton"); GLADE_HOOKUP_OBJECT (geda_setup, hierarchy_yes_radiobutton, "hierarchy_yes_radiobutton"); GLADE_HOOKUP_OBJECT (geda_setup, gnetlist_command_line_entry, "gnetlist_command_line_entry"); GLADE_HOOKUP_OBJECT (geda_setup, label3, "label3"); GLADE_HOOKUP_OBJECT_NO_REF (geda_setup, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (geda_setup, defaultbutton1, "defaultbutton1"); GLADE_HOOKUP_OBJECT (geda_setup, cancelbutton1, "cancelbutton1"); GLADE_HOOKUP_OBJECT (geda_setup, okbutton1, "okbutton1"); return geda_setup; } GtkWidget* create_command_setup (ExternalProgramms *prog) { GtkWidget *command_setup; GtkWidget *dialog_vbox1; GtkWidget *frame1; GtkWidget *alignment1; GtkWidget *vbox1; GtkWidget *hbox3; GtkWidget *label7; GtkWidget *simulator_command_entry; GtkWidget *hseparator1; GtkWidget *hbox1; GtkWidget *label4; GtkWidget *plot_command_entry; GtkWidget *label1; GtkWidget *frame2; GtkWidget *alignment2; GtkWidget *vbox2; GtkWidget *hbox5; GtkWidget *label9; GtkWidget *help_command_entry; GtkWidget *hseparator4; GtkWidget *hbox6; GtkWidget *label10; GtkWidget *html_index_entry; GtkWidget *label2; GtkWidget *frame3; GtkWidget *alignment3; GtkWidget *vbox3; GtkWidget *hbox7; GtkWidget *label11; GtkWidget *browser_entry; GtkWidget *hseparator5; GtkWidget *hbox8; GtkWidget *label5; GtkWidget *texteditor_entry; GtkWidget *label3; GtkWidget *dialog_action_area1; GtkWidget *defaultbutton1; GtkWidget *cancelbutton1; GtkWidget *okbutton1; command_setup = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (command_setup), _("setup external programms")); gtk_window_set_type_hint (GTK_WINDOW (command_setup), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox1 = GTK_DIALOG (command_setup)->vbox; gtk_widget_show (dialog_vbox1); frame1 = gtk_frame_new (NULL); gtk_widget_show (frame1); gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame1, TRUE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_IN); alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment1); gtk_container_add (GTK_CONTAINER (frame1), alignment1); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment1), 0, 0, 12, 0); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (alignment1), vbox1); hbox3 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox1), hbox3, TRUE, TRUE, 0); label7 = gtk_label_new (_("Simulator command: ")); gtk_widget_show (label7); gtk_box_pack_start (GTK_BOX (hbox3), label7, FALSE, FALSE, 0); simulator_command_entry = gtk_entry_new (); gtk_widget_show (simulator_command_entry); gtk_box_pack_start (GTK_BOX (hbox3), simulator_command_entry, TRUE, TRUE, 0); hseparator1 = gtk_hseparator_new (); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox1), hseparator1, TRUE, TRUE, 0); hbox1 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox1); gtk_box_pack_start (GTK_BOX (vbox1), hbox1, TRUE, TRUE, 0); label4 = gtk_label_new (_("Plot command: ")); gtk_widget_show (label4); gtk_box_pack_start (GTK_BOX (hbox1), label4, FALSE, FALSE, 0); plot_command_entry = gtk_entry_new (); gtk_widget_show (plot_command_entry); gtk_box_pack_start (GTK_BOX (hbox1), plot_command_entry, TRUE, TRUE, 0); label1 = gtk_label_new (_("spice commands")); gtk_widget_show (label1); gtk_frame_set_label_widget (GTK_FRAME (frame1), label1); gtk_label_set_use_markup (GTK_LABEL (label1), TRUE); frame2 = gtk_frame_new (NULL); gtk_widget_show (frame2); gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame2, TRUE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame2), GTK_SHADOW_IN); alignment2 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment2); gtk_container_add (GTK_CONTAINER (frame2), alignment2); gtk_container_set_border_width (GTK_CONTAINER (alignment2), 1); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment2), 0, 0, 12, 0); vbox2 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox2); gtk_container_add (GTK_CONTAINER (alignment2), vbox2); hbox5 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (vbox2), hbox5, TRUE, TRUE, 0); label9 = gtk_label_new (_("Help command: ")); gtk_widget_show (label9); gtk_box_pack_start (GTK_BOX (hbox5), label9, FALSE, FALSE, 0); help_command_entry = gtk_entry_new (); gtk_widget_show (help_command_entry); gtk_box_pack_end (GTK_BOX (hbox5), help_command_entry, TRUE, TRUE, 0); gtk_entry_set_width_chars (GTK_ENTRY (help_command_entry), 10); hseparator4 = gtk_hseparator_new (); gtk_widget_show (hseparator4); gtk_box_pack_start (GTK_BOX (vbox2), hseparator4, TRUE, TRUE, 0); hbox6 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox6); gtk_box_pack_start (GTK_BOX (vbox2), hbox6, TRUE, TRUE, 0); label10 = gtk_label_new (_("HTML index: ")); gtk_widget_show (label10); gtk_box_pack_start (GTK_BOX (hbox6), label10, FALSE, FALSE, 0); html_index_entry = gtk_entry_new (); gtk_widget_show (html_index_entry); gtk_box_pack_end (GTK_BOX (hbox6), html_index_entry, TRUE, TRUE, 0); gtk_entry_set_width_chars (GTK_ENTRY (html_index_entry), 10); label2 = gtk_label_new (_("spice help")); gtk_widget_show (label2); gtk_frame_set_label_widget (GTK_FRAME (frame2), label2); gtk_label_set_use_markup (GTK_LABEL (label2), TRUE); frame3 = gtk_frame_new (NULL); gtk_widget_show (frame3); gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame3, TRUE, TRUE, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame3), GTK_SHADOW_IN); alignment3 = gtk_alignment_new (0.5, 0.5, 1, 1); gtk_widget_show (alignment3); gtk_container_add (GTK_CONTAINER (frame3), alignment3); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment3), 0, 0, 12, 0); vbox3 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox3); gtk_container_add (GTK_CONTAINER (alignment3), vbox3); hbox7 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox7); gtk_box_pack_start (GTK_BOX (vbox3), hbox7, TRUE, TRUE, 0); label11 = gtk_label_new (_("Browser: ")); gtk_widget_show (label11); gtk_box_pack_start (GTK_BOX (hbox7), label11, FALSE, FALSE, 0); browser_entry = gtk_entry_new (); gtk_widget_show (browser_entry); gtk_box_pack_end (GTK_BOX (hbox7), browser_entry, TRUE, TRUE, 0); hseparator5 = gtk_hseparator_new (); gtk_widget_show (hseparator5); gtk_box_pack_start (GTK_BOX (vbox3), hseparator5, TRUE, TRUE, 0); hbox8 = gtk_hbox_new (FALSE, 0); gtk_widget_show (hbox8); gtk_box_pack_start (GTK_BOX (vbox3), hbox8, TRUE, TRUE, 0); label5 = gtk_label_new (_("Text editor: ")); gtk_widget_show (label5); gtk_box_pack_start (GTK_BOX (hbox8), label5, FALSE, FALSE, 0); texteditor_entry = gtk_entry_new (); gtk_widget_show (texteditor_entry); gtk_box_pack_end (GTK_BOX (hbox8), texteditor_entry, TRUE, TRUE, 0); label3 = gtk_label_new (_("other programms")); gtk_widget_show (label3); gtk_frame_set_label_widget (GTK_FRAME (frame3), label3); gtk_label_set_use_markup (GTK_LABEL (label3), TRUE); dialog_action_area1 = GTK_DIALOG (command_setup)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); defaultbutton1 = gtk_button_new_with_mnemonic (_("Default")); gtk_widget_show (defaultbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (command_setup), defaultbutton1, 0); GTK_WIDGET_SET_FLAGS (defaultbutton1, GTK_CAN_DEFAULT); cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (cancelbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (command_setup), cancelbutton1, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT); okbutton1 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (command_setup), okbutton1, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) command_setup, "destroy", G_CALLBACK (on_command_setup_destroy), prog); g_signal_connect ((gpointer) defaultbutton1, "clicked", G_CALLBACK (on_command_setup_default_clicked), prog); g_signal_connect ((gpointer) cancelbutton1, "clicked", G_CALLBACK (on_command_setup_cancel_clicked), prog); g_signal_connect ((gpointer) okbutton1, "clicked", G_CALLBACK (on_command_setup_ok_clicked), prog); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (command_setup, command_setup, "command_setup"); GLADE_HOOKUP_OBJECT_NO_REF (command_setup, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (command_setup, frame1, "frame1"); GLADE_HOOKUP_OBJECT (command_setup, alignment1, "alignment1"); GLADE_HOOKUP_OBJECT (command_setup, vbox1, "vbox1"); GLADE_HOOKUP_OBJECT (command_setup, hbox3, "hbox3"); GLADE_HOOKUP_OBJECT (command_setup, label7, "label7"); GLADE_HOOKUP_OBJECT (command_setup, simulator_command_entry, "simulator_command_entry"); GLADE_HOOKUP_OBJECT (command_setup, hseparator1, "hseparator1"); GLADE_HOOKUP_OBJECT (command_setup, hbox1, "hbox1"); GLADE_HOOKUP_OBJECT (command_setup, label4, "label4"); GLADE_HOOKUP_OBJECT (command_setup, plot_command_entry, "plot_command_entry"); GLADE_HOOKUP_OBJECT (command_setup, label1, "label1"); GLADE_HOOKUP_OBJECT (command_setup, frame2, "frame2"); GLADE_HOOKUP_OBJECT (command_setup, alignment2, "alignment2"); GLADE_HOOKUP_OBJECT (command_setup, vbox2, "vbox2"); GLADE_HOOKUP_OBJECT (command_setup, hbox5, "hbox5"); GLADE_HOOKUP_OBJECT (command_setup, label9, "label9"); GLADE_HOOKUP_OBJECT (command_setup, help_command_entry, "help_command_entry"); GLADE_HOOKUP_OBJECT (command_setup, hseparator4, "hseparator4"); GLADE_HOOKUP_OBJECT (command_setup, hbox6, "hbox6"); GLADE_HOOKUP_OBJECT (command_setup, label10, "label10"); GLADE_HOOKUP_OBJECT (command_setup, html_index_entry, "html_index_entry"); GLADE_HOOKUP_OBJECT (command_setup, label2, "label2"); GLADE_HOOKUP_OBJECT (command_setup, frame3, "frame3"); GLADE_HOOKUP_OBJECT (command_setup, alignment3, "alignment3"); GLADE_HOOKUP_OBJECT (command_setup, vbox3, "vbox3"); GLADE_HOOKUP_OBJECT (command_setup, hbox7, "hbox7"); GLADE_HOOKUP_OBJECT (command_setup, label11, "label11"); GLADE_HOOKUP_OBJECT (command_setup, browser_entry, "browser_entry"); GLADE_HOOKUP_OBJECT (command_setup, hseparator5, "hseparator5"); GLADE_HOOKUP_OBJECT (command_setup, hbox8, "hbox8"); GLADE_HOOKUP_OBJECT (command_setup, label5, "label5"); GLADE_HOOKUP_OBJECT (command_setup, texteditor_entry, "texteditor_entry"); GLADE_HOOKUP_OBJECT (command_setup, label3, "label3"); GLADE_HOOKUP_OBJECT_NO_REF (command_setup, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (command_setup, defaultbutton1, "defaultbutton1"); GLADE_HOOKUP_OBJECT (command_setup, cancelbutton1, "cancelbutton1"); GLADE_HOOKUP_OBJECT (command_setup, okbutton1, "okbutton1"); return command_setup; } GtkWidget* create_quickmessage (gchar *title, gchar *text) { GtkWidget *quickmessage; GtkWidget *dialog_vbox1; GtkWidget *message; GtkWidget *dialog_action_area1; GtkWidget *okbutton1; quickmessage = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (quickmessage), title); gtk_window_set_modal (GTK_WINDOW (quickmessage), TRUE); gtk_window_set_type_hint (GTK_WINDOW (quickmessage), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox1 = GTK_DIALOG (quickmessage)->vbox; gtk_widget_show (dialog_vbox1); message = gtk_label_new (text); gtk_widget_show (message); gtk_box_pack_start (GTK_BOX (dialog_vbox1), message, FALSE, FALSE, 2); GTK_WIDGET_SET_FLAGS (message, GTK_CAN_FOCUS); gtk_label_set_selectable (GTK_LABEL (message), TRUE); dialog_action_area1 = GTK_DIALOG (quickmessage)->action_area; gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); okbutton1 = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (okbutton1); gtk_dialog_add_action_widget (GTK_DIALOG (quickmessage), okbutton1, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) okbutton1, "clicked", G_CALLBACK (on_quickmessage_ok_clicked), GTK_OBJECT (quickmessage)); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (quickmessage, quickmessage, "quickmessage"); GLADE_HOOKUP_OBJECT_NO_REF (quickmessage, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (quickmessage, message, "message"); GLADE_HOOKUP_OBJECT_NO_REF (quickmessage, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (quickmessage, okbutton1, "okbutton1"); gtk_widget_show(quickmessage); return quickmessage; } GtkWidget* create_postproc (PostProcessing *postproc) { GtkWidget *dialog; GtkWidget *dialog_vbox2; GtkWidget *vbox1; GtkWidget *label4; GtkWidget *hseparator1; GtkWidget *scrolledwindow2; GtkWidget *textview; GtkWidget *dialog_action_area2; GtkWidget *button_cancel; GtkWidget *button_ok; dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (dialog), _("Post traitement")); gtk_window_set_type_hint (GTK_WINDOW (dialog), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox2 = GTK_DIALOG (dialog)->vbox; gtk_widget_show (dialog_vbox2); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox1); gtk_box_pack_start (GTK_BOX (dialog_vbox2), vbox1, TRUE, TRUE, 0); label4 = gtk_label_new (_("For all simulations:")); gtk_widget_show (label4); gtk_box_pack_start (GTK_BOX (vbox1), label4, FALSE, FALSE, 0); hseparator1 = gtk_hseparator_new (); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox1), hseparator1, FALSE, TRUE, 5); scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow2); gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow2, TRUE, TRUE, 0); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_SHADOW_IN); textview = gtk_text_view_new (); gtk_widget_show (textview); gtk_container_add (GTK_CONTAINER (scrolledwindow2), textview); dialog_action_area2 = GTK_DIALOG (dialog)->action_area; gtk_widget_show (dialog_action_area2); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END); button_cancel = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (button_cancel); gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button_cancel, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (button_cancel, GTK_CAN_DEFAULT); button_ok = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (button_ok); gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button_ok, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (button_ok, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) dialog, "destroy", G_CALLBACK (on_postprocessing_destroy), postproc); g_signal_connect ((gpointer) button_cancel, "clicked", G_CALLBACK (on_postprocessing_button_cancel_clicked), postproc); g_signal_connect ((gpointer) button_ok, "clicked", G_CALLBACK (on_postprocessing_button_ok_clicked), postproc); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (dialog, dialog, "dialog"); GLADE_HOOKUP_OBJECT_NO_REF (dialog, dialog_vbox2, "dialog_vbox2"); GLADE_HOOKUP_OBJECT (dialog, vbox1, "vbox1"); GLADE_HOOKUP_OBJECT (dialog, label4, "label4"); GLADE_HOOKUP_OBJECT (dialog, hseparator1, "hseparator1"); GLADE_HOOKUP_OBJECT (dialog, scrolledwindow2, "scrolledwindow2"); GLADE_HOOKUP_OBJECT (dialog, textview, "textview"); GLADE_HOOKUP_OBJECT_NO_REF (dialog, dialog_action_area2, "dialog_action_area2"); GLADE_HOOKUP_OBJECT (dialog, button_cancel, "button_cancel"); GLADE_HOOKUP_OBJECT (dialog, button_ok, "button_ok"); return dialog; } GtkWidget* create_library_dialog (SpiceLibrary *spicelib) { GtkWidget *library_dialog; GtkWidget *vbox1; GtkWidget *scrolledwindow1; GtkWidget *treeview1; GtkWidget *hseparator1; GtkWidget *hbuttonbox1; GtkWidget *button_add; GtkWidget *button_remove; GtkWidget *button_edit; GtkWidget *hbuttonbox2; GtkWidget *button_cancel; GtkWidget *button_ok; GtkCellRenderer *renderer; GtkTreeViewColumn *column; library_dialog = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (library_dialog), _("library editor")); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (library_dialog), vbox1); scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_show (scrolledwindow1); gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow1, TRUE, TRUE, 0); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_SHADOW_IN); treeview1 = gtk_tree_view_new_with_model(GTK_TREE_MODEL(spicelib->store)); gtk_widget_show (treeview1); gtk_container_add (GTK_CONTAINER (scrolledwindow1), treeview1); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview1), FALSE); gtk_widget_set_size_request (treeview1, -1, 200); /* set the controller of the MVC-system */ renderer=gtk_cell_renderer_text_new(); column=gtk_tree_view_column_new_with_attributes(_("Libraries"), renderer,"text",0,NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(treeview1),column); /* */ hseparator1 = gtk_hseparator_new (); gtk_widget_show (hseparator1); gtk_box_pack_start (GTK_BOX (vbox1), hseparator1, FALSE, TRUE, 5); hbuttonbox1 = gtk_hbutton_box_new (); gtk_widget_show (hbuttonbox1); gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, FALSE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox1), 5); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END); gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 5); button_add = gtk_button_new_from_stock ("gtk-add"); gtk_widget_show (button_add); gtk_container_add (GTK_CONTAINER (hbuttonbox1), button_add); GTK_WIDGET_SET_FLAGS (button_add, GTK_CAN_DEFAULT); button_remove = gtk_button_new_from_stock ("gtk-remove"); gtk_widget_show (button_remove); gtk_container_add (GTK_CONTAINER (hbuttonbox1), button_remove); GTK_WIDGET_SET_FLAGS (button_remove, GTK_CAN_DEFAULT); button_edit = gtk_button_new_from_stock ("gtk-edit"); gtk_widget_show (button_edit); gtk_container_add (GTK_CONTAINER (hbuttonbox1), button_edit); GTK_WIDGET_SET_FLAGS (button_edit, GTK_CAN_DEFAULT); hbuttonbox2 = gtk_hbutton_box_new (); gtk_widget_show (hbuttonbox2); gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox2, FALSE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox2), 5); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox2), GTK_BUTTONBOX_END); gtk_box_set_spacing (GTK_BOX (hbuttonbox2), 5); button_cancel = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (button_cancel); gtk_container_add (GTK_CONTAINER (hbuttonbox2), button_cancel); GTK_WIDGET_SET_FLAGS (button_cancel, GTK_CAN_DEFAULT); button_ok = gtk_button_new_from_stock ("gtk-ok"); gtk_widget_show (button_ok); gtk_container_add (GTK_CONTAINER (hbuttonbox2), button_ok); GTK_WIDGET_SET_FLAGS (button_ok, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) library_dialog, "destroy", G_CALLBACK (on_library_dialog_destroy), spicelib); g_signal_connect ((gpointer) button_add, "clicked", G_CALLBACK (on_library_dialog_add_clicked), spicelib); g_signal_connect ((gpointer) button_remove, "clicked", G_CALLBACK (on_library_dialog_remove_clicked), spicelib); g_signal_connect ((gpointer) button_edit, "clicked", G_CALLBACK (on_library_dialog_edit_clicked), spicelib); g_signal_connect ((gpointer) button_cancel, "clicked", G_CALLBACK (on_library_dialog_cancel_clicked), spicelib); g_signal_connect ((gpointer) button_ok, "clicked", G_CALLBACK (on_library_dialog_ok_clicked), spicelib); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (library_dialog, library_dialog, "library_dialog"); GLADE_HOOKUP_OBJECT (library_dialog, vbox1, "vbox1"); GLADE_HOOKUP_OBJECT (library_dialog, scrolledwindow1, "scrolledwindow1"); GLADE_HOOKUP_OBJECT (library_dialog, treeview1, "treeview1"); GLADE_HOOKUP_OBJECT (library_dialog, hseparator1, "hseparator1"); GLADE_HOOKUP_OBJECT (library_dialog, hbuttonbox1, "hbuttonbox1"); GLADE_HOOKUP_OBJECT (library_dialog, button_add, "button_add"); GLADE_HOOKUP_OBJECT (library_dialog, button_remove, "button_remove"); GLADE_HOOKUP_OBJECT (library_dialog, button_edit, "button_edit"); GLADE_HOOKUP_OBJECT (library_dialog, hbuttonbox2, "hbuttonbox2"); GLADE_HOOKUP_OBJECT (library_dialog, button_cancel, "button_cancel"); GLADE_HOOKUP_OBJECT (library_dialog, button_ok, "button_ok"); return library_dialog; } easy_spice-0.6.8/src/prototypes.h0000644000175000001440000002372210671541647013777 00000000000000/* callbacks.c */ void on_visu_schem_clicked(GtkButton *button, EasySpice *es); void on_gen_netlist_clicked(GtkButton *button, EasySpice *es); void on_visu_netlist_clicked(GtkButton *button, EasySpice *es); void on_op_ok_clicked(GtkButton *button, EasySpice *es); void on_dc_ok_clicked(GtkButton *button, EasySpice *es); void on_ac_ok_clicked(GtkButton *button, EasySpice *es); void on_tran_ok_clicked(GtkButton *button, EasySpice *es); void on_tf_ok_clicked(GtkButton *button, EasySpice *es); void on_noise_ok_clicked(GtkButton *button, EasySpice *es); void on_spice_default_clicked(GtkButton *button, gpointer user_data); void on_plot_res_activate(GtkMenuItem *menuitem, ExternalProgramms *ep); void on_param_enable_pressed(GtkButton *button, EasySpice *es); void on_param_lin_pressed(GtkButton *button, EasySpice *es); void on_param_dec_pressed(GtkButton *button, EasySpice *es); void on_param_list_pressed(GtkButton *button, EasySpice *es); void on_ac_dec_pressed(GtkButton *button, EasySpice *es); void on_ac_lin_pressed(GtkButton *button, EasySpice *es); void on_ac_oct_pressed(GtkButton *button, EasySpice *es); void on_noise_dec_pressed(GtkButton *button, EasySpice *es); void on_noise_lin_pressed(GtkButton *button, EasySpice *es); void on_noise_oct_pressed(GtkButton *button, EasySpice *es); void on_plot_reset_clicked(GtkButton *button, EasySpice *es); void on_plot_ok_clicked(GtkButton *button, EasySpice *es); void on_plot_xscale_default_clicked(GtkButton *button, EasySpice *es); void on_plot_xscale_value_clicked(GtkButton *button, EasySpice *es); gboolean do_not_destroy(GtkWidget *widget, GdkEvent *event, gpointer user_data); void on_op_node_changed(GtkEditable *editable, EasySpice *es); void on_op_device_changed(GtkEditable *editable, EasySpice *es); void on_op_item_changed(GtkEditable *editable, EasySpice *es); void on_viewerspiceoutput_clicked(GtkButton *button, EasySpice *es); void on_textviewer_button_close_clicked(GtkButton *button, Textviewer *tv); void on_textviewer_destroy(GtkDialog *dialog, Textviewer *tv); void on_geda_setup_destroy(GtkDialog *dialog, GedaSettings *geda); void on_geda_setup_default_clicked(GtkButton *button, GedaSettings *geda); void on_geda_setup_ok_clicked(GtkButton *button, GedaSettings *geda); void on_geda_setup_cancel_clicked(GtkButton *button, GedaSettings *geda); void on_command_setup_destroy(GtkDialog *dialog, ExternalProgramms *prog); void on_command_setup_default_clicked(GtkButton *button, ExternalProgramms *prog); void on_command_setup_cancel_clicked(GtkButton *button, ExternalProgramms *prog); void on_command_setup_ok_clicked(GtkButton *button, ExternalProgramms *prog); void on_quickmessage_ok_clicked(GtkButton *button, GtkWidget *dialog); void on_verify_quit_button_no_clicked(GtkButton *button, GtkWidget *dialog); void on_verify_quit_button_yes_clicked(GtkButton *button, GtkWidget *dialog); void on_postprocessing_destroy(GtkWidget *widget, PostProcessing *postproc); void on_postprocessing_button_cancel_clicked(GtkButton *button, PostProcessing *postproc); void on_postprocessing_button_ok_clicked(GtkButton *button, PostProcessing *postproc); void on_library_dialog_destroy(GtkWidget *widget, SpiceLibrary *spicelib); void on_library_dialog_add_clicked(GtkButton *button, SpiceLibrary *spicelib); void on_library_file_select(GtkWidget *file_dialog, gpointer user_data); void on_library_dialog_remove_clicked(GtkButton *button, SpiceLibrary *spicelib); void on_library_dialog_edit_clicked(GtkButton *button, SpiceLibrary *spicelib); void on_library_dialog_cancel_clicked(GtkButton *button, SpiceLibrary *spicelib); void on_library_dialog_ok_clicked(GtkButton *button, SpiceLibrary *spicelib); /* geda.c */ void visu_result_gschem(EasySpice *es); void geda_create_config(GedaSettings *geda); /* interface.c */ GtkWidget *create_toplevel_window(EasySpice *easyspice); GtkWidget *create_verify_quit(void); GtkWidget *create_config_spice(void); GtkWidget *create_txt_viewer(Textviewer *textviewer); GtkWidget *create_geda_setup(GedaSettings *geda); GtkWidget *create_command_setup(ExternalProgramms *prog); GtkWidget *create_quickmessage(gchar *title, gchar *text); GtkWidget *create_postproc(PostProcessing *postproc); GtkWidget *create_library_dialog(SpiceLibrary *spicelib); /* main.c */ int main(int argc, char *argv[]); /* menu.c */ void on_menu_file_new_activate(GtkMenuItem *menuitem, EasySpice *es); void on_new_file_select(GtkWidget *file_dialog, gpointer user_data); void on_menu_file_open_activate(GtkMenuItem *menuitem, EasySpice *es); void on_open_file_select(GtkWidget *file_dialog, gpointer user_data); void localconfiguration_file_read(EasySpice *es); void configuration_file_read(EasySpice *es, gchar *filename); void configuration_file_read_new(EasySpice *es, gchar *filename); void configuration_file_read_old(EasySpice *es, gchar *filename); void localconfiguration_file_write(EasySpice *es); void configuration_file_write_new(EasySpice *es, gchar *filename, gboolean configfile); void configuration_file_write_old(EasySpice *es, gchar *filename); void write_multiline_text(FILE *file, gchar *section, gchar *name, gchar *data); void on_menu_file_save_activate(GtkMenuItem *menuitem, EasySpice *es); void on_menu_file_saveas_activate(GtkMenuItem *menuitem, EasySpice *es); void on_saveas_file_select(GtkWidget *file_dialog, gpointer user_data); void on_menu_file_quit_activate(GtkMenuItem *menuitem, EasySpice *es); gboolean on_main_window_destroy_event(GtkWidget *widget, GdkEvent *event, EasySpice *es); void on_menu_options_commands_activate(GtkMenuItem *menuitem, ExternalProgramms *prog); void on_menu_options_library_activate(GtkMenuItem *menuitem, SpiceLibrary *spicelib); void on_menu_options_gschem_activate(GtkMenuItem *menuitem, GedaSettings *geda); void on_menu_options_save_activate (GtkMenuItem *menuitem, EasySpice *es); void on_menu_windows_simulcommands_activate(GtkMenuItem *menuitem, EasySpice *es); void on_menu_windows_plotcommands_activate(GtkMenuItem *menuitem, EasySpice *es); void on_menu_windows_spiceinteractive_activate(GtkMenuItem *menuitem, ExternalProgramms *ep); void on_menu_windows_postproc_activate(GtkMenuItem *menuitem, PostProcessing *postproc); void on_menu_help_spiceman_activate(GtkMenuItem *menuitem, ExternalProgramms *ep); void on_menu_help_spicehtml_activate(GtkMenuItem *menuitem, ExternalProgramms *ep); void on_menu_help_spicehelp_activate(GtkMenuItem *menuitem, ExternalProgramms *ep); void on_menu_help_about_activate(GtkMenuItem *menuitem, gpointer user_data); /* netlist.c */ void print_list(GList *list); void free_element(void *ptr, gpointer user_data); void free_keyvalue(KeyValue *kv, gpointer user_data); void free_device(SpiceDevice *dev, gpointer user_data); void netlist_read(SpiceNetlist *result, gchar *filename); gint netlist_test(EasySpice *es, gboolean verbose); void netlist2easy(EasySpice *es, SpiceNetlist *netlist); /* spice.c */ void spice2easy(EasySpice *es); int spice_test_field(EasySpice *es, gint type_simul); void fatal_error(EasySpice *es); int spice_parse_error_file(gchar *filename); void spice_txt_results(EasySpice *es); int spice_test_error(EasySpice *es); void spice_write_simul(FILE *fp_simul, gint type_simul, EasySpice *es); void spice_view_result(EasySpice *es, int type_simul, int n_step); gint spice_write_cir(EasySpice *es, FILE *fp_simul, int type_simul); void spice_start_spice(EasySpice *es); void simul(EasySpice *es, gint type_simul); /* spice_plot.c */ void create_spice_plot_file(EasySpice *es, int n_step, int type_simul); void start_plot(EasySpice *es); void destroy_plot(EasySpice *es); /* support.c */ GtkWidget *lookup_widget(GtkWidget *widget, const gchar *widget_name); void add_pixmap_directory(const gchar *directory); GtkWidget *create_pixmap(GtkWidget *widget, const gchar *filename); /* util.c */ gchar *val2txt(double val, int mode); gchar *update_str(gchar *ptr, const gchar *str); void set_str(gchar **dest, const gchar *str); gchar *get_gtk_entry(GtkWidget *widget, gchar *entry_name); void set_gtk_entry(char *text, GtkWidget *widget, char *entry_name); gboolean get_gtk_toggle_button(GtkWidget *widget, char *entry_name); void set_gtk_toggle_button(GtkWidget *widget, char *entry_name); gboolean textfile2buffer(gchar *textfile, GtkTextBuffer *buffer); void write_log(gchar *message); void clean_log(EasySpice *es); void clean_std_output(EasySpice *es); void clean_std_err(EasySpice *es); void easyspice_init(EasySpice *es); void easyspice_filename_update(EasySpice *es); void spice_variables_init(SpiceVariables *sv); void spice_variables_default(SpiceVariables *sv); void spice_variables_set_entries(GtkWidget *win, SpiceVariables *sv); void spice_variables_get_entries(GtkWidget *win, SpiceVariables *sv); void spice_variables_delete(SpiceVariables *sv); void readspice_value(gchar **dest, gchar *s1, gchar *s2, gchar *value); void textviewer_init(Textviewer *tv); void geda_settings_init(GedaSettings *geda); void geda_settings_default(GedaSettings *geda); void geda_settings_delete(GedaSettings *geda); void geda_settings_set_entries(GtkWidget *dialog, GedaSettings *geda); void geda_settings_get_entries(GtkWidget *dialog, GedaSettings *geda); void commands_init(ExternalProgramms *prog); void commands_set_default(ExternalProgramms *prog); void commands_delete(ExternalProgramms *prog); void commands_set_entries(GtkWidget *dialog, ExternalProgramms *prog); void commands_get_entries(GtkWidget *dialog, ExternalProgramms *prog); void postprocessing_init(PostProcessing *postproc); void postprocessing_set_entries(PostProcessing *postproc); void postprocessing_get_entries(PostProcessing *postproc); void postprocessing_delete(PostProcessing *postproc); void spicelibrary_init(SpiceLibrary *spicelib); void spicelibrary_delete(SpiceLibrary *spicelib); double spice2double(gchar *sp_value); void project_set_title(EasySpice *es); void textfile_view(Textviewer *tv, gchar *filename); void select_fichier(gchar *titre, gint type); void led_ok(GtkWidget *win); void led_false(GtkWidget *win); void led_off(GtkWidget *win); void keyvalue_print_list(GList *item); gint keyvalue_compare_key(KeyValue *kv1, gchar *key); gint spicedevice_compare_name(SpiceDevice *sd, gchar *name); easy_spice-0.6.8/src/spice.c0000644000175000001440000005012010671542661012632 00000000000000/* * easy_spice - a spice front end * Copyright (C) 2001 Routoure Jean-Marc. * * 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 Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ /* This part of the code concerns the spice interface */ /* there is also the test of the different entry */ #ifdef HAVE_CONFIG_H # include #endif #include "easyspice.h" /* ----------------------------------- */ /* Read the spice result and put */ /* the result into easy_spice */ /* ----------------------------------- */ void spice2easy(EasySpice *es) { FILE *fp; gchar line[FICHIER_MAX_LINE], **tokens; gint from, to; gchar *over; enum ParserStatus {ERROR=0, DEVICES, DEV_RESULTS, OP_RESULTS}; gint parser=ERROR; GList *device_result=NULL, *tmp, *nodes=NULL; KeyValue *res; KeyValue *op_res; SpiceDevice *dev_current=NULL; if ((fp=fopen(es->file_spice_results,"rt")) == NULL) { write_log("ERROR: unable to open the result file\n"); return; } /* Free the op_result list */ for (tmp=g_list_first(es->netlist->op_result); tmp != NULL; tmp = g_list_next(tmp)) { g_free(((KeyValue*)(tmp->data))->key); g_free(((KeyValue*)(tmp->data))->value); g_free(tmp->data); /* KeyValue structure */ } g_list_free(es->netlist->op_result); es->netlist->op_result=NULL; /*this is how the model section looks like: * *result_show: * Resistor: Simple linear resistor * device r5 * model R * resistance 1000 * ac 1000 * dtemp 0 * noisy 1 * i 5.26316e-05 * p 2.77008e-06 * */ /*this is how the result section looks like * *result_op: *n0 = 1.000000e+00 *n1 = 9.473684e-01 *n2 = 8.947368e-01 *n3 = 6.315789e-01 *n4 = 5.789474e-01 *n5 = 5.263158e-01 *v1#branch = -5.26316e-05 */ while (fgets(line, FICHIER_MAX_LINE, fp) != NULL) { /* replace the newline and the equal sign with spaces */ g_strdelimit(line,"=\n",' '); tokens= g_strsplit(line, " ", -1); /* now we have tokens={"","tok1","","","","tok2",""} * lets move the tokens to the start of the list */ to=0; for (from=0; tokens[from] != NULL; from++) { if (strlen(tokens[from]) != 0) { if (from != to) { /* exchange the tokens */ over=tokens[from]; tokens[from]=tokens[to]; tokens[to]=over; } to++; } } /* "to" contains the number of non empty elements after this for-loop */ if (DEBUG) { printf(" line=\"%s\", from=%d, to=%d, parser=%d\n", line, from, to, parser); } /* each device is followed by an empty line * if we are inside a device and theres a line which contains only * the newline, we can copy the device to the array */ if (to == 0) { if (parser == DEV_RESULTS) { /* end of device results */ if (dev_current != NULL) dev_current->result = device_result; device_result = NULL; dev_current = NULL; parser = DEVICES; } else if (parser == OP_RESULTS) { parser = ERROR; } } else if (to == 1) { if (strcmp(tokens[0],"result_show:")==0) parser = DEVICES; if (strcmp(tokens[0],"result_op_start:") == 0) parser = OP_RESULTS; if (strcmp(tokens[0],"result_op_end") == 0) parser = ERROR; } else if (parser==DEVICES) { if (VERBOSE3) printf(" device section: tok1=%s, tok2=%s\n",tokens[0], tokens[1]); if (strcmp(tokens[0], "device") == 0) { /* device line */ /* search for the device in the device list */ tmp=g_list_find_custom(es->netlist->devices, tokens[1], (GCompareFunc) spicedevice_compare_name); if (tmp == NULL) { if (VERBOSE3) printf(" device not found\n"); } else { dev_current = tmp->data; parser = DEV_RESULTS; } } } else if (parser == DEV_RESULTS) { /* fill the device structure */ if (VERBOSE3) { printf("Device_Result section\n"); printf(" device=%s, value=%s\n",tokens[0], tokens[1]); } res=g_malloc(sizeof(KeyValue)); res->key=g_strdup(tokens[0]); res->value=g_strdup(tokens[1]); device_result=g_list_append(device_result, res); } else if (parser == OP_RESULTS) { if (VERBOSE3) { printf("OP_Results section\n"); printf(" nodename=%s, value=%s\n",tokens[0], tokens[1]); } op_res= g_malloc(sizeof(KeyValue)); op_res->key = g_strdup(tokens[0]); op_res->value = g_strdup(tokens[1]); es->netlist->op_result = g_list_append(es->netlist->op_result, op_res); } g_strfreev(tokens); } if (VERBOSE3) { printf("operation point results:\n"); keyvalue_print_list(es->netlist->op_result); } fclose(fp); /* get the result_names and the push it to the interface */ for (tmp=g_list_first(es->netlist->op_result); tmp != NULL; tmp=g_list_next(tmp)) { op_res=tmp->data; nodes=g_list_append(nodes, op_res->key); } gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(es->win_main,"op_node_combo")), nodes); /* tell the gui that the values have changed */ on_op_device_changed(NULL, es); on_op_node_changed(NULL, es); } /* ------------------------------------------ */ /* test the different field for all the simul */ /* return 1 if OK. */ /* -------------------------------------------*/ int spice_test_field(EasySpice *es, gint type_simul) { SpiceVariables *sv; int res=1; sv=es->spice_vars; switch (type_simul) { case SIMUL_DC: if (!(strcmp(sv->dc_source1,"") && strcmp(sv->dc_start1,"") && strcmp(sv->dc_stop1,"") && strcmp(sv->dc_inc1,""))) { write_log(_("Error: one field empty in first DC variable\n")); res=0; } /* the second source is always set by the listbox lets don't check the other values */ // if ((strcmp(sv->dc_source2,"") != 0) // && (!(strcmp(sv->dc_start2,"") // && strcmp(sv->dc_stop2,"") && strcmp(sv->dc_inc2,"")))) { // write_log(_("Error: one field empty in the second DC variable\n")); // res=0; // } break; case SIMUL_AC: if (strcmp(sv->ac_points,"") && strcmp(sv->ac_fmin,"") && strcmp(sv->ac_fmax,"")==0) { write_log(_("Error: One field empty in AC variables\n")); res=0; } break; case SIMUL_TRAN: if (strcmp(sv->tran_tstep,"") && strcmp(sv->tran_tstop,"")==0) { write_log(_("Error: One field empty in TRAN variables\n")); res=0; } break; case SIMUL_TF: if (strcmp(sv->tf_source,"") && strcmp(sv->tf_output,"")==0) { write_log(_("Error: One field empty in TF variables\n")); res=0; } break; case SIMUL_NOISE: if (strcmp(sv->noise_points,"") && strcmp(sv->noise_fmin,"") && strcmp(sv->noise_fmax,"") && strcmp(sv->noise_node,"") && strcmp(sv->noise_source,"")==0) { write_log(_("Error: One field empty in NOISE variables\n")); res=0; } break; default: write_log(_("Error in spice_test_field\n")); res=0; break; } if (res==0) led_false(es->win_main); else led_ok(es->win_main); return res; } /* ------------ Mise jour de la fentre d'erreur ---------------------*/ void fatal_error(EasySpice *es) { GtkTextBuffer *buffer; buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW(lookup_widget(es->win_main,"text_spice_error"))); textfile2buffer(es->file_spice_error, buffer); } /* ------------------------------------------------------------------------- */ /* After a simulation: count the errors in the output spice text file */ /* ------------------------------------------------------------------------- */ /* return O if OK */ /* return 1 if error (warning) */ /* return 2 if abort */ int spice_parse_error_file(gchar *filename) { int n_erreur=0, n_aborted=0; int return_value=0; FILE *file; gchar tmp[FICHIER_MAX_LINE]; gchar *error_msg=NULL, *err_tmp; if ((file=fopen(filename,"r"))==NULL) { create_quickmessage(_("Error"),_("Failed to open the\nspice error file!")); return_value=2; } else { while (fscanf(file,"%s",tmp)==1) { if ((strcasecmp(tmp,"error")==0) || (strcasecmp(tmp,"error:")==0)) n_erreur++; if ((strcasecmp(tmp,"aborted")==0) || (strcasecmp(tmp,"segmentation")==0)) n_aborted++; } fclose(file); if (n_erreur==0) { write_log(_("No error\n")); return_value=0; } else if (n_erreur==1) { error_msg=g_strdup_printf(_("One error found\n")); return_value=1; } else { error_msg=g_strdup_printf(_("%d errors founded\n"),n_erreur); return_value=1; } if (n_aborted>0) { err_tmp = error_msg; error_msg=g_strdup_printf(_("%sSimulation was not successful\n"), error_msg); g_free(err_tmp); return_value=2; } if ((n_erreur>0) || (n_aborted>0)) write_log(error_msg); g_free(error_msg); } return return_value; } /* ------------------------------- spice txt results ----------------------------*/ void spice_txt_results(EasySpice *es) { GtkTextBuffer *buffer; buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW(lookup_widget(es->win_main,"text_spice_output"))); textfile2buffer(es->file_spice_results, buffer); spice2easy(es); } /* -----------------------test if errors occurs during the simulation ------------ */ /* return 0 of OK */ /* 1 if warning */ /* 2 if aborted */ int spice_test_error(EasySpice *es) { int error1, error2, return_value=0; /* test of the result file */ write_log(_("Test of the results file\n")); error1=spice_parse_error_file(es->file_spice_results); if (DEBUG) printf("spice_test_error: Error1: %d\n",error1); /* test of the standard error file */ write_log(_("Test of the standard error ouput\n")); error2=spice_parse_error_file(es->file_spice_error); if (DEBUG) printf("spice_test_error: Error2: %d\n",error2); if (error2>0) fatal_error(es); if ((error1>1)||(error2>1)) return_value=1; else return_value=0; return return_value; } /* -------------------------------------------------------------------------------- */ /* to be removed: the returned pointer is dangling as the text is on the stack * but the memory of the strings is already freed */ //gchar* print_sweep_type(gint type_sweep) //{ // switch(type_sweep) { // case SWEEP_DEC: // return "dec"; // break; // case SWEEP_LIN: // return "lin"; // break; // case SWEEP_OCT: // return "oct"; // break; // default: // return ""; // } //} /* ------------------------------------------------------------------------ */ void spice_write_simul(FILE *fp_simul, gint type_simul, EasySpice *es) { gchar *sweeptype[]={"dec","lin","oct",""}; SpiceDevice *dev; GList *tmp; SpiceVariables *sv; SpiceNetlist *netlist; sv=es->spice_vars; netlist=es->netlist; switch (type_simul) { case SIMUL_OP: fprintf(fp_simul," op\n"); if (sv->op_show_netlist) { fprintf(fp_simul," echo -----------------------------------------------------\n"); fprintf(fp_simul,_(" echo -----listing of the circuit--------------------------\n")); fprintf(fp_simul," echo -----------------------------------------------------\n"); fprintf(fp_simul,"listing\n"); } fprintf(fp_simul,"echo result_show: \n"); /* show all devices for later processing */ for (tmp=g_list_first(netlist->devices); tmp != NULL; tmp=g_list_next(tmp)) { dev=tmp->data; fprintf(fp_simul," show %s \n", dev->name); } if (sv->op_show_models != FALSE) { fprintf(fp_simul," echo ---------------------------------------------\n"); fprintf(fp_simul,_(" echo ------- parameters of the devices -----------\n")); fprintf(fp_simul," echo ---------------------------------------------\n"); fprintf(fp_simul," showmod all\n"); } fprintf(fp_simul," echo ---------------------------------------------\n"); fprintf(fp_simul,_(" echo ------- operation point ----------------\n")); fprintf(fp_simul," echo ---------------------------------------------\n"); fprintf(fp_simul," echo result_op_start: \n"); fprintf(fp_simul," print all\n"); fprintf(fp_simul," echo result_op_end \n"); break; case SIMUL_DC: fprintf(fp_simul," set filetype=ascii\n"); fprintf(fp_simul," dc %s %s %s %s",sv->dc_source1, sv->dc_start1, sv->dc_stop1, sv->dc_inc1); /* test whether the second set of the dc parameter is complete */ if (strcmp(sv->dc_source2, "") && strcmp(sv->dc_start2, "") && strcmp(sv->dc_stop2, "") && strcmp(sv->dc_inc2, "")) fprintf(fp_simul," %s %s %s %s", sv->dc_source2, sv->dc_start2, sv->dc_stop2, sv->dc_inc2); fprintf(fp_simul,"\n"); break; case SIMUL_AC: fprintf(fp_simul," set filetype=ascii\n"); fprintf(fp_simul," ac %s %s %s %s \n", sweeptype[sv->ac_type], sv->ac_points, sv->ac_fmin, sv->ac_fmax); break; case SIMUL_TRAN: fprintf(fp_simul," set filetype=ascii\n"); fprintf(fp_simul," tran %s %s %s %s \n", sv->tran_tstep, sv->tran_tstop, sv->tran_tmax, sv->tran_tstart); break; case SIMUL_TF: fprintf(fp_simul," tf %s %s\n",sv->tf_output,sv->tf_source); fprintf(fp_simul," print all\n"); break; case SIMUL_NOISE: fprintf(fp_simul," set filetype=ascii\n"); fprintf(fp_simul," ac %s %s %s %s \n", sweeptype[sv->noise_type], sv->noise_points,sv->noise_fmin,sv->noise_fmax); fprintf(fp_simul," noise %s %s %s %s %s %s \n", sv->noise_node, sv->noise_source, sweeptype[sv->noise_type], sv->noise_points, sv->noise_fmin, sv->noise_fmax); // Modif pour ngspice14 // fprintf(fp_simul,"print all\n"); // fprintf(fp_simul,"destroy\n"); break; default: printf("spice_write_simul: FIXME: illegal value in simulation type\n"); } fprintf(fp_simul,"%s\n",es->postproc->commands); } void spice_view_result(EasySpice *es, int type_simul, int n_step) { char *buf; switch(type_simul) { case SIMUL_OP: /* TODO: generate a result list for the interface*/ /*show the results in a temporary schematic */ if (es->spice_vars->op_show_results_schematic != FALSE) { visu_result_gschem(es); buf=g_strdup_printf("gschem %s &",es->file_schematic_tmp); if (VERBOSE1) printf("executing: \"%s\"\n",buf); system(buf); g_free(buf); } break; case SIMUL_DC: create_spice_plot_file(es, n_step, type_simul); if (es->spice_vars->plot_autoupdate != FALSE) start_plot(es); break; case SIMUL_AC: create_spice_plot_file(es, n_step, type_simul); if (es->spice_vars->plot_autoupdate != FALSE) start_plot(es); break; case SIMUL_NOISE: create_spice_plot_file(es, n_step, type_simul); if (es->spice_vars->plot_autoupdate != FALSE) start_plot(es); break; case SIMUL_TRAN: create_spice_plot_file(es, n_step,type_simul); if (es->spice_vars->plot_autoupdate != FALSE) start_plot(es); break; case SIMUL_TF: break; } } /* ----------------------------------------------------------------------- */ gint spice_write_cir(EasySpice *es, FILE *fp_simul, int type_simul) { gchar **param_list=NULL; gboolean fin_param=FALSE; gint n_step=0; double var_step=0; GList *tmp; SpiceVariables *sv= es->spice_vars; fprintf(fp_simul,"* simulation of %s\n",es->project); fprintf(fp_simul,".control\n"); if (sv->param_activ == TRUE) { if (sv->param_type==SWEEP_LIST) param_list=g_strsplit(g_strstrip(sv->param_values)," ",-1); do { n_step++; if ((sv->param_type==SWEEP_LIN)||(sv->param_type==SWEEP_DEC)) { if (sv->param_type==SWEEP_LIN) var_step = (spice2double(sv->param_start)+ spice2double(sv->param_step)*(n_step-1)); if (sv->param_type==SWEEP_DEC) var_step = (spice2double(sv->param_start)* pow(10,(n_step-1)/spice2double(sv->param_step))); if (var_step>spice2double(sv->param_stop)) fin_param=TRUE; } if (sv->param_type==SWEEP_LIST) { if (param_list[n_step-1]==NULL) fin_param=TRUE; else { if (VERBOSE2) printf("Parameter %d from list: %s\n", n_step, param_list[n_step-1]); var_step=spice2double(param_list[n_step-1]); } } if (fin_param==FALSE) { if (VERBOSE2) printf("parametric simulation step %d\n",n_step); fprintf(fp_simul,"alter %s %s = %e\n",sv->param_name, sv->param_param, var_step); fprintf(fp_simul,"echo parameter %s %s = %e\n",sv->param_name, sv->param_param, var_step); fprintf(fp_simul,"let para=%e\n", var_step); spice_write_simul(fp_simul, type_simul, es); fprintf(fp_simul,"write rawspice%d.raw\n",n_step); } } while (fin_param==FALSE); if (sv->param_type==SWEEP_LIST) g_strfreev(param_list); } /* parametric simulation */ else { /* only a single simulation */ spice_write_simul(fp_simul, type_simul, es); fprintf(fp_simul,"write\n"); } /* ending the control section */ fprintf(fp_simul,".endc\n"); /* include the libraries */ for (tmp=g_list_first(es->spicelibrary->libs); tmp != NULL; tmp=g_list_next(tmp)) { fprintf(fp_simul,".include %s\n", (gchar*)(tmp->data)); } /* finaly include the spice netlist */ fprintf(fp_simul,".include %s\n", es->file_spice_netlist); /* FIXME: what is this return value good for? */ return n_step-1; } /* ------------------------- start the simulation -------------------- */ void spice_start_spice(EasySpice *es) { gchar *buf; buf=g_strdup_printf("%s -b %s >%s 2>%s", es->commands->spice_command, es->file_spice_simul, es->file_spice_results, es->file_spice_error); if (VERBOSE1) printf("executing: \"%s\"\n",buf); system(buf); g_free(buf); if (DEBUG) printf("spice.c: simulation done\n"); } /* ------------------------- create the file and do the simulation -------------------- */ void simul(EasySpice *es, gint type_simul) { FILE *fp_simul=NULL, *fp_tmp; gint n_step; if (DEBUG) printf("spice.c: Entering Simulation\n"); clean_log(es); clean_std_err(es); clean_std_output(es); led_off(es->win_main); if ((fp_tmp=fopen(es->file_spice_netlist,"r")) == NULL) { write_log(_("Error: No netlist")); led_false(es->win_main); return; } fclose(fp_tmp); if ((fp_simul = fopen(es->file_spice_simul, "w")) == NULL) { write_log(_("Error: Problem with spice .cir file.\n")); led_false(es->win_main); } else { n_step=spice_write_cir(es, fp_simul, type_simul); fclose(fp_simul); es->current_n_step=n_step; es->current_simul=type_simul; if (DEBUG) printf("spice.c: Step number %d\n",n_step); gtk_widget_set_sensitive(lookup_widget (GTK_WIDGET (es->win_main), "op_hbox_polarisation"),FALSE); gtk_widget_set_sensitive(lookup_widget (GTK_WIDGET (es->win_main), "op_hbox_device"),FALSE); gtk_widget_set_sensitive(lookup_widget (GTK_WIDGET (es->win_main), "plot_vbox"),FALSE); spice_start_spice(es); if (spice_test_error(es)==0) { /* NO ERROR */ gtk_widget_set_sensitive(lookup_widget (GTK_WIDGET (es->win_main), "op_hbox_polarisation"),TRUE); gtk_widget_set_sensitive(lookup_widget (GTK_WIDGET (es->win_main), "op_hbox_device"),TRUE); gtk_widget_set_sensitive(lookup_widget (GTK_WIDGET (es->win_main), "plot_vbox"),TRUE); led_ok(es->win_main); spice_txt_results(es); if (DEBUG) printf("done\n"); /* Show the simulation results */ spice_view_result(es, type_simul, es->current_n_step); } else { led_false(es->win_main); spice_txt_results(es); fatal_error(es); } } } easy_spice-0.6.8/src/netlist.c0000644000175000001440000002540010671272167013215 00000000000000/* * easy_spice - a spice front end * Copyright (C) 2001 Routoure Jean-Marc. * * 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 Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ /* This part of the code contains the routines for the netlist */ /* the test and so on . */ #ifdef HAVE_CONFIG_H # include #endif #include "easyspice.h" void print_list(GList *list) { for (list=g_list_first(list); list != NULL; list=g_list_next(list)) printf(" %s",(gchar *)list->data); printf("\n"); } void free_element (void *ptr, gpointer user_data) { g_free(ptr); } void free_keyvalue (KeyValue *kv, gpointer user_data) { g_free(kv->key); g_free(kv->value); g_free(kv); } void free_device (SpiceDevice *dev, gpointer user_data) { g_list_foreach(dev->result, (GFunc) free_keyvalue, NULL); g_list_free(dev->result); g_free(dev->name); } /* netlist is set NULL if there's a problem */ void netlist_read(SpiceNetlist *result ,gchar *filename) { gchar line[FICHIER_MAX_LINE]; gchar **tokens; GList *devices=NULL; GList *nodenames=NULL, *tmp_nodenames; SpiceDevice *tmp_device; int i,nodes=0;; FILE *fp1; if ((fp1=fopen(filename,"rt"))==NULL) { write_log(_("\nError: unable to open the netlist file\n")); return; } /* free all memory allocated by result->nodenames and result->devices */ g_list_foreach(result->nodenames, (GFunc) free_element, NULL); g_list_free(result->nodenames); result->nodenames=NULL; g_list_foreach(result->devices, (GFunc) free_device, NULL); g_list_free(result->devices); result->devices=NULL; while (fgets(line,FICHIER_MAX_LINE,fp1) != NULL) { tokens= g_strsplit(line, " ",0); g_strdown(tokens[0]); tmp_device=g_malloc(sizeof(SpiceDevice)); tmp_device->name=g_strdup_printf("%s",tokens[0]); tmp_device->result=NULL; switch (tokens[0][0]) { case 'r' : tmp_device->type=SPICE_DIPOLE; nodes=2; break; case 'l' : tmp_device->type=SPICE_DIPOLE; nodes=2;break; case 'c' : tmp_device->type=SPICE_DIPOLE; nodes=2;break; case 'd' : tmp_device->type=SPICE_DIPOLE; nodes=2;break; case 'q' : tmp_device->type=SPICE_TRANSISTOR; nodes=3;break; case 'w' : tmp_device->type=SPICE_TRANSISTOR; nodes=3;break; case 'j' : tmp_device->type=SPICE_TRANSISTOR; nodes=3;break; case 'm' : tmp_device->type=SPICE_TRANSISTOR; nodes=4;break; case 'e' : tmp_device->type=SPICE_OTHER; nodes=4;break; case 'f' : tmp_device->type=SPICE_OTHER; nodes=4;break; case 'g' : tmp_device->type=SPICE_OTHER; nodes=4;break; case 'h' : tmp_device->type=SPICE_OTHER; nodes=4;break; case 't' : tmp_device->type=SPICE_DIPOLE; nodes=4;break; case 'o' : tmp_device->type=SPICE_DIPOLE; nodes=4;break; case 'v' : tmp_device->type=SPICE_VOLTAGE_SOURCE; nodes=2;break; case 'i' : tmp_device->type=SPICE_CURRENT_SOURCE; nodes=2;break; case '*' : case '.' : case 'x' : tmp_device->name=NULL; if (VERBOSE3) printf("Ignore line: \"%s\"\n", tokens[0]); break; default : tmp_device->name=NULL; if (VERBOSE3) printf("FIXME: unknown device \"%s\"\n",tokens[0]); } if (tmp_device->name == NULL) g_free(tmp_device); /* no device found */ else { if (VERBOSE3) printf(" Device: %s \n",tokens[0]); for (i=1; i<=nodes; i++) { if (VERBOSE3) printf(" Node: %s \n", tokens[i]); /* put the node to the list if it is not already in it */ nodenames=g_list_first(nodenames); tmp_nodenames=g_list_find_custom(nodenames, tokens[i], (GCompareFunc) strcmp); if (tmp_nodenames==NULL) nodenames=g_list_insert_sorted(nodenames, g_strdup(tokens[i]), (GCompareFunc) strcmp); } if (VERBOSE3) { print_list(nodenames); printf("\n"); } devices=g_list_append(devices, tmp_device); } g_strfreev(tokens); } if (DEBUG) printf("Close netlist file\n"); fclose(fp1); if (DEBUG) printf("Assign results\n"); result->nodenames=nodenames; result->devices=devices; } /* ------------------------------------------------------------------ */ /* Return 0 if any problems */ /* Return 1 if an error is found */ /* if affiche==1 then print informations in the log window */ /* ------------------------------------------------------------------ */ gint netlist_test(EasySpice *es, gboolean verbose) { gint return_value, j, gnd=0; GList *tmp; gchar *node; SpiceDevice *dev; SpiceNetlist *netlist; netlist=es->netlist; if (DEBUG) printf("Testing the netlist\n"); /* Test if the *netlist is not empty */ if (netlist->nodenames==NULL) { return_value=1; if (DEBUG) printf("Netlist is empty\n"); if (verbose != FALSE) write_log(_("No netlist\n")); } else { return_value=0; if (DEBUG) printf("netlist!=NULL\n"); if (verbose!=FALSE) { clean_log(es); write_log(_("Testing netlist\n")); } for (tmp=g_list_first(netlist->nodenames); tmp != NULL; tmp=g_list_next(tmp)) { node =(gchar *)tmp->data ; if (strcmp(node,"unconnected_pin")==0) { return_value=1; if (verbose!=FALSE) write_log(_("Error : pin not connected\n")); } if (strcmp(node,"0")==0) gnd++; } if (gnd==0) { return_value=1; if (verbose!=FALSE) write_log(_("no ground\nMake sure to put an attribute label = 0" " for the ground potential\n")); } for (tmp=g_list_first(netlist->devices); tmp !=NULL; tmp=g_list_next(tmp)) { dev=tmp->data; if (strlen(dev->name)==0) { return_value=1; if (verbose!=FALSE) write_log(_("One missing uref\n")); } else for (j=0;jname);j++) { if ((dev->name)[j]=='?') { return_value=1; if (verbose!=FALSE) { write_log(_("Invalid name for uref:")); write_log(dev->name); write_log("\n"); } } } } } if ((verbose!=FALSE) && (return_value==1)) write_log(_("Error(s) in the netlist\n")); if ((verbose!=FALSE) && (return_value==0)) write_log(_("No error(s)\n")); if (return_value==0) led_ok(es->win_main); else led_false(es->win_main); if (DEBUG) printf("Leaving netlist_test\n"); return return_value; } /* ------------------------------------------------------------------ */ /* take the netlist and put the informations into window */ /* ------------------------------------------------------------------ */ void netlist2easy(EasySpice *es, SpiceNetlist *netlist) { GList *devices=NULL, *sources=NULL, *v_nodes=NULL;; GList *tmp; SpiceDevice *dev; gchar *entry; GtkWidget *win= es->win_main; /* first, we have to create the list */ for (tmp=g_list_first(netlist->devices); tmp != NULL; tmp=g_list_next(tmp)) { dev=tmp->data; if (DEBUG) printf("%s\n",dev->name); devices=g_list_insert_sorted(devices,dev->name, (GCompareFunc) strcmp); if ((dev->type==SPICE_VOLTAGE_SOURCE )|| (dev->type==SPICE_CURRENT_SOURCE)) sources=g_list_insert_sorted(sources, dev->name, (GCompareFunc) strcmp); } /* the node for noise and tf simulation needs to be encapsulated into v(node) */ for (tmp=g_list_first(netlist->nodenames); tmp != NULL; tmp=g_list_next(tmp)) { v_nodes=g_list_append(v_nodes,g_strdup_printf("v(%s)",(char*)(tmp->data))); } if (VERBOSE3) { printf(_("List of devices:\n")); print_list(devices); printf(_("List of sources:\n")); print_list(sources); } /* second, we have to put the lists into the dropdown menus in the windows */ /* op analyses */ /* move the gui setup of the op-section to spice2easy */ // gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(win,"op_node_combo")),netlist->nodenames); gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(win,"op_device_combo")),devices); /* dc analyses */ entry=g_strdup(get_gtk_entry(win,"dc_source1")); /* keep the value if it is in the list */ gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(win,"dc_source1_combo")),sources); if (g_list_find_custom(sources,entry,(GCompareFunc) strcmp) != NULL) set_gtk_entry(entry, win, "dc_source1"); g_free(entry); entry=g_strdup(get_gtk_entry(win,"dc_source2")); /* keep the value if it is in the list */ gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(win,"dc_source2_combo")),sources); if (g_list_find_custom(sources,entry,(GCompareFunc) strcmp) != NULL) set_gtk_entry(entry, win, "dc_source2"); g_free(entry); /* noise analyses */ entry=g_strdup(get_gtk_entry(win,"noise_source")); /* keep the value if it is in the list */ gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(win,"noise_source_combo")),sources); if (g_list_find_custom(sources,entry,(GCompareFunc) strcmp) != NULL) set_gtk_entry(entry, win, "noise_source"); g_free(entry); entry=g_strdup(get_gtk_entry(win,"noise_node")); /* keep the value if it is in the list */ gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(win,"noise_node_combo")),v_nodes); if (g_list_find_custom(v_nodes, entry, (GCompareFunc) strcmp) != NULL) set_gtk_entry(entry, win, "noise_node"); g_free(entry); /* TF analyses */ entry=g_strdup(get_gtk_entry(win,"tf_output")); /* keep the value if it is in the list */ gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(win,"tf_output_combo")),v_nodes); if (g_list_find_custom(v_nodes,entry,(GCompareFunc) strcmp) != NULL) set_gtk_entry(entry, win, "tf_output"); g_free(entry); entry=g_strdup(get_gtk_entry(win,"tf_source")); /* keep the value if it is in the list */ gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(win,"tf_source_combo")),sources); if (g_list_find_custom(sources,entry,(GCompareFunc) strcmp) != NULL) set_gtk_entry(entry, win, "tf_source"); g_free(entry); /* parameter analyses */ entry=g_strdup(get_gtk_entry(win,"param_name")); /* keep the value if it is in the list */ gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(win,"param_name_combo")),devices); if (g_list_find_custom(devices, entry, (GCompareFunc) strcmp) != NULL) set_gtk_entry(entry, win, "param_name"); g_free(entry); g_list_foreach(v_nodes,(GFunc) free_element, NULL); g_list_free(v_nodes); g_list_free(devices); g_list_free(sources); } easy_spice-0.6.8/src/geda.c0000644000175000001440000001331610336176226012433 00000000000000/* * easy_spice - a spice front end * Copyright (C) 2001 Routoure Jean-Marc. * * 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 Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ #ifdef HAVE_CONFIG_H # include #endif #include "easyspice.h" /************* insert the results into a temporary schematic **********/ void visu_result_gschem(EasySpice *es) { FILE *f_gschem, *f_gschem_tmp; gchar line[FICHIER_MAX_LINE], *vbranch; gchar *buf, **tokens; GList *item; int n_tokens, i; int x,y,color,size,visibility,show_name_value,angle,alignment,multiline; /* parse the gschem file to put the result in it */ f_gschem=fopen(es->file_schematic,"rt"); f_gschem_tmp=fopen(es->file_schematic_tmp,"wt"); while (fgets(line, FICHIER_MAX_LINE, f_gschem) != NULL) { fprintf(f_gschem_tmp,"%s",line); /*read the text attributes and convert them into numbers */ n_tokens = sscanf(line, "T %d %d %d %d %d %d %d %d %d", &x, &y, &color, &size, &visibility, &show_name_value, &angle, &alignment, &multiline); if (n_tokens != 9) continue; fgets(line, FICHIER_MAX_LINE, f_gschem); fprintf(f_gschem_tmp, "%s", line); if (multiline > 1) { /* copy multiline text to outfile */ for (i = 1; i < multiline; i++) { fgets(line, FICHIER_MAX_LINE, f_gschem); fprintf(f_gschem_tmp, "%s", line); } /* a multiline will never contain a netname, lets go on */ continue; } /* find the netnames that correspond with the results */ g_strdelimit(line,"\n",'='); tokens=g_strsplit(line,"=",-1); if (strcmp(tokens[0],"netname")==0) { item=g_list_find_custom(es->netlist->op_result, tokens[1], (GCompareFunc) keyvalue_compare_key); if (item != NULL) { fprintf(f_gschem_tmp,"T %d %d %d %d %d %d %d %d %d\n", x-200*(angle==90)+200*(angle==270), y-200*(angle==0)-200*(angle==180), color+1,size+1,visibility,show_name_value, angle,alignment,multiline); fprintf(f_gschem_tmp,"%sV\n", val2txt(atof(((KeyValue*)(item->data))->value),0)); } } /* look for voltage sources and the coresponding results */ if (strcmp(tokens[0],"refdes")==0) { vbranch=g_strdup_printf("%s#branch",tokens[1]); item=g_list_find_custom(es->netlist->op_result, vbranch, (GCompareFunc) keyvalue_compare_key); g_free(vbranch); if (item != NULL) { fprintf(f_gschem_tmp,"T %d %d %d %d %d %d %d %d %d\n", x-200*(angle==90)+200*(angle==270), y-200*(angle==0)-200*(angle==180), color+1,size+1,visibility,show_name_value,angle, alignment, multiline); fprintf(f_gschem_tmp,"%sA\n", val2txt(atof(((KeyValue*)(item->data))->value),0)); } } g_strfreev(tokens); } fclose(f_gschem); fclose(f_gschem_tmp); buf=g_strdup_printf(_("open the %s file in gschem to see the result\n" " but do not modify it!!\n"), es->file_schematic_tmp); write_log(buf); g_free(buf); } void geda_create_config (GedaSettings *geda) { FILE *file; gchar **attr_tokens; gint i; /* create gafrc file (gEDA and friends) */ if ((file=fopen("gafrc","w"))==NULL) { create_quickmessage(_("Error"),_("Error!\nUnable to load file \"gafrc\"")); } else { /* add a new directory */ if (strlen(geda->include_dir)!=0) { fprintf(file,"(component-library \"%s\")\n",geda->include_dir); fprintf(file,"(source-library \"%s\")\n",geda->include_dir); } if (geda->include_cwd == TRUE) { fprintf(file,"(define current-working-directory (getenv \"PWD\"))\n"); fprintf(file,"(component-library current-working-directory)\n"); fprintf(file,"(source-library current-working-directory)\n"); } /* add new attributes */ if (geda->pinlabel_attr==TRUE) { fprintf(file,"(attribute-name \"pinlabel\")\n"); } attr_tokens=g_strsplit(geda->attr," ",-1); for(i=0; attr_tokens[i]!=NULL; i++) { if (strlen(attr_tokens[i])!=0) /*no multiple spaces between the labels*/ fprintf(file,"(attribute-name \"%s\")\n",attr_tokens[i]); } g_strfreev(attr_tokens); fclose(file); } /* create gschemrc file */ if ((file=fopen("gschemrc","w"))==NULL) create_quickmessage(_("Error"),_("Error!\nUnable to load file \"gschemrc\"")); else { if (strlen(geda->gschem_gridsize)!=0) fprintf(file,"(snap-size %s)\n",geda->gschem_gridsize); if (strlen(geda->gschem_textsize)!=0) fprintf(file,"(text-size %s)\n",geda->gschem_textsize); fclose(file); } /* create gnetlistrc file */ if ((file=fopen("gnetlistrc","w"))==NULL) create_quickmessage(_("Error"),_("Error!\nUnable to load file \"gnetlistrc\"")); else { if (geda->gnetlist_priority_node==TRUE) fprintf(file,"(net-naming-priority \"net\")\n"); else fprintf(file,"(net-naming-priority \"label\")\n"); if (geda->gnetlist_hierarchy_allow==TRUE) { fprintf(file,"(hierarchy-netattrib-mangle \"disabled\")\n"); fprintf(file,"(hierarchy-uref-order \"prepend\")\n"); fprintf(file,"(hierarchy-uref-separator \"_\")\n"); fprintf(file,"(hierarchy-netname-separator \"_\")\n"); } fclose(file); } } easy_spice-0.6.8/src/callbacks.c0000644000175000001440000006251710671541551013460 00000000000000/* * easy_spice - a spice front end * Copyright (C) 2001-2004 Routoure Jean-Marc. * * 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 Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ /* This part of the code Contains the routines for the interface */ #ifdef HAVE_CONFIG_H # include #endif #include "easyspice.h" extern EasySpice *easyspice; /* Big button at the top of the interface */ void on_visu_schem_clicked (GtkButton *button, EasySpice *es) { gchar *buf; FILE *gschem_lockfile; clean_log(es); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: Stopped opening the schematic\n")); return; } write_log(_("Starting gschem...\n")); if ((gschem_lockfile=fopen("easyspice.gschem.lockfile","r"))!=NULL) { create_quickmessage(_("Notice"),_("It seems that an existing\n" "gschem session exists.\n\n" "If not, consider deleting the\n" "easyspice.gschem.lockfile.")); fclose(gschem_lockfile); } else { buf=g_strdup_printf ("(touch easyspice.gschem.lockfile ; gschem %s ;" " rm easyspice.gschem.lockfile) &", es->file_schematic); if (VERBOSE1) printf("executing: \"%s\"\n",buf); system(buf); g_free(buf); } } void on_gen_netlist_clicked (GtkButton *button, EasySpice *es) { gchar *buf; clean_log(es); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: Stopped generating the netlist\n")); return; } /* TO BE DONE: test if the schematic has been saved */ write_log(_("Creating netlist\n")); buf=g_strdup_printf ("%s %s %s", es->geda->gnetlist_command_line, es->file_spice_netlist, es->file_schematic); write_log(_("Netlist created\n")); if (VERBOSE1) printf("executing: \"%s\"\n",buf); system(buf); g_free(buf); netlist_read(es->netlist,es->file_spice_netlist); if (netlist_test(es, TRUE) == 0) { netlist2easy(es, es->netlist); led_ok(es->win_main); } else { led_false(es->win_main); } gtk_widget_set_sensitive(lookup_widget (es->win_main, "op_hbox_device"),FALSE); gtk_widget_set_sensitive(lookup_widget (es->win_main, "op_hbox_polarisation"),FALSE); } void on_visu_netlist_clicked (GtkButton *button, EasySpice *es) { clean_log(es); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: project name missing, stopped showing the netlist\n")); return; } textfile_view(es->textviewer, es->file_spice_netlist); } /********************* Simulation Buttons ********************/ void on_op_ok_clicked (GtkButton *button, EasySpice *es) { clean_log(es); led_off(es->win_main); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: project name missing, stopped simulation\n")); return; } if (netlist_test(es, FALSE)==0) { spice_variables_get_entries(es->win_main, es->spice_vars); simul(es, SIMUL_OP); } else write_log(_("error(s) in the netlist\n No simulation done\n")); } void on_dc_ok_clicked (GtkButton *button, EasySpice *es) { clean_log(es); led_off(es->win_main); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: project name missing, stopped simulation\n")); return; } if ( netlist_test(es, FALSE) ) write_log(_("error(s) in the netlist\n No simulation done\n")); else { spice_variables_get_entries(es->win_main, es->spice_vars); if (spice_test_field(es, SIMUL_DC)) { simul(es, SIMUL_DC); } } } void on_ac_ok_clicked (GtkButton *button, EasySpice *es) { clean_log(es); led_off(es->win_main); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: project name missing, stopped simulation\n")); return; } if (netlist_test(es, FALSE)) write_log(_("error(s) in the netlist\n No simulation done\n")); else { spice_variables_get_entries(es->win_main, es->spice_vars); if (spice_test_field(es, SIMUL_AC)) { simul(es, SIMUL_AC); } } } void on_tran_ok_clicked (GtkButton *button, EasySpice *es) { clean_log(es); led_off(es->win_main); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: project name missing, stopped simulation\n")); return; } if (netlist_test(es, FALSE)) write_log(_("error(s) in the netlist\n No simulation done")); else { spice_variables_get_entries(es->win_main, es->spice_vars); if (spice_test_field(es, SIMUL_TRAN)) { simul(es, SIMUL_TRAN); } } } void on_tf_ok_clicked (GtkButton *button, EasySpice *es) { clean_log(es); led_off(es->win_main); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: project name missing, stopped simulation\n")); return; } if (netlist_test(es, FALSE)) create_quickmessage(_("Error"),_("error(s) in the netlist\n" "No simulation done\n")); else { spice_variables_get_entries(es->win_main, es->spice_vars); if (spice_test_field(es, SIMUL_TF)) { simul(es, SIMUL_TF); } } } void on_noise_ok_clicked (GtkButton *button, EasySpice *es) { clean_log(es); led_off(es->win_main); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: project name missing, stopped simulation\n")); return; } if (netlist_test(es, FALSE)) write_log(_("error(s) in the netlist\n No simulation done\n")); else { spice_variables_get_entries(es->win_main, es->spice_vars); if (spice_test_field(es, SIMUL_NOISE)) { simul(es, SIMUL_NOISE); } } } /* spice menu : will be done one day */ void on_spice_default_clicked (GtkButton *button, gpointer user_data) { } void on_plot_res_activate (GtkMenuItem *menuitem, ExternalProgramms *ep) { gchar *buf; buf=g_strdup_printf("%s plot.cir &", ep->plot_command); system(buf); g_free(buf); } /* --------------- change label when box changed ----------- */ void on_param_enable_pressed (GtkButton *button, EasySpice *es) { GtkWidget *win_prin; GtkWidget *param_hbox_name; GtkWidget *param_hbox_param; GtkWidget *param_hbox_val; win_prin = es->win_main; param_hbox_name=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_name"); param_hbox_param=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_param"); param_hbox_val=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_val"); if (get_gtk_toggle_button(win_prin,"param_enable")) { gtk_widget_set_sensitive(param_hbox_name,FALSE); gtk_widget_set_sensitive(param_hbox_param,FALSE); gtk_widget_set_sensitive(param_hbox_val,FALSE); } else { gtk_widget_set_sensitive(param_hbox_name,TRUE); gtk_widget_set_sensitive(param_hbox_param,TRUE); gtk_widget_set_sensitive(param_hbox_val,TRUE); } } void on_param_lin_pressed (GtkButton *button, EasySpice *es) { GtkWidget *win_prin; GtkWidget *param_hbox_start,*param_hbox_stop,*param_hbox_step,*param_hbox_list; GtkLabel *param_label_step; win_prin = es->win_main; param_hbox_start=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_start"); param_hbox_stop=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_stop"); param_hbox_step=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_step"); param_hbox_list=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_list"); param_label_step=GTK_LABEL(lookup_widget (GTK_WIDGET (win_prin), "param_label_step")); gtk_widget_set_sensitive(param_hbox_start,TRUE); gtk_widget_set_sensitive(param_hbox_stop,TRUE); gtk_widget_set_sensitive(param_hbox_step,TRUE); gtk_widget_set_sensitive(param_hbox_list,FALSE); gtk_label_set_text (param_label_step,_("Step")); } void on_param_dec_pressed (GtkButton *button, EasySpice *es) { GtkWidget *win_prin; GtkWidget *param_hbox_start,*param_hbox_stop,*param_hbox_step,*param_hbox_list; GtkLabel *param_label_step; win_prin = es->win_main; param_hbox_start=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_start"); param_hbox_stop=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_stop"); param_hbox_step=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_step"); param_hbox_list=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_list"); param_label_step=GTK_LABEL(lookup_widget (GTK_WIDGET (win_prin), "param_label_step")); gtk_widget_set_sensitive(param_hbox_start,TRUE); gtk_widget_set_sensitive(param_hbox_stop,TRUE); gtk_widget_set_sensitive(param_hbox_step,TRUE); gtk_widget_set_sensitive(param_hbox_list,FALSE); gtk_label_set_text (param_label_step,_("Pts/Dec")); } void on_param_list_pressed (GtkButton *button, EasySpice *es) { GtkWidget *win_prin; GtkWidget *param_hbox_start,*param_hbox_stop,*param_hbox_step,*param_hbox_list; GtkLabel *param_label_step; win_prin = es->win_main; param_hbox_start=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_start"); param_hbox_stop=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_stop"); param_hbox_step=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_step"); param_hbox_list=lookup_widget (GTK_WIDGET (win_prin), "param_hbox_list"); param_label_step=GTK_LABEL(lookup_widget (GTK_WIDGET (win_prin), "param_label_step")); gtk_widget_set_sensitive(param_hbox_start,FALSE); gtk_widget_set_sensitive(param_hbox_stop,FALSE); gtk_widget_set_sensitive(param_hbox_step,FALSE); gtk_widget_set_sensitive(param_hbox_list,TRUE); gtk_label_set_text (param_label_step,_("Pts/Dec")); } void on_ac_dec_pressed (GtkButton *button, EasySpice *es) { GtkLabel *ac_label_step; ac_label_step=GTK_LABEL(lookup_widget (GTK_WIDGET (es->win_main), "ac_label_step")); gtk_label_set_text (ac_label_step,_("Pts/decade")); } void on_ac_lin_pressed (GtkButton *button, EasySpice *es) { GtkLabel *ac_label_step; ac_label_step=GTK_LABEL(lookup_widget (GTK_WIDGET (es->win_main), "ac_label_step")); gtk_label_set_text (ac_label_step,_("Number of Pts")); } void on_ac_oct_pressed (GtkButton *button, EasySpice *es) { GtkLabel *ac_label_step; ac_label_step=GTK_LABEL(lookup_widget (GTK_WIDGET (es->win_main), "ac_label_step")); gtk_label_set_text (ac_label_step,_("Pts/octave")); } void on_noise_dec_pressed (GtkButton *button, EasySpice *es) { GtkLabel *noise_label_step; noise_label_step=GTK_LABEL(lookup_widget (GTK_WIDGET (es->win_main), "noise_label_step")); gtk_label_set_text (noise_label_step,_("Pts/decade")); } void on_noise_lin_pressed (GtkButton *button, EasySpice *es) { GtkLabel *noise_label_step; noise_label_step=GTK_LABEL(lookup_widget (GTK_WIDGET (es->win_main), "noise_label_step")); gtk_label_set_text (noise_label_step, _("Number of Pts")); } void on_noise_oct_pressed (GtkButton *button, EasySpice *es) { GtkLabel *noise_label_step; noise_label_step=GTK_LABEL(lookup_widget (GTK_WIDGET (es->win_main), "noise_label_step")); gtk_label_set_text (noise_label_step,_("Pts/octave")); } void on_plot_reset_clicked (GtkButton *button, EasySpice *es) { write_log(_("Warning: this funciton is not implemented yet\n")); printf("Entered on_plot_reset_clicked. Not implemented yet!\n"); } void on_plot_ok_clicked (GtkButton *button, EasySpice *es) { clean_log(es); led_off(es->win_main); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: project name missing, stopped plotting\n")); return; } spice_variables_get_entries(es->win_main, es->spice_vars); create_spice_plot_file(es, es->current_n_step,es->current_simul); start_plot(es); } void on_plot_xscale_default_clicked (GtkButton *button, EasySpice *es) { gtk_widget_set_sensitive(lookup_widget (GTK_WIDGET (es->win_main), "plot_x"),FALSE); } void on_plot_xscale_value_clicked (GtkButton *button, EasySpice *es) { gtk_widget_set_sensitive(lookup_widget (GTK_WIDGET (es->win_main), "plot_x"),TRUE); } /* callback when window manager try to destroy a dialog */ gboolean do_not_destroy (GtkWidget *widget, GdkEvent *event, gpointer user_data) { gtk_widget_hide_on_delete(widget); return TRUE; } void on_op_node_changed (GtkEditable *editable, EasySpice *es) { gchar *res_name; GList *tmp; KeyValue *op_result; if (VERBOSE2) printf("Value of op_node entry changed\n"); res_name=get_gtk_entry(es->win_main, "op_node"); tmp=g_list_find_custom(es->netlist->op_result, res_name, (GCompareFunc) keyvalue_compare_key); if (tmp == NULL) { if (DEBUG) printf(" resultname \"%s\" not in list\n", res_name); return; } op_result= tmp->data; set_gtk_entry(op_result->value, es->win_main, "op_polarisation_value"); } void on_op_device_changed (GtkEditable *editable, EasySpice *es) { gchar *dev_name, *dev_item; GList *dev_result_names=NULL, *tmp; SpiceDevice *dev; if (VERBOSE2) printf("Value in op_device entry changed\n"); dev_name=get_gtk_entry(es->win_main,"op_device"); /* Search for the device in the list */ tmp=g_list_find_custom(es->netlist->devices, dev_name, (GCompareFunc) spicedevice_compare_name); if (tmp == NULL) { if (DEBUG) printf(" device \"%s\" not in list\n",dev_name); return; } dev=tmp->data; if (DEBUG) printf(" %s, %s\n",dev_name, dev->name); for (tmp=g_list_first(dev->result); tmp!=NULL; tmp=g_list_next(tmp)) { dev_result_names=g_list_append(dev_result_names, g_strdup(((KeyValue*)(tmp->data))->key)); if (DEBUG) printf("*%s*\n",((KeyValue*)(tmp->data))->key); } /* update the value field if the device changes */ dev_item=g_strdup(get_gtk_entry(es->win_main, "op_item")); /* commented out: NULL means deleting the list */ if (dev_result_names != NULL) { gtk_combo_set_popdown_strings(GTK_COMBO(lookup_widget(es->win_main,"op_item_combo")), dev_result_names); if (g_list_find_custom(dev->result, dev_item, (GCompareFunc) keyvalue_compare_key) != NULL) { set_gtk_entry(dev_item, es->win_main, "op_item"); } } g_free(dev_item); } void on_op_item_changed (GtkEditable *editable, EasySpice *es) { gchar *dev_name, *device_item; GList *tmp; SpiceDevice *dev; KeyValue *dev_res; if (VERBOSE2) printf("Value of op_item entry changed\n"); dev_name=get_gtk_entry(es->win_main,"op_device"); device_item=get_gtk_entry(es->win_main,"op_item"); /* Search device on the list */ tmp=g_list_find_custom(es->netlist->devices, dev_name, (GCompareFunc) spicedevice_compare_name); if (tmp == NULL) { if (DEBUG) printf(" device \"%s\" not in list\n", dev_name); return; } dev=tmp->data; /* Search on the device result list */ tmp=g_list_find_custom(dev->result, device_item, (GCompareFunc) keyvalue_compare_key); if (tmp == NULL) { if (DEBUG) printf(" device element \"%s\" not in list\n", device_item); return; } dev_res=tmp->data; if (DEBUG) printf(" device=%s, item=%s\n", dev_name, device_item); if (dev_res->value != NULL) set_gtk_entry(dev_res->value, es->win_main,"op_device_value"); else set_gtk_entry("", es->win_main,"op_device_value"); } void on_viewerspiceoutput_clicked (GtkButton *button, EasySpice *es) { clean_log(es); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: Stopped showing the spice output\n")); return; } textfile_view(es->textviewer, es->file_spice_results); } /********** TEXTVIEWER DIALOG ********************/ void on_textviewer_button_close_clicked (GtkButton *button, Textviewer *tv) { gtk_widget_destroy(tv->dialog); tv->dialog = NULL; } void on_textviewer_destroy (GtkDialog *dialog, Textviewer *tv) { tv->dialog = NULL; } /********** GEDA SETTINGS DIALOG ********************/ void on_geda_setup_destroy (GtkDialog *dialog, GedaSettings *geda) { geda->dialog=NULL; } void on_geda_setup_default_clicked (GtkButton *button, GedaSettings *geda) { geda_settings_default(geda); geda_settings_set_entries(geda->dialog, geda); } void on_geda_setup_ok_clicked (GtkButton *button, GedaSettings *geda) { geda_settings_get_entries(geda->dialog, geda); gtk_widget_destroy (geda->dialog); geda->dialog = NULL; geda_create_config (geda); } void on_geda_setup_cancel_clicked (GtkButton *button, GedaSettings *geda) { gtk_widget_destroy (geda->dialog); geda->dialog=NULL; } /********** COMMANDS DIALOG ********************/ void on_command_setup_destroy (GtkDialog *dialog, ExternalProgramms *prog) { prog->dialog=NULL; } void on_command_setup_default_clicked (GtkButton *button, ExternalProgramms *prog) { commands_set_default(prog); commands_set_entries(prog->dialog, prog); } void on_command_setup_cancel_clicked (GtkButton *button, ExternalProgramms *prog) { gtk_widget_destroy (prog->dialog); prog->dialog=NULL; } void on_command_setup_ok_clicked (GtkButton *button, ExternalProgramms *prog) { commands_get_entries(prog->dialog, prog); gtk_widget_destroy (prog->dialog); prog->dialog=NULL; } /******************** QUICKMESSAGE DIALOG ********************/ void on_quickmessage_ok_clicked (GtkButton *button, GtkWidget *dialog) { gtk_widget_destroy (dialog); } /******************** VERIFY QUIT DIALOG ********************/ void on_verify_quit_button_no_clicked (GtkButton *button, GtkWidget *dialog) { gtk_widget_destroy(dialog); } void on_verify_quit_button_yes_clicked (GtkButton *button, GtkWidget *dialog) { gtk_widget_destroy(dialog); /* misc clean ups */ destroy_plot(easyspice); spicelibrary_delete(easyspice->spicelibrary); postprocessing_delete(easyspice->postproc); gtk_main_quit(); } /********************* POSTPROCESSING DIALOG ********************/ void on_postprocessing_destroy (GtkWidget *widget, PostProcessing *postproc) { postproc->dialog=NULL; } void on_postprocessing_button_cancel_clicked (GtkButton *button, PostProcessing *postproc) { gtk_widget_destroy(postproc->dialog); postproc->dialog=NULL; } void on_postprocessing_button_ok_clicked (GtkButton *button, PostProcessing *postproc) { postprocessing_get_entries(postproc); gtk_widget_destroy(postproc->dialog); postproc->dialog=NULL; } /********************* LIBRARY DIALOG ********************/ void on_library_dialog_destroy (GtkWidget *widget, SpiceLibrary *spicelib) { /* TODO: destroy/free the model */ gtk_widget_destroy(spicelib->dialog); spicelib->dialog=NULL; } void on_library_dialog_add_clicked (GtkButton *button, SpiceLibrary *spicelib) { GtkFileSelection *file_dialog; file_dialog=(GtkFileSelection*)gtk_file_selection_new(_("select a library")); g_object_set_data(G_OBJECT(file_dialog), "spicelib", (gpointer) spicelib); gtk_signal_connect_object(GTK_OBJECT(file_dialog->ok_button),"clicked", GTK_SIGNAL_FUNC(on_library_file_select), GTK_OBJECT(file_dialog)); gtk_signal_connect_object_after(GTK_OBJECT(file_dialog->ok_button),"clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT(file_dialog)); gtk_signal_connect_object(GTK_OBJECT(file_dialog->cancel_button),"clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT(file_dialog)); gtk_widget_show(GTK_WIDGET(file_dialog)); } void on_library_file_select (GtkWidget *file_dialog, gpointer user_data) { SpiceLibrary *spicelib; GtkTreeView *treeview; GtkTreeIter iter; GtkTreeModel *model; gchar *filename; spicelib=g_object_get_data(G_OBJECT(file_dialog), "spicelib"); /* TODO: remove local path from filename */ filename=g_strdup(gtk_file_selection_get_filename(GTK_FILE_SELECTION(file_dialog))); printf("filename:%s\n", filename); treeview = GTK_TREE_VIEW(lookup_widget(spicelib->dialog, "treeview1")); model = gtk_tree_view_get_model(treeview); gtk_list_store_append (GTK_LIST_STORE(model), &iter); gtk_list_store_set(GTK_LIST_STORE(model), &iter, 0, filename, -1); } void on_library_dialog_remove_clicked (GtkButton *button, SpiceLibrary *spicelib) { GtkTreeView *treeview; GtkTreeIter iter; GtkTreeModel *model; GtkTreeSelection *selection; treeview = GTK_TREE_VIEW(lookup_widget(spicelib->dialog, "treeview1")); model = gtk_tree_view_get_model(treeview); selection = gtk_tree_view_get_selection(treeview); if (gtk_tree_selection_get_selected (selection, NULL, &iter)) gtk_list_store_remove (GTK_LIST_STORE(model), &iter); } void on_library_dialog_edit_clicked (GtkButton *button, SpiceLibrary *spicelib) { GtkTreeView *treeview; GtkTreeIter iter; GtkTreeModel *model; GtkTreeSelection *selection; gchar *libname, *buf; treeview = GTK_TREE_VIEW(lookup_widget(spicelib->dialog, "treeview1")); model = gtk_tree_view_get_model(treeview); selection = gtk_tree_view_get_selection(treeview); if (gtk_tree_selection_get_selected (selection, NULL, &iter)) { gtk_tree_model_get(model, &iter, 0, &libname, -1); buf=g_strdup_printf("%s %s &", easyspice->commands->editor, libname); if (VERBOSE1) printf("executing: \"%s\"\n",buf); system(buf); g_free(libname); g_free(buf); } } void on_library_dialog_cancel_clicked (GtkButton *button, SpiceLibrary *spicelib) { /* TODO: destroy/free the model */ gtk_widget_destroy(spicelib->dialog); spicelib->dialog=NULL; } void on_library_dialog_ok_clicked (GtkButton *button, SpiceLibrary *spicelib) { /* copy the model into the library list */ GtkTreeView *treeview; GtkTreeIter iter; GtkTreeModel *model; gchar *libname; treeview = GTK_TREE_VIEW(lookup_widget(spicelib->dialog, "treeview1")); model = gtk_tree_view_get_model(treeview); /* free the current list and load the new one from the dialog */ g_list_foreach(spicelib->libs, (GFunc) free_element, NULL); g_list_free(spicelib->libs); spicelib->libs=NULL; if (gtk_tree_model_get_iter_first (model, &iter)) { do { gtk_tree_model_get(model, &iter, 0, &libname, -1); spicelib->libs= g_list_append(spicelib->libs, libname); } while (gtk_tree_model_iter_next(model, &iter)); } gtk_widget_destroy(spicelib->dialog); spicelib->dialog=NULL; } easy_spice-0.6.8/src/Makefile.am0000644000175000001440000000070110332213137013402 00000000000000## Process this file with automake to produce Makefile.in INCLUDES = \ @PACKAGE_CFLAGS@ bin_PROGRAMS = easy_spice easy_spice_SOURCES = \ main.c easyspice.h \ support.c support.h \ struct.h prototypes.h \ interface.c \ callbacks.c \ spice_plot.c \ geda.c \ menu.c \ netlist.c \ spice.c \ util.c easy_spice_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) localedir = @datadir@/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ AM_CFLAGS = -Wall easy_spice-0.6.8/src/Makefile.in0000644000175000001440000003350710673154223013435 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = easy_spice$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_easy_spice_OBJECTS = main.$(OBJEXT) support.$(OBJEXT) \ interface.$(OBJEXT) callbacks.$(OBJEXT) spice_plot.$(OBJEXT) \ geda.$(OBJEXT) menu.$(OBJEXT) netlist.$(OBJEXT) \ spice.$(OBJEXT) util.$(OBJEXT) easy_spice_OBJECTS = $(am_easy_spice_OBJECTS) am__DEPENDENCIES_1 = easy_spice_DEPENDENCIES = $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(easy_spice_SOURCES) DIST_SOURCES = $(easy_spice_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 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_alias = @build_alias@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @datadir@/locale 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@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = \ @PACKAGE_CFLAGS@ easy_spice_SOURCES = \ main.c easyspice.h \ support.c support.h \ struct.h prototypes.h \ interface.c \ callbacks.c \ spice_plot.c \ geda.c \ menu.c \ netlist.c \ spice.c \ util.c easy_spice_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) AM_CFLAGS = -Wall all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) easy_spice$(EXEEXT): $(easy_spice_OBJECTS) $(easy_spice_DEPENDENCIES) @rm -f easy_spice$(EXEEXT) $(LINK) $(easy_spice_LDFLAGS) $(easy_spice_OBJECTS) $(easy_spice_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callbacks.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/geda.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/menu.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netlist.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spice.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spice_plot.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/support.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @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@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @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) '$<'` uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic ctags distclean distclean-compile \ distclean-generic distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: easy_spice-0.6.8/src/support.c0000644000175000001440000001065010326255725013246 00000000000000#ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include "support.h" /* This is an internally used function to check if a pixmap file exists. */ static gchar* check_file_exists (const gchar *directory, const gchar *filename); /* This is an internally used function to create pixmaps. */ static GtkWidget* create_dummy_pixmap (GtkWidget *widget); GtkWidget* lookup_widget (GtkWidget *widget, const gchar *widget_name) { GtkWidget *parent, *found_widget; for (;;) { if (GTK_IS_MENU (widget)) parent = gtk_menu_get_attach_widget (GTK_MENU (widget)); else parent = widget->parent; if (parent == NULL) break; widget = parent; } found_widget = (GtkWidget*) gtk_object_get_data (GTK_OBJECT (widget), widget_name); if (!found_widget) g_warning ("Widget not found: %s", widget_name); return found_widget; } /* 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; } static GList *pixmaps_directories = NULL; /* Use this function to set the directory containing installed pixmaps. */ void add_pixmap_directory (const gchar *directory) { pixmaps_directories = g_list_prepend (pixmaps_directories, g_strdup (directory)); } /* This is an internally used function to create pixmaps. */ GtkWidget* create_pixmap (GtkWidget *widget, const gchar *filename) { gchar *found_filename = NULL; GdkColormap *colormap; GdkPixmap *gdkpixmap; GdkBitmap *mask; GtkWidget *pixmap; GList *elem; if (!filename || !filename[0]) return create_dummy_pixmap (widget); /* We first try any pixmaps directories set by the application. */ elem = pixmaps_directories; while (elem) { found_filename = check_file_exists ((gchar*)elem->data, filename); if (found_filename) break; elem = elem->next; } /* If we haven't found the pixmap, try the source directory. */ if (!found_filename) { found_filename = check_file_exists ("../pixmaps", filename); } if (!found_filename) { g_warning (_("Couldn't find pixmap file: %s"), filename); return create_dummy_pixmap (widget); } colormap = gtk_widget_get_colormap (widget); gdkpixmap = gdk_pixmap_colormap_create_from_xpm (NULL, colormap, &mask, NULL, found_filename); if (gdkpixmap == NULL) { g_warning (_("Error loading pixmap file: %s"), found_filename); g_free (found_filename); return create_dummy_pixmap (widget); } g_free (found_filename); pixmap = gtk_pixmap_new (gdkpixmap, mask); gdk_pixmap_unref (gdkpixmap); gdk_bitmap_unref (mask); return pixmap; } /* This is an internally used function to check if a pixmap file exists. */ static gchar* check_file_exists (const gchar *directory, const gchar *filename) { gchar *full_filename; struct stat s; gint status; full_filename = (gchar*) g_malloc (strlen (directory) + 1 + strlen (filename) + 1); strcpy (full_filename, directory); strcat (full_filename, G_DIR_SEPARATOR_S); strcat (full_filename, filename); status = stat (full_filename, &s); if (status == 0 && S_ISREG (s.st_mode)) return full_filename; g_free (full_filename); return NULL; } easy_spice-0.6.8/src/support.h0000644000175000001440000000302610326255725013252 00000000000000/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include /* * Standard gettext macros. */ #ifdef ENABLE_NLS # include # undef _ # define _(String) dgettext (PACKAGE, String) # ifdef gettext_noop # define N_(String) gettext_noop (String) # else # define N_(String) (String) # endif #else # define textdomain(String) (String) # define gettext(String) (String) # define dgettext(Domain,Message) (Message) # define dcgettext(Domain,Message,Type) (Message) # define bindtextdomain(Domain,Directory) (Domain) # define _(String) (String) # define N_(String) (String) #endif /* * Public Functions. */ /* * This function returns a widget in a component created by Glade. * Call it with the toplevel widget in the component (i.e. a window/dialog), * or alternatively any widget in the component, and the name of the widget * you want returned. */ GtkWidget* lookup_widget (GtkWidget *widget, const gchar *widget_name); /* get_widget() is deprecated. Use lookup_widget instead. */ #define get_widget lookup_widget /* Use this function to set the directory containing installed pixmaps. */ void add_pixmap_directory (const gchar *directory); /* * Private Functions. */ /* This is used to create the pixmaps in the interface. */ GtkWidget* create_pixmap (GtkWidget *widget, const gchar *filename); easy_spice-0.6.8/src/main.c0000644000175000001440000001024610670713062012452 00000000000000/* * easy_spice. A small spice front-end for students * Routoure Jean-Marc 2000-2001. * * 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 Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ #ifdef HAVE_CONFIG_H # include #endif #include "easyspice.h" /* global data structure */ EasySpice *easyspice; int main (int argc, char *argv[]) { gchar *dirname, *filename; gtk_set_locale (); gtk_init (&argc, &argv); #if ENABLE_NLS setlocale(LC_ALL, ""); setlocale(LC_NUMERIC, "POSIX"); bindtextdomain(PACKAGE, PACKAGE_LOCALE_DIR); textdomain(PACKAGE); bind_textdomain_codeset (PACKAGE, "UTF-8"); #endif add_pixmap_directory (PACKAGE_DATA_DIR "/pixmaps"); add_pixmap_directory (PACKAGE_SOURCE_DIR "/pixmaps"); /* easy_spice setup */ easyspice=g_malloc(sizeof(EasySpice)); easyspice_init(easyspice); /* setup default spice variables */ easyspice->spice_vars=g_malloc(sizeof(SpiceVariables)); spice_variables_init(easyspice->spice_vars); spice_variables_default(easyspice->spice_vars); /* setup default geda variables */ easyspice->geda=g_malloc(sizeof(GedaSettings)); geda_settings_init(easyspice->geda); geda_settings_default(easyspice->geda); /* setup default external commands */ easyspice->commands=g_malloc(sizeof(ExternalProgramms)); commands_init(easyspice->commands); commands_set_default(easyspice->commands); /* setup spice values */ easyspice->spice_vars=g_malloc(sizeof(SpiceVariables)); spice_variables_init(easyspice->spice_vars); spice_variables_default(easyspice->spice_vars); /* text viewer setup */ easyspice->textviewer=g_malloc(sizeof(Textviewer)); textviewer_init(easyspice->textviewer); /* post processing setup */ easyspice->postproc=g_malloc(sizeof(PostProcessing)); postprocessing_init(easyspice->postproc); /* spice library setup */ easyspice->spicelibrary=g_malloc(sizeof(SpiceLibrary)); spicelibrary_init(easyspice->spicelibrary); /* netlist structure (should be renamed) */ easyspice->netlist=g_malloc(sizeof(SpiceNetlist)); easyspice->netlist->nodenames=NULL; easyspice->netlist->op_result=NULL; easyspice->netlist->devices=NULL; /* create main window */ easyspice->win_main = create_toplevel_window (easyspice); /* read local configuration file */ localconfiguration_file_read(easyspice); /* get the project name */ if (argc==2) { /* check wheter it is a readable file */ dirname=g_path_get_dirname(argv[1]); filename=g_path_get_basename(argv[1]); /* change to the new directory */ chdir(dirname); g_free(dirname); if (g_str_has_suffix(filename, PROJECT_EXTENTION)) { easyspice->project=g_strndup(filename, strlen(filename) -strlen(PROJECT_EXTENTION)); } else { easyspice->project=g_strdup(filename); } g_free(filename); easyspice_filename_update(easyspice); /* try to load the project file */ configuration_file_read(easyspice, easyspice->file_easyspice_project); } else { easyspice->project=g_strdup(""); } /* set values inside win_main */ project_set_title(easyspice); spice_variables_set_entries(easyspice->win_main ,easyspice->spice_vars); gtk_widget_show (easyspice->win_main); /* Turn the flags off */ led_off(easyspice->win_main); /* Get the environnement variables */ /* EASY_SPICE_BIN */ if (getenv("EASY_SPICE_BIN") != NULL) easyspice->commands->spice_command = update_str(easyspice->commands->spice_command, getenv("EASY_SPICE_BIN")); /* Entering GTK main loop */ gtk_main (); /* TODO: Free all memory of the structures */ g_free(easyspice); return 0; } easy_spice-0.6.8/src/menu.c0000644000175000001440000010553410673152504012500 00000000000000/* * easy_spice front end for spice * Copyright (C) 2000,2001 Routoure JM * * 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 Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "easyspice.h" /*---------------------------------------------------------------------- */ /* Menu callbacks */ /*---------------------------------------------------------------------- */ void on_menu_file_new_activate (GtkMenuItem *menuitem, EasySpice *es) { GtkFileSelection *file_dialog; file_dialog=(GtkFileSelection*)gtk_file_selection_new(_("Select new project name")); g_object_set_data(G_OBJECT(file_dialog), "easyspice", (gpointer) es); gtk_signal_connect_object(GTK_OBJECT(file_dialog->ok_button),"clicked", GTK_SIGNAL_FUNC(on_new_file_select), GTK_OBJECT(file_dialog)); gtk_signal_connect_object_after(GTK_OBJECT(file_dialog->ok_button),"clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT(file_dialog)); gtk_signal_connect_object(GTK_OBJECT(file_dialog->cancel_button),"clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT(file_dialog)); gtk_widget_show(GTK_WIDGET(file_dialog)); } void on_new_file_select(GtkWidget *file_dialog, gpointer user_data) { EasySpice *es; gchar *path, *file, *dir, *file2; es=g_object_get_data(G_OBJECT(file_dialog), "easyspice"); path=g_strdup(gtk_file_selection_get_filename (GTK_FILE_SELECTION(file_dialog))); if (VERBOSE2) printf("newfile: filename:%s\n", path); dir=g_path_get_dirname(path); if (g_file_test(dir, G_FILE_TEST_IS_DIR) == FALSE) { write_log("directory does not exist"); } else { file=g_path_get_basename(path); /* change to the new directory */ chdir(dir); /* strip of the extention and set the new projectname */ if (g_str_has_suffix(file, PROJECT_EXTENTION)) { file2=g_strndup(file, strlen(file)-strlen(PROJECT_EXTENTION)); es->project=update_str(es->project, file2); g_free(file2); } else { es->project=update_str(es->project, file); } project_set_title(es); easyspice_filename_update(es); g_free(file); /* clear the old data */ spicelibrary_delete(es->spicelibrary); postprocessing_delete(es->postproc); spice_variables_default(es->spice_vars); /* load local configuration file */ localconfiguration_file_read(es); /* copy the content to the GUI */ spice_variables_set_entries(es->win_main, es->spice_vars); } g_free(path); g_free(dir); } void on_menu_file_open_activate (GtkMenuItem *menuitem, EasySpice *es) { GtkFileSelection *file_dialog; file_dialog=(GtkFileSelection*)gtk_file_selection_new(_("Open a project")); g_object_set_data(G_OBJECT(file_dialog), "easyspice", (gpointer) es); gtk_signal_connect_object(GTK_OBJECT(file_dialog->ok_button),"clicked", GTK_SIGNAL_FUNC(on_open_file_select), GTK_OBJECT(file_dialog)); gtk_signal_connect_object_after(GTK_OBJECT(file_dialog->ok_button),"clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT(file_dialog)); gtk_signal_connect_object(GTK_OBJECT(file_dialog->cancel_button),"clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT(file_dialog)); gtk_widget_show(GTK_WIDGET(file_dialog)); } void on_open_file_select(GtkWidget *file_dialog, gpointer user_data) { EasySpice *es; gchar *path, *file, *dir, *file2; es=g_object_get_data(G_OBJECT(file_dialog), "easyspice"); path=g_strdup(gtk_file_selection_get_filename (GTK_FILE_SELECTION(file_dialog))); if (VERBOSE2) printf("open_file: filename:%s\n", path); if (g_file_test(path, G_FILE_TEST_IS_REGULAR) == FALSE) { write_log("file does not exist"); } else { dir=g_path_get_dirname(path); file=g_path_get_basename(path); /* change to the new directory */ chdir(dir); g_free(dir); /* strip of the extention and set the new projectname */ if (g_str_has_suffix(file, PROJECT_EXTENTION)) { file2=g_strndup(file, strlen(file)-strlen(PROJECT_EXTENTION)); es->project=update_str(es->project, file2); g_free(file2); } else { es->project=update_str(es->project, file); } project_set_title(es); easyspice_filename_update(es); g_free(file); /* clear the old data */ spicelibrary_delete(es->spicelibrary); postprocessing_delete(es->postproc); spice_variables_default(es->spice_vars); /* load the file contents */ localconfiguration_file_read(es); configuration_file_read(es, path); /* copy the content to the GUI */ spice_variables_set_entries(es->win_main, es->spice_vars); } g_free(path); } void localconfiguration_file_read(EasySpice *es) { gchar *local_rcfile; if (getenv("HOME") != NULL) { local_rcfile=g_strdup_printf("%s/%s",getenv("HOME"),PROJECT_RCFILENAME); if (g_file_test(local_rcfile, G_FILE_TEST_IS_REGULAR) == FALSE) { printf(_("No local configuration file found: %s\n"),local_rcfile); } else { configuration_file_read(es, local_rcfile); } g_free(local_rcfile); } } void configuration_file_read(EasySpice *es, gchar *filename) { FILE *file; gchar **split; gchar line[FICHIER_MAX_LINE]; gint i; gboolean old_file=FALSE; if ((file = fopen(filename, "r")) == NULL ) { write_log(_("Error: No project file found.\n")); return; } /* guess whether we have an old-style colon-separated configuration file */ if (fgets(line, FICHIER_MAX_LINE, file) != NULL) { split=g_strsplit(line,":",0); for (i=0; split[i] != NULL; i++) ; /* void */ if (i>=3) old_file = TRUE; } fclose(file); if (old_file == TRUE) configuration_file_read_old(es, filename); else configuration_file_read_new(es, filename); } void configuration_file_read_new(EasySpice *es, gchar *filename) { GKeyFile *key_file; GError *error = NULL; gboolean flag; SpiceVariables *sv; GedaSettings *gs; ExternalProgramms *ep; gint i=0, ei=0; GList *iter; gchar *lib, *libname; sv = es->spice_vars; key_file = g_key_file_new(); flag = g_key_file_load_from_file(key_file, filename, G_KEY_FILE_NONE, &error); if (flag == FALSE) { printf(_("Error: Loading configuration file %s failed.\n"), filename); printf(_(" GError: %s"), error->message); } if (g_key_file_has_group(key_file, "Easyspice") == TRUE) { /* TODO: file version check */ } if (g_key_file_has_group(key_file, "Easyspice_Settings") == TRUE) { sv->op_show_netlist= g_key_file_get_boolean(key_file, "Easyspice_Settings", "OP_SHOW_NETLIST", &error); sv->op_show_models= g_key_file_get_boolean(key_file, "Easyspice_Settings", "OP_SHOW_MODELS", &error); sv->op_show_results_schematic= g_key_file_get_boolean(key_file, "Easyspice_Settings", "OP_SHOW_SCHEMATIC", &error); sv->param_activ = g_key_file_get_boolean(key_file, "Easyspice_Settings", "PARAM_ACTIV", &error); sv->plot_autoupdate = g_key_file_get_boolean(key_file, "Easyspice_Settings", "PLOT_AUTOUPDATE", &error); } if (g_key_file_has_group(key_file, "Spice_Variables") == TRUE) { set_str(&(sv->dc_source1), g_key_file_get_string(key_file, "Spice_Variables", "DC_SOURCE1", &error)); set_str(&(sv->dc_start1), g_key_file_get_string(key_file, "Spice_Variables", "DC_START1", &error)); set_str(&(sv->dc_stop1), g_key_file_get_string(key_file, "Spice_Variables", "DC_STOP1", &error)); set_str(&(sv->dc_inc1), g_key_file_get_string(key_file, "Spice_Variables", "DC_INC1", &error)); set_str(&(sv->dc_source2), g_key_file_get_string(key_file, "Spice_Variables", "DC_SOURCE2", &error)); set_str(&(sv->dc_start2), g_key_file_get_string(key_file, "Spice_Variables", "DC_START2", &error)); set_str(&(sv->dc_stop2), g_key_file_get_string(key_file, "Spice_Variables", "DC_STOP2", &error)); set_str(&(sv->dc_inc2), g_key_file_get_string(key_file, "Spice_Variables", "DC_INC2", &error)); sv->ac_type= g_key_file_get_integer(key_file, "Spice_Variables", "AC_TYPE", &error); set_str(&(sv->ac_points), g_key_file_get_string(key_file, "Spice_Variables", "AC_POINTS", &error)); set_str(&(sv->ac_fmin), g_key_file_get_string(key_file, "Spice_Variables", "AC_FMIN", &error)); set_str(&(sv->ac_fmax), g_key_file_get_string(key_file, "Spice_Variables", "AC_FMAX", &error)); set_str(&(sv->noise_node), g_key_file_get_string(key_file, "Spice_Variables", "NOISE_NODE", &error)); set_str(&(sv->noise_source), g_key_file_get_string(key_file, "Spice_Variables", "NOISE_SOURCE", &error)); sv->noise_type= g_key_file_get_integer(key_file, "Spice_Variables", "NOISE_TYPE", &error); set_str(&(sv->noise_points), g_key_file_get_string(key_file, "Spice_Variables", "NOISE_POINTS", &error)); set_str(&(sv->noise_fmin), g_key_file_get_string(key_file, "Spice_Variables", "NOISE_FMIN", &error)); set_str(&(sv->noise_fmax), g_key_file_get_string(key_file, "Spice_Variables", "NOISE_FMAX", &error)); set_str(&(sv->tran_tstop), g_key_file_get_string(key_file, "Spice_Variables", "TRAN_TSTOP", &error)); set_str(&(sv->tran_tstep), g_key_file_get_string(key_file, "Spice_Variables", "TRAN_TSTEP", &error)); set_str(&(sv->tran_tmax), g_key_file_get_string(key_file, "Spice_Variables", "TRAN_TMAX", &error)); set_str(&(sv->tran_tstart), g_key_file_get_string(key_file, "Spice_Variables", "TRAN_TSTART", &error)); set_str(&(sv->tf_output), g_key_file_get_string(key_file, "Spice_Variables", "TF_OUTPUT", &error)); set_str(&(sv->tf_source), g_key_file_get_string(key_file, "Spice_Variables", "TF_SOURCE", &error)); set_str(&(sv->param_name), g_key_file_get_string(key_file, "Spice_Variables", "PARAM_NAME", &error)); set_str(&(sv->param_param), g_key_file_get_string(key_file, "Spice_Variables", "PARAM_PARAM", &error)); sv->param_type= g_key_file_get_integer(key_file, "Spice_Variables", "PARAM_TYPE", &error); set_str(&(sv->param_start), g_key_file_get_string(key_file, "Spice_Variables", "PARAM_START", &error)); set_str(&(sv->param_stop), g_key_file_get_string(key_file, "Spice_Variables", "PARAM_STOP", &error)); set_str(&(sv->param_step), g_key_file_get_string(key_file, "Spice_Variables", "PARAM_STEP", &error)); set_str(&(sv->param_values), g_key_file_get_string(key_file, "Spice_Variables", "PARAM_VALUES", &error)); set_str(&(sv->plot_pre), g_key_file_get_string(key_file, "Spice_Variables", "PLOT_PREPROCESSING", &error)); sv->plot_xdefault= g_key_file_get_boolean(key_file, "Spice_Variables", "PLOT_XDEFAULT", &error); set_str(&(sv->plot_xvalue), g_key_file_get_string(key_file, "Spice_Variables", "PLOT_XVALUE", &error)); sv->plot_xlogscale= g_key_file_get_boolean(key_file, "Spice_Variables", "PLOT_XLOGSCALE", &error); sv->plot_xlinscale= g_key_file_get_boolean(key_file, "Spice_Variables", "PLOT_XLINSCALE", &error); set_str(&(sv->plot_yvalues), g_key_file_get_string(key_file, "Spice_Variables", "PLOT_YVALUES", &error)); sv->plot_ylogscale= g_key_file_get_boolean(key_file, "Spice_Variables", "PLOT_YLOGSCALE", &error); set_str(&(es->postproc->commands), g_key_file_get_string(key_file, "Spice_Variables", "SIMULATION_POSTPROCESSING", &error)); } if (g_key_file_has_group(key_file, "gEDA_Settings") == TRUE) { gs =es->geda; gs->include_cwd= g_key_file_get_boolean(key_file, "gEDA_Settings", "GEDA_INCLUDE_CWD", &error); set_str(&(gs->include_dir), g_key_file_get_string(key_file, "gEDA_Settings", "GEDA_INCLUDE_DIR", &error)); gs->pinlabel_attr= g_key_file_get_boolean(key_file, "gEDA_Settings", "GEDA_PINLABEL_ATTR", &error); set_str(&(gs->attr), g_key_file_get_string(key_file, "gEDA_Settings", "GEDA_ATTR", &error)); set_str(&(gs->gschem_textsize), g_key_file_get_string(key_file, "gEDA_Settings", "GSCHEM_TEXTSIZE", &error)); set_str(&(gs->gschem_gridsize), g_key_file_get_string(key_file, "gEDA_Settings", "GSCHEM_GRIDSIZE", &error)); gs->gnetlist_priority_node= g_key_file_get_boolean(key_file, "gEDA_Settings", "GNETLIST_PRIORITY_NODE", &error); gs->gnetlist_hierarchy_allow= g_key_file_get_boolean(key_file, "gEDA_Settings", "GNETLIST_HIERARCHY_ALLOW", &error); set_str(&(gs->gnetlist_command_line), g_key_file_get_string(key_file, "gEDA_Settings", "GNETLIST_COMMAND_LINE", &error)); } if (g_key_file_has_group(key_file, "Commands") == TRUE) { ep= es->commands; set_str(&(ep->editor), g_key_file_get_string(key_file, "Commands", "EDITOR", &error)); set_str(&(ep->plot_command), g_key_file_get_string(key_file, "Commands", "PLOT_COMMAND", &error)); set_str(&(ep->spice_command), g_key_file_get_string(key_file, "Commands", "SPICE_COMMAND", &error)); set_str(&(ep->browser), g_key_file_get_string(key_file, "Commands", "BROWSER", &error)); set_str(&(ep->html_files), g_key_file_get_string(key_file, "Commands", "SPICE_DOCFILE", &error)); set_str(&(ep->spicehelp_command), g_key_file_get_string(key_file, "Commands", "SPICE_HELP", &error)); } if (g_key_file_has_group(key_file, "Spice_Library") == TRUE) { i=0; ei=0; while (ei < 100) { /* this prevents load stopping if there are gaps in the enumering */ libname = g_strdup_printf("library%i",i); lib = g_key_file_get_string(key_file, "Spice_Library", libname, &error); if (lib == NULL) { ei++; g_error_free(error); error = NULL; } else { /* check the library list for dulicate entries */ for (iter=es->spicelibrary->libs; iter != NULL; iter = g_list_next(iter)) { if (strcmp(lib, iter->data) == 0) { g_free(lib); break; } } if (iter == NULL) { es->spicelibrary->libs = g_list_append(es->spicelibrary->libs, lib); } } g_free(libname); i++; } } } void configuration_file_read_old(EasySpice *es, gchar *filename) { FILE *file; gchar **split; gchar line[FICHIER_MAX_LINE]; gint i; SpiceVariables *sv; sv=es->spice_vars; if ((file = fopen(filename, "r")) == NULL ) { write_log(_("Error: No project file found.\n")); return; } while (fgets(line, FICHIER_MAX_LINE, file) != NULL) { split=g_strsplit(line,":",0); for (i=0; split[i] != NULL; i++) ; /* void */ if (i<3) { printf("config file problem: \"%s\"", line); continue; } if (strcmp(split[0],"win_prin")==0) { readspice_value(&(sv->dc_source1), "dc_source1", split[1], split[2]); readspice_value(&(sv->dc_start1), "dc_start1", split[1], split[2]); readspice_value(&(sv->dc_stop1), "dc_stop1", split[1], split[2]); readspice_value(&(sv->dc_inc1), "dc_inc1", split[1], split[2]); readspice_value(&(sv->dc_source2), "dc_source2", split[1], split[2]); readspice_value(&(sv->dc_start2), "dc_start2", split[1], split[2]); readspice_value(&(sv->dc_stop2), "dc_stop2", split[1], split[2]); readspice_value(&(sv->dc_inc2), "dc_inc2", split[1], split[2]); readspice_value(&(sv->ac_points), "ac_nombre", split[1], split[2]); readspice_value(&(sv->ac_fmin), "ac_fmin", split[1], split[2]); readspice_value(&(sv->ac_fmax), "ac_fmax", split[1], split[2]); readspice_value(&(sv->tran_tstep), "tran_tstep", split[1], split[2]); readspice_value(&(sv->tran_tmax), "tran_tmax", split[1], split[2]); readspice_value(&(sv->tran_tstart), "tran_tstart", split[1], split[2]); readspice_value(&(sv->tran_tstop), "tran_tstop", split[1], split[2]); readspice_value(&(sv->tf_output), "tf_output", split[1], split[2]); readspice_value(&(sv->tf_source), "tf_source", split[1], split[2]); readspice_value(&(sv->noise_node), "noise_node", split[1], split[2]); readspice_value(&(sv->noise_source), "noise_source", split[1], split[2]); readspice_value(&(sv->noise_points), "noise_nombre", split[1], split[2]); readspice_value(&(sv->noise_fmin), "noise_fmin", split[1], split[2]); readspice_value(&(sv->noise_fmax), "noise_fmax", split[1], split[2]); readspice_value(&(sv->param_name), "param_name", split[1], split[2]); readspice_value(&(sv->param_param), "param_param", split[1], split[2]); readspice_value(&(sv->param_start), "param_start", split[1], split[2]); readspice_value(&(sv->param_stop), "param_stop", split[1], split[2]); readspice_value(&(sv->param_step), "param_step", split[1], split[2]); readspice_value(&(sv->param_values), "param_values", split[1], split[2]); readspice_value(&(sv->plot_yvalues), "plot_y", split[1], split[2]); if (strcmp(split[1],"ac_type")==0) { sv->ac_type=atoi(split[2]); } else if (strcmp(split[1],"noise_type")==0) { sv->noise_type=atoi(split[2]); } else if (strcmp(split[1],"param_type")==0) { sv->param_type=atoi(split[2]); } else if (strcmp(split[1],"plot_pre_text")==0) { sv->plot_pre= update_str(sv->plot_pre, g_strdup_printf("%s%s\n", sv->plot_pre, split[2])); } else { ; //printf("unknown name: \"%s\"\n",split[1]); } } /* endif win_prin */ else if (strcmp(split[0],"win_post")==0) { es->postproc->commands= update_str(es->postproc->commands, g_strdup_printf("%s%s\n", es->postproc->commands,split[2])); } else if (strcmp(split[0],"win_lib")==0) { es->spicelibrary->libs=g_list_append(es->spicelibrary->libs, g_strdup(split[2])); } g_strfreev(split); } } void localconfiguration_file_write(EasySpice *es) { gchar *local_rcfile; if (getenv("HOME") != NULL) { local_rcfile=g_strdup_printf("%s/%s",getenv("HOME"), PROJECT_RCFILENAME); /* TODO: insert GTK26 check */ configuration_file_write_new(es, local_rcfile, TRUE); g_free(local_rcfile); } } void configuration_file_write_new(EasySpice *es, gchar *filename, gboolean configfile) { GKeyFile *key_file; GError *error=NULL; gchar *content; gsize content_size; FILE *file; SpiceVariables *sv; GedaSettings *gs; ExternalProgramms *ep; GList *iter; gint i; gchar *libname; sv = es->spice_vars; if (configfile == TRUE) { printf("Writing local configuration file\n"); } else { printf("Writing project configration file\n"); } key_file= g_key_file_new(); g_key_file_set_string(key_file, "Easyspice", "VERSION", VERSION); g_key_file_set_integer(key_file, "Easyspice", "FILE_FORMAT_VERSION", FILE_FORMAT_VERSION); g_key_file_set_boolean(key_file, "Easyspice_Settings", "OP_SHOW_NETLIST", sv->op_show_netlist); g_key_file_set_boolean(key_file, "Easyspice_Settings", "OP_SHOW_MODELS", sv->op_show_models); g_key_file_set_boolean(key_file, "Easyspice_Settings", "OP_SHOW_SCHEMATIC", sv->op_show_results_schematic); g_key_file_set_boolean(key_file, "Easyspice_Settings", "PARAM_ACTIV", sv->param_activ); g_key_file_set_boolean(key_file, "Easyspice_Settings", "PLOT_AUTOUPDATE", sv->plot_autoupdate); g_key_file_set_string(key_file, "Spice_Variables", "DC_SOURCE1", sv->dc_source1); g_key_file_set_string(key_file, "Spice_Variables", "DC_START1", sv->dc_start1); g_key_file_set_string(key_file, "Spice_Variables", "DC_STOP1", sv->dc_stop1); g_key_file_set_string(key_file, "Spice_Variables", "DC_INC1", sv->dc_inc1); g_key_file_set_string(key_file, "Spice_Variables", "DC_SOURCE2", sv->dc_source2); g_key_file_set_string(key_file, "Spice_Variables", "DC_START2", sv->dc_start2); g_key_file_set_string(key_file, "Spice_Variables", "DC_STOP2", sv->dc_stop2); g_key_file_set_string(key_file, "Spice_Variables", "DC_INC2", sv->dc_inc2); g_key_file_set_integer(key_file, "Spice_Variables", "AC_TYPE", sv->ac_type); g_key_file_set_string(key_file, "Spice_Variables", "AC_POINTS", sv->ac_points); g_key_file_set_string(key_file, "Spice_Variables", "AC_FMIN", sv->ac_fmin); g_key_file_set_string(key_file, "Spice_Variables", "AC_FMAX", sv->ac_fmax); g_key_file_set_string(key_file, "Spice_Variables", "NOISE_NODE", sv->noise_node); g_key_file_set_string(key_file, "Spice_Variables", "NOISE_SOURCE", sv->noise_source); g_key_file_set_integer(key_file, "Spice_Variables", "NOISE_TYPE", sv->noise_type); g_key_file_set_string(key_file, "Spice_Variables", "NOISE_POINTS", sv->noise_points); g_key_file_set_string(key_file, "Spice_Variables", "NOISE_FMIN", sv->noise_fmin); g_key_file_set_string(key_file, "Spice_Variables", "NOISE_FMAX", sv->noise_fmax); g_key_file_set_string(key_file, "Spice_Variables", "TRAN_TSTOP", sv->tran_tstop); g_key_file_set_string(key_file, "Spice_Variables", "TRAN_TSTEP", sv->tran_tstep); g_key_file_set_string(key_file, "Spice_Variables", "TRAN_TMAX", sv->tran_tmax); g_key_file_set_string(key_file, "Spice_Variables", "TRAN_TSTART", sv->tran_tstart); g_key_file_set_string(key_file, "Spice_Variables", "TF_OUTPUT", sv->tf_output); g_key_file_set_string(key_file, "Spice_Variables", "TF_SOURCE", sv->tf_source); g_key_file_set_string(key_file, "Spice_Variables", "PARAM_NAME", sv->param_name); g_key_file_set_string(key_file, "Spice_Variables", "PARAM_PARAM", sv->param_param); g_key_file_set_integer(key_file, "Spice_Variables", "PARAM_TYPE", sv->param_type); g_key_file_set_string(key_file, "Spice_Variables", "PARAM_START", sv->param_start); g_key_file_set_string(key_file, "Spice_Variables", "PARAM_STOP", sv->param_stop); g_key_file_set_string(key_file, "Spice_Variables", "PARAM_STEP", sv->param_step); g_key_file_set_string(key_file, "Spice_Variables", "PARAM_VALUES", sv->param_values); g_key_file_set_string(key_file, "Spice_Variables", "PLOT_PREPROCESSING", sv->plot_pre); g_key_file_set_boolean(key_file, "Spice_Variables", "PLOT_XDEFAULT", sv->plot_xdefault); g_key_file_set_string(key_file, "Spice_Variables", "PLOT_XVALUE", sv->plot_xvalue); g_key_file_set_boolean(key_file, "Spice_Variables", "PLOT_XLOGSCALE", sv->plot_xlogscale); g_key_file_set_boolean(key_file, "Spice_Variables", "PLOT_XLINSCALE", sv->plot_xlinscale); g_key_file_set_string(key_file, "Spice_Variables", "PLOT_YVALUES", sv->plot_yvalues); g_key_file_set_boolean(key_file, "Spice_Variables", "PLOT_YLOGSCALE", sv->plot_ylogscale); g_key_file_set_string(key_file, "Spice_Variables", "SIMULATION_POSTPROCESSING", es->postproc->commands); /* enumerate the libraries and store them into the keyfile */ for (i=0, iter=es->spicelibrary->libs; iter != NULL; iter = g_list_next(iter), i++) { libname = g_strdup_printf("library%i",i); g_key_file_set_string(key_file, "Spice_Library", libname, iter->data); g_free(libname); } gs =es->geda; g_key_file_set_boolean(key_file, "gEDA_Settings", "GEDA_INCLUDE_CWD", gs->include_cwd); g_key_file_set_string(key_file, "gEDA_Settings", "GEDA_INCLUDE_DIR", gs->include_dir); g_key_file_set_boolean(key_file, "gEDA_Settings", "GEDA_PINLABEL_ATTR", gs->pinlabel_attr); g_key_file_set_string(key_file, "gEDA_Settings", "GEDA_ATTR", gs->attr); g_key_file_set_string(key_file, "gEDA_Settings", "GSCHEM_TEXTSIZE", gs->gschem_textsize); g_key_file_set_string(key_file, "gEDA_Settings", "GSCHEM_GRIDSIZE", gs->gschem_gridsize); g_key_file_set_boolean(key_file, "gEDA_Settings", "GNETLIST_PRIORITY_NODE", gs->gnetlist_priority_node); g_key_file_set_boolean(key_file, "gEDA_Settings", "GNETLIST_HIERARCHY_ALLOW", gs->gnetlist_hierarchy_allow); g_key_file_set_string(key_file, "gEDA_Settings", "GNETLIST_COMMAND_LINE", gs->gnetlist_command_line); /* don't store the commands and gEDA-Settings into the project file */ if (configfile == FALSE) { ep = es->commands; g_key_file_set_string(key_file, "Commands", "EDITOR", ep->editor); g_key_file_set_string(key_file, "Commands", "PLOT_COMMAND", ep->plot_command); g_key_file_set_string(key_file, "Commands", "SPICE_COMMAND", ep->spice_command); g_key_file_set_string(key_file, "Commands", "BROWSER", ep->browser); g_key_file_set_string(key_file, "Commands", "SPICE_DOCFILE", ep->html_files); g_key_file_set_string(key_file, "Commands", "SPICE_HELP", ep->spicehelp_command); } content = g_key_file_to_data(key_file, &content_size, &error); file = fopen(filename,"wb"); fwrite(content, content_size, 1, file); fclose(file); g_free(content); g_key_file_free(key_file); } void configuration_file_write_old(EasySpice *es, gchar *filename) { FILE *file; SpiceVariables *sv; GList *tmp; sv=es->spice_vars; clean_log(es); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: Stopped saving the project\n")); return; } spice_variables_get_entries(es->win_main, es->spice_vars); if ((file = fopen(es->file_easyspice_project, "wt")) ==NULL) { write_log(_("Error: unable to write the file")); return; } fprintf(file,"win_prin:dc_source1:%s:\n",sv->dc_source1); fprintf(file,"win_prin:dc_start1:%s:\n",sv->dc_start1); fprintf(file,"win_prin:dc_stop1:%s:\n",sv->dc_stop1); fprintf(file,"win_prin:dc_inc1:%s:\n",sv->dc_inc1); fprintf(file,"win_prin:dc_source2:%s:\n",sv->dc_source2); fprintf(file,"win_prin:dc_start2:%s:\n",sv->dc_start2); fprintf(file,"win_prin:dc_stop2:%s:\n",sv->dc_stop2); fprintf(file,"win_prin:dc_inc2:%s:\n",sv->dc_inc2); fprintf(file,"win_prin:ac_type:%d:\n",sv->ac_type); fprintf(file,"win_prin:ac_nombre:%s:\n",sv->ac_points); fprintf(file,"win_prin:ac_fmin:%s:\n",sv->ac_fmin); fprintf(file,"win_prin:ac_fmax:%s:\n",sv->ac_fmax); fprintf(file,"win_prin:tran_tstep:%s:\n",sv->tran_tstep); fprintf(file,"win_prin:tran_tmax:%s:\n",sv->tran_tmax); fprintf(file,"win_prin:tran_tstart:%s:\n",sv->tran_tstart); fprintf(file,"win_prin:tran_tstop:%s:\n",sv->tran_tstop); fprintf(file,"win_prin:tf_output:%s:\n",sv->tf_output); fprintf(file,"win_prin:tf_source:%s:\n",sv->tf_source); fprintf(file,"win_prin:noise_node:%s:\n",sv->noise_node); fprintf(file,"win_prin:noise_source:%s:\n",sv->noise_source); fprintf(file,"win_prin:noise_nombre:%s:\n",sv->noise_points); fprintf(file,"win_prin:noise_fmin:%s:\n",sv->noise_fmin); fprintf(file,"win_prin:noise_fmax:%s:\n",sv->noise_fmax); fprintf(file,"win_prin:noise_type:%d:\n",sv->noise_type); fprintf(file,"win_prin:param_name:%s:\n",sv->param_name); fprintf(file,"win_prin:param_param:%s:\n",sv->param_param); fprintf(file,"win_prin:param_start:%s:\n",sv->param_start); fprintf(file,"win_prin:param_stop:%s:\n",sv->param_stop); fprintf(file,"win_prin:param_step:%s:\n",sv->param_step); fprintf(file,"win_prin:param_values:%s:\n",sv->param_values); fprintf(file,"win_prin:param_type:%d:\n",sv->param_type); fprintf(file,"win_prin:plot_y:%s:\n",sv->plot_yvalues); write_multiline_text(file,"win_prin","plot_pre_text",sv->plot_pre); /* postproc commands */ write_multiline_text(file,"win_post","text_post_trait_common", es->postproc->commands); /* save the libraries */ for (tmp=g_list_first(es->spicelibrary->libs); tmp != NULL; tmp=g_list_next(tmp)) { fprintf(file,"win_lib:chemin_bib:%s:\n",(gchar*) tmp->data); } fclose(file); } void write_multiline_text(FILE *file, gchar *section, gchar *name, gchar *data) { gint i; gchar **split; if (data!=NULL) { split=g_strsplit(data,"\n",0); /* tokenize the data*/ for (i=0; split[i]!=NULL; i++) { if (DEBUG) printf("write_multiline_text: line=%d, value=%s\n", i, split[i]); fprintf(file,"%s:%s:%s:\n",section, name, split[i]); } g_strfreev(split); } } void on_menu_file_save_activate (GtkMenuItem *menuitem, EasySpice *es) { /* TODO: insert gtk26 check */ if (1) configuration_file_write_new(es, es->file_easyspice_project, FALSE); else configuration_file_write_old(es, es->file_easyspice_project); } void on_menu_file_saveas_activate (GtkMenuItem *menuitem, EasySpice *es) { GtkFileSelection *file_dialog; file_dialog=(GtkFileSelection*)gtk_file_selection_new(_("Save the project as ...")); g_object_set_data(G_OBJECT(file_dialog), "easyspice", (gpointer) es); gtk_signal_connect_object(GTK_OBJECT(file_dialog->ok_button),"clicked", GTK_SIGNAL_FUNC(on_saveas_file_select), GTK_OBJECT(file_dialog)); gtk_signal_connect_object_after(GTK_OBJECT(file_dialog->ok_button),"clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT(file_dialog)); gtk_signal_connect_object(GTK_OBJECT(file_dialog->cancel_button),"clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT(file_dialog)); gtk_widget_show(GTK_WIDGET(file_dialog)); } void on_saveas_file_select (GtkWidget *file_dialog, gpointer user_data) { EasySpice *es; gchar *path, *file, *dir, *file2; es=g_object_get_data(G_OBJECT(file_dialog), "easyspice"); path=g_strdup(gtk_file_selection_get_filename (GTK_FILE_SELECTION(file_dialog))); if (VERBOSE2) printf("saveas: filename:%s\n", path); /* TODO: Check filename and filelocation */ /* strip of the extention and set the new projectname */ /* change to the new directory if it has changed */ /* finaly save the file using the normal file->save function */ dir=g_path_get_dirname(path); if (g_file_test(dir, G_FILE_TEST_IS_DIR) == FALSE) { write_log("directory does not exist"); } else { file=g_path_get_basename(path); /* change to the new directory */ chdir(dir); /* strip of the extention and set the new projectname */ if (g_str_has_suffix(file, PROJECT_EXTENTION)) { file2=g_strndup(file, strlen(file)-strlen(PROJECT_EXTENTION)); es->project=update_str(es->project, file2); g_free(file2); } else { es->project=update_str(es->project, file); } project_set_title(es); easyspice_filename_update(es); g_free(file); on_menu_file_save_activate(NULL, es); } g_free(path); g_free(dir); } void on_menu_file_quit_activate (GtkMenuItem *menuitem, EasySpice *es) { GtkWidget *dialog; dialog=create_verify_quit(); gtk_widget_show(dialog); } gboolean on_main_window_destroy_event (GtkWidget *widget, GdkEvent *event, EasySpice *es) { on_menu_file_quit_activate(NULL, es); return TRUE; } /* ----------------------------------------------------------------------- */ /* Menu options */ /* ----------------------------------------------------------------------- */ void on_menu_options_commands_activate (GtkMenuItem *menuitem, ExternalProgramms *prog) { if (prog->dialog == NULL) { prog->dialog=create_command_setup(prog); commands_set_entries(prog->dialog, prog); gtk_widget_show(prog->dialog); } else { gtk_window_present(GTK_WINDOW(prog->dialog)); } } void on_menu_options_library_activate (GtkMenuItem *menuitem, SpiceLibrary *spicelib) { GList *tmp; GtkTreeIter iter; if (spicelib->dialog == NULL) { spicelib->store=gtk_list_store_new(1, G_TYPE_STRING); for (tmp=g_list_first(spicelib->libs); tmp != NULL; tmp=g_list_next(tmp)) { gtk_list_store_append(spicelib->store, &iter); gtk_list_store_set(spicelib->store, &iter, 0, (gchar*)(tmp->data), -1); } spicelib->dialog=create_library_dialog(spicelib); gtk_widget_show(spicelib->dialog); } else { gtk_window_present(GTK_WINDOW(spicelib->dialog)); } } void on_menu_options_gschem_activate (GtkMenuItem *menuitem, GedaSettings *geda) { if (geda->dialog == NULL) { geda->dialog=create_geda_setup(geda); geda_settings_set_entries(geda->dialog, geda); gtk_widget_show(geda->dialog); } else { gtk_window_present(GTK_WINDOW(geda->dialog)); } } void on_menu_options_save_activate (GtkMenuItem *menuitem, EasySpice *es) { spice_variables_get_entries(es->win_main, es->spice_vars); localconfiguration_file_write(es); } /* ---------------------------------------------------------------------- */ /* Menu window */ /* ---------------------------------------------------------------------- */ void on_menu_windows_simulcommands_activate (GtkMenuItem *menuitem, EasySpice *es) { clean_log(es); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: Stopped showing the simulation commands\n")); return; } textfile_view(es->textviewer, es->file_spice_simul); } void on_menu_windows_plotcommands_activate (GtkMenuItem *menuitem, EasySpice *es) { clean_log(es); if (strlen(es->project) == 0) { write_log(_("Error: No project name specified\n")); write_log(_("Error: Stopped showing the plotting commands\n")); return; } textfile_view(es->textviewer, es->file_spice_plot); } void on_menu_windows_spiceinteractive_activate (GtkMenuItem *menuitem, ExternalProgramms *ep) { char *buf; buf=g_strdup_printf("xterm -e %s &", ep->spice_command); system(buf); g_free(buf); } void on_menu_windows_postproc_activate (GtkMenuItem *menuitem, PostProcessing *postproc) { if (postproc->dialog == NULL) { postproc->dialog=create_postproc(postproc); postprocessing_set_entries(postproc); gtk_widget_show(postproc->dialog); } else { gtk_window_present(GTK_WINDOW(postproc->dialog)); } } /* ----------------------------------------------------------------------- */ /* Menu help */ /* ----------------------------------------------------------------------- */ void on_menu_help_spiceman_activate (GtkMenuItem *menuitem, ExternalProgramms *ep) { char *buf; buf=g_strdup_printf("xterm -e man %s &", ep->spice_command); system(buf); g_free(buf); } void on_menu_help_spicehtml_activate (GtkMenuItem *menuitem, ExternalProgramms *ep) { char *buf; buf=g_strdup_printf("%s %s &", ep->browser, ep->html_files); system(buf); g_free(buf); } void on_menu_help_spicehelp_activate (GtkMenuItem *menuitem, ExternalProgramms *ep) { gchar *buf; buf=g_strdup_printf("%s &",ep->spicehelp_command); system(buf); g_free(buf); } void on_menu_help_about_activate (GtkMenuItem *menuitem, gpointer user_data) { char *buf; buf=g_strdup_printf("easy_spice version %s \n\n" "JM Routoure\n" " (c) 2000-2006 University of Caen\n" "Olivier Hervieu\n" "Werner Hoch", VERSION); create_quickmessage(_("About"), buf); g_free(buf); } easy_spice-0.6.8/src/spice_plot.c0000644000175000001440000000653510671541613013677 00000000000000/* * easy_spice - a spice front end * Copyright (C) 2001 Routoure Jean-Marc. * * 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 Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ /* This part of the code concerns the plot interface with nutmeg*/ #ifdef HAVE_CONFIG_H # include #endif #include "easyspice.h" void create_spice_plot_file(EasySpice *es, int n_step, int type_simul) { FILE *file; gchar **plot_y; int i=0; SpiceVariables *sv=es->spice_vars; if (DEBUG) printf("plot.c: n_step=%d type_simul=%d\n", n_step, type_simul); if ((file = fopen(es->file_spice_plot, "wt")) == NULL) { write_log(_("Unable to open plot file\n")); /* FIXME: Why exiting here? */ // exit(1); return; } fprintf(file,"plot the result\n\n"); fprintf(file,".control\n"); fprintf(file,"\n"); if (n_step>0) { for (i=1;i<=n_step;i++) fprintf(file,"load rawspice%d.raw\n",i); } else { fprintf(file,"load rawspice.raw\n"); } fprintf(file,"\n\n"); /* insert the plot_pre_text into the plotfile */ fprintf(file,"*User defined vector and plot commands: \n%s\n", sv->plot_pre); plot_y=g_strsplit(sv->plot_yvalues,";",0); for (i=0; plot_y[i]!=NULL; i++) { fprintf(file,"plot %s", plot_y[i]); if ((sv->plot_xlogscale != FALSE) && (sv->plot_ylogscale != FALSE)) fprintf(file," loglog"); else if (sv->plot_xlogscale==TRUE) fprintf(file," xlog"); else if (sv->plot_ylogscale==TRUE) fprintf(file," ylog"); if ((strlen(sv->plot_xvalue)>0) && (sv->plot_xdefault==FALSE)) fprintf(file," vs %s",sv->plot_xvalue); if (sv->plot_xlinscale != FALSE) fprintf(file," linear"); fprintf(file,"\n"); } fprintf(file,"\n.endc \n.end \n"); g_strfreev(plot_y); fclose (file); } void start_plot(EasySpice *es) { gchar *buf=NULL; FILE *plotcommand_fid; if (VERBOSE2) printf("start_plot: entering plotting function\n"); /*kill the old plot if there's one there */ destroy_plot(es); /*creat the new plot */ buf=g_strdup_printf("{ xterm -geometry 80x5-0-0 -T \"plot log\" -e %s -i %s & } && echo $!", es->commands->spice_command, es->file_spice_plot); if (VERBOSE1) printf("executing: \"%s\"\n",buf); plotcommand_fid=popen(buf, "r"); fscanf(plotcommand_fid," %d", &(es->plotcommand_pid)); if (VERBOSE3) printf(" pid of plotting command is %d\n",es->plotcommand_pid); g_free(buf); } void destroy_plot(EasySpice *es) { gchar *buf; /* destroy the last plot if pid exists */ if (es->plotcommand_pid > 0) { buf=g_strdup_printf("kill -9 %d", es->plotcommand_pid); es->plotcommand_pid=0; if (VERBOSE1) { printf("killing plotcommand\n"); printf("executing: \"%s\"\n",buf); } system(buf); g_free(buf); } } easy_spice-0.6.8/src/easyspice.h0000644000175000001440000000250410670740346013523 00000000000000#ifndef HAVE_EASY_SPICE_H #define HAVE_EASY_SPICE_H #include #include #include #include #include #include #include #include #include #include #include #include "struct.h" #include "prototypes.h" #include "support.h" /**** GLOBAL CONSTANTS AND STRUCTURES ************************************/ /* different verbose levels: * Verbose1 should print all external programm calls * Verbose2 should print function calls * Verbose3 is for detailed internal messages (e.g. parsing) * TODO: move the verbose level to the command line (e.g. -v -vv -vvv) */ #define VERBOSE1 1 #define VERBOSE2 0 #define VERBOSE3 0 /* Debug: should only be used for development */ #define DEBUG 0 /* The length of a char buffer for reading lines from files */ #define FICHIER_MAX_LINE 255 /* filename extention for the easyspice project files: * as "project" is not specific enough I'd recommend "easyspice" */ #define PROJECT_EXTENTION ".easyspice" #define PROJECT_RCFILENAME ".easyspicerc" /* Version number for every file written by easyspice. * Version 0 is the "old" colon seperated file format. It has no version number in it's files. * Version 1 is the first GKeyFile based file format */ #define FILE_FORMAT_VERSION 1 #endif easy_spice-0.6.8/src/util.c0000644000175000001440000006640210671542764012522 00000000000000/* * easy_spice - a spice front end * Copyright (C) 2001 Routoure Jean-Marc. * * 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 PARTIC2ULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ #ifdef HAVE_CONFIG_H # include #endif #include "easyspice.h" /* convert double value to printable text. * Two modes: * 0: using suffixes * We always try to print 4 significant figures, with one nonzero digit * to the left of the decimal point. * maximum field width: 7 characters * * 1: use scientific notation, printf %g format. * maximum field width appears to be 10 characters */ gchar* val2txt(double val, int mode) { static char buf[64]; double aval = fabs(val); double sval, asval; char suffix; int ddigits; switch(mode) { case 1: sprintf(buf, "% .4g", val); break; case 0: default: if (1e12 <= aval) { suffix = 'T'; sval = val / 1e12; } else if(1e9 <= aval && aval < 1e12) { suffix = 'G'; sval = val / 1e9; } else if(1e6 <= aval && aval < 1e9) { suffix = 'M'; sval = val / 1e6; } else if(1e3 <= aval && aval < 1e6) { suffix = 'K'; sval = val / 1000; } else if(1e-3 <= aval && aval < 1) { suffix = 'm'; sval = val * 1000; } else if(1e-6 <= aval && aval < 1e-3) { suffix = 'u'; sval = val * 1e6; } else if(1e-9 <= aval && aval < 1e-6) { suffix = 'n'; sval = val * 1e9; } else if(1e-12 <= aval && aval < 1e-9) { suffix = 'p'; sval = val * 1e12; } else if(1e-15 <= aval && aval < 1e-12) { suffix = 'f'; sval = val * 1e15; } else if(DBL_EPSILON < aval && aval < 1e-15) { suffix = 'a'; sval = val * 1e18; } else { suffix = ' '; sval = val; } asval = fabs(sval); if(1.0 <= asval && asval < 10.0) ddigits = 3; else if(10.0 <= asval && asval < 100.0) ddigits = 2; else ddigits = 1; sprintf(buf, "% .*f%c", ddigits, sval, suffix); break; } return buf; } gchar* update_str(gchar *ptr, const gchar *str) { g_free(ptr); return g_strdup(str); } void set_str(gchar **dest, const gchar *str) { if (str != NULL) { g_free(*dest); *dest = (gchar*) str; } } gchar* get_gtk_entry(GtkWidget *widget,gchar *entry_name) { return (gchar*) gtk_entry_get_text(GTK_ENTRY(lookup_widget (widget, entry_name))); } void set_gtk_entry(char *text, GtkWidget *widget, char *entry_name) { GtkWidget *tmp; tmp=lookup_widget (GTK_WIDGET (widget), entry_name); if (text == NULL) gtk_entry_set_text(GTK_ENTRY(tmp),""); else gtk_entry_set_text(GTK_ENTRY(tmp),text); } gboolean get_gtk_toggle_button(GtkWidget *widget,char *entry_name) { GtkWidget *tmp; tmp=lookup_widget (GTK_WIDGET (widget), entry_name); return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(tmp)); } void set_gtk_toggle_button(GtkWidget *widget,char *entry_name) { GtkWidget *tmp; tmp=lookup_widget (GTK_WIDGET (widget), entry_name); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(tmp),TRUE); } /* read a text file indicated by text_file and put the result */ /* in the GtkTextBuffer buffer */ gboolean textfile2buffer(gchar *textfile, GtkTextBuffer *buffer) { FILE *file; struct stat buf; gchar *tmp,*tmp2; gint c; if ((file = fopen(textfile, "r"))==NULL) { return FALSE; } if (stat(textfile, &buf)==0) { /* why are we reading this byte by byte? --> fread?? */ tmp=(gchar *)g_malloc(buf.st_size*sizeof(gchar)+5); if (DEBUG) printf("textfile2buffer: file=\"%s\"textsize=%ld\n", textfile, buf.st_size); for (tmp2=tmp; (c=fgetc(file))!=EOF; tmp2++) { *tmp2=c; } *tmp2='\0'; gtk_text_buffer_set_text(buffer, tmp, -1); g_free(tmp); } fclose(file); return TRUE; } /* -------------- write a txt message to the log GtkText ------------------*/ void write_log(gchar *message) { extern EasySpice *easyspice; GtkTextBuffer *buffer; GtkTextIter buffer_start, buffer_end; buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW (lookup_widget(easyspice->win_main,"text_log"))); gtk_text_buffer_get_bounds (buffer,&buffer_start,&buffer_end); gtk_text_buffer_insert(GTK_TEXT_BUFFER(buffer),&buffer_end,message,-1); } /* -------------------------- Clean the log ------------------------------*/ void clean_log(EasySpice *es) { GtkTextBuffer *buffer; buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW (lookup_widget(es->win_main,"text_log"))); gtk_text_buffer_set_text(buffer,"",-1); } /* -------------------------- Clean the std output ------------------------*/ void clean_std_output(EasySpice *es) { GtkTextBuffer *buffer; buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW (lookup_widget(es->win_main,"text_spice_output"))); gtk_text_buffer_set_text(buffer,"",-1); } /* -------------------------- Clean the error output ------------------------*/ void clean_std_err(EasySpice *es) { GtkTextBuffer *buffer; buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW (lookup_widget(es->win_main,"text_spice_error"))); gtk_text_buffer_set_text(buffer,"",-1); } void easyspice_init(EasySpice *es) { es->win_main=NULL; es->dialog_file=NULL; es->dialog_spicelib=NULL; es->dialog_analyse=NULL; es->dialog_mainquit=NULL; es->project=NULL; es->file_schematic=NULL; es->file_schematic_tmp=NULL; es->file_spice_netlist=NULL; es->file_spice_simul=NULL; es->file_spice_results=NULL; es->file_spice_raw=NULL; es->file_spice_plot=NULL; es->file_spice_loadplot=NULL; es->file_spice_error=NULL; es->file_easyspice_project=NULL; es->current_n_step=0; es->current_simul=0; /* FIXME: not finished jet */ es->simulator_pid=-1; es->plotcommand_pid=-1; } void easyspice_filename_update(EasySpice *es) { g_free(es->file_schematic); es->file_schematic=g_strdup_printf("%s.sch",es->project); g_free(es->file_schematic_tmp); es->file_schematic_tmp=g_strdup_printf("%s_tmp.sch",es->project); g_free(es->file_spice_netlist); es->file_spice_netlist=g_strdup_printf("%s.net",es->project); g_free(es->file_spice_simul); es->file_spice_simul=g_strdup_printf("%s.cir",es->project); g_free(es->file_spice_results); es->file_spice_results=g_strdup_printf("%s.txt.res",es->project); g_free(es->file_spice_raw); es->file_spice_raw=g_strdup_printf("%s_rawspice.raw",es->project); g_free(es->file_spice_plot); es->file_spice_plot=g_strdup_printf("%s_plot.cir",es->project); g_free(es->file_spice_loadplot); es->file_spice_loadplot=g_strdup_printf("%s_loadplot.cir",es->project); g_free(es->file_spice_error); es->file_spice_error=g_strdup_printf("%s.err",es->project); g_free(es->file_easyspice_project); es->file_easyspice_project=g_strdup_printf("%s.easyspice",es->project); } void spice_variables_init(SpiceVariables *sv) { sv->dc_source1 = NULL; sv->dc_start1 = NULL; sv->dc_stop1 = NULL; sv->dc_inc1 = NULL; sv->dc_source2 = NULL; sv->dc_start2 = NULL; sv->dc_stop2 = NULL; sv->dc_inc2 = NULL; sv->ac_points = NULL; sv->ac_fmin = NULL; sv->ac_fmax = NULL; sv->noise_node = NULL; sv->noise_source = NULL; sv->noise_points = NULL; sv->noise_fmin = NULL; sv->noise_fmax = NULL; sv->tran_tstop = NULL; sv->tran_tstep = NULL; sv->tran_tmax = NULL; sv->tran_tstart = NULL; sv->tf_output = NULL; sv->tf_source = NULL; sv->param_name = NULL; sv->param_param = NULL; sv->param_start = NULL; sv->param_stop = NULL; sv->param_step = NULL; sv->param_values = NULL; sv->plot_pre = NULL; sv->plot_xvalue = NULL; sv->plot_yvalues = NULL; } void spice_variables_default(SpiceVariables *sv) { sv->op_show_netlist = FALSE; sv->op_show_models = FALSE; sv->op_show_results_schematic = FALSE; sv->dc_source1 = update_str(sv->dc_source1, ""); sv->dc_start1 = update_str(sv->dc_start1, "0"); sv->dc_stop1 = update_str(sv->dc_stop1, "5"); sv->dc_inc1 = update_str(sv->dc_inc1, "0.1");; sv->dc_source2 = update_str(sv->dc_source2, ""); sv->dc_start2 = update_str(sv->dc_start2, ""); sv->dc_stop2 = update_str(sv->dc_stop2, ""); sv->dc_inc2 = update_str(sv->dc_inc2, ""); sv->ac_type = SWEEP_DEC; sv->ac_points = update_str(sv->ac_points, "10"); sv->ac_fmin = update_str(sv->ac_fmin, "10"); sv->ac_fmax = update_str(sv->ac_fmax, "100000"); sv->noise_node = update_str(sv->noise_node, ""); sv->noise_source = update_str(sv->noise_source, ""); sv->noise_type = SWEEP_DEC; sv->noise_points = update_str(sv->noise_points, "10"); sv->noise_fmin = update_str(sv->noise_fmin, "1Meg"); sv->noise_fmax = update_str(sv->noise_fmax, "10G"); sv->tran_tstop = update_str(sv->tran_tstop, "100us"); sv->tran_tstep = update_str(sv->tran_tstep, "100ns"); sv->tran_tmax = update_str(sv->tran_tmax, ""); sv->tran_tstart = update_str(sv->tran_tstart, ""); sv->tf_output = update_str(sv->tf_output, ""); sv->tf_source = update_str(sv->tf_source, ""); sv->param_activ = FALSE; sv->param_name = update_str(sv->param_name, ""); sv->param_param = update_str(sv->param_param, ""); sv->param_type = SWEEP_LIN; sv->param_start = update_str(sv->param_start, ""); sv->param_stop = update_str(sv->param_stop, ""); sv->param_step = update_str(sv->param_step, ""); sv->param_values = update_str(sv->param_values, ""); sv->plot_pre = update_str(sv->plot_pre, ""); sv->plot_xdefault = TRUE; sv->plot_xvalue = update_str(sv->plot_xvalue, ""); sv->plot_xlogscale = FALSE; sv->plot_xlinscale = FALSE; sv->plot_yvalues = update_str(sv->plot_yvalues, ""); sv->plot_ylogscale = FALSE; sv->plot_autoupdate =FALSE; } void spice_variables_set_entries(GtkWidget *win, SpiceVariables *sv) { GtkTextBuffer *buffer; if (sv->op_show_netlist != FALSE) set_gtk_toggle_button(win, "op_listing"); if (sv->op_show_models != FALSE) set_gtk_toggle_button(win, "op_param_view"); if (sv->op_show_results_schematic != FALSE) set_gtk_toggle_button(win, "op_op_view_schem"); set_gtk_entry(sv->dc_source1, win, "dc_source1"); set_gtk_entry(sv->dc_start1, win, "dc_start1"); set_gtk_entry(sv->dc_stop1, win, "dc_stop1"); set_gtk_entry(sv->dc_inc1, win, "dc_inc1"); set_gtk_entry(sv->dc_source2, win, "dc_source2"); set_gtk_entry(sv->dc_start2, win, "dc_start2"); set_gtk_entry(sv->dc_stop2, win, "dc_stop2"); set_gtk_entry(sv->dc_inc2, win, "dc_inc2"); if (sv->ac_type == SWEEP_DEC) set_gtk_toggle_button(win, "ac_dec"); if (sv->ac_type == SWEEP_LIN) set_gtk_toggle_button(win, "ac_lin"); if (sv->ac_type == SWEEP_OCT) set_gtk_toggle_button(win, "ac_oct"); set_gtk_entry(sv->ac_points, win, "ac_nombre"); set_gtk_entry(sv->ac_fmin, win, "ac_fmin"); set_gtk_entry(sv->ac_fmax, win, "ac_fmax"); set_gtk_entry(sv->noise_node, win, "noise_node"); set_gtk_entry(sv->noise_source, win, "noise_source"); if (sv->noise_type == SWEEP_DEC) set_gtk_toggle_button(win, "noise_dec"); if (sv->noise_type == SWEEP_LIN) set_gtk_toggle_button(win, "noise_lin"); if (sv->noise_type == SWEEP_OCT) set_gtk_toggle_button(win, "noise_oct"); set_gtk_entry(sv->noise_points, win, "noise_nombre"); set_gtk_entry(sv->noise_fmin, win, "noise_fmin"); set_gtk_entry(sv->noise_fmax, win, "noise_fmax"); set_gtk_entry(sv->tran_tstop, win, "tran_tstop"); set_gtk_entry(sv->tran_tstep, win, "tran_tstep"); set_gtk_entry(sv->tran_tmax, win, "tran_tmax"); set_gtk_entry(sv->tran_tstart, win, "tran_tstart"); set_gtk_entry(sv->tf_output, win, "tf_output"); set_gtk_entry(sv->tf_source, win, "tf_source"); if (sv->param_activ != FALSE) set_gtk_toggle_button(win, "param_enable"); set_gtk_entry(sv->param_name, win, "param_name"); set_gtk_entry(sv->param_param, win, "param_param"); if (sv->param_type == SWEEP_DEC) set_gtk_toggle_button(win, "param_dec"); if (sv->param_type == SWEEP_LIN) set_gtk_toggle_button(win, "param_lin"); if (sv->param_type == SWEEP_LIST) set_gtk_toggle_button(win, "param_list"); set_gtk_entry(sv->param_start, win, "param_start"); set_gtk_entry(sv->param_stop, win, "param_stop"); set_gtk_entry(sv->param_step, win, "param_step"); set_gtk_entry(sv->param_values, win, "param_values"); buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW(lookup_widget(win,"plot_pre_text"))); gtk_text_buffer_set_text(buffer, sv->plot_pre, -1); if (sv->plot_xdefault != FALSE) set_gtk_toggle_button(win, "plot_xdefault"); set_gtk_entry(sv->plot_xvalue, win, "plot_x"); if (sv->plot_xlogscale != FALSE) set_gtk_toggle_button(win, "plot_xlog_scale"); if (sv->plot_xlinscale != FALSE) set_gtk_toggle_button(win, "plot_xlin_scale"); set_gtk_entry(sv->plot_yvalues, win, "plot_y"); if (sv->plot_ylogscale != FALSE) set_gtk_toggle_button(win, "plot_ylog_scale"); if (sv->plot_autoupdate != FALSE) set_gtk_toggle_button(win, "plot_auto_update"); } void spice_variables_get_entries(GtkWidget *win, SpiceVariables *sv) { GtkTextBuffer *buffer; GtkTextIter buffer_start, buffer_end; sv->op_show_netlist = get_gtk_toggle_button(win, "op_listing"); sv->op_show_models = get_gtk_toggle_button(win, "op_param_view"); sv->op_show_results_schematic = get_gtk_toggle_button(win, "op_op_view_schem"); sv->dc_source1 = update_str(sv->dc_source1, get_gtk_entry(win, "dc_source1")); sv->dc_start1 = update_str(sv->dc_start1, get_gtk_entry(win, "dc_start1")); sv->dc_stop1 = update_str(sv->dc_stop1, get_gtk_entry(win, "dc_stop1")); sv->dc_inc1 = update_str(sv->dc_inc1, get_gtk_entry(win, "dc_inc1")); sv->dc_source2 = update_str(sv->dc_source2, get_gtk_entry(win, "dc_source2")); sv->dc_start2 = update_str(sv->dc_start2, get_gtk_entry(win, "dc_start2")); sv->dc_stop2 = update_str(sv->dc_stop2, get_gtk_entry(win, "dc_stop2")); sv->dc_inc2 = update_str(sv->dc_inc2, get_gtk_entry(win, "dc_inc2")); if (get_gtk_toggle_button(win, "ac_dec")) sv->ac_type= SWEEP_DEC; if (get_gtk_toggle_button(win, "ac_lin")) sv->ac_type= SWEEP_LIN; if (get_gtk_toggle_button(win, "ac_oct")) sv->ac_type= SWEEP_OCT; sv->ac_points = update_str(sv->ac_points, get_gtk_entry(win, "ac_nombre")); sv->ac_fmin = update_str(sv->ac_fmin, get_gtk_entry(win, "ac_fmin")); sv->ac_fmax = update_str(sv->ac_fmax, get_gtk_entry(win, "ac_fmax")); sv->noise_node = update_str(sv->noise_node, get_gtk_entry(win, "noise_node")); sv->noise_source = update_str(sv->noise_source, get_gtk_entry(win, "noise_source")); if (get_gtk_toggle_button(win, "noise_dec")) sv->noise_type=SWEEP_DEC; if (get_gtk_toggle_button(win, "noise_lin")) sv->noise_type=SWEEP_LIN; if (get_gtk_toggle_button(win, "noise_oct")) sv->noise_type=SWEEP_OCT; sv->noise_points = update_str(sv->noise_points, get_gtk_entry(win, "noise_nombre")); sv->noise_fmin = update_str(sv->noise_fmin, get_gtk_entry(win, "noise_fmin")); sv->noise_fmax = update_str(sv->noise_fmax, get_gtk_entry(win, "noise_fmax")); sv->tran_tstop = update_str(sv->tran_tstop, get_gtk_entry(win, "tran_tstop")); sv->tran_tstep = update_str(sv->tran_tstep, get_gtk_entry(win, "tran_tstep")); sv->tran_tmax = update_str(sv->tran_tmax, get_gtk_entry(win, "tran_tmax")); sv->tran_tstart = update_str(sv->tran_tstart, get_gtk_entry(win, "tran_tstart")); sv->tf_output = update_str(sv->tf_output, get_gtk_entry(win, "tf_output")); sv->tf_source = update_str(sv->tf_source, get_gtk_entry(win, "tf_source")); sv->param_activ = get_gtk_toggle_button(win, "param_enable"); sv->param_name = update_str(sv->param_name, get_gtk_entry(win, "param_name")); sv->param_param = update_str(sv->param_param, get_gtk_entry(win, "param_param")); if (get_gtk_toggle_button(win, "param_dec")) sv->param_type=SWEEP_DEC; if (get_gtk_toggle_button(win, "param_lin")) sv->param_type=SWEEP_LIN; if (get_gtk_toggle_button(win, "param_list")) sv->param_type=SWEEP_LIST; sv->param_start = update_str(sv->param_start, get_gtk_entry(win, "param_start")); sv->param_stop = update_str(sv->param_stop, get_gtk_entry(win, "param_stop")); sv->param_step = update_str(sv->param_step, get_gtk_entry(win, "param_step")); sv->param_values = update_str(sv->param_values, get_gtk_entry(win, "param_values")); buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW(lookup_widget(win,"plot_pre_text"))); gtk_text_buffer_get_bounds(buffer, &buffer_start, &buffer_end); g_free(sv->plot_pre); sv->plot_pre=gtk_text_buffer_get_text(buffer,&buffer_start, &buffer_end, TRUE); sv->plot_xdefault = get_gtk_toggle_button(win, "plot_xdefault"); sv->plot_xvalue = update_str(sv->plot_xvalue,get_gtk_entry(win, "plot_x")); sv->plot_xlogscale = get_gtk_toggle_button(win, "plot_xlog_scale"); sv->plot_xlinscale = get_gtk_toggle_button(win, "plot_xlin_scale"); sv->plot_yvalues = update_str(sv->plot_yvalues, get_gtk_entry(win, "plot_y")); sv->plot_ylogscale = get_gtk_toggle_button(win, "plot_ylog_scale"); sv->plot_autoupdate = get_gtk_toggle_button(win, "plot_auto_update"); } void spice_variables_delete(SpiceVariables *sv) { } void readspice_value(gchar **dest, gchar *s1, gchar *s2, gchar *value) { if (strcmp(s1,s2) == 0) { g_free(*dest); *dest = g_strdup(value); } } void textviewer_init(Textviewer *tv) { tv->dialog=NULL; } void geda_settings_init(GedaSettings *geda) { geda->dialog=NULL; geda->include_dir=NULL; geda->gnetlist_command_line=NULL; geda->attr=NULL; geda->gschem_textsize=NULL; geda->gschem_gridsize=NULL; } void geda_settings_default(GedaSettings *geda) { geda->include_cwd=TRUE; geda->include_dir=update_str(geda->include_dir, ""); geda->gnetlist_command_line=update_str(geda->gnetlist_command_line, "gnetlist -g spice -o"); geda->pinlabel_attr=TRUE; geda->attr=update_str(geda->attr, ""); geda->gschem_textsize=update_str(geda->gschem_textsize, "8"); geda->gschem_gridsize=update_str(geda->gschem_gridsize, "100"); geda->gnetlist_priority_node=TRUE; geda->gnetlist_hierarchy_allow=TRUE; } void geda_settings_delete(GedaSettings *geda) { g_free(geda->include_dir); g_free(geda->gnetlist_command_line); g_free(geda->attr); g_free(geda->gschem_textsize); g_free(geda->gschem_gridsize); } void geda_settings_set_entries(GtkWidget *dialog, GedaSettings *geda) { set_gtk_entry(geda->include_dir, dialog, "include_directory_entry"); set_gtk_entry(geda->gnetlist_command_line, dialog, "gnetlist_command_line_entry"); set_gtk_entry(geda->attr, dialog, "geda_labels_entry"); set_gtk_entry(geda->gschem_textsize, dialog, "text_size_entry"); set_gtk_entry(geda->gschem_gridsize, dialog, "snap_size_entry"); if (geda->include_cwd == TRUE) set_gtk_toggle_button(dialog, "includecwd_yes_radiobutton"); else set_gtk_toggle_button(dialog, "includecwd_no_radiobutton"); if (geda->pinlabel_attr == TRUE) set_gtk_toggle_button(dialog, "pinlabel_yes_radiobutton"); else set_gtk_toggle_button(dialog, "pinlabel_no_radiobutton"); if (geda->gnetlist_priority_node == TRUE) set_gtk_toggle_button(dialog, "netpriority_nodes_radiobutton"); else set_gtk_toggle_button(dialog, "netpriority_labels_radiobutton"); if (geda->gnetlist_hierarchy_allow == TRUE) set_gtk_toggle_button(dialog, "hierarchy_yes_radiobutton"); else set_gtk_toggle_button(dialog, "hierarchy_no_radiobutton"); } void geda_settings_get_entries(GtkWidget *dialog, GedaSettings *geda) { geda->include_dir=update_str(geda->include_dir, get_gtk_entry(dialog, "include_directory_entry")); geda->gnetlist_command_line=update_str(geda->gnetlist_command_line, get_gtk_entry(dialog, "gnetlist_command_line_entry")); geda->attr=update_str(geda->attr, get_gtk_entry(dialog, "geda_labels_entry")); geda->gschem_textsize=update_str(geda->gschem_textsize, get_gtk_entry(dialog, "text_size_entry")); geda->gschem_gridsize=update_str(geda->gschem_gridsize, get_gtk_entry(dialog, "snap_size_entry")); printf("%d",get_gtk_toggle_button(dialog, "includecwd_yes_radiobutton") ); if (get_gtk_toggle_button(dialog, "includecwd_yes_radiobutton") == TRUE) geda->include_cwd=TRUE; else geda->include_cwd=FALSE; if (get_gtk_toggle_button(dialog, "pinlabel_yes_radiobutton") == TRUE) geda->pinlabel_attr=TRUE; else geda->pinlabel_attr=FALSE; if (get_gtk_toggle_button(dialog, "netpriority_nodes_radiobutton") == TRUE) geda->gnetlist_priority_node=TRUE; else geda->gnetlist_priority_node=FALSE; if (get_gtk_toggle_button(dialog, "hierarchy_yes_radiobutton") == TRUE) geda->gnetlist_hierarchy_allow=TRUE; else geda->gnetlist_hierarchy_allow=FALSE; } void commands_init(ExternalProgramms *prog) { prog->dialog=NULL; prog->editor=NULL; prog->plot_command=NULL; prog->spice_command=NULL; prog->browser=NULL; prog->html_files=NULL; prog->spicehelp_command=NULL; } void commands_set_default(ExternalProgramms *prog) { prog->editor=update_str(prog->editor, "xemacs"); prog->plot_command=update_str(prog->plot_command, "ngspice"); prog->spice_command=update_str(prog->spice_command, "ngspice"); prog->browser=update_str(prog->browser, "firefox"); prog->html_files=update_str(prog->html_files, "file:///usr/local/doc/spice/index.html"); prog->spicehelp_command=update_str(prog->spicehelp_command, "nghelp"); } void commands_delete(ExternalProgramms *prog) { g_free(prog->editor); g_free(prog->plot_command); g_free(prog->spice_command); g_free(prog->browser); g_free(prog->html_files); g_free(prog->spicehelp_command); } void commands_set_entries(GtkWidget *dialog, ExternalProgramms *prog) { set_gtk_entry(prog->editor, dialog, "texteditor_entry"); set_gtk_entry(prog->plot_command, dialog, "plot_command_entry"); set_gtk_entry(prog->spice_command, dialog, "simulator_command_entry"); set_gtk_entry(prog->browser, dialog, "browser_entry"); set_gtk_entry(prog->html_files, dialog, "html_index_entry"); set_gtk_entry(prog->spicehelp_command, dialog, "help_command_entry"); } void commands_get_entries(GtkWidget *dialog, ExternalProgramms *prog) { prog->editor=update_str(prog->editor, get_gtk_entry(dialog, "texteditor_entry")); prog->plot_command=update_str(prog->plot_command, get_gtk_entry(dialog, "plot_command_entry")); prog->spice_command=update_str(prog->spice_command, get_gtk_entry(dialog, "simulator_command_entry")); prog->browser=update_str(prog->browser, get_gtk_entry(dialog, "browser_entry")); prog->html_files=update_str(prog->html_files, get_gtk_entry(dialog, "html_index_entry")); prog->spicehelp_command=update_str(prog->spicehelp_command, get_gtk_entry(dialog, "help_command_entry")); } void postprocessing_init(PostProcessing *postproc) { postproc->dialog=NULL; postproc->commands=g_strdup(""); } void postprocessing_set_entries(PostProcessing *postproc) { GtkTextBuffer *buffer; buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW (lookup_widget(postproc->dialog ,"textview"))); gtk_text_buffer_set_text(buffer,postproc->commands,-1); } void postprocessing_get_entries(PostProcessing *postproc) { GtkTextBuffer *buffer; GtkTextIter start, end; buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW (lookup_widget(postproc->dialog ,"textview"))); gtk_text_buffer_get_bounds(buffer, &start, &end); g_free(postproc->commands); postproc->commands=gtk_text_buffer_get_text(buffer, &start, &end, TRUE); } void postprocessing_delete(PostProcessing *postproc) { g_free(postproc->commands); postproc->commands=g_strdup(""); } void spicelibrary_init(SpiceLibrary *spicelib) { spicelib->dialog=NULL; spicelib->libs=NULL; spicelib->store=NULL; } void spicelibrary_delete(SpiceLibrary *spicelib) { g_list_foreach(spicelib->libs, (GFunc) free_element, NULL); g_list_free(spicelib->libs); spicelib->libs=NULL; } /* -------------------------------------------------------------------*/ /* convert a sci notation k to e3 and so on */ /* ------------------------------------------------------------------ */ double spice2double(gchar *sp_value) { gchar *unit; double value; gint token; /* get enough memory for sp_value */ unit = g_strdup(sp_value); token = sscanf(sp_value," %lf%s",&value, unit); if (token == 0) { /* no value given */ printf(_("spice2double: no value given [%s]\n"),sp_value); } else if (token == 1) { /* value is allready sciformat */ /* void */ } else if (token == 2) { /* unit needs to be converted */ switch (unit[0]) { case 'f': case 'F': value *= 1e-15; break; case 'p': case 'P': value *= 1e-12; break; case 'n': case 'N': value *= 1e-9; break; case 'u': case 'U': value *= 1e-6; break; case 'm': value *=1e-3; break; case 'M': if ((unit[1] =='e' && unit[2] == 'g') || (unit[1] == 'E' && unit[2] == 'G')) value *= 1e+6; else value *= 1e-3; break; case 'k': case 'K': value *= 1e+3; break; case 'g': case 'G': value *= 1e9; break; default: printf(_("spice2double: strange unit [%s] in value [%s]\n"),unit,sp_value); } } g_free(unit); return value; } void project_set_title(EasySpice *es) { gchar *window_title; window_title = g_strdup_printf("%s - easy_spice", es->project); gtk_window_set_title (GTK_WINDOW (es->win_main), window_title); g_free(window_title); } void textfile_view(Textviewer *tv, gchar *filename) { GtkTextBuffer *buffer; gchar *buf; if (tv->dialog == NULL) { tv->dialog = create_txt_viewer(tv); } buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW(lookup_widget(tv->dialog,"gtk_txt_view"))); if (textfile2buffer(filename, buffer) == TRUE) { gtk_label_set_text (GTK_LABEL(lookup_widget(tv->dialog,"label_filename")), filename); gtk_widget_show(tv->dialog); gtk_window_present(GTK_WINDOW(tv->dialog)); } else { buf=g_strdup_printf(_("Error reading text file %s\n"), filename); write_log(buf); g_free(buf); gtk_widget_destroy(tv->dialog); tv->dialog = NULL; } } /* switch on/off the "LED" in the main windows */ void led_ok(GtkWidget *win) { gtk_widget_show(lookup_widget (win, "pixmap_log_ok")); gtk_widget_hide(lookup_widget (win, "pixmap_log_false")); } void led_false(GtkWidget *win) { gtk_widget_hide(lookup_widget (win, "pixmap_log_ok")); gtk_widget_show(lookup_widget (win, "pixmap_log_false")); } void led_off(GtkWidget *win) { gtk_widget_hide(lookup_widget (win, "pixmap_log_ok")); gtk_widget_hide(lookup_widget (win, "pixmap_log_false")); } void keyvalue_print_list(GList *item) { for (item=g_list_first(item);item != NULL; item=g_list_next(item)) { printf(" key=\"%s\", value=\"%s\"\n", ((KeyValue*)(item->data))->key, ((KeyValue*)(item->data))->value); } } gint keyvalue_compare_key(KeyValue *kv1, gchar *key) { gint len; len=strlen(kv1->key); if (strlen(key) > len) len=strlen(key); return g_ascii_strncasecmp(kv1->key, key, len); } gint spicedevice_compare_name(SpiceDevice *sd, gchar *name) { gint len; len=strlen(sd->name); if (strlen(name) > len) len=strlen(name); return g_ascii_strncasecmp(sd->name, name, len); } easy_spice-0.6.8/src/struct.h0000644000175000001440000000771310671542663013074 00000000000000/* file selection */ enum FileSelectionType {MODEL_FILE=0, PROJECT_FILE}; /* simulation */ enum SimulationType {SIMUL_OP=1, SIMUL_DC, SIMUL_AC, SIMUL_TRAN, SIMUL_TF, SIMUL_NOISE}; /* type of simulation for ac noise param */ enum SweepType {SWEEP_DEC=0, SWEEP_LIN, SWEEP_OCT, SWEEP_LIST}; /* type of devices which can be found in spice */ enum SpiceDeviceType { SPICE_DIPOLE=0, SPICE_TRANSISTOR, SPICE_OTHER, SPICE_VOLTAGE_SOURCE, SPICE_CURRENT_SOURCE}; typedef struct KeyValueStruct { gchar *key; gchar *value; } KeyValue; typedef struct SpiceDeviceStruct { gchar *name; /* the device name */ gint type; /* the device type */ GList *result; /* list of KeyValue for the device params and op_values */ } SpiceDevice; /* structures used for the netlist */ typedef struct SpiceNetlistStruct { GList *nodenames; /* list of nodenames (gchar) */ GList *devices; /* list of SpiceDevice */ GList *op_result; /* list of KeyValue of OP-Results */ } SpiceNetlist; /* all the spice values */ typedef struct SpiceVariableStruct { gboolean op_show_netlist; gboolean op_show_models; gboolean op_show_results_schematic; gchar *dc_source1; gchar *dc_start1; gchar *dc_stop1; gchar *dc_inc1; gchar *dc_source2; gchar *dc_start2; gchar *dc_stop2; gchar *dc_inc2; enum SweepType ac_type; gchar *ac_points; gchar *ac_fmin; gchar *ac_fmax; gchar *noise_node; gchar *noise_source; enum SweepType noise_type; gchar *noise_points; gchar *noise_fmin; gchar *noise_fmax; gchar *tran_tstop; gchar *tran_tstep; gchar *tran_tmax; gchar *tran_tstart; gchar *tf_output; gchar *tf_source; gboolean param_activ; gchar *param_name; gchar *param_param; enum SweepType param_type; gchar *param_start; gchar *param_stop; gchar *param_step; gchar *param_values; /* plotting the results */ gchar *plot_pre; gboolean plot_xdefault; gchar *plot_xvalue; gboolean plot_xlogscale; gboolean plot_xlinscale; gchar *plot_yvalues; gboolean plot_ylogscale; gboolean plot_autoupdate; } SpiceVariables; typedef struct PostProcessingStruct { GtkWidget *dialog; gchar *commands; } PostProcessing; typedef struct SpiceLibraryStruct { GtkWidget *dialog; GList *libs; GtkListStore *store; GtkTreeModel *model; } SpiceLibrary; typedef struct GedaSettingsStruct { GtkWidget *dialog; gboolean include_cwd; gchar *include_dir; gboolean pinlabel_attr; gchar *attr; gchar *gschem_textsize; gchar *gschem_gridsize; gboolean gnetlist_priority_node; gboolean gnetlist_hierarchy_allow; gchar *gnetlist_command_line; } GedaSettings; typedef struct ExternalProgrammsStruct { GtkWidget *dialog; gchar *editor; gchar *plot_command; gchar *spice_command; gchar *browser; gchar *html_files; gchar *spicehelp_command; } ExternalProgramms; typedef struct TextviewerStruct { GtkWidget *dialog; } Textviewer; typedef struct EasySpiceStruct { /* window pointers */ GtkWidget *win_main; GtkWidget *dialog_file; GtkWidget *dialog_spicelib; GtkWidget *dialog_analyse; GtkWidget *dialog_mainquit; /* project and filenames */ gchar *project; gchar *file_schematic; gchar *file_schematic_tmp; gchar *file_spice_netlist; gchar *file_spice_simul; gchar *file_spice_results; gchar *file_spice_raw; gchar *file_spice_plot; gchar *file_spice_loadplot; gchar *file_spice_error; gchar *file_easyspice_project; /* programm names, ... */ ExternalProgramms *commands; /* geda settings */ GedaSettings *geda; /* spice post processing dialog */ PostProcessing *postproc; /* Textviewer dialog data */ Textviewer *textviewer; /* spice lib dialog data */ SpiceLibrary *spicelibrary; /* spice settings (from win_main) */ SpiceVariables *spice_vars; SpiceNetlist *netlist; /* variables for parametric simulations */ gint current_simul; gint current_n_step; /* unix process id's for external commands */ gint simulator_pid; gint plotcommand_pid; } EasySpice; easy_spice-0.6.8/NEWS0000644000175000001440000000516410400332102011254 00000000000000Version 0.6.7 (March 2006) ==================== - Ported to Gtk2 - support for new gschem file format - library dialog - file open, save, save_as added - local configuration file - bug fixes Version 0.6.6 (June 2004) ==================== - With the help of Olivier Hervieu, a txt viewer has been added. We do not need xless anymore - A button has been added to see of spice txt output in the txt viewer - Some entry are now automaticaly filled with list of possible choice (for instance for DC analysis, the user choose the source using a combo) - The result of the OP analysis now used some combos to see the voltage node the modele parameters for instance. - Many many bug must have been introduced and the interface seems to core dump very often. Version 0.6.5 ==================== -still continue to clean the code -add a postprocessing ability when plotting Version 0.6.4 ==================== ngspice in now the only simulator by default, the bin is /usr/local/ngspice/bin/ngspice the environnement variable is now : EASY_SPICE_BIN Version 0.6.3 ==================== Many functions and certainly bugs have been added : - Many simulations can be started using a parameter. Beware the numerical values must not use scientific notations using exponetial notation e. To make a simulation with different values of a resistance : name : R1 param : resistance For a DC source source : name: V1 param: dc And so on. See the spice reference manual to select the right name of the param. - A small interface to nutmeg has been added. It will be enabled only if simulation succeed. You just have to indicate the quantity you want to plot separated with a white space. - Tests has been added to see if netlist is correctly generated and to see if simulations have succeed. - A log window has been added in the interface to avoid many windows to be opened. When a error occurs, a message must appear in this log. - The interface with other pollting software have completely been removed. I have made the decision to use ng-spice as a default simulator. - Some parts of the code have been cleaned. - The noise simulation has been added. version 0.6.1 ==================== For the fisrt time, I decid to update the NEWS file. Sorry for my poor english! - Add the ability to see the result of the OP simulation on the schematic for the node with a label and for the voltage source. - Bug fixes - Test if the netlist if valid before running a simulation. Test if a ground (0)label exists. - add the "passerelle" to spice_plot (my 2nd prog for spice). version 0.5.3 (March 2001) ==================== easy_spice-0.6.8/TODO0000644000175000001440000000165710673153753011301 00000000000000TODO-List: =============== * check the whole code for memory leaks * check the whole code for verbose messages * add example/test directory * simulation with hierarchical schematics and libs * simulations with subcircuits * the whole variable structs are crap. The next redesign should use key-value lists. (slower but much easier to maintain) * buffer needs to be UTF-8: conversion required * if parametric simulation is activ, something went wrong (can't reproduce this at the moment) * run simulations in background and add a kill button beside the simulation buttons (stop sign) * run all external commands inside threads * remove the requirement of a terminal for easyspice, running ngspice in a shell is ok. * make dist: learn how to include the tests files * option menu: maybe add an spice options menu, there's allready a dialog inside interface.c (never seen before) * remove global EasySpice struct easy_spice-0.6.8/depcomp0000755000175000001440000003677410326461553012171 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2005-02-09.22 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . 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 case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mecanism 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 in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: easy_spice-0.6.8/aclocal.m40000644000175000001440000014313110673023671012436 00000000000000# generated automatically by aclocal 1.9.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # 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. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [$4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.6])]) # 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` ]) # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # This was merged into AC_PROG_CC in Autoconf. AU_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC AC_DIAGNOSE([obsolete], [$0: your code should no longer depend upon `am_cv_prog_cc_stdc', but upon `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when you adjust the code. You can also remove the above call to AC_PROG_CC if you already called it elsewhere.]) am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc ]) AU_DEFUN([fp_PROG_CC_STDC]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 7 # 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]) AC_SUBST([$1_FALSE]) if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /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 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.58])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 # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 AC_DEFUN([AM_MAINTAINER_MODE], [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode, [ --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer], USE_MAINTAINER_MODE=$enableval, USE_MAINTAINER_MODE=no) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST(MAINT)dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # 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 # Copyright (C) 1995-2002 Free Software Foundation, Inc. # Copyright (C) 2001-2003,2004 Red Hat, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # # Macro to add for using GNU gettext. # Ulrich Drepper , 1995, 1996 # # Modified to never use included libintl. # Owen Taylor , 12/15/1998 # # Major rework to remove unused code # Owen Taylor , 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor 5/30/3002 # # Modified to require ngettext # Matthias Clasen 08/06/2004 # # We need this here as well, since someone might use autoconf-2.5x # to configure GLib then an older version to configure a package # using AM_GLIB_GNU_GETTEXT AC_PREREQ(2.53) dnl dnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macros dnl when running aclocal in the glib directory. dnl m4_copy([AC_DEFUN],[glib_DEFUN]) m4_copy([AC_REQUIRE],[glib_REQUIRE]) dnl dnl At the end, if we're not within glib, we'll define the public dnl definitions in terms of our private definitions. dnl # GLIB_LC_MESSAGES #-------------------- glib_DEFUN([GLIB_LC_MESSAGES], [AC_CHECK_HEADERS([locale.h]) if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi fi]) # GLIB_PATH_PROG_WITH_TEST #---------------------------- dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # GLIB_WITH_NLS #----------------- glib_DEFUN([GLIB_WITH_NLS], dnl NLS is obligatory [USE_NLS=yes AC_SUBST(USE_NLS) gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= AC_CHECK_HEADER(libintl.h, [gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, [AC_TRY_LINK([ #include ], [return !ngettext ("","", 1)], gt_cv_func_ngettext_libc=yes, gt_cv_func_ngettext_libc=no) ]) if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, [AC_TRY_LINK([ #include ], [return !dgettext ("","")], gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no) ]) fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CHECK_FUNCS(bind_textdomain_codeset) fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dgettext, gt_cv_func_dgettext_libintl=yes)])]) if test "$gt_cv_func_dgettext_libintl" != "yes" ; then AC_MSG_CHECKING([if -liconv is needed to use gettext]) AC_MSG_RESULT([]) AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dcgettext, [gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv], :,-liconv)], :,-liconv) fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset AC_CHECK_FUNCS(bind_textdomain_codeset) LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT,1, [Define if the GNU gettext() function is already present or preinstalled.]) GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" AC_CHECK_FUNCS(dcgettext) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share and dnl and CATOBJEXT=.gmo in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac]) LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi ]) if test "$gt_cv_have_gettext" = "yes" ; then AC_DEFINE(ENABLE_NLS, 1, [always defined to indicate that i18n is enabled]) fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is not GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.in. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLLIBS) AC_SUBST(PO_IN_DATADIR_TRUE) AC_SUBST(PO_IN_DATADIR_FALSE) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) # AM_GLIB_GNU_GETTEXT # ------------------- # Do checks necessary for use of gettext. If a suitable implementation # of gettext is found in either in libintl or in the C library, # it will set INTLLIBS to the libraries needed for use of gettext # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() # on various variables needed by the Makefile.in.in installed by # glib-gettextize. dnl glib_DEFUN([GLIB_GNU_GETTEXT], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_HEADER_STDC])dnl GLIB_LC_MESSAGES GLIB_WITH_NLS if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ]) # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) # ------------------------------- # Define VARIABLE to the location where catalog files will # be installed by po/Makefile. glib_DEFUN([GLIB_DEFINE_LOCALEDIR], [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl glib_save_prefix="$prefix" glib_save_exec_prefix="$exec_prefix" test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix=$prefix if test "x$CATOBJEXT" = "x.mo" ; then localedir=`eval echo "${libdir}/locale"` else localedir="${datadir}/locale" while true; do expanded_localedir=`eval echo "$localedir"` test "x$expanded_localedir" = "x$localedir" && break localedir="$expanded_localedir" done fi prefix="$glib_save_prefix" exec_prefix="$glib_save_exec_prefix" AC_DEFINE_UNQUOTED($1, "$localedir", [Define the location where the catalogs will be installed]) ]) dnl dnl Now the definitions that aclocal will find dnl ifdef(glib_configure_in,[],[ AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) ])dnl easy_spice-0.6.8/README0000644000175000001440000000426110400332102011432 00000000000000 easy_spice is a front end for spice. It is written using the gtk toolkit. ----------------------------------------------------------------------- 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 Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA ------------------------------------------------------------------- The program requires the following programs : spice (spice3f4, ng-spice) gschem gnetlist xterm QUICK and DIRTY DOCUMENTATION. You can set the location of spice by setting the EASY_SPICE_BIN environnement variable. By default, It will use the $PATH environment variable. The path can be choosen in the Options command windows ----------------------------- IMPORTANT!!! Start the program in a directory without a & at the end of the command line. The best thing to do is to create a small script which call the exe in a xterm without the & like this: #!/bin/bash #export EASY_SPICE_BIN="spice3f4" xterm -iconic -e /usr/local/easy_spice/bin/easy_spice $1 ---------------------------- You can append a project name after easy_spice : easy_spice toto toto is the name of the project and all the file generated (netlist .net, spice file .cir will use this name). Edit a schematic, create the netlist using the buttons of the main window and do the spice analysis. (spice is run in batch mode and the result can be plot using the menu window->plot results). A .include can be inserted in the netlist by using the menu Options-> library. The field entries (fmin, fmax, name of the library, post processing data) can be saved for a next session using the menu file-> save project. That's all Routoure JM/ Werner Hoch easy_spice-0.6.8/configure0000755000175000001440000101336210673023674012513 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.60. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be 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 # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF # 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 : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF # 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 : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # Find out whether ``test -x'' works. Don't use a zero-byte file, as # systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then as_executable_p="test -x" else as_executable_p=: fi rm -f conf$$.file # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="configure.in" # Factoring default headers for most tests. ac_includes_default="\ #include #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #endif #if HAVE_STRINGS_H # include #endif #if HAVE_INTTYPES_H # include #endif #if HAVE_STDINT_H # include #endif #if HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP GREP EGREP PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS CPPFLAGS CPP PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] 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/PACKAGE] --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 _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility PACKAGE_CFLAGS C compiler flags for PACKAGE, overriding pkg-config PACKAGE_LIBS linker flags for PACKAGE, 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. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.60 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.60. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version="1.9" ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=easy_spice VERSION=0.6.8 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #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" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } if test "${ac_cv_search_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF for ac_lib in '' cposix; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_strerror=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_strerror+set}" = set; then break fi done if test "${ac_cv_search_strerror+set}" = set; then : else ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 echo "${ECHO_T}$ac_cv_search_strerror" >&6; } ac_res=$ac_cv_search_strerror if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #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" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #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" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #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 rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi pkg_modules="gtk+-2.0 >= 2.6.0" if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for PACKAGE" >&5 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$PACKAGE_CFLAGS"; then pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$PACKAGE_LIBS"; then pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"` else PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"` fi # Put the nasty error message in config.log where it belongs echo "$PACKAGE_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met: $PACKAGE_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 PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements ($pkg_modules) were not met: $PACKAGE_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 PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&5 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi GETTEXT_PACKAGE=easy_spice cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF ALL_LINGUAS="de_DE fr_FR" # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in locale.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test $ac_cv_header_locale_h = yes; then { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } if test "${am_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then am_cv_val_LC_MESSAGES=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } if test $am_cv_val_LC_MESSAGES = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LC_MESSAGES 1 _ACEOF fi fi USE_NLS=yes gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= if test "${ac_cv_header_libintl_h+set}" = set; then { echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking libintl.h usability" >&5 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking libintl.h presence" >&5 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_libintl_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } fi if test $ac_cv_header_libintl_h = yes; then gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # { echo "$as_me:$LINENO: checking for ngettext in libc" >&5 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_ngettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !ngettext ("","", 1) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gt_cv_func_ngettext_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_ngettext_libc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; } if test "$gt_cv_func_ngettext_libc" = "yes" ; then { echo "$as_me:$LINENO: checking for dgettext in libc" >&5 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_dgettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !dgettext ("","") ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gt_cv_func_dgettext_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_dgettext_libc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; } fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then for ac_func in bind_textdomain_codeset do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bindtextdomain (); int main () { return bindtextdomain (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_intl_bindtextdomain=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_bindtextdomain=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } if test $ac_cv_lib_intl_bindtextdomain = yes; then { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_intl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } if test $ac_cv_lib_intl_ngettext = yes; then { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_dgettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dgettext (); int main () { return dgettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_intl_dgettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_dgettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } if test $ac_cv_lib_intl_dgettext = yes; then gt_cv_func_dgettext_libintl=yes fi fi fi if test "$gt_cv_func_dgettext_libintl" != "yes" ; then { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: " >&5 echo "${ECHO_T}" >&6; } { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_intl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } if test $ac_cv_lib_intl_ngettext = yes; then { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_dcgettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dcgettext (); int main () { return dcgettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_intl_dcgettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_dcgettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; } if test $ac_cv_lib_intl_dcgettext = yes; then gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv else : fi else : fi fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset for ac_func in bind_textdomain_codeset do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_GETTEXT 1 _ACEOF # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != "no"; then { echo "$as_me:$LINENO: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" for ac_func in dcgettext do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then CATOBJEXT=.gmo DATADIRNAME=share else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 case $host in *-*-solaris*) { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define bind_textdomain_codeset to an innocuous variant, in case declares bind_textdomain_codeset. For example, HP-UX 11i declares gettimeofday. */ #define bind_textdomain_codeset innocuous_bind_textdomain_codeset /* System header to define __stub macros and hopefully few prototypes, which can conflict with char bind_textdomain_codeset (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef bind_textdomain_codeset /* 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 bind_textdomain_codeset (); /* 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_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset choke me #endif int main () { return bind_textdomain_codeset (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_bind_textdomain_codeset=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_bind_textdomain_codeset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } if test $ac_cv_func_bind_textdomain_codeset = yes; then CATOBJEXT=.gmo DATADIRNAME=share else CATOBJEXT=.mo DATADIRNAME=lib fi ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi fi if test "$gt_cv_have_gettext" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define ENABLE_NLS 1 _ACEOF fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po ac_config_commands="$ac_config_commands default-1" for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS { echo "$as_me:$LINENO: result: $LINGUAS" >&5 echo "${ECHO_T}$LINGUAS" >&6; } fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES if test "x${prefix}" = "xNONE"; then cat >>confdefs.h <<_ACEOF #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale" _ACEOF else cat >>confdefs.h <<_ACEOF #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale" _ACEOF fi if test "x${datadir}" = 'x${prefix}/share'; then if test "x${prefix}" = "xNONE"; then cat >>confdefs.h <<_ACEOF #define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}" _ACEOF else cat >>confdefs.h <<_ACEOF #define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}" _ACEOF fi else cat >>confdefs.h <<_ACEOF #define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}" _ACEOF fi packagesrcdir=`cd $srcdir && pwd` cat >>confdefs.h <<_ACEOF #define PACKAGE_SOURCE_DIR "${packagesrcdir}" _ACEOF ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be 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 # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # Find out whether ``test -x'' works. Don't use a zero-byte file, as # systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then as_executable_p="test -x" else as_executable_p=: fi rm -f conf$$.file # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.60. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.60, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim MAINT!$MAINT$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim CPP!$CPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim USE_NLS!$USE_NLS$ac_delim MSGFMT!$MSGFMT$ac_delim GMSGFMT!$GMSGFMT$ac_delim XGETTEXT!$XGETTEXT$ac_delim CATALOGS!$CATALOGS$ac_delim CATOBJEXT!$CATOBJEXT$ac_delim DATADIRNAME!$DATADIRNAME$ac_delim GMOFILES!$GMOFILES$ac_delim INSTOBJEXT!$INSTOBJEXT$ac_delim INTLLIBS!$INTLLIBS$ac_delim PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim POFILES!$POFILES$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF POSUB!$POSUB$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| . 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi easy_spice-0.6.8/configure.in0000644000175000001440000000305010673020662013077 00000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT(configure.in) AM_INIT_AUTOMAKE(easy_spice, 0.6.8) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC pkg_modules="gtk+-2.0 >= 2.6.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) GETTEXT_PACKAGE=easy_spice AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The gettext package]) dnl Add the languages which your application supports here. ALL_LINGUAS="de_DE fr_FR" AM_GLIB_GNU_GETTEXT dnl Set PACKAGE_LOCALE_DIR in config.h. if test "x${prefix}" = "xNONE"; then AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale", [The localedir of the package]) else AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale", [The localedir of the package]) fi dnl Set PACKAGE_DATA_DIR in config.h. if test "x${datadir}" = 'x${prefix}/share'; then if test "x${prefix}" = "xNONE"; then AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [The datadir of the package]) else AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [The datadir of the package]) fi else AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}", [The datadir of the package]) fi dnl Set PACKAGE_SOURCE_DIR in config.h. packagesrcdir=`cd $srcdir && pwd` AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [The srcdir of the package]) AC_OUTPUT([ Makefile src/Makefile po/Makefile.in ]) easy_spice-0.6.8/config.guess0000755000175000001440000012542210326461553013121 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. timestamp='2005-02-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit 0 ;; --version | -v ) echo "$version" ; exit 0 ;; --help | --h* | -h ) echo "$usage"; exit 0 ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { 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 ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_MACHINE}" in i?86) test -z "$VENDOR" && VENDOR=pc ;; *) test -z "$VENDOR" && VENDOR=unknown ;; esac test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit 0 ;; amd64:OpenBSD:*:*) echo x86_64-unknown-openbsd${UNAME_RELEASE} exit 0 ;; amiga:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; cats:OpenBSD:*:*) echo arm-unknown-openbsd${UNAME_RELEASE} exit 0 ;; hp300:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; luna88k:OpenBSD:*:*) echo m88k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mac68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; macppc:OpenBSD:*:*) echo powerpc-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme68k:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvme88k:OpenBSD:*:*) echo m88k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; mvmeppc:OpenBSD:*:*) echo powerpc-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sgi:OpenBSD:*:*) echo mips64-unknown-openbsd${UNAME_RELEASE} exit 0 ;; sun3:OpenBSD:*:*) echo m68k-unknown-openbsd${UNAME_RELEASE} exit 0 ;; *:OpenBSD:*:*) echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} exit 0 ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit 0 ;; macppc:MirBSD:*:*) echo powerppc-unknown-mirbsd${UNAME_RELEASE} exit 0 ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit 0 ;; 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 0 ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit 0 ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit 0 ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit 0;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit 0 ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit 0 ;; *:OS/390:*:*) echo i370-ibm-openedition exit 0 ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit 0 ;; *:OS400:*:*) echo powerpc-ibm-os400 exit 0 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit 0;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit 0;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit 0 ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit 0 ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit 0 ;; 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 0 ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit 0 ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit 0 ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit 0 ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit 0 ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit 0 ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit 0 ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit 0 ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit 0 ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit 0 ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit 0 ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit 0 ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit 0 ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit 0 ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c \ && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ && exit 0 echo mips-mips-riscos${UNAME_RELEASE} exit 0 ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit 0 ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit 0 ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit 0 ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit 0 ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit 0 ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit 0 ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit 0 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit 0 ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit 0 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit 0 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit 0 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit 0 ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit 0 ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit 0 ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 echo rs6000-ibm-aix3.2.5 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit 0 ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit 0 ;; *:AIX:*:*) echo rs6000-ibm-aix exit 0 ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit 0 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit 0 ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit 0 ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit 0 ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit 0 ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit 0 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then # avoid double evaluation of $set_cc_for_build test -n "$CC_FOR_BUILD" || eval $set_cc_for_build if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit 0 ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 echo unknown-hitachi-hiuxwe2 exit 0 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit 0 ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit 0 ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit 0 ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit 0 ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit 0 ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit 0 ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit 0 ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit 0 ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit 0 ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit 0 ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit 0 ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit 0 ;; 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 0 ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit 0 ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit 0 ;; *:FreeBSD:*:*) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit 0 ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit 0 ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit 0 ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit 0 ;; x86:Interix*:[34]*) echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' exit 0 ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit 0 ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit 0 ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit 0 ;; amd64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit 0 ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit 0 ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit 0 ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit 0 ;; *: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 0 ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit 0 ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit 0 ;; cris:Linux:*:*) echo cris-axis-linux exit 0 ;; crisv32:Linux:*:*) echo crisv32-axis-linux exit 0 ;; frv:Linux:*:*) echo frv-${VENDOR}-linux exit 0 ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit 0 ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit 0 ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit 0 ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0 ;; ppc:Linux:*:*) echo powerpc-${VENDOR}-linux exit 0 ;; ppc64:Linux:*:*) echo powerpc64-${VENDOR}-linux exit 0 ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC} exit 0 ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-${VENDOR}-linux ;; PA8*) echo hppa2.0-${VENDOR}-linux ;; *) echo hppa-${VENDOR}-linux ;; esac exit 0 ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-${VENDOR}-linux exit 0 ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit 0 ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit 0 ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit 0 ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-${VENDOR}-linux exit 0 ;; x86_64:Linux:*:*) echo x86_64-${VENDOR}-linux exit 0 ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-${VENDOR}-linuxaout" exit 0 ;; coff-i386) echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff" exit 0 ;; "") # Either a pre-BFD a.out linker (linuxoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld" exit 0 ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #ifdef __INTEL_COMPILER LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit 0 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit 0 ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit 0 ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit 0 ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit 0 ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit 0 ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit 0 ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit 0 ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit 0 ;; i*86:*:5:[78]*) case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit 0 ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit 0 ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit 0 ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit 0 ;; paragon:*:*:*) echo i860-intel-osf1 exit 0 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit 0 ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit 0 ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit 0 ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit 0 ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 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 0 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && echo i486-ncr-sysv4 && exit 0 ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit 0 ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit 0 ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit 0 ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit 0 ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit 0 ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit 0 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit 0 ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit 0 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit 0 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit 0 ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit 0 ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit 0 ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit 0 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit 0 ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit 0 ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit 0 ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit 0 ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit 0 ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit 0 ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit 0 ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit 0 ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in *86) UNAME_PROCESSOR=i686 ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit 0 ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit 0 ;; *:QNX:*:4*) echo i386-pc-qnx exit 0 ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit 0 ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit 0 ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit 0 ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit 0 ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit 0 ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit 0 ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit 0 ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit 0 ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit 0 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit 0 ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit 0 ;; *:ITS:*:*) echo pdp10-unknown-its exit 0 ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit 0 ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit 0 ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms && exit 0 ;; I*) echo ia64-dec-vms && exit 0 ;; V*) echo vax-dec-vms && exit 0 ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit 0 ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit 0 ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit 0 ;; c34*) echo c34-convex-bsd exit 0 ;; c38*) echo c38-convex-bsd exit 0 ;; c4*) echo c4-convex-bsd exit 0 ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: easy_spice-0.6.8/config.rpath0000755000175000001440000003521310326461553013107 00000000000000#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2003 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a `.a' archive for static linking (except M$VC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; mingw* | pw32* | os2*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux*) case $CC in icc|ecc) wl='-Wl,' ;; ccc) wl='-Wl,' ;; esac ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; sco3.2v5*) ;; solaris*) wl='-Wl,' ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) wl='-Wl,' ;; sysv4*MP*) ;; uts4*) ;; esac fi # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then case "$host_os" in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = yes; then # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi4*) ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then hardcode_direct=no fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd1*) ld_shlibs=no ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) 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 ;; hpux10* | hpux11*) if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=no ;; ia64*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; *) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # 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*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; openbsd*) hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; sco3.2v5*) ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4.2uw2*) hardcode_direct=yes hardcode_minus_L=no ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ;; sysv5*) hardcode_libdir_flag_spec= ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. libname_spec='lib$name' case "$host_os" in aix3*) ;; aix4* | aix5*) ;; amigaos*) ;; beos*) ;; bsdi4*) ;; cygwin* | mingw* | pw32*) shrext=.dll ;; darwin* | rhapsody*) shrext=.dylib ;; dgux*) ;; freebsd1*) ;; freebsd*) ;; gnu*) ;; hpux9* | hpux10* | hpux11*) case "$host_cpu" in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac ;; irix5* | irix6* | nonstopux*) case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux*) ;; netbsd*) ;; newsos6) ;; nto-qnx) ;; openbsd*) ;; os2*) libname_spec='$name' shrext=.dll ;; osf3* | osf4* | osf5*) ;; sco3.2v5*) ;; solaris*) ;; sunos4*) ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ;; sysv4*MP*) ;; uts4*) ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src src= if test -d "$dst"; then mkdircmd=: chmodcmd= else mkdircmd=$mkdirprog fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dst=$dst/`basename "$src"` fi fi # This sed command emulates the dirname command. dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` # Make sure that the destination directory exists. # Skip lots of stat calls in the usual case. if test ! -d "$dstdir"; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` shift IFS=$oIFS pathcomp= while test $# -ne 0 ; do pathcomp=$pathcomp$1 shift if test ! -d "$pathcomp"; then $mkdirprog "$pathcomp" # mkdir can fail with a `File exist' error in case several # install-sh are creating the directory concurrently. This # is OK. test -d "$pathcomp" || exit fi pathcomp=$pathcomp/ done fi if test -n "$dir_arg"; then $doit $mkdircmd "$dst" \ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } else dstfile=`basename "$dst"` # 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 trap '(exit $?); exit' 1 2 13 15 # Copy the file name to the temp name. $doit $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 "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ || { # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { if test -f "$dstdir/$dstfile"; then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit 1 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" } } fi || { (exit 1); exit 1; } done # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit 0 } # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: easy_spice-0.6.8/autogen.sh0000755000175000001440000001063010326461553012574 00000000000000#!/bin/sh # Run this to generate all the initial makefiles, etc. srcdir=`dirname $0` test -z "$srcdir" && srcdir=. DIE=0 if [ -n "$GNOME2_DIR" ]; then ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS" LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH" PATH="$GNOME2_DIR/bin:$PATH" export PATH export LD_LIBRARY_PATH fi (test -f $srcdir/configure.in) || { echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" echo " top-level package directory" exit 1 } (autoconf --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`autoconf' installed." echo "Download the appropriate package for your distribution," echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" DIE=1 } (grep "^AC_PROG_INTLTOOL" $srcdir/configure.in >/dev/null) && { (intltoolize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`intltool' installed." echo "You can get it from:" echo " ftp://ftp.gnome.org/pub/GNOME/" DIE=1 } } (grep "^AM_PROG_XML_I18N_TOOLS" $srcdir/configure.in >/dev/null) && { (xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`xml-i18n-toolize' installed." echo "You can get it from:" echo " ftp://ftp.gnome.org/pub/GNOME/" DIE=1 } } (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && { (libtool --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`libtool' installed." echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" DIE=1 } } (grep "^AM_GLIB_GNU_GETTEXT" $srcdir/configure.in >/dev/null) && { (grep "sed.*POTFILES" $srcdir/configure.in) > /dev/null || \ (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`glib' installed." echo "You can get it from: ftp://ftp.gtk.org/pub/gtk" DIE=1 } } (automake --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`automake' installed." echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" DIE=1 NO_AUTOMAKE=yes } # if no automake, don't bother testing for aclocal test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: Missing \`aclocal'. The version of \`automake'" echo "installed doesn't appear recent enough." echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/" DIE=1 } if test "$DIE" -eq 1; then exit 1 fi if test -z "$*"; then echo "**Warning**: I am going to run \`configure' with no arguments." echo "If you wish to pass any to it, please specify them on the" echo \`$0\'" command line." echo fi case $CC in xlc ) am_opt=--include-deps;; esac for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.in -print` do dr=`dirname $coin` if test -f $dr/NO-AUTO-GEN; then echo skipping $dr -- flagged as no auto-gen else echo processing $dr ( cd $dr aclocalinclude="$ACLOCAL_FLAGS" if grep "^AM_GLIB_GNU_GETTEXT" configure.in >/dev/null; then echo "Creating $dr/aclocal.m4 ..." test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 echo "Running glib-gettextize... Ignore non-fatal messages." echo "no" | glib-gettextize --force --copy echo "Making $dr/aclocal.m4 writable ..." test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 fi if grep "^AC_PROG_INTLTOOL" configure.in >/dev/null; then echo "Running intltoolize..." intltoolize --copy --force --automake fi if grep "^AM_PROG_XML_I18N_TOOLS" configure.in >/dev/null; then echo "Running xml-i18n-toolize..." xml-i18n-toolize --copy --force --automake fi if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then if test -z "$NO_LIBTOOLIZE" ; then echo "Running libtoolize..." libtoolize --force --copy fi fi echo "Running aclocal $aclocalinclude ..." aclocal $aclocalinclude if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then echo "Running autoheader..." autoheader fi echo "Running automake --gnu $am_opt ..." automake --add-missing --gnu $am_opt echo "Running autoconf ..." autoconf ) fi done conf_flags="--enable-maintainer-mode" if test x$NOCONFIGURE = x; then echo Running $srcdir/configure $conf_flags "$@" ... $srcdir/configure $conf_flags "$@" \ && echo Now type \`make\' to compile. || exit 1 else echo Skipping configure process. fi easy_spice-0.6.8/config.sub0000755000175000001440000007530610326461553012571 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. timestamp='2005-02-10' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit 0 ;; --version | -v ) echo "$version" ; exit 0 ;; --help | --h* | -h ) echo "$usage"; exit 0 ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit 0;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | msp430 \ | ns16k | ns32k \ | openrisc | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* \ | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | msp430-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16c) basic_machine=cr16c-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; 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 ;; or32 | or32-*) basic_machine=or32-unknown os=-coff ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; 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 ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sh64) basic_machine=sh64-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux* | -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*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: easy_spice-0.6.8/missing0000755000175000001440000002517010326461553012177 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2005-02-08.22 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi 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' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case "$1" in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $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 [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $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 [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) 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 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) 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 's/.*-o \([^ ]*\).*/\1/p'` 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 touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: easy_spice-0.6.8/mkinstalldirs0000755000175000001440000000662210673154220013402 00000000000000#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2005-06-29.22 # Original author: Noah Friedman # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to or send patches to # . errstatus=0 dirmode= usage="\ Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... Create each directory DIR (with mode MODE, if specified), including all leading file name components. Report bugs to ." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" exit $? ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --version) echo "$0 $scriptversion" exit $? ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and # mkdir -p a/c at the same time, both will detect that a is missing, # one will create a, then the other will try to create a and die with # a "File exists" error. This is a problem when calling mkinstalldirs # from a parallel make. We use --version in the probe to restrict # ourselves to GNU mkdir, which is thread-safe. case $dirmode in '') if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. test -d ./-p && rmdir ./-p test -d ./--version && rmdir ./--version fi ;; *) if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" else # Clean up after NextStep and OpenStep mkdir. for d in ./-m ./-p ./--version "./$dirmode"; do test -d $d && rmdir $d done fi ;; esac for file do case $file in /*) pathcomp=/ ;; *) pathcomp= ;; esac oIFS=$IFS IFS=/ set fnord $file shift IFS=$oIFS for d do test "x$d" = x && continue pathcomp=$pathcomp$d case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr= chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp=$pathcomp/ done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: easy_spice-0.6.8/Makefile.am0000644000175000001440000000122710673023543012627 00000000000000## Process this file with automake to produce Makefile.in SUBDIRS = po src EXTRA_DIST = config.rpath mkinstalldirs \ autogen.sh install-data-local: @$(NORMAL_INSTALL) if test -d $(srcdir)/pixmaps; then \ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/pixmaps; \ for pixmap in $(srcdir)/pixmaps/*; do \ if test -f $$pixmap; then \ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \ fi \ done \ fi dist-hook: if test -d pixmaps; then \ mkdir $(distdir)/pixmaps; \ for pixmap in pixmaps/*; do \ if test -f $$pixmap; then \ cp -p $$pixmap $(distdir)/pixmaps; \ fi \ done \ fi ACLOCAL_AMFLAGS = -I m4 easy_spice-0.6.8/Makefile.in0000644000175000001440000004630010673154223012641 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING ChangeLog \ INSTALL NEWS TODO config.guess config.rpath config.sub depcomp \ install-sh missing mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MSGFMT = @MSGFMT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 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_alias = @build_alias@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ 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@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = po src EXTRA_DIST = config.rpath mkinstalldirs \ autogen.sh ACLOCAL_AMFLAGS = -I m4 all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ cd $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu 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: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) $(mkdir_p) $(distdir)/po @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | 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) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-data-local install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ check-am clean clean-generic clean-recursive ctags \ ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-hook \ dist-shar dist-tarZ dist-zip distcheck distclean \ distclean-generic distclean-hdr distclean-recursive \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-local install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-generic \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am install-data-local: @$(NORMAL_INSTALL) if test -d $(srcdir)/pixmaps; then \ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/pixmaps; \ for pixmap in $(srcdir)/pixmaps/*; do \ if test -f $$pixmap; then \ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \ fi \ done \ fi dist-hook: if test -d pixmaps; then \ mkdir $(distdir)/pixmaps; \ for pixmap in pixmaps/*; do \ if test -f $$pixmap; then \ cp -p $$pixmap $(distdir)/pixmaps; \ fi \ done \ fi # 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: easy_spice-0.6.8/config.h.in0000644000175000001440000000411010673023715012611 00000000000000/* config.h.in. Generated from configure.in by autoheader. */ /* always defined to indicate that i18n is enabled */ #undef ENABLE_NLS /* The gettext package */ #undef GETTEXT_PACKAGE /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #undef HAVE_BIND_TEXTDOMAIN_CODESET /* Define to 1 if you have the `dcgettext' function. */ #undef HAVE_DCGETTEXT /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_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 /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* The datadir of the package */ #undef PACKAGE_DATA_DIR /* The localedir of the package */ #undef PACKAGE_LOCALE_DIR /* Define to the full name of this package. */ #undef PACKAGE_NAME /* The srcdir of the package */ #undef PACKAGE_SOURCE_DIR /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION easy_spice-0.6.8/AUTHORS0000644000175000001440000000045310400332102011621 00000000000000 Jean-Marc Routoure Contributors: ==================== Olivier Hervieu - for contributions in 2004 during its TER for EEA maitrise Werner Hoch - gtk2 port, library dialog, bug fixing easy_spice-0.6.8/INSTALL0000644000175000001440000001763510326461553011640 00000000000000A little remark, You should use ./configure --prefix=/usr/local/easy_spice ; make ;make install to compile and install this software. Look at the README file for a script used tu run propoerly this software. Following the instructions of autoconf , JM Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). 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 at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not supports the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. 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. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. easy_spice-0.6.8/ABOUT-NLS0000644000175000001440000013023510326461553012026 00000000000000Notes on the Free Translation Project ************************************* Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work at translations should contact the appropriate team. When reporting bugs in the `intl/' directory or bugs which may be related to internationalization, you should tell about the version of `gettext' which is used. The information can be found in the `intl/VERSION' file, in internationalized packages. Quick configuration advice ========================== If you want to exploit the full power of internationalization, you should configure it using ./configure --with-included-gettext to force usage of internationalizing routines provided within this package, despite the existence of internationalizing capabilities in the operating system where this package is being installed. So far, only the `gettext' implementation in the GNU C library version 2 provides as many features (such as locale alias, message inheritance, automatic charset conversion or plural form handling) as the implementation here. It is also not possible to offer this additional functionality on top of a `catgets' implementation. Future versions of GNU `gettext' will very likely convey even more functionality. So it might be a good idea to change to GNU `gettext' as soon as possible. So you need _not_ provide this option if you are using GNU libc 2 or you have installed a recent copy of the GNU gettext package with the included `libintl'. INSTALL Matters =============== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. If not, the GNU `gettext' own library will be used. This library is wholly contained within this package, usually in the `intl/' subdirectory, so prior installation of the GNU `gettext' package is _not_ required. Installers may use special options at configuration time for changing the default behaviour. The commands: ./configure --with-included-gettext ./configure --disable-nls will respectively bypass any pre-existing `gettext' to use the internationalizing routines provided within this package, or else, _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl.a' file and will decide to use this. This might be not what is desirable. You should use the more recent version of the GNU `gettext' library. I.e. if the file `intl/VERSION' shows that the library which comes with this package is more recent, you should use ./configure --with-included-gettext to prevent auto-detection. The configuration process will not test for the `catgets' function and therefore it will not be used. The reason is that even an emulation of `gettext' on top of `catgets' could not provide all the extensions of the GNU `gettext' library. Internationalized packages have usually many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. Using This Package ================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your country by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. Translating Teams ================= For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `translation@iro.umontreal.ca' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skill are praised more than programming skill, here. Available Packages ================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of December 2003. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files am az be bg ca cs da de el en en_GB eo es +-------------------------------------------+ a2ps | [] [] [] [] | aegis | () | ant-phone | () | anubis | | ap-utils | | bash | [] [] [] [] | batchelor | | bfd | [] [] | binutils | [] [] | bison | [] [] [] | bluez-pin | [] [] | clisp | | clisp | [] [] [] | coreutils | [] [] [] [] | cpio | [] [] [] | darkstat | [] () [] | diffutils | [] [] [] [] [] [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] | error | [] [] [] [] [] | fetchmail | [] () [] [] [] [] | fileutils | [] [] [] | findutils | [] [] [] [] [] [] [] | flex | [] [] [] [] | fslint | | gas | [] | gawk | [] [] [] [] | gbiff | [] | gcal | [] | gcc | [] [] | gettext | [] [] [] [] [] | gettext-examples | [] [] [] | gettext-runtime | [] [] [] [] [] | gettext-tools | [] [] [] | gimp-print | [] [] [] [] [] | gliv | | glunarclock | [] [] | gnubiff | [] | gnucash | [] () [] [] | gnucash-glossary | [] () [] | gnupg | [] () [] [] [] [] | gpe-aerial | [] | gpe-beam | [] [] | gpe-calendar | [] [] | gpe-clock | [] [] | gpe-conf | [] [] | gpe-contacts | [] [] | gpe-edit | [] | gpe-go | [] | gpe-login | [] [] | gpe-ownerinfo | [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] | gpe-taskmanager | [] [] | gpe-timesheet | [] | gpe-today | [] [] | gpe-todo | [] [] | gphoto2 | [] [] [] [] | gprof | [] [] [] | gpsdrive | () () () | gramadoir | [] | grep | [] [] [] [] [] [] | gretl | [] | gtick | () | hello | [] [] [] [] [] [] | id-utils | [] [] | indent | [] [] [] [] | jpilot | [] [] [] | jtag | | jwhois | [] | kbd | [] [] [] [] [] | latrine | () | ld | [] [] | libc | [] [] [] [] [] [] | libgpewidget | [] [] | libiconv | [] [] [] [] [] | lifelines | [] () | lilypond | [] | lingoteach | | lingoteach_lessons | () () | lynx | [] [] [] [] | m4 | [] [] [] [] | mailutils | [] [] | make | [] [] [] | man-db | [] () [] [] () | minicom | [] [] [] | mysecretdiary | [] [] [] | nano | [] () [] [] [] | nano_1_0 | [] () [] [] [] | opcodes | [] | parted | [] [] [] [] [] | ptx | [] [] [] [] [] | python | | radius | [] | recode | [] [] [] [] [] [] [] | rpm | [] [] | screem | | scrollkeeper | [] [] [] [] [] [] | sed | [] [] [] [] [] | sh-utils | [] [] [] | shared-mime-info | | sharutils | [] [] [] [] [] [] | silky | () | skencil | [] () [] | sketch | [] () [] | soundtracker | [] [] [] | sp | [] | tar | [] [] [] [] | texinfo | [] [] [] | textutils | [] [] [] [] | tin | () () | tuxpaint | [] [] [] [] [] [] [] | util-linux | [] [] [] [] [] | vorbis-tools | [] [] [] [] | wastesedge | () | wdiff | [] [] [] [] | wget | [] [] [] [] [] [] | xchat | [] [] [] [] | xfree86_xkb_xml | [] | xpad | [] | +-------------------------------------------+ am az be bg ca cs da de el en en_GB eo es 0 0 8 3 37 38 56 73 15 1 5 12 64 et fa fi fr ga gl he hr hu id is it ja +----------------------------------------+ a2ps | [] [] [] () | aegis | | ant-phone | | anubis | [] | ap-utils | [] | bash | [] [] | batchelor | [] | bfd | [] | binutils | [] [] | bison | [] [] [] [] | bluez-pin | [] [] [] [] [] | clisp | | clisp | [] | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | darkstat | () [] [] [] | diffutils | [] [] [] [] [] [] [] | e2fsprogs | | enscript | [] [] | error | [] [] [] [] | fetchmail | [] | fileutils | [] [] [] [] [] [] | findutils | [] [] [] [] [] [] [] [] [] [] | flex | [] [] | fslint | | gas | [] | gawk | [] [] [] | gbiff | | gcal | [] | gcc | [] | gettext | [] [] | gettext-examples | [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] | gimp-print | [] [] | gliv | () | glunarclock | [] [] [] [] | gnubiff | | gnucash | () [] | gnucash-glossary | [] | gnupg | [] [] [] [] [] [] [] | gpe-aerial | [] | gpe-beam | [] | gpe-calendar | [] [] [] | gpe-clock | [] | gpe-conf | [] | gpe-contacts | [] [] | gpe-edit | [] [] | gpe-go | [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] | gpe-sketchbook | [] | gpe-su | [] | gpe-taskmanager | [] | gpe-timesheet | [] [] [] | gpe-today | [] [] | gpe-todo | [] [] | gphoto2 | [] [] [] | gprof | [] [] | gpsdrive | () [] () () | gramadoir | [] | grep | [] [] [] [] [] [] [] [] [] [] [] | gretl | [] | gtick | [] [] | hello | [] [] [] [] [] [] [] [] [] [] [] [] | id-utils | [] [] [] [] | indent | [] [] [] [] [] [] [] [] [] | jpilot | [] () | jtag | | jwhois | [] [] [] [] | kbd | [] | latrine | | ld | [] | libc | [] [] [] [] [] | libgpewidget | [] [] [] [] | libiconv | [] [] [] [] [] [] [] [] [] | lifelines | () | lilypond | [] | lingoteach | [] [] | lingoteach_lessons | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailutils | | make | [] [] [] [] [] | man-db | () () | minicom | [] [] [] [] | mysecretdiary | [] [] | nano | [] [] [] [] | nano_1_0 | [] [] [] [] | opcodes | [] | parted | [] [] [] | ptx | [] [] [] [] [] [] [] | python | | radius | [] | recode | [] [] [] [] [] [] | rpm | | screem | | scrollkeeper | [] | sed | [] [] [] [] [] [] [] [] [] | sh-utils | [] [] [] [] [] [] [] | shared-mime-info | [] | sharutils | [] [] [] [] [] | silky | [] () | skencil | [] | sketch | [] | soundtracker | [] [] [] [] | sp | [] () | tar | [] [] [] [] [] [] [] [] [] | texinfo | [] [] [] [] | textutils | [] [] [] [] [] | tin | [] () | tuxpaint | [] [] [] [] [] [] [] [] | util-linux | [] [] [] [] () [] | vorbis-tools | [] | wastesedge | () | wdiff | [] [] [] [] [] [] | wget | [] [] [] [] [] [] [] | xchat | [] [] [] | xfree86_xkb_xml | | xpad | [] | +----------------------------------------+ et fa fi fr ga gl he hr hu id is it ja 21 1 25 86 24 24 8 10 38 31 1 23 32 ko lg lt lv ms nb nl nn no pl pt pt_BR ro +-------------------------------------------+ a2ps | () [] [] () () [] [] | aegis | () () | ant-phone | [] [] | anubis | [] [] [] [] [] | ap-utils | [] () [] | bash | [] [] | batchelor | [] | bfd | [] | binutils | | bison | [] [] [] [] | bluez-pin | [] [] [] | clisp | | clisp | [] | coreutils | [] | cpio | [] [] [] [] [] | darkstat | [] [] [] [] | diffutils | [] [] [] [] | e2fsprogs | [] | enscript | [] [] [] | error | [] [] [] | fetchmail | [] [] () | fileutils | [] [] | findutils | [] [] [] [] [] | flex | [] [] [] [] | fslint | [] [] | gas | | gawk | [] [] [] | gbiff | [] [] | gcal | | gcc | | gettext | [] [] [] | gettext-examples | [] [] | gettext-runtime | [] [] [] | gettext-tools | [] [] [] | gimp-print | [] | gliv | [] [] [] | glunarclock | [] [] [] | gnubiff | | gnucash | [] [] () | gnucash-glossary | [] [] | gnupg | [] | gpe-aerial | [] [] [] | gpe-beam | [] [] [] | gpe-calendar | [] [] [] | gpe-clock | [] [] [] | gpe-conf | [] [] [] | gpe-contacts | [] [] [] | gpe-edit | [] [] [] | gpe-go | [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] | gpe-sketchbook | [] [] [] | gpe-su | [] [] [] | gpe-taskmanager | [] [] [] | gpe-timesheet | [] [] [] | gpe-today | [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] | gprof | [] [] | gpsdrive | () () () [] | gramadoir | [] | grep | [] [] [] [] | gretl | | gtick | [] [] | hello | [] [] [] [] [] [] [] [] [] [] | id-utils | [] [] [] | indent | [] [] [] | jpilot | () () | jtag | | jwhois | [] [] [] [] | kbd | [] [] [] | latrine | [] | ld | | libc | [] [] [] [] [] | libgpewidget | [] [] [] | libiconv | [] [] [] [] | lifelines | | lilypond | | lingoteach | | lingoteach_lessons | | lynx | [] [] | m4 | [] [] [] [] | mailutils | [] [] | make | [] [] [] [] | man-db | [] | minicom | [] [] [] | mysecretdiary | [] [] [] | nano | [] [] [] [] | nano_1_0 | [] [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | ptx | [] [] [] [] [] [] [] | python | | radius | [] | recode | [] [] [] | rpm | [] [] | screem | | scrollkeeper | [] [] [] [] | sed | [] [] [] | sh-utils | [] | shared-mime-info | [] | sharutils | [] | silky | | skencil | [] [] | sketch | [] [] | soundtracker | | sp | | tar | [] [] [] [] [] [] | texinfo | [] [] [] | textutils | [] [] | tin | | tuxpaint | [] [] [] [] [] [] [] [] [] | util-linux | [] [] | vorbis-tools | [] [] | wastesedge | | wdiff | [] [] [] [] | wget | [] [] | xchat | [] [] | xfree86_xkb_xml | [] | xpad | [] [] | +-------------------------------------------+ ko lg lt lv ms nb nl nn no pl pt pt_BR ro 12 0 1 2 12 10 60 4 4 38 25 35 76 ru sk sl sr sv ta tr uk vi wa zh_CN zh_TW +-------------------------------------------+ a2ps | [] [] [] [] [] | 16 aegis | () | 0 ant-phone | | 2 anubis | [] [] [] | 9 ap-utils | () | 3 bash | [] | 9 batchelor | | 2 bfd | [] [] | 6 binutils | [] [] [] | 7 bison | [] [] [] | 14 bluez-pin | [] [] [] | 13 clisp | | 0 clisp | | 5 coreutils | [] [] [] [] [] | 16 cpio | [] [] [] | 14 darkstat | [] [] [] () () | 12 diffutils | [] [] [] [] | 22 e2fsprogs | [] [] | 5 enscript | [] [] [] | 12 error | [] [] [] | 15 fetchmail | [] [] [] | 11 fileutils | [] [] [] [] [] [] | 17 findutils | [] [] [] [] [] [] [] | 29 flex | [] [] [] | 13 fslint | | 2 gas | [] | 3 gawk | [] [] | 12 gbiff | | 3 gcal | [] [] | 4 gcc | [] | 4 gettext | [] [] [] [] [] [] | 16 gettext-examples | [] [] [] [] | 11 gettext-runtime | [] [] [] [] [] [] [] [] [] | 21 gettext-tools | [] [] [] [] [] [] | 14 gimp-print | [] [] | 10 gliv | | 3 glunarclock | [] [] [] [] | 13 gnubiff | | 1 gnucash | [] [] [] | 9 gnucash-glossary | [] [] [] | 8 gnupg | [] [] [] [] | 17 gpe-aerial | [] [] | 7 gpe-beam | [] [] | 8 gpe-calendar | [] [] [] [] [] | 13 gpe-clock | [] [] [] [] | 10 gpe-conf | [] [] [] | 9 gpe-contacts | [] [] [] [] | 11 gpe-edit | [] [] [] [] [] [] | 12 gpe-go | [] | 5 gpe-login | [] [] [] [] [] [] | 13 gpe-ownerinfo | [] [] [] [] [] | 13 gpe-sketchbook | [] [] [] | 9 gpe-su | [] [] [] [] | 10 gpe-taskmanager | [] [] [] [] | 10 gpe-timesheet | [] [] [] [] [] | 12 gpe-today | [] [] [] [] [] [] | 13 gpe-todo | [] [] [] [] [] | 12 gphoto2 | [] [] [] | 11 gprof | [] [] | 9 gpsdrive | [] [] | 4 gramadoir | | 3 grep | [] [] [] [] [] | 26 gretl | | 2 gtick | [] | 5 hello | [] [] [] [] [] | 33 id-utils | [] [] [] | 12 indent | [] [] [] [] [] | 21 jpilot | [] [] [] [] [] | 9 jtag | [] | 1 jwhois | () () [] [] | 11 kbd | [] [] | 11 latrine | | 1 ld | [] [] | 5 libc | [] [] [] [] | 20 libgpewidget | [] [] [] [] | 13 libiconv | [] [] [] [] [] [] [] [] [] | 27 lifelines | [] | 2 lilypond | [] | 3 lingoteach | | 2 lingoteach_lessons | () | 0 lynx | [] [] [] [] | 14 m4 | [] [] [] | 15 mailutils | [] | 5 make | [] [] [] [] | 16 man-db | [] | 5 minicom | [] | 11 mysecretdiary | [] [] | 10 nano | [] [] [] [] [] | 17 nano_1_0 | [] [] [] [] | 17 opcodes | [] [] | 6 parted | [] [] [] | 15 ptx | [] [] [] | 22 python | | 0 radius | [] | 4 recode | [] [] [] [] | 20 rpm | [] [] [] | 7 screem | [] [] | 2 scrollkeeper | [] [] [] [] | 15 sed | [] [] [] [] [] [] | 23 sh-utils | [] [] [] | 14 shared-mime-info | [] [] | 4 sharutils | [] [] [] [] [] | 17 silky | () | 2 skencil | [] | 6 sketch | [] | 6 soundtracker | [] [] | 9 sp | [] | 3 tar | [] [] [] [] [] | 24 texinfo | [] [] [] [] | 14 textutils | [] [] [] [] [] | 16 tin | | 1 tuxpaint | [] [] [] [] [] | 29 util-linux | [] [] [] | 15 vorbis-tools | [] | 8 wastesedge | | 0 wdiff | [] [] [] [] | 18 wget | [] [] [] [] [] [] [] [] | 23 xchat | [] [] [] [] [] | 14 xfree86_xkb_xml | [] [] [] [] [] [] | 8 xpad | | 4 +-------------------------------------------+ 51 teams ru sk sl sr sv ta tr uk vi wa zh_CN zh_TW 120 domains 59 42 16 25 81 0 56 12 1 10 21 22 1260 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If December 2003 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. Using `gettext' in new packages =============================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `translation@iro.umontreal.ca' to make the `.pot' files available to the translation teams. easy_spice-0.6.8/pixmaps/0000777000175000001440000000000010673154315012340 500000000000000easy_spice-0.6.8/pixmaps/green.xpm0000644000175000001440000000142310326475364014107 00000000000000/* XPM */ static char * green_xpm[] = { "21 21 14 1", " c None", ". c #9FFF65", "+ c #89FF40", "@ c #72FF1C", "# c #63FF04", "$ c #A1FF68", "% c #77FF25", "& c #61FF00", "* c #97FF57", "= c #97FF58", "- c #7FFF31", "; c #8FFF4B", "> c #7AFF29", ", c #68FF0C", " .+@##@+. ", " $%&&&&&&&&%$ ", " *&&&&&&&&&&&&* ", " =&&&&&&&&&&&&&&= ", " &&&&&&&&&&&&&&&& ", " -&&&&&&&&&&&&&&&&- ", " &&&&&&&&&&&&&&&&&& ", " ;&&&&&&&&&&&&&&&&&&;", " >&&&&&&&&&&&&&&&&&&>", " ,&&&&&&&&&&&&&&&&&&,", " &&&&&&&&&&&&&&&&&&&&", " ,&&&&&&&&&&&&&&&&&&,", " >&&&&&&&&&&&&&&&&&&>", " ;&&&&&&&&&&&&&&&&&&;", " &&&&&&&&&&&&&&&&&& ", " -&&&&&&&&&&&&&&&&- ", " &&&&&&&&&&&&&&&& ", " =&&&&&&&&&&&&&&= ", " *&&&&&&&&&&&&* ", " $%&&&&&&&&%$ ", " .+@##@+. "}; easy_spice-0.6.8/pixmaps/red.xpm0000644000175000001440000000145710326475364013570 00000000000000/* XPM */ static char * red_xpm[] = { "21 21 16 1", " c None", ". c #C6933A", "+ c #D1651C", "@ c #E23A0D", "# c #EF220B", "$ c #C6983D", "% c #DD4410", "& c #F21F0C", "* c #C9812D", "= c #C8842E", "- c #C59E43", "; c #D75214", "> c #C59C41", ", c #CC7323", "' c #DB4811", ") c #EA2A0C", " .+@##@+. ", " $%&&&&&&&&%$ ", " *&&&&&&&&&&&&* ", " =&&&&&&&&&&&&&&= ", " -&&&&&&&&&&&&&&&&- ", " ;&&&&&&&&&&&&&&&&; ", " >&&&&&&&&&&&&&&&&&&>", " ,&&&&&&&&&&&&&&&&&&,", " '&&&&&&&&&&&&&&&&&&'", " )&&&&&&&&&&&&&&&&&&)", " &&&&&&&&&&&&&&&&&&&&", " )&&&&&&&&&&&&&&&&&&)", " '&&&&&&&&&&&&&&&&&&'", " ,&&&&&&&&&&&&&&&&&&,", " >&&&&&&&&&&&&&&&&&&>", " ;&&&&&&&&&&&&&&&&; ", " -&&&&&&&&&&&&&&&&- ", " =&&&&&&&&&&&&&&= ", " *&&&&&&&&&&&&* ", " $%&&&&&&&&%$ ", " .+@##@+. "}; easy_spice-0.6.8/ChangeLog0000644000175000001440000001163210673152565012355 000000000000002007-09-16 Werner Hoch * src/menu.c: get entry values before saving options 2007-09-15 Werner Hoch * bumped version to 0.6.8 * updated po and pot files and german translation * misc tweeks to get a working "make dist-gzip" 2007-09-11 Werner Hoch * src/*: kill the plot when closing the main window. variable renaming ac_nb, noise_nb to ac_points, noise_points 2007-09-10 Werner Hoch * src/*: new GKeyFile based configuration file system, old files can be read but not be written. * src/menu.c: add commands and geda settings and the spice libs to the configuration file * src/*: code cleanup 2007-09-08 Werner Hoch * src/interface.c: added some spacings, removed seperators from the main window * src/interface.c, src/menu.c, src/callbacks.c: moved function on_gschem1 to on_menu_options_activate from callbacks.c to menu.c * src/interface.c: reordered option menu, removed spice empty entry, added empty saveoptions entry * src/*: code cleanup: removed global variable win_prin 2007-09-07 Werner Hoch * src/interface.c, src/callbacks.c, src/main.c, src/menu.c, src/util.c, src/prototype.h: remove project name from main window, put the project name into the window title 2007-09-07 Werner Hoch * src/callback.c, src/interface.c: removed close button form the bottom of the main window. This button was redundant as we have The window close button and the menu entry file->close 2007-05-12 Werner Hoch * src/callbacks.c, src/interface.c, src/struct.h, src/util.c: gnetlist command line entry for the gschem dialog. Patch #1720837 written by Gudjon I. Gudjonsson. Thanks 2006-03-07 Werner Hoch * Released easy_spice-0.6.7 2006-02-26 Werner Hoch * changed info-dialog * removed unused variables and functions * po-files updated, fixed german translation * make dist: added required files 2006-02-02 Werner Hoch * accept spice values in parametric simulation (1k, 10Meg, ...) 2006-02-01 Werner Hoch * callback.c: put an if (DEBUG) around the debug output * netlist.c, spice,c: same DEBUG problem 2006-01-24 Werner Hoch * look for local rcfile ($HOME/.easyspicerc) * fixed loading projectfile with dir (easyspice ../dir/pj.easyspice) 2005-12-10 Werner Hoch * spice_plot.c: store pid in a variable instead of a file * netlist.c: create v(node) entries for noise and tf simulation * netlist.c: keep the entry fields when netlist is recreated 2005-11-22 Werner Hoch * fixed dcdc simulation * load project file from commandline 2005-11-14 Werner Hoch * fixed a segfault when reading files * updated german translation 2005-11-09 Werner Hoch * connected the file dialogs and made them working 2005-11-04 Werner Hoch * added file->open/new/save dialogs 2005-11-02 Werner Hoch * interface.c: fixed the delete-event of the main-window added the two menuitems "new" and "saveas" * utils.c: added the default spice values 2005-11-01 Werner Hoch * realy fixed the system call problem: the cir-file was used before closing the file. * removed the dummy data from the lib-dialog * reconnected the lib-dialog and the postproc-dialog to easyspice 2005-10-31 Werner Hoch * geda.c: changed PWD quoting for guile * new library dialog using GtkTreeView 2005-10-29 Werner Hoch * replaced devices g_array with g_list * added op_results to the GUI * reduced the memory leaks freeing the devices 2005-10-25 Werner Hoch * added GTK2 postprocessing dialog, not completly integrated 2005-10-23 Werner Hoch * spice.c: restructured result parser, added op_results * geda.c: use the new op_results * and the neccesary helper funktions 2005-10-22 Werner Hoch * added GTK2 verify_quit dialog 2005-10-21 Werner Hoch * bumped VERSION to 0.6.7 * redraw of dialog windows * code refractoring using a global easyspice structure * replacements of french comments and variable names * changed geda configuration filenames commonrc -> gafrc 2005-09-29 Werner Hoch * po/de_DE.po: german translation added * bumped VERSION to 0.6.6i 2005-09-24 Werner Hoch * gschem.c: visu_result_gschem2 function for new gschem format added 2005-09-22 Werner Hoch * ported easyspice to GTK 2.x * replaced GtkText with GtkViewText and GtkBuffer * txt_viewer: removed not working widgets, added close button 2004-02-04 gettextize * Makefile.am (SUBDIRS): Remove intl. (ACLOCAL_AMFLAGS): New variable. (EXTRA_DIST): Add config.rpath mkinstalldirs. easy_spice-0.6.8/COPYING0000644000175000001440000004311010326461553011625 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.