Guest User

failed ipsec-tools configure on fedora 19 /centos 6

a guest
Jul 20th, 2013
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 309.71 KB | None | 0 0
  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 ipsec-tools configure 0.8.1, which was
  5. generated by GNU Autoconf 2.69. Invocation command line was
  6.  
  7. $ ./configure --enable-stats --enable-hybrid --enable-shared --enable-frag --enable-adminport --enable-rc5 --enable-idea --enable-dpd --enable-security-context=yes --with-kernel-headers=/usr/include --with-flexlib=-lfl --with-libldap --with-libpam
  8.  
  9. ## --------- ##
  10. ## Platform. ##
  11. ## --------- ##
  12.  
  13. hostname = localhost.localdomain
  14. uname -m = x86_64
  15. uname -r = 3.9.9-302.fc19.x86_64
  16. uname -s = Linux
  17. uname -v = #1 SMP Sat Jul 6 13:41:07 UTC 2013
  18.  
  19. /usr/bin/uname -p = x86_64
  20. /bin/uname -X = unknown
  21.  
  22. /bin/arch = x86_64
  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: /root/bin
  35.  
  36.  
  37. ## ----------- ##
  38. ## Core tests. ##
  39. ## ----------- ##
  40.  
  41. configure:2432: checking for a BSD-compatible install
  42. configure:2500: result: /usr/bin/install -c
  43. configure:2511: checking whether build environment is sane
  44. configure:2566: result: yes
  45. configure:2604: WARNING: 'missing' script is too old or missing
  46. configure:2717: checking for a thread-safe mkdir -p
  47. configure:2756: result: /usr/bin/mkdir -p
  48. configure:2763: checking for gawk
  49. configure:2779: found /usr/bin/gawk
  50. configure:2790: result: gawk
  51. configure:2801: checking whether make sets $(MAKE)
  52. configure:2823: result: yes
  53. configure:2852: checking whether make supports nested variables
  54. configure:2869: result: yes
  55. configure:3029: checking for gcc
  56. configure:3045: found /usr/bin/gcc
  57. configure:3056: result: gcc
  58. configure:3285: checking for C compiler version
  59. configure:3294: gcc --version >&5
  60. gcc (GCC) 4.8.1 20130603 (Red Hat 4.8.1-1)
  61. Copyright (C) 2013 Free Software Foundation, Inc.
  62. This is free software; see the source for copying conditions. There is NO
  63. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  64.  
  65. configure:3305: $? = 0
  66. configure:3294: gcc -v >&5
  67. Using built-in specs.
  68. COLLECT_GCC=gcc
  69. COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.1/lto-wrapper
  70. Target: x86_64-redhat-linux
  71. Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-isl=/builddir/build/BUILD/gcc-4.8.1-20130603/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.1-20130603/obj-x86_64-redhat-linux/cloog-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
  72. Thread model: posix
  73. gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC)
  74. configure:3305: $? = 0
  75. configure:3294: gcc -V >&5
  76. gcc: error: unrecognized command line option '-V'
  77. gcc: fatal error: no input files
  78. compilation terminated.
  79. configure:3305: $? = 4
  80. configure:3294: gcc -qversion >&5
  81. gcc: error: unrecognized command line option '-qversion'
  82. gcc: fatal error: no input files
  83. compilation terminated.
  84. configure:3305: $? = 4
  85. configure:3325: checking whether the C compiler works
  86. configure:3347: gcc conftest.c >&5
  87. configure:3351: $? = 0
  88. configure:3399: result: yes
  89. configure:3402: checking for C compiler default output file name
  90. configure:3404: result: a.out
  91. configure:3410: checking for suffix of executables
  92. configure:3417: gcc -o conftest conftest.c >&5
  93. configure:3421: $? = 0
  94. configure:3443: result:
  95. configure:3465: checking whether we are cross compiling
  96. configure:3473: gcc -o conftest conftest.c >&5
  97. configure:3477: $? = 0
  98. configure:3484: ./conftest
  99. configure:3488: $? = 0
  100. configure:3503: result: no
  101. configure:3508: checking for suffix of object files
  102. configure:3530: gcc -c conftest.c >&5
  103. configure:3534: $? = 0
  104. configure:3555: result: o
  105. configure:3559: checking whether we are using the GNU C compiler
  106. configure:3578: gcc -c conftest.c >&5
  107. configure:3578: $? = 0
  108. configure:3587: result: yes
  109. configure:3596: checking whether gcc accepts -g
  110. configure:3616: gcc -c -g conftest.c >&5
  111. configure:3616: $? = 0
  112. configure:3657: result: yes
  113. configure:3674: checking for gcc option to accept ISO C89
  114. configure:3737: gcc -c -g -O2 conftest.c >&5
  115. configure:3737: $? = 0
  116. configure:3750: result: none needed
  117. configure:3781: checking for style of include used by make
  118. configure:3809: result: GNU
  119. configure:3835: checking dependency style of gcc
  120. configure:3946: result: gcc3
  121. configure:3967: checking how to run the C preprocessor
  122. configure:3998: gcc -E conftest.c
  123. configure:3998: $? = 0
  124. configure:4012: gcc -E conftest.c
  125. conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
  126. #include <ac_nonexistent.h>
  127. ^
  128. compilation terminated.
  129. configure:4012: $? = 1
  130. configure: failed program was:
  131. | /* confdefs.h */
  132. | #define PACKAGE_NAME "ipsec-tools"
  133. | #define PACKAGE_TARNAME "ipsec-tools"
  134. | #define PACKAGE_VERSION "0.8.1"
  135. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  136. | #define PACKAGE_BUGREPORT ""
  137. | #define PACKAGE_URL ""
  138. | #define PACKAGE "ipsec-tools"
  139. | #define VERSION "0.8.1"
  140. | /* end confdefs.h. */
  141. | #include <ac_nonexistent.h>
  142. configure:4037: result: gcc -E
  143. configure:4057: gcc -E conftest.c
  144. configure:4057: $? = 0
  145. configure:4071: gcc -E conftest.c
  146. conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
  147. #include <ac_nonexistent.h>
  148. ^
  149. compilation terminated.
  150. configure:4071: $? = 1
  151. configure: failed program was:
  152. | /* confdefs.h */
  153. | #define PACKAGE_NAME "ipsec-tools"
  154. | #define PACKAGE_TARNAME "ipsec-tools"
  155. | #define PACKAGE_VERSION "0.8.1"
  156. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  157. | #define PACKAGE_BUGREPORT ""
  158. | #define PACKAGE_URL ""
  159. | #define PACKAGE "ipsec-tools"
  160. | #define VERSION "0.8.1"
  161. | /* end confdefs.h. */
  162. | #include <ac_nonexistent.h>
  163. configure:4100: checking for grep that handles long lines and -e
  164. configure:4158: result: /usr/bin/grep
  165. configure:4163: checking for egrep
  166. configure:4225: result: /usr/bin/grep -E
  167. configure:4230: checking for ANSI C header files
  168. configure:4250: gcc -c -g -O2 conftest.c >&5
  169. configure:4250: $? = 0
  170. configure:4323: gcc -o conftest -g -O2 conftest.c >&5
  171. configure:4323: $? = 0
  172. configure:4323: ./conftest
  173. configure:4323: $? = 0
  174. configure:4334: result: yes
  175. configure:4371: checking build system type
  176. configure:4385: result: x86_64-unknown-linux-gnu
  177. configure:4405: checking host system type
  178. configure:4418: result: x86_64-unknown-linux-gnu
  179. configure:4459: checking how to print strings
  180. configure:4486: result: printf
  181. configure:4507: checking for a sed that does not truncate output
  182. configure:4571: result: /usr/bin/sed
  183. configure:4589: checking for fgrep
  184. configure:4651: result: /usr/bin/grep -F
  185. configure:4686: checking for ld used by gcc
  186. configure:4753: result: /usr/bin/ld
  187. configure:4760: checking if the linker (/usr/bin/ld) is GNU ld
  188. configure:4775: result: yes
  189. configure:4787: checking for BSD- or MS-compatible name lister (nm)
  190. configure:4836: result: /usr/bin/nm -B
  191. configure:4966: checking the name lister (/usr/bin/nm -B) interface
  192. configure:4973: gcc -c -g -O2 conftest.c >&5
  193. configure:4976: /usr/bin/nm -B "conftest.o"
  194. configure:4979: output
  195. 0000000000000000 B some_variable
  196. configure:4986: result: BSD nm
  197. configure:4989: checking whether ln -s works
  198. configure:4993: result: yes
  199. configure:5001: checking the maximum length of command line arguments
  200. configure:5131: result: 1572864
  201. configure:5148: checking whether the shell understands some XSI constructs
  202. configure:5158: result: yes
  203. configure:5162: checking whether the shell understands "+="
  204. configure:5168: result: yes
  205. configure:5203: checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format
  206. configure:5243: result: func_convert_file_noop
  207. configure:5250: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format
  208. configure:5270: result: func_convert_file_noop
  209. configure:5277: checking for /usr/bin/ld option to reload object files
  210. configure:5284: result: -r
  211. configure:5358: checking for objdump
  212. configure:5374: found /usr/bin/objdump
  213. configure:5385: result: objdump
  214. configure:5417: checking how to recognize dependent libraries
  215. configure:5619: result: pass_all
  216. configure:5704: checking for dlltool
  217. configure:5734: result: no
  218. configure:5764: checking how to associate runtime and link libraries
  219. configure:5791: result: printf %s\n
  220. configure:5851: checking for ar
  221. configure:5867: found /usr/bin/ar
  222. configure:5878: result: ar
  223. configure:5915: checking for archiver @FILE support
  224. configure:5932: gcc -c -g -O2 conftest.c >&5
  225. configure:5932: $? = 0
  226. configure:5935: ar cru libconftest.a @conftest.lst >&5
  227. configure:5938: $? = 0
  228. configure:5943: ar cru libconftest.a @conftest.lst >&5
  229. ar: conftest.o: No such file or directory
  230. configure:5946: $? = 1
  231. configure:5958: result: @
  232. configure:6016: checking for strip
  233. configure:6032: found /usr/bin/strip
  234. configure:6043: result: strip
  235. configure:6115: checking for ranlib
  236. configure:6131: found /usr/bin/ranlib
  237. configure:6142: result: ranlib
  238. configure:6244: checking command to parse /usr/bin/nm -B output from gcc object
  239. configure:6364: gcc -c -g -O2 conftest.c >&5
  240. configure:6367: $? = 0
  241. configure:6371: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
  242. configure:6374: $? = 0
  243. configure:6440: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
  244. configure:6443: $? = 0
  245. configure:6481: result: ok
  246. configure:6518: checking for sysroot
  247. configure:6548: result: no
  248. configure:6625: gcc -c -g -O2 conftest.c >&5
  249. configure:6628: $? = 0
  250. configure:6804: checking for mt
  251. configure:6834: result: no
  252. configure:6854: checking if : is a manifest tool
  253. configure:6860: : '-?'
  254. configure:6868: result: no
  255. configure:7510: checking for sys/types.h
  256. configure:7510: gcc -c -g -O2 conftest.c >&5
  257. configure:7510: $? = 0
  258. configure:7510: result: yes
  259. configure:7510: checking for sys/stat.h
  260. configure:7510: gcc -c -g -O2 conftest.c >&5
  261. configure:7510: $? = 0
  262. configure:7510: result: yes
  263. configure:7510: checking for stdlib.h
  264. configure:7510: gcc -c -g -O2 conftest.c >&5
  265. configure:7510: $? = 0
  266. configure:7510: result: yes
  267. configure:7510: checking for string.h
  268. configure:7510: gcc -c -g -O2 conftest.c >&5
  269. configure:7510: $? = 0
  270. configure:7510: result: yes
  271. configure:7510: checking for memory.h
  272. configure:7510: gcc -c -g -O2 conftest.c >&5
  273. configure:7510: $? = 0
  274. configure:7510: result: yes
  275. configure:7510: checking for strings.h
  276. configure:7510: gcc -c -g -O2 conftest.c >&5
  277. configure:7510: $? = 0
  278. configure:7510: result: yes
  279. configure:7510: checking for inttypes.h
  280. configure:7510: gcc -c -g -O2 conftest.c >&5
  281. configure:7510: $? = 0
  282. configure:7510: result: yes
  283. configure:7510: checking for stdint.h
  284. configure:7510: gcc -c -g -O2 conftest.c >&5
  285. configure:7510: $? = 0
  286. configure:7510: result: yes
  287. configure:7510: checking for unistd.h
  288. configure:7510: gcc -c -g -O2 conftest.c >&5
  289. configure:7510: $? = 0
  290. configure:7510: result: yes
  291. configure:7524: checking for dlfcn.h
  292. configure:7524: gcc -c -g -O2 conftest.c >&5
  293. configure:7524: $? = 0
  294. configure:7524: result: yes
  295. configure:7700: checking for objdir
  296. configure:7715: result: .libs
  297. configure:7982: checking if gcc supports -fno-rtti -fno-exceptions
  298. configure:8000: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5
  299. cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default]
  300. configure:8004: $? = 0
  301. configure:8017: result: no
  302. configure:8344: checking for gcc option to produce PIC
  303. configure:8351: result: -fPIC -DPIC
  304. configure:8359: checking if gcc PIC flag -fPIC -DPIC works
  305. configure:8377: gcc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5
  306. configure:8381: $? = 0
  307. configure:8394: result: yes
  308. configure:8423: checking if gcc static flag -static works
  309. configure:8451: result: no
  310. configure:8466: checking if gcc supports -c -o file.o
  311. configure:8487: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5
  312. configure:8491: $? = 0
  313. configure:8513: result: yes
  314. configure:8521: checking if gcc supports -c -o file.o
  315. configure:8568: result: yes
  316. configure:8601: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries
  317. configure:9754: result: yes
  318. configure:9791: checking whether -lc should be explicitly linked in
  319. configure:9799: gcc -c -g -O2 conftest.c >&5
  320. configure:9802: $? = 0
  321. configure:9817: gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /usr/bin/grep -lc \>/dev/null 2\>\&1
  322. configure:9820: $? = 0
  323. configure:9834: result: no
  324. configure:9994: checking dynamic linker characteristics
  325. configure:10505: gcc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5
  326. configure:10505: $? = 0
  327. configure:10727: result: GNU/Linux ld.so
  328. configure:10834: checking how to hardcode library paths into programs
  329. configure:10859: result: immediate
  330. configure:11399: checking whether stripping libraries is possible
  331. configure:11404: result: yes
  332. configure:11439: checking if libtool supports shared libraries
  333. configure:11441: result: yes
  334. configure:11444: checking whether to build shared libraries
  335. configure:11465: result: yes
  336. configure:11468: checking whether to build static libraries
  337. configure:11472: result: yes
  338. configure:11513: checking for bison
  339. configure:11543: result: no
  340. configure:11513: checking for byacc
  341. configure:11543: result: no
  342. configure:11556: checking for flex
  343. configure:11572: found /usr/bin/flex
  344. configure:11583: result: flex
  345. configure:11621: flex conftest.l
  346. configure:11625: $? = 0
  347. configure:11627: checking lex output file root
  348. configure:11641: result: lex.yy
  349. configure:11646: checking lex library
  350. configure:11660: gcc -o conftest -g -O2 conftest.c >&5
  351. /tmp/ccFhsvR5.o: In function `input':
  352. /root/ipsec-tools-0.8.1/lex.yy.c:1170: undefined reference to `yywrap'
  353. /tmp/ccFhsvR5.o: In function `yylex':
  354. /root/ipsec-tools-0.8.1/lex.yy.c:869: undefined reference to `yywrap'
  355. /tmp/ccFhsvR5.o: In function `main':
  356. /root/ipsec-tools-0.8.1/conftest.l:18: undefined reference to `yywrap'
  357. collect2: error: ld returned 1 exit status
  358. configure:11660: $? = 1
  359. configure: failed program was:
  360. | /* confdefs.h */
  361. | #define PACKAGE_NAME "ipsec-tools"
  362. | #define PACKAGE_TARNAME "ipsec-tools"
  363. | #define PACKAGE_VERSION "0.8.1"
  364. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  365. | #define PACKAGE_BUGREPORT ""
  366. | #define PACKAGE_URL ""
  367. | #define PACKAGE "ipsec-tools"
  368. | #define VERSION "0.8.1"
  369. | #define STDC_HEADERS 1
  370. | #define HAVE_SYS_TYPES_H 1
  371. | #define HAVE_SYS_STAT_H 1
  372. | #define HAVE_STDLIB_H 1
  373. | #define HAVE_STRING_H 1
  374. | #define HAVE_MEMORY_H 1
  375. | #define HAVE_STRINGS_H 1
  376. | #define HAVE_INTTYPES_H 1
  377. | #define HAVE_STDINT_H 1
  378. | #define HAVE_UNISTD_H 1
  379. | #define HAVE_DLFCN_H 1
  380. | #define LT_OBJDIR ".libs/"
  381. | /* end confdefs.h. */
  382. |
  383. | #line 3 "lex.yy.c"
  384. |
  385. | #define YY_INT_ALIGNED short int
  386. |
  387. | /* A lexical scanner generated by flex */
  388. |
  389. | #define FLEX_SCANNER
  390. | #define YY_FLEX_MAJOR_VERSION 2
  391. | #define YY_FLEX_MINOR_VERSION 5
  392. | #define YY_FLEX_SUBMINOR_VERSION 37
  393. | #if YY_FLEX_SUBMINOR_VERSION > 0
  394. | #define FLEX_BETA
  395. | #endif
  396. |
  397. | /* First, we deal with platform-specific or compiler-specific issues. */
  398. |
  399. | /* begin standard C headers. */
  400. | #include <stdio.h>
  401. | #include <string.h>
  402. | #include <errno.h>
  403. | #include <stdlib.h>
  404. |
  405. | /* end standard C headers. */
  406. |
  407. | /* flex integer type definitions */
  408. |
  409. | #ifndef FLEXINT_H
  410. | #define FLEXINT_H
  411. |
  412. | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  413. |
  414. | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  415. |
  416. | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  417. | * if you want the limit (max/min) macros for int types.
  418. | */
  419. | #ifndef __STDC_LIMIT_MACROS
  420. | #define __STDC_LIMIT_MACROS 1
  421. | #endif
  422. |
  423. | #include <inttypes.h>
  424. | typedef int8_t flex_int8_t;
  425. | typedef uint8_t flex_uint8_t;
  426. | typedef int16_t flex_int16_t;
  427. | typedef uint16_t flex_uint16_t;
  428. | typedef int32_t flex_int32_t;
  429. | typedef uint32_t flex_uint32_t;
  430. | #else
  431. | typedef signed char flex_int8_t;
  432. | typedef short int flex_int16_t;
  433. | typedef int flex_int32_t;
  434. | typedef unsigned char flex_uint8_t;
  435. | typedef unsigned short int flex_uint16_t;
  436. | typedef unsigned int flex_uint32_t;
  437. |
  438. | /* Limits of integral types. */
  439. | #ifndef INT8_MIN
  440. | #define INT8_MIN (-128)
  441. | #endif
  442. | #ifndef INT16_MIN
  443. | #define INT16_MIN (-32767-1)
  444. | #endif
  445. | #ifndef INT32_MIN
  446. | #define INT32_MIN (-2147483647-1)
  447. | #endif
  448. | #ifndef INT8_MAX
  449. | #define INT8_MAX (127)
  450. | #endif
  451. | #ifndef INT16_MAX
  452. | #define INT16_MAX (32767)
  453. | #endif
  454. | #ifndef INT32_MAX
  455. | #define INT32_MAX (2147483647)
  456. | #endif
  457. | #ifndef UINT8_MAX
  458. | #define UINT8_MAX (255U)
  459. | #endif
  460. | #ifndef UINT16_MAX
  461. | #define UINT16_MAX (65535U)
  462. | #endif
  463. | #ifndef UINT32_MAX
  464. | #define UINT32_MAX (4294967295U)
  465. | #endif
  466. |
  467. | #endif /* ! C99 */
  468. |
  469. | #endif /* ! FLEXINT_H */
  470. |
  471. | #ifdef __cplusplus
  472. |
  473. | /* The "const" storage-class-modifier is valid. */
  474. | #define YY_USE_CONST
  475. |
  476. | #else /* ! __cplusplus */
  477. |
  478. | /* C99 requires __STDC__ to be defined as 1. */
  479. | #if defined (__STDC__)
  480. |
  481. | #define YY_USE_CONST
  482. |
  483. | #endif /* defined (__STDC__) */
  484. | #endif /* ! __cplusplus */
  485. |
  486. | #ifdef YY_USE_CONST
  487. | #define yyconst const
  488. | #else
  489. | #define yyconst
  490. | #endif
  491. |
  492. | /* Returned upon end-of-file. */
  493. | #define YY_NULL 0
  494. |
  495. | /* Promotes a possibly negative, possibly signed char to an unsigned
  496. | * integer for use as an array index. If the signed char is negative,
  497. | * we want to instead treat it as an 8-bit unsigned char, hence the
  498. | * double cast.
  499. | */
  500. | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  501. |
  502. | /* Enter a start condition. This macro really ought to take a parameter,
  503. | * but we do it the disgusting crufty way forced on us by the ()-less
  504. | * definition of BEGIN.
  505. | */
  506. | #define BEGIN (yy_start) = 1 + 2 *
  507. |
  508. | /* Translate the current start state into a value that can be later handed
  509. | * to BEGIN to return to the state. The YYSTATE alias is for lex
  510. | * compatibility.
  511. | */
  512. | #define YY_START (((yy_start) - 1) / 2)
  513. | #define YYSTATE YY_START
  514. |
  515. | /* Action number for EOF rule of a given start state. */
  516. | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  517. |
  518. | /* Special action meaning "start processing a new file". */
  519. | #define YY_NEW_FILE yyrestart(yyin )
  520. |
  521. | #define YY_END_OF_BUFFER_CHAR 0
  522. |
  523. | /* Size of default input buffer. */
  524. | #ifndef YY_BUF_SIZE
  525. | #define YY_BUF_SIZE 16384
  526. | #endif
  527. |
  528. | /* The state buf must be large enough to hold one state per character in the main buffer.
  529. | */
  530. | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  531. |
  532. | #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  533. | #define YY_TYPEDEF_YY_BUFFER_STATE
  534. | typedef struct yy_buffer_state *YY_BUFFER_STATE;
  535. | #endif
  536. |
  537. | #ifndef YY_TYPEDEF_YY_SIZE_T
  538. | #define YY_TYPEDEF_YY_SIZE_T
  539. | typedef size_t yy_size_t;
  540. | #endif
  541. |
  542. | extern yy_size_t yyleng;
  543. |
  544. | extern FILE *yyin, *yyout;
  545. |
  546. | #define EOB_ACT_CONTINUE_SCAN 0
  547. | #define EOB_ACT_END_OF_FILE 1
  548. | #define EOB_ACT_LAST_MATCH 2
  549. |
  550. | #define YY_LESS_LINENO(n)
  551. |
  552. | /* Return all but the first "n" matched characters back to the input stream. */
  553. | #define yyless(n) \
  554. | do \
  555. | { \
  556. | /* Undo effects of setting up yytext. */ \
  557. | int yyless_macro_arg = (n); \
  558. | YY_LESS_LINENO(yyless_macro_arg);\
  559. | *yy_cp = (yy_hold_char); \
  560. | YY_RESTORE_YY_MORE_OFFSET \
  561. | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  562. | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  563. | } \
  564. | while ( 0 )
  565. |
  566. | #define unput(c) yyunput( c, (yytext_ptr) )
  567. |
  568. | #ifndef YY_STRUCT_YY_BUFFER_STATE
  569. | #define YY_STRUCT_YY_BUFFER_STATE
  570. | struct yy_buffer_state
  571. | {
  572. | FILE *yy_input_file;
  573. |
  574. | char *yy_ch_buf; /* input buffer */
  575. | char *yy_buf_pos; /* current position in input buffer */
  576. |
  577. | /* Size of input buffer in bytes, not including room for EOB
  578. | * characters.
  579. | */
  580. | yy_size_t yy_buf_size;
  581. |
  582. | /* Number of characters read into yy_ch_buf, not including EOB
  583. | * characters.
  584. | */
  585. | yy_size_t yy_n_chars;
  586. |
  587. | /* Whether we "own" the buffer - i.e., we know we created it,
  588. | * and can realloc() it to grow it, and should free() it to
  589. | * delete it.
  590. | */
  591. | int yy_is_our_buffer;
  592. |
  593. | /* Whether this is an "interactive" input source; if so, and
  594. | * if we're using stdio for input, then we want to use getc()
  595. | * instead of fread(), to make sure we stop fetching input after
  596. | * each newline.
  597. | */
  598. | int yy_is_interactive;
  599. |
  600. | /* Whether we're considered to be at the beginning of a line.
  601. | * If so, '^' rules will be active on the next match, otherwise
  602. | * not.
  603. | */
  604. | int yy_at_bol;
  605. |
  606. | int yy_bs_lineno; /**< The line count. */
  607. | int yy_bs_column; /**< The column count. */
  608. |
  609. | /* Whether to try to fill the input buffer when we reach the
  610. | * end of it.
  611. | */
  612. | int yy_fill_buffer;
  613. |
  614. | int yy_buffer_status;
  615. |
  616. | #define YY_BUFFER_NEW 0
  617. | #define YY_BUFFER_NORMAL 1
  618. | /* When an EOF's been seen but there's still some text to process
  619. | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  620. | * shouldn't try reading from the input source any more. We might
  621. | * still have a bunch of tokens to match, though, because of
  622. | * possible backing-up.
  623. | *
  624. | * When we actually see the EOF, we change the status to "new"
  625. | * (via yyrestart()), so that the user can continue scanning by
  626. | * just pointing yyin at a new input file.
  627. | */
  628. | #define YY_BUFFER_EOF_PENDING 2
  629. |
  630. | };
  631. | #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  632. |
  633. | /* Stack of input buffers. */
  634. | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  635. | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  636. | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
  637. |
  638. | /* We provide macros for accessing buffer states in case in the
  639. | * future we want to put the buffer states in a more general
  640. | * "scanner state".
  641. | *
  642. | * Returns the top of the stack, or NULL.
  643. | */
  644. | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  645. | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  646. | : NULL)
  647. |
  648. | /* Same as previous macro, but useful when we know that the buffer stack is not
  649. | * NULL or when we need an lvalue. For internal use only.
  650. | */
  651. | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  652. |
  653. | /* yy_hold_char holds the character lost when yytext is formed. */
  654. | static char yy_hold_char;
  655. | static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
  656. | yy_size_t yyleng;
  657. |
  658. | /* Points to current character in buffer. */
  659. | static char *yy_c_buf_p = (char *) 0;
  660. | static int yy_init = 0; /* whether we need to initialize */
  661. | static int yy_start = 0; /* start state number */
  662. |
  663. | /* Flag which is used to allow yywrap()'s to do buffer switches
  664. | * instead of setting up a fresh yyin. A bit of a hack ...
  665. | */
  666. | static int yy_did_buffer_switch_on_eof;
  667. |
  668. | void yyrestart (FILE *input_file );
  669. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
  670. | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
  671. | void yy_delete_buffer (YY_BUFFER_STATE b );
  672. | void yy_flush_buffer (YY_BUFFER_STATE b );
  673. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
  674. | void yypop_buffer_state (void );
  675. |
  676. | static void yyensure_buffer_stack (void );
  677. | static void yy_load_buffer_state (void );
  678. | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
  679. |
  680. | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
  681. |
  682. | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
  683. | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
  684. | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
  685. |
  686. | void *yyalloc (yy_size_t );
  687. | void *yyrealloc (void *,yy_size_t );
  688. | void yyfree (void * );
  689. |
  690. | #define yy_new_buffer yy_create_buffer
  691. |
  692. | #define yy_set_interactive(is_interactive) \
  693. | { \
  694. | if ( ! YY_CURRENT_BUFFER ){ \
  695. | yyensure_buffer_stack (); \
  696. | YY_CURRENT_BUFFER_LVALUE = \
  697. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  698. | } \
  699. | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  700. | }
  701. |
  702. | #define yy_set_bol(at_bol) \
  703. | { \
  704. | if ( ! YY_CURRENT_BUFFER ){\
  705. | yyensure_buffer_stack (); \
  706. | YY_CURRENT_BUFFER_LVALUE = \
  707. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  708. | } \
  709. | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  710. | }
  711. |
  712. | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  713. |
  714. | /* Begin user sect3 */
  715. |
  716. | typedef unsigned char YY_CHAR;
  717. |
  718. | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  719. |
  720. | typedef int yy_state_type;
  721. |
  722. | extern int yylineno;
  723. |
  724. | int yylineno = 1;
  725. |
  726. | extern char *yytext;
  727. | #define yytext_ptr yytext
  728. |
  729. | static yy_state_type yy_get_previous_state (void );
  730. | static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
  731. | static int yy_get_next_buffer (void );
  732. | static void yy_fatal_error (yyconst char msg[] );
  733. |
  734. | /* Done after the current pattern has been matched and before the
  735. | * corresponding action - sets up yytext.
  736. | */
  737. | #define YY_DO_BEFORE_ACTION \
  738. | (yytext_ptr) = yy_bp; \
  739. | (yytext_ptr) -= (yy_more_len); \
  740. | yyleng = (size_t) (yy_cp - (yytext_ptr)); \
  741. | (yy_hold_char) = *yy_cp; \
  742. | *yy_cp = '\0'; \
  743. | (yy_c_buf_p) = yy_cp;
  744. |
  745. | #define YY_NUM_RULES 8
  746. | #define YY_END_OF_BUFFER 9
  747. | /* This struct is not used in this scanner,
  748. | but its presence is necessary. */
  749. | struct yy_trans_info
  750. | {
  751. | flex_int32_t yy_verify;
  752. | flex_int32_t yy_nxt;
  753. | };
  754. | static yyconst flex_int16_t yy_acclist[23] =
  755. | { 0,
  756. | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
  757. | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
  758. | 7, 8
  759. | } ;
  760. |
  761. | static yyconst flex_int16_t yy_accept[14] =
  762. | { 0,
  763. | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
  764. | 20, 23, 23
  765. | } ;
  766. |
  767. | static yyconst flex_int32_t yy_ec[256] =
  768. | { 0,
  769. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
  770. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  771. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  772. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  773. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  774. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  775. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  776. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  777. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  778. | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
  779. |
  780. | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
  781. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  782. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  783. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  784. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  785. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  786. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  787. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  788. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  789. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  790. |
  791. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  792. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  793. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  794. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  795. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  796. | 1, 1, 1, 1, 1
  797. | } ;
  798. |
  799. | static yyconst flex_int32_t yy_meta[9] =
  800. | { 0,
  801. | 1, 1, 1, 1, 1, 1, 1, 1
  802. | } ;
  803. |
  804. | static yyconst flex_int16_t yy_base[13] =
  805. | { 0,
  806. | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
  807. | 10, 10
  808. | } ;
  809. |
  810. | static yyconst flex_int16_t yy_def[13] =
  811. | { 0,
  812. | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
  813. | 12, 0
  814. | } ;
  815. |
  816. | static yyconst flex_int16_t yy_nxt[19] =
  817. | { 0,
  818. | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
  819. | 12, 12, 12, 12, 12, 12, 12, 12
  820. | } ;
  821. |
  822. | static yyconst flex_int16_t yy_chk[19] =
  823. | { 0,
  824. | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
  825. | 12, 12, 12, 12, 12, 12, 12, 12
  826. | } ;
  827. |
  828. | extern int yy_flex_debug;
  829. | int yy_flex_debug = 0;
  830. |
  831. | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
  832. | static char *yy_full_match;
  833. | static int yy_lp;
  834. | #define REJECT \
  835. | { \
  836. | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
  837. | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
  838. | ++(yy_lp); \
  839. | goto find_rule; \
  840. | }
  841. |
  842. | static int yy_more_flag = 0;
  843. | static int yy_more_len = 0;
  844. | #define yymore() ((yy_more_flag) = 1)
  845. | #define YY_MORE_ADJ (yy_more_len)
  846. | #define YY_RESTORE_YY_MORE_OFFSET
  847. | char *yytext;
  848. | #line 1 "conftest.l"
  849. | #line 469 "lex.yy.c"
  850. |
  851. | #define INITIAL 0
  852. |
  853. | #ifndef YY_NO_UNISTD_H
  854. | /* Special case for "unistd.h", since it is non-ANSI. We include it way
  855. | * down here because we want the user's section 1 to have been scanned first.
  856. | * The user has a chance to override it with an option.
  857. | */
  858. | #include <unistd.h>
  859. | #endif
  860. |
  861. | #ifndef YY_EXTRA_TYPE
  862. | #define YY_EXTRA_TYPE void *
  863. | #endif
  864. |
  865. | static int yy_init_globals (void );
  866. |
  867. | /* Accessor methods to globals.
  868. | These are made visible to non-reentrant scanners for convenience. */
  869. |
  870. | int yylex_destroy (void );
  871. |
  872. | int yyget_debug (void );
  873. |
  874. | void yyset_debug (int debug_flag );
  875. |
  876. | YY_EXTRA_TYPE yyget_extra (void );
  877. |
  878. | void yyset_extra (YY_EXTRA_TYPE user_defined );
  879. |
  880. | FILE *yyget_in (void );
  881. |
  882. | void yyset_in (FILE * in_str );
  883. |
  884. | FILE *yyget_out (void );
  885. |
  886. | void yyset_out (FILE * out_str );
  887. |
  888. | yy_size_t yyget_leng (void );
  889. |
  890. | char *yyget_text (void );
  891. |
  892. | int yyget_lineno (void );
  893. |
  894. | void yyset_lineno (int line_number );
  895. |
  896. | /* Macros after this point can all be overridden by user definitions in
  897. | * section 1.
  898. | */
  899. |
  900. | #ifndef YY_SKIP_YYWRAP
  901. | #ifdef __cplusplus
  902. | extern "C" int yywrap (void );
  903. | #else
  904. | extern int yywrap (void );
  905. | #endif
  906. | #endif
  907. |
  908. | static void yyunput (int c,char *buf_ptr );
  909. |
  910. | #ifndef yytext_ptr
  911. | static void yy_flex_strncpy (char *,yyconst char *,int );
  912. | #endif
  913. |
  914. | #ifdef YY_NEED_STRLEN
  915. | static int yy_flex_strlen (yyconst char * );
  916. | #endif
  917. |
  918. | #ifndef YY_NO_INPUT
  919. |
  920. | #ifdef __cplusplus
  921. | static int yyinput (void );
  922. | #else
  923. | static int input (void );
  924. | #endif
  925. |
  926. | #endif
  927. |
  928. | /* Amount of stuff to slurp up with each read. */
  929. | #ifndef YY_READ_BUF_SIZE
  930. | #define YY_READ_BUF_SIZE 8192
  931. | #endif
  932. |
  933. | /* Copy whatever the last rule matched to the standard output. */
  934. | #ifndef ECHO
  935. | /* This used to be an fputs(), but since the string might contain NUL's,
  936. | * we now use fwrite().
  937. | */
  938. | #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
  939. | #endif
  940. |
  941. | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  942. | * is returned in "result".
  943. | */
  944. | #ifndef YY_INPUT
  945. | #define YY_INPUT(buf,result,max_size) \
  946. | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  947. | { \
  948. | int c = '*'; \
  949. | size_t n; \
  950. | for ( n = 0; n < max_size && \
  951. | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  952. | buf[n] = (char) c; \
  953. | if ( c == '\n' ) \
  954. | buf[n++] = (char) c; \
  955. | if ( c == EOF && ferror( yyin ) ) \
  956. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  957. | result = n; \
  958. | } \
  959. | else \
  960. | { \
  961. | errno=0; \
  962. | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  963. | { \
  964. | if( errno != EINTR) \
  965. | { \
  966. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  967. | break; \
  968. | } \
  969. | errno=0; \
  970. | clearerr(yyin); \
  971. | } \
  972. | }\
  973. | \
  974. |
  975. | #endif
  976. |
  977. | /* No semi-colon after return; correct usage is to write "yyterminate();" -
  978. | * we don't want an extra ';' after the "return" because that will cause
  979. | * some compilers to complain about unreachable statements.
  980. | */
  981. | #ifndef yyterminate
  982. | #define yyterminate() return YY_NULL
  983. | #endif
  984. |
  985. | /* Number of entries by which start-condition stack grows. */
  986. | #ifndef YY_START_STACK_INCR
  987. | #define YY_START_STACK_INCR 25
  988. | #endif
  989. |
  990. | /* Report a fatal error. */
  991. | #ifndef YY_FATAL_ERROR
  992. | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  993. | #endif
  994. |
  995. | /* end tables serialization structures and prototypes */
  996. |
  997. | /* Default declaration of generated scanner - a define so the user can
  998. | * easily add parameters.
  999. | */
  1000. | #ifndef YY_DECL
  1001. | #define YY_DECL_IS_OURS 1
  1002. |
  1003. | extern int yylex (void);
  1004. |
  1005. | #define YY_DECL int yylex (void)
  1006. | #endif /* !YY_DECL */
  1007. |
  1008. | /* Code executed at the beginning of each rule, after yytext and yyleng
  1009. | * have been set up.
  1010. | */
  1011. | #ifndef YY_USER_ACTION
  1012. | #define YY_USER_ACTION
  1013. | #endif
  1014. |
  1015. | /* Code executed at the end of each rule. */
  1016. | #ifndef YY_BREAK
  1017. | #define YY_BREAK break;
  1018. | #endif
  1019. |
  1020. | #define YY_RULE_SETUP \
  1021. | YY_USER_ACTION
  1022. |
  1023. | /** The main scanner function which does all the work.
  1024. | */
  1025. | YY_DECL
  1026. | {
  1027. | register yy_state_type yy_current_state;
  1028. | register char *yy_cp, *yy_bp;
  1029. | register int yy_act;
  1030. |
  1031. | #line 1 "conftest.l"
  1032. |
  1033. | #line 653 "lex.yy.c"
  1034. |
  1035. | if ( !(yy_init) )
  1036. | {
  1037. | (yy_init) = 1;
  1038. |
  1039. | #ifdef YY_USER_INIT
  1040. | YY_USER_INIT;
  1041. | #endif
  1042. |
  1043. | /* Create the reject buffer large enough to save one state per allowed character. */
  1044. | if ( ! (yy_state_buf) )
  1045. | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
  1046. | if ( ! (yy_state_buf) )
  1047. | YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
  1048. |
  1049. | if ( ! (yy_start) )
  1050. | (yy_start) = 1; /* first start state */
  1051. |
  1052. | if ( ! yyin )
  1053. | yyin = stdin;
  1054. |
  1055. | if ( ! yyout )
  1056. | yyout = stdout;
  1057. |
  1058. | if ( ! YY_CURRENT_BUFFER ) {
  1059. | yyensure_buffer_stack ();
  1060. | YY_CURRENT_BUFFER_LVALUE =
  1061. | yy_create_buffer(yyin,YY_BUF_SIZE );
  1062. | }
  1063. |
  1064. | yy_load_buffer_state( );
  1065. | }
  1066. |
  1067. | while ( 1 ) /* loops until end-of-file is reached */
  1068. | {
  1069. | (yy_more_len) = 0;
  1070. | if ( (yy_more_flag) )
  1071. | {
  1072. | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr);
  1073. | (yy_more_flag) = 0;
  1074. | }
  1075. | yy_cp = (yy_c_buf_p);
  1076. |
  1077. | /* Support of yytext. */
  1078. | *yy_cp = (yy_hold_char);
  1079. |
  1080. | /* yy_bp points to the position in yy_ch_buf of the start of
  1081. | * the current run.
  1082. | */
  1083. | yy_bp = yy_cp;
  1084. |
  1085. | yy_current_state = (yy_start);
  1086. |
  1087. | (yy_state_ptr) = (yy_state_buf);
  1088. | *(yy_state_ptr)++ = yy_current_state;
  1089. |
  1090. | yy_match:
  1091. | do
  1092. | {
  1093. | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  1094. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1095. | {
  1096. | yy_current_state = (int) yy_def[yy_current_state];
  1097. | if ( yy_current_state >= 13 )
  1098. | yy_c = yy_meta[(unsigned int) yy_c];
  1099. | }
  1100. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1101. | *(yy_state_ptr)++ = yy_current_state;
  1102. | ++yy_cp;
  1103. | }
  1104. | while ( yy_base[yy_current_state] != 10 );
  1105. |
  1106. | yy_find_action:
  1107. | yy_current_state = *--(yy_state_ptr);
  1108. | (yy_lp) = yy_accept[yy_current_state];
  1109. | find_rule: /* we branch to this label when backing up */
  1110. | for ( ; ; ) /* until we find what rule we matched */
  1111. | {
  1112. | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
  1113. | {
  1114. | yy_act = yy_acclist[(yy_lp)];
  1115. | {
  1116. | (yy_full_match) = yy_cp;
  1117. | break;
  1118. | }
  1119. | }
  1120. | --yy_cp;
  1121. | yy_current_state = *--(yy_state_ptr);
  1122. | (yy_lp) = yy_accept[yy_current_state];
  1123. | }
  1124. |
  1125. | YY_DO_BEFORE_ACTION;
  1126. |
  1127. | do_action: /* This label is used only to access EOF actions. */
  1128. |
  1129. | switch ( yy_act )
  1130. | { /* beginning of action switch */
  1131. | case 1:
  1132. | YY_RULE_SETUP
  1133. | #line 2 "conftest.l"
  1134. | { ECHO; }
  1135. | YY_BREAK
  1136. | case 2:
  1137. | YY_RULE_SETUP
  1138. | #line 3 "conftest.l"
  1139. | { REJECT; }
  1140. | YY_BREAK
  1141. | case 3:
  1142. | YY_RULE_SETUP
  1143. | #line 4 "conftest.l"
  1144. | { yymore (); }
  1145. | YY_BREAK
  1146. | case 4:
  1147. | YY_RULE_SETUP
  1148. | #line 5 "conftest.l"
  1149. | { yyless (1); }
  1150. | YY_BREAK
  1151. | case 5:
  1152. | YY_RULE_SETUP
  1153. | #line 6 "conftest.l"
  1154. | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  1155. | yyless ((input () != 0)); }
  1156. | YY_BREAK
  1157. | case 6:
  1158. | YY_RULE_SETUP
  1159. | #line 8 "conftest.l"
  1160. | { unput (yytext[0]); }
  1161. | YY_BREAK
  1162. | case 7:
  1163. | YY_RULE_SETUP
  1164. | #line 9 "conftest.l"
  1165. | { BEGIN INITIAL; }
  1166. | YY_BREAK
  1167. | case 8:
  1168. | YY_RULE_SETUP
  1169. | #line 10 "conftest.l"
  1170. | ECHO;
  1171. | YY_BREAK
  1172. | #line 792 "lex.yy.c"
  1173. | case YY_STATE_EOF(INITIAL):
  1174. | yyterminate();
  1175. |
  1176. | case YY_END_OF_BUFFER:
  1177. | {
  1178. | /* Amount of text matched not including the EOB char. */
  1179. | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  1180. |
  1181. | /* Undo the effects of YY_DO_BEFORE_ACTION. */
  1182. | *yy_cp = (yy_hold_char);
  1183. | YY_RESTORE_YY_MORE_OFFSET
  1184. |
  1185. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  1186. | {
  1187. | /* We're scanning a new file or input source. It's
  1188. | * possible that this happened because the user
  1189. | * just pointed yyin at a new source and called
  1190. | * yylex(). If so, then we have to assure
  1191. | * consistency between YY_CURRENT_BUFFER and our
  1192. | * globals. Here is the right place to do so, because
  1193. | * this is the first action (other than possibly a
  1194. | * back-up) that will match for the new input source.
  1195. | */
  1196. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1197. | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  1198. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  1199. | }
  1200. |
  1201. | /* Note that here we test for yy_c_buf_p "<=" to the position
  1202. | * of the first EOB in the buffer, since yy_c_buf_p will
  1203. | * already have been incremented past the NUL character
  1204. | * (since all states make transitions on EOB to the
  1205. | * end-of-buffer state). Contrast this with the test
  1206. | * in input().
  1207. | */
  1208. | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  1209. | { /* This was really a NUL. */
  1210. | yy_state_type yy_next_state;
  1211. |
  1212. | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  1213. |
  1214. | yy_current_state = yy_get_previous_state( );
  1215. |
  1216. | /* Okay, we're now positioned to make the NUL
  1217. | * transition. We couldn't have
  1218. | * yy_get_previous_state() go ahead and do it
  1219. | * for us because it doesn't know how to deal
  1220. | * with the possibility of jamming (and we don't
  1221. | * want to build jamming into it because then it
  1222. | * will run more slowly).
  1223. | */
  1224. |
  1225. | yy_next_state = yy_try_NUL_trans( yy_current_state );
  1226. |
  1227. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1228. |
  1229. | if ( yy_next_state )
  1230. | {
  1231. | /* Consume the NUL. */
  1232. | yy_cp = ++(yy_c_buf_p);
  1233. | yy_current_state = yy_next_state;
  1234. | goto yy_match;
  1235. | }
  1236. |
  1237. | else
  1238. | {
  1239. | yy_cp = (yy_c_buf_p);
  1240. | goto yy_find_action;
  1241. | }
  1242. | }
  1243. |
  1244. | else switch ( yy_get_next_buffer( ) )
  1245. | {
  1246. | case EOB_ACT_END_OF_FILE:
  1247. | {
  1248. | (yy_did_buffer_switch_on_eof) = 0;
  1249. |
  1250. | if ( yywrap( ) )
  1251. | {
  1252. | /* Note: because we've taken care in
  1253. | * yy_get_next_buffer() to have set up
  1254. | * yytext, we can now set up
  1255. | * yy_c_buf_p so that if some total
  1256. | * hoser (like flex itself) wants to
  1257. | * call the scanner after we return the
  1258. | * YY_NULL, it'll still work - another
  1259. | * YY_NULL will get returned.
  1260. | */
  1261. | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  1262. |
  1263. | yy_act = YY_STATE_EOF(YY_START);
  1264. | goto do_action;
  1265. | }
  1266. |
  1267. | else
  1268. | {
  1269. | if ( ! (yy_did_buffer_switch_on_eof) )
  1270. | YY_NEW_FILE;
  1271. | }
  1272. | break;
  1273. | }
  1274. |
  1275. | case EOB_ACT_CONTINUE_SCAN:
  1276. | (yy_c_buf_p) =
  1277. | (yytext_ptr) + yy_amount_of_matched_text;
  1278. |
  1279. | yy_current_state = yy_get_previous_state( );
  1280. |
  1281. | yy_cp = (yy_c_buf_p);
  1282. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1283. | goto yy_match;
  1284. |
  1285. | case EOB_ACT_LAST_MATCH:
  1286. | (yy_c_buf_p) =
  1287. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  1288. |
  1289. | yy_current_state = yy_get_previous_state( );
  1290. |
  1291. | yy_cp = (yy_c_buf_p);
  1292. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1293. | goto yy_find_action;
  1294. | }
  1295. | break;
  1296. | }
  1297. |
  1298. | default:
  1299. | YY_FATAL_ERROR(
  1300. | "fatal flex scanner internal error--no action found" );
  1301. | } /* end of action switch */
  1302. | } /* end of scanning one token */
  1303. | } /* end of yylex */
  1304. |
  1305. | /* yy_get_next_buffer - try to read in a new buffer
  1306. | *
  1307. | * Returns a code representing an action:
  1308. | * EOB_ACT_LAST_MATCH -
  1309. | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1310. | * EOB_ACT_END_OF_FILE - end of file
  1311. | */
  1312. | static int yy_get_next_buffer (void)
  1313. | {
  1314. | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  1315. | register char *source = (yytext_ptr);
  1316. | register int number_to_move, i;
  1317. | int ret_val;
  1318. |
  1319. | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  1320. | YY_FATAL_ERROR(
  1321. | "fatal flex scanner internal error--end of buffer missed" );
  1322. |
  1323. | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  1324. | { /* Don't try to fill the buffer, so this is an EOF. */
  1325. | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  1326. | {
  1327. | /* We matched a single character, the EOB, so
  1328. | * treat this as a final EOF.
  1329. | */
  1330. | return EOB_ACT_END_OF_FILE;
  1331. | }
  1332. |
  1333. | else
  1334. | {
  1335. | /* We matched some text prior to the EOB, first
  1336. | * process it.
  1337. | */
  1338. | return EOB_ACT_LAST_MATCH;
  1339. | }
  1340. | }
  1341. |
  1342. | /* Try to read more data. */
  1343. |
  1344. | /* First move last chars to start of buffer. */
  1345. | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
  1346. |
  1347. | for ( i = 0; i < number_to_move; ++i )
  1348. | *(dest++) = *(source++);
  1349. |
  1350. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  1351. | /* don't do the read, it's not guaranteed to return an EOF,
  1352. | * just force an EOF
  1353. | */
  1354. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  1355. |
  1356. | else
  1357. | {
  1358. | yy_size_t num_to_read =
  1359. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  1360. |
  1361. | while ( num_to_read <= 0 )
  1362. | { /* Not enough room in the buffer - grow it. */
  1363. |
  1364. | YY_FATAL_ERROR(
  1365. | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  1366. |
  1367. | }
  1368. |
  1369. | if ( num_to_read > YY_READ_BUF_SIZE )
  1370. | num_to_read = YY_READ_BUF_SIZE;
  1371. |
  1372. | /* Read in more data. */
  1373. | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  1374. | (yy_n_chars), num_to_read );
  1375. |
  1376. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1377. | }
  1378. |
  1379. | if ( (yy_n_chars) == 0 )
  1380. | {
  1381. | if ( number_to_move == YY_MORE_ADJ )
  1382. | {
  1383. | ret_val = EOB_ACT_END_OF_FILE;
  1384. | yyrestart(yyin );
  1385. | }
  1386. |
  1387. | else
  1388. | {
  1389. | ret_val = EOB_ACT_LAST_MATCH;
  1390. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  1391. | YY_BUFFER_EOF_PENDING;
  1392. | }
  1393. | }
  1394. |
  1395. | else
  1396. | ret_val = EOB_ACT_CONTINUE_SCAN;
  1397. |
  1398. | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  1399. | /* Extend the array by 50%, plus the number we really need. */
  1400. | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  1401. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
  1402. | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  1403. | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  1404. | }
  1405. |
  1406. | (yy_n_chars) += number_to_move;
  1407. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  1408. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  1409. |
  1410. | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  1411. |
  1412. | return ret_val;
  1413. | }
  1414. |
  1415. | /* yy_get_previous_state - get the state just before the EOB char was reached */
  1416. |
  1417. | static yy_state_type yy_get_previous_state (void)
  1418. | {
  1419. | register yy_state_type yy_current_state;
  1420. | register char *yy_cp;
  1421. |
  1422. | yy_current_state = (yy_start);
  1423. |
  1424. | (yy_state_ptr) = (yy_state_buf);
  1425. | *(yy_state_ptr)++ = yy_current_state;
  1426. |
  1427. | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  1428. | {
  1429. | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  1430. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1431. | {
  1432. | yy_current_state = (int) yy_def[yy_current_state];
  1433. | if ( yy_current_state >= 13 )
  1434. | yy_c = yy_meta[(unsigned int) yy_c];
  1435. | }
  1436. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1437. | *(yy_state_ptr)++ = yy_current_state;
  1438. | }
  1439. |
  1440. | return yy_current_state;
  1441. | }
  1442. |
  1443. | /* yy_try_NUL_trans - try to make a transition on the NUL character
  1444. | *
  1445. | * synopsis
  1446. | * next_state = yy_try_NUL_trans( current_state );
  1447. | */
  1448. | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  1449. | {
  1450. | register int yy_is_jam;
  1451. |
  1452. | register YY_CHAR yy_c = 1;
  1453. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1454. | {
  1455. | yy_current_state = (int) yy_def[yy_current_state];
  1456. | if ( yy_current_state >= 13 )
  1457. | yy_c = yy_meta[(unsigned int) yy_c];
  1458. | }
  1459. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1460. | yy_is_jam = (yy_current_state == 12);
  1461. | if ( ! yy_is_jam )
  1462. | *(yy_state_ptr)++ = yy_current_state;
  1463. |
  1464. | return yy_is_jam ? 0 : yy_current_state;
  1465. | }
  1466. |
  1467. | static void yyunput (int c, register char * yy_bp )
  1468. | {
  1469. | register char *yy_cp;
  1470. |
  1471. | yy_cp = (yy_c_buf_p);
  1472. |
  1473. | /* undo effects of setting up yytext */
  1474. | *yy_cp = (yy_hold_char);
  1475. |
  1476. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  1477. | { /* need to shift things up to make room */
  1478. | /* +2 for EOB chars. */
  1479. | register yy_size_t number_to_move = (yy_n_chars) + 2;
  1480. | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  1481. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  1482. | register char *source =
  1483. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  1484. |
  1485. | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  1486. | *--dest = *--source;
  1487. |
  1488. | yy_cp += (int) (dest - source);
  1489. | yy_bp += (int) (dest - source);
  1490. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  1491. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  1492. |
  1493. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  1494. | YY_FATAL_ERROR( "flex scanner push-back overflow" );
  1495. | }
  1496. |
  1497. | *--yy_cp = (char) c;
  1498. |
  1499. | (yytext_ptr) = yy_bp;
  1500. | (yy_hold_char) = *yy_cp;
  1501. | (yy_c_buf_p) = yy_cp;
  1502. | }
  1503. |
  1504. | #ifndef YY_NO_INPUT
  1505. | #ifdef __cplusplus
  1506. | static int yyinput (void)
  1507. | #else
  1508. | static int input (void)
  1509. | #endif
  1510. |
  1511. | {
  1512. | int c;
  1513. |
  1514. | *(yy_c_buf_p) = (yy_hold_char);
  1515. |
  1516. | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  1517. | {
  1518. | /* yy_c_buf_p now points to the character we want to return.
  1519. | * If this occurs *before* the EOB characters, then it's a
  1520. | * valid NUL; if not, then we've hit the end of the buffer.
  1521. | */
  1522. | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  1523. | /* This was really a NUL. */
  1524. | *(yy_c_buf_p) = '\0';
  1525. |
  1526. | else
  1527. | { /* need more input */
  1528. | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
  1529. | ++(yy_c_buf_p);
  1530. |
  1531. | switch ( yy_get_next_buffer( ) )
  1532. | {
  1533. | case EOB_ACT_LAST_MATCH:
  1534. | /* This happens because yy_g_n_b()
  1535. | * sees that we've accumulated a
  1536. | * token and flags that we need to
  1537. | * try matching the token before
  1538. | * proceeding. But for input(),
  1539. | * there's no matching to consider.
  1540. | * So convert the EOB_ACT_LAST_MATCH
  1541. | * to EOB_ACT_END_OF_FILE.
  1542. | */
  1543. |
  1544. | /* Reset buffer status. */
  1545. | yyrestart(yyin );
  1546. |
  1547. | /*FALLTHROUGH*/
  1548. |
  1549. | case EOB_ACT_END_OF_FILE:
  1550. | {
  1551. | if ( yywrap( ) )
  1552. | return EOF;
  1553. |
  1554. | if ( ! (yy_did_buffer_switch_on_eof) )
  1555. | YY_NEW_FILE;
  1556. | #ifdef __cplusplus
  1557. | return yyinput();
  1558. | #else
  1559. | return input();
  1560. | #endif
  1561. | }
  1562. |
  1563. | case EOB_ACT_CONTINUE_SCAN:
  1564. | (yy_c_buf_p) = (yytext_ptr) + offset;
  1565. | break;
  1566. | }
  1567. | }
  1568. | }
  1569. |
  1570. | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  1571. | *(yy_c_buf_p) = '\0'; /* preserve yytext */
  1572. | (yy_hold_char) = *++(yy_c_buf_p);
  1573. |
  1574. | return c;
  1575. | }
  1576. | #endif /* ifndef YY_NO_INPUT */
  1577. |
  1578. | /** Immediately switch to a different input stream.
  1579. | * @param input_file A readable stream.
  1580. | *
  1581. | * @note This function does not reset the start condition to @c INITIAL .
  1582. | */
  1583. | void yyrestart (FILE * input_file )
  1584. | {
  1585. |
  1586. | if ( ! YY_CURRENT_BUFFER ){
  1587. | yyensure_buffer_stack ();
  1588. | YY_CURRENT_BUFFER_LVALUE =
  1589. | yy_create_buffer(yyin,YY_BUF_SIZE );
  1590. | }
  1591. |
  1592. | yy_init_buffer(YY_CURRENT_BUFFER,input_file );
  1593. | yy_load_buffer_state( );
  1594. | }
  1595. |
  1596. | /** Switch to a different input buffer.
  1597. | * @param new_buffer The new input buffer.
  1598. | *
  1599. | */
  1600. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  1601. | {
  1602. |
  1603. | /* TODO. We should be able to replace this entire function body
  1604. | * with
  1605. | * yypop_buffer_state();
  1606. | * yypush_buffer_state(new_buffer);
  1607. | */
  1608. | yyensure_buffer_stack ();
  1609. | if ( YY_CURRENT_BUFFER == new_buffer )
  1610. | return;
  1611. |
  1612. | if ( YY_CURRENT_BUFFER )
  1613. | {
  1614. | /* Flush out information for old buffer. */
  1615. | *(yy_c_buf_p) = (yy_hold_char);
  1616. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  1617. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1618. | }
  1619. |
  1620. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1621. | yy_load_buffer_state( );
  1622. |
  1623. | /* We don't actually know whether we did this switch during
  1624. | * EOF (yywrap()) processing, but the only time this flag
  1625. | * is looked at is after yywrap() is called, so it's safe
  1626. | * to go ahead and always set it.
  1627. | */
  1628. | (yy_did_buffer_switch_on_eof) = 1;
  1629. | }
  1630. |
  1631. | static void yy_load_buffer_state (void)
  1632. | {
  1633. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1634. | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  1635. | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  1636. | (yy_hold_char) = *(yy_c_buf_p);
  1637. | }
  1638. |
  1639. | /** Allocate and initialize an input buffer state.
  1640. | * @param file A readable stream.
  1641. | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  1642. | *
  1643. | * @return the allocated buffer state.
  1644. | */
  1645. | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  1646. | {
  1647. | YY_BUFFER_STATE b;
  1648. |
  1649. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  1650. | if ( ! b )
  1651. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1652. |
  1653. | b->yy_buf_size = size;
  1654. |
  1655. | /* yy_ch_buf has to be 2 characters longer than the size given because
  1656. | * we need to put in 2 end-of-buffer characters.
  1657. | */
  1658. | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
  1659. | if ( ! b->yy_ch_buf )
  1660. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1661. |
  1662. | b->yy_is_our_buffer = 1;
  1663. |
  1664. | yy_init_buffer(b,file );
  1665. |
  1666. | return b;
  1667. | }
  1668. |
  1669. | /** Destroy the buffer.
  1670. | * @param b a buffer created with yy_create_buffer()
  1671. | *
  1672. | */
  1673. | void yy_delete_buffer (YY_BUFFER_STATE b )
  1674. | {
  1675. |
  1676. | if ( ! b )
  1677. | return;
  1678. |
  1679. | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  1680. | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  1681. |
  1682. | if ( b->yy_is_our_buffer )
  1683. | yyfree((void *) b->yy_ch_buf );
  1684. |
  1685. | yyfree((void *) b );
  1686. | }
  1687. |
  1688. | /* Initializes or reinitializes a buffer.
  1689. | * This function is sometimes called more than once on the same buffer,
  1690. | * such as during a yyrestart() or at EOF.
  1691. | */
  1692. | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  1693. |
  1694. | {
  1695. | int oerrno = errno;
  1696. |
  1697. | yy_flush_buffer(b );
  1698. |
  1699. | b->yy_input_file = file;
  1700. | b->yy_fill_buffer = 1;
  1701. |
  1702. | /* If b is the current buffer, then yy_init_buffer was _probably_
  1703. | * called from yyrestart() or through yy_get_next_buffer.
  1704. | * In that case, we don't want to reset the lineno or column.
  1705. | */
  1706. | if (b != YY_CURRENT_BUFFER){
  1707. | b->yy_bs_lineno = 1;
  1708. | b->yy_bs_column = 0;
  1709. | }
  1710. |
  1711. | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  1712. |
  1713. | errno = oerrno;
  1714. | }
  1715. |
  1716. | /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  1717. | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  1718. | *
  1719. | */
  1720. | void yy_flush_buffer (YY_BUFFER_STATE b )
  1721. | {
  1722. | if ( ! b )
  1723. | return;
  1724. |
  1725. | b->yy_n_chars = 0;
  1726. |
  1727. | /* We always need two end-of-buffer characters. The first causes
  1728. | * a transition to the end-of-buffer state. The second causes
  1729. | * a jam in that state.
  1730. | */
  1731. | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  1732. | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1733. |
  1734. | b->yy_buf_pos = &b->yy_ch_buf[0];
  1735. |
  1736. | b->yy_at_bol = 1;
  1737. | b->yy_buffer_status = YY_BUFFER_NEW;
  1738. |
  1739. | if ( b == YY_CURRENT_BUFFER )
  1740. | yy_load_buffer_state( );
  1741. | }
  1742. |
  1743. | /** Pushes the new state onto the stack. The new state becomes
  1744. | * the current state. This function will allocate the stack
  1745. | * if necessary.
  1746. | * @param new_buffer The new state.
  1747. | *
  1748. | */
  1749. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  1750. | {
  1751. | if (new_buffer == NULL)
  1752. | return;
  1753. |
  1754. | yyensure_buffer_stack();
  1755. |
  1756. | /* This block is copied from yy_switch_to_buffer. */
  1757. | if ( YY_CURRENT_BUFFER )
  1758. | {
  1759. | /* Flush out information for old buffer. */
  1760. | *(yy_c_buf_p) = (yy_hold_char);
  1761. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  1762. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1763. | }
  1764. |
  1765. | /* Only push if top exists. Otherwise, replace top. */
  1766. | if (YY_CURRENT_BUFFER)
  1767. | (yy_buffer_stack_top)++;
  1768. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1769. |
  1770. | /* copied from yy_switch_to_buffer. */
  1771. | yy_load_buffer_state( );
  1772. | (yy_did_buffer_switch_on_eof) = 1;
  1773. | }
  1774. |
  1775. | /** Removes and deletes the top of the stack, if present.
  1776. | * The next element becomes the new top.
  1777. | *
  1778. | */
  1779. | void yypop_buffer_state (void)
  1780. | {
  1781. | if (!YY_CURRENT_BUFFER)
  1782. | return;
  1783. |
  1784. | yy_delete_buffer(YY_CURRENT_BUFFER );
  1785. | YY_CURRENT_BUFFER_LVALUE = NULL;
  1786. | if ((yy_buffer_stack_top) > 0)
  1787. | --(yy_buffer_stack_top);
  1788. |
  1789. | if (YY_CURRENT_BUFFER) {
  1790. | yy_load_buffer_state( );
  1791. | (yy_did_buffer_switch_on_eof) = 1;
  1792. | }
  1793. | }
  1794. |
  1795. | /* Allocates the stack if it does not exist.
  1796. | * Guarantees space for at least one push.
  1797. | */
  1798. | static void yyensure_buffer_stack (void)
  1799. | {
  1800. | yy_size_t num_to_alloc;
  1801. |
  1802. | if (!(yy_buffer_stack)) {
  1803. |
  1804. | /* First allocation is just for 2 elements, since we don't know if this
  1805. | * scanner will even need a stack. We use 2 instead of 1 to avoid an
  1806. | * immediate realloc on the next call.
  1807. | */
  1808. | num_to_alloc = 1;
  1809. | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  1810. | (num_to_alloc * sizeof(struct yy_buffer_state*)
  1811. | );
  1812. | if ( ! (yy_buffer_stack) )
  1813. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  1814. |
  1815. | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  1816. |
  1817. | (yy_buffer_stack_max) = num_to_alloc;
  1818. | (yy_buffer_stack_top) = 0;
  1819. | return;
  1820. | }
  1821. |
  1822. | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  1823. |
  1824. | /* Increase the buffer to prepare for a possible push. */
  1825. | int grow_size = 8 /* arbitrary grow size */;
  1826. |
  1827. | num_to_alloc = (yy_buffer_stack_max) + grow_size;
  1828. | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  1829. | ((yy_buffer_stack),
  1830. | num_to_alloc * sizeof(struct yy_buffer_state*)
  1831. | );
  1832. | if ( ! (yy_buffer_stack) )
  1833. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  1834. |
  1835. | /* zero only the new slots.*/
  1836. | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  1837. | (yy_buffer_stack_max) = num_to_alloc;
  1838. | }
  1839. | }
  1840. |
  1841. | /** Setup the input buffer state to scan directly from a user-specified character buffer.
  1842. | * @param base the character buffer
  1843. | * @param size the size in bytes of the character buffer
  1844. | *
  1845. | * @return the newly allocated buffer state object.
  1846. | */
  1847. | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  1848. | {
  1849. | YY_BUFFER_STATE b;
  1850. |
  1851. | if ( size < 2 ||
  1852. | base[size-2] != YY_END_OF_BUFFER_CHAR ||
  1853. | base[size-1] != YY_END_OF_BUFFER_CHAR )
  1854. | /* They forgot to leave room for the EOB's. */
  1855. | return 0;
  1856. |
  1857. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  1858. | if ( ! b )
  1859. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  1860. |
  1861. | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  1862. | b->yy_buf_pos = b->yy_ch_buf = base;
  1863. | b->yy_is_our_buffer = 0;
  1864. | b->yy_input_file = 0;
  1865. | b->yy_n_chars = b->yy_buf_size;
  1866. | b->yy_is_interactive = 0;
  1867. | b->yy_at_bol = 1;
  1868. | b->yy_fill_buffer = 0;
  1869. | b->yy_buffer_status = YY_BUFFER_NEW;
  1870. |
  1871. | yy_switch_to_buffer(b );
  1872. |
  1873. | return b;
  1874. | }
  1875. |
  1876. | /** Setup the input buffer state to scan a string. The next call to yylex() will
  1877. | * scan from a @e copy of @a str.
  1878. | * @param yystr a NUL-terminated string to scan
  1879. | *
  1880. | * @return the newly allocated buffer state object.
  1881. | * @note If you want to scan bytes that may contain NUL values, then use
  1882. | * yy_scan_bytes() instead.
  1883. | */
  1884. | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
  1885. | {
  1886. |
  1887. | return yy_scan_bytes(yystr,strlen(yystr) );
  1888. | }
  1889. |
  1890. | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  1891. | * scan from a @e copy of @a bytes.
  1892. | * @param yybytes the byte buffer to scan
  1893. | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  1894. | *
  1895. | * @return the newly allocated buffer state object.
  1896. | */
  1897. | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
  1898. | {
  1899. | YY_BUFFER_STATE b;
  1900. | char *buf;
  1901. | yy_size_t n;
  1902. | int i;
  1903. |
  1904. | /* Get memory for full buffer, including space for trailing EOB's. */
  1905. | n = _yybytes_len + 2;
  1906. | buf = (char *) yyalloc(n );
  1907. | if ( ! buf )
  1908. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  1909. |
  1910. | for ( i = 0; i < _yybytes_len; ++i )
  1911. | buf[i] = yybytes[i];
  1912. |
  1913. | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  1914. |
  1915. | b = yy_scan_buffer(buf,n );
  1916. | if ( ! b )
  1917. | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  1918. |
  1919. | /* It's okay to grow etc. this buffer, and we should throw it
  1920. | * away when we're done.
  1921. | */
  1922. | b->yy_is_our_buffer = 1;
  1923. |
  1924. | return b;
  1925. | }
  1926. |
  1927. | #ifndef YY_EXIT_FAILURE
  1928. | #define YY_EXIT_FAILURE 2
  1929. | #endif
  1930. |
  1931. | static void yy_fatal_error (yyconst char* msg )
  1932. | {
  1933. | (void) fprintf( stderr, "%s\n", msg );
  1934. | exit( YY_EXIT_FAILURE );
  1935. | }
  1936. |
  1937. | /* Redefine yyless() so it works in section 3 code. */
  1938. |
  1939. | #undef yyless
  1940. | #define yyless(n) \
  1941. | do \
  1942. | { \
  1943. | /* Undo effects of setting up yytext. */ \
  1944. | int yyless_macro_arg = (n); \
  1945. | YY_LESS_LINENO(yyless_macro_arg);\
  1946. | yytext[yyleng] = (yy_hold_char); \
  1947. | (yy_c_buf_p) = yytext + yyless_macro_arg; \
  1948. | (yy_hold_char) = *(yy_c_buf_p); \
  1949. | *(yy_c_buf_p) = '\0'; \
  1950. | yyleng = yyless_macro_arg; \
  1951. | } \
  1952. | while ( 0 )
  1953. |
  1954. | /* Accessor methods (get/set functions) to struct members. */
  1955. |
  1956. | /** Get the current line number.
  1957. | *
  1958. | */
  1959. | int yyget_lineno (void)
  1960. | {
  1961. |
  1962. | return yylineno;
  1963. | }
  1964. |
  1965. | /** Get the input stream.
  1966. | *
  1967. | */
  1968. | FILE *yyget_in (void)
  1969. | {
  1970. | return yyin;
  1971. | }
  1972. |
  1973. | /** Get the output stream.
  1974. | *
  1975. | */
  1976. | FILE *yyget_out (void)
  1977. | {
  1978. | return yyout;
  1979. | }
  1980. |
  1981. | /** Get the length of the current token.
  1982. | *
  1983. | */
  1984. | yy_size_t yyget_leng (void)
  1985. | {
  1986. | return yyleng;
  1987. | }
  1988. |
  1989. | /** Get the current token.
  1990. | *
  1991. | */
  1992. |
  1993. | char *yyget_text (void)
  1994. | {
  1995. | return yytext;
  1996. | }
  1997. |
  1998. | /** Set the current line number.
  1999. | * @param line_number
  2000. | *
  2001. | */
  2002. | void yyset_lineno (int line_number )
  2003. | {
  2004. |
  2005. | yylineno = line_number;
  2006. | }
  2007. |
  2008. | /** Set the input stream. This does not discard the current
  2009. | * input buffer.
  2010. | * @param in_str A readable stream.
  2011. | *
  2012. | * @see yy_switch_to_buffer
  2013. | */
  2014. | void yyset_in (FILE * in_str )
  2015. | {
  2016. | yyin = in_str ;
  2017. | }
  2018. |
  2019. | void yyset_out (FILE * out_str )
  2020. | {
  2021. | yyout = out_str ;
  2022. | }
  2023. |
  2024. | int yyget_debug (void)
  2025. | {
  2026. | return yy_flex_debug;
  2027. | }
  2028. |
  2029. | void yyset_debug (int bdebug )
  2030. | {
  2031. | yy_flex_debug = bdebug ;
  2032. | }
  2033. |
  2034. | static int yy_init_globals (void)
  2035. | {
  2036. | /* Initialization is the same as for the non-reentrant scanner.
  2037. | * This function is called from yylex_destroy(), so don't allocate here.
  2038. | */
  2039. |
  2040. | (yy_buffer_stack) = 0;
  2041. | (yy_buffer_stack_top) = 0;
  2042. | (yy_buffer_stack_max) = 0;
  2043. | (yy_c_buf_p) = (char *) 0;
  2044. | (yy_init) = 0;
  2045. | (yy_start) = 0;
  2046. |
  2047. | (yy_state_buf) = 0;
  2048. | (yy_state_ptr) = 0;
  2049. | (yy_full_match) = 0;
  2050. | (yy_lp) = 0;
  2051. |
  2052. | /* Defined in main.c */
  2053. | #ifdef YY_STDINIT
  2054. | yyin = stdin;
  2055. | yyout = stdout;
  2056. | #else
  2057. | yyin = (FILE *) 0;
  2058. | yyout = (FILE *) 0;
  2059. | #endif
  2060. |
  2061. | /* For future reference: Set errno on error, since we are called by
  2062. | * yylex_init()
  2063. | */
  2064. | return 0;
  2065. | }
  2066. |
  2067. | /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  2068. | int yylex_destroy (void)
  2069. | {
  2070. |
  2071. | /* Pop the buffer stack, destroying each element. */
  2072. | while(YY_CURRENT_BUFFER){
  2073. | yy_delete_buffer(YY_CURRENT_BUFFER );
  2074. | YY_CURRENT_BUFFER_LVALUE = NULL;
  2075. | yypop_buffer_state();
  2076. | }
  2077. |
  2078. | /* Destroy the stack itself. */
  2079. | yyfree((yy_buffer_stack) );
  2080. | (yy_buffer_stack) = NULL;
  2081. |
  2082. | yyfree ( (yy_state_buf) );
  2083. | (yy_state_buf) = NULL;
  2084. |
  2085. | /* Reset the globals. This is important in a non-reentrant scanner so the next time
  2086. | * yylex() is called, initialization will occur. */
  2087. | yy_init_globals( );
  2088. |
  2089. | return 0;
  2090. | }
  2091. |
  2092. | /*
  2093. | * Internal utility routines.
  2094. | */
  2095. |
  2096. | #ifndef yytext_ptr
  2097. | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
  2098. | {
  2099. | register int i;
  2100. | for ( i = 0; i < n; ++i )
  2101. | s1[i] = s2[i];
  2102. | }
  2103. | #endif
  2104. |
  2105. | #ifdef YY_NEED_STRLEN
  2106. | static int yy_flex_strlen (yyconst char * s )
  2107. | {
  2108. | register int n;
  2109. | for ( n = 0; s[n]; ++n )
  2110. | ;
  2111. |
  2112. | return n;
  2113. | }
  2114. | #endif
  2115. |
  2116. | void *yyalloc (yy_size_t size )
  2117. | {
  2118. | return (void *) malloc( size );
  2119. | }
  2120. |
  2121. | void *yyrealloc (void * ptr, yy_size_t size )
  2122. | {
  2123. | /* The cast to (char *) in the following accommodates both
  2124. | * implementations that use char* generic pointers, and those
  2125. | * that use void* generic pointers. It works with the latter
  2126. | * because both ANSI C and C++ allow castless assignment from
  2127. | * any pointer type to void*, and deal with argument conversions
  2128. | * as though doing an assignment.
  2129. | */
  2130. | return (void *) realloc( (char *) ptr, size );
  2131. | }
  2132. |
  2133. | void yyfree (void * ptr )
  2134. | {
  2135. | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  2136. | }
  2137. |
  2138. | #define YYTABLES_NAME "yytables"
  2139. |
  2140. | #line 10 "conftest.l"
  2141. |
  2142. |
  2143. | #ifdef YYTEXT_POINTER
  2144. | extern char *yytext;
  2145. | #endif
  2146. | int
  2147. | main (void)
  2148. | {
  2149. | return ! yylex () + ! yywrap ();
  2150. | }
  2151. configure:11660: gcc -o conftest -g -O2 conftest.c -lfl >&5
  2152. /usr/bin/ld: cannot find -lfl
  2153. collect2: error: ld returned 1 exit status
  2154. configure:11660: $? = 1
  2155. configure: failed program was:
  2156. | /* confdefs.h */
  2157. | #define PACKAGE_NAME "ipsec-tools"
  2158. | #define PACKAGE_TARNAME "ipsec-tools"
  2159. | #define PACKAGE_VERSION "0.8.1"
  2160. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  2161. | #define PACKAGE_BUGREPORT ""
  2162. | #define PACKAGE_URL ""
  2163. | #define PACKAGE "ipsec-tools"
  2164. | #define VERSION "0.8.1"
  2165. | #define STDC_HEADERS 1
  2166. | #define HAVE_SYS_TYPES_H 1
  2167. | #define HAVE_SYS_STAT_H 1
  2168. | #define HAVE_STDLIB_H 1
  2169. | #define HAVE_STRING_H 1
  2170. | #define HAVE_MEMORY_H 1
  2171. | #define HAVE_STRINGS_H 1
  2172. | #define HAVE_INTTYPES_H 1
  2173. | #define HAVE_STDINT_H 1
  2174. | #define HAVE_UNISTD_H 1
  2175. | #define HAVE_DLFCN_H 1
  2176. | #define LT_OBJDIR ".libs/"
  2177. | /* end confdefs.h. */
  2178. |
  2179. | #line 3 "lex.yy.c"
  2180. |
  2181. | #define YY_INT_ALIGNED short int
  2182. |
  2183. | /* A lexical scanner generated by flex */
  2184. |
  2185. | #define FLEX_SCANNER
  2186. | #define YY_FLEX_MAJOR_VERSION 2
  2187. | #define YY_FLEX_MINOR_VERSION 5
  2188. | #define YY_FLEX_SUBMINOR_VERSION 37
  2189. | #if YY_FLEX_SUBMINOR_VERSION > 0
  2190. | #define FLEX_BETA
  2191. | #endif
  2192. |
  2193. | /* First, we deal with platform-specific or compiler-specific issues. */
  2194. |
  2195. | /* begin standard C headers. */
  2196. | #include <stdio.h>
  2197. | #include <string.h>
  2198. | #include <errno.h>
  2199. | #include <stdlib.h>
  2200. |
  2201. | /* end standard C headers. */
  2202. |
  2203. | /* flex integer type definitions */
  2204. |
  2205. | #ifndef FLEXINT_H
  2206. | #define FLEXINT_H
  2207. |
  2208. | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  2209. |
  2210. | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  2211. |
  2212. | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  2213. | * if you want the limit (max/min) macros for int types.
  2214. | */
  2215. | #ifndef __STDC_LIMIT_MACROS
  2216. | #define __STDC_LIMIT_MACROS 1
  2217. | #endif
  2218. |
  2219. | #include <inttypes.h>
  2220. | typedef int8_t flex_int8_t;
  2221. | typedef uint8_t flex_uint8_t;
  2222. | typedef int16_t flex_int16_t;
  2223. | typedef uint16_t flex_uint16_t;
  2224. | typedef int32_t flex_int32_t;
  2225. | typedef uint32_t flex_uint32_t;
  2226. | #else
  2227. | typedef signed char flex_int8_t;
  2228. | typedef short int flex_int16_t;
  2229. | typedef int flex_int32_t;
  2230. | typedef unsigned char flex_uint8_t;
  2231. | typedef unsigned short int flex_uint16_t;
  2232. | typedef unsigned int flex_uint32_t;
  2233. |
  2234. | /* Limits of integral types. */
  2235. | #ifndef INT8_MIN
  2236. | #define INT8_MIN (-128)
  2237. | #endif
  2238. | #ifndef INT16_MIN
  2239. | #define INT16_MIN (-32767-1)
  2240. | #endif
  2241. | #ifndef INT32_MIN
  2242. | #define INT32_MIN (-2147483647-1)
  2243. | #endif
  2244. | #ifndef INT8_MAX
  2245. | #define INT8_MAX (127)
  2246. | #endif
  2247. | #ifndef INT16_MAX
  2248. | #define INT16_MAX (32767)
  2249. | #endif
  2250. | #ifndef INT32_MAX
  2251. | #define INT32_MAX (2147483647)
  2252. | #endif
  2253. | #ifndef UINT8_MAX
  2254. | #define UINT8_MAX (255U)
  2255. | #endif
  2256. | #ifndef UINT16_MAX
  2257. | #define UINT16_MAX (65535U)
  2258. | #endif
  2259. | #ifndef UINT32_MAX
  2260. | #define UINT32_MAX (4294967295U)
  2261. | #endif
  2262. |
  2263. | #endif /* ! C99 */
  2264. |
  2265. | #endif /* ! FLEXINT_H */
  2266. |
  2267. | #ifdef __cplusplus
  2268. |
  2269. | /* The "const" storage-class-modifier is valid. */
  2270. | #define YY_USE_CONST
  2271. |
  2272. | #else /* ! __cplusplus */
  2273. |
  2274. | /* C99 requires __STDC__ to be defined as 1. */
  2275. | #if defined (__STDC__)
  2276. |
  2277. | #define YY_USE_CONST
  2278. |
  2279. | #endif /* defined (__STDC__) */
  2280. | #endif /* ! __cplusplus */
  2281. |
  2282. | #ifdef YY_USE_CONST
  2283. | #define yyconst const
  2284. | #else
  2285. | #define yyconst
  2286. | #endif
  2287. |
  2288. | /* Returned upon end-of-file. */
  2289. | #define YY_NULL 0
  2290. |
  2291. | /* Promotes a possibly negative, possibly signed char to an unsigned
  2292. | * integer for use as an array index. If the signed char is negative,
  2293. | * we want to instead treat it as an 8-bit unsigned char, hence the
  2294. | * double cast.
  2295. | */
  2296. | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  2297. |
  2298. | /* Enter a start condition. This macro really ought to take a parameter,
  2299. | * but we do it the disgusting crufty way forced on us by the ()-less
  2300. | * definition of BEGIN.
  2301. | */
  2302. | #define BEGIN (yy_start) = 1 + 2 *
  2303. |
  2304. | /* Translate the current start state into a value that can be later handed
  2305. | * to BEGIN to return to the state. The YYSTATE alias is for lex
  2306. | * compatibility.
  2307. | */
  2308. | #define YY_START (((yy_start) - 1) / 2)
  2309. | #define YYSTATE YY_START
  2310. |
  2311. | /* Action number for EOF rule of a given start state. */
  2312. | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  2313. |
  2314. | /* Special action meaning "start processing a new file". */
  2315. | #define YY_NEW_FILE yyrestart(yyin )
  2316. |
  2317. | #define YY_END_OF_BUFFER_CHAR 0
  2318. |
  2319. | /* Size of default input buffer. */
  2320. | #ifndef YY_BUF_SIZE
  2321. | #define YY_BUF_SIZE 16384
  2322. | #endif
  2323. |
  2324. | /* The state buf must be large enough to hold one state per character in the main buffer.
  2325. | */
  2326. | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  2327. |
  2328. | #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  2329. | #define YY_TYPEDEF_YY_BUFFER_STATE
  2330. | typedef struct yy_buffer_state *YY_BUFFER_STATE;
  2331. | #endif
  2332. |
  2333. | #ifndef YY_TYPEDEF_YY_SIZE_T
  2334. | #define YY_TYPEDEF_YY_SIZE_T
  2335. | typedef size_t yy_size_t;
  2336. | #endif
  2337. |
  2338. | extern yy_size_t yyleng;
  2339. |
  2340. | extern FILE *yyin, *yyout;
  2341. |
  2342. | #define EOB_ACT_CONTINUE_SCAN 0
  2343. | #define EOB_ACT_END_OF_FILE 1
  2344. | #define EOB_ACT_LAST_MATCH 2
  2345. |
  2346. | #define YY_LESS_LINENO(n)
  2347. |
  2348. | /* Return all but the first "n" matched characters back to the input stream. */
  2349. | #define yyless(n) \
  2350. | do \
  2351. | { \
  2352. | /* Undo effects of setting up yytext. */ \
  2353. | int yyless_macro_arg = (n); \
  2354. | YY_LESS_LINENO(yyless_macro_arg);\
  2355. | *yy_cp = (yy_hold_char); \
  2356. | YY_RESTORE_YY_MORE_OFFSET \
  2357. | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  2358. | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  2359. | } \
  2360. | while ( 0 )
  2361. |
  2362. | #define unput(c) yyunput( c, (yytext_ptr) )
  2363. |
  2364. | #ifndef YY_STRUCT_YY_BUFFER_STATE
  2365. | #define YY_STRUCT_YY_BUFFER_STATE
  2366. | struct yy_buffer_state
  2367. | {
  2368. | FILE *yy_input_file;
  2369. |
  2370. | char *yy_ch_buf; /* input buffer */
  2371. | char *yy_buf_pos; /* current position in input buffer */
  2372. |
  2373. | /* Size of input buffer in bytes, not including room for EOB
  2374. | * characters.
  2375. | */
  2376. | yy_size_t yy_buf_size;
  2377. |
  2378. | /* Number of characters read into yy_ch_buf, not including EOB
  2379. | * characters.
  2380. | */
  2381. | yy_size_t yy_n_chars;
  2382. |
  2383. | /* Whether we "own" the buffer - i.e., we know we created it,
  2384. | * and can realloc() it to grow it, and should free() it to
  2385. | * delete it.
  2386. | */
  2387. | int yy_is_our_buffer;
  2388. |
  2389. | /* Whether this is an "interactive" input source; if so, and
  2390. | * if we're using stdio for input, then we want to use getc()
  2391. | * instead of fread(), to make sure we stop fetching input after
  2392. | * each newline.
  2393. | */
  2394. | int yy_is_interactive;
  2395. |
  2396. | /* Whether we're considered to be at the beginning of a line.
  2397. | * If so, '^' rules will be active on the next match, otherwise
  2398. | * not.
  2399. | */
  2400. | int yy_at_bol;
  2401. |
  2402. | int yy_bs_lineno; /**< The line count. */
  2403. | int yy_bs_column; /**< The column count. */
  2404. |
  2405. | /* Whether to try to fill the input buffer when we reach the
  2406. | * end of it.
  2407. | */
  2408. | int yy_fill_buffer;
  2409. |
  2410. | int yy_buffer_status;
  2411. |
  2412. | #define YY_BUFFER_NEW 0
  2413. | #define YY_BUFFER_NORMAL 1
  2414. | /* When an EOF's been seen but there's still some text to process
  2415. | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  2416. | * shouldn't try reading from the input source any more. We might
  2417. | * still have a bunch of tokens to match, though, because of
  2418. | * possible backing-up.
  2419. | *
  2420. | * When we actually see the EOF, we change the status to "new"
  2421. | * (via yyrestart()), so that the user can continue scanning by
  2422. | * just pointing yyin at a new input file.
  2423. | */
  2424. | #define YY_BUFFER_EOF_PENDING 2
  2425. |
  2426. | };
  2427. | #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  2428. |
  2429. | /* Stack of input buffers. */
  2430. | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  2431. | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  2432. | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
  2433. |
  2434. | /* We provide macros for accessing buffer states in case in the
  2435. | * future we want to put the buffer states in a more general
  2436. | * "scanner state".
  2437. | *
  2438. | * Returns the top of the stack, or NULL.
  2439. | */
  2440. | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  2441. | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  2442. | : NULL)
  2443. |
  2444. | /* Same as previous macro, but useful when we know that the buffer stack is not
  2445. | * NULL or when we need an lvalue. For internal use only.
  2446. | */
  2447. | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  2448. |
  2449. | /* yy_hold_char holds the character lost when yytext is formed. */
  2450. | static char yy_hold_char;
  2451. | static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
  2452. | yy_size_t yyleng;
  2453. |
  2454. | /* Points to current character in buffer. */
  2455. | static char *yy_c_buf_p = (char *) 0;
  2456. | static int yy_init = 0; /* whether we need to initialize */
  2457. | static int yy_start = 0; /* start state number */
  2458. |
  2459. | /* Flag which is used to allow yywrap()'s to do buffer switches
  2460. | * instead of setting up a fresh yyin. A bit of a hack ...
  2461. | */
  2462. | static int yy_did_buffer_switch_on_eof;
  2463. |
  2464. | void yyrestart (FILE *input_file );
  2465. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
  2466. | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
  2467. | void yy_delete_buffer (YY_BUFFER_STATE b );
  2468. | void yy_flush_buffer (YY_BUFFER_STATE b );
  2469. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
  2470. | void yypop_buffer_state (void );
  2471. |
  2472. | static void yyensure_buffer_stack (void );
  2473. | static void yy_load_buffer_state (void );
  2474. | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
  2475. |
  2476. | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
  2477. |
  2478. | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
  2479. | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
  2480. | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
  2481. |
  2482. | void *yyalloc (yy_size_t );
  2483. | void *yyrealloc (void *,yy_size_t );
  2484. | void yyfree (void * );
  2485. |
  2486. | #define yy_new_buffer yy_create_buffer
  2487. |
  2488. | #define yy_set_interactive(is_interactive) \
  2489. | { \
  2490. | if ( ! YY_CURRENT_BUFFER ){ \
  2491. | yyensure_buffer_stack (); \
  2492. | YY_CURRENT_BUFFER_LVALUE = \
  2493. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  2494. | } \
  2495. | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  2496. | }
  2497. |
  2498. | #define yy_set_bol(at_bol) \
  2499. | { \
  2500. | if ( ! YY_CURRENT_BUFFER ){\
  2501. | yyensure_buffer_stack (); \
  2502. | YY_CURRENT_BUFFER_LVALUE = \
  2503. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  2504. | } \
  2505. | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  2506. | }
  2507. |
  2508. | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  2509. |
  2510. | /* Begin user sect3 */
  2511. |
  2512. | typedef unsigned char YY_CHAR;
  2513. |
  2514. | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  2515. |
  2516. | typedef int yy_state_type;
  2517. |
  2518. | extern int yylineno;
  2519. |
  2520. | int yylineno = 1;
  2521. |
  2522. | extern char *yytext;
  2523. | #define yytext_ptr yytext
  2524. |
  2525. | static yy_state_type yy_get_previous_state (void );
  2526. | static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
  2527. | static int yy_get_next_buffer (void );
  2528. | static void yy_fatal_error (yyconst char msg[] );
  2529. |
  2530. | /* Done after the current pattern has been matched and before the
  2531. | * corresponding action - sets up yytext.
  2532. | */
  2533. | #define YY_DO_BEFORE_ACTION \
  2534. | (yytext_ptr) = yy_bp; \
  2535. | (yytext_ptr) -= (yy_more_len); \
  2536. | yyleng = (size_t) (yy_cp - (yytext_ptr)); \
  2537. | (yy_hold_char) = *yy_cp; \
  2538. | *yy_cp = '\0'; \
  2539. | (yy_c_buf_p) = yy_cp;
  2540. |
  2541. | #define YY_NUM_RULES 8
  2542. | #define YY_END_OF_BUFFER 9
  2543. | /* This struct is not used in this scanner,
  2544. | but its presence is necessary. */
  2545. | struct yy_trans_info
  2546. | {
  2547. | flex_int32_t yy_verify;
  2548. | flex_int32_t yy_nxt;
  2549. | };
  2550. | static yyconst flex_int16_t yy_acclist[23] =
  2551. | { 0,
  2552. | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
  2553. | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
  2554. | 7, 8
  2555. | } ;
  2556. |
  2557. | static yyconst flex_int16_t yy_accept[14] =
  2558. | { 0,
  2559. | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
  2560. | 20, 23, 23
  2561. | } ;
  2562. |
  2563. | static yyconst flex_int32_t yy_ec[256] =
  2564. | { 0,
  2565. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
  2566. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2567. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2568. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2569. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2570. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2571. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2572. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2573. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2574. | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
  2575. |
  2576. | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
  2577. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2578. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2579. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2580. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2581. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2582. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2583. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2584. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2585. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2586. |
  2587. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2588. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2589. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2590. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2591. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2592. | 1, 1, 1, 1, 1
  2593. | } ;
  2594. |
  2595. | static yyconst flex_int32_t yy_meta[9] =
  2596. | { 0,
  2597. | 1, 1, 1, 1, 1, 1, 1, 1
  2598. | } ;
  2599. |
  2600. | static yyconst flex_int16_t yy_base[13] =
  2601. | { 0,
  2602. | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
  2603. | 10, 10
  2604. | } ;
  2605. |
  2606. | static yyconst flex_int16_t yy_def[13] =
  2607. | { 0,
  2608. | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
  2609. | 12, 0
  2610. | } ;
  2611. |
  2612. | static yyconst flex_int16_t yy_nxt[19] =
  2613. | { 0,
  2614. | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
  2615. | 12, 12, 12, 12, 12, 12, 12, 12
  2616. | } ;
  2617. |
  2618. | static yyconst flex_int16_t yy_chk[19] =
  2619. | { 0,
  2620. | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
  2621. | 12, 12, 12, 12, 12, 12, 12, 12
  2622. | } ;
  2623. |
  2624. | extern int yy_flex_debug;
  2625. | int yy_flex_debug = 0;
  2626. |
  2627. | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
  2628. | static char *yy_full_match;
  2629. | static int yy_lp;
  2630. | #define REJECT \
  2631. | { \
  2632. | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
  2633. | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
  2634. | ++(yy_lp); \
  2635. | goto find_rule; \
  2636. | }
  2637. |
  2638. | static int yy_more_flag = 0;
  2639. | static int yy_more_len = 0;
  2640. | #define yymore() ((yy_more_flag) = 1)
  2641. | #define YY_MORE_ADJ (yy_more_len)
  2642. | #define YY_RESTORE_YY_MORE_OFFSET
  2643. | char *yytext;
  2644. | #line 1 "conftest.l"
  2645. | #line 469 "lex.yy.c"
  2646. |
  2647. | #define INITIAL 0
  2648. |
  2649. | #ifndef YY_NO_UNISTD_H
  2650. | /* Special case for "unistd.h", since it is non-ANSI. We include it way
  2651. | * down here because we want the user's section 1 to have been scanned first.
  2652. | * The user has a chance to override it with an option.
  2653. | */
  2654. | #include <unistd.h>
  2655. | #endif
  2656. |
  2657. | #ifndef YY_EXTRA_TYPE
  2658. | #define YY_EXTRA_TYPE void *
  2659. | #endif
  2660. |
  2661. | static int yy_init_globals (void );
  2662. |
  2663. | /* Accessor methods to globals.
  2664. | These are made visible to non-reentrant scanners for convenience. */
  2665. |
  2666. | int yylex_destroy (void );
  2667. |
  2668. | int yyget_debug (void );
  2669. |
  2670. | void yyset_debug (int debug_flag );
  2671. |
  2672. | YY_EXTRA_TYPE yyget_extra (void );
  2673. |
  2674. | void yyset_extra (YY_EXTRA_TYPE user_defined );
  2675. |
  2676. | FILE *yyget_in (void );
  2677. |
  2678. | void yyset_in (FILE * in_str );
  2679. |
  2680. | FILE *yyget_out (void );
  2681. |
  2682. | void yyset_out (FILE * out_str );
  2683. |
  2684. | yy_size_t yyget_leng (void );
  2685. |
  2686. | char *yyget_text (void );
  2687. |
  2688. | int yyget_lineno (void );
  2689. |
  2690. | void yyset_lineno (int line_number );
  2691. |
  2692. | /* Macros after this point can all be overridden by user definitions in
  2693. | * section 1.
  2694. | */
  2695. |
  2696. | #ifndef YY_SKIP_YYWRAP
  2697. | #ifdef __cplusplus
  2698. | extern "C" int yywrap (void );
  2699. | #else
  2700. | extern int yywrap (void );
  2701. | #endif
  2702. | #endif
  2703. |
  2704. | static void yyunput (int c,char *buf_ptr );
  2705. |
  2706. | #ifndef yytext_ptr
  2707. | static void yy_flex_strncpy (char *,yyconst char *,int );
  2708. | #endif
  2709. |
  2710. | #ifdef YY_NEED_STRLEN
  2711. | static int yy_flex_strlen (yyconst char * );
  2712. | #endif
  2713. |
  2714. | #ifndef YY_NO_INPUT
  2715. |
  2716. | #ifdef __cplusplus
  2717. | static int yyinput (void );
  2718. | #else
  2719. | static int input (void );
  2720. | #endif
  2721. |
  2722. | #endif
  2723. |
  2724. | /* Amount of stuff to slurp up with each read. */
  2725. | #ifndef YY_READ_BUF_SIZE
  2726. | #define YY_READ_BUF_SIZE 8192
  2727. | #endif
  2728. |
  2729. | /* Copy whatever the last rule matched to the standard output. */
  2730. | #ifndef ECHO
  2731. | /* This used to be an fputs(), but since the string might contain NUL's,
  2732. | * we now use fwrite().
  2733. | */
  2734. | #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
  2735. | #endif
  2736. |
  2737. | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  2738. | * is returned in "result".
  2739. | */
  2740. | #ifndef YY_INPUT
  2741. | #define YY_INPUT(buf,result,max_size) \
  2742. | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  2743. | { \
  2744. | int c = '*'; \
  2745. | size_t n; \
  2746. | for ( n = 0; n < max_size && \
  2747. | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  2748. | buf[n] = (char) c; \
  2749. | if ( c == '\n' ) \
  2750. | buf[n++] = (char) c; \
  2751. | if ( c == EOF && ferror( yyin ) ) \
  2752. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  2753. | result = n; \
  2754. | } \
  2755. | else \
  2756. | { \
  2757. | errno=0; \
  2758. | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  2759. | { \
  2760. | if( errno != EINTR) \
  2761. | { \
  2762. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  2763. | break; \
  2764. | } \
  2765. | errno=0; \
  2766. | clearerr(yyin); \
  2767. | } \
  2768. | }\
  2769. | \
  2770. |
  2771. | #endif
  2772. |
  2773. | /* No semi-colon after return; correct usage is to write "yyterminate();" -
  2774. | * we don't want an extra ';' after the "return" because that will cause
  2775. | * some compilers to complain about unreachable statements.
  2776. | */
  2777. | #ifndef yyterminate
  2778. | #define yyterminate() return YY_NULL
  2779. | #endif
  2780. |
  2781. | /* Number of entries by which start-condition stack grows. */
  2782. | #ifndef YY_START_STACK_INCR
  2783. | #define YY_START_STACK_INCR 25
  2784. | #endif
  2785. |
  2786. | /* Report a fatal error. */
  2787. | #ifndef YY_FATAL_ERROR
  2788. | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  2789. | #endif
  2790. |
  2791. | /* end tables serialization structures and prototypes */
  2792. |
  2793. | /* Default declaration of generated scanner - a define so the user can
  2794. | * easily add parameters.
  2795. | */
  2796. | #ifndef YY_DECL
  2797. | #define YY_DECL_IS_OURS 1
  2798. |
  2799. | extern int yylex (void);
  2800. |
  2801. | #define YY_DECL int yylex (void)
  2802. | #endif /* !YY_DECL */
  2803. |
  2804. | /* Code executed at the beginning of each rule, after yytext and yyleng
  2805. | * have been set up.
  2806. | */
  2807. | #ifndef YY_USER_ACTION
  2808. | #define YY_USER_ACTION
  2809. | #endif
  2810. |
  2811. | /* Code executed at the end of each rule. */
  2812. | #ifndef YY_BREAK
  2813. | #define YY_BREAK break;
  2814. | #endif
  2815. |
  2816. | #define YY_RULE_SETUP \
  2817. | YY_USER_ACTION
  2818. |
  2819. | /** The main scanner function which does all the work.
  2820. | */
  2821. | YY_DECL
  2822. | {
  2823. | register yy_state_type yy_current_state;
  2824. | register char *yy_cp, *yy_bp;
  2825. | register int yy_act;
  2826. |
  2827. | #line 1 "conftest.l"
  2828. |
  2829. | #line 653 "lex.yy.c"
  2830. |
  2831. | if ( !(yy_init) )
  2832. | {
  2833. | (yy_init) = 1;
  2834. |
  2835. | #ifdef YY_USER_INIT
  2836. | YY_USER_INIT;
  2837. | #endif
  2838. |
  2839. | /* Create the reject buffer large enough to save one state per allowed character. */
  2840. | if ( ! (yy_state_buf) )
  2841. | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
  2842. | if ( ! (yy_state_buf) )
  2843. | YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
  2844. |
  2845. | if ( ! (yy_start) )
  2846. | (yy_start) = 1; /* first start state */
  2847. |
  2848. | if ( ! yyin )
  2849. | yyin = stdin;
  2850. |
  2851. | if ( ! yyout )
  2852. | yyout = stdout;
  2853. |
  2854. | if ( ! YY_CURRENT_BUFFER ) {
  2855. | yyensure_buffer_stack ();
  2856. | YY_CURRENT_BUFFER_LVALUE =
  2857. | yy_create_buffer(yyin,YY_BUF_SIZE );
  2858. | }
  2859. |
  2860. | yy_load_buffer_state( );
  2861. | }
  2862. |
  2863. | while ( 1 ) /* loops until end-of-file is reached */
  2864. | {
  2865. | (yy_more_len) = 0;
  2866. | if ( (yy_more_flag) )
  2867. | {
  2868. | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr);
  2869. | (yy_more_flag) = 0;
  2870. | }
  2871. | yy_cp = (yy_c_buf_p);
  2872. |
  2873. | /* Support of yytext. */
  2874. | *yy_cp = (yy_hold_char);
  2875. |
  2876. | /* yy_bp points to the position in yy_ch_buf of the start of
  2877. | * the current run.
  2878. | */
  2879. | yy_bp = yy_cp;
  2880. |
  2881. | yy_current_state = (yy_start);
  2882. |
  2883. | (yy_state_ptr) = (yy_state_buf);
  2884. | *(yy_state_ptr)++ = yy_current_state;
  2885. |
  2886. | yy_match:
  2887. | do
  2888. | {
  2889. | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  2890. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  2891. | {
  2892. | yy_current_state = (int) yy_def[yy_current_state];
  2893. | if ( yy_current_state >= 13 )
  2894. | yy_c = yy_meta[(unsigned int) yy_c];
  2895. | }
  2896. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  2897. | *(yy_state_ptr)++ = yy_current_state;
  2898. | ++yy_cp;
  2899. | }
  2900. | while ( yy_base[yy_current_state] != 10 );
  2901. |
  2902. | yy_find_action:
  2903. | yy_current_state = *--(yy_state_ptr);
  2904. | (yy_lp) = yy_accept[yy_current_state];
  2905. | find_rule: /* we branch to this label when backing up */
  2906. | for ( ; ; ) /* until we find what rule we matched */
  2907. | {
  2908. | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
  2909. | {
  2910. | yy_act = yy_acclist[(yy_lp)];
  2911. | {
  2912. | (yy_full_match) = yy_cp;
  2913. | break;
  2914. | }
  2915. | }
  2916. | --yy_cp;
  2917. | yy_current_state = *--(yy_state_ptr);
  2918. | (yy_lp) = yy_accept[yy_current_state];
  2919. | }
  2920. |
  2921. | YY_DO_BEFORE_ACTION;
  2922. |
  2923. | do_action: /* This label is used only to access EOF actions. */
  2924. |
  2925. | switch ( yy_act )
  2926. | { /* beginning of action switch */
  2927. | case 1:
  2928. | YY_RULE_SETUP
  2929. | #line 2 "conftest.l"
  2930. | { ECHO; }
  2931. | YY_BREAK
  2932. | case 2:
  2933. | YY_RULE_SETUP
  2934. | #line 3 "conftest.l"
  2935. | { REJECT; }
  2936. | YY_BREAK
  2937. | case 3:
  2938. | YY_RULE_SETUP
  2939. | #line 4 "conftest.l"
  2940. | { yymore (); }
  2941. | YY_BREAK
  2942. | case 4:
  2943. | YY_RULE_SETUP
  2944. | #line 5 "conftest.l"
  2945. | { yyless (1); }
  2946. | YY_BREAK
  2947. | case 5:
  2948. | YY_RULE_SETUP
  2949. | #line 6 "conftest.l"
  2950. | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  2951. | yyless ((input () != 0)); }
  2952. | YY_BREAK
  2953. | case 6:
  2954. | YY_RULE_SETUP
  2955. | #line 8 "conftest.l"
  2956. | { unput (yytext[0]); }
  2957. | YY_BREAK
  2958. | case 7:
  2959. | YY_RULE_SETUP
  2960. | #line 9 "conftest.l"
  2961. | { BEGIN INITIAL; }
  2962. | YY_BREAK
  2963. | case 8:
  2964. | YY_RULE_SETUP
  2965. | #line 10 "conftest.l"
  2966. | ECHO;
  2967. | YY_BREAK
  2968. | #line 792 "lex.yy.c"
  2969. | case YY_STATE_EOF(INITIAL):
  2970. | yyterminate();
  2971. |
  2972. | case YY_END_OF_BUFFER:
  2973. | {
  2974. | /* Amount of text matched not including the EOB char. */
  2975. | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  2976. |
  2977. | /* Undo the effects of YY_DO_BEFORE_ACTION. */
  2978. | *yy_cp = (yy_hold_char);
  2979. | YY_RESTORE_YY_MORE_OFFSET
  2980. |
  2981. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  2982. | {
  2983. | /* We're scanning a new file or input source. It's
  2984. | * possible that this happened because the user
  2985. | * just pointed yyin at a new source and called
  2986. | * yylex(). If so, then we have to assure
  2987. | * consistency between YY_CURRENT_BUFFER and our
  2988. | * globals. Here is the right place to do so, because
  2989. | * this is the first action (other than possibly a
  2990. | * back-up) that will match for the new input source.
  2991. | */
  2992. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  2993. | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  2994. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  2995. | }
  2996. |
  2997. | /* Note that here we test for yy_c_buf_p "<=" to the position
  2998. | * of the first EOB in the buffer, since yy_c_buf_p will
  2999. | * already have been incremented past the NUL character
  3000. | * (since all states make transitions on EOB to the
  3001. | * end-of-buffer state). Contrast this with the test
  3002. | * in input().
  3003. | */
  3004. | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  3005. | { /* This was really a NUL. */
  3006. | yy_state_type yy_next_state;
  3007. |
  3008. | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  3009. |
  3010. | yy_current_state = yy_get_previous_state( );
  3011. |
  3012. | /* Okay, we're now positioned to make the NUL
  3013. | * transition. We couldn't have
  3014. | * yy_get_previous_state() go ahead and do it
  3015. | * for us because it doesn't know how to deal
  3016. | * with the possibility of jamming (and we don't
  3017. | * want to build jamming into it because then it
  3018. | * will run more slowly).
  3019. | */
  3020. |
  3021. | yy_next_state = yy_try_NUL_trans( yy_current_state );
  3022. |
  3023. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  3024. |
  3025. | if ( yy_next_state )
  3026. | {
  3027. | /* Consume the NUL. */
  3028. | yy_cp = ++(yy_c_buf_p);
  3029. | yy_current_state = yy_next_state;
  3030. | goto yy_match;
  3031. | }
  3032. |
  3033. | else
  3034. | {
  3035. | yy_cp = (yy_c_buf_p);
  3036. | goto yy_find_action;
  3037. | }
  3038. | }
  3039. |
  3040. | else switch ( yy_get_next_buffer( ) )
  3041. | {
  3042. | case EOB_ACT_END_OF_FILE:
  3043. | {
  3044. | (yy_did_buffer_switch_on_eof) = 0;
  3045. |
  3046. | if ( yywrap( ) )
  3047. | {
  3048. | /* Note: because we've taken care in
  3049. | * yy_get_next_buffer() to have set up
  3050. | * yytext, we can now set up
  3051. | * yy_c_buf_p so that if some total
  3052. | * hoser (like flex itself) wants to
  3053. | * call the scanner after we return the
  3054. | * YY_NULL, it'll still work - another
  3055. | * YY_NULL will get returned.
  3056. | */
  3057. | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  3058. |
  3059. | yy_act = YY_STATE_EOF(YY_START);
  3060. | goto do_action;
  3061. | }
  3062. |
  3063. | else
  3064. | {
  3065. | if ( ! (yy_did_buffer_switch_on_eof) )
  3066. | YY_NEW_FILE;
  3067. | }
  3068. | break;
  3069. | }
  3070. |
  3071. | case EOB_ACT_CONTINUE_SCAN:
  3072. | (yy_c_buf_p) =
  3073. | (yytext_ptr) + yy_amount_of_matched_text;
  3074. |
  3075. | yy_current_state = yy_get_previous_state( );
  3076. |
  3077. | yy_cp = (yy_c_buf_p);
  3078. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  3079. | goto yy_match;
  3080. |
  3081. | case EOB_ACT_LAST_MATCH:
  3082. | (yy_c_buf_p) =
  3083. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  3084. |
  3085. | yy_current_state = yy_get_previous_state( );
  3086. |
  3087. | yy_cp = (yy_c_buf_p);
  3088. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  3089. | goto yy_find_action;
  3090. | }
  3091. | break;
  3092. | }
  3093. |
  3094. | default:
  3095. | YY_FATAL_ERROR(
  3096. | "fatal flex scanner internal error--no action found" );
  3097. | } /* end of action switch */
  3098. | } /* end of scanning one token */
  3099. | } /* end of yylex */
  3100. |
  3101. | /* yy_get_next_buffer - try to read in a new buffer
  3102. | *
  3103. | * Returns a code representing an action:
  3104. | * EOB_ACT_LAST_MATCH -
  3105. | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  3106. | * EOB_ACT_END_OF_FILE - end of file
  3107. | */
  3108. | static int yy_get_next_buffer (void)
  3109. | {
  3110. | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  3111. | register char *source = (yytext_ptr);
  3112. | register int number_to_move, i;
  3113. | int ret_val;
  3114. |
  3115. | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  3116. | YY_FATAL_ERROR(
  3117. | "fatal flex scanner internal error--end of buffer missed" );
  3118. |
  3119. | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  3120. | { /* Don't try to fill the buffer, so this is an EOF. */
  3121. | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  3122. | {
  3123. | /* We matched a single character, the EOB, so
  3124. | * treat this as a final EOF.
  3125. | */
  3126. | return EOB_ACT_END_OF_FILE;
  3127. | }
  3128. |
  3129. | else
  3130. | {
  3131. | /* We matched some text prior to the EOB, first
  3132. | * process it.
  3133. | */
  3134. | return EOB_ACT_LAST_MATCH;
  3135. | }
  3136. | }
  3137. |
  3138. | /* Try to read more data. */
  3139. |
  3140. | /* First move last chars to start of buffer. */
  3141. | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
  3142. |
  3143. | for ( i = 0; i < number_to_move; ++i )
  3144. | *(dest++) = *(source++);
  3145. |
  3146. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  3147. | /* don't do the read, it's not guaranteed to return an EOF,
  3148. | * just force an EOF
  3149. | */
  3150. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  3151. |
  3152. | else
  3153. | {
  3154. | yy_size_t num_to_read =
  3155. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  3156. |
  3157. | while ( num_to_read <= 0 )
  3158. | { /* Not enough room in the buffer - grow it. */
  3159. |
  3160. | YY_FATAL_ERROR(
  3161. | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  3162. |
  3163. | }
  3164. |
  3165. | if ( num_to_read > YY_READ_BUF_SIZE )
  3166. | num_to_read = YY_READ_BUF_SIZE;
  3167. |
  3168. | /* Read in more data. */
  3169. | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  3170. | (yy_n_chars), num_to_read );
  3171. |
  3172. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  3173. | }
  3174. |
  3175. | if ( (yy_n_chars) == 0 )
  3176. | {
  3177. | if ( number_to_move == YY_MORE_ADJ )
  3178. | {
  3179. | ret_val = EOB_ACT_END_OF_FILE;
  3180. | yyrestart(yyin );
  3181. | }
  3182. |
  3183. | else
  3184. | {
  3185. | ret_val = EOB_ACT_LAST_MATCH;
  3186. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  3187. | YY_BUFFER_EOF_PENDING;
  3188. | }
  3189. | }
  3190. |
  3191. | else
  3192. | ret_val = EOB_ACT_CONTINUE_SCAN;
  3193. |
  3194. | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  3195. | /* Extend the array by 50%, plus the number we really need. */
  3196. | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  3197. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
  3198. | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  3199. | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  3200. | }
  3201. |
  3202. | (yy_n_chars) += number_to_move;
  3203. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  3204. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  3205. |
  3206. | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  3207. |
  3208. | return ret_val;
  3209. | }
  3210. |
  3211. | /* yy_get_previous_state - get the state just before the EOB char was reached */
  3212. |
  3213. | static yy_state_type yy_get_previous_state (void)
  3214. | {
  3215. | register yy_state_type yy_current_state;
  3216. | register char *yy_cp;
  3217. |
  3218. | yy_current_state = (yy_start);
  3219. |
  3220. | (yy_state_ptr) = (yy_state_buf);
  3221. | *(yy_state_ptr)++ = yy_current_state;
  3222. |
  3223. | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  3224. | {
  3225. | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  3226. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  3227. | {
  3228. | yy_current_state = (int) yy_def[yy_current_state];
  3229. | if ( yy_current_state >= 13 )
  3230. | yy_c = yy_meta[(unsigned int) yy_c];
  3231. | }
  3232. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  3233. | *(yy_state_ptr)++ = yy_current_state;
  3234. | }
  3235. |
  3236. | return yy_current_state;
  3237. | }
  3238. |
  3239. | /* yy_try_NUL_trans - try to make a transition on the NUL character
  3240. | *
  3241. | * synopsis
  3242. | * next_state = yy_try_NUL_trans( current_state );
  3243. | */
  3244. | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  3245. | {
  3246. | register int yy_is_jam;
  3247. |
  3248. | register YY_CHAR yy_c = 1;
  3249. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  3250. | {
  3251. | yy_current_state = (int) yy_def[yy_current_state];
  3252. | if ( yy_current_state >= 13 )
  3253. | yy_c = yy_meta[(unsigned int) yy_c];
  3254. | }
  3255. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  3256. | yy_is_jam = (yy_current_state == 12);
  3257. | if ( ! yy_is_jam )
  3258. | *(yy_state_ptr)++ = yy_current_state;
  3259. |
  3260. | return yy_is_jam ? 0 : yy_current_state;
  3261. | }
  3262. |
  3263. | static void yyunput (int c, register char * yy_bp )
  3264. | {
  3265. | register char *yy_cp;
  3266. |
  3267. | yy_cp = (yy_c_buf_p);
  3268. |
  3269. | /* undo effects of setting up yytext */
  3270. | *yy_cp = (yy_hold_char);
  3271. |
  3272. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  3273. | { /* need to shift things up to make room */
  3274. | /* +2 for EOB chars. */
  3275. | register yy_size_t number_to_move = (yy_n_chars) + 2;
  3276. | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  3277. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  3278. | register char *source =
  3279. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  3280. |
  3281. | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  3282. | *--dest = *--source;
  3283. |
  3284. | yy_cp += (int) (dest - source);
  3285. | yy_bp += (int) (dest - source);
  3286. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  3287. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  3288. |
  3289. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  3290. | YY_FATAL_ERROR( "flex scanner push-back overflow" );
  3291. | }
  3292. |
  3293. | *--yy_cp = (char) c;
  3294. |
  3295. | (yytext_ptr) = yy_bp;
  3296. | (yy_hold_char) = *yy_cp;
  3297. | (yy_c_buf_p) = yy_cp;
  3298. | }
  3299. |
  3300. | #ifndef YY_NO_INPUT
  3301. | #ifdef __cplusplus
  3302. | static int yyinput (void)
  3303. | #else
  3304. | static int input (void)
  3305. | #endif
  3306. |
  3307. | {
  3308. | int c;
  3309. |
  3310. | *(yy_c_buf_p) = (yy_hold_char);
  3311. |
  3312. | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  3313. | {
  3314. | /* yy_c_buf_p now points to the character we want to return.
  3315. | * If this occurs *before* the EOB characters, then it's a
  3316. | * valid NUL; if not, then we've hit the end of the buffer.
  3317. | */
  3318. | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  3319. | /* This was really a NUL. */
  3320. | *(yy_c_buf_p) = '\0';
  3321. |
  3322. | else
  3323. | { /* need more input */
  3324. | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
  3325. | ++(yy_c_buf_p);
  3326. |
  3327. | switch ( yy_get_next_buffer( ) )
  3328. | {
  3329. | case EOB_ACT_LAST_MATCH:
  3330. | /* This happens because yy_g_n_b()
  3331. | * sees that we've accumulated a
  3332. | * token and flags that we need to
  3333. | * try matching the token before
  3334. | * proceeding. But for input(),
  3335. | * there's no matching to consider.
  3336. | * So convert the EOB_ACT_LAST_MATCH
  3337. | * to EOB_ACT_END_OF_FILE.
  3338. | */
  3339. |
  3340. | /* Reset buffer status. */
  3341. | yyrestart(yyin );
  3342. |
  3343. | /*FALLTHROUGH*/
  3344. |
  3345. | case EOB_ACT_END_OF_FILE:
  3346. | {
  3347. | if ( yywrap( ) )
  3348. | return EOF;
  3349. |
  3350. | if ( ! (yy_did_buffer_switch_on_eof) )
  3351. | YY_NEW_FILE;
  3352. | #ifdef __cplusplus
  3353. | return yyinput();
  3354. | #else
  3355. | return input();
  3356. | #endif
  3357. | }
  3358. |
  3359. | case EOB_ACT_CONTINUE_SCAN:
  3360. | (yy_c_buf_p) = (yytext_ptr) + offset;
  3361. | break;
  3362. | }
  3363. | }
  3364. | }
  3365. |
  3366. | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  3367. | *(yy_c_buf_p) = '\0'; /* preserve yytext */
  3368. | (yy_hold_char) = *++(yy_c_buf_p);
  3369. |
  3370. | return c;
  3371. | }
  3372. | #endif /* ifndef YY_NO_INPUT */
  3373. |
  3374. | /** Immediately switch to a different input stream.
  3375. | * @param input_file A readable stream.
  3376. | *
  3377. | * @note This function does not reset the start condition to @c INITIAL .
  3378. | */
  3379. | void yyrestart (FILE * input_file )
  3380. | {
  3381. |
  3382. | if ( ! YY_CURRENT_BUFFER ){
  3383. | yyensure_buffer_stack ();
  3384. | YY_CURRENT_BUFFER_LVALUE =
  3385. | yy_create_buffer(yyin,YY_BUF_SIZE );
  3386. | }
  3387. |
  3388. | yy_init_buffer(YY_CURRENT_BUFFER,input_file );
  3389. | yy_load_buffer_state( );
  3390. | }
  3391. |
  3392. | /** Switch to a different input buffer.
  3393. | * @param new_buffer The new input buffer.
  3394. | *
  3395. | */
  3396. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  3397. | {
  3398. |
  3399. | /* TODO. We should be able to replace this entire function body
  3400. | * with
  3401. | * yypop_buffer_state();
  3402. | * yypush_buffer_state(new_buffer);
  3403. | */
  3404. | yyensure_buffer_stack ();
  3405. | if ( YY_CURRENT_BUFFER == new_buffer )
  3406. | return;
  3407. |
  3408. | if ( YY_CURRENT_BUFFER )
  3409. | {
  3410. | /* Flush out information for old buffer. */
  3411. | *(yy_c_buf_p) = (yy_hold_char);
  3412. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  3413. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  3414. | }
  3415. |
  3416. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  3417. | yy_load_buffer_state( );
  3418. |
  3419. | /* We don't actually know whether we did this switch during
  3420. | * EOF (yywrap()) processing, but the only time this flag
  3421. | * is looked at is after yywrap() is called, so it's safe
  3422. | * to go ahead and always set it.
  3423. | */
  3424. | (yy_did_buffer_switch_on_eof) = 1;
  3425. | }
  3426. |
  3427. | static void yy_load_buffer_state (void)
  3428. | {
  3429. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  3430. | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  3431. | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  3432. | (yy_hold_char) = *(yy_c_buf_p);
  3433. | }
  3434. |
  3435. | /** Allocate and initialize an input buffer state.
  3436. | * @param file A readable stream.
  3437. | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  3438. | *
  3439. | * @return the allocated buffer state.
  3440. | */
  3441. | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  3442. | {
  3443. | YY_BUFFER_STATE b;
  3444. |
  3445. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  3446. | if ( ! b )
  3447. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  3448. |
  3449. | b->yy_buf_size = size;
  3450. |
  3451. | /* yy_ch_buf has to be 2 characters longer than the size given because
  3452. | * we need to put in 2 end-of-buffer characters.
  3453. | */
  3454. | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
  3455. | if ( ! b->yy_ch_buf )
  3456. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  3457. |
  3458. | b->yy_is_our_buffer = 1;
  3459. |
  3460. | yy_init_buffer(b,file );
  3461. |
  3462. | return b;
  3463. | }
  3464. |
  3465. | /** Destroy the buffer.
  3466. | * @param b a buffer created with yy_create_buffer()
  3467. | *
  3468. | */
  3469. | void yy_delete_buffer (YY_BUFFER_STATE b )
  3470. | {
  3471. |
  3472. | if ( ! b )
  3473. | return;
  3474. |
  3475. | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  3476. | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  3477. |
  3478. | if ( b->yy_is_our_buffer )
  3479. | yyfree((void *) b->yy_ch_buf );
  3480. |
  3481. | yyfree((void *) b );
  3482. | }
  3483. |
  3484. | /* Initializes or reinitializes a buffer.
  3485. | * This function is sometimes called more than once on the same buffer,
  3486. | * such as during a yyrestart() or at EOF.
  3487. | */
  3488. | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  3489. |
  3490. | {
  3491. | int oerrno = errno;
  3492. |
  3493. | yy_flush_buffer(b );
  3494. |
  3495. | b->yy_input_file = file;
  3496. | b->yy_fill_buffer = 1;
  3497. |
  3498. | /* If b is the current buffer, then yy_init_buffer was _probably_
  3499. | * called from yyrestart() or through yy_get_next_buffer.
  3500. | * In that case, we don't want to reset the lineno or column.
  3501. | */
  3502. | if (b != YY_CURRENT_BUFFER){
  3503. | b->yy_bs_lineno = 1;
  3504. | b->yy_bs_column = 0;
  3505. | }
  3506. |
  3507. | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  3508. |
  3509. | errno = oerrno;
  3510. | }
  3511. |
  3512. | /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  3513. | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  3514. | *
  3515. | */
  3516. | void yy_flush_buffer (YY_BUFFER_STATE b )
  3517. | {
  3518. | if ( ! b )
  3519. | return;
  3520. |
  3521. | b->yy_n_chars = 0;
  3522. |
  3523. | /* We always need two end-of-buffer characters. The first causes
  3524. | * a transition to the end-of-buffer state. The second causes
  3525. | * a jam in that state.
  3526. | */
  3527. | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  3528. | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  3529. |
  3530. | b->yy_buf_pos = &b->yy_ch_buf[0];
  3531. |
  3532. | b->yy_at_bol = 1;
  3533. | b->yy_buffer_status = YY_BUFFER_NEW;
  3534. |
  3535. | if ( b == YY_CURRENT_BUFFER )
  3536. | yy_load_buffer_state( );
  3537. | }
  3538. |
  3539. | /** Pushes the new state onto the stack. The new state becomes
  3540. | * the current state. This function will allocate the stack
  3541. | * if necessary.
  3542. | * @param new_buffer The new state.
  3543. | *
  3544. | */
  3545. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  3546. | {
  3547. | if (new_buffer == NULL)
  3548. | return;
  3549. |
  3550. | yyensure_buffer_stack();
  3551. |
  3552. | /* This block is copied from yy_switch_to_buffer. */
  3553. | if ( YY_CURRENT_BUFFER )
  3554. | {
  3555. | /* Flush out information for old buffer. */
  3556. | *(yy_c_buf_p) = (yy_hold_char);
  3557. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  3558. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  3559. | }
  3560. |
  3561. | /* Only push if top exists. Otherwise, replace top. */
  3562. | if (YY_CURRENT_BUFFER)
  3563. | (yy_buffer_stack_top)++;
  3564. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  3565. |
  3566. | /* copied from yy_switch_to_buffer. */
  3567. | yy_load_buffer_state( );
  3568. | (yy_did_buffer_switch_on_eof) = 1;
  3569. | }
  3570. |
  3571. | /** Removes and deletes the top of the stack, if present.
  3572. | * The next element becomes the new top.
  3573. | *
  3574. | */
  3575. | void yypop_buffer_state (void)
  3576. | {
  3577. | if (!YY_CURRENT_BUFFER)
  3578. | return;
  3579. |
  3580. | yy_delete_buffer(YY_CURRENT_BUFFER );
  3581. | YY_CURRENT_BUFFER_LVALUE = NULL;
  3582. | if ((yy_buffer_stack_top) > 0)
  3583. | --(yy_buffer_stack_top);
  3584. |
  3585. | if (YY_CURRENT_BUFFER) {
  3586. | yy_load_buffer_state( );
  3587. | (yy_did_buffer_switch_on_eof) = 1;
  3588. | }
  3589. | }
  3590. |
  3591. | /* Allocates the stack if it does not exist.
  3592. | * Guarantees space for at least one push.
  3593. | */
  3594. | static void yyensure_buffer_stack (void)
  3595. | {
  3596. | yy_size_t num_to_alloc;
  3597. |
  3598. | if (!(yy_buffer_stack)) {
  3599. |
  3600. | /* First allocation is just for 2 elements, since we don't know if this
  3601. | * scanner will even need a stack. We use 2 instead of 1 to avoid an
  3602. | * immediate realloc on the next call.
  3603. | */
  3604. | num_to_alloc = 1;
  3605. | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  3606. | (num_to_alloc * sizeof(struct yy_buffer_state*)
  3607. | );
  3608. | if ( ! (yy_buffer_stack) )
  3609. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  3610. |
  3611. | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  3612. |
  3613. | (yy_buffer_stack_max) = num_to_alloc;
  3614. | (yy_buffer_stack_top) = 0;
  3615. | return;
  3616. | }
  3617. |
  3618. | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  3619. |
  3620. | /* Increase the buffer to prepare for a possible push. */
  3621. | int grow_size = 8 /* arbitrary grow size */;
  3622. |
  3623. | num_to_alloc = (yy_buffer_stack_max) + grow_size;
  3624. | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  3625. | ((yy_buffer_stack),
  3626. | num_to_alloc * sizeof(struct yy_buffer_state*)
  3627. | );
  3628. | if ( ! (yy_buffer_stack) )
  3629. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  3630. |
  3631. | /* zero only the new slots.*/
  3632. | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  3633. | (yy_buffer_stack_max) = num_to_alloc;
  3634. | }
  3635. | }
  3636. |
  3637. | /** Setup the input buffer state to scan directly from a user-specified character buffer.
  3638. | * @param base the character buffer
  3639. | * @param size the size in bytes of the character buffer
  3640. | *
  3641. | * @return the newly allocated buffer state object.
  3642. | */
  3643. | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  3644. | {
  3645. | YY_BUFFER_STATE b;
  3646. |
  3647. | if ( size < 2 ||
  3648. | base[size-2] != YY_END_OF_BUFFER_CHAR ||
  3649. | base[size-1] != YY_END_OF_BUFFER_CHAR )
  3650. | /* They forgot to leave room for the EOB's. */
  3651. | return 0;
  3652. |
  3653. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  3654. | if ( ! b )
  3655. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  3656. |
  3657. | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  3658. | b->yy_buf_pos = b->yy_ch_buf = base;
  3659. | b->yy_is_our_buffer = 0;
  3660. | b->yy_input_file = 0;
  3661. | b->yy_n_chars = b->yy_buf_size;
  3662. | b->yy_is_interactive = 0;
  3663. | b->yy_at_bol = 1;
  3664. | b->yy_fill_buffer = 0;
  3665. | b->yy_buffer_status = YY_BUFFER_NEW;
  3666. |
  3667. | yy_switch_to_buffer(b );
  3668. |
  3669. | return b;
  3670. | }
  3671. |
  3672. | /** Setup the input buffer state to scan a string. The next call to yylex() will
  3673. | * scan from a @e copy of @a str.
  3674. | * @param yystr a NUL-terminated string to scan
  3675. | *
  3676. | * @return the newly allocated buffer state object.
  3677. | * @note If you want to scan bytes that may contain NUL values, then use
  3678. | * yy_scan_bytes() instead.
  3679. | */
  3680. | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
  3681. | {
  3682. |
  3683. | return yy_scan_bytes(yystr,strlen(yystr) );
  3684. | }
  3685. |
  3686. | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  3687. | * scan from a @e copy of @a bytes.
  3688. | * @param yybytes the byte buffer to scan
  3689. | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  3690. | *
  3691. | * @return the newly allocated buffer state object.
  3692. | */
  3693. | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
  3694. | {
  3695. | YY_BUFFER_STATE b;
  3696. | char *buf;
  3697. | yy_size_t n;
  3698. | int i;
  3699. |
  3700. | /* Get memory for full buffer, including space for trailing EOB's. */
  3701. | n = _yybytes_len + 2;
  3702. | buf = (char *) yyalloc(n );
  3703. | if ( ! buf )
  3704. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  3705. |
  3706. | for ( i = 0; i < _yybytes_len; ++i )
  3707. | buf[i] = yybytes[i];
  3708. |
  3709. | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  3710. |
  3711. | b = yy_scan_buffer(buf,n );
  3712. | if ( ! b )
  3713. | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  3714. |
  3715. | /* It's okay to grow etc. this buffer, and we should throw it
  3716. | * away when we're done.
  3717. | */
  3718. | b->yy_is_our_buffer = 1;
  3719. |
  3720. | return b;
  3721. | }
  3722. |
  3723. | #ifndef YY_EXIT_FAILURE
  3724. | #define YY_EXIT_FAILURE 2
  3725. | #endif
  3726. |
  3727. | static void yy_fatal_error (yyconst char* msg )
  3728. | {
  3729. | (void) fprintf( stderr, "%s\n", msg );
  3730. | exit( YY_EXIT_FAILURE );
  3731. | }
  3732. |
  3733. | /* Redefine yyless() so it works in section 3 code. */
  3734. |
  3735. | #undef yyless
  3736. | #define yyless(n) \
  3737. | do \
  3738. | { \
  3739. | /* Undo effects of setting up yytext. */ \
  3740. | int yyless_macro_arg = (n); \
  3741. | YY_LESS_LINENO(yyless_macro_arg);\
  3742. | yytext[yyleng] = (yy_hold_char); \
  3743. | (yy_c_buf_p) = yytext + yyless_macro_arg; \
  3744. | (yy_hold_char) = *(yy_c_buf_p); \
  3745. | *(yy_c_buf_p) = '\0'; \
  3746. | yyleng = yyless_macro_arg; \
  3747. | } \
  3748. | while ( 0 )
  3749. |
  3750. | /* Accessor methods (get/set functions) to struct members. */
  3751. |
  3752. | /** Get the current line number.
  3753. | *
  3754. | */
  3755. | int yyget_lineno (void)
  3756. | {
  3757. |
  3758. | return yylineno;
  3759. | }
  3760. |
  3761. | /** Get the input stream.
  3762. | *
  3763. | */
  3764. | FILE *yyget_in (void)
  3765. | {
  3766. | return yyin;
  3767. | }
  3768. |
  3769. | /** Get the output stream.
  3770. | *
  3771. | */
  3772. | FILE *yyget_out (void)
  3773. | {
  3774. | return yyout;
  3775. | }
  3776. |
  3777. | /** Get the length of the current token.
  3778. | *
  3779. | */
  3780. | yy_size_t yyget_leng (void)
  3781. | {
  3782. | return yyleng;
  3783. | }
  3784. |
  3785. | /** Get the current token.
  3786. | *
  3787. | */
  3788. |
  3789. | char *yyget_text (void)
  3790. | {
  3791. | return yytext;
  3792. | }
  3793. |
  3794. | /** Set the current line number.
  3795. | * @param line_number
  3796. | *
  3797. | */
  3798. | void yyset_lineno (int line_number )
  3799. | {
  3800. |
  3801. | yylineno = line_number;
  3802. | }
  3803. |
  3804. | /** Set the input stream. This does not discard the current
  3805. | * input buffer.
  3806. | * @param in_str A readable stream.
  3807. | *
  3808. | * @see yy_switch_to_buffer
  3809. | */
  3810. | void yyset_in (FILE * in_str )
  3811. | {
  3812. | yyin = in_str ;
  3813. | }
  3814. |
  3815. | void yyset_out (FILE * out_str )
  3816. | {
  3817. | yyout = out_str ;
  3818. | }
  3819. |
  3820. | int yyget_debug (void)
  3821. | {
  3822. | return yy_flex_debug;
  3823. | }
  3824. |
  3825. | void yyset_debug (int bdebug )
  3826. | {
  3827. | yy_flex_debug = bdebug ;
  3828. | }
  3829. |
  3830. | static int yy_init_globals (void)
  3831. | {
  3832. | /* Initialization is the same as for the non-reentrant scanner.
  3833. | * This function is called from yylex_destroy(), so don't allocate here.
  3834. | */
  3835. |
  3836. | (yy_buffer_stack) = 0;
  3837. | (yy_buffer_stack_top) = 0;
  3838. | (yy_buffer_stack_max) = 0;
  3839. | (yy_c_buf_p) = (char *) 0;
  3840. | (yy_init) = 0;
  3841. | (yy_start) = 0;
  3842. |
  3843. | (yy_state_buf) = 0;
  3844. | (yy_state_ptr) = 0;
  3845. | (yy_full_match) = 0;
  3846. | (yy_lp) = 0;
  3847. |
  3848. | /* Defined in main.c */
  3849. | #ifdef YY_STDINIT
  3850. | yyin = stdin;
  3851. | yyout = stdout;
  3852. | #else
  3853. | yyin = (FILE *) 0;
  3854. | yyout = (FILE *) 0;
  3855. | #endif
  3856. |
  3857. | /* For future reference: Set errno on error, since we are called by
  3858. | * yylex_init()
  3859. | */
  3860. | return 0;
  3861. | }
  3862. |
  3863. | /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  3864. | int yylex_destroy (void)
  3865. | {
  3866. |
  3867. | /* Pop the buffer stack, destroying each element. */
  3868. | while(YY_CURRENT_BUFFER){
  3869. | yy_delete_buffer(YY_CURRENT_BUFFER );
  3870. | YY_CURRENT_BUFFER_LVALUE = NULL;
  3871. | yypop_buffer_state();
  3872. | }
  3873. |
  3874. | /* Destroy the stack itself. */
  3875. | yyfree((yy_buffer_stack) );
  3876. | (yy_buffer_stack) = NULL;
  3877. |
  3878. | yyfree ( (yy_state_buf) );
  3879. | (yy_state_buf) = NULL;
  3880. |
  3881. | /* Reset the globals. This is important in a non-reentrant scanner so the next time
  3882. | * yylex() is called, initialization will occur. */
  3883. | yy_init_globals( );
  3884. |
  3885. | return 0;
  3886. | }
  3887. |
  3888. | /*
  3889. | * Internal utility routines.
  3890. | */
  3891. |
  3892. | #ifndef yytext_ptr
  3893. | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
  3894. | {
  3895. | register int i;
  3896. | for ( i = 0; i < n; ++i )
  3897. | s1[i] = s2[i];
  3898. | }
  3899. | #endif
  3900. |
  3901. | #ifdef YY_NEED_STRLEN
  3902. | static int yy_flex_strlen (yyconst char * s )
  3903. | {
  3904. | register int n;
  3905. | for ( n = 0; s[n]; ++n )
  3906. | ;
  3907. |
  3908. | return n;
  3909. | }
  3910. | #endif
  3911. |
  3912. | void *yyalloc (yy_size_t size )
  3913. | {
  3914. | return (void *) malloc( size );
  3915. | }
  3916. |
  3917. | void *yyrealloc (void * ptr, yy_size_t size )
  3918. | {
  3919. | /* The cast to (char *) in the following accommodates both
  3920. | * implementations that use char* generic pointers, and those
  3921. | * that use void* generic pointers. It works with the latter
  3922. | * because both ANSI C and C++ allow castless assignment from
  3923. | * any pointer type to void*, and deal with argument conversions
  3924. | * as though doing an assignment.
  3925. | */
  3926. | return (void *) realloc( (char *) ptr, size );
  3927. | }
  3928. |
  3929. | void yyfree (void * ptr )
  3930. | {
  3931. | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  3932. | }
  3933. |
  3934. | #define YYTABLES_NAME "yytables"
  3935. |
  3936. | #line 10 "conftest.l"
  3937. |
  3938. |
  3939. | #ifdef YYTEXT_POINTER
  3940. | extern char *yytext;
  3941. | #endif
  3942. | int
  3943. | main (void)
  3944. | {
  3945. | return ! yylex () + ! yywrap ();
  3946. | }
  3947. configure:11660: gcc -o conftest -g -O2 conftest.c -ll >&5
  3948. /usr/bin/ld: cannot find -ll
  3949. collect2: error: ld returned 1 exit status
  3950. configure:11660: $? = 1
  3951. configure: failed program was:
  3952. | /* confdefs.h */
  3953. | #define PACKAGE_NAME "ipsec-tools"
  3954. | #define PACKAGE_TARNAME "ipsec-tools"
  3955. | #define PACKAGE_VERSION "0.8.1"
  3956. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  3957. | #define PACKAGE_BUGREPORT ""
  3958. | #define PACKAGE_URL ""
  3959. | #define PACKAGE "ipsec-tools"
  3960. | #define VERSION "0.8.1"
  3961. | #define STDC_HEADERS 1
  3962. | #define HAVE_SYS_TYPES_H 1
  3963. | #define HAVE_SYS_STAT_H 1
  3964. | #define HAVE_STDLIB_H 1
  3965. | #define HAVE_STRING_H 1
  3966. | #define HAVE_MEMORY_H 1
  3967. | #define HAVE_STRINGS_H 1
  3968. | #define HAVE_INTTYPES_H 1
  3969. | #define HAVE_STDINT_H 1
  3970. | #define HAVE_UNISTD_H 1
  3971. | #define HAVE_DLFCN_H 1
  3972. | #define LT_OBJDIR ".libs/"
  3973. | /* end confdefs.h. */
  3974. |
  3975. | #line 3 "lex.yy.c"
  3976. |
  3977. | #define YY_INT_ALIGNED short int
  3978. |
  3979. | /* A lexical scanner generated by flex */
  3980. |
  3981. | #define FLEX_SCANNER
  3982. | #define YY_FLEX_MAJOR_VERSION 2
  3983. | #define YY_FLEX_MINOR_VERSION 5
  3984. | #define YY_FLEX_SUBMINOR_VERSION 37
  3985. | #if YY_FLEX_SUBMINOR_VERSION > 0
  3986. | #define FLEX_BETA
  3987. | #endif
  3988. |
  3989. | /* First, we deal with platform-specific or compiler-specific issues. */
  3990. |
  3991. | /* begin standard C headers. */
  3992. | #include <stdio.h>
  3993. | #include <string.h>
  3994. | #include <errno.h>
  3995. | #include <stdlib.h>
  3996. |
  3997. | /* end standard C headers. */
  3998. |
  3999. | /* flex integer type definitions */
  4000. |
  4001. | #ifndef FLEXINT_H
  4002. | #define FLEXINT_H
  4003. |
  4004. | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  4005. |
  4006. | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  4007. |
  4008. | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  4009. | * if you want the limit (max/min) macros for int types.
  4010. | */
  4011. | #ifndef __STDC_LIMIT_MACROS
  4012. | #define __STDC_LIMIT_MACROS 1
  4013. | #endif
  4014. |
  4015. | #include <inttypes.h>
  4016. | typedef int8_t flex_int8_t;
  4017. | typedef uint8_t flex_uint8_t;
  4018. | typedef int16_t flex_int16_t;
  4019. | typedef uint16_t flex_uint16_t;
  4020. | typedef int32_t flex_int32_t;
  4021. | typedef uint32_t flex_uint32_t;
  4022. | #else
  4023. | typedef signed char flex_int8_t;
  4024. | typedef short int flex_int16_t;
  4025. | typedef int flex_int32_t;
  4026. | typedef unsigned char flex_uint8_t;
  4027. | typedef unsigned short int flex_uint16_t;
  4028. | typedef unsigned int flex_uint32_t;
  4029. |
  4030. | /* Limits of integral types. */
  4031. | #ifndef INT8_MIN
  4032. | #define INT8_MIN (-128)
  4033. | #endif
  4034. | #ifndef INT16_MIN
  4035. | #define INT16_MIN (-32767-1)
  4036. | #endif
  4037. | #ifndef INT32_MIN
  4038. | #define INT32_MIN (-2147483647-1)
  4039. | #endif
  4040. | #ifndef INT8_MAX
  4041. | #define INT8_MAX (127)
  4042. | #endif
  4043. | #ifndef INT16_MAX
  4044. | #define INT16_MAX (32767)
  4045. | #endif
  4046. | #ifndef INT32_MAX
  4047. | #define INT32_MAX (2147483647)
  4048. | #endif
  4049. | #ifndef UINT8_MAX
  4050. | #define UINT8_MAX (255U)
  4051. | #endif
  4052. | #ifndef UINT16_MAX
  4053. | #define UINT16_MAX (65535U)
  4054. | #endif
  4055. | #ifndef UINT32_MAX
  4056. | #define UINT32_MAX (4294967295U)
  4057. | #endif
  4058. |
  4059. | #endif /* ! C99 */
  4060. |
  4061. | #endif /* ! FLEXINT_H */
  4062. |
  4063. | #ifdef __cplusplus
  4064. |
  4065. | /* The "const" storage-class-modifier is valid. */
  4066. | #define YY_USE_CONST
  4067. |
  4068. | #else /* ! __cplusplus */
  4069. |
  4070. | /* C99 requires __STDC__ to be defined as 1. */
  4071. | #if defined (__STDC__)
  4072. |
  4073. | #define YY_USE_CONST
  4074. |
  4075. | #endif /* defined (__STDC__) */
  4076. | #endif /* ! __cplusplus */
  4077. |
  4078. | #ifdef YY_USE_CONST
  4079. | #define yyconst const
  4080. | #else
  4081. | #define yyconst
  4082. | #endif
  4083. |
  4084. | /* Returned upon end-of-file. */
  4085. | #define YY_NULL 0
  4086. |
  4087. | /* Promotes a possibly negative, possibly signed char to an unsigned
  4088. | * integer for use as an array index. If the signed char is negative,
  4089. | * we want to instead treat it as an 8-bit unsigned char, hence the
  4090. | * double cast.
  4091. | */
  4092. | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  4093. |
  4094. | /* Enter a start condition. This macro really ought to take a parameter,
  4095. | * but we do it the disgusting crufty way forced on us by the ()-less
  4096. | * definition of BEGIN.
  4097. | */
  4098. | #define BEGIN (yy_start) = 1 + 2 *
  4099. |
  4100. | /* Translate the current start state into a value that can be later handed
  4101. | * to BEGIN to return to the state. The YYSTATE alias is for lex
  4102. | * compatibility.
  4103. | */
  4104. | #define YY_START (((yy_start) - 1) / 2)
  4105. | #define YYSTATE YY_START
  4106. |
  4107. | /* Action number for EOF rule of a given start state. */
  4108. | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  4109. |
  4110. | /* Special action meaning "start processing a new file". */
  4111. | #define YY_NEW_FILE yyrestart(yyin )
  4112. |
  4113. | #define YY_END_OF_BUFFER_CHAR 0
  4114. |
  4115. | /* Size of default input buffer. */
  4116. | #ifndef YY_BUF_SIZE
  4117. | #define YY_BUF_SIZE 16384
  4118. | #endif
  4119. |
  4120. | /* The state buf must be large enough to hold one state per character in the main buffer.
  4121. | */
  4122. | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  4123. |
  4124. | #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  4125. | #define YY_TYPEDEF_YY_BUFFER_STATE
  4126. | typedef struct yy_buffer_state *YY_BUFFER_STATE;
  4127. | #endif
  4128. |
  4129. | #ifndef YY_TYPEDEF_YY_SIZE_T
  4130. | #define YY_TYPEDEF_YY_SIZE_T
  4131. | typedef size_t yy_size_t;
  4132. | #endif
  4133. |
  4134. | extern yy_size_t yyleng;
  4135. |
  4136. | extern FILE *yyin, *yyout;
  4137. |
  4138. | #define EOB_ACT_CONTINUE_SCAN 0
  4139. | #define EOB_ACT_END_OF_FILE 1
  4140. | #define EOB_ACT_LAST_MATCH 2
  4141. |
  4142. | #define YY_LESS_LINENO(n)
  4143. |
  4144. | /* Return all but the first "n" matched characters back to the input stream. */
  4145. | #define yyless(n) \
  4146. | do \
  4147. | { \
  4148. | /* Undo effects of setting up yytext. */ \
  4149. | int yyless_macro_arg = (n); \
  4150. | YY_LESS_LINENO(yyless_macro_arg);\
  4151. | *yy_cp = (yy_hold_char); \
  4152. | YY_RESTORE_YY_MORE_OFFSET \
  4153. | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  4154. | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  4155. | } \
  4156. | while ( 0 )
  4157. |
  4158. | #define unput(c) yyunput( c, (yytext_ptr) )
  4159. |
  4160. | #ifndef YY_STRUCT_YY_BUFFER_STATE
  4161. | #define YY_STRUCT_YY_BUFFER_STATE
  4162. | struct yy_buffer_state
  4163. | {
  4164. | FILE *yy_input_file;
  4165. |
  4166. | char *yy_ch_buf; /* input buffer */
  4167. | char *yy_buf_pos; /* current position in input buffer */
  4168. |
  4169. | /* Size of input buffer in bytes, not including room for EOB
  4170. | * characters.
  4171. | */
  4172. | yy_size_t yy_buf_size;
  4173. |
  4174. | /* Number of characters read into yy_ch_buf, not including EOB
  4175. | * characters.
  4176. | */
  4177. | yy_size_t yy_n_chars;
  4178. |
  4179. | /* Whether we "own" the buffer - i.e., we know we created it,
  4180. | * and can realloc() it to grow it, and should free() it to
  4181. | * delete it.
  4182. | */
  4183. | int yy_is_our_buffer;
  4184. |
  4185. | /* Whether this is an "interactive" input source; if so, and
  4186. | * if we're using stdio for input, then we want to use getc()
  4187. | * instead of fread(), to make sure we stop fetching input after
  4188. | * each newline.
  4189. | */
  4190. | int yy_is_interactive;
  4191. |
  4192. | /* Whether we're considered to be at the beginning of a line.
  4193. | * If so, '^' rules will be active on the next match, otherwise
  4194. | * not.
  4195. | */
  4196. | int yy_at_bol;
  4197. |
  4198. | int yy_bs_lineno; /**< The line count. */
  4199. | int yy_bs_column; /**< The column count. */
  4200. |
  4201. | /* Whether to try to fill the input buffer when we reach the
  4202. | * end of it.
  4203. | */
  4204. | int yy_fill_buffer;
  4205. |
  4206. | int yy_buffer_status;
  4207. |
  4208. | #define YY_BUFFER_NEW 0
  4209. | #define YY_BUFFER_NORMAL 1
  4210. | /* When an EOF's been seen but there's still some text to process
  4211. | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  4212. | * shouldn't try reading from the input source any more. We might
  4213. | * still have a bunch of tokens to match, though, because of
  4214. | * possible backing-up.
  4215. | *
  4216. | * When we actually see the EOF, we change the status to "new"
  4217. | * (via yyrestart()), so that the user can continue scanning by
  4218. | * just pointing yyin at a new input file.
  4219. | */
  4220. | #define YY_BUFFER_EOF_PENDING 2
  4221. |
  4222. | };
  4223. | #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  4224. |
  4225. | /* Stack of input buffers. */
  4226. | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  4227. | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  4228. | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
  4229. |
  4230. | /* We provide macros for accessing buffer states in case in the
  4231. | * future we want to put the buffer states in a more general
  4232. | * "scanner state".
  4233. | *
  4234. | * Returns the top of the stack, or NULL.
  4235. | */
  4236. | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  4237. | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  4238. | : NULL)
  4239. |
  4240. | /* Same as previous macro, but useful when we know that the buffer stack is not
  4241. | * NULL or when we need an lvalue. For internal use only.
  4242. | */
  4243. | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  4244. |
  4245. | /* yy_hold_char holds the character lost when yytext is formed. */
  4246. | static char yy_hold_char;
  4247. | static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
  4248. | yy_size_t yyleng;
  4249. |
  4250. | /* Points to current character in buffer. */
  4251. | static char *yy_c_buf_p = (char *) 0;
  4252. | static int yy_init = 0; /* whether we need to initialize */
  4253. | static int yy_start = 0; /* start state number */
  4254. |
  4255. | /* Flag which is used to allow yywrap()'s to do buffer switches
  4256. | * instead of setting up a fresh yyin. A bit of a hack ...
  4257. | */
  4258. | static int yy_did_buffer_switch_on_eof;
  4259. |
  4260. | void yyrestart (FILE *input_file );
  4261. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
  4262. | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
  4263. | void yy_delete_buffer (YY_BUFFER_STATE b );
  4264. | void yy_flush_buffer (YY_BUFFER_STATE b );
  4265. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
  4266. | void yypop_buffer_state (void );
  4267. |
  4268. | static void yyensure_buffer_stack (void );
  4269. | static void yy_load_buffer_state (void );
  4270. | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
  4271. |
  4272. | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
  4273. |
  4274. | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
  4275. | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
  4276. | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
  4277. |
  4278. | void *yyalloc (yy_size_t );
  4279. | void *yyrealloc (void *,yy_size_t );
  4280. | void yyfree (void * );
  4281. |
  4282. | #define yy_new_buffer yy_create_buffer
  4283. |
  4284. | #define yy_set_interactive(is_interactive) \
  4285. | { \
  4286. | if ( ! YY_CURRENT_BUFFER ){ \
  4287. | yyensure_buffer_stack (); \
  4288. | YY_CURRENT_BUFFER_LVALUE = \
  4289. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  4290. | } \
  4291. | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  4292. | }
  4293. |
  4294. | #define yy_set_bol(at_bol) \
  4295. | { \
  4296. | if ( ! YY_CURRENT_BUFFER ){\
  4297. | yyensure_buffer_stack (); \
  4298. | YY_CURRENT_BUFFER_LVALUE = \
  4299. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  4300. | } \
  4301. | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  4302. | }
  4303. |
  4304. | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  4305. |
  4306. | /* Begin user sect3 */
  4307. |
  4308. | typedef unsigned char YY_CHAR;
  4309. |
  4310. | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  4311. |
  4312. | typedef int yy_state_type;
  4313. |
  4314. | extern int yylineno;
  4315. |
  4316. | int yylineno = 1;
  4317. |
  4318. | extern char *yytext;
  4319. | #define yytext_ptr yytext
  4320. |
  4321. | static yy_state_type yy_get_previous_state (void );
  4322. | static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
  4323. | static int yy_get_next_buffer (void );
  4324. | static void yy_fatal_error (yyconst char msg[] );
  4325. |
  4326. | /* Done after the current pattern has been matched and before the
  4327. | * corresponding action - sets up yytext.
  4328. | */
  4329. | #define YY_DO_BEFORE_ACTION \
  4330. | (yytext_ptr) = yy_bp; \
  4331. | (yytext_ptr) -= (yy_more_len); \
  4332. | yyleng = (size_t) (yy_cp - (yytext_ptr)); \
  4333. | (yy_hold_char) = *yy_cp; \
  4334. | *yy_cp = '\0'; \
  4335. | (yy_c_buf_p) = yy_cp;
  4336. |
  4337. | #define YY_NUM_RULES 8
  4338. | #define YY_END_OF_BUFFER 9
  4339. | /* This struct is not used in this scanner,
  4340. | but its presence is necessary. */
  4341. | struct yy_trans_info
  4342. | {
  4343. | flex_int32_t yy_verify;
  4344. | flex_int32_t yy_nxt;
  4345. | };
  4346. | static yyconst flex_int16_t yy_acclist[23] =
  4347. | { 0,
  4348. | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
  4349. | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
  4350. | 7, 8
  4351. | } ;
  4352. |
  4353. | static yyconst flex_int16_t yy_accept[14] =
  4354. | { 0,
  4355. | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
  4356. | 20, 23, 23
  4357. | } ;
  4358. |
  4359. | static yyconst flex_int32_t yy_ec[256] =
  4360. | { 0,
  4361. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
  4362. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4363. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4364. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4365. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4366. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4367. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4368. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4369. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4370. | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
  4371. |
  4372. | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
  4373. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4374. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4375. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4376. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4377. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4378. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4379. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4380. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4381. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4382. |
  4383. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4384. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4385. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4386. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4387. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4388. | 1, 1, 1, 1, 1
  4389. | } ;
  4390. |
  4391. | static yyconst flex_int32_t yy_meta[9] =
  4392. | { 0,
  4393. | 1, 1, 1, 1, 1, 1, 1, 1
  4394. | } ;
  4395. |
  4396. | static yyconst flex_int16_t yy_base[13] =
  4397. | { 0,
  4398. | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
  4399. | 10, 10
  4400. | } ;
  4401. |
  4402. | static yyconst flex_int16_t yy_def[13] =
  4403. | { 0,
  4404. | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
  4405. | 12, 0
  4406. | } ;
  4407. |
  4408. | static yyconst flex_int16_t yy_nxt[19] =
  4409. | { 0,
  4410. | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
  4411. | 12, 12, 12, 12, 12, 12, 12, 12
  4412. | } ;
  4413. |
  4414. | static yyconst flex_int16_t yy_chk[19] =
  4415. | { 0,
  4416. | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
  4417. | 12, 12, 12, 12, 12, 12, 12, 12
  4418. | } ;
  4419. |
  4420. | extern int yy_flex_debug;
  4421. | int yy_flex_debug = 0;
  4422. |
  4423. | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
  4424. | static char *yy_full_match;
  4425. | static int yy_lp;
  4426. | #define REJECT \
  4427. | { \
  4428. | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
  4429. | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
  4430. | ++(yy_lp); \
  4431. | goto find_rule; \
  4432. | }
  4433. |
  4434. | static int yy_more_flag = 0;
  4435. | static int yy_more_len = 0;
  4436. | #define yymore() ((yy_more_flag) = 1)
  4437. | #define YY_MORE_ADJ (yy_more_len)
  4438. | #define YY_RESTORE_YY_MORE_OFFSET
  4439. | char *yytext;
  4440. | #line 1 "conftest.l"
  4441. | #line 469 "lex.yy.c"
  4442. |
  4443. | #define INITIAL 0
  4444. |
  4445. | #ifndef YY_NO_UNISTD_H
  4446. | /* Special case for "unistd.h", since it is non-ANSI. We include it way
  4447. | * down here because we want the user's section 1 to have been scanned first.
  4448. | * The user has a chance to override it with an option.
  4449. | */
  4450. | #include <unistd.h>
  4451. | #endif
  4452. |
  4453. | #ifndef YY_EXTRA_TYPE
  4454. | #define YY_EXTRA_TYPE void *
  4455. | #endif
  4456. |
  4457. | static int yy_init_globals (void );
  4458. |
  4459. | /* Accessor methods to globals.
  4460. | These are made visible to non-reentrant scanners for convenience. */
  4461. |
  4462. | int yylex_destroy (void );
  4463. |
  4464. | int yyget_debug (void );
  4465. |
  4466. | void yyset_debug (int debug_flag );
  4467. |
  4468. | YY_EXTRA_TYPE yyget_extra (void );
  4469. |
  4470. | void yyset_extra (YY_EXTRA_TYPE user_defined );
  4471. |
  4472. | FILE *yyget_in (void );
  4473. |
  4474. | void yyset_in (FILE * in_str );
  4475. |
  4476. | FILE *yyget_out (void );
  4477. |
  4478. | void yyset_out (FILE * out_str );
  4479. |
  4480. | yy_size_t yyget_leng (void );
  4481. |
  4482. | char *yyget_text (void );
  4483. |
  4484. | int yyget_lineno (void );
  4485. |
  4486. | void yyset_lineno (int line_number );
  4487. |
  4488. | /* Macros after this point can all be overridden by user definitions in
  4489. | * section 1.
  4490. | */
  4491. |
  4492. | #ifndef YY_SKIP_YYWRAP
  4493. | #ifdef __cplusplus
  4494. | extern "C" int yywrap (void );
  4495. | #else
  4496. | extern int yywrap (void );
  4497. | #endif
  4498. | #endif
  4499. |
  4500. | static void yyunput (int c,char *buf_ptr );
  4501. |
  4502. | #ifndef yytext_ptr
  4503. | static void yy_flex_strncpy (char *,yyconst char *,int );
  4504. | #endif
  4505. |
  4506. | #ifdef YY_NEED_STRLEN
  4507. | static int yy_flex_strlen (yyconst char * );
  4508. | #endif
  4509. |
  4510. | #ifndef YY_NO_INPUT
  4511. |
  4512. | #ifdef __cplusplus
  4513. | static int yyinput (void );
  4514. | #else
  4515. | static int input (void );
  4516. | #endif
  4517. |
  4518. | #endif
  4519. |
  4520. | /* Amount of stuff to slurp up with each read. */
  4521. | #ifndef YY_READ_BUF_SIZE
  4522. | #define YY_READ_BUF_SIZE 8192
  4523. | #endif
  4524. |
  4525. | /* Copy whatever the last rule matched to the standard output. */
  4526. | #ifndef ECHO
  4527. | /* This used to be an fputs(), but since the string might contain NUL's,
  4528. | * we now use fwrite().
  4529. | */
  4530. | #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
  4531. | #endif
  4532. |
  4533. | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  4534. | * is returned in "result".
  4535. | */
  4536. | #ifndef YY_INPUT
  4537. | #define YY_INPUT(buf,result,max_size) \
  4538. | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  4539. | { \
  4540. | int c = '*'; \
  4541. | size_t n; \
  4542. | for ( n = 0; n < max_size && \
  4543. | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  4544. | buf[n] = (char) c; \
  4545. | if ( c == '\n' ) \
  4546. | buf[n++] = (char) c; \
  4547. | if ( c == EOF && ferror( yyin ) ) \
  4548. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  4549. | result = n; \
  4550. | } \
  4551. | else \
  4552. | { \
  4553. | errno=0; \
  4554. | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  4555. | { \
  4556. | if( errno != EINTR) \
  4557. | { \
  4558. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  4559. | break; \
  4560. | } \
  4561. | errno=0; \
  4562. | clearerr(yyin); \
  4563. | } \
  4564. | }\
  4565. | \
  4566. |
  4567. | #endif
  4568. |
  4569. | /* No semi-colon after return; correct usage is to write "yyterminate();" -
  4570. | * we don't want an extra ';' after the "return" because that will cause
  4571. | * some compilers to complain about unreachable statements.
  4572. | */
  4573. | #ifndef yyterminate
  4574. | #define yyterminate() return YY_NULL
  4575. | #endif
  4576. |
  4577. | /* Number of entries by which start-condition stack grows. */
  4578. | #ifndef YY_START_STACK_INCR
  4579. | #define YY_START_STACK_INCR 25
  4580. | #endif
  4581. |
  4582. | /* Report a fatal error. */
  4583. | #ifndef YY_FATAL_ERROR
  4584. | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  4585. | #endif
  4586. |
  4587. | /* end tables serialization structures and prototypes */
  4588. |
  4589. | /* Default declaration of generated scanner - a define so the user can
  4590. | * easily add parameters.
  4591. | */
  4592. | #ifndef YY_DECL
  4593. | #define YY_DECL_IS_OURS 1
  4594. |
  4595. | extern int yylex (void);
  4596. |
  4597. | #define YY_DECL int yylex (void)
  4598. | #endif /* !YY_DECL */
  4599. |
  4600. | /* Code executed at the beginning of each rule, after yytext and yyleng
  4601. | * have been set up.
  4602. | */
  4603. | #ifndef YY_USER_ACTION
  4604. | #define YY_USER_ACTION
  4605. | #endif
  4606. |
  4607. | /* Code executed at the end of each rule. */
  4608. | #ifndef YY_BREAK
  4609. | #define YY_BREAK break;
  4610. | #endif
  4611. |
  4612. | #define YY_RULE_SETUP \
  4613. | YY_USER_ACTION
  4614. |
  4615. | /** The main scanner function which does all the work.
  4616. | */
  4617. | YY_DECL
  4618. | {
  4619. | register yy_state_type yy_current_state;
  4620. | register char *yy_cp, *yy_bp;
  4621. | register int yy_act;
  4622. |
  4623. | #line 1 "conftest.l"
  4624. |
  4625. | #line 653 "lex.yy.c"
  4626. |
  4627. | if ( !(yy_init) )
  4628. | {
  4629. | (yy_init) = 1;
  4630. |
  4631. | #ifdef YY_USER_INIT
  4632. | YY_USER_INIT;
  4633. | #endif
  4634. |
  4635. | /* Create the reject buffer large enough to save one state per allowed character. */
  4636. | if ( ! (yy_state_buf) )
  4637. | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
  4638. | if ( ! (yy_state_buf) )
  4639. | YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
  4640. |
  4641. | if ( ! (yy_start) )
  4642. | (yy_start) = 1; /* first start state */
  4643. |
  4644. | if ( ! yyin )
  4645. | yyin = stdin;
  4646. |
  4647. | if ( ! yyout )
  4648. | yyout = stdout;
  4649. |
  4650. | if ( ! YY_CURRENT_BUFFER ) {
  4651. | yyensure_buffer_stack ();
  4652. | YY_CURRENT_BUFFER_LVALUE =
  4653. | yy_create_buffer(yyin,YY_BUF_SIZE );
  4654. | }
  4655. |
  4656. | yy_load_buffer_state( );
  4657. | }
  4658. |
  4659. | while ( 1 ) /* loops until end-of-file is reached */
  4660. | {
  4661. | (yy_more_len) = 0;
  4662. | if ( (yy_more_flag) )
  4663. | {
  4664. | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr);
  4665. | (yy_more_flag) = 0;
  4666. | }
  4667. | yy_cp = (yy_c_buf_p);
  4668. |
  4669. | /* Support of yytext. */
  4670. | *yy_cp = (yy_hold_char);
  4671. |
  4672. | /* yy_bp points to the position in yy_ch_buf of the start of
  4673. | * the current run.
  4674. | */
  4675. | yy_bp = yy_cp;
  4676. |
  4677. | yy_current_state = (yy_start);
  4678. |
  4679. | (yy_state_ptr) = (yy_state_buf);
  4680. | *(yy_state_ptr)++ = yy_current_state;
  4681. |
  4682. | yy_match:
  4683. | do
  4684. | {
  4685. | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  4686. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  4687. | {
  4688. | yy_current_state = (int) yy_def[yy_current_state];
  4689. | if ( yy_current_state >= 13 )
  4690. | yy_c = yy_meta[(unsigned int) yy_c];
  4691. | }
  4692. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  4693. | *(yy_state_ptr)++ = yy_current_state;
  4694. | ++yy_cp;
  4695. | }
  4696. | while ( yy_base[yy_current_state] != 10 );
  4697. |
  4698. | yy_find_action:
  4699. | yy_current_state = *--(yy_state_ptr);
  4700. | (yy_lp) = yy_accept[yy_current_state];
  4701. | find_rule: /* we branch to this label when backing up */
  4702. | for ( ; ; ) /* until we find what rule we matched */
  4703. | {
  4704. | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
  4705. | {
  4706. | yy_act = yy_acclist[(yy_lp)];
  4707. | {
  4708. | (yy_full_match) = yy_cp;
  4709. | break;
  4710. | }
  4711. | }
  4712. | --yy_cp;
  4713. | yy_current_state = *--(yy_state_ptr);
  4714. | (yy_lp) = yy_accept[yy_current_state];
  4715. | }
  4716. |
  4717. | YY_DO_BEFORE_ACTION;
  4718. |
  4719. | do_action: /* This label is used only to access EOF actions. */
  4720. |
  4721. | switch ( yy_act )
  4722. | { /* beginning of action switch */
  4723. | case 1:
  4724. | YY_RULE_SETUP
  4725. | #line 2 "conftest.l"
  4726. | { ECHO; }
  4727. | YY_BREAK
  4728. | case 2:
  4729. | YY_RULE_SETUP
  4730. | #line 3 "conftest.l"
  4731. | { REJECT; }
  4732. | YY_BREAK
  4733. | case 3:
  4734. | YY_RULE_SETUP
  4735. | #line 4 "conftest.l"
  4736. | { yymore (); }
  4737. | YY_BREAK
  4738. | case 4:
  4739. | YY_RULE_SETUP
  4740. | #line 5 "conftest.l"
  4741. | { yyless (1); }
  4742. | YY_BREAK
  4743. | case 5:
  4744. | YY_RULE_SETUP
  4745. | #line 6 "conftest.l"
  4746. | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  4747. | yyless ((input () != 0)); }
  4748. | YY_BREAK
  4749. | case 6:
  4750. | YY_RULE_SETUP
  4751. | #line 8 "conftest.l"
  4752. | { unput (yytext[0]); }
  4753. | YY_BREAK
  4754. | case 7:
  4755. | YY_RULE_SETUP
  4756. | #line 9 "conftest.l"
  4757. | { BEGIN INITIAL; }
  4758. | YY_BREAK
  4759. | case 8:
  4760. | YY_RULE_SETUP
  4761. | #line 10 "conftest.l"
  4762. | ECHO;
  4763. | YY_BREAK
  4764. | #line 792 "lex.yy.c"
  4765. | case YY_STATE_EOF(INITIAL):
  4766. | yyterminate();
  4767. |
  4768. | case YY_END_OF_BUFFER:
  4769. | {
  4770. | /* Amount of text matched not including the EOB char. */
  4771. | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  4772. |
  4773. | /* Undo the effects of YY_DO_BEFORE_ACTION. */
  4774. | *yy_cp = (yy_hold_char);
  4775. | YY_RESTORE_YY_MORE_OFFSET
  4776. |
  4777. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  4778. | {
  4779. | /* We're scanning a new file or input source. It's
  4780. | * possible that this happened because the user
  4781. | * just pointed yyin at a new source and called
  4782. | * yylex(). If so, then we have to assure
  4783. | * consistency between YY_CURRENT_BUFFER and our
  4784. | * globals. Here is the right place to do so, because
  4785. | * this is the first action (other than possibly a
  4786. | * back-up) that will match for the new input source.
  4787. | */
  4788. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  4789. | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  4790. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  4791. | }
  4792. |
  4793. | /* Note that here we test for yy_c_buf_p "<=" to the position
  4794. | * of the first EOB in the buffer, since yy_c_buf_p will
  4795. | * already have been incremented past the NUL character
  4796. | * (since all states make transitions on EOB to the
  4797. | * end-of-buffer state). Contrast this with the test
  4798. | * in input().
  4799. | */
  4800. | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  4801. | { /* This was really a NUL. */
  4802. | yy_state_type yy_next_state;
  4803. |
  4804. | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  4805. |
  4806. | yy_current_state = yy_get_previous_state( );
  4807. |
  4808. | /* Okay, we're now positioned to make the NUL
  4809. | * transition. We couldn't have
  4810. | * yy_get_previous_state() go ahead and do it
  4811. | * for us because it doesn't know how to deal
  4812. | * with the possibility of jamming (and we don't
  4813. | * want to build jamming into it because then it
  4814. | * will run more slowly).
  4815. | */
  4816. |
  4817. | yy_next_state = yy_try_NUL_trans( yy_current_state );
  4818. |
  4819. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  4820. |
  4821. | if ( yy_next_state )
  4822. | {
  4823. | /* Consume the NUL. */
  4824. | yy_cp = ++(yy_c_buf_p);
  4825. | yy_current_state = yy_next_state;
  4826. | goto yy_match;
  4827. | }
  4828. |
  4829. | else
  4830. | {
  4831. | yy_cp = (yy_c_buf_p);
  4832. | goto yy_find_action;
  4833. | }
  4834. | }
  4835. |
  4836. | else switch ( yy_get_next_buffer( ) )
  4837. | {
  4838. | case EOB_ACT_END_OF_FILE:
  4839. | {
  4840. | (yy_did_buffer_switch_on_eof) = 0;
  4841. |
  4842. | if ( yywrap( ) )
  4843. | {
  4844. | /* Note: because we've taken care in
  4845. | * yy_get_next_buffer() to have set up
  4846. | * yytext, we can now set up
  4847. | * yy_c_buf_p so that if some total
  4848. | * hoser (like flex itself) wants to
  4849. | * call the scanner after we return the
  4850. | * YY_NULL, it'll still work - another
  4851. | * YY_NULL will get returned.
  4852. | */
  4853. | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  4854. |
  4855. | yy_act = YY_STATE_EOF(YY_START);
  4856. | goto do_action;
  4857. | }
  4858. |
  4859. | else
  4860. | {
  4861. | if ( ! (yy_did_buffer_switch_on_eof) )
  4862. | YY_NEW_FILE;
  4863. | }
  4864. | break;
  4865. | }
  4866. |
  4867. | case EOB_ACT_CONTINUE_SCAN:
  4868. | (yy_c_buf_p) =
  4869. | (yytext_ptr) + yy_amount_of_matched_text;
  4870. |
  4871. | yy_current_state = yy_get_previous_state( );
  4872. |
  4873. | yy_cp = (yy_c_buf_p);
  4874. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  4875. | goto yy_match;
  4876. |
  4877. | case EOB_ACT_LAST_MATCH:
  4878. | (yy_c_buf_p) =
  4879. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  4880. |
  4881. | yy_current_state = yy_get_previous_state( );
  4882. |
  4883. | yy_cp = (yy_c_buf_p);
  4884. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  4885. | goto yy_find_action;
  4886. | }
  4887. | break;
  4888. | }
  4889. |
  4890. | default:
  4891. | YY_FATAL_ERROR(
  4892. | "fatal flex scanner internal error--no action found" );
  4893. | } /* end of action switch */
  4894. | } /* end of scanning one token */
  4895. | } /* end of yylex */
  4896. |
  4897. | /* yy_get_next_buffer - try to read in a new buffer
  4898. | *
  4899. | * Returns a code representing an action:
  4900. | * EOB_ACT_LAST_MATCH -
  4901. | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  4902. | * EOB_ACT_END_OF_FILE - end of file
  4903. | */
  4904. | static int yy_get_next_buffer (void)
  4905. | {
  4906. | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  4907. | register char *source = (yytext_ptr);
  4908. | register int number_to_move, i;
  4909. | int ret_val;
  4910. |
  4911. | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  4912. | YY_FATAL_ERROR(
  4913. | "fatal flex scanner internal error--end of buffer missed" );
  4914. |
  4915. | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  4916. | { /* Don't try to fill the buffer, so this is an EOF. */
  4917. | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  4918. | {
  4919. | /* We matched a single character, the EOB, so
  4920. | * treat this as a final EOF.
  4921. | */
  4922. | return EOB_ACT_END_OF_FILE;
  4923. | }
  4924. |
  4925. | else
  4926. | {
  4927. | /* We matched some text prior to the EOB, first
  4928. | * process it.
  4929. | */
  4930. | return EOB_ACT_LAST_MATCH;
  4931. | }
  4932. | }
  4933. |
  4934. | /* Try to read more data. */
  4935. |
  4936. | /* First move last chars to start of buffer. */
  4937. | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
  4938. |
  4939. | for ( i = 0; i < number_to_move; ++i )
  4940. | *(dest++) = *(source++);
  4941. |
  4942. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  4943. | /* don't do the read, it's not guaranteed to return an EOF,
  4944. | * just force an EOF
  4945. | */
  4946. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  4947. |
  4948. | else
  4949. | {
  4950. | yy_size_t num_to_read =
  4951. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  4952. |
  4953. | while ( num_to_read <= 0 )
  4954. | { /* Not enough room in the buffer - grow it. */
  4955. |
  4956. | YY_FATAL_ERROR(
  4957. | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  4958. |
  4959. | }
  4960. |
  4961. | if ( num_to_read > YY_READ_BUF_SIZE )
  4962. | num_to_read = YY_READ_BUF_SIZE;
  4963. |
  4964. | /* Read in more data. */
  4965. | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  4966. | (yy_n_chars), num_to_read );
  4967. |
  4968. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  4969. | }
  4970. |
  4971. | if ( (yy_n_chars) == 0 )
  4972. | {
  4973. | if ( number_to_move == YY_MORE_ADJ )
  4974. | {
  4975. | ret_val = EOB_ACT_END_OF_FILE;
  4976. | yyrestart(yyin );
  4977. | }
  4978. |
  4979. | else
  4980. | {
  4981. | ret_val = EOB_ACT_LAST_MATCH;
  4982. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  4983. | YY_BUFFER_EOF_PENDING;
  4984. | }
  4985. | }
  4986. |
  4987. | else
  4988. | ret_val = EOB_ACT_CONTINUE_SCAN;
  4989. |
  4990. | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  4991. | /* Extend the array by 50%, plus the number we really need. */
  4992. | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  4993. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
  4994. | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  4995. | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  4996. | }
  4997. |
  4998. | (yy_n_chars) += number_to_move;
  4999. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  5000. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  5001. |
  5002. | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  5003. |
  5004. | return ret_val;
  5005. | }
  5006. |
  5007. | /* yy_get_previous_state - get the state just before the EOB char was reached */
  5008. |
  5009. | static yy_state_type yy_get_previous_state (void)
  5010. | {
  5011. | register yy_state_type yy_current_state;
  5012. | register char *yy_cp;
  5013. |
  5014. | yy_current_state = (yy_start);
  5015. |
  5016. | (yy_state_ptr) = (yy_state_buf);
  5017. | *(yy_state_ptr)++ = yy_current_state;
  5018. |
  5019. | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  5020. | {
  5021. | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  5022. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  5023. | {
  5024. | yy_current_state = (int) yy_def[yy_current_state];
  5025. | if ( yy_current_state >= 13 )
  5026. | yy_c = yy_meta[(unsigned int) yy_c];
  5027. | }
  5028. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  5029. | *(yy_state_ptr)++ = yy_current_state;
  5030. | }
  5031. |
  5032. | return yy_current_state;
  5033. | }
  5034. |
  5035. | /* yy_try_NUL_trans - try to make a transition on the NUL character
  5036. | *
  5037. | * synopsis
  5038. | * next_state = yy_try_NUL_trans( current_state );
  5039. | */
  5040. | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  5041. | {
  5042. | register int yy_is_jam;
  5043. |
  5044. | register YY_CHAR yy_c = 1;
  5045. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  5046. | {
  5047. | yy_current_state = (int) yy_def[yy_current_state];
  5048. | if ( yy_current_state >= 13 )
  5049. | yy_c = yy_meta[(unsigned int) yy_c];
  5050. | }
  5051. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  5052. | yy_is_jam = (yy_current_state == 12);
  5053. | if ( ! yy_is_jam )
  5054. | *(yy_state_ptr)++ = yy_current_state;
  5055. |
  5056. | return yy_is_jam ? 0 : yy_current_state;
  5057. | }
  5058. |
  5059. | static void yyunput (int c, register char * yy_bp )
  5060. | {
  5061. | register char *yy_cp;
  5062. |
  5063. | yy_cp = (yy_c_buf_p);
  5064. |
  5065. | /* undo effects of setting up yytext */
  5066. | *yy_cp = (yy_hold_char);
  5067. |
  5068. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  5069. | { /* need to shift things up to make room */
  5070. | /* +2 for EOB chars. */
  5071. | register yy_size_t number_to_move = (yy_n_chars) + 2;
  5072. | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  5073. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  5074. | register char *source =
  5075. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  5076. |
  5077. | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  5078. | *--dest = *--source;
  5079. |
  5080. | yy_cp += (int) (dest - source);
  5081. | yy_bp += (int) (dest - source);
  5082. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  5083. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  5084. |
  5085. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  5086. | YY_FATAL_ERROR( "flex scanner push-back overflow" );
  5087. | }
  5088. |
  5089. | *--yy_cp = (char) c;
  5090. |
  5091. | (yytext_ptr) = yy_bp;
  5092. | (yy_hold_char) = *yy_cp;
  5093. | (yy_c_buf_p) = yy_cp;
  5094. | }
  5095. |
  5096. | #ifndef YY_NO_INPUT
  5097. | #ifdef __cplusplus
  5098. | static int yyinput (void)
  5099. | #else
  5100. | static int input (void)
  5101. | #endif
  5102. |
  5103. | {
  5104. | int c;
  5105. |
  5106. | *(yy_c_buf_p) = (yy_hold_char);
  5107. |
  5108. | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  5109. | {
  5110. | /* yy_c_buf_p now points to the character we want to return.
  5111. | * If this occurs *before* the EOB characters, then it's a
  5112. | * valid NUL; if not, then we've hit the end of the buffer.
  5113. | */
  5114. | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  5115. | /* This was really a NUL. */
  5116. | *(yy_c_buf_p) = '\0';
  5117. |
  5118. | else
  5119. | { /* need more input */
  5120. | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
  5121. | ++(yy_c_buf_p);
  5122. |
  5123. | switch ( yy_get_next_buffer( ) )
  5124. | {
  5125. | case EOB_ACT_LAST_MATCH:
  5126. | /* This happens because yy_g_n_b()
  5127. | * sees that we've accumulated a
  5128. | * token and flags that we need to
  5129. | * try matching the token before
  5130. | * proceeding. But for input(),
  5131. | * there's no matching to consider.
  5132. | * So convert the EOB_ACT_LAST_MATCH
  5133. | * to EOB_ACT_END_OF_FILE.
  5134. | */
  5135. |
  5136. | /* Reset buffer status. */
  5137. | yyrestart(yyin );
  5138. |
  5139. | /*FALLTHROUGH*/
  5140. |
  5141. | case EOB_ACT_END_OF_FILE:
  5142. | {
  5143. | if ( yywrap( ) )
  5144. | return EOF;
  5145. |
  5146. | if ( ! (yy_did_buffer_switch_on_eof) )
  5147. | YY_NEW_FILE;
  5148. | #ifdef __cplusplus
  5149. | return yyinput();
  5150. | #else
  5151. | return input();
  5152. | #endif
  5153. | }
  5154. |
  5155. | case EOB_ACT_CONTINUE_SCAN:
  5156. | (yy_c_buf_p) = (yytext_ptr) + offset;
  5157. | break;
  5158. | }
  5159. | }
  5160. | }
  5161. |
  5162. | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  5163. | *(yy_c_buf_p) = '\0'; /* preserve yytext */
  5164. | (yy_hold_char) = *++(yy_c_buf_p);
  5165. |
  5166. | return c;
  5167. | }
  5168. | #endif /* ifndef YY_NO_INPUT */
  5169. |
  5170. | /** Immediately switch to a different input stream.
  5171. | * @param input_file A readable stream.
  5172. | *
  5173. | * @note This function does not reset the start condition to @c INITIAL .
  5174. | */
  5175. | void yyrestart (FILE * input_file )
  5176. | {
  5177. |
  5178. | if ( ! YY_CURRENT_BUFFER ){
  5179. | yyensure_buffer_stack ();
  5180. | YY_CURRENT_BUFFER_LVALUE =
  5181. | yy_create_buffer(yyin,YY_BUF_SIZE );
  5182. | }
  5183. |
  5184. | yy_init_buffer(YY_CURRENT_BUFFER,input_file );
  5185. | yy_load_buffer_state( );
  5186. | }
  5187. |
  5188. | /** Switch to a different input buffer.
  5189. | * @param new_buffer The new input buffer.
  5190. | *
  5191. | */
  5192. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  5193. | {
  5194. |
  5195. | /* TODO. We should be able to replace this entire function body
  5196. | * with
  5197. | * yypop_buffer_state();
  5198. | * yypush_buffer_state(new_buffer);
  5199. | */
  5200. | yyensure_buffer_stack ();
  5201. | if ( YY_CURRENT_BUFFER == new_buffer )
  5202. | return;
  5203. |
  5204. | if ( YY_CURRENT_BUFFER )
  5205. | {
  5206. | /* Flush out information for old buffer. */
  5207. | *(yy_c_buf_p) = (yy_hold_char);
  5208. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  5209. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  5210. | }
  5211. |
  5212. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  5213. | yy_load_buffer_state( );
  5214. |
  5215. | /* We don't actually know whether we did this switch during
  5216. | * EOF (yywrap()) processing, but the only time this flag
  5217. | * is looked at is after yywrap() is called, so it's safe
  5218. | * to go ahead and always set it.
  5219. | */
  5220. | (yy_did_buffer_switch_on_eof) = 1;
  5221. | }
  5222. |
  5223. | static void yy_load_buffer_state (void)
  5224. | {
  5225. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  5226. | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  5227. | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  5228. | (yy_hold_char) = *(yy_c_buf_p);
  5229. | }
  5230. |
  5231. | /** Allocate and initialize an input buffer state.
  5232. | * @param file A readable stream.
  5233. | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  5234. | *
  5235. | * @return the allocated buffer state.
  5236. | */
  5237. | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  5238. | {
  5239. | YY_BUFFER_STATE b;
  5240. |
  5241. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  5242. | if ( ! b )
  5243. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  5244. |
  5245. | b->yy_buf_size = size;
  5246. |
  5247. | /* yy_ch_buf has to be 2 characters longer than the size given because
  5248. | * we need to put in 2 end-of-buffer characters.
  5249. | */
  5250. | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
  5251. | if ( ! b->yy_ch_buf )
  5252. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  5253. |
  5254. | b->yy_is_our_buffer = 1;
  5255. |
  5256. | yy_init_buffer(b,file );
  5257. |
  5258. | return b;
  5259. | }
  5260. |
  5261. | /** Destroy the buffer.
  5262. | * @param b a buffer created with yy_create_buffer()
  5263. | *
  5264. | */
  5265. | void yy_delete_buffer (YY_BUFFER_STATE b )
  5266. | {
  5267. |
  5268. | if ( ! b )
  5269. | return;
  5270. |
  5271. | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  5272. | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  5273. |
  5274. | if ( b->yy_is_our_buffer )
  5275. | yyfree((void *) b->yy_ch_buf );
  5276. |
  5277. | yyfree((void *) b );
  5278. | }
  5279. |
  5280. | /* Initializes or reinitializes a buffer.
  5281. | * This function is sometimes called more than once on the same buffer,
  5282. | * such as during a yyrestart() or at EOF.
  5283. | */
  5284. | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  5285. |
  5286. | {
  5287. | int oerrno = errno;
  5288. |
  5289. | yy_flush_buffer(b );
  5290. |
  5291. | b->yy_input_file = file;
  5292. | b->yy_fill_buffer = 1;
  5293. |
  5294. | /* If b is the current buffer, then yy_init_buffer was _probably_
  5295. | * called from yyrestart() or through yy_get_next_buffer.
  5296. | * In that case, we don't want to reset the lineno or column.
  5297. | */
  5298. | if (b != YY_CURRENT_BUFFER){
  5299. | b->yy_bs_lineno = 1;
  5300. | b->yy_bs_column = 0;
  5301. | }
  5302. |
  5303. | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  5304. |
  5305. | errno = oerrno;
  5306. | }
  5307. |
  5308. | /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  5309. | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  5310. | *
  5311. | */
  5312. | void yy_flush_buffer (YY_BUFFER_STATE b )
  5313. | {
  5314. | if ( ! b )
  5315. | return;
  5316. |
  5317. | b->yy_n_chars = 0;
  5318. |
  5319. | /* We always need two end-of-buffer characters. The first causes
  5320. | * a transition to the end-of-buffer state. The second causes
  5321. | * a jam in that state.
  5322. | */
  5323. | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  5324. | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  5325. |
  5326. | b->yy_buf_pos = &b->yy_ch_buf[0];
  5327. |
  5328. | b->yy_at_bol = 1;
  5329. | b->yy_buffer_status = YY_BUFFER_NEW;
  5330. |
  5331. | if ( b == YY_CURRENT_BUFFER )
  5332. | yy_load_buffer_state( );
  5333. | }
  5334. |
  5335. | /** Pushes the new state onto the stack. The new state becomes
  5336. | * the current state. This function will allocate the stack
  5337. | * if necessary.
  5338. | * @param new_buffer The new state.
  5339. | *
  5340. | */
  5341. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  5342. | {
  5343. | if (new_buffer == NULL)
  5344. | return;
  5345. |
  5346. | yyensure_buffer_stack();
  5347. |
  5348. | /* This block is copied from yy_switch_to_buffer. */
  5349. | if ( YY_CURRENT_BUFFER )
  5350. | {
  5351. | /* Flush out information for old buffer. */
  5352. | *(yy_c_buf_p) = (yy_hold_char);
  5353. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  5354. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  5355. | }
  5356. |
  5357. | /* Only push if top exists. Otherwise, replace top. */
  5358. | if (YY_CURRENT_BUFFER)
  5359. | (yy_buffer_stack_top)++;
  5360. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  5361. |
  5362. | /* copied from yy_switch_to_buffer. */
  5363. | yy_load_buffer_state( );
  5364. | (yy_did_buffer_switch_on_eof) = 1;
  5365. | }
  5366. |
  5367. | /** Removes and deletes the top of the stack, if present.
  5368. | * The next element becomes the new top.
  5369. | *
  5370. | */
  5371. | void yypop_buffer_state (void)
  5372. | {
  5373. | if (!YY_CURRENT_BUFFER)
  5374. | return;
  5375. |
  5376. | yy_delete_buffer(YY_CURRENT_BUFFER );
  5377. | YY_CURRENT_BUFFER_LVALUE = NULL;
  5378. | if ((yy_buffer_stack_top) > 0)
  5379. | --(yy_buffer_stack_top);
  5380. |
  5381. | if (YY_CURRENT_BUFFER) {
  5382. | yy_load_buffer_state( );
  5383. | (yy_did_buffer_switch_on_eof) = 1;
  5384. | }
  5385. | }
  5386. |
  5387. | /* Allocates the stack if it does not exist.
  5388. | * Guarantees space for at least one push.
  5389. | */
  5390. | static void yyensure_buffer_stack (void)
  5391. | {
  5392. | yy_size_t num_to_alloc;
  5393. |
  5394. | if (!(yy_buffer_stack)) {
  5395. |
  5396. | /* First allocation is just for 2 elements, since we don't know if this
  5397. | * scanner will even need a stack. We use 2 instead of 1 to avoid an
  5398. | * immediate realloc on the next call.
  5399. | */
  5400. | num_to_alloc = 1;
  5401. | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  5402. | (num_to_alloc * sizeof(struct yy_buffer_state*)
  5403. | );
  5404. | if ( ! (yy_buffer_stack) )
  5405. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  5406. |
  5407. | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  5408. |
  5409. | (yy_buffer_stack_max) = num_to_alloc;
  5410. | (yy_buffer_stack_top) = 0;
  5411. | return;
  5412. | }
  5413. |
  5414. | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  5415. |
  5416. | /* Increase the buffer to prepare for a possible push. */
  5417. | int grow_size = 8 /* arbitrary grow size */;
  5418. |
  5419. | num_to_alloc = (yy_buffer_stack_max) + grow_size;
  5420. | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  5421. | ((yy_buffer_stack),
  5422. | num_to_alloc * sizeof(struct yy_buffer_state*)
  5423. | );
  5424. | if ( ! (yy_buffer_stack) )
  5425. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  5426. |
  5427. | /* zero only the new slots.*/
  5428. | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  5429. | (yy_buffer_stack_max) = num_to_alloc;
  5430. | }
  5431. | }
  5432. |
  5433. | /** Setup the input buffer state to scan directly from a user-specified character buffer.
  5434. | * @param base the character buffer
  5435. | * @param size the size in bytes of the character buffer
  5436. | *
  5437. | * @return the newly allocated buffer state object.
  5438. | */
  5439. | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  5440. | {
  5441. | YY_BUFFER_STATE b;
  5442. |
  5443. | if ( size < 2 ||
  5444. | base[size-2] != YY_END_OF_BUFFER_CHAR ||
  5445. | base[size-1] != YY_END_OF_BUFFER_CHAR )
  5446. | /* They forgot to leave room for the EOB's. */
  5447. | return 0;
  5448. |
  5449. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  5450. | if ( ! b )
  5451. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  5452. |
  5453. | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  5454. | b->yy_buf_pos = b->yy_ch_buf = base;
  5455. | b->yy_is_our_buffer = 0;
  5456. | b->yy_input_file = 0;
  5457. | b->yy_n_chars = b->yy_buf_size;
  5458. | b->yy_is_interactive = 0;
  5459. | b->yy_at_bol = 1;
  5460. | b->yy_fill_buffer = 0;
  5461. | b->yy_buffer_status = YY_BUFFER_NEW;
  5462. |
  5463. | yy_switch_to_buffer(b );
  5464. |
  5465. | return b;
  5466. | }
  5467. |
  5468. | /** Setup the input buffer state to scan a string. The next call to yylex() will
  5469. | * scan from a @e copy of @a str.
  5470. | * @param yystr a NUL-terminated string to scan
  5471. | *
  5472. | * @return the newly allocated buffer state object.
  5473. | * @note If you want to scan bytes that may contain NUL values, then use
  5474. | * yy_scan_bytes() instead.
  5475. | */
  5476. | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
  5477. | {
  5478. |
  5479. | return yy_scan_bytes(yystr,strlen(yystr) );
  5480. | }
  5481. |
  5482. | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  5483. | * scan from a @e copy of @a bytes.
  5484. | * @param yybytes the byte buffer to scan
  5485. | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  5486. | *
  5487. | * @return the newly allocated buffer state object.
  5488. | */
  5489. | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
  5490. | {
  5491. | YY_BUFFER_STATE b;
  5492. | char *buf;
  5493. | yy_size_t n;
  5494. | int i;
  5495. |
  5496. | /* Get memory for full buffer, including space for trailing EOB's. */
  5497. | n = _yybytes_len + 2;
  5498. | buf = (char *) yyalloc(n );
  5499. | if ( ! buf )
  5500. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  5501. |
  5502. | for ( i = 0; i < _yybytes_len; ++i )
  5503. | buf[i] = yybytes[i];
  5504. |
  5505. | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  5506. |
  5507. | b = yy_scan_buffer(buf,n );
  5508. | if ( ! b )
  5509. | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  5510. |
  5511. | /* It's okay to grow etc. this buffer, and we should throw it
  5512. | * away when we're done.
  5513. | */
  5514. | b->yy_is_our_buffer = 1;
  5515. |
  5516. | return b;
  5517. | }
  5518. |
  5519. | #ifndef YY_EXIT_FAILURE
  5520. | #define YY_EXIT_FAILURE 2
  5521. | #endif
  5522. |
  5523. | static void yy_fatal_error (yyconst char* msg )
  5524. | {
  5525. | (void) fprintf( stderr, "%s\n", msg );
  5526. | exit( YY_EXIT_FAILURE );
  5527. | }
  5528. |
  5529. | /* Redefine yyless() so it works in section 3 code. */
  5530. |
  5531. | #undef yyless
  5532. | #define yyless(n) \
  5533. | do \
  5534. | { \
  5535. | /* Undo effects of setting up yytext. */ \
  5536. | int yyless_macro_arg = (n); \
  5537. | YY_LESS_LINENO(yyless_macro_arg);\
  5538. | yytext[yyleng] = (yy_hold_char); \
  5539. | (yy_c_buf_p) = yytext + yyless_macro_arg; \
  5540. | (yy_hold_char) = *(yy_c_buf_p); \
  5541. | *(yy_c_buf_p) = '\0'; \
  5542. | yyleng = yyless_macro_arg; \
  5543. | } \
  5544. | while ( 0 )
  5545. |
  5546. | /* Accessor methods (get/set functions) to struct members. */
  5547. |
  5548. | /** Get the current line number.
  5549. | *
  5550. | */
  5551. | int yyget_lineno (void)
  5552. | {
  5553. |
  5554. | return yylineno;
  5555. | }
  5556. |
  5557. | /** Get the input stream.
  5558. | *
  5559. | */
  5560. | FILE *yyget_in (void)
  5561. | {
  5562. | return yyin;
  5563. | }
  5564. |
  5565. | /** Get the output stream.
  5566. | *
  5567. | */
  5568. | FILE *yyget_out (void)
  5569. | {
  5570. | return yyout;
  5571. | }
  5572. |
  5573. | /** Get the length of the current token.
  5574. | *
  5575. | */
  5576. | yy_size_t yyget_leng (void)
  5577. | {
  5578. | return yyleng;
  5579. | }
  5580. |
  5581. | /** Get the current token.
  5582. | *
  5583. | */
  5584. |
  5585. | char *yyget_text (void)
  5586. | {
  5587. | return yytext;
  5588. | }
  5589. |
  5590. | /** Set the current line number.
  5591. | * @param line_number
  5592. | *
  5593. | */
  5594. | void yyset_lineno (int line_number )
  5595. | {
  5596. |
  5597. | yylineno = line_number;
  5598. | }
  5599. |
  5600. | /** Set the input stream. This does not discard the current
  5601. | * input buffer.
  5602. | * @param in_str A readable stream.
  5603. | *
  5604. | * @see yy_switch_to_buffer
  5605. | */
  5606. | void yyset_in (FILE * in_str )
  5607. | {
  5608. | yyin = in_str ;
  5609. | }
  5610. |
  5611. | void yyset_out (FILE * out_str )
  5612. | {
  5613. | yyout = out_str ;
  5614. | }
  5615. |
  5616. | int yyget_debug (void)
  5617. | {
  5618. | return yy_flex_debug;
  5619. | }
  5620. |
  5621. | void yyset_debug (int bdebug )
  5622. | {
  5623. | yy_flex_debug = bdebug ;
  5624. | }
  5625. |
  5626. | static int yy_init_globals (void)
  5627. | {
  5628. | /* Initialization is the same as for the non-reentrant scanner.
  5629. | * This function is called from yylex_destroy(), so don't allocate here.
  5630. | */
  5631. |
  5632. | (yy_buffer_stack) = 0;
  5633. | (yy_buffer_stack_top) = 0;
  5634. | (yy_buffer_stack_max) = 0;
  5635. | (yy_c_buf_p) = (char *) 0;
  5636. | (yy_init) = 0;
  5637. | (yy_start) = 0;
  5638. |
  5639. | (yy_state_buf) = 0;
  5640. | (yy_state_ptr) = 0;
  5641. | (yy_full_match) = 0;
  5642. | (yy_lp) = 0;
  5643. |
  5644. | /* Defined in main.c */
  5645. | #ifdef YY_STDINIT
  5646. | yyin = stdin;
  5647. | yyout = stdout;
  5648. | #else
  5649. | yyin = (FILE *) 0;
  5650. | yyout = (FILE *) 0;
  5651. | #endif
  5652. |
  5653. | /* For future reference: Set errno on error, since we are called by
  5654. | * yylex_init()
  5655. | */
  5656. | return 0;
  5657. | }
  5658. |
  5659. | /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  5660. | int yylex_destroy (void)
  5661. | {
  5662. |
  5663. | /* Pop the buffer stack, destroying each element. */
  5664. | while(YY_CURRENT_BUFFER){
  5665. | yy_delete_buffer(YY_CURRENT_BUFFER );
  5666. | YY_CURRENT_BUFFER_LVALUE = NULL;
  5667. | yypop_buffer_state();
  5668. | }
  5669. |
  5670. | /* Destroy the stack itself. */
  5671. | yyfree((yy_buffer_stack) );
  5672. | (yy_buffer_stack) = NULL;
  5673. |
  5674. | yyfree ( (yy_state_buf) );
  5675. | (yy_state_buf) = NULL;
  5676. |
  5677. | /* Reset the globals. This is important in a non-reentrant scanner so the next time
  5678. | * yylex() is called, initialization will occur. */
  5679. | yy_init_globals( );
  5680. |
  5681. | return 0;
  5682. | }
  5683. |
  5684. | /*
  5685. | * Internal utility routines.
  5686. | */
  5687. |
  5688. | #ifndef yytext_ptr
  5689. | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
  5690. | {
  5691. | register int i;
  5692. | for ( i = 0; i < n; ++i )
  5693. | s1[i] = s2[i];
  5694. | }
  5695. | #endif
  5696. |
  5697. | #ifdef YY_NEED_STRLEN
  5698. | static int yy_flex_strlen (yyconst char * s )
  5699. | {
  5700. | register int n;
  5701. | for ( n = 0; s[n]; ++n )
  5702. | ;
  5703. |
  5704. | return n;
  5705. | }
  5706. | #endif
  5707. |
  5708. | void *yyalloc (yy_size_t size )
  5709. | {
  5710. | return (void *) malloc( size );
  5711. | }
  5712. |
  5713. | void *yyrealloc (void * ptr, yy_size_t size )
  5714. | {
  5715. | /* The cast to (char *) in the following accommodates both
  5716. | * implementations that use char* generic pointers, and those
  5717. | * that use void* generic pointers. It works with the latter
  5718. | * because both ANSI C and C++ allow castless assignment from
  5719. | * any pointer type to void*, and deal with argument conversions
  5720. | * as though doing an assignment.
  5721. | */
  5722. | return (void *) realloc( (char *) ptr, size );
  5723. | }
  5724. |
  5725. | void yyfree (void * ptr )
  5726. | {
  5727. | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  5728. | }
  5729. |
  5730. | #define YYTABLES_NAME "yytables"
  5731. |
  5732. | #line 10 "conftest.l"
  5733. |
  5734. |
  5735. | #ifdef YYTEXT_POINTER
  5736. | extern char *yytext;
  5737. | #endif
  5738. | int
  5739. | main (void)
  5740. | {
  5741. | return ! yylex () + ! yywrap ();
  5742. | }
  5743. configure:11670: result: none needed
  5744. configure:11676: checking whether yytext is a pointer
  5745. configure:11693: gcc -o conftest -g -O2 conftest.c >&5
  5746. /tmp/cc4cFgk8.o: In function `input':
  5747. /root/ipsec-tools-0.8.1/lex.yy.c:1170: undefined reference to `yywrap'
  5748. /tmp/cc4cFgk8.o: In function `yylex':
  5749. /root/ipsec-tools-0.8.1/lex.yy.c:869: undefined reference to `yywrap'
  5750. /tmp/cc4cFgk8.o: In function `main':
  5751. /root/ipsec-tools-0.8.1/conftest.l:18: undefined reference to `yywrap'
  5752. collect2: error: ld returned 1 exit status
  5753. configure:11693: $? = 1
  5754. configure: failed program was:
  5755. | /* confdefs.h */
  5756. | #define PACKAGE_NAME "ipsec-tools"
  5757. | #define PACKAGE_TARNAME "ipsec-tools"
  5758. | #define PACKAGE_VERSION "0.8.1"
  5759. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  5760. | #define PACKAGE_BUGREPORT ""
  5761. | #define PACKAGE_URL ""
  5762. | #define PACKAGE "ipsec-tools"
  5763. | #define VERSION "0.8.1"
  5764. | #define STDC_HEADERS 1
  5765. | #define HAVE_SYS_TYPES_H 1
  5766. | #define HAVE_SYS_STAT_H 1
  5767. | #define HAVE_STDLIB_H 1
  5768. | #define HAVE_STRING_H 1
  5769. | #define HAVE_MEMORY_H 1
  5770. | #define HAVE_STRINGS_H 1
  5771. | #define HAVE_INTTYPES_H 1
  5772. | #define HAVE_STDINT_H 1
  5773. | #define HAVE_UNISTD_H 1
  5774. | #define HAVE_DLFCN_H 1
  5775. | #define LT_OBJDIR ".libs/"
  5776. | /* end confdefs.h. */
  5777. |
  5778. | #define YYTEXT_POINTER 1
  5779. |
  5780. | #line 3 "lex.yy.c"
  5781. |
  5782. | #define YY_INT_ALIGNED short int
  5783. |
  5784. | /* A lexical scanner generated by flex */
  5785. |
  5786. | #define FLEX_SCANNER
  5787. | #define YY_FLEX_MAJOR_VERSION 2
  5788. | #define YY_FLEX_MINOR_VERSION 5
  5789. | #define YY_FLEX_SUBMINOR_VERSION 37
  5790. | #if YY_FLEX_SUBMINOR_VERSION > 0
  5791. | #define FLEX_BETA
  5792. | #endif
  5793. |
  5794. | /* First, we deal with platform-specific or compiler-specific issues. */
  5795. |
  5796. | /* begin standard C headers. */
  5797. | #include <stdio.h>
  5798. | #include <string.h>
  5799. | #include <errno.h>
  5800. | #include <stdlib.h>
  5801. |
  5802. | /* end standard C headers. */
  5803. |
  5804. | /* flex integer type definitions */
  5805. |
  5806. | #ifndef FLEXINT_H
  5807. | #define FLEXINT_H
  5808. |
  5809. | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  5810. |
  5811. | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  5812. |
  5813. | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  5814. | * if you want the limit (max/min) macros for int types.
  5815. | */
  5816. | #ifndef __STDC_LIMIT_MACROS
  5817. | #define __STDC_LIMIT_MACROS 1
  5818. | #endif
  5819. |
  5820. | #include <inttypes.h>
  5821. | typedef int8_t flex_int8_t;
  5822. | typedef uint8_t flex_uint8_t;
  5823. | typedef int16_t flex_int16_t;
  5824. | typedef uint16_t flex_uint16_t;
  5825. | typedef int32_t flex_int32_t;
  5826. | typedef uint32_t flex_uint32_t;
  5827. | #else
  5828. | typedef signed char flex_int8_t;
  5829. | typedef short int flex_int16_t;
  5830. | typedef int flex_int32_t;
  5831. | typedef unsigned char flex_uint8_t;
  5832. | typedef unsigned short int flex_uint16_t;
  5833. | typedef unsigned int flex_uint32_t;
  5834. |
  5835. | /* Limits of integral types. */
  5836. | #ifndef INT8_MIN
  5837. | #define INT8_MIN (-128)
  5838. | #endif
  5839. | #ifndef INT16_MIN
  5840. | #define INT16_MIN (-32767-1)
  5841. | #endif
  5842. | #ifndef INT32_MIN
  5843. | #define INT32_MIN (-2147483647-1)
  5844. | #endif
  5845. | #ifndef INT8_MAX
  5846. | #define INT8_MAX (127)
  5847. | #endif
  5848. | #ifndef INT16_MAX
  5849. | #define INT16_MAX (32767)
  5850. | #endif
  5851. | #ifndef INT32_MAX
  5852. | #define INT32_MAX (2147483647)
  5853. | #endif
  5854. | #ifndef UINT8_MAX
  5855. | #define UINT8_MAX (255U)
  5856. | #endif
  5857. | #ifndef UINT16_MAX
  5858. | #define UINT16_MAX (65535U)
  5859. | #endif
  5860. | #ifndef UINT32_MAX
  5861. | #define UINT32_MAX (4294967295U)
  5862. | #endif
  5863. |
  5864. | #endif /* ! C99 */
  5865. |
  5866. | #endif /* ! FLEXINT_H */
  5867. |
  5868. | #ifdef __cplusplus
  5869. |
  5870. | /* The "const" storage-class-modifier is valid. */
  5871. | #define YY_USE_CONST
  5872. |
  5873. | #else /* ! __cplusplus */
  5874. |
  5875. | /* C99 requires __STDC__ to be defined as 1. */
  5876. | #if defined (__STDC__)
  5877. |
  5878. | #define YY_USE_CONST
  5879. |
  5880. | #endif /* defined (__STDC__) */
  5881. | #endif /* ! __cplusplus */
  5882. |
  5883. | #ifdef YY_USE_CONST
  5884. | #define yyconst const
  5885. | #else
  5886. | #define yyconst
  5887. | #endif
  5888. |
  5889. | /* Returned upon end-of-file. */
  5890. | #define YY_NULL 0
  5891. |
  5892. | /* Promotes a possibly negative, possibly signed char to an unsigned
  5893. | * integer for use as an array index. If the signed char is negative,
  5894. | * we want to instead treat it as an 8-bit unsigned char, hence the
  5895. | * double cast.
  5896. | */
  5897. | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  5898. |
  5899. | /* Enter a start condition. This macro really ought to take a parameter,
  5900. | * but we do it the disgusting crufty way forced on us by the ()-less
  5901. | * definition of BEGIN.
  5902. | */
  5903. | #define BEGIN (yy_start) = 1 + 2 *
  5904. |
  5905. | /* Translate the current start state into a value that can be later handed
  5906. | * to BEGIN to return to the state. The YYSTATE alias is for lex
  5907. | * compatibility.
  5908. | */
  5909. | #define YY_START (((yy_start) - 1) / 2)
  5910. | #define YYSTATE YY_START
  5911. |
  5912. | /* Action number for EOF rule of a given start state. */
  5913. | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  5914. |
  5915. | /* Special action meaning "start processing a new file". */
  5916. | #define YY_NEW_FILE yyrestart(yyin )
  5917. |
  5918. | #define YY_END_OF_BUFFER_CHAR 0
  5919. |
  5920. | /* Size of default input buffer. */
  5921. | #ifndef YY_BUF_SIZE
  5922. | #define YY_BUF_SIZE 16384
  5923. | #endif
  5924. |
  5925. | /* The state buf must be large enough to hold one state per character in the main buffer.
  5926. | */
  5927. | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  5928. |
  5929. | #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  5930. | #define YY_TYPEDEF_YY_BUFFER_STATE
  5931. | typedef struct yy_buffer_state *YY_BUFFER_STATE;
  5932. | #endif
  5933. |
  5934. | #ifndef YY_TYPEDEF_YY_SIZE_T
  5935. | #define YY_TYPEDEF_YY_SIZE_T
  5936. | typedef size_t yy_size_t;
  5937. | #endif
  5938. |
  5939. | extern yy_size_t yyleng;
  5940. |
  5941. | extern FILE *yyin, *yyout;
  5942. |
  5943. | #define EOB_ACT_CONTINUE_SCAN 0
  5944. | #define EOB_ACT_END_OF_FILE 1
  5945. | #define EOB_ACT_LAST_MATCH 2
  5946. |
  5947. | #define YY_LESS_LINENO(n)
  5948. |
  5949. | /* Return all but the first "n" matched characters back to the input stream. */
  5950. | #define yyless(n) \
  5951. | do \
  5952. | { \
  5953. | /* Undo effects of setting up yytext. */ \
  5954. | int yyless_macro_arg = (n); \
  5955. | YY_LESS_LINENO(yyless_macro_arg);\
  5956. | *yy_cp = (yy_hold_char); \
  5957. | YY_RESTORE_YY_MORE_OFFSET \
  5958. | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  5959. | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  5960. | } \
  5961. | while ( 0 )
  5962. |
  5963. | #define unput(c) yyunput( c, (yytext_ptr) )
  5964. |
  5965. | #ifndef YY_STRUCT_YY_BUFFER_STATE
  5966. | #define YY_STRUCT_YY_BUFFER_STATE
  5967. | struct yy_buffer_state
  5968. | {
  5969. | FILE *yy_input_file;
  5970. |
  5971. | char *yy_ch_buf; /* input buffer */
  5972. | char *yy_buf_pos; /* current position in input buffer */
  5973. |
  5974. | /* Size of input buffer in bytes, not including room for EOB
  5975. | * characters.
  5976. | */
  5977. | yy_size_t yy_buf_size;
  5978. |
  5979. | /* Number of characters read into yy_ch_buf, not including EOB
  5980. | * characters.
  5981. | */
  5982. | yy_size_t yy_n_chars;
  5983. |
  5984. | /* Whether we "own" the buffer - i.e., we know we created it,
  5985. | * and can realloc() it to grow it, and should free() it to
  5986. | * delete it.
  5987. | */
  5988. | int yy_is_our_buffer;
  5989. |
  5990. | /* Whether this is an "interactive" input source; if so, and
  5991. | * if we're using stdio for input, then we want to use getc()
  5992. | * instead of fread(), to make sure we stop fetching input after
  5993. | * each newline.
  5994. | */
  5995. | int yy_is_interactive;
  5996. |
  5997. | /* Whether we're considered to be at the beginning of a line.
  5998. | * If so, '^' rules will be active on the next match, otherwise
  5999. | * not.
  6000. | */
  6001. | int yy_at_bol;
  6002. |
  6003. | int yy_bs_lineno; /**< The line count. */
  6004. | int yy_bs_column; /**< The column count. */
  6005. |
  6006. | /* Whether to try to fill the input buffer when we reach the
  6007. | * end of it.
  6008. | */
  6009. | int yy_fill_buffer;
  6010. |
  6011. | int yy_buffer_status;
  6012. |
  6013. | #define YY_BUFFER_NEW 0
  6014. | #define YY_BUFFER_NORMAL 1
  6015. | /* When an EOF's been seen but there's still some text to process
  6016. | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  6017. | * shouldn't try reading from the input source any more. We might
  6018. | * still have a bunch of tokens to match, though, because of
  6019. | * possible backing-up.
  6020. | *
  6021. | * When we actually see the EOF, we change the status to "new"
  6022. | * (via yyrestart()), so that the user can continue scanning by
  6023. | * just pointing yyin at a new input file.
  6024. | */
  6025. | #define YY_BUFFER_EOF_PENDING 2
  6026. |
  6027. | };
  6028. | #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  6029. |
  6030. | /* Stack of input buffers. */
  6031. | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  6032. | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  6033. | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
  6034. |
  6035. | /* We provide macros for accessing buffer states in case in the
  6036. | * future we want to put the buffer states in a more general
  6037. | * "scanner state".
  6038. | *
  6039. | * Returns the top of the stack, or NULL.
  6040. | */
  6041. | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  6042. | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  6043. | : NULL)
  6044. |
  6045. | /* Same as previous macro, but useful when we know that the buffer stack is not
  6046. | * NULL or when we need an lvalue. For internal use only.
  6047. | */
  6048. | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  6049. |
  6050. | /* yy_hold_char holds the character lost when yytext is formed. */
  6051. | static char yy_hold_char;
  6052. | static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
  6053. | yy_size_t yyleng;
  6054. |
  6055. | /* Points to current character in buffer. */
  6056. | static char *yy_c_buf_p = (char *) 0;
  6057. | static int yy_init = 0; /* whether we need to initialize */
  6058. | static int yy_start = 0; /* start state number */
  6059. |
  6060. | /* Flag which is used to allow yywrap()'s to do buffer switches
  6061. | * instead of setting up a fresh yyin. A bit of a hack ...
  6062. | */
  6063. | static int yy_did_buffer_switch_on_eof;
  6064. |
  6065. | void yyrestart (FILE *input_file );
  6066. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
  6067. | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
  6068. | void yy_delete_buffer (YY_BUFFER_STATE b );
  6069. | void yy_flush_buffer (YY_BUFFER_STATE b );
  6070. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
  6071. | void yypop_buffer_state (void );
  6072. |
  6073. | static void yyensure_buffer_stack (void );
  6074. | static void yy_load_buffer_state (void );
  6075. | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
  6076. |
  6077. | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
  6078. |
  6079. | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
  6080. | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
  6081. | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
  6082. |
  6083. | void *yyalloc (yy_size_t );
  6084. | void *yyrealloc (void *,yy_size_t );
  6085. | void yyfree (void * );
  6086. |
  6087. | #define yy_new_buffer yy_create_buffer
  6088. |
  6089. | #define yy_set_interactive(is_interactive) \
  6090. | { \
  6091. | if ( ! YY_CURRENT_BUFFER ){ \
  6092. | yyensure_buffer_stack (); \
  6093. | YY_CURRENT_BUFFER_LVALUE = \
  6094. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  6095. | } \
  6096. | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  6097. | }
  6098. |
  6099. | #define yy_set_bol(at_bol) \
  6100. | { \
  6101. | if ( ! YY_CURRENT_BUFFER ){\
  6102. | yyensure_buffer_stack (); \
  6103. | YY_CURRENT_BUFFER_LVALUE = \
  6104. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  6105. | } \
  6106. | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  6107. | }
  6108. |
  6109. | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  6110. |
  6111. | /* Begin user sect3 */
  6112. |
  6113. | typedef unsigned char YY_CHAR;
  6114. |
  6115. | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  6116. |
  6117. | typedef int yy_state_type;
  6118. |
  6119. | extern int yylineno;
  6120. |
  6121. | int yylineno = 1;
  6122. |
  6123. | extern char *yytext;
  6124. | #define yytext_ptr yytext
  6125. |
  6126. | static yy_state_type yy_get_previous_state (void );
  6127. | static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
  6128. | static int yy_get_next_buffer (void );
  6129. | static void yy_fatal_error (yyconst char msg[] );
  6130. |
  6131. | /* Done after the current pattern has been matched and before the
  6132. | * corresponding action - sets up yytext.
  6133. | */
  6134. | #define YY_DO_BEFORE_ACTION \
  6135. | (yytext_ptr) = yy_bp; \
  6136. | (yytext_ptr) -= (yy_more_len); \
  6137. | yyleng = (size_t) (yy_cp - (yytext_ptr)); \
  6138. | (yy_hold_char) = *yy_cp; \
  6139. | *yy_cp = '\0'; \
  6140. | (yy_c_buf_p) = yy_cp;
  6141. |
  6142. | #define YY_NUM_RULES 8
  6143. | #define YY_END_OF_BUFFER 9
  6144. | /* This struct is not used in this scanner,
  6145. | but its presence is necessary. */
  6146. | struct yy_trans_info
  6147. | {
  6148. | flex_int32_t yy_verify;
  6149. | flex_int32_t yy_nxt;
  6150. | };
  6151. | static yyconst flex_int16_t yy_acclist[23] =
  6152. | { 0,
  6153. | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
  6154. | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
  6155. | 7, 8
  6156. | } ;
  6157. |
  6158. | static yyconst flex_int16_t yy_accept[14] =
  6159. | { 0,
  6160. | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
  6161. | 20, 23, 23
  6162. | } ;
  6163. |
  6164. | static yyconst flex_int32_t yy_ec[256] =
  6165. | { 0,
  6166. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
  6167. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6168. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6169. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6170. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6171. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6172. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6173. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6174. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6175. | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
  6176. |
  6177. | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
  6178. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6179. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6180. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6181. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6182. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6183. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6184. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6185. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6186. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6187. |
  6188. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6189. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6190. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6191. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6192. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6193. | 1, 1, 1, 1, 1
  6194. | } ;
  6195. |
  6196. | static yyconst flex_int32_t yy_meta[9] =
  6197. | { 0,
  6198. | 1, 1, 1, 1, 1, 1, 1, 1
  6199. | } ;
  6200. |
  6201. | static yyconst flex_int16_t yy_base[13] =
  6202. | { 0,
  6203. | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
  6204. | 10, 10
  6205. | } ;
  6206. |
  6207. | static yyconst flex_int16_t yy_def[13] =
  6208. | { 0,
  6209. | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
  6210. | 12, 0
  6211. | } ;
  6212. |
  6213. | static yyconst flex_int16_t yy_nxt[19] =
  6214. | { 0,
  6215. | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
  6216. | 12, 12, 12, 12, 12, 12, 12, 12
  6217. | } ;
  6218. |
  6219. | static yyconst flex_int16_t yy_chk[19] =
  6220. | { 0,
  6221. | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
  6222. | 12, 12, 12, 12, 12, 12, 12, 12
  6223. | } ;
  6224. |
  6225. | extern int yy_flex_debug;
  6226. | int yy_flex_debug = 0;
  6227. |
  6228. | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
  6229. | static char *yy_full_match;
  6230. | static int yy_lp;
  6231. | #define REJECT \
  6232. | { \
  6233. | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
  6234. | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
  6235. | ++(yy_lp); \
  6236. | goto find_rule; \
  6237. | }
  6238. |
  6239. | static int yy_more_flag = 0;
  6240. | static int yy_more_len = 0;
  6241. | #define yymore() ((yy_more_flag) = 1)
  6242. | #define YY_MORE_ADJ (yy_more_len)
  6243. | #define YY_RESTORE_YY_MORE_OFFSET
  6244. | char *yytext;
  6245. | #line 1 "conftest.l"
  6246. | #line 469 "lex.yy.c"
  6247. |
  6248. | #define INITIAL 0
  6249. |
  6250. | #ifndef YY_NO_UNISTD_H
  6251. | /* Special case for "unistd.h", since it is non-ANSI. We include it way
  6252. | * down here because we want the user's section 1 to have been scanned first.
  6253. | * The user has a chance to override it with an option.
  6254. | */
  6255. | #include <unistd.h>
  6256. | #endif
  6257. |
  6258. | #ifndef YY_EXTRA_TYPE
  6259. | #define YY_EXTRA_TYPE void *
  6260. | #endif
  6261. |
  6262. | static int yy_init_globals (void );
  6263. |
  6264. | /* Accessor methods to globals.
  6265. | These are made visible to non-reentrant scanners for convenience. */
  6266. |
  6267. | int yylex_destroy (void );
  6268. |
  6269. | int yyget_debug (void );
  6270. |
  6271. | void yyset_debug (int debug_flag );
  6272. |
  6273. | YY_EXTRA_TYPE yyget_extra (void );
  6274. |
  6275. | void yyset_extra (YY_EXTRA_TYPE user_defined );
  6276. |
  6277. | FILE *yyget_in (void );
  6278. |
  6279. | void yyset_in (FILE * in_str );
  6280. |
  6281. | FILE *yyget_out (void );
  6282. |
  6283. | void yyset_out (FILE * out_str );
  6284. |
  6285. | yy_size_t yyget_leng (void );
  6286. |
  6287. | char *yyget_text (void );
  6288. |
  6289. | int yyget_lineno (void );
  6290. |
  6291. | void yyset_lineno (int line_number );
  6292. |
  6293. | /* Macros after this point can all be overridden by user definitions in
  6294. | * section 1.
  6295. | */
  6296. |
  6297. | #ifndef YY_SKIP_YYWRAP
  6298. | #ifdef __cplusplus
  6299. | extern "C" int yywrap (void );
  6300. | #else
  6301. | extern int yywrap (void );
  6302. | #endif
  6303. | #endif
  6304. |
  6305. | static void yyunput (int c,char *buf_ptr );
  6306. |
  6307. | #ifndef yytext_ptr
  6308. | static void yy_flex_strncpy (char *,yyconst char *,int );
  6309. | #endif
  6310. |
  6311. | #ifdef YY_NEED_STRLEN
  6312. | static int yy_flex_strlen (yyconst char * );
  6313. | #endif
  6314. |
  6315. | #ifndef YY_NO_INPUT
  6316. |
  6317. | #ifdef __cplusplus
  6318. | static int yyinput (void );
  6319. | #else
  6320. | static int input (void );
  6321. | #endif
  6322. |
  6323. | #endif
  6324. |
  6325. | /* Amount of stuff to slurp up with each read. */
  6326. | #ifndef YY_READ_BUF_SIZE
  6327. | #define YY_READ_BUF_SIZE 8192
  6328. | #endif
  6329. |
  6330. | /* Copy whatever the last rule matched to the standard output. */
  6331. | #ifndef ECHO
  6332. | /* This used to be an fputs(), but since the string might contain NUL's,
  6333. | * we now use fwrite().
  6334. | */
  6335. | #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
  6336. | #endif
  6337. |
  6338. | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  6339. | * is returned in "result".
  6340. | */
  6341. | #ifndef YY_INPUT
  6342. | #define YY_INPUT(buf,result,max_size) \
  6343. | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  6344. | { \
  6345. | int c = '*'; \
  6346. | size_t n; \
  6347. | for ( n = 0; n < max_size && \
  6348. | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  6349. | buf[n] = (char) c; \
  6350. | if ( c == '\n' ) \
  6351. | buf[n++] = (char) c; \
  6352. | if ( c == EOF && ferror( yyin ) ) \
  6353. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  6354. | result = n; \
  6355. | } \
  6356. | else \
  6357. | { \
  6358. | errno=0; \
  6359. | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  6360. | { \
  6361. | if( errno != EINTR) \
  6362. | { \
  6363. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  6364. | break; \
  6365. | } \
  6366. | errno=0; \
  6367. | clearerr(yyin); \
  6368. | } \
  6369. | }\
  6370. | \
  6371. |
  6372. | #endif
  6373. |
  6374. | /* No semi-colon after return; correct usage is to write "yyterminate();" -
  6375. | * we don't want an extra ';' after the "return" because that will cause
  6376. | * some compilers to complain about unreachable statements.
  6377. | */
  6378. | #ifndef yyterminate
  6379. | #define yyterminate() return YY_NULL
  6380. | #endif
  6381. |
  6382. | /* Number of entries by which start-condition stack grows. */
  6383. | #ifndef YY_START_STACK_INCR
  6384. | #define YY_START_STACK_INCR 25
  6385. | #endif
  6386. |
  6387. | /* Report a fatal error. */
  6388. | #ifndef YY_FATAL_ERROR
  6389. | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  6390. | #endif
  6391. |
  6392. | /* end tables serialization structures and prototypes */
  6393. |
  6394. | /* Default declaration of generated scanner - a define so the user can
  6395. | * easily add parameters.
  6396. | */
  6397. | #ifndef YY_DECL
  6398. | #define YY_DECL_IS_OURS 1
  6399. |
  6400. | extern int yylex (void);
  6401. |
  6402. | #define YY_DECL int yylex (void)
  6403. | #endif /* !YY_DECL */
  6404. |
  6405. | /* Code executed at the beginning of each rule, after yytext and yyleng
  6406. | * have been set up.
  6407. | */
  6408. | #ifndef YY_USER_ACTION
  6409. | #define YY_USER_ACTION
  6410. | #endif
  6411. |
  6412. | /* Code executed at the end of each rule. */
  6413. | #ifndef YY_BREAK
  6414. | #define YY_BREAK break;
  6415. | #endif
  6416. |
  6417. | #define YY_RULE_SETUP \
  6418. | YY_USER_ACTION
  6419. |
  6420. | /** The main scanner function which does all the work.
  6421. | */
  6422. | YY_DECL
  6423. | {
  6424. | register yy_state_type yy_current_state;
  6425. | register char *yy_cp, *yy_bp;
  6426. | register int yy_act;
  6427. |
  6428. | #line 1 "conftest.l"
  6429. |
  6430. | #line 653 "lex.yy.c"
  6431. |
  6432. | if ( !(yy_init) )
  6433. | {
  6434. | (yy_init) = 1;
  6435. |
  6436. | #ifdef YY_USER_INIT
  6437. | YY_USER_INIT;
  6438. | #endif
  6439. |
  6440. | /* Create the reject buffer large enough to save one state per allowed character. */
  6441. | if ( ! (yy_state_buf) )
  6442. | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
  6443. | if ( ! (yy_state_buf) )
  6444. | YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
  6445. |
  6446. | if ( ! (yy_start) )
  6447. | (yy_start) = 1; /* first start state */
  6448. |
  6449. | if ( ! yyin )
  6450. | yyin = stdin;
  6451. |
  6452. | if ( ! yyout )
  6453. | yyout = stdout;
  6454. |
  6455. | if ( ! YY_CURRENT_BUFFER ) {
  6456. | yyensure_buffer_stack ();
  6457. | YY_CURRENT_BUFFER_LVALUE =
  6458. | yy_create_buffer(yyin,YY_BUF_SIZE );
  6459. | }
  6460. |
  6461. | yy_load_buffer_state( );
  6462. | }
  6463. |
  6464. | while ( 1 ) /* loops until end-of-file is reached */
  6465. | {
  6466. | (yy_more_len) = 0;
  6467. | if ( (yy_more_flag) )
  6468. | {
  6469. | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr);
  6470. | (yy_more_flag) = 0;
  6471. | }
  6472. | yy_cp = (yy_c_buf_p);
  6473. |
  6474. | /* Support of yytext. */
  6475. | *yy_cp = (yy_hold_char);
  6476. |
  6477. | /* yy_bp points to the position in yy_ch_buf of the start of
  6478. | * the current run.
  6479. | */
  6480. | yy_bp = yy_cp;
  6481. |
  6482. | yy_current_state = (yy_start);
  6483. |
  6484. | (yy_state_ptr) = (yy_state_buf);
  6485. | *(yy_state_ptr)++ = yy_current_state;
  6486. |
  6487. | yy_match:
  6488. | do
  6489. | {
  6490. | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  6491. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  6492. | {
  6493. | yy_current_state = (int) yy_def[yy_current_state];
  6494. | if ( yy_current_state >= 13 )
  6495. | yy_c = yy_meta[(unsigned int) yy_c];
  6496. | }
  6497. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  6498. | *(yy_state_ptr)++ = yy_current_state;
  6499. | ++yy_cp;
  6500. | }
  6501. | while ( yy_base[yy_current_state] != 10 );
  6502. |
  6503. | yy_find_action:
  6504. | yy_current_state = *--(yy_state_ptr);
  6505. | (yy_lp) = yy_accept[yy_current_state];
  6506. | find_rule: /* we branch to this label when backing up */
  6507. | for ( ; ; ) /* until we find what rule we matched */
  6508. | {
  6509. | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
  6510. | {
  6511. | yy_act = yy_acclist[(yy_lp)];
  6512. | {
  6513. | (yy_full_match) = yy_cp;
  6514. | break;
  6515. | }
  6516. | }
  6517. | --yy_cp;
  6518. | yy_current_state = *--(yy_state_ptr);
  6519. | (yy_lp) = yy_accept[yy_current_state];
  6520. | }
  6521. |
  6522. | YY_DO_BEFORE_ACTION;
  6523. |
  6524. | do_action: /* This label is used only to access EOF actions. */
  6525. |
  6526. | switch ( yy_act )
  6527. | { /* beginning of action switch */
  6528. | case 1:
  6529. | YY_RULE_SETUP
  6530. | #line 2 "conftest.l"
  6531. | { ECHO; }
  6532. | YY_BREAK
  6533. | case 2:
  6534. | YY_RULE_SETUP
  6535. | #line 3 "conftest.l"
  6536. | { REJECT; }
  6537. | YY_BREAK
  6538. | case 3:
  6539. | YY_RULE_SETUP
  6540. | #line 4 "conftest.l"
  6541. | { yymore (); }
  6542. | YY_BREAK
  6543. | case 4:
  6544. | YY_RULE_SETUP
  6545. | #line 5 "conftest.l"
  6546. | { yyless (1); }
  6547. | YY_BREAK
  6548. | case 5:
  6549. | YY_RULE_SETUP
  6550. | #line 6 "conftest.l"
  6551. | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  6552. | yyless ((input () != 0)); }
  6553. | YY_BREAK
  6554. | case 6:
  6555. | YY_RULE_SETUP
  6556. | #line 8 "conftest.l"
  6557. | { unput (yytext[0]); }
  6558. | YY_BREAK
  6559. | case 7:
  6560. | YY_RULE_SETUP
  6561. | #line 9 "conftest.l"
  6562. | { BEGIN INITIAL; }
  6563. | YY_BREAK
  6564. | case 8:
  6565. | YY_RULE_SETUP
  6566. | #line 10 "conftest.l"
  6567. | ECHO;
  6568. | YY_BREAK
  6569. | #line 792 "lex.yy.c"
  6570. | case YY_STATE_EOF(INITIAL):
  6571. | yyterminate();
  6572. |
  6573. | case YY_END_OF_BUFFER:
  6574. | {
  6575. | /* Amount of text matched not including the EOB char. */
  6576. | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  6577. |
  6578. | /* Undo the effects of YY_DO_BEFORE_ACTION. */
  6579. | *yy_cp = (yy_hold_char);
  6580. | YY_RESTORE_YY_MORE_OFFSET
  6581. |
  6582. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  6583. | {
  6584. | /* We're scanning a new file or input source. It's
  6585. | * possible that this happened because the user
  6586. | * just pointed yyin at a new source and called
  6587. | * yylex(). If so, then we have to assure
  6588. | * consistency between YY_CURRENT_BUFFER and our
  6589. | * globals. Here is the right place to do so, because
  6590. | * this is the first action (other than possibly a
  6591. | * back-up) that will match for the new input source.
  6592. | */
  6593. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  6594. | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  6595. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  6596. | }
  6597. |
  6598. | /* Note that here we test for yy_c_buf_p "<=" to the position
  6599. | * of the first EOB in the buffer, since yy_c_buf_p will
  6600. | * already have been incremented past the NUL character
  6601. | * (since all states make transitions on EOB to the
  6602. | * end-of-buffer state). Contrast this with the test
  6603. | * in input().
  6604. | */
  6605. | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  6606. | { /* This was really a NUL. */
  6607. | yy_state_type yy_next_state;
  6608. |
  6609. | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  6610. |
  6611. | yy_current_state = yy_get_previous_state( );
  6612. |
  6613. | /* Okay, we're now positioned to make the NUL
  6614. | * transition. We couldn't have
  6615. | * yy_get_previous_state() go ahead and do it
  6616. | * for us because it doesn't know how to deal
  6617. | * with the possibility of jamming (and we don't
  6618. | * want to build jamming into it because then it
  6619. | * will run more slowly).
  6620. | */
  6621. |
  6622. | yy_next_state = yy_try_NUL_trans( yy_current_state );
  6623. |
  6624. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  6625. |
  6626. | if ( yy_next_state )
  6627. | {
  6628. | /* Consume the NUL. */
  6629. | yy_cp = ++(yy_c_buf_p);
  6630. | yy_current_state = yy_next_state;
  6631. | goto yy_match;
  6632. | }
  6633. |
  6634. | else
  6635. | {
  6636. | yy_cp = (yy_c_buf_p);
  6637. | goto yy_find_action;
  6638. | }
  6639. | }
  6640. |
  6641. | else switch ( yy_get_next_buffer( ) )
  6642. | {
  6643. | case EOB_ACT_END_OF_FILE:
  6644. | {
  6645. | (yy_did_buffer_switch_on_eof) = 0;
  6646. |
  6647. | if ( yywrap( ) )
  6648. | {
  6649. | /* Note: because we've taken care in
  6650. | * yy_get_next_buffer() to have set up
  6651. | * yytext, we can now set up
  6652. | * yy_c_buf_p so that if some total
  6653. | * hoser (like flex itself) wants to
  6654. | * call the scanner after we return the
  6655. | * YY_NULL, it'll still work - another
  6656. | * YY_NULL will get returned.
  6657. | */
  6658. | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  6659. |
  6660. | yy_act = YY_STATE_EOF(YY_START);
  6661. | goto do_action;
  6662. | }
  6663. |
  6664. | else
  6665. | {
  6666. | if ( ! (yy_did_buffer_switch_on_eof) )
  6667. | YY_NEW_FILE;
  6668. | }
  6669. | break;
  6670. | }
  6671. |
  6672. | case EOB_ACT_CONTINUE_SCAN:
  6673. | (yy_c_buf_p) =
  6674. | (yytext_ptr) + yy_amount_of_matched_text;
  6675. |
  6676. | yy_current_state = yy_get_previous_state( );
  6677. |
  6678. | yy_cp = (yy_c_buf_p);
  6679. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  6680. | goto yy_match;
  6681. |
  6682. | case EOB_ACT_LAST_MATCH:
  6683. | (yy_c_buf_p) =
  6684. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  6685. |
  6686. | yy_current_state = yy_get_previous_state( );
  6687. |
  6688. | yy_cp = (yy_c_buf_p);
  6689. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  6690. | goto yy_find_action;
  6691. | }
  6692. | break;
  6693. | }
  6694. |
  6695. | default:
  6696. | YY_FATAL_ERROR(
  6697. | "fatal flex scanner internal error--no action found" );
  6698. | } /* end of action switch */
  6699. | } /* end of scanning one token */
  6700. | } /* end of yylex */
  6701. |
  6702. | /* yy_get_next_buffer - try to read in a new buffer
  6703. | *
  6704. | * Returns a code representing an action:
  6705. | * EOB_ACT_LAST_MATCH -
  6706. | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  6707. | * EOB_ACT_END_OF_FILE - end of file
  6708. | */
  6709. | static int yy_get_next_buffer (void)
  6710. | {
  6711. | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  6712. | register char *source = (yytext_ptr);
  6713. | register int number_to_move, i;
  6714. | int ret_val;
  6715. |
  6716. | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  6717. | YY_FATAL_ERROR(
  6718. | "fatal flex scanner internal error--end of buffer missed" );
  6719. |
  6720. | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  6721. | { /* Don't try to fill the buffer, so this is an EOF. */
  6722. | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  6723. | {
  6724. | /* We matched a single character, the EOB, so
  6725. | * treat this as a final EOF.
  6726. | */
  6727. | return EOB_ACT_END_OF_FILE;
  6728. | }
  6729. |
  6730. | else
  6731. | {
  6732. | /* We matched some text prior to the EOB, first
  6733. | * process it.
  6734. | */
  6735. | return EOB_ACT_LAST_MATCH;
  6736. | }
  6737. | }
  6738. |
  6739. | /* Try to read more data. */
  6740. |
  6741. | /* First move last chars to start of buffer. */
  6742. | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
  6743. |
  6744. | for ( i = 0; i < number_to_move; ++i )
  6745. | *(dest++) = *(source++);
  6746. |
  6747. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  6748. | /* don't do the read, it's not guaranteed to return an EOF,
  6749. | * just force an EOF
  6750. | */
  6751. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  6752. |
  6753. | else
  6754. | {
  6755. | yy_size_t num_to_read =
  6756. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  6757. |
  6758. | while ( num_to_read <= 0 )
  6759. | { /* Not enough room in the buffer - grow it. */
  6760. |
  6761. | YY_FATAL_ERROR(
  6762. | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  6763. |
  6764. | }
  6765. |
  6766. | if ( num_to_read > YY_READ_BUF_SIZE )
  6767. | num_to_read = YY_READ_BUF_SIZE;
  6768. |
  6769. | /* Read in more data. */
  6770. | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  6771. | (yy_n_chars), num_to_read );
  6772. |
  6773. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  6774. | }
  6775. |
  6776. | if ( (yy_n_chars) == 0 )
  6777. | {
  6778. | if ( number_to_move == YY_MORE_ADJ )
  6779. | {
  6780. | ret_val = EOB_ACT_END_OF_FILE;
  6781. | yyrestart(yyin );
  6782. | }
  6783. |
  6784. | else
  6785. | {
  6786. | ret_val = EOB_ACT_LAST_MATCH;
  6787. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  6788. | YY_BUFFER_EOF_PENDING;
  6789. | }
  6790. | }
  6791. |
  6792. | else
  6793. | ret_val = EOB_ACT_CONTINUE_SCAN;
  6794. |
  6795. | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  6796. | /* Extend the array by 50%, plus the number we really need. */
  6797. | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  6798. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
  6799. | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  6800. | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  6801. | }
  6802. |
  6803. | (yy_n_chars) += number_to_move;
  6804. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  6805. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  6806. |
  6807. | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  6808. |
  6809. | return ret_val;
  6810. | }
  6811. |
  6812. | /* yy_get_previous_state - get the state just before the EOB char was reached */
  6813. |
  6814. | static yy_state_type yy_get_previous_state (void)
  6815. | {
  6816. | register yy_state_type yy_current_state;
  6817. | register char *yy_cp;
  6818. |
  6819. | yy_current_state = (yy_start);
  6820. |
  6821. | (yy_state_ptr) = (yy_state_buf);
  6822. | *(yy_state_ptr)++ = yy_current_state;
  6823. |
  6824. | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  6825. | {
  6826. | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  6827. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  6828. | {
  6829. | yy_current_state = (int) yy_def[yy_current_state];
  6830. | if ( yy_current_state >= 13 )
  6831. | yy_c = yy_meta[(unsigned int) yy_c];
  6832. | }
  6833. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  6834. | *(yy_state_ptr)++ = yy_current_state;
  6835. | }
  6836. |
  6837. | return yy_current_state;
  6838. | }
  6839. |
  6840. | /* yy_try_NUL_trans - try to make a transition on the NUL character
  6841. | *
  6842. | * synopsis
  6843. | * next_state = yy_try_NUL_trans( current_state );
  6844. | */
  6845. | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  6846. | {
  6847. | register int yy_is_jam;
  6848. |
  6849. | register YY_CHAR yy_c = 1;
  6850. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  6851. | {
  6852. | yy_current_state = (int) yy_def[yy_current_state];
  6853. | if ( yy_current_state >= 13 )
  6854. | yy_c = yy_meta[(unsigned int) yy_c];
  6855. | }
  6856. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  6857. | yy_is_jam = (yy_current_state == 12);
  6858. | if ( ! yy_is_jam )
  6859. | *(yy_state_ptr)++ = yy_current_state;
  6860. |
  6861. | return yy_is_jam ? 0 : yy_current_state;
  6862. | }
  6863. |
  6864. | static void yyunput (int c, register char * yy_bp )
  6865. | {
  6866. | register char *yy_cp;
  6867. |
  6868. | yy_cp = (yy_c_buf_p);
  6869. |
  6870. | /* undo effects of setting up yytext */
  6871. | *yy_cp = (yy_hold_char);
  6872. |
  6873. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  6874. | { /* need to shift things up to make room */
  6875. | /* +2 for EOB chars. */
  6876. | register yy_size_t number_to_move = (yy_n_chars) + 2;
  6877. | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  6878. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  6879. | register char *source =
  6880. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  6881. |
  6882. | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  6883. | *--dest = *--source;
  6884. |
  6885. | yy_cp += (int) (dest - source);
  6886. | yy_bp += (int) (dest - source);
  6887. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  6888. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  6889. |
  6890. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  6891. | YY_FATAL_ERROR( "flex scanner push-back overflow" );
  6892. | }
  6893. |
  6894. | *--yy_cp = (char) c;
  6895. |
  6896. | (yytext_ptr) = yy_bp;
  6897. | (yy_hold_char) = *yy_cp;
  6898. | (yy_c_buf_p) = yy_cp;
  6899. | }
  6900. |
  6901. | #ifndef YY_NO_INPUT
  6902. | #ifdef __cplusplus
  6903. | static int yyinput (void)
  6904. | #else
  6905. | static int input (void)
  6906. | #endif
  6907. |
  6908. | {
  6909. | int c;
  6910. |
  6911. | *(yy_c_buf_p) = (yy_hold_char);
  6912. |
  6913. | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  6914. | {
  6915. | /* yy_c_buf_p now points to the character we want to return.
  6916. | * If this occurs *before* the EOB characters, then it's a
  6917. | * valid NUL; if not, then we've hit the end of the buffer.
  6918. | */
  6919. | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  6920. | /* This was really a NUL. */
  6921. | *(yy_c_buf_p) = '\0';
  6922. |
  6923. | else
  6924. | { /* need more input */
  6925. | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
  6926. | ++(yy_c_buf_p);
  6927. |
  6928. | switch ( yy_get_next_buffer( ) )
  6929. | {
  6930. | case EOB_ACT_LAST_MATCH:
  6931. | /* This happens because yy_g_n_b()
  6932. | * sees that we've accumulated a
  6933. | * token and flags that we need to
  6934. | * try matching the token before
  6935. | * proceeding. But for input(),
  6936. | * there's no matching to consider.
  6937. | * So convert the EOB_ACT_LAST_MATCH
  6938. | * to EOB_ACT_END_OF_FILE.
  6939. | */
  6940. |
  6941. | /* Reset buffer status. */
  6942. | yyrestart(yyin );
  6943. |
  6944. | /*FALLTHROUGH*/
  6945. |
  6946. | case EOB_ACT_END_OF_FILE:
  6947. | {
  6948. | if ( yywrap( ) )
  6949. | return EOF;
  6950. |
  6951. | if ( ! (yy_did_buffer_switch_on_eof) )
  6952. | YY_NEW_FILE;
  6953. | #ifdef __cplusplus
  6954. | return yyinput();
  6955. | #else
  6956. | return input();
  6957. | #endif
  6958. | }
  6959. |
  6960. | case EOB_ACT_CONTINUE_SCAN:
  6961. | (yy_c_buf_p) = (yytext_ptr) + offset;
  6962. | break;
  6963. | }
  6964. | }
  6965. | }
  6966. |
  6967. | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  6968. | *(yy_c_buf_p) = '\0'; /* preserve yytext */
  6969. | (yy_hold_char) = *++(yy_c_buf_p);
  6970. |
  6971. | return c;
  6972. | }
  6973. | #endif /* ifndef YY_NO_INPUT */
  6974. |
  6975. | /** Immediately switch to a different input stream.
  6976. | * @param input_file A readable stream.
  6977. | *
  6978. | * @note This function does not reset the start condition to @c INITIAL .
  6979. | */
  6980. | void yyrestart (FILE * input_file )
  6981. | {
  6982. |
  6983. | if ( ! YY_CURRENT_BUFFER ){
  6984. | yyensure_buffer_stack ();
  6985. | YY_CURRENT_BUFFER_LVALUE =
  6986. | yy_create_buffer(yyin,YY_BUF_SIZE );
  6987. | }
  6988. |
  6989. | yy_init_buffer(YY_CURRENT_BUFFER,input_file );
  6990. | yy_load_buffer_state( );
  6991. | }
  6992. |
  6993. | /** Switch to a different input buffer.
  6994. | * @param new_buffer The new input buffer.
  6995. | *
  6996. | */
  6997. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  6998. | {
  6999. |
  7000. | /* TODO. We should be able to replace this entire function body
  7001. | * with
  7002. | * yypop_buffer_state();
  7003. | * yypush_buffer_state(new_buffer);
  7004. | */
  7005. | yyensure_buffer_stack ();
  7006. | if ( YY_CURRENT_BUFFER == new_buffer )
  7007. | return;
  7008. |
  7009. | if ( YY_CURRENT_BUFFER )
  7010. | {
  7011. | /* Flush out information for old buffer. */
  7012. | *(yy_c_buf_p) = (yy_hold_char);
  7013. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  7014. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  7015. | }
  7016. |
  7017. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  7018. | yy_load_buffer_state( );
  7019. |
  7020. | /* We don't actually know whether we did this switch during
  7021. | * EOF (yywrap()) processing, but the only time this flag
  7022. | * is looked at is after yywrap() is called, so it's safe
  7023. | * to go ahead and always set it.
  7024. | */
  7025. | (yy_did_buffer_switch_on_eof) = 1;
  7026. | }
  7027. |
  7028. | static void yy_load_buffer_state (void)
  7029. | {
  7030. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  7031. | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  7032. | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  7033. | (yy_hold_char) = *(yy_c_buf_p);
  7034. | }
  7035. |
  7036. | /** Allocate and initialize an input buffer state.
  7037. | * @param file A readable stream.
  7038. | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  7039. | *
  7040. | * @return the allocated buffer state.
  7041. | */
  7042. | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  7043. | {
  7044. | YY_BUFFER_STATE b;
  7045. |
  7046. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  7047. | if ( ! b )
  7048. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  7049. |
  7050. | b->yy_buf_size = size;
  7051. |
  7052. | /* yy_ch_buf has to be 2 characters longer than the size given because
  7053. | * we need to put in 2 end-of-buffer characters.
  7054. | */
  7055. | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
  7056. | if ( ! b->yy_ch_buf )
  7057. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  7058. |
  7059. | b->yy_is_our_buffer = 1;
  7060. |
  7061. | yy_init_buffer(b,file );
  7062. |
  7063. | return b;
  7064. | }
  7065. |
  7066. | /** Destroy the buffer.
  7067. | * @param b a buffer created with yy_create_buffer()
  7068. | *
  7069. | */
  7070. | void yy_delete_buffer (YY_BUFFER_STATE b )
  7071. | {
  7072. |
  7073. | if ( ! b )
  7074. | return;
  7075. |
  7076. | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  7077. | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  7078. |
  7079. | if ( b->yy_is_our_buffer )
  7080. | yyfree((void *) b->yy_ch_buf );
  7081. |
  7082. | yyfree((void *) b );
  7083. | }
  7084. |
  7085. | /* Initializes or reinitializes a buffer.
  7086. | * This function is sometimes called more than once on the same buffer,
  7087. | * such as during a yyrestart() or at EOF.
  7088. | */
  7089. | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  7090. |
  7091. | {
  7092. | int oerrno = errno;
  7093. |
  7094. | yy_flush_buffer(b );
  7095. |
  7096. | b->yy_input_file = file;
  7097. | b->yy_fill_buffer = 1;
  7098. |
  7099. | /* If b is the current buffer, then yy_init_buffer was _probably_
  7100. | * called from yyrestart() or through yy_get_next_buffer.
  7101. | * In that case, we don't want to reset the lineno or column.
  7102. | */
  7103. | if (b != YY_CURRENT_BUFFER){
  7104. | b->yy_bs_lineno = 1;
  7105. | b->yy_bs_column = 0;
  7106. | }
  7107. |
  7108. | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  7109. |
  7110. | errno = oerrno;
  7111. | }
  7112. |
  7113. | /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  7114. | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  7115. | *
  7116. | */
  7117. | void yy_flush_buffer (YY_BUFFER_STATE b )
  7118. | {
  7119. | if ( ! b )
  7120. | return;
  7121. |
  7122. | b->yy_n_chars = 0;
  7123. |
  7124. | /* We always need two end-of-buffer characters. The first causes
  7125. | * a transition to the end-of-buffer state. The second causes
  7126. | * a jam in that state.
  7127. | */
  7128. | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  7129. | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  7130. |
  7131. | b->yy_buf_pos = &b->yy_ch_buf[0];
  7132. |
  7133. | b->yy_at_bol = 1;
  7134. | b->yy_buffer_status = YY_BUFFER_NEW;
  7135. |
  7136. | if ( b == YY_CURRENT_BUFFER )
  7137. | yy_load_buffer_state( );
  7138. | }
  7139. |
  7140. | /** Pushes the new state onto the stack. The new state becomes
  7141. | * the current state. This function will allocate the stack
  7142. | * if necessary.
  7143. | * @param new_buffer The new state.
  7144. | *
  7145. | */
  7146. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  7147. | {
  7148. | if (new_buffer == NULL)
  7149. | return;
  7150. |
  7151. | yyensure_buffer_stack();
  7152. |
  7153. | /* This block is copied from yy_switch_to_buffer. */
  7154. | if ( YY_CURRENT_BUFFER )
  7155. | {
  7156. | /* Flush out information for old buffer. */
  7157. | *(yy_c_buf_p) = (yy_hold_char);
  7158. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  7159. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  7160. | }
  7161. |
  7162. | /* Only push if top exists. Otherwise, replace top. */
  7163. | if (YY_CURRENT_BUFFER)
  7164. | (yy_buffer_stack_top)++;
  7165. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  7166. |
  7167. | /* copied from yy_switch_to_buffer. */
  7168. | yy_load_buffer_state( );
  7169. | (yy_did_buffer_switch_on_eof) = 1;
  7170. | }
  7171. |
  7172. | /** Removes and deletes the top of the stack, if present.
  7173. | * The next element becomes the new top.
  7174. | *
  7175. | */
  7176. | void yypop_buffer_state (void)
  7177. | {
  7178. | if (!YY_CURRENT_BUFFER)
  7179. | return;
  7180. |
  7181. | yy_delete_buffer(YY_CURRENT_BUFFER );
  7182. | YY_CURRENT_BUFFER_LVALUE = NULL;
  7183. | if ((yy_buffer_stack_top) > 0)
  7184. | --(yy_buffer_stack_top);
  7185. |
  7186. | if (YY_CURRENT_BUFFER) {
  7187. | yy_load_buffer_state( );
  7188. | (yy_did_buffer_switch_on_eof) = 1;
  7189. | }
  7190. | }
  7191. |
  7192. | /* Allocates the stack if it does not exist.
  7193. | * Guarantees space for at least one push.
  7194. | */
  7195. | static void yyensure_buffer_stack (void)
  7196. | {
  7197. | yy_size_t num_to_alloc;
  7198. |
  7199. | if (!(yy_buffer_stack)) {
  7200. |
  7201. | /* First allocation is just for 2 elements, since we don't know if this
  7202. | * scanner will even need a stack. We use 2 instead of 1 to avoid an
  7203. | * immediate realloc on the next call.
  7204. | */
  7205. | num_to_alloc = 1;
  7206. | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  7207. | (num_to_alloc * sizeof(struct yy_buffer_state*)
  7208. | );
  7209. | if ( ! (yy_buffer_stack) )
  7210. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  7211. |
  7212. | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  7213. |
  7214. | (yy_buffer_stack_max) = num_to_alloc;
  7215. | (yy_buffer_stack_top) = 0;
  7216. | return;
  7217. | }
  7218. |
  7219. | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  7220. |
  7221. | /* Increase the buffer to prepare for a possible push. */
  7222. | int grow_size = 8 /* arbitrary grow size */;
  7223. |
  7224. | num_to_alloc = (yy_buffer_stack_max) + grow_size;
  7225. | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  7226. | ((yy_buffer_stack),
  7227. | num_to_alloc * sizeof(struct yy_buffer_state*)
  7228. | );
  7229. | if ( ! (yy_buffer_stack) )
  7230. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  7231. |
  7232. | /* zero only the new slots.*/
  7233. | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  7234. | (yy_buffer_stack_max) = num_to_alloc;
  7235. | }
  7236. | }
  7237. |
  7238. | /** Setup the input buffer state to scan directly from a user-specified character buffer.
  7239. | * @param base the character buffer
  7240. | * @param size the size in bytes of the character buffer
  7241. | *
  7242. | * @return the newly allocated buffer state object.
  7243. | */
  7244. | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  7245. | {
  7246. | YY_BUFFER_STATE b;
  7247. |
  7248. | if ( size < 2 ||
  7249. | base[size-2] != YY_END_OF_BUFFER_CHAR ||
  7250. | base[size-1] != YY_END_OF_BUFFER_CHAR )
  7251. | /* They forgot to leave room for the EOB's. */
  7252. | return 0;
  7253. |
  7254. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  7255. | if ( ! b )
  7256. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  7257. |
  7258. | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  7259. | b->yy_buf_pos = b->yy_ch_buf = base;
  7260. | b->yy_is_our_buffer = 0;
  7261. | b->yy_input_file = 0;
  7262. | b->yy_n_chars = b->yy_buf_size;
  7263. | b->yy_is_interactive = 0;
  7264. | b->yy_at_bol = 1;
  7265. | b->yy_fill_buffer = 0;
  7266. | b->yy_buffer_status = YY_BUFFER_NEW;
  7267. |
  7268. | yy_switch_to_buffer(b );
  7269. |
  7270. | return b;
  7271. | }
  7272. |
  7273. | /** Setup the input buffer state to scan a string. The next call to yylex() will
  7274. | * scan from a @e copy of @a str.
  7275. | * @param yystr a NUL-terminated string to scan
  7276. | *
  7277. | * @return the newly allocated buffer state object.
  7278. | * @note If you want to scan bytes that may contain NUL values, then use
  7279. | * yy_scan_bytes() instead.
  7280. | */
  7281. | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
  7282. | {
  7283. |
  7284. | return yy_scan_bytes(yystr,strlen(yystr) );
  7285. | }
  7286. |
  7287. | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  7288. | * scan from a @e copy of @a bytes.
  7289. | * @param yybytes the byte buffer to scan
  7290. | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  7291. | *
  7292. | * @return the newly allocated buffer state object.
  7293. | */
  7294. | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
  7295. | {
  7296. | YY_BUFFER_STATE b;
  7297. | char *buf;
  7298. | yy_size_t n;
  7299. | int i;
  7300. |
  7301. | /* Get memory for full buffer, including space for trailing EOB's. */
  7302. | n = _yybytes_len + 2;
  7303. | buf = (char *) yyalloc(n );
  7304. | if ( ! buf )
  7305. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  7306. |
  7307. | for ( i = 0; i < _yybytes_len; ++i )
  7308. | buf[i] = yybytes[i];
  7309. |
  7310. | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  7311. |
  7312. | b = yy_scan_buffer(buf,n );
  7313. | if ( ! b )
  7314. | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  7315. |
  7316. | /* It's okay to grow etc. this buffer, and we should throw it
  7317. | * away when we're done.
  7318. | */
  7319. | b->yy_is_our_buffer = 1;
  7320. |
  7321. | return b;
  7322. | }
  7323. |
  7324. | #ifndef YY_EXIT_FAILURE
  7325. | #define YY_EXIT_FAILURE 2
  7326. | #endif
  7327. |
  7328. | static void yy_fatal_error (yyconst char* msg )
  7329. | {
  7330. | (void) fprintf( stderr, "%s\n", msg );
  7331. | exit( YY_EXIT_FAILURE );
  7332. | }
  7333. |
  7334. | /* Redefine yyless() so it works in section 3 code. */
  7335. |
  7336. | #undef yyless
  7337. | #define yyless(n) \
  7338. | do \
  7339. | { \
  7340. | /* Undo effects of setting up yytext. */ \
  7341. | int yyless_macro_arg = (n); \
  7342. | YY_LESS_LINENO(yyless_macro_arg);\
  7343. | yytext[yyleng] = (yy_hold_char); \
  7344. | (yy_c_buf_p) = yytext + yyless_macro_arg; \
  7345. | (yy_hold_char) = *(yy_c_buf_p); \
  7346. | *(yy_c_buf_p) = '\0'; \
  7347. | yyleng = yyless_macro_arg; \
  7348. | } \
  7349. | while ( 0 )
  7350. |
  7351. | /* Accessor methods (get/set functions) to struct members. */
  7352. |
  7353. | /** Get the current line number.
  7354. | *
  7355. | */
  7356. | int yyget_lineno (void)
  7357. | {
  7358. |
  7359. | return yylineno;
  7360. | }
  7361. |
  7362. | /** Get the input stream.
  7363. | *
  7364. | */
  7365. | FILE *yyget_in (void)
  7366. | {
  7367. | return yyin;
  7368. | }
  7369. |
  7370. | /** Get the output stream.
  7371. | *
  7372. | */
  7373. | FILE *yyget_out (void)
  7374. | {
  7375. | return yyout;
  7376. | }
  7377. |
  7378. | /** Get the length of the current token.
  7379. | *
  7380. | */
  7381. | yy_size_t yyget_leng (void)
  7382. | {
  7383. | return yyleng;
  7384. | }
  7385. |
  7386. | /** Get the current token.
  7387. | *
  7388. | */
  7389. |
  7390. | char *yyget_text (void)
  7391. | {
  7392. | return yytext;
  7393. | }
  7394. |
  7395. | /** Set the current line number.
  7396. | * @param line_number
  7397. | *
  7398. | */
  7399. | void yyset_lineno (int line_number )
  7400. | {
  7401. |
  7402. | yylineno = line_number;
  7403. | }
  7404. |
  7405. | /** Set the input stream. This does not discard the current
  7406. | * input buffer.
  7407. | * @param in_str A readable stream.
  7408. | *
  7409. | * @see yy_switch_to_buffer
  7410. | */
  7411. | void yyset_in (FILE * in_str )
  7412. | {
  7413. | yyin = in_str ;
  7414. | }
  7415. |
  7416. | void yyset_out (FILE * out_str )
  7417. | {
  7418. | yyout = out_str ;
  7419. | }
  7420. |
  7421. | int yyget_debug (void)
  7422. | {
  7423. | return yy_flex_debug;
  7424. | }
  7425. |
  7426. | void yyset_debug (int bdebug )
  7427. | {
  7428. | yy_flex_debug = bdebug ;
  7429. | }
  7430. |
  7431. | static int yy_init_globals (void)
  7432. | {
  7433. | /* Initialization is the same as for the non-reentrant scanner.
  7434. | * This function is called from yylex_destroy(), so don't allocate here.
  7435. | */
  7436. |
  7437. | (yy_buffer_stack) = 0;
  7438. | (yy_buffer_stack_top) = 0;
  7439. | (yy_buffer_stack_max) = 0;
  7440. | (yy_c_buf_p) = (char *) 0;
  7441. | (yy_init) = 0;
  7442. | (yy_start) = 0;
  7443. |
  7444. | (yy_state_buf) = 0;
  7445. | (yy_state_ptr) = 0;
  7446. | (yy_full_match) = 0;
  7447. | (yy_lp) = 0;
  7448. |
  7449. | /* Defined in main.c */
  7450. | #ifdef YY_STDINIT
  7451. | yyin = stdin;
  7452. | yyout = stdout;
  7453. | #else
  7454. | yyin = (FILE *) 0;
  7455. | yyout = (FILE *) 0;
  7456. | #endif
  7457. |
  7458. | /* For future reference: Set errno on error, since we are called by
  7459. | * yylex_init()
  7460. | */
  7461. | return 0;
  7462. | }
  7463. |
  7464. | /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  7465. | int yylex_destroy (void)
  7466. | {
  7467. |
  7468. | /* Pop the buffer stack, destroying each element. */
  7469. | while(YY_CURRENT_BUFFER){
  7470. | yy_delete_buffer(YY_CURRENT_BUFFER );
  7471. | YY_CURRENT_BUFFER_LVALUE = NULL;
  7472. | yypop_buffer_state();
  7473. | }
  7474. |
  7475. | /* Destroy the stack itself. */
  7476. | yyfree((yy_buffer_stack) );
  7477. | (yy_buffer_stack) = NULL;
  7478. |
  7479. | yyfree ( (yy_state_buf) );
  7480. | (yy_state_buf) = NULL;
  7481. |
  7482. | /* Reset the globals. This is important in a non-reentrant scanner so the next time
  7483. | * yylex() is called, initialization will occur. */
  7484. | yy_init_globals( );
  7485. |
  7486. | return 0;
  7487. | }
  7488. |
  7489. | /*
  7490. | * Internal utility routines.
  7491. | */
  7492. |
  7493. | #ifndef yytext_ptr
  7494. | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
  7495. | {
  7496. | register int i;
  7497. | for ( i = 0; i < n; ++i )
  7498. | s1[i] = s2[i];
  7499. | }
  7500. | #endif
  7501. |
  7502. | #ifdef YY_NEED_STRLEN
  7503. | static int yy_flex_strlen (yyconst char * s )
  7504. | {
  7505. | register int n;
  7506. | for ( n = 0; s[n]; ++n )
  7507. | ;
  7508. |
  7509. | return n;
  7510. | }
  7511. | #endif
  7512. |
  7513. | void *yyalloc (yy_size_t size )
  7514. | {
  7515. | return (void *) malloc( size );
  7516. | }
  7517. |
  7518. | void *yyrealloc (void * ptr, yy_size_t size )
  7519. | {
  7520. | /* The cast to (char *) in the following accommodates both
  7521. | * implementations that use char* generic pointers, and those
  7522. | * that use void* generic pointers. It works with the latter
  7523. | * because both ANSI C and C++ allow castless assignment from
  7524. | * any pointer type to void*, and deal with argument conversions
  7525. | * as though doing an assignment.
  7526. | */
  7527. | return (void *) realloc( (char *) ptr, size );
  7528. | }
  7529. |
  7530. | void yyfree (void * ptr )
  7531. | {
  7532. | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  7533. | }
  7534. |
  7535. | #define YYTABLES_NAME "yytables"
  7536. |
  7537. | #line 10 "conftest.l"
  7538. |
  7539. |
  7540. | #ifdef YYTEXT_POINTER
  7541. | extern char *yytext;
  7542. | #endif
  7543. | int
  7544. | main (void)
  7545. | {
  7546. | return ! yylex () + ! yywrap ();
  7547. | }
  7548. configure:11701: result: no
  7549. configure:11715: checking for egrep
  7550. configure:11777: result: /usr/bin/grep -E
  7551. configure:11804: checking net/pfkeyv2.h usability
  7552. configure:11804: gcc -c -g -O2 conftest.c >&5
  7553. conftest.c:56:25: fatal error: net/pfkeyv2.h: No such file or directory
  7554. #include <net/pfkeyv2.h>
  7555. ^
  7556. compilation terminated.
  7557. configure:11804: $? = 1
  7558. configure: failed program was:
  7559. | /* confdefs.h */
  7560. | #define PACKAGE_NAME "ipsec-tools"
  7561. | #define PACKAGE_TARNAME "ipsec-tools"
  7562. | #define PACKAGE_VERSION "0.8.1"
  7563. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  7564. | #define PACKAGE_BUGREPORT ""
  7565. | #define PACKAGE_URL ""
  7566. | #define PACKAGE "ipsec-tools"
  7567. | #define VERSION "0.8.1"
  7568. | #define STDC_HEADERS 1
  7569. | #define HAVE_SYS_TYPES_H 1
  7570. | #define HAVE_SYS_STAT_H 1
  7571. | #define HAVE_STDLIB_H 1
  7572. | #define HAVE_STRING_H 1
  7573. | #define HAVE_MEMORY_H 1
  7574. | #define HAVE_STRINGS_H 1
  7575. | #define HAVE_INTTYPES_H 1
  7576. | #define HAVE_STDINT_H 1
  7577. | #define HAVE_UNISTD_H 1
  7578. | #define HAVE_DLFCN_H 1
  7579. | #define LT_OBJDIR ".libs/"
  7580. | /* end confdefs.h. */
  7581. | #include <stdio.h>
  7582. | #ifdef HAVE_SYS_TYPES_H
  7583. | # include <sys/types.h>
  7584. | #endif
  7585. | #ifdef HAVE_SYS_STAT_H
  7586. | # include <sys/stat.h>
  7587. | #endif
  7588. | #ifdef STDC_HEADERS
  7589. | # include <stdlib.h>
  7590. | # include <stddef.h>
  7591. | #else
  7592. | # ifdef HAVE_STDLIB_H
  7593. | # include <stdlib.h>
  7594. | # endif
  7595. | #endif
  7596. | #ifdef HAVE_STRING_H
  7597. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  7598. | # include <memory.h>
  7599. | # endif
  7600. | # include <string.h>
  7601. | #endif
  7602. | #ifdef HAVE_STRINGS_H
  7603. | # include <strings.h>
  7604. | #endif
  7605. | #ifdef HAVE_INTTYPES_H
  7606. | # include <inttypes.h>
  7607. | #endif
  7608. | #ifdef HAVE_STDINT_H
  7609. | # include <stdint.h>
  7610. | #endif
  7611. | #ifdef HAVE_UNISTD_H
  7612. | # include <unistd.h>
  7613. | #endif
  7614. | #include <net/pfkeyv2.h>
  7615. configure:11804: result: no
  7616. configure:11804: checking net/pfkeyv2.h presence
  7617. configure:11804: gcc -E conftest.c
  7618. conftest.c:23:25: fatal error: net/pfkeyv2.h: No such file or directory
  7619. #include <net/pfkeyv2.h>
  7620. ^
  7621. compilation terminated.
  7622. configure:11804: $? = 1
  7623. configure: failed program was:
  7624. | /* confdefs.h */
  7625. | #define PACKAGE_NAME "ipsec-tools"
  7626. | #define PACKAGE_TARNAME "ipsec-tools"
  7627. | #define PACKAGE_VERSION "0.8.1"
  7628. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  7629. | #define PACKAGE_BUGREPORT ""
  7630. | #define PACKAGE_URL ""
  7631. | #define PACKAGE "ipsec-tools"
  7632. | #define VERSION "0.8.1"
  7633. | #define STDC_HEADERS 1
  7634. | #define HAVE_SYS_TYPES_H 1
  7635. | #define HAVE_SYS_STAT_H 1
  7636. | #define HAVE_STDLIB_H 1
  7637. | #define HAVE_STRING_H 1
  7638. | #define HAVE_MEMORY_H 1
  7639. | #define HAVE_STRINGS_H 1
  7640. | #define HAVE_INTTYPES_H 1
  7641. | #define HAVE_STDINT_H 1
  7642. | #define HAVE_UNISTD_H 1
  7643. | #define HAVE_DLFCN_H 1
  7644. | #define LT_OBJDIR ".libs/"
  7645. | /* end confdefs.h. */
  7646. | #include <net/pfkeyv2.h>
  7647. configure:11804: result: no
  7648. configure:11804: checking for net/pfkeyv2.h
  7649. configure:11804: result: no
  7650. configure:11812: checking netinet/ipsec.h usability
  7651. configure:11812: gcc -c -g -O2 conftest.c >&5
  7652. conftest.c:56:27: fatal error: netinet/ipsec.h: No such file or directory
  7653. #include <netinet/ipsec.h>
  7654. ^
  7655. compilation terminated.
  7656. configure:11812: $? = 1
  7657. configure: failed program was:
  7658. | /* confdefs.h */
  7659. | #define PACKAGE_NAME "ipsec-tools"
  7660. | #define PACKAGE_TARNAME "ipsec-tools"
  7661. | #define PACKAGE_VERSION "0.8.1"
  7662. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  7663. | #define PACKAGE_BUGREPORT ""
  7664. | #define PACKAGE_URL ""
  7665. | #define PACKAGE "ipsec-tools"
  7666. | #define VERSION "0.8.1"
  7667. | #define STDC_HEADERS 1
  7668. | #define HAVE_SYS_TYPES_H 1
  7669. | #define HAVE_SYS_STAT_H 1
  7670. | #define HAVE_STDLIB_H 1
  7671. | #define HAVE_STRING_H 1
  7672. | #define HAVE_MEMORY_H 1
  7673. | #define HAVE_STRINGS_H 1
  7674. | #define HAVE_INTTYPES_H 1
  7675. | #define HAVE_STDINT_H 1
  7676. | #define HAVE_UNISTD_H 1
  7677. | #define HAVE_DLFCN_H 1
  7678. | #define LT_OBJDIR ".libs/"
  7679. | /* end confdefs.h. */
  7680. | #include <stdio.h>
  7681. | #ifdef HAVE_SYS_TYPES_H
  7682. | # include <sys/types.h>
  7683. | #endif
  7684. | #ifdef HAVE_SYS_STAT_H
  7685. | # include <sys/stat.h>
  7686. | #endif
  7687. | #ifdef STDC_HEADERS
  7688. | # include <stdlib.h>
  7689. | # include <stddef.h>
  7690. | #else
  7691. | # ifdef HAVE_STDLIB_H
  7692. | # include <stdlib.h>
  7693. | # endif
  7694. | #endif
  7695. | #ifdef HAVE_STRING_H
  7696. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  7697. | # include <memory.h>
  7698. | # endif
  7699. | # include <string.h>
  7700. | #endif
  7701. | #ifdef HAVE_STRINGS_H
  7702. | # include <strings.h>
  7703. | #endif
  7704. | #ifdef HAVE_INTTYPES_H
  7705. | # include <inttypes.h>
  7706. | #endif
  7707. | #ifdef HAVE_STDINT_H
  7708. | # include <stdint.h>
  7709. | #endif
  7710. | #ifdef HAVE_UNISTD_H
  7711. | # include <unistd.h>
  7712. | #endif
  7713. | #include <netinet/ipsec.h>
  7714. configure:11812: result: no
  7715. configure:11812: checking netinet/ipsec.h presence
  7716. configure:11812: gcc -E conftest.c
  7717. conftest.c:23:27: fatal error: netinet/ipsec.h: No such file or directory
  7718. #include <netinet/ipsec.h>
  7719. ^
  7720. compilation terminated.
  7721. configure:11812: $? = 1
  7722. configure: failed program was:
  7723. | /* confdefs.h */
  7724. | #define PACKAGE_NAME "ipsec-tools"
  7725. | #define PACKAGE_TARNAME "ipsec-tools"
  7726. | #define PACKAGE_VERSION "0.8.1"
  7727. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  7728. | #define PACKAGE_BUGREPORT ""
  7729. | #define PACKAGE_URL ""
  7730. | #define PACKAGE "ipsec-tools"
  7731. | #define VERSION "0.8.1"
  7732. | #define STDC_HEADERS 1
  7733. | #define HAVE_SYS_TYPES_H 1
  7734. | #define HAVE_SYS_STAT_H 1
  7735. | #define HAVE_STDLIB_H 1
  7736. | #define HAVE_STRING_H 1
  7737. | #define HAVE_MEMORY_H 1
  7738. | #define HAVE_STRINGS_H 1
  7739. | #define HAVE_INTTYPES_H 1
  7740. | #define HAVE_STDINT_H 1
  7741. | #define HAVE_UNISTD_H 1
  7742. | #define HAVE_DLFCN_H 1
  7743. | #define LT_OBJDIR ".libs/"
  7744. | /* end confdefs.h. */
  7745. | #include <netinet/ipsec.h>
  7746. configure:11812: result: no
  7747. configure:11812: checking for netinet/ipsec.h
  7748. configure:11812: result: no
  7749. configure:11820: checking netinet6/ipsec.h usability
  7750. configure:11820: gcc -c -g -O2 conftest.c >&5
  7751. conftest.c:56:28: fatal error: netinet6/ipsec.h: No such file or directory
  7752. #include <netinet6/ipsec.h>
  7753. ^
  7754. compilation terminated.
  7755. configure:11820: $? = 1
  7756. configure: failed program was:
  7757. | /* confdefs.h */
  7758. | #define PACKAGE_NAME "ipsec-tools"
  7759. | #define PACKAGE_TARNAME "ipsec-tools"
  7760. | #define PACKAGE_VERSION "0.8.1"
  7761. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  7762. | #define PACKAGE_BUGREPORT ""
  7763. | #define PACKAGE_URL ""
  7764. | #define PACKAGE "ipsec-tools"
  7765. | #define VERSION "0.8.1"
  7766. | #define STDC_HEADERS 1
  7767. | #define HAVE_SYS_TYPES_H 1
  7768. | #define HAVE_SYS_STAT_H 1
  7769. | #define HAVE_STDLIB_H 1
  7770. | #define HAVE_STRING_H 1
  7771. | #define HAVE_MEMORY_H 1
  7772. | #define HAVE_STRINGS_H 1
  7773. | #define HAVE_INTTYPES_H 1
  7774. | #define HAVE_STDINT_H 1
  7775. | #define HAVE_UNISTD_H 1
  7776. | #define HAVE_DLFCN_H 1
  7777. | #define LT_OBJDIR ".libs/"
  7778. | /* end confdefs.h. */
  7779. | #include <stdio.h>
  7780. | #ifdef HAVE_SYS_TYPES_H
  7781. | # include <sys/types.h>
  7782. | #endif
  7783. | #ifdef HAVE_SYS_STAT_H
  7784. | # include <sys/stat.h>
  7785. | #endif
  7786. | #ifdef STDC_HEADERS
  7787. | # include <stdlib.h>
  7788. | # include <stddef.h>
  7789. | #else
  7790. | # ifdef HAVE_STDLIB_H
  7791. | # include <stdlib.h>
  7792. | # endif
  7793. | #endif
  7794. | #ifdef HAVE_STRING_H
  7795. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  7796. | # include <memory.h>
  7797. | # endif
  7798. | # include <string.h>
  7799. | #endif
  7800. | #ifdef HAVE_STRINGS_H
  7801. | # include <strings.h>
  7802. | #endif
  7803. | #ifdef HAVE_INTTYPES_H
  7804. | # include <inttypes.h>
  7805. | #endif
  7806. | #ifdef HAVE_STDINT_H
  7807. | # include <stdint.h>
  7808. | #endif
  7809. | #ifdef HAVE_UNISTD_H
  7810. | # include <unistd.h>
  7811. | #endif
  7812. | #include <netinet6/ipsec.h>
  7813. configure:11820: result: no
  7814. configure:11820: checking netinet6/ipsec.h presence
  7815. configure:11820: gcc -E conftest.c
  7816. conftest.c:23:28: fatal error: netinet6/ipsec.h: No such file or directory
  7817. #include <netinet6/ipsec.h>
  7818. ^
  7819. compilation terminated.
  7820. configure:11820: $? = 1
  7821. configure: failed program was:
  7822. | /* confdefs.h */
  7823. | #define PACKAGE_NAME "ipsec-tools"
  7824. | #define PACKAGE_TARNAME "ipsec-tools"
  7825. | #define PACKAGE_VERSION "0.8.1"
  7826. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  7827. | #define PACKAGE_BUGREPORT ""
  7828. | #define PACKAGE_URL ""
  7829. | #define PACKAGE "ipsec-tools"
  7830. | #define VERSION "0.8.1"
  7831. | #define STDC_HEADERS 1
  7832. | #define HAVE_SYS_TYPES_H 1
  7833. | #define HAVE_SYS_STAT_H 1
  7834. | #define HAVE_STDLIB_H 1
  7835. | #define HAVE_STRING_H 1
  7836. | #define HAVE_MEMORY_H 1
  7837. | #define HAVE_STRINGS_H 1
  7838. | #define HAVE_INTTYPES_H 1
  7839. | #define HAVE_STDINT_H 1
  7840. | #define HAVE_UNISTD_H 1
  7841. | #define HAVE_DLFCN_H 1
  7842. | #define LT_OBJDIR ".libs/"
  7843. | /* end confdefs.h. */
  7844. | #include <netinet6/ipsec.h>
  7845. configure:11820: result: no
  7846. configure:11820: checking for netinet6/ipsec.h
  7847. configure:11820: result: no
  7848. configure:11828: checking netipsec/ipsec.h usability
  7849. configure:11828: gcc -c -g -O2 conftest.c >&5
  7850. conftest.c:56:28: fatal error: netipsec/ipsec.h: No such file or directory
  7851. #include <netipsec/ipsec.h>
  7852. ^
  7853. compilation terminated.
  7854. configure:11828: $? = 1
  7855. configure: failed program was:
  7856. | /* confdefs.h */
  7857. | #define PACKAGE_NAME "ipsec-tools"
  7858. | #define PACKAGE_TARNAME "ipsec-tools"
  7859. | #define PACKAGE_VERSION "0.8.1"
  7860. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  7861. | #define PACKAGE_BUGREPORT ""
  7862. | #define PACKAGE_URL ""
  7863. | #define PACKAGE "ipsec-tools"
  7864. | #define VERSION "0.8.1"
  7865. | #define STDC_HEADERS 1
  7866. | #define HAVE_SYS_TYPES_H 1
  7867. | #define HAVE_SYS_STAT_H 1
  7868. | #define HAVE_STDLIB_H 1
  7869. | #define HAVE_STRING_H 1
  7870. | #define HAVE_MEMORY_H 1
  7871. | #define HAVE_STRINGS_H 1
  7872. | #define HAVE_INTTYPES_H 1
  7873. | #define HAVE_STDINT_H 1
  7874. | #define HAVE_UNISTD_H 1
  7875. | #define HAVE_DLFCN_H 1
  7876. | #define LT_OBJDIR ".libs/"
  7877. | /* end confdefs.h. */
  7878. | #include <stdio.h>
  7879. | #ifdef HAVE_SYS_TYPES_H
  7880. | # include <sys/types.h>
  7881. | #endif
  7882. | #ifdef HAVE_SYS_STAT_H
  7883. | # include <sys/stat.h>
  7884. | #endif
  7885. | #ifdef STDC_HEADERS
  7886. | # include <stdlib.h>
  7887. | # include <stddef.h>
  7888. | #else
  7889. | # ifdef HAVE_STDLIB_H
  7890. | # include <stdlib.h>
  7891. | # endif
  7892. | #endif
  7893. | #ifdef HAVE_STRING_H
  7894. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  7895. | # include <memory.h>
  7896. | # endif
  7897. | # include <string.h>
  7898. | #endif
  7899. | #ifdef HAVE_STRINGS_H
  7900. | # include <strings.h>
  7901. | #endif
  7902. | #ifdef HAVE_INTTYPES_H
  7903. | # include <inttypes.h>
  7904. | #endif
  7905. | #ifdef HAVE_STDINT_H
  7906. | # include <stdint.h>
  7907. | #endif
  7908. | #ifdef HAVE_UNISTD_H
  7909. | # include <unistd.h>
  7910. | #endif
  7911. | #include <netipsec/ipsec.h>
  7912. configure:11828: result: no
  7913. configure:11828: checking netipsec/ipsec.h presence
  7914. configure:11828: gcc -E conftest.c
  7915. conftest.c:23:28: fatal error: netipsec/ipsec.h: No such file or directory
  7916. #include <netipsec/ipsec.h>
  7917. ^
  7918. compilation terminated.
  7919. configure:11828: $? = 1
  7920. configure: failed program was:
  7921. | /* confdefs.h */
  7922. | #define PACKAGE_NAME "ipsec-tools"
  7923. | #define PACKAGE_TARNAME "ipsec-tools"
  7924. | #define PACKAGE_VERSION "0.8.1"
  7925. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  7926. | #define PACKAGE_BUGREPORT ""
  7927. | #define PACKAGE_URL ""
  7928. | #define PACKAGE "ipsec-tools"
  7929. | #define VERSION "0.8.1"
  7930. | #define STDC_HEADERS 1
  7931. | #define HAVE_SYS_TYPES_H 1
  7932. | #define HAVE_SYS_STAT_H 1
  7933. | #define HAVE_STDLIB_H 1
  7934. | #define HAVE_STRING_H 1
  7935. | #define HAVE_MEMORY_H 1
  7936. | #define HAVE_STRINGS_H 1
  7937. | #define HAVE_INTTYPES_H 1
  7938. | #define HAVE_STDINT_H 1
  7939. | #define HAVE_UNISTD_H 1
  7940. | #define HAVE_DLFCN_H 1
  7941. | #define LT_OBJDIR ".libs/"
  7942. | /* end confdefs.h. */
  7943. | #include <netipsec/ipsec.h>
  7944. configure:11828: result: no
  7945. configure:11828: checking for netipsec/ipsec.h
  7946. configure:11828: result: no
  7947. configure:11876: checking /usr/include/linux/pfkeyv2.h usability
  7948. configure:11876: gcc -c -g -O2 conftest.c >&5
  7949. configure:11876: $? = 0
  7950. configure:11876: result: yes
  7951. configure:11876: checking /usr/include/linux/pfkeyv2.h presence
  7952. configure:11876: gcc -E conftest.c
  7953. configure:11876: $? = 0
  7954. configure:11876: result: yes
  7955. configure:11876: checking for /usr/include/linux/pfkeyv2.h
  7956. configure:11876: result: yes
  7957. configure:11897: checking for struct sadb_x_policy.sadb_x_policy_priority
  7958. configure:11897: gcc -c -g -O2 -I/usr/include conftest.c >&5
  7959. configure:11897: $? = 0
  7960. configure:11897: result: yes
  7961. configure:11926: checking for ANSI C header files
  7962. configure:12030: result: yes
  7963. configure:12038: checking for sys/wait.h that is POSIX.1 compatible
  7964. configure:12064: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  7965. configure:12064: $? = 0
  7966. configure:12071: result: yes
  7967. configure:12082: checking limits.h usability
  7968. configure:12082: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  7969. configure:12082: $? = 0
  7970. configure:12082: result: yes
  7971. configure:12082: checking limits.h presence
  7972. configure:12082: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  7973. configure:12082: $? = 0
  7974. configure:12082: result: yes
  7975. configure:12082: checking for limits.h
  7976. configure:12082: result: yes
  7977. configure:12082: checking sys/time.h usability
  7978. configure:12082: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  7979. configure:12082: $? = 0
  7980. configure:12082: result: yes
  7981. configure:12082: checking sys/time.h presence
  7982. configure:12082: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  7983. configure:12082: $? = 0
  7984. configure:12082: result: yes
  7985. configure:12082: checking for sys/time.h
  7986. configure:12082: result: yes
  7987. configure:12082: checking for unistd.h
  7988. configure:12082: result: yes
  7989. configure:12082: checking stdarg.h usability
  7990. configure:12082: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  7991. configure:12082: $? = 0
  7992. configure:12082: result: yes
  7993. configure:12082: checking stdarg.h presence
  7994. configure:12082: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  7995. configure:12082: $? = 0
  7996. configure:12082: result: yes
  7997. configure:12082: checking for stdarg.h
  7998. configure:12082: result: yes
  7999. configure:12082: checking varargs.h usability
  8000. configure:12082: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8001. In file included from conftest.c:64:0:
  8002. /usr/lib/gcc/x86_64-redhat-linux/4.8.1/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
  8003. #error "GCC no longer implements <varargs.h>."
  8004. ^
  8005. /usr/lib/gcc/x86_64-redhat-linux/4.8.1/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
  8006. #error "Revise your code to use <stdarg.h>."
  8007. ^
  8008. configure:12082: $? = 1
  8009. configure: failed program was:
  8010. | /* confdefs.h */
  8011. | #define PACKAGE_NAME "ipsec-tools"
  8012. | #define PACKAGE_TARNAME "ipsec-tools"
  8013. | #define PACKAGE_VERSION "0.8.1"
  8014. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8015. | #define PACKAGE_BUGREPORT ""
  8016. | #define PACKAGE_URL ""
  8017. | #define PACKAGE "ipsec-tools"
  8018. | #define VERSION "0.8.1"
  8019. | #define STDC_HEADERS 1
  8020. | #define HAVE_SYS_TYPES_H 1
  8021. | #define HAVE_SYS_STAT_H 1
  8022. | #define HAVE_STDLIB_H 1
  8023. | #define HAVE_STRING_H 1
  8024. | #define HAVE_MEMORY_H 1
  8025. | #define HAVE_STRINGS_H 1
  8026. | #define HAVE_INTTYPES_H 1
  8027. | #define HAVE_STDINT_H 1
  8028. | #define HAVE_UNISTD_H 1
  8029. | #define HAVE_DLFCN_H 1
  8030. | #define LT_OBJDIR ".libs/"
  8031. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8032. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8033. | #define STDC_HEADERS 1
  8034. | #define HAVE_SYS_WAIT_H 1
  8035. | #define HAVE_LIMITS_H 1
  8036. | #define HAVE_SYS_TIME_H 1
  8037. | #define HAVE_UNISTD_H 1
  8038. | #define HAVE_STDARG_H 1
  8039. | /* end confdefs.h. */
  8040. | #include <stdio.h>
  8041. | #ifdef HAVE_SYS_TYPES_H
  8042. | # include <sys/types.h>
  8043. | #endif
  8044. | #ifdef HAVE_SYS_STAT_H
  8045. | # include <sys/stat.h>
  8046. | #endif
  8047. | #ifdef STDC_HEADERS
  8048. | # include <stdlib.h>
  8049. | # include <stddef.h>
  8050. | #else
  8051. | # ifdef HAVE_STDLIB_H
  8052. | # include <stdlib.h>
  8053. | # endif
  8054. | #endif
  8055. | #ifdef HAVE_STRING_H
  8056. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  8057. | # include <memory.h>
  8058. | # endif
  8059. | # include <string.h>
  8060. | #endif
  8061. | #ifdef HAVE_STRINGS_H
  8062. | # include <strings.h>
  8063. | #endif
  8064. | #ifdef HAVE_INTTYPES_H
  8065. | # include <inttypes.h>
  8066. | #endif
  8067. | #ifdef HAVE_STDINT_H
  8068. | # include <stdint.h>
  8069. | #endif
  8070. | #ifdef HAVE_UNISTD_H
  8071. | # include <unistd.h>
  8072. | #endif
  8073. | #include <varargs.h>
  8074. configure:12082: result: no
  8075. configure:12082: checking varargs.h presence
  8076. configure:12082: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  8077. In file included from conftest.c:31:0:
  8078. /usr/lib/gcc/x86_64-redhat-linux/4.8.1/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
  8079. #error "GCC no longer implements <varargs.h>."
  8080. ^
  8081. /usr/lib/gcc/x86_64-redhat-linux/4.8.1/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
  8082. #error "Revise your code to use <stdarg.h>."
  8083. ^
  8084. configure:12082: $? = 1
  8085. configure: failed program was:
  8086. | /* confdefs.h */
  8087. | #define PACKAGE_NAME "ipsec-tools"
  8088. | #define PACKAGE_TARNAME "ipsec-tools"
  8089. | #define PACKAGE_VERSION "0.8.1"
  8090. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8091. | #define PACKAGE_BUGREPORT ""
  8092. | #define PACKAGE_URL ""
  8093. | #define PACKAGE "ipsec-tools"
  8094. | #define VERSION "0.8.1"
  8095. | #define STDC_HEADERS 1
  8096. | #define HAVE_SYS_TYPES_H 1
  8097. | #define HAVE_SYS_STAT_H 1
  8098. | #define HAVE_STDLIB_H 1
  8099. | #define HAVE_STRING_H 1
  8100. | #define HAVE_MEMORY_H 1
  8101. | #define HAVE_STRINGS_H 1
  8102. | #define HAVE_INTTYPES_H 1
  8103. | #define HAVE_STDINT_H 1
  8104. | #define HAVE_UNISTD_H 1
  8105. | #define HAVE_DLFCN_H 1
  8106. | #define LT_OBJDIR ".libs/"
  8107. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8108. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8109. | #define STDC_HEADERS 1
  8110. | #define HAVE_SYS_WAIT_H 1
  8111. | #define HAVE_LIMITS_H 1
  8112. | #define HAVE_SYS_TIME_H 1
  8113. | #define HAVE_UNISTD_H 1
  8114. | #define HAVE_STDARG_H 1
  8115. | /* end confdefs.h. */
  8116. | #include <varargs.h>
  8117. configure:12082: result: no
  8118. configure:12082: checking for varargs.h
  8119. configure:12082: result: no
  8120. configure:12094: checking shadow.h usability
  8121. configure:12094: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8122. configure:12094: $? = 0
  8123. configure:12094: result: yes
  8124. configure:12094: checking shadow.h presence
  8125. configure:12094: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  8126. configure:12094: $? = 0
  8127. configure:12094: result: yes
  8128. configure:12094: checking for shadow.h
  8129. configure:12094: result: yes
  8130. configure:12106: checking for an ANSI C-conforming const
  8131. configure:12172: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8132. configure:12172: $? = 0
  8133. configure:12179: result: yes
  8134. configure:12187: checking for pid_t
  8135. configure:12187: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8136. configure:12187: $? = 0
  8137. configure:12187: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8138. conftest.c: In function 'main':
  8139. conftest.c:68:20: error: expected expression before ')' token
  8140. if (sizeof ((pid_t)))
  8141. ^
  8142. configure:12187: $? = 1
  8143. configure: failed program was:
  8144. | /* confdefs.h */
  8145. | #define PACKAGE_NAME "ipsec-tools"
  8146. | #define PACKAGE_TARNAME "ipsec-tools"
  8147. | #define PACKAGE_VERSION "0.8.1"
  8148. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8149. | #define PACKAGE_BUGREPORT ""
  8150. | #define PACKAGE_URL ""
  8151. | #define PACKAGE "ipsec-tools"
  8152. | #define VERSION "0.8.1"
  8153. | #define STDC_HEADERS 1
  8154. | #define HAVE_SYS_TYPES_H 1
  8155. | #define HAVE_SYS_STAT_H 1
  8156. | #define HAVE_STDLIB_H 1
  8157. | #define HAVE_STRING_H 1
  8158. | #define HAVE_MEMORY_H 1
  8159. | #define HAVE_STRINGS_H 1
  8160. | #define HAVE_INTTYPES_H 1
  8161. | #define HAVE_STDINT_H 1
  8162. | #define HAVE_UNISTD_H 1
  8163. | #define HAVE_DLFCN_H 1
  8164. | #define LT_OBJDIR ".libs/"
  8165. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8166. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8167. | #define STDC_HEADERS 1
  8168. | #define HAVE_SYS_WAIT_H 1
  8169. | #define HAVE_LIMITS_H 1
  8170. | #define HAVE_SYS_TIME_H 1
  8171. | #define HAVE_UNISTD_H 1
  8172. | #define HAVE_STDARG_H 1
  8173. | #define HAVE_SHADOW_H 1
  8174. | /* end confdefs.h. */
  8175. | #include <stdio.h>
  8176. | #ifdef HAVE_SYS_TYPES_H
  8177. | # include <sys/types.h>
  8178. | #endif
  8179. | #ifdef HAVE_SYS_STAT_H
  8180. | # include <sys/stat.h>
  8181. | #endif
  8182. | #ifdef STDC_HEADERS
  8183. | # include <stdlib.h>
  8184. | # include <stddef.h>
  8185. | #else
  8186. | # ifdef HAVE_STDLIB_H
  8187. | # include <stdlib.h>
  8188. | # endif
  8189. | #endif
  8190. | #ifdef HAVE_STRING_H
  8191. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  8192. | # include <memory.h>
  8193. | # endif
  8194. | # include <string.h>
  8195. | #endif
  8196. | #ifdef HAVE_STRINGS_H
  8197. | # include <strings.h>
  8198. | #endif
  8199. | #ifdef HAVE_INTTYPES_H
  8200. | # include <inttypes.h>
  8201. | #endif
  8202. | #ifdef HAVE_STDINT_H
  8203. | # include <stdint.h>
  8204. | #endif
  8205. | #ifdef HAVE_UNISTD_H
  8206. | # include <unistd.h>
  8207. | #endif
  8208. | int
  8209. | main ()
  8210. | {
  8211. | if (sizeof ((pid_t)))
  8212. | return 0;
  8213. | ;
  8214. | return 0;
  8215. | }
  8216. configure:12187: result: yes
  8217. configure:12198: checking for size_t
  8218. configure:12198: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8219. configure:12198: $? = 0
  8220. configure:12198: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8221. conftest.c: In function 'main':
  8222. conftest.c:68:21: error: expected expression before ')' token
  8223. if (sizeof ((size_t)))
  8224. ^
  8225. configure:12198: $? = 1
  8226. configure: failed program was:
  8227. | /* confdefs.h */
  8228. | #define PACKAGE_NAME "ipsec-tools"
  8229. | #define PACKAGE_TARNAME "ipsec-tools"
  8230. | #define PACKAGE_VERSION "0.8.1"
  8231. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8232. | #define PACKAGE_BUGREPORT ""
  8233. | #define PACKAGE_URL ""
  8234. | #define PACKAGE "ipsec-tools"
  8235. | #define VERSION "0.8.1"
  8236. | #define STDC_HEADERS 1
  8237. | #define HAVE_SYS_TYPES_H 1
  8238. | #define HAVE_SYS_STAT_H 1
  8239. | #define HAVE_STDLIB_H 1
  8240. | #define HAVE_STRING_H 1
  8241. | #define HAVE_MEMORY_H 1
  8242. | #define HAVE_STRINGS_H 1
  8243. | #define HAVE_INTTYPES_H 1
  8244. | #define HAVE_STDINT_H 1
  8245. | #define HAVE_UNISTD_H 1
  8246. | #define HAVE_DLFCN_H 1
  8247. | #define LT_OBJDIR ".libs/"
  8248. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8249. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8250. | #define STDC_HEADERS 1
  8251. | #define HAVE_SYS_WAIT_H 1
  8252. | #define HAVE_LIMITS_H 1
  8253. | #define HAVE_SYS_TIME_H 1
  8254. | #define HAVE_UNISTD_H 1
  8255. | #define HAVE_STDARG_H 1
  8256. | #define HAVE_SHADOW_H 1
  8257. | /* end confdefs.h. */
  8258. | #include <stdio.h>
  8259. | #ifdef HAVE_SYS_TYPES_H
  8260. | # include <sys/types.h>
  8261. | #endif
  8262. | #ifdef HAVE_SYS_STAT_H
  8263. | # include <sys/stat.h>
  8264. | #endif
  8265. | #ifdef STDC_HEADERS
  8266. | # include <stdlib.h>
  8267. | # include <stddef.h>
  8268. | #else
  8269. | # ifdef HAVE_STDLIB_H
  8270. | # include <stdlib.h>
  8271. | # endif
  8272. | #endif
  8273. | #ifdef HAVE_STRING_H
  8274. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  8275. | # include <memory.h>
  8276. | # endif
  8277. | # include <string.h>
  8278. | #endif
  8279. | #ifdef HAVE_STRINGS_H
  8280. | # include <strings.h>
  8281. | #endif
  8282. | #ifdef HAVE_INTTYPES_H
  8283. | # include <inttypes.h>
  8284. | #endif
  8285. | #ifdef HAVE_STDINT_H
  8286. | # include <stdint.h>
  8287. | #endif
  8288. | #ifdef HAVE_UNISTD_H
  8289. | # include <unistd.h>
  8290. | #endif
  8291. | int
  8292. | main ()
  8293. | {
  8294. | if (sizeof ((size_t)))
  8295. | return 0;
  8296. | ;
  8297. | return 0;
  8298. | }
  8299. configure:12198: result: yes
  8300. configure:12209: checking whether time.h and sys/time.h may both be included
  8301. configure:12229: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8302. configure:12229: $? = 0
  8303. configure:12236: result: yes
  8304. configure:12244: checking whether struct tm is in sys/time.h or time.h
  8305. configure:12264: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8306. configure:12264: $? = 0
  8307. configure:12271: result: time.h
  8308. configure:12281: checking for working memcmp
  8309. configure:12324: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8310. configure:12324: $? = 0
  8311. configure:12324: ./conftest
  8312. configure:12324: $? = 0
  8313. configure:12334: result: yes
  8314. configure:12343: checking return type of signal handlers
  8315. configure:12361: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8316. conftest.c: In function 'main':
  8317. conftest.c:39:1: error: void value not ignored as it ought to be
  8318. return *(signal (0, 0)) (0) == 1;
  8319. ^
  8320. configure:12361: $? = 1
  8321. configure: failed program was:
  8322. | /* confdefs.h */
  8323. | #define PACKAGE_NAME "ipsec-tools"
  8324. | #define PACKAGE_TARNAME "ipsec-tools"
  8325. | #define PACKAGE_VERSION "0.8.1"
  8326. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8327. | #define PACKAGE_BUGREPORT ""
  8328. | #define PACKAGE_URL ""
  8329. | #define PACKAGE "ipsec-tools"
  8330. | #define VERSION "0.8.1"
  8331. | #define STDC_HEADERS 1
  8332. | #define HAVE_SYS_TYPES_H 1
  8333. | #define HAVE_SYS_STAT_H 1
  8334. | #define HAVE_STDLIB_H 1
  8335. | #define HAVE_STRING_H 1
  8336. | #define HAVE_MEMORY_H 1
  8337. | #define HAVE_STRINGS_H 1
  8338. | #define HAVE_INTTYPES_H 1
  8339. | #define HAVE_STDINT_H 1
  8340. | #define HAVE_UNISTD_H 1
  8341. | #define HAVE_DLFCN_H 1
  8342. | #define LT_OBJDIR ".libs/"
  8343. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8344. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8345. | #define STDC_HEADERS 1
  8346. | #define HAVE_SYS_WAIT_H 1
  8347. | #define HAVE_LIMITS_H 1
  8348. | #define HAVE_SYS_TIME_H 1
  8349. | #define HAVE_UNISTD_H 1
  8350. | #define HAVE_STDARG_H 1
  8351. | #define HAVE_SHADOW_H 1
  8352. | #define TIME_WITH_SYS_TIME 1
  8353. | /* end confdefs.h. */
  8354. | #include <sys/types.h>
  8355. | #include <signal.h>
  8356. |
  8357. | int
  8358. | main ()
  8359. | {
  8360. | return *(signal (0, 0)) (0) == 1;
  8361. | ;
  8362. | return 0;
  8363. | }
  8364. configure:12368: result: void
  8365. configure:12378: checking for vprintf
  8366. configure:12378: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8367. conftest.c:57:6: warning: conflicting types for built-in function 'vprintf' [enabled by default]
  8368. char vprintf ();
  8369. ^
  8370. configure:12378: $? = 0
  8371. configure:12378: result: yes
  8372. configure:12384: checking for _doprnt
  8373. configure:12384: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8374. /tmp/ccKLDOLz.o: In function `main':
  8375. /root/ipsec-tools-0.8.1/conftest.c:69: undefined reference to `_doprnt'
  8376. collect2: error: ld returned 1 exit status
  8377. configure:12384: $? = 1
  8378. configure: failed program was:
  8379. | /* confdefs.h */
  8380. | #define PACKAGE_NAME "ipsec-tools"
  8381. | #define PACKAGE_TARNAME "ipsec-tools"
  8382. | #define PACKAGE_VERSION "0.8.1"
  8383. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8384. | #define PACKAGE_BUGREPORT ""
  8385. | #define PACKAGE_URL ""
  8386. | #define PACKAGE "ipsec-tools"
  8387. | #define VERSION "0.8.1"
  8388. | #define STDC_HEADERS 1
  8389. | #define HAVE_SYS_TYPES_H 1
  8390. | #define HAVE_SYS_STAT_H 1
  8391. | #define HAVE_STDLIB_H 1
  8392. | #define HAVE_STRING_H 1
  8393. | #define HAVE_MEMORY_H 1
  8394. | #define HAVE_STRINGS_H 1
  8395. | #define HAVE_INTTYPES_H 1
  8396. | #define HAVE_STDINT_H 1
  8397. | #define HAVE_UNISTD_H 1
  8398. | #define HAVE_DLFCN_H 1
  8399. | #define LT_OBJDIR ".libs/"
  8400. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8401. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8402. | #define STDC_HEADERS 1
  8403. | #define HAVE_SYS_WAIT_H 1
  8404. | #define HAVE_LIMITS_H 1
  8405. | #define HAVE_SYS_TIME_H 1
  8406. | #define HAVE_UNISTD_H 1
  8407. | #define HAVE_STDARG_H 1
  8408. | #define HAVE_SHADOW_H 1
  8409. | #define TIME_WITH_SYS_TIME 1
  8410. | #define RETSIGTYPE void
  8411. | #define HAVE_VPRINTF 1
  8412. | /* end confdefs.h. */
  8413. | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  8414. | For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8415. | #define _doprnt innocuous__doprnt
  8416. |
  8417. | /* System header to define __stub macros and hopefully few prototypes,
  8418. | which can conflict with char _doprnt (); below.
  8419. | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8420. | <limits.h> exists even on freestanding compilers. */
  8421. |
  8422. | #ifdef __STDC__
  8423. | # include <limits.h>
  8424. | #else
  8425. | # include <assert.h>
  8426. | #endif
  8427. |
  8428. | #undef _doprnt
  8429. |
  8430. | /* Override any GCC internal prototype to avoid an error.
  8431. | Use char because int might match the return type of a GCC
  8432. | builtin and then its argument prototype would still apply. */
  8433. | #ifdef __cplusplus
  8434. | extern "C"
  8435. | #endif
  8436. | char _doprnt ();
  8437. | /* The GNU C library defines this for functions which it implements
  8438. | to always fail with ENOSYS. Some functions are actually named
  8439. | something starting with __ and the normal name is an alias. */
  8440. | #if defined __stub__doprnt || defined __stub____doprnt
  8441. | choke me
  8442. | #endif
  8443. |
  8444. | int
  8445. | main ()
  8446. | {
  8447. | return _doprnt ();
  8448. | ;
  8449. | return 0;
  8450. | }
  8451. configure:12384: result: no
  8452. configure:12398: checking for gettimeofday
  8453. configure:12398: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8454. configure:12398: $? = 0
  8455. configure:12398: result: yes
  8456. configure:12398: checking for select
  8457. configure:12398: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8458. conftest.c:59:6: error: conflicting types for 'select'
  8459. char select ();
  8460. ^
  8461. In file included from /usr/include/sys/types.h:219:0,
  8462. from ././src/include-glibc/glibc-bugs.h:10,
  8463. from <command-line>:0:
  8464. /usr/include/sys/select.h:106:12: note: previous declaration of 'select' was here
  8465. extern int select (int __nfds, fd_set *__restrict __readfds,
  8466. ^
  8467. configure:12398: $? = 1
  8468. configure: failed program was:
  8469. | /* confdefs.h */
  8470. | #define PACKAGE_NAME "ipsec-tools"
  8471. | #define PACKAGE_TARNAME "ipsec-tools"
  8472. | #define PACKAGE_VERSION "0.8.1"
  8473. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8474. | #define PACKAGE_BUGREPORT ""
  8475. | #define PACKAGE_URL ""
  8476. | #define PACKAGE "ipsec-tools"
  8477. | #define VERSION "0.8.1"
  8478. | #define STDC_HEADERS 1
  8479. | #define HAVE_SYS_TYPES_H 1
  8480. | #define HAVE_SYS_STAT_H 1
  8481. | #define HAVE_STDLIB_H 1
  8482. | #define HAVE_STRING_H 1
  8483. | #define HAVE_MEMORY_H 1
  8484. | #define HAVE_STRINGS_H 1
  8485. | #define HAVE_INTTYPES_H 1
  8486. | #define HAVE_STDINT_H 1
  8487. | #define HAVE_UNISTD_H 1
  8488. | #define HAVE_DLFCN_H 1
  8489. | #define LT_OBJDIR ".libs/"
  8490. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8491. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8492. | #define STDC_HEADERS 1
  8493. | #define HAVE_SYS_WAIT_H 1
  8494. | #define HAVE_LIMITS_H 1
  8495. | #define HAVE_SYS_TIME_H 1
  8496. | #define HAVE_UNISTD_H 1
  8497. | #define HAVE_STDARG_H 1
  8498. | #define HAVE_SHADOW_H 1
  8499. | #define TIME_WITH_SYS_TIME 1
  8500. | #define RETSIGTYPE void
  8501. | #define HAVE_VPRINTF 1
  8502. | #define HAVE_GETTIMEOFDAY 1
  8503. | /* end confdefs.h. */
  8504. | /* Define select to an innocuous variant, in case <limits.h> declares select.
  8505. | For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8506. | #define select innocuous_select
  8507. |
  8508. | /* System header to define __stub macros and hopefully few prototypes,
  8509. | which can conflict with char select (); below.
  8510. | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8511. | <limits.h> exists even on freestanding compilers. */
  8512. |
  8513. | #ifdef __STDC__
  8514. | # include <limits.h>
  8515. | #else
  8516. | # include <assert.h>
  8517. | #endif
  8518. |
  8519. | #undef select
  8520. |
  8521. | /* Override any GCC internal prototype to avoid an error.
  8522. | Use char because int might match the return type of a GCC
  8523. | builtin and then its argument prototype would still apply. */
  8524. | #ifdef __cplusplus
  8525. | extern "C"
  8526. | #endif
  8527. | char select ();
  8528. | /* The GNU C library defines this for functions which it implements
  8529. | to always fail with ENOSYS. Some functions are actually named
  8530. | something starting with __ and the normal name is an alias. */
  8531. | #if defined __stub_select || defined __stub___select
  8532. | choke me
  8533. | #endif
  8534. |
  8535. | int
  8536. | main ()
  8537. | {
  8538. | return select ();
  8539. | ;
  8540. | return 0;
  8541. | }
  8542. configure:12398: result: no
  8543. configure:12398: checking for socket
  8544. configure:12398: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8545. configure:12398: $? = 0
  8546. configure:12398: result: yes
  8547. configure:12398: checking for strerror
  8548. configure:12398: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8549. configure:12398: $? = 0
  8550. configure:12398: result: yes
  8551. configure:12398: checking for strtol
  8552. configure:12398: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8553. configure:12398: $? = 0
  8554. configure:12398: result: yes
  8555. configure:12398: checking for strtoul
  8556. configure:12398: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8557. configure:12398: $? = 0
  8558. configure:12398: result: yes
  8559. configure:12398: checking for strlcpy
  8560. configure:12398: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8561. /tmp/ccs6IJ3W.o: In function `main':
  8562. /root/ipsec-tools-0.8.1/conftest.c:74: undefined reference to `strlcpy'
  8563. collect2: error: ld returned 1 exit status
  8564. configure:12398: $? = 1
  8565. configure: failed program was:
  8566. | /* confdefs.h */
  8567. | #define PACKAGE_NAME "ipsec-tools"
  8568. | #define PACKAGE_TARNAME "ipsec-tools"
  8569. | #define PACKAGE_VERSION "0.8.1"
  8570. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8571. | #define PACKAGE_BUGREPORT ""
  8572. | #define PACKAGE_URL ""
  8573. | #define PACKAGE "ipsec-tools"
  8574. | #define VERSION "0.8.1"
  8575. | #define STDC_HEADERS 1
  8576. | #define HAVE_SYS_TYPES_H 1
  8577. | #define HAVE_SYS_STAT_H 1
  8578. | #define HAVE_STDLIB_H 1
  8579. | #define HAVE_STRING_H 1
  8580. | #define HAVE_MEMORY_H 1
  8581. | #define HAVE_STRINGS_H 1
  8582. | #define HAVE_INTTYPES_H 1
  8583. | #define HAVE_STDINT_H 1
  8584. | #define HAVE_UNISTD_H 1
  8585. | #define HAVE_DLFCN_H 1
  8586. | #define LT_OBJDIR ".libs/"
  8587. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8588. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8589. | #define STDC_HEADERS 1
  8590. | #define HAVE_SYS_WAIT_H 1
  8591. | #define HAVE_LIMITS_H 1
  8592. | #define HAVE_SYS_TIME_H 1
  8593. | #define HAVE_UNISTD_H 1
  8594. | #define HAVE_STDARG_H 1
  8595. | #define HAVE_SHADOW_H 1
  8596. | #define TIME_WITH_SYS_TIME 1
  8597. | #define RETSIGTYPE void
  8598. | #define HAVE_VPRINTF 1
  8599. | #define HAVE_GETTIMEOFDAY 1
  8600. | #define HAVE_SOCKET 1
  8601. | #define HAVE_STRERROR 1
  8602. | #define HAVE_STRTOL 1
  8603. | #define HAVE_STRTOUL 1
  8604. | /* end confdefs.h. */
  8605. | /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
  8606. | For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8607. | #define strlcpy innocuous_strlcpy
  8608. |
  8609. | /* System header to define __stub macros and hopefully few prototypes,
  8610. | which can conflict with char strlcpy (); below.
  8611. | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8612. | <limits.h> exists even on freestanding compilers. */
  8613. |
  8614. | #ifdef __STDC__
  8615. | # include <limits.h>
  8616. | #else
  8617. | # include <assert.h>
  8618. | #endif
  8619. |
  8620. | #undef strlcpy
  8621. |
  8622. | /* Override any GCC internal prototype to avoid an error.
  8623. | Use char because int might match the return type of a GCC
  8624. | builtin and then its argument prototype would still apply. */
  8625. | #ifdef __cplusplus
  8626. | extern "C"
  8627. | #endif
  8628. | char strlcpy ();
  8629. | /* The GNU C library defines this for functions which it implements
  8630. | to always fail with ENOSYS. Some functions are actually named
  8631. | something starting with __ and the normal name is an alias. */
  8632. | #if defined __stub_strlcpy || defined __stub___strlcpy
  8633. | choke me
  8634. | #endif
  8635. |
  8636. | int
  8637. | main ()
  8638. | {
  8639. | return strlcpy ();
  8640. | ;
  8641. | return 0;
  8642. | }
  8643. configure:12398: result: no
  8644. configure:12398: checking for strlcat
  8645. configure:12398: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8646. /tmp/ccLlk5F3.o: In function `main':
  8647. /root/ipsec-tools-0.8.1/conftest.c:74: undefined reference to `strlcat'
  8648. collect2: error: ld returned 1 exit status
  8649. configure:12398: $? = 1
  8650. configure: failed program was:
  8651. | /* confdefs.h */
  8652. | #define PACKAGE_NAME "ipsec-tools"
  8653. | #define PACKAGE_TARNAME "ipsec-tools"
  8654. | #define PACKAGE_VERSION "0.8.1"
  8655. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8656. | #define PACKAGE_BUGREPORT ""
  8657. | #define PACKAGE_URL ""
  8658. | #define PACKAGE "ipsec-tools"
  8659. | #define VERSION "0.8.1"
  8660. | #define STDC_HEADERS 1
  8661. | #define HAVE_SYS_TYPES_H 1
  8662. | #define HAVE_SYS_STAT_H 1
  8663. | #define HAVE_STDLIB_H 1
  8664. | #define HAVE_STRING_H 1
  8665. | #define HAVE_MEMORY_H 1
  8666. | #define HAVE_STRINGS_H 1
  8667. | #define HAVE_INTTYPES_H 1
  8668. | #define HAVE_STDINT_H 1
  8669. | #define HAVE_UNISTD_H 1
  8670. | #define HAVE_DLFCN_H 1
  8671. | #define LT_OBJDIR ".libs/"
  8672. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8673. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8674. | #define STDC_HEADERS 1
  8675. | #define HAVE_SYS_WAIT_H 1
  8676. | #define HAVE_LIMITS_H 1
  8677. | #define HAVE_SYS_TIME_H 1
  8678. | #define HAVE_UNISTD_H 1
  8679. | #define HAVE_STDARG_H 1
  8680. | #define HAVE_SHADOW_H 1
  8681. | #define TIME_WITH_SYS_TIME 1
  8682. | #define RETSIGTYPE void
  8683. | #define HAVE_VPRINTF 1
  8684. | #define HAVE_GETTIMEOFDAY 1
  8685. | #define HAVE_SOCKET 1
  8686. | #define HAVE_STRERROR 1
  8687. | #define HAVE_STRTOL 1
  8688. | #define HAVE_STRTOUL 1
  8689. | /* end confdefs.h. */
  8690. | /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
  8691. | For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8692. | #define strlcat innocuous_strlcat
  8693. |
  8694. | /* System header to define __stub macros and hopefully few prototypes,
  8695. | which can conflict with char strlcat (); below.
  8696. | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8697. | <limits.h> exists even on freestanding compilers. */
  8698. |
  8699. | #ifdef __STDC__
  8700. | # include <limits.h>
  8701. | #else
  8702. | # include <assert.h>
  8703. | #endif
  8704. |
  8705. | #undef strlcat
  8706. |
  8707. | /* Override any GCC internal prototype to avoid an error.
  8708. | Use char because int might match the return type of a GCC
  8709. | builtin and then its argument prototype would still apply. */
  8710. | #ifdef __cplusplus
  8711. | extern "C"
  8712. | #endif
  8713. | char strlcat ();
  8714. | /* The GNU C library defines this for functions which it implements
  8715. | to always fail with ENOSYS. Some functions are actually named
  8716. | something starting with __ and the normal name is an alias. */
  8717. | #if defined __stub_strlcat || defined __stub___strlcat
  8718. | choke me
  8719. | #endif
  8720. |
  8721. | int
  8722. | main ()
  8723. | {
  8724. | return strlcat ();
  8725. | ;
  8726. | return 0;
  8727. | }
  8728. configure:12398: result: no
  8729. configure:12407: checking for strdup
  8730. configure:12407: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8731. conftest.c:63:6: warning: conflicting types for built-in function 'strdup' [enabled by default]
  8732. char strdup ();
  8733. ^
  8734. configure:12407: $? = 0
  8735. configure:12407: result: yes
  8736. configure:12424: checking for an implementation of va_copy()
  8737. configure:12452: gcc -o conftest -Wall -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv >&5
  8738. conftest.c: In function 'func':
  8739. conftest.c:47:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
  8740. exit (1);
  8741. ^
  8742. conftest.c:47:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
  8743. configure:12452: $? = 0
  8744. configure:12452: ./conftest
  8745. configure:12452: $? = 0
  8746. configure:12463: result: yes
  8747. configure:12532: checking if printf accepts %z
  8748. configure:12551: gcc -c -g -O2 -Wall -Werror -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8749. configure:12551: $? = 0
  8750. configure:12552: result: yes
  8751. configure:12567: checking if __func__ is available
  8752. configure:12581: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8753. conftest.c: In function 'main':
  8754. conftest.c:47:11: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
  8755. char *x = __func__;
  8756. ^
  8757. configure:12581: $? = 0
  8758. configure:12585: result: yes
  8759. configure:12594: checking if readline support is requested
  8760. configure:12604: result: yes
  8761. configure:12609: checking readline/readline.h usability
  8762. configure:12609: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8763. configure:12609: $? = 0
  8764. configure:12609: result: yes
  8765. configure:12609: checking readline/readline.h presence
  8766. configure:12609: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  8767. configure:12609: $? = 0
  8768. configure:12609: result: yes
  8769. configure:12609: checking for readline/readline.h
  8770. configure:12609: result: yes
  8771. configure:12611: checking for readline in -lreadline
  8772. configure:12636: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lreadline -lresolv >&5
  8773. configure:12636: $? = 0
  8774. configure:12645: result: yes
  8775. configure:12662: checking if --with-flex option is specified
  8776. configure:12670: result: dirdefault
  8777. configure:12677: checking if --with-flexlib option is specified
  8778. configure:12685: result: -lfl
  8779. configure:12693: checking if --with-openssl option is specified
  8780. configure:12701: result: default
  8781. configure:12708: checking openssl version
  8782. configure:12725: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8783. configure:12725: $? = 0
  8784. configure:12726: result: ok
  8785. configure:12738: checking openssl/engine.h usability
  8786. configure:12738: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8787. configure:12738: $? = 0
  8788. configure:12738: result: yes
  8789. configure:12738: checking openssl/engine.h presence
  8790. configure:12738: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  8791. configure:12738: $? = 0
  8792. configure:12738: result: yes
  8793. configure:12738: checking for openssl/engine.h
  8794. configure:12738: result: yes
  8795. configure:12752: checking openssl/aes.h usability
  8796. configure:12752: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8797. configure:12752: $? = 0
  8798. configure:12752: result: yes
  8799. configure:12752: checking openssl/aes.h presence
  8800. configure:12752: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  8801. configure:12752: $? = 0
  8802. configure:12752: result: yes
  8803. configure:12752: checking for openssl/aes.h
  8804. configure:12752: result: yes
  8805. configure:12766: checking sha2 support
  8806. configure:12771: result: yes
  8807. configure:12773: checking openssl/sha2.h usability
  8808. configure:12773: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8809. conftest.c:80:26: fatal error: openssl/sha2.h: No such file or directory
  8810. #include <openssl/sha2.h>
  8811. ^
  8812. compilation terminated.
  8813. configure:12773: $? = 1
  8814. configure: failed program was:
  8815. | /* confdefs.h */
  8816. | #define PACKAGE_NAME "ipsec-tools"
  8817. | #define PACKAGE_TARNAME "ipsec-tools"
  8818. | #define PACKAGE_VERSION "0.8.1"
  8819. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8820. | #define PACKAGE_BUGREPORT ""
  8821. | #define PACKAGE_URL ""
  8822. | #define PACKAGE "ipsec-tools"
  8823. | #define VERSION "0.8.1"
  8824. | #define STDC_HEADERS 1
  8825. | #define HAVE_SYS_TYPES_H 1
  8826. | #define HAVE_SYS_STAT_H 1
  8827. | #define HAVE_STDLIB_H 1
  8828. | #define HAVE_STRING_H 1
  8829. | #define HAVE_MEMORY_H 1
  8830. | #define HAVE_STRINGS_H 1
  8831. | #define HAVE_INTTYPES_H 1
  8832. | #define HAVE_STDINT_H 1
  8833. | #define HAVE_UNISTD_H 1
  8834. | #define HAVE_DLFCN_H 1
  8835. | #define LT_OBJDIR ".libs/"
  8836. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8837. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8838. | #define STDC_HEADERS 1
  8839. | #define HAVE_SYS_WAIT_H 1
  8840. | #define HAVE_LIMITS_H 1
  8841. | #define HAVE_SYS_TIME_H 1
  8842. | #define HAVE_UNISTD_H 1
  8843. | #define HAVE_STDARG_H 1
  8844. | #define HAVE_SHADOW_H 1
  8845. | #define TIME_WITH_SYS_TIME 1
  8846. | #define RETSIGTYPE void
  8847. | #define HAVE_VPRINTF 1
  8848. | #define HAVE_GETTIMEOFDAY 1
  8849. | #define HAVE_SOCKET 1
  8850. | #define HAVE_STRERROR 1
  8851. | #define HAVE_STRTOL 1
  8852. | #define HAVE_STRTOUL 1
  8853. | #define HAVE_STRDUP 1
  8854. | #define VA_COPY va_copy
  8855. | #define HAVE_FUNC_MACRO /**/
  8856. | #define HAVE_READLINE /**/
  8857. | #define HAVE_OPENSSL_ENGINE_H 1
  8858. | #define HAVE_OPENSSL_AES_H 1
  8859. | #define WITH_SHA2 /**/
  8860. | /* end confdefs.h. */
  8861. | #include <stdio.h>
  8862. | #ifdef HAVE_SYS_TYPES_H
  8863. | # include <sys/types.h>
  8864. | #endif
  8865. | #ifdef HAVE_SYS_STAT_H
  8866. | # include <sys/stat.h>
  8867. | #endif
  8868. | #ifdef STDC_HEADERS
  8869. | # include <stdlib.h>
  8870. | # include <stddef.h>
  8871. | #else
  8872. | # ifdef HAVE_STDLIB_H
  8873. | # include <stdlib.h>
  8874. | # endif
  8875. | #endif
  8876. | #ifdef HAVE_STRING_H
  8877. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  8878. | # include <memory.h>
  8879. | # endif
  8880. | # include <string.h>
  8881. | #endif
  8882. | #ifdef HAVE_STRINGS_H
  8883. | # include <strings.h>
  8884. | #endif
  8885. | #ifdef HAVE_INTTYPES_H
  8886. | # include <inttypes.h>
  8887. | #endif
  8888. | #ifdef HAVE_STDINT_H
  8889. | # include <stdint.h>
  8890. | #endif
  8891. | #ifdef HAVE_UNISTD_H
  8892. | # include <unistd.h>
  8893. | #endif
  8894. | #include <openssl/sha2.h>
  8895. configure:12773: result: no
  8896. configure:12773: checking openssl/sha2.h presence
  8897. configure:12773: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  8898. conftest.c:47:26: fatal error: openssl/sha2.h: No such file or directory
  8899. #include <openssl/sha2.h>
  8900. ^
  8901. compilation terminated.
  8902. configure:12773: $? = 1
  8903. configure: failed program was:
  8904. | /* confdefs.h */
  8905. | #define PACKAGE_NAME "ipsec-tools"
  8906. | #define PACKAGE_TARNAME "ipsec-tools"
  8907. | #define PACKAGE_VERSION "0.8.1"
  8908. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8909. | #define PACKAGE_BUGREPORT ""
  8910. | #define PACKAGE_URL ""
  8911. | #define PACKAGE "ipsec-tools"
  8912. | #define VERSION "0.8.1"
  8913. | #define STDC_HEADERS 1
  8914. | #define HAVE_SYS_TYPES_H 1
  8915. | #define HAVE_SYS_STAT_H 1
  8916. | #define HAVE_STDLIB_H 1
  8917. | #define HAVE_STRING_H 1
  8918. | #define HAVE_MEMORY_H 1
  8919. | #define HAVE_STRINGS_H 1
  8920. | #define HAVE_INTTYPES_H 1
  8921. | #define HAVE_STDINT_H 1
  8922. | #define HAVE_UNISTD_H 1
  8923. | #define HAVE_DLFCN_H 1
  8924. | #define LT_OBJDIR ".libs/"
  8925. | #define PATH_IPSEC_H <netinet/ipsec.h>
  8926. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  8927. | #define STDC_HEADERS 1
  8928. | #define HAVE_SYS_WAIT_H 1
  8929. | #define HAVE_LIMITS_H 1
  8930. | #define HAVE_SYS_TIME_H 1
  8931. | #define HAVE_UNISTD_H 1
  8932. | #define HAVE_STDARG_H 1
  8933. | #define HAVE_SHADOW_H 1
  8934. | #define TIME_WITH_SYS_TIME 1
  8935. | #define RETSIGTYPE void
  8936. | #define HAVE_VPRINTF 1
  8937. | #define HAVE_GETTIMEOFDAY 1
  8938. | #define HAVE_SOCKET 1
  8939. | #define HAVE_STRERROR 1
  8940. | #define HAVE_STRTOL 1
  8941. | #define HAVE_STRTOUL 1
  8942. | #define HAVE_STRDUP 1
  8943. | #define VA_COPY va_copy
  8944. | #define HAVE_FUNC_MACRO /**/
  8945. | #define HAVE_READLINE /**/
  8946. | #define HAVE_OPENSSL_ENGINE_H 1
  8947. | #define HAVE_OPENSSL_AES_H 1
  8948. | #define WITH_SHA2 /**/
  8949. | /* end confdefs.h. */
  8950. | #include <openssl/sha2.h>
  8951. configure:12773: result: no
  8952. configure:12773: checking for openssl/sha2.h
  8953. configure:12773: result: no
  8954. configure:12778: checking if sha2 is defined in openssl/sha.h
  8955. configure:12798: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8956. configure:12798: $? = 0
  8957. configure:12800: result: yes
  8958. configure:12830: checking openssl/camellia.h usability
  8959. configure:12830: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8960. configure:12830: $? = 0
  8961. configure:12830: result: yes
  8962. configure:12830: checking openssl/camellia.h presence
  8963. configure:12830: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  8964. configure:12830: $? = 0
  8965. configure:12830: result: yes
  8966. configure:12830: checking for openssl/camellia.h
  8967. configure:12830: result: yes
  8968. configure:12843: checking if --enable-adminport option is specified
  8969. configure:12857: result: yes
  8970. configure:12861: checking if --enable-rc5 option is specified
  8971. configure:12870: result: yes
  8972. configure:12876: checking openssl/rc5.h usability
  8973. configure:12876: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  8974. conftest.c:83:25: fatal error: openssl/rc5.h: No such file or directory
  8975. #include <openssl/rc5.h>
  8976. ^
  8977. compilation terminated.
  8978. configure:12876: $? = 1
  8979. configure: failed program was:
  8980. | /* confdefs.h */
  8981. | #define PACKAGE_NAME "ipsec-tools"
  8982. | #define PACKAGE_TARNAME "ipsec-tools"
  8983. | #define PACKAGE_VERSION "0.8.1"
  8984. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  8985. | #define PACKAGE_BUGREPORT ""
  8986. | #define PACKAGE_URL ""
  8987. | #define PACKAGE "ipsec-tools"
  8988. | #define VERSION "0.8.1"
  8989. | #define STDC_HEADERS 1
  8990. | #define HAVE_SYS_TYPES_H 1
  8991. | #define HAVE_SYS_STAT_H 1
  8992. | #define HAVE_STDLIB_H 1
  8993. | #define HAVE_STRING_H 1
  8994. | #define HAVE_MEMORY_H 1
  8995. | #define HAVE_STRINGS_H 1
  8996. | #define HAVE_INTTYPES_H 1
  8997. | #define HAVE_STDINT_H 1
  8998. | #define HAVE_UNISTD_H 1
  8999. | #define HAVE_DLFCN_H 1
  9000. | #define LT_OBJDIR ".libs/"
  9001. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9002. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9003. | #define STDC_HEADERS 1
  9004. | #define HAVE_SYS_WAIT_H 1
  9005. | #define HAVE_LIMITS_H 1
  9006. | #define HAVE_SYS_TIME_H 1
  9007. | #define HAVE_UNISTD_H 1
  9008. | #define HAVE_STDARG_H 1
  9009. | #define HAVE_SHADOW_H 1
  9010. | #define TIME_WITH_SYS_TIME 1
  9011. | #define RETSIGTYPE void
  9012. | #define HAVE_VPRINTF 1
  9013. | #define HAVE_GETTIMEOFDAY 1
  9014. | #define HAVE_SOCKET 1
  9015. | #define HAVE_STRERROR 1
  9016. | #define HAVE_STRTOL 1
  9017. | #define HAVE_STRTOUL 1
  9018. | #define HAVE_STRDUP 1
  9019. | #define VA_COPY va_copy
  9020. | #define HAVE_FUNC_MACRO /**/
  9021. | #define HAVE_READLINE /**/
  9022. | #define HAVE_OPENSSL_ENGINE_H 1
  9023. | #define HAVE_OPENSSL_AES_H 1
  9024. | #define WITH_SHA2 /**/
  9025. | #define HAVE_SHA2_IN_SHA_H /**/
  9026. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9027. | #define ENABLE_ADMINPORT /**/
  9028. | /* end confdefs.h. */
  9029. | #include <stdio.h>
  9030. | #ifdef HAVE_SYS_TYPES_H
  9031. | # include <sys/types.h>
  9032. | #endif
  9033. | #ifdef HAVE_SYS_STAT_H
  9034. | # include <sys/stat.h>
  9035. | #endif
  9036. | #ifdef STDC_HEADERS
  9037. | # include <stdlib.h>
  9038. | # include <stddef.h>
  9039. | #else
  9040. | # ifdef HAVE_STDLIB_H
  9041. | # include <stdlib.h>
  9042. | # endif
  9043. | #endif
  9044. | #ifdef HAVE_STRING_H
  9045. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  9046. | # include <memory.h>
  9047. | # endif
  9048. | # include <string.h>
  9049. | #endif
  9050. | #ifdef HAVE_STRINGS_H
  9051. | # include <strings.h>
  9052. | #endif
  9053. | #ifdef HAVE_INTTYPES_H
  9054. | # include <inttypes.h>
  9055. | #endif
  9056. | #ifdef HAVE_STDINT_H
  9057. | # include <stdint.h>
  9058. | #endif
  9059. | #ifdef HAVE_UNISTD_H
  9060. | # include <unistd.h>
  9061. | #endif
  9062. | #include <openssl/rc5.h>
  9063. configure:12876: result: no
  9064. configure:12876: checking openssl/rc5.h presence
  9065. configure:12876: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  9066. conftest.c:50:25: fatal error: openssl/rc5.h: No such file or directory
  9067. #include <openssl/rc5.h>
  9068. ^
  9069. compilation terminated.
  9070. configure:12876: $? = 1
  9071. configure: failed program was:
  9072. | /* confdefs.h */
  9073. | #define PACKAGE_NAME "ipsec-tools"
  9074. | #define PACKAGE_TARNAME "ipsec-tools"
  9075. | #define PACKAGE_VERSION "0.8.1"
  9076. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9077. | #define PACKAGE_BUGREPORT ""
  9078. | #define PACKAGE_URL ""
  9079. | #define PACKAGE "ipsec-tools"
  9080. | #define VERSION "0.8.1"
  9081. | #define STDC_HEADERS 1
  9082. | #define HAVE_SYS_TYPES_H 1
  9083. | #define HAVE_SYS_STAT_H 1
  9084. | #define HAVE_STDLIB_H 1
  9085. | #define HAVE_STRING_H 1
  9086. | #define HAVE_MEMORY_H 1
  9087. | #define HAVE_STRINGS_H 1
  9088. | #define HAVE_INTTYPES_H 1
  9089. | #define HAVE_STDINT_H 1
  9090. | #define HAVE_UNISTD_H 1
  9091. | #define HAVE_DLFCN_H 1
  9092. | #define LT_OBJDIR ".libs/"
  9093. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9094. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9095. | #define STDC_HEADERS 1
  9096. | #define HAVE_SYS_WAIT_H 1
  9097. | #define HAVE_LIMITS_H 1
  9098. | #define HAVE_SYS_TIME_H 1
  9099. | #define HAVE_UNISTD_H 1
  9100. | #define HAVE_STDARG_H 1
  9101. | #define HAVE_SHADOW_H 1
  9102. | #define TIME_WITH_SYS_TIME 1
  9103. | #define RETSIGTYPE void
  9104. | #define HAVE_VPRINTF 1
  9105. | #define HAVE_GETTIMEOFDAY 1
  9106. | #define HAVE_SOCKET 1
  9107. | #define HAVE_STRERROR 1
  9108. | #define HAVE_STRTOL 1
  9109. | #define HAVE_STRTOUL 1
  9110. | #define HAVE_STRDUP 1
  9111. | #define VA_COPY va_copy
  9112. | #define HAVE_FUNC_MACRO /**/
  9113. | #define HAVE_READLINE /**/
  9114. | #define HAVE_OPENSSL_ENGINE_H 1
  9115. | #define HAVE_OPENSSL_AES_H 1
  9116. | #define WITH_SHA2 /**/
  9117. | #define HAVE_SHA2_IN_SHA_H /**/
  9118. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9119. | #define ENABLE_ADMINPORT /**/
  9120. | /* end confdefs.h. */
  9121. | #include <openssl/rc5.h>
  9122. configure:12876: result: no
  9123. configure:12876: checking for openssl/rc5.h
  9124. configure:12876: result: no
  9125. configure:12886: checking for RC5_32_encrypt in -lcrypto_rc5
  9126. configure:12911: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lcrypto_rc5 -lresolv -lreadline -lfl >&5
  9127. /usr/bin/ld: cannot find -lcrypto_rc5
  9128. /usr/bin/ld: cannot find -lfl
  9129. collect2: error: ld returned 1 exit status
  9130. configure:12911: $? = 1
  9131. configure: failed program was:
  9132. | /* confdefs.h */
  9133. | #define PACKAGE_NAME "ipsec-tools"
  9134. | #define PACKAGE_TARNAME "ipsec-tools"
  9135. | #define PACKAGE_VERSION "0.8.1"
  9136. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9137. | #define PACKAGE_BUGREPORT ""
  9138. | #define PACKAGE_URL ""
  9139. | #define PACKAGE "ipsec-tools"
  9140. | #define VERSION "0.8.1"
  9141. | #define STDC_HEADERS 1
  9142. | #define HAVE_SYS_TYPES_H 1
  9143. | #define HAVE_SYS_STAT_H 1
  9144. | #define HAVE_STDLIB_H 1
  9145. | #define HAVE_STRING_H 1
  9146. | #define HAVE_MEMORY_H 1
  9147. | #define HAVE_STRINGS_H 1
  9148. | #define HAVE_INTTYPES_H 1
  9149. | #define HAVE_STDINT_H 1
  9150. | #define HAVE_UNISTD_H 1
  9151. | #define HAVE_DLFCN_H 1
  9152. | #define LT_OBJDIR ".libs/"
  9153. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9154. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9155. | #define STDC_HEADERS 1
  9156. | #define HAVE_SYS_WAIT_H 1
  9157. | #define HAVE_LIMITS_H 1
  9158. | #define HAVE_SYS_TIME_H 1
  9159. | #define HAVE_UNISTD_H 1
  9160. | #define HAVE_STDARG_H 1
  9161. | #define HAVE_SHADOW_H 1
  9162. | #define TIME_WITH_SYS_TIME 1
  9163. | #define RETSIGTYPE void
  9164. | #define HAVE_VPRINTF 1
  9165. | #define HAVE_GETTIMEOFDAY 1
  9166. | #define HAVE_SOCKET 1
  9167. | #define HAVE_STRERROR 1
  9168. | #define HAVE_STRTOL 1
  9169. | #define HAVE_STRTOUL 1
  9170. | #define HAVE_STRDUP 1
  9171. | #define VA_COPY va_copy
  9172. | #define HAVE_FUNC_MACRO /**/
  9173. | #define HAVE_READLINE /**/
  9174. | #define HAVE_OPENSSL_ENGINE_H 1
  9175. | #define HAVE_OPENSSL_AES_H 1
  9176. | #define WITH_SHA2 /**/
  9177. | #define HAVE_SHA2_IN_SHA_H /**/
  9178. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9179. | #define ENABLE_ADMINPORT /**/
  9180. | /* end confdefs.h. */
  9181. |
  9182. | /* Override any GCC internal prototype to avoid an error.
  9183. | Use char because int might match the return type of a GCC
  9184. | builtin and then its argument prototype would still apply. */
  9185. | #ifdef __cplusplus
  9186. | extern "C"
  9187. | #endif
  9188. | char RC5_32_encrypt ();
  9189. | int
  9190. | main ()
  9191. | {
  9192. | return RC5_32_encrypt ();
  9193. | ;
  9194. | return 0;
  9195. | }
  9196. configure:12920: result: no
  9197. configure:12929: checking if --enable-idea option is specified
  9198. configure:12938: result: yes
  9199. configure:12944: checking openssl/idea.h usability
  9200. configure:12944: gcc -c -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c >&5
  9201. configure:12944: $? = 0
  9202. configure:12944: result: yes
  9203. configure:12944: checking openssl/idea.h presence
  9204. configure:12944: gcc -E -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c
  9205. configure:12944: $? = 0
  9206. configure:12944: result: yes
  9207. configure:12944: checking for openssl/idea.h
  9208. configure:12944: result: yes
  9209. configure:12954: checking for idea_encrypt in -lcrypto_idea
  9210. configure:12979: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lcrypto_idea -lresolv -lreadline -lfl >&5
  9211. /usr/bin/ld: cannot find -lcrypto_idea
  9212. /usr/bin/ld: cannot find -lfl
  9213. collect2: error: ld returned 1 exit status
  9214. configure:12979: $? = 1
  9215. configure: failed program was:
  9216. | /* confdefs.h */
  9217. | #define PACKAGE_NAME "ipsec-tools"
  9218. | #define PACKAGE_TARNAME "ipsec-tools"
  9219. | #define PACKAGE_VERSION "0.8.1"
  9220. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9221. | #define PACKAGE_BUGREPORT ""
  9222. | #define PACKAGE_URL ""
  9223. | #define PACKAGE "ipsec-tools"
  9224. | #define VERSION "0.8.1"
  9225. | #define STDC_HEADERS 1
  9226. | #define HAVE_SYS_TYPES_H 1
  9227. | #define HAVE_SYS_STAT_H 1
  9228. | #define HAVE_STDLIB_H 1
  9229. | #define HAVE_STRING_H 1
  9230. | #define HAVE_MEMORY_H 1
  9231. | #define HAVE_STRINGS_H 1
  9232. | #define HAVE_INTTYPES_H 1
  9233. | #define HAVE_STDINT_H 1
  9234. | #define HAVE_UNISTD_H 1
  9235. | #define HAVE_DLFCN_H 1
  9236. | #define LT_OBJDIR ".libs/"
  9237. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9238. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9239. | #define STDC_HEADERS 1
  9240. | #define HAVE_SYS_WAIT_H 1
  9241. | #define HAVE_LIMITS_H 1
  9242. | #define HAVE_SYS_TIME_H 1
  9243. | #define HAVE_UNISTD_H 1
  9244. | #define HAVE_STDARG_H 1
  9245. | #define HAVE_SHADOW_H 1
  9246. | #define TIME_WITH_SYS_TIME 1
  9247. | #define RETSIGTYPE void
  9248. | #define HAVE_VPRINTF 1
  9249. | #define HAVE_GETTIMEOFDAY 1
  9250. | #define HAVE_SOCKET 1
  9251. | #define HAVE_STRERROR 1
  9252. | #define HAVE_STRTOL 1
  9253. | #define HAVE_STRTOUL 1
  9254. | #define HAVE_STRDUP 1
  9255. | #define VA_COPY va_copy
  9256. | #define HAVE_FUNC_MACRO /**/
  9257. | #define HAVE_READLINE /**/
  9258. | #define HAVE_OPENSSL_ENGINE_H 1
  9259. | #define HAVE_OPENSSL_AES_H 1
  9260. | #define WITH_SHA2 /**/
  9261. | #define HAVE_SHA2_IN_SHA_H /**/
  9262. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9263. | #define ENABLE_ADMINPORT /**/
  9264. | #define HAVE_OPENSSL_IDEA_H 1
  9265. | /* end confdefs.h. */
  9266. |
  9267. | /* Override any GCC internal prototype to avoid an error.
  9268. | Use char because int might match the return type of a GCC
  9269. | builtin and then its argument prototype would still apply. */
  9270. | #ifdef __cplusplus
  9271. | extern "C"
  9272. | #endif
  9273. | char idea_encrypt ();
  9274. | int
  9275. | main ()
  9276. | {
  9277. | return idea_encrypt ();
  9278. | ;
  9279. | return 0;
  9280. | }
  9281. configure:12988: result: no
  9282. configure:12999: checking for crypto containing MD5_Init
  9283. configure:13024: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv -lreadline -lfl >&5
  9284. /usr/bin/ld: cannot find -lfl
  9285. collect2: error: ld returned 1 exit status
  9286. configure:13024: $? = 1
  9287. configure: failed program was:
  9288. | /* confdefs.h */
  9289. | #define PACKAGE_NAME "ipsec-tools"
  9290. | #define PACKAGE_TARNAME "ipsec-tools"
  9291. | #define PACKAGE_VERSION "0.8.1"
  9292. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9293. | #define PACKAGE_BUGREPORT ""
  9294. | #define PACKAGE_URL ""
  9295. | #define PACKAGE "ipsec-tools"
  9296. | #define VERSION "0.8.1"
  9297. | #define STDC_HEADERS 1
  9298. | #define HAVE_SYS_TYPES_H 1
  9299. | #define HAVE_SYS_STAT_H 1
  9300. | #define HAVE_STDLIB_H 1
  9301. | #define HAVE_STRING_H 1
  9302. | #define HAVE_MEMORY_H 1
  9303. | #define HAVE_STRINGS_H 1
  9304. | #define HAVE_INTTYPES_H 1
  9305. | #define HAVE_STDINT_H 1
  9306. | #define HAVE_UNISTD_H 1
  9307. | #define HAVE_DLFCN_H 1
  9308. | #define LT_OBJDIR ".libs/"
  9309. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9310. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9311. | #define STDC_HEADERS 1
  9312. | #define HAVE_SYS_WAIT_H 1
  9313. | #define HAVE_LIMITS_H 1
  9314. | #define HAVE_SYS_TIME_H 1
  9315. | #define HAVE_UNISTD_H 1
  9316. | #define HAVE_STDARG_H 1
  9317. | #define HAVE_SHADOW_H 1
  9318. | #define TIME_WITH_SYS_TIME 1
  9319. | #define RETSIGTYPE void
  9320. | #define HAVE_VPRINTF 1
  9321. | #define HAVE_GETTIMEOFDAY 1
  9322. | #define HAVE_SOCKET 1
  9323. | #define HAVE_STRERROR 1
  9324. | #define HAVE_STRTOL 1
  9325. | #define HAVE_STRTOUL 1
  9326. | #define HAVE_STRDUP 1
  9327. | #define VA_COPY va_copy
  9328. | #define HAVE_FUNC_MACRO /**/
  9329. | #define HAVE_READLINE /**/
  9330. | #define HAVE_OPENSSL_ENGINE_H 1
  9331. | #define HAVE_OPENSSL_AES_H 1
  9332. | #define WITH_SHA2 /**/
  9333. | #define HAVE_SHA2_IN_SHA_H /**/
  9334. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9335. | #define ENABLE_ADMINPORT /**/
  9336. | #define HAVE_OPENSSL_IDEA_H 1
  9337. | /* end confdefs.h. */
  9338. |
  9339. | /* Override any GCC internal prototype to avoid an error.
  9340. | Use char because int might match the return type of a GCC
  9341. | builtin and then its argument prototype would still apply. */
  9342. | #ifdef __cplusplus
  9343. | extern "C"
  9344. | #endif
  9345. | char MD5_Init ();
  9346. | int
  9347. | main ()
  9348. | {
  9349. | return MD5_Init ();
  9350. | ;
  9351. | return 0;
  9352. | }
  9353. configure:13046: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lcrypto -lresolv -lreadline -lfl >&5
  9354. /usr/bin/ld: cannot find -lfl
  9355. collect2: error: ld returned 1 exit status
  9356. configure:13046: $? = 1
  9357. configure: failed program was:
  9358. | /* confdefs.h */
  9359. | #define PACKAGE_NAME "ipsec-tools"
  9360. | #define PACKAGE_TARNAME "ipsec-tools"
  9361. | #define PACKAGE_VERSION "0.8.1"
  9362. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9363. | #define PACKAGE_BUGREPORT ""
  9364. | #define PACKAGE_URL ""
  9365. | #define PACKAGE "ipsec-tools"
  9366. | #define VERSION "0.8.1"
  9367. | #define STDC_HEADERS 1
  9368. | #define HAVE_SYS_TYPES_H 1
  9369. | #define HAVE_SYS_STAT_H 1
  9370. | #define HAVE_STDLIB_H 1
  9371. | #define HAVE_STRING_H 1
  9372. | #define HAVE_MEMORY_H 1
  9373. | #define HAVE_STRINGS_H 1
  9374. | #define HAVE_INTTYPES_H 1
  9375. | #define HAVE_STDINT_H 1
  9376. | #define HAVE_UNISTD_H 1
  9377. | #define HAVE_DLFCN_H 1
  9378. | #define LT_OBJDIR ".libs/"
  9379. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9380. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9381. | #define STDC_HEADERS 1
  9382. | #define HAVE_SYS_WAIT_H 1
  9383. | #define HAVE_LIMITS_H 1
  9384. | #define HAVE_SYS_TIME_H 1
  9385. | #define HAVE_UNISTD_H 1
  9386. | #define HAVE_STDARG_H 1
  9387. | #define HAVE_SHADOW_H 1
  9388. | #define TIME_WITH_SYS_TIME 1
  9389. | #define RETSIGTYPE void
  9390. | #define HAVE_VPRINTF 1
  9391. | #define HAVE_GETTIMEOFDAY 1
  9392. | #define HAVE_SOCKET 1
  9393. | #define HAVE_STRERROR 1
  9394. | #define HAVE_STRTOL 1
  9395. | #define HAVE_STRTOUL 1
  9396. | #define HAVE_STRDUP 1
  9397. | #define VA_COPY va_copy
  9398. | #define HAVE_FUNC_MACRO /**/
  9399. | #define HAVE_READLINE /**/
  9400. | #define HAVE_OPENSSL_ENGINE_H 1
  9401. | #define HAVE_OPENSSL_AES_H 1
  9402. | #define WITH_SHA2 /**/
  9403. | #define HAVE_SHA2_IN_SHA_H /**/
  9404. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9405. | #define ENABLE_ADMINPORT /**/
  9406. | #define HAVE_OPENSSL_IDEA_H 1
  9407. | /* end confdefs.h. */
  9408. |
  9409. | /* Override any GCC internal prototype to avoid an error.
  9410. | Use char because int might match the return type of a GCC
  9411. | builtin and then its argument prototype would still apply. */
  9412. | #ifdef __cplusplus
  9413. | extern "C"
  9414. | #endif
  9415. | char MD5_Init ();
  9416. | int
  9417. | main ()
  9418. | {
  9419. | return MD5_Init ();
  9420. | ;
  9421. | return 0;
  9422. | }
  9423. configure:13057: result: no
  9424. configure:13068: checking for util containing login
  9425. configure:13093: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv -lreadline -lfl >&5
  9426. /usr/bin/ld: cannot find -lfl
  9427. collect2: error: ld returned 1 exit status
  9428. configure:13093: $? = 1
  9429. configure: failed program was:
  9430. | /* confdefs.h */
  9431. | #define PACKAGE_NAME "ipsec-tools"
  9432. | #define PACKAGE_TARNAME "ipsec-tools"
  9433. | #define PACKAGE_VERSION "0.8.1"
  9434. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9435. | #define PACKAGE_BUGREPORT ""
  9436. | #define PACKAGE_URL ""
  9437. | #define PACKAGE "ipsec-tools"
  9438. | #define VERSION "0.8.1"
  9439. | #define STDC_HEADERS 1
  9440. | #define HAVE_SYS_TYPES_H 1
  9441. | #define HAVE_SYS_STAT_H 1
  9442. | #define HAVE_STDLIB_H 1
  9443. | #define HAVE_STRING_H 1
  9444. | #define HAVE_MEMORY_H 1
  9445. | #define HAVE_STRINGS_H 1
  9446. | #define HAVE_INTTYPES_H 1
  9447. | #define HAVE_STDINT_H 1
  9448. | #define HAVE_UNISTD_H 1
  9449. | #define HAVE_DLFCN_H 1
  9450. | #define LT_OBJDIR ".libs/"
  9451. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9452. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9453. | #define STDC_HEADERS 1
  9454. | #define HAVE_SYS_WAIT_H 1
  9455. | #define HAVE_LIMITS_H 1
  9456. | #define HAVE_SYS_TIME_H 1
  9457. | #define HAVE_UNISTD_H 1
  9458. | #define HAVE_STDARG_H 1
  9459. | #define HAVE_SHADOW_H 1
  9460. | #define TIME_WITH_SYS_TIME 1
  9461. | #define RETSIGTYPE void
  9462. | #define HAVE_VPRINTF 1
  9463. | #define HAVE_GETTIMEOFDAY 1
  9464. | #define HAVE_SOCKET 1
  9465. | #define HAVE_STRERROR 1
  9466. | #define HAVE_STRTOL 1
  9467. | #define HAVE_STRTOUL 1
  9468. | #define HAVE_STRDUP 1
  9469. | #define VA_COPY va_copy
  9470. | #define HAVE_FUNC_MACRO /**/
  9471. | #define HAVE_READLINE /**/
  9472. | #define HAVE_OPENSSL_ENGINE_H 1
  9473. | #define HAVE_OPENSSL_AES_H 1
  9474. | #define WITH_SHA2 /**/
  9475. | #define HAVE_SHA2_IN_SHA_H /**/
  9476. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9477. | #define ENABLE_ADMINPORT /**/
  9478. | #define HAVE_OPENSSL_IDEA_H 1
  9479. | /* end confdefs.h. */
  9480. |
  9481. | /* Override any GCC internal prototype to avoid an error.
  9482. | Use char because int might match the return type of a GCC
  9483. | builtin and then its argument prototype would still apply. */
  9484. | #ifdef __cplusplus
  9485. | extern "C"
  9486. | #endif
  9487. | char login ();
  9488. | int
  9489. | main ()
  9490. | {
  9491. | return login ();
  9492. | ;
  9493. | return 0;
  9494. | }
  9495. configure:13115: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lutil -lresolv -lreadline -lfl >&5
  9496. /usr/bin/ld: cannot find -lfl
  9497. collect2: error: ld returned 1 exit status
  9498. configure:13115: $? = 1
  9499. configure: failed program was:
  9500. | /* confdefs.h */
  9501. | #define PACKAGE_NAME "ipsec-tools"
  9502. | #define PACKAGE_TARNAME "ipsec-tools"
  9503. | #define PACKAGE_VERSION "0.8.1"
  9504. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9505. | #define PACKAGE_BUGREPORT ""
  9506. | #define PACKAGE_URL ""
  9507. | #define PACKAGE "ipsec-tools"
  9508. | #define VERSION "0.8.1"
  9509. | #define STDC_HEADERS 1
  9510. | #define HAVE_SYS_TYPES_H 1
  9511. | #define HAVE_SYS_STAT_H 1
  9512. | #define HAVE_STDLIB_H 1
  9513. | #define HAVE_STRING_H 1
  9514. | #define HAVE_MEMORY_H 1
  9515. | #define HAVE_STRINGS_H 1
  9516. | #define HAVE_INTTYPES_H 1
  9517. | #define HAVE_STDINT_H 1
  9518. | #define HAVE_UNISTD_H 1
  9519. | #define HAVE_DLFCN_H 1
  9520. | #define LT_OBJDIR ".libs/"
  9521. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9522. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9523. | #define STDC_HEADERS 1
  9524. | #define HAVE_SYS_WAIT_H 1
  9525. | #define HAVE_LIMITS_H 1
  9526. | #define HAVE_SYS_TIME_H 1
  9527. | #define HAVE_UNISTD_H 1
  9528. | #define HAVE_STDARG_H 1
  9529. | #define HAVE_SHADOW_H 1
  9530. | #define TIME_WITH_SYS_TIME 1
  9531. | #define RETSIGTYPE void
  9532. | #define HAVE_VPRINTF 1
  9533. | #define HAVE_GETTIMEOFDAY 1
  9534. | #define HAVE_SOCKET 1
  9535. | #define HAVE_STRERROR 1
  9536. | #define HAVE_STRTOL 1
  9537. | #define HAVE_STRTOUL 1
  9538. | #define HAVE_STRDUP 1
  9539. | #define VA_COPY va_copy
  9540. | #define HAVE_FUNC_MACRO /**/
  9541. | #define HAVE_READLINE /**/
  9542. | #define HAVE_OPENSSL_ENGINE_H 1
  9543. | #define HAVE_OPENSSL_AES_H 1
  9544. | #define WITH_SHA2 /**/
  9545. | #define HAVE_SHA2_IN_SHA_H /**/
  9546. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9547. | #define ENABLE_ADMINPORT /**/
  9548. | #define HAVE_OPENSSL_IDEA_H 1
  9549. | /* end confdefs.h. */
  9550. |
  9551. | /* Override any GCC internal prototype to avoid an error.
  9552. | Use char because int might match the return type of a GCC
  9553. | builtin and then its argument prototype would still apply. */
  9554. | #ifdef __cplusplus
  9555. | extern "C"
  9556. | #endif
  9557. | char login ();
  9558. | int
  9559. | main ()
  9560. | {
  9561. | return login ();
  9562. | ;
  9563. | return 0;
  9564. | }
  9565. configure:13126: result: no
  9566. configure:13136: checking if --with-libiconv option is specified
  9567. configure:13146: result: no
  9568. configure:13336: checking if --enable-hybrid option is specified
  9569. configure:13345: result: yes
  9570. configure:13363: checking if --enable-frag option is specified
  9571. configure:13372: result: yes
  9572. configure:13390: checking if --with-libradius option is specified
  9573. configure:13400: result: no
  9574. configure:13593: checking if --with-libpam option is specified
  9575. configure:13603: result: yes
  9576. configure:13611: checking for pam containing pam_start
  9577. configure:13636: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv -lreadline -lfl -lcrypt -lcrypt >&5
  9578. /usr/bin/ld: cannot find -lfl
  9579. collect2: error: ld returned 1 exit status
  9580. configure:13636: $? = 1
  9581. configure: failed program was:
  9582. | /* confdefs.h */
  9583. | #define PACKAGE_NAME "ipsec-tools"
  9584. | #define PACKAGE_TARNAME "ipsec-tools"
  9585. | #define PACKAGE_VERSION "0.8.1"
  9586. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9587. | #define PACKAGE_BUGREPORT ""
  9588. | #define PACKAGE_URL ""
  9589. | #define PACKAGE "ipsec-tools"
  9590. | #define VERSION "0.8.1"
  9591. | #define STDC_HEADERS 1
  9592. | #define HAVE_SYS_TYPES_H 1
  9593. | #define HAVE_SYS_STAT_H 1
  9594. | #define HAVE_STDLIB_H 1
  9595. | #define HAVE_STRING_H 1
  9596. | #define HAVE_MEMORY_H 1
  9597. | #define HAVE_STRINGS_H 1
  9598. | #define HAVE_INTTYPES_H 1
  9599. | #define HAVE_STDINT_H 1
  9600. | #define HAVE_UNISTD_H 1
  9601. | #define HAVE_DLFCN_H 1
  9602. | #define LT_OBJDIR ".libs/"
  9603. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9604. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9605. | #define STDC_HEADERS 1
  9606. | #define HAVE_SYS_WAIT_H 1
  9607. | #define HAVE_LIMITS_H 1
  9608. | #define HAVE_SYS_TIME_H 1
  9609. | #define HAVE_UNISTD_H 1
  9610. | #define HAVE_STDARG_H 1
  9611. | #define HAVE_SHADOW_H 1
  9612. | #define TIME_WITH_SYS_TIME 1
  9613. | #define RETSIGTYPE void
  9614. | #define HAVE_VPRINTF 1
  9615. | #define HAVE_GETTIMEOFDAY 1
  9616. | #define HAVE_SOCKET 1
  9617. | #define HAVE_STRERROR 1
  9618. | #define HAVE_STRTOL 1
  9619. | #define HAVE_STRTOUL 1
  9620. | #define HAVE_STRDUP 1
  9621. | #define VA_COPY va_copy
  9622. | #define HAVE_FUNC_MACRO /**/
  9623. | #define HAVE_READLINE /**/
  9624. | #define HAVE_OPENSSL_ENGINE_H 1
  9625. | #define HAVE_OPENSSL_AES_H 1
  9626. | #define WITH_SHA2 /**/
  9627. | #define HAVE_SHA2_IN_SHA_H /**/
  9628. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9629. | #define ENABLE_ADMINPORT /**/
  9630. | #define HAVE_OPENSSL_IDEA_H 1
  9631. | #define ENABLE_HYBRID /**/
  9632. | #define ENABLE_FRAG /**/
  9633. | /* end confdefs.h. */
  9634. |
  9635. | /* Override any GCC internal prototype to avoid an error.
  9636. | Use char because int might match the return type of a GCC
  9637. | builtin and then its argument prototype would still apply. */
  9638. | #ifdef __cplusplus
  9639. | extern "C"
  9640. | #endif
  9641. | char pam_start ();
  9642. | int
  9643. | main ()
  9644. | {
  9645. | return pam_start ();
  9646. | ;
  9647. | return 0;
  9648. | }
  9649. configure:13658: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lpam -lresolv -lreadline -lfl -lcrypt -lcrypt >&5
  9650. /usr/bin/ld: cannot find -lfl
  9651. collect2: error: ld returned 1 exit status
  9652. configure:13658: $? = 1
  9653. configure: failed program was:
  9654. | /* confdefs.h */
  9655. | #define PACKAGE_NAME "ipsec-tools"
  9656. | #define PACKAGE_TARNAME "ipsec-tools"
  9657. | #define PACKAGE_VERSION "0.8.1"
  9658. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9659. | #define PACKAGE_BUGREPORT ""
  9660. | #define PACKAGE_URL ""
  9661. | #define PACKAGE "ipsec-tools"
  9662. | #define VERSION "0.8.1"
  9663. | #define STDC_HEADERS 1
  9664. | #define HAVE_SYS_TYPES_H 1
  9665. | #define HAVE_SYS_STAT_H 1
  9666. | #define HAVE_STDLIB_H 1
  9667. | #define HAVE_STRING_H 1
  9668. | #define HAVE_MEMORY_H 1
  9669. | #define HAVE_STRINGS_H 1
  9670. | #define HAVE_INTTYPES_H 1
  9671. | #define HAVE_STDINT_H 1
  9672. | #define HAVE_UNISTD_H 1
  9673. | #define HAVE_DLFCN_H 1
  9674. | #define LT_OBJDIR ".libs/"
  9675. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9676. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9677. | #define STDC_HEADERS 1
  9678. | #define HAVE_SYS_WAIT_H 1
  9679. | #define HAVE_LIMITS_H 1
  9680. | #define HAVE_SYS_TIME_H 1
  9681. | #define HAVE_UNISTD_H 1
  9682. | #define HAVE_STDARG_H 1
  9683. | #define HAVE_SHADOW_H 1
  9684. | #define TIME_WITH_SYS_TIME 1
  9685. | #define RETSIGTYPE void
  9686. | #define HAVE_VPRINTF 1
  9687. | #define HAVE_GETTIMEOFDAY 1
  9688. | #define HAVE_SOCKET 1
  9689. | #define HAVE_STRERROR 1
  9690. | #define HAVE_STRTOL 1
  9691. | #define HAVE_STRTOUL 1
  9692. | #define HAVE_STRDUP 1
  9693. | #define VA_COPY va_copy
  9694. | #define HAVE_FUNC_MACRO /**/
  9695. | #define HAVE_READLINE /**/
  9696. | #define HAVE_OPENSSL_ENGINE_H 1
  9697. | #define HAVE_OPENSSL_AES_H 1
  9698. | #define WITH_SHA2 /**/
  9699. | #define HAVE_SHA2_IN_SHA_H /**/
  9700. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9701. | #define ENABLE_ADMINPORT /**/
  9702. | #define HAVE_OPENSSL_IDEA_H 1
  9703. | #define ENABLE_HYBRID /**/
  9704. | #define ENABLE_FRAG /**/
  9705. | /* end confdefs.h. */
  9706. |
  9707. | /* Override any GCC internal prototype to avoid an error.
  9708. | Use char because int might match the return type of a GCC
  9709. | builtin and then its argument prototype would still apply. */
  9710. | #ifdef __cplusplus
  9711. | extern "C"
  9712. | #endif
  9713. | char pam_start ();
  9714. | int
  9715. | main ()
  9716. | {
  9717. | return pam_start ();
  9718. | ;
  9719. | return 0;
  9720. | }
  9721. configure:13669: result: no
  9722. configure:13785: checking for pam_start
  9723. configure:13785: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv -lreadline -lfl -lcrypt -lcrypt -L/lib -R/lib -lpam >&5
  9724. gcc: error: unrecognized command line option '-R'
  9725. configure:13785: $? = 1
  9726. configure: failed program was:
  9727. | /* confdefs.h */
  9728. | #define PACKAGE_NAME "ipsec-tools"
  9729. | #define PACKAGE_TARNAME "ipsec-tools"
  9730. | #define PACKAGE_VERSION "0.8.1"
  9731. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9732. | #define PACKAGE_BUGREPORT ""
  9733. | #define PACKAGE_URL ""
  9734. | #define PACKAGE "ipsec-tools"
  9735. | #define VERSION "0.8.1"
  9736. | #define STDC_HEADERS 1
  9737. | #define HAVE_SYS_TYPES_H 1
  9738. | #define HAVE_SYS_STAT_H 1
  9739. | #define HAVE_STDLIB_H 1
  9740. | #define HAVE_STRING_H 1
  9741. | #define HAVE_MEMORY_H 1
  9742. | #define HAVE_STRINGS_H 1
  9743. | #define HAVE_INTTYPES_H 1
  9744. | #define HAVE_STDINT_H 1
  9745. | #define HAVE_UNISTD_H 1
  9746. | #define HAVE_DLFCN_H 1
  9747. | #define LT_OBJDIR ".libs/"
  9748. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9749. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9750. | #define STDC_HEADERS 1
  9751. | #define HAVE_SYS_WAIT_H 1
  9752. | #define HAVE_LIMITS_H 1
  9753. | #define HAVE_SYS_TIME_H 1
  9754. | #define HAVE_UNISTD_H 1
  9755. | #define HAVE_STDARG_H 1
  9756. | #define HAVE_SHADOW_H 1
  9757. | #define TIME_WITH_SYS_TIME 1
  9758. | #define RETSIGTYPE void
  9759. | #define HAVE_VPRINTF 1
  9760. | #define HAVE_GETTIMEOFDAY 1
  9761. | #define HAVE_SOCKET 1
  9762. | #define HAVE_STRERROR 1
  9763. | #define HAVE_STRTOL 1
  9764. | #define HAVE_STRTOUL 1
  9765. | #define HAVE_STRDUP 1
  9766. | #define VA_COPY va_copy
  9767. | #define HAVE_FUNC_MACRO /**/
  9768. | #define HAVE_READLINE /**/
  9769. | #define HAVE_OPENSSL_ENGINE_H 1
  9770. | #define HAVE_OPENSSL_AES_H 1
  9771. | #define WITH_SHA2 /**/
  9772. | #define HAVE_SHA2_IN_SHA_H /**/
  9773. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9774. | #define ENABLE_ADMINPORT /**/
  9775. | #define HAVE_OPENSSL_IDEA_H 1
  9776. | #define ENABLE_HYBRID /**/
  9777. | #define ENABLE_FRAG /**/
  9778. | #define HAVE_LIBPAM /**/
  9779. | /* end confdefs.h. */
  9780. | /* Define pam_start to an innocuous variant, in case <limits.h> declares pam_start.
  9781. | For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9782. | #define pam_start innocuous_pam_start
  9783. |
  9784. | /* System header to define __stub macros and hopefully few prototypes,
  9785. | which can conflict with char pam_start (); below.
  9786. | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9787. | <limits.h> exists even on freestanding compilers. */
  9788. |
  9789. | #ifdef __STDC__
  9790. | # include <limits.h>
  9791. | #else
  9792. | # include <assert.h>
  9793. | #endif
  9794. |
  9795. | #undef pam_start
  9796. |
  9797. | /* Override any GCC internal prototype to avoid an error.
  9798. | Use char because int might match the return type of a GCC
  9799. | builtin and then its argument prototype would still apply. */
  9800. | #ifdef __cplusplus
  9801. | extern "C"
  9802. | #endif
  9803. | char pam_start ();
  9804. | /* The GNU C library defines this for functions which it implements
  9805. | to always fail with ENOSYS. Some functions are actually named
  9806. | something starting with __ and the normal name is an alias. */
  9807. | #if defined __stub_pam_start || defined __stub___pam_start
  9808. | choke me
  9809. | #endif
  9810. |
  9811. | int
  9812. | main ()
  9813. | {
  9814. | return pam_start ();
  9815. | ;
  9816. | return 0;
  9817. | }
  9818. configure:13785: result: no
  9819. configure:13796: checking if --with-libldap option is specified
  9820. configure:13806: result: yes
  9821. configure:13814: checking for ldap containing ldap_init
  9822. configure:13839: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv -lreadline -lfl -lcrypt -lcrypt -L/lib -R/lib -lpam >&5
  9823. gcc: error: unrecognized command line option '-R'
  9824. configure:13839: $? = 1
  9825. configure: failed program was:
  9826. | /* confdefs.h */
  9827. | #define PACKAGE_NAME "ipsec-tools"
  9828. | #define PACKAGE_TARNAME "ipsec-tools"
  9829. | #define PACKAGE_VERSION "0.8.1"
  9830. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9831. | #define PACKAGE_BUGREPORT ""
  9832. | #define PACKAGE_URL ""
  9833. | #define PACKAGE "ipsec-tools"
  9834. | #define VERSION "0.8.1"
  9835. | #define STDC_HEADERS 1
  9836. | #define HAVE_SYS_TYPES_H 1
  9837. | #define HAVE_SYS_STAT_H 1
  9838. | #define HAVE_STDLIB_H 1
  9839. | #define HAVE_STRING_H 1
  9840. | #define HAVE_MEMORY_H 1
  9841. | #define HAVE_STRINGS_H 1
  9842. | #define HAVE_INTTYPES_H 1
  9843. | #define HAVE_STDINT_H 1
  9844. | #define HAVE_UNISTD_H 1
  9845. | #define HAVE_DLFCN_H 1
  9846. | #define LT_OBJDIR ".libs/"
  9847. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9848. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9849. | #define STDC_HEADERS 1
  9850. | #define HAVE_SYS_WAIT_H 1
  9851. | #define HAVE_LIMITS_H 1
  9852. | #define HAVE_SYS_TIME_H 1
  9853. | #define HAVE_UNISTD_H 1
  9854. | #define HAVE_STDARG_H 1
  9855. | #define HAVE_SHADOW_H 1
  9856. | #define TIME_WITH_SYS_TIME 1
  9857. | #define RETSIGTYPE void
  9858. | #define HAVE_VPRINTF 1
  9859. | #define HAVE_GETTIMEOFDAY 1
  9860. | #define HAVE_SOCKET 1
  9861. | #define HAVE_STRERROR 1
  9862. | #define HAVE_STRTOL 1
  9863. | #define HAVE_STRTOUL 1
  9864. | #define HAVE_STRDUP 1
  9865. | #define VA_COPY va_copy
  9866. | #define HAVE_FUNC_MACRO /**/
  9867. | #define HAVE_READLINE /**/
  9868. | #define HAVE_OPENSSL_ENGINE_H 1
  9869. | #define HAVE_OPENSSL_AES_H 1
  9870. | #define WITH_SHA2 /**/
  9871. | #define HAVE_SHA2_IN_SHA_H /**/
  9872. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9873. | #define ENABLE_ADMINPORT /**/
  9874. | #define HAVE_OPENSSL_IDEA_H 1
  9875. | #define ENABLE_HYBRID /**/
  9876. | #define ENABLE_FRAG /**/
  9877. | #define HAVE_LIBPAM /**/
  9878. | /* end confdefs.h. */
  9879. |
  9880. | /* Override any GCC internal prototype to avoid an error.
  9881. | Use char because int might match the return type of a GCC
  9882. | builtin and then its argument prototype would still apply. */
  9883. | #ifdef __cplusplus
  9884. | extern "C"
  9885. | #endif
  9886. | char ldap_init ();
  9887. | int
  9888. | main ()
  9889. | {
  9890. | return ldap_init ();
  9891. | ;
  9892. | return 0;
  9893. | }
  9894. configure:13861: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lldap -lresolv -lreadline -lfl -lcrypt -lcrypt -L/lib -R/lib -lpam >&5
  9895. gcc: error: unrecognized command line option '-R'
  9896. configure:13861: $? = 1
  9897. configure: failed program was:
  9898. | /* confdefs.h */
  9899. | #define PACKAGE_NAME "ipsec-tools"
  9900. | #define PACKAGE_TARNAME "ipsec-tools"
  9901. | #define PACKAGE_VERSION "0.8.1"
  9902. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9903. | #define PACKAGE_BUGREPORT ""
  9904. | #define PACKAGE_URL ""
  9905. | #define PACKAGE "ipsec-tools"
  9906. | #define VERSION "0.8.1"
  9907. | #define STDC_HEADERS 1
  9908. | #define HAVE_SYS_TYPES_H 1
  9909. | #define HAVE_SYS_STAT_H 1
  9910. | #define HAVE_STDLIB_H 1
  9911. | #define HAVE_STRING_H 1
  9912. | #define HAVE_MEMORY_H 1
  9913. | #define HAVE_STRINGS_H 1
  9914. | #define HAVE_INTTYPES_H 1
  9915. | #define HAVE_STDINT_H 1
  9916. | #define HAVE_UNISTD_H 1
  9917. | #define HAVE_DLFCN_H 1
  9918. | #define LT_OBJDIR ".libs/"
  9919. | #define PATH_IPSEC_H <netinet/ipsec.h>
  9920. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  9921. | #define STDC_HEADERS 1
  9922. | #define HAVE_SYS_WAIT_H 1
  9923. | #define HAVE_LIMITS_H 1
  9924. | #define HAVE_SYS_TIME_H 1
  9925. | #define HAVE_UNISTD_H 1
  9926. | #define HAVE_STDARG_H 1
  9927. | #define HAVE_SHADOW_H 1
  9928. | #define TIME_WITH_SYS_TIME 1
  9929. | #define RETSIGTYPE void
  9930. | #define HAVE_VPRINTF 1
  9931. | #define HAVE_GETTIMEOFDAY 1
  9932. | #define HAVE_SOCKET 1
  9933. | #define HAVE_STRERROR 1
  9934. | #define HAVE_STRTOL 1
  9935. | #define HAVE_STRTOUL 1
  9936. | #define HAVE_STRDUP 1
  9937. | #define VA_COPY va_copy
  9938. | #define HAVE_FUNC_MACRO /**/
  9939. | #define HAVE_READLINE /**/
  9940. | #define HAVE_OPENSSL_ENGINE_H 1
  9941. | #define HAVE_OPENSSL_AES_H 1
  9942. | #define WITH_SHA2 /**/
  9943. | #define HAVE_SHA2_IN_SHA_H /**/
  9944. | #define HAVE_OPENSSL_CAMELLIA_H 1
  9945. | #define ENABLE_ADMINPORT /**/
  9946. | #define HAVE_OPENSSL_IDEA_H 1
  9947. | #define ENABLE_HYBRID /**/
  9948. | #define ENABLE_FRAG /**/
  9949. | #define HAVE_LIBPAM /**/
  9950. | /* end confdefs.h. */
  9951. |
  9952. | /* Override any GCC internal prototype to avoid an error.
  9953. | Use char because int might match the return type of a GCC
  9954. | builtin and then its argument prototype would still apply. */
  9955. | #ifdef __cplusplus
  9956. | extern "C"
  9957. | #endif
  9958. | char ldap_init ();
  9959. | int
  9960. | main ()
  9961. | {
  9962. | return ldap_init ();
  9963. | ;
  9964. | return 0;
  9965. | }
  9966. configure:13872: result: no
  9967. configure:14006: gcc -c -g -O2 -Wall -Werror -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include -I${top_srcdir}/src/racoon/missing conftest.c >&5
  9968. configure:14006: $? = 0
  9969. configure:14007: result: ok
  9970. configure:14024: checking if --enable-gssapi option is specified
  9971. configure:14033: result: no
  9972. configure:14037: checking for krb5-config
  9973. configure:14055: found /usr/bin/krb5-config
  9974. configure:14068: result: /usr/bin/krb5-config
  9975. configure:14216: checking if --enable-stats option is specified
  9976. configure:14230: result: yes
  9977. configure:14233: checking if --enable-dpd option is specified
  9978. configure:14247: result: yes
  9979. configure:14250: checking if --enable-samode-unspec option is specified
  9980. configure:14277: result: no
  9981. configure:14281: checking whether to enable ipv6
  9982. configure:14318: gcc -o conftest -g -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv -lreadline -lfl -lcrypt -lcrypt -L/lib -R/lib -lpam -L/lib -R/lib -lldap >&5
  9983. gcc: error: unrecognized command line option '-R'
  9984. gcc: error: unrecognized command line option '-R'
  9985. configure:14318: $? = 1
  9986. configure: program exited with status 1
  9987. configure: failed program was:
  9988. | /* confdefs.h */
  9989. | #define PACKAGE_NAME "ipsec-tools"
  9990. | #define PACKAGE_TARNAME "ipsec-tools"
  9991. | #define PACKAGE_VERSION "0.8.1"
  9992. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  9993. | #define PACKAGE_BUGREPORT ""
  9994. | #define PACKAGE_URL ""
  9995. | #define PACKAGE "ipsec-tools"
  9996. | #define VERSION "0.8.1"
  9997. | #define STDC_HEADERS 1
  9998. | #define HAVE_SYS_TYPES_H 1
  9999. | #define HAVE_SYS_STAT_H 1
  10000. | #define HAVE_STDLIB_H 1
  10001. | #define HAVE_STRING_H 1
  10002. | #define HAVE_MEMORY_H 1
  10003. | #define HAVE_STRINGS_H 1
  10004. | #define HAVE_INTTYPES_H 1
  10005. | #define HAVE_STDINT_H 1
  10006. | #define HAVE_UNISTD_H 1
  10007. | #define HAVE_DLFCN_H 1
  10008. | #define LT_OBJDIR ".libs/"
  10009. | #define PATH_IPSEC_H <netinet/ipsec.h>
  10010. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  10011. | #define STDC_HEADERS 1
  10012. | #define HAVE_SYS_WAIT_H 1
  10013. | #define HAVE_LIMITS_H 1
  10014. | #define HAVE_SYS_TIME_H 1
  10015. | #define HAVE_UNISTD_H 1
  10016. | #define HAVE_STDARG_H 1
  10017. | #define HAVE_SHADOW_H 1
  10018. | #define TIME_WITH_SYS_TIME 1
  10019. | #define RETSIGTYPE void
  10020. | #define HAVE_VPRINTF 1
  10021. | #define HAVE_GETTIMEOFDAY 1
  10022. | #define HAVE_SOCKET 1
  10023. | #define HAVE_STRERROR 1
  10024. | #define HAVE_STRTOL 1
  10025. | #define HAVE_STRTOUL 1
  10026. | #define HAVE_STRDUP 1
  10027. | #define VA_COPY va_copy
  10028. | #define HAVE_FUNC_MACRO /**/
  10029. | #define HAVE_READLINE /**/
  10030. | #define HAVE_OPENSSL_ENGINE_H 1
  10031. | #define HAVE_OPENSSL_AES_H 1
  10032. | #define WITH_SHA2 /**/
  10033. | #define HAVE_SHA2_IN_SHA_H /**/
  10034. | #define HAVE_OPENSSL_CAMELLIA_H 1
  10035. | #define ENABLE_ADMINPORT /**/
  10036. | #define HAVE_OPENSSL_IDEA_H 1
  10037. | #define ENABLE_HYBRID /**/
  10038. | #define ENABLE_FRAG /**/
  10039. | #define HAVE_LIBPAM /**/
  10040. | #define HAVE_LIBLDAP /**/
  10041. | #define ENABLE_STATS /**/
  10042. | #define ENABLE_DPD /**/
  10043. | /* end confdefs.h. */
  10044. | /* AF_INET6 avalable check */
  10045. | #include <sys/types.h>
  10046. | #include <sys/socket.h>
  10047. | main()
  10048. | {
  10049. | exit(0);
  10050. | if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
  10051. | exit(1);
  10052. | else
  10053. | exit(0);
  10054. | }
  10055. |
  10056. configure:14326: result: no
  10057. configure:14372: checking getaddrinfo bug
  10058. configure:14472: gcc -o conftest -Wall -O2 -D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include conftest.c -lresolv -lreadline -lfl -lcrypt -lcrypt -L/lib -R/lib -lpam -L/lib -R/lib -lldap >&5
  10059. gcc: error: unrecognized command line option '-R'
  10060. gcc: error: unrecognized command line option '-R'
  10061. configure:14472: $? = 1
  10062. configure: program exited with status 1
  10063. configure: failed program was:
  10064. | /* confdefs.h */
  10065. | #define PACKAGE_NAME "ipsec-tools"
  10066. | #define PACKAGE_TARNAME "ipsec-tools"
  10067. | #define PACKAGE_VERSION "0.8.1"
  10068. | #define PACKAGE_STRING "ipsec-tools 0.8.1"
  10069. | #define PACKAGE_BUGREPORT ""
  10070. | #define PACKAGE_URL ""
  10071. | #define PACKAGE "ipsec-tools"
  10072. | #define VERSION "0.8.1"
  10073. | #define STDC_HEADERS 1
  10074. | #define HAVE_SYS_TYPES_H 1
  10075. | #define HAVE_SYS_STAT_H 1
  10076. | #define HAVE_STDLIB_H 1
  10077. | #define HAVE_STRING_H 1
  10078. | #define HAVE_MEMORY_H 1
  10079. | #define HAVE_STRINGS_H 1
  10080. | #define HAVE_INTTYPES_H 1
  10081. | #define HAVE_STDINT_H 1
  10082. | #define HAVE_UNISTD_H 1
  10083. | #define HAVE_DLFCN_H 1
  10084. | #define LT_OBJDIR ".libs/"
  10085. | #define PATH_IPSEC_H <netinet/ipsec.h>
  10086. | #define HAVE_PFKEY_POLICY_PRIORITY /**/
  10087. | #define STDC_HEADERS 1
  10088. | #define HAVE_SYS_WAIT_H 1
  10089. | #define HAVE_LIMITS_H 1
  10090. | #define HAVE_SYS_TIME_H 1
  10091. | #define HAVE_UNISTD_H 1
  10092. | #define HAVE_STDARG_H 1
  10093. | #define HAVE_SHADOW_H 1
  10094. | #define TIME_WITH_SYS_TIME 1
  10095. | #define RETSIGTYPE void
  10096. | #define HAVE_VPRINTF 1
  10097. | #define HAVE_GETTIMEOFDAY 1
  10098. | #define HAVE_SOCKET 1
  10099. | #define HAVE_STRERROR 1
  10100. | #define HAVE_STRTOL 1
  10101. | #define HAVE_STRTOUL 1
  10102. | #define HAVE_STRDUP 1
  10103. | #define VA_COPY va_copy
  10104. | #define HAVE_FUNC_MACRO /**/
  10105. | #define HAVE_READLINE /**/
  10106. | #define HAVE_OPENSSL_ENGINE_H 1
  10107. | #define HAVE_OPENSSL_AES_H 1
  10108. | #define WITH_SHA2 /**/
  10109. | #define HAVE_SHA2_IN_SHA_H /**/
  10110. | #define HAVE_OPENSSL_CAMELLIA_H 1
  10111. | #define ENABLE_ADMINPORT /**/
  10112. | #define HAVE_OPENSSL_IDEA_H 1
  10113. | #define ENABLE_HYBRID /**/
  10114. | #define ENABLE_FRAG /**/
  10115. | #define HAVE_LIBPAM /**/
  10116. | #define HAVE_LIBLDAP /**/
  10117. | #define ENABLE_STATS /**/
  10118. | #define ENABLE_DPD /**/
  10119. | /* end confdefs.h. */
  10120. |
  10121. | #include <sys/types.h>
  10122. | #include <sys/socket.h>
  10123. | #include <netdb.h>
  10124. | #include <stdlib.h>
  10125. | #include <string.h>
  10126. | #include <netinet/in.h>
  10127. |
  10128. | int main()
  10129. | {
  10130. | int passive, gaierr, inet4 = 0, inet6 = 0;
  10131. | struct addrinfo hints, *ai, *aitop;
  10132. | char straddr[INET6_ADDRSTRLEN], strport[16];
  10133. |
  10134. | for (passive = 0; passive <= 1; passive++) {
  10135. | memset(&hints, 0, sizeof(hints));
  10136. | hints.ai_family = AF_UNSPEC;
  10137. | hints.ai_flags = passive ? AI_PASSIVE : 0;
  10138. | hints.ai_protocol = IPPROTO_TCP;
  10139. | hints.ai_socktype = SOCK_STREAM;
  10140. | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
  10141. | (void)gai_strerror(gaierr);
  10142. | goto bad;
  10143. | }
  10144. | for (ai = aitop; ai; ai = ai->ai_next) {
  10145. | if (ai->ai_addr == NULL ||
  10146. | ai->ai_addrlen == 0 ||
  10147. | getnameinfo(ai->ai_addr, ai->ai_addrlen,
  10148. | straddr, sizeof(straddr), strport, sizeof(strport),
  10149. | NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
  10150. | goto bad;
  10151. | }
  10152. | switch (ai->ai_family) {
  10153. | case AF_INET:
  10154. | if (strcmp(strport, "54321") != 0) {
  10155. | goto bad;
  10156. | }
  10157. | if (passive) {
  10158. | if (strcmp(straddr, "0.0.0.0") != 0) {
  10159. | goto bad;
  10160. | }
  10161. | } else {
  10162. | if (strcmp(straddr, "127.0.0.1") != 0) {
  10163. | goto bad;
  10164. | }
  10165. | }
  10166. | inet4++;
  10167. | break;
  10168. | case AF_INET6:
  10169. | if (strcmp(strport, "54321") != 0) {
  10170. | goto bad;
  10171. | }
  10172. | if (passive) {
  10173. | if (strcmp(straddr, "::") != 0) {
  10174. | goto bad;
  10175. | }
  10176. | } else {
  10177. | if (strcmp(straddr, "::1") != 0) {
  10178. | goto bad;
  10179. | }
  10180. | }
  10181. | inet6++;
  10182. | break;
  10183. | case AF_UNSPEC:
  10184. | goto bad;
  10185. | break;
  10186. | default:
  10187. | /* another family support? */
  10188. | break;
  10189. | }
  10190. | }
  10191. | }
  10192. |
  10193. | if (!(inet4 == 0 || inet4 == 2))
  10194. | goto bad;
  10195. | if (!(inet6 == 0 || inet6 == 2))
  10196. | goto bad;
  10197. |
  10198. | if (aitop)
  10199. | freeaddrinfo(aitop);
  10200. | exit(0);
  10201. |
  10202. | bad:
  10203. | if (aitop)
  10204. | freeaddrinfo(aitop);
  10205. | exit(1);
  10206. | }
  10207. |
  10208. configure:14477: result: buggy
  10209. configure:14489: error: Broken getaddrinfo() is no longer supported. Aborting.
  10210.  
  10211. ## ---------------- ##
  10212. ## Cache variables. ##
  10213. ## ---------------- ##
  10214.  
  10215. ac_cv_build=x86_64-unknown-linux-gnu
  10216. ac_cv_c_compiler_gnu=yes
  10217. ac_cv_c_const=yes
  10218. ac_cv_env_CC_set=
  10219. ac_cv_env_CC_value=
  10220. ac_cv_env_CFLAGS_set=
  10221. ac_cv_env_CFLAGS_value=
  10222. ac_cv_env_CPPFLAGS_set=
  10223. ac_cv_env_CPPFLAGS_value=
  10224. ac_cv_env_CPP_set=
  10225. ac_cv_env_CPP_value=
  10226. ac_cv_env_LDFLAGS_set=
  10227. ac_cv_env_LDFLAGS_value=
  10228. ac_cv_env_LIBS_set=
  10229. ac_cv_env_LIBS_value=
  10230. ac_cv_env_YACC_set=
  10231. ac_cv_env_YACC_value=
  10232. ac_cv_env_YFLAGS_set=
  10233. ac_cv_env_YFLAGS_value=
  10234. ac_cv_env_build_alias_set=
  10235. ac_cv_env_build_alias_value=
  10236. ac_cv_env_host_alias_set=
  10237. ac_cv_env_host_alias_value=
  10238. ac_cv_env_target_alias_set=
  10239. ac_cv_env_target_alias_value=
  10240. ac_cv_func__doprnt=no
  10241. ac_cv_func_gettimeofday=yes
  10242. ac_cv_func_memcmp_working=yes
  10243. ac_cv_func_pam_start=no
  10244. ac_cv_func_select=no
  10245. ac_cv_func_socket=yes
  10246. ac_cv_func_strdup=yes
  10247. ac_cv_func_strerror=yes
  10248. ac_cv_func_strlcat=no
  10249. ac_cv_func_strlcpy=no
  10250. ac_cv_func_strtol=yes
  10251. ac_cv_func_strtoul=yes
  10252. ac_cv_func_vprintf=yes
  10253. ac_cv_header__usr_include_linux_pfkeyv2_h=yes
  10254. ac_cv_header_dlfcn_h=yes
  10255. ac_cv_header_inttypes_h=yes
  10256. ac_cv_header_limits_h=yes
  10257. ac_cv_header_memory_h=yes
  10258. ac_cv_header_net_pfkeyv2_h=no
  10259. ac_cv_header_netinet6_ipsec_h=no
  10260. ac_cv_header_netinet_ipsec_h=no
  10261. ac_cv_header_netipsec_ipsec_h=no
  10262. ac_cv_header_openssl_aes_h=yes
  10263. ac_cv_header_openssl_camellia_h=yes
  10264. ac_cv_header_openssl_engine_h=yes
  10265. ac_cv_header_openssl_idea_h=yes
  10266. ac_cv_header_openssl_rc5_h=no
  10267. ac_cv_header_openssl_sha2_h=no
  10268. ac_cv_header_readline_readline_h=yes
  10269. ac_cv_header_shadow_h=yes
  10270. ac_cv_header_stdarg_h=yes
  10271. ac_cv_header_stdc=yes
  10272. ac_cv_header_stdint_h=yes
  10273. ac_cv_header_stdlib_h=yes
  10274. ac_cv_header_string_h=yes
  10275. ac_cv_header_strings_h=yes
  10276. ac_cv_header_sys_stat_h=yes
  10277. ac_cv_header_sys_time_h=yes
  10278. ac_cv_header_sys_types_h=yes
  10279. ac_cv_header_sys_wait_h=yes
  10280. ac_cv_header_time=yes
  10281. ac_cv_header_unistd_h=yes
  10282. ac_cv_header_varargs_h=no
  10283. ac_cv_host=x86_64-unknown-linux-gnu
  10284. ac_cv_lib_crypto_idea_idea_encrypt=no
  10285. ac_cv_lib_crypto_rc5_RC5_32_encrypt=no
  10286. ac_cv_lib_lex='none needed'
  10287. ac_cv_lib_readline_readline=yes
  10288. ac_cv_member_struct_sadb_x_policy_sadb_x_policy_priority=yes
  10289. ac_cv_objext=o
  10290. ac_cv_path_EGREP='/usr/bin/grep -E'
  10291. ac_cv_path_FGREP='/usr/bin/grep -F'
  10292. ac_cv_path_GREP=/usr/bin/grep
  10293. ac_cv_path_KRB5_CONFIG=/usr/bin/krb5-config
  10294. ac_cv_path_SED=/usr/bin/sed
  10295. ac_cv_path_install='/usr/bin/install -c'
  10296. ac_cv_path_mkdir=/usr/bin/mkdir
  10297. ac_cv_prog_AWK=gawk
  10298. ac_cv_prog_CPP='gcc -E'
  10299. ac_cv_prog_LEX=flex
  10300. ac_cv_prog_ac_ct_AR=ar
  10301. ac_cv_prog_ac_ct_CC=gcc
  10302. ac_cv_prog_ac_ct_OBJDUMP=objdump
  10303. ac_cv_prog_ac_ct_RANLIB=ranlib
  10304. ac_cv_prog_ac_ct_STRIP=strip
  10305. ac_cv_prog_cc_c89=
  10306. ac_cv_prog_cc_g=yes
  10307. ac_cv_prog_lex_root=lex.yy
  10308. ac_cv_prog_lex_yytext_pointer=no
  10309. ac_cv_prog_make_make_set=yes
  10310. ac_cv_search_MD5_Init=no
  10311. ac_cv_search_ldap_init=no
  10312. ac_cv_search_login=no
  10313. ac_cv_search_pam_start=no
  10314. ac_cv_struct_tm=time.h
  10315. ac_cv_type_pid_t=yes
  10316. ac_cv_type_signal=void
  10317. ac_cv_type_size_t=yes
  10318. ac_cv_va_copy=yes
  10319. am_cv_CC_dependencies_compiler_type=gcc3
  10320. am_cv_make_support_nested_variables=yes
  10321. lt_cv_ar_at_file=@
  10322. lt_cv_archive_cmds_need_lc=no
  10323. lt_cv_deplibs_check_method=pass_all
  10324. lt_cv_file_magic_cmd='$MAGIC_CMD'
  10325. lt_cv_file_magic_test_file=
  10326. lt_cv_ld_reload_flag=-r
  10327. lt_cv_nm_interface='BSD nm'
  10328. lt_cv_objdir=.libs
  10329. lt_cv_path_LD=/usr/bin/ld
  10330. lt_cv_path_NM='/usr/bin/nm -B'
  10331. lt_cv_path_mainfest_tool=no
  10332. lt_cv_prog_compiler_c_o=yes
  10333. lt_cv_prog_compiler_pic='-fPIC -DPIC'
  10334. lt_cv_prog_compiler_pic_works=yes
  10335. lt_cv_prog_compiler_rtti_exceptions=no
  10336. lt_cv_prog_compiler_static_works=no
  10337. lt_cv_prog_gnu_ld=yes
  10338. lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
  10339. lt_cv_shlibpath_overrides_runpath=no
  10340. lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
  10341. lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\'''
  10342. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\'''
  10343. lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
  10344. lt_cv_sys_max_cmd_len=1572864
  10345. lt_cv_to_host_file_cmd=func_convert_file_noop
  10346. lt_cv_to_tool_file_cmd=func_convert_file_noop
  10347.  
  10348. ## ----------------- ##
  10349. ## Output variables. ##
  10350. ## ----------------- ##
  10351.  
  10352. ACLOCAL='aclocal-1.13'
  10353. AMDEPBACKSLASH='\'
  10354. AMDEP_FALSE='#'
  10355. AMDEP_TRUE=''
  10356. AMTAR='$${TAR-tar}'
  10357. AM_BACKSLASH='\'
  10358. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  10359. AM_DEFAULT_VERBOSITY='1'
  10360. AM_V='$(V)'
  10361. AR='ar'
  10362. AUTOCONF='autoconf'
  10363. AUTOHEADER='autoheader'
  10364. AUTOMAKE='automake-1.13'
  10365. AWK='gawk'
  10366. CC='gcc'
  10367. CCDEPMODE='depmode=gcc3'
  10368. CFLAGS='-g -O2'
  10369. CONFIGURE_AMFLAGS='--with-kernel-headers=/usr/include'
  10370. CPP='gcc -E'
  10371. CPPFLAGS='-D_GNU_SOURCE -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc -I/usr/include '
  10372. CRYPTOBJS=''
  10373. CYGPATH_W='echo'
  10374. DEFS=''
  10375. DEPDIR='.deps'
  10376. DLLTOOL='false'
  10377. DSYMUTIL=''
  10378. DUMPBIN=''
  10379. ECHO_C=''
  10380. ECHO_N='-n'
  10381. ECHO_T=''
  10382. EGREP='/usr/bin/grep -E'
  10383. EXEEXT=''
  10384. EXTRA_CRYPTO=''
  10385. FGREP='/usr/bin/grep -F'
  10386. FRAG_OBJS='isakmp_frag.o'
  10387. GLIBC_BUGS='-include ${top_srcdir}/src/include-glibc/glibc-bugs.h -I${top_srcdir}/src/include-glibc -I${top_builddir}/src/include-glibc'
  10388. GREP='/usr/bin/grep'
  10389. HYBRID_OBJS='isakmp_xauth.o isakmp_cfg.o isakmp_unity.o throttle.o'
  10390. INCLUDE_GLIBC='include-glibc'
  10391. INSTALL_DATA='${INSTALL} -m 644'
  10392. INSTALL_OPTS='-o bin -g bin'
  10393. INSTALL_PROGRAM='${INSTALL}'
  10394. INSTALL_SCRIPT='${INSTALL}'
  10395. INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
  10396. KERNEL_INCLUDE='/usr/include'
  10397. KRB5_CONFIG='/usr/bin/krb5-config'
  10398. LD='/usr/bin/ld -m elf_x86_64'
  10399. LDFLAGS=''
  10400. LEX='flex'
  10401. LEXLIB=''
  10402. LEX_OUTPUT_ROOT='lex.yy'
  10403. LIBOBJS=''
  10404. LIBS=' -lresolv -lreadline -lfl -lcrypt -lcrypt -L/lib -R/lib -lpam -L/lib -R/lib -lldap'
  10405. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  10406. LIPO=''
  10407. LN_S='ln -s'
  10408. LTLIBOBJS=''
  10409. MAKEINFO='makeinfo'
  10410. MANIFEST_TOOL=':'
  10411. MKDIR_P='/usr/bin/mkdir -p'
  10412. NATT_OBJS=''
  10413. NM='/usr/bin/nm -B'
  10414. NMEDIT=''
  10415. OBJDUMP='objdump'
  10416. OBJEXT='o'
  10417. OTOOL64=''
  10418. OTOOL=''
  10419. PACKAGE='ipsec-tools'
  10420. PACKAGE_BUGREPORT=''
  10421. PACKAGE_NAME='ipsec-tools'
  10422. PACKAGE_STRING='ipsec-tools 0.8.1'
  10423. PACKAGE_TARNAME='ipsec-tools'
  10424. PACKAGE_URL=''
  10425. PACKAGE_VERSION='0.8.1'
  10426. PATH_SEPARATOR=':'
  10427. RANLIB='ranlib'
  10428. RPM='rpm'
  10429. SECCTX_OBJS=''
  10430. SED='/usr/bin/sed'
  10431. SET_MAKE=''
  10432. SHELL='/bin/sh'
  10433. STRIP='strip'
  10434. VERSION='0.8.1'
  10435. YACC='yacc'
  10436. YFLAGS=''
  10437. ac_ct_AR='ar'
  10438. ac_ct_CC='gcc'
  10439. ac_ct_DUMPBIN=''
  10440. am__EXEEXT_FALSE=''
  10441. am__EXEEXT_TRUE=''
  10442. am__fastdepCC_FALSE='#'
  10443. am__fastdepCC_TRUE=''
  10444. am__include='include'
  10445. am__isrc=''
  10446. am__leading_dot='.'
  10447. am__nodep='_no'
  10448. am__quote=''
  10449. am__tar='$${TAR-tar} chof - "$$tardir"'
  10450. am__untar='$${TAR-tar} xf -'
  10451. bindir='${exec_prefix}/bin'
  10452. build='x86_64-unknown-linux-gnu'
  10453. build_alias=''
  10454. build_cpu='x86_64'
  10455. build_os='linux-gnu'
  10456. build_vendor='unknown'
  10457. datadir='${datarootdir}'
  10458. datarootdir='${prefix}/share'
  10459. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  10460. dvidir='${docdir}'
  10461. exec_prefix='NONE'
  10462. host='x86_64-unknown-linux-gnu'
  10463. host_alias=''
  10464. host_cpu='x86_64'
  10465. host_os='linux-gnu'
  10466. host_vendor='unknown'
  10467. htmldir='${docdir}'
  10468. include_racoondir=''
  10469. includedir='${prefix}/include'
  10470. infodir='${datarootdir}/info'
  10471. install_sh='${SHELL} /root/ipsec-tools-0.8.1/install-sh'
  10472. libdir='${exec_prefix}/lib'
  10473. libexecdir='${exec_prefix}/libexec'
  10474. localedir='${datarootdir}/locale'
  10475. localstatedir='${prefix}/var'
  10476. mandir='${datarootdir}/man'
  10477. mkdir_p='$(MKDIR_P)'
  10478. oldincludedir='/usr/include'
  10479. pdfdir='${docdir}'
  10480. prefix='NONE'
  10481. program_transform_name='s,x,x,'
  10482. psdir='${docdir}'
  10483. sbindir='${exec_prefix}/sbin'
  10484. sharedstatedir='${prefix}/com'
  10485. sysconfdir='${prefix}/etc'
  10486. target_alias=''
  10487.  
  10488. ## ----------- ##
  10489. ## confdefs.h. ##
  10490. ## ----------- ##
  10491.  
  10492. /* confdefs.h */
  10493. #define PACKAGE_NAME "ipsec-tools"
  10494. #define PACKAGE_TARNAME "ipsec-tools"
  10495. #define PACKAGE_VERSION "0.8.1"
  10496. #define PACKAGE_STRING "ipsec-tools 0.8.1"
  10497. #define PACKAGE_BUGREPORT ""
  10498. #define PACKAGE_URL ""
  10499. #define PACKAGE "ipsec-tools"
  10500. #define VERSION "0.8.1"
  10501. #define STDC_HEADERS 1
  10502. #define HAVE_SYS_TYPES_H 1
  10503. #define HAVE_SYS_STAT_H 1
  10504. #define HAVE_STDLIB_H 1
  10505. #define HAVE_STRING_H 1
  10506. #define HAVE_MEMORY_H 1
  10507. #define HAVE_STRINGS_H 1
  10508. #define HAVE_INTTYPES_H 1
  10509. #define HAVE_STDINT_H 1
  10510. #define HAVE_UNISTD_H 1
  10511. #define HAVE_DLFCN_H 1
  10512. #define LT_OBJDIR ".libs/"
  10513. #define PATH_IPSEC_H <netinet/ipsec.h>
  10514. #define HAVE_PFKEY_POLICY_PRIORITY /**/
  10515. #define STDC_HEADERS 1
  10516. #define HAVE_SYS_WAIT_H 1
  10517. #define HAVE_LIMITS_H 1
  10518. #define HAVE_SYS_TIME_H 1
  10519. #define HAVE_UNISTD_H 1
  10520. #define HAVE_STDARG_H 1
  10521. #define HAVE_SHADOW_H 1
  10522. #define TIME_WITH_SYS_TIME 1
  10523. #define RETSIGTYPE void
  10524. #define HAVE_VPRINTF 1
  10525. #define HAVE_GETTIMEOFDAY 1
  10526. #define HAVE_SOCKET 1
  10527. #define HAVE_STRERROR 1
  10528. #define HAVE_STRTOL 1
  10529. #define HAVE_STRTOUL 1
  10530. #define HAVE_STRDUP 1
  10531. #define VA_COPY va_copy
  10532. #define HAVE_FUNC_MACRO /**/
  10533. #define HAVE_READLINE /**/
  10534. #define HAVE_OPENSSL_ENGINE_H 1
  10535. #define HAVE_OPENSSL_AES_H 1
  10536. #define WITH_SHA2 /**/
  10537. #define HAVE_SHA2_IN_SHA_H /**/
  10538. #define HAVE_OPENSSL_CAMELLIA_H 1
  10539. #define ENABLE_ADMINPORT /**/
  10540. #define HAVE_OPENSSL_IDEA_H 1
  10541. #define ENABLE_HYBRID /**/
  10542. #define ENABLE_FRAG /**/
  10543. #define HAVE_LIBPAM /**/
  10544. #define HAVE_LIBLDAP /**/
  10545. #define ENABLE_STATS /**/
  10546. #define ENABLE_DPD /**/
  10547.  
  10548. configure: exit 1
Add Comment
Please, Sign In to add comment