1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for the fast lexical analyser generator 2.5.37. 4# 5# Report bugs to <flex-help@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: flex-help@lists.sourceforge.net about your system, 235$0: including any error possibly output before this 236$0: message. Then install a modern shell, or manually run 237$0: the script under such a shell if you do have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error ERROR [LINENO LOG_FD] 363# --------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with status $?, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$?; test $as_status -eq 0 && as_status=1 370 if test "$3"; then 371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 373 fi 374 $as_echo "$as_me: error: $1" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532test -n "$DJDIR" || exec 7<&0 </dev/null 533exec 6>&1 534 535# Name of the host. 536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 537# so uname gets run too. 538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 539 540# 541# Initializations. 542# 543ac_default_prefix=/usr/local 544ac_clean_files= 545ac_config_libobj_dir=. 546LIBOBJS= 547cross_compiling=no 548subdirs= 549MFLAGS= 550MAKEFLAGS= 551 552# Identity of this package. 553PACKAGE_NAME='the fast lexical analyser generator' 554PACKAGE_TARNAME='flex' 555PACKAGE_VERSION='2.5.37' 556PACKAGE_STRING='the fast lexical analyser generator 2.5.37' 557PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net' 558PACKAGE_URL='' 559 560ac_unique_file="scan.l" 561ac_config_libobj_dir=lib 562# Factoring default headers for most tests. 563ac_includes_default="\ 564#include <stdio.h> 565#ifdef HAVE_SYS_TYPES_H 566# include <sys/types.h> 567#endif 568#ifdef HAVE_SYS_STAT_H 569# include <sys/stat.h> 570#endif 571#ifdef STDC_HEADERS 572# include <stdlib.h> 573# include <stddef.h> 574#else 575# ifdef HAVE_STDLIB_H 576# include <stdlib.h> 577# endif 578#endif 579#ifdef HAVE_STRING_H 580# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 581# include <memory.h> 582# endif 583# include <string.h> 584#endif 585#ifdef HAVE_STRINGS_H 586# include <strings.h> 587#endif 588#ifdef HAVE_INTTYPES_H 589# include <inttypes.h> 590#endif 591#ifdef HAVE_STDINT_H 592# include <stdint.h> 593#endif 594#ifdef HAVE_UNISTD_H 595# include <unistd.h> 596#endif" 597 598ac_subst_vars='am__EXEEXT_FALSE 599am__EXEEXT_TRUE 600LTLIBOBJS 601LIBOBJS 602ALLOCA 603EGREP 604GREP 605CPP 606INDENT 607M4 608HELP2MAN 609BISON 610RANLIB 611LN_S 612am__fastdepCXX_FALSE 613am__fastdepCXX_TRUE 614CXXDEPMODE 615ac_ct_CXX 616CXXFLAGS 617CXX 618LEXLIB 619LEX_OUTPUT_ROOT 620LEX 621YFLAGS 622YACC 623POSUB 624LTLIBINTL 625LIBINTL 626INTLLIBS 627LTLIBICONV 628LIBICONV 629host_os 630host_vendor 631host_cpu 632host 633build_os 634build_vendor 635build_cpu 636build 637am__fastdepCC_FALSE 638am__fastdepCC_TRUE 639CCDEPMODE 640AMDEPBACKSLASH 641AMDEP_FALSE 642AMDEP_TRUE 643am__quote 644am__include 645DEPDIR 646OBJEXT 647EXEEXT 648ac_ct_CC 649CPPFLAGS 650LDFLAGS 651CFLAGS 652CC 653MSGMERGE 654XGETTEXT 655GMSGFMT 656MSGFMT 657USE_NLS 658MKINSTALLDIRS 659am__untar 660am__tar 661AMTAR 662am__leading_dot 663SET_MAKE 664AWK 665mkdir_p 666MKDIR_P 667INSTALL_STRIP_PROGRAM 668STRIP 669install_sh 670MAKEINFO 671AUTOHEADER 672AUTOMAKE 673AUTOCONF 674ACLOCAL 675VERSION 676PACKAGE 677CYGPATH_W 678am__isrc 679INSTALL_DATA 680INSTALL_SCRIPT 681INSTALL_PROGRAM 682target_alias 683host_alias 684build_alias 685LIBS 686ECHO_T 687ECHO_N 688ECHO_C 689DEFS 690mandir 691localedir 692libdir 693psdir 694pdfdir 695dvidir 696htmldir 697infodir 698docdir 699oldincludedir 700includedir 701localstatedir 702sharedstatedir 703sysconfdir 704datadir 705datarootdir 706libexecdir 707sbindir 708bindir 709program_transform_name 710prefix 711exec_prefix 712PACKAGE_URL 713PACKAGE_BUGREPORT 714PACKAGE_STRING 715PACKAGE_VERSION 716PACKAGE_TARNAME 717PACKAGE_NAME 718PATH_SEPARATOR 719SHELL' 720ac_subst_files='' 721ac_user_opts=' 722enable_option_checking 723enable_nls 724enable_dependency_tracking 725with_gnu_ld 726enable_rpath 727with_libiconv_prefix 728with_libintl_prefix 729' 730 ac_precious_vars='build_alias 731host_alias 732target_alias 733CC 734CFLAGS 735LDFLAGS 736LIBS 737CPPFLAGS 738YACC 739YFLAGS 740CXX 741CXXFLAGS 742CCC 743CPP' 744 745 746# Initialize some variables set by options. 747ac_init_help= 748ac_init_version=false 749ac_unrecognized_opts= 750ac_unrecognized_sep= 751# The variables have the same names as the options, with 752# dashes changed to underlines. 753cache_file=/dev/null 754exec_prefix=NONE 755no_create= 756no_recursion= 757prefix=NONE 758program_prefix=NONE 759program_suffix=NONE 760program_transform_name=s,x,x, 761silent= 762site= 763srcdir= 764verbose= 765x_includes=NONE 766x_libraries=NONE 767 768# Installation directory options. 769# These are left unexpanded so users can "make install exec_prefix=/foo" 770# and all the variables that are supposed to be based on exec_prefix 771# by default will actually change. 772# Use braces instead of parens because sh, perl, etc. also accept them. 773# (The list follows the same order as the GNU Coding Standards.) 774bindir='${exec_prefix}/bin' 775sbindir='${exec_prefix}/sbin' 776libexecdir='${exec_prefix}/libexec' 777datarootdir='${prefix}/share' 778datadir='${datarootdir}' 779sysconfdir='${prefix}/etc' 780sharedstatedir='${prefix}/com' 781localstatedir='${prefix}/var' 782includedir='${prefix}/include' 783oldincludedir='/usr/include' 784docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 785infodir='${datarootdir}/info' 786htmldir='${docdir}' 787dvidir='${docdir}' 788pdfdir='${docdir}' 789psdir='${docdir}' 790libdir='${exec_prefix}/lib' 791localedir='${datarootdir}/locale' 792mandir='${datarootdir}/man' 793 794ac_prev= 795ac_dashdash= 796for ac_option 797do 798 # If the previous option needs an argument, assign it. 799 if test -n "$ac_prev"; then 800 eval $ac_prev=\$ac_option 801 ac_prev= 802 continue 803 fi 804 805 case $ac_option in 806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 807 *) ac_optarg=yes ;; 808 esac 809 810 # Accept the important Cygnus configure options, so we can diagnose typos. 811 812 case $ac_dashdash$ac_option in 813 --) 814 ac_dashdash=yes ;; 815 816 -bindir | --bindir | --bindi | --bind | --bin | --bi) 817 ac_prev=bindir ;; 818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 819 bindir=$ac_optarg ;; 820 821 -build | --build | --buil | --bui | --bu) 822 ac_prev=build_alias ;; 823 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 824 build_alias=$ac_optarg ;; 825 826 -cache-file | --cache-file | --cache-fil | --cache-fi \ 827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 828 ac_prev=cache_file ;; 829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 831 cache_file=$ac_optarg ;; 832 833 --config-cache | -C) 834 cache_file=config.cache ;; 835 836 -datadir | --datadir | --datadi | --datad) 837 ac_prev=datadir ;; 838 -datadir=* | --datadir=* | --datadi=* | --datad=*) 839 datadir=$ac_optarg ;; 840 841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 842 | --dataroo | --dataro | --datar) 843 ac_prev=datarootdir ;; 844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 846 datarootdir=$ac_optarg ;; 847 848 -disable-* | --disable-*) 849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 850 # Reject names that are not valid shell variable names. 851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 852 as_fn_error "invalid feature name: $ac_useropt" 853 ac_useropt_orig=$ac_useropt 854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 855 case $ac_user_opts in 856 *" 857"enable_$ac_useropt" 858"*) ;; 859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 860 ac_unrecognized_sep=', ';; 861 esac 862 eval enable_$ac_useropt=no ;; 863 864 -docdir | --docdir | --docdi | --doc | --do) 865 ac_prev=docdir ;; 866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 867 docdir=$ac_optarg ;; 868 869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 870 ac_prev=dvidir ;; 871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 872 dvidir=$ac_optarg ;; 873 874 -enable-* | --enable-*) 875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 876 # Reject names that are not valid shell variable names. 877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 878 as_fn_error "invalid feature name: $ac_useropt" 879 ac_useropt_orig=$ac_useropt 880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 881 case $ac_user_opts in 882 *" 883"enable_$ac_useropt" 884"*) ;; 885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 886 ac_unrecognized_sep=', ';; 887 esac 888 eval enable_$ac_useropt=\$ac_optarg ;; 889 890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 892 | --exec | --exe | --ex) 893 ac_prev=exec_prefix ;; 894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 896 | --exec=* | --exe=* | --ex=*) 897 exec_prefix=$ac_optarg ;; 898 899 -gas | --gas | --ga | --g) 900 # Obsolete; use --with-gas. 901 with_gas=yes ;; 902 903 -help | --help | --hel | --he | -h) 904 ac_init_help=long ;; 905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 906 ac_init_help=recursive ;; 907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 908 ac_init_help=short ;; 909 910 -host | --host | --hos | --ho) 911 ac_prev=host_alias ;; 912 -host=* | --host=* | --hos=* | --ho=*) 913 host_alias=$ac_optarg ;; 914 915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 916 ac_prev=htmldir ;; 917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 918 | --ht=*) 919 htmldir=$ac_optarg ;; 920 921 -includedir | --includedir | --includedi | --included | --include \ 922 | --includ | --inclu | --incl | --inc) 923 ac_prev=includedir ;; 924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 925 | --includ=* | --inclu=* | --incl=* | --inc=*) 926 includedir=$ac_optarg ;; 927 928 -infodir | --infodir | --infodi | --infod | --info | --inf) 929 ac_prev=infodir ;; 930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 931 infodir=$ac_optarg ;; 932 933 -libdir | --libdir | --libdi | --libd) 934 ac_prev=libdir ;; 935 -libdir=* | --libdir=* | --libdi=* | --libd=*) 936 libdir=$ac_optarg ;; 937 938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 939 | --libexe | --libex | --libe) 940 ac_prev=libexecdir ;; 941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 942 | --libexe=* | --libex=* | --libe=*) 943 libexecdir=$ac_optarg ;; 944 945 -localedir | --localedir | --localedi | --localed | --locale) 946 ac_prev=localedir ;; 947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 948 localedir=$ac_optarg ;; 949 950 -localstatedir | --localstatedir | --localstatedi | --localstated \ 951 | --localstate | --localstat | --localsta | --localst | --locals) 952 ac_prev=localstatedir ;; 953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 955 localstatedir=$ac_optarg ;; 956 957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 958 ac_prev=mandir ;; 959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 960 mandir=$ac_optarg ;; 961 962 -nfp | --nfp | --nf) 963 # Obsolete; use --without-fp. 964 with_fp=no ;; 965 966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 967 | --no-cr | --no-c | -n) 968 no_create=yes ;; 969 970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 972 no_recursion=yes ;; 973 974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 976 | --oldin | --oldi | --old | --ol | --o) 977 ac_prev=oldincludedir ;; 978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 981 oldincludedir=$ac_optarg ;; 982 983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 984 ac_prev=prefix ;; 985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 986 prefix=$ac_optarg ;; 987 988 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 989 | --program-pre | --program-pr | --program-p) 990 ac_prev=program_prefix ;; 991 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 993 program_prefix=$ac_optarg ;; 994 995 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 996 | --program-suf | --program-su | --program-s) 997 ac_prev=program_suffix ;; 998 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1000 program_suffix=$ac_optarg ;; 1001 1002 -program-transform-name | --program-transform-name \ 1003 | --program-transform-nam | --program-transform-na \ 1004 | --program-transform-n | --program-transform- \ 1005 | --program-transform | --program-transfor \ 1006 | --program-transfo | --program-transf \ 1007 | --program-trans | --program-tran \ 1008 | --progr-tra | --program-tr | --program-t) 1009 ac_prev=program_transform_name ;; 1010 -program-transform-name=* | --program-transform-name=* \ 1011 | --program-transform-nam=* | --program-transform-na=* \ 1012 | --program-transform-n=* | --program-transform-=* \ 1013 | --program-transform=* | --program-transfor=* \ 1014 | --program-transfo=* | --program-transf=* \ 1015 | --program-trans=* | --program-tran=* \ 1016 | --progr-tra=* | --program-tr=* | --program-t=*) 1017 program_transform_name=$ac_optarg ;; 1018 1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1020 ac_prev=pdfdir ;; 1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1022 pdfdir=$ac_optarg ;; 1023 1024 -psdir | --psdir | --psdi | --psd | --ps) 1025 ac_prev=psdir ;; 1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1027 psdir=$ac_optarg ;; 1028 1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1030 | -silent | --silent | --silen | --sile | --sil) 1031 silent=yes ;; 1032 1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1034 ac_prev=sbindir ;; 1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1036 | --sbi=* | --sb=*) 1037 sbindir=$ac_optarg ;; 1038 1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1041 | --sharedst | --shareds | --shared | --share | --shar \ 1042 | --sha | --sh) 1043 ac_prev=sharedstatedir ;; 1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1047 | --sha=* | --sh=*) 1048 sharedstatedir=$ac_optarg ;; 1049 1050 -site | --site | --sit) 1051 ac_prev=site ;; 1052 -site=* | --site=* | --sit=*) 1053 site=$ac_optarg ;; 1054 1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1056 ac_prev=srcdir ;; 1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1058 srcdir=$ac_optarg ;; 1059 1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1061 | --syscon | --sysco | --sysc | --sys | --sy) 1062 ac_prev=sysconfdir ;; 1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1065 sysconfdir=$ac_optarg ;; 1066 1067 -target | --target | --targe | --targ | --tar | --ta | --t) 1068 ac_prev=target_alias ;; 1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1070 target_alias=$ac_optarg ;; 1071 1072 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1073 verbose=yes ;; 1074 1075 -version | --version | --versio | --versi | --vers | -V) 1076 ac_init_version=: ;; 1077 1078 -with-* | --with-*) 1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1080 # Reject names that are not valid shell variable names. 1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1082 as_fn_error "invalid package name: $ac_useropt" 1083 ac_useropt_orig=$ac_useropt 1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1085 case $ac_user_opts in 1086 *" 1087"with_$ac_useropt" 1088"*) ;; 1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1090 ac_unrecognized_sep=', ';; 1091 esac 1092 eval with_$ac_useropt=\$ac_optarg ;; 1093 1094 -without-* | --without-*) 1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1096 # Reject names that are not valid shell variable names. 1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1098 as_fn_error "invalid package name: $ac_useropt" 1099 ac_useropt_orig=$ac_useropt 1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1101 case $ac_user_opts in 1102 *" 1103"with_$ac_useropt" 1104"*) ;; 1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1106 ac_unrecognized_sep=', ';; 1107 esac 1108 eval with_$ac_useropt=no ;; 1109 1110 --x) 1111 # Obsolete; use --with-x. 1112 with_x=yes ;; 1113 1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1115 | --x-incl | --x-inc | --x-in | --x-i) 1116 ac_prev=x_includes ;; 1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1119 x_includes=$ac_optarg ;; 1120 1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1123 ac_prev=x_libraries ;; 1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1126 x_libraries=$ac_optarg ;; 1127 1128 -*) as_fn_error "unrecognized option: \`$ac_option' 1129Try \`$0 --help' for more information." 1130 ;; 1131 1132 *=*) 1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1134 # Reject names that are not valid shell variable names. 1135 case $ac_envvar in #( 1136 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1137 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1138 esac 1139 eval $ac_envvar=\$ac_optarg 1140 export $ac_envvar ;; 1141 1142 *) 1143 # FIXME: should be removed in autoconf 3.0. 1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1147 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1148 ;; 1149 1150 esac 1151done 1152 1153if test -n "$ac_prev"; then 1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1155 as_fn_error "missing argument to $ac_option" 1156fi 1157 1158if test -n "$ac_unrecognized_opts"; then 1159 case $enable_option_checking in 1160 no) ;; 1161 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1163 esac 1164fi 1165 1166# Check all directory arguments for consistency. 1167for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1168 datadir sysconfdir sharedstatedir localstatedir includedir \ 1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1170 libdir localedir mandir 1171do 1172 eval ac_val=\$$ac_var 1173 # Remove trailing slashes. 1174 case $ac_val in 1175 */ ) 1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1177 eval $ac_var=\$ac_val;; 1178 esac 1179 # Be sure to have absolute directory names. 1180 case $ac_val in 1181 [\\/$]* | ?:[\\/]* ) continue;; 1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1183 esac 1184 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1185done 1186 1187# There might be people who depend on the old broken behavior: `$host' 1188# used to hold the argument of --host etc. 1189# FIXME: To remove some day. 1190build=$build_alias 1191host=$host_alias 1192target=$target_alias 1193 1194# FIXME: To remove some day. 1195if test "x$host_alias" != x; then 1196 if test "x$build_alias" = x; then 1197 cross_compiling=maybe 1198 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1199 If a cross compiler is detected then cross compile mode will be used." >&2 1200 elif test "x$build_alias" != "x$host_alias"; then 1201 cross_compiling=yes 1202 fi 1203fi 1204 1205ac_tool_prefix= 1206test -n "$host_alias" && ac_tool_prefix=$host_alias- 1207 1208test "$silent" = yes && exec 6>/dev/null 1209 1210 1211ac_pwd=`pwd` && test -n "$ac_pwd" && 1212ac_ls_di=`ls -di .` && 1213ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1214 as_fn_error "working directory cannot be determined" 1215test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1216 as_fn_error "pwd does not report name of working directory" 1217 1218 1219# Find the source files, if location was not specified. 1220if test -z "$srcdir"; then 1221 ac_srcdir_defaulted=yes 1222 # Try the directory containing this script, then the parent directory. 1223 ac_confdir=`$as_dirname -- "$as_myself" || 1224$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1225 X"$as_myself" : 'X\(//\)[^/]' \| \ 1226 X"$as_myself" : 'X\(//\)$' \| \ 1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1228$as_echo X"$as_myself" | 1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1230 s//\1/ 1231 q 1232 } 1233 /^X\(\/\/\)[^/].*/{ 1234 s//\1/ 1235 q 1236 } 1237 /^X\(\/\/\)$/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\).*/{ 1242 s//\1/ 1243 q 1244 } 1245 s/.*/./; q'` 1246 srcdir=$ac_confdir 1247 if test ! -r "$srcdir/$ac_unique_file"; then 1248 srcdir=.. 1249 fi 1250else 1251 ac_srcdir_defaulted=no 1252fi 1253if test ! -r "$srcdir/$ac_unique_file"; then 1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1255 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1256fi 1257ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1258ac_abs_confdir=`( 1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1260 pwd)` 1261# When building in place, set srcdir=. 1262if test "$ac_abs_confdir" = "$ac_pwd"; then 1263 srcdir=. 1264fi 1265# Remove unnecessary trailing slashes from srcdir. 1266# Double slashes in file names in object file debugging info 1267# mess up M-x gdb in Emacs. 1268case $srcdir in 1269*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1270esac 1271for ac_var in $ac_precious_vars; do 1272 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1273 eval ac_env_${ac_var}_value=\$${ac_var} 1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1275 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1276done 1277 1278# 1279# Report the --help message. 1280# 1281if test "$ac_init_help" = "long"; then 1282 # Omit some internal or obsolete options to make the list less imposing. 1283 # This message is too long to be a string in the A/UX 3.1 sh. 1284 cat <<_ACEOF 1285\`configure' configures the fast lexical analyser generator 2.5.37 to adapt to many kinds of systems. 1286 1287Usage: $0 [OPTION]... [VAR=VALUE]... 1288 1289To assign environment variables (e.g., CC, CFLAGS...), specify them as 1290VAR=VALUE. See below for descriptions of some of the useful variables. 1291 1292Defaults for the options are specified in brackets. 1293 1294Configuration: 1295 -h, --help display this help and exit 1296 --help=short display options specific to this package 1297 --help=recursive display the short help of all the included packages 1298 -V, --version display version information and exit 1299 -q, --quiet, --silent do not print \`checking...' messages 1300 --cache-file=FILE cache test results in FILE [disabled] 1301 -C, --config-cache alias for \`--cache-file=config.cache' 1302 -n, --no-create do not create output files 1303 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1304 1305Installation directories: 1306 --prefix=PREFIX install architecture-independent files in PREFIX 1307 [$ac_default_prefix] 1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1309 [PREFIX] 1310 1311By default, \`make install' will install all the files in 1312\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1313an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1314for instance \`--prefix=\$HOME'. 1315 1316For better control, use the options below. 1317 1318Fine tuning of the installation directories: 1319 --bindir=DIR user executables [EPREFIX/bin] 1320 --sbindir=DIR system admin executables [EPREFIX/sbin] 1321 --libexecdir=DIR program executables [EPREFIX/libexec] 1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1325 --libdir=DIR object code libraries [EPREFIX/lib] 1326 --includedir=DIR C header files [PREFIX/include] 1327 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1330 --infodir=DIR info documentation [DATAROOTDIR/info] 1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1332 --mandir=DIR man documentation [DATAROOTDIR/man] 1333 --docdir=DIR documentation root [DATAROOTDIR/doc/flex] 1334 --htmldir=DIR html documentation [DOCDIR] 1335 --dvidir=DIR dvi documentation [DOCDIR] 1336 --pdfdir=DIR pdf documentation [DOCDIR] 1337 --psdir=DIR ps documentation [DOCDIR] 1338_ACEOF 1339 1340 cat <<\_ACEOF 1341 1342Program names: 1343 --program-prefix=PREFIX prepend PREFIX to installed program names 1344 --program-suffix=SUFFIX append SUFFIX to installed program names 1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1346 1347System types: 1348 --build=BUILD configure for building on BUILD [guessed] 1349 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1350_ACEOF 1351fi 1352 1353if test -n "$ac_init_help"; then 1354 case $ac_init_help in 1355 short | recursive ) echo "Configuration of the fast lexical analyser generator 2.5.37:";; 1356 esac 1357 cat <<\_ACEOF 1358 1359Optional Features: 1360 --disable-option-checking ignore unrecognized --enable/--with options 1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1363 --disable-nls do not use Native Language Support 1364 --disable-dependency-tracking speeds up one-time build 1365 --enable-dependency-tracking do not reject slow dependency extractors 1366 --disable-rpath do not hardcode runtime library paths 1367 1368Optional Packages: 1369 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1370 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1371 --with-gnu-ld assume the C compiler uses GNU ld default=no 1372 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1373 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1374 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1375 --without-libintl-prefix don't search for libintl in includedir and libdir 1376 1377Some influential environment variables: 1378 CC C compiler command 1379 CFLAGS C compiler flags 1380 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1381 nonstandard directory <lib dir> 1382 LIBS libraries to pass to the linker, e.g. -l<library> 1383 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1384 you have headers in a nonstandard directory <include dir> 1385 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1386 the first program found out of: `bison -y', `byacc', `yacc'. 1387 YFLAGS The list of arguments that will be passed by default to $YACC. 1388 This script will default YFLAGS to the empty string to avoid a 1389 default value of `-d' given by some make applications. 1390 CXX C++ compiler command 1391 CXXFLAGS C++ compiler flags 1392 CPP C preprocessor 1393 1394Use these variables to override the choices made by `configure' or to help 1395it to find libraries and programs with nonstandard names/locations. 1396 1397Report bugs to <flex-help@lists.sourceforge.net>. 1398_ACEOF 1399ac_status=$? 1400fi 1401 1402if test "$ac_init_help" = "recursive"; then 1403 # If there are subdirs, report their specific --help. 1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1405 test -d "$ac_dir" || 1406 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1407 continue 1408 ac_builddir=. 1409 1410case "$ac_dir" in 1411.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1412*) 1413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1414 # A ".." for each directory in $ac_dir_suffix. 1415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1416 case $ac_top_builddir_sub in 1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1419 esac ;; 1420esac 1421ac_abs_top_builddir=$ac_pwd 1422ac_abs_builddir=$ac_pwd$ac_dir_suffix 1423# for backward compatibility: 1424ac_top_builddir=$ac_top_build_prefix 1425 1426case $srcdir in 1427 .) # We are building in place. 1428 ac_srcdir=. 1429 ac_top_srcdir=$ac_top_builddir_sub 1430 ac_abs_top_srcdir=$ac_pwd ;; 1431 [\\/]* | ?:[\\/]* ) # Absolute name. 1432 ac_srcdir=$srcdir$ac_dir_suffix; 1433 ac_top_srcdir=$srcdir 1434 ac_abs_top_srcdir=$srcdir ;; 1435 *) # Relative name. 1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1437 ac_top_srcdir=$ac_top_build_prefix$srcdir 1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1439esac 1440ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1441 1442 cd "$ac_dir" || { ac_status=$?; continue; } 1443 # Check for guested configure. 1444 if test -f "$ac_srcdir/configure.gnu"; then 1445 echo && 1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1447 elif test -f "$ac_srcdir/configure"; then 1448 echo && 1449 $SHELL "$ac_srcdir/configure" --help=recursive 1450 else 1451 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1452 fi || ac_status=$? 1453 cd "$ac_pwd" || { ac_status=$?; break; } 1454 done 1455fi 1456 1457test -n "$ac_init_help" && exit $ac_status 1458if $ac_init_version; then 1459 cat <<\_ACEOF 1460the fast lexical analyser generator configure 2.5.37 1461generated by GNU Autoconf 2.65 1462 1463Copyright (C) 2009 Free Software Foundation, Inc. 1464This configure script is free software; the Free Software Foundation 1465gives unlimited permission to copy, distribute and modify it. 1466_ACEOF 1467 exit 1468fi 1469 1470## ------------------------ ## 1471## Autoconf initialization. ## 1472## ------------------------ ## 1473 1474# ac_fn_c_try_compile LINENO 1475# -------------------------- 1476# Try to compile conftest.$ac_ext, and return whether this succeeded. 1477ac_fn_c_try_compile () 1478{ 1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1480 rm -f conftest.$ac_objext 1481 if { { ac_try="$ac_compile" 1482case "(($ac_try" in 1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1484 *) ac_try_echo=$ac_try;; 1485esac 1486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1487$as_echo "$ac_try_echo"; } >&5 1488 (eval "$ac_compile") 2>conftest.err 1489 ac_status=$? 1490 if test -s conftest.err; then 1491 grep -v '^ *+' conftest.err >conftest.er1 1492 cat conftest.er1 >&5 1493 mv -f conftest.er1 conftest.err 1494 fi 1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1496 test $ac_status = 0; } && { 1497 test -z "$ac_c_werror_flag" || 1498 test ! -s conftest.err 1499 } && test -s conftest.$ac_objext; then : 1500 ac_retval=0 1501else 1502 $as_echo "$as_me: failed program was:" >&5 1503sed 's/^/| /' conftest.$ac_ext >&5 1504 1505 ac_retval=1 1506fi 1507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1508 as_fn_set_status $ac_retval 1509 1510} # ac_fn_c_try_compile 1511 1512# ac_fn_c_try_link LINENO 1513# ----------------------- 1514# Try to link conftest.$ac_ext, and return whether this succeeded. 1515ac_fn_c_try_link () 1516{ 1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1518 rm -f conftest.$ac_objext conftest$ac_exeext 1519 if { { ac_try="$ac_link" 1520case "(($ac_try" in 1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1522 *) ac_try_echo=$ac_try;; 1523esac 1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1525$as_echo "$ac_try_echo"; } >&5 1526 (eval "$ac_link") 2>conftest.err 1527 ac_status=$? 1528 if test -s conftest.err; then 1529 grep -v '^ *+' conftest.err >conftest.er1 1530 cat conftest.er1 >&5 1531 mv -f conftest.er1 conftest.err 1532 fi 1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1534 test $ac_status = 0; } && { 1535 test -z "$ac_c_werror_flag" || 1536 test ! -s conftest.err 1537 } && test -s conftest$ac_exeext && { 1538 test "$cross_compiling" = yes || 1539 $as_test_x conftest$ac_exeext 1540 }; then : 1541 ac_retval=0 1542else 1543 $as_echo "$as_me: failed program was:" >&5 1544sed 's/^/| /' conftest.$ac_ext >&5 1545 1546 ac_retval=1 1547fi 1548 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1549 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1550 # interfere with the next link command; also delete a directory that is 1551 # left behind by Apple's compiler. We do this before executing the actions. 1552 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1554 as_fn_set_status $ac_retval 1555 1556} # ac_fn_c_try_link 1557 1558# ac_fn_cxx_try_compile LINENO 1559# ---------------------------- 1560# Try to compile conftest.$ac_ext, and return whether this succeeded. 1561ac_fn_cxx_try_compile () 1562{ 1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564 rm -f conftest.$ac_objext 1565 if { { ac_try="$ac_compile" 1566case "(($ac_try" in 1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1568 *) ac_try_echo=$ac_try;; 1569esac 1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1571$as_echo "$ac_try_echo"; } >&5 1572 (eval "$ac_compile") 2>conftest.err 1573 ac_status=$? 1574 if test -s conftest.err; then 1575 grep -v '^ *+' conftest.err >conftest.er1 1576 cat conftest.er1 >&5 1577 mv -f conftest.er1 conftest.err 1578 fi 1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1580 test $ac_status = 0; } && { 1581 test -z "$ac_cxx_werror_flag" || 1582 test ! -s conftest.err 1583 } && test -s conftest.$ac_objext; then : 1584 ac_retval=0 1585else 1586 $as_echo "$as_me: failed program was:" >&5 1587sed 's/^/| /' conftest.$ac_ext >&5 1588 1589 ac_retval=1 1590fi 1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1592 as_fn_set_status $ac_retval 1593 1594} # ac_fn_cxx_try_compile 1595 1596# ac_fn_c_try_cpp LINENO 1597# ---------------------- 1598# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1599ac_fn_c_try_cpp () 1600{ 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 if { { ac_try="$ac_cpp conftest.$ac_ext" 1603case "(($ac_try" in 1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1605 *) ac_try_echo=$ac_try;; 1606esac 1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1608$as_echo "$ac_try_echo"; } >&5 1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1610 ac_status=$? 1611 if test -s conftest.err; then 1612 grep -v '^ *+' conftest.err >conftest.er1 1613 cat conftest.er1 >&5 1614 mv -f conftest.er1 conftest.err 1615 fi 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } >/dev/null && { 1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1619 test ! -s conftest.err 1620 }; then : 1621 ac_retval=0 1622else 1623 $as_echo "$as_me: failed program was:" >&5 1624sed 's/^/| /' conftest.$ac_ext >&5 1625 1626 ac_retval=1 1627fi 1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1629 as_fn_set_status $ac_retval 1630 1631} # ac_fn_c_try_cpp 1632 1633# ac_fn_c_try_run LINENO 1634# ---------------------- 1635# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1636# that executables *can* be run. 1637ac_fn_c_try_run () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 if { { ac_try="$ac_link" 1641case "(($ac_try" in 1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1643 *) ac_try_echo=$ac_try;; 1644esac 1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1646$as_echo "$ac_try_echo"; } >&5 1647 (eval "$ac_link") 2>&5 1648 ac_status=$? 1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1650 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1651 { { case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656$as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_try") 2>&5 1658 ac_status=$? 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; }; }; then : 1661 ac_retval=0 1662else 1663 $as_echo "$as_me: program exited with status $ac_status" >&5 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=$ac_status 1668fi 1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1671 as_fn_set_status $ac_retval 1672 1673} # ac_fn_c_try_run 1674 1675# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1676# ------------------------------------------------------- 1677# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1678# the include files in INCLUDES and setting the cache variable VAR 1679# accordingly. 1680ac_fn_c_check_header_mongrel () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1685$as_echo_n "checking for $2... " >&6; } 1686if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1687 $as_echo_n "(cached) " >&6 1688fi 1689eval ac_res=\$$3 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1691$as_echo "$ac_res" >&6; } 1692else 1693 # Is the header compilable? 1694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1695$as_echo_n "checking $2 usability... " >&6; } 1696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1697/* end confdefs.h. */ 1698$4 1699#include <$2> 1700_ACEOF 1701if ac_fn_c_try_compile "$LINENO"; then : 1702 ac_header_compiler=yes 1703else 1704 ac_header_compiler=no 1705fi 1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1708$as_echo "$ac_header_compiler" >&6; } 1709 1710# Is the header present? 1711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1712$as_echo_n "checking $2 presence... " >&6; } 1713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1714/* end confdefs.h. */ 1715#include <$2> 1716_ACEOF 1717if ac_fn_c_try_cpp "$LINENO"; then : 1718 ac_header_preproc=yes 1719else 1720 ac_header_preproc=no 1721fi 1722rm -f conftest.err conftest.$ac_ext 1723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1724$as_echo "$ac_header_preproc" >&6; } 1725 1726# So? What about this header? 1727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1728 yes:no: ) 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1730$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1732$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1733 ;; 1734 no:yes:* ) 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1736$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1738$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1740$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1742$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1744$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1745( cat <<\_ASBOX 1746## ---------------------------------------------- ## 1747## Report this to flex-help@lists.sourceforge.net ## 1748## ---------------------------------------------- ## 1749_ASBOX 1750 ) | sed "s/^/$as_me: WARNING: /" >&2 1751 ;; 1752esac 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1754$as_echo_n "checking for $2... " >&6; } 1755if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1756 $as_echo_n "(cached) " >&6 1757else 1758 eval "$3=\$ac_header_compiler" 1759fi 1760eval ac_res=\$$3 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1762$as_echo "$ac_res" >&6; } 1763fi 1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1765 1766} # ac_fn_c_check_header_mongrel 1767 1768# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1769# ------------------------------------------------------- 1770# Tests whether HEADER exists and can be compiled using the include files in 1771# INCLUDES, setting the cache variable VAR accordingly. 1772ac_fn_c_check_header_compile () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1776$as_echo_n "checking for $2... " >&6; } 1777if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1778 $as_echo_n "(cached) " >&6 1779else 1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1781/* end confdefs.h. */ 1782$4 1783#include <$2> 1784_ACEOF 1785if ac_fn_c_try_compile "$LINENO"; then : 1786 eval "$3=yes" 1787else 1788 eval "$3=no" 1789fi 1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1791fi 1792eval ac_res=\$$3 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794$as_echo "$ac_res" >&6; } 1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1796 1797} # ac_fn_c_check_header_compile 1798 1799# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1800# ------------------------------------------- 1801# Tests whether TYPE exists after having included INCLUDES, setting cache 1802# variable VAR accordingly. 1803ac_fn_c_check_type () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1809 $as_echo_n "(cached) " >&6 1810else 1811 eval "$3=no" 1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1813/* end confdefs.h. */ 1814$4 1815int 1816main () 1817{ 1818if (sizeof ($2)) 1819 return 0; 1820 ; 1821 return 0; 1822} 1823_ACEOF 1824if ac_fn_c_try_compile "$LINENO"; then : 1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826/* end confdefs.h. */ 1827$4 1828int 1829main () 1830{ 1831if (sizeof (($2))) 1832 return 0; 1833 ; 1834 return 0; 1835} 1836_ACEOF 1837if ac_fn_c_try_compile "$LINENO"; then : 1838 1839else 1840 eval "$3=yes" 1841fi 1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1843fi 1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1845fi 1846eval ac_res=\$$3 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1848$as_echo "$ac_res" >&6; } 1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1850 1851} # ac_fn_c_check_type 1852 1853# ac_fn_c_check_func LINENO FUNC VAR 1854# ---------------------------------- 1855# Tests whether FUNC exists, setting the cache variable VAR accordingly 1856ac_fn_c_check_func () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1860$as_echo_n "checking for $2... " >&6; } 1861if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1862 $as_echo_n "(cached) " >&6 1863else 1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1865/* end confdefs.h. */ 1866/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1868#define $2 innocuous_$2 1869 1870/* System header to define __stub macros and hopefully few prototypes, 1871 which can conflict with char $2 (); below. 1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1873 <limits.h> exists even on freestanding compilers. */ 1874 1875#ifdef __STDC__ 1876# include <limits.h> 1877#else 1878# include <assert.h> 1879#endif 1880 1881#undef $2 1882 1883/* Override any GCC internal prototype to avoid an error. 1884 Use char because int might match the return type of a GCC 1885 builtin and then its argument prototype would still apply. */ 1886#ifdef __cplusplus 1887extern "C" 1888#endif 1889char $2 (); 1890/* The GNU C library defines this for functions which it implements 1891 to always fail with ENOSYS. Some functions are actually named 1892 something starting with __ and the normal name is an alias. */ 1893#if defined __stub_$2 || defined __stub___$2 1894choke me 1895#endif 1896 1897int 1898main () 1899{ 1900return $2 (); 1901 ; 1902 return 0; 1903} 1904_ACEOF 1905if ac_fn_c_try_link "$LINENO"; then : 1906 eval "$3=yes" 1907else 1908 eval "$3=no" 1909fi 1910rm -f core conftest.err conftest.$ac_objext \ 1911 conftest$ac_exeext conftest.$ac_ext 1912fi 1913eval ac_res=\$$3 1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1915$as_echo "$ac_res" >&6; } 1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1917 1918} # ac_fn_c_check_func 1919cat >config.log <<_ACEOF 1920This file contains any messages produced by compilers while 1921running configure, to aid debugging if configure makes a mistake. 1922 1923It was created by the fast lexical analyser generator $as_me 2.5.37, which was 1924generated by GNU Autoconf 2.65. Invocation command line was 1925 1926 $ $0 $@ 1927 1928_ACEOF 1929exec 5>>config.log 1930{ 1931cat <<_ASUNAME 1932## --------- ## 1933## Platform. ## 1934## --------- ## 1935 1936hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1937uname -m = `(uname -m) 2>/dev/null || echo unknown` 1938uname -r = `(uname -r) 2>/dev/null || echo unknown` 1939uname -s = `(uname -s) 2>/dev/null || echo unknown` 1940uname -v = `(uname -v) 2>/dev/null || echo unknown` 1941 1942/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1943/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1944 1945/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1946/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1947/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1948/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1949/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1950/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1951/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1952 1953_ASUNAME 1954 1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1956for as_dir in $PATH 1957do 1958 IFS=$as_save_IFS 1959 test -z "$as_dir" && as_dir=. 1960 $as_echo "PATH: $as_dir" 1961 done 1962IFS=$as_save_IFS 1963 1964} >&5 1965 1966cat >&5 <<_ACEOF 1967 1968 1969## ----------- ## 1970## Core tests. ## 1971## ----------- ## 1972 1973_ACEOF 1974 1975 1976# Keep a trace of the command line. 1977# Strip out --no-create and --no-recursion so they do not pile up. 1978# Strip out --silent because we don't want to record it for future runs. 1979# Also quote any args containing shell meta-characters. 1980# Make two passes to allow for proper duplicate-argument suppression. 1981ac_configure_args= 1982ac_configure_args0= 1983ac_configure_args1= 1984ac_must_keep_next=false 1985for ac_pass in 1 2 1986do 1987 for ac_arg 1988 do 1989 case $ac_arg in 1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1992 | -silent | --silent | --silen | --sile | --sil) 1993 continue ;; 1994 *\'*) 1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1996 esac 1997 case $ac_pass in 1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1999 2) 2000 as_fn_append ac_configure_args1 " '$ac_arg'" 2001 if test $ac_must_keep_next = true; then 2002 ac_must_keep_next=false # Got value, back to normal. 2003 else 2004 case $ac_arg in 2005 *=* | --config-cache | -C | -disable-* | --disable-* \ 2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2008 | -with-* | --with-* | -without-* | --without-* | --x) 2009 case "$ac_configure_args0 " in 2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2011 esac 2012 ;; 2013 -* ) ac_must_keep_next=true ;; 2014 esac 2015 fi 2016 as_fn_append ac_configure_args " '$ac_arg'" 2017 ;; 2018 esac 2019 done 2020done 2021{ ac_configure_args0=; unset ac_configure_args0;} 2022{ ac_configure_args1=; unset ac_configure_args1;} 2023 2024# When interrupted or exit'd, cleanup temporary files, and complete 2025# config.log. We remove comments because anyway the quotes in there 2026# would cause problems or look ugly. 2027# WARNING: Use '\'' to represent an apostrophe within the trap. 2028# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2029trap 'exit_status=$? 2030 # Save into config.log some information that might help in debugging. 2031 { 2032 echo 2033 2034 cat <<\_ASBOX 2035## ---------------- ## 2036## Cache variables. ## 2037## ---------------- ## 2038_ASBOX 2039 echo 2040 # The following way of writing the cache mishandles newlines in values, 2041( 2042 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2043 eval ac_val=\$$ac_var 2044 case $ac_val in #( 2045 *${as_nl}*) 2046 case $ac_var in #( 2047 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2048$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2049 esac 2050 case $ac_var in #( 2051 _ | IFS | as_nl) ;; #( 2052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2053 *) { eval $ac_var=; unset $ac_var;} ;; 2054 esac ;; 2055 esac 2056 done 2057 (set) 2>&1 | 2058 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2059 *${as_nl}ac_space=\ *) 2060 sed -n \ 2061 "s/'\''/'\''\\\\'\'''\''/g; 2062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2063 ;; #( 2064 *) 2065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2066 ;; 2067 esac | 2068 sort 2069) 2070 echo 2071 2072 cat <<\_ASBOX 2073## ----------------- ## 2074## Output variables. ## 2075## ----------------- ## 2076_ASBOX 2077 echo 2078 for ac_var in $ac_subst_vars 2079 do 2080 eval ac_val=\$$ac_var 2081 case $ac_val in 2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2083 esac 2084 $as_echo "$ac_var='\''$ac_val'\''" 2085 done | sort 2086 echo 2087 2088 if test -n "$ac_subst_files"; then 2089 cat <<\_ASBOX 2090## ------------------- ## 2091## File substitutions. ## 2092## ------------------- ## 2093_ASBOX 2094 echo 2095 for ac_var in $ac_subst_files 2096 do 2097 eval ac_val=\$$ac_var 2098 case $ac_val in 2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2100 esac 2101 $as_echo "$ac_var='\''$ac_val'\''" 2102 done | sort 2103 echo 2104 fi 2105 2106 if test -s confdefs.h; then 2107 cat <<\_ASBOX 2108## ----------- ## 2109## confdefs.h. ## 2110## ----------- ## 2111_ASBOX 2112 echo 2113 cat confdefs.h 2114 echo 2115 fi 2116 test "$ac_signal" != 0 && 2117 $as_echo "$as_me: caught signal $ac_signal" 2118 $as_echo "$as_me: exit $exit_status" 2119 } >&5 2120 rm -f core *.core core.conftest.* && 2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2122 exit $exit_status 2123' 0 2124for ac_signal in 1 2 13 15; do 2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2126done 2127ac_signal=0 2128 2129# confdefs.h avoids OS command line length limits that DEFS can exceed. 2130rm -f -r conftest* confdefs.h 2131 2132$as_echo "/* confdefs.h */" > confdefs.h 2133 2134# Predefined preprocessor variables. 2135 2136cat >>confdefs.h <<_ACEOF 2137#define PACKAGE_NAME "$PACKAGE_NAME" 2138_ACEOF 2139 2140cat >>confdefs.h <<_ACEOF 2141#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145#define PACKAGE_VERSION "$PACKAGE_VERSION" 2146_ACEOF 2147 2148cat >>confdefs.h <<_ACEOF 2149#define PACKAGE_STRING "$PACKAGE_STRING" 2150_ACEOF 2151 2152cat >>confdefs.h <<_ACEOF 2153#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2154_ACEOF 2155 2156cat >>confdefs.h <<_ACEOF 2157#define PACKAGE_URL "$PACKAGE_URL" 2158_ACEOF 2159 2160 2161# Let the site file select an alternate cache file if it wants to. 2162# Prefer an explicitly selected file to automatically selected ones. 2163ac_site_file1=NONE 2164ac_site_file2=NONE 2165if test -n "$CONFIG_SITE"; then 2166 ac_site_file1=$CONFIG_SITE 2167elif test "x$prefix" != xNONE; then 2168 ac_site_file1=$prefix/share/config.site 2169 ac_site_file2=$prefix/etc/config.site 2170else 2171 ac_site_file1=$ac_default_prefix/share/config.site 2172 ac_site_file2=$ac_default_prefix/etc/config.site 2173fi 2174for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2175do 2176 test "x$ac_site_file" = xNONE && continue 2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2179$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2180 sed 's/^/| /' "$ac_site_file" >&5 2181 . "$ac_site_file" 2182 fi 2183done 2184 2185if test -r "$cache_file"; then 2186 # Some versions of bash will fail to source /dev/null (special files 2187 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2188 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2190$as_echo "$as_me: loading cache $cache_file" >&6;} 2191 case $cache_file in 2192 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2193 *) . "./$cache_file";; 2194 esac 2195 fi 2196else 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2198$as_echo "$as_me: creating cache $cache_file" >&6;} 2199 >$cache_file 2200fi 2201 2202# Check that the precious variables saved in the cache have kept the same 2203# value. 2204ac_cache_corrupted=false 2205for ac_var in $ac_precious_vars; do 2206 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2207 eval ac_new_set=\$ac_env_${ac_var}_set 2208 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2209 eval ac_new_val=\$ac_env_${ac_var}_value 2210 case $ac_old_set,$ac_new_set in 2211 set,) 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2213$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2214 ac_cache_corrupted=: ;; 2215 ,set) 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2217$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2218 ac_cache_corrupted=: ;; 2219 ,);; 2220 *) 2221 if test "x$ac_old_val" != "x$ac_new_val"; then 2222 # differences in whitespace do not lead to failure. 2223 ac_old_val_w=`echo x $ac_old_val` 2224 ac_new_val_w=`echo x $ac_new_val` 2225 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2227$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2228 ac_cache_corrupted=: 2229 else 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2231$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2232 eval $ac_var=\$ac_old_val 2233 fi 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2235$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2237$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2238 fi;; 2239 esac 2240 # Pass precious variables to config.status. 2241 if test "$ac_new_set" = set; then 2242 case $ac_new_val in 2243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2244 *) ac_arg=$ac_var=$ac_new_val ;; 2245 esac 2246 case " $ac_configure_args " in 2247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2248 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2249 esac 2250 fi 2251done 2252if $ac_cache_corrupted; then 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2256$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2257 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2258fi 2259## -------------------- ## 2260## Main body of script. ## 2261## -------------------- ## 2262 2263ac_ext=c 2264ac_cpp='$CPP $CPPFLAGS' 2265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2267ac_compiler_gnu=$ac_cv_c_compiler_gnu 2268 2269 2270 2271am__api_version='1.11' 2272 2273ac_aux_dir= 2274for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2275 for ac_t in install-sh install.sh shtool; do 2276 if test -f "$ac_dir/$ac_t"; then 2277 ac_aux_dir=$ac_dir 2278 ac_install_sh="$ac_aux_dir/$ac_t -c" 2279 break 2 2280 fi 2281 done 2282done 2283if test -z "$ac_aux_dir"; then 2284 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2285fi 2286 2287# These three variables are undocumented and unsupported, 2288# and are intended to be withdrawn in a future Autoconf release. 2289# They can cause serious problems if a builder's source tree is in a directory 2290# whose full name contains unusual characters. 2291ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2292ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2293ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2294 2295 2296# Find a good install program. We prefer a C program (faster), 2297# so one script is as good as another. But avoid the broken or 2298# incompatible versions: 2299# SysV /etc/install, /usr/sbin/install 2300# SunOS /usr/etc/install 2301# IRIX /sbin/install 2302# AIX /bin/install 2303# AmigaOS /C/install, which installs bootblocks on floppy discs 2304# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2305# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2306# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2307# OS/2's system install, which has a completely different semantic 2308# ./install, which can be erroneously created by make from ./install.sh. 2309# Reject install programs that cannot install multiple files. 2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2311$as_echo_n "checking for a BSD-compatible install... " >&6; } 2312if test -z "$INSTALL"; then 2313if test "${ac_cv_path_install+set}" = set; then : 2314 $as_echo_n "(cached) " >&6 2315else 2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2317for as_dir in $PATH 2318do 2319 IFS=$as_save_IFS 2320 test -z "$as_dir" && as_dir=. 2321 # Account for people who put trailing slashes in PATH elements. 2322case $as_dir/ in #(( 2323 ./ | .// | /[cC]/* | \ 2324 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2325 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2326 /usr/ucb/* ) ;; 2327 *) 2328 # OSF1 and SCO ODT 3.0 have their own names for install. 2329 # Don't use installbsd from OSF since it installs stuff as root 2330 # by default. 2331 for ac_prog in ginstall scoinst install; do 2332 for ac_exec_ext in '' $ac_executable_extensions; do 2333 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2334 if test $ac_prog = install && 2335 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2336 # AIX install. It has an incompatible calling convention. 2337 : 2338 elif test $ac_prog = install && 2339 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2340 # program-specific install script used by HP pwplus--don't use. 2341 : 2342 else 2343 rm -rf conftest.one conftest.two conftest.dir 2344 echo one > conftest.one 2345 echo two > conftest.two 2346 mkdir conftest.dir 2347 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2348 test -s conftest.one && test -s conftest.two && 2349 test -s conftest.dir/conftest.one && 2350 test -s conftest.dir/conftest.two 2351 then 2352 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2353 break 3 2354 fi 2355 fi 2356 fi 2357 done 2358 done 2359 ;; 2360esac 2361 2362 done 2363IFS=$as_save_IFS 2364 2365rm -rf conftest.one conftest.two conftest.dir 2366 2367fi 2368 if test "${ac_cv_path_install+set}" = set; then 2369 INSTALL=$ac_cv_path_install 2370 else 2371 # As a last resort, use the slow shell script. Don't cache a 2372 # value for INSTALL within a source directory, because that will 2373 # break other packages using the cache if that directory is 2374 # removed, or if the value is a relative name. 2375 INSTALL=$ac_install_sh 2376 fi 2377fi 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2379$as_echo "$INSTALL" >&6; } 2380 2381# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2382# It thinks the first close brace ends the variable substitution. 2383test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2384 2385test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2386 2387test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2388 2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2390$as_echo_n "checking whether build environment is sane... " >&6; } 2391# Just in case 2392sleep 1 2393echo timestamp > conftest.file 2394# Reject unsafe characters in $srcdir or the absolute working directory 2395# name. Accept space and tab only in the latter. 2396am_lf=' 2397' 2398case `pwd` in 2399 *[\\\"\#\$\&\'\`$am_lf]*) 2400 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2401esac 2402case $srcdir in 2403 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2404 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2405esac 2406 2407# Do `set' in a subshell so we don't clobber the current shell's 2408# arguments. Must try -L first in case configure is actually a 2409# symlink; some systems play weird games with the mod time of symlinks 2410# (eg FreeBSD returns the mod time of the symlink's containing 2411# directory). 2412if ( 2413 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2414 if test "$*" = "X"; then 2415 # -L didn't work. 2416 set X `ls -t "$srcdir/configure" conftest.file` 2417 fi 2418 rm -f conftest.file 2419 if test "$*" != "X $srcdir/configure conftest.file" \ 2420 && test "$*" != "X conftest.file $srcdir/configure"; then 2421 2422 # If neither matched, then we have a broken ls. This can happen 2423 # if, for instance, CONFIG_SHELL is bash and it inherits a 2424 # broken ls alias from the environment. This has actually 2425 # happened. Such a system could not be considered "sane". 2426 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2427alias in your environment" "$LINENO" 5 2428 fi 2429 2430 test "$2" = conftest.file 2431 ) 2432then 2433 # Ok. 2434 : 2435else 2436 as_fn_error "newly created file is older than distributed files! 2437Check your system clock" "$LINENO" 5 2438fi 2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2440$as_echo "yes" >&6; } 2441test "$program_prefix" != NONE && 2442 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2443# Use a double $ so make ignores it. 2444test "$program_suffix" != NONE && 2445 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2446# Double any \ or $. 2447# By default was `s,x,x', remove it if useless. 2448ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2449program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2450 2451# expand $ac_aux_dir to an absolute path 2452am_aux_dir=`cd $ac_aux_dir && pwd` 2453 2454if test x"${MISSING+set}" != xset; then 2455 case $am_aux_dir in 2456 *\ * | *\ *) 2457 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2458 *) 2459 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2460 esac 2461fi 2462# Use eval to expand $SHELL 2463if eval "$MISSING --run true"; then 2464 am_missing_run="$MISSING --run " 2465else 2466 am_missing_run= 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2468$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2469fi 2470 2471if test x"${install_sh}" != xset; then 2472 case $am_aux_dir in 2473 *\ * | *\ *) 2474 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2475 *) 2476 install_sh="\${SHELL} $am_aux_dir/install-sh" 2477 esac 2478fi 2479 2480# Installed binaries are usually stripped using `strip' when the user 2481# run `make install-strip'. However `strip' might not be the right 2482# tool to use in cross-compilation environments, therefore Automake 2483# will honor the `STRIP' environment variable to overrule this program. 2484if test "$cross_compiling" != no; then 2485 if test -n "$ac_tool_prefix"; then 2486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2487set dummy ${ac_tool_prefix}strip; ac_word=$2 2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2489$as_echo_n "checking for $ac_word... " >&6; } 2490if test "${ac_cv_prog_STRIP+set}" = set; then : 2491 $as_echo_n "(cached) " >&6 2492else 2493 if test -n "$STRIP"; then 2494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2495else 2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2497for as_dir in $PATH 2498do 2499 IFS=$as_save_IFS 2500 test -z "$as_dir" && as_dir=. 2501 for ac_exec_ext in '' $ac_executable_extensions; do 2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2503 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2505 break 2 2506 fi 2507done 2508 done 2509IFS=$as_save_IFS 2510 2511fi 2512fi 2513STRIP=$ac_cv_prog_STRIP 2514if test -n "$STRIP"; then 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2516$as_echo "$STRIP" >&6; } 2517else 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2519$as_echo "no" >&6; } 2520fi 2521 2522 2523fi 2524if test -z "$ac_cv_prog_STRIP"; then 2525 ac_ct_STRIP=$STRIP 2526 # Extract the first word of "strip", so it can be a program name with args. 2527set dummy strip; ac_word=$2 2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2529$as_echo_n "checking for $ac_word... " >&6; } 2530if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2531 $as_echo_n "(cached) " >&6 2532else 2533 if test -n "$ac_ct_STRIP"; then 2534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2535else 2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2537for as_dir in $PATH 2538do 2539 IFS=$as_save_IFS 2540 test -z "$as_dir" && as_dir=. 2541 for ac_exec_ext in '' $ac_executable_extensions; do 2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2543 ac_cv_prog_ac_ct_STRIP="strip" 2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2545 break 2 2546 fi 2547done 2548 done 2549IFS=$as_save_IFS 2550 2551fi 2552fi 2553ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2554if test -n "$ac_ct_STRIP"; then 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2556$as_echo "$ac_ct_STRIP" >&6; } 2557else 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2559$as_echo "no" >&6; } 2560fi 2561 2562 if test "x$ac_ct_STRIP" = x; then 2563 STRIP=":" 2564 else 2565 case $cross_compiling:$ac_tool_warned in 2566yes:) 2567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2569ac_tool_warned=yes ;; 2570esac 2571 STRIP=$ac_ct_STRIP 2572 fi 2573else 2574 STRIP="$ac_cv_prog_STRIP" 2575fi 2576 2577fi 2578INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2579 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2581$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2582if test -z "$MKDIR_P"; then 2583 if test "${ac_cv_path_mkdir+set}" = set; then : 2584 $as_echo_n "(cached) " >&6 2585else 2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2587for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2588do 2589 IFS=$as_save_IFS 2590 test -z "$as_dir" && as_dir=. 2591 for ac_prog in mkdir gmkdir; do 2592 for ac_exec_ext in '' $ac_executable_extensions; do 2593 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2594 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2595 'mkdir (GNU coreutils) '* | \ 2596 'mkdir (coreutils) '* | \ 2597 'mkdir (fileutils) '4.1*) 2598 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2599 break 3;; 2600 esac 2601 done 2602 done 2603 done 2604IFS=$as_save_IFS 2605 2606fi 2607 2608 test -d ./--version && rmdir ./--version 2609 if test "${ac_cv_path_mkdir+set}" = set; then 2610 MKDIR_P="$ac_cv_path_mkdir -p" 2611 else 2612 # As a last resort, use the slow shell script. Don't cache a 2613 # value for MKDIR_P within a source directory, because that will 2614 # break other packages using the cache if that directory is 2615 # removed, or if the value is a relative name. 2616 MKDIR_P="$ac_install_sh -d" 2617 fi 2618fi 2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2620$as_echo "$MKDIR_P" >&6; } 2621 2622mkdir_p="$MKDIR_P" 2623case $mkdir_p in 2624 [\\/$]* | ?:[\\/]*) ;; 2625 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2626esac 2627 2628for ac_prog in gawk mawk nawk awk 2629do 2630 # Extract the first word of "$ac_prog", so it can be a program name with args. 2631set dummy $ac_prog; ac_word=$2 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2633$as_echo_n "checking for $ac_word... " >&6; } 2634if test "${ac_cv_prog_AWK+set}" = set; then : 2635 $as_echo_n "(cached) " >&6 2636else 2637 if test -n "$AWK"; then 2638 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2639else 2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2641for as_dir in $PATH 2642do 2643 IFS=$as_save_IFS 2644 test -z "$as_dir" && as_dir=. 2645 for ac_exec_ext in '' $ac_executable_extensions; do 2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2647 ac_cv_prog_AWK="$ac_prog" 2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2649 break 2 2650 fi 2651done 2652 done 2653IFS=$as_save_IFS 2654 2655fi 2656fi 2657AWK=$ac_cv_prog_AWK 2658if test -n "$AWK"; then 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2660$as_echo "$AWK" >&6; } 2661else 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2663$as_echo "no" >&6; } 2664fi 2665 2666 2667 test -n "$AWK" && break 2668done 2669 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2671$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2672set x ${MAKE-make} 2673ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2674if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2675 $as_echo_n "(cached) " >&6 2676else 2677 cat >conftest.make <<\_ACEOF 2678SHELL = /bin/sh 2679all: 2680 @echo '@@@%%%=$(MAKE)=@@@%%%' 2681_ACEOF 2682# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2683case `${MAKE-make} -f conftest.make 2>/dev/null` in 2684 *@@@%%%=?*=@@@%%%*) 2685 eval ac_cv_prog_make_${ac_make}_set=yes;; 2686 *) 2687 eval ac_cv_prog_make_${ac_make}_set=no;; 2688esac 2689rm -f conftest.make 2690fi 2691if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2693$as_echo "yes" >&6; } 2694 SET_MAKE= 2695else 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2697$as_echo "no" >&6; } 2698 SET_MAKE="MAKE=${MAKE-make}" 2699fi 2700 2701rm -rf .tst 2>/dev/null 2702mkdir .tst 2>/dev/null 2703if test -d .tst; then 2704 am__leading_dot=. 2705else 2706 am__leading_dot=_ 2707fi 2708rmdir .tst 2>/dev/null 2709 2710if test "`cd $srcdir && pwd`" != "`pwd`"; then 2711 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2712 # is not polluted with repeated "-I." 2713 am__isrc=' -I$(srcdir)' 2714 # test to see if srcdir already configured 2715 if test -f $srcdir/config.status; then 2716 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2717 fi 2718fi 2719 2720# test whether we have cygpath 2721if test -z "$CYGPATH_W"; then 2722 if (cygpath --version) >/dev/null 2>/dev/null; then 2723 CYGPATH_W='cygpath -w' 2724 else 2725 CYGPATH_W=echo 2726 fi 2727fi 2728 2729 2730# Define the identity of the package. 2731 PACKAGE='flex' 2732 VERSION='2.5.37' 2733 2734 2735cat >>confdefs.h <<_ACEOF 2736#define PACKAGE "$PACKAGE" 2737_ACEOF 2738 2739 2740cat >>confdefs.h <<_ACEOF 2741#define VERSION "$VERSION" 2742_ACEOF 2743 2744# Some tools Automake needs. 2745 2746ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2747 2748 2749AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2750 2751 2752AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2753 2754 2755AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2756 2757 2758MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2759 2760# We need awk for the "check" target. The system "awk" is bad on 2761# some platforms. 2762# Always define AMTAR for backward compatibility. 2763 2764AMTAR=${AMTAR-"${am_missing_run}tar"} 2765 2766am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2767 2768 2769 2770 2771 2772ac_config_headers="$ac_config_headers config.h:conf.in" 2773 2774 2775 2776# checks for programs 2777 2778 2779 MKINSTALLDIRS= 2780 if test -n "$ac_aux_dir"; then 2781 case "$ac_aux_dir" in 2782 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 2783 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 2784 esac 2785 fi 2786 if test -z "$MKINSTALLDIRS"; then 2787 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 2788 fi 2789 2790 2791 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 2793$as_echo_n "checking whether NLS is requested... " >&6; } 2794 # Check whether --enable-nls was given. 2795if test "${enable_nls+set}" = set; then : 2796 enableval=$enable_nls; USE_NLS=$enableval 2797else 2798 USE_NLS=yes 2799fi 2800 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 2802$as_echo "$USE_NLS" >&6; } 2803 2804 2805 2806 2807 2808 2809# Prepare PATH_SEPARATOR. 2810# The user is always right. 2811if test "${PATH_SEPARATOR+set}" != set; then 2812 echo "#! /bin/sh" >conf$$.sh 2813 echo "exit 0" >>conf$$.sh 2814 chmod +x conf$$.sh 2815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 2816 PATH_SEPARATOR=';' 2817 else 2818 PATH_SEPARATOR=: 2819 fi 2820 rm -f conf$$.sh 2821fi 2822 2823# Find out how to test for executable files. Don't use a zero-byte file, 2824# as systems may use methods other than mode bits to determine executability. 2825cat >conf$$.file <<_ASEOF 2826#! /bin/sh 2827exit 0 2828_ASEOF 2829chmod +x conf$$.file 2830if test -x conf$$.file >/dev/null 2>&1; then 2831 ac_executable_p="test -x" 2832else 2833 ac_executable_p="test -f" 2834fi 2835rm -f conf$$.file 2836 2837# Extract the first word of "msgfmt", so it can be a program name with args. 2838set dummy msgfmt; ac_word=$2 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2840$as_echo_n "checking for $ac_word... " >&6; } 2841if test "${ac_cv_path_MSGFMT+set}" = set; then : 2842 $as_echo_n "(cached) " >&6 2843else 2844 case "$MSGFMT" in 2845 [\\/]* | ?:[\\/]*) 2846 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 2847 ;; 2848 *) 2849 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 2850 for ac_dir in $PATH; do 2851 IFS="$ac_save_IFS" 2852 test -z "$ac_dir" && ac_dir=. 2853 for ac_exec_ext in '' $ac_executable_extensions; do 2854 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 2855 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 2856 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 2857 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 2858 break 2 2859 fi 2860 fi 2861 done 2862 done 2863 IFS="$ac_save_IFS" 2864 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 2865 ;; 2866esac 2867fi 2868MSGFMT="$ac_cv_path_MSGFMT" 2869if test "$MSGFMT" != ":"; then 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 2871$as_echo "$MSGFMT" >&6; } 2872else 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2874$as_echo "no" >&6; } 2875fi 2876 2877 # Extract the first word of "gmsgfmt", so it can be a program name with args. 2878set dummy gmsgfmt; ac_word=$2 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2880$as_echo_n "checking for $ac_word... " >&6; } 2881if test "${ac_cv_path_GMSGFMT+set}" = set; then : 2882 $as_echo_n "(cached) " >&6 2883else 2884 case $GMSGFMT in 2885 [\\/]* | ?:[\\/]*) 2886 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 2887 ;; 2888 *) 2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2890for as_dir in $PATH 2891do 2892 IFS=$as_save_IFS 2893 test -z "$as_dir" && as_dir=. 2894 for ac_exec_ext in '' $ac_executable_extensions; do 2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2896 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2898 break 2 2899 fi 2900done 2901 done 2902IFS=$as_save_IFS 2903 2904 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 2905 ;; 2906esac 2907fi 2908GMSGFMT=$ac_cv_path_GMSGFMT 2909if test -n "$GMSGFMT"; then 2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 2911$as_echo "$GMSGFMT" >&6; } 2912else 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2914$as_echo "no" >&6; } 2915fi 2916 2917 2918 2919 2920# Prepare PATH_SEPARATOR. 2921# The user is always right. 2922if test "${PATH_SEPARATOR+set}" != set; then 2923 echo "#! /bin/sh" >conf$$.sh 2924 echo "exit 0" >>conf$$.sh 2925 chmod +x conf$$.sh 2926 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 2927 PATH_SEPARATOR=';' 2928 else 2929 PATH_SEPARATOR=: 2930 fi 2931 rm -f conf$$.sh 2932fi 2933 2934# Find out how to test for executable files. Don't use a zero-byte file, 2935# as systems may use methods other than mode bits to determine executability. 2936cat >conf$$.file <<_ASEOF 2937#! /bin/sh 2938exit 0 2939_ASEOF 2940chmod +x conf$$.file 2941if test -x conf$$.file >/dev/null 2>&1; then 2942 ac_executable_p="test -x" 2943else 2944 ac_executable_p="test -f" 2945fi 2946rm -f conf$$.file 2947 2948# Extract the first word of "xgettext", so it can be a program name with args. 2949set dummy xgettext; ac_word=$2 2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2951$as_echo_n "checking for $ac_word... " >&6; } 2952if test "${ac_cv_path_XGETTEXT+set}" = set; then : 2953 $as_echo_n "(cached) " >&6 2954else 2955 case "$XGETTEXT" in 2956 [\\/]* | ?:[\\/]*) 2957 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 2958 ;; 2959 *) 2960 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 2961 for ac_dir in $PATH; do 2962 IFS="$ac_save_IFS" 2963 test -z "$ac_dir" && ac_dir=. 2964 for ac_exec_ext in '' $ac_executable_extensions; do 2965 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 2966 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 2967 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 2968 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 2969 break 2 2970 fi 2971 fi 2972 done 2973 done 2974 IFS="$ac_save_IFS" 2975 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 2976 ;; 2977esac 2978fi 2979XGETTEXT="$ac_cv_path_XGETTEXT" 2980if test "$XGETTEXT" != ":"; then 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 2982$as_echo "$XGETTEXT" >&6; } 2983else 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2985$as_echo "no" >&6; } 2986fi 2987 2988 rm -f messages.po 2989 2990 2991# Prepare PATH_SEPARATOR. 2992# The user is always right. 2993if test "${PATH_SEPARATOR+set}" != set; then 2994 echo "#! /bin/sh" >conf$$.sh 2995 echo "exit 0" >>conf$$.sh 2996 chmod +x conf$$.sh 2997 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 2998 PATH_SEPARATOR=';' 2999 else 3000 PATH_SEPARATOR=: 3001 fi 3002 rm -f conf$$.sh 3003fi 3004 3005# Find out how to test for executable files. Don't use a zero-byte file, 3006# as systems may use methods other than mode bits to determine executability. 3007cat >conf$$.file <<_ASEOF 3008#! /bin/sh 3009exit 0 3010_ASEOF 3011chmod +x conf$$.file 3012if test -x conf$$.file >/dev/null 2>&1; then 3013 ac_executable_p="test -x" 3014else 3015 ac_executable_p="test -f" 3016fi 3017rm -f conf$$.file 3018 3019# Extract the first word of "msgmerge", so it can be a program name with args. 3020set dummy msgmerge; ac_word=$2 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3022$as_echo_n "checking for $ac_word... " >&6; } 3023if test "${ac_cv_path_MSGMERGE+set}" = set; then : 3024 $as_echo_n "(cached) " >&6 3025else 3026 case "$MSGMERGE" in 3027 [\\/]* | ?:[\\/]*) 3028 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 3029 ;; 3030 *) 3031 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3032 for ac_dir in $PATH; do 3033 IFS="$ac_save_IFS" 3034 test -z "$ac_dir" && ac_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3037 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 3038 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 3039 break 2 3040 fi 3041 fi 3042 done 3043 done 3044 IFS="$ac_save_IFS" 3045 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 3046 ;; 3047esac 3048fi 3049MSGMERGE="$ac_cv_path_MSGMERGE" 3050if test "$MSGMERGE" != ":"; then 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 3052$as_echo "$MSGMERGE" >&6; } 3053else 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3055$as_echo "no" >&6; } 3056fi 3057 3058 3059 if test "$GMSGFMT" != ":"; then 3060 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 3061 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3062 : ; 3063 else 3064 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 3066$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 3067 GMSGFMT=":" 3068 fi 3069 fi 3070 3071 if test "$XGETTEXT" != ":"; then 3072 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 3073 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3074 : ; 3075 else 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 3077$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 3078 XGETTEXT=":" 3079 fi 3080 rm -f messages.po 3081 fi 3082 3083 ac_config_commands="$ac_config_commands default-1" 3084 3085 3086 3087 if test "X$prefix" = "XNONE"; then 3088 acl_final_prefix="$ac_default_prefix" 3089 else 3090 acl_final_prefix="$prefix" 3091 fi 3092 if test "X$exec_prefix" = "XNONE"; then 3093 acl_final_exec_prefix='${prefix}' 3094 else 3095 acl_final_exec_prefix="$exec_prefix" 3096 fi 3097 acl_save_prefix="$prefix" 3098 prefix="$acl_final_prefix" 3099 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 3100 prefix="$acl_save_prefix" 3101 3102DEPDIR="${am__leading_dot}deps" 3103 3104ac_config_commands="$ac_config_commands depfiles" 3105 3106 3107am_make=${MAKE-make} 3108cat > confinc << 'END' 3109am__doit: 3110 @echo this is the am__doit target 3111.PHONY: am__doit 3112END 3113# If we don't find an include directive, just comment out the code. 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3115$as_echo_n "checking for style of include used by $am_make... " >&6; } 3116am__include="#" 3117am__quote= 3118_am_result=none 3119# First try GNU make style include. 3120echo "include confinc" > confmf 3121# Ignore all kinds of additional output from `make'. 3122case `$am_make -s -f confmf 2> /dev/null` in #( 3123*the\ am__doit\ target*) 3124 am__include=include 3125 am__quote= 3126 _am_result=GNU 3127 ;; 3128esac 3129# Now try BSD make style include. 3130if test "$am__include" = "#"; then 3131 echo '.include "confinc"' > confmf 3132 case `$am_make -s -f confmf 2> /dev/null` in #( 3133 *the\ am__doit\ target*) 3134 am__include=.include 3135 am__quote="\"" 3136 _am_result=BSD 3137 ;; 3138 esac 3139fi 3140 3141 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3143$as_echo "$_am_result" >&6; } 3144rm -f confinc confmf 3145 3146# Check whether --enable-dependency-tracking was given. 3147if test "${enable_dependency_tracking+set}" = set; then : 3148 enableval=$enable_dependency_tracking; 3149fi 3150 3151if test "x$enable_dependency_tracking" != xno; then 3152 am_depcomp="$ac_aux_dir/depcomp" 3153 AMDEPBACKSLASH='\' 3154fi 3155 if test "x$enable_dependency_tracking" != xno; then 3156 AMDEP_TRUE= 3157 AMDEP_FALSE='#' 3158else 3159 AMDEP_TRUE='#' 3160 AMDEP_FALSE= 3161fi 3162 3163 3164ac_ext=c 3165ac_cpp='$CPP $CPPFLAGS' 3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3168ac_compiler_gnu=$ac_cv_c_compiler_gnu 3169if test -n "$ac_tool_prefix"; then 3170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3171set dummy ${ac_tool_prefix}gcc; ac_word=$2 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3173$as_echo_n "checking for $ac_word... " >&6; } 3174if test "${ac_cv_prog_CC+set}" = set; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 if test -n "$CC"; then 3178 ac_cv_prog_CC="$CC" # Let the user override the test. 3179else 3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 for ac_exec_ext in '' $ac_executable_extensions; do 3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3187 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3189 break 2 3190 fi 3191done 3192 done 3193IFS=$as_save_IFS 3194 3195fi 3196fi 3197CC=$ac_cv_prog_CC 3198if test -n "$CC"; then 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3200$as_echo "$CC" >&6; } 3201else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203$as_echo "no" >&6; } 3204fi 3205 3206 3207fi 3208if test -z "$ac_cv_prog_CC"; then 3209 ac_ct_CC=$CC 3210 # Extract the first word of "gcc", so it can be a program name with args. 3211set dummy gcc; ac_word=$2 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3213$as_echo_n "checking for $ac_word... " >&6; } 3214if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 if test -n "$ac_ct_CC"; then 3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3219else 3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3221for as_dir in $PATH 3222do 3223 IFS=$as_save_IFS 3224 test -z "$as_dir" && as_dir=. 3225 for ac_exec_ext in '' $ac_executable_extensions; do 3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3227 ac_cv_prog_ac_ct_CC="gcc" 3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3229 break 2 3230 fi 3231done 3232 done 3233IFS=$as_save_IFS 3234 3235fi 3236fi 3237ac_ct_CC=$ac_cv_prog_ac_ct_CC 3238if test -n "$ac_ct_CC"; then 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3240$as_echo "$ac_ct_CC" >&6; } 3241else 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244fi 3245 3246 if test "x$ac_ct_CC" = x; then 3247 CC="" 3248 else 3249 case $cross_compiling:$ac_tool_warned in 3250yes:) 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3253ac_tool_warned=yes ;; 3254esac 3255 CC=$ac_ct_CC 3256 fi 3257else 3258 CC="$ac_cv_prog_CC" 3259fi 3260 3261if test -z "$CC"; then 3262 if test -n "$ac_tool_prefix"; then 3263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3264set dummy ${ac_tool_prefix}cc; ac_word=$2 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3266$as_echo_n "checking for $ac_word... " >&6; } 3267if test "${ac_cv_prog_CC+set}" = set; then : 3268 $as_echo_n "(cached) " >&6 3269else 3270 if test -n "$CC"; then 3271 ac_cv_prog_CC="$CC" # Let the user override the test. 3272else 3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3274for as_dir in $PATH 3275do 3276 IFS=$as_save_IFS 3277 test -z "$as_dir" && as_dir=. 3278 for ac_exec_ext in '' $ac_executable_extensions; do 3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3280 ac_cv_prog_CC="${ac_tool_prefix}cc" 3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3282 break 2 3283 fi 3284done 3285 done 3286IFS=$as_save_IFS 3287 3288fi 3289fi 3290CC=$ac_cv_prog_CC 3291if test -n "$CC"; then 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3293$as_echo "$CC" >&6; } 3294else 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3296$as_echo "no" >&6; } 3297fi 3298 3299 3300 fi 3301fi 3302if test -z "$CC"; then 3303 # Extract the first word of "cc", so it can be a program name with args. 3304set dummy cc; ac_word=$2 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3306$as_echo_n "checking for $ac_word... " >&6; } 3307if test "${ac_cv_prog_CC+set}" = set; then : 3308 $as_echo_n "(cached) " >&6 3309else 3310 if test -n "$CC"; then 3311 ac_cv_prog_CC="$CC" # Let the user override the test. 3312else 3313 ac_prog_rejected=no 3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315for as_dir in $PATH 3316do 3317 IFS=$as_save_IFS 3318 test -z "$as_dir" && as_dir=. 3319 for ac_exec_ext in '' $ac_executable_extensions; do 3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3322 ac_prog_rejected=yes 3323 continue 3324 fi 3325 ac_cv_prog_CC="cc" 3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3327 break 2 3328 fi 3329done 3330 done 3331IFS=$as_save_IFS 3332 3333if test $ac_prog_rejected = yes; then 3334 # We found a bogon in the path, so make sure we never use it. 3335 set dummy $ac_cv_prog_CC 3336 shift 3337 if test $# != 0; then 3338 # We chose a different compiler from the bogus one. 3339 # However, it has the same basename, so the bogon will be chosen 3340 # first if we set CC to just the basename; use the full file name. 3341 shift 3342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3343 fi 3344fi 3345fi 3346fi 3347CC=$ac_cv_prog_CC 3348if test -n "$CC"; then 3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3350$as_echo "$CC" >&6; } 3351else 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3353$as_echo "no" >&6; } 3354fi 3355 3356 3357fi 3358if test -z "$CC"; then 3359 if test -n "$ac_tool_prefix"; then 3360 for ac_prog in cl.exe 3361 do 3362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3363set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3365$as_echo_n "checking for $ac_word... " >&6; } 3366if test "${ac_cv_prog_CC+set}" = set; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 if test -n "$CC"; then 3370 ac_cv_prog_CC="$CC" # Let the user override the test. 3371else 3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373for as_dir in $PATH 3374do 3375 IFS=$as_save_IFS 3376 test -z "$as_dir" && as_dir=. 3377 for ac_exec_ext in '' $ac_executable_extensions; do 3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383done 3384 done 3385IFS=$as_save_IFS 3386 3387fi 3388fi 3389CC=$ac_cv_prog_CC 3390if test -n "$CC"; then 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3392$as_echo "$CC" >&6; } 3393else 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395$as_echo "no" >&6; } 3396fi 3397 3398 3399 test -n "$CC" && break 3400 done 3401fi 3402if test -z "$CC"; then 3403 ac_ct_CC=$CC 3404 for ac_prog in cl.exe 3405do 3406 # Extract the first word of "$ac_prog", so it can be a program name with args. 3407set dummy $ac_prog; ac_word=$2 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3409$as_echo_n "checking for $ac_word... " >&6; } 3410if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3411 $as_echo_n "(cached) " >&6 3412else 3413 if test -n "$ac_ct_CC"; then 3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3415else 3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3417for as_dir in $PATH 3418do 3419 IFS=$as_save_IFS 3420 test -z "$as_dir" && as_dir=. 3421 for ac_exec_ext in '' $ac_executable_extensions; do 3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3423 ac_cv_prog_ac_ct_CC="$ac_prog" 3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3425 break 2 3426 fi 3427done 3428 done 3429IFS=$as_save_IFS 3430 3431fi 3432fi 3433ac_ct_CC=$ac_cv_prog_ac_ct_CC 3434if test -n "$ac_ct_CC"; then 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3436$as_echo "$ac_ct_CC" >&6; } 3437else 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439$as_echo "no" >&6; } 3440fi 3441 3442 3443 test -n "$ac_ct_CC" && break 3444done 3445 3446 if test "x$ac_ct_CC" = x; then 3447 CC="" 3448 else 3449 case $cross_compiling:$ac_tool_warned in 3450yes:) 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3453ac_tool_warned=yes ;; 3454esac 3455 CC=$ac_ct_CC 3456 fi 3457fi 3458 3459fi 3460 3461 3462test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3464as_fn_error "no acceptable C compiler found in \$PATH 3465See \`config.log' for more details." "$LINENO" 5; } 3466 3467# Provide some information about the compiler. 3468$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3469set X $ac_compile 3470ac_compiler=$2 3471for ac_option in --version -v -V -qversion; do 3472 { { ac_try="$ac_compiler $ac_option >&5" 3473case "(($ac_try" in 3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3475 *) ac_try_echo=$ac_try;; 3476esac 3477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3478$as_echo "$ac_try_echo"; } >&5 3479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3480 ac_status=$? 3481 if test -s conftest.err; then 3482 sed '10a\ 3483... rest of stderr output deleted ... 3484 10q' conftest.err >conftest.er1 3485 cat conftest.er1 >&5 3486 fi 3487 rm -f conftest.er1 conftest.err 3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3489 test $ac_status = 0; } 3490done 3491 3492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3493/* end confdefs.h. */ 3494 3495int 3496main () 3497{ 3498 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503ac_clean_files_save=$ac_clean_files 3504ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3505# Try to create an executable without -o first, disregard a.out. 3506# It will help us diagnose broken compilers, and finding out an intuition 3507# of exeext. 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3509$as_echo_n "checking whether the C compiler works... " >&6; } 3510ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3511 3512# The possible output files: 3513ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3514 3515ac_rmfiles= 3516for ac_file in $ac_files 3517do 3518 case $ac_file in 3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3521 esac 3522done 3523rm -f $ac_rmfiles 3524 3525if { { ac_try="$ac_link_default" 3526case "(($ac_try" in 3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3528 *) ac_try_echo=$ac_try;; 3529esac 3530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3531$as_echo "$ac_try_echo"; } >&5 3532 (eval "$ac_link_default") 2>&5 3533 ac_status=$? 3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3535 test $ac_status = 0; }; then : 3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3537# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3538# in a Makefile. We should not override ac_cv_exeext if it was cached, 3539# so that the user can short-circuit this test for compilers unknown to 3540# Autoconf. 3541for ac_file in $ac_files '' 3542do 3543 test -f "$ac_file" || continue 3544 case $ac_file in 3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3546 ;; 3547 [ab].out ) 3548 # We found the default executable, but exeext='' is most 3549 # certainly right. 3550 break;; 3551 *.* ) 3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3553 then :; else 3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3555 fi 3556 # We set ac_cv_exeext here because the later test for it is not 3557 # safe: cross compilers may not add the suffix if given an `-o' 3558 # argument, so we may need to know it at that point already. 3559 # Even if this section looks crufty: it has the advantage of 3560 # actually working. 3561 break;; 3562 * ) 3563 break;; 3564 esac 3565done 3566test "$ac_cv_exeext" = no && ac_cv_exeext= 3567 3568else 3569 ac_file='' 3570fi 3571if test -z "$ac_file"; then : 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3573$as_echo "no" >&6; } 3574$as_echo "$as_me: failed program was:" >&5 3575sed 's/^/| /' conftest.$ac_ext >&5 3576 3577{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3579{ as_fn_set_status 77 3580as_fn_error "C compiler cannot create executables 3581See \`config.log' for more details." "$LINENO" 5; }; } 3582else 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3584$as_echo "yes" >&6; } 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3587$as_echo_n "checking for C compiler default output file name... " >&6; } 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3589$as_echo "$ac_file" >&6; } 3590ac_exeext=$ac_cv_exeext 3591 3592rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3593ac_clean_files=$ac_clean_files_save 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3595$as_echo_n "checking for suffix of executables... " >&6; } 3596if { { ac_try="$ac_link" 3597case "(($ac_try" in 3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3599 *) ac_try_echo=$ac_try;; 3600esac 3601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3602$as_echo "$ac_try_echo"; } >&5 3603 (eval "$ac_link") 2>&5 3604 ac_status=$? 3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3606 test $ac_status = 0; }; then : 3607 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3608# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3609# work properly (i.e., refer to `conftest.exe'), while it won't with 3610# `rm'. 3611for ac_file in conftest.exe conftest conftest.*; do 3612 test -f "$ac_file" || continue 3613 case $ac_file in 3614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3615 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3616 break;; 3617 * ) break;; 3618 esac 3619done 3620else 3621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3623as_fn_error "cannot compute suffix of executables: cannot compile and link 3624See \`config.log' for more details." "$LINENO" 5; } 3625fi 3626rm -f conftest conftest$ac_cv_exeext 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3628$as_echo "$ac_cv_exeext" >&6; } 3629 3630rm -f conftest.$ac_ext 3631EXEEXT=$ac_cv_exeext 3632ac_exeext=$EXEEXT 3633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3634/* end confdefs.h. */ 3635#include <stdio.h> 3636int 3637main () 3638{ 3639FILE *f = fopen ("conftest.out", "w"); 3640 return ferror (f) || fclose (f) != 0; 3641 3642 ; 3643 return 0; 3644} 3645_ACEOF 3646ac_clean_files="$ac_clean_files conftest.out" 3647# Check that the compiler produces executables we can run. If not, either 3648# the compiler is broken, or we cross compile. 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3650$as_echo_n "checking whether we are cross compiling... " >&6; } 3651if test "$cross_compiling" != yes; then 3652 { { ac_try="$ac_link" 3653case "(($ac_try" in 3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3655 *) ac_try_echo=$ac_try;; 3656esac 3657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3658$as_echo "$ac_try_echo"; } >&5 3659 (eval "$ac_link") 2>&5 3660 ac_status=$? 3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3662 test $ac_status = 0; } 3663 if { ac_try='./conftest$ac_cv_exeext' 3664 { { case "(($ac_try" in 3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3666 *) ac_try_echo=$ac_try;; 3667esac 3668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3669$as_echo "$ac_try_echo"; } >&5 3670 (eval "$ac_try") 2>&5 3671 ac_status=$? 3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3673 test $ac_status = 0; }; }; then 3674 cross_compiling=no 3675 else 3676 if test "$cross_compiling" = maybe; then 3677 cross_compiling=yes 3678 else 3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3681as_fn_error "cannot run C compiled programs. 3682If you meant to cross compile, use \`--host'. 3683See \`config.log' for more details." "$LINENO" 5; } 3684 fi 3685 fi 3686fi 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3688$as_echo "$cross_compiling" >&6; } 3689 3690rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3691ac_clean_files=$ac_clean_files_save 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3693$as_echo_n "checking for suffix of object files... " >&6; } 3694if test "${ac_cv_objext+set}" = set; then : 3695 $as_echo_n "(cached) " >&6 3696else 3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699 3700int 3701main () 3702{ 3703 3704 ; 3705 return 0; 3706} 3707_ACEOF 3708rm -f conftest.o conftest.obj 3709if { { ac_try="$ac_compile" 3710case "(($ac_try" in 3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3712 *) ac_try_echo=$ac_try;; 3713esac 3714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3715$as_echo "$ac_try_echo"; } >&5 3716 (eval "$ac_compile") 2>&5 3717 ac_status=$? 3718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3719 test $ac_status = 0; }; then : 3720 for ac_file in conftest.o conftest.obj conftest.*; do 3721 test -f "$ac_file" || continue; 3722 case $ac_file in 3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3724 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3725 break;; 3726 esac 3727done 3728else 3729 $as_echo "$as_me: failed program was:" >&5 3730sed 's/^/| /' conftest.$ac_ext >&5 3731 3732{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3734as_fn_error "cannot compute suffix of object files: cannot compile 3735See \`config.log' for more details." "$LINENO" 5; } 3736fi 3737rm -f conftest.$ac_cv_objext conftest.$ac_ext 3738fi 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3740$as_echo "$ac_cv_objext" >&6; } 3741OBJEXT=$ac_cv_objext 3742ac_objext=$OBJEXT 3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3744$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3745if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3746 $as_echo_n "(cached) " >&6 3747else 3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3749/* end confdefs.h. */ 3750 3751int 3752main () 3753{ 3754#ifndef __GNUC__ 3755 choke me 3756#endif 3757 3758 ; 3759 return 0; 3760} 3761_ACEOF 3762if ac_fn_c_try_compile "$LINENO"; then : 3763 ac_compiler_gnu=yes 3764else 3765 ac_compiler_gnu=no 3766fi 3767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3768ac_cv_c_compiler_gnu=$ac_compiler_gnu 3769 3770fi 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3772$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3773if test $ac_compiler_gnu = yes; then 3774 GCC=yes 3775else 3776 GCC= 3777fi 3778ac_test_CFLAGS=${CFLAGS+set} 3779ac_save_CFLAGS=$CFLAGS 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3781$as_echo_n "checking whether $CC accepts -g... " >&6; } 3782if test "${ac_cv_prog_cc_g+set}" = set; then : 3783 $as_echo_n "(cached) " >&6 3784else 3785 ac_save_c_werror_flag=$ac_c_werror_flag 3786 ac_c_werror_flag=yes 3787 ac_cv_prog_cc_g=no 3788 CFLAGS="-g" 3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3790/* end confdefs.h. */ 3791 3792int 3793main () 3794{ 3795 3796 ; 3797 return 0; 3798} 3799_ACEOF 3800if ac_fn_c_try_compile "$LINENO"; then : 3801 ac_cv_prog_cc_g=yes 3802else 3803 CFLAGS="" 3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805/* end confdefs.h. */ 3806 3807int 3808main () 3809{ 3810 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815if ac_fn_c_try_compile "$LINENO"; then : 3816 3817else 3818 ac_c_werror_flag=$ac_save_c_werror_flag 3819 CFLAGS="-g" 3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3821/* end confdefs.h. */ 3822 3823int 3824main () 3825{ 3826 3827 ; 3828 return 0; 3829} 3830_ACEOF 3831if ac_fn_c_try_compile "$LINENO"; then : 3832 ac_cv_prog_cc_g=yes 3833fi 3834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3835fi 3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3837fi 3838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3839 ac_c_werror_flag=$ac_save_c_werror_flag 3840fi 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3842$as_echo "$ac_cv_prog_cc_g" >&6; } 3843if test "$ac_test_CFLAGS" = set; then 3844 CFLAGS=$ac_save_CFLAGS 3845elif test $ac_cv_prog_cc_g = yes; then 3846 if test "$GCC" = yes; then 3847 CFLAGS="-g -O2" 3848 else 3849 CFLAGS="-g" 3850 fi 3851else 3852 if test "$GCC" = yes; then 3853 CFLAGS="-O2" 3854 else 3855 CFLAGS= 3856 fi 3857fi 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3859$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3860if test "${ac_cv_prog_cc_c89+set}" = set; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 ac_cv_prog_cc_c89=no 3864ac_save_CC=$CC 3865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3866/* end confdefs.h. */ 3867#include <stdarg.h> 3868#include <stdio.h> 3869#include <sys/types.h> 3870#include <sys/stat.h> 3871/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3872struct buf { int x; }; 3873FILE * (*rcsopen) (struct buf *, struct stat *, int); 3874static char *e (p, i) 3875 char **p; 3876 int i; 3877{ 3878 return p[i]; 3879} 3880static char *f (char * (*g) (char **, int), char **p, ...) 3881{ 3882 char *s; 3883 va_list v; 3884 va_start (v,p); 3885 s = g (p, va_arg (v,int)); 3886 va_end (v); 3887 return s; 3888} 3889 3890/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3891 function prototypes and stuff, but not '\xHH' hex character constants. 3892 These don't provoke an error unfortunately, instead are silently treated 3893 as 'x'. The following induces an error, until -std is added to get 3894 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3895 array size at least. It's necessary to write '\x00'==0 to get something 3896 that's true only with -std. */ 3897int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3898 3899/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3900 inside strings and character constants. */ 3901#define FOO(x) 'x' 3902int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3903 3904int test (int i, double x); 3905struct s1 {int (*f) (int a);}; 3906struct s2 {int (*f) (double a);}; 3907int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3908int argc; 3909char **argv; 3910int 3911main () 3912{ 3913return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3914 ; 3915 return 0; 3916} 3917_ACEOF 3918for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3919 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3920do 3921 CC="$ac_save_CC $ac_arg" 3922 if ac_fn_c_try_compile "$LINENO"; then : 3923 ac_cv_prog_cc_c89=$ac_arg 3924fi 3925rm -f core conftest.err conftest.$ac_objext 3926 test "x$ac_cv_prog_cc_c89" != "xno" && break 3927done 3928rm -f conftest.$ac_ext 3929CC=$ac_save_CC 3930 3931fi 3932# AC_CACHE_VAL 3933case "x$ac_cv_prog_cc_c89" in 3934 x) 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3936$as_echo "none needed" >&6; } ;; 3937 xno) 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3939$as_echo "unsupported" >&6; } ;; 3940 *) 3941 CC="$CC $ac_cv_prog_cc_c89" 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3943$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3944esac 3945if test "x$ac_cv_prog_cc_c89" != xno; then : 3946 3947fi 3948 3949ac_ext=c 3950ac_cpp='$CPP $CPPFLAGS' 3951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3953ac_compiler_gnu=$ac_cv_c_compiler_gnu 3954 3955depcc="$CC" am_compiler_list= 3956 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3958$as_echo_n "checking dependency style of $depcc... " >&6; } 3959if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3960 $as_echo_n "(cached) " >&6 3961else 3962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3963 # We make a subdir and do the tests there. Otherwise we can end up 3964 # making bogus files that we don't know about and never remove. For 3965 # instance it was reported that on HP-UX the gcc test will end up 3966 # making a dummy file named `D' -- because `-MD' means `put the output 3967 # in D'. 3968 mkdir conftest.dir 3969 # Copy depcomp to subdir because otherwise we won't find it if we're 3970 # using a relative directory. 3971 cp "$am_depcomp" conftest.dir 3972 cd conftest.dir 3973 # We will build objects and dependencies in a subdirectory because 3974 # it helps to detect inapplicable dependency modes. For instance 3975 # both Tru64's cc and ICC support -MD to output dependencies as a 3976 # side effect of compilation, but ICC will put the dependencies in 3977 # the current directory while Tru64 will put them in the object 3978 # directory. 3979 mkdir sub 3980 3981 am_cv_CC_dependencies_compiler_type=none 3982 if test "$am_compiler_list" = ""; then 3983 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3984 fi 3985 am__universal=false 3986 case " $depcc " in #( 3987 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3988 esac 3989 3990 for depmode in $am_compiler_list; do 3991 # Setup a source with many dependencies, because some compilers 3992 # like to wrap large dependency lists on column 80 (with \), and 3993 # we should not choose a depcomp mode which is confused by this. 3994 # 3995 # We need to recreate these files for each test, as the compiler may 3996 # overwrite some of them when testing with obscure command lines. 3997 # This happens at least with the AIX C compiler. 3998 : > sub/conftest.c 3999 for i in 1 2 3 4 5 6; do 4000 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4001 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4002 # Solaris 8's {/usr,}/bin/sh. 4003 touch sub/conftst$i.h 4004 done 4005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4006 4007 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4008 # mode. It turns out that the SunPro C++ compiler does not properly 4009 # handle `-M -o', and we need to detect this. Also, some Intel 4010 # versions had trouble with output in subdirs 4011 am__obj=sub/conftest.${OBJEXT-o} 4012 am__minus_obj="-o $am__obj" 4013 case $depmode in 4014 gcc) 4015 # This depmode causes a compiler race in universal mode. 4016 test "$am__universal" = false || continue 4017 ;; 4018 nosideeffect) 4019 # after this tag, mechanisms are not by side-effect, so they'll 4020 # only be used when explicitly requested 4021 if test "x$enable_dependency_tracking" = xyes; then 4022 continue 4023 else 4024 break 4025 fi 4026 ;; 4027 msvisualcpp | msvcmsys) 4028 # This compiler won't grok `-c -o', but also, the minuso test has 4029 # not run yet. These depmodes are late enough in the game, and 4030 # so weak that their functioning should not be impacted. 4031 am__obj=conftest.${OBJEXT-o} 4032 am__minus_obj= 4033 ;; 4034 none) break ;; 4035 esac 4036 if depmode=$depmode \ 4037 source=sub/conftest.c object=$am__obj \ 4038 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4039 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4040 >/dev/null 2>conftest.err && 4041 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4042 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4043 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4044 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4045 # icc doesn't choke on unknown options, it will just issue warnings 4046 # or remarks (even with -Werror). So we grep stderr for any message 4047 # that says an option was ignored or not supported. 4048 # When given -MP, icc 7.0 and 7.1 complain thusly: 4049 # icc: Command line warning: ignoring option '-M'; no argument required 4050 # The diagnosis changed in icc 8.0: 4051 # icc: Command line remark: option '-MP' not supported 4052 if (grep 'ignoring option' conftest.err || 4053 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4054 am_cv_CC_dependencies_compiler_type=$depmode 4055 break 4056 fi 4057 fi 4058 done 4059 4060 cd .. 4061 rm -rf conftest.dir 4062else 4063 am_cv_CC_dependencies_compiler_type=none 4064fi 4065 4066fi 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4068$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4069CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4070 4071 if 4072 test "x$enable_dependency_tracking" != xno \ 4073 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4074 am__fastdepCC_TRUE= 4075 am__fastdepCC_FALSE='#' 4076else 4077 am__fastdepCC_TRUE='#' 4078 am__fastdepCC_FALSE= 4079fi 4080 4081 4082# Make sure we can run config.sub. 4083$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4084 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4085 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4087$as_echo_n "checking build system type... " >&6; } 4088if test "${ac_cv_build+set}" = set; then : 4089 $as_echo_n "(cached) " >&6 4090else 4091 ac_build_alias=$build_alias 4092test "x$ac_build_alias" = x && 4093 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4094test "x$ac_build_alias" = x && 4095 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4096ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4097 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4098 4099fi 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4101$as_echo "$ac_cv_build" >&6; } 4102case $ac_cv_build in 4103*-*-*) ;; 4104*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4105esac 4106build=$ac_cv_build 4107ac_save_IFS=$IFS; IFS='-' 4108set x $ac_cv_build 4109shift 4110build_cpu=$1 4111build_vendor=$2 4112shift; shift 4113# Remember, the first character of IFS is used to create $*, 4114# except with old shells: 4115build_os=$* 4116IFS=$ac_save_IFS 4117case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4118 4119 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4121$as_echo_n "checking host system type... " >&6; } 4122if test "${ac_cv_host+set}" = set; then : 4123 $as_echo_n "(cached) " >&6 4124else 4125 if test "x$host_alias" = x; then 4126 ac_cv_host=$ac_cv_build 4127else 4128 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4129 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4130fi 4131 4132fi 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4134$as_echo "$ac_cv_host" >&6; } 4135case $ac_cv_host in 4136*-*-*) ;; 4137*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4138esac 4139host=$ac_cv_host 4140ac_save_IFS=$IFS; IFS='-' 4141set x $ac_cv_host 4142shift 4143host_cpu=$1 4144host_vendor=$2 4145shift; shift 4146# Remember, the first character of IFS is used to create $*, 4147# except with old shells: 4148host_os=$* 4149IFS=$ac_save_IFS 4150case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4151 4152 4153 4154# Check whether --with-gnu-ld was given. 4155if test "${with_gnu_ld+set}" = set; then : 4156 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4157else 4158 with_gnu_ld=no 4159fi 4160 4161# Prepare PATH_SEPARATOR. 4162# The user is always right. 4163if test "${PATH_SEPARATOR+set}" != set; then 4164 echo "#! /bin/sh" >conf$$.sh 4165 echo "exit 0" >>conf$$.sh 4166 chmod +x conf$$.sh 4167 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4168 PATH_SEPARATOR=';' 4169 else 4170 PATH_SEPARATOR=: 4171 fi 4172 rm -f conf$$.sh 4173fi 4174ac_prog=ld 4175if test "$GCC" = yes; then 4176 # Check if gcc -print-prog-name=ld gives a path. 4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 4178$as_echo_n "checking for ld used by GCC... " >&6; } 4179 case $host in 4180 *-*-mingw*) 4181 # gcc leaves a trailing carriage return which upsets mingw 4182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4183 *) 4184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4185 esac 4186 case $ac_prog in 4187 # Accept absolute paths. 4188 [\\/]* | [A-Za-z]:[\\/]*) 4189 re_direlt='/[^/][^/]*/\.\./' 4190 # Canonicalize the path of ld 4191 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 4192 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4193 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4194 done 4195 test -z "$LD" && LD="$ac_prog" 4196 ;; 4197 "") 4198 # If it fails, then pretend we aren't using GCC. 4199 ac_prog=ld 4200 ;; 4201 *) 4202 # If it is relative, then search for the first ld in PATH. 4203 with_gnu_ld=unknown 4204 ;; 4205 esac 4206elif test "$with_gnu_ld" = yes; then 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4208$as_echo_n "checking for GNU ld... " >&6; } 4209else 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4211$as_echo_n "checking for non-GNU ld... " >&6; } 4212fi 4213if test "${acl_cv_path_LD+set}" = set; then : 4214 $as_echo_n "(cached) " >&6 4215else 4216 if test -z "$LD"; then 4217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 4218 for ac_dir in $PATH; do 4219 test -z "$ac_dir" && ac_dir=. 4220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4221 acl_cv_path_LD="$ac_dir/$ac_prog" 4222 # Check to see if the program is GNU ld. I'd rather use --version, 4223 # but apparently some GNU ld's only accept -v. 4224 # Break only if it was the GNU/non-GNU ld that we prefer. 4225 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 4226 test "$with_gnu_ld" != no && break 4227 else 4228 test "$with_gnu_ld" != yes && break 4229 fi 4230 fi 4231 done 4232 IFS="$ac_save_ifs" 4233else 4234 acl_cv_path_LD="$LD" # Let the user override the test with a path. 4235fi 4236fi 4237 4238LD="$acl_cv_path_LD" 4239if test -n "$LD"; then 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4241$as_echo "$LD" >&6; } 4242else 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4244$as_echo "no" >&6; } 4245fi 4246test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4248$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4249if test "${acl_cv_prog_gnu_ld+set}" = set; then : 4250 $as_echo_n "(cached) " >&6 4251else 4252 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4253if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 4254 acl_cv_prog_gnu_ld=yes 4255else 4256 acl_cv_prog_gnu_ld=no 4257fi 4258fi 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 4260$as_echo "$acl_cv_prog_gnu_ld" >&6; } 4261with_gnu_ld=$acl_cv_prog_gnu_ld 4262 4263 4264 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 4266$as_echo_n "checking for shared library run path origin... " >&6; } 4267if test "${acl_cv_rpath+set}" = set; then : 4268 $as_echo_n "(cached) " >&6 4269else 4270 4271 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 4272 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 4273 . ./conftest.sh 4274 rm -f ./conftest.sh 4275 acl_cv_rpath=done 4276 4277fi 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 4279$as_echo "$acl_cv_rpath" >&6; } 4280 wl="$acl_cv_wl" 4281 libext="$acl_cv_libext" 4282 shlibext="$acl_cv_shlibext" 4283 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 4284 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 4285 hardcode_direct="$acl_cv_hardcode_direct" 4286 hardcode_minus_L="$acl_cv_hardcode_minus_L" 4287 # Check whether --enable-rpath was given. 4288if test "${enable_rpath+set}" = set; then : 4289 enableval=$enable_rpath; : 4290else 4291 enable_rpath=yes 4292fi 4293 4294 4295 4296 4297 4298 4299 4300 4301 use_additional=yes 4302 4303 acl_save_prefix="$prefix" 4304 prefix="$acl_final_prefix" 4305 acl_save_exec_prefix="$exec_prefix" 4306 exec_prefix="$acl_final_exec_prefix" 4307 4308 eval additional_includedir=\"$includedir\" 4309 eval additional_libdir=\"$libdir\" 4310 4311 exec_prefix="$acl_save_exec_prefix" 4312 prefix="$acl_save_prefix" 4313 4314 4315# Check whether --with-libiconv-prefix was given. 4316if test "${with_libiconv_prefix+set}" = set; then : 4317 withval=$with_libiconv_prefix; 4318 if test "X$withval" = "Xno"; then 4319 use_additional=no 4320 else 4321 if test "X$withval" = "X"; then 4322 4323 acl_save_prefix="$prefix" 4324 prefix="$acl_final_prefix" 4325 acl_save_exec_prefix="$exec_prefix" 4326 exec_prefix="$acl_final_exec_prefix" 4327 4328 eval additional_includedir=\"$includedir\" 4329 eval additional_libdir=\"$libdir\" 4330 4331 exec_prefix="$acl_save_exec_prefix" 4332 prefix="$acl_save_prefix" 4333 4334 else 4335 additional_includedir="$withval/include" 4336 additional_libdir="$withval/lib" 4337 fi 4338 fi 4339 4340fi 4341 4342 LIBICONV= 4343 LTLIBICONV= 4344 INCICONV= 4345 rpathdirs= 4346 ltrpathdirs= 4347 names_already_handled= 4348 names_next_round='iconv ' 4349 while test -n "$names_next_round"; do 4350 names_this_round="$names_next_round" 4351 names_next_round= 4352 for name in $names_this_round; do 4353 already_handled= 4354 for n in $names_already_handled; do 4355 if test "$n" = "$name"; then 4356 already_handled=yes 4357 break 4358 fi 4359 done 4360 if test -z "$already_handled"; then 4361 names_already_handled="$names_already_handled $name" 4362 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 4363 eval value=\"\$HAVE_LIB$uppername\" 4364 if test -n "$value"; then 4365 if test "$value" = yes; then 4366 eval value=\"\$LIB$uppername\" 4367 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 4368 eval value=\"\$LTLIB$uppername\" 4369 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 4370 else 4371 : 4372 fi 4373 else 4374 found_dir= 4375 found_la= 4376 found_so= 4377 found_a= 4378 if test $use_additional = yes; then 4379 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 4380 found_dir="$additional_libdir" 4381 found_so="$additional_libdir/lib$name.$shlibext" 4382 if test -f "$additional_libdir/lib$name.la"; then 4383 found_la="$additional_libdir/lib$name.la" 4384 fi 4385 else 4386 if test -f "$additional_libdir/lib$name.$libext"; then 4387 found_dir="$additional_libdir" 4388 found_a="$additional_libdir/lib$name.$libext" 4389 if test -f "$additional_libdir/lib$name.la"; then 4390 found_la="$additional_libdir/lib$name.la" 4391 fi 4392 fi 4393 fi 4394 fi 4395 if test "X$found_dir" = "X"; then 4396 for x in $LDFLAGS $LTLIBICONV; do 4397 4398 acl_save_prefix="$prefix" 4399 prefix="$acl_final_prefix" 4400 acl_save_exec_prefix="$exec_prefix" 4401 exec_prefix="$acl_final_exec_prefix" 4402 eval x=\"$x\" 4403 exec_prefix="$acl_save_exec_prefix" 4404 prefix="$acl_save_prefix" 4405 4406 case "$x" in 4407 -L*) 4408 dir=`echo "X$x" | sed -e 's/^X-L//'` 4409 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 4410 found_dir="$dir" 4411 found_so="$dir/lib$name.$shlibext" 4412 if test -f "$dir/lib$name.la"; then 4413 found_la="$dir/lib$name.la" 4414 fi 4415 else 4416 if test -f "$dir/lib$name.$libext"; then 4417 found_dir="$dir" 4418 found_a="$dir/lib$name.$libext" 4419 if test -f "$dir/lib$name.la"; then 4420 found_la="$dir/lib$name.la" 4421 fi 4422 fi 4423 fi 4424 ;; 4425 esac 4426 if test "X$found_dir" != "X"; then 4427 break 4428 fi 4429 done 4430 fi 4431 if test "X$found_dir" != "X"; then 4432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 4433 if test "X$found_so" != "X"; then 4434 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 4435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4436 else 4437 haveit= 4438 for x in $ltrpathdirs; do 4439 if test "X$x" = "X$found_dir"; then 4440 haveit=yes 4441 break 4442 fi 4443 done 4444 if test -z "$haveit"; then 4445 ltrpathdirs="$ltrpathdirs $found_dir" 4446 fi 4447 if test "$hardcode_direct" = yes; then 4448 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4449 else 4450 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 4451 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4452 haveit= 4453 for x in $rpathdirs; do 4454 if test "X$x" = "X$found_dir"; then 4455 haveit=yes 4456 break 4457 fi 4458 done 4459 if test -z "$haveit"; then 4460 rpathdirs="$rpathdirs $found_dir" 4461 fi 4462 else 4463 haveit= 4464 for x in $LDFLAGS $LIBICONV; do 4465 4466 acl_save_prefix="$prefix" 4467 prefix="$acl_final_prefix" 4468 acl_save_exec_prefix="$exec_prefix" 4469 exec_prefix="$acl_final_exec_prefix" 4470 eval x=\"$x\" 4471 exec_prefix="$acl_save_exec_prefix" 4472 prefix="$acl_save_prefix" 4473 4474 if test "X$x" = "X-L$found_dir"; then 4475 haveit=yes 4476 break 4477 fi 4478 done 4479 if test -z "$haveit"; then 4480 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 4481 fi 4482 if test "$hardcode_minus_L" != no; then 4483 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4484 else 4485 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 4486 fi 4487 fi 4488 fi 4489 fi 4490 else 4491 if test "X$found_a" != "X"; then 4492 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 4493 else 4494 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 4495 fi 4496 fi 4497 additional_includedir= 4498 case "$found_dir" in 4499 */lib | */lib/) 4500 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 4501 additional_includedir="$basedir/include" 4502 ;; 4503 esac 4504 if test "X$additional_includedir" != "X"; then 4505 if test "X$additional_includedir" != "X/usr/include"; then 4506 haveit= 4507 if test "X$additional_includedir" = "X/usr/local/include"; then 4508 if test -n "$GCC"; then 4509 case $host_os in 4510 linux*) haveit=yes;; 4511 esac 4512 fi 4513 fi 4514 if test -z "$haveit"; then 4515 for x in $CPPFLAGS $INCICONV; do 4516 4517 acl_save_prefix="$prefix" 4518 prefix="$acl_final_prefix" 4519 acl_save_exec_prefix="$exec_prefix" 4520 exec_prefix="$acl_final_exec_prefix" 4521 eval x=\"$x\" 4522 exec_prefix="$acl_save_exec_prefix" 4523 prefix="$acl_save_prefix" 4524 4525 if test "X$x" = "X-I$additional_includedir"; then 4526 haveit=yes 4527 break 4528 fi 4529 done 4530 if test -z "$haveit"; then 4531 if test -d "$additional_includedir"; then 4532 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 4533 fi 4534 fi 4535 fi 4536 fi 4537 fi 4538 if test -n "$found_la"; then 4539 save_libdir="$libdir" 4540 case "$found_la" in 4541 */* | *\\*) . "$found_la" ;; 4542 *) . "./$found_la" ;; 4543 esac 4544 libdir="$save_libdir" 4545 for dep in $dependency_libs; do 4546 case "$dep" in 4547 -L*) 4548 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 4549 if test "X$additional_libdir" != "X/usr/lib"; then 4550 haveit= 4551 if test "X$additional_libdir" = "X/usr/local/lib"; then 4552 if test -n "$GCC"; then 4553 case $host_os in 4554 linux*) haveit=yes;; 4555 esac 4556 fi 4557 fi 4558 if test -z "$haveit"; then 4559 haveit= 4560 for x in $LDFLAGS $LIBICONV; do 4561 4562 acl_save_prefix="$prefix" 4563 prefix="$acl_final_prefix" 4564 acl_save_exec_prefix="$exec_prefix" 4565 exec_prefix="$acl_final_exec_prefix" 4566 eval x=\"$x\" 4567 exec_prefix="$acl_save_exec_prefix" 4568 prefix="$acl_save_prefix" 4569 4570 if test "X$x" = "X-L$additional_libdir"; then 4571 haveit=yes 4572 break 4573 fi 4574 done 4575 if test -z "$haveit"; then 4576 if test -d "$additional_libdir"; then 4577 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 4578 fi 4579 fi 4580 haveit= 4581 for x in $LDFLAGS $LTLIBICONV; do 4582 4583 acl_save_prefix="$prefix" 4584 prefix="$acl_final_prefix" 4585 acl_save_exec_prefix="$exec_prefix" 4586 exec_prefix="$acl_final_exec_prefix" 4587 eval x=\"$x\" 4588 exec_prefix="$acl_save_exec_prefix" 4589 prefix="$acl_save_prefix" 4590 4591 if test "X$x" = "X-L$additional_libdir"; then 4592 haveit=yes 4593 break 4594 fi 4595 done 4596 if test -z "$haveit"; then 4597 if test -d "$additional_libdir"; then 4598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 4599 fi 4600 fi 4601 fi 4602 fi 4603 ;; 4604 -R*) 4605 dir=`echo "X$dep" | sed -e 's/^X-R//'` 4606 if test "$enable_rpath" != no; then 4607 haveit= 4608 for x in $rpathdirs; do 4609 if test "X$x" = "X$dir"; then 4610 haveit=yes 4611 break 4612 fi 4613 done 4614 if test -z "$haveit"; then 4615 rpathdirs="$rpathdirs $dir" 4616 fi 4617 haveit= 4618 for x in $ltrpathdirs; do 4619 if test "X$x" = "X$dir"; then 4620 haveit=yes 4621 break 4622 fi 4623 done 4624 if test -z "$haveit"; then 4625 ltrpathdirs="$ltrpathdirs $dir" 4626 fi 4627 fi 4628 ;; 4629 -l*) 4630 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 4631 ;; 4632 *.la) 4633 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 4634 ;; 4635 *) 4636 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 4637 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 4638 ;; 4639 esac 4640 done 4641 fi 4642 else 4643 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 4644 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 4645 fi 4646 fi 4647 fi 4648 done 4649 done 4650 if test "X$rpathdirs" != "X"; then 4651 if test -n "$hardcode_libdir_separator"; then 4652 alldirs= 4653 for found_dir in $rpathdirs; do 4654 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 4655 done 4656 acl_save_libdir="$libdir" 4657 libdir="$alldirs" 4658 eval flag=\"$hardcode_libdir_flag_spec\" 4659 libdir="$acl_save_libdir" 4660 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 4661 else 4662 for found_dir in $rpathdirs; do 4663 acl_save_libdir="$libdir" 4664 libdir="$found_dir" 4665 eval flag=\"$hardcode_libdir_flag_spec\" 4666 libdir="$acl_save_libdir" 4667 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 4668 done 4669 fi 4670 fi 4671 if test "X$ltrpathdirs" != "X"; then 4672 for found_dir in $ltrpathdirs; do 4673 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 4674 done 4675 fi 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 4696$as_echo_n "checking whether NLS is requested... " >&6; } 4697 # Check whether --enable-nls was given. 4698if test "${enable_nls+set}" = set; then : 4699 enableval=$enable_nls; USE_NLS=$enableval 4700else 4701 USE_NLS=yes 4702fi 4703 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 4705$as_echo "$USE_NLS" >&6; } 4706 4707 4708 4709 4710 LIBINTL= 4711 LTLIBINTL= 4712 POSUB= 4713 4714 if test "$USE_NLS" = "yes"; then 4715 gt_use_preinstalled_gnugettext=no 4716 4717 4718 4719 4720 4721 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 4723$as_echo_n "checking for GNU gettext in libc... " >&6; } 4724if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : 4725 $as_echo_n "(cached) " >&6 4726else 4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4728/* end confdefs.h. */ 4729#include <libintl.h> 4730extern int _nl_msg_cat_cntr; 4731extern int *_nl_domain_bindings; 4732int 4733main () 4734{ 4735bindtextdomain ("", ""); 4736return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 4737 ; 4738 return 0; 4739} 4740_ACEOF 4741if ac_fn_c_try_link "$LINENO"; then : 4742 gt_cv_func_gnugettext1_libc=yes 4743else 4744 gt_cv_func_gnugettext1_libc=no 4745fi 4746rm -f core conftest.err conftest.$ac_objext \ 4747 conftest$ac_exeext conftest.$ac_ext 4748fi 4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 4750$as_echo "$gt_cv_func_gnugettext1_libc" >&6; } 4751 4752 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 4753 4754 4755 4756 4757 4758 am_save_CPPFLAGS="$CPPFLAGS" 4759 4760 for element in $INCICONV; do 4761 haveit= 4762 for x in $CPPFLAGS; do 4763 4764 acl_save_prefix="$prefix" 4765 prefix="$acl_final_prefix" 4766 acl_save_exec_prefix="$exec_prefix" 4767 exec_prefix="$acl_final_exec_prefix" 4768 eval x=\"$x\" 4769 exec_prefix="$acl_save_exec_prefix" 4770 prefix="$acl_save_prefix" 4771 4772 if test "X$x" = "X$element"; then 4773 haveit=yes 4774 break 4775 fi 4776 done 4777 if test -z "$haveit"; then 4778 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 4779 fi 4780 done 4781 4782 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 4784$as_echo_n "checking for iconv... " >&6; } 4785if test "${am_cv_func_iconv+set}" = set; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 4789 am_cv_func_iconv="no, consider installing GNU libiconv" 4790 am_cv_lib_iconv=no 4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4792/* end confdefs.h. */ 4793#include <stdlib.h> 4794#include <iconv.h> 4795int 4796main () 4797{ 4798iconv_t cd = iconv_open("",""); 4799 iconv(cd,NULL,NULL,NULL,NULL); 4800 iconv_close(cd); 4801 ; 4802 return 0; 4803} 4804_ACEOF 4805if ac_fn_c_try_link "$LINENO"; then : 4806 am_cv_func_iconv=yes 4807fi 4808rm -f core conftest.err conftest.$ac_objext \ 4809 conftest$ac_exeext conftest.$ac_ext 4810 if test "$am_cv_func_iconv" != yes; then 4811 am_save_LIBS="$LIBS" 4812 LIBS="$LIBS $LIBICONV" 4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4814/* end confdefs.h. */ 4815#include <stdlib.h> 4816#include <iconv.h> 4817int 4818main () 4819{ 4820iconv_t cd = iconv_open("",""); 4821 iconv(cd,NULL,NULL,NULL,NULL); 4822 iconv_close(cd); 4823 ; 4824 return 0; 4825} 4826_ACEOF 4827if ac_fn_c_try_link "$LINENO"; then : 4828 am_cv_lib_iconv=yes 4829 am_cv_func_iconv=yes 4830fi 4831rm -f core conftest.err conftest.$ac_objext \ 4832 conftest$ac_exeext conftest.$ac_ext 4833 LIBS="$am_save_LIBS" 4834 fi 4835 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 4838$as_echo "$am_cv_func_iconv" >&6; } 4839 if test "$am_cv_func_iconv" = yes; then 4840 4841$as_echo "#define HAVE_ICONV 1" >>confdefs.h 4842 4843 fi 4844 if test "$am_cv_lib_iconv" = yes; then 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 4846$as_echo_n "checking how to link with libiconv... " >&6; } 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 4848$as_echo "$LIBICONV" >&6; } 4849 else 4850 CPPFLAGS="$am_save_CPPFLAGS" 4851 LIBICONV= 4852 LTLIBICONV= 4853 fi 4854 4855 4856 4857 4858 4859 4860 use_additional=yes 4861 4862 acl_save_prefix="$prefix" 4863 prefix="$acl_final_prefix" 4864 acl_save_exec_prefix="$exec_prefix" 4865 exec_prefix="$acl_final_exec_prefix" 4866 4867 eval additional_includedir=\"$includedir\" 4868 eval additional_libdir=\"$libdir\" 4869 4870 exec_prefix="$acl_save_exec_prefix" 4871 prefix="$acl_save_prefix" 4872 4873 4874# Check whether --with-libintl-prefix was given. 4875if test "${with_libintl_prefix+set}" = set; then : 4876 withval=$with_libintl_prefix; 4877 if test "X$withval" = "Xno"; then 4878 use_additional=no 4879 else 4880 if test "X$withval" = "X"; then 4881 4882 acl_save_prefix="$prefix" 4883 prefix="$acl_final_prefix" 4884 acl_save_exec_prefix="$exec_prefix" 4885 exec_prefix="$acl_final_exec_prefix" 4886 4887 eval additional_includedir=\"$includedir\" 4888 eval additional_libdir=\"$libdir\" 4889 4890 exec_prefix="$acl_save_exec_prefix" 4891 prefix="$acl_save_prefix" 4892 4893 else 4894 additional_includedir="$withval/include" 4895 additional_libdir="$withval/lib" 4896 fi 4897 fi 4898 4899fi 4900 4901 LIBINTL= 4902 LTLIBINTL= 4903 INCINTL= 4904 rpathdirs= 4905 ltrpathdirs= 4906 names_already_handled= 4907 names_next_round='intl ' 4908 while test -n "$names_next_round"; do 4909 names_this_round="$names_next_round" 4910 names_next_round= 4911 for name in $names_this_round; do 4912 already_handled= 4913 for n in $names_already_handled; do 4914 if test "$n" = "$name"; then 4915 already_handled=yes 4916 break 4917 fi 4918 done 4919 if test -z "$already_handled"; then 4920 names_already_handled="$names_already_handled $name" 4921 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 4922 eval value=\"\$HAVE_LIB$uppername\" 4923 if test -n "$value"; then 4924 if test "$value" = yes; then 4925 eval value=\"\$LIB$uppername\" 4926 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 4927 eval value=\"\$LTLIB$uppername\" 4928 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 4929 else 4930 : 4931 fi 4932 else 4933 found_dir= 4934 found_la= 4935 found_so= 4936 found_a= 4937 if test $use_additional = yes; then 4938 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 4939 found_dir="$additional_libdir" 4940 found_so="$additional_libdir/lib$name.$shlibext" 4941 if test -f "$additional_libdir/lib$name.la"; then 4942 found_la="$additional_libdir/lib$name.la" 4943 fi 4944 else 4945 if test -f "$additional_libdir/lib$name.$libext"; then 4946 found_dir="$additional_libdir" 4947 found_a="$additional_libdir/lib$name.$libext" 4948 if test -f "$additional_libdir/lib$name.la"; then 4949 found_la="$additional_libdir/lib$name.la" 4950 fi 4951 fi 4952 fi 4953 fi 4954 if test "X$found_dir" = "X"; then 4955 for x in $LDFLAGS $LTLIBINTL; do 4956 4957 acl_save_prefix="$prefix" 4958 prefix="$acl_final_prefix" 4959 acl_save_exec_prefix="$exec_prefix" 4960 exec_prefix="$acl_final_exec_prefix" 4961 eval x=\"$x\" 4962 exec_prefix="$acl_save_exec_prefix" 4963 prefix="$acl_save_prefix" 4964 4965 case "$x" in 4966 -L*) 4967 dir=`echo "X$x" | sed -e 's/^X-L//'` 4968 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 4969 found_dir="$dir" 4970 found_so="$dir/lib$name.$shlibext" 4971 if test -f "$dir/lib$name.la"; then 4972 found_la="$dir/lib$name.la" 4973 fi 4974 else 4975 if test -f "$dir/lib$name.$libext"; then 4976 found_dir="$dir" 4977 found_a="$dir/lib$name.$libext" 4978 if test -f "$dir/lib$name.la"; then 4979 found_la="$dir/lib$name.la" 4980 fi 4981 fi 4982 fi 4983 ;; 4984 esac 4985 if test "X$found_dir" != "X"; then 4986 break 4987 fi 4988 done 4989 fi 4990 if test "X$found_dir" != "X"; then 4991 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 4992 if test "X$found_so" != "X"; then 4993 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 4994 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 4995 else 4996 haveit= 4997 for x in $ltrpathdirs; do 4998 if test "X$x" = "X$found_dir"; then 4999 haveit=yes 5000 break 5001 fi 5002 done 5003 if test -z "$haveit"; then 5004 ltrpathdirs="$ltrpathdirs $found_dir" 5005 fi 5006 if test "$hardcode_direct" = yes; then 5007 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5008 else 5009 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 5010 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5011 haveit= 5012 for x in $rpathdirs; do 5013 if test "X$x" = "X$found_dir"; then 5014 haveit=yes 5015 break 5016 fi 5017 done 5018 if test -z "$haveit"; then 5019 rpathdirs="$rpathdirs $found_dir" 5020 fi 5021 else 5022 haveit= 5023 for x in $LDFLAGS $LIBINTL; do 5024 5025 acl_save_prefix="$prefix" 5026 prefix="$acl_final_prefix" 5027 acl_save_exec_prefix="$exec_prefix" 5028 exec_prefix="$acl_final_exec_prefix" 5029 eval x=\"$x\" 5030 exec_prefix="$acl_save_exec_prefix" 5031 prefix="$acl_save_prefix" 5032 5033 if test "X$x" = "X-L$found_dir"; then 5034 haveit=yes 5035 break 5036 fi 5037 done 5038 if test -z "$haveit"; then 5039 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 5040 fi 5041 if test "$hardcode_minus_L" != no; then 5042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5043 else 5044 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 5045 fi 5046 fi 5047 fi 5048 fi 5049 else 5050 if test "X$found_a" != "X"; then 5051 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 5052 else 5053 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 5054 fi 5055 fi 5056 additional_includedir= 5057 case "$found_dir" in 5058 */lib | */lib/) 5059 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 5060 additional_includedir="$basedir/include" 5061 ;; 5062 esac 5063 if test "X$additional_includedir" != "X"; then 5064 if test "X$additional_includedir" != "X/usr/include"; then 5065 haveit= 5066 if test "X$additional_includedir" = "X/usr/local/include"; then 5067 if test -n "$GCC"; then 5068 case $host_os in 5069 linux*) haveit=yes;; 5070 esac 5071 fi 5072 fi 5073 if test -z "$haveit"; then 5074 for x in $CPPFLAGS $INCINTL; do 5075 5076 acl_save_prefix="$prefix" 5077 prefix="$acl_final_prefix" 5078 acl_save_exec_prefix="$exec_prefix" 5079 exec_prefix="$acl_final_exec_prefix" 5080 eval x=\"$x\" 5081 exec_prefix="$acl_save_exec_prefix" 5082 prefix="$acl_save_prefix" 5083 5084 if test "X$x" = "X-I$additional_includedir"; then 5085 haveit=yes 5086 break 5087 fi 5088 done 5089 if test -z "$haveit"; then 5090 if test -d "$additional_includedir"; then 5091 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 5092 fi 5093 fi 5094 fi 5095 fi 5096 fi 5097 if test -n "$found_la"; then 5098 save_libdir="$libdir" 5099 case "$found_la" in 5100 */* | *\\*) . "$found_la" ;; 5101 *) . "./$found_la" ;; 5102 esac 5103 libdir="$save_libdir" 5104 for dep in $dependency_libs; do 5105 case "$dep" in 5106 -L*) 5107 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 5108 if test "X$additional_libdir" != "X/usr/lib"; then 5109 haveit= 5110 if test "X$additional_libdir" = "X/usr/local/lib"; then 5111 if test -n "$GCC"; then 5112 case $host_os in 5113 linux*) haveit=yes;; 5114 esac 5115 fi 5116 fi 5117 if test -z "$haveit"; then 5118 haveit= 5119 for x in $LDFLAGS $LIBINTL; do 5120 5121 acl_save_prefix="$prefix" 5122 prefix="$acl_final_prefix" 5123 acl_save_exec_prefix="$exec_prefix" 5124 exec_prefix="$acl_final_exec_prefix" 5125 eval x=\"$x\" 5126 exec_prefix="$acl_save_exec_prefix" 5127 prefix="$acl_save_prefix" 5128 5129 if test "X$x" = "X-L$additional_libdir"; then 5130 haveit=yes 5131 break 5132 fi 5133 done 5134 if test -z "$haveit"; then 5135 if test -d "$additional_libdir"; then 5136 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 5137 fi 5138 fi 5139 haveit= 5140 for x in $LDFLAGS $LTLIBINTL; do 5141 5142 acl_save_prefix="$prefix" 5143 prefix="$acl_final_prefix" 5144 acl_save_exec_prefix="$exec_prefix" 5145 exec_prefix="$acl_final_exec_prefix" 5146 eval x=\"$x\" 5147 exec_prefix="$acl_save_exec_prefix" 5148 prefix="$acl_save_prefix" 5149 5150 if test "X$x" = "X-L$additional_libdir"; then 5151 haveit=yes 5152 break 5153 fi 5154 done 5155 if test -z "$haveit"; then 5156 if test -d "$additional_libdir"; then 5157 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 5158 fi 5159 fi 5160 fi 5161 fi 5162 ;; 5163 -R*) 5164 dir=`echo "X$dep" | sed -e 's/^X-R//'` 5165 if test "$enable_rpath" != no; then 5166 haveit= 5167 for x in $rpathdirs; do 5168 if test "X$x" = "X$dir"; then 5169 haveit=yes 5170 break 5171 fi 5172 done 5173 if test -z "$haveit"; then 5174 rpathdirs="$rpathdirs $dir" 5175 fi 5176 haveit= 5177 for x in $ltrpathdirs; do 5178 if test "X$x" = "X$dir"; then 5179 haveit=yes 5180 break 5181 fi 5182 done 5183 if test -z "$haveit"; then 5184 ltrpathdirs="$ltrpathdirs $dir" 5185 fi 5186 fi 5187 ;; 5188 -l*) 5189 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 5190 ;; 5191 *.la) 5192 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 5193 ;; 5194 *) 5195 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 5196 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 5197 ;; 5198 esac 5199 done 5200 fi 5201 else 5202 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 5203 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 5204 fi 5205 fi 5206 fi 5207 done 5208 done 5209 if test "X$rpathdirs" != "X"; then 5210 if test -n "$hardcode_libdir_separator"; then 5211 alldirs= 5212 for found_dir in $rpathdirs; do 5213 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 5214 done 5215 acl_save_libdir="$libdir" 5216 libdir="$alldirs" 5217 eval flag=\"$hardcode_libdir_flag_spec\" 5218 libdir="$acl_save_libdir" 5219 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 5220 else 5221 for found_dir in $rpathdirs; do 5222 acl_save_libdir="$libdir" 5223 libdir="$found_dir" 5224 eval flag=\"$hardcode_libdir_flag_spec\" 5225 libdir="$acl_save_libdir" 5226 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 5227 done 5228 fi 5229 fi 5230 if test "X$ltrpathdirs" != "X"; then 5231 for found_dir in $ltrpathdirs; do 5232 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 5233 done 5234 fi 5235 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 5237$as_echo_n "checking for GNU gettext in libintl... " >&6; } 5238if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : 5239 $as_echo_n "(cached) " >&6 5240else 5241 gt_save_CPPFLAGS="$CPPFLAGS" 5242 CPPFLAGS="$CPPFLAGS $INCINTL" 5243 gt_save_LIBS="$LIBS" 5244 LIBS="$LIBS $LIBINTL" 5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5246/* end confdefs.h. */ 5247#include <libintl.h> 5248extern int _nl_msg_cat_cntr; 5249extern 5250#ifdef __cplusplus 5251"C" 5252#endif 5253const char *_nl_expand_alias (); 5254int 5255main () 5256{ 5257bindtextdomain ("", ""); 5258return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 5259 ; 5260 return 0; 5261} 5262_ACEOF 5263if ac_fn_c_try_link "$LINENO"; then : 5264 gt_cv_func_gnugettext1_libintl=yes 5265else 5266 gt_cv_func_gnugettext1_libintl=no 5267fi 5268rm -f core conftest.err conftest.$ac_objext \ 5269 conftest$ac_exeext conftest.$ac_ext 5270 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 5271 LIBS="$LIBS $LIBICONV" 5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5273/* end confdefs.h. */ 5274#include <libintl.h> 5275extern int _nl_msg_cat_cntr; 5276extern 5277#ifdef __cplusplus 5278"C" 5279#endif 5280const char *_nl_expand_alias (); 5281int 5282main () 5283{ 5284bindtextdomain ("", ""); 5285return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 5286 ; 5287 return 0; 5288} 5289_ACEOF 5290if ac_fn_c_try_link "$LINENO"; then : 5291 LIBINTL="$LIBINTL $LIBICONV" 5292 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 5293 gt_cv_func_gnugettext1_libintl=yes 5294 5295fi 5296rm -f core conftest.err conftest.$ac_objext \ 5297 conftest$ac_exeext conftest.$ac_ext 5298 fi 5299 CPPFLAGS="$gt_save_CPPFLAGS" 5300 LIBS="$gt_save_LIBS" 5301fi 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 5303$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } 5304 fi 5305 5306 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 5307 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 5308 && test "$PACKAGE" != gettext-runtime \ 5309 && test "$PACKAGE" != gettext-tools; }; then 5310 gt_use_preinstalled_gnugettext=yes 5311 else 5312 LIBINTL= 5313 LTLIBINTL= 5314 INCINTL= 5315 fi 5316 5317 5318 5319 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 5320 || test "$nls_cv_use_gnu_gettext" = "yes"; then 5321 5322$as_echo "#define ENABLE_NLS 1" >>confdefs.h 5323 5324 else 5325 USE_NLS=no 5326 fi 5327 fi 5328 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 5330$as_echo_n "checking whether to use NLS... " >&6; } 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5332$as_echo "$USE_NLS" >&6; } 5333 if test "$USE_NLS" = "yes"; then 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 5335$as_echo_n "checking where the gettext function comes from... " >&6; } 5336 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 5337 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 5338 gt_source="external libintl" 5339 else 5340 gt_source="libc" 5341 fi 5342 else 5343 gt_source="included intl directory" 5344 fi 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 5346$as_echo "$gt_source" >&6; } 5347 fi 5348 5349 if test "$USE_NLS" = "yes"; then 5350 5351 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 5352 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 5354$as_echo_n "checking how to link with libintl... " >&6; } 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 5356$as_echo "$LIBINTL" >&6; } 5357 5358 for element in $INCINTL; do 5359 haveit= 5360 for x in $CPPFLAGS; do 5361 5362 acl_save_prefix="$prefix" 5363 prefix="$acl_final_prefix" 5364 acl_save_exec_prefix="$exec_prefix" 5365 exec_prefix="$acl_final_exec_prefix" 5366 eval x=\"$x\" 5367 exec_prefix="$acl_save_exec_prefix" 5368 prefix="$acl_save_prefix" 5369 5370 if test "X$x" = "X$element"; then 5371 haveit=yes 5372 break 5373 fi 5374 done 5375 if test -z "$haveit"; then 5376 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5377 fi 5378 done 5379 5380 fi 5381 5382 5383$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 5384 5385 5386$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 5387 5388 fi 5389 5390 POSUB=po 5391 fi 5392 5393 5394 5395 INTLLIBS="$LIBINTL" 5396 5397 5398 5399 5400 5401 5402 5403for ac_prog in 'bison -y' byacc 5404do 5405 # Extract the first word of "$ac_prog", so it can be a program name with args. 5406set dummy $ac_prog; ac_word=$2 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5408$as_echo_n "checking for $ac_word... " >&6; } 5409if test "${ac_cv_prog_YACC+set}" = set; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 if test -n "$YACC"; then 5413 ac_cv_prog_YACC="$YACC" # Let the user override the test. 5414else 5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5416for as_dir in $PATH 5417do 5418 IFS=$as_save_IFS 5419 test -z "$as_dir" && as_dir=. 5420 for ac_exec_ext in '' $ac_executable_extensions; do 5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5422 ac_cv_prog_YACC="$ac_prog" 5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5424 break 2 5425 fi 5426done 5427 done 5428IFS=$as_save_IFS 5429 5430fi 5431fi 5432YACC=$ac_cv_prog_YACC 5433if test -n "$YACC"; then 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 5435$as_echo "$YACC" >&6; } 5436else 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5438$as_echo "no" >&6; } 5439fi 5440 5441 5442 test -n "$YACC" && break 5443done 5444test -n "$YACC" || YACC="yacc" 5445 5446for ac_prog in flex lex 5447do 5448 # Extract the first word of "$ac_prog", so it can be a program name with args. 5449set dummy $ac_prog; ac_word=$2 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5451$as_echo_n "checking for $ac_word... " >&6; } 5452if test "${ac_cv_prog_LEX+set}" = set; then : 5453 $as_echo_n "(cached) " >&6 5454else 5455 if test -n "$LEX"; then 5456 ac_cv_prog_LEX="$LEX" # Let the user override the test. 5457else 5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5459for as_dir in $PATH 5460do 5461 IFS=$as_save_IFS 5462 test -z "$as_dir" && as_dir=. 5463 for ac_exec_ext in '' $ac_executable_extensions; do 5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5465 ac_cv_prog_LEX="$ac_prog" 5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5467 break 2 5468 fi 5469done 5470 done 5471IFS=$as_save_IFS 5472 5473fi 5474fi 5475LEX=$ac_cv_prog_LEX 5476if test -n "$LEX"; then 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 5478$as_echo "$LEX" >&6; } 5479else 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5481$as_echo "no" >&6; } 5482fi 5483 5484 5485 test -n "$LEX" && break 5486done 5487test -n "$LEX" || LEX=":" 5488 5489if test "x$LEX" != "x:"; then 5490 cat >conftest.l <<_ACEOF 5491%% 5492a { ECHO; } 5493b { REJECT; } 5494c { yymore (); } 5495d { yyless (1); } 5496e { yyless (input () != 0); } 5497f { unput (yytext[0]); } 5498. { BEGIN INITIAL; } 5499%% 5500#ifdef YYTEXT_POINTER 5501extern char *yytext; 5502#endif 5503int 5504main (void) 5505{ 5506 return ! yylex () + ! yywrap (); 5507} 5508_ACEOF 5509{ { ac_try="$LEX conftest.l" 5510case "(($ac_try" in 5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5512 *) ac_try_echo=$ac_try;; 5513esac 5514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5515$as_echo "$ac_try_echo"; } >&5 5516 (eval "$LEX conftest.l") 2>&5 5517 ac_status=$? 5518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5519 test $ac_status = 0; } 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 5521$as_echo_n "checking lex output file root... " >&6; } 5522if test "${ac_cv_prog_lex_root+set}" = set; then : 5523 $as_echo_n "(cached) " >&6 5524else 5525 5526if test -f lex.yy.c; then 5527 ac_cv_prog_lex_root=lex.yy 5528elif test -f lexyy.c; then 5529 ac_cv_prog_lex_root=lexyy 5530else 5531 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 5532fi 5533fi 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 5535$as_echo "$ac_cv_prog_lex_root" >&6; } 5536LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 5537 5538if test -z "${LEXLIB+set}"; then 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 5540$as_echo_n "checking lex library... " >&6; } 5541if test "${ac_cv_lib_lex+set}" = set; then : 5542 $as_echo_n "(cached) " >&6 5543else 5544 5545 ac_save_LIBS=$LIBS 5546 ac_cv_lib_lex='none needed' 5547 for ac_lib in '' -lfl -ll; do 5548 LIBS="$ac_lib $ac_save_LIBS" 5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5550/* end confdefs.h. */ 5551`cat $LEX_OUTPUT_ROOT.c` 5552_ACEOF 5553if ac_fn_c_try_link "$LINENO"; then : 5554 ac_cv_lib_lex=$ac_lib 5555fi 5556rm -f core conftest.err conftest.$ac_objext \ 5557 conftest$ac_exeext conftest.$ac_ext 5558 test "$ac_cv_lib_lex" != 'none needed' && break 5559 done 5560 LIBS=$ac_save_LIBS 5561 5562fi 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 5564$as_echo "$ac_cv_lib_lex" >&6; } 5565 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 5566fi 5567 5568 5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 5570$as_echo_n "checking whether yytext is a pointer... " >&6; } 5571if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 # POSIX says lex can declare yytext either as a pointer or an array; the 5575# default is implementation-dependent. Figure out which it is, since 5576# not all implementations provide the %pointer and %array declarations. 5577ac_cv_prog_lex_yytext_pointer=no 5578ac_save_LIBS=$LIBS 5579LIBS="$LEXLIB $ac_save_LIBS" 5580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5581/* end confdefs.h. */ 5582#define YYTEXT_POINTER 1 5583`cat $LEX_OUTPUT_ROOT.c` 5584_ACEOF 5585if ac_fn_c_try_link "$LINENO"; then : 5586 ac_cv_prog_lex_yytext_pointer=yes 5587fi 5588rm -f core conftest.err conftest.$ac_objext \ 5589 conftest$ac_exeext conftest.$ac_ext 5590LIBS=$ac_save_LIBS 5591 5592fi 5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 5594$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 5595if test $ac_cv_prog_lex_yytext_pointer = yes; then 5596 5597$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 5598 5599fi 5600rm -f conftest.l $LEX_OUTPUT_ROOT.c 5601 5602fi 5603if test "$LEX" = :; then 5604 LEX=${am_missing_run}flex 5605fi 5606ac_ext=c 5607ac_cpp='$CPP $CPPFLAGS' 5608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5610ac_compiler_gnu=$ac_cv_c_compiler_gnu 5611if test -n "$ac_tool_prefix"; then 5612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5613set dummy ${ac_tool_prefix}gcc; ac_word=$2 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5615$as_echo_n "checking for $ac_word... " >&6; } 5616if test "${ac_cv_prog_CC+set}" = set; then : 5617 $as_echo_n "(cached) " >&6 5618else 5619 if test -n "$CC"; then 5620 ac_cv_prog_CC="$CC" # Let the user override the test. 5621else 5622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5623for as_dir in $PATH 5624do 5625 IFS=$as_save_IFS 5626 test -z "$as_dir" && as_dir=. 5627 for ac_exec_ext in '' $ac_executable_extensions; do 5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5629 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5631 break 2 5632 fi 5633done 5634 done 5635IFS=$as_save_IFS 5636 5637fi 5638fi 5639CC=$ac_cv_prog_CC 5640if test -n "$CC"; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5642$as_echo "$CC" >&6; } 5643else 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5645$as_echo "no" >&6; } 5646fi 5647 5648 5649fi 5650if test -z "$ac_cv_prog_CC"; then 5651 ac_ct_CC=$CC 5652 # Extract the first word of "gcc", so it can be a program name with args. 5653set dummy gcc; ac_word=$2 5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5655$as_echo_n "checking for $ac_word... " >&6; } 5656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 if test -n "$ac_ct_CC"; then 5660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5661else 5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5663for as_dir in $PATH 5664do 5665 IFS=$as_save_IFS 5666 test -z "$as_dir" && as_dir=. 5667 for ac_exec_ext in '' $ac_executable_extensions; do 5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5669 ac_cv_prog_ac_ct_CC="gcc" 5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5671 break 2 5672 fi 5673done 5674 done 5675IFS=$as_save_IFS 5676 5677fi 5678fi 5679ac_ct_CC=$ac_cv_prog_ac_ct_CC 5680if test -n "$ac_ct_CC"; then 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5682$as_echo "$ac_ct_CC" >&6; } 5683else 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5685$as_echo "no" >&6; } 5686fi 5687 5688 if test "x$ac_ct_CC" = x; then 5689 CC="" 5690 else 5691 case $cross_compiling:$ac_tool_warned in 5692yes:) 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5695ac_tool_warned=yes ;; 5696esac 5697 CC=$ac_ct_CC 5698 fi 5699else 5700 CC="$ac_cv_prog_CC" 5701fi 5702 5703if test -z "$CC"; then 5704 if test -n "$ac_tool_prefix"; then 5705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5706set dummy ${ac_tool_prefix}cc; ac_word=$2 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5708$as_echo_n "checking for $ac_word... " >&6; } 5709if test "${ac_cv_prog_CC+set}" = set; then : 5710 $as_echo_n "(cached) " >&6 5711else 5712 if test -n "$CC"; then 5713 ac_cv_prog_CC="$CC" # Let the user override the test. 5714else 5715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5716for as_dir in $PATH 5717do 5718 IFS=$as_save_IFS 5719 test -z "$as_dir" && as_dir=. 5720 for ac_exec_ext in '' $ac_executable_extensions; do 5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5722 ac_cv_prog_CC="${ac_tool_prefix}cc" 5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5724 break 2 5725 fi 5726done 5727 done 5728IFS=$as_save_IFS 5729 5730fi 5731fi 5732CC=$ac_cv_prog_CC 5733if test -n "$CC"; then 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5735$as_echo "$CC" >&6; } 5736else 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5738$as_echo "no" >&6; } 5739fi 5740 5741 5742 fi 5743fi 5744if test -z "$CC"; then 5745 # Extract the first word of "cc", so it can be a program name with args. 5746set dummy cc; ac_word=$2 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5748$as_echo_n "checking for $ac_word... " >&6; } 5749if test "${ac_cv_prog_CC+set}" = set; then : 5750 $as_echo_n "(cached) " >&6 5751else 5752 if test -n "$CC"; then 5753 ac_cv_prog_CC="$CC" # Let the user override the test. 5754else 5755 ac_prog_rejected=no 5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5757for as_dir in $PATH 5758do 5759 IFS=$as_save_IFS 5760 test -z "$as_dir" && as_dir=. 5761 for ac_exec_ext in '' $ac_executable_extensions; do 5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5764 ac_prog_rejected=yes 5765 continue 5766 fi 5767 ac_cv_prog_CC="cc" 5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5769 break 2 5770 fi 5771done 5772 done 5773IFS=$as_save_IFS 5774 5775if test $ac_prog_rejected = yes; then 5776 # We found a bogon in the path, so make sure we never use it. 5777 set dummy $ac_cv_prog_CC 5778 shift 5779 if test $# != 0; then 5780 # We chose a different compiler from the bogus one. 5781 # However, it has the same basename, so the bogon will be chosen 5782 # first if we set CC to just the basename; use the full file name. 5783 shift 5784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5785 fi 5786fi 5787fi 5788fi 5789CC=$ac_cv_prog_CC 5790if test -n "$CC"; then 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5792$as_echo "$CC" >&6; } 5793else 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5795$as_echo "no" >&6; } 5796fi 5797 5798 5799fi 5800if test -z "$CC"; then 5801 if test -n "$ac_tool_prefix"; then 5802 for ac_prog in cl.exe 5803 do 5804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5805set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5807$as_echo_n "checking for $ac_word... " >&6; } 5808if test "${ac_cv_prog_CC+set}" = set; then : 5809 $as_echo_n "(cached) " >&6 5810else 5811 if test -n "$CC"; then 5812 ac_cv_prog_CC="$CC" # Let the user override the test. 5813else 5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5815for as_dir in $PATH 5816do 5817 IFS=$as_save_IFS 5818 test -z "$as_dir" && as_dir=. 5819 for ac_exec_ext in '' $ac_executable_extensions; do 5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5823 break 2 5824 fi 5825done 5826 done 5827IFS=$as_save_IFS 5828 5829fi 5830fi 5831CC=$ac_cv_prog_CC 5832if test -n "$CC"; then 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5834$as_echo "$CC" >&6; } 5835else 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5837$as_echo "no" >&6; } 5838fi 5839 5840 5841 test -n "$CC" && break 5842 done 5843fi 5844if test -z "$CC"; then 5845 ac_ct_CC=$CC 5846 for ac_prog in cl.exe 5847do 5848 # Extract the first word of "$ac_prog", so it can be a program name with args. 5849set dummy $ac_prog; ac_word=$2 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5851$as_echo_n "checking for $ac_word... " >&6; } 5852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5853 $as_echo_n "(cached) " >&6 5854else 5855 if test -n "$ac_ct_CC"; then 5856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5857else 5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5859for as_dir in $PATH 5860do 5861 IFS=$as_save_IFS 5862 test -z "$as_dir" && as_dir=. 5863 for ac_exec_ext in '' $ac_executable_extensions; do 5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5865 ac_cv_prog_ac_ct_CC="$ac_prog" 5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5867 break 2 5868 fi 5869done 5870 done 5871IFS=$as_save_IFS 5872 5873fi 5874fi 5875ac_ct_CC=$ac_cv_prog_ac_ct_CC 5876if test -n "$ac_ct_CC"; then 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5878$as_echo "$ac_ct_CC" >&6; } 5879else 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5881$as_echo "no" >&6; } 5882fi 5883 5884 5885 test -n "$ac_ct_CC" && break 5886done 5887 5888 if test "x$ac_ct_CC" = x; then 5889 CC="" 5890 else 5891 case $cross_compiling:$ac_tool_warned in 5892yes:) 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5895ac_tool_warned=yes ;; 5896esac 5897 CC=$ac_ct_CC 5898 fi 5899fi 5900 5901fi 5902 5903 5904test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5906as_fn_error "no acceptable C compiler found in \$PATH 5907See \`config.log' for more details." "$LINENO" 5; } 5908 5909# Provide some information about the compiler. 5910$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5911set X $ac_compile 5912ac_compiler=$2 5913for ac_option in --version -v -V -qversion; do 5914 { { ac_try="$ac_compiler $ac_option >&5" 5915case "(($ac_try" in 5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5917 *) ac_try_echo=$ac_try;; 5918esac 5919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5920$as_echo "$ac_try_echo"; } >&5 5921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5922 ac_status=$? 5923 if test -s conftest.err; then 5924 sed '10a\ 5925... rest of stderr output deleted ... 5926 10q' conftest.err >conftest.er1 5927 cat conftest.er1 >&5 5928 fi 5929 rm -f conftest.er1 conftest.err 5930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5931 test $ac_status = 0; } 5932done 5933 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5935$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5936if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5937 $as_echo_n "(cached) " >&6 5938else 5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5940/* end confdefs.h. */ 5941 5942int 5943main () 5944{ 5945#ifndef __GNUC__ 5946 choke me 5947#endif 5948 5949 ; 5950 return 0; 5951} 5952_ACEOF 5953if ac_fn_c_try_compile "$LINENO"; then : 5954 ac_compiler_gnu=yes 5955else 5956 ac_compiler_gnu=no 5957fi 5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5959ac_cv_c_compiler_gnu=$ac_compiler_gnu 5960 5961fi 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5963$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5964if test $ac_compiler_gnu = yes; then 5965 GCC=yes 5966else 5967 GCC= 5968fi 5969ac_test_CFLAGS=${CFLAGS+set} 5970ac_save_CFLAGS=$CFLAGS 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5972$as_echo_n "checking whether $CC accepts -g... " >&6; } 5973if test "${ac_cv_prog_cc_g+set}" = set; then : 5974 $as_echo_n "(cached) " >&6 5975else 5976 ac_save_c_werror_flag=$ac_c_werror_flag 5977 ac_c_werror_flag=yes 5978 ac_cv_prog_cc_g=no 5979 CFLAGS="-g" 5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5981/* end confdefs.h. */ 5982 5983int 5984main () 5985{ 5986 5987 ; 5988 return 0; 5989} 5990_ACEOF 5991if ac_fn_c_try_compile "$LINENO"; then : 5992 ac_cv_prog_cc_g=yes 5993else 5994 CFLAGS="" 5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996/* end confdefs.h. */ 5997 5998int 5999main () 6000{ 6001 6002 ; 6003 return 0; 6004} 6005_ACEOF 6006if ac_fn_c_try_compile "$LINENO"; then : 6007 6008else 6009 ac_c_werror_flag=$ac_save_c_werror_flag 6010 CFLAGS="-g" 6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6012/* end confdefs.h. */ 6013 6014int 6015main () 6016{ 6017 6018 ; 6019 return 0; 6020} 6021_ACEOF 6022if ac_fn_c_try_compile "$LINENO"; then : 6023 ac_cv_prog_cc_g=yes 6024fi 6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6026fi 6027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6028fi 6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6030 ac_c_werror_flag=$ac_save_c_werror_flag 6031fi 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6033$as_echo "$ac_cv_prog_cc_g" >&6; } 6034if test "$ac_test_CFLAGS" = set; then 6035 CFLAGS=$ac_save_CFLAGS 6036elif test $ac_cv_prog_cc_g = yes; then 6037 if test "$GCC" = yes; then 6038 CFLAGS="-g -O2" 6039 else 6040 CFLAGS="-g" 6041 fi 6042else 6043 if test "$GCC" = yes; then 6044 CFLAGS="-O2" 6045 else 6046 CFLAGS= 6047 fi 6048fi 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6050$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6051if test "${ac_cv_prog_cc_c89+set}" = set; then : 6052 $as_echo_n "(cached) " >&6 6053else 6054 ac_cv_prog_cc_c89=no 6055ac_save_CC=$CC 6056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6057/* end confdefs.h. */ 6058#include <stdarg.h> 6059#include <stdio.h> 6060#include <sys/types.h> 6061#include <sys/stat.h> 6062/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6063struct buf { int x; }; 6064FILE * (*rcsopen) (struct buf *, struct stat *, int); 6065static char *e (p, i) 6066 char **p; 6067 int i; 6068{ 6069 return p[i]; 6070} 6071static char *f (char * (*g) (char **, int), char **p, ...) 6072{ 6073 char *s; 6074 va_list v; 6075 va_start (v,p); 6076 s = g (p, va_arg (v,int)); 6077 va_end (v); 6078 return s; 6079} 6080 6081/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6082 function prototypes and stuff, but not '\xHH' hex character constants. 6083 These don't provoke an error unfortunately, instead are silently treated 6084 as 'x'. The following induces an error, until -std is added to get 6085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6086 array size at least. It's necessary to write '\x00'==0 to get something 6087 that's true only with -std. */ 6088int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6089 6090/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6091 inside strings and character constants. */ 6092#define FOO(x) 'x' 6093int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6094 6095int test (int i, double x); 6096struct s1 {int (*f) (int a);}; 6097struct s2 {int (*f) (double a);}; 6098int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6099int argc; 6100char **argv; 6101int 6102main () 6103{ 6104return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6105 ; 6106 return 0; 6107} 6108_ACEOF 6109for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6111do 6112 CC="$ac_save_CC $ac_arg" 6113 if ac_fn_c_try_compile "$LINENO"; then : 6114 ac_cv_prog_cc_c89=$ac_arg 6115fi 6116rm -f core conftest.err conftest.$ac_objext 6117 test "x$ac_cv_prog_cc_c89" != "xno" && break 6118done 6119rm -f conftest.$ac_ext 6120CC=$ac_save_CC 6121 6122fi 6123# AC_CACHE_VAL 6124case "x$ac_cv_prog_cc_c89" in 6125 x) 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6127$as_echo "none needed" >&6; } ;; 6128 xno) 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6130$as_echo "unsupported" >&6; } ;; 6131 *) 6132 CC="$CC $ac_cv_prog_cc_c89" 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6134$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6135esac 6136if test "x$ac_cv_prog_cc_c89" != xno; then : 6137 6138fi 6139 6140ac_ext=c 6141ac_cpp='$CPP $CPPFLAGS' 6142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6144ac_compiler_gnu=$ac_cv_c_compiler_gnu 6145 6146depcc="$CC" am_compiler_list= 6147 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6149$as_echo_n "checking dependency style of $depcc... " >&6; } 6150if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 6151 $as_echo_n "(cached) " >&6 6152else 6153 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6154 # We make a subdir and do the tests there. Otherwise we can end up 6155 # making bogus files that we don't know about and never remove. For 6156 # instance it was reported that on HP-UX the gcc test will end up 6157 # making a dummy file named `D' -- because `-MD' means `put the output 6158 # in D'. 6159 mkdir conftest.dir 6160 # Copy depcomp to subdir because otherwise we won't find it if we're 6161 # using a relative directory. 6162 cp "$am_depcomp" conftest.dir 6163 cd conftest.dir 6164 # We will build objects and dependencies in a subdirectory because 6165 # it helps to detect inapplicable dependency modes. For instance 6166 # both Tru64's cc and ICC support -MD to output dependencies as a 6167 # side effect of compilation, but ICC will put the dependencies in 6168 # the current directory while Tru64 will put them in the object 6169 # directory. 6170 mkdir sub 6171 6172 am_cv_CC_dependencies_compiler_type=none 6173 if test "$am_compiler_list" = ""; then 6174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6175 fi 6176 am__universal=false 6177 case " $depcc " in #( 6178 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6179 esac 6180 6181 for depmode in $am_compiler_list; do 6182 # Setup a source with many dependencies, because some compilers 6183 # like to wrap large dependency lists on column 80 (with \), and 6184 # we should not choose a depcomp mode which is confused by this. 6185 # 6186 # We need to recreate these files for each test, as the compiler may 6187 # overwrite some of them when testing with obscure command lines. 6188 # This happens at least with the AIX C compiler. 6189 : > sub/conftest.c 6190 for i in 1 2 3 4 5 6; do 6191 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6192 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6193 # Solaris 8's {/usr,}/bin/sh. 6194 touch sub/conftst$i.h 6195 done 6196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6197 6198 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6199 # mode. It turns out that the SunPro C++ compiler does not properly 6200 # handle `-M -o', and we need to detect this. Also, some Intel 6201 # versions had trouble with output in subdirs 6202 am__obj=sub/conftest.${OBJEXT-o} 6203 am__minus_obj="-o $am__obj" 6204 case $depmode in 6205 gcc) 6206 # This depmode causes a compiler race in universal mode. 6207 test "$am__universal" = false || continue 6208 ;; 6209 nosideeffect) 6210 # after this tag, mechanisms are not by side-effect, so they'll 6211 # only be used when explicitly requested 6212 if test "x$enable_dependency_tracking" = xyes; then 6213 continue 6214 else 6215 break 6216 fi 6217 ;; 6218 msvisualcpp | msvcmsys) 6219 # This compiler won't grok `-c -o', but also, the minuso test has 6220 # not run yet. These depmodes are late enough in the game, and 6221 # so weak that their functioning should not be impacted. 6222 am__obj=conftest.${OBJEXT-o} 6223 am__minus_obj= 6224 ;; 6225 none) break ;; 6226 esac 6227 if depmode=$depmode \ 6228 source=sub/conftest.c object=$am__obj \ 6229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6230 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6231 >/dev/null 2>conftest.err && 6232 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6233 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6234 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6235 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6236 # icc doesn't choke on unknown options, it will just issue warnings 6237 # or remarks (even with -Werror). So we grep stderr for any message 6238 # that says an option was ignored or not supported. 6239 # When given -MP, icc 7.0 and 7.1 complain thusly: 6240 # icc: Command line warning: ignoring option '-M'; no argument required 6241 # The diagnosis changed in icc 8.0: 6242 # icc: Command line remark: option '-MP' not supported 6243 if (grep 'ignoring option' conftest.err || 6244 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6245 am_cv_CC_dependencies_compiler_type=$depmode 6246 break 6247 fi 6248 fi 6249 done 6250 6251 cd .. 6252 rm -rf conftest.dir 6253else 6254 am_cv_CC_dependencies_compiler_type=none 6255fi 6256 6257fi 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6259$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6260CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6261 6262 if 6263 test "x$enable_dependency_tracking" != xno \ 6264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6265 am__fastdepCC_TRUE= 6266 am__fastdepCC_FALSE='#' 6267else 6268 am__fastdepCC_TRUE='#' 6269 am__fastdepCC_FALSE= 6270fi 6271 6272 6273ac_ext=cpp 6274ac_cpp='$CXXCPP $CPPFLAGS' 6275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6278if test -z "$CXX"; then 6279 if test -n "$CCC"; then 6280 CXX=$CCC 6281 else 6282 if test -n "$ac_tool_prefix"; then 6283 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6284 do 6285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6286set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6288$as_echo_n "checking for $ac_word... " >&6; } 6289if test "${ac_cv_prog_CXX+set}" = set; then : 6290 $as_echo_n "(cached) " >&6 6291else 6292 if test -n "$CXX"; then 6293 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6294else 6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6296for as_dir in $PATH 6297do 6298 IFS=$as_save_IFS 6299 test -z "$as_dir" && as_dir=. 6300 for ac_exec_ext in '' $ac_executable_extensions; do 6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6302 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6304 break 2 6305 fi 6306done 6307 done 6308IFS=$as_save_IFS 6309 6310fi 6311fi 6312CXX=$ac_cv_prog_CXX 6313if test -n "$CXX"; then 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6315$as_echo "$CXX" >&6; } 6316else 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6318$as_echo "no" >&6; } 6319fi 6320 6321 6322 test -n "$CXX" && break 6323 done 6324fi 6325if test -z "$CXX"; then 6326 ac_ct_CXX=$CXX 6327 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6328do 6329 # Extract the first word of "$ac_prog", so it can be a program name with args. 6330set dummy $ac_prog; ac_word=$2 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6332$as_echo_n "checking for $ac_word... " >&6; } 6333if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 if test -n "$ac_ct_CXX"; then 6337 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6338else 6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6340for as_dir in $PATH 6341do 6342 IFS=$as_save_IFS 6343 test -z "$as_dir" && as_dir=. 6344 for ac_exec_ext in '' $ac_executable_extensions; do 6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6346 ac_cv_prog_ac_ct_CXX="$ac_prog" 6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6348 break 2 6349 fi 6350done 6351 done 6352IFS=$as_save_IFS 6353 6354fi 6355fi 6356ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6357if test -n "$ac_ct_CXX"; then 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6359$as_echo "$ac_ct_CXX" >&6; } 6360else 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6362$as_echo "no" >&6; } 6363fi 6364 6365 6366 test -n "$ac_ct_CXX" && break 6367done 6368 6369 if test "x$ac_ct_CXX" = x; then 6370 CXX="g++" 6371 else 6372 case $cross_compiling:$ac_tool_warned in 6373yes:) 6374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6376ac_tool_warned=yes ;; 6377esac 6378 CXX=$ac_ct_CXX 6379 fi 6380fi 6381 6382 fi 6383fi 6384# Provide some information about the compiler. 6385$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6386set X $ac_compile 6387ac_compiler=$2 6388for ac_option in --version -v -V -qversion; do 6389 { { ac_try="$ac_compiler $ac_option >&5" 6390case "(($ac_try" in 6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6392 *) ac_try_echo=$ac_try;; 6393esac 6394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6395$as_echo "$ac_try_echo"; } >&5 6396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6397 ac_status=$? 6398 if test -s conftest.err; then 6399 sed '10a\ 6400... rest of stderr output deleted ... 6401 10q' conftest.err >conftest.er1 6402 cat conftest.er1 >&5 6403 fi 6404 rm -f conftest.er1 conftest.err 6405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6406 test $ac_status = 0; } 6407done 6408 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6410$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6411if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 6412 $as_echo_n "(cached) " >&6 6413else 6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6415/* end confdefs.h. */ 6416 6417int 6418main () 6419{ 6420#ifndef __GNUC__ 6421 choke me 6422#endif 6423 6424 ; 6425 return 0; 6426} 6427_ACEOF 6428if ac_fn_cxx_try_compile "$LINENO"; then : 6429 ac_compiler_gnu=yes 6430else 6431 ac_compiler_gnu=no 6432fi 6433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6434ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6435 6436fi 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6438$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6439if test $ac_compiler_gnu = yes; then 6440 GXX=yes 6441else 6442 GXX= 6443fi 6444ac_test_CXXFLAGS=${CXXFLAGS+set} 6445ac_save_CXXFLAGS=$CXXFLAGS 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6447$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6448if test "${ac_cv_prog_cxx_g+set}" = set; then : 6449 $as_echo_n "(cached) " >&6 6450else 6451 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6452 ac_cxx_werror_flag=yes 6453 ac_cv_prog_cxx_g=no 6454 CXXFLAGS="-g" 6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6456/* end confdefs.h. */ 6457 6458int 6459main () 6460{ 6461 6462 ; 6463 return 0; 6464} 6465_ACEOF 6466if ac_fn_cxx_try_compile "$LINENO"; then : 6467 ac_cv_prog_cxx_g=yes 6468else 6469 CXXFLAGS="" 6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6471/* end confdefs.h. */ 6472 6473int 6474main () 6475{ 6476 6477 ; 6478 return 0; 6479} 6480_ACEOF 6481if ac_fn_cxx_try_compile "$LINENO"; then : 6482 6483else 6484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6485 CXXFLAGS="-g" 6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6487/* end confdefs.h. */ 6488 6489int 6490main () 6491{ 6492 6493 ; 6494 return 0; 6495} 6496_ACEOF 6497if ac_fn_cxx_try_compile "$LINENO"; then : 6498 ac_cv_prog_cxx_g=yes 6499fi 6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6501fi 6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6503fi 6504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6506fi 6507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6508$as_echo "$ac_cv_prog_cxx_g" >&6; } 6509if test "$ac_test_CXXFLAGS" = set; then 6510 CXXFLAGS=$ac_save_CXXFLAGS 6511elif test $ac_cv_prog_cxx_g = yes; then 6512 if test "$GXX" = yes; then 6513 CXXFLAGS="-g -O2" 6514 else 6515 CXXFLAGS="-g" 6516 fi 6517else 6518 if test "$GXX" = yes; then 6519 CXXFLAGS="-O2" 6520 else 6521 CXXFLAGS= 6522 fi 6523fi 6524ac_ext=c 6525ac_cpp='$CPP $CPPFLAGS' 6526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6528ac_compiler_gnu=$ac_cv_c_compiler_gnu 6529 6530depcc="$CXX" am_compiler_list= 6531 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6533$as_echo_n "checking dependency style of $depcc... " >&6; } 6534if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 6535 $as_echo_n "(cached) " >&6 6536else 6537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6538 # We make a subdir and do the tests there. Otherwise we can end up 6539 # making bogus files that we don't know about and never remove. For 6540 # instance it was reported that on HP-UX the gcc test will end up 6541 # making a dummy file named `D' -- because `-MD' means `put the output 6542 # in D'. 6543 mkdir conftest.dir 6544 # Copy depcomp to subdir because otherwise we won't find it if we're 6545 # using a relative directory. 6546 cp "$am_depcomp" conftest.dir 6547 cd conftest.dir 6548 # We will build objects and dependencies in a subdirectory because 6549 # it helps to detect inapplicable dependency modes. For instance 6550 # both Tru64's cc and ICC support -MD to output dependencies as a 6551 # side effect of compilation, but ICC will put the dependencies in 6552 # the current directory while Tru64 will put them in the object 6553 # directory. 6554 mkdir sub 6555 6556 am_cv_CXX_dependencies_compiler_type=none 6557 if test "$am_compiler_list" = ""; then 6558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6559 fi 6560 am__universal=false 6561 case " $depcc " in #( 6562 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6563 esac 6564 6565 for depmode in $am_compiler_list; do 6566 # Setup a source with many dependencies, because some compilers 6567 # like to wrap large dependency lists on column 80 (with \), and 6568 # we should not choose a depcomp mode which is confused by this. 6569 # 6570 # We need to recreate these files for each test, as the compiler may 6571 # overwrite some of them when testing with obscure command lines. 6572 # This happens at least with the AIX C compiler. 6573 : > sub/conftest.c 6574 for i in 1 2 3 4 5 6; do 6575 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6576 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6577 # Solaris 8's {/usr,}/bin/sh. 6578 touch sub/conftst$i.h 6579 done 6580 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6581 6582 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6583 # mode. It turns out that the SunPro C++ compiler does not properly 6584 # handle `-M -o', and we need to detect this. Also, some Intel 6585 # versions had trouble with output in subdirs 6586 am__obj=sub/conftest.${OBJEXT-o} 6587 am__minus_obj="-o $am__obj" 6588 case $depmode in 6589 gcc) 6590 # This depmode causes a compiler race in universal mode. 6591 test "$am__universal" = false || continue 6592 ;; 6593 nosideeffect) 6594 # after this tag, mechanisms are not by side-effect, so they'll 6595 # only be used when explicitly requested 6596 if test "x$enable_dependency_tracking" = xyes; then 6597 continue 6598 else 6599 break 6600 fi 6601 ;; 6602 msvisualcpp | msvcmsys) 6603 # This compiler won't grok `-c -o', but also, the minuso test has 6604 # not run yet. These depmodes are late enough in the game, and 6605 # so weak that their functioning should not be impacted. 6606 am__obj=conftest.${OBJEXT-o} 6607 am__minus_obj= 6608 ;; 6609 none) break ;; 6610 esac 6611 if depmode=$depmode \ 6612 source=sub/conftest.c object=$am__obj \ 6613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6614 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6615 >/dev/null 2>conftest.err && 6616 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6618 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6620 # icc doesn't choke on unknown options, it will just issue warnings 6621 # or remarks (even with -Werror). So we grep stderr for any message 6622 # that says an option was ignored or not supported. 6623 # When given -MP, icc 7.0 and 7.1 complain thusly: 6624 # icc: Command line warning: ignoring option '-M'; no argument required 6625 # The diagnosis changed in icc 8.0: 6626 # icc: Command line remark: option '-MP' not supported 6627 if (grep 'ignoring option' conftest.err || 6628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6629 am_cv_CXX_dependencies_compiler_type=$depmode 6630 break 6631 fi 6632 fi 6633 done 6634 6635 cd .. 6636 rm -rf conftest.dir 6637else 6638 am_cv_CXX_dependencies_compiler_type=none 6639fi 6640 6641fi 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6643$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6644CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6645 6646 if 6647 test "x$enable_dependency_tracking" != xno \ 6648 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6649 am__fastdepCXX_TRUE= 6650 am__fastdepCXX_FALSE='#' 6651else 6652 am__fastdepCXX_TRUE='#' 6653 am__fastdepCXX_FALSE= 6654fi 6655 6656 6657if test "x$CC" != xcc; then 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 6659$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 6660else 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 6662$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 6663fi 6664set dummy $CC; ac_cc=`$as_echo "$2" | 6665 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 6666if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670/* end confdefs.h. */ 6671 6672int 6673main () 6674{ 6675 6676 ; 6677 return 0; 6678} 6679_ACEOF 6680# Make sure it works both with $CC and with simple cc. 6681# We do the test twice because some compilers refuse to overwrite an 6682# existing .o file with -o, though they will create one. 6683ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 6684rm -f conftest2.* 6685if { { case "(($ac_try" in 6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6687 *) ac_try_echo=$ac_try;; 6688esac 6689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6690$as_echo "$ac_try_echo"; } >&5 6691 (eval "$ac_try") 2>&5 6692 ac_status=$? 6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6694 test $ac_status = 0; } && 6695 test -f conftest2.$ac_objext && { { case "(($ac_try" in 6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6697 *) ac_try_echo=$ac_try;; 6698esac 6699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6700$as_echo "$ac_try_echo"; } >&5 6701 (eval "$ac_try") 2>&5 6702 ac_status=$? 6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6704 test $ac_status = 0; }; 6705then 6706 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 6707 if test "x$CC" != xcc; then 6708 # Test first that cc exists at all. 6709 if { ac_try='cc -c conftest.$ac_ext >&5' 6710 { { case "(($ac_try" in 6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6712 *) ac_try_echo=$ac_try;; 6713esac 6714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6715$as_echo "$ac_try_echo"; } >&5 6716 (eval "$ac_try") 2>&5 6717 ac_status=$? 6718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6719 test $ac_status = 0; }; }; then 6720 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 6721 rm -f conftest2.* 6722 if { { case "(($ac_try" in 6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6724 *) ac_try_echo=$ac_try;; 6725esac 6726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6727$as_echo "$ac_try_echo"; } >&5 6728 (eval "$ac_try") 2>&5 6729 ac_status=$? 6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6731 test $ac_status = 0; } && 6732 test -f conftest2.$ac_objext && { { case "(($ac_try" in 6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6734 *) ac_try_echo=$ac_try;; 6735esac 6736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6737$as_echo "$ac_try_echo"; } >&5 6738 (eval "$ac_try") 2>&5 6739 ac_status=$? 6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6741 test $ac_status = 0; }; 6742 then 6743 # cc works too. 6744 : 6745 else 6746 # cc exists but doesn't like -o. 6747 eval ac_cv_prog_cc_${ac_cc}_c_o=no 6748 fi 6749 fi 6750 fi 6751else 6752 eval ac_cv_prog_cc_${ac_cc}_c_o=no 6753fi 6754rm -f core conftest* 6755 6756fi 6757if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6759$as_echo "yes" >&6; } 6760else 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6762$as_echo "no" >&6; } 6763 6764$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 6765 6766fi 6767 6768# FIXME: we rely on the cache variable name because 6769# there is no other way. 6770set dummy $CC 6771am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 6772eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 6773if test "$am_t" != yes; then 6774 # Losing compiler, so override with the script. 6775 # FIXME: It is wrong to rewrite CC. 6776 # But if we don't then we get into trouble of one sort or another. 6777 # A longer-term fix would be to have automake use am__CC in this case, 6778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6779 CC="$am_aux_dir/compile $CC" 6780fi 6781 6782 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6784$as_echo_n "checking whether ln -s works... " >&6; } 6785LN_S=$as_ln_s 6786if test "$LN_S" = "ln -s"; then 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6788$as_echo "yes" >&6; } 6789else 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6791$as_echo "no, using $LN_S" >&6; } 6792fi 6793 6794if test -n "$ac_tool_prefix"; then 6795 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6796set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6798$as_echo_n "checking for $ac_word... " >&6; } 6799if test "${ac_cv_prog_RANLIB+set}" = set; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 if test -n "$RANLIB"; then 6803 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6804else 6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6806for as_dir in $PATH 6807do 6808 IFS=$as_save_IFS 6809 test -z "$as_dir" && as_dir=. 6810 for ac_exec_ext in '' $ac_executable_extensions; do 6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6812 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6814 break 2 6815 fi 6816done 6817 done 6818IFS=$as_save_IFS 6819 6820fi 6821fi 6822RANLIB=$ac_cv_prog_RANLIB 6823if test -n "$RANLIB"; then 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6825$as_echo "$RANLIB" >&6; } 6826else 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6828$as_echo "no" >&6; } 6829fi 6830 6831 6832fi 6833if test -z "$ac_cv_prog_RANLIB"; then 6834 ac_ct_RANLIB=$RANLIB 6835 # Extract the first word of "ranlib", so it can be a program name with args. 6836set dummy ranlib; ac_word=$2 6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6838$as_echo_n "checking for $ac_word... " >&6; } 6839if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6840 $as_echo_n "(cached) " >&6 6841else 6842 if test -n "$ac_ct_RANLIB"; then 6843 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6844else 6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6846for as_dir in $PATH 6847do 6848 IFS=$as_save_IFS 6849 test -z "$as_dir" && as_dir=. 6850 for ac_exec_ext in '' $ac_executable_extensions; do 6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6852 ac_cv_prog_ac_ct_RANLIB="ranlib" 6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6854 break 2 6855 fi 6856done 6857 done 6858IFS=$as_save_IFS 6859 6860fi 6861fi 6862ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6863if test -n "$ac_ct_RANLIB"; then 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6865$as_echo "$ac_ct_RANLIB" >&6; } 6866else 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6868$as_echo "no" >&6; } 6869fi 6870 6871 if test "x$ac_ct_RANLIB" = x; then 6872 RANLIB=":" 6873 else 6874 case $cross_compiling:$ac_tool_warned in 6875yes:) 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6878ac_tool_warned=yes ;; 6879esac 6880 RANLIB=$ac_ct_RANLIB 6881 fi 6882else 6883 RANLIB="$ac_cv_prog_RANLIB" 6884fi 6885 6886for ac_prog in gawk mawk nawk awk 6887do 6888 # Extract the first word of "$ac_prog", so it can be a program name with args. 6889set dummy $ac_prog; ac_word=$2 6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6891$as_echo_n "checking for $ac_word... " >&6; } 6892if test "${ac_cv_prog_AWK+set}" = set; then : 6893 $as_echo_n "(cached) " >&6 6894else 6895 if test -n "$AWK"; then 6896 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6897else 6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6899for as_dir in $PATH 6900do 6901 IFS=$as_save_IFS 6902 test -z "$as_dir" && as_dir=. 6903 for ac_exec_ext in '' $ac_executable_extensions; do 6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6905 ac_cv_prog_AWK="$ac_prog" 6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6907 break 2 6908 fi 6909done 6910 done 6911IFS=$as_save_IFS 6912 6913fi 6914fi 6915AWK=$ac_cv_prog_AWK 6916if test -n "$AWK"; then 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6918$as_echo "$AWK" >&6; } 6919else 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6921$as_echo "no" >&6; } 6922fi 6923 6924 6925 test -n "$AWK" && break 6926done 6927 6928 6929 6930# Extract the first word of "bison", so it can be a program name with args. 6931set dummy bison; ac_word=$2 6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6933$as_echo_n "checking for $ac_word... " >&6; } 6934if test "${ac_cv_path_BISON+set}" = set; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 case $BISON in 6938 [\\/]* | ?:[\\/]*) 6939 ac_cv_path_BISON="$BISON" # Let the user override the test with a path. 6940 ;; 6941 *) 6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6943for as_dir in $PATH 6944do 6945 IFS=$as_save_IFS 6946 test -z "$as_dir" && as_dir=. 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6949 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" 6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6951 break 2 6952 fi 6953done 6954 done 6955IFS=$as_save_IFS 6956 6957 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="bison" 6958 ;; 6959esac 6960fi 6961BISON=$ac_cv_path_BISON 6962if test -n "$BISON"; then 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 6964$as_echo "$BISON" >&6; } 6965else 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6967$as_echo "no" >&6; } 6968fi 6969 6970 6971# Extract the first word of "help2man", so it can be a program name with args. 6972set dummy help2man; ac_word=$2 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6974$as_echo_n "checking for $ac_word... " >&6; } 6975if test "${ac_cv_path_HELP2MAN+set}" = set; then : 6976 $as_echo_n "(cached) " >&6 6977else 6978 case $HELP2MAN in 6979 [\\/]* | ?:[\\/]*) 6980 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path. 6981 ;; 6982 *) 6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6984for as_dir in $PATH 6985do 6986 IFS=$as_save_IFS 6987 test -z "$as_dir" && as_dir=. 6988 for ac_exec_ext in '' $ac_executable_extensions; do 6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6990 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext" 6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6992 break 2 6993 fi 6994done 6995 done 6996IFS=$as_save_IFS 6997 6998 test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="help2man" 6999 ;; 7000esac 7001fi 7002HELP2MAN=$ac_cv_path_HELP2MAN 7003if test -n "$HELP2MAN"; then 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5 7005$as_echo "$HELP2MAN" >&6; } 7006else 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7008$as_echo "no" >&6; } 7009fi 7010 7011 7012 7013# Check for a m4 that supports -P 7014 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -P" >&5 7016$as_echo_n "checking for m4 that supports -P... " >&6; } 7017if test "${ac_cv_path_M4+set}" = set; then : 7018 $as_echo_n "(cached) " >&6 7019else 7020 if test -z "$M4"; then 7021 ac_path_M4_found=false 7022 # Loop through the user's path and test for each of PROGNAME-LIST 7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7024for as_dir in $PATH 7025do 7026 IFS=$as_save_IFS 7027 test -z "$as_dir" && as_dir=. 7028 for ac_prog in gm4 gnum4 m4; do 7029 for ac_exec_ext in '' $ac_executable_extensions; do 7030 ac_path_M4="$as_dir/$ac_prog$ac_exec_ext" 7031 { test -f "$ac_path_M4" && $as_test_x "$ac_path_M4"; } || continue 7032m4out=`echo 'm''4_divnum' | $ac_path_M4 -P` 7033 test "x$m4out" = x0 \ 7034 && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=: 7035 $ac_path_M4_found && break 3 7036 done 7037 done 7038 done 7039IFS=$as_save_IFS 7040 if test -z "$ac_cv_path_M4"; then 7041 as_fn_error "could not find m4 that supports -P" "$LINENO" 5 7042 fi 7043else 7044 ac_cv_path_M4=$M4 7045fi 7046 7047fi 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5 7049$as_echo "$ac_cv_path_M4" >&6; } 7050M4=$ac_cv_path_M4 7051 7052 7053cat >>confdefs.h <<_ACEOF 7054#define M4 "$M4" 7055_ACEOF 7056 7057 7058# Extract the first word of "indent", so it can be a program name with args. 7059set dummy indent; ac_word=$2 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7061$as_echo_n "checking for $ac_word... " >&6; } 7062if test "${ac_cv_path_INDENT+set}" = set; then : 7063 $as_echo_n "(cached) " >&6 7064else 7065 case $INDENT in 7066 [\\/]* | ?:[\\/]*) 7067 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path. 7068 ;; 7069 *) 7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7071for as_dir in $PATH 7072do 7073 IFS=$as_save_IFS 7074 test -z "$as_dir" && as_dir=. 7075 for ac_exec_ext in '' $ac_executable_extensions; do 7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7077 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext" 7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7079 break 2 7080 fi 7081done 7082 done 7083IFS=$as_save_IFS 7084 7085 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent" 7086 ;; 7087esac 7088fi 7089INDENT=$ac_cv_path_INDENT 7090if test -n "$INDENT"; then 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5 7092$as_echo "$INDENT" >&6; } 7093else 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7095$as_echo "no" >&6; } 7096fi 7097 7098 7099# if INDENT is set to 'indent' then we didn't find indent 7100if test "$INDENT" != indent ; then 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5 7102$as_echo_n "checking if $INDENT is GNU indent... " >&6; } 7103 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7105$as_echo "yes" >&6; } 7106 else 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7108$as_echo "no" >&6; } 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5 7110$as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;} 7111 fi 7112else 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: make indent target will not function" >&5 7114$as_echo "$as_me: WARNING: no indent program found: make indent target will not function" >&2;} 7115fi 7116 7117# checks for headers 7118 7119ac_ext=c 7120ac_cpp='$CPP $CPPFLAGS' 7121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7123ac_compiler_gnu=$ac_cv_c_compiler_gnu 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7125$as_echo_n "checking how to run the C preprocessor... " >&6; } 7126# On Suns, sometimes $CPP names a directory. 7127if test -n "$CPP" && test -d "$CPP"; then 7128 CPP= 7129fi 7130if test -z "$CPP"; then 7131 if test "${ac_cv_prog_CPP+set}" = set; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 # Double quotes because CPP needs to be expanded 7135 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7136 do 7137 ac_preproc_ok=false 7138for ac_c_preproc_warn_flag in '' yes 7139do 7140 # Use a header file that comes with gcc, so configuring glibc 7141 # with a fresh cross-compiler works. 7142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7143 # <limits.h> exists even on freestanding compilers. 7144 # On the NeXT, cc -E runs the code through the compiler's parser, 7145 # not just through cpp. "Syntax error" is here to catch this case. 7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7147/* end confdefs.h. */ 7148#ifdef __STDC__ 7149# include <limits.h> 7150#else 7151# include <assert.h> 7152#endif 7153 Syntax error 7154_ACEOF 7155if ac_fn_c_try_cpp "$LINENO"; then : 7156 7157else 7158 # Broken: fails on valid input. 7159continue 7160fi 7161rm -f conftest.err conftest.$ac_ext 7162 7163 # OK, works on sane cases. Now check whether nonexistent headers 7164 # can be detected and how. 7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7166/* end confdefs.h. */ 7167#include <ac_nonexistent.h> 7168_ACEOF 7169if ac_fn_c_try_cpp "$LINENO"; then : 7170 # Broken: success on invalid input. 7171continue 7172else 7173 # Passes both tests. 7174ac_preproc_ok=: 7175break 7176fi 7177rm -f conftest.err conftest.$ac_ext 7178 7179done 7180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7181rm -f conftest.err conftest.$ac_ext 7182if $ac_preproc_ok; then : 7183 break 7184fi 7185 7186 done 7187 ac_cv_prog_CPP=$CPP 7188 7189fi 7190 CPP=$ac_cv_prog_CPP 7191else 7192 ac_cv_prog_CPP=$CPP 7193fi 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7195$as_echo "$CPP" >&6; } 7196ac_preproc_ok=false 7197for ac_c_preproc_warn_flag in '' yes 7198do 7199 # Use a header file that comes with gcc, so configuring glibc 7200 # with a fresh cross-compiler works. 7201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7202 # <limits.h> exists even on freestanding compilers. 7203 # On the NeXT, cc -E runs the code through the compiler's parser, 7204 # not just through cpp. "Syntax error" is here to catch this case. 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206/* end confdefs.h. */ 7207#ifdef __STDC__ 7208# include <limits.h> 7209#else 7210# include <assert.h> 7211#endif 7212 Syntax error 7213_ACEOF 7214if ac_fn_c_try_cpp "$LINENO"; then : 7215 7216else 7217 # Broken: fails on valid input. 7218continue 7219fi 7220rm -f conftest.err conftest.$ac_ext 7221 7222 # OK, works on sane cases. Now check whether nonexistent headers 7223 # can be detected and how. 7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225/* end confdefs.h. */ 7226#include <ac_nonexistent.h> 7227_ACEOF 7228if ac_fn_c_try_cpp "$LINENO"; then : 7229 # Broken: success on invalid input. 7230continue 7231else 7232 # Passes both tests. 7233ac_preproc_ok=: 7234break 7235fi 7236rm -f conftest.err conftest.$ac_ext 7237 7238done 7239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7240rm -f conftest.err conftest.$ac_ext 7241if $ac_preproc_ok; then : 7242 7243else 7244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7246as_fn_error "C preprocessor \"$CPP\" fails sanity check 7247See \`config.log' for more details." "$LINENO" 5; } 7248fi 7249 7250ac_ext=c 7251ac_cpp='$CPP $CPPFLAGS' 7252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7254ac_compiler_gnu=$ac_cv_c_compiler_gnu 7255 7256 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7258$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7259if test "${ac_cv_path_GREP+set}" = set; then : 7260 $as_echo_n "(cached) " >&6 7261else 7262 if test -z "$GREP"; then 7263 ac_path_GREP_found=false 7264 # Loop through the user's path and test for each of PROGNAME-LIST 7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7266for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7267do 7268 IFS=$as_save_IFS 7269 test -z "$as_dir" && as_dir=. 7270 for ac_prog in grep ggrep; do 7271 for ac_exec_ext in '' $ac_executable_extensions; do 7272 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7273 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 7274# Check for GNU ac_path_GREP and select it if it is found. 7275 # Check for GNU $ac_path_GREP 7276case `"$ac_path_GREP" --version 2>&1` in 7277*GNU*) 7278 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7279*) 7280 ac_count=0 7281 $as_echo_n 0123456789 >"conftest.in" 7282 while : 7283 do 7284 cat "conftest.in" "conftest.in" >"conftest.tmp" 7285 mv "conftest.tmp" "conftest.in" 7286 cp "conftest.in" "conftest.nl" 7287 $as_echo 'GREP' >> "conftest.nl" 7288 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7290 as_fn_arith $ac_count + 1 && ac_count=$as_val 7291 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7292 # Best one so far, save it but keep looking for a better one 7293 ac_cv_path_GREP="$ac_path_GREP" 7294 ac_path_GREP_max=$ac_count 7295 fi 7296 # 10*(2^10) chars as input seems more than enough 7297 test $ac_count -gt 10 && break 7298 done 7299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7300esac 7301 7302 $ac_path_GREP_found && break 3 7303 done 7304 done 7305 done 7306IFS=$as_save_IFS 7307 if test -z "$ac_cv_path_GREP"; then 7308 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7309 fi 7310else 7311 ac_cv_path_GREP=$GREP 7312fi 7313 7314fi 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7316$as_echo "$ac_cv_path_GREP" >&6; } 7317 GREP="$ac_cv_path_GREP" 7318 7319 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7321$as_echo_n "checking for egrep... " >&6; } 7322if test "${ac_cv_path_EGREP+set}" = set; then : 7323 $as_echo_n "(cached) " >&6 7324else 7325 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7326 then ac_cv_path_EGREP="$GREP -E" 7327 else 7328 if test -z "$EGREP"; then 7329 ac_path_EGREP_found=false 7330 # Loop through the user's path and test for each of PROGNAME-LIST 7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7332for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7333do 7334 IFS=$as_save_IFS 7335 test -z "$as_dir" && as_dir=. 7336 for ac_prog in egrep; do 7337 for ac_exec_ext in '' $ac_executable_extensions; do 7338 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7339 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 7340# Check for GNU ac_path_EGREP and select it if it is found. 7341 # Check for GNU $ac_path_EGREP 7342case `"$ac_path_EGREP" --version 2>&1` in 7343*GNU*) 7344 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7345*) 7346 ac_count=0 7347 $as_echo_n 0123456789 >"conftest.in" 7348 while : 7349 do 7350 cat "conftest.in" "conftest.in" >"conftest.tmp" 7351 mv "conftest.tmp" "conftest.in" 7352 cp "conftest.in" "conftest.nl" 7353 $as_echo 'EGREP' >> "conftest.nl" 7354 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7356 as_fn_arith $ac_count + 1 && ac_count=$as_val 7357 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7358 # Best one so far, save it but keep looking for a better one 7359 ac_cv_path_EGREP="$ac_path_EGREP" 7360 ac_path_EGREP_max=$ac_count 7361 fi 7362 # 10*(2^10) chars as input seems more than enough 7363 test $ac_count -gt 10 && break 7364 done 7365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7366esac 7367 7368 $ac_path_EGREP_found && break 3 7369 done 7370 done 7371 done 7372IFS=$as_save_IFS 7373 if test -z "$ac_cv_path_EGREP"; then 7374 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7375 fi 7376else 7377 ac_cv_path_EGREP=$EGREP 7378fi 7379 7380 fi 7381fi 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7383$as_echo "$ac_cv_path_EGREP" >&6; } 7384 EGREP="$ac_cv_path_EGREP" 7385 7386 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7388$as_echo_n "checking for ANSI C header files... " >&6; } 7389if test "${ac_cv_header_stdc+set}" = set; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7393/* end confdefs.h. */ 7394#include <stdlib.h> 7395#include <stdarg.h> 7396#include <string.h> 7397#include <float.h> 7398 7399int 7400main () 7401{ 7402 7403 ; 7404 return 0; 7405} 7406_ACEOF 7407if ac_fn_c_try_compile "$LINENO"; then : 7408 ac_cv_header_stdc=yes 7409else 7410 ac_cv_header_stdc=no 7411fi 7412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7413 7414if test $ac_cv_header_stdc = yes; then 7415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7417/* end confdefs.h. */ 7418#include <string.h> 7419 7420_ACEOF 7421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7422 $EGREP "memchr" >/dev/null 2>&1; then : 7423 7424else 7425 ac_cv_header_stdc=no 7426fi 7427rm -f conftest* 7428 7429fi 7430 7431if test $ac_cv_header_stdc = yes; then 7432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7434/* end confdefs.h. */ 7435#include <stdlib.h> 7436 7437_ACEOF 7438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7439 $EGREP "free" >/dev/null 2>&1; then : 7440 7441else 7442 ac_cv_header_stdc=no 7443fi 7444rm -f conftest* 7445 7446fi 7447 7448if test $ac_cv_header_stdc = yes; then 7449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7450 if test "$cross_compiling" = yes; then : 7451 : 7452else 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455#include <ctype.h> 7456#include <stdlib.h> 7457#if ((' ' & 0x0FF) == 0x020) 7458# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7459# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7460#else 7461# define ISLOWER(c) \ 7462 (('a' <= (c) && (c) <= 'i') \ 7463 || ('j' <= (c) && (c) <= 'r') \ 7464 || ('s' <= (c) && (c) <= 'z')) 7465# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7466#endif 7467 7468#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7469int 7470main () 7471{ 7472 int i; 7473 for (i = 0; i < 256; i++) 7474 if (XOR (islower (i), ISLOWER (i)) 7475 || toupper (i) != TOUPPER (i)) 7476 return 2; 7477 return 0; 7478} 7479_ACEOF 7480if ac_fn_c_try_run "$LINENO"; then : 7481 7482else 7483 ac_cv_header_stdc=no 7484fi 7485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7486 conftest.$ac_objext conftest.beam conftest.$ac_ext 7487fi 7488 7489fi 7490fi 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7492$as_echo "$ac_cv_header_stdc" >&6; } 7493if test $ac_cv_header_stdc = yes; then 7494 7495$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7496 7497fi 7498 7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7500$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7501if test "${ac_cv_header_sys_wait_h+set}" = set; then : 7502 $as_echo_n "(cached) " >&6 7503else 7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7505/* end confdefs.h. */ 7506#include <sys/types.h> 7507#include <sys/wait.h> 7508#ifndef WEXITSTATUS 7509# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 7510#endif 7511#ifndef WIFEXITED 7512# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 7513#endif 7514 7515int 7516main () 7517{ 7518 int s; 7519 wait (&s); 7520 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7521 ; 7522 return 0; 7523} 7524_ACEOF 7525if ac_fn_c_try_compile "$LINENO"; then : 7526 ac_cv_header_sys_wait_h=yes 7527else 7528 ac_cv_header_sys_wait_h=no 7529fi 7530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7531fi 7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7533$as_echo "$ac_cv_header_sys_wait_h" >&6; } 7534if test $ac_cv_header_sys_wait_h = yes; then 7535 7536$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7537 7538fi 7539 7540# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7541for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7542 inttypes.h stdint.h unistd.h 7543do : 7544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7545ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7546" 7547eval as_val=\$$as_ac_Header 7548 if test "x$as_val" = x""yes; then : 7549 cat >>confdefs.h <<_ACEOF 7550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7551_ACEOF 7552 7553fi 7554 7555done 7556 7557 7558for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h regex.h stddef.h stdlib.h string.h strings.h unistd.h 7559do : 7560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7561ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7562eval as_val=\$$as_ac_Header 7563 if test "x$as_val" = x""yes; then : 7564 cat >>confdefs.h <<_ACEOF 7565#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7566_ACEOF 7567 7568fi 7569 7570done 7571 7572 7573# checks for libraries 7574 7575# The test test-pthread uses libpthread, so we check for it here, but 7576# all we need is the preprocessor symbol defined since we don't need 7577# LIBS to include libpthread for building flex. 7578 7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 7580$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } 7581if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : 7582 $as_echo_n "(cached) " >&6 7583else 7584 ac_check_lib_save_LIBS=$LIBS 7585LIBS="-lpthread $LIBS" 7586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7587/* end confdefs.h. */ 7588 7589/* Override any GCC internal prototype to avoid an error. 7590 Use char because int might match the return type of a GCC 7591 builtin and then its argument prototype would still apply. */ 7592#ifdef __cplusplus 7593extern "C" 7594#endif 7595char pthread_mutex_lock (); 7596int 7597main () 7598{ 7599return pthread_mutex_lock (); 7600 ; 7601 return 0; 7602} 7603_ACEOF 7604if ac_fn_c_try_link "$LINENO"; then : 7605 ac_cv_lib_pthread_pthread_mutex_lock=yes 7606else 7607 ac_cv_lib_pthread_pthread_mutex_lock=no 7608fi 7609rm -f core conftest.err conftest.$ac_objext \ 7610 conftest$ac_exeext conftest.$ac_ext 7611LIBS=$ac_check_lib_save_LIBS 7612fi 7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 7614$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } 7615if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : 7616 7617$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h 7618 7619else 7620 7621$as_echo "#define HAVE_LIBPTHREAD 0" >>confdefs.h 7622 7623 7624fi 7625 7626for ac_header in pthread.h 7627do : 7628 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 7629if test "x$ac_cv_header_pthread_h" = x""yes; then : 7630 cat >>confdefs.h <<_ACEOF 7631#define HAVE_PTHREAD_H 1 7632_ACEOF 7633 7634fi 7635 7636done 7637 7638 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5 7640$as_echo_n "checking for log10 in -lm... " >&6; } 7641if test "${ac_cv_lib_m_log10+set}" = set; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 ac_check_lib_save_LIBS=$LIBS 7645LIBS="-lm $LIBS" 7646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7647/* end confdefs.h. */ 7648 7649/* Override any GCC internal prototype to avoid an error. 7650 Use char because int might match the return type of a GCC 7651 builtin and then its argument prototype would still apply. */ 7652#ifdef __cplusplus 7653extern "C" 7654#endif 7655char log10 (); 7656int 7657main () 7658{ 7659return log10 (); 7660 ; 7661 return 0; 7662} 7663_ACEOF 7664if ac_fn_c_try_link "$LINENO"; then : 7665 ac_cv_lib_m_log10=yes 7666else 7667 ac_cv_lib_m_log10=no 7668fi 7669rm -f core conftest.err conftest.$ac_objext \ 7670 conftest$ac_exeext conftest.$ac_ext 7671LIBS=$ac_check_lib_save_LIBS 7672fi 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5 7674$as_echo "$ac_cv_lib_m_log10" >&6; } 7675if test "x$ac_cv_lib_m_log10" = x""yes; then : 7676 cat >>confdefs.h <<_ACEOF 7677#define HAVE_LIBM 1 7678_ACEOF 7679 7680 LIBS="-lm $LIBS" 7681 7682fi 7683 7684 7685# Checks for typedefs, structures, and compiler characteristics. 7686 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 7688$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 7689if test "${ac_cv_header_stdbool_h+set}" = set; then : 7690 $as_echo_n "(cached) " >&6 7691else 7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7693/* end confdefs.h. */ 7694 7695#include <stdbool.h> 7696#ifndef bool 7697 "error: bool is not defined" 7698#endif 7699#ifndef false 7700 "error: false is not defined" 7701#endif 7702#if false 7703 "error: false is not 0" 7704#endif 7705#ifndef true 7706 "error: true is not defined" 7707#endif 7708#if true != 1 7709 "error: true is not 1" 7710#endif 7711#ifndef __bool_true_false_are_defined 7712 "error: __bool_true_false_are_defined is not defined" 7713#endif 7714 7715 struct s { _Bool s: 1; _Bool t; } s; 7716 7717 char a[true == 1 ? 1 : -1]; 7718 char b[false == 0 ? 1 : -1]; 7719 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 7720 char d[(bool) 0.5 == true ? 1 : -1]; 7721 bool e = &s; 7722 char f[(_Bool) 0.0 == false ? 1 : -1]; 7723 char g[true]; 7724 char h[sizeof (_Bool)]; 7725 char i[sizeof s.t]; 7726 enum { j = false, k = true, l = false * true, m = true * 256 }; 7727 /* The following fails for 7728 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 7729 _Bool n[m]; 7730 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 7731 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 7732# if defined __xlc__ || defined __GNUC__ 7733 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 7734 reported by James Lemley on 2005-10-05; see 7735 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 7736 This test is not quite right, since xlc is allowed to 7737 reject this program, as the initializer for xlcbug is 7738 not one of the forms that C requires support for. 7739 However, doing the test right would require a runtime 7740 test, and that would make cross-compilation harder. 7741 Let us hope that IBM fixes the xlc bug, and also adds 7742 support for this kind of constant expression. In the 7743 meantime, this test will reject xlc, which is OK, since 7744 our stdbool.h substitute should suffice. We also test 7745 this with GCC, where it should work, to detect more 7746 quickly whether someone messes up the test in the 7747 future. */ 7748 char digs[] = "0123456789"; 7749 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 7750# endif 7751 /* Catch a bug in an HP-UX C compiler. See 7752 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 7753 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 7754 */ 7755 _Bool q = true; 7756 _Bool *pq = &q; 7757 7758int 7759main () 7760{ 7761 7762 *pq |= q; 7763 *pq |= ! q; 7764 /* Refer to every declared value, to avoid compiler optimizations. */ 7765 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 7766 + !m + !n + !o + !p + !q + !pq); 7767 7768 ; 7769 return 0; 7770} 7771_ACEOF 7772if ac_fn_c_try_compile "$LINENO"; then : 7773 ac_cv_header_stdbool_h=yes 7774else 7775 ac_cv_header_stdbool_h=no 7776fi 7777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7778fi 7779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 7780$as_echo "$ac_cv_header_stdbool_h" >&6; } 7781ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 7782if test "x$ac_cv_type__Bool" = x""yes; then : 7783 7784cat >>confdefs.h <<_ACEOF 7785#define HAVE__BOOL 1 7786_ACEOF 7787 7788 7789fi 7790 7791if test $ac_cv_header_stdbool_h = yes; then 7792 7793$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 7794 7795fi 7796 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7798$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7799if test "${ac_cv_c_const+set}" = set; then : 7800 $as_echo_n "(cached) " >&6 7801else 7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803/* end confdefs.h. */ 7804 7805int 7806main () 7807{ 7808/* FIXME: Include the comments suggested by Paul. */ 7809#ifndef __cplusplus 7810 /* Ultrix mips cc rejects this. */ 7811 typedef int charset[2]; 7812 const charset cs; 7813 /* SunOS 4.1.1 cc rejects this. */ 7814 char const *const *pcpcc; 7815 char **ppc; 7816 /* NEC SVR4.0.2 mips cc rejects this. */ 7817 struct point {int x, y;}; 7818 static struct point const zero = {0,0}; 7819 /* AIX XL C 1.02.0.0 rejects this. 7820 It does not let you subtract one const X* pointer from another in 7821 an arm of an if-expression whose if-part is not a constant 7822 expression */ 7823 const char *g = "string"; 7824 pcpcc = &g + (g ? g-g : 0); 7825 /* HPUX 7.0 cc rejects these. */ 7826 ++pcpcc; 7827 ppc = (char**) pcpcc; 7828 pcpcc = (char const *const *) ppc; 7829 { /* SCO 3.2v4 cc rejects this. */ 7830 char *t; 7831 char const *s = 0 ? (char *) 0 : (char const *) 0; 7832 7833 *t++ = 0; 7834 if (s) return 0; 7835 } 7836 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7837 int x[] = {25, 17}; 7838 const int *foo = &x[0]; 7839 ++foo; 7840 } 7841 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7842 typedef const int *iptr; 7843 iptr p = 0; 7844 ++p; 7845 } 7846 { /* AIX XL C 1.02.0.0 rejects this saying 7847 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7848 struct s { int j; const int *ap[3]; }; 7849 struct s *b; b->j = 5; 7850 } 7851 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7852 const int foo = 10; 7853 if (!foo) return 0; 7854 } 7855 return !cs[0] && !zero.x; 7856#endif 7857 7858 ; 7859 return 0; 7860} 7861_ACEOF 7862if ac_fn_c_try_compile "$LINENO"; then : 7863 ac_cv_c_const=yes 7864else 7865 ac_cv_c_const=no 7866fi 7867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7868fi 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7870$as_echo "$ac_cv_c_const" >&6; } 7871if test $ac_cv_c_const = no; then 7872 7873$as_echo "#define const /**/" >>confdefs.h 7874 7875fi 7876 7877ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7878if test "x$ac_cv_type_size_t" = x""yes; then : 7879 7880else 7881 7882cat >>confdefs.h <<_ACEOF 7883#define size_t unsigned int 7884_ACEOF 7885 7886fi 7887 7888 7889# Checks for library functions. 7890 7891# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7892# for constant arguments. Useless! 7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 7894$as_echo_n "checking for working alloca.h... " >&6; } 7895if test "${ac_cv_working_alloca_h+set}" = set; then : 7896 $as_echo_n "(cached) " >&6 7897else 7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7899/* end confdefs.h. */ 7900#include <alloca.h> 7901int 7902main () 7903{ 7904char *p = (char *) alloca (2 * sizeof (int)); 7905 if (p) return 0; 7906 ; 7907 return 0; 7908} 7909_ACEOF 7910if ac_fn_c_try_link "$LINENO"; then : 7911 ac_cv_working_alloca_h=yes 7912else 7913 ac_cv_working_alloca_h=no 7914fi 7915rm -f core conftest.err conftest.$ac_objext \ 7916 conftest$ac_exeext conftest.$ac_ext 7917fi 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 7919$as_echo "$ac_cv_working_alloca_h" >&6; } 7920if test $ac_cv_working_alloca_h = yes; then 7921 7922$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 7923 7924fi 7925 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 7927$as_echo_n "checking for alloca... " >&6; } 7928if test "${ac_cv_func_alloca_works+set}" = set; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932/* end confdefs.h. */ 7933#ifdef __GNUC__ 7934# define alloca __builtin_alloca 7935#else 7936# ifdef _MSC_VER 7937# include <malloc.h> 7938# define alloca _alloca 7939# else 7940# ifdef HAVE_ALLOCA_H 7941# include <alloca.h> 7942# else 7943# ifdef _AIX 7944 #pragma alloca 7945# else 7946# ifndef alloca /* predefined by HP cc +Olibcalls */ 7947char *alloca (); 7948# endif 7949# endif 7950# endif 7951# endif 7952#endif 7953 7954int 7955main () 7956{ 7957char *p = (char *) alloca (1); 7958 if (p) return 0; 7959 ; 7960 return 0; 7961} 7962_ACEOF 7963if ac_fn_c_try_link "$LINENO"; then : 7964 ac_cv_func_alloca_works=yes 7965else 7966 ac_cv_func_alloca_works=no 7967fi 7968rm -f core conftest.err conftest.$ac_objext \ 7969 conftest$ac_exeext conftest.$ac_ext 7970fi 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 7972$as_echo "$ac_cv_func_alloca_works" >&6; } 7973 7974if test $ac_cv_func_alloca_works = yes; then 7975 7976$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 7977 7978else 7979 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7980# that cause trouble. Some versions do not even contain alloca or 7981# contain a buggy version. If you still want to use their alloca, 7982# use ar to extract alloca.o from them instead of compiling alloca.c. 7983 7984ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 7985 7986$as_echo "#define C_ALLOCA 1" >>confdefs.h 7987 7988 7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 7990$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 7991if test "${ac_cv_os_cray+set}" = set; then : 7992 $as_echo_n "(cached) " >&6 7993else 7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7995/* end confdefs.h. */ 7996#if defined CRAY && ! defined CRAY2 7997webecray 7998#else 7999wenotbecray 8000#endif 8001 8002_ACEOF 8003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8004 $EGREP "webecray" >/dev/null 2>&1; then : 8005 ac_cv_os_cray=yes 8006else 8007 ac_cv_os_cray=no 8008fi 8009rm -f conftest* 8010 8011fi 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 8013$as_echo "$ac_cv_os_cray" >&6; } 8014if test $ac_cv_os_cray = yes; then 8015 for ac_func in _getb67 GETB67 getb67; do 8016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8017ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8018eval as_val=\$$as_ac_var 8019 if test "x$as_val" = x""yes; then : 8020 8021cat >>confdefs.h <<_ACEOF 8022#define CRAY_STACKSEG_END $ac_func 8023_ACEOF 8024 8025 break 8026fi 8027 8028 done 8029fi 8030 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8032$as_echo_n "checking stack direction for C alloca... " >&6; } 8033if test "${ac_cv_c_stack_direction+set}" = set; then : 8034 $as_echo_n "(cached) " >&6 8035else 8036 if test "$cross_compiling" = yes; then : 8037 ac_cv_c_stack_direction=0 8038else 8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8040/* end confdefs.h. */ 8041$ac_includes_default 8042int 8043find_stack_direction () 8044{ 8045 static char *addr = 0; 8046 auto char dummy; 8047 if (addr == 0) 8048 { 8049 addr = &dummy; 8050 return find_stack_direction (); 8051 } 8052 else 8053 return (&dummy > addr) ? 1 : -1; 8054} 8055 8056int 8057main () 8058{ 8059 return find_stack_direction () < 0; 8060} 8061_ACEOF 8062if ac_fn_c_try_run "$LINENO"; then : 8063 ac_cv_c_stack_direction=1 8064else 8065 ac_cv_c_stack_direction=-1 8066fi 8067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8068 conftest.$ac_objext conftest.beam conftest.$ac_ext 8069fi 8070 8071fi 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8073$as_echo "$ac_cv_c_stack_direction" >&6; } 8074cat >>confdefs.h <<_ACEOF 8075#define STACK_DIRECTION $ac_cv_c_stack_direction 8076_ACEOF 8077 8078 8079fi 8080 8081ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8082if test "x$ac_cv_type_pid_t" = x""yes; then : 8083 8084else 8085 8086cat >>confdefs.h <<_ACEOF 8087#define pid_t int 8088_ACEOF 8089 8090fi 8091 8092for ac_header in vfork.h 8093do : 8094 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 8095if test "x$ac_cv_header_vfork_h" = x""yes; then : 8096 cat >>confdefs.h <<_ACEOF 8097#define HAVE_VFORK_H 1 8098_ACEOF 8099 8100fi 8101 8102done 8103 8104for ac_func in fork vfork 8105do : 8106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8107ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8108eval as_val=\$$as_ac_var 8109 if test "x$as_val" = x""yes; then : 8110 cat >>confdefs.h <<_ACEOF 8111#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8112_ACEOF 8113 8114fi 8115done 8116 8117if test "x$ac_cv_func_fork" = xyes; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 8119$as_echo_n "checking for working fork... " >&6; } 8120if test "${ac_cv_func_fork_works+set}" = set; then : 8121 $as_echo_n "(cached) " >&6 8122else 8123 if test "$cross_compiling" = yes; then : 8124 ac_cv_func_fork_works=cross 8125else 8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8127/* end confdefs.h. */ 8128$ac_includes_default 8129int 8130main () 8131{ 8132 8133 /* By Ruediger Kuhlmann. */ 8134 return fork () < 0; 8135 8136 ; 8137 return 0; 8138} 8139_ACEOF 8140if ac_fn_c_try_run "$LINENO"; then : 8141 ac_cv_func_fork_works=yes 8142else 8143 ac_cv_func_fork_works=no 8144fi 8145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8146 conftest.$ac_objext conftest.beam conftest.$ac_ext 8147fi 8148 8149fi 8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 8151$as_echo "$ac_cv_func_fork_works" >&6; } 8152 8153else 8154 ac_cv_func_fork_works=$ac_cv_func_fork 8155fi 8156if test "x$ac_cv_func_fork_works" = xcross; then 8157 case $host in 8158 *-*-amigaos* | *-*-msdosdjgpp*) 8159 # Override, as these systems have only a dummy fork() stub 8160 ac_cv_func_fork_works=no 8161 ;; 8162 *) 8163 ac_cv_func_fork_works=yes 8164 ;; 8165 esac 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8167$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8168fi 8169ac_cv_func_vfork_works=$ac_cv_func_vfork 8170if test "x$ac_cv_func_vfork" = xyes; then 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 8172$as_echo_n "checking for working vfork... " >&6; } 8173if test "${ac_cv_func_vfork_works+set}" = set; then : 8174 $as_echo_n "(cached) " >&6 8175else 8176 if test "$cross_compiling" = yes; then : 8177 ac_cv_func_vfork_works=cross 8178else 8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8180/* end confdefs.h. */ 8181/* Thanks to Paul Eggert for this test. */ 8182$ac_includes_default 8183#include <sys/wait.h> 8184#ifdef HAVE_VFORK_H 8185# include <vfork.h> 8186#endif 8187/* On some sparc systems, changes by the child to local and incoming 8188 argument registers are propagated back to the parent. The compiler 8189 is told about this with #include <vfork.h>, but some compilers 8190 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8191 static variable whose address is put into a register that is 8192 clobbered by the vfork. */ 8193static void 8194#ifdef __cplusplus 8195sparc_address_test (int arg) 8196# else 8197sparc_address_test (arg) int arg; 8198#endif 8199{ 8200 static pid_t child; 8201 if (!child) { 8202 child = vfork (); 8203 if (child < 0) { 8204 perror ("vfork"); 8205 _exit(2); 8206 } 8207 if (!child) { 8208 arg = getpid(); 8209 write(-1, "", 0); 8210 _exit (arg); 8211 } 8212 } 8213} 8214 8215int 8216main () 8217{ 8218 pid_t parent = getpid (); 8219 pid_t child; 8220 8221 sparc_address_test (0); 8222 8223 child = vfork (); 8224 8225 if (child == 0) { 8226 /* Here is another test for sparc vfork register problems. This 8227 test uses lots of local variables, at least as many local 8228 variables as main has allocated so far including compiler 8229 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8230 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8231 reuse the register of parent for one of the local variables, 8232 since it will think that parent can't possibly be used any more 8233 in this routine. Assigning to the local variable will thus 8234 munge parent in the parent process. */ 8235 pid_t 8236 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8237 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8238 /* Convince the compiler that p..p7 are live; otherwise, it might 8239 use the same hardware register for all 8 local variables. */ 8240 if (p != p1 || p != p2 || p != p3 || p != p4 8241 || p != p5 || p != p6 || p != p7) 8242 _exit(1); 8243 8244 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8245 from child file descriptors. If the child closes a descriptor 8246 before it execs or exits, this munges the parent's descriptor 8247 as well. Test for this by closing stdout in the child. */ 8248 _exit(close(fileno(stdout)) != 0); 8249 } else { 8250 int status; 8251 struct stat st; 8252 8253 while (wait(&status) != child) 8254 ; 8255 return ( 8256 /* Was there some problem with vforking? */ 8257 child < 0 8258 8259 /* Did the child fail? (This shouldn't happen.) */ 8260 || status 8261 8262 /* Did the vfork/compiler bug occur? */ 8263 || parent != getpid() 8264 8265 /* Did the file descriptor bug occur? */ 8266 || fstat(fileno(stdout), &st) != 0 8267 ); 8268 } 8269} 8270_ACEOF 8271if ac_fn_c_try_run "$LINENO"; then : 8272 ac_cv_func_vfork_works=yes 8273else 8274 ac_cv_func_vfork_works=no 8275fi 8276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8277 conftest.$ac_objext conftest.beam conftest.$ac_ext 8278fi 8279 8280fi 8281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 8282$as_echo "$ac_cv_func_vfork_works" >&6; } 8283 8284fi; 8285if test "x$ac_cv_func_fork_works" = xcross; then 8286 ac_cv_func_vfork_works=$ac_cv_func_vfork 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 8288$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 8289fi 8290 8291if test "x$ac_cv_func_vfork_works" = xyes; then 8292 8293$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 8294 8295else 8296 8297$as_echo "#define vfork fork" >>confdefs.h 8298 8299fi 8300if test "x$ac_cv_func_fork_works" = xyes; then 8301 8302$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 8303 8304fi 8305 8306for ac_header in stdlib.h 8307do : 8308 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 8309if test "x$ac_cv_header_stdlib_h" = x""yes; then : 8310 cat >>confdefs.h <<_ACEOF 8311#define HAVE_STDLIB_H 1 8312_ACEOF 8313 8314fi 8315 8316done 8317 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 8319$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 8320if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 8321 $as_echo_n "(cached) " >&6 8322else 8323 if test "$cross_compiling" = yes; then : 8324 ac_cv_func_malloc_0_nonnull=no 8325else 8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8327/* end confdefs.h. */ 8328#if defined STDC_HEADERS || defined HAVE_STDLIB_H 8329# include <stdlib.h> 8330#else 8331char *malloc (); 8332#endif 8333 8334int 8335main () 8336{ 8337return ! malloc (0); 8338 ; 8339 return 0; 8340} 8341_ACEOF 8342if ac_fn_c_try_run "$LINENO"; then : 8343 ac_cv_func_malloc_0_nonnull=yes 8344else 8345 ac_cv_func_malloc_0_nonnull=no 8346fi 8347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8348 conftest.$ac_objext conftest.beam conftest.$ac_ext 8349fi 8350 8351fi 8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 8353$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 8354if test $ac_cv_func_malloc_0_nonnull = yes; then : 8355 8356$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 8357 8358else 8359 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 8360 8361 case " $LIBOBJS " in 8362 *" malloc.$ac_objext "* ) ;; 8363 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 8364 ;; 8365esac 8366 8367 8368$as_echo "#define malloc rpl_malloc" >>confdefs.h 8369 8370fi 8371 8372 8373for ac_header in stdlib.h 8374do : 8375 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 8376if test "x$ac_cv_header_stdlib_h" = x""yes; then : 8377 cat >>confdefs.h <<_ACEOF 8378#define HAVE_STDLIB_H 1 8379_ACEOF 8380 8381fi 8382 8383done 8384 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 8386$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 8387if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : 8388 $as_echo_n "(cached) " >&6 8389else 8390 if test "$cross_compiling" = yes; then : 8391 ac_cv_func_realloc_0_nonnull=no 8392else 8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8394/* end confdefs.h. */ 8395#if defined STDC_HEADERS || defined HAVE_STDLIB_H 8396# include <stdlib.h> 8397#else 8398char *realloc (); 8399#endif 8400 8401int 8402main () 8403{ 8404return ! realloc (0, 0); 8405 ; 8406 return 0; 8407} 8408_ACEOF 8409if ac_fn_c_try_run "$LINENO"; then : 8410 ac_cv_func_realloc_0_nonnull=yes 8411else 8412 ac_cv_func_realloc_0_nonnull=no 8413fi 8414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8415 conftest.$ac_objext conftest.beam conftest.$ac_ext 8416fi 8417 8418fi 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 8420$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 8421if test $ac_cv_func_realloc_0_nonnull = yes; then : 8422 8423$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 8424 8425else 8426 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 8427 8428 case " $LIBOBJS " in 8429 *" realloc.$ac_objext "* ) ;; 8430 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 8431 ;; 8432esac 8433 8434 8435$as_echo "#define realloc rpl_realloc" >>confdefs.h 8436 8437fi 8438 8439 8440for ac_func in dup2 isascii memset pow regcomp setlocale strchr strtol 8441do : 8442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8443ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8444eval as_val=\$$as_ac_var 8445 if test "x$as_val" = x""yes; then : 8446 cat >>confdefs.h <<_ACEOF 8447#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8448_ACEOF 8449 8450fi 8451done 8452 8453 8454ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile lib/Makefile po/Makefile.in tools/Makefile tests/Makefile tests/TEMPLATE/Makefile tests/test-array-nr/Makefile tests/test-array-r/Makefile tests/test-basic-nr/Makefile tests/test-basic-r/Makefile tests/test-bison-yylloc/Makefile tests/test-bison-yylval/Makefile tests/test-c-cpp-nr/Makefile tests/test-c-cpp-r/Makefile tests/test-header-nr/Makefile tests/test-header-r/Makefile tests/test-include-by-buffer/Makefile tests/test-include-by-push/Makefile tests/test-include-by-reentrant/Makefile tests/test-multiple-scanners-nr/Makefile tests/test-multiple-scanners-r/Makefile tests/test-noansi-nr/Makefile tests/test-noansi-r/Makefile tests/test-prefix-nr/Makefile tests/test-prefix-r/Makefile tests/test-pthread/Makefile tests/test-string-nr/Makefile tests/test-string-r/Makefile tests/test-yyextra/Makefile tests/test-alloc-extra/Makefile tests/test-lineno-nr/Makefile tests/test-lineno-r/Makefile tests/test-linedir-r/Makefile tests/test-debug-r/Makefile tests/test-debug-nr/Makefile tests/test-mem-nr/Makefile tests/test-mem-r/Makefile tests/test-posix/Makefile tests/test-posixly-correct/Makefile tests/test-table-opts/Makefile tests/test-c++-basic/Makefile tests/test-bison-nr/Makefile tests/test-reject/Makefile tests/test-c++-multiple-scanners/Makefile tests/test-top/Makefile tests/test-rescan-nr/Makefile tests/test-rescan-r/Makefile tests/test-quotes/Makefile tests/test-ccl/Makefile tests/test-extended/Makefile tests/test-c++-yywrap/Makefile tests/test-concatenated-options/Makefile" 8455 8456 8457cat >confcache <<\_ACEOF 8458# This file is a shell script that caches the results of configure 8459# tests run on this system so they can be shared between configure 8460# scripts and configure runs, see configure's option --config-cache. 8461# It is not useful on other systems. If it contains results you don't 8462# want to keep, you may remove or edit it. 8463# 8464# config.status only pays attention to the cache file if you give it 8465# the --recheck option to rerun configure. 8466# 8467# `ac_cv_env_foo' variables (set or unset) will be overridden when 8468# loading this file, other *unset* `ac_cv_foo' will be assigned the 8469# following values. 8470 8471_ACEOF 8472 8473# The following way of writing the cache mishandles newlines in values, 8474# but we know of no workaround that is simple, portable, and efficient. 8475# So, we kill variables containing newlines. 8476# Ultrix sh set writes to stderr and can't be redirected directly, 8477# and sets the high bit in the cache file unless we assign to the vars. 8478( 8479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8480 eval ac_val=\$$ac_var 8481 case $ac_val in #( 8482 *${as_nl}*) 8483 case $ac_var in #( 8484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8485$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8486 esac 8487 case $ac_var in #( 8488 _ | IFS | as_nl) ;; #( 8489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8490 *) { eval $ac_var=; unset $ac_var;} ;; 8491 esac ;; 8492 esac 8493 done 8494 8495 (set) 2>&1 | 8496 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8497 *${as_nl}ac_space=\ *) 8498 # `set' does not quote correctly, so add quotes: double-quote 8499 # substitution turns \\\\ into \\, and sed turns \\ into \. 8500 sed -n \ 8501 "s/'/'\\\\''/g; 8502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8503 ;; #( 8504 *) 8505 # `set' quotes correctly as required by POSIX, so do not add quotes. 8506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8507 ;; 8508 esac | 8509 sort 8510) | 8511 sed ' 8512 /^ac_cv_env_/b end 8513 t clear 8514 :clear 8515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8516 t end 8517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8518 :end' >>confcache 8519if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8520 if test -w "$cache_file"; then 8521 test "x$cache_file" != "x/dev/null" && 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8523$as_echo "$as_me: updating cache $cache_file" >&6;} 8524 cat confcache >$cache_file 8525 else 8526 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8527$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8528 fi 8529fi 8530rm -f confcache 8531 8532test "x$prefix" = xNONE && prefix=$ac_default_prefix 8533# Let make expand exec_prefix. 8534test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8535 8536DEFS=-DHAVE_CONFIG_H 8537 8538ac_libobjs= 8539ac_ltlibobjs= 8540for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8541 # 1. Remove the extension, and $U if already installed. 8542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8543 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8545 # will be set to the directory where LIBOBJS objects are built. 8546 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8547 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8548done 8549LIBOBJS=$ac_libobjs 8550 8551LTLIBOBJS=$ac_ltlibobjs 8552 8553 8554 if test -n "$EXEEXT"; then 8555 am__EXEEXT_TRUE= 8556 am__EXEEXT_FALSE='#' 8557else 8558 am__EXEEXT_TRUE='#' 8559 am__EXEEXT_FALSE= 8560fi 8561 8562if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 8563 as_fn_error "conditional \"AMDEP\" was never defined. 8564Usually this means the macro was only invoked conditionally." "$LINENO" 5 8565fi 8566if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 8567 as_fn_error "conditional \"am__fastdepCC\" was never defined. 8568Usually this means the macro was only invoked conditionally." "$LINENO" 5 8569fi 8570if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 8571 as_fn_error "conditional \"am__fastdepCC\" was never defined. 8572Usually this means the macro was only invoked conditionally." "$LINENO" 5 8573fi 8574if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 8575 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 8576Usually this means the macro was only invoked conditionally." "$LINENO" 5 8577fi 8578 8579: ${CONFIG_STATUS=./config.status} 8580ac_write_fail=0 8581ac_clean_files_save=$ac_clean_files 8582ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8583{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8584$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8585as_write_fail=0 8586cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8587#! $SHELL 8588# Generated by $as_me. 8589# Run this file to recreate the current configuration. 8590# Compiler output produced by configure, useful for debugging 8591# configure, is in config.log if it exists. 8592 8593debug=false 8594ac_cs_recheck=false 8595ac_cs_silent=false 8596 8597SHELL=\${CONFIG_SHELL-$SHELL} 8598export SHELL 8599_ASEOF 8600cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8601## -------------------- ## 8602## M4sh Initialization. ## 8603## -------------------- ## 8604 8605# Be more Bourne compatible 8606DUALCASE=1; export DUALCASE # for MKS sh 8607if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8608 emulate sh 8609 NULLCMD=: 8610 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8611 # is contrary to our usage. Disable this feature. 8612 alias -g '${1+"$@"}'='"$@"' 8613 setopt NO_GLOB_SUBST 8614else 8615 case `(set -o) 2>/dev/null` in #( 8616 *posix*) : 8617 set -o posix ;; #( 8618 *) : 8619 ;; 8620esac 8621fi 8622 8623 8624as_nl=' 8625' 8626export as_nl 8627# Printing a long string crashes Solaris 7 /usr/bin/printf. 8628as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8629as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8630as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8631# Prefer a ksh shell builtin over an external printf program on Solaris, 8632# but without wasting forks for bash or zsh. 8633if test -z "$BASH_VERSION$ZSH_VERSION" \ 8634 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8635 as_echo='print -r --' 8636 as_echo_n='print -rn --' 8637elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8638 as_echo='printf %s\n' 8639 as_echo_n='printf %s' 8640else 8641 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8642 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8643 as_echo_n='/usr/ucb/echo -n' 8644 else 8645 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8646 as_echo_n_body='eval 8647 arg=$1; 8648 case $arg in #( 8649 *"$as_nl"*) 8650 expr "X$arg" : "X\\(.*\\)$as_nl"; 8651 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8652 esac; 8653 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8654 ' 8655 export as_echo_n_body 8656 as_echo_n='sh -c $as_echo_n_body as_echo' 8657 fi 8658 export as_echo_body 8659 as_echo='sh -c $as_echo_body as_echo' 8660fi 8661 8662# The user is always right. 8663if test "${PATH_SEPARATOR+set}" != set; then 8664 PATH_SEPARATOR=: 8665 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8666 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8667 PATH_SEPARATOR=';' 8668 } 8669fi 8670 8671 8672# IFS 8673# We need space, tab and new line, in precisely that order. Quoting is 8674# there to prevent editors from complaining about space-tab. 8675# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8676# splitting by setting IFS to empty value.) 8677IFS=" "" $as_nl" 8678 8679# Find who we are. Look in the path if we contain no directory separator. 8680case $0 in #(( 8681 *[\\/]* ) as_myself=$0 ;; 8682 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8683for as_dir in $PATH 8684do 8685 IFS=$as_save_IFS 8686 test -z "$as_dir" && as_dir=. 8687 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8688 done 8689IFS=$as_save_IFS 8690 8691 ;; 8692esac 8693# We did not find ourselves, most probably we were run as `sh COMMAND' 8694# in which case we are not to be found in the path. 8695if test "x$as_myself" = x; then 8696 as_myself=$0 8697fi 8698if test ! -f "$as_myself"; then 8699 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8700 exit 1 8701fi 8702 8703# Unset variables that we do not need and which cause bugs (e.g. in 8704# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 8705# suppresses any "Segmentation fault" message there. '((' could 8706# trigger a bug in pdksh 5.2.14. 8707for as_var in BASH_ENV ENV MAIL MAILPATH 8708do eval test x\${$as_var+set} = xset \ 8709 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 8710done 8711PS1='$ ' 8712PS2='> ' 8713PS4='+ ' 8714 8715# NLS nuisances. 8716LC_ALL=C 8717export LC_ALL 8718LANGUAGE=C 8719export LANGUAGE 8720 8721# CDPATH. 8722(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8723 8724 8725# as_fn_error ERROR [LINENO LOG_FD] 8726# --------------------------------- 8727# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8728# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8729# script with status $?, using 1 if that was 0. 8730as_fn_error () 8731{ 8732 as_status=$?; test $as_status -eq 0 && as_status=1 8733 if test "$3"; then 8734 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8735 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 8736 fi 8737 $as_echo "$as_me: error: $1" >&2 8738 as_fn_exit $as_status 8739} # as_fn_error 8740 8741 8742# as_fn_set_status STATUS 8743# ----------------------- 8744# Set $? to STATUS, without forking. 8745as_fn_set_status () 8746{ 8747 return $1 8748} # as_fn_set_status 8749 8750# as_fn_exit STATUS 8751# ----------------- 8752# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8753as_fn_exit () 8754{ 8755 set +e 8756 as_fn_set_status $1 8757 exit $1 8758} # as_fn_exit 8759 8760# as_fn_unset VAR 8761# --------------- 8762# Portably unset VAR. 8763as_fn_unset () 8764{ 8765 { eval $1=; unset $1;} 8766} 8767as_unset=as_fn_unset 8768# as_fn_append VAR VALUE 8769# ---------------------- 8770# Append the text in VALUE to the end of the definition contained in VAR. Take 8771# advantage of any shell optimizations that allow amortized linear growth over 8772# repeated appends, instead of the typical quadratic growth present in naive 8773# implementations. 8774if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8775 eval 'as_fn_append () 8776 { 8777 eval $1+=\$2 8778 }' 8779else 8780 as_fn_append () 8781 { 8782 eval $1=\$$1\$2 8783 } 8784fi # as_fn_append 8785 8786# as_fn_arith ARG... 8787# ------------------ 8788# Perform arithmetic evaluation on the ARGs, and store the result in the 8789# global $as_val. Take advantage of shells that can avoid forks. The arguments 8790# must be portable across $(()) and expr. 8791if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8792 eval 'as_fn_arith () 8793 { 8794 as_val=$(( $* )) 8795 }' 8796else 8797 as_fn_arith () 8798 { 8799 as_val=`expr "$@" || test $? -eq 1` 8800 } 8801fi # as_fn_arith 8802 8803 8804if expr a : '\(a\)' >/dev/null 2>&1 && 8805 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8806 as_expr=expr 8807else 8808 as_expr=false 8809fi 8810 8811if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8812 as_basename=basename 8813else 8814 as_basename=false 8815fi 8816 8817if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8818 as_dirname=dirname 8819else 8820 as_dirname=false 8821fi 8822 8823as_me=`$as_basename -- "$0" || 8824$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8825 X"$0" : 'X\(//\)$' \| \ 8826 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8827$as_echo X/"$0" | 8828 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8829 s//\1/ 8830 q 8831 } 8832 /^X\/\(\/\/\)$/{ 8833 s//\1/ 8834 q 8835 } 8836 /^X\/\(\/\).*/{ 8837 s//\1/ 8838 q 8839 } 8840 s/.*/./; q'` 8841 8842# Avoid depending upon Character Ranges. 8843as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8844as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8845as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8846as_cr_digits='0123456789' 8847as_cr_alnum=$as_cr_Letters$as_cr_digits 8848 8849ECHO_C= ECHO_N= ECHO_T= 8850case `echo -n x` in #((((( 8851-n*) 8852 case `echo 'xy\c'` in 8853 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8854 xy) ECHO_C='\c';; 8855 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8856 ECHO_T=' ';; 8857 esac;; 8858*) 8859 ECHO_N='-n';; 8860esac 8861 8862rm -f conf$$ conf$$.exe conf$$.file 8863if test -d conf$$.dir; then 8864 rm -f conf$$.dir/conf$$.file 8865else 8866 rm -f conf$$.dir 8867 mkdir conf$$.dir 2>/dev/null 8868fi 8869if (echo >conf$$.file) 2>/dev/null; then 8870 if ln -s conf$$.file conf$$ 2>/dev/null; then 8871 as_ln_s='ln -s' 8872 # ... but there are two gotchas: 8873 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8874 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8875 # In both cases, we have to default to `cp -p'. 8876 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8877 as_ln_s='cp -p' 8878 elif ln conf$$.file conf$$ 2>/dev/null; then 8879 as_ln_s=ln 8880 else 8881 as_ln_s='cp -p' 8882 fi 8883else 8884 as_ln_s='cp -p' 8885fi 8886rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8887rmdir conf$$.dir 2>/dev/null 8888 8889 8890# as_fn_mkdir_p 8891# ------------- 8892# Create "$as_dir" as a directory, including parents if necessary. 8893as_fn_mkdir_p () 8894{ 8895 8896 case $as_dir in #( 8897 -*) as_dir=./$as_dir;; 8898 esac 8899 test -d "$as_dir" || eval $as_mkdir_p || { 8900 as_dirs= 8901 while :; do 8902 case $as_dir in #( 8903 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8904 *) as_qdir=$as_dir;; 8905 esac 8906 as_dirs="'$as_qdir' $as_dirs" 8907 as_dir=`$as_dirname -- "$as_dir" || 8908$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8909 X"$as_dir" : 'X\(//\)[^/]' \| \ 8910 X"$as_dir" : 'X\(//\)$' \| \ 8911 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8912$as_echo X"$as_dir" | 8913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8914 s//\1/ 8915 q 8916 } 8917 /^X\(\/\/\)[^/].*/{ 8918 s//\1/ 8919 q 8920 } 8921 /^X\(\/\/\)$/{ 8922 s//\1/ 8923 q 8924 } 8925 /^X\(\/\).*/{ 8926 s//\1/ 8927 q 8928 } 8929 s/.*/./; q'` 8930 test -d "$as_dir" && break 8931 done 8932 test -z "$as_dirs" || eval "mkdir $as_dirs" 8933 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 8934 8935 8936} # as_fn_mkdir_p 8937if mkdir -p . 2>/dev/null; then 8938 as_mkdir_p='mkdir -p "$as_dir"' 8939else 8940 test -d ./-p && rmdir ./-p 8941 as_mkdir_p=false 8942fi 8943 8944if test -x / >/dev/null 2>&1; then 8945 as_test_x='test -x' 8946else 8947 if ls -dL / >/dev/null 2>&1; then 8948 as_ls_L_option=L 8949 else 8950 as_ls_L_option= 8951 fi 8952 as_test_x=' 8953 eval sh -c '\'' 8954 if test -d "$1"; then 8955 test -d "$1/."; 8956 else 8957 case $1 in #( 8958 -*)set "./$1";; 8959 esac; 8960 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 8961 ???[sx]*):;;*)false;;esac;fi 8962 '\'' sh 8963 ' 8964fi 8965as_executable_p=$as_test_x 8966 8967# Sed expression to map a string onto a valid CPP name. 8968as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8969 8970# Sed expression to map a string onto a valid variable name. 8971as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8972 8973 8974exec 6>&1 8975## ----------------------------------- ## 8976## Main body of $CONFIG_STATUS script. ## 8977## ----------------------------------- ## 8978_ASEOF 8979test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8980 8981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8982# Save the log message, to keep $0 and so on meaningful, and to 8983# report actual input values of CONFIG_FILES etc. instead of their 8984# values after options handling. 8985ac_log=" 8986This file was extended by the fast lexical analyser generator $as_me 2.5.37, which was 8987generated by GNU Autoconf 2.65. Invocation command line was 8988 8989 CONFIG_FILES = $CONFIG_FILES 8990 CONFIG_HEADERS = $CONFIG_HEADERS 8991 CONFIG_LINKS = $CONFIG_LINKS 8992 CONFIG_COMMANDS = $CONFIG_COMMANDS 8993 $ $0 $@ 8994 8995on `(hostname || uname -n) 2>/dev/null | sed 1q` 8996" 8997 8998_ACEOF 8999 9000case $ac_config_files in *" 9001"*) set x $ac_config_files; shift; ac_config_files=$*;; 9002esac 9003 9004case $ac_config_headers in *" 9005"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 9006esac 9007 9008 9009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9010# Files that config.status was made for. 9011config_files="$ac_config_files" 9012config_headers="$ac_config_headers" 9013config_commands="$ac_config_commands" 9014 9015_ACEOF 9016 9017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9018ac_cs_usage="\ 9019\`$as_me' instantiates files and other configuration actions 9020from templates according to the current configuration. Unless the files 9021and actions are specified as TAGs, all are instantiated by default. 9022 9023Usage: $0 [OPTION]... [TAG]... 9024 9025 -h, --help print this help, then exit 9026 -V, --version print version number and configuration settings, then exit 9027 --config print configuration, then exit 9028 -q, --quiet, --silent 9029 do not print progress messages 9030 -d, --debug don't remove temporary files 9031 --recheck update $as_me by reconfiguring in the same conditions 9032 --file=FILE[:TEMPLATE] 9033 instantiate the configuration file FILE 9034 --header=FILE[:TEMPLATE] 9035 instantiate the configuration header FILE 9036 9037Configuration files: 9038$config_files 9039 9040Configuration headers: 9041$config_headers 9042 9043Configuration commands: 9044$config_commands 9045 9046Report bugs to <flex-help@lists.sourceforge.net>." 9047 9048_ACEOF 9049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9050ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9051ac_cs_version="\\ 9052the fast lexical analyser generator config.status 2.5.37 9053configured by $0, generated by GNU Autoconf 2.65, 9054 with options \\"\$ac_cs_config\\" 9055 9056Copyright (C) 2009 Free Software Foundation, Inc. 9057This config.status script is free software; the Free Software Foundation 9058gives unlimited permission to copy, distribute and modify it." 9059 9060ac_pwd='$ac_pwd' 9061srcdir='$srcdir' 9062INSTALL='$INSTALL' 9063MKDIR_P='$MKDIR_P' 9064AWK='$AWK' 9065test -n "\$AWK" || AWK=awk 9066_ACEOF 9067 9068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9069# The default lists apply if the user does not specify any file. 9070ac_need_defaults=: 9071while test $# != 0 9072do 9073 case $1 in 9074 --*=*) 9075 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9076 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9077 ac_shift=: 9078 ;; 9079 *) 9080 ac_option=$1 9081 ac_optarg=$2 9082 ac_shift=shift 9083 ;; 9084 esac 9085 9086 case $ac_option in 9087 # Handling of the options. 9088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9089 ac_cs_recheck=: ;; 9090 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9091 $as_echo "$ac_cs_version"; exit ;; 9092 --config | --confi | --conf | --con | --co | --c ) 9093 $as_echo "$ac_cs_config"; exit ;; 9094 --debug | --debu | --deb | --de | --d | -d ) 9095 debug=: ;; 9096 --file | --fil | --fi | --f ) 9097 $ac_shift 9098 case $ac_optarg in 9099 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9100 esac 9101 as_fn_append CONFIG_FILES " '$ac_optarg'" 9102 ac_need_defaults=false;; 9103 --header | --heade | --head | --hea ) 9104 $ac_shift 9105 case $ac_optarg in 9106 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9107 esac 9108 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 9109 ac_need_defaults=false;; 9110 --he | --h) 9111 # Conflict between --help and --header 9112 as_fn_error "ambiguous option: \`$1' 9113Try \`$0 --help' for more information.";; 9114 --help | --hel | -h ) 9115 $as_echo "$ac_cs_usage"; exit ;; 9116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9117 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9118 ac_cs_silent=: ;; 9119 9120 # This is an error. 9121 -*) as_fn_error "unrecognized option: \`$1' 9122Try \`$0 --help' for more information." ;; 9123 9124 *) as_fn_append ac_config_targets " $1" 9125 ac_need_defaults=false ;; 9126 9127 esac 9128 shift 9129done 9130 9131ac_configure_extra_args= 9132 9133if $ac_cs_silent; then 9134 exec 6>/dev/null 9135 ac_configure_extra_args="$ac_configure_extra_args --silent" 9136fi 9137 9138_ACEOF 9139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9140if \$ac_cs_recheck; then 9141 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9142 shift 9143 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9144 CONFIG_SHELL='$SHELL' 9145 export CONFIG_SHELL 9146 exec "\$@" 9147fi 9148 9149_ACEOF 9150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9151exec 5>>config.log 9152{ 9153 echo 9154 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9155## Running $as_me. ## 9156_ASBOX 9157 $as_echo "$ac_log" 9158} >&5 9159 9160_ACEOF 9161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9162# 9163# INIT-COMMANDS 9164# 9165# Capture the value of obsolete ALL_LINGUAS because we need it to compute 9166 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 9167 # from automake. 9168 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 9169 # Capture the value of LINGUAS because we need it to compute CATALOGS. 9170 LINGUAS="${LINGUAS-%UNSET%}" 9171 9172AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 9173 9174_ACEOF 9175 9176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9177 9178# Handling of arguments. 9179for ac_config_target in $ac_config_targets 9180do 9181 case $ac_config_target in 9182 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:conf.in" ;; 9183 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 9184 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 9185 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9186 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 9187 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 9188 "examples/fastwc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;; 9189 "examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;; 9190 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 9191 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 9192 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 9193 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 9194 "tests/TEMPLATE/Makefile") CONFIG_FILES="$CONFIG_FILES tests/TEMPLATE/Makefile" ;; 9195 "tests/test-array-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-array-nr/Makefile" ;; 9196 "tests/test-array-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-array-r/Makefile" ;; 9197 "tests/test-basic-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-basic-nr/Makefile" ;; 9198 "tests/test-basic-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-basic-r/Makefile" ;; 9199 "tests/test-bison-yylloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylloc/Makefile" ;; 9200 "tests/test-bison-yylval/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylval/Makefile" ;; 9201 "tests/test-c-cpp-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-nr/Makefile" ;; 9202 "tests/test-c-cpp-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-r/Makefile" ;; 9203 "tests/test-header-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-header-nr/Makefile" ;; 9204 "tests/test-header-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-header-r/Makefile" ;; 9205 "tests/test-include-by-buffer/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-buffer/Makefile" ;; 9206 "tests/test-include-by-push/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-push/Makefile" ;; 9207 "tests/test-include-by-reentrant/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-reentrant/Makefile" ;; 9208 "tests/test-multiple-scanners-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-nr/Makefile" ;; 9209 "tests/test-multiple-scanners-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-r/Makefile" ;; 9210 "tests/test-noansi-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-noansi-nr/Makefile" ;; 9211 "tests/test-noansi-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-noansi-r/Makefile" ;; 9212 "tests/test-prefix-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-prefix-nr/Makefile" ;; 9213 "tests/test-prefix-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-prefix-r/Makefile" ;; 9214 "tests/test-pthread/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-pthread/Makefile" ;; 9215 "tests/test-string-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-string-nr/Makefile" ;; 9216 "tests/test-string-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-string-r/Makefile" ;; 9217 "tests/test-yyextra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-yyextra/Makefile" ;; 9218 "tests/test-alloc-extra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-alloc-extra/Makefile" ;; 9219 "tests/test-lineno-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-nr/Makefile" ;; 9220 "tests/test-lineno-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-r/Makefile" ;; 9221 "tests/test-linedir-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-linedir-r/Makefile" ;; 9222 "tests/test-debug-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-debug-r/Makefile" ;; 9223 "tests/test-debug-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-debug-nr/Makefile" ;; 9224 "tests/test-mem-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-mem-nr/Makefile" ;; 9225 "tests/test-mem-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-mem-r/Makefile" ;; 9226 "tests/test-posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-posix/Makefile" ;; 9227 "tests/test-posixly-correct/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-posixly-correct/Makefile" ;; 9228 "tests/test-table-opts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-table-opts/Makefile" ;; 9229 "tests/test-c++-basic/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-basic/Makefile" ;; 9230 "tests/test-bison-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-nr/Makefile" ;; 9231 "tests/test-reject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-reject/Makefile" ;; 9232 "tests/test-c++-multiple-scanners/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-multiple-scanners/Makefile" ;; 9233 "tests/test-top/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-top/Makefile" ;; 9234 "tests/test-rescan-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-rescan-nr/Makefile" ;; 9235 "tests/test-rescan-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-rescan-r/Makefile" ;; 9236 "tests/test-quotes/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-quotes/Makefile" ;; 9237 "tests/test-ccl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-ccl/Makefile" ;; 9238 "tests/test-extended/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-extended/Makefile" ;; 9239 "tests/test-c++-yywrap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-yywrap/Makefile" ;; 9240 "tests/test-concatenated-options/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-concatenated-options/Makefile" ;; 9241 9242 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9243 esac 9244done 9245 9246 9247# If the user did not use the arguments to specify the items to instantiate, 9248# then the envvar interface is used. Set only those that are not. 9249# We use the long form for the default assignment because of an extremely 9250# bizarre bug on SunOS 4.1.3. 9251if $ac_need_defaults; then 9252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9255fi 9256 9257# Have a temporary directory for convenience. Make it in the build tree 9258# simply because there is no reason against having it here, and in addition, 9259# creating and moving files from /tmp can sometimes cause problems. 9260# Hook for its removal unless debugging. 9261# Note that there is a small window in which the directory will not be cleaned: 9262# after its creation but before its name has been assigned to `$tmp'. 9263$debug || 9264{ 9265 tmp= 9266 trap 'exit_status=$? 9267 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 9268' 0 9269 trap 'as_fn_exit 1' 1 2 13 15 9270} 9271# Create a (secure) tmp directory for tmp files. 9272 9273{ 9274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9275 test -n "$tmp" && test -d "$tmp" 9276} || 9277{ 9278 tmp=./conf$$-$RANDOM 9279 (umask 077 && mkdir "$tmp") 9280} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 9281 9282# Set up the scripts for CONFIG_FILES section. 9283# No need to generate them if there are no CONFIG_FILES. 9284# This happens for instance with `./config.status config.h'. 9285if test -n "$CONFIG_FILES"; then 9286 9287 9288ac_cr=`echo X | tr X '\015'` 9289# On cygwin, bash can eat \r inside `` if the user requested igncr. 9290# But we know of no other shell where ac_cr would be empty at this 9291# point, so we can use a bashism as a fallback. 9292if test "x$ac_cr" = x; then 9293 eval ac_cr=\$\'\\r\' 9294fi 9295ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9296if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9297 ac_cs_awk_cr='\r' 9298else 9299 ac_cs_awk_cr=$ac_cr 9300fi 9301 9302echo 'BEGIN {' >"$tmp/subs1.awk" && 9303_ACEOF 9304 9305 9306{ 9307 echo "cat >conf$$subs.awk <<_ACEOF" && 9308 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9309 echo "_ACEOF" 9310} >conf$$subs.sh || 9311 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 9312ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 9313ac_delim='%!_!# ' 9314for ac_last_try in false false false false false :; do 9315 . ./conf$$subs.sh || 9316 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 9317 9318 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9319 if test $ac_delim_n = $ac_delim_num; then 9320 break 9321 elif $ac_last_try; then 9322 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 9323 else 9324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9325 fi 9326done 9327rm -f conf$$subs.sh 9328 9329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9330cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 9331_ACEOF 9332sed -n ' 9333h 9334s/^/S["/; s/!.*/"]=/ 9335p 9336g 9337s/^[^!]*!// 9338:repl 9339t repl 9340s/'"$ac_delim"'$// 9341t delim 9342:nl 9343h 9344s/\(.\{148\}\)..*/\1/ 9345t more1 9346s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9347p 9348n 9349b repl 9350:more1 9351s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9352p 9353g 9354s/.\{148\}// 9355t nl 9356:delim 9357h 9358s/\(.\{148\}\)..*/\1/ 9359t more2 9360s/["\\]/\\&/g; s/^/"/; s/$/"/ 9361p 9362b 9363:more2 9364s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9365p 9366g 9367s/.\{148\}// 9368t delim 9369' <conf$$subs.awk | sed ' 9370/^[^""]/{ 9371 N 9372 s/\n// 9373} 9374' >>$CONFIG_STATUS || ac_write_fail=1 9375rm -f conf$$subs.awk 9376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9377_ACAWK 9378cat >>"\$tmp/subs1.awk" <<_ACAWK && 9379 for (key in S) S_is_set[key] = 1 9380 FS = "" 9381 9382} 9383{ 9384 line = $ 0 9385 nfields = split(line, field, "@") 9386 substed = 0 9387 len = length(field[1]) 9388 for (i = 2; i < nfields; i++) { 9389 key = field[i] 9390 keylen = length(key) 9391 if (S_is_set[key]) { 9392 value = S[key] 9393 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9394 len += length(value) + length(field[++i]) 9395 substed = 1 9396 } else 9397 len += 1 + keylen 9398 } 9399 9400 print line 9401} 9402 9403_ACAWK 9404_ACEOF 9405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9406if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9407 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9408else 9409 cat 9410fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 9411 || as_fn_error "could not setup config files machinery" "$LINENO" 5 9412_ACEOF 9413 9414# VPATH may cause trouble with some makes, so we remove $(srcdir), 9415# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 9416# trailing colons and then remove the whole line if VPATH becomes empty 9417# (actually we leave an empty line to preserve line numbers). 9418if test "x$srcdir" = x.; then 9419 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 9420s/:*\$(srcdir):*/:/ 9421s/:*\${srcdir}:*/:/ 9422s/:*@srcdir@:*/:/ 9423s/^\([^=]*=[ ]*\):*/\1/ 9424s/:*$// 9425s/^[^=]*=[ ]*$// 9426}' 9427fi 9428 9429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9430fi # test -n "$CONFIG_FILES" 9431 9432# Set up the scripts for CONFIG_HEADERS section. 9433# No need to generate them if there are no CONFIG_HEADERS. 9434# This happens for instance with `./config.status Makefile'. 9435if test -n "$CONFIG_HEADERS"; then 9436cat >"$tmp/defines.awk" <<\_ACAWK || 9437BEGIN { 9438_ACEOF 9439 9440# Transform confdefs.h into an awk script `defines.awk', embedded as 9441# here-document in config.status, that substitutes the proper values into 9442# config.h.in to produce config.h. 9443 9444# Create a delimiter string that does not exist in confdefs.h, to ease 9445# handling of long lines. 9446ac_delim='%!_!# ' 9447for ac_last_try in false false :; do 9448 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 9449 if test -z "$ac_t"; then 9450 break 9451 elif $ac_last_try; then 9452 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 9453 else 9454 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9455 fi 9456done 9457 9458# For the awk script, D is an array of macro values keyed by name, 9459# likewise P contains macro parameters if any. Preserve backslash 9460# newline sequences. 9461 9462ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9463sed -n ' 9464s/.\{148\}/&'"$ac_delim"'/g 9465t rset 9466:rset 9467s/^[ ]*#[ ]*define[ ][ ]*/ / 9468t def 9469d 9470:def 9471s/\\$// 9472t bsnl 9473s/["\\]/\\&/g 9474s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9475D["\1"]=" \3"/p 9476s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9477d 9478:bsnl 9479s/["\\]/\\&/g 9480s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9481D["\1"]=" \3\\\\\\n"\\/p 9482t cont 9483s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9484t cont 9485d 9486:cont 9487n 9488s/.\{148\}/&'"$ac_delim"'/g 9489t clear 9490:clear 9491s/\\$// 9492t bsnlc 9493s/["\\]/\\&/g; s/^/"/; s/$/"/p 9494d 9495:bsnlc 9496s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9497b cont 9498' <confdefs.h | sed ' 9499s/'"$ac_delim"'/"\\\ 9500"/g' >>$CONFIG_STATUS || ac_write_fail=1 9501 9502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9503 for (key in D) D_is_set[key] = 1 9504 FS = "" 9505} 9506/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9507 line = \$ 0 9508 split(line, arg, " ") 9509 if (arg[1] == "#") { 9510 defundef = arg[2] 9511 mac1 = arg[3] 9512 } else { 9513 defundef = substr(arg[1], 2) 9514 mac1 = arg[2] 9515 } 9516 split(mac1, mac2, "(") #) 9517 macro = mac2[1] 9518 prefix = substr(line, 1, index(line, defundef) - 1) 9519 if (D_is_set[macro]) { 9520 # Preserve the white space surrounding the "#". 9521 print prefix "define", macro P[macro] D[macro] 9522 next 9523 } else { 9524 # Replace #undef with comments. This is necessary, for example, 9525 # in the case of _POSIX_SOURCE, which is predefined and required 9526 # on some systems where configure will not decide to define it. 9527 if (defundef == "undef") { 9528 print "/*", prefix defundef, macro, "*/" 9529 next 9530 } 9531 } 9532} 9533{ print } 9534_ACAWK 9535_ACEOF 9536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9537 as_fn_error "could not setup config headers machinery" "$LINENO" 5 9538fi # test -n "$CONFIG_HEADERS" 9539 9540 9541eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 9542shift 9543for ac_tag 9544do 9545 case $ac_tag in 9546 :[FHLC]) ac_mode=$ac_tag; continue;; 9547 esac 9548 case $ac_mode$ac_tag in 9549 :[FHL]*:*);; 9550 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 9551 :[FH]-) ac_tag=-:-;; 9552 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9553 esac 9554 ac_save_IFS=$IFS 9555 IFS=: 9556 set x $ac_tag 9557 IFS=$ac_save_IFS 9558 shift 9559 ac_file=$1 9560 shift 9561 9562 case $ac_mode in 9563 :L) ac_source=$1;; 9564 :[FH]) 9565 ac_file_inputs= 9566 for ac_f 9567 do 9568 case $ac_f in 9569 -) ac_f="$tmp/stdin";; 9570 *) # Look for the file first in the build tree, then in the source tree 9571 # (if the path is not absolute). The absolute path cannot be DOS-style, 9572 # because $ac_f cannot contain `:'. 9573 test -f "$ac_f" || 9574 case $ac_f in 9575 [\\/$]*) false;; 9576 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9577 esac || 9578 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9579 esac 9580 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9581 as_fn_append ac_file_inputs " '$ac_f'" 9582 done 9583 9584 # Let's still pretend it is `configure' which instantiates (i.e., don't 9585 # use $as_me), people would be surprised to read: 9586 # /* config.h. Generated by config.status. */ 9587 configure_input='Generated from '` 9588 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9589 `' by configure.' 9590 if test x"$ac_file" != x-; then 9591 configure_input="$ac_file. $configure_input" 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9593$as_echo "$as_me: creating $ac_file" >&6;} 9594 fi 9595 # Neutralize special characters interpreted by sed in replacement strings. 9596 case $configure_input in #( 9597 *\&* | *\|* | *\\* ) 9598 ac_sed_conf_input=`$as_echo "$configure_input" | 9599 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9600 *) ac_sed_conf_input=$configure_input;; 9601 esac 9602 9603 case $ac_tag in 9604 *:-:* | *:-) cat >"$tmp/stdin" \ 9605 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 9606 esac 9607 ;; 9608 esac 9609 9610 ac_dir=`$as_dirname -- "$ac_file" || 9611$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9612 X"$ac_file" : 'X\(//\)[^/]' \| \ 9613 X"$ac_file" : 'X\(//\)$' \| \ 9614 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9615$as_echo X"$ac_file" | 9616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9617 s//\1/ 9618 q 9619 } 9620 /^X\(\/\/\)[^/].*/{ 9621 s//\1/ 9622 q 9623 } 9624 /^X\(\/\/\)$/{ 9625 s//\1/ 9626 q 9627 } 9628 /^X\(\/\).*/{ 9629 s//\1/ 9630 q 9631 } 9632 s/.*/./; q'` 9633 as_dir="$ac_dir"; as_fn_mkdir_p 9634 ac_builddir=. 9635 9636case "$ac_dir" in 9637.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9638*) 9639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9640 # A ".." for each directory in $ac_dir_suffix. 9641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9642 case $ac_top_builddir_sub in 9643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9645 esac ;; 9646esac 9647ac_abs_top_builddir=$ac_pwd 9648ac_abs_builddir=$ac_pwd$ac_dir_suffix 9649# for backward compatibility: 9650ac_top_builddir=$ac_top_build_prefix 9651 9652case $srcdir in 9653 .) # We are building in place. 9654 ac_srcdir=. 9655 ac_top_srcdir=$ac_top_builddir_sub 9656 ac_abs_top_srcdir=$ac_pwd ;; 9657 [\\/]* | ?:[\\/]* ) # Absolute name. 9658 ac_srcdir=$srcdir$ac_dir_suffix; 9659 ac_top_srcdir=$srcdir 9660 ac_abs_top_srcdir=$srcdir ;; 9661 *) # Relative name. 9662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9663 ac_top_srcdir=$ac_top_build_prefix$srcdir 9664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9665esac 9666ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9667 9668 9669 case $ac_mode in 9670 :F) 9671 # 9672 # CONFIG_FILE 9673 # 9674 9675 case $INSTALL in 9676 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9677 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9678 esac 9679 ac_MKDIR_P=$MKDIR_P 9680 case $MKDIR_P in 9681 [\\/$]* | ?:[\\/]* ) ;; 9682 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 9683 esac 9684_ACEOF 9685 9686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9687# If the template does not know about datarootdir, expand it. 9688# FIXME: This hack should be removed a few years after 2.60. 9689ac_datarootdir_hack=; ac_datarootdir_seen= 9690ac_sed_dataroot=' 9691/datarootdir/ { 9692 p 9693 q 9694} 9695/@datadir@/p 9696/@docdir@/p 9697/@infodir@/p 9698/@localedir@/p 9699/@mandir@/p' 9700case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9701*datarootdir*) ac_datarootdir_seen=yes;; 9702*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9704$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9705_ACEOF 9706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9707 ac_datarootdir_hack=' 9708 s&@datadir@&$datadir&g 9709 s&@docdir@&$docdir&g 9710 s&@infodir@&$infodir&g 9711 s&@localedir@&$localedir&g 9712 s&@mandir@&$mandir&g 9713 s&\\\${datarootdir}&$datarootdir&g' ;; 9714esac 9715_ACEOF 9716 9717# Neutralize VPATH when `$srcdir' = `.'. 9718# Shell code in configure.ac might set extrasub. 9719# FIXME: do we really want to maintain this feature? 9720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9721ac_sed_extra="$ac_vpsub 9722$extrasub 9723_ACEOF 9724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9725:t 9726/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9727s|@configure_input@|$ac_sed_conf_input|;t t 9728s&@top_builddir@&$ac_top_builddir_sub&;t t 9729s&@top_build_prefix@&$ac_top_build_prefix&;t t 9730s&@srcdir@&$ac_srcdir&;t t 9731s&@abs_srcdir@&$ac_abs_srcdir&;t t 9732s&@top_srcdir@&$ac_top_srcdir&;t t 9733s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9734s&@builddir@&$ac_builddir&;t t 9735s&@abs_builddir@&$ac_abs_builddir&;t t 9736s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9737s&@INSTALL@&$ac_INSTALL&;t t 9738s&@MKDIR_P@&$ac_MKDIR_P&;t t 9739$ac_datarootdir_hack 9740" 9741eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 9742 || as_fn_error "could not create $ac_file" "$LINENO" 5 9743 9744test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9745 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9746 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9748which seems to be undefined. Please make sure it is defined." >&5 9749$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9750which seems to be undefined. Please make sure it is defined." >&2;} 9751 9752 rm -f "$tmp/stdin" 9753 case $ac_file in 9754 -) cat "$tmp/out" && rm -f "$tmp/out";; 9755 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 9756 esac \ 9757 || as_fn_error "could not create $ac_file" "$LINENO" 5 9758 ;; 9759 :H) 9760 # 9761 # CONFIG_HEADER 9762 # 9763 if test x"$ac_file" != x-; then 9764 { 9765 $as_echo "/* $configure_input */" \ 9766 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 9767 } >"$tmp/config.h" \ 9768 || as_fn_error "could not create $ac_file" "$LINENO" 5 9769 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9771$as_echo "$as_me: $ac_file is unchanged" >&6;} 9772 else 9773 rm -f "$ac_file" 9774 mv "$tmp/config.h" "$ac_file" \ 9775 || as_fn_error "could not create $ac_file" "$LINENO" 5 9776 fi 9777 else 9778 $as_echo "/* $configure_input */" \ 9779 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 9780 || as_fn_error "could not create -" "$LINENO" 5 9781 fi 9782# Compute "$ac_file"'s index in $config_headers. 9783_am_arg="$ac_file" 9784_am_stamp_count=1 9785for _am_header in $config_headers :; do 9786 case $_am_header in 9787 $_am_arg | $_am_arg:* ) 9788 break ;; 9789 * ) 9790 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9791 esac 9792done 9793echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 9794$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9795 X"$_am_arg" : 'X\(//\)[^/]' \| \ 9796 X"$_am_arg" : 'X\(//\)$' \| \ 9797 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 9798$as_echo X"$_am_arg" | 9799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9800 s//\1/ 9801 q 9802 } 9803 /^X\(\/\/\)[^/].*/{ 9804 s//\1/ 9805 q 9806 } 9807 /^X\(\/\/\)$/{ 9808 s//\1/ 9809 q 9810 } 9811 /^X\(\/\).*/{ 9812 s//\1/ 9813 q 9814 } 9815 s/.*/./; q'`/stamp-h$_am_stamp_count 9816 ;; 9817 9818 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 9819$as_echo "$as_me: executing $ac_file commands" >&6;} 9820 ;; 9821 esac 9822 9823 9824 case $ac_file$ac_mode in 9825 "default-1":C) 9826 for ac_file in $CONFIG_FILES; do 9827 # Support "outfile[:infile[:infile...]]" 9828 case "$ac_file" in 9829 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 9830 esac 9831 # PO directories have a Makefile.in generated from Makefile.in.in. 9832 case "$ac_file" in */Makefile.in) 9833 # Adjust a relative srcdir. 9834 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 9835 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 9836 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 9837 # In autoconf-2.13 it is called $ac_given_srcdir. 9838 # In autoconf-2.50 it is called $srcdir. 9839 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 9840 case "$ac_given_srcdir" in 9841 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 9842 /*) top_srcdir="$ac_given_srcdir" ;; 9843 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 9844 esac 9845 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 9846 rm -f "$ac_dir/POTFILES" 9847 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 9848 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 9849 POMAKEFILEDEPS="POTFILES.in" 9850 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 9851 # on $ac_dir but don't depend on user-specified configuration 9852 # parameters. 9853 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 9854 # The LINGUAS file contains the set of available languages. 9855 if test -n "$OBSOLETE_ALL_LINGUAS"; then 9856 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 9857 fi 9858 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 9859 # Hide the ALL_LINGUAS assigment from automake. 9860 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 9861 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 9862 else 9863 # The set of available languages was given in configure.in. 9864 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 9865 fi 9866 case "$ac_given_srcdir" in 9867 .) srcdirpre= ;; 9868 *) srcdirpre='$(srcdir)/' ;; 9869 esac 9870 POFILES= 9871 GMOFILES= 9872 UPDATEPOFILES= 9873 DUMMYPOFILES= 9874 for lang in $ALL_LINGUAS; do 9875 POFILES="$POFILES $srcdirpre$lang.po" 9876 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 9877 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 9878 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 9879 done 9880 # CATALOGS depends on both $ac_dir and the user's LINGUAS 9881 # environment variable. 9882 INST_LINGUAS= 9883 if test -n "$ALL_LINGUAS"; then 9884 for presentlang in $ALL_LINGUAS; do 9885 useit=no 9886 if test "%UNSET%" != "$LINGUAS"; then 9887 desiredlanguages="$LINGUAS" 9888 else 9889 desiredlanguages="$ALL_LINGUAS" 9890 fi 9891 for desiredlang in $desiredlanguages; do 9892 # Use the presentlang catalog if desiredlang is 9893 # a. equal to presentlang, or 9894 # b. a variant of presentlang (because in this case, 9895 # presentlang can be used as a fallback for messages 9896 # which are not translated in the desiredlang catalog). 9897 case "$desiredlang" in 9898 "$presentlang"*) useit=yes;; 9899 esac 9900 done 9901 if test $useit = yes; then 9902 INST_LINGUAS="$INST_LINGUAS $presentlang" 9903 fi 9904 done 9905 fi 9906 CATALOGS= 9907 if test -n "$INST_LINGUAS"; then 9908 for lang in $INST_LINGUAS; do 9909 CATALOGS="$CATALOGS $lang.gmo" 9910 done 9911 fi 9912 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 9913 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 9914 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 9915 if test -f "$f"; then 9916 case "$f" in 9917 *.orig | *.bak | *~) ;; 9918 *) cat "$f" >> "$ac_dir/Makefile" ;; 9919 esac 9920 fi 9921 done 9922 fi 9923 ;; 9924 esac 9925 done ;; 9926 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 9927 # Autoconf 2.62 quotes --file arguments for eval, but not when files 9928 # are listed without --file. Let's play safe and only enable the eval 9929 # if we detect the quoting. 9930 case $CONFIG_FILES in 9931 *\'*) eval set x "$CONFIG_FILES" ;; 9932 *) set x $CONFIG_FILES ;; 9933 esac 9934 shift 9935 for mf 9936 do 9937 # Strip MF so we end up with the name of the file. 9938 mf=`echo "$mf" | sed -e 's/:.*$//'` 9939 # Check whether this is an Automake generated Makefile or not. 9940 # We used to match only the files named `Makefile.in', but 9941 # some people rename them; so instead we look at the file content. 9942 # Grep'ing the first line is not enough: some people post-process 9943 # each Makefile.in and add a new line on top of each file to say so. 9944 # Grep'ing the whole file is not good either: AIX grep has a line 9945 # limit of 2048, but all sed's we know have understand at least 4000. 9946 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 9947 dirpart=`$as_dirname -- "$mf" || 9948$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9949 X"$mf" : 'X\(//\)[^/]' \| \ 9950 X"$mf" : 'X\(//\)$' \| \ 9951 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 9952$as_echo X"$mf" | 9953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9954 s//\1/ 9955 q 9956 } 9957 /^X\(\/\/\)[^/].*/{ 9958 s//\1/ 9959 q 9960 } 9961 /^X\(\/\/\)$/{ 9962 s//\1/ 9963 q 9964 } 9965 /^X\(\/\).*/{ 9966 s//\1/ 9967 q 9968 } 9969 s/.*/./; q'` 9970 else 9971 continue 9972 fi 9973 # Extract the definition of DEPDIR, am__include, and am__quote 9974 # from the Makefile without running `make'. 9975 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 9976 test -z "$DEPDIR" && continue 9977 am__include=`sed -n 's/^am__include = //p' < "$mf"` 9978 test -z "am__include" && continue 9979 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 9980 # When using ansi2knr, U may be empty or an underscore; expand it 9981 U=`sed -n 's/^U = //p' < "$mf"` 9982 # Find all dependency output files, they are included files with 9983 # $(DEPDIR) in their names. We invoke sed twice because it is the 9984 # simplest approach to changing $(DEPDIR) to its actual value in the 9985 # expansion. 9986 for file in `sed -n " 9987 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 9988 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9989 # Make sure the directory exists. 9990 test -f "$dirpart/$file" && continue 9991 fdir=`$as_dirname -- "$file" || 9992$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9993 X"$file" : 'X\(//\)[^/]' \| \ 9994 X"$file" : 'X\(//\)$' \| \ 9995 X"$file" : 'X\(/\)' \| . 2>/dev/null || 9996$as_echo X"$file" | 9997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9998 s//\1/ 9999 q 10000 } 10001 /^X\(\/\/\)[^/].*/{ 10002 s//\1/ 10003 q 10004 } 10005 /^X\(\/\/\)$/{ 10006 s//\1/ 10007 q 10008 } 10009 /^X\(\/\).*/{ 10010 s//\1/ 10011 q 10012 } 10013 s/.*/./; q'` 10014 as_dir=$dirpart/$fdir; as_fn_mkdir_p 10015 # echo "creating $dirpart/$file" 10016 echo '# dummy' > "$dirpart/$file" 10017 done 10018 done 10019} 10020 ;; 10021 10022 esac 10023done # for ac_tag 10024 10025 10026as_fn_exit 0 10027_ACEOF 10028ac_clean_files=$ac_clean_files_save 10029 10030test $ac_write_fail = 0 || 10031 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 10032 10033 10034# configure is writing to config.log, and then calls config.status. 10035# config.status does its own redirection, appending to config.log. 10036# Unfortunately, on DOS this fails, as config.log is still kept open 10037# by configure, so config.status won't be able to write to it; its 10038# output is simply discarded. So we exec the FD to /dev/null, 10039# effectively closing config.log, so it can be properly (re)opened and 10040# appended to by config.status. When coming back to configure, we 10041# need to make the FD available again. 10042if test "$no_create" != yes; then 10043 ac_cs_success=: 10044 ac_config_status_args= 10045 test "$silent" = yes && 10046 ac_config_status_args="$ac_config_status_args --quiet" 10047 exec 5>/dev/null 10048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10049 exec 5>>config.log 10050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10051 # would make configure fail if this is the last instruction. 10052 $ac_cs_success || as_fn_exit $? 10053fi 10054if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10056$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10057fi 10058 10059