Commit 1f864a0fc83abfb7ff435641c6411376978d8586
1 parent
b072ff96
installation files part1
Showing
11 changed files
with
13189 additions
and
0 deletions
Too many changes to show.
To preserve performance only 8 of 11 files are displayed.
COPYING
0 → 100755
| 1 | +Source file copyrights are indicated at the top of each file. | |
| 2 | + | |
| 3 | +Files not in the datapath/ and vswitchd/ directories or associated | |
| 4 | +subdirectories are covered under the OpenFlow license included below: | |
| 5 | + | |
| 6 | +We are making the OpenFlow specification and associated documentation | |
| 7 | +(Software) available for public use and benefit with the expectation | |
| 8 | +that others will use, modify and enhance the Software and contribute | |
| 9 | +those enhancements back to the community. However, since we would like | |
| 10 | +to make the Software available for broadest use, with as few | |
| 11 | +restrictions as possible permission is hereby granted, free of charge, | |
| 12 | +to any person obtaining a copy of this Software to deal in the Software | |
| 13 | +under the copyrights without restriction, including without limitation | |
| 14 | +the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| 15 | +and/or sell copies of the Software, and to permit persons to whom the | |
| 16 | +Software is furnished to do so, subject to the following conditions: | |
| 17 | + | |
| 18 | +The above copyright notice and this permission notice shall be included | |
| 19 | +in all copies or substantial portions of the Software. | |
| 20 | + | |
| 21 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
| 22 | +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
| 23 | +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
| 24 | +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
| 25 | +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
| 26 | +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
| 27 | +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| 28 | + | |
| 29 | +The name and trademarks of copyright holder(s) may NOT be used in | |
| 30 | +advertising or publicity pertaining to the Software or any derivatives | |
| 31 | +without specific, written prior permission. | |
| 32 | + | |
| 33 | +Files in the datapath/ and its sub-directories are covered under the GNU | |
| 34 | +General Public License Version 2. Included below: | |
| 35 | + | |
| 36 | + | |
| 37 | + GNU GENERAL PUBLIC LICENSE | |
| 38 | + Version 2, June 1991 | |
| 39 | + | |
| 40 | + Copyright (C) 1989, 1991 Free Software Foundation, Inc. | |
| 41 | + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
| 42 | + Everyone is permitted to copy and distribute verbatim copies | |
| 43 | + of this license document, but changing it is not allowed. | |
| 44 | + | |
| 45 | + Preamble | |
| 46 | + | |
| 47 | + The licenses for most software are designed to take away your | |
| 48 | +freedom to share and change it. By contrast, the GNU General Public | |
| 49 | +License is intended to guarantee your freedom to share and change free | |
| 50 | +software--to make sure the software is free for all its users. This | |
| 51 | +General Public License applies to most of the Free Software | |
| 52 | +Foundation's software and to any other program whose authors commit to | |
| 53 | +using it. (Some other Free Software Foundation software is covered by | |
| 54 | +the GNU Library General Public License instead.) You can apply it to | |
| 55 | +your programs, too. | |
| 56 | + | |
| 57 | + When we speak of free software, we are referring to freedom, not | |
| 58 | +price. Our General Public Licenses are designed to make sure that you | |
| 59 | +have the freedom to distribute copies of free software (and charge for | |
| 60 | +this service if you wish), that you receive source code or can get it | |
| 61 | +if you want it, that you can change the software or use pieces of it | |
| 62 | +in new free programs; and that you know you can do these things. | |
| 63 | + | |
| 64 | + To protect your rights, we need to make restrictions that forbid | |
| 65 | +anyone to deny you these rights or to ask you to surrender the rights. | |
| 66 | +These restrictions translate to certain responsibilities for you if you | |
| 67 | +distribute copies of the software, or if you modify it. | |
| 68 | + | |
| 69 | + For example, if you distribute copies of such a program, whether | |
| 70 | +gratis or for a fee, you must give the recipients all the rights that | |
| 71 | +you have. You must make sure that they, too, receive or can get the | |
| 72 | +source code. And you must show them these terms so they know their | |
| 73 | +rights. | |
| 74 | + | |
| 75 | + We protect your rights with two steps: (1) copyright the software, and | |
| 76 | +(2) offer you this license which gives you legal permission to copy, | |
| 77 | +distribute and/or modify the software. | |
| 78 | + | |
| 79 | + Also, for each author's protection and ours, we want to make certain | |
| 80 | +that everyone understands that there is no warranty for this free | |
| 81 | +software. If the software is modified by someone else and passed on, we | |
| 82 | +want its recipients to know that what they have is not the original, so | |
| 83 | +that any problems introduced by others will not reflect on the original | |
| 84 | +authors' reputations. | |
| 85 | + | |
| 86 | + Finally, any free program is threatened constantly by software | |
| 87 | +patents. We wish to avoid the danger that redistributors of a free | |
| 88 | +program will individually obtain patent licenses, in effect making the | |
| 89 | +program proprietary. To prevent this, we have made it clear that any | |
| 90 | +patent must be licensed for everyone's free use or not licensed at all. | |
| 91 | + | |
| 92 | + The precise terms and conditions for copying, distribution and | |
| 93 | +modification follow. | |
| 94 | + | |
| 95 | + GNU GENERAL PUBLIC LICENSE | |
| 96 | + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
| 97 | + | |
| 98 | + 0. This License applies to any program or other work which contains | |
| 99 | +a notice placed by the copyright holder saying it may be distributed | |
| 100 | +under the terms of this General Public License. The "Program", below, | |
| 101 | +refers to any such program or work, and a "work based on the Program" | |
| 102 | +means either the Program or any derivative work under copyright law: | |
| 103 | +that is to say, a work containing the Program or a portion of it, | |
| 104 | +either verbatim or with modifications and/or translated into another | |
| 105 | +language. (Hereinafter, translation is included without limitation in | |
| 106 | +the term "modification".) Each licensee is addressed as "you". | |
| 107 | + | |
| 108 | +Activities other than copying, distribution and modification are not | |
| 109 | +covered by this License; they are outside its scope. The act of | |
| 110 | +running the Program is not restricted, and the output from the Program | |
| 111 | +is covered only if its contents constitute a work based on the | |
| 112 | +Program (independent of having been made by running the Program). | |
| 113 | +Whether that is true depends on what the Program does. | |
| 114 | + | |
| 115 | + 1. You may copy and distribute verbatim copies of the Program's | |
| 116 | +source code as you receive it, in any medium, provided that you | |
| 117 | +conspicuously and appropriately publish on each copy an appropriate | |
| 118 | +copyright notice and disclaimer of warranty; keep intact all the | |
| 119 | +notices that refer to this License and to the absence of any warranty; | |
| 120 | +and give any other recipients of the Program a copy of this License | |
| 121 | +along with the Program. | |
| 122 | + | |
| 123 | +You may charge a fee for the physical act of transferring a copy, and | |
| 124 | +you may at your option offer warranty protection in exchange for a fee. | |
| 125 | + | |
| 126 | + 2. You may modify your copy or copies of the Program or any portion | |
| 127 | +of it, thus forming a work based on the Program, and copy and | |
| 128 | +distribute such modifications or work under the terms of Section 1 | |
| 129 | +above, provided that you also meet all of these conditions: | |
| 130 | + | |
| 131 | + a) You must cause the modified files to carry prominent notices | |
| 132 | + stating that you changed the files and the date of any change. | |
| 133 | + | |
| 134 | + b) You must cause any work that you distribute or publish, that in | |
| 135 | + whole or in part contains or is derived from the Program or any | |
| 136 | + part thereof, to be licensed as a whole at no charge to all third | |
| 137 | + parties under the terms of this License. | |
| 138 | + | |
| 139 | + c) If the modified program normally reads commands interactively | |
| 140 | + when run, you must cause it, when started running for such | |
| 141 | + interactive use in the most ordinary way, to print or display an | |
| 142 | + announcement including an appropriate copyright notice and a | |
| 143 | + notice that there is no warranty (or else, saying that you provide | |
| 144 | + a warranty) and that users may redistribute the program under | |
| 145 | + these conditions, and telling the user how to view a copy of this | |
| 146 | + License. (Exception: if the Program itself is interactive but | |
| 147 | + does not normally print such an announcement, your work based on | |
| 148 | + the Program is not required to print an announcement.) | |
| 149 | + | |
| 150 | +These requirements apply to the modified work as a whole. If | |
| 151 | +identifiable sections of that work are not derived from the Program, | |
| 152 | +and can be reasonably considered independent and separate works in | |
| 153 | +themselves, then this License, and its terms, do not apply to those | |
| 154 | +sections when you distribute them as separate works. But when you | |
| 155 | +distribute the same sections as part of a whole which is a work based | |
| 156 | +on the Program, the distribution of the whole must be on the terms of | |
| 157 | +this License, whose permissions for other licensees extend to the | |
| 158 | +entire whole, and thus to each and every part regardless of who wrote it. | |
| 159 | + | |
| 160 | +Thus, it is not the intent of this section to claim rights or contest | |
| 161 | +your rights to work written entirely by you; rather, the intent is to | |
| 162 | +exercise the right to control the distribution of derivative or | |
| 163 | +collective works based on the Program. | |
| 164 | + | |
| 165 | +In addition, mere aggregation of another work not based on the Program | |
| 166 | +with the Program (or with a work based on the Program) on a volume of | |
| 167 | +a storage or distribution medium does not bring the other work under | |
| 168 | +the scope of this License. | |
| 169 | + | |
| 170 | + 3. You may copy and distribute the Program (or a work based on it, | |
| 171 | +under Section 2) in object code or executable form under the terms of | |
| 172 | +Sections 1 and 2 above provided that you also do one of the following: | |
| 173 | + | |
| 174 | + a) Accompany it with the complete corresponding machine-readable | |
| 175 | + source code, which must be distributed under the terms of Sections | |
| 176 | + 1 and 2 above on a medium customarily used for software interchange; or, | |
| 177 | + | |
| 178 | + b) Accompany it with a written offer, valid for at least three | |
| 179 | + years, to give any third party, for a charge no more than your | |
| 180 | + cost of physically performing source distribution, a complete | |
| 181 | + machine-readable copy of the corresponding source code, to be | |
| 182 | + distributed under the terms of Sections 1 and 2 above on a medium | |
| 183 | + customarily used for software interchange; or, | |
| 184 | + | |
| 185 | + c) Accompany it with the information you received as to the offer | |
| 186 | + to distribute corresponding source code. (This alternative is | |
| 187 | + allowed only for noncommercial distribution and only if you | |
| 188 | + received the program in object code or executable form with such | |
| 189 | + an offer, in accord with Subsection b above.) | |
| 190 | + | |
| 191 | +The source code for a work means the preferred form of the work for | |
| 192 | +making modifications to it. For an executable work, complete source | |
| 193 | +code means all the source code for all modules it contains, plus any | |
| 194 | +associated interface definition files, plus the scripts used to | |
| 195 | +control compilation and installation of the executable. However, as a | |
| 196 | +special exception, the source code distributed need not include | |
| 197 | +anything that is normally distributed (in either source or binary | |
| 198 | +form) with the major components (compiler, kernel, and so on) of the | |
| 199 | +operating system on which the executable runs, unless that component | |
| 200 | +itself accompanies the executable. | |
| 201 | + | |
| 202 | +If distribution of executable or object code is made by offering | |
| 203 | +access to copy from a designated place, then offering equivalent | |
| 204 | +access to copy the source code from the same place counts as | |
| 205 | +distribution of the source code, even though third parties are not | |
| 206 | +compelled to copy the source along with the object code. | |
| 207 | + | |
| 208 | + 4. You may not copy, modify, sublicense, or distribute the Program | |
| 209 | +except as expressly provided under this License. Any attempt | |
| 210 | +otherwise to copy, modify, sublicense or distribute the Program is | |
| 211 | +void, and will automatically terminate your rights under this License. | |
| 212 | +However, parties who have received copies, or rights, from you under | |
| 213 | +this License will not have their licenses terminated so long as such | |
| 214 | +parties remain in full compliance. | |
| 215 | + | |
| 216 | + 5. You are not required to accept this License, since you have not | |
| 217 | +signed it. However, nothing else grants you permission to modify or | |
| 218 | +distribute the Program or its derivative works. These actions are | |
| 219 | +prohibited by law if you do not accept this License. Therefore, by | |
| 220 | +modifying or distributing the Program (or any work based on the | |
| 221 | +Program), you indicate your acceptance of this License to do so, and | |
| 222 | +all its terms and conditions for copying, distributing or modifying | |
| 223 | +the Program or works based on it. | |
| 224 | + | |
| 225 | + 6. Each time you redistribute the Program (or any work based on the | |
| 226 | +Program), the recipient automatically receives a license from the | |
| 227 | +original licensor to copy, distribute or modify the Program subject to | |
| 228 | +these terms and conditions. You may not impose any further | |
| 229 | +restrictions on the recipients' exercise of the rights granted herein. | |
| 230 | +You are not responsible for enforcing compliance by third parties to | |
| 231 | +this License. | |
| 232 | + | |
| 233 | + 7. If, as a consequence of a court judgment or allegation of patent | |
| 234 | +infringement or for any other reason (not limited to patent issues), | |
| 235 | +conditions are imposed on you (whether by court order, agreement or | |
| 236 | +otherwise) that contradict the conditions of this License, they do not | |
| 237 | +excuse you from the conditions of this License. If you cannot | |
| 238 | +distribute so as to satisfy simultaneously your obligations under this | |
| 239 | +License and any other pertinent obligations, then as a consequence you | |
| 240 | +may not distribute the Program at all. For example, if a patent | |
| 241 | +license would not permit royalty-free redistribution of the Program by | |
| 242 | +all those who receive copies directly or indirectly through you, then | |
| 243 | +the only way you could satisfy both it and this License would be to | |
| 244 | +refrain entirely from distribution of the Program. | |
| 245 | + | |
| 246 | +If any portion of this section is held invalid or unenforceable under | |
| 247 | +any particular circumstance, the balance of the section is intended to | |
| 248 | +apply and the section as a whole is intended to apply in other | |
| 249 | +circumstances. | |
| 250 | + | |
| 251 | +It is not the purpose of this section to induce you to infringe any | |
| 252 | +patents or other property right claims or to contest validity of any | |
| 253 | +such claims; this section has the sole purpose of protecting the | |
| 254 | +integrity of the free software distribution system, which is | |
| 255 | +implemented by public license practices. Many people have made | |
| 256 | +generous contributions to the wide range of software distributed | |
| 257 | +through that system in reliance on consistent application of that | |
| 258 | +system; it is up to the author/donor to decide if he or she is willing | |
| 259 | +to distribute software through any other system and a licensee cannot | |
| 260 | +impose that choice. | |
| 261 | + | |
| 262 | +This section is intended to make thoroughly clear what is believed to | |
| 263 | +be a consequence of the rest of this License. | |
| 264 | + | |
| 265 | + 8. If the distribution and/or use of the Program is restricted in | |
| 266 | +certain countries either by patents or by copyrighted interfaces, the | |
| 267 | +original copyright holder who places the Program under this License | |
| 268 | +may add an explicit geographical distribution limitation excluding | |
| 269 | +those countries, so that distribution is permitted only in or among | |
| 270 | +countries not thus excluded. In such case, this License incorporates | |
| 271 | +the limitation as if written in the body of this License. | |
| 272 | + | |
| 273 | + 9. The Free Software Foundation may publish revised and/or new versions | |
| 274 | +of the General Public License from time to time. Such new versions will | |
| 275 | +be similar in spirit to the present version, but may differ in detail to | |
| 276 | +address new problems or concerns. | |
| 277 | + | |
| 278 | +Each version is given a distinguishing version number. If the Program | |
| 279 | +specifies a version number of this License which applies to it and "any | |
| 280 | +later version", you have the option of following the terms and conditions | |
| 281 | +either of that version or of any later version published by the Free | |
| 282 | +Software Foundation. If the Program does not specify a version number of | |
| 283 | +this License, you may choose any version ever published by the Free Software | |
| 284 | +Foundation. | |
| 285 | + | |
| 286 | + 10. If you wish to incorporate parts of the Program into other free | |
| 287 | +programs whose distribution conditions are different, write to the author | |
| 288 | +to ask for permission. For software which is copyrighted by the Free | |
| 289 | +Software Foundation, write to the Free Software Foundation; we sometimes | |
| 290 | +make exceptions for this. Our decision will be guided by the two goals | |
| 291 | +of preserving the free status of all derivatives of our free software and | |
| 292 | +of promoting the sharing and reuse of software generally. | |
| 293 | + | |
| 294 | + NO WARRANTY | |
| 295 | + | |
| 296 | + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | |
| 297 | +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | |
| 298 | +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | |
| 299 | +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | |
| 300 | +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
| 301 | +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | |
| 302 | +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | |
| 303 | +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | |
| 304 | +REPAIR OR CORRECTION. | |
| 305 | + | |
| 306 | + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | |
| 307 | +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | |
| 308 | +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | |
| 309 | +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | |
| 310 | +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | |
| 311 | +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | |
| 312 | +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | |
| 313 | +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | |
| 314 | +POSSIBILITY OF SUCH DAMAGES. | |
| 315 | + | |
| 316 | + END OF TERMS AND CONDITIONS | |
| 317 | + | |
| 318 | + How to Apply These Terms to Your New Programs | |
| 319 | + | |
| 320 | + If you develop a new program, and you want it to be of the greatest | |
| 321 | +possible use to the public, the best way to achieve this is to make it | |
| 322 | +free software which everyone can redistribute and change under these terms. | |
| 323 | + | |
| 324 | + To do so, attach the following notices to the program. It is safest | |
| 325 | +to attach them to the start of each source file to most effectively | |
| 326 | +convey the exclusion of warranty; and each file should have at least | |
| 327 | +the "copyright" line and a pointer to where the full notice is found. | |
| 328 | + | |
| 329 | + <one line to give the program's name and a brief idea of what it does.> | |
| 330 | + Copyright (C) <year> <name of author> | |
| 331 | + | |
| 332 | + This program is free software; you can redistribute it and/or modify | |
| 333 | + it under the terms of the GNU General Public License as published by | |
| 334 | + the Free Software Foundation; either version 2 of the License, or | |
| 335 | + (at your option) any later version. | |
| 336 | + | |
| 337 | + This program is distributed in the hope that it will be useful, | |
| 338 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 339 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 340 | + GNU General Public License for more details. | |
| 341 | + | |
| 342 | + You should have received a copy of the GNU General Public License | |
| 343 | + along with this program; if not, write to the Free Software | |
| 344 | + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
| 345 | + | |
| 346 | + | |
| 347 | +Also add information on how to contact you by electronic and paper mail. | |
| 348 | + | |
| 349 | +If the program is interactive, make it output a short notice like this | |
| 350 | +when it starts in an interactive mode: | |
| 351 | + | |
| 352 | + Gnomovision version 69, Copyright (C) year name of author | |
| 353 | + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | |
| 354 | + This is free software, and you are welcome to redistribute it | |
| 355 | + under certain conditions; type `show c' for details. | |
| 356 | + | |
| 357 | +The hypothetical commands `show w' and `show c' should show the appropriate | |
| 358 | +parts of the General Public License. Of course, the commands you use may | |
| 359 | +be called something other than `show w' and `show c'; they could even be | |
| 360 | +mouse-clicks or menu items--whatever suits your program. | |
| 361 | + | |
| 362 | +You should also get your employer (if you work as a programmer) or your | |
| 363 | +school, if any, to sign a "copyright disclaimer" for the program, if | |
| 364 | +necessary. Here is a sample; alter the names: | |
| 365 | + | |
| 366 | + Yoyodyne, Inc., hereby disclaims all copyright interest in the program | |
| 367 | + `Gnomovision' (which makes passes at compilers) written by James Hacker. | |
| 368 | + | |
| 369 | + <signature of Ty Coon>, 1 April 1989 | |
| 370 | + Ty Coon, President of Vice | |
| 371 | + | |
| 372 | +This General Public License does not permit incorporating your program into | |
| 373 | +proprietary programs. If your program is a subroutine library, you may | |
| 374 | +consider it more useful to permit linking proprietary applications with the | |
| 375 | +library. If this is what you want to do, use the GNU Library General | |
| 376 | +Public License instead of this License. | |
| 377 | + | |
| 378 | +Files in vswitchd/ and its sub-directories are covered under the GNU | |
| 379 | +General Public License Version 3. Included below: | |
| 380 | + | |
| 381 | + GNU GENERAL PUBLIC LICENSE | |
| 382 | + Version 3, 29 June 2007 | |
| 383 | + | |
| 384 | + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
| 385 | + Everyone is permitted to copy and distribute verbatim copies | |
| 386 | + of this license document, but changing it is not allowed. | |
| 387 | + | |
| 388 | + Preamble | |
| 389 | + | |
| 390 | + The GNU General Public License is a free, copyleft license for | |
| 391 | +software and other kinds of works. | |
| 392 | + | |
| 393 | + The licenses for most software and other practical works are designed | |
| 394 | +to take away your freedom to share and change the works. By contrast, | |
| 395 | +the GNU General Public License is intended to guarantee your freedom to | |
| 396 | +share and change all versions of a program--to make sure it remains free | |
| 397 | +software for all its users. We, the Free Software Foundation, use the | |
| 398 | +GNU General Public License for most of our software; it applies also to | |
| 399 | +any other work released this way by its authors. You can apply it to | |
| 400 | +your programs, too. | |
| 401 | + | |
| 402 | + When we speak of free software, we are referring to freedom, not | |
| 403 | +price. Our General Public Licenses are designed to make sure that you | |
| 404 | +have the freedom to distribute copies of free software (and charge for | |
| 405 | +them if you wish), that you receive source code or can get it if you | |
| 406 | +want it, that you can change the software or use pieces of it in new | |
| 407 | +free programs, and that you know you can do these things. | |
| 408 | + | |
| 409 | + To protect your rights, we need to prevent others from denying you | |
| 410 | +these rights or asking you to surrender the rights. Therefore, you have | |
| 411 | +certain responsibilities if you distribute copies of the software, or if | |
| 412 | +you modify it: responsibilities to respect the freedom of others. | |
| 413 | + | |
| 414 | + For example, if you distribute copies of such a program, whether | |
| 415 | +gratis or for a fee, you must pass on to the recipients the same | |
| 416 | +freedoms that you received. You must make sure that they, too, receive | |
| 417 | +or can get the source code. And you must show them these terms so they | |
| 418 | +know their rights. | |
| 419 | + | |
| 420 | + Developers that use the GNU GPL protect your rights with two steps: | |
| 421 | +(1) assert copyright on the software, and (2) offer you this License | |
| 422 | +giving you legal permission to copy, distribute and/or modify it. | |
| 423 | + | |
| 424 | + For the developers' and authors' protection, the GPL clearly explains | |
| 425 | +that there is no warranty for this free software. For both users' and | |
| 426 | +authors' sake, the GPL requires that modified versions be marked as | |
| 427 | +changed, so that their problems will not be attributed erroneously to | |
| 428 | +authors of previous versions. | |
| 429 | + | |
| 430 | + Some devices are designed to deny users access to install or run | |
| 431 | +modified versions of the software inside them, although the manufacturer | |
| 432 | +can do so. This is fundamentally incompatible with the aim of | |
| 433 | +protecting users' freedom to change the software. The systematic | |
| 434 | +pattern of such abuse occurs in the area of products for individuals to | |
| 435 | +use, which is precisely where it is most unacceptable. Therefore, we | |
| 436 | +have designed this version of the GPL to prohibit the practice for those | |
| 437 | +products. If such problems arise substantially in other domains, we | |
| 438 | +stand ready to extend this provision to those domains in future versions | |
| 439 | +of the GPL, as needed to protect the freedom of users. | |
| 440 | + | |
| 441 | + Finally, every program is threatened constantly by software patents. | |
| 442 | +States should not allow patents to restrict development and use of | |
| 443 | +software on general-purpose computers, but in those that do, we wish to | |
| 444 | +avoid the special danger that patents applied to a free program could | |
| 445 | +make it effectively proprietary. To prevent this, the GPL assures that | |
| 446 | +patents cannot be used to render the program non-free. | |
| 447 | + | |
| 448 | + The precise terms and conditions for copying, distribution and | |
| 449 | +modification follow. | |
| 450 | + | |
| 451 | + TERMS AND CONDITIONS | |
| 452 | + | |
| 453 | + 0. Definitions. | |
| 454 | + | |
| 455 | + "This License" refers to version 3 of the GNU General Public License. | |
| 456 | + | |
| 457 | + "Copyright" also means copyright-like laws that apply to other kinds of | |
| 458 | +works, such as semiconductor masks. | |
| 459 | + | |
| 460 | + "The Program" refers to any copyrightable work licensed under this | |
| 461 | +License. Each licensee is addressed as "you". "Licensees" and | |
| 462 | +"recipients" may be individuals or organizations. | |
| 463 | + | |
| 464 | + To "modify" a work means to copy from or adapt all or part of the work | |
| 465 | +in a fashion requiring copyright permission, other than the making of an | |
| 466 | +exact copy. The resulting work is called a "modified version" of the | |
| 467 | +earlier work or a work "based on" the earlier work. | |
| 468 | + | |
| 469 | + A "covered work" means either the unmodified Program or a work based | |
| 470 | +on the Program. | |
| 471 | + | |
| 472 | + To "propagate" a work means to do anything with it that, without | |
| 473 | +permission, would make you directly or secondarily liable for | |
| 474 | +infringement under applicable copyright law, except executing it on a | |
| 475 | +computer or modifying a private copy. Propagation includes copying, | |
| 476 | +distribution (with or without modification), making available to the | |
| 477 | +public, and in some countries other activities as well. | |
| 478 | + | |
| 479 | + To "convey" a work means any kind of propagation that enables other | |
| 480 | +parties to make or receive copies. Mere interaction with a user through | |
| 481 | +a computer network, with no transfer of a copy, is not conveying. | |
| 482 | + | |
| 483 | + An interactive user interface displays "Appropriate Legal Notices" | |
| 484 | +to the extent that it includes a convenient and prominently visible | |
| 485 | +feature that (1) displays an appropriate copyright notice, and (2) | |
| 486 | +tells the user that there is no warranty for the work (except to the | |
| 487 | +extent that warranties are provided), that licensees may convey the | |
| 488 | +work under this License, and how to view a copy of this License. If | |
| 489 | +the interface presents a list of user commands or options, such as a | |
| 490 | +menu, a prominent item in the list meets this criterion. | |
| 491 | + | |
| 492 | + 1. Source Code. | |
| 493 | + | |
| 494 | + The "source code" for a work means the preferred form of the work | |
| 495 | +for making modifications to it. "Object code" means any non-source | |
| 496 | +form of a work. | |
| 497 | + | |
| 498 | + A "Standard Interface" means an interface that either is an official | |
| 499 | +standard defined by a recognized standards body, or, in the case of | |
| 500 | +interfaces specified for a particular programming language, one that | |
| 501 | +is widely used among developers working in that language. | |
| 502 | + | |
| 503 | + The "System Libraries" of an executable work include anything, other | |
| 504 | +than the work as a whole, that (a) is included in the normal form of | |
| 505 | +packaging a Major Component, but which is not part of that Major | |
| 506 | +Component, and (b) serves only to enable use of the work with that | |
| 507 | +Major Component, or to implement a Standard Interface for which an | |
| 508 | +implementation is available to the public in source code form. A | |
| 509 | +"Major Component", in this context, means a major essential component | |
| 510 | +(kernel, window system, and so on) of the specific operating system | |
| 511 | +(if any) on which the executable work runs, or a compiler used to | |
| 512 | +produce the work, or an object code interpreter used to run it. | |
| 513 | + | |
| 514 | + The "Corresponding Source" for a work in object code form means all | |
| 515 | +the source code needed to generate, install, and (for an executable | |
| 516 | +work) run the object code and to modify the work, including scripts to | |
| 517 | +control those activities. However, it does not include the work's | |
| 518 | +System Libraries, or general-purpose tools or generally available free | |
| 519 | +programs which are used unmodified in performing those activities but | |
| 520 | +which are not part of the work. For example, Corresponding Source | |
| 521 | +includes interface definition files associated with source files for | |
| 522 | +the work, and the source code for shared libraries and dynamically | |
| 523 | +linked subprograms that the work is specifically designed to require, | |
| 524 | +such as by intimate data communication or control flow between those | |
| 525 | +subprograms and other parts of the work. | |
| 526 | + | |
| 527 | + The Corresponding Source need not include anything that users | |
| 528 | +can regenerate automatically from other parts of the Corresponding | |
| 529 | +Source. | |
| 530 | + | |
| 531 | + The Corresponding Source for a work in source code form is that | |
| 532 | +same work. | |
| 533 | + | |
| 534 | + 2. Basic Permissions. | |
| 535 | + | |
| 536 | + All rights granted under this License are granted for the term of | |
| 537 | +copyright on the Program, and are irrevocable provided the stated | |
| 538 | +conditions are met. This License explicitly affirms your unlimited | |
| 539 | +permission to run the unmodified Program. The output from running a | |
| 540 | +covered work is covered by this License only if the output, given its | |
| 541 | +content, constitutes a covered work. This License acknowledges your | |
| 542 | +rights of fair use or other equivalent, as provided by copyright law. | |
| 543 | + | |
| 544 | + You may make, run and propagate covered works that you do not | |
| 545 | +convey, without conditions so long as your license otherwise remains | |
| 546 | +in force. You may convey covered works to others for the sole purpose | |
| 547 | +of having them make modifications exclusively for you, or provide you | |
| 548 | +with facilities for running those works, provided that you comply with | |
| 549 | +the terms of this License in conveying all material for which you do | |
| 550 | +not control copyright. Those thus making or running the covered works | |
| 551 | +for you must do so exclusively on your behalf, under your direction | |
| 552 | +and control, on terms that prohibit them from making any copies of | |
| 553 | +your copyrighted material outside their relationship with you. | |
| 554 | + | |
| 555 | + Conveying under any other circumstances is permitted solely under | |
| 556 | +the conditions stated below. Sublicensing is not allowed; section 10 | |
| 557 | +makes it unnecessary. | |
| 558 | + | |
| 559 | + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. | |
| 560 | + | |
| 561 | + No covered work shall be deemed part of an effective technological | |
| 562 | +measure under any applicable law fulfilling obligations under article | |
| 563 | +11 of the WIPO copyright treaty adopted on 20 December 1996, or | |
| 564 | +similar laws prohibiting or restricting circumvention of such | |
| 565 | +measures. | |
| 566 | + | |
| 567 | + When you convey a covered work, you waive any legal power to forbid | |
| 568 | +circumvention of technological measures to the extent such circumvention | |
| 569 | +is effected by exercising rights under this License with respect to | |
| 570 | +the covered work, and you disclaim any intention to limit operation or | |
| 571 | +modification of the work as a means of enforcing, against the work's | |
| 572 | +users, your or third parties' legal rights to forbid circumvention of | |
| 573 | +technological measures. | |
| 574 | + | |
| 575 | + 4. Conveying Verbatim Copies. | |
| 576 | + | |
| 577 | + You may convey verbatim copies of the Program's source code as you | |
| 578 | +receive it, in any medium, provided that you conspicuously and | |
| 579 | +appropriately publish on each copy an appropriate copyright notice; | |
| 580 | +keep intact all notices stating that this License and any | |
| 581 | +non-permissive terms added in accord with section 7 apply to the code; | |
| 582 | +keep intact all notices of the absence of any warranty; and give all | |
| 583 | +recipients a copy of this License along with the Program. | |
| 584 | + | |
| 585 | + You may charge any price or no price for each copy that you convey, | |
| 586 | +and you may offer support or warranty protection for a fee. | |
| 587 | + | |
| 588 | + 5. Conveying Modified Source Versions. | |
| 589 | + | |
| 590 | + You may convey a work based on the Program, or the modifications to | |
| 591 | +produce it from the Program, in the form of source code under the | |
| 592 | +terms of section 4, provided that you also meet all of these conditions: | |
| 593 | + | |
| 594 | + a) The work must carry prominent notices stating that you modified | |
| 595 | + it, and giving a relevant date. | |
| 596 | + | |
| 597 | + b) The work must carry prominent notices stating that it is | |
| 598 | + released under this License and any conditions added under section | |
| 599 | + 7. This requirement modifies the requirement in section 4 to | |
| 600 | + "keep intact all notices". | |
| 601 | + | |
| 602 | + c) You must license the entire work, as a whole, under this | |
| 603 | + License to anyone who comes into possession of a copy. This | |
| 604 | + License will therefore apply, along with any applicable section 7 | |
| 605 | + additional terms, to the whole of the work, and all its parts, | |
| 606 | + regardless of how they are packaged. This License gives no | |
| 607 | + permission to license the work in any other way, but it does not | |
| 608 | + invalidate such permission if you have separately received it. | |
| 609 | + | |
| 610 | + d) If the work has interactive user interfaces, each must display | |
| 611 | + Appropriate Legal Notices; however, if the Program has interactive | |
| 612 | + interfaces that do not display Appropriate Legal Notices, your | |
| 613 | + work need not make them do so. | |
| 614 | + | |
| 615 | + A compilation of a covered work with other separate and independent | |
| 616 | +works, which are not by their nature extensions of the covered work, | |
| 617 | +and which are not combined with it such as to form a larger program, | |
| 618 | +in or on a volume of a storage or distribution medium, is called an | |
| 619 | +"aggregate" if the compilation and its resulting copyright are not | |
| 620 | +used to limit the access or legal rights of the compilation's users | |
| 621 | +beyond what the individual works permit. Inclusion of a covered work | |
| 622 | +in an aggregate does not cause this License to apply to the other | |
| 623 | +parts of the aggregate. | |
| 624 | + | |
| 625 | + 6. Conveying Non-Source Forms. | |
| 626 | + | |
| 627 | + You may convey a covered work in object code form under the terms | |
| 628 | +of sections 4 and 5, provided that you also convey the | |
| 629 | +machine-readable Corresponding Source under the terms of this License, | |
| 630 | +in one of these ways: | |
| 631 | + | |
| 632 | + a) Convey the object code in, or embodied in, a physical product | |
| 633 | + (including a physical distribution medium), accompanied by the | |
| 634 | + Corresponding Source fixed on a durable physical medium | |
| 635 | + customarily used for software interchange. | |
| 636 | + | |
| 637 | + b) Convey the object code in, or embodied in, a physical product | |
| 638 | + (including a physical distribution medium), accompanied by a | |
| 639 | + written offer, valid for at least three years and valid for as | |
| 640 | + long as you offer spare parts or customer support for that product | |
| 641 | + model, to give anyone who possesses the object code either (1) a | |
| 642 | + copy of the Corresponding Source for all the software in the | |
| 643 | + product that is covered by this License, on a durable physical | |
| 644 | + medium customarily used for software interchange, for a price no | |
| 645 | + more than your reasonable cost of physically performing this | |
| 646 | + conveying of source, or (2) access to copy the | |
| 647 | + Corresponding Source from a network server at no charge. | |
| 648 | + | |
| 649 | + c) Convey individual copies of the object code with a copy of the | |
| 650 | + written offer to provide the Corresponding Source. This | |
| 651 | + alternative is allowed only occasionally and noncommercially, and | |
| 652 | + only if you received the object code with such an offer, in accord | |
| 653 | + with subsection 6b. | |
| 654 | + | |
| 655 | + d) Convey the object code by offering access from a designated | |
| 656 | + place (gratis or for a charge), and offer equivalent access to the | |
| 657 | + Corresponding Source in the same way through the same place at no | |
| 658 | + further charge. You need not require recipients to copy the | |
| 659 | + Corresponding Source along with the object code. If the place to | |
| 660 | + copy the object code is a network server, the Corresponding Source | |
| 661 | + may be on a different server (operated by you or a third party) | |
| 662 | + that supports equivalent copying facilities, provided you maintain | |
| 663 | + clear directions next to the object code saying where to find the | |
| 664 | + Corresponding Source. Regardless of what server hosts the | |
| 665 | + Corresponding Source, you remain obligated to ensure that it is | |
| 666 | + available for as long as needed to satisfy these requirements. | |
| 667 | + | |
| 668 | + e) Convey the object code using peer-to-peer transmission, provided | |
| 669 | + you inform other peers where the object code and Corresponding | |
| 670 | + Source of the work are being offered to the general public at no | |
| 671 | + charge under subsection 6d. | |
| 672 | + | |
| 673 | + A separable portion of the object code, whose source code is excluded | |
| 674 | +from the Corresponding Source as a System Library, need not be | |
| 675 | +included in conveying the object code work. | |
| 676 | + | |
| 677 | + A "User Product" is either (1) a "consumer product", which means any | |
| 678 | +tangible personal property which is normally used for personal, family, | |
| 679 | +or household purposes, or (2) anything designed or sold for incorporation | |
| 680 | +into a dwelling. In determining whether a product is a consumer product, | |
| 681 | +doubtful cases shall be resolved in favor of coverage. For a particular | |
| 682 | +product received by a particular user, "normally used" refers to a | |
| 683 | +typical or common use of that class of product, regardless of the status | |
| 684 | +of the particular user or of the way in which the particular user | |
| 685 | +actually uses, or expects or is expected to use, the product. A product | |
| 686 | +is a consumer product regardless of whether the product has substantial | |
| 687 | +commercial, industrial or non-consumer uses, unless such uses represent | |
| 688 | +the only significant mode of use of the product. | |
| 689 | + | |
| 690 | + "Installation Information" for a User Product means any methods, | |
| 691 | +procedures, authorization keys, or other information required to install | |
| 692 | +and execute modified versions of a covered work in that User Product from | |
| 693 | +a modified version of its Corresponding Source. The information must | |
| 694 | +suffice to ensure that the continued functioning of the modified object | |
| 695 | +code is in no case prevented or interfered with solely because | |
| 696 | +modification has been made. | |
| 697 | + | |
| 698 | + If you convey an object code work under this section in, or with, or | |
| 699 | +specifically for use in, a User Product, and the conveying occurs as | |
| 700 | +part of a transaction in which the right of possession and use of the | |
| 701 | +User Product is transferred to the recipient in perpetuity or for a | |
| 702 | +fixed term (regardless of how the transaction is characterized), the | |
| 703 | +Corresponding Source conveyed under this section must be accompanied | |
| 704 | +by the Installation Information. But this requirement does not apply | |
| 705 | +if neither you nor any third party retains the ability to install | |
| 706 | +modified object code on the User Product (for example, the work has | |
| 707 | +been installed in ROM). | |
| 708 | + | |
| 709 | + The requirement to provide Installation Information does not include a | |
| 710 | +requirement to continue to provide support service, warranty, or updates | |
| 711 | +for a work that has been modified or installed by the recipient, or for | |
| 712 | +the User Product in which it has been modified or installed. Access to a | |
| 713 | +network may be denied when the modification itself materially and | |
| 714 | +adversely affects the operation of the network or violates the rules and | |
| 715 | +protocols for communication across the network. | |
| 716 | + | |
| 717 | + Corresponding Source conveyed, and Installation Information provided, | |
| 718 | +in accord with this section must be in a format that is publicly | |
| 719 | +documented (and with an implementation available to the public in | |
| 720 | +source code form), and must require no special password or key for | |
| 721 | +unpacking, reading or copying. | |
| 722 | + | |
| 723 | + 7. Additional Terms. | |
| 724 | + | |
| 725 | + "Additional permissions" are terms that supplement the terms of this | |
| 726 | +License by making exceptions from one or more of its conditions. | |
| 727 | +Additional permissions that are applicable to the entire Program shall | |
| 728 | +be treated as though they were included in this License, to the extent | |
| 729 | +that they are valid under applicable law. If additional permissions | |
| 730 | +apply only to part of the Program, that part may be used separately | |
| 731 | +under those permissions, but the entire Program remains governed by | |
| 732 | +this License without regard to the additional permissions. | |
| 733 | + | |
| 734 | + When you convey a copy of a covered work, you may at your option | |
| 735 | +remove any additional permissions from that copy, or from any part of | |
| 736 | +it. (Additional permissions may be written to require their own | |
| 737 | +removal in certain cases when you modify the work.) You may place | |
| 738 | +additional permissions on material, added by you to a covered work, | |
| 739 | +for which you have or can give appropriate copyright permission. | |
| 740 | + | |
| 741 | + Notwithstanding any other provision of this License, for material you | |
| 742 | +add to a covered work, you may (if authorized by the copyright holders of | |
| 743 | +that material) supplement the terms of this License with terms: | |
| 744 | + | |
| 745 | + a) Disclaiming warranty or limiting liability differently from the | |
| 746 | + terms of sections 15 and 16 of this License; or | |
| 747 | + | |
| 748 | + b) Requiring preservation of specified reasonable legal notices or | |
| 749 | + author attributions in that material or in the Appropriate Legal | |
| 750 | + Notices displayed by works containing it; or | |
| 751 | + | |
| 752 | + c) Prohibiting misrepresentation of the origin of that material, or | |
| 753 | + requiring that modified versions of such material be marked in | |
| 754 | + reasonable ways as different from the original version; or | |
| 755 | + | |
| 756 | + d) Limiting the use for publicity purposes of names of licensors or | |
| 757 | + authors of the material; or | |
| 758 | + | |
| 759 | + e) Declining to grant rights under trademark law for use of some | |
| 760 | + trade names, trademarks, or service marks; or | |
| 761 | + | |
| 762 | + f) Requiring indemnification of licensors and authors of that | |
| 763 | + material by anyone who conveys the material (or modified versions of | |
| 764 | + it) with contractual assumptions of liability to the recipient, for | |
| 765 | + any liability that these contractual assumptions directly impose on | |
| 766 | + those licensors and authors. | |
| 767 | + | |
| 768 | + All other non-permissive additional terms are considered "further | |
| 769 | +restrictions" within the meaning of section 10. If the Program as you | |
| 770 | +received it, or any part of it, contains a notice stating that it is | |
| 771 | +governed by this License along with a term that is a further | |
| 772 | +restriction, you may remove that term. If a license document contains | |
| 773 | +a further restriction but permits relicensing or conveying under this | |
| 774 | +License, you may add to a covered work material governed by the terms | |
| 775 | +of that license document, provided that the further restriction does | |
| 776 | +not survive such relicensing or conveying. | |
| 777 | + | |
| 778 | + If you add terms to a covered work in accord with this section, you | |
| 779 | +must place, in the relevant source files, a statement of the | |
| 780 | +additional terms that apply to those files, or a notice indicating | |
| 781 | +where to find the applicable terms. | |
| 782 | + | |
| 783 | + Additional terms, permissive or non-permissive, may be stated in the | |
| 784 | +form of a separately written license, or stated as exceptions; | |
| 785 | +the above requirements apply either way. | |
| 786 | + | |
| 787 | + 8. Termination. | |
| 788 | + | |
| 789 | + You may not propagate or modify a covered work except as expressly | |
| 790 | +provided under this License. Any attempt otherwise to propagate or | |
| 791 | +modify it is void, and will automatically terminate your rights under | |
| 792 | +this License (including any patent licenses granted under the third | |
| 793 | +paragraph of section 11). | |
| 794 | + | |
| 795 | + However, if you cease all violation of this License, then your | |
| 796 | +license from a particular copyright holder is reinstated (a) | |
| 797 | +provisionally, unless and until the copyright holder explicitly and | |
| 798 | +finally terminates your license, and (b) permanently, if the copyright | |
| 799 | +holder fails to notify you of the violation by some reasonable means | |
| 800 | +prior to 60 days after the cessation. | |
| 801 | + | |
| 802 | + Moreover, your license from a particular copyright holder is | |
| 803 | +reinstated permanently if the copyright holder notifies you of the | |
| 804 | +violation by some reasonable means, this is the first time you have | |
| 805 | +received notice of violation of this License (for any work) from that | |
| 806 | +copyright holder, and you cure the violation prior to 30 days after | |
| 807 | +your receipt of the notice. | |
| 808 | + | |
| 809 | + Termination of your rights under this section does not terminate the | |
| 810 | +licenses of parties who have received copies or rights from you under | |
| 811 | +this License. If your rights have been terminated and not permanently | |
| 812 | +reinstated, you do not qualify to receive new licenses for the same | |
| 813 | +material under section 10. | |
| 814 | + | |
| 815 | + 9. Acceptance Not Required for Having Copies. | |
| 816 | + | |
| 817 | + You are not required to accept this License in order to receive or | |
| 818 | +run a copy of the Program. Ancillary propagation of a covered work | |
| 819 | +occurring solely as a consequence of using peer-to-peer transmission | |
| 820 | +to receive a copy likewise does not require acceptance. However, | |
| 821 | +nothing other than this License grants you permission to propagate or | |
| 822 | +modify any covered work. These actions infringe copyright if you do | |
| 823 | +not accept this License. Therefore, by modifying or propagating a | |
| 824 | +covered work, you indicate your acceptance of this License to do so. | |
| 825 | + | |
| 826 | + 10. Automatic Licensing of Downstream Recipients. | |
| 827 | + | |
| 828 | + Each time you convey a covered work, the recipient automatically | |
| 829 | +receives a license from the original licensors, to run, modify and | |
| 830 | +propagate that work, subject to this License. You are not responsible | |
| 831 | +for enforcing compliance by third parties with this License. | |
| 832 | + | |
| 833 | + An "entity transaction" is a transaction transferring control of an | |
| 834 | +organization, or substantially all assets of one, or subdividing an | |
| 835 | +organization, or merging organizations. If propagation of a covered | |
| 836 | +work results from an entity transaction, each party to that | |
| 837 | +transaction who receives a copy of the work also receives whatever | |
| 838 | +licenses to the work the party's predecessor in interest had or could | |
| 839 | +give under the previous paragraph, plus a right to possession of the | |
| 840 | +Corresponding Source of the work from the predecessor in interest, if | |
| 841 | +the predecessor has it or can get it with reasonable efforts. | |
| 842 | + | |
| 843 | + You may not impose any further restrictions on the exercise of the | |
| 844 | +rights granted or affirmed under this License. For example, you may | |
| 845 | +not impose a license fee, royalty, or other charge for exercise of | |
| 846 | +rights granted under this License, and you may not initiate litigation | |
| 847 | +(including a cross-claim or counterclaim in a lawsuit) alleging that | |
| 848 | +any patent claim is infringed by making, using, selling, offering for | |
| 849 | +sale, or importing the Program or any portion of it. | |
| 850 | + | |
| 851 | + 11. Patents. | |
| 852 | + | |
| 853 | + A "contributor" is a copyright holder who authorizes use under this | |
| 854 | +License of the Program or a work on which the Program is based. The | |
| 855 | +work thus licensed is called the contributor's "contributor version". | |
| 856 | + | |
| 857 | + A contributor's "essential patent claims" are all patent claims | |
| 858 | +owned or controlled by the contributor, whether already acquired or | |
| 859 | +hereafter acquired, that would be infringed by some manner, permitted | |
| 860 | +by this License, of making, using, or selling its contributor version, | |
| 861 | +but do not include claims that would be infringed only as a | |
| 862 | +consequence of further modification of the contributor version. For | |
| 863 | +purposes of this definition, "control" includes the right to grant | |
| 864 | +patent sublicenses in a manner consistent with the requirements of | |
| 865 | +this License. | |
| 866 | + | |
| 867 | + Each contributor grants you a non-exclusive, worldwide, royalty-free | |
| 868 | +patent license under the contributor's essential patent claims, to | |
| 869 | +make, use, sell, offer for sale, import and otherwise run, modify and | |
| 870 | +propagate the contents of its contributor version. | |
| 871 | + | |
| 872 | + In the following three paragraphs, a "patent license" is any express | |
| 873 | +agreement or commitment, however denominated, not to enforce a patent | |
| 874 | +(such as an express permission to practice a patent or covenant not to | |
| 875 | +sue for patent infringement). To "grant" such a patent license to a | |
| 876 | +party means to make such an agreement or commitment not to enforce a | |
| 877 | +patent against the party. | |
| 878 | + | |
| 879 | + If you convey a covered work, knowingly relying on a patent license, | |
| 880 | +and the Corresponding Source of the work is not available for anyone | |
| 881 | +to copy, free of charge and under the terms of this License, through a | |
| 882 | +publicly available network server or other readily accessible means, | |
| 883 | +then you must either (1) cause the Corresponding Source to be so | |
| 884 | +available, or (2) arrange to deprive yourself of the benefit of the | |
| 885 | +patent license for this particular work, or (3) arrange, in a manner | |
| 886 | +consistent with the requirements of this License, to extend the patent | |
| 887 | +license to downstream recipients. "Knowingly relying" means you have | |
| 888 | +actual knowledge that, but for the patent license, your conveying the | |
| 889 | +covered work in a country, or your recipient's use of the covered work | |
| 890 | +in a country, would infringe one or more identifiable patents in that | |
| 891 | +country that you have reason to believe are valid. | |
| 892 | + | |
| 893 | + If, pursuant to or in connection with a single transaction or | |
| 894 | +arrangement, you convey, or propagate by procuring conveyance of, a | |
| 895 | +covered work, and grant a patent license to some of the parties | |
| 896 | +receiving the covered work authorizing them to use, propagate, modify | |
| 897 | +or convey a specific copy of the covered work, then the patent license | |
| 898 | +you grant is automatically extended to all recipients of the covered | |
| 899 | +work and works based on it. | |
| 900 | + | |
| 901 | + A patent license is "discriminatory" if it does not include within | |
| 902 | +the scope of its coverage, prohibits the exercise of, or is | |
| 903 | +conditioned on the non-exercise of one or more of the rights that are | |
| 904 | +specifically granted under this License. You may not convey a covered | |
| 905 | +work if you are a party to an arrangement with a third party that is | |
| 906 | +in the business of distributing software, under which you make payment | |
| 907 | +to the third party based on the extent of your activity of conveying | |
| 908 | +the work, and under which the third party grants, to any of the | |
| 909 | +parties who would receive the covered work from you, a discriminatory | |
| 910 | +patent license (a) in connection with copies of the covered work | |
| 911 | +conveyed by you (or copies made from those copies), or (b) primarily | |
| 912 | +for and in connection with specific products or compilations that | |
| 913 | +contain the covered work, unless you entered into that arrangement, | |
| 914 | +or that patent license was granted, prior to 28 March 2007. | |
| 915 | + | |
| 916 | + Nothing in this License shall be construed as excluding or limiting | |
| 917 | +any implied license or other defenses to infringement that may | |
| 918 | +otherwise be available to you under applicable patent law. | |
| 919 | + | |
| 920 | + 12. No Surrender of Others' Freedom. | |
| 921 | + | |
| 922 | + If conditions are imposed on you (whether by court order, agreement or | |
| 923 | +otherwise) that contradict the conditions of this License, they do not | |
| 924 | +excuse you from the conditions of this License. If you cannot convey a | |
| 925 | +covered work so as to satisfy simultaneously your obligations under this | |
| 926 | +License and any other pertinent obligations, then as a consequence you may | |
| 927 | +not convey it at all. For example, if you agree to terms that obligate you | |
| 928 | +to collect a royalty for further conveying from those to whom you convey | |
| 929 | +the Program, the only way you could satisfy both those terms and this | |
| 930 | +License would be to refrain entirely from conveying the Program. | |
| 931 | + | |
| 932 | + 13. Use with the GNU Affero General Public License. | |
| 933 | + | |
| 934 | + Notwithstanding any other provision of this License, you have | |
| 935 | +permission to link or combine any covered work with a work licensed | |
| 936 | +under version 3 of the GNU Affero General Public License into a single | |
| 937 | +combined work, and to convey the resulting work. The terms of this | |
| 938 | +License will continue to apply to the part which is the covered work, | |
| 939 | +but the special requirements of the GNU Affero General Public License, | |
| 940 | +section 13, concerning interaction through a network will apply to the | |
| 941 | +combination as such. | |
| 942 | + | |
| 943 | + 14. Revised Versions of this License. | |
| 944 | + | |
| 945 | + The Free Software Foundation may publish revised and/or new versions of | |
| 946 | +the GNU General Public License from time to time. Such new versions will | |
| 947 | +be similar in spirit to the present version, but may differ in detail to | |
| 948 | +address new problems or concerns. | |
| 949 | + | |
| 950 | + Each version is given a distinguishing version number. If the | |
| 951 | +Program specifies that a certain numbered version of the GNU General | |
| 952 | +Public License "or any later version" applies to it, you have the | |
| 953 | +option of following the terms and conditions either of that numbered | |
| 954 | +version or of any later version published by the Free Software | |
| 955 | +Foundation. If the Program does not specify a version number of the | |
| 956 | +GNU General Public License, you may choose any version ever published | |
| 957 | +by the Free Software Foundation. | |
| 958 | + | |
| 959 | + If the Program specifies that a proxy can decide which future | |
| 960 | +versions of the GNU General Public License can be used, that proxy's | |
| 961 | +public statement of acceptance of a version permanently authorizes you | |
| 962 | +to choose that version for the Program. | |
| 963 | + | |
| 964 | + Later license versions may give you additional or different | |
| 965 | +permissions. However, no additional obligations are imposed on any | |
| 966 | +author or copyright holder as a result of your choosing to follow a | |
| 967 | +later version. | |
| 968 | + | |
| 969 | + 15. Disclaimer of Warranty. | |
| 970 | + | |
| 971 | + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY | |
| 972 | +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT | |
| 973 | +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY | |
| 974 | +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, | |
| 975 | +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
| 976 | +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM | |
| 977 | +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF | |
| 978 | +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | |
| 979 | + | |
| 980 | + 16. Limitation of Liability. | |
| 981 | + | |
| 982 | + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | |
| 983 | +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS | |
| 984 | +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY | |
| 985 | +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE | |
| 986 | +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF | |
| 987 | +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD | |
| 988 | +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), | |
| 989 | +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF | |
| 990 | +SUCH DAMAGES. | |
| 991 | + | |
| 992 | + 17. Interpretation of Sections 15 and 16. | |
| 993 | + | |
| 994 | + If the disclaimer of warranty and limitation of liability provided | |
| 995 | +above cannot be given local legal effect according to their terms, | |
| 996 | +reviewing courts shall apply local law that most closely approximates | |
| 997 | +an absolute waiver of all civil liability in connection with the | |
| 998 | +Program, unless a warranty or assumption of liability accompanies a | |
| 999 | +copy of the Program in return for a fee. | |
| 1000 | + | |
| 1001 | + END OF TERMS AND CONDITIONS | |
| 1002 | + | |
| 1003 | + How to Apply These Terms to Your New Programs | |
| 1004 | + | |
| 1005 | + If you develop a new program, and you want it to be of the greatest | |
| 1006 | +possible use to the public, the best way to achieve this is to make it | |
| 1007 | +free software which everyone can redistribute and change under these terms. | |
| 1008 | + | |
| 1009 | + To do so, attach the following notices to the program. It is safest | |
| 1010 | +to attach them to the start of each source file to most effectively | |
| 1011 | +state the exclusion of warranty; and each file should have at least | |
| 1012 | +the "copyright" line and a pointer to where the full notice is found. | |
| 1013 | + | |
| 1014 | + <one line to give the program's name and a brief idea of what it does.> | |
| 1015 | + Copyright (C) <year> <name of author> | |
| 1016 | + | |
| 1017 | + This program is free software: you can redistribute it and/or modify | |
| 1018 | + it under the terms of the GNU General Public License as published by | |
| 1019 | + the Free Software Foundation, either version 3 of the License, or | |
| 1020 | + (at your option) any later version. | |
| 1021 | + | |
| 1022 | + This program is distributed in the hope that it will be useful, | |
| 1023 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 1024 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 1025 | + GNU General Public License for more details. | |
| 1026 | + | |
| 1027 | + You should have received a copy of the GNU General Public License | |
| 1028 | + along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 1029 | + | |
| 1030 | +Also add information on how to contact you by electronic and paper mail. | |
| 1031 | + | |
| 1032 | + If the program does terminal interaction, make it output a short | |
| 1033 | +notice like this when it starts in an interactive mode: | |
| 1034 | + | |
| 1035 | + <program> Copyright (C) <year> <name of author> | |
| 1036 | + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | |
| 1037 | + This is free software, and you are welcome to redistribute it | |
| 1038 | + under certain conditions; type `show c' for details. | |
| 1039 | + | |
| 1040 | +The hypothetical commands `show w' and `show c' should show the appropriate | |
| 1041 | +parts of the General Public License. Of course, your program's commands | |
| 1042 | +might be different; for a GUI interface, you would use an "about box". | |
| 1043 | + | |
| 1044 | + You should also get your employer (if you work as a programmer) or school, | |
| 1045 | +if any, to sign a "copyright disclaimer" for the program, if necessary. | |
| 1046 | +For more information on this, and how to apply and follow the GNU GPL, see | |
| 1047 | +<http://www.gnu.org/licenses/>. | |
| 1048 | + | |
| 1049 | + The GNU General Public License does not permit incorporating your program | |
| 1050 | +into proprietary programs. If your program is a subroutine library, you | |
| 1051 | +may consider it more useful to permit linking proprietary applications with | |
| 1052 | +the library. If this is what you want to do, use the GNU Lesser General | |
| 1053 | +Public License instead of this License. But first, please read | |
| 1054 | +<http://www.gnu.org/philosophy/why-not-lgpl.html>. | ... | ... |
INSTALL
0 → 100755
| 1 | + Installation Instructions for OpenFlow Reference Release | |
| 2 | + | |
| 3 | +This document describes how to build, install, and execute the | |
| 4 | +reference implementation of OpenFlow. Please send any comments to: | |
| 5 | + | |
| 6 | + <openflow-discuss@openflowswitch.org> | |
| 7 | + | |
| 8 | +Contents | |
| 9 | +======== | |
| 10 | + | |
| 11 | +The OpenFlow reference implementation includes one OpenFlow switch | |
| 12 | +implementations: | |
| 13 | + | |
| 14 | + - The "userspace datapath-based switch": This divides the switch | |
| 15 | + into a userspace "datapath" (built as udatapath/ofdatapath) | |
| 16 | + and a userspace program that implements the secure channel | |
| 17 | + component (ofprotocol). The userspace datapath-based switch | |
| 18 | + does not require building a kernel module, but it is not as | |
| 19 | + fast as a kernel-based switch. | |
| 20 | + | |
| 21 | +The reference implementation also contains a simple OpenFlow | |
| 22 | +controller (built as controller/controller) and a number of related | |
| 23 | +utilities. | |
| 24 | + | |
| 25 | +Build Methods | |
| 26 | +============= | |
| 27 | + | |
| 28 | +There are two principal ways to build and install this distribution: | |
| 29 | + | |
| 30 | + - Using "configure" and "make" in the ordinary way. See | |
| 31 | + Building Conventionally below for detailed instructions. | |
| 32 | + | |
| 33 | + - As a set of Debian packages. Refer to Building Debian | |
| 34 | + Packages, below, for instructions. | |
| 35 | + | |
| 36 | +Base Prerequisites | |
| 37 | +------------------ | |
| 38 | + | |
| 39 | +Regardless of how it is built, OpenFlow has a common set of | |
| 40 | +prerequisites. To compile the userspace programs in the OpenFlow | |
| 41 | +reference distribution, you will need the following software: | |
| 42 | + | |
| 43 | + - A make program, e.g. GNU make | |
| 44 | + (http://www.gnu.org/software/make/). BSD make should also work. | |
| 45 | + | |
| 46 | + - The GNU C compiler (http://gcc.gnu.org/). We generally test | |
| 47 | + with version 4.1 or 4.2. | |
| 48 | + | |
| 49 | + - libssl, from OpenSSL (http://www.openssl.org/), is optional but | |
| 50 | + recommended. libssl is required to establish confidentiality | |
| 51 | + and authenticity in the connections among OpenFlow switches and | |
| 52 | + controllers. To enable, configure with --enable-ssl=yes. | |
| 53 | + | |
| 54 | +If you are working from a Git tree or snapshot (instead of from a | |
| 55 | +distribution tarball), or if you modify the OpenFlow build system, you | |
| 56 | +will also need the following software: | |
| 57 | + | |
| 58 | + - Autoconf version 2.60 or later (http://www.gnu.org/software/autoconf). | |
| 59 | + | |
| 60 | + - Automake version 1.10 or later (http://www.gnu.org/software/automake). | |
| 61 | + | |
| 62 | + - pkg-config (http://pkg-config.freedesktop.org/wiki/). We test | |
| 63 | + with version 0.22. | |
| 64 | + | |
| 65 | +Debian Prerequisites | |
| 66 | +-------------------- | |
| 67 | + | |
| 68 | +To build Debian packages from the OpenFlow distribution, you will need | |
| 69 | +to install a number of Debian packages in addition to the base | |
| 70 | +prerequisites listed above. These additional prerequisites may be | |
| 71 | +found listed as "Build-Depends" in debian/control in the source tree. | |
| 72 | +To check that they are installed, first install the dpkg-dev package, | |
| 73 | +then run dpkg-checkbuilddeps from the top level of the OpenFlow source | |
| 74 | +tree. | |
| 75 | + | |
| 76 | +To build Debian packages without being root, also install the | |
| 77 | +"fakeroot" package. | |
| 78 | + | |
| 79 | +Userspace Switch Prerequisites | |
| 80 | +--------------------------------- | |
| 81 | + | |
| 82 | + - To enable slicing support, "tc" frontend should be installed | |
| 83 | + (from iproute2, part of all major distributions, | |
| 84 | + http://www.linux-foundation.org/en/Net:Iproute2). | |
| 85 | + You also need to enable the following kernel configuration | |
| 86 | + options under the QoS and/or Fair queueing section : | |
| 87 | + CONFIG_NET_SCHED,CONFIG_NET_SCH_HTB (already configured that | |
| 88 | + way in most distributions). | |
| 89 | + (NOTE: You can disable slicing (and these dependencies) at runtime | |
| 90 | + using the --no-slicing option) | |
| 91 | + | |
| 92 | +Building Conventionally | |
| 93 | +======================= | |
| 94 | + | |
| 95 | +This section explains how to build and install the OpenFlow | |
| 96 | +distribution in the ordinary way using "configure" and "make". | |
| 97 | + | |
| 98 | +0. Check that you have installed all the prerequisites listed above in | |
| 99 | + the Base Prerequisites section. | |
| 100 | + | |
| 101 | +1. In the top source directory, configure the package by running the | |
| 102 | + configure script. You can usually invoke configure without any | |
| 103 | + arguments: | |
| 104 | + | |
| 105 | + % ./configure | |
| 106 | + | |
| 107 | + To use a specific C compiler for compiling OpenFlow user programs, | |
| 108 | + also specify it on the configure command line, like so: | |
| 109 | + | |
| 110 | + % ./configure CC=gcc-4.2 | |
| 111 | + | |
| 112 | + If you have hardware that supports accelerated OpenFlow switching | |
| 113 | + and you have obtained a hardware table library for your hardware | |
| 114 | + and extracted it into the OpenFlow reference distribution source | |
| 115 | + tree, then you may also enable building support for the hardware | |
| 116 | + switch table with --enable-hw-lib. For more information, read | |
| 117 | + README.hwtables at the root of the OpenFlow distribution tree. | |
| 118 | + | |
| 119 | + The configure script accepts a number of other options and honors | |
| 120 | + additional environment variables. For a full list, invoke | |
| 121 | + configure with the --help option. | |
| 122 | + | |
| 123 | +2. Run make in the top source directory: | |
| 124 | + | |
| 125 | + % make | |
| 126 | + | |
| 127 | + The following binaries will be built: | |
| 128 | + | |
| 129 | + - Userspace datapath: udatapath/ofdatapath. | |
| 130 | + | |
| 131 | + - Secure channel executable: secchan/ofprotocol. | |
| 132 | + | |
| 133 | + - Controller executable: controller/controller. | |
| 134 | + | |
| 135 | + - Datapath administration utility: utilities/dpctl. | |
| 136 | + | |
| 137 | + - Runtime logging configuration utility: utilities/vlogconf. | |
| 138 | + | |
| 139 | + - Miscellaneous utilities: utilities/ofp-discover, | |
| 140 | + utilities/ofp-kill. | |
| 141 | + | |
| 142 | + - Tests: various binaries in tests/. | |
| 143 | + | |
| 144 | + If your distribution includes the OpenFlow extensions, the | |
| 145 | + following additional binaries will be built: | |
| 146 | + | |
| 147 | + - ANSI terminal support for EZIO 16x2 LCD panel: | |
| 148 | + ext/ezio/ezio-term. | |
| 149 | + | |
| 150 | + - Switch monitoring UI for small text displays: | |
| 151 | + ext/ezio/ofp-switchui. | |
| 152 | + | |
| 153 | +3. Run "make install" to install the executables and manpages into the | |
| 154 | + running system, by default under /usr/local. | |
| 155 | + | |
| 156 | +4. Test the userspace programs, as described under Testing Userspace | |
| 157 | + Programs below. | |
| 158 | + | |
| 159 | +Building Debian Packages | |
| 160 | +======================== | |
| 161 | + | |
| 162 | +Follow these instructions to build Debian packages for OpenFlow. | |
| 163 | + | |
| 164 | +0. Check that you have installed all the prerequisites listed above in | |
| 165 | + the Base Prerequisites and Debian Prerequisites sections above. | |
| 166 | + | |
| 167 | +1. In the top source directory, run the following command, as root: | |
| 168 | + | |
| 169 | + % dpkg-buildpackage | |
| 170 | + | |
| 171 | + Alternatively, if you installed the "fakeroot" package, you may run | |
| 172 | + dpkg-buildpackage as an ordinary user with the following syntax: | |
| 173 | + | |
| 174 | + % dpkg-buildpackage -rfakeroot | |
| 175 | + | |
| 176 | + The following packages will be built in the directory above the | |
| 177 | + source tree: | |
| 178 | + | |
| 179 | + - openflow-controller: The OpenFlow controller. Depends on | |
| 180 | + openflow-pki (see below). | |
| 181 | + | |
| 182 | + - openflow-switch: Install this package on a machine that acts | |
| 183 | + as an OpenFlow kernel switch. | |
| 184 | + | |
| 185 | + - openflow-datapath-source: Source code for OpenFlow's Linux | |
| 186 | + kernel module. | |
| 187 | + | |
| 188 | + - openflow-pki: Public-key infrastructure for OpenFlow. Install | |
| 189 | + this package on a machine that acts as an OpenFlow PKI server | |
| 190 | + (see "Establishing a Public Key Infrastructure" below). | |
| 191 | + | |
| 192 | + - openflow-common: Files and utilities required by more than one | |
| 193 | + of the above packages. | |
| 194 | + | |
| 195 | +2. To set up an OpenFlow controller, install the openflow-controller | |
| 196 | + package and its dependencies. You may configure it by editing | |
| 197 | + /etc/default/openflow-controller, e.g. to enable non-SSL | |
| 198 | + connections, which are disabled by default. If you change the | |
| 199 | + default settings, you will need to restart the controller by | |
| 200 | + running: | |
| 201 | + | |
| 202 | + % /etc/init.d/openflow-controller restart | |
| 203 | + | |
| 204 | +3. To set up an OpenFlow switch, install the openflow-switch package | |
| 205 | + and its dependencies. If it is to be a kernel-based switch, also | |
| 206 | + install openflow-datapath-source, then follow the instructions in | |
| 207 | + /usr/share/doc/openflow-datapath-source/README.Debian to build and | |
| 208 | + install the kernel module. | |
| 209 | + | |
| 210 | + You may configure the switch one of the following ways: | |
| 211 | + | |
| 212 | + - Completely by hand, as described under the Testing section | |
| 213 | + below. | |
| 214 | + | |
| 215 | + For the userspace datapath-based switch, this is the only | |
| 216 | + supported form of configuration. | |
| 217 | + | |
| 218 | + - By editing /etc/default/openflow-switch. You must at least | |
| 219 | + configure some network devices, by uncommenting NETDEVS and | |
| 220 | + adding the appropriate devices to the list, e.g. NETDEVS="eth0 | |
| 221 | + eth1". | |
| 222 | + | |
| 223 | + After you edit this file, you will need to start the switch by | |
| 224 | + running: | |
| 225 | + | |
| 226 | + % /etc/init.d/openflow-switch restart | |
| 227 | + | |
| 228 | + This form of configuration is not supported for the userspace | |
| 229 | + datapath-based switch. | |
| 230 | + | |
| 231 | + - By running the ofp-switch-setup program. This interactive | |
| 232 | + program will walk you through all the steps of configuring an | |
| 233 | + OpenFlow switch, including configuration of SSL certificates. | |
| 234 | + Run it without arguments, as root: | |
| 235 | + | |
| 236 | + % ofp-switch-setup | |
| 237 | + | |
| 238 | + This form of configuration is not supported for the userspace | |
| 239 | + datapath-based switch. | |
| 240 | + | |
| 241 | +Testing | |
| 242 | +======= | |
| 243 | + | |
| 244 | +The following sets of instructions show how to use the OpenFlow | |
| 245 | +reference implementation as a switch on a single machine. This can be | |
| 246 | +used to verify that the distribution built properly. For full | |
| 247 | +installation instructions, refer to the Installation section below. | |
| 248 | + | |
| 249 | +Userspace Datapath | |
| 250 | +------------------ | |
| 251 | + | |
| 252 | +These instructions use the OpenFlow userspace datapath ("ofdatapath"). | |
| 253 | + | |
| 254 | +1. Start the OpenFlow controller running in the background, by running | |
| 255 | + the "controller" program with a command like the following: | |
| 256 | + | |
| 257 | + # controller punix:/var/run/controller.sock & | |
| 258 | + | |
| 259 | + This command causes the controller to bind to the specified Unix | |
| 260 | + domain socket, awaiting connections from OpenFlow switches. See | |
| 261 | + controller(8) for details. | |
| 262 | + | |
| 263 | + The "controller" program does not require any special privilege, so | |
| 264 | + you do not need to run it as root. | |
| 265 | + | |
| 266 | +2. The commands below must run as root, so log in as root, or use a | |
| 267 | + program such as "su" to become root temporarily. | |
| 268 | + | |
| 269 | +3. Create a datapath instance running in the background. The command | |
| 270 | + below creates a datapath that listens for connections from ofprotocol | |
| 271 | + on a Unix domain socket located in /var/run and services physical | |
| 272 | + ports eth1 and eth2: | |
| 273 | + | |
| 274 | + # ofdatapath punix:/var/run/dp0.sock -i eth1,eth2 & | |
| 275 | + | |
| 276 | +4. Run ofprotocol to start the secure channel connecting the datapath and | |
| 277 | + the controller: | |
| 278 | + | |
| 279 | + # ofprotocol unix:/var/run/controller.sock unix:/var/run/dp0.sock & | |
| 280 | + | |
| 281 | +5. Devices plugged into the network ports specified in step 2 should | |
| 282 | + now be able to send packets to each other, as if they were plugged | |
| 283 | + into ports on a conventional Ethernet switch. | |
| 284 | + | |
| 285 | +Installation | |
| 286 | +============ | |
| 287 | + | |
| 288 | +This section explains how to install OpenFlow in a network with one | |
| 289 | +controller and one or more switches, each of which runs on a separate | |
| 290 | +machine. Before you begin, you must decide on one of two ways for | |
| 291 | +each switch to reach the controller over the network: | |
| 292 | + | |
| 293 | + - Use a "control network" that is completely separate from the | |
| 294 | + "data network" to be controlled ("out-of-band control"). The | |
| 295 | + location of the controller must be configured manually in this | |
| 296 | + case. | |
| 297 | + | |
| 298 | + - Use the same network for control and for data ("in-band | |
| 299 | + control"). When in-band control is used, the location of the | |
| 300 | + controller may be configured manually or discovered | |
| 301 | + automatically. We will assume manual configuration here; | |
| 302 | + please refer to ofprotocol(8) for instructions on setting up | |
| 303 | + controller discovery. | |
| 304 | + | |
| 305 | +Controller Setup | |
| 306 | +---------------- | |
| 307 | + | |
| 308 | +On the machine that is to be the OpenFlow controller, start the | |
| 309 | +"controller" program listening for connections from switches on TCP | |
| 310 | +port 6633 (the default), as shown below. | |
| 311 | + | |
| 312 | + # controller -v ptcp: | |
| 313 | + | |
| 314 | +(See controller(8) for more details) | |
| 315 | + | |
| 316 | +Make sure the machine hosting the controller is reachable by the | |
| 317 | +switch. | |
| 318 | + | |
| 319 | +Userspace Datapath-Based Setup | |
| 320 | +------------------------------ | |
| 321 | + | |
| 322 | +On a machine that is to host an OpenFlow userspace datapath-based | |
| 323 | +switch, follow the procedure below. | |
| 324 | + | |
| 325 | +0. The commands below must run as root, so log in as root, or use a | |
| 326 | + program such as "su" to become root temporarily. | |
| 327 | + | |
| 328 | +1. Create a datapath instance running in the background. The command | |
| 329 | + below creates a datapath that listens for connections from ofprotocol | |
| 330 | + on a Unix domain socket located in /var/run, services physical | |
| 331 | + ports eth1 and eth2, and creates a TAP network device named "tap0" | |
| 332 | + for use in in-band control: | |
| 333 | + | |
| 334 | + # ofdatapath punix:/var/run/dp0.sock -i eth1,eth2 --local-port=tap:tap0 & | |
| 335 | + | |
| 336 | + (See ofdatapath(8) for details.) | |
| 337 | + | |
| 338 | + If the switch will connect to the controller out-of-band, then the | |
| 339 | + --local-port option may be omitted, or --no-local-port may be | |
| 340 | + substituted. | |
| 341 | + | |
| 342 | +3. Arrange so that the switch can reach the controller over the | |
| 343 | + network. | |
| 344 | + | |
| 345 | + - If you are using out-of-band control, at this point make sure | |
| 346 | + that the switch machine can reach the controller over the | |
| 347 | + network. | |
| 348 | + | |
| 349 | + - If you are using in-band control with manual configuration, at | |
| 350 | + this point the TAP network device created in step 1 is not | |
| 351 | + bridged to any physical network, so the next step depends on | |
| 352 | + whether connectivity is required to configure the device's IP | |
| 353 | + address: | |
| 354 | + | |
| 355 | + * If the switch has a static IP address, you may configure | |
| 356 | + its IP address now, e.g.: | |
| 357 | + | |
| 358 | + # ifconfig tap0 192.168.1.1 | |
| 359 | + | |
| 360 | + * If the switch does not have a static IP address, e.g. its | |
| 361 | + IP address is obtained dynamically via DHCP, then proceed | |
| 362 | + to step 4. The DHCP client will not be able to contact | |
| 363 | + the DHCP server until the secure channel has started up. | |
| 364 | + | |
| 365 | + - If you are using in-band control with controller discovery, no | |
| 366 | + configuration is required at this point. You may proceed to | |
| 367 | + step 4. | |
| 368 | + | |
| 369 | +4. Run ofprotocol to start the secure channel connecting the datapath to | |
| 370 | + a remote controller. If the controller is running on host | |
| 371 | + 192.168.1.2 port 6633 (the default port), the ofprotocol invocation | |
| 372 | + would look like this: | |
| 373 | + | |
| 374 | + # ofprotocol unix:/var/run/dp0.sock tcp:192.168.1.2 | |
| 375 | + | |
| 376 | + - If you are using in-band control with controller discovery, omit | |
| 377 | + the second argument to the ofprotocol command. | |
| 378 | + | |
| 379 | + - If you are using out-of-band control, add --out-of-band to the | |
| 380 | + command line. | |
| 381 | + | |
| 382 | +5. If you are using in-band control with manual configuration, and the | |
| 383 | + switch obtains its IP address dynamically, then you may now obtain | |
| 384 | + the switch's IP address, e.g. by invoking a DHCP client. The | |
| 385 | + secure channel will only be able to connect to the controller after | |
| 386 | + an IP address has been obtained. | |
| 387 | + | |
| 388 | +6. The secure channel should connect to the controller within a few | |
| 389 | + seconds. It may take a little longer if controller discovery is in | |
| 390 | + use, because the switch must then also obtain its own IP address | |
| 391 | + and the controller's location via DHCP. | |
| 392 | + | |
| 393 | +Configuration | |
| 394 | +============= | |
| 395 | + | |
| 396 | +Secure operation over SSL | |
| 397 | +------------------------- | |
| 398 | + | |
| 399 | +The instructions above set up OpenFlow for operation over a plaintext | |
| 400 | +TCP connection. Production use of OpenFlow should use SSL[*] to | |
| 401 | +ensure confidentiality and authenticity of traffic among switches and | |
| 402 | +controllers. The source must be configured with --enable-ssl=yes to | |
| 403 | +build with SSL support. | |
| 404 | + | |
| 405 | +To use SSL with OpenFlow, you must set up a public-key infrastructure | |
| 406 | +(PKI) including a pair of certificate authorities (CAs), one for | |
| 407 | +controllers and one for switches. If you have an established PKI, | |
| 408 | +OpenFlow can use it directly. Otherwise, refer to "Establishing a | |
| 409 | +Public Key Infrastructure" below. | |
| 410 | + | |
| 411 | +To configure the controller to listen for SSL connections on port 6633 | |
| 412 | +(the default), invoke it as follows: | |
| 413 | + | |
| 414 | + # controller -v pssl: --private-key=PRIVKEY --certificate=CERT \ | |
| 415 | + --ca-cert=CACERT | |
| 416 | + | |
| 417 | +where PRIVKEY is a file containing the controller's private key, CERT | |
| 418 | +is a file containing the controller CA's certificate for the | |
| 419 | +controller's public key, and CACERT is a file containing the root | |
| 420 | +certificate for the switch CA. If, for example, your PKI was created | |
| 421 | +with the instructions below, then the invocation would look like: | |
| 422 | + | |
| 423 | + # controller -v pssl: --private-key=ctl-privkey.pem \ | |
| 424 | + --certificate=ctl-cert.pem --ca-cert=pki/switchca/cacert.pem | |
| 425 | + | |
| 426 | +To configure a switch to connect to a controller running on port 6633 | |
| 427 | +(the default) on host 192.168.1.2 over SSL, invoke ofprotocol as follows: | |
| 428 | + | |
| 429 | + # ofprotocol -v DATAPATH ssl:192.168.1.2 --private-key=PRIVKEY \ | |
| 430 | + --certificate=CERT --ca-cert=CACERT | |
| 431 | + | |
| 432 | +where DATAPATH is the datapath to connect to (e.g. nl:0 or | |
| 433 | +unix:/var/run/dp0.sock), PRIVKEY is a file containing the switch's | |
| 434 | +private key, CERT is a file containing the switch CA's certificate for | |
| 435 | +the switch's public key, and CACERT is a file containing the root | |
| 436 | +certificate for the controller CA. If, for example, your PKI was | |
| 437 | +created with the instructions below, then the invocation would look | |
| 438 | +like: | |
| 439 | + | |
| 440 | + # ofprotocol -v DATAPATH ssl:192.168.1.2 --private-key=sc-privkey.pem \ | |
| 441 | + --certificate=sc-cert.pem --ca-cert=pki/controllerca/cacert.pem | |
| 442 | + | |
| 443 | +[*] To be specific, OpenFlow uses TLS version 1.0 or later (TLSv1), as | |
| 444 | + specified by RFC 2246, which is very similar to SSL version 3.0. | |
| 445 | + TLSv1 was released in January 1999, so all current software and | |
| 446 | + hardware should implement it. | |
| 447 | + | |
| 448 | +Establishing a Public Key Infrastructure | |
| 449 | +---------------------------------------- | |
| 450 | + | |
| 451 | +If you do not have a PKI, the ofp-pki script included with OpenFlow | |
| 452 | +can help. To create an initial PKI structure, invoke it as: | |
| 453 | + % ofp-pki init | |
| 454 | +which will create and populate a new PKI directory. The default | |
| 455 | +location for the PKI directory depends on how the OpenFlow tree was | |
| 456 | +configured (to see the configured default, look for the --dir option | |
| 457 | +description in the output of "ofp-pki --help"). | |
| 458 | + | |
| 459 | +The pki directory contains two important subdirectories. The | |
| 460 | +controllerca subdirectory contains controller certificate authority | |
| 461 | +related files, including the following: | |
| 462 | + | |
| 463 | + - cacert.pem: Root certificate for the controller certificate | |
| 464 | + authority. This file must be provided to ofprotocol with the | |
| 465 | + --ca-cert option to enable it to authenticate valid controllers. | |
| 466 | + | |
| 467 | + - private/cakey.pem: Private signing key for the controller | |
| 468 | + certificate authority. This file must be kept secret. There is | |
| 469 | + no need for switches or controllers to have a copy of it. | |
| 470 | + | |
| 471 | +The switchca subdirectory contains switch certificate authority | |
| 472 | +related files, analogous to those in the controllerca subdirectory: | |
| 473 | + | |
| 474 | + - cacert.pem: Root certificate for the switch certificate | |
| 475 | + authority. This file must be provided to the controller program | |
| 476 | + with the --ca-cert option to enable it to authenticate valid | |
| 477 | + switches. | |
| 478 | + | |
| 479 | + - private/cakey.pem: Private signing key for the switch | |
| 480 | + certificate authority. This file must be kept secret. There is | |
| 481 | + no need for switches or controllers to have a copy of it. | |
| 482 | + | |
| 483 | +After you create the initial structure, you can create keys and | |
| 484 | +certificates for switches and controllers with ofp-pki. To create a | |
| 485 | +controller private key and certificate in files named ctl-privkey.pem | |
| 486 | +and ctl-cert.pem, for example, you could run: | |
| 487 | + % ofp-pki req+sign ctl controller | |
| 488 | +ctl-privkey.pem and ctl-cert.pem would need to be copied to the | |
| 489 | +controller for its use at runtime (they could then be deleted from | |
| 490 | +their original locations). The --private-key and --certificate | |
| 491 | +options of controller, respectively, would point to these files. | |
| 492 | + | |
| 493 | +Analogously, to create a switch private key and certificate in files | |
| 494 | +named sc-privkey.pem and sc-cert.pem, for example, you could run: | |
| 495 | + % ofp-pki req+sign sc switch | |
| 496 | +sc-privkey.pem and sc-cert.pem would need to be copied to the switch | |
| 497 | +for its use at runtime (they could then be deleted from their original | |
| 498 | +locations). The --private-key and --certificate options, | |
| 499 | +respectively, of ofprotocol would point to these files. | |
| 500 | + | |
| 501 | +Bug Reporting | |
| 502 | +------------- | |
| 503 | + | |
| 504 | +Please report problems to: | |
| 505 | + | |
| 506 | +openflow-discuss@openflowswitch.org | |
| 507 | + | |
| 508 | +or post them to our online bug tracking system at: | |
| 509 | + | |
| 510 | +http://www.openflowswitch.org/bugs/openflow | ... | ... |
acinclude.m4
0 → 100755
| 1 | +# -*- autoconf -*- | |
| 2 | + | |
| 3 | +# Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford | |
| 4 | +# Junior University | |
| 5 | +# | |
| 6 | +# We are making the OpenFlow specification and associated documentation | |
| 7 | +# (Software) available for public use and benefit with the expectation | |
| 8 | +# that others will use, modify and enhance the Software and contribute | |
| 9 | +# those enhancements back to the community. However, since we would | |
| 10 | +# like to make the Software available for broadest use, with as few | |
| 11 | +# restrictions as possible permission is hereby granted, free of | |
| 12 | +# charge, to any person obtaining a copy of this Software to deal in | |
| 13 | +# the Software under the copyrights without restriction, including | |
| 14 | +# without limitation the rights to use, copy, modify, merge, publish, | |
| 15 | +# distribute, sublicense, and/or sell copies of the Software, and to | |
| 16 | +# permit persons to whom the Software is furnished to do so, subject to | |
| 17 | +# the following conditions: | |
| 18 | +# | |
| 19 | +# The above copyright notice and this permission notice shall be | |
| 20 | +# included in all copies or substantial portions of the Software. | |
| 21 | +# | |
| 22 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
| 23 | +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
| 24 | +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
| 25 | +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS | |
| 26 | +# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN | |
| 27 | +# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
| 28 | +# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
| 29 | +# SOFTWARE. | |
| 30 | +# | |
| 31 | +# The name and trademarks of copyright holder(s) may NOT be used in | |
| 32 | +# advertising or publicity pertaining to the Software or any | |
| 33 | +# derivatives without specific, written prior permission. | |
| 34 | + | |
| 35 | +dnl OFP_CHECK_LINUX(OPTION, VERSION, VARIABLE, CONDITIONAL) | |
| 36 | +dnl | |
| 37 | +dnl Configure linux kernel source tree | |
| 38 | +AC_DEFUN([OFP_CHECK_LINUX], [ | |
| 39 | + AC_ARG_WITH([$1], | |
| 40 | + [AC_HELP_STRING([--with-$1=/path/to/linux-$2], | |
| 41 | + [Specify the linux $2 kernel module build envrionment and sources])], | |
| 42 | + [path="$withval"], [path=])dnl | |
| 43 | + if test -n "$path"; then | |
| 44 | + path=`eval echo "$path"` | |
| 45 | + | |
| 46 | + AC_MSG_CHECKING([for $path directory]) | |
| 47 | + if test -d "$path" && test -d "$path/build" ; then | |
| 48 | + AC_MSG_RESULT([yes]) | |
| 49 | + if test -d "$path/source" ; then | |
| 50 | + $3=$path/build | |
| 51 | + $4=$path/source | |
| 52 | + else | |
| 53 | + $3=$path/build | |
| 54 | + $4=$path/build | |
| 55 | + fi | |
| 56 | + AC_SUBST($3) | |
| 57 | + AC_SUBST($4) | |
| 58 | + else | |
| 59 | + AC_MSG_RESULT([no]) | |
| 60 | + AC_ERROR([source dir $path doesn't exist]) | |
| 61 | + fi | |
| 62 | + | |
| 63 | + AC_MSG_CHECKING([for $path kernel version]) | |
| 64 | + patchlevel=`sed -n 's/^PATCHLEVEL = //p' "$KBLD26/Makefile"` | |
| 65 | + sublevel=`sed -n 's/^SUBLEVEL = //p' "$KBLD26/Makefile"` | |
| 66 | + AC_MSG_RESULT([2.$patchlevel.$sublevel]) | |
| 67 | + if test "2.$patchlevel" != '$2'; then | |
| 68 | + AC_ERROR([Linux kernel source in $path is not version $2]) | |
| 69 | + fi | |
| 70 | + if ! test -e $KBLD26/include/linux/version.h || \ | |
| 71 | + ! test -e $KBLD26/include/linux/autoconf.h; then | |
| 72 | + AC_MSG_ERROR([Linux kernel source in $path is not configured]) | |
| 73 | + fi | |
| 74 | + m4_if($2, [2.6], [OFP_CHECK_LINUX26_COMPAT]) | |
| 75 | + fi | |
| 76 | + AM_CONDITIONAL($5, test -n "$path") | |
| 77 | +]) | |
| 78 | + | |
| 79 | +dnl OFP_GREP_IFELSE(FILE, REGEX, IF-MATCH, IF-NO-MATCH) | |
| 80 | +dnl | |
| 81 | +dnl Greps FILE for REGEX. If it matches, runs IF-MATCH, otherwise IF-NO-MATCH. | |
| 82 | +AC_DEFUN([OFP_GREP_IFELSE], [ | |
| 83 | + AC_MSG_CHECKING([whether $2 matches in $1]) | |
| 84 | + grep '$2' $1 >/dev/null 2>&1 | |
| 85 | + status=$? | |
| 86 | + case $status in | |
| 87 | + 0) | |
| 88 | + AC_MSG_RESULT([yes]) | |
| 89 | + $3 | |
| 90 | + ;; | |
| 91 | + 1) | |
| 92 | + AC_MSG_RESULT([no]) | |
| 93 | + $4 | |
| 94 | + ;; | |
| 95 | + *) | |
| 96 | + AC_MSG_ERROR([grep exited with status $status]) | |
| 97 | + ;; | |
| 98 | + esac | |
| 99 | +]) | |
| 100 | + | |
| 101 | +dnl OFP_DEFINE(NAME) | |
| 102 | +dnl | |
| 103 | +dnl Defines NAME to 1 in kcompat.h. | |
| 104 | +AC_DEFUN([OFP_DEFINE], [ | |
| 105 | + echo '#define $1 1' >> datapath/linux-2.6/kcompat.h.new | |
| 106 | +]) | |
| 107 | + | |
| 108 | +AC_DEFUN([OFP_CHECK_VETH], [ | |
| 109 | + AC_MSG_CHECKING([whether to build veth module]) | |
| 110 | + if test "$sublevel" = 18; then | |
| 111 | + AC_MSG_RESULT([yes]) | |
| 112 | + AC_SUBST([BUILD_VETH], 1) | |
| 113 | + else | |
| 114 | + AC_MSG_RESULT([no]) | |
| 115 | + fi | |
| 116 | +]) | |
| 117 | + | |
| 118 | +dnl OFP_CHECK_LINUX26_COMPAT | |
| 119 | +dnl | |
| 120 | +dnl Runs various Autoconf checks on the Linux 2.6 kernel source in | |
| 121 | +dnl the directory in $KSRC26. | |
| 122 | +AC_DEFUN([OFP_CHECK_LINUX26_COMPAT], [ | |
| 123 | + rm -f datapath/linux-2.6/kcompat.h.new | |
| 124 | + mkdir -p datapath/linux-2.6 | |
| 125 | + : > datapath/linux-2.6/kcompat.h.new | |
| 126 | + OFP_GREP_IFELSE([$KSRC26/include/linux/skbuff.h], [skb_transport_header], | |
| 127 | + [OFP_DEFINE([HAVE_SKBUFF_HEADER_HELPERS])]) | |
| 128 | + OFP_GREP_IFELSE([$KSRC26/include/linux/skbuff.h], [raw], | |
| 129 | + [OFP_DEFINE([HAVE_MAC_RAW])]) | |
| 130 | + OFP_GREP_IFELSE([$KSRC26/include/linux/skbuff.h], | |
| 131 | + [skb_copy_from_linear_data_offset], | |
| 132 | + [OFP_DEFINE([HAVE_SKB_COPY_FROM_LINEAR_DATA_OFFSET])]) | |
| 133 | + OFP_GREP_IFELSE([$KSRC26/include/net/netlink.h], [NLA_NUL_STRING], | |
| 134 | + [OFP_DEFINE([HAVE_NLA_NUL_STRING])]) | |
| 135 | + OFP_CHECK_VETH | |
| 136 | + if cmp -s datapath/linux-2.6/kcompat.h.new \ | |
| 137 | + datapath/linux-2.6/kcompat.h >/dev/null 2>&1; then | |
| 138 | + rm datapath/linux-2.6/kcompat.h.new | |
| 139 | + else | |
| 140 | + mv datapath/linux-2.6/kcompat.h.new datapath/linux-2.6/kcompat.h | |
| 141 | + fi | |
| 142 | +]) | |
| 143 | + | |
| 144 | +dnl Checks for --enable-hw-tables and substitutes HW_TABLES to any | |
| 145 | +dnl requested hardware table modules. | |
| 146 | +AC_DEFUN([OFP_CHECK_HWTABLES], | |
| 147 | + [AC_ARG_ENABLE( | |
| 148 | + [hw-tables], | |
| 149 | + [AC_HELP_STRING([--enable-hw-tables=MODULE...], | |
| 150 | + [Configure and build the specified externally supplied | |
| 151 | + hardware table support modules])]) | |
| 152 | + case "${enable_hw_tables}" in # ( | |
| 153 | + yes) | |
| 154 | + AC_MSG_ERROR([--enable-hw-tables has a required argument]) | |
| 155 | + ;; # ( | |
| 156 | + ''|no) | |
| 157 | + hw_tables= | |
| 158 | + ;; # ( | |
| 159 | + *) | |
| 160 | + hw_tables=`echo "$enable_hw_tables" | sed 's/,/ /g'` | |
| 161 | + ;; | |
| 162 | + esac | |
| 163 | + for d in $hw_tables; do | |
| 164 | + mk=datapath/hwtable_$d/Modules.mk | |
| 165 | + if test ! -e $srcdir/$mk; then | |
| 166 | + AC_MSG_ERROR([--enable-hw-tables=$d specified but $mk is missing]) | |
| 167 | + fi | |
| 168 | + HW_TABLES="$HW_TABLES \$(top_srcdir)/$mk" | |
| 169 | + done | |
| 170 | + AC_SUBST(HW_TABLES)]) | |
| 171 | + | |
| 172 | +dnl Checks for --enable-hw-lib and substitutes BUILD_HW_LIBS and plat name | |
| 173 | +AC_DEFUN([OFP_CHECK_HWLIBS], | |
| 174 | + [AC_ARG_ENABLE( | |
| 175 | + [hw-lib], | |
| 176 | + [AC_HELP_STRING([--enable-hw-lib=PLATFORM], | |
| 177 | + [Configure and build the specified externally supplied | |
| 178 | + hardware library: lb4g, t2ref, scorref or nf2])]) | |
| 179 | + case "${enable_hw_lib}" in # ( | |
| 180 | + yes) | |
| 181 | + AC_MSG_ERROR([--enable-hw-lib has a required argument]) | |
| 182 | + ;; # ( | |
| 183 | + ''|no) | |
| 184 | + hw_lib= | |
| 185 | + NF2=no | |
| 186 | + LB4G=no | |
| 187 | + T2REF=no | |
| 188 | + SCORREF=no | |
| 189 | + BUILD_HW_LIBS=no | |
| 190 | + ;; # ( | |
| 191 | + nf2) | |
| 192 | + NF2=yes | |
| 193 | + LB4G=no | |
| 194 | + T2REF=no | |
| 195 | + SCORREF=no | |
| 196 | + hw_lib=$enable_hw_lib | |
| 197 | + BUILD_HW_LIBS=yes | |
| 198 | + ;; # ( | |
| 199 | + lb4g) | |
| 200 | + NF2=no | |
| 201 | + LB4G=yes | |
| 202 | + T2REF=no | |
| 203 | + SCORREF=no | |
| 204 | + hw_lib=$enable_hw_lib | |
| 205 | + BUILD_HW_LIBS=yes | |
| 206 | + ;; # ( | |
| 207 | + t2ref) | |
| 208 | + NF2=no | |
| 209 | + LB4G=no | |
| 210 | + T2REF=yes | |
| 211 | + SCORREF=no | |
| 212 | + hw_lib=$enable_hw_lib | |
| 213 | + BUILD_HW_LIBS=yes | |
| 214 | + ;; # ( | |
| 215 | + scorref) | |
| 216 | + NF2=no | |
| 217 | + LB4G=no | |
| 218 | + SCORREF=yes | |
| 219 | + T2REF=no | |
| 220 | + hw_lib=$enable_hw_lib | |
| 221 | + BUILD_HW_LIBS=yes | |
| 222 | + ;; # ( | |
| 223 | + *) | |
| 224 | + AC_MSG_ERROR([--enable-hw-lib: Unknown platform: ${enable_hw_lib}]) | |
| 225 | + BUILD_HW_LIBS=no | |
| 226 | + ;; | |
| 227 | + esac | |
| 228 | + if test $BUILD_HW_LIBS = yes; then | |
| 229 | + if test -e "$srcdir/hw-lib/automake.mk"; then | |
| 230 | + : | |
| 231 | + else | |
| 232 | + AC_MSG_ERROR([cannot configure HW libraries without "hw-lib" directory]) | |
| 233 | + fi | |
| 234 | + AC_DEFINE([BUILD_HW_LIBS], [1], | |
| 235 | + [Whether the OpenFlow hardware libraries are available]) | |
| 236 | + fi | |
| 237 | + if test $NF2 = yes; then | |
| 238 | + AC_DEFINE([NF2], [1], | |
| 239 | + [Support NetFPGA platform]) | |
| 240 | + fi | |
| 241 | + if test $LB4G = yes; then | |
| 242 | + AC_DEFINE([LB4G], [1], | |
| 243 | + [Support Stanford-LB4G platform]) | |
| 244 | + fi | |
| 245 | + if test $T2REF = yes; then | |
| 246 | + AC_DEFINE([T2REF], [1], | |
| 247 | + [Support Broadcom 56634 reference platform]) | |
| 248 | + fi | |
| 249 | + if test $SCORREF = yes; then | |
| 250 | + AC_DEFINE([SCORREF], [1], | |
| 251 | + [Support Broadcom 56820 reference platform]) | |
| 252 | + fi | |
| 253 | + AM_CONDITIONAL([NF2], [test $NF2 = yes]) | |
| 254 | + AM_CONDITIONAL([LB4G], [test $LB4G = yes]) | |
| 255 | + AM_CONDITIONAL([T2REF], [test $T2REF = yes]) | |
| 256 | + AM_CONDITIONAL([SCORREF], [test $SCORREF = yes]) | |
| 257 | + AM_CONDITIONAL([BUILD_HW_LIBS], [test $BUILD_HW_LIBS = yes]) | |
| 258 | + AC_SUBST(HW_LIB)]) | |
| 259 | + | |
| 260 | +dnl Checks for net/if_packet.h. | |
| 261 | +AC_DEFUN([OFP_CHECK_IF_PACKET], | |
| 262 | + [AC_CHECK_HEADER([net/if_packet.h], | |
| 263 | + [HAVE_IF_PACKET=yes], | |
| 264 | + [HAVE_IF_PACKET=no]) | |
| 265 | + AM_CONDITIONAL([HAVE_IF_PACKET], [test "$HAVE_IF_PACKET" = yes]) | |
| 266 | + if test "$HAVE_IF_PACKET" = yes; then | |
| 267 | + AC_DEFINE([HAVE_IF_PACKET], [1], | |
| 268 | + [Define to 1 if net/if_packet.h is available.]) | |
| 269 | + fi]) | |
| 270 | + | |
| 271 | +dnl Checks for dpkg-buildpackage. If this is available then we check | |
| 272 | +dnl that the Debian packaging is functional at "make distcheck" time. | |
| 273 | +AC_DEFUN([OFP_CHECK_DPKG_BUILDPACKAGE], | |
| 274 | + [AC_CHECK_PROG([HAVE_DPKG_BUILDPACKAGE], [dpkg-buildpackage], [yes], [no]) | |
| 275 | + AM_CONDITIONAL([HAVE_DPKG_BUILDPACKAGE], | |
| 276 | + [test $HAVE_DPKG_BUILDPACKAGE = yes])]) | |
| 277 | + | |
| 278 | +dnl ---------------------------------------------------------------------- | |
| 279 | +dnl These macros are from GNU PSPP, with the following original license: | |
| 280 | +dnl Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. | |
| 281 | +dnl This file is free software; the Free Software Foundation | |
| 282 | +dnl gives unlimited permission to copy and/or distribute it, | |
| 283 | +dnl with or without modifications, as long as this notice is preserved. | |
| 284 | + | |
| 285 | +dnl OFP_CHECK_CC_OPTION([OPTION], [ACTION-IF-ACCEPTED], [ACTION-IF-REJECTED]) | |
| 286 | +dnl Check whether the given C compiler OPTION is accepted. | |
| 287 | +dnl If so, execute ACTION-IF-ACCEPTED, otherwise ACTION-IF-REJECTED. | |
| 288 | +AC_DEFUN([OFP_CHECK_CC_OPTION], | |
| 289 | +[ | |
| 290 | + m4_define([ofp_cv_name], [ofp_cv_[]m4_translit([$1], [-], [_])])dnl | |
| 291 | + AC_CACHE_CHECK([whether $CC accepts $1], [ofp_cv_name], | |
| 292 | + [ofp_save_CFLAGS="$CFLAGS" | |
| 293 | + CFLAGS="$CFLAGS $1" | |
| 294 | + AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,)], [ofp_cv_name[]=yes], [ofp_cv_name[]=no]) | |
| 295 | + CFLAGS="$ofp_save_CFLAGS"]) | |
| 296 | + if test $ofp_cv_name = yes; then | |
| 297 | + m4_if([$2], [], [;], [$2]) | |
| 298 | + else | |
| 299 | + m4_if([$3], [], [:], [$3]) | |
| 300 | + fi | |
| 301 | +]) | |
| 302 | + | |
| 303 | +dnl OFP_ENABLE_OPTION([OPTION]) | |
| 304 | +dnl Check whether the given C compiler OPTION is accepted. | |
| 305 | +dnl If so, add it to CFLAGS. | |
| 306 | +dnl Example: OFP_ENABLE_OPTION([-Wdeclaration-after-statement]) | |
| 307 | +AC_DEFUN([OFP_ENABLE_OPTION], | |
| 308 | + [OFP_CHECK_CC_OPTION([$1], [CFLAGS="$CFLAGS $1"])]) | |
| 309 | +dnl ---------------------------------------------------------------------- | ... | ... |
aclocal.m4
0 → 100755
| 1 | +# generated automatically by aclocal 1.14.1 -*- Autoconf -*- | |
| 2 | + | |
| 3 | +# Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
| 4 | + | |
| 5 | +# This file is free software; the Free Software Foundation | |
| 6 | +# gives unlimited permission to copy and/or distribute it, | |
| 7 | +# with or without modifications, as long as this notice is preserved. | |
| 8 | + | |
| 9 | +# This program is distributed in the hope that it will be useful, | |
| 10 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
| 11 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
| 12 | +# PARTICULAR PURPOSE. | |
| 13 | + | |
| 14 | +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
| 15 | +m4_ifndef([AC_AUTOCONF_VERSION], | |
| 16 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
| 17 | +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, | |
| 18 | +[m4_warning([this file was generated for autoconf 2.69. | |
| 19 | +You have another version of autoconf. It may work, but is not guaranteed to. | |
| 20 | +If you have problems, you may need to regenerate the build system entirely. | |
| 21 | +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) | |
| 22 | + | |
| 23 | +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | |
| 24 | +# serial 1 (pkg-config-0.24) | |
| 25 | +# | |
| 26 | +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | |
| 27 | +# | |
| 28 | +# This program is free software; you can redistribute it and/or modify | |
| 29 | +# it under the terms of the GNU General Public License as published by | |
| 30 | +# the Free Software Foundation; either version 2 of the License, or | |
| 31 | +# (at your option) any later version. | |
| 32 | +# | |
| 33 | +# This program is distributed in the hope that it will be useful, but | |
| 34 | +# WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 35 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 36 | +# General Public License for more details. | |
| 37 | +# | |
| 38 | +# You should have received a copy of the GNU General Public License | |
| 39 | +# along with this program; if not, write to the Free Software | |
| 40 | +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
| 41 | +# | |
| 42 | +# As a special exception to the GNU General Public License, if you | |
| 43 | +# distribute this file as part of a program that contains a | |
| 44 | +# configuration script generated by Autoconf, you may include it under | |
| 45 | +# the same distribution terms that you use for the rest of that program. | |
| 46 | + | |
| 47 | +# PKG_PROG_PKG_CONFIG([MIN-VERSION]) | |
| 48 | +# ---------------------------------- | |
| 49 | +AC_DEFUN([PKG_PROG_PKG_CONFIG], | |
| 50 | +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) | |
| 51 | +m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) | |
| 52 | +m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) | |
| 53 | +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) | |
| 54 | +AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) | |
| 55 | +AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) | |
| 56 | + | |
| 57 | +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
| 58 | + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) | |
| 59 | +fi | |
| 60 | +if test -n "$PKG_CONFIG"; then | |
| 61 | + _pkg_min_version=m4_default([$1], [0.9.0]) | |
| 62 | + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) | |
| 63 | + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
| 64 | + AC_MSG_RESULT([yes]) | |
| 65 | + else | |
| 66 | + AC_MSG_RESULT([no]) | |
| 67 | + PKG_CONFIG="" | |
| 68 | + fi | |
| 69 | +fi[]dnl | |
| 70 | +])# PKG_PROG_PKG_CONFIG | |
| 71 | + | |
| 72 | +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | |
| 73 | +# | |
| 74 | +# Check to see whether a particular set of modules exists. Similar | |
| 75 | +# to PKG_CHECK_MODULES(), but does not set variables or print errors. | |
| 76 | +# | |
| 77 | +# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
| 78 | +# only at the first occurence in configure.ac, so if the first place | |
| 79 | +# it's called might be skipped (such as if it is within an "if", you | |
| 80 | +# have to call PKG_CHECK_EXISTS manually | |
| 81 | +# -------------------------------------------------------------- | |
| 82 | +AC_DEFUN([PKG_CHECK_EXISTS], | |
| 83 | +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
| 84 | +if test -n "$PKG_CONFIG" && \ | |
| 85 | + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then | |
| 86 | + m4_default([$2], [:]) | |
| 87 | +m4_ifvaln([$3], [else | |
| 88 | + $3])dnl | |
| 89 | +fi]) | |
| 90 | + | |
| 91 | +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) | |
| 92 | +# --------------------------------------------- | |
| 93 | +m4_define([_PKG_CONFIG], | |
| 94 | +[if test -n "$$1"; then | |
| 95 | + pkg_cv_[]$1="$$1" | |
| 96 | + elif test -n "$PKG_CONFIG"; then | |
| 97 | + PKG_CHECK_EXISTS([$3], | |
| 98 | + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` | |
| 99 | + test "x$?" != "x0" && pkg_failed=yes ], | |
| 100 | + [pkg_failed=yes]) | |
| 101 | + else | |
| 102 | + pkg_failed=untried | |
| 103 | +fi[]dnl | |
| 104 | +])# _PKG_CONFIG | |
| 105 | + | |
| 106 | +# _PKG_SHORT_ERRORS_SUPPORTED | |
| 107 | +# ----------------------------- | |
| 108 | +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], | |
| 109 | +[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
| 110 | +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
| 111 | + _pkg_short_errors_supported=yes | |
| 112 | +else | |
| 113 | + _pkg_short_errors_supported=no | |
| 114 | +fi[]dnl | |
| 115 | +])# _PKG_SHORT_ERRORS_SUPPORTED | |
| 116 | + | |
| 117 | + | |
| 118 | +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | |
| 119 | +# [ACTION-IF-NOT-FOUND]) | |
| 120 | +# | |
| 121 | +# | |
| 122 | +# Note that if there is a possibility the first call to | |
| 123 | +# PKG_CHECK_MODULES might not happen, you should be sure to include an | |
| 124 | +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac | |
| 125 | +# | |
| 126 | +# | |
| 127 | +# -------------------------------------------------------------- | |
| 128 | +AC_DEFUN([PKG_CHECK_MODULES], | |
| 129 | +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
| 130 | +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl | |
| 131 | +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl | |
| 132 | + | |
| 133 | +pkg_failed=no | |
| 134 | +AC_MSG_CHECKING([for $1]) | |
| 135 | + | |
| 136 | +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) | |
| 137 | +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) | |
| 138 | + | |
| 139 | +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS | |
| 140 | +and $1[]_LIBS to avoid the need to call pkg-config. | |
| 141 | +See the pkg-config man page for more details.]) | |
| 142 | + | |
| 143 | +if test $pkg_failed = yes; then | |
| 144 | + AC_MSG_RESULT([no]) | |
| 145 | + _PKG_SHORT_ERRORS_SUPPORTED | |
| 146 | + if test $_pkg_short_errors_supported = yes; then | |
| 147 | + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` | |
| 148 | + else | |
| 149 | + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` | |
| 150 | + fi | |
| 151 | + # Put the nasty error message in config.log where it belongs | |
| 152 | + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD | |
| 153 | + | |
| 154 | + m4_default([$4], [AC_MSG_ERROR( | |
| 155 | +[Package requirements ($2) were not met: | |
| 156 | + | |
| 157 | +$$1_PKG_ERRORS | |
| 158 | + | |
| 159 | +Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
| 160 | +installed software in a non-standard prefix. | |
| 161 | + | |
| 162 | +_PKG_TEXT])[]dnl | |
| 163 | + ]) | |
| 164 | +elif test $pkg_failed = untried; then | |
| 165 | + AC_MSG_RESULT([no]) | |
| 166 | + m4_default([$4], [AC_MSG_FAILURE( | |
| 167 | +[The pkg-config script could not be found or is too old. Make sure it | |
| 168 | +is in your PATH or set the PKG_CONFIG environment variable to the full | |
| 169 | +path to pkg-config. | |
| 170 | + | |
| 171 | +_PKG_TEXT | |
| 172 | + | |
| 173 | +To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl | |
| 174 | + ]) | |
| 175 | +else | |
| 176 | + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS | |
| 177 | + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS | |
| 178 | + AC_MSG_RESULT([yes]) | |
| 179 | + $3 | |
| 180 | +fi[]dnl | |
| 181 | +])# PKG_CHECK_MODULES | |
| 182 | + | |
| 183 | +# Copyright (C) 2002-2013 Free Software Foundation, Inc. | |
| 184 | +# | |
| 185 | +# This file is free software; the Free Software Foundation | |
| 186 | +# gives unlimited permission to copy and/or distribute it, | |
| 187 | +# with or without modifications, as long as this notice is preserved. | |
| 188 | + | |
| 189 | +# AM_AUTOMAKE_VERSION(VERSION) | |
| 190 | +# ---------------------------- | |
| 191 | +# Automake X.Y traces this macro to ensure aclocal.m4 has been | |
| 192 | +# generated from the m4 files accompanying Automake X.Y. | |
| 193 | +# (This private macro should not be called outside this file.) | |
| 194 | +AC_DEFUN([AM_AUTOMAKE_VERSION], | |
| 195 | +[am__api_version='1.14' | |
| 196 | +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
| 197 | +dnl require some minimum version. Point them to the right macro. | |
| 198 | +m4_if([$1], [1.14.1], [], | |
| 199 | + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
| 200 | +]) | |
| 201 | + | |
| 202 | +# _AM_AUTOCONF_VERSION(VERSION) | |
| 203 | +# ----------------------------- | |
| 204 | +# aclocal traces this macro to find the Autoconf version. | |
| 205 | +# This is a private macro too. Using m4_define simplifies | |
| 206 | +# the logic in aclocal, which can simply ignore this definition. | |
| 207 | +m4_define([_AM_AUTOCONF_VERSION], []) | |
| 208 | + | |
| 209 | +# AM_SET_CURRENT_AUTOMAKE_VERSION | |
| 210 | +# ------------------------------- | |
| 211 | +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
| 212 | +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
| 213 | +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
| 214 | +[AM_AUTOMAKE_VERSION([1.14.1])dnl | |
| 215 | +m4_ifndef([AC_AUTOCONF_VERSION], | |
| 216 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
| 217 | +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
| 218 | + | |
| 219 | +# AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
| 220 | + | |
| 221 | +# Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
| 222 | +# | |
| 223 | +# This file is free software; the Free Software Foundation | |
| 224 | +# gives unlimited permission to copy and/or distribute it, | |
| 225 | +# with or without modifications, as long as this notice is preserved. | |
| 226 | + | |
| 227 | +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
| 228 | +# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to | |
| 229 | +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. | |
| 230 | +# | |
| 231 | +# Of course, Automake must honor this variable whenever it calls a | |
| 232 | +# tool from the auxiliary directory. The problem is that $srcdir (and | |
| 233 | +# therefore $ac_aux_dir as well) can be either absolute or relative, | |
| 234 | +# depending on how configure is run. This is pretty annoying, since | |
| 235 | +# it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
| 236 | +# source directory, any form will work fine, but in subdirectories a | |
| 237 | +# relative path needs to be adjusted first. | |
| 238 | +# | |
| 239 | +# $ac_aux_dir/missing | |
| 240 | +# fails when called from a subdirectory if $ac_aux_dir is relative | |
| 241 | +# $top_srcdir/$ac_aux_dir/missing | |
| 242 | +# fails if $ac_aux_dir is absolute, | |
| 243 | +# fails when called from a subdirectory in a VPATH build with | |
| 244 | +# a relative $ac_aux_dir | |
| 245 | +# | |
| 246 | +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
| 247 | +# are both prefixed by $srcdir. In an in-source build this is usually | |
| 248 | +# harmless because $srcdir is '.', but things will broke when you | |
| 249 | +# start a VPATH build or use an absolute $srcdir. | |
| 250 | +# | |
| 251 | +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
| 252 | +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
| 253 | +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
| 254 | +# and then we would define $MISSING as | |
| 255 | +# MISSING="\${SHELL} $am_aux_dir/missing" | |
| 256 | +# This will work as long as MISSING is not called from configure, because | |
| 257 | +# unfortunately $(top_srcdir) has no meaning in configure. | |
| 258 | +# However there are other variables, like CC, which are often used in | |
| 259 | +# configure, and could therefore not use this "fixed" $ac_aux_dir. | |
| 260 | +# | |
| 261 | +# Another solution, used here, is to always expand $ac_aux_dir to an | |
| 262 | +# absolute PATH. The drawback is that using absolute paths prevent a | |
| 263 | +# configured tree to be moved without reconfiguration. | |
| 264 | + | |
| 265 | +AC_DEFUN([AM_AUX_DIR_EXPAND], | |
| 266 | +[dnl Rely on autoconf to set up CDPATH properly. | |
| 267 | +AC_PREREQ([2.50])dnl | |
| 268 | +# expand $ac_aux_dir to an absolute path | |
| 269 | +am_aux_dir=`cd $ac_aux_dir && pwd` | |
| 270 | +]) | |
| 271 | + | |
| 272 | +# AM_CONDITIONAL -*- Autoconf -*- | |
| 273 | + | |
| 274 | +# Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
| 275 | +# | |
| 276 | +# This file is free software; the Free Software Foundation | |
| 277 | +# gives unlimited permission to copy and/or distribute it, | |
| 278 | +# with or without modifications, as long as this notice is preserved. | |
| 279 | + | |
| 280 | +# AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
| 281 | +# ------------------------------------- | |
| 282 | +# Define a conditional. | |
| 283 | +AC_DEFUN([AM_CONDITIONAL], | |
| 284 | +[AC_PREREQ([2.52])dnl | |
| 285 | + m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
| 286 | + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
| 287 | +AC_SUBST([$1_TRUE])dnl | |
| 288 | +AC_SUBST([$1_FALSE])dnl | |
| 289 | +_AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
| 290 | +_AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
| 291 | +m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
| 292 | +if $2; then | |
| 293 | + $1_TRUE= | |
| 294 | + $1_FALSE='#' | |
| 295 | +else | |
| 296 | + $1_TRUE='#' | |
| 297 | + $1_FALSE= | |
| 298 | +fi | |
| 299 | +AC_CONFIG_COMMANDS_PRE( | |
| 300 | +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
| 301 | + AC_MSG_ERROR([[conditional "$1" was never defined. | |
| 302 | +Usually this means the macro was only invoked conditionally.]]) | |
| 303 | +fi])]) | |
| 304 | + | |
| 305 | +# Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
| 306 | +# | |
| 307 | +# This file is free software; the Free Software Foundation | |
| 308 | +# gives unlimited permission to copy and/or distribute it, | |
| 309 | +# with or without modifications, as long as this notice is preserved. | |
| 310 | + | |
| 311 | + | |
| 312 | +# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be | |
| 313 | +# written in clear, in which case automake, when reading aclocal.m4, | |
| 314 | +# will think it sees a *use*, and therefore will trigger all it's | |
| 315 | +# C support machinery. Also note that it means that autoscan, seeing | |
| 316 | +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
| 317 | + | |
| 318 | + | |
| 319 | +# _AM_DEPENDENCIES(NAME) | |
| 320 | +# ---------------------- | |
| 321 | +# See how the compiler implements dependency checking. | |
| 322 | +# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". | |
| 323 | +# We try a few techniques and use that to set a single cache variable. | |
| 324 | +# | |
| 325 | +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
| 326 | +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
| 327 | +# dependency, and given that the user is not expected to run this macro, | |
| 328 | +# just rely on AC_PROG_CC. | |
| 329 | +AC_DEFUN([_AM_DEPENDENCIES], | |
| 330 | +[AC_REQUIRE([AM_SET_DEPDIR])dnl | |
| 331 | +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
| 332 | +AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
| 333 | +AC_REQUIRE([AM_DEP_TRACK])dnl | |
| 334 | + | |
| 335 | +m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], | |
| 336 | + [$1], [CXX], [depcc="$CXX" am_compiler_list=], | |
| 337 | + [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
| 338 | + [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], | |
| 339 | + [$1], [UPC], [depcc="$UPC" am_compiler_list=], | |
| 340 | + [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
| 341 | + [depcc="$$1" am_compiler_list=]) | |
| 342 | + | |
| 343 | +AC_CACHE_CHECK([dependency style of $depcc], | |
| 344 | + [am_cv_$1_dependencies_compiler_type], | |
| 345 | +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
| 346 | + # We make a subdir and do the tests there. Otherwise we can end up | |
| 347 | + # making bogus files that we don't know about and never remove. For | |
| 348 | + # instance it was reported that on HP-UX the gcc test will end up | |
| 349 | + # making a dummy file named 'D' -- because '-MD' means "put the output | |
| 350 | + # in D". | |
| 351 | + rm -rf conftest.dir | |
| 352 | + mkdir conftest.dir | |
| 353 | + # Copy depcomp to subdir because otherwise we won't find it if we're | |
| 354 | + # using a relative directory. | |
| 355 | + cp "$am_depcomp" conftest.dir | |
| 356 | + cd conftest.dir | |
| 357 | + # We will build objects and dependencies in a subdirectory because | |
| 358 | + # it helps to detect inapplicable dependency modes. For instance | |
| 359 | + # both Tru64's cc and ICC support -MD to output dependencies as a | |
| 360 | + # side effect of compilation, but ICC will put the dependencies in | |
| 361 | + # the current directory while Tru64 will put them in the object | |
| 362 | + # directory. | |
| 363 | + mkdir sub | |
| 364 | + | |
| 365 | + am_cv_$1_dependencies_compiler_type=none | |
| 366 | + if test "$am_compiler_list" = ""; then | |
| 367 | + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
| 368 | + fi | |
| 369 | + am__universal=false | |
| 370 | + m4_case([$1], [CC], | |
| 371 | + [case " $depcc " in #( | |
| 372 | + *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
| 373 | + esac], | |
| 374 | + [CXX], | |
| 375 | + [case " $depcc " in #( | |
| 376 | + *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
| 377 | + esac]) | |
| 378 | + | |
| 379 | + for depmode in $am_compiler_list; do | |
| 380 | + # Setup a source with many dependencies, because some compilers | |
| 381 | + # like to wrap large dependency lists on column 80 (with \), and | |
| 382 | + # we should not choose a depcomp mode which is confused by this. | |
| 383 | + # | |
| 384 | + # We need to recreate these files for each test, as the compiler may | |
| 385 | + # overwrite some of them when testing with obscure command lines. | |
| 386 | + # This happens at least with the AIX C compiler. | |
| 387 | + : > sub/conftest.c | |
| 388 | + for i in 1 2 3 4 5 6; do | |
| 389 | + echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
| 390 | + # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
| 391 | + # Solaris 10 /bin/sh. | |
| 392 | + echo '/* dummy */' > sub/conftst$i.h | |
| 393 | + done | |
| 394 | + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
| 395 | + | |
| 396 | + # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
| 397 | + # mode. It turns out that the SunPro C++ compiler does not properly | |
| 398 | + # handle '-M -o', and we need to detect this. Also, some Intel | |
| 399 | + # versions had trouble with output in subdirs. | |
| 400 | + am__obj=sub/conftest.${OBJEXT-o} | |
| 401 | + am__minus_obj="-o $am__obj" | |
| 402 | + case $depmode in | |
| 403 | + gcc) | |
| 404 | + # This depmode causes a compiler race in universal mode. | |
| 405 | + test "$am__universal" = false || continue | |
| 406 | + ;; | |
| 407 | + nosideeffect) | |
| 408 | + # After this tag, mechanisms are not by side-effect, so they'll | |
| 409 | + # only be used when explicitly requested. | |
| 410 | + if test "x$enable_dependency_tracking" = xyes; then | |
| 411 | + continue | |
| 412 | + else | |
| 413 | + break | |
| 414 | + fi | |
| 415 | + ;; | |
| 416 | + msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
| 417 | + # This compiler won't grok '-c -o', but also, the minuso test has | |
| 418 | + # not run yet. These depmodes are late enough in the game, and | |
| 419 | + # so weak that their functioning should not be impacted. | |
| 420 | + am__obj=conftest.${OBJEXT-o} | |
| 421 | + am__minus_obj= | |
| 422 | + ;; | |
| 423 | + none) break ;; | |
| 424 | + esac | |
| 425 | + if depmode=$depmode \ | |
| 426 | + source=sub/conftest.c object=$am__obj \ | |
| 427 | + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
| 428 | + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
| 429 | + >/dev/null 2>conftest.err && | |
| 430 | + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
| 431 | + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
| 432 | + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
| 433 | + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
| 434 | + # icc doesn't choke on unknown options, it will just issue warnings | |
| 435 | + # or remarks (even with -Werror). So we grep stderr for any message | |
| 436 | + # that says an option was ignored or not supported. | |
| 437 | + # When given -MP, icc 7.0 and 7.1 complain thusly: | |
| 438 | + # icc: Command line warning: ignoring option '-M'; no argument required | |
| 439 | + # The diagnosis changed in icc 8.0: | |
| 440 | + # icc: Command line remark: option '-MP' not supported | |
| 441 | + if (grep 'ignoring option' conftest.err || | |
| 442 | + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
| 443 | + am_cv_$1_dependencies_compiler_type=$depmode | |
| 444 | + break | |
| 445 | + fi | |
| 446 | + fi | |
| 447 | + done | |
| 448 | + | |
| 449 | + cd .. | |
| 450 | + rm -rf conftest.dir | |
| 451 | +else | |
| 452 | + am_cv_$1_dependencies_compiler_type=none | |
| 453 | +fi | |
| 454 | +]) | |
| 455 | +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
| 456 | +AM_CONDITIONAL([am__fastdep$1], [ | |
| 457 | + test "x$enable_dependency_tracking" != xno \ | |
| 458 | + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
| 459 | +]) | |
| 460 | + | |
| 461 | + | |
| 462 | +# AM_SET_DEPDIR | |
| 463 | +# ------------- | |
| 464 | +# Choose a directory name for dependency files. | |
| 465 | +# This macro is AC_REQUIREd in _AM_DEPENDENCIES. | |
| 466 | +AC_DEFUN([AM_SET_DEPDIR], | |
| 467 | +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
| 468 | +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
| 469 | +]) | |
| 470 | + | |
| 471 | + | |
| 472 | +# AM_DEP_TRACK | |
| 473 | +# ------------ | |
| 474 | +AC_DEFUN([AM_DEP_TRACK], | |
| 475 | +[AC_ARG_ENABLE([dependency-tracking], [dnl | |
| 476 | +AS_HELP_STRING( | |
| 477 | + [--enable-dependency-tracking], | |
| 478 | + [do not reject slow dependency extractors]) | |
| 479 | +AS_HELP_STRING( | |
| 480 | + [--disable-dependency-tracking], | |
| 481 | + [speeds up one-time build])]) | |
| 482 | +if test "x$enable_dependency_tracking" != xno; then | |
| 483 | + am_depcomp="$ac_aux_dir/depcomp" | |
| 484 | + AMDEPBACKSLASH='\' | |
| 485 | + am__nodep='_no' | |
| 486 | +fi | |
| 487 | +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
| 488 | +AC_SUBST([AMDEPBACKSLASH])dnl | |
| 489 | +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
| 490 | +AC_SUBST([am__nodep])dnl | |
| 491 | +_AM_SUBST_NOTMAKE([am__nodep])dnl | |
| 492 | +]) | |
| 493 | + | |
| 494 | +# Generate code to set up dependency tracking. -*- Autoconf -*- | |
| 495 | + | |
| 496 | +# Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
| 497 | +# | |
| 498 | +# This file is free software; the Free Software Foundation | |
| 499 | +# gives unlimited permission to copy and/or distribute it, | |
| 500 | +# with or without modifications, as long as this notice is preserved. | |
| 501 | + | |
| 502 | + | |
| 503 | +# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
| 504 | +# ------------------------------ | |
| 505 | +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
| 506 | +[{ | |
| 507 | + # Older Autoconf quotes --file arguments for eval, but not when files | |
| 508 | + # are listed without --file. Let's play safe and only enable the eval | |
| 509 | + # if we detect the quoting. | |
| 510 | + case $CONFIG_FILES in | |
| 511 | + *\'*) eval set x "$CONFIG_FILES" ;; | |
| 512 | + *) set x $CONFIG_FILES ;; | |
| 513 | + esac | |
| 514 | + shift | |
| 515 | + for mf | |
| 516 | + do | |
| 517 | + # Strip MF so we end up with the name of the file. | |
| 518 | + mf=`echo "$mf" | sed -e 's/:.*$//'` | |
| 519 | + # Check whether this is an Automake generated Makefile or not. | |
| 520 | + # We used to match only the files named 'Makefile.in', but | |
| 521 | + # some people rename them; so instead we look at the file content. | |
| 522 | + # Grep'ing the first line is not enough: some people post-process | |
| 523 | + # each Makefile.in and add a new line on top of each file to say so. | |
| 524 | + # Grep'ing the whole file is not good either: AIX grep has a line | |
| 525 | + # limit of 2048, but all sed's we know have understand at least 4000. | |
| 526 | + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
| 527 | + dirpart=`AS_DIRNAME("$mf")` | |
| 528 | + else | |
| 529 | + continue | |
| 530 | + fi | |
| 531 | + # Extract the definition of DEPDIR, am__include, and am__quote | |
| 532 | + # from the Makefile without running 'make'. | |
| 533 | + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
| 534 | + test -z "$DEPDIR" && continue | |
| 535 | + am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
| 536 | + test -z "$am__include" && continue | |
| 537 | + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
| 538 | + # Find all dependency output files, they are included files with | |
| 539 | + # $(DEPDIR) in their names. We invoke sed twice because it is the | |
| 540 | + # simplest approach to changing $(DEPDIR) to its actual value in the | |
| 541 | + # expansion. | |
| 542 | + for file in `sed -n " | |
| 543 | + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
| 544 | + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
| 545 | + # Make sure the directory exists. | |
| 546 | + test -f "$dirpart/$file" && continue | |
| 547 | + fdir=`AS_DIRNAME(["$file"])` | |
| 548 | + AS_MKDIR_P([$dirpart/$fdir]) | |
| 549 | + # echo "creating $dirpart/$file" | |
| 550 | + echo '# dummy' > "$dirpart/$file" | |
| 551 | + done | |
| 552 | + done | |
| 553 | +} | |
| 554 | +])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
| 555 | + | |
| 556 | + | |
| 557 | +# AM_OUTPUT_DEPENDENCY_COMMANDS | |
| 558 | +# ----------------------------- | |
| 559 | +# This macro should only be invoked once -- use via AC_REQUIRE. | |
| 560 | +# | |
| 561 | +# This code is only required when automatic dependency tracking | |
| 562 | +# is enabled. FIXME. This creates each '.P' file that we will | |
| 563 | +# need in order to bootstrap the dependency handling code. | |
| 564 | +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
| 565 | +[AC_CONFIG_COMMANDS([depfiles], | |
| 566 | + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
| 567 | + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
| 568 | +]) | |
| 569 | + | |
| 570 | +# Do all the work for Automake. -*- Autoconf -*- | |
| 571 | + | |
| 572 | +# Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
| 573 | +# | |
| 574 | +# This file is free software; the Free Software Foundation | |
| 575 | +# gives unlimited permission to copy and/or distribute it, | |
| 576 | +# with or without modifications, as long as this notice is preserved. | |
| 577 | + | |
| 578 | +# This macro actually does too much. Some checks are only needed if | |
| 579 | +# your package does certain things. But this isn't really a big deal. | |
| 580 | + | |
| 581 | +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. | |
| 582 | +m4_define([AC_PROG_CC], | |
| 583 | +m4_defn([AC_PROG_CC]) | |
| 584 | +[_AM_PROG_CC_C_O | |
| 585 | +]) | |
| 586 | + | |
| 587 | +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
| 588 | +# AM_INIT_AUTOMAKE([OPTIONS]) | |
| 589 | +# ----------------------------------------------- | |
| 590 | +# The call with PACKAGE and VERSION arguments is the old style | |
| 591 | +# call (pre autoconf-2.50), which is being phased out. PACKAGE | |
| 592 | +# and VERSION should now be passed to AC_INIT and removed from | |
| 593 | +# the call to AM_INIT_AUTOMAKE. | |
| 594 | +# We support both call styles for the transition. After | |
| 595 | +# the next Automake release, Autoconf can make the AC_INIT | |
| 596 | +# arguments mandatory, and then we can depend on a new Autoconf | |
| 597 | +# release and drop the old call support. | |
| 598 | +AC_DEFUN([AM_INIT_AUTOMAKE], | |
| 599 | +[AC_PREREQ([2.65])dnl | |
| 600 | +dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
| 601 | +dnl the ones we care about. | |
| 602 | +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
| 603 | +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
| 604 | +AC_REQUIRE([AC_PROG_INSTALL])dnl | |
| 605 | +if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
| 606 | + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
| 607 | + # is not polluted with repeated "-I." | |
| 608 | + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
| 609 | + # test to see if srcdir already configured | |
| 610 | + if test -f $srcdir/config.status; then | |
| 611 | + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
| 612 | + fi | |
| 613 | +fi | |
| 614 | + | |
| 615 | +# test whether we have cygpath | |
| 616 | +if test -z "$CYGPATH_W"; then | |
| 617 | + if (cygpath --version) >/dev/null 2>/dev/null; then | |
| 618 | + CYGPATH_W='cygpath -w' | |
| 619 | + else | |
| 620 | + CYGPATH_W=echo | |
| 621 | + fi | |
| 622 | +fi | |
| 623 | +AC_SUBST([CYGPATH_W]) | |
| 624 | + | |
| 625 | +# Define the identity of the package. | |
| 626 | +dnl Distinguish between old-style and new-style calls. | |
| 627 | +m4_ifval([$2], | |
| 628 | +[AC_DIAGNOSE([obsolete], | |
| 629 | + [$0: two- and three-arguments forms are deprecated.]) | |
| 630 | +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
| 631 | + AC_SUBST([PACKAGE], [$1])dnl | |
| 632 | + AC_SUBST([VERSION], [$2])], | |
| 633 | +[_AM_SET_OPTIONS([$1])dnl | |
| 634 | +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
| 635 | +m4_if( | |
| 636 | + m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
| 637 | + [ok:ok],, | |
| 638 | + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
| 639 | + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
| 640 | + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
| 641 | + | |
| 642 | +_AM_IF_OPTION([no-define],, | |
| 643 | +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) | |
| 644 | + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl | |
| 645 | + | |
| 646 | +# Some tools Automake needs. | |
| 647 | +AC_REQUIRE([AM_SANITY_CHECK])dnl | |
| 648 | +AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
| 649 | +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) | |
| 650 | +AM_MISSING_PROG([AUTOCONF], [autoconf]) | |
| 651 | +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) | |
| 652 | +AM_MISSING_PROG([AUTOHEADER], [autoheader]) | |
| 653 | +AM_MISSING_PROG([MAKEINFO], [makeinfo]) | |
| 654 | +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
| 655 | +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
| 656 | +AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
| 657 | +# For better backward compatibility. To be removed once Automake 1.9.x | |
| 658 | +# dies out for good. For more background, see: | |
| 659 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
| 660 | +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
| 661 | +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
| 662 | +# We need awk for the "check" target. The system "awk" is bad on | |
| 663 | +# some platforms. | |
| 664 | +AC_REQUIRE([AC_PROG_AWK])dnl | |
| 665 | +AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
| 666 | +AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
| 667 | +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
| 668 | + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
| 669 | + [_AM_PROG_TAR([v7])])]) | |
| 670 | +_AM_IF_OPTION([no-dependencies],, | |
| 671 | +[AC_PROVIDE_IFELSE([AC_PROG_CC], | |
| 672 | + [_AM_DEPENDENCIES([CC])], | |
| 673 | + [m4_define([AC_PROG_CC], | |
| 674 | + m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl | |
| 675 | +AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
| 676 | + [_AM_DEPENDENCIES([CXX])], | |
| 677 | + [m4_define([AC_PROG_CXX], | |
| 678 | + m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl | |
| 679 | +AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
| 680 | + [_AM_DEPENDENCIES([OBJC])], | |
| 681 | + [m4_define([AC_PROG_OBJC], | |
| 682 | + m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl | |
| 683 | +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
| 684 | + [_AM_DEPENDENCIES([OBJCXX])], | |
| 685 | + [m4_define([AC_PROG_OBJCXX], | |
| 686 | + m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl | |
| 687 | +]) | |
| 688 | +AC_REQUIRE([AM_SILENT_RULES])dnl | |
| 689 | +dnl The testsuite driver may need to know about EXEEXT, so add the | |
| 690 | +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | |
| 691 | +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
| 692 | +AC_CONFIG_COMMANDS_PRE(dnl | |
| 693 | +[m4_provide_if([_AM_COMPILER_EXEEXT], | |
| 694 | + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
| 695 | + | |
| 696 | +# POSIX will say in a future version that running "rm -f" with no argument | |
| 697 | +# is OK; and we want to be able to make that assumption in our Makefile | |
| 698 | +# recipes. So use an aggressive probe to check that the usage we want is | |
| 699 | +# actually supported "in the wild" to an acceptable degree. | |
| 700 | +# See automake bug#10828. | |
| 701 | +# To make any issue more visible, cause the running configure to be aborted | |
| 702 | +# by default if the 'rm' program in use doesn't match our expectations; the | |
| 703 | +# user can still override this though. | |
| 704 | +if rm -f && rm -fr && rm -rf; then : OK; else | |
| 705 | + cat >&2 <<'END' | |
| 706 | +Oops! | |
| 707 | + | |
| 708 | +Your 'rm' program seems unable to run without file operands specified | |
| 709 | +on the command line, even when the '-f' option is present. This is contrary | |
| 710 | +to the behaviour of most rm programs out there, and not conforming with | |
| 711 | +the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
| 712 | + | |
| 713 | +Please tell bug-automake@gnu.org about your system, including the value | |
| 714 | +of your $PATH and any error possibly output before this message. This | |
| 715 | +can help us improve future automake versions. | |
| 716 | + | |
| 717 | +END | |
| 718 | + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
| 719 | + echo 'Configuration will proceed anyway, since you have set the' >&2 | |
| 720 | + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
| 721 | + echo >&2 | |
| 722 | + else | |
| 723 | + cat >&2 <<'END' | |
| 724 | +Aborting the configuration process, to ensure you take notice of the issue. | |
| 725 | + | |
| 726 | +You can download and install GNU coreutils to get an 'rm' implementation | |
| 727 | +that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
| 728 | + | |
| 729 | +If you want to complete the configuration process using your problematic | |
| 730 | +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
| 731 | +to "yes", and re-run configure. | |
| 732 | + | |
| 733 | +END | |
| 734 | + AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) | |
| 735 | + fi | |
| 736 | +fi]) | |
| 737 | + | |
| 738 | +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
| 739 | +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
| 740 | +dnl mangled by Autoconf and run in a shell conditional statement. | |
| 741 | +m4_define([_AC_COMPILER_EXEEXT], | |
| 742 | +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
| 743 | + | |
| 744 | +# When config.status generates a header, we must update the stamp-h file. | |
| 745 | +# This file resides in the same directory as the config header | |
| 746 | +# that is generated. The stamp files are numbered to have different names. | |
| 747 | + | |
| 748 | +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
| 749 | +# loop where config.status creates the headers, so we can generate | |
| 750 | +# our stamp files there. | |
| 751 | +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
| 752 | +[# Compute $1's index in $config_headers. | |
| 753 | +_am_arg=$1 | |
| 754 | +_am_stamp_count=1 | |
| 755 | +for _am_header in $config_headers :; do | |
| 756 | + case $_am_header in | |
| 757 | + $_am_arg | $_am_arg:* ) | |
| 758 | + break ;; | |
| 759 | + * ) | |
| 760 | + _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
| 761 | + esac | |
| 762 | +done | |
| 763 | +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
| 764 | + | |
| 765 | +# Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
| 766 | +# | |
| 767 | +# This file is free software; the Free Software Foundation | |
| 768 | +# gives unlimited permission to copy and/or distribute it, | |
| 769 | +# with or without modifications, as long as this notice is preserved. | |
| 770 | + | |
| 771 | +# AM_PROG_INSTALL_SH | |
| 772 | +# ------------------ | |
| 773 | +# Define $install_sh. | |
| 774 | +AC_DEFUN([AM_PROG_INSTALL_SH], | |
| 775 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
| 776 | +if test x"${install_sh}" != xset; then | |
| 777 | + case $am_aux_dir in | |
| 778 | + *\ * | *\ *) | |
| 779 | + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
| 780 | + *) | |
| 781 | + install_sh="\${SHELL} $am_aux_dir/install-sh" | |
| 782 | + esac | |
| 783 | +fi | |
| 784 | +AC_SUBST([install_sh])]) | |
| 785 | + | |
| 786 | +# Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
| 787 | +# | |
| 788 | +# This file is free software; the Free Software Foundation | |
| 789 | +# gives unlimited permission to copy and/or distribute it, | |
| 790 | +# with or without modifications, as long as this notice is preserved. | |
| 791 | + | |
| 792 | +# Check whether the underlying file-system supports filenames | |
| 793 | +# with a leading dot. For instance MS-DOS doesn't. | |
| 794 | +AC_DEFUN([AM_SET_LEADING_DOT], | |
| 795 | +[rm -rf .tst 2>/dev/null | |
| 796 | +mkdir .tst 2>/dev/null | |
| 797 | +if test -d .tst; then | |
| 798 | + am__leading_dot=. | |
| 799 | +else | |
| 800 | + am__leading_dot=_ | |
| 801 | +fi | |
| 802 | +rmdir .tst 2>/dev/null | |
| 803 | +AC_SUBST([am__leading_dot])]) | |
| 804 | + | |
| 805 | +# Check to see how 'make' treats includes. -*- Autoconf -*- | |
| 806 | + | |
| 807 | +# Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
| 808 | +# | |
| 809 | +# This file is free software; the Free Software Foundation | |
| 810 | +# gives unlimited permission to copy and/or distribute it, | |
| 811 | +# with or without modifications, as long as this notice is preserved. | |
| 812 | + | |
| 813 | +# AM_MAKE_INCLUDE() | |
| 814 | +# ----------------- | |
| 815 | +# Check to see how make treats includes. | |
| 816 | +AC_DEFUN([AM_MAKE_INCLUDE], | |
| 817 | +[am_make=${MAKE-make} | |
| 818 | +cat > confinc << 'END' | |
| 819 | +am__doit: | |
| 820 | + @echo this is the am__doit target | |
| 821 | +.PHONY: am__doit | |
| 822 | +END | |
| 823 | +# If we don't find an include directive, just comment out the code. | |
| 824 | +AC_MSG_CHECKING([for style of include used by $am_make]) | |
| 825 | +am__include="#" | |
| 826 | +am__quote= | |
| 827 | +_am_result=none | |
| 828 | +# First try GNU make style include. | |
| 829 | +echo "include confinc" > confmf | |
| 830 | +# Ignore all kinds of additional output from 'make'. | |
| 831 | +case `$am_make -s -f confmf 2> /dev/null` in #( | |
| 832 | +*the\ am__doit\ target*) | |
| 833 | + am__include=include | |
| 834 | + am__quote= | |
| 835 | + _am_result=GNU | |
| 836 | + ;; | |
| 837 | +esac | |
| 838 | +# Now try BSD make style include. | |
| 839 | +if test "$am__include" = "#"; then | |
| 840 | + echo '.include "confinc"' > confmf | |
| 841 | + case `$am_make -s -f confmf 2> /dev/null` in #( | |
| 842 | + *the\ am__doit\ target*) | |
| 843 | + am__include=.include | |
| 844 | + am__quote="\"" | |
| 845 | + _am_result=BSD | |
| 846 | + ;; | |
| 847 | + esac | |
| 848 | +fi | |
| 849 | +AC_SUBST([am__include]) | |
| 850 | +AC_SUBST([am__quote]) | |
| 851 | +AC_MSG_RESULT([$_am_result]) | |
| 852 | +rm -f confinc confmf | |
| 853 | +]) | |
| 854 | + | |
| 855 | +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
| 856 | + | |
| 857 | +# Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
| 858 | +# | |
| 859 | +# This file is free software; the Free Software Foundation | |
| 860 | +# gives unlimited permission to copy and/or distribute it, | |
| 861 | +# with or without modifications, as long as this notice is preserved. | |
| 862 | + | |
| 863 | +# AM_MISSING_PROG(NAME, PROGRAM) | |
| 864 | +# ------------------------------ | |
| 865 | +AC_DEFUN([AM_MISSING_PROG], | |
| 866 | +[AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
| 867 | +$1=${$1-"${am_missing_run}$2"} | |
| 868 | +AC_SUBST($1)]) | |
| 869 | + | |
| 870 | +# AM_MISSING_HAS_RUN | |
| 871 | +# ------------------ | |
| 872 | +# Define MISSING if not defined so far and test if it is modern enough. | |
| 873 | +# If it is, set am_missing_run to use it, otherwise, to nothing. | |
| 874 | +AC_DEFUN([AM_MISSING_HAS_RUN], | |
| 875 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
| 876 | +AC_REQUIRE_AUX_FILE([missing])dnl | |
| 877 | +if test x"${MISSING+set}" != xset; then | |
| 878 | + case $am_aux_dir in | |
| 879 | + *\ * | *\ *) | |
| 880 | + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
| 881 | + *) | |
| 882 | + MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
| 883 | + esac | |
| 884 | +fi | |
| 885 | +# Use eval to expand $SHELL | |
| 886 | +if eval "$MISSING --is-lightweight"; then | |
| 887 | + am_missing_run="$MISSING " | |
| 888 | +else | |
| 889 | + am_missing_run= | |
| 890 | + AC_MSG_WARN(['missing' script is too old or missing]) | |
| 891 | +fi | |
| 892 | +]) | |
| 893 | + | |
| 894 | +# Helper functions for option handling. -*- Autoconf -*- | |
| 895 | + | |
| 896 | +# Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
| 897 | +# | |
| 898 | +# This file is free software; the Free Software Foundation | |
| 899 | +# gives unlimited permission to copy and/or distribute it, | |
| 900 | +# with or without modifications, as long as this notice is preserved. | |
| 901 | + | |
| 902 | +# _AM_MANGLE_OPTION(NAME) | |
| 903 | +# ----------------------- | |
| 904 | +AC_DEFUN([_AM_MANGLE_OPTION], | |
| 905 | +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
| 906 | + | |
| 907 | +# _AM_SET_OPTION(NAME) | |
| 908 | +# -------------------- | |
| 909 | +# Set option NAME. Presently that only means defining a flag for this option. | |
| 910 | +AC_DEFUN([_AM_SET_OPTION], | |
| 911 | +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) | |
| 912 | + | |
| 913 | +# _AM_SET_OPTIONS(OPTIONS) | |
| 914 | +# ------------------------ | |
| 915 | +# OPTIONS is a space-separated list of Automake options. | |
| 916 | +AC_DEFUN([_AM_SET_OPTIONS], | |
| 917 | +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
| 918 | + | |
| 919 | +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
| 920 | +# ------------------------------------------- | |
| 921 | +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
| 922 | +AC_DEFUN([_AM_IF_OPTION], | |
| 923 | +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
| 924 | + | |
| 925 | +# Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
| 926 | +# | |
| 927 | +# This file is free software; the Free Software Foundation | |
| 928 | +# gives unlimited permission to copy and/or distribute it, | |
| 929 | +# with or without modifications, as long as this notice is preserved. | |
| 930 | + | |
| 931 | +# _AM_PROG_CC_C_O | |
| 932 | +# --------------- | |
| 933 | +# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC | |
| 934 | +# to automatically call this. | |
| 935 | +AC_DEFUN([_AM_PROG_CC_C_O], | |
| 936 | +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
| 937 | +AC_REQUIRE_AUX_FILE([compile])dnl | |
| 938 | +AC_LANG_PUSH([C])dnl | |
| 939 | +AC_CACHE_CHECK( | |
| 940 | + [whether $CC understands -c and -o together], | |
| 941 | + [am_cv_prog_cc_c_o], | |
| 942 | + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) | |
| 943 | + # Make sure it works both with $CC and with simple cc. | |
| 944 | + # Following AC_PROG_CC_C_O, we do the test twice because some | |
| 945 | + # compilers refuse to overwrite an existing .o file with -o, | |
| 946 | + # though they will create one. | |
| 947 | + am_cv_prog_cc_c_o=yes | |
| 948 | + for am_i in 1 2; do | |
| 949 | + if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ | |
| 950 | + && test -f conftest2.$ac_objext; then | |
| 951 | + : OK | |
| 952 | + else | |
| 953 | + am_cv_prog_cc_c_o=no | |
| 954 | + break | |
| 955 | + fi | |
| 956 | + done | |
| 957 | + rm -f core conftest* | |
| 958 | + unset am_i]) | |
| 959 | +if test "$am_cv_prog_cc_c_o" != yes; then | |
| 960 | + # Losing compiler, so override with the script. | |
| 961 | + # FIXME: It is wrong to rewrite CC. | |
| 962 | + # But if we don't then we get into trouble of one sort or another. | |
| 963 | + # A longer-term fix would be to have automake use am__CC in this case, | |
| 964 | + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
| 965 | + CC="$am_aux_dir/compile $CC" | |
| 966 | +fi | |
| 967 | +AC_LANG_POP([C])]) | |
| 968 | + | |
| 969 | +# For backward compatibility. | |
| 970 | +AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) | |
| 971 | + | |
| 972 | +# Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
| 973 | +# | |
| 974 | +# This file is free software; the Free Software Foundation | |
| 975 | +# gives unlimited permission to copy and/or distribute it, | |
| 976 | +# with or without modifications, as long as this notice is preserved. | |
| 977 | + | |
| 978 | +# AM_RUN_LOG(COMMAND) | |
| 979 | +# ------------------- | |
| 980 | +# Run COMMAND, save the exit status in ac_status, and log it. | |
| 981 | +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) | |
| 982 | +AC_DEFUN([AM_RUN_LOG], | |
| 983 | +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD | |
| 984 | + ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD | |
| 985 | + ac_status=$? | |
| 986 | + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
| 987 | + (exit $ac_status); }]) | |
| 988 | + | |
| 989 | +# Check to make sure that the build environment is sane. -*- Autoconf -*- | |
| 990 | + | |
| 991 | +# Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
| 992 | +# | |
| 993 | +# This file is free software; the Free Software Foundation | |
| 994 | +# gives unlimited permission to copy and/or distribute it, | |
| 995 | +# with or without modifications, as long as this notice is preserved. | |
| 996 | + | |
| 997 | +# AM_SANITY_CHECK | |
| 998 | +# --------------- | |
| 999 | +AC_DEFUN([AM_SANITY_CHECK], | |
| 1000 | +[AC_MSG_CHECKING([whether build environment is sane]) | |
| 1001 | +# Reject unsafe characters in $srcdir or the absolute working directory | |
| 1002 | +# name. Accept space and tab only in the latter. | |
| 1003 | +am_lf=' | |
| 1004 | +' | |
| 1005 | +case `pwd` in | |
| 1006 | + *[[\\\"\#\$\&\'\`$am_lf]]*) | |
| 1007 | + AC_MSG_ERROR([unsafe absolute working directory name]);; | |
| 1008 | +esac | |
| 1009 | +case $srcdir in | |
| 1010 | + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
| 1011 | + AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; | |
| 1012 | +esac | |
| 1013 | + | |
| 1014 | +# Do 'set' in a subshell so we don't clobber the current shell's | |
| 1015 | +# arguments. Must try -L first in case configure is actually a | |
| 1016 | +# symlink; some systems play weird games with the mod time of symlinks | |
| 1017 | +# (eg FreeBSD returns the mod time of the symlink's containing | |
| 1018 | +# directory). | |
| 1019 | +if ( | |
| 1020 | + am_has_slept=no | |
| 1021 | + for am_try in 1 2; do | |
| 1022 | + echo "timestamp, slept: $am_has_slept" > conftest.file | |
| 1023 | + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
| 1024 | + if test "$[*]" = "X"; then | |
| 1025 | + # -L didn't work. | |
| 1026 | + set X `ls -t "$srcdir/configure" conftest.file` | |
| 1027 | + fi | |
| 1028 | + if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
| 1029 | + && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
| 1030 | + | |
| 1031 | + # If neither matched, then we have a broken ls. This can happen | |
| 1032 | + # if, for instance, CONFIG_SHELL is bash and it inherits a | |
| 1033 | + # broken ls alias from the environment. This has actually | |
| 1034 | + # happened. Such a system could not be considered "sane". | |
| 1035 | + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
| 1036 | + alias in your environment]) | |
| 1037 | + fi | |
| 1038 | + if test "$[2]" = conftest.file || test $am_try -eq 2; then | |
| 1039 | + break | |
| 1040 | + fi | |
| 1041 | + # Just in case. | |
| 1042 | + sleep 1 | |
| 1043 | + am_has_slept=yes | |
| 1044 | + done | |
| 1045 | + test "$[2]" = conftest.file | |
| 1046 | + ) | |
| 1047 | +then | |
| 1048 | + # Ok. | |
| 1049 | + : | |
| 1050 | +else | |
| 1051 | + AC_MSG_ERROR([newly created file is older than distributed files! | |
| 1052 | +Check your system clock]) | |
| 1053 | +fi | |
| 1054 | +AC_MSG_RESULT([yes]) | |
| 1055 | +# If we didn't sleep, we still need to ensure time stamps of config.status and | |
| 1056 | +# generated files are strictly newer. | |
| 1057 | +am_sleep_pid= | |
| 1058 | +if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
| 1059 | + ( sleep 1 ) & | |
| 1060 | + am_sleep_pid=$! | |
| 1061 | +fi | |
| 1062 | +AC_CONFIG_COMMANDS_PRE( | |
| 1063 | + [AC_MSG_CHECKING([that generated files are newer than configure]) | |
| 1064 | + if test -n "$am_sleep_pid"; then | |
| 1065 | + # Hide warnings about reused PIDs. | |
| 1066 | + wait $am_sleep_pid 2>/dev/null | |
| 1067 | + fi | |
| 1068 | + AC_MSG_RESULT([done])]) | |
| 1069 | +rm -f conftest.file | |
| 1070 | +]) | |
| 1071 | + | |
| 1072 | +# Copyright (C) 2009-2013 Free Software Foundation, Inc. | |
| 1073 | +# | |
| 1074 | +# This file is free software; the Free Software Foundation | |
| 1075 | +# gives unlimited permission to copy and/or distribute it, | |
| 1076 | +# with or without modifications, as long as this notice is preserved. | |
| 1077 | + | |
| 1078 | +# AM_SILENT_RULES([DEFAULT]) | |
| 1079 | +# -------------------------- | |
| 1080 | +# Enable less verbose build rules; with the default set to DEFAULT | |
| 1081 | +# ("yes" being less verbose, "no" or empty being verbose). | |
| 1082 | +AC_DEFUN([AM_SILENT_RULES], | |
| 1083 | +[AC_ARG_ENABLE([silent-rules], [dnl | |
| 1084 | +AS_HELP_STRING( | |
| 1085 | + [--enable-silent-rules], | |
| 1086 | + [less verbose build output (undo: "make V=1")]) | |
| 1087 | +AS_HELP_STRING( | |
| 1088 | + [--disable-silent-rules], | |
| 1089 | + [verbose build output (undo: "make V=0")])dnl | |
| 1090 | +]) | |
| 1091 | +case $enable_silent_rules in @%:@ ((( | |
| 1092 | + yes) AM_DEFAULT_VERBOSITY=0;; | |
| 1093 | + no) AM_DEFAULT_VERBOSITY=1;; | |
| 1094 | + *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
| 1095 | +esac | |
| 1096 | +dnl | |
| 1097 | +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) | |
| 1098 | +dnl do not support nested variable expansions. | |
| 1099 | +dnl See automake bug#9928 and bug#10237. | |
| 1100 | +am_make=${MAKE-make} | |
| 1101 | +AC_CACHE_CHECK([whether $am_make supports nested variables], | |
| 1102 | + [am_cv_make_support_nested_variables], | |
| 1103 | + [if AS_ECHO([['TRUE=$(BAR$(V)) | |
| 1104 | +BAR0=false | |
| 1105 | +BAR1=true | |
| 1106 | +V=1 | |
| 1107 | +am__doit: | |
| 1108 | + @$(TRUE) | |
| 1109 | +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then | |
| 1110 | + am_cv_make_support_nested_variables=yes | |
| 1111 | +else | |
| 1112 | + am_cv_make_support_nested_variables=no | |
| 1113 | +fi]) | |
| 1114 | +if test $am_cv_make_support_nested_variables = yes; then | |
| 1115 | + dnl Using '$V' instead of '$(V)' breaks IRIX make. | |
| 1116 | + AM_V='$(V)' | |
| 1117 | + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
| 1118 | +else | |
| 1119 | + AM_V=$AM_DEFAULT_VERBOSITY | |
| 1120 | + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
| 1121 | +fi | |
| 1122 | +AC_SUBST([AM_V])dnl | |
| 1123 | +AM_SUBST_NOTMAKE([AM_V])dnl | |
| 1124 | +AC_SUBST([AM_DEFAULT_V])dnl | |
| 1125 | +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl | |
| 1126 | +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
| 1127 | +AM_BACKSLASH='\' | |
| 1128 | +AC_SUBST([AM_BACKSLASH])dnl | |
| 1129 | +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
| 1130 | +]) | |
| 1131 | + | |
| 1132 | +# Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
| 1133 | +# | |
| 1134 | +# This file is free software; the Free Software Foundation | |
| 1135 | +# gives unlimited permission to copy and/or distribute it, | |
| 1136 | +# with or without modifications, as long as this notice is preserved. | |
| 1137 | + | |
| 1138 | +# AM_PROG_INSTALL_STRIP | |
| 1139 | +# --------------------- | |
| 1140 | +# One issue with vendor 'install' (even GNU) is that you can't | |
| 1141 | +# specify the program used to strip binaries. This is especially | |
| 1142 | +# annoying in cross-compiling environments, where the build's strip | |
| 1143 | +# is unlikely to handle the host's binaries. | |
| 1144 | +# Fortunately install-sh will honor a STRIPPROG variable, so we | |
| 1145 | +# always use install-sh in "make install-strip", and initialize | |
| 1146 | +# STRIPPROG with the value of the STRIP variable (set by the user). | |
| 1147 | +AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
| 1148 | +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
| 1149 | +# Installed binaries are usually stripped using 'strip' when the user | |
| 1150 | +# run "make install-strip". However 'strip' might not be the right | |
| 1151 | +# tool to use in cross-compilation environments, therefore Automake | |
| 1152 | +# will honor the 'STRIP' environment variable to overrule this program. | |
| 1153 | +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. | |
| 1154 | +if test "$cross_compiling" != no; then | |
| 1155 | + AC_CHECK_TOOL([STRIP], [strip], :) | |
| 1156 | +fi | |
| 1157 | +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
| 1158 | +AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
| 1159 | + | |
| 1160 | +# Copyright (C) 2006-2013 Free Software Foundation, Inc. | |
| 1161 | +# | |
| 1162 | +# This file is free software; the Free Software Foundation | |
| 1163 | +# gives unlimited permission to copy and/or distribute it, | |
| 1164 | +# with or without modifications, as long as this notice is preserved. | |
| 1165 | + | |
| 1166 | +# _AM_SUBST_NOTMAKE(VARIABLE) | |
| 1167 | +# --------------------------- | |
| 1168 | +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
| 1169 | +# This macro is traced by Automake. | |
| 1170 | +AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
| 1171 | + | |
| 1172 | +# AM_SUBST_NOTMAKE(VARIABLE) | |
| 1173 | +# -------------------------- | |
| 1174 | +# Public sister of _AM_SUBST_NOTMAKE. | |
| 1175 | +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
| 1176 | + | |
| 1177 | +# Check how to create a tarball. -*- Autoconf -*- | |
| 1178 | + | |
| 1179 | +# Copyright (C) 2004-2013 Free Software Foundation, Inc. | |
| 1180 | +# | |
| 1181 | +# This file is free software; the Free Software Foundation | |
| 1182 | +# gives unlimited permission to copy and/or distribute it, | |
| 1183 | +# with or without modifications, as long as this notice is preserved. | |
| 1184 | + | |
| 1185 | +# _AM_PROG_TAR(FORMAT) | |
| 1186 | +# -------------------- | |
| 1187 | +# Check how to create a tarball in format FORMAT. | |
| 1188 | +# FORMAT should be one of 'v7', 'ustar', or 'pax'. | |
| 1189 | +# | |
| 1190 | +# Substitute a variable $(am__tar) that is a command | |
| 1191 | +# writing to stdout a FORMAT-tarball containing the directory | |
| 1192 | +# $tardir. | |
| 1193 | +# tardir=directory && $(am__tar) > result.tar | |
| 1194 | +# | |
| 1195 | +# Substitute a variable $(am__untar) that extract such | |
| 1196 | +# a tarball read from stdin. | |
| 1197 | +# $(am__untar) < result.tar | |
| 1198 | +# | |
| 1199 | +AC_DEFUN([_AM_PROG_TAR], | |
| 1200 | +[# Always define AMTAR for backward compatibility. Yes, it's still used | |
| 1201 | +# in the wild :-( We should find a proper way to deprecate it ... | |
| 1202 | +AC_SUBST([AMTAR], ['$${TAR-tar}']) | |
| 1203 | + | |
| 1204 | +# We'll loop over all known methods to create a tar archive until one works. | |
| 1205 | +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
| 1206 | + | |
| 1207 | +m4_if([$1], [v7], | |
| 1208 | + [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
| 1209 | + | |
| 1210 | + [m4_case([$1], | |
| 1211 | + [ustar], | |
| 1212 | + [# The POSIX 1988 'ustar' format is defined with fixed-size fields. | |
| 1213 | + # There is notably a 21 bits limit for the UID and the GID. In fact, | |
| 1214 | + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 | |
| 1215 | + # and bug#13588). | |
| 1216 | + am_max_uid=2097151 # 2^21 - 1 | |
| 1217 | + am_max_gid=$am_max_uid | |
| 1218 | + # The $UID and $GID variables are not portable, so we need to resort | |
| 1219 | + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls | |
| 1220 | + # below are definitely unexpected, so allow the users to see them | |
| 1221 | + # (that is, avoid stderr redirection). | |
| 1222 | + am_uid=`id -u || echo unknown` | |
| 1223 | + am_gid=`id -g || echo unknown` | |
| 1224 | + AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) | |
| 1225 | + if test $am_uid -le $am_max_uid; then | |
| 1226 | + AC_MSG_RESULT([yes]) | |
| 1227 | + else | |
| 1228 | + AC_MSG_RESULT([no]) | |
| 1229 | + _am_tools=none | |
| 1230 | + fi | |
| 1231 | + AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) | |
| 1232 | + if test $am_gid -le $am_max_gid; then | |
| 1233 | + AC_MSG_RESULT([yes]) | |
| 1234 | + else | |
| 1235 | + AC_MSG_RESULT([no]) | |
| 1236 | + _am_tools=none | |
| 1237 | + fi], | |
| 1238 | + | |
| 1239 | + [pax], | |
| 1240 | + [], | |
| 1241 | + | |
| 1242 | + [m4_fatal([Unknown tar format])]) | |
| 1243 | + | |
| 1244 | + AC_MSG_CHECKING([how to create a $1 tar archive]) | |
| 1245 | + | |
| 1246 | + # Go ahead even if we have the value already cached. We do so because we | |
| 1247 | + # need to set the values for the 'am__tar' and 'am__untar' variables. | |
| 1248 | + _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
| 1249 | + | |
| 1250 | + for _am_tool in $_am_tools; do | |
| 1251 | + case $_am_tool in | |
| 1252 | + gnutar) | |
| 1253 | + for _am_tar in tar gnutar gtar; do | |
| 1254 | + AM_RUN_LOG([$_am_tar --version]) && break | |
| 1255 | + done | |
| 1256 | + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
| 1257 | + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
| 1258 | + am__untar="$_am_tar -xf -" | |
| 1259 | + ;; | |
| 1260 | + plaintar) | |
| 1261 | + # Must skip GNU tar: if it does not support --format= it doesn't create | |
| 1262 | + # ustar tarball either. | |
| 1263 | + (tar --version) >/dev/null 2>&1 && continue | |
| 1264 | + am__tar='tar chf - "$$tardir"' | |
| 1265 | + am__tar_='tar chf - "$tardir"' | |
| 1266 | + am__untar='tar xf -' | |
| 1267 | + ;; | |
| 1268 | + pax) | |
| 1269 | + am__tar='pax -L -x $1 -w "$$tardir"' | |
| 1270 | + am__tar_='pax -L -x $1 -w "$tardir"' | |
| 1271 | + am__untar='pax -r' | |
| 1272 | + ;; | |
| 1273 | + cpio) | |
| 1274 | + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
| 1275 | + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
| 1276 | + am__untar='cpio -i -H $1 -d' | |
| 1277 | + ;; | |
| 1278 | + none) | |
| 1279 | + am__tar=false | |
| 1280 | + am__tar_=false | |
| 1281 | + am__untar=false | |
| 1282 | + ;; | |
| 1283 | + esac | |
| 1284 | + | |
| 1285 | + # If the value was cached, stop now. We just wanted to have am__tar | |
| 1286 | + # and am__untar set. | |
| 1287 | + test -n "${am_cv_prog_tar_$1}" && break | |
| 1288 | + | |
| 1289 | + # tar/untar a dummy directory, and stop if the command works. | |
| 1290 | + rm -rf conftest.dir | |
| 1291 | + mkdir conftest.dir | |
| 1292 | + echo GrepMe > conftest.dir/file | |
| 1293 | + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
| 1294 | + rm -rf conftest.dir | |
| 1295 | + if test -s conftest.tar; then | |
| 1296 | + AM_RUN_LOG([$am__untar <conftest.tar]) | |
| 1297 | + AM_RUN_LOG([cat conftest.dir/file]) | |
| 1298 | + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
| 1299 | + fi | |
| 1300 | + done | |
| 1301 | + rm -rf conftest.dir | |
| 1302 | + | |
| 1303 | + AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
| 1304 | + AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
| 1305 | + | |
| 1306 | +AC_SUBST([am__tar]) | |
| 1307 | +AC_SUBST([am__untar]) | |
| 1308 | +]) # _AM_PROG_TAR | |
| 1309 | + | |
| 1310 | +m4_include([m4/libopenflow.m4]) | |
| 1311 | +m4_include([m4/nx-build.m4]) | |
| 1312 | +m4_include([acinclude.m4]) | ... | ... |
boot.sh
0 → 100755
| 1 | +#! /bin/sh | |
| 2 | + | |
| 3 | +set -e | |
| 4 | + | |
| 5 | +# Generate list of files in debian/ to distribute. | |
| 6 | +(echo '# Automatically generated by boot.sh (from Git tree).' && | |
| 7 | + printf 'EXTRA_DIST += \\\n' && | |
| 8 | + git ls-files debian | grep -v '^debian/\.gitignore$' | | |
| 9 | + sed -e 's/\(.*\)/ \1 \\/' -e '$s/ \\//') > debian/automake.mk | |
| 10 | + | |
| 11 | +cat debian/control.in > debian/control | |
| 12 | + | |
| 13 | +# Bootstrap configure system from .ac/.am files | |
| 14 | +autoreconf --install --force | ... | ... |
config.h
0 → 100755
| 1 | +/* config.h. Generated from config.h.in by configure. */ | |
| 2 | +/* config.h.in. Generated from configure.ac by autoheader. */ | |
| 3 | + | |
| 4 | +/* Official build number as a VERSION suffix string, e.g. "+build123", or "" | |
| 5 | + if this is not an official build. */ | |
| 6 | +#define BUILDNR "" | |
| 7 | + | |
| 8 | +/* Whether the OpenFlow hardware libraries are available */ | |
| 9 | +/* #undef BUILD_HW_LIBS */ | |
| 10 | + | |
| 11 | +/* Define to 1 if net/if_packet.h is available. */ | |
| 12 | +#define HAVE_IF_PACKET 1 | |
| 13 | + | |
| 14 | +/* Define to 1 if you have the <inttypes.h> header file. */ | |
| 15 | +#define HAVE_INTTYPES_H 1 | |
| 16 | + | |
| 17 | +/* Define to 1 if you have the `socket' library (-lsocket). */ | |
| 18 | +/* #undef HAVE_LIBSOCKET */ | |
| 19 | + | |
| 20 | +/* Define to 1 if you have __malloc_hook, __realloc_hook, and __free_hook in | |
| 21 | + <malloc.h>. */ | |
| 22 | +#define HAVE_MALLOC_HOOKS 1 | |
| 23 | + | |
| 24 | +/* Define to 1 if you have the <memory.h> header file. */ | |
| 25 | +#define HAVE_MEMORY_H 1 | |
| 26 | + | |
| 27 | +/* Define to 1 if Netlink protocol is available. */ | |
| 28 | +#define HAVE_NETLINK 1 | |
| 29 | + | |
| 30 | +/* Define to 1 if OpenSSL is installed. */ | |
| 31 | +/* #undef HAVE_OPENSSL */ | |
| 32 | + | |
| 33 | +/* Define to 1 if you have the <stdint.h> header file. */ | |
| 34 | +#define HAVE_STDINT_H 1 | |
| 35 | + | |
| 36 | +/* Define to 1 if you have the <stdlib.h> header file. */ | |
| 37 | +#define HAVE_STDLIB_H 1 | |
| 38 | + | |
| 39 | +/* Define to 1 if you have the <strings.h> header file. */ | |
| 40 | +#define HAVE_STRINGS_H 1 | |
| 41 | + | |
| 42 | +/* Define to 1 if you have the <string.h> header file. */ | |
| 43 | +#define HAVE_STRING_H 1 | |
| 44 | + | |
| 45 | +/* Define to 1 if you have the `strlcpy' function. */ | |
| 46 | +/* #undef HAVE_STRLCPY */ | |
| 47 | + | |
| 48 | +/* Define to 1 if you have the `strsignal' function. */ | |
| 49 | +#define HAVE_STRSIGNAL 1 | |
| 50 | + | |
| 51 | +/* Define to 1 if you have the <sys/stat.h> header file. */ | |
| 52 | +#define HAVE_SYS_STAT_H 1 | |
| 53 | + | |
| 54 | +/* Define to 1 if you have the <sys/types.h> header file. */ | |
| 55 | +#define HAVE_SYS_TYPES_H 1 | |
| 56 | + | |
| 57 | +/* Define to 1 if you have the <unistd.h> header file. */ | |
| 58 | +#define HAVE_UNISTD_H 1 | |
| 59 | + | |
| 60 | +/* Support Stanford-LB4G platform */ | |
| 61 | +/* #undef LB4G */ | |
| 62 | + | |
| 63 | +/* Support NetFPGA platform */ | |
| 64 | +/* #undef NF2 */ | |
| 65 | + | |
| 66 | +/* Name of package */ | |
| 67 | +#define PACKAGE "openflow" | |
| 68 | + | |
| 69 | +/* Define to the address where bug reports for this package should be sent. */ | |
| 70 | +#define PACKAGE_BUGREPORT "openflow-discuss@openflowswitch.org" | |
| 71 | + | |
| 72 | +/* Define to the full name of this package. */ | |
| 73 | +#define PACKAGE_NAME "openflow" | |
| 74 | + | |
| 75 | +/* Define to the full name and version of this package. */ | |
| 76 | +#define PACKAGE_STRING "openflow 1.0.0" | |
| 77 | + | |
| 78 | +/* Define to the one symbol short name of this package. */ | |
| 79 | +#define PACKAGE_TARNAME "openflow" | |
| 80 | + | |
| 81 | +/* Define to the home page for this package. */ | |
| 82 | +#define PACKAGE_URL "" | |
| 83 | + | |
| 84 | +/* Define to the version of this package. */ | |
| 85 | +#define PACKAGE_VERSION "1.0.0" | |
| 86 | + | |
| 87 | +/* Support Broadcom 56820 reference platform */ | |
| 88 | +/* #undef SCORREF */ | |
| 89 | + | |
| 90 | +/* Define to 1 if you have the ANSI C header files. */ | |
| 91 | +#define STDC_HEADERS 1 | |
| 92 | + | |
| 93 | +/* Support Broadcom 56634 reference platform */ | |
| 94 | +/* #undef T2REF */ | |
| 95 | + | |
| 96 | +/* Enable extensions on AIX 3, Interix. */ | |
| 97 | +#ifndef _ALL_SOURCE | |
| 98 | +# define _ALL_SOURCE 1 | |
| 99 | +#endif | |
| 100 | +/* Enable GNU extensions on systems that have them. */ | |
| 101 | +#ifndef _GNU_SOURCE | |
| 102 | +# define _GNU_SOURCE 1 | |
| 103 | +#endif | |
| 104 | +/* Enable threading extensions on Solaris. */ | |
| 105 | +#ifndef _POSIX_PTHREAD_SEMANTICS | |
| 106 | +# define _POSIX_PTHREAD_SEMANTICS 1 | |
| 107 | +#endif | |
| 108 | +/* Enable extensions on HP NonStop. */ | |
| 109 | +#ifndef _TANDEM_SOURCE | |
| 110 | +# define _TANDEM_SOURCE 1 | |
| 111 | +#endif | |
| 112 | +/* Enable general extensions on Solaris. */ | |
| 113 | +#ifndef __EXTENSIONS__ | |
| 114 | +# define __EXTENSIONS__ 1 | |
| 115 | +#endif | |
| 116 | + | |
| 117 | + | |
| 118 | +/* Version number of package */ | |
| 119 | +#define VERSION "1.0.0" | |
| 120 | + | |
| 121 | +/* Enable large inode numbers on Mac OS X 10.5. */ | |
| 122 | +#ifndef _DARWIN_USE_64_BIT_INODE | |
| 123 | +# define _DARWIN_USE_64_BIT_INODE 1 | |
| 124 | +#endif | |
| 125 | + | |
| 126 | +/* Number of bits in a file offset, on hosts where this is settable. */ | |
| 127 | +/* #undef _FILE_OFFSET_BITS */ | |
| 128 | + | |
| 129 | +/* Define for large files, on AIX-style hosts. */ | |
| 130 | +/* #undef _LARGE_FILES */ | |
| 131 | + | |
| 132 | +/* Define to 1 if on MINIX. */ | |
| 133 | +/* #undef _MINIX */ | |
| 134 | + | |
| 135 | +/* Define to 2 if the system does not provide POSIX.1 features except with | |
| 136 | + this defined. */ | |
| 137 | +/* #undef _POSIX_1_SOURCE */ | |
| 138 | + | |
| 139 | +/* Define to 1 if you need to in order for `stat' and other things to work. */ | |
| 140 | +/* #undef _POSIX_SOURCE */ | ... | ... |
config.h.in
0 → 100755
| 1 | +/* config.h.in. Generated from configure.ac by autoheader. */ | |
| 2 | + | |
| 3 | +/* Official build number as a VERSION suffix string, e.g. "+build123", or "" | |
| 4 | + if this is not an official build. */ | |
| 5 | +#undef BUILDNR | |
| 6 | + | |
| 7 | +/* Whether the OpenFlow hardware libraries are available */ | |
| 8 | +#undef BUILD_HW_LIBS | |
| 9 | + | |
| 10 | +/* Define to 1 if net/if_packet.h is available. */ | |
| 11 | +#undef HAVE_IF_PACKET | |
| 12 | + | |
| 13 | +/* Define to 1 if you have the <inttypes.h> header file. */ | |
| 14 | +#undef HAVE_INTTYPES_H | |
| 15 | + | |
| 16 | +/* Define to 1 if you have the `socket' library (-lsocket). */ | |
| 17 | +#undef HAVE_LIBSOCKET | |
| 18 | + | |
| 19 | +/* Define to 1 if you have __malloc_hook, __realloc_hook, and __free_hook in | |
| 20 | + <malloc.h>. */ | |
| 21 | +#undef HAVE_MALLOC_HOOKS | |
| 22 | + | |
| 23 | +/* Define to 1 if you have the <memory.h> header file. */ | |
| 24 | +#undef HAVE_MEMORY_H | |
| 25 | + | |
| 26 | +/* Define to 1 if Netlink protocol is available. */ | |
| 27 | +#undef HAVE_NETLINK | |
| 28 | + | |
| 29 | +/* Define to 1 if OpenSSL is installed. */ | |
| 30 | +#undef HAVE_OPENSSL | |
| 31 | + | |
| 32 | +/* Define to 1 if you have the <stdint.h> header file. */ | |
| 33 | +#undef HAVE_STDINT_H | |
| 34 | + | |
| 35 | +/* Define to 1 if you have the <stdlib.h> header file. */ | |
| 36 | +#undef HAVE_STDLIB_H | |
| 37 | + | |
| 38 | +/* Define to 1 if you have the <strings.h> header file. */ | |
| 39 | +#undef HAVE_STRINGS_H | |
| 40 | + | |
| 41 | +/* Define to 1 if you have the <string.h> header file. */ | |
| 42 | +#undef HAVE_STRING_H | |
| 43 | + | |
| 44 | +/* Define to 1 if you have the `strlcpy' function. */ | |
| 45 | +#undef HAVE_STRLCPY | |
| 46 | + | |
| 47 | +/* Define to 1 if you have the `strsignal' function. */ | |
| 48 | +#undef HAVE_STRSIGNAL | |
| 49 | + | |
| 50 | +/* Define to 1 if you have the <sys/stat.h> header file. */ | |
| 51 | +#undef HAVE_SYS_STAT_H | |
| 52 | + | |
| 53 | +/* Define to 1 if you have the <sys/types.h> header file. */ | |
| 54 | +#undef HAVE_SYS_TYPES_H | |
| 55 | + | |
| 56 | +/* Define to 1 if you have the <unistd.h> header file. */ | |
| 57 | +#undef HAVE_UNISTD_H | |
| 58 | + | |
| 59 | +/* Support Stanford-LB4G platform */ | |
| 60 | +#undef LB4G | |
| 61 | + | |
| 62 | +/* Support NetFPGA platform */ | |
| 63 | +#undef NF2 | |
| 64 | + | |
| 65 | +/* Name of package */ | |
| 66 | +#undef PACKAGE | |
| 67 | + | |
| 68 | +/* Define to the address where bug reports for this package should be sent. */ | |
| 69 | +#undef PACKAGE_BUGREPORT | |
| 70 | + | |
| 71 | +/* Define to the full name of this package. */ | |
| 72 | +#undef PACKAGE_NAME | |
| 73 | + | |
| 74 | +/* Define to the full name and version of this package. */ | |
| 75 | +#undef PACKAGE_STRING | |
| 76 | + | |
| 77 | +/* Define to the one symbol short name of this package. */ | |
| 78 | +#undef PACKAGE_TARNAME | |
| 79 | + | |
| 80 | +/* Define to the home page for this package. */ | |
| 81 | +#undef PACKAGE_URL | |
| 82 | + | |
| 83 | +/* Define to the version of this package. */ | |
| 84 | +#undef PACKAGE_VERSION | |
| 85 | + | |
| 86 | +/* Support Broadcom 56820 reference platform */ | |
| 87 | +#undef SCORREF | |
| 88 | + | |
| 89 | +/* Define to 1 if you have the ANSI C header files. */ | |
| 90 | +#undef STDC_HEADERS | |
| 91 | + | |
| 92 | +/* Support Broadcom 56634 reference platform */ | |
| 93 | +#undef T2REF | |
| 94 | + | |
| 95 | +/* Enable extensions on AIX 3, Interix. */ | |
| 96 | +#ifndef _ALL_SOURCE | |
| 97 | +# undef _ALL_SOURCE | |
| 98 | +#endif | |
| 99 | +/* Enable GNU extensions on systems that have them. */ | |
| 100 | +#ifndef _GNU_SOURCE | |
| 101 | +# undef _GNU_SOURCE | |
| 102 | +#endif | |
| 103 | +/* Enable threading extensions on Solaris. */ | |
| 104 | +#ifndef _POSIX_PTHREAD_SEMANTICS | |
| 105 | +# undef _POSIX_PTHREAD_SEMANTICS | |
| 106 | +#endif | |
| 107 | +/* Enable extensions on HP NonStop. */ | |
| 108 | +#ifndef _TANDEM_SOURCE | |
| 109 | +# undef _TANDEM_SOURCE | |
| 110 | +#endif | |
| 111 | +/* Enable general extensions on Solaris. */ | |
| 112 | +#ifndef __EXTENSIONS__ | |
| 113 | +# undef __EXTENSIONS__ | |
| 114 | +#endif | |
| 115 | + | |
| 116 | + | |
| 117 | +/* Version number of package */ | |
| 118 | +#undef VERSION | |
| 119 | + | |
| 120 | +/* Enable large inode numbers on Mac OS X 10.5. */ | |
| 121 | +#ifndef _DARWIN_USE_64_BIT_INODE | |
| 122 | +# define _DARWIN_USE_64_BIT_INODE 1 | |
| 123 | +#endif | |
| 124 | + | |
| 125 | +/* Number of bits in a file offset, on hosts where this is settable. */ | |
| 126 | +#undef _FILE_OFFSET_BITS | |
| 127 | + | |
| 128 | +/* Define for large files, on AIX-style hosts. */ | |
| 129 | +#undef _LARGE_FILES | |
| 130 | + | |
| 131 | +/* Define to 1 if on MINIX. */ | |
| 132 | +#undef _MINIX | |
| 133 | + | |
| 134 | +/* Define to 2 if the system does not provide POSIX.1 features except with | |
| 135 | + this defined. */ | |
| 136 | +#undef _POSIX_1_SOURCE | |
| 137 | + | |
| 138 | +/* Define to 1 if you need to in order for `stat' and other things to work. */ | |
| 139 | +#undef _POSIX_SOURCE | ... | ... |
config.log
0 → 100755
| 1 | +This file contains any messages produced by compilers while | |
| 2 | +running configure, to aid debugging if configure makes a mistake. | |
| 3 | + | |
| 4 | +It was created by openflow configure 1.0.0, which was | |
| 5 | +generated by GNU Autoconf 2.69. Invocation command line was | |
| 6 | + | |
| 7 | + $ ./configure --no-create --no-recursion | |
| 8 | + | |
| 9 | +## --------- ## | |
| 10 | +## Platform. ## | |
| 11 | +## --------- ## | |
| 12 | + | |
| 13 | +hostname = akatosh-ISE | |
| 14 | +uname -m = x86_64 | |
| 15 | +uname -r = 3.13.0-29-generic | |
| 16 | +uname -s = Linux | |
| 17 | +uname -v = #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 | |
| 18 | + | |
| 19 | +/usr/bin/uname -p = unknown | |
| 20 | +/bin/uname -X = unknown | |
| 21 | + | |
| 22 | +/bin/arch = unknown | |
| 23 | +/usr/bin/arch -k = unknown | |
| 24 | +/usr/convex/getsysinfo = unknown | |
| 25 | +/usr/bin/hostinfo = unknown | |
| 26 | +/bin/machine = unknown | |
| 27 | +/usr/bin/oslevel = unknown | |
| 28 | +/bin/universe = unknown | |
| 29 | + | |
| 30 | +PATH: /usr/local/sbin | |
| 31 | +PATH: /usr/local/bin | |
| 32 | +PATH: /usr/sbin | |
| 33 | +PATH: /usr/bin | |
| 34 | +PATH: /sbin | |
| 35 | +PATH: /bin | |
| 36 | + | |
| 37 | + | |
| 38 | +## ----------- ## | |
| 39 | +## Core tests. ## | |
| 40 | +## ----------- ## | |
| 41 | + | |
| 42 | +configure:2230: checking build number | |
| 43 | +configure:2246: result: none | |
| 44 | +configure:2308: checking for a BSD-compatible install | |
| 45 | +configure:2376: result: /usr/bin/install -c | |
| 46 | +configure:2387: checking whether build environment is sane | |
| 47 | +configure:2442: result: yes | |
| 48 | +configure:2593: checking for a thread-safe mkdir -p | |
| 49 | +configure:2632: result: /bin/mkdir -p | |
| 50 | +configure:2639: checking for gawk | |
| 51 | +configure:2655: found /usr/bin/gawk | |
| 52 | +configure:2666: result: gawk | |
| 53 | +configure:2677: checking whether make sets $(MAKE) | |
| 54 | +configure:2699: result: yes | |
| 55 | +configure:2728: checking whether make supports nested variables | |
| 56 | +configure:2745: result: yes | |
| 57 | +configure:2919: checking for gcc | |
| 58 | +configure:2935: found /usr/bin/gcc | |
| 59 | +configure:2946: result: gcc | |
| 60 | +configure:3175: checking for C compiler version | |
| 61 | +configure:3184: gcc --version >&5 | |
| 62 | +gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 | |
| 63 | +Copyright (C) 2013 Free Software Foundation, Inc. | |
| 64 | +This is free software; see the source for copying conditions. There is NO | |
| 65 | +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 66 | + | |
| 67 | +configure:3195: $? = 0 | |
| 68 | +configure:3184: gcc -v >&5 | |
| 69 | +Using built-in specs. | |
| 70 | +COLLECT_GCC=gcc | |
| 71 | +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper | |
| 72 | +Target: x86_64-linux-gnu | |
| 73 | +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu | |
| 74 | +Thread model: posix | |
| 75 | +gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) | |
| 76 | +configure:3195: $? = 0 | |
| 77 | +configure:3184: gcc -V >&5 | |
| 78 | +gcc: error: unrecognized command line option '-V' | |
| 79 | +gcc: fatal error: no input files | |
| 80 | +compilation terminated. | |
| 81 | +configure:3195: $? = 4 | |
| 82 | +configure:3184: gcc -qversion >&5 | |
| 83 | +gcc: error: unrecognized command line option '-qversion' | |
| 84 | +gcc: fatal error: no input files | |
| 85 | +compilation terminated. | |
| 86 | +configure:3195: $? = 4 | |
| 87 | +configure:3215: checking whether the C compiler works | |
| 88 | +configure:3237: gcc conftest.c >&5 | |
| 89 | +configure:3241: $? = 0 | |
| 90 | +configure:3289: result: yes | |
| 91 | +configure:3292: checking for C compiler default output file name | |
| 92 | +configure:3294: result: a.out | |
| 93 | +configure:3300: checking for suffix of executables | |
| 94 | +configure:3307: gcc -o conftest conftest.c >&5 | |
| 95 | +configure:3311: $? = 0 | |
| 96 | +configure:3333: result: | |
| 97 | +configure:3355: checking whether we are cross compiling | |
| 98 | +configure:3363: gcc -o conftest conftest.c >&5 | |
| 99 | +configure:3367: $? = 0 | |
| 100 | +configure:3374: ./conftest | |
| 101 | +configure:3378: $? = 0 | |
| 102 | +configure:3393: result: no | |
| 103 | +configure:3398: checking for suffix of object files | |
| 104 | +configure:3420: gcc -c conftest.c >&5 | |
| 105 | +configure:3424: $? = 0 | |
| 106 | +configure:3445: result: o | |
| 107 | +configure:3449: checking whether we are using the GNU C compiler | |
| 108 | +configure:3468: gcc -c conftest.c >&5 | |
| 109 | +configure:3468: $? = 0 | |
| 110 | +configure:3477: result: yes | |
| 111 | +configure:3486: checking whether gcc accepts -g | |
| 112 | +configure:3506: gcc -c -g conftest.c >&5 | |
| 113 | +configure:3506: $? = 0 | |
| 114 | +configure:3547: result: yes | |
| 115 | +configure:3564: checking for gcc option to accept ISO C89 | |
| 116 | +configure:3627: gcc -c -g -O2 conftest.c >&5 | |
| 117 | +configure:3627: $? = 0 | |
| 118 | +configure:3640: result: none needed | |
| 119 | +configure:3665: checking whether gcc understands -c and -o together | |
| 120 | +configure:3687: gcc -c conftest.c -o conftest2.o | |
| 121 | +configure:3690: $? = 0 | |
| 122 | +configure:3687: gcc -c conftest.c -o conftest2.o | |
| 123 | +configure:3690: $? = 0 | |
| 124 | +configure:3702: result: yes | |
| 125 | +configure:3730: checking for style of include used by make | |
| 126 | +configure:3758: result: GNU | |
| 127 | +configure:3784: checking dependency style of gcc | |
| 128 | +configure:3895: result: gcc3 | |
| 129 | +configure:3916: checking how to run the C preprocessor | |
| 130 | +configure:3947: gcc -E conftest.c | |
| 131 | +configure:3947: $? = 0 | |
| 132 | +configure:3961: gcc -E conftest.c | |
| 133 | +conftest.c:12:28: fatal error: ac_nonexistent.h: No such file or directory | |
| 134 | + #include <ac_nonexistent.h> | |
| 135 | + ^ | |
| 136 | +compilation terminated. | |
| 137 | +configure:3961: $? = 1 | |
| 138 | +configure: failed program was: | |
| 139 | +| /* confdefs.h */ | |
| 140 | +| #define PACKAGE_NAME "openflow" | |
| 141 | +| #define PACKAGE_TARNAME "openflow" | |
| 142 | +| #define PACKAGE_VERSION "1.0.0" | |
| 143 | +| #define PACKAGE_STRING "openflow 1.0.0" | |
| 144 | +| #define PACKAGE_BUGREPORT "openflow-discuss@openflowswitch.org" | |
| 145 | +| #define PACKAGE_URL "" | |
| 146 | +| #define BUILDNR "" | |
| 147 | +| #define PACKAGE "openflow" | |
| 148 | +| #define VERSION "1.0.0" | |
| 149 | +| /* end confdefs.h. */ | |
| 150 | +| #include <ac_nonexistent.h> | |
| 151 | +configure:3986: result: gcc -E | |
| 152 | +configure:4006: gcc -E conftest.c | |
| 153 | +configure:4006: $? = 0 | |
| 154 | +configure:4020: gcc -E conftest.c | |
| 155 | +conftest.c:12:28: fatal error: ac_nonexistent.h: No such file or directory | |
| 156 | + #include <ac_nonexistent.h> | |
| 157 | + ^ | |
| 158 | +compilation terminated. | |
| 159 | +configure:4020: $? = 1 | |
| 160 | +configure: failed program was: | |
| 161 | +| /* confdefs.h */ | |
| 162 | +| #define PACKAGE_NAME "openflow" | |
| 163 | +| #define PACKAGE_TARNAME "openflow" | |
| 164 | +| #define PACKAGE_VERSION "1.0.0" | |
| 165 | +| #define PACKAGE_STRING "openflow 1.0.0" | |
| 166 | +| #define PACKAGE_BUGREPORT "openflow-discuss@openflowswitch.org" | |
| 167 | +| #define PACKAGE_URL "" | |
| 168 | +| #define BUILDNR "" | |
| 169 | +| #define PACKAGE "openflow" | |
| 170 | +| #define VERSION "1.0.0" | |
| 171 | +| /* end confdefs.h. */ | |
| 172 | +| #include <ac_nonexistent.h> | |
| 173 | +configure:4091: checking for ranlib | |
| 174 | +configure:4107: found /usr/bin/ranlib | |
| 175 | +configure:4118: result: ranlib | |
| 176 | +configure:4145: checking for perl | |
| 177 | +configure:4163: found /usr/bin/perl | |
| 178 | +configure:4176: result: /usr/bin/perl | |
| 179 | +configure:4190: checking for grep that handles long lines and -e | |
| 180 | +configure:4248: result: /bin/grep | |
| 181 | +configure:4253: checking for egrep | |
| 182 | +configure:4315: result: /bin/grep -E | |
| 183 | +configure:4320: checking for ANSI C header files | |
| 184 | +configure:4340: gcc -c -g -O2 conftest.c >&5 | |
| 185 | +configure:4340: $? = 0 | |
| 186 | +configure:4413: gcc -o conftest -g -O2 conftest.c >&5 | |
| 187 | +configure:4413: $? = 0 | |
| 188 | +configure:4413: ./conftest | |
| 189 | +configure:4413: $? = 0 | |
| 190 | +configure:4424: result: yes | |
| 191 | +configure:4437: checking for sys/types.h | |
| 192 | +configure:4437: gcc -c -g -O2 conftest.c >&5 | |
| 193 | +configure:4437: $? = 0 | |
| 194 | +configure:4437: result: yes | |
| 195 | +configure:4437: checking for sys/stat.h | |
| 196 | +configure:4437: gcc -c -g -O2 conftest.c >&5 | |
| 197 | +configure:4437: $? = 0 | |
| 198 | +configure:4437: result: yes | |
| 199 | +configure:4437: checking for stdlib.h | |
| 200 | +configure:4437: gcc -c -g -O2 conftest.c >&5 | |
| 201 | +configure:4437: $? = 0 | |
| 202 | +configure:4437: result: yes | |
| 203 | +configure:4437: checking for string.h | |
| 204 | +configure:4437: gcc -c -g -O2 conftest.c >&5 | |
| 205 | +configure:4437: $? = 0 | |
| 206 | +configure:4437: result: yes | |
| 207 | +configure:4437: checking for memory.h | |
| 208 | +configure:4437: gcc -c -g -O2 conftest.c >&5 | |
| 209 | +configure:4437: $? = 0 | |
| 210 | +configure:4437: result: yes | |
| 211 | +configure:4437: checking for strings.h | |
| 212 | +configure:4437: gcc -c -g -O2 conftest.c >&5 | |
| 213 | +configure:4437: $? = 0 | |
| 214 | +configure:4437: result: yes | |
| 215 | +configure:4437: checking for inttypes.h | |
| 216 | +configure:4437: gcc -c -g -O2 conftest.c >&5 | |
| 217 | +configure:4437: $? = 0 | |
| 218 | +configure:4437: result: yes | |
| 219 | +configure:4437: checking for stdint.h | |
| 220 | +configure:4437: gcc -c -g -O2 conftest.c >&5 | |
| 221 | +configure:4437: $? = 0 | |
| 222 | +configure:4437: result: yes | |
| 223 | +configure:4437: checking for unistd.h | |
| 224 | +configure:4437: gcc -c -g -O2 conftest.c >&5 | |
| 225 | +configure:4437: $? = 0 | |
| 226 | +configure:4437: result: yes | |
| 227 | +configure:4450: checking minix/config.h usability | |
| 228 | +configure:4450: gcc -c -g -O2 conftest.c >&5 | |
| 229 | +conftest.c:55:26: fatal error: minix/config.h: No such file or directory | |
| 230 | + #include <minix/config.h> | |
| 231 | + ^ | |
| 232 | +compilation terminated. | |
| 233 | +configure:4450: $? = 1 | |
| 234 | +configure: failed program was: | |
| 235 | +| /* confdefs.h */ | |
| 236 | +| #define PACKAGE_NAME "openflow" | |
| 237 | +| #define PACKAGE_TARNAME "openflow" | |
| 238 | +| #define PACKAGE_VERSION "1.0.0" | |
| 239 | +| #define PACKAGE_STRING "openflow 1.0.0" | |
| 240 | +| #define PACKAGE_BUGREPORT "openflow-discuss@openflowswitch.org" | |
| 241 | +| #define PACKAGE_URL "" | |
| 242 | +| #define BUILDNR "" | |
| 243 | +| #define PACKAGE "openflow" | |
| 244 | +| #define VERSION "1.0.0" | |
| 245 | +| #define STDC_HEADERS 1 | |
| 246 | +| #define HAVE_SYS_TYPES_H 1 | |
| 247 | +| #define HAVE_SYS_STAT_H 1 | |
| 248 | +| #define HAVE_STDLIB_H 1 | |
| 249 | +| #define HAVE_STRING_H 1 | |
| 250 | +| #define HAVE_MEMORY_H 1 | |
| 251 | +| #define HAVE_STRINGS_H 1 | |
| 252 | +| #define HAVE_INTTYPES_H 1 | |
| 253 | +| #define HAVE_STDINT_H 1 | |
| 254 | +| #define HAVE_UNISTD_H 1 | |
| 255 | +| /* end confdefs.h. */ | |
| 256 | +| #include <stdio.h> | |
| 257 | +| #ifdef HAVE_SYS_TYPES_H | |
| 258 | +| # include <sys/types.h> | |
| 259 | +| #endif | |
| 260 | +| #ifdef HAVE_SYS_STAT_H | |
| 261 | +| # include <sys/stat.h> | |
| 262 | +| #endif | |
| 263 | +| #ifdef STDC_HEADERS | |
| 264 | +| # include <stdlib.h> | |
| 265 | +| # include <stddef.h> | |
| 266 | +| #else | |
| 267 | +| # ifdef HAVE_STDLIB_H | |
| 268 | +| # include <stdlib.h> | |
| 269 | +| # endif | |
| 270 | +| #endif | |
| 271 | +| #ifdef HAVE_STRING_H | |
| 272 | +| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
| 273 | +| # include <memory.h> | |
| 274 | +| # endif | |
| 275 | +| # include <string.h> | |
| 276 | +| #endif | |
| 277 | +| #ifdef HAVE_STRINGS_H | |
| 278 | +| # include <strings.h> | |
| 279 | +| #endif | |
| 280 | +| #ifdef HAVE_INTTYPES_H | |
| 281 | +| # include <inttypes.h> | |
| 282 | +| #endif | |
| 283 | +| #ifdef HAVE_STDINT_H | |
| 284 | +| # include <stdint.h> | |
| 285 | +| #endif | |
| 286 | +| #ifdef HAVE_UNISTD_H | |
| 287 | +| # include <unistd.h> | |
| 288 | +| #endif | |
| 289 | +| #include <minix/config.h> | |
| 290 | +configure:4450: result: no | |
| 291 | +configure:4450: checking minix/config.h presence | |
| 292 | +configure:4450: gcc -E conftest.c | |
| 293 | +conftest.c:22:26: fatal error: minix/config.h: No such file or directory | |
| 294 | + #include <minix/config.h> | |
| 295 | + ^ | |
| 296 | +compilation terminated. | |
| 297 | +configure:4450: $? = 1 | |
| 298 | +configure: failed program was: | |
| 299 | +| /* confdefs.h */ | |
| 300 | +| #define PACKAGE_NAME "openflow" | |
| 301 | +| #define PACKAGE_TARNAME "openflow" | |
| 302 | +| #define PACKAGE_VERSION "1.0.0" | |
| 303 | +| #define PACKAGE_STRING "openflow 1.0.0" | |
| 304 | +| #define PACKAGE_BUGREPORT "openflow-discuss@openflowswitch.org" | |
| 305 | +| #define PACKAGE_URL "" | |
| 306 | +| #define BUILDNR "" | |
| 307 | +| #define PACKAGE "openflow" | |
| 308 | +| #define VERSION "1.0.0" | |
| 309 | +| #define STDC_HEADERS 1 | |
| 310 | +| #define HAVE_SYS_TYPES_H 1 | |
| 311 | +| #define HAVE_SYS_STAT_H 1 | |
| 312 | +| #define HAVE_STDLIB_H 1 | |
| 313 | +| #define HAVE_STRING_H 1 | |
| 314 | +| #define HAVE_MEMORY_H 1 | |
| 315 | +| #define HAVE_STRINGS_H 1 | |
| 316 | +| #define HAVE_INTTYPES_H 1 | |
| 317 | +| #define HAVE_STDINT_H 1 | |
| 318 | +| #define HAVE_UNISTD_H 1 | |
| 319 | +| /* end confdefs.h. */ | |
| 320 | +| #include <minix/config.h> | |
| 321 | +configure:4450: result: no | |
| 322 | +configure:4450: checking for minix/config.h | |
| 323 | +configure:4450: result: no | |
| 324 | +configure:4471: checking whether it is safe to define __EXTENSIONS__ | |
| 325 | +configure:4489: gcc -c -g -O2 conftest.c >&5 | |
| 326 | +configure:4489: $? = 0 | |
| 327 | +configure:4496: result: yes | |
| 328 | +configure:4529: checking for linux/netlink.h | |
| 329 | +configure:4529: gcc -c -g -O2 conftest.c >&5 | |
| 330 | +configure:4529: $? = 0 | |
| 331 | +configure:4529: result: yes | |
| 332 | +configure:4607: checking for pkg-config | |
| 333 | +configure:4625: found /usr/bin/pkg-config | |
| 334 | +configure:4637: result: /usr/bin/pkg-config | |
| 335 | +configure:4662: checking pkg-config is at least version 0.9.0 | |
| 336 | +configure:4665: result: yes | |
| 337 | +configure:4793: checking for dladdr in -ldl | |
| 338 | +configure:4818: gcc -o conftest -g -O2 conftest.c -ldl >&5 | |
| 339 | +configure:4818: $? = 0 | |
| 340 | +configure:4827: result: yes | |
| 341 | +configure:4834: checking for connect in -lsocket | |
| 342 | +configure:4859: gcc -o conftest -g -O2 conftest.c -lsocket >&5 | |
| 343 | +/usr/bin/ld: cannot find -lsocket | |
| 344 | +collect2: error: ld returned 1 exit status | |
| 345 | +configure:4859: $? = 1 | |
| 346 | +configure: failed program was: | |
| 347 | +| /* confdefs.h */ | |
| 348 | +| #define PACKAGE_NAME "openflow" | |
| 349 | +| #define PACKAGE_TARNAME "openflow" | |
| 350 | +| #define PACKAGE_VERSION "1.0.0" | |
| 351 | +| #define PACKAGE_STRING "openflow 1.0.0" | |
| 352 | +| #define PACKAGE_BUGREPORT "openflow-discuss@openflowswitch.org" | |
| 353 | +| #define PACKAGE_URL "" | |
| 354 | +| #define BUILDNR "" | |
| 355 | +| #define PACKAGE "openflow" | |
| 356 | +| #define VERSION "1.0.0" | |
| 357 | +| #define STDC_HEADERS 1 | |
| 358 | +| #define HAVE_SYS_TYPES_H 1 | |
| 359 | +| #define HAVE_SYS_STAT_H 1 | |
| 360 | +| #define HAVE_STDLIB_H 1 | |
| 361 | +| #define HAVE_STRING_H 1 | |
| 362 | +| #define HAVE_MEMORY_H 1 | |
| 363 | +| #define HAVE_STRINGS_H 1 | |
| 364 | +| #define HAVE_INTTYPES_H 1 | |
| 365 | +| #define HAVE_STDINT_H 1 | |
| 366 | +| #define HAVE_UNISTD_H 1 | |
| 367 | +| #define __EXTENSIONS__ 1 | |
| 368 | +| #define _ALL_SOURCE 1 | |
| 369 | +| #define _GNU_SOURCE 1 | |
| 370 | +| #define _POSIX_PTHREAD_SEMANTICS 1 | |
| 371 | +| #define _TANDEM_SOURCE 1 | |
| 372 | +| #define HAVE_NETLINK 1 | |
| 373 | +| /* end confdefs.h. */ | |
| 374 | +| | |
| 375 | +| /* Override any GCC internal prototype to avoid an error. | |
| 376 | +| Use char because int might match the return type of a GCC | |
| 377 | +| builtin and then its argument prototype would still apply. */ | |
| 378 | +| #ifdef __cplusplus | |
| 379 | +| extern "C" | |
| 380 | +| #endif | |
| 381 | +| char connect (); | |
| 382 | +| int | |
| 383 | +| main () | |
| 384 | +| { | |
| 385 | +| return connect (); | |
| 386 | +| ; | |
| 387 | +| return 0; | |
| 388 | +| } | |
| 389 | +configure:4868: result: no | |
| 390 | +configure:4879: checking for library containing gethostbyname | |
| 391 | +configure:4910: gcc -o conftest -g -O2 conftest.c >&5 | |
| 392 | +configure:4910: $? = 0 | |
| 393 | +configure:4927: result: none required | |
| 394 | +configure:4962: checking whether libc supports hooks for malloc and related functions | |
| 395 | +configure:4981: gcc -c -g -O2 conftest.c >&5 | |
| 396 | +conftest.c: In function 'main': | |
| 397 | +conftest.c:33:1: warning: '__malloc_hook' is deprecated (declared at /usr/include/malloc.h:153) [-Wdeprecated-declarations] | |
| 398 | + (void) __malloc_hook; | |
| 399 | + ^ | |
| 400 | +conftest.c:34:11: warning: '__realloc_hook' is deprecated (declared at /usr/include/malloc.h:156) [-Wdeprecated-declarations] | |
| 401 | + (void) __realloc_hook; | |
| 402 | + ^ | |
| 403 | +conftest.c:35:11: warning: '__free_hook' is deprecated (declared at /usr/include/malloc.h:150) [-Wdeprecated-declarations] | |
| 404 | + (void) __free_hook; | |
| 405 | + ^ | |
| 406 | +configure:4981: $? = 0 | |
| 407 | +configure:4988: result: yes | |
| 408 | +configure:5007: checking for strlcpy | |
| 409 | +configure:5007: gcc -o conftest -g -O2 conftest.c >&5 | |
| 410 | +/tmp/ccHISI71.o: In function `main': | |
| 411 | +/home/akatosh/voip-of/conftest.c:63: undefined reference to `strlcpy' | |
| 412 | +collect2: error: ld returned 1 exit status | |
| 413 | +configure:5007: $? = 1 | |
| 414 | +configure: failed program was: | |
| 415 | +| /* confdefs.h */ | |
| 416 | +| #define PACKAGE_NAME "openflow" | |
| 417 | +| #define PACKAGE_TARNAME "openflow" | |
| 418 | +| #define PACKAGE_VERSION "1.0.0" | |
| 419 | +| #define PACKAGE_STRING "openflow 1.0.0" | |
| 420 | +| #define PACKAGE_BUGREPORT "openflow-discuss@openflowswitch.org" | |
| 421 | +| #define PACKAGE_URL "" | |
| 422 | +| #define BUILDNR "" | |
| 423 | +| #define PACKAGE "openflow" | |
| 424 | +| #define VERSION "1.0.0" | |
| 425 | +| #define STDC_HEADERS 1 | |
| 426 | +| #define HAVE_SYS_TYPES_H 1 | |
| 427 | +| #define HAVE_SYS_STAT_H 1 | |
| 428 | +| #define HAVE_STDLIB_H 1 | |
| 429 | +| #define HAVE_STRING_H 1 | |
| 430 | +| #define HAVE_MEMORY_H 1 | |
| 431 | +| #define HAVE_STRINGS_H 1 | |
| 432 | +| #define HAVE_INTTYPES_H 1 | |
| 433 | +| #define HAVE_STDINT_H 1 | |
| 434 | +| #define HAVE_UNISTD_H 1 | |
| 435 | +| #define __EXTENSIONS__ 1 | |
| 436 | +| #define _ALL_SOURCE 1 | |
| 437 | +| #define _GNU_SOURCE 1 | |
| 438 | +| #define _POSIX_PTHREAD_SEMANTICS 1 | |
| 439 | +| #define _TANDEM_SOURCE 1 | |
| 440 | +| #define HAVE_NETLINK 1 | |
| 441 | +| #define HAVE_MALLOC_HOOKS 1 | |
| 442 | +| /* end confdefs.h. */ | |
| 443 | +| /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy. | |
| 444 | +| For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
| 445 | +| #define strlcpy innocuous_strlcpy | |
| 446 | +| | |
| 447 | +| /* System header to define __stub macros and hopefully few prototypes, | |
| 448 | +| which can conflict with char strlcpy (); below. | |
| 449 | +| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
| 450 | +| <limits.h> exists even on freestanding compilers. */ | |
| 451 | +| | |
| 452 | +| #ifdef __STDC__ | |
| 453 | +| # include <limits.h> | |
| 454 | +| #else | |
| 455 | +| # include <assert.h> | |
| 456 | +| #endif | |
| 457 | +| | |
| 458 | +| #undef strlcpy | |
| 459 | +| | |
| 460 | +| /* Override any GCC internal prototype to avoid an error. | |
| 461 | +| Use char because int might match the return type of a GCC | |
| 462 | +| builtin and then its argument prototype would still apply. */ | |
| 463 | +| #ifdef __cplusplus | |
| 464 | +| extern "C" | |
| 465 | +| #endif | |
| 466 | +| char strlcpy (); | |
| 467 | +| /* The GNU C library defines this for functions which it implements | |
| 468 | +| to always fail with ENOSYS. Some functions are actually named | |
| 469 | +| something starting with __ and the normal name is an alias. */ | |
| 470 | +| #if defined __stub_strlcpy || defined __stub___strlcpy | |
| 471 | +| choke me | |
| 472 | +| #endif | |
| 473 | +| | |
| 474 | +| int | |
| 475 | +| main () | |
| 476 | +| { | |
| 477 | +| return strlcpy (); | |
| 478 | +| ; | |
| 479 | +| return 0; | |
| 480 | +| } | |
| 481 | +configure:5007: result: no | |
| 482 | +configure:5016: checking net/if_packet.h usability | |
| 483 | +configure:5016: gcc -c -g -O2 conftest.c >&5 | |
| 484 | +configure:5016: $? = 0 | |
| 485 | +configure:5016: result: yes | |
| 486 | +configure:5016: checking net/if_packet.h presence | |
| 487 | +configure:5016: gcc -E conftest.c | |
| 488 | +configure:5016: $? = 0 | |
| 489 | +configure:5016: result: yes | |
| 490 | +configure:5016: checking for net/if_packet.h | |
| 491 | +configure:5016: result: yes | |
| 492 | +configure:5193: checking for special C compiler options needed for large files | |
| 493 | +configure:5238: result: no | |
| 494 | +configure:5244: checking for _FILE_OFFSET_BITS value needed for large files | |
| 495 | +configure:5269: gcc -c -g -O2 conftest.c >&5 | |
| 496 | +configure:5269: $? = 0 | |
| 497 | +configure:5301: result: no | |
| 498 | +configure:5389: checking for strsignal | |
| 499 | +configure:5389: gcc -o conftest -g -O2 conftest.c >&5 | |
| 500 | +configure:5389: $? = 0 | |
| 501 | +configure:5389: result: yes | |
| 502 | +configure:5405: checking for dpkg-buildpackage | |
| 503 | +configure:5421: found /usr/bin/dpkg-buildpackage | |
| 504 | +configure:5433: result: yes | |
| 505 | +configure:5451: checking whether gcc accepts -Wall | |
| 506 | +configure:5469: gcc -c -g -O2 -Wall conftest.c >&5 | |
| 507 | +configure:5469: $? = 0 | |
| 508 | +configure:5477: result: yes | |
| 509 | +configure:5486: checking whether gcc accepts -Wno-sign-compare | |
| 510 | +configure:5504: gcc -c -g -O2 -Wall -Wno-sign-compare conftest.c >&5 | |
| 511 | +configure:5504: $? = 0 | |
| 512 | +configure:5512: result: yes | |
| 513 | +configure:5521: checking whether gcc accepts -Wpointer-arith | |
| 514 | +configure:5539: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith conftest.c >&5 | |
| 515 | +configure:5539: $? = 0 | |
| 516 | +configure:5547: result: yes | |
| 517 | +configure:5556: checking whether gcc accepts -Wdeclaration-after-statement | |
| 518 | +configure:5574: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement conftest.c >&5 | |
| 519 | +configure:5574: $? = 0 | |
| 520 | +configure:5582: result: yes | |
| 521 | +configure:5591: checking whether gcc accepts -Wformat-security | |
| 522 | +configure:5609: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security conftest.c >&5 | |
| 523 | +configure:5609: $? = 0 | |
| 524 | +configure:5617: result: yes | |
| 525 | +configure:5626: checking whether gcc accepts -Wswitch-enum | |
| 526 | +configure:5644: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum conftest.c >&5 | |
| 527 | +configure:5644: $? = 0 | |
| 528 | +configure:5652: result: yes | |
| 529 | +configure:5661: checking whether gcc accepts -Wunused-parameter | |
| 530 | +configure:5679: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter conftest.c >&5 | |
| 531 | +configure:5679: $? = 0 | |
| 532 | +configure:5687: result: yes | |
| 533 | +configure:5696: checking whether gcc accepts -Wstrict-aliasing | |
| 534 | +configure:5714: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing conftest.c >&5 | |
| 535 | +configure:5714: $? = 0 | |
| 536 | +configure:5722: result: yes | |
| 537 | +configure:5731: checking whether gcc accepts -Wbad-function-cast | |
| 538 | +configure:5749: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast conftest.c >&5 | |
| 539 | +configure:5749: $? = 0 | |
| 540 | +configure:5757: result: yes | |
| 541 | +configure:5766: checking whether gcc accepts -Wcast-align | |
| 542 | +configure:5784: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align conftest.c >&5 | |
| 543 | +configure:5784: $? = 0 | |
| 544 | +configure:5792: result: yes | |
| 545 | +configure:5801: checking whether gcc accepts -Wstrict-prototypes | |
| 546 | +configure:5819: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wstrict-prototypes conftest.c >&5 | |
| 547 | +conftest.c:33:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] | |
| 548 | + main () | |
| 549 | + ^ | |
| 550 | +configure:5819: $? = 0 | |
| 551 | +configure:5827: result: yes | |
| 552 | +configure:5836: checking whether gcc accepts -Wold-style-definition | |
| 553 | +configure:5854: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition conftest.c >&5 | |
| 554 | +conftest.c:33:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] | |
| 555 | + main () | |
| 556 | + ^ | |
| 557 | +conftest.c: In function 'main': | |
| 558 | +conftest.c:33:1: warning: old-style function definition [-Wold-style-definition] | |
| 559 | +configure:5854: $? = 0 | |
| 560 | +configure:5862: result: yes | |
| 561 | +configure:5871: checking whether gcc accepts -Wmissing-prototypes | |
| 562 | +configure:5889: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes conftest.c >&5 | |
| 563 | +conftest.c:33:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] | |
| 564 | + main () | |
| 565 | + ^ | |
| 566 | +conftest.c: In function 'main': | |
| 567 | +conftest.c:33:1: warning: old-style function definition [-Wold-style-definition] | |
| 568 | +configure:5889: $? = 0 | |
| 569 | +configure:5897: result: yes | |
| 570 | +configure:5906: checking whether gcc accepts -Wmissing-field-initializers | |
| 571 | +configure:5924: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers conftest.c >&5 | |
| 572 | +conftest.c:33:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] | |
| 573 | + main () | |
| 574 | + ^ | |
| 575 | +conftest.c: In function 'main': | |
| 576 | +conftest.c:33:1: warning: old-style function definition [-Wold-style-definition] | |
| 577 | +configure:5924: $? = 0 | |
| 578 | +configure:5932: result: yes | |
| 579 | +configure:5941: checking whether gcc accepts -Wno-override-init | |
| 580 | +configure:5959: gcc -c -g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers -Wno-override-init conftest.c >&5 | |
| 581 | +conftest.c:33:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] | |
| 582 | + main () | |
| 583 | + ^ | |
| 584 | +conftest.c: In function 'main': | |
| 585 | +conftest.c:33:1: warning: old-style function definition [-Wold-style-definition] | |
| 586 | +configure:5959: $? = 0 | |
| 587 | +configure:5967: result: yes | |
| 588 | +configure:6095: checking that generated files are newer than configure | |
| 589 | +configure:6101: result: done | |
| 590 | +configure:6164: creating ./config.status | |
| 591 | + | |
| 592 | +## ---------------- ## | |
| 593 | +## Cache variables. ## | |
| 594 | +## ---------------- ## | |
| 595 | + | |
| 596 | +ac_cv_c_compiler_gnu=yes | |
| 597 | +ac_cv_env_CC_set= | |
| 598 | +ac_cv_env_CC_value= | |
| 599 | +ac_cv_env_CFLAGS_set= | |
| 600 | +ac_cv_env_CFLAGS_value= | |
| 601 | +ac_cv_env_CPPFLAGS_set= | |
| 602 | +ac_cv_env_CPPFLAGS_value= | |
| 603 | +ac_cv_env_CPP_set= | |
| 604 | +ac_cv_env_CPP_value= | |
| 605 | +ac_cv_env_KARCH_set= | |
| 606 | +ac_cv_env_KARCH_value= | |
| 607 | +ac_cv_env_LDFLAGS_set= | |
| 608 | +ac_cv_env_LDFLAGS_value= | |
| 609 | +ac_cv_env_LIBS_set= | |
| 610 | +ac_cv_env_LIBS_value= | |
| 611 | +ac_cv_env_PERL_set= | |
| 612 | +ac_cv_env_PERL_value= | |
| 613 | +ac_cv_env_PKG_CONFIG_LIBDIR_set= | |
| 614 | +ac_cv_env_PKG_CONFIG_LIBDIR_value= | |
| 615 | +ac_cv_env_PKG_CONFIG_PATH_set= | |
| 616 | +ac_cv_env_PKG_CONFIG_PATH_value= | |
| 617 | +ac_cv_env_PKG_CONFIG_set= | |
| 618 | +ac_cv_env_PKG_CONFIG_value= | |
| 619 | +ac_cv_env_SSL_CFLAGS_set= | |
| 620 | +ac_cv_env_SSL_CFLAGS_value= | |
| 621 | +ac_cv_env_SSL_LIBS_set= | |
| 622 | +ac_cv_env_SSL_LIBS_value= | |
| 623 | +ac_cv_env_build_alias_set= | |
| 624 | +ac_cv_env_build_alias_value= | |
| 625 | +ac_cv_env_host_alias_set= | |
| 626 | +ac_cv_env_host_alias_value= | |
| 627 | +ac_cv_env_target_alias_set= | |
| 628 | +ac_cv_env_target_alias_value= | |
| 629 | +ac_cv_func_strlcpy=no | |
| 630 | +ac_cv_func_strsignal=yes | |
| 631 | +ac_cv_header_inttypes_h=yes | |
| 632 | +ac_cv_header_linux_netlink_h=yes | |
| 633 | +ac_cv_header_memory_h=yes | |
| 634 | +ac_cv_header_minix_config_h=no | |
| 635 | +ac_cv_header_net_if_packet_h=yes | |
| 636 | +ac_cv_header_stdc=yes | |
| 637 | +ac_cv_header_stdint_h=yes | |
| 638 | +ac_cv_header_stdlib_h=yes | |
| 639 | +ac_cv_header_string_h=yes | |
| 640 | +ac_cv_header_strings_h=yes | |
| 641 | +ac_cv_header_sys_stat_h=yes | |
| 642 | +ac_cv_header_sys_types_h=yes | |
| 643 | +ac_cv_header_unistd_h=yes | |
| 644 | +ac_cv_lib_dl_dladdr=yes | |
| 645 | +ac_cv_lib_socket_connect=no | |
| 646 | +ac_cv_objext=o | |
| 647 | +ac_cv_path_EGREP='/bin/grep -E' | |
| 648 | +ac_cv_path_GREP=/bin/grep | |
| 649 | +ac_cv_path_PERL=/usr/bin/perl | |
| 650 | +ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config | |
| 651 | +ac_cv_path_install='/usr/bin/install -c' | |
| 652 | +ac_cv_path_mkdir=/bin/mkdir | |
| 653 | +ac_cv_prog_AWK=gawk | |
| 654 | +ac_cv_prog_CPP='gcc -E' | |
| 655 | +ac_cv_prog_HAVE_DPKG_BUILDPACKAGE=yes | |
| 656 | +ac_cv_prog_ac_ct_CC=gcc | |
| 657 | +ac_cv_prog_ac_ct_RANLIB=ranlib | |
| 658 | +ac_cv_prog_cc_c89= | |
| 659 | +ac_cv_prog_cc_g=yes | |
| 660 | +ac_cv_prog_make_make_set=yes | |
| 661 | +ac_cv_safe_to_define___extensions__=yes | |
| 662 | +ac_cv_search_gethostbyname='none required' | |
| 663 | +ac_cv_sys_file_offset_bits=no | |
| 664 | +ac_cv_sys_largefile_CC=no | |
| 665 | +am_cv_CC_dependencies_compiler_type=gcc3 | |
| 666 | +am_cv_make_support_nested_variables=yes | |
| 667 | +am_cv_prog_cc_c_o=yes | |
| 668 | +ofp_cv__Wall=yes | |
| 669 | +ofp_cv__Wbad_function_cast=yes | |
| 670 | +ofp_cv__Wcast_align=yes | |
| 671 | +ofp_cv__Wdeclaration_after_statement=yes | |
| 672 | +ofp_cv__Wformat_security=yes | |
| 673 | +ofp_cv__Wmissing_field_initializers=yes | |
| 674 | +ofp_cv__Wmissing_prototypes=yes | |
| 675 | +ofp_cv__Wno_override_init=yes | |
| 676 | +ofp_cv__Wno_sign_compare=yes | |
| 677 | +ofp_cv__Wold_style_definition=yes | |
| 678 | +ofp_cv__Wpointer_arith=yes | |
| 679 | +ofp_cv__Wstrict_aliasing=yes | |
| 680 | +ofp_cv__Wstrict_prototypes=yes | |
| 681 | +ofp_cv__Wswitch_enum=yes | |
| 682 | +ofp_cv__Wunused_parameter=yes | |
| 683 | +ofp_cv_malloc_hooks=yes | |
| 684 | + | |
| 685 | +## ----------------- ## | |
| 686 | +## Output variables. ## | |
| 687 | +## ----------------- ## | |
| 688 | + | |
| 689 | +ACLOCAL='${SHELL} /home/akatosh/voip-of/build-aux/missing aclocal-1.14' | |
| 690 | +AMDEPBACKSLASH='\' | |
| 691 | +AMDEP_FALSE='#' | |
| 692 | +AMDEP_TRUE='' | |
| 693 | +AMTAR='$${TAR-tar}' | |
| 694 | +AM_BACKSLASH='\' | |
| 695 | +AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
| 696 | +AM_DEFAULT_VERBOSITY='1' | |
| 697 | +AM_V='$(V)' | |
| 698 | +AUTOCONF='${SHELL} /home/akatosh/voip-of/build-aux/missing autoconf' | |
| 699 | +AUTOHEADER='${SHELL} /home/akatosh/voip-of/build-aux/missing autoheader' | |
| 700 | +AUTOMAKE='${SHELL} /home/akatosh/voip-of/build-aux/missing automake-1.14' | |
| 701 | +AWK='gawk' | |
| 702 | +BUILDNR='0' | |
| 703 | +BUILD_HW_LIBS_FALSE='' | |
| 704 | +BUILD_HW_LIBS_TRUE='#' | |
| 705 | +CC='gcc' | |
| 706 | +CCDEPMODE='depmode=gcc3' | |
| 707 | +CFLAGS='-g -O2 -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers -Wno-override-init' | |
| 708 | +CPP='gcc -E' | |
| 709 | +CPPFLAGS='' | |
| 710 | +CYGPATH_W='echo' | |
| 711 | +DEFS='-DHAVE_CONFIG_H' | |
| 712 | +DEPDIR='.deps' | |
| 713 | +ECHO_C='' | |
| 714 | +ECHO_N='-n' | |
| 715 | +ECHO_T='' | |
| 716 | +EGREP='/bin/grep -E' | |
| 717 | +EXEEXT='' | |
| 718 | +FAULT_LIBS='-ldl' | |
| 719 | +GREP='/bin/grep' | |
| 720 | +HAVE_DPKG_BUILDPACKAGE='yes' | |
| 721 | +HAVE_DPKG_BUILDPACKAGE_FALSE='#' | |
| 722 | +HAVE_DPKG_BUILDPACKAGE_TRUE='' | |
| 723 | +HAVE_IF_PACKET_FALSE='#' | |
| 724 | +HAVE_IF_PACKET_TRUE='' | |
| 725 | +HAVE_NETLINK_FALSE='#' | |
| 726 | +HAVE_NETLINK_TRUE='' | |
| 727 | +HAVE_OPENSSL_FALSE='' | |
| 728 | +HAVE_OPENSSL_TRUE='#' | |
| 729 | +HW_LIB='' | |
| 730 | +HW_TABLES='' | |
| 731 | +INSTALL_DATA='${INSTALL} -m 644' | |
| 732 | +INSTALL_PROGRAM='${INSTALL}' | |
| 733 | +INSTALL_SCRIPT='${INSTALL}' | |
| 734 | +INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' | |
| 735 | +KARCH='' | |
| 736 | +LB4G_FALSE='' | |
| 737 | +LB4G_TRUE='#' | |
| 738 | +LDFLAGS='' | |
| 739 | +LIBOBJS='' | |
| 740 | +LIBS='' | |
| 741 | +LOGDIR='${localstatedir}/log/${PACKAGE}' | |
| 742 | +LTLIBOBJS='' | |
| 743 | +MAKEINFO='${SHELL} /home/akatosh/voip-of/build-aux/missing makeinfo' | |
| 744 | +MKDIR_P='/bin/mkdir -p' | |
| 745 | +NDEBUG_FALSE='' | |
| 746 | +NDEBUG_TRUE='#' | |
| 747 | +NF2_FALSE='' | |
| 748 | +NF2_TRUE='#' | |
| 749 | +OBJEXT='o' | |
| 750 | +PACKAGE='openflow' | |
| 751 | +PACKAGE_BUGREPORT='openflow-discuss@openflowswitch.org' | |
| 752 | +PACKAGE_NAME='openflow' | |
| 753 | +PACKAGE_STRING='openflow 1.0.0' | |
| 754 | +PACKAGE_TARNAME='openflow' | |
| 755 | +PACKAGE_URL='' | |
| 756 | +PACKAGE_VERSION='1.0.0' | |
| 757 | +PATH_SEPARATOR=':' | |
| 758 | +PERL='/usr/bin/perl' | |
| 759 | +PKG_CONFIG='/usr/bin/pkg-config' | |
| 760 | +PKG_CONFIG_LIBDIR='' | |
| 761 | +PKG_CONFIG_PATH='' | |
| 762 | +PKIDIR='${pkgdatadir}/pki' | |
| 763 | +RANLIB='ranlib' | |
| 764 | +RUNDIR='${localstatedir}/run' | |
| 765 | +SCORREF_FALSE='' | |
| 766 | +SCORREF_TRUE='#' | |
| 767 | +SET_MAKE='' | |
| 768 | +SHELL='/bin/bash' | |
| 769 | +SSL_CFLAGS='' | |
| 770 | +SSL_LIBS='' | |
| 771 | +STRIP='' | |
| 772 | +T2REF_FALSE='' | |
| 773 | +T2REF_TRUE='#' | |
| 774 | +VERSION='1.0.0' | |
| 775 | +ac_ct_CC='gcc' | |
| 776 | +am__EXEEXT_FALSE='' | |
| 777 | +am__EXEEXT_TRUE='#' | |
| 778 | +am__fastdepCC_FALSE='#' | |
| 779 | +am__fastdepCC_TRUE='' | |
| 780 | +am__include='include' | |
| 781 | +am__isrc='' | |
| 782 | +am__leading_dot='.' | |
| 783 | +am__nodep='_no' | |
| 784 | +am__quote='' | |
| 785 | +am__tar='$${TAR-tar} chof - "$$tardir"' | |
| 786 | +am__untar='$${TAR-tar} xf -' | |
| 787 | +bindir='${exec_prefix}/bin' | |
| 788 | +build_alias='' | |
| 789 | +datadir='${datarootdir}' | |
| 790 | +datarootdir='${prefix}/share' | |
| 791 | +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
| 792 | +dvidir='${docdir}' | |
| 793 | +exec_prefix='${prefix}' | |
| 794 | +host_alias='' | |
| 795 | +htmldir='${docdir}' | |
| 796 | +includedir='${prefix}/include' | |
| 797 | +infodir='${datarootdir}/info' | |
| 798 | +install_sh='${SHELL} /home/akatosh/voip-of/build-aux/install-sh' | |
| 799 | +libdir='${exec_prefix}/lib' | |
| 800 | +libexecdir='${exec_prefix}/libexec' | |
| 801 | +localedir='${datarootdir}/locale' | |
| 802 | +localstatedir='${prefix}/var' | |
| 803 | +mandir='${datarootdir}/man' | |
| 804 | +mkdir_p='$(MKDIR_P)' | |
| 805 | +oldincludedir='/usr/include' | |
| 806 | +pdfdir='${docdir}' | |
| 807 | +prefix='/usr/local' | |
| 808 | +program_transform_name='s,x,x,' | |
| 809 | +psdir='${docdir}' | |
| 810 | +sbindir='${exec_prefix}/sbin' | |
| 811 | +sharedstatedir='${prefix}/com' | |
| 812 | +sysconfdir='${prefix}/etc' | |
| 813 | +target_alias='' | |
| 814 | + | |
| 815 | +## ----------- ## | |
| 816 | +## confdefs.h. ## | |
| 817 | +## ----------- ## | |
| 818 | + | |
| 819 | +/* confdefs.h */ | |
| 820 | +#define PACKAGE_NAME "openflow" | |
| 821 | +#define PACKAGE_TARNAME "openflow" | |
| 822 | +#define PACKAGE_VERSION "1.0.0" | |
| 823 | +#define PACKAGE_STRING "openflow 1.0.0" | |
| 824 | +#define PACKAGE_BUGREPORT "openflow-discuss@openflowswitch.org" | |
| 825 | +#define PACKAGE_URL "" | |
| 826 | +#define BUILDNR "" | |
| 827 | +#define PACKAGE "openflow" | |
| 828 | +#define VERSION "1.0.0" | |
| 829 | +#define STDC_HEADERS 1 | |
| 830 | +#define HAVE_SYS_TYPES_H 1 | |
| 831 | +#define HAVE_SYS_STAT_H 1 | |
| 832 | +#define HAVE_STDLIB_H 1 | |
| 833 | +#define HAVE_STRING_H 1 | |
| 834 | +#define HAVE_MEMORY_H 1 | |
| 835 | +#define HAVE_STRINGS_H 1 | |
| 836 | +#define HAVE_INTTYPES_H 1 | |
| 837 | +#define HAVE_STDINT_H 1 | |
| 838 | +#define HAVE_UNISTD_H 1 | |
| 839 | +#define __EXTENSIONS__ 1 | |
| 840 | +#define _ALL_SOURCE 1 | |
| 841 | +#define _GNU_SOURCE 1 | |
| 842 | +#define _POSIX_PTHREAD_SEMANTICS 1 | |
| 843 | +#define _TANDEM_SOURCE 1 | |
| 844 | +#define HAVE_NETLINK 1 | |
| 845 | +#define HAVE_MALLOC_HOOKS 1 | |
| 846 | +#define HAVE_IF_PACKET 1 | |
| 847 | +#define HAVE_STRSIGNAL 1 | |
| 848 | + | |
| 849 | +configure: exit 0 | |
| 850 | + | |
| 851 | +## ---------------------- ## | |
| 852 | +## Running config.status. ## | |
| 853 | +## ---------------------- ## | |
| 854 | + | |
| 855 | +This file was extended by openflow config.status 1.0.0, which was | |
| 856 | +generated by GNU Autoconf 2.69. Invocation command line was | |
| 857 | + | |
| 858 | + CONFIG_FILES = | |
| 859 | + CONFIG_HEADERS = | |
| 860 | + CONFIG_LINKS = | |
| 861 | + CONFIG_COMMANDS = | |
| 862 | + $ ./config.status | |
| 863 | + | |
| 864 | +on akatosh-ISE | |
| 865 | + | |
| 866 | +config.status:899: creating Makefile | |
| 867 | +config.status:899: creating config.h | |
| 868 | +config.status:1080: config.h is unchanged | |
| 869 | +config.status:1128: executing depfiles commands | |
| 870 | + | |
| 871 | +## ---------------------- ## | |
| 872 | +## Running config.status. ## | |
| 873 | +## ---------------------- ## | |
| 874 | + | |
| 875 | +This file was extended by openflow config.status 1.0.0, which was | |
| 876 | +generated by GNU Autoconf 2.69. Invocation command line was | |
| 877 | + | |
| 878 | + CONFIG_FILES = | |
| 879 | + CONFIG_HEADERS = | |
| 880 | + CONFIG_LINKS = | |
| 881 | + CONFIG_COMMANDS = | |
| 882 | + $ ./config.status config.h | |
| 883 | + | |
| 884 | +on akatosh-ISE | |
| 885 | + | |
| 886 | +config.status:899: creating config.h | |
| 887 | +config.status:1080: config.h is unchanged | |
| 888 | + | |
| 889 | +## ---------------------- ## | |
| 890 | +## Running config.status. ## | |
| 891 | +## ---------------------- ## | |
| 892 | + | |
| 893 | +This file was extended by openflow config.status 1.0.0, which was | |
| 894 | +generated by GNU Autoconf 2.69. Invocation command line was | |
| 895 | + | |
| 896 | + CONFIG_FILES = | |
| 897 | + CONFIG_HEADERS = | |
| 898 | + CONFIG_LINKS = | |
| 899 | + CONFIG_COMMANDS = | |
| 900 | + $ ./config.status Makefile depfiles | |
| 901 | + | |
| 902 | +on akatosh-ISE | |
| 903 | + | |
| 904 | +config.status:899: creating Makefile | |
| 905 | +config.status:1128: executing depfiles commands | ... | ... |