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