Changeset 449
- Timestamp:
- 27/02/09 03:04:44 (13 years ago)
- Location:
- abnfparser/bap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
abnfparser/bap/Makefile.in
r407 r449 7 7 8 8 CFLAGS= @CFLAGS@ @DEFS@ -DYYDEBUG 9 LFLAGS= @FLEXFLAGS@ 9 10 YACC= @YACC@ -d -v 10 11 CC= @CC@ -
abnfparser/bap/configure
r407 r449 272 272 PACKAGE_BUGREPORT='' 273 273 274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC L IBOBJS LTLIBOBJS'274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT FLEXFLAGS LIBOBJS LTLIBOBJS' 275 275 ac_subst_files='' 276 276 … … 2238 2238 2239 2239 2240 for ac_prog in flex lex 2241 do 2242 # Extract the first word of "$ac_prog", so it can be a program name with args. 2243 set dummy $ac_prog; ac_word=$2 2244 echo "$as_me:$LINENO: checking for $ac_word" >&5 2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2246 if test "${ac_cv_prog_LEX+set}" = set; then 2247 echo $ECHO_N "(cached) $ECHO_C" >&6 2248 else 2249 if test -n "$LEX"; then 2250 ac_cv_prog_LEX="$LEX" # Let the user override the test. 2251 else 2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2253 for as_dir in $PATH 2254 do 2255 IFS=$as_save_IFS 2256 test -z "$as_dir" && as_dir=. 2257 for ac_exec_ext in '' $ac_executable_extensions; do 2258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2259 ac_cv_prog_LEX="$ac_prog" 2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2261 break 2 2262 fi 2263 done 2264 done 2265 2266 fi 2267 fi 2268 LEX=$ac_cv_prog_LEX 2269 if test -n "$LEX"; then 2270 echo "$as_me:$LINENO: result: $LEX" >&5 2271 echo "${ECHO_T}$LEX" >&6 2272 else 2273 echo "$as_me:$LINENO: result: no" >&5 2274 echo "${ECHO_T}no" >&6 2275 fi 2276 2277 test -n "$LEX" && break 2278 done 2279 test -n "$LEX" || LEX=":" 2280 2281 if test -z "$LEXLIB" 2282 then 2283 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 2284 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 2285 if test "${ac_cv_lib_fl_yywrap+set}" = set; then 2286 echo $ECHO_N "(cached) $ECHO_C" >&6 2287 else 2288 ac_check_lib_save_LIBS=$LIBS 2289 LIBS="-lfl $LIBS" 2290 cat >conftest.$ac_ext <<_ACEOF 2291 /* confdefs.h. */ 2292 _ACEOF 2293 cat confdefs.h >>conftest.$ac_ext 2294 cat >>conftest.$ac_ext <<_ACEOF 2295 /* end confdefs.h. */ 2296 2297 /* Override any gcc2 internal prototype to avoid an error. */ 2298 #ifdef __cplusplus 2299 extern "C" 2300 #endif 2301 /* We use char because int might match the return type of a gcc2 2302 builtin and then its argument prototype would still apply. */ 2303 char yywrap (); 2304 int 2305 main () 2306 { 2307 yywrap (); 2308 ; 2309 return 0; 2310 } 2311 _ACEOF 2312 rm -f conftest.$ac_objext conftest$ac_exeext 2313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2314 (eval $ac_link) 2>conftest.er1 2315 ac_status=$? 2316 grep -v '^ *+' conftest.er1 >conftest.err 2317 rm -f conftest.er1 2318 cat conftest.err >&5 2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2320 (exit $ac_status); } && 2321 { ac_try='test -z "$ac_c_werror_flag" 2322 || test ! -s conftest.err' 2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2324 (eval $ac_try) 2>&5 2325 ac_status=$? 2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2327 (exit $ac_status); }; } && 2328 { ac_try='test -s conftest$ac_exeext' 2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2330 (eval $ac_try) 2>&5 2331 ac_status=$? 2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2333 (exit $ac_status); }; }; then 2334 ac_cv_lib_fl_yywrap=yes 2335 else 2336 echo "$as_me: failed program was:" >&5 2337 sed 's/^/| /' conftest.$ac_ext >&5 2338 2339 ac_cv_lib_fl_yywrap=no 2340 fi 2341 rm -f conftest.err conftest.$ac_objext \ 2342 conftest$ac_exeext conftest.$ac_ext 2343 LIBS=$ac_check_lib_save_LIBS 2344 fi 2345 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 2346 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 2347 if test $ac_cv_lib_fl_yywrap = yes; then 2348 LEXLIB="-lfl" 2349 else 2350 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 2351 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 2352 if test "${ac_cv_lib_l_yywrap+set}" = set; then 2353 echo $ECHO_N "(cached) $ECHO_C" >&6 2354 else 2355 ac_check_lib_save_LIBS=$LIBS 2356 LIBS="-ll $LIBS" 2357 cat >conftest.$ac_ext <<_ACEOF 2358 /* confdefs.h. */ 2359 _ACEOF 2360 cat confdefs.h >>conftest.$ac_ext 2361 cat >>conftest.$ac_ext <<_ACEOF 2362 /* end confdefs.h. */ 2363 2364 /* Override any gcc2 internal prototype to avoid an error. */ 2365 #ifdef __cplusplus 2366 extern "C" 2367 #endif 2368 /* We use char because int might match the return type of a gcc2 2369 builtin and then its argument prototype would still apply. */ 2370 char yywrap (); 2371 int 2372 main () 2373 { 2374 yywrap (); 2375 ; 2376 return 0; 2377 } 2378 _ACEOF 2379 rm -f conftest.$ac_objext conftest$ac_exeext 2380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2381 (eval $ac_link) 2>conftest.er1 2382 ac_status=$? 2383 grep -v '^ *+' conftest.er1 >conftest.err 2384 rm -f conftest.er1 2385 cat conftest.err >&5 2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2387 (exit $ac_status); } && 2388 { ac_try='test -z "$ac_c_werror_flag" 2389 || test ! -s conftest.err' 2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2391 (eval $ac_try) 2>&5 2392 ac_status=$? 2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2394 (exit $ac_status); }; } && 2395 { ac_try='test -s conftest$ac_exeext' 2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2397 (eval $ac_try) 2>&5 2398 ac_status=$? 2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2400 (exit $ac_status); }; }; then 2401 ac_cv_lib_l_yywrap=yes 2402 else 2403 echo "$as_me: failed program was:" >&5 2404 sed 's/^/| /' conftest.$ac_ext >&5 2405 2406 ac_cv_lib_l_yywrap=no 2407 fi 2408 rm -f conftest.err conftest.$ac_objext \ 2409 conftest$ac_exeext conftest.$ac_ext 2410 LIBS=$ac_check_lib_save_LIBS 2411 fi 2412 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 2413 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 2414 if test $ac_cv_lib_l_yywrap = yes; then 2415 LEXLIB="-ll" 2416 fi 2417 2418 fi 2419 2420 fi 2421 2422 if test "x$LEX" != "x:"; then 2423 echo "$as_me:$LINENO: checking lex output file root" >&5 2424 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 2425 if test "${ac_cv_prog_lex_root+set}" = set; then 2426 echo $ECHO_N "(cached) $ECHO_C" >&6 2427 else 2428 # The minimal lex program is just a single line: %%. But some broken lexes 2429 # (Solaris, I think it was) want two %% lines, so accommodate them. 2430 cat >conftest.l <<_ACEOF 2431 %% 2432 %% 2433 _ACEOF 2434 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 2435 (eval $LEX conftest.l) 2>&5 2436 ac_status=$? 2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2438 (exit $ac_status); } 2439 if test -f lex.yy.c; then 2440 ac_cv_prog_lex_root=lex.yy 2441 elif test -f lexyy.c; then 2442 ac_cv_prog_lex_root=lexyy 2443 else 2444 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 2445 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 2446 { (exit 1); exit 1; }; } 2447 fi 2448 fi 2449 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 2450 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 2451 rm -f conftest.l 2452 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 2453 2454 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 2455 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 2456 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 2457 echo $ECHO_N "(cached) $ECHO_C" >&6 2458 else 2459 # POSIX says lex can declare yytext either as a pointer or an array; the 2460 # default is implementation-dependent. Figure out which it is, since 2461 # not all implementations provide the %pointer and %array declarations. 2462 ac_cv_prog_lex_yytext_pointer=no 2463 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 2464 ac_save_LIBS=$LIBS 2465 LIBS="$LIBS $LEXLIB" 2466 cat >conftest.$ac_ext <<_ACEOF 2467 `cat $LEX_OUTPUT_ROOT.c` 2468 _ACEOF 2469 rm -f conftest.$ac_objext conftest$ac_exeext 2470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2471 (eval $ac_link) 2>conftest.er1 2472 ac_status=$? 2473 grep -v '^ *+' conftest.er1 >conftest.err 2474 rm -f conftest.er1 2475 cat conftest.err >&5 2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2477 (exit $ac_status); } && 2478 { ac_try='test -z "$ac_c_werror_flag" 2479 || test ! -s conftest.err' 2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2481 (eval $ac_try) 2>&5 2482 ac_status=$? 2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2484 (exit $ac_status); }; } && 2485 { ac_try='test -s conftest$ac_exeext' 2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2487 (eval $ac_try) 2>&5 2488 ac_status=$? 2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2490 (exit $ac_status); }; }; then 2491 ac_cv_prog_lex_yytext_pointer=yes 2492 else 2493 echo "$as_me: failed program was:" >&5 2494 sed 's/^/| /' conftest.$ac_ext >&5 2495 2496 fi 2497 rm -f conftest.err conftest.$ac_objext \ 2498 conftest$ac_exeext conftest.$ac_ext 2499 LIBS=$ac_save_LIBS 2500 rm -f "${LEX_OUTPUT_ROOT}.c" 2501 2502 fi 2503 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 2504 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 2505 if test $ac_cv_prog_lex_yytext_pointer = yes; then 2506 2507 cat >>confdefs.h <<\_ACEOF 2508 #define YYTEXT_POINTER 1 2509 _ACEOF 2510 2511 fi 2512 2513 fi 2514 if test "$LEX" = "flex"; then 2515 FLEXFLAGS="-l" 2516 fi 2517 2518 2240 2519 2241 2520 for ac_func in hcreate … … 2973 3252 s,@OBJEXT@,$OBJEXT,;t t 2974 3253 s,@YACC@,$YACC,;t t 3254 s,@LEX@,$LEX,;t t 3255 s,@LEXLIB@,$LEXLIB,;t t 3256 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 3257 s,@FLEXFLAGS@,$FLEXFLAGS,;t t 2975 3258 s,@LIBOBJS@,$LIBOBJS,;t t 2976 3259 s,@LTLIBOBJS@,$LTLIBOBJS,;t t -
abnfparser/bap/configure.ac
r407 r449 27 27 dnl fi 28 28 29 AC_PROG_LEX 30 if test "$LEX" = "flex"; then 31 FLEXFLAGS="-l" 32 fi 33 AC_SUBST(FLEXFLAGS) 34 29 35 AC_REPLACE_FUNCS(hcreate) 30 36
Note: See TracChangeset
for help on using the changeset viewer.